/* ==========================================================================
   ODIN OS v5.0 — EXECUTIVE LIGHT HUD THEME
   File: public/css/executive_hud.css
   Section: 9.1 — Executive Light HUD Theme & Global CSS Overrides
   ========================================================================== */

/* ------------------------------------------------------------------------
   SUB-ANCHOR 9.1.1: ROOT VARIABLES, RESET & BODY CANVAS
   ------------------------------------------------------------------------ */
:root {
  --bg-canvas: #eef2f6;
  --card-bg: #ffffff;
  --surface-elevated: #f8fafc;
  --border-color: #cbd5e1;
  --border-subtle: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #1e293b;
  --text-muted: #475569;
  --accent-blue: #2563eb;
  --accent-sky: #0284c7;
  --accent-teal: #0d9488;
  --threat-critical: #dc2626;
  --threat-elevated: #d97706;
  --threat-active: #16a34a;
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-elevated: 0 4px 12px rgba(15, 23, 42, 0.08);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
  width: 100vw; 
  height: 100vh; 
  overflow: hidden; 
  font-family: var(--font-sans); 
  font-size: 12px; 
  background-color: var(--bg-canvas); 
  color: var(--text-primary); 
  -webkit-font-smoothing: antialiased; 
}

/* OVERFLOW OVERRIDE FOR CERTIFICATE POPUPS */
body.pdf-export-body,
html.pdf-export-html {
  width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  overflow: visible !important;
  overflow-y: auto !important;
  background-color: #ffffff !important;
}

/* ------------------------------------------------------------------------
   SUB-ANCHOR 9.1.2: SECURITY GATE OVERLAY & AUTH STYLING
   ------------------------------------------------------------------------ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(30, 41, 59, 0.95), rgba(10, 15, 29, 0.98));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth-overlay-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  width: 420px;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  text-align: center;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: #f8fafc;
}

.auth-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.auth-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.auth-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin: 0 0 6px 0;
}

.auth-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.oauth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0 18px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-divider-text {
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.08em;
  font-family: var(--font-mono, monospace);
}

.odin-auth-body {
  display: flex;
  flex-direction: column;
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #f8fafc;
  font-size: 13px;
  font-family: var(--font-mono, monospace);
  transition: all 0.15s ease;
  outline: none;
}

.form-input::placeholder {
  color: #64748b;
}

.form-input:focus {
  background: rgba(30, 41, 59, 0.9);
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.auth-btn {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-btn-demo {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-btn-demo:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.odin-auth-status-box {
  background: rgba(14, 116, 144, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 12px;
  text-align: left;
}

.odin-auth-status-title {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.06em;
  font-family: var(--font-mono, monospace);
  margin-bottom: 4px;
}

.odin-auth-status-msg {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0;
}

.odin-auth-error {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  padding: 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}

.odin-auth-pending-hidden,
.odin-auth-error-hidden {
  display: none;
}

/* ------------------------------------------------------------------------
   SUB-ANCHOR 9.1.3: GLOBAL COMMAND HEADER & NAVIGATION TABS
   ------------------------------------------------------------------------ */
.command-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); 
  border-bottom: 1px solid #cbd5e1; 
  padding: 10px 24px; 
  font-family: var(--font-mono); 
  flex-shrink: 0;
  height: 54px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  z-index: 30;
}

.header-brand-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo-container {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.odin-brand-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo-text { 
  font-family: var(--font-sans); 
  font-size: 15px; 
  font-weight: 900; 
  letter-spacing: 0.22em; 
  color: #0f172a; 
}

/* 5 Executive Domains Dropdown Hierarchy */
.nav-group-executive { 
  display: flex; 
  align-items: center;
  gap: 10px; 
  height: 100%;
}

.nav-domain-dropdown {
  position: relative;
  display: inline-block;
  height: 100%;
}

.nav-domain-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #475569;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  letter-spacing: 0.05em;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
  height: 36px;
  box-sizing: border-box;
}

.nav-domain-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.nav-domain-btn.active {
  background: #0f172a;
  color: #ffffff;
  font-weight: 800;
  border: 1px solid #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.nav-caret {
  font-size: 9px;
  opacity: 0.7;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  background: #0f172a;
  border: 1px solid #334155;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  padding: 6px 0;
  z-index: 1050;
}

.nav-domain-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: #1e293b;
  color: #38bdf8;
  padding-left: 19px;
}

.dropdown-item.dropdown-active-item {
  background: #1e293b;
  color: #38bdf8;
  font-weight: 800;
  border-left: 3px solid #38bdf8;
}

/* Top-Right Header Operator Cluster */
.header-utility-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.operator-session-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 10px;
  color: #334155;
}

.operator-pulse-indicator {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.operator-label {
  font-weight: 600;
  color: #64748b;
}

.operator-name {
  font-weight: 800;
  color: #0f172a;
}

.operator-divider {
  color: #cbd5e1;
}

.clearance-tag {
  color: #1e40af;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------------
   SUB-ANCHOR 9.1.4: VIEWPORT SPLIT PANES & MAP HUD LAYOUT
   ------------------------------------------------------------------------ */
.marker-checkpoint-secure {
  background: #10b981;
  border-color: #059669;
}

.marker-checkpoint-alert {
  background: #ef4444;
  border-color: #dc2626;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

/* LIVE SATELLITE TRANSPONDER DIRECTIONAL BEACON (ZERO INLINE CSS) */
.tactical-transponder-beacon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.tactical-transponder-beacon.transponder-nominal {
  background: radial-gradient(circle, #0284c7 0%, #0f172a 100%);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85);
}

.tactical-transponder-beacon.transponder-sos {
  background: radial-gradient(circle, #ef4444 0%, #7f1d1d 100%);
  border-color: #fecaca;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.95);
  animation: transponderSosPulse 1.2s infinite ease-in-out;
}

.transponder-heading-arrow {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}

@keyframes transponderSosPulse {
  0% { transform: scale(1); box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); }
  50% { transform: scale(1.22); box-shadow: 0 0 22px rgba(239, 68, 68, 1); }
  100% { transform: scale(1); box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); }
}

.transponder-popup-card {
  min-width: 265px;
  max-width: 300px;
  box-sizing: border-box;
  font-family: var(--font-sans, sans-serif);
}

.transponder-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.transponder-popup-owner {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.transponder-popup-unit {
  font-size: 9.5px;
  color: #475569;
  margin-top: 2px;
  margin-bottom: 6px;
  word-break: break-all;
}

.transponder-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 6px;
}

.transponder-popup-cell {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.transponder-popup-label {
  font-size: 7.5px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transponder-popup-val {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transponder-popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding-top: 5px;
  border-top: 1px dashed #cbd5e1;
}

.margin-t-2 {
  margin-top: 2px;
}

.margin-t-4 {
  margin-top: 4px;
}
.command-viewport, #odin-main-viewport { 
  display: flex; 
  flex-direction: row; 
  flex: 1 1 auto;
  height: calc(100% - 54px); 
  width: 100%; 
  min-height: 0;
  overflow: hidden; 
  background-color: var(--bg-canvas); 
  position: relative; 
  box-sizing: border-box; 
}

.master-data-pane, #grid-viewport-column { 
  width: 48%; 
  min-width: 320px; 
  max-width: calc(100% - 320px); 
  height: 100%; 
  border-right: 1px solid var(--border-color); 
  background: var(--card-bg); 
  display: flex; 
  flex-direction: column; 
  overflow: hidden; 
  flex: 0 0 auto; 
  box-sizing: border-box; 
}

.grid-table-wrapper, #grid-table-container { 
  width: 100%; 
  max-width: 100%;
  flex: 1 1 auto; 
  overflow-x: auto; 
  overflow-y: auto; 
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
}

#grid-table-container table {
  table-layout: auto;
  width: 100%;
  min-width: max-content;
  box-sizing: border-box;
}

#grid-table-container th {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

#grid-table-container td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telemetry-map-pane, #map-viewport-column { 
  flex: 1 1 0px; 
  min-width: 320px; 
  height: 100%; 
  display: flex; 
  flex-direction: column; 
  background: var(--card-bg); 
  position: relative; 
  overflow: hidden; 
  box-sizing: border-box; 
}

#map-wrapper { 
  width: 100%; 
  height: 290px; 
  min-height: 140px; 
  max-height: calc(100% - 150px);
  position: relative; 
  background: #090d16; 
  border-bottom: 1px solid var(--border-color); 
  flex: 0 0 auto; 
  box-sizing: border-box;
}

#map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

#telemetry-hud-pane { 
  flex: 1 1 0px; 
  padding: 14px 18px; 
  background: #ffffff; 
  overflow-y: auto; 
  display: flex; 
  flex-direction: column; 
  min-height: 150px;
  box-sizing: border-box;
}

/* ------------------------------------------------------------------------
   SUB-ANCHOR 9.1.4A: DESKTOP APP FRAME CONTAINER (.command-desk-frame)
   ------------------------------------------------------------------------ */
.command-desk-frame {
  padding: 12px;
  background: radial-gradient(circle at 50% 0%, #111827 0%, #090d16 100%);
  height: 100vh;
  max-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Lockdown Viewport height respecting header (52px) and footer (28px) inside padded frame */
.command-viewport, #odin-main-viewport { 
  display: flex; 
  flex-direction: row; 
  flex: 1 1 auto;
  height: calc(100% - 80px) !important;
  max-height: calc(100% - 80px) !important;
  width: 100%; 
  min-height: 0;
  overflow: hidden; 
  background-color: var(--bg-canvas); 
  position: relative; 
  box-sizing: border-box; 
}

/* Suppress stray unstyled debug checkbox at bottom of left pane */
#grid-viewport-column > input[type="checkbox"],
#grid-table-container > input[type="checkbox"],
.master-data-pane > input[type="checkbox"] {
  display: none !important;
}

/* Right Pane Bleed-Out Lockdown */
.telemetry-container-slot, #telemetry-hud-container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.telemetry-container-slot > *,
#telemetry-hud-container > * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Hardened Sovereign Command Desktop Footer */
.command-desktop-footer {
  height: 28px;
  min-height: 28px;
  background: #0f172a;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #94a3b8;
  flex-shrink: 0;
  box-sizing: border-box;
  z-index: 20;
}

.footer-left-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-copyright {
  font-weight: 700;
  color: #f8fafc;
}

.footer-separator {
  color: #334155;
}

.footer-spec {
  color: #94a3b8;
}

.footer-right-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.footer-status-label {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #38bdf8;
}

/* ------------------------------------------------------------------------
   SUB-ANCHOR 9.1.4B: CLEAN FORM & CHECKBOX COMPONENT STYLES
   ------------------------------------------------------------------------ */

/* FLOATING MAPBOX LAYER CONTROLLER HUD */
.map-floating-layer-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  width: 195px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  box-sizing: border-box;
  font-family: var(--font-mono, monospace);
  transition: all 0.2s ease-in-out;
}

.map-floating-layer-panel.collapsed .map-layer-control-body {
  display: none;
}

.map-floating-layer-panel.collapsed .map-layer-toggle-indicator {
  transform: rotate(-90deg);
}

.map-layer-control-header {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.6);
  user-select: none;
}

