/* ✅ /public/css/manager_view.css */
/* Compact Manager Command Center */

#managerDashboardView {
  width: 95%;
  margin: 18px auto 0;
}

.gs-manager-wrap {
  width: 100%;
  margin: 10px 0 12px;
}

.gs-manager-bar {
  display: grid;
  grid-template-columns: 280px minmax(420px, 1fr) 340px;
  gap: 10px;
  align-items: stretch;
}

.gs-mcard {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.055);
  overflow: hidden;
  min-width: 0;
}

body.dark .gs-mcard {
  background: rgba(20, 20, 20, 0.88);
  border-color: rgba(255, 255, 255, 0.10);
}

.gs-mcard-h {
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

body.dark .gs-mcard-h {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.gs-mcard-title {
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--gs-charcoal, #1f2937);
}

body.dark .gs-mcard-title {
  color: rgba(255, 255, 255, 0.92);
}

.gs-mcard-sub {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(31, 41, 55, 0.62);
}

body.dark .gs-mcard-sub {
  color: rgba(255, 255, 255, 0.58);
}

.gs-mcard-b {
  padding: 10px;
}

/* Action Panel */

.gs-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.gs-mbtn {
  min-height: 32px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(248, 250, 252, 0.75);
  color: var(--gs-charcoal, #1f2937);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.gs-mbtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.gs-mbtn.primary {
  background: rgba(255, 111, 89, 0.12);
  border-color: rgba(255, 111, 89, 0.28);
}

body.dark .gs-mbtn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.gs-legend {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gs-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10.5px;
  line-height: 1.2;
  color: rgba(31, 41, 55, 0.66);
}

body.dark .gs-pill {
  border-color: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.58);
}

.gs-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 111, 89, 0.75);
  flex: 0 0 auto;
}

/* Pipeline Snapshot */

.gs-mgrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(86px, 1fr));
  gap: 8px;
}

.gs-stat {
  min-height: 58px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 8px;
  background: rgba(248, 250, 252, 0.58);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-width: 0;
}

body.dark .gs-stat {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

.gs-stat-k {
  font-size: 10.5px;
  line-height: 1.15;
  font-weight: 800;
  color: rgba(31, 41, 55, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .gs-stat-k {
  color: rgba(255, 255, 255, 0.55);
}

.gs-stat-v {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
  color: var(--gs-charcoal, #1f2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .gs-stat-v {
  color: rgba(255, 255, 255, 0.92);
}

.gs-stat-s {
  font-size: 10.5px;
  line-height: 1.15;
  color: rgba(31, 41, 55, 0.56);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .gs-stat-s {
  color: rgba(255, 255, 255, 0.50);
}

/* Team Activity */

.gs-activity-list {
  height: 138px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gs-activity-list::-webkit-scrollbar {
  width: 5px;
}

.gs-activity-list::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  border-radius: 999px;
}

.gs-activity-list::-webkit-scrollbar-track {
  background: transparent;
}

.gs-activity-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  background: rgba(248, 250, 252, 0.52);
}

body.dark .gs-activity-item {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

.gs-activity-left {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.gs-activity-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.gs-activity-name {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--gs-charcoal, #1f2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .gs-activity-name {
  color: rgba(255, 255, 255, 0.9);
}

.gs-activity-line {
  font-size: 11px;
  line-height: 1.25;
  color: rgba(31, 41, 55, 0.64);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

body.dark .gs-activity-line {
  color: rgba(255, 255, 255, 0.56);
}

.gs-activity-age {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  color: rgba(31, 41, 55, 0.62);
  white-space: nowrap;
}

body.dark .gs-activity-age {
  color: rgba(255, 255, 255, 0.54);
}

.gs-muted {
  font-size: 12px;
  color: rgba(31, 41, 55, 0.62);
}

/* Responsive */

@media (max-width: 1250px) {
  .gs-manager-bar {
    grid-template-columns: 260px 1fr;
  }

  #gsManagerActivityCard {
    grid-column: 1 / -1;
  }

  .gs-activity-list {
    height: 110px;
  }

  .gs-activity-line {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .gs-manager-bar {
    grid-template-columns: 1fr;
  }

  .gs-mgrid {
    grid-template-columns: repeat(3, minmax(90px, 1fr));
  }

  .gs-activity-line {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .gs-mgrid {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  .gs-actions {
    grid-template-columns: 1fr;
  }
}