/* ==========================================================================
   stevennguyen — OCC SK-06: Chế độ Màn hình Tường Chỉ huy 16:9 Không Cuộn
   OCC Big-Screen TV Wallboard / Crisis War-Room Mode
   Ultra-Lean Ribbon Trigger (2 DOM nodes) + Zero-Idle-DOM (#occ-warroom-slot = 0 nodes when closed)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Ultra-Lean Ribbon Trigger inside #occ-command-ribbon (2 DOM nodes total)
   -------------------------------------------------------------------------- */
.sk06-ribbon-slot {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  box-sizing: border-box;
}

.sk06-wallboard-btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-md);
  background: #0A1E38;
  border: 1px solid #38BDF8;
  color: #F0F9FF;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.38;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(2, 8, 20, 0.26);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sk06-wallboard-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  flex-shrink: 0;
}

.sk06-wallboard-btn:hover {
  background: #102B4E;
  border-color: #7DD3FC;
}

.sk06-wallboard-btn[aria-pressed="true"],
.sk06-wallboard-btn[data-sk06-active="true"] {
  background: #3B1D06;
  border-color: #FBBF24;
  color: #FEF3C7;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.42), 0 8px 20px rgba(2, 8, 20, 0.36);
}

.sk06-wallboard-btn[aria-pressed="true"]::before,
.sk06-wallboard-btn[data-sk06-active="true"]::before {
  background: #FBBF24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.32);
}

.sk06-wallboard-btn:focus-visible,
.sk06-top-btn:focus-visible,
.sk06-drill-btn:focus-visible,
.sk06-mini-btn:focus-visible,
.sk06-sign-btn:focus-visible,
.sk06-ack-checkbox:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. Zero-Idle-DOM War-Room Slot & Active Stage Suppression
   -------------------------------------------------------------------------- */
#occ-warroom-slot {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

#occ-warroom-slot:empty {
  display: none;
  margin: 0;
}

#occ-root.occ-warroom-active #occ-desk-stage {
  display: none !important;
}

#occ-root.occ-warroom-active .occ-desk-switcher {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   3. Compact 16:9 Crisis Command Wallboard Surface (<= 780px @ 1440x900)
   -------------------------------------------------------------------------- */
.sk06-wallboard-panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: var(--radius-lg, 14px);
  background: #050E1C;
  border: 1px solid #234975;
  color: #F0F7FF;
  box-shadow: 0 16px 38px rgba(2, 6, 16, 0.5);
}

.sk06-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #173458;
  min-width: 0;
}

.sk06-topbar-main {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 100%;
}

.sk06-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #7DD3FC;
  margin: 0 0 2px;
  overflow-wrap: anywhere;
}

.sk06-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.sk06-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
  overflow-wrap: anywhere;
}

.sk06-pulse-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #3B0A18;
  border: 1px solid #FB7185;
  color: #FFE4E8;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.sk06-pulse-badge[data-sk06-pulse-tone="warn"] {
  background: #362005;
  border-color: #FBBF24;
  color: #FEF3C7;
}

.sk06-pulse-badge[data-sk06-pulse-tone="good"] {
  background: #062C21;
  border-color: #34D399;
  color: #D1FAE5;
}

.sk06-disclaimer {
  margin-top: 5px;
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  background: #2B1805;
  border: 1px solid #F59E0B;
  color: #FDE68A;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.sk06-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.sk06-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: var(--radius-sm, 8px);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.sk06-copy-btn {
  background: #0C2545;
  border: 1px solid #38BDF8;
  color: #F0F9FF;
}

.sk06-copy-btn:hover {
  background: #12335C;
}

.sk06-exit-btn {
  background: #3B0D1D;
  border: 1px solid #FB7185;
  color: #FFE4E8;
}

.sk06-exit-btn:hover {
  background: #4E1227;
}

/* --------------------------------------------------------------------------
   4. 2x2 Responsive Crisis Quadrant Grid
   -------------------------------------------------------------------------- */
.sk06-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
  max-width: 100%;
}

.sk06-quad {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #081528;
  border: 1px solid #1B3B63;
  color: #F0F7FF;
}

.sk06-quad[data-sk06-quad-tone="alert"] {
  border-color: rgba(251, 113, 133, 0.62);
}

.sk06-quad[data-sk06-quad-tone="warn"] {
  border-color: rgba(251, 191, 36, 0.58);
}

.sk06-quad[data-sk06-quad-tone="good"] {
  border-color: rgba(52, 211, 153, 0.56);
}

.sk06-quad-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  min-width: 0;
}

.sk06-quad-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
  color: #F8FAFC;
  overflow-wrap: anywhere;
}

.sk06-quad-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #3F0D1E;
  border: 1px solid #FB7185;
  color: #FFE4E8;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.sk06-quad-badge[data-sk06-badge-tone="warn"] {
  background: #382106;
  border-color: #FBBF24;
  color: #FEF3C7;
}

.sk06-quad-badge[data-sk06-badge-tone="good"] {
  background: #062E22;
  border-color: #34D399;
  color: #D1FAE5;
}

.sk06-svg-wrap {
  min-width: 0;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #153154;
  background: #040B16;
  box-sizing: border-box;
}

.sk06-status-strip {
  padding: 4px 8px;
  border-radius: 6px;
  background: #2A0A16;
  border: 1px solid #BE123C;
  color: #FFE4E8;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.32;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sk06-status-strip[data-sk06-strip-tone="warn"] {
  background: #281805;
  border-color: #D97706;
  color: #FEF3C7;
}

.sk06-status-strip[data-sk06-strip-tone="good"] {
  background: #06251C;
  border-color: #10B981;
  color: #D1FAE5;
}