.map-layer-control-title {
  font-size: 9.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.map-layer-toggle-indicator {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.15s ease-in-out;
}

.map-layer-control-body {
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 245px;
  overflow-y: auto;
}

.map-layer-subgroup-title {
  font-size: 8px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.map-layer-radio-group,
.map-layer-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.map-layer-radio-label,
.map-layer-checkbox-label {
  font-size: 8.5px;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.map-layer-radio-label input,
.map-layer-checkbox-label input {
  cursor: pointer;
  accent-color: #0284c7;
  margin: 0;
}

/* GPX VOYAGE UPLOAD, DRAG-AND-DROP & MARITIME TELEMETRY STRIP */
.map-gpx-control-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.btn-map-gpx-upload {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid #38bdf8;
  border-radius: 3px;
  color: #38bdf8;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-map-gpx-upload:hover {
  background: #0284c7;
  color: #ffffff;
}

.btn-map-gpx-clear {
  padding: 4px 6px;
  background: rgba(220, 38, 38, 0.25);
  border: 1px solid #f87171;
  border-radius: 3px;
  color: #fca5a5;
  font-size: 8.5px;
  font-weight: 800;
  cursor: pointer;
}

.btn-map-gpx-clear:hover {
  background: #dc2626;
  color: #ffffff;
}

.map-gpx-telemetry-pill {
  margin-top: 4px;
  padding: 4px 6px;
  background: rgba(14, 116, 144, 0.32);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 3px;
  font-size: 8px;
  line-height: 1.35;
  color: #e0f2fe;
  word-break: break-word;
}

#map-wrapper.map-gpx-drag-active::after {
  content: "⚓ DROP COMMERCIAL .GPX ROUTE FILE TO PLOT YACHT TRACK & WAYPOINTS";
  position: absolute;
  inset: 10px;
  z-index: 40;
  background: rgba(15, 23, 42, 0.88);
  border: 2px dashed #38bdf8;
  border-radius: 6px;
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gpx-waypoint-pin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0284c7;
  border: 2px solid #f8fafc;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.maritime-voyage-telemetry-strip {
  background: #f0f9ff;
  border: 1px solid #7dd3fc;
  border-left: 4px solid #0284c7;
  border-radius: 4px;
  padding: 8px 12px;
}

.maritime-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.maritime-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.maritime-metric-cell {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 3px;
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
}

.maritime-metric-label {
  font-size: 7.5px;
  font-weight: 800;
  color: #0369a1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.maritime-metric-val {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}

.gsbil-corridor-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gsbil-corridor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 3px;
  font-size: 10px;
  color: #0f172a;
}

/* MANDATE 1 UNIVERSAL DISPLAY ISOLATION & VISIBILITY OVERRIDES */
.hidden,
.hidden-element,
div.hidden,
div.hidden-element,
.form-sub-card.hidden,
.form-sub-card.highlight-green.hidden,
.alert-box-blue-compact.hidden {
  display: none !important;
}

/* EXECUTIVE PDF EXPORT & ATTESTATION SEAL UTILITIES */
body.pdf-export-body,
html.pdf-export-html {
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  overflow-y: auto !important;
}

.pdf-action-banner {
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pdf-action-text {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
}

.sig-attestation-svg-vector {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
}

.pdf-evidence-iframe {
  width: 100%;
  height: 480px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
}

.pdf-export-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #0f172a;
  margin: 0;
  padding: 16px 20px;
  font-size: 10px;
  line-height: 1.45;
  background: #ffffff;
}

.cert-container {
  max-width: 820px;
  margin: 0 auto;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.cert-brand {
  font-size: 11px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.5px;
}

.cert-subbrand {
  font-size: 8.5px;
  color: #64748b;
  font-weight: 600;
}

.cert-badge {
  background: #16a34a;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.doc-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.section-card {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: #ffffff;
}

.section-header-title {
  font-size: 10px;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 3px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.section-sentinel {
  border-left: 4px solid #f59e0b;
  background: #fffdf5;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}

.meta-cell {
  font-size: 9.5px;
}

.meta-label {
  font-weight: 700;
  color: #64748b;
  font-size: 8px;
  text-transform: uppercase;
  margin-bottom: 1px;
}

.meta-value {
  font-weight: 600;
  color: #0f172a;
  font-size: 10px;
}

.meta-value-highlight {
  font-weight: 700;
  color: #1d4ed8;
  font-size: 10px;
}

.signature-seal-card {
  border: 2px solid #16a34a;
  background: #f0fdf4;
  border-radius: 4px;
  padding: 10px;
  margin-top: 10px;
  page-break-inside: avoid;
}

.signature-seal-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #166534;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.sig-frame {
  background: #ffffff;
  border: 1px dashed #94a3b8;
  border-radius: 4px;
  padding: 8px 14px;
  min-height: 85px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  overflow: visible;
}

.sig-verified-pane {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sig-img {
  height: 80px;
  min-height: 70px;
  max-height: 95px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.sig-attestation-svg-vector {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 90px;
  display: block;
}

.sig-attestation-seal-text {
  font-weight: 800;
  color: #166534;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.sig-attestation-meta-text {
  font-size: 8px;
  color: #475569;
  margin-top: 2px;
}

.sig-audit-footer-note {
  font-size: 8px;
  color: #64748b;
  margin-top: 3px;
}

.btn-print {
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.no-print {
  text-align: center;
  margin-top: 14px;
}

.padding-y-4 {
  padding-top: 4px;
  padding-bottom: 4px;
}

.margin-t-6 {
  margin-top: 6px;
}

@media print {
  .no-print {
    display: none;
  }
}

.risk-gate-sig-container {
  display: block;
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
}


/* ------------------------------------------------------------------------
   SUB-ANCHOR 9.1.5: RESIZER GUTTERS & NON-SPATIAL OVERRIDES
   ------------------------------------------------------------------------ */
body.col-resize {
  cursor: col-resize !important;
  user-select: none !important;
}

body.col-resize * {
  cursor: col-resize !important;
  user-select: none !important;
  pointer-events: none !important;
}

body.col-resize #viewport-resizer-gutter {
  pointer-events: auto !important;
}

body.row-resize {
  cursor: row-resize !important;
  user-select: none !important;
}

body.row-resize * {
  cursor: row-resize !important;
  user-select: none !important;
  pointer-events: none !important;
}

body.row-resize #map-vertical-resizer-gutter {
  pointer-events: auto !important;
}

#grid-viewport-column {
  min-width: 320px;
  box-sizing: border-box;
}

#map-viewport-column {
  min-width: 320px;
  flex: 1 1 0%;
  box-sizing: border-box;
}

#viewport-resizer-gutter { 
  width: 6px !important; 
  min-width: 6px !important; 
  max-width: 6px !important;
  cursor: col-resize !important; 
  background: #cbd5e1; 
  transition: background 0.15s ease; 
  z-index: 1000; 
  user-select: none; 
  flex: 0 0 6px !important; 
  box-sizing: border-box; 
}

#viewport-resizer-gutter:hover, #viewport-resizer-gutter.dragging { 
  background: #2563eb !important; 
}

#map-vertical-resizer-gutter { 
  height: 6px !important; 
  min-height: 6px !important; 
  max-height: 6px !important;
  cursor: row-resize !important; 
  background: #cbd5e1; 
  transition: background 0.15s ease; 
  z-index: 1000; 
  user-select: none; 
  flex: 0 0 6px !important; 
  box-sizing: border-box; 
}

#map-vertical-resizer-gutter:hover, #map-vertical-resizer-gutter.dragging { 
  background: #2563eb !important; 
}

.non-spatial-active #map-wrapper,
.non-spatial-active #map-canvas,
.non-spatial-active #map-layer-control-hud,
.non-spatial-active #map-vertical-resizer-gutter,
.non-spatial-active .mapboxgl-map,
.non-spatial-active .mapboxgl-canvas-container { display: none !important; height: 0px !important; visibility: hidden !important; pointer-events: none !important; }

.non-spatial-active #map-viewport-column { display: flex !important; background: #ffffff !important; }
.non-spatial-active #telemetry-hud-pane { height: 100% !important; flex: 1 1 100% !important; border-top: none !important; }.non-spatial-active #map-viewport-column { display: flex !important; background: #ffffff !important; }
.non-spatial-active #telemetry-hud-pane { height: 100% !important; flex: 1 1 100% !important; border-top: none !important; }

/* ------------------------------------------------------------------------
   SUB-ANCHOR 9.1.6: BUTTONS, COMPONENT CONTAINERS & HEADERS
   ------------------------------------------------------------------------ */

/* Unified Executive Design System Utility Tokens */
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.block { display: block; }
.cursor-pointer { cursor: pointer; }
.overflow-x-auto { overflow-x: auto; }
.margin-r-4 { margin-right: 4px; }
.margin-r-6 { margin-right: 6px; }
.margin-l-4 { margin-left: 4px; }
.margin-t-4 { margin-top: 4px; }
.mb-12 { margin-bottom: 12px; }
.mt-2 { margin-top: 2px; }
.mt-12 { margin-top: 12px; }
.text-center { text-align: center; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.background-slate-50 { background-color: #f8fafc; }
.truncate-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sticky Pane & Pinned Headers */
.sticky-header-pinned {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f8fafc;
}

/* Unified Left-Aligned Action Cluster Button Group */
.cell-actions-left {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  vertical-align: middle;
  white-space: nowrap;
}

.col-w-actions-left {
  width: 90px;
  min-width: 90px;
  text-align: left;
  padding-left: 8px !important;
  padding-right: 4px !important;
}

/* Micro Action Buttons */
.btn-micro-subtle {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  line-height: 1.3;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.12s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-micro-subtle:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-micro-subtle.primary {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.btn-micro-subtle.primary:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e40af;
}

.btn-micro-subtle.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.btn-micro-subtle.danger:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #991b1b;
}

.btn-grid-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1.3;
  letter-spacing: 0.04em;
  transition: all 0.12s ease-in-out;
}

.btn-grid-action-primary:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* High-Contrast Status Pills */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2.5px 7px;
  font-size: 9.5px;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.2;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.status-badge.active,
.status-badge.operational,
.status-badge.in-date {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #4ade80;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.08);
}

.status-badge.warning,
.status-badge.expiring,
.status-badge.maintenance-due {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #fbbf24;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.08);
}

.status-badge.critical,
.status-badge.expired,
.status-badge.critical-alert {
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #f87171;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.1);
}

.status-badge.info {
  background: #e0f2fe;
  color: #0c4a6e;
  border: 1px solid #38bdf8;
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.08);
}

/* Executive 2-Tier Telemetry Header Strip */
.telemetry-card-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.telemetry-title-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.telemetry-route-headline {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telemetry-action-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-height: 28px;
}

.action-cluster-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  vertical-align: middle;
}

