/* ==========================================================================
   stevennguyen — OCC-06: Bảng Điều hành Ban Giám đốc & KPI Khai thác Ngày
   Executive Ops Cockpit · 18 Daily KPIs · IATA Pareto · 7-Day Trend · VP Gate
   ========================================================================== */

.exec-sc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.exec-sc-btn {
  text-align: left;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid #1E3A5F;
  background: #09172B;
  color: #E6F2FF;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
  min-width: 0;
}

.exec-sc-btn:hover {
  border-color: #38BDF8;
  background: #0D213D;
}

.exec-sc-btn.active {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.16);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.exec-sc-btn:focus-visible,
.exec-dir-btn:focus-visible,
.exec-cadence-tab:focus-visible,
.exec-jump-pill:focus-visible,
.exec-reset-btn:focus-visible,
.exec-pareto-row:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
}

.exec-sc-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #7DD3FC;
  margin-bottom: 3px;
}

.exec-sc-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 3px;
  line-height: 1.35;
}

.exec-sc-sub {
  font-size: 11.5px;
  color: #9BB8D8;
  line-height: 1.4;
}

.exec-reset-btn {
  background: #0F233F;
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: var(--radius-sm);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.exec-reset-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38BDF8;
}

/* 6-Card Executive Health Strip */
.exec-health-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.exec-health-grid .occ-kpi-card {
  padding: 11px 12px;
  min-width: 0;
}

.exec-health-grid .occ-kpi-val {
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.exec-kpi-sub {
  font-family: var(--font-mono);
  font-size: 10.2px;
  color: #9BB8D8;
  margin-top: 4px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* What-If & VP Ops Directive Controls */
.exec-controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 12px;
  margin-bottom: 14px;
}

.exec-ctrl-panel {
  background: #09172B;
  border: 1px solid #1B3355;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-width: 0;
}

.exec-section-lbl {
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 700;
  color: #7DD3FC;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 6px;
}

.exec-slider-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.exec-slider-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #6EE7B7;
}

.exec-slider-val.warn {
  color: #FCD34D;
}

.exec-slider-val.alert {
  color: #FDA4AF;
}

.exec-range {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  accent-color: #38BDF8;
  cursor: pointer;
  margin: 4px 0 6px;
}

.exec-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8AB0D6;
  margin-bottom: 6px;
}

.exec-slider-note {
  font-size: 11.8px;
  color: #B8D2EC;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.exec-dir-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.exec-dir-btn {
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #1C3658;
  background: #071222;
  color: #E6F2FF;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-width: 0;
}

.exec-dir-btn:hover {
  border-color: #38BDF8;
  background: #0C1E36;
}

.exec-dir-btn.active.dir-observe {
  border-color: #94A3B8;
  background: rgba(148, 163, 184, 0.14);
}

.exec-dir-btn.active.dir-firebreak {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.17);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.32);
}

.exec-dir-btn.active.dir-crisis {
  border-color: #34D399;
  background: rgba(16, 185, 129, 0.16);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35);
}

.exec-dir-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #7DD3FC;
  margin-bottom: 3px;
}

.exec-dir-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.32;
  margin-bottom: 3px;
}

.exec-dir-sub {
  display: block;
  font-size: 10.8px;
  color: #9BB8D8;
  line-height: 1.35;
}

/* Dual Executive SVG Charts */
.exec-charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.exec-chart-card {
  background: #081526;
  border: 1px solid #1B3355;
  border-radius: var(--radius-md);
  padding: 12px 13px;
  min-width: 0;
}

.exec-chart-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.exec-chart-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.exec-chart-sub {
  font-family: var(--font-mono);
  font-size: 10.2px;
  color: #8AB0D6;
}

.exec-pareto-row {
  cursor: pointer;
}

.exec-pareto-row:hover .exec-pareto-track {
  stroke: #38BDF8;
  stroke-width: 1.4;
}

.exec-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #162B47;
}

.exec-jump-pill {
  background: #0D203B;
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 10.2px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.exec-jump-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38BDF8;
}

/* 5-Pillar (18 KPIs) Scorecard Matrix */
.exec-matrix-wrap {
  background: #081526;
  border: 1px solid #1B3355;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  min-width: 0;
}

.exec-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.exec-pillar-box {
  background: #050E1B;
  border: 1px solid #172E4D;
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  min-width: 0;
}

.exec-pillar-box.span-full {
  grid-column: 1 / -1;
}

.exec-pillar-title {
  font-family: var(--font-mono);
  font-size: 10.8px;
  font-weight: 700;
  color: #7DD3FC;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #142844;
}

.exec-kpi-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.exec-kpi-item {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #09182D;
  border-left: 3px solid #34D399;
  font-size: 11.6px;
  min-width: 0;
}

.exec-kpi-item.tone-warn {
  border-left-color: #FBBF24;
  background: rgba(245, 158, 11, 0.08);
}

.exec-kpi-item.tone-alert {
  border-left-color: #FB7185;
  background: rgba(244, 63, 94, 0.11);
}

.exec-kpi-name {
  color: #E6F2FF;
  font-weight: 600;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.exec-kpi-valbadge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #6EE7B7;
  overflow-wrap: anywhere;
}

.exec-kpi-item.tone-warn .exec-kpi-valbadge {
  color: #FCD34D;
}

.exec-kpi-item.tone-alert .exec-kpi-valbadge {
  color: #FDA4AF;
}

.exec-kpi-owner {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8AB0D6;
  text-align: right;
  overflow-wrap: anywhere;
}

/* Bottom Grid: 3-Session Cadence + VP Ops Directive Gate + 60s Brief (.md) */
.exec-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
}

.exec-cadence-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.exec-cadence-tab {
  background: #09172B;
  color: #B8D2EC;
  border: 1px solid #1E3A5F;
  border-radius: var(--radius-sm);
  padding: 8px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-width: 0;
}

.exec-cadence-tab:hover {
  border-color: #38BDF8;
  color: #FFFFFF;
}

.exec-cadence-tab.active {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38BDF8;
  color: #7DD3FC;
}

.exec-cadence-box {
  background: #09172B;
  border: 1px solid #1B3355;
  border-radius: var(--radius-md);
  padding: 11px 13px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: #D6E6F7;
  line-height: 1.48;
  min-width: 0;
  overflow-wrap: anywhere;
}

.exec-owners-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.exec-owner-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #09172B;
  border: 1px solid #1C3658;
  color: #E6F2FF;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  min-width: 0;
}

.exec-owner-item.checked {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.11);
}

.exec-owner-item input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #34D399;
  flex-shrink: 0;
}

.exec-memo-pre {
  margin: 0;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #040B15;
  border: 1px solid #193252;
  color: #D6E6F7;
  font-family: var(--font-mono);
  font-size: 11.2px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 410px;
  overflow-y: auto;
}

/* Responsive Breakpoints (Strict 390px Zero-Overflow) */
@media (max-width: 1240px) {
  .exec-health-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .exec-sc-grid,
  .exec-controls-grid,
  .exec-charts-grid,
  .exec-pillars-grid,
  .exec-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .exec-health-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .exec-dir-grid,
  .exec-cadence-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .exec-kpi-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .exec-kpi-owner {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .exec-health-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