.sk06-quad-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.sk06-foot-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #BAE6FD;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sk06-drill-btn,
.sk06-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.28;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.sk06-drill-primary {
  background: #0D284A;
  border: 1px solid #38BDF8;
  color: #F0F9FF;
}

.sk06-drill-primary:hover {
  background: #133661;
}

.sk06-drill-secondary,
.sk06-mini-btn {
  background: #0B1E36;
  border: 1px solid #3B6998;
  color: #E2F1FF;
}

.sk06-drill-secondary:hover,
.sk06-mini-btn:hover {
  background: #122C4D;
  border-color: #7DD3FC;
}

/* --------------------------------------------------------------------------
   5. Q3: T-Minus Decision Horizon Top 4 SLA Rows
   -------------------------------------------------------------------------- */
.sk06-tminus-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.sk06-sla-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 7px;
  background: #0B1B32;
  border: 1px solid #1E3E66;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.sk06-sla-row[data-sk06-sla-tone="alert"] {
  border-color: rgba(251, 113, 133, 0.65);
  background: #1A0B1A;
}

.sk06-sla-row[data-sk06-sla-tone="warn"] {
  border-color: rgba(251, 191, 36, 0.55);
}

.sk06-sla-row[data-sk06-sla-tone="good"] {
  border-color: rgba(52, 211, 153, 0.55);
  background: #071F1D;
}

.sk06-sla-clock {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 5px;
  background: #450A1B;
  border: 1px solid #FB7185;
  color: #FFF1F2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
}

.sk06-sla-row[data-sk06-sla-tone="warn"] .sk06-sla-clock {
  background: #3B2106;
  border-color: #FBBF24;
  color: #FEF3C7;
}

.sk06-sla-row[data-sk06-sla-tone="calm"] .sk06-sla-clock {
  background: #0C2849;
  border-color: #38BDF8;
  color: #E0F2FE;
}

.sk06-sla-row[data-sk06-sla-tone="good"] .sk06-sla-clock {
  background: #062E22;
  border-color: #34D399;
  color: #D1FAE5;
}

.sk06-sla-body {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.28;
  color: #E6F2FF;
  overflow-wrap: anywhere;
}

.sk06-sla-body strong {
  color: #FFFFFF;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   6. Q4: Executive Daily KPIs & Human-in-the-Loop Duty Director Gate
   -------------------------------------------------------------------------- */
.sk06-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.sk06-kpi-tile {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 5px 7px;
  border-radius: 7px;
  background: #0B1C34;
  border: 1px solid #1E3E67;
}

.sk06-kpi-tile[data-sk06-kpi-tone="good"] {
  border-color: rgba(52, 211, 153, 0.5);
}

.sk06-kpi-tile[data-sk06-kpi-tone="warn"] {
  border-color: rgba(251, 191, 36, 0.5);
}

.sk06-kpi-tile[data-sk06-kpi-tone="alert"] {
  border-color: rgba(251, 113, 133, 0.58);
}

.sk06-kpi-lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: #B4D4F4;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sk06-kpi-val {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sk06-kpi-tile[data-sk06-kpi-tone="good"] .sk06-kpi-val {
  color: #6EE7B7;
}

.sk06-kpi-tile[data-sk06-kpi-tone="warn"] .sk06-kpi-val {
  color: #FDE68A;
}

.sk06-kpi-tile[data-sk06-kpi-tone="alert"] .sk06-kpi-val {
  color: #FDA4AF;
}

.sk06-gate-box {
  padding: 6px 8px;
  border-radius: 8px;
  background: #0A1B31;
  border: 1px solid #244872;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.sk06-ack-label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: #F0F7FF;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sk06-ack-checkbox {
  margin: 2px 0 0;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: #38BDF8;
  cursor: pointer;
}

.sk06-gate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.sk06-sign-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #BAE6FD;
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sk06-sign-status[data-sk06-signed="true"] {
  color: #6EE7B7;
}

.sk06-sign-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: #073B2C;
  border: 1px solid #34D399;
  color: #ECFDF5;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.28;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  opacity: 1 !important;
}

.sk06-sign-btn:hover:not(:disabled) {
  background: #094D3A;
}

.sk06-sign-btn:disabled {
  background: #10243E;
  border-color: #315680;
  color: #C8E2FF;
  cursor: not-allowed;
  opacity: 1 !important;
}

.sk06-sign-btn[data-sk06-signed="true"] {
  background: #064E3B;
  border-color: #6EE7B7;
  color: #F0FDF4;
}

/* SK-01 Exception-Only integration inside War-Room */
#occ-root.occ-exception-only .sk06-kpi-tile[data-sk06-kpi-tone="good"],
#occ-root.occ-exception-only .sk06-sla-row[data-sk06-sla-tone="good"] {
  opacity: 0.28;
  filter: saturate(0.35);
}

#occ-root.occ-exception-only .sk06-kpi-tile[data-sk06-kpi-tone="good"]:hover,
#occ-root.occ-exception-only .sk06-sla-row[data-sk06-sla-tone="good"]:hover,
#occ-root.occ-exception-only .sk06-sla-row[data-sk06-sla-tone="good"]:focus-within {
  opacity: 0.94;
  filter: none;
}

/* --------------------------------------------------------------------------
   7. Responsive Collapse (<= 980px & 390px Mobile Zero Horizontal Overflow)
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .sk06-ribbon-slot {
    flex: 1 1 100%;
  }

  .sk06-quad-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .sk06-wallboard-panel {
    padding: 9px;
  }

  .sk06-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sk06-sla-row {
    flex-wrap: wrap;
  }

  .sk06-sla-body {
    flex: 1 1 180px;
  }
}

@media (max-width: 420px) {
  .sk06-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