.action-cluster-group > button {
  white-space: nowrap;
  flex-shrink: 0;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* External Navigation Launcher Capsule */
.nav-launcher-capsule {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 6px;
  gap: 4px;
  height: 24px;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.nav-launcher-label {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.btn-nav-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 1px 7px;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 16px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-external:hover {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

.btn-nav-external svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

/* Risk Classification Badge Colors inside Form */
.risk-tier-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.risk-tier-badge.tier-1 { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.risk-tier-badge.tier-2 { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.risk-tier-badge.tier-3 { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.pane-header { 
  padding: 10px 16px; 
  border-bottom: 1px solid var(--border-color); 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  background: #ffffff; 
  flex-shrink: 0; 
  position: sticky;
  top: 0;
  z-index: 25;
}
.pane-title { font-family: var(--font-sans); font-weight: 800; font-size: 13px; letter-spacing: 0.18em; color: var(--text-primary); text-transform: uppercase; }
.hud-section-title { font-family: var(--font-sans); font-size: 12px; font-weight: 800; letter-spacing: 0.15em; color: var(--text-primary); margin-bottom: 10px; }

/* STICKY PANE CONTROLS & HEADER ACTIONS */
.sticky-grid-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.grid-header-toolbar { 
  padding: 9px 14px; 
  background: #f8fafc; 
  border-bottom: 1px solid #cbd5e1; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* ------------------------------------------------------------------------
   SUB-TASK 10.1: STANDARDIZED 44PX ACTION CLUSTERS & GRID HYGIENE
   ------------------------------------------------------------------------ */
.data-table tbody tr.interactive-row {
  height: 44px;
  max-height: 44px;
}

.data-table tbody tr.interactive-row td {
  height: 44px;
  padding: 0 8px;
  vertical-align: middle;
  box-sizing: border-box;
}

.col-w-actions-left {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 86px !important;
  white-space: nowrap;
  text-align: left;
  padding-left: 6px !important;
  padding-right: 4px !important;
}

.col-w-actions-left.actions-triple {
  width: 134px !important;
  min-width: 134px !important;
  max-width: 138px !important;
}

.col-w-actions-left.actions-triple .btn-hud-group {
  gap: 2px;
}

.col-w-actions-left.actions-triple .btn-hud-action,
.col-w-actions-left.actions-triple .btn-hud-secondary,
.col-w-actions-left.actions-triple .btn-hud-telemetry {
  padding: 0 4.5px;
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.col-w-actions-left .btn-grid-action-primary,
.col-w-actions-left .btn-micro-subtle {
  padding: 2px 5px !important;
  font-size: 8.5px !important;
  letter-spacing: 0.02em !important;
}

/* Constrained Identifier Columns: Clamped width preserves Primary Route & Hub Viewport Space */
.col-w-loc-id,
.col-w-transit-id,
.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 66px !important;
  font-size: 9px !important;
  letter-spacing: -0.4px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.col-w-loc-id code,
.col-w-transit-id code,
.data-table td:nth-child(2) code {
  font-size: 9px !important;
  letter-spacing: -0.4px !important;
}

.col-w-loc-name,
.col-w-transit-route {
  width: auto !important;
  min-width: 145px !important;
}

.col-w-loc-cat {
  width: 110px !important;
  min-width: 100px !important;
}

.col-w-loc-sec {
  width: 100px !important;
  min-width: 95px !important;
}

.col-w-loc-geo {
  width: 115px !important;
  min-width: 110px !important;
}

.col-w-transit-time {
  width: 115px !important;
  min-width: 105px !important;
}

.col-w-transit-status {
  width: 125px !important;
  min-width: 115px !important;
}

.col-w-transit-mode {
  width: 105px !important;
  min-width: 95px !important;
}

.btn-hud-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  height: 24px;
  width: 100%;
  vertical-align: middle;
}

.btn-hud-action,
.btn-hud-secondary,
.btn-hud-telemetry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 6px;
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.12s ease-in-out;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-hud-action {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
}
.btn-hud-action:hover {
  background: #1e293b;
  border-color: #1e293b;
}

.btn-hud-secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.btn-hud-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-hud-telemetry {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.btn-hud-telemetry:hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #60a5fa;
}

.cell-actions-left {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  vertical-align: middle;
  white-space: nowrap;
}
.col-w-incident-id { width: 104px; min-width: 104px; }
.col-w-incident-summary { min-width: 220px; max-width: 300px; }
.col-w-incident-sev { width: 92px; min-width: 92px; text-align: center; }
.col-w-incident-sop { min-width: 150px; max-width: 200px; }
.col-w-incident-geo { width: 145px; min-width: 145px; }
.col-w-incident-status { width: 92px; min-width: 92px; text-align: center; }

/* Dedicated Task Grid Column Width Hierarchy */
.col-w-task-act     { width: 68px; min-width: 68px; text-align: center; }
.col-w-task-id      { width: 105px; min-width: 95px; font-family: var(--font-mono); }
.col-w-task-type    { width: 132px; min-width: 125px; text-align: center; }
.col-w-task-staff   { width: 14%; min-width: 110px; padding-left: 8px; }
.col-w-task-proj    { width: 15%; min-width: 120px; }
.col-w-task-summary { width: 30%; min-width: 190px; }
.col-w-task-sop     { width: 95px; min-width: 85px; text-align: center; }
.col-w-task-status  { width: 85px; min-width: 80px; text-align: center; }

/* Constrained Micro Badges for Grid Cells */
.task-type-badge {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 2px;
  letter-spacing: 0.03em;
  box-sizing: border-box;
}
/* Fixed Table Layout & Single/Double Line Ellipsis Containment */
.table-fixed-layout {
  table-layout: fixed !important;
  width: 100% !important;
}
.text-truncate-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}
.grid-cell-stacked-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}
.grid-cell-stacked-compact .headline-text {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid-cell-stacked-compact .summary-preview {
  font-size: 9.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-micro-subtle {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  line-height: 1.2;
  border-radius: 2px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  transition: all 0.12s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-micro-subtle:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}
.btn-micro-subtle.primary {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.btn-micro-subtle.primary:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}
.btn-micro-subtle.danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.btn-micro-subtle.danger:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #991b1b;
}

.btn-dark { background: #0f172a; color: #ffffff; border: 1px solid #0f172a; padding: 6px 12px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; cursor: pointer; letter-spacing: 0.1em; border-radius: 2px; }
.btn-blue { background: var(--accent-blue); color: #ffffff; border: none; padding: 3px 8px; font-size: 9px; font-weight: 700; cursor: pointer; border-radius: 2px; }
.btn-outline { background: #f8fafc; border: 1px solid var(--border-color); padding: 5px 10px; font-size: 10px; font-weight: 700; cursor: pointer; border-radius: 2px; color: #334155; }
.btn-outline:hover { background: #f1f5f9; color: #0f172a; }
.btn-outline.active { background: #0f172a; color: #ffffff; border-color: #0f172a; }

/* TEMPORAL SEGMENTATION FILTER STRIP & HORIZON PILLS (SUB-TASK 11.10G) */
.temporal-filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

.temporal-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.btn-temporal-pill {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.12s ease;
}

.btn-temporal-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-temporal-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.grid-quick-search {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: #ffffff;
  color: #0f172a;
  min-width: 150px;
  max-width: 210px;
  box-sizing: border-box;
}

.grid-quick-search:focus {
  outline: none;
  border-color: #0284c7;
}

.horizon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5px 6px;
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  font-weight: 800;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.horizon-pill.overdue {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.horizon-pill.imminent {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

.horizon-pill.active-now {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #4ade80;
}

.horizon-pill.upcoming {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}

.horizon-pill.archive {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* DYNAMIC 4-HOUR ESTATE SWEEP HEADER & COMPACT ACTIONS BAR */
.estate-sweep-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.checkpoint-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.checkpoint-badge.secure { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.checkpoint-badge.defect { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.checkpoint-badge.alert  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.estate-sweep-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.estate-sweep-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.estate-sweep-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #475569;
}

.estate-sweep-compact-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* GLANCEABLE 4-HOUR FORECAST & OSINT METRIC STRIP */
.estate-forecast-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.estate-forecast-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.estate-forecast-label {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.estate-forecast-value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* SIDE-BY-SIDE SPLIT GRID: TACTICAL PERIMETER ALERTS & PATROL LOGS */
.telemetry-split-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.telemetry-split-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.telemetry-split-column .telemetry-report-box,
.telemetry-split-column .alert-box-danger-compact {
  height: 100%;
  margin-bottom: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.compact-scroll-panel {
  max-height: 175px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.flex-column-gap-6 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.linked-transit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  font-size: 10px;
}

/* ------------------------------------------------------------------------
   SUB-ANCHOR 9.1.7: MODALS, OVERLAYS & FORM GRIDS
   ------------------------------------------------------------------------ */

/* CRISP MODAL BACKDROP & CENTERING LOCK */
#odin-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

#odin-modal-overlay.visible {
    display: flex !important;
}

#odin-modal-overlay.hidden {
    display: none !important;
}

/* MODAL FORM COMPONENT PARITY: CRISP 1PX BORDERS & UNIFORM FOCUS RINGS */
.modal-input-text,
.modal-select-control,
.modal-textarea-control,
.form-control,
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 7px 10px;
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    outline: none;
}

.modal-input-text:hover,
.modal-select-control:hover,
.modal-textarea-control:hover {
    border-color: #94a3b8;
}

.modal-input-text:focus,
.modal-select-control:focus,
.modal-textarea-control:focus,
.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
    outline: none;
}

.modal-input-disabled,
.form-control[readonly],
.form-input[readonly] {
    width: 100%;
    padding: 7px 10px;
    font-size: 11px;
    font-family: var(--font-mono, monospace);
    font-weight: 700;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f8fafc;
    color: #475569;
    cursor: not-allowed;
    box-sizing: border-box;
}

.modal-textarea-control,
.form-textarea {
    resize: vertical;
    min-height: 70px;
    line-height: 1.45;
}

#append_med_witness_section,
.witness-stack-card {
    background: #fef2f2;
    border: 1px solid #f87171;
    border-left: 4px solid #dc2626;
    border-radius: 4px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.witness-notice-text {
    font-size: 11px;
    color: #991b1b;
    line-height: 1.4;
    font-weight: 600;
}

.witness-stack-card .signature-pad-container {
    background: #ffffff;
    border: 1px solid #fca5a5;
    padding: 10px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.witness-stack-card .signature-canvas-wrapper {
    background: #ffffff;
    border: 1px dashed #dc2626;
    border-radius: 4px;
    margin-top: 6px;
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.witness-stack-card .signature-canvas {
    width: 100%;
    height: 90px;
    display: block;
    cursor: crosshair;
}

.modal-dialog-shell {
    background-color: var(--card-bg, #ffffff);
    border-radius: 6px;
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: 0 25px 40px -5px rgba(0, 0, 0, 0.35), 0 15px 20px -5px rgba(0, 0, 0, 0.15);
    width: 740px;
    max-width: 94vw;
    height: 88vh;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

#odin-crud-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.modal-form-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 20px;
    box-sizing: border-box;
}

.modal-form-scroll-body > * {
    max-width: 100%;
    box-sizing: border-box;
}

.modal-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e2e8f0;
  padding: 12px 18px;
  background-color: #f8fafc;
  box-sizing: border-box;
  flex-shrink: 0;
}

.modal-dialog-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-dialog-close {
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
}

.modal-dialog-close:hover {
  color: #0f172a;
}

/* SECTION HEADERS & SUB-CARDS */
.form-section-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #2563eb;
  border-radius: 3px;
  padding: 6px 10px;
  margin-bottom: 10px;
  margin-top: 14px;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-section-banner:first-child {
  margin-top: 0;
}

.form-section-banner.success {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.form-section-banner.danger {
  border-left-color: #dc2626;
  background: #fef2f2;
}

/* FORENSIC TIMELINE & SITREP STACKING CLASSES */
.sitrep-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.sitrep-node-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #3b82f6;
  border-radius: 4px;
  padding: 8px 12px;
}

.sitrep-node-card.initial-report {
  border-left-color: #0f172a;
  background: #f8fafc;
}

.sitrep-node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #64748b;
  margin-bottom: 4px;
}

.sitrep-node-author {
  font-weight: 800;
  color: #0f172a;
}

.sitrep-node-meta-pills {
  display: flex;
  gap: 4px;
  align-items: center;
}

.sitrep-node-body {
  font-size: 11px;
  color: #1e293b;
  line-height: 1.45;
  white-space: pre-wrap;
}

.incident-headline-banner {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.grid-cell-stacked {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.grid-preview-muted {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.form-section-banner.primary { color: #2563eb; }
.form-section-banner.success { color: #16a34a; }
.form-section-banner.danger  { color: #dc2626; }

.form-sub-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.form-sub-card.highlight-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.form-sub-card.sealed-alert {
  background: #fef2f2;
  border-color: #fca5a5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}

/* MODAL FORM GRIDS & CONTROLS */
.modal-grid-1col { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 10px; }
.modal-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.modal-grid-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 10px; }

.modal-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.modal-label {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}

.modal-label.accent-blue { color: #2563eb; }
.modal-label.muted-slate { color: #64748b; font-weight: 700; }
.modal-label.accent-green { color: #16a34a; }
.modal-label.accent-red { color: #dc2626; }
.modal-label.accent-teal { color: #0d9488; }

.modal-input-text.bold,
.modal-select-control {
  font-weight: 700;
}

.modal-textarea-control {
  resize: vertical;
  min-height: 64px;
  line-height: 1.45;
}

/* ATTACHMENT VAULT MODULE & UNIVERSAL DROP-ZONE */
.attachment-vault-box {
  margin-top: 10px;
  margin-bottom: 10px;
  border: 1px solid #cbd5e1;
  padding: 12px;
  border-radius: 4px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.attachment-dropzone {
  border: 1.5px dashed #94a3b8;
  border-radius: 4px;
  padding: 14px 12px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.attachment-dropzone.drag-active {
  background: #eff6ff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.attachment-dropzone-glyph {
  font-size: 18px;
  margin-bottom: 4px;
  color: #64748b;
}

.attachment-dropzone-caption {
  font-size: 10.5px;
  font-weight: 700;
  color: #334155;
  font-family: var(--font-mono, monospace);
}

.attachment-dropzone-sub {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 2px;
}

.attachment-dropzone-file-input {
  display: none;
}

.attachment-preview-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.attachment-preview-thumb {
  width: 38px;
  height: 38px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
}

.attachment-status-text {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748b;
  font-family: var(--font-mono, monospace);
  word-break: break-all;
}

.attachment-status-text.success {
  color: #16a34a;
}

.attachment-status-text.uploading {
  color: #2563eb;
}

.attachment-status-text.danger {
  color: #dc2626;
}

.btn-receipt-viewer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 10px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease-in-out;
}

.btn-receipt-viewer:hover {
  background: #1e293b;
}

/* STANDARDIZED SVG-BACKED PDF EXPORT ACTION BADGE */
.btn-pdf-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.btn-pdf-export:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #991b1b;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.12);
}

.btn-pdf-export:active {
  transform: translateY(1px);
}

.btn-pdf-export-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-pdf-export.is-exporting {
  opacity: 0.65;
  pointer-events: none;
  cursor: wait;
}

.btn-pdf-spinner {
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid #fca5a5;
  border-top-color: #b91c1c;
  border-radius: 50%;
  animation: odinPdfSpin 0.75s linear infinite;
}

.btn-pdf-export.is-exporting .btn-pdf-spinner {
  display: inline-block;
}

.btn-pdf-export.is-exporting .btn-pdf-export-icon {
  display: none;
}

@keyframes odinPdfSpin {
  to { transform: rotate(360deg); }
}

/* FORENSIC INCIDENT AUDIT DOSSIER PRINT TOKENS */
.pdf-sitrep-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.pdf-timeline-node {
  border-left: 3px solid #2563eb;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  font-size: 11px;
}

.pdf-timeline-node.initial {
  border-left-color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #0f172a;
}

.pdf-node-meta {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.pdf-pharma-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  margin-top: 6px;
}

.pdf-pharma-table th {
  background: #0f172a;
  color: #ffffff;
  text-align: left;
  padding: 6px 8px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.pdf-pharma-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
}

.pdf-pharma-table tr:nth-child(even) {
  background: #f8fafc;
}

/* MODAL ACTION FOOTER (RIGID DOCKED VIEWPORT ANCHOR) */
.modal-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #cbd5e1;
  padding: 12px 20px;
  background-color: #f8fafc;
  z-index: 1000;
  box-sizing: border-box;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  width: 100%;
}

.modal-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-modal-delete {
  padding: 6px 12px;
  font-size: 11px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.btn-modal-cancel {
  padding: 6px 12px;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.btn-modal-commit {
  padding: 6px 14px;
  font-size: 11px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.btn-modal-commit:hover {
  background: #1e293b;
}

.modal-card-risk-gate {
  background: #ffffff;
  color: #0f172a;
  padding: 24px 28px;
  border-radius: 6px;
  width: 94%;
  max-width: 860px;
  margin: 25px auto;
  font-family: monospace;
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.40);
  position: relative;
  z-index: 99999;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-header-risk-gate {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.risk-gate-live-telemetry-banner {
  background: #090d16;
  color: #f8fafc;
  border: 1px solid #1e293b;
  border-left: 4px solid #38bdf8;
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.risk-gate-telemetry-item {
  font-size: 11px;
  line-height: 1.5;
  color: #f8fafc;
}

.risk-gate-telemetry-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.risk-gate-telemetry-val {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
}

.risk-gate-telemetry-sub {
  font-size: 10.5px;
  color: #cbd5e1;
  margin-top: 4px;
  line-height: 1.4;
}

.risk-gate-telemetry-sub strong {
  color: #f8fafc;
}

/* AI THREAT SWEEP PROGRESS BAR & ACTIVE COUNTDOWN STYLES */
.telemetry-loading-box {
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  color: #f8fafc;
  margin: 20px auto;
  max-width: 600px;
}

.telemetry-loading-title {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  margin: 14px 0 10px 0;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  width: 0%;
  transition: width 0.3s ease-in-out;
  border-radius: 4px;
}

.countdown-text {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  font-family: monospace;
}

/* ACCORDION DEEP RISK REPORT CONTAINER */
.risk-gate-deep-osint-drawer {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.risk-gate-drawer-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  user-select: none;
}

.risk-gate-drawer-content {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 10.5px;
  max-height: 220px;
  overflow-y: auto;
  color: #334155;
  line-height: 1.5;
}

.protocol-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 14px;
}

.protocol-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.protocol-checkbox-label:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.protocol-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #2563eb;
}

.gate-human-observation-textarea {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #0f172a;
  font-family: monospace;
  box-sizing: border-box;
  resize: vertical;
}

.gate-human-observation-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* LIGHTBOX MODAL OVERLAY COMPLETE COLLAPSE WHEN INACTIVE */
.lightbox-modal-overlay,
#odin-lightbox-modal {
  display: none !important;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 24px;
  box-sizing: border-box;
  background-color: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.lightbox-modal-overlay.visible,
#odin-lightbox-modal.visible {
  display: flex !important;
}

.lightbox-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  width: 900px;
  max-width: 94vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #0f172a;
  border-bottom: 2px solid #1e293b;
  flex-shrink: 0;
}

.lightbox-title {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #38bdf8;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-close-btn {
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #f87171;
  border-radius: 4px;
  padding: 5px 12px;
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.lightbox-close-btn:hover {
  background: #b91c1c;
}

.lightbox-body {
  padding: 16px;
  background: #f1f5f9;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
}

.lightbox-stream-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-stream-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 4px;
  box-sizing: border-box;
}

.lightbox-preview-img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #ffffff;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
}

.lightbox-stream-iframe {
  width: 100%;
  height: 72vh;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
}

/* SINGLE CANONICAL #odin-modal-overlay DEFINITION RETAINED AT TOP OF SUB-ANCHOR 9.1.7 */

.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(4px); z-index: 9999; align-items: center; justify-content: center; }
.modal-card { background: #ffffff; border: 1px solid var(--border-color); width: 720px; max-width: 95vw; max-height: 90vh; overflow-y: auto; padding: 20px 24px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15); font-family: var(--font-mono); border-radius: 6px; }

.modal-card-container {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-card-header {
  padding: 12px 18px;
  background-color: #0f172a;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #38bdf8;
  font-family: var(--font-mono);
}

.modal-subtitle {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.btn-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.btn-close:hover {
  color: #ffffff;
}

.modal-card-body {
  padding: 18px;
  background-color: #ffffff;
  max-height: 80vh;
  overflow-y: auto;
}

.form-grid-layout {
  display: flex;
  flex-direction: column;
}

.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.full-width-group {
  grid-column: span 2;
  width: 100%;
}

.form-row { display: flex; gap: 10px; width: 100%; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; width: 100%; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.col-1 { flex: 1; min-width: 0; }
.col-2 { flex: 2; min-width: 0; }
.col-3 { flex: 3; min-width: 0; }

.form-label {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.form-label.blue { color: var(--accent-blue); }
.form-label.red { color: var(--threat-critical); }
.form-label.green { color: var(--threat-active); }

.form-control, .form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  background: #f8fafc;
  border-radius: 3px;
  outline: none;
  box-sizing: border-box;
}

.form-control:focus, .form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--accent-blue);
}

.form-control[readonly], .form-input[readonly] {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 700;
  cursor: not-allowed;
}

/* COORDINATE GATE VALIDATION & HUD BUTTON STATES */
.modal-input-text.input-error,
.form-control.input-error,
input[name="latitude"].input-error,
input[name="longitude"].input-error {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
  color: #991b1b !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25) !important;
}

.coord-feedback-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 10.5px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  border-radius: 4px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.coord-feedback-box.error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.coord-feedback-box.valid {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.btn-hud-secondary {
  padding: 6px 14px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  letter-spacing: 0.03em;
  background-color: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-hud-secondary:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.btn-hud-telemetry {
  padding: 6px 14px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  letter-spacing: 0.03em;
  background-color: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-hud-telemetry:hover {
  background-color: #0369a1;
}

.btn-hud-warning {
  padding: 6px 14px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  letter-spacing: 0.03em;
  background-color: #d97706;
  color: #ffffff;
  border: 1px solid #b45309;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-hud-warning:hover {
  background-color: #b45309;
}

.alert-box-blue-compact.success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

.btn-hud-primary {
  padding: 6px 16px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  letter-spacing: 0.03em;
  background-color: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-hud-primary:hover {
  background-color: #1e293b;
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.form-section-card { background: #f8fafc; border: 1px solid var(--border-color); padding: 10px 12px; border-radius: 3px; display: flex; flex-direction: column; gap: 8px; }
.form-section-card.critical { background: #fef2f2; border-color: #fca5a5; border-left: 3px solid var(--threat-critical); }
.form-section-card.tactical { background: #f8fafc; border-color: var(--border-color); border-left: 3px solid var(--accent-blue); }
.form-section-title { font-size: 9.5px; font-weight: 800; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.05em; }

/* DIGITAL SIGNATURE CANVAS & RCA GATE COMPONENT STYLING */
.field-signature-card {
  margin-bottom: 12px;
  border: 1px solid #3b82f6;
  background-color: #eff6ff;
  padding: 12px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.checklist-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.checklist-step-item:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.checklist-step-item.checked {
  background: #f0fdf4;
  border-color: #86efac;
}

.checklist-step-item.checked .checklist-step-text {
  text-decoration: line-through;
  color: #15803d;
}

.checklist-step-text {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: #0f172a;
}

.signature-pad-container {
  margin-bottom: 10px;
  border: 1px solid #3b82f6;
  background-color: #eff6ff;
  padding: 10px;
  border-radius: 4px;
}

.signature-pad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.signature-pad-title {
  font-size: 10px;
  font-weight: 800;
  color: #1e40af;
  text-transform: uppercase;
}

.signature-canvas-wrapper {
  margin-bottom: 8px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px;
}

.signature-canvas {
  width: 100%;
  height: 110px;
  display: block;
  cursor: crosshair;
  background-color: #ffffff;
  border-radius: 3px;
}

.signature-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.signature-status-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #2563eb;
}

.signature-status-badge.verified {
  color: #16a34a;
}

.btn-signature-clear {
  padding: 3px 8px;
  font-size: 9.5px;
  background-color: #64748b;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-weight: 700;
  cursor: pointer;
}

.btn-signature-confirm {
  padding: 5px 12px;
  font-size: 10.5px;
  background-color: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-weight: 800;
  cursor: pointer;
}

.btn-signature-confirm:disabled {
  background-color: #94a3b8;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------------
   SUB-ANCHOR 9.1.8: COMPLIANCE ALERTS, KPI METRICS & VAULT CARDS
   ------------------------------------------------------------------------ */
/* WORKFLOW STAGE MATRIX & TWO-TIER RISK ENGINE */
.hidden {
  display: none !important;
}

.visible-flex {
  display: flex !important;
}

.risk-gate-drawer-content {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 10px 14px;
  margin-top: 8px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.stage-matrix-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #090d16;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 14px;
  box-sizing: border-box;
  width: 100%;
  clear: both;
}

.stage-matrix-pipeline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.stage-matrix-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono, monospace);
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

.stage-matrix-step.badge-pending-step {
  background: #1e293b;
  color: #64748b;
  border: 1px solid #334155;
  opacity: 0.35;
}

.stage-matrix-step.badge-complete-step {
  background: #064e3b;
  color: #6ee7b7;
  border: 1px solid #10b981;
  opacity: 0.9;
}

.stage-matrix-step.badge-active-green,
.badge-active-green {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid #6ee7b7;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.stage-matrix-step.badge-active-amber,
.badge-active-amber {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 1px solid #fde68a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.stage-matrix-step.badge-active-red,
.badge-active-red {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid #fca5a5;
  box-shadow: 0 0 11px rgba(239, 68, 68, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.stage-matrix-step.badge-active-blue,
.badge-active-blue {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  border: 1px solid #7dd3fc;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.stage-matrix-arrow {
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  user-select: none;
}

.stage-matrix-meta {
  font-size: 9.5px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  text-align: right;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.stage-matrix-meta strong {
  color: #38bdf8;
}

/* OFFLINE EDGE CACHE INDICATOR & GSBIL EVACUATION CORRIDORS */
.offline-edge-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #451a03;
  border: 1px solid #d97706;
  border-left: 4px solid #f59e0b;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}

.offline-edge-meta {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gsbil-corridor-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.gsbil-corridor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: #0f172a;
  padding: 3px 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
}

/* 4-HOUR ESTATE THREAT SWEEP BANNER */
.estate-sweep-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-left: 4px solid #0284c7;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
  width: 100%;
}

.estate-sweep-banner.estate-sweep-banner-2line {
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 7px 10px;
}

.estate-sweep-top-row,
.estate-sweep-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.estate-sweep-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.estate-sweep-top-row .estate-sweep-title {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.estate-sweep-title-group .status-badge {
  flex-shrink: 0;
  font-size: 8.5px;
  padding: 2px 5px;
}

.estate-sweep-actions {
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 5px;
}

.estate-sweep-actions .btn-hud-action,
.estate-sweep-actions .btn-hud-warning,
.estate-sweep-actions .btn-hud-success,
.estate-sweep-actions .btn-hud-secondary {
  padding: 3px 8px;
  font-size: 9px;
  white-space: nowrap;
}

.estate-sweep-bottom-row .estate-sweep-meta {
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

.estate-sweep-sla {
  font-size: 9px;
  font-family: var(--font-mono, monospace);
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.estate-sweep-sla strong {
  color: #94a3b8;
  font-weight: 700;
}

.estate-sweep-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.estate-sweep-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #38bdf8;
  text-transform: uppercase;
}

.estate-sweep-meta {
  font-size: 10px;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
}

.radar-alert-banner {
  background: #450a0a;
  border: 1px solid #dc2626;
  border-left: 4px solid #ef4444;
  border-radius: 4px;
  padding: 8px 12px;
  color: #fef2f2;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.radar-metric-pill-danger {
  background: #dc2626;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.estate-forecast-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.estate-forecast-cell {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.estate-forecast-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.estate-forecast-value {
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.telemetry-split-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  width: 100%;
  box-sizing: border-box;
}

.telemetry-split-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.btn-hud-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.btn-hud-action {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0369a1;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s ease-in-out;
}

.btn-hud-action:hover {
  background: #0369a1;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.4);
}

.btn-hud-secondary {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s ease-in-out;
}

.btn-hud-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-hud-telemetry {
  background: #475569;
  color: #ffffff;
  border: 1px solid #334155;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s ease-in-out;
}

.btn-hud-telemetry:hover {
  background: #334155;
}

.btn-hud-success {
  background: #16a34a;
  color: #ffffff;
  border: 1px solid #15803d;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s ease-in-out;
}

.btn-hud-success:hover {
  background: #15803d;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.4);
}

.btn-hud-warning {
  background: #d97706;
  color: #ffffff;
  border: 1px solid #b45309;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.15s ease-in-out;
}

.btn-hud-warning:hover {
  background: #b45309;
  border-color: #78350f;
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.4);
}

.cadence-badge-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.cadence-pill {
  font-size: 8.5px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  text-transform: uppercase;
}

.cadence-pill.cadence-a {
  background: #1e293b;
  color: #93c5fd;
  border: 1px solid #3b82f6;
}

.cadence-pill.cadence-b {
  background: #0f2e22;
  color: #6ee7b7;
  border: 1px solid #10b981;
}

.text-warning {
  color: #d97706 !important;
  font-weight: 600;
}

.btn-micro {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hub-blueprint-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #f1f5f9;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 4px 4px 0 0;
  margin-bottom: 8px;
}

.hub-osint-exec-summary-card {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #1e293b;
  border-left: 3px solid #38bdf8;
  box-sizing: border-box;
}

.hub-osint-exec-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #38bdf8;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hub-osint-exec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 11px;
  width: 100%;
  box-sizing: border-box;
}

.hub-osint-exec-cell {
  background: #1e293b;
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  min-height: 42px;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.hub-osint-exec-label {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hub-osint-exec-val {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.hub-snapshot-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.hub-snapshot-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hub-snapshot-vectors-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #334155;
  margin-bottom: 10px;
}

.hub-snapshot-vector-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.hub-snapshot-vector-bullet {
  font-weight: 800;
  color: #0284c7;
}

.hub-snapshot-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
  font-size: 10px;
  color: #64748b;
}

.hub-horizon-radar-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 8px;
  color: #f8fafc;
}

.hub-horizon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #334155;
}

.hub-horizon-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hub-horizon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.hub-horizon-cell {
  background: #1e293b;
  padding: 6px 8px;
  border-radius: 3px;
  border-left: 2px solid #0284c7;
}

.hub-horizon-label {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.hub-horizon-val {
  font-size: 11px;
  font-weight: 800;
  color: #f1f5f9;
  margin-top: 2px;
}

.hub-horizon-digest-stream {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.45;
  background: #090d16;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #1e293b;
}

.hub-horizon-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.hub-horizon-bullet {
  color: #38bdf8;
  font-weight: 900;
  line-height: 1;
}

.report-table th:nth-child(1) { width: 22%; }
.report-table th:nth-child(2) { width: 18%; white-space: nowrap; }
.report-table th:nth-child(3) { width: 30%; }
.report-table th:nth-child(4) { width: 30%; }

.hub-blueprint-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #334155;
}

.hub-blueprint-timestamp {
  font-family: monospace;
  font-weight: 700;
  color: #0f172a;
}

.hub-badge-cadence {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hub-badge-cadence.live {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.hub-badge-cadence.stale {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.hub-osint-scroll-viewport {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

/* EXECUTIVE BRIEFING & DASHBOARD HUB UTILITIES */
.dashboard-hub-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.hub-hero-banner {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 14px 16px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.hub-hero-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-hero-subtitle {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 3px;
  font-family: var(--font-mono);
}

.hub-badge-operator {
  background: #1e3a8a;
  border: 1px solid #3b82f6;
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
}

.hub-briefing-scroll-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.hub-section-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 12px;
  box-sizing: border-box;
}

.hub-section-card.accent-red {
  border-left: 4px solid #ef4444;
}

.hub-section-card.accent-amber {
  border-left: 4px solid #f59e0b;
}

.hub-section-card.accent-blue {
  border-left: 4px solid #2563eb;
}

.hub-section-card.accent-green {
  border-left: 4px solid #10b981;
}

.hub-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  list-style: none;
  user-select: none;
}

.hub-section-header::-webkit-details-marker {
  display: none;
}

details.hub-section-card > summary.hub-section-header::after {
  content: "▾";
  font-size: 13px;
  color: var(--slate-400, #94a3b8);
  margin-left: 8px;
  transition: transform 0.15s ease-in-out;
}

details.hub-section-card:not([open]) > summary.hub-section-header::after {
  transform: rotate(-90deg);
}

details.hub-section-card:not([open]) {
  padding-bottom: 8px;
}

.hub-card-collapsible-body {
  width: 100%;
}

.hub-section-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0f172a;
  text-transform: uppercase;
}

.hub-briefing-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse;
  font-size: 10px;
  box-sizing: border-box;
}

.hub-briefing-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  padding: 6px 8px;
  border-bottom: 1px solid #cbd5e1;
  text-align: left;
  text-transform: uppercase;
  font-size: 8.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hub-briefing-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.hub-briefing-table tr:hover td {
  background: #f8fafc;
}

.meteo-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.meteo-cell {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.meteo-cell-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meteo-cell-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}

.meteo-cell-sub {
  font-size: 8.5px;
  color: #475569;
  margin-top: 2px;
}

.hub-osint-panel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 12px;
  box-sizing: border-box;
}

.tasks-overview-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.kpi-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.kpi-tile-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  border-top: 3px solid #0284c7;
  border-radius: 4px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kpi-tile-card:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow-elevated);
}

.kpi-tile-card.kpi-green {
  border-top-color: #10b981;
}

.kpi-tile-card.kpi-slate {
  border-top-color: #475569;
}

.kpi-tile-card.kpi-amber {
  border-top-color: #f59e0b;
}

.kpi-tile-number {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  margin: 2px 0 4px 0;
}

.kpi-tile-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.task-directive-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 4px;
  padding: 12px 14px;
}

.task-directive-box.directive-green {
  border-left-color: #10b981;
}

.task-directive-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.transit-live-telemetry-banner {
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-left: 5px solid #d97706;
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.transit-live-telemetry-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.transit-live-telemetry-left .stage-matrix-step {
  flex-shrink: 0;
  white-space: nowrap;
}

.transit-live-telemetry-text {
  font-size: 10.5px;
  color: #78350f;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.transit-live-telemetry-banner .btn-hud-group {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
  gap: 6px;
}

.transit-live-telemetry-banner .btn-hud-group button {
  white-space: nowrap;
  flex-shrink: 0;
}

.transit-clearance-header-banner {
  background: #f0fdf4;
  border: 1.5px solid #16a34a;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.transit-clearance-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.transit-clearance-seal-title {
  font-size: 11px;
  font-weight: 800;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.transit-clearance-meta {
  font-size: 10px;
  color: #0f172a;
  font-weight: 600;
}

.transit-clearance-meta strong {
  color: #166534;
}

.transit-clearance-sig-frame {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 3px 8px;
  max-height: 48px;
}

.transit-clearance-sig-img {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.transit-clearance-sig-text {
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  color: #1e3a8a;
  white-space: nowrap;
}

.proximity-incidents-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.proximity-incident-card {
  background-color: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.proximity-incident-card:hover {
  border-color: #ef4444;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.12);
}

.proximity-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.proximity-card-body {
  font-size: 11px;
  color: #334155;
  font-weight: 500;
  line-height: 1.4;
}

.proximity-distance-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #991b1b;
  background-color: #fee2e2;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid #fca5a5;
}

.flex-row-space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; align-items: stretch; }
.kpi-metric-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #cbd5e1;
  border-left: 4px solid #2563eb;
  padding: 12px 14px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}
.kpi-metric-card.warning { border-left-color: #d97706; }
.kpi-metric-card.critical { border-left-color: #dc2626; }
.kpi-metric-card.success { border-left-color: #16a34a; }

.kpi-card-title { font-size: 10px; font-weight: 800; color: #475569; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 6px; }
.kpi-card-value { font-family: var(--font-sans); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: #0f172a; line-height: 1.15; }
.kpi-card-subtext { font-size: 10px; font-weight: 700; color: #64748b; margin-top: 5px; letter-spacing: 0.02em; }

.compliance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.alert-card { border: 1px solid var(--border-color); border-radius: 4px; padding: 12px; background: #ffffff; }
.alert-card.danger { border-left: 4px solid var(--threat-critical); background: #fef2f2; }
.alert-card.warning { border-left: 4px solid var(--threat-elevated); background: #fffbebf1; }
.alert-title { font-weight: 800; margin-bottom: 8px; font-size: 11px; }
.alert-action-btn { padding: 3px 8px; background: var(--accent-blue); color: #ffffff; border: none; border-radius: 2px; cursor: pointer; font-size: 9.5px; font-weight: 700; }

.portrait-avatar-frame { width: 68px; height: 68px; border-radius: 4px; border: 1px solid #cbd5e1; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.portrait-avatar-frame img { width: 100%; height: 100%; object-fit: cover; }

.vault-card-compact { background: #ffffff; border: 1px solid #cbd5e1; padding: 6px 8px; margin-bottom: 5px; border-radius: 3px; display: flex; gap: 8px; align-items: center; transition: border-color 0.15s ease; width: 100%; overflow: hidden; }
.vault-card-compact:hover { border-color: #2563eb; background: #f8fafc; }
.vault-thumb-frame { width: 38px; height: 38px; flex-shrink: 0; border-radius: 3px; border: 1px solid #cbd5e1; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.vault-thumb-frame img { width: 100%; height: 100%; object-fit: cover; }
.vault-card-body { display: flex; justify-content: space-between; align-items: center; width: 100%; overflow: hidden; }
.vault-card-media { display: flex; gap: 8px; align-items: center; overflow: hidden; min-width: 0; flex: 1; }
.vault-card-info { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; flex: 1; }
.vault-item-authority { font-size: 8.5px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 2-COLUMN TELEMETRY SPLIT LAYOUT & REPORT TYPOGRAPHY */
.telemetry-card { background: #ffffff; border: 1px solid var(--border-color); padding: 14px; border-radius: 6px; margin-bottom: 12px; }
.telemetry-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.telemetry-card-title { font-size: 13px; font-weight: 800; color: var(--text-primary); font-family: var(--font-sans); letter-spacing: 0.05em; }

.telemetry-split-layout { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: start; }
.telemetry-col-meta { background: #f8fafc; border: 1px solid #cbd5e1; padding: 10px 12px; font-size: 11px; border-radius: 4px; display: flex; flex-direction: column; gap: 8px; }
.telemetry-col-meta .meta-field { word-break: break-all; color: #334155; }
.telemetry-col-report { min-width: 0; }

.telemetry-report-box {
  padding: 14px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
}
.telemetry-report-box.report-box-blue { background: #f8fafc; border: 1px solid #cbd5e1; border-left: 4px solid #2563eb; }
.telemetry-report-box.report-box-warning { background: #fffdf5; border: 1px solid #fde68a; border-left: 4px solid #d97706; }

#telemetry-hud-pane {
  flex: 1 1 0px;
  padding: 14px 18px;
  background: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 150px;
  box-sizing: border-box;
}

/* OSINT Report Headings */
.report-heading-primary { font-family: var(--font-sans); font-size: 13px; font-weight: 900; color: #0f172a; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 2px solid #cbd5e1; padding-bottom: 4px; margin: 12px 0 8px 0; }
.report-heading-secondary { font-family: var(--font-sans); font-size: 12px; font-weight: 800; color: #1e3a8a; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid #cbd5e1; padding-bottom: 3px; margin: 12px 0 6px 0; }
.report-heading-tertiary { font-family: var(--font-sans); font-size: 11px; font-weight: 800; color: #0f172a; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px dashed #cbd5e1; padding-bottom: 2px; margin: 10px 0 6px 0; }
.report-heading-quaternary { font-family: var(--font-mono); font-size: 11px; font-weight: 800; color: #2563eb; margin: 8px 0 4px 0; }

.report-text-bold { color: #0f172a; font-weight: 700; }
.report-text-em { color: #475569; font-style: italic; }
.report-paragraph { font-size: 11px; color: #334155; margin-bottom: 8px; word-break: break-word; line-height: 1.5; }
.report-empty-text { color: #64748b; font-style: italic; font-size: 11px; }

.report-list-item { position: relative; padding-left: 14px; font-size: 11px; color: #334155; margin-bottom: 4px; line-height: 1.5; }
.report-list-item::before { content: '▪'; position: absolute; left: 0; color: #2563eb; font-size: 10px; }

.report-divider { height: 1px; background: #e2e8f0; margin: 12px 0; }
.report-inline-code { font-family: var(--font-mono); background: #e2e8f0; color: #0f172a; padding: 1px 4px; border-radius: 2px; font-size: 10px; }

/* ASCII Route Diagram Preformatted Blocks */
.report-code-block { font-family: var(--font-mono); font-size: 10.5px; background: #0f172a; color: #38bdf8; padding: 10px; border-radius: 4px; overflow-x: auto; margin: 8px 0 12px 0; border: 1px solid #1e293b; line-height: 1.4; }

/* Markdown Table Layout */
.report-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px 0; font-size: 10.5px; font-family: var(--font-mono); }
.report-table th { background: #f1f5f9; color: #0f172a; font-weight: 800; text-align: left; padding: 6px 8px; border: 1px solid #cbd5e1; text-transform: uppercase; letter-spacing: 0.04em; }
.report-table td { padding: 6px 8px; border: 1px solid #e2e8f0; color: #334155; background: #ffffff; vertical-align: top; }
.report-table tr:nth-child(even) td { background: #f8fafc; }

/* Risk Badges */
.hud-badge { display: inline-block; padding: 2px 6px; font-size: 9px; font-weight: 800; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 4px; vertical-align: middle; }
.hud-badge-low { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.hud-badge-moderate { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.hud-badge-high { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* TEMPLATE T2_SPLIT_VAULT: 2-COLUMN CREDENTIALS VAULT UTILITIES */
.kpi-metric-2col-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }

/* EXECUTIVE PASSPORT 2-COLUMN SUMMARY GRID UTILITIES (MANDATE 1 COMPLIANCE) */
.passport-grid-container {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  gap: 16px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 12px 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.passport-column-left, .passport-column-right {
  flex: 1 1 50% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.passport-column-right {
  border-left: 1px solid #cbd5e1 !important;
  padding-left: 16px !important;
}

.passport-row {
  font-size: 11px !important;
  color: #334155 !important;
  line-height: 1.5 !important;
}

.passport-row-highlight {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  padding: 6px 10px !important;
  border-radius: 4px !important;
  margin-bottom: 4px !important;
}

.stream-section-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 12px;
}

.stream-section-container.critical {
  border-color: #fca5a5;
  background: #fff5f5;
}

.stream-section-header {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}

.stream-section-header.critical {
  color: #dc2626;
  border-bottom-color: #fca5a5;
}

.defect-active-row {
  background: #fef2f2 !important;
  border-left: 3px solid #dc2626 !important;
}

/* MODULAR MULTI-ITEM PMS SERVICE LOG CARDS */
.flex-column-gap-8 { display: flex; flex-direction: column; gap: 8px; }
.flex-column-gap-4 { display: flex; flex-direction: column; gap: 4px; }
.flex-row-gap-6-center { display: flex; align-items: center; gap: 6px; }

.pms-log-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #16a34a;
  border-radius: 4px;
  padding: 10px 12px;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.pms-log-card:hover {
  border-color: #2563eb;
  border-left-color: #2563eb;
  background: #f8fafc;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.pms-log-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 4px;
}

.pms-log-card-type {
  font-size: 11px;
  color: #0f172a;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.pms-log-card-body {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.5;
  word-break: break-word;
}

.full-width-card-wrapper {
  width: 100% !important;
  box-sizing: border-box !important;
}

.vault-split-grid, .task-corridor-split-grid { 
  display: grid !important; 
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important; 
  gap: 12px !important; 
  width: 100% !important; 
  box-sizing: border-box !important;
}

.vault-split-grid-padded {
  margin-top: 15px !important;
  border-top: 1px solid #cbd5e1 !important;
  padding-top: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.vault-column { display: flex; flex-direction: column; gap: 6px; }
.vault-column-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; border-bottom: 2px solid #cbd5e1; padding-bottom: 4px; }
.vault-column-title { margin: 0; font-size: 11px; font-weight: 800; color: #0f172a; text-transform: uppercase; font-family: var(--font-sans); }
.vault-empty-box { background: #f8fafc; border: 1px dashed #cbd5e1; padding: 10px; text-align: center; color: #64748b; font-size: 10px; border-radius: 4px; }

.vault-card-body { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.vault-card-media { display: flex; gap: 8px; align-items: center; overflow: hidden; }
.vault-card-info { overflow: hidden; }
.vault-icon-fallback { display: none; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 16px; }
.vault-icon-fallback-flex { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 16px; }

.vault-tag-green { font-size: 8.5px; font-weight: 800; color: #15803d; text-transform: uppercase; }
.vault-item-name { font-weight: bold; color: #0f172a; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vault-item-no { font-size: 8.5px; color: #64748b; }
.vault-item-exp-green { font-size: 8.5px; color: #16a34a; font-weight: bold; }
.vault-item-exp-blue { font-size: 8.5px; color: #2563eb; font-weight: bold; }

.telemetry-grid-2col-compact { background: #f8fafc; border: 1px solid #e2e8f0; padding: 10px; font-size: 11px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 4px; }
.alert-box-danger-compact { background: #fef2f2; border: 1px solid #fca5a5; border-left: 4px solid #ef4444; padding: 8px 10px; font-size: 11px; margin-bottom: 10px; border-radius: 4px; }
.alert-box-blue-compact { background: #f1f5f9; border: 1px solid #cbd5e1; border-left: 4px solid #2563eb; padding: 8px 10px; font-size: 11px; border-radius: 4px; margin-bottom: 15px; }

.grid-header-toolbar { padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid #cbd5e1; display: flex; justify-content: space-between; align-items: center; }
.toolbar-title { font-size: 11px; font-weight: 800; color: #0f172a; letter-spacing: 0.05em; font-family: var(--font-sans); }
.toolbar-btn-group { display: flex; gap: 6px; }

/* FIXED TABLE COLUMN SPACING UTILITIES & LOCATION DENSITY OVERRIDES */
.person-table-fixed, .loc-table-fixed { table-layout: fixed; width: 100%; }
.col-w-operative { width: 22%; }
.col-w-role { width: 30%; }
.col-w-nat { width: 8%; }
.col-w-nok { width: 15%; }
.col-w-creds { width: 15%; }
.col-w-actions { width: 10%; }

/* Location Grid Specific Column Widths */
.col-w-loc-act { width: 148px; min-width: 148px; }
.col-w-loc-id { width: 11%; }
.col-w-loc-name { width: 21%; }
.col-w-loc-cat { width: 14%; }
.col-w-loc-sec { width: 22%; }
.col-w-loc-geo { width: 15%; }

.loc-action-btn-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.loc-action-btn-row .btn-hud-action,
.loc-action-btn-row .btn-hud-secondary,
.loc-action-btn-row .btn-hud-telemetry {
  padding: 2px 6px;
  font-size: 9px;
  white-space: nowrap;
}

/* Core Estate Row Visual Distinction */
tr.interactive-row.core-estate-row {
  background-color: #f0f9ff !important;
  border-left: 4px solid #2563eb !important;
}

tr.interactive-row.core-estate-row:hover {
  background-color: #e0f2fe !important;
}

.badge-tag.badge-estate-core {
  background: #1e3a8a !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  padding: 2px 7px !important;
}

.badge-tag.badge-sub-loc {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.overview-title { font-size: 14px; margin-bottom: 12px; color: #0f172a; font-family: var(--font-sans); font-weight: 800; letter-spacing: 0.05em; }
.overview-section-title { font-size: 12px; margin-bottom: 10px; color: #0f172a; font-family: var(--font-sans); font-weight: 800; letter-spacing: 0.05em; }
.compliance-success-box { background: #d1fae5; border: 1px solid #a7f3d0; padding: 12px; color: #065f46; font-weight: bold; font-size: 11px; text-align: center; border-radius: 6px; }

.alert-item-row { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #334155; margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px dashed #e2e8f0; }
.alert-item-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.flex-row-gap-12 { display: flex; gap: 12px; align-items: center; }
.text-title-15 { font-size: 15px; font-weight: 800; color: #0f172a; }
.text-subtitle-blue { font-size: 11px; font-weight: 700; color: #2563eb; margin-top: 2px; }
.text-muted-10 { font-size: 10px; color: #64748b; margin-top: 2px; }
.text-muted-italic { color: #94a3b8; font-style: italic; font-size: 10px; }
.text-danger-bold { color: #ef4444; font-weight: bold; }
.text-warning-bold { color: #d97706; font-weight: bold; }
.text-success-bold { color: #059669; font-weight: bold; font-size: 10px; }
.text-red-900 { color: #991b1b; }
.text-sub-code { font-size: 9.5px; color: #64748b; }
.margin-r-4 { margin-right: 4px; }
.col-span-2 { grid-column: span 2; }
.avatar-fallback-icon { display: none; width: 100%; height: 100%; background: #f1f5f9; align-items: center; justify-content: center; font-size: 24px; }

.badge-tag { background: #f1f5f9; color: #1e293b; padding: 2px 6px; border-radius: 3px; font-weight: 700; font-size: 10px; border: 1px solid #cbd5e1; }
.btn-xs { font-size: 9.5px; padding: 3px 8px; }
.btn-green-xs { font-size: 9px; padding: 2px 6px; background: #16a34a; }
.btn-micro { font-size: 8.5px; padding: 2px 5px; flex-shrink: 0; }
.text-bold { font-weight: 700; }
.text-success { color: #16a34a; }
.text-accent-blue { color: #2563eb; }
.text-warning { color: #d97706; }

/* TABLE & BADGE OVERRIDES */
.hidden-accordion {
  display: none !important;
}
.visible-accordion {
  display: table-row !important;
}
.tree-subrow-hidden {
  display: none !important;
}
.btn-tree-expander {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-family: monospace;
  font-weight: 800;
  font-size: 10.5px;
  width: 20px;
  height: 20px;
  line-height: 1;
  padding: 0;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-tree-expander:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}
.tree-depth-1 {
  background-color: #ffffff;
}
.tree-depth-2 {
  background-color: #f8fafc;
}
.tree-depth-3 {
  background-color: #f1f5f9;
}
.tree-depth-2 td:nth-child(2) {
  padding-left: 14px;
}
.tree-depth-3 td:nth-child(2) {
  padding-left: 28px;
}
.tree-connector-pipe {
  color: #94a3b8;
  font-family: monospace;
  margin-right: 4px;
}
.location-asset-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  margin-bottom: 4px;
  font-size: 11px;
}
.custody-audit-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 9.5px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  margin-top: 4px;
}
.custody-audit-table th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 8.5px;
  padding: 4px 6px;
  border-bottom: 1px solid #cbd5e1;
  text-align: left;
}
.custody-audit-table td {
  padding: 3px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custody-audit-row:hover {
  background-color: #f8fafc;
}
.pouch-child-row td:nth-child(2) {
  padding-left: 14px;
}
.consumable-child-row td:nth-child(2) {
  padding-left: 28px;
}
.clinical-manifest-table th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9px;
  padding: 4px 6px;
  border-bottom: 1px solid #cbd5e1;
  text-align: left;
  line-height: 1.2;
}
.clinical-manifest-table td {
  padding: 3px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  vertical-align: middle;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clinical-manifest-row:hover {
  background-color: #f8fafc;
}
.clinical-subgroup-hdr {
  background-color: #e2e8f0;
  color: #1e293b;
  font-weight: 800;
  font-size: 9.5px;
  padding: 3px 6px;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}
.clinical-breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 4px 8px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  margin-bottom: 6px;
  font-family: monospace;
  line-height: 1.2;
}
.clinical-breadcrumb-link {
  color: #1d4ed8;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.clinical-breadcrumb-current {
  color: #0f172a;
  font-weight: 800;
}
.badge-cd-warning {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #f87171;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 8.5px;
  display: inline-block;
  line-height: 1.1;
}
.kpi-metric-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 6px;
}
.telemetry-grid-compact-tight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 8px;
  font-size: 10px;
  margin-bottom: 6px;
  background-color: #f8fafc;
  padding: 6px 8px;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
}
.alert-box-compact-tight {
  padding: 6px 8px;
  font-size: 10px;
  border-radius: 3px;
  margin-bottom: 6px;
  line-height: 1.3;
}
table.odin-grid, table.data-table { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 11.5px; 
  font-family: var(--font-sans); 
  table-layout: auto; 
}

table.odin-grid th, table.data-table th { 
  font-family: var(--font-sans); 
  font-size: 11px; 
  font-weight: 800; 
  letter-spacing: 0.05em; 
  background: #f1f5f9; 
  color: var(--text-primary); 
  padding: 9px 12px; 
  text-align: left; 
  border-bottom: 2px solid var(--border-color); 
  position: sticky; 
  top: 0; 
  z-index: 10; 
  white-space: nowrap; 
}

table.odin-grid td, table.data-table td { 
  padding: 8px 12px; 
  border-bottom: 1px solid #e2e8f0; 
  color: #334155; 
  white-space: nowrap; 
  font-weight: 500; 
}

/* COMPLIANCE ALERTS, KPI METRICS & VAULT CARDS */
.asset-summary-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.asset-kpi-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
}
.asset-kpi-label {
  font-size: 8.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}
.asset-kpi-value {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
  font-family: monospace;
}
.asset-kpi-sub {
  font-size: 8px;
  color: #64748b;
  margin-top: 2px;
}
.asset-station-summary-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 10px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  margin-top: 4px;
}
.asset-station-summary-table th {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 8.5px;
  padding: 4px 6px;
  border-bottom: 1px solid #cbd5e1;
  text-align: left;
}
.asset-station-summary-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-station-summary-table tr:hover {
  background-color: #f8fafc;
}
.primary-asset-title-block {
  margin-bottom: 6px;
}
.primary-asset-headline {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.primary-asset-subtext {
  font-size: 10px;
  color: #475569;
  margin-top: 2px;
}
.passport-core-specs-card {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #2563eb;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 10.5px;
}

.passport-core-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.passport-spec-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.passport-spec-label {
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.passport-spec-value {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-mono);
  word-break: break-word;
}

.col-w-tree { width: 32px; text-align: center; }
.col-w-asset-id { width: 130px; font-family: var(--font-mono); }
.col-w-asset-meta { width: 160px; }
.col-w-asset-status { width: 120px; }
.col-w-asset-hub { width: 140px; }
.col-w-asset-act { width: 90px; }

table.odin-grid tr:hover, table.data-table tr:hover { background-color: #f8fafc; cursor: pointer; }

.status-badge { display: inline-block; padding: 2px 5px; font-size: 9.5px; font-weight: 800; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.status-badge.active, .status-badge.in-date { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.status-badge.warning, .status-badge.expiring { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.status-badge.critical, .status-badge.expired { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* CONSOLIDATED CLINICAL HANDOVER & WORM AUDIT DOSSIER STYLES (SUB-TASK 11.5) */
.dossier-gsbil-strip {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0284c7;
  border-radius: 3px;
  padding: 8px 10px;
  margin-top: 8px;
}

.dossier-sop-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #334155;
  border-radius: 3px;
  padding: 8px 10px;
  margin-top: 8px;
}

.dossier-sop-body {
  font-size: 10.5px;
  color: #1e293b;
  margin-top: 4px;
  line-height: 1.45;
}

.dossier-patient-redflag-banner {
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  border-left: 5px solid #dc2626;
  border-radius: 4px;
  padding: 10px 12px;
}

.dossier-redflag-header {
  font-size: 10.5px;
  font-weight: 900;
  color: #991b1b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  border-bottom: 1px solid #fecaca;
  padding-bottom: 4px;
}

.meta-value-critical {
  font-size: 11.5px;
  font-weight: 900;
  color: #b91c1c;
  font-family: var(--font-mono, monospace);
}

.dossier-subtable-title {
  font-size: 10px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 12px 0 6px 0;
  padding-bottom: 3px;
  border-bottom: 1px solid #cbd5e1;
}

.dossier-schedule-tag {
  font-size: 8.5px;
  font-weight: 700;
  color: #475569;
  font-family: var(--font-mono, monospace);
  margin-top: 2px;
}

.dossier-override-note {
  font-size: 9px;
  color: #92400e;
  margin-top: 3px;
  line-height: 1.3;
}

.dossier-sig-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dossier-sig-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dossier-sig-caption {
  font-size: 8px;
  font-weight: 800;
  color: #64748b;
  font-family: var(--font-mono, monospace);
}

.dossier-sig-thumb {
  max-height: 28px;
  max-width: 110px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  padding: 2px 4px;
}

.dossier-sig-token {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: #334155;
}

.dossier-worm-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0f172a;
  border-radius: 4px;
  padding: 8px 10px;
  margin-top: 10px;
}

.dossier-hash-code {
  font-family: var(--font-mono, monospace);
  font-size: 8.5px;
  word-break: break-all;
  color: #0f172a;
}

/* CASCADING PHARMA TIMELINE, CLINICAL ALERT BANNER & WITNESS ENGINE (SUB-TASK 11.4) */
.clinical-alert-banner {
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  border-left: 5px solid #dc2626;
  border-radius: 4px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.clinical-alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid #fecaca;
}

.clinical-alert-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.clinical-alert-patient-name {
  font-size: 12px;
  font-weight: 800;
  color: #7f1d1d;
  font-family: var(--font-sans);
}

.clinical-alert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.clinical-alert-cell {
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 3px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.clinical-alert-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #991b1b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clinical-alert-value {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
  word-break: break-word;
}

.clinical-alert-value.danger {
  color: #dc2626;
  font-weight: 800;
}

.incident-headline-banner {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.pharma-timeline-heading {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pharma-timeline-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.pharma-timeline-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #2563eb;
  border-radius: 4px;
  padding: 9px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pharma-timeline-card.pharma-entry {
  border-left-color: #dc2626;
}

.pharma-timeline-card.ops-entry {
  border-left-color: #0284c7;
}

.pharma-timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
}

.pharma-timeline-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pharma-drug-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
}

.pharma-timeline-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 4px 8px;
  margin-bottom: 6px;
}

.pharma-override-note {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 3px solid #d97706;
  color: #78350f;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.pharma-clinical-notes {
  font-size: 10.5px;
  color: #1e293b;
  line-height: 1.45;
  margin-top: 2px;
}

.pharma-signature-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.pharma-sig-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 3px 8px;
}

.pharma-sig-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #475569;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
}

.pharma-signature-thumb {
  height: 30px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  padding: 2px;
}

.sitrep-timeline-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.sitrep-node-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #2563eb;
  border-radius: 4px;
  padding: 8px 10px;
}

.sitrep-node-card.initial-report {
  border-left-color: #475569;
  background: #f8fafc;
}

.sitrep-node-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px dashed #e2e8f0;
}

.sitrep-node-author {
  font-size: 9.5px;
  font-weight: 800;
  color: #1e3a8a;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
}

.sitrep-node-body {
  font-size: 10.5px;
  color: #334155;
  line-height: 1.5;
}

@media print {
  @page {
    margin: 14mm 12mm;
  }

  .command-desk-frame,
  #odin-global-header,
  #grid-table-container,
  #viewport-resizer-gutter,
  .btn-pdf-export,
  .btn-modal-close {
    border: none !important;
    box-shadow: none !important;
  }

  .dossier-patient-redflag-banner,
  .dossier-gsbil-strip,
  .dossier-worm-box,
  .pdf-pharma-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
/* AIDE-MEMOIRE SOP DOSSIER & CHECKLIST RUNNER HUD (SUB-TASK 11.4B) */
.protocol-mask-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.protocol-mask-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.sop-runner-step-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sop-runner-step-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sop-runner-step-row:hover {
  background: #fefce8;
  border-color: #d97706;
}

.sop-runner-step-row.sop-step-completed {
  background: #f0fdf4;
  border-color: #86efac;
  opacity: 0.85;
}

.sop-runner-step-row.sop-step-completed .sop-runner-step-text {
  text-decoration: line-through;
  color: #475569;
}

.sop-runner-checkbox {
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.sop-runner-step-index {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 800;
  color: #b45309;
  flex-shrink: 0;
}

.sop-runner-step-text {
  font-size: 11px;
  color: #0f172a;
  line-height: 1.45;
  flex: 1;
}

.sop-runner-step-text .report-paragraph {
  margin-bottom: 0;
}

.protocol-linked-incidents-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.protocol-tier-core-strip {
  background: #0f172a;
  border-left: 4px solid #38bdf8;
}

.protocol-scope-header.scope-core-doctrine {
  background: #eff6ff;
  border-left: 4px solid #1d4ed8;
}

.sop-runner-step-row.sop-step-redline {
  background: #fef2f2;
  border-color: #fca5a5;
  border-left: 4px solid #dc2626;
}

.sop-runner-step-row.sop-step-redline .sop-runner-step-index,
.sop-runner-step-row.sop-step-redline .sop-runner-step-text {
  color: #991b1b;
  font-weight: 700;
}

/* TASK DISPATCH HUD & RUNNER CARD UTILITIES (SUB-TASK 11.9) */
.hud-task-detail-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 14px;
  box-sizing: border-box;
  width: 100%;
}

.field-signature-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-left: 4px solid #d97706;
  border-radius: 4px;
  padding: 10px 12px;
}

.protocol-checklist-strip {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.checklist-step-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 6px 8px;
  cursor: pointer;
}

.checklist-step-item.checked .checklist-step-text {
  text-decoration: line-through;
  color: #64748b;
}

.checklist-checkbox {
  margin-top: 2px;
  cursor: pointer;
}

.checklist-step-text {
  font-size: 11px;
  color: #0f172a;
  line-height: 1.4;
}

.protocol-doc-preview {
  font-size: 11px;
  color: #334155;
  line-height: 1.5;
  border-top: 1px dashed #cbd5e1;
  padding-top: 8px;
}

.badge-tag.critical {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.badge-tag.active {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.badge-tag.highlight-green {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.badge-tag.alert-amber {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

/* LOCATIONS TWO-STAGE RISK SEPARATION & WORKING-DAY METEO STRIP (SUB-TASK 13.2) */
.loc-two-stage-pill-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.working-day-meteo-strip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  border-radius: 4px;
  padding: 8px 12px;
  box-sizing: border-box;
}

.working-day-meteo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.working-day-meteo-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0f172a;
  text-transform: uppercase;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.two-stage-risk-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 12px 14px;
  box-sizing: border-box;
  width: 100%;
}

.two-stage-risk-card.stage-2-radar-card {
  border-left: 4px solid #0284c7;
  background: #f8fafc;
}

.stage-1-init-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  border-left: 5px solid #d97706;
  border-radius: 4px;
  padding: 10px 14px;
  box-sizing: border-box;
  width: 100%;
}

.stage-1-init-callout-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 260px;
  min-width: 0;
}

.stage-1-init-callout-title {
  font-size: 11px;
  font-weight: 900;
  color: #92400e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stage-1-init-callout-desc {
  font-size: 10.5px;
  color: #78350f;
  line-height: 1.4;
}

.stage-1-init-cta {
  padding: 6px 12px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.eval-audit-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.eval-audit-cell {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.eval-audit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.eval-audit-label {
  font-size: 9.5px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eval-audit-ts {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #0f172a;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.eval-audit-sub {
  font-size: 10px;
  color: #475569;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.exec-brief-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #1e3a8a;
  border-radius: 4px;
  padding: 10px 12px;
  box-sizing: border-box;
  width: 100%;
}

.exec-brief-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.exec-brief-title {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: normal;
  line-height: 1.3;
}

.exec-brief-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exec-brief-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.exec-brief-tag {
  font-size: 9px;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.exec-brief-body {
  font-size: 11px;
  color: #1e293b;
  line-height: 1.45;
}

.hub-eval-ts-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 4px 8px;
}

.two-stage-risk-card.stage-1-baseline-card {
  border-left: 4px solid #d97706;
  background: #fffdf5;
}

.two-stage-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 6px;
}

.two-stage-title-cluster {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.two-stage-tag {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.two-stage-tag.stage-2 {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #0284c7;
}

.two-stage-tag.stage-1 {
  background: #451a03;
  color: #fde68a;
  border: 1px solid #d97706;
}

.two-stage-heading {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.two-stage-card-meta {
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  color: #64748b;
  margin-bottom: 8px;
}

.two-stage-card-body {
  font-size: 11px;
  line-height: 1.55;
  color: #1e293b;
}

.estate-forecast-cell.meteo-cell-danger {
  background: #fef2f2;
  border: 1.5px solid #ef4444;
  border-left: 4px solid #dc2626;
}

.estate-forecast-cell.meteo-cell-danger .estate-forecast-label,
.estate-forecast-cell.meteo-cell-danger .estate-forecast-value {
  color: #991b1b;
}

.meteo-window-segments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.meteo-seg-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 4px 8px;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meteo-seg-pill.warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #78350f;
}

.meteo-seg-pill.danger {
  background: #fef2f2;
  border-color: #ef4444;
  color: #991b1b;
  font-weight: 700;
}

.meteo-seg-time {
  font-weight: 800;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stage-1-summary-bar {
  list-style: none;
  user-select: none;
}

.stage-1-summary-bar::-webkit-details-marker {
  display: none;
}

details.stage-1-collapsible-drawer:not([open]) .two-stage-card-header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.hub-radar-estate-digest {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #0284c7;
  border-radius: 4px;
  padding: 8px 10px;
  overflow: hidden;
}

.hub-radar-estate-digest .exec-brief-body {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.9em;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* LIVE SATELLITE TRANSPONDER HUD STRIP (SUB-TASK 11.11B) */
.transponder-telemetry-strip {
  background: #0f172a;
  border: 1px solid #0284c7;
  border-left: 4px solid #38bdf8;
  border-radius: 4px;
  padding: 10px 12px;
  color: #f8fafc;
  box-sizing: border-box;
  width: 100%;
}

.transponder-telemetry-strip.sos-alert {
  background: #450a0a;
  border-color: #ef4444;
  border-left: 4px solid #dc2626;
}

.transponder-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.transponder-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0369a1;
  color: #e0f2fe;
  border: 1px solid #38bdf8;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transponder-sos-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #fca5a5;
  font-family: var(--font-mono, monospace);
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.transponder-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.transponder-metric-cell {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 3px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.transponder-metric-label {
  font-size: 8px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transponder-metric-val {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status Badges & Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ------------------------------------------------------------------------
   SUB-ANCHOR 9.1.9: TABLES, BADGES & SCROLLBAR OVERRIDES
   .status-badge { display: inline-block; padding: 2px 5px; font-size: 9.5px; font-weight: 800; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.status-badge.active, .status-badge.in-date { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.status-badge.warning, .status-badge.expiring { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.status-badge.critical, .status-badge.expired { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* CLINICAL ALERT BANNER & CASCADING PHARMA TIMELINE (SUB-TASK 11.4) */
.clinical-alert-banner {
  background: #fef2f2;
  border: 1.5px solid #dc2626;
  border-left: 5px solid #dc2626;
  border-radius: 4px;
  padding: 10px 12px;
  box-sizing: border-box;
}

.clinical-alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.clinical-alert-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.clinical-alert-patient-name {
  font-size: 12px;
  font-weight: 800;
  color: #7f1d1d;
  letter-spacing: 0.03em;
}

.clinical-alert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.clinical-alert-cell {
  background: #ffffff;
  border: 1px solid #fecaca;
  border-radius: 3px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.clinical-alert-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #991b1b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clinical-alert-value {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
  word-break: break-word;
}

.clinical-alert-value.danger {
  color: #dc2626;
  font-weight: 800;
}

.pharma-timeline-heading {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pharma-timeline-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.pharma-timeline-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 9px 12px;
  box-sizing: border-box;
}

.pharma-timeline-card.pharma-entry {
  border-left: 4px solid #16a34a;
}

.pharma-timeline-card.ops-entry {
  border-left: 4px solid #0284c7;
}

.pharma-timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
}

.pharma-timeline-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pharma-drug-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #0f172a;
}

.pharma-timeline-meta-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  color: #334155;
  margin-bottom: 4px;
}

.pharma-override-note {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 10px;
  color: #92400e;
  margin-top: 4px;
}

.pharma-clinical-notes {
  font-size: 10.5px;
  color: #1e293b;
  line-height: 1.45;
  margin-top: 4px;
}

.pharma-signature-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.pharma-sig-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 4px 6px;
}

.pharma-sig-label {
  font-size: 8px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pharma-signature-thumb {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}------------------------------------------------------------------------ */

/* UNIFIED STICKY TABLE HEADERS WITH HIGH ELEVATION */
table.odin-grid,
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto);
  table-layout: auto;
}

table.odin-grid th,
table.data-table th {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #f1f5f9;
  color: #334155;
  padding: 9px 12px;
  text-align: left;
  border-bottom: 2px solid #cbd5e1;
  position: sticky;
  top: 0;
  z-index: 15;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

table.odin-grid td,
table.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  white-space: nowrap;
  font-weight: 500;
  vertical-align: middle;
  transition: background-color 0.1s ease;
}

table.odin-grid tr:hover,
table.data-table tr:hover {
  background-color: #f8fafc;
}

.tree-subrow-hidden {
  display: none !important;
}

.tree-platform-parent-row {
  background-color: #f1f5f9;
  font-weight: 600;
  border-left: 3px solid #0284c7;
}

.tree-platform-parent-row:hover {
  background-color: #e2e8f0;
}

.tree-child-level-1 {
  background-color: #f8fafc;
}

.tree-child-level-1:hover {
  background-color: #f1f5f9;
}

.tree-child-level-2 {
  background-color: #ffffff;
}

.tree-child-level-2:hover {
  background-color: #f8fafc;
}

.tree-connector-pipe {
  color: #94a3b8;
  font-family: monospace;
  font-weight: bold;
  margin-right: 4px;
  user-select: none;
}

.btn-tree-expander {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  color: #0f172a;
  font-size: 11px;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s ease-in-out;
}

.btn-tree-expander:hover {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.projects-table-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.projects-tree-table {
  width: 100%;
  border-collapse: collapse;
}

.projects-tree-table th,
.projects-tree-table td {
  vertical-align: middle;
}

.col-prj-act { width: 90px; min-width: 85px; }
.col-prj-id { width: 120px; min-width: 110px; }
.col-prj-arch { width: auto; min-width: 320px; }
.col-prj-tasks { width: 110px; min-width: 100px; }
.col-prj-status { width: 90px; min-width: 80px; }

.prj-title-cell {
  display: inline;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

/* Dedicated Column Geometry for Projects Tree-Grid */
.projects-tree-table th.col-prj-act,
.projects-tree-table td.col-prj-act {
  width: 90px;
  min-width: 85px;
  max-width: 95px;
  padding: 6px 4px;
  white-space: nowrap;
  text-align: center;
}

.projects-tree-table th.col-prj-id,
.projects-tree-table td.col-prj-id {
  width: 120px;
  min-width: 110px;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.projects-tree-table th.col-prj-arch,
.projects-tree-table td.col-prj-arch {
  width: auto;
  min-width: 320px;
  white-space: normal;
  overflow: visible;
  padding: 8px 10px;
}

.projects-tree-table th.col-prj-tasks,
.projects-tree-table td.col-prj-tasks {
  width: 110px;
  min-width: 100px;
  text-align: center;
  white-space: nowrap;
}

.projects-tree-table th.col-prj-status,
.projects-tree-table td.col-prj-status {
  width: 90px;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

/* Tree-Grid Hierarchy Micro-Styling */
.tree-toggle-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 3px;
  cursor: pointer;
  padding: 0 4px;
  font-size: 9px;
  line-height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.tree-toggle-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tree-branch-indent {
  display: inline-flex;
  align-items: center;
  padding-left: 12px;
}

.tree-branch-connector {
  font-family: monospace;
  color: #94a3b8;
  font-weight: 700;
  margin-right: 4px;
  user-select: none;
}

.hidden-tree-row {
  display: none !important;
}

.child-tree-row td {
  border-top: 1px dashed #e2e8f0;
}

/* Composite HUD Badges & Dynamic Status Tokens */
.status-badge.badge-active {
  background-color: #dcfce7;
  color: #14532d;
  border-color: #4ade80;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.08);
}

.status-badge.badge-staged {
  background-color: #fef3c7;
  color: #78350f;
  border-color: #fbbf24;
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.08);
}

.status-badge.badge-planned {
  background-color: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.corridor-route-text {
  font-weight: 700;
  color: #0f172a;
}

/* Telemetry HUD Metric Fixes */
.kpi-card-value-text {
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0f172a;
}

/* Work Breakdown Structure (WBS) Progress Bar */
.wbs-progress-container {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px 10px;
  box-sizing: border-box;
}

.wbs-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.wbs-progress-bar {
  height: 100%;
  background: #2563eb;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.wbs-progress-fill-0 { width: 0%; }
.wbs-progress-fill-10 { width: 10%; }
.wbs-progress-fill-20 { width: 20%; }
.wbs-progress-fill-30 { width: 30%; }
.wbs-progress-fill-40 { width: 40%; }
.wbs-progress-fill-50 { width: 50%; }
.wbs-progress-fill-60 { width: 60%; }
.wbs-progress-fill-70 { width: 70%; }
.wbs-progress-fill-80 { width: 80%; }
.wbs-progress-fill-90 { width: 90%; }
.wbs-progress-fill-100 { width: 100%; background: #16a34a; }

/* Maritime Telemetry HUD Panel */
.maritime-telemetry-panel {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  padding: 10px;
  box-sizing: border-box;
}

.telemetry-grid-3col-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.maritime-spec-item {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 6px 8px;
  border-radius: 3px;
  border: 1px solid #dcfce7;
  overflow: hidden;
}

.maritime-spec-item .spec-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.maritime-spec-item .spec-value {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sub-Package List Card Protection */
.subproject-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  gap: 8px;
}

.subproject-item-title {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}

.subproject-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.subproject-item-actions .badge-tag {
  white-space: nowrap;
  flex-shrink: 0;
}

.data-table th.col-w-tree,
.data-table td.col-tree-cell {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  padding: 6px 2px;
}

.data-table th.col-w-actions-left,
.data-table td.col-action-cell {
  width: 76px;
  min-width: 76px;
  max-width: 76px;
  padding: 6px 4px;
  white-space: nowrap;
}

.data-table th.col-w-asset-id,
.data-table td.col-id-cell {
  width: 140px;
  min-width: 140px;
  max-width: 150px;
}

.data-table th.col-w-asset-meta,
.data-table td.col-meta-cell {
  width: 130px;
  min-width: 120px;
  max-width: 140px;
}

.data-table th.col-w-asset-status,
.data-table td.col-status-cell {
  width: 110px;
  min-width: 100px;
  max-width: 120px;
}

.data-table th.col-w-asset-hub,
.data-table td.col-hub-cell {
  width: 150px;
  min-width: 130px;
  max-width: 170px;
}

/* --- ACTION BUTTON EXPANSION --- */
.btn-grid-action-primary {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 3px;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}

.btn-grid-action-primary:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.protocol-tree-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
}

.protocol-filter-summary-strip {
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 7px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.protocol-filter-summary-label {
  font-size: 9px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.protocol-filter-summary-pill {
  background: #1e293b;
  color: #a5f3fc;
  font-size: 8.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid #334155;
}

.protocol-scope-card {
  border-bottom: 1px solid #cbd5e1;
  background: #ffffff;
}

.protocol-scope-header {
  background: #f8fafc;
  border-left: 4px solid #0284c7;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.protocol-scope-header:hover {
  background: #f1f5f9;
}

.protocol-scope-header.scope-estate {
  border-left-color: #0284c7;
}

.protocol-scope-header.scope-tactical {
  border-left-color: #ef4444;
}

.protocol-scope-header.scope-emergency {
  border-left-color: #dc2626;
}

.protocol-scope-header.scope-maritime {
  border-left-color: #0284c7;
}

.protocol-scope-header.scope-transit {
  border-left-color: #d97706;
}

.protocol-scope-header:hover {
  background: #f1f5f9;
}

.protocol-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.protocol-scope-name {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.protocol-scope-count {
  font-size: 8.5px;
  font-weight: 800;
  padding: 1px 6px;
  background: #e2e8f0;
  color: #475569;
  border-radius: 2px;
  font-family: var(--font-mono);
}

.protocol-scope-body {
  display: flex;
  flex-direction: column;
}

.protocol-scope-body.collapsed {
  display: none;
}

.protocol-volume-subgroup {
  border-top: 1px solid #f1f5f9;
}

.protocol-volume-header {
  background: #ffffff;
  padding: 6px 12px 6px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.protocol-volume-header:hover {
  background: #f8fafc;
}

.protocol-volume-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.protocol-volume-body {
  display: flex;
  flex-direction: column;
}

.protocol-volume-body.collapsed {
  display: none;
}

.protocol-leaf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px 6px 48px;
  border-top: 1px solid #f8fafc;
  cursor: pointer;
  transition: background 0.12s ease;
}

.protocol-leaf-row:hover {
  background: #f1f5f9;
}

.protocol-leaf-row.active-protocol-row {
  background: #e0f2fe;
  border-left: 4px solid #0284c7;
}

.protocol-leaf-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.protocol-leaf-title {
  font-size: 10.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.protocol-leaf-id {
  font-size: 8.5px;
  font-family: var(--font-mono);
  color: #64748b;
  font-weight: 700;
}

.protocol-runner-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.protocol-runner-header {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 4px;
  padding: 12px 16px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.protocol-header-title {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.05em;
  font-family: var(--font-sans);
}

.protocol-header-vol {
  font-size: 10px;
  color: #38bdf8;
  font-family: var(--font-mono);
  margin-top: 3px;
}

.protocol-checklist-strip {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 8px 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.checklist-step-item.checked {
  background: #f0fdf4;
  border-color: #86efac;
}

.checklist-checkbox {
  margin-top: 2px;
  cursor: pointer;
}

.checklist-step-text {
  font-size: 11px;
  color: #1e293b;
  line-height: 1.45;
  flex: 1;
}

.checklist-step-item.checked .checklist-step-text {
  text-decoration: line-through;
  color: #15803d;
}

.protocol-doc-preview {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 14px;
  box-sizing: border-box;
}