:root {
  --bg: #071226;
  --bg-2: #0b1730;
  --bg-3: #112240;
  --surface: rgba(17, 34, 64, 0.78);
  --surface-strong: rgba(30, 58, 95, 0.86);
  --surface-soft: rgba(96, 165, 250, 0.10);
  --surface-glass: rgba(11, 30, 58, 0.64);
  --ink: #f8fafc;
  --ink-soft: #e2e8f0;
  --muted: #9fb3d1;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(96, 165, 250, 0.32);
  --brand: #2563eb;
  --brand-strong: #60a5fa;
  --brand-soft: rgba(37, 99, 235, 0.16);
  --accent: #f59e0b;
  --danger: #ef4444;
  --warn: #f59e0b;
  --good: #10b981;
  --ai: #8b5cf6;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.22);
  --glow: 0 0 0 1px rgba(96, 165, 250, 0.16), 0 18px 60px rgba(37, 99, 235, 0.22);
  --fast: 0.18s ease;
  --font-page-title: 34px;
  --font-section-title: 22px;
  --font-card-title: 17px;
  --font-body: 15px;
  --font-table: 13.5px;
  --font-badge: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-size: var(--font-body);
  line-height: 1.5;
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.22), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.14), transparent 28%),
    linear-gradient(135deg, #0b1730, #112240 46%, #071226);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(248, 250, 252, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(248, 250, 252, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

body.auth-locked {
  overflow: hidden;
}

button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(32px, 3vw, 36px); line-height: 1.08; letter-spacing: 0; font-weight: 900; }
h2 { font-size: var(--font-section-title); line-height: 1.18; letter-spacing: 0; font-weight: 900; }
h3 { font-size: var(--font-card-title); line-height: 1.24; margin-bottom: 10px; font-weight: 850; }
.muted, .timeline-item time { color: var(--muted); }
.page-subtitle { color: var(--muted); font-size: 14px; }

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 22% 12%, rgba(37, 99, 235, 0.28), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(96, 165, 250, 0.14), transparent 28%),
    linear-gradient(135deg, #071226, #112240);
}
.login-screen.hidden { display: none; }
.login-panel {
  width: min(440px, 100%);
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 34, 64, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell.auth-locked {
  display: none;
}

.session-chip {
  min-width: 260px;
  max-width: 460px;
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: rgba(7, 18, 38, 0.62);
}
.session-chip strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.1;
}
.session-chip span,
.session-chip small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}
.is-hidden {
  display: none !important;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--ink);
  background: rgba(7, 18, 38, 0.82);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #f8fafc;
  font-weight: 900;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 0 38px rgba(37, 99, 235, 0.45);
}
.brand span, .side-card p, .eyebrow { color: var(--muted); }

.nav-list { display: grid; gap: 6px; overflow-y: auto; padding-right: 2px; }
.nav-group {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.nav-group-title {
  margin: 10px 4px 2px;
  color: #7fa4d6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 14px;
  color: #d8e7ff;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 800;
  transition: transform var(--fast), background var(--fast), box-shadow var(--fast), color var(--fast);
}
.nav-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(96, 165, 250, 0.20);
  border-radius: 8px;
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.08);
  font-size: 12px;
  font-weight: 900;
}
.nav-button.active, .nav-button:hover {
  color: #fff;
  background: rgba(37, 99, 235, 0.20);
  box-shadow: inset 3px 0 0 #60a5fa, 0 0 28px rgba(37, 99, 235, 0.18);
  transform: translateX(3px);
}
.nav-button.active .nav-icon, .nav-button:hover .nav-icon {
  border-color: rgba(96, 165, 250, 0.52);
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.82), rgba(96, 165, 250, 0.28));
}

.side-card, .panel, .metric, .notification-center, dialog, .executive-hero, .module-cockpit-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 34, 64, 0.82), rgba(11, 30, 58, 0.66));
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.side-card { margin-top: auto; padding: 16px; }

.workspace { min-width: 0; padding: 24px; overflow: hidden; }
.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(7, 18, 38, 0.38);
  backdrop-filter: blur(18px);
}
.top-actions { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.tenant-field select { min-width: 220px; }

.module-cockpit {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(170px, 0.7fr));
  gap: 12px;
  margin: 0 0 18px;
}
.module-cockpit-card {
  position: relative;
  min-height: 104px;
  padding: 16px;
  overflow: hidden;
}
.module-cockpit-card::after {
  content: "";
  position: absolute;
  inset: auto -26px -42px auto;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.24), transparent 64%);
  pointer-events: none;
}
.module-cockpit-card span, .module-cockpit-card small {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-weight: 800;
}
.module-cockpit-card > strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px 0 5px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
  color: var(--ink);
}
.module-cockpit-card p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.module-cockpit-hero {
  border-color: rgba(96, 165, 250, 0.28);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.30), rgba(11, 30, 58, 0.72));
}
.module-cockpit-card.tone-good { border-color: rgba(16, 185, 129, 0.34); }
.module-cockpit-card.tone-warn { border-color: rgba(245, 158, 11, 0.38); }
.module-cockpit-card.tone-danger { border-color: rgba(239, 68, 68, 0.36); }
.module-cockpit-card.tone-ai { border-color: rgba(139, 92, 246, 0.38); }
.module-cockpit-card.tone-cyan { border-color: rgba(34, 211, 238, 0.32); }
.module-cockpit-card.tone-blue { border-color: rgba(96, 165, 250, 0.36); }
.module-cockpit-card.tone-good::after { background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 64%); }
.module-cockpit-card.tone-warn::after { background: radial-gradient(circle, rgba(245, 158, 11, 0.24), transparent 64%); }
.module-cockpit-card.tone-danger::after { background: radial-gradient(circle, rgba(239, 68, 68, 0.24), transparent 64%); }
.module-cockpit-card.tone-ai::after { background: radial-gradient(circle, rgba(139, 92, 246, 0.24), transparent 64%); }
.module-cockpit-card.tone-cyan::after { background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 64%); }
.module-action-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -6px 0 18px;
  padding: 12px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(7, 18, 38, 0.56), rgba(16, 42, 76, 0.36));
  backdrop-filter: blur(18px);
}
.module-action-strip::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.72), transparent);
  opacity: 0.35;
}
body.is-loading .module-action-strip::before {
  animation: loadingSweep 1.1s ease-in-out infinite;
  opacity: 1;
}
.module-actions-main, .module-actions-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.module-actions-meta {
  justify-content: flex-end;
}
.global-search-panel {
  margin: -6px 0 18px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(7, 18, 38, 0.86);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.global-search-panel[hidden] { display: none; }
.global-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.global-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.global-search-result {
  min-height: 104px;
  display: grid;
  gap: 7px;
  justify-items: start;
  padding: 13px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(17, 34, 64, 0.68);
  text-align: left;
}
.global-search-result strong {
  font-size: 15px;
}
.global-search-result small {
  color: var(--muted);
  font-weight: 700;
}
.eyebrow {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-field, .form-grid label, .mission-grid label, .dialog-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(248, 250, 252, 0.08);
  outline: none;
  transition: border var(--fast), box-shadow var(--fast), background var(--fast);
}
textarea {
  resize: vertical;
  line-height: 1.45;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(96, 165, 250, 0.85);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}
.search-field input { min-width: 280px; }

button {
  min-height: 42px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 900;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast), border var(--fast);
}
button:hover { transform: translateY(-1px); box-shadow: var(--glow); }
button:disabled, .permission-disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none !important;
  box-shadow: none !important;
}
button:focus-visible, .nav-button:focus-visible, a:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9);
  outline-offset: 3px;
}
.primary-button { color: #fff; background: linear-gradient(135deg, #2563eb, #60a5fa); }
.secondary-button, .icon-button {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.26);
  background: rgba(96, 165, 250, 0.10);
}
.danger-button {
  color: #fff;
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, #b91c1c, #ef4444);
}
.compact-action {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.action-dropdown {
  position: relative;
}
.action-dropdown summary {
  min-width: 34px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(37, 99, 235, 0.14);
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}
.action-dropdown summary::-webkit-details-marker { display: none; }
.action-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  min-width: 170px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(7, 18, 38, 0.96);
  box-shadow: var(--shadow);
}
.action-dropdown-menu button {
  min-height: 34px;
  justify-content: flex-start;
  text-align: left;
  color: var(--ink);
  border-color: transparent;
  background: transparent;
}
.action-dropdown-menu button:hover {
  background: rgba(96, 165, 250, 0.12);
}
.danger-action {
  color: #fecdd3 !important;
}
.is-hidden { display: none !important; }
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.notification-button { position: relative; }
.notification-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  color: #071226;
  background: var(--accent);
  font-size: 12px;
}

.executive-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(17, 34, 64, 0.68)),
    rgba(17, 34, 64, 0.78);
}
.executive-hero h2 { font-size: clamp(22px, 4vw, 34px); max-width: 780px; }
.live-chip {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(52, 211, 153, 0.10);
  font-weight: 900;
}
.live-chip span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.14);
  animation: pulse 1.6s infinite;
}
.live-chip[data-mode="pending"] {
  border-color: rgba(96, 165, 250, 0.34);
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.14);
}
.live-chip[data-mode="pending"] span { background: var(--blue-soft); }
.live-chip[data-mode="warn"] {
  border-color: rgba(245, 158, 11, 0.34);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}
.live-chip[data-mode="warn"] span { background: var(--warn); }

.notification-center { display: none; margin-bottom: 16px; padding: 18px; }
.notification-center.open { display: block; animation: slideIn 0.24s ease; }

.alert-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.alert-pill {
  border: 1px solid rgba(245, 158, 11, 0.30);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.10);
  font-weight: 900;
}
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.18s ease; }

.metric-grid, .metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.risk-command-center {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(7, 18, 38, 0.56), rgba(11, 30, 58, 0.40));
  box-shadow: var(--shadow);
}
.risk-command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.risk-command-header h2 {
  margin: 0;
  font-size: 20px;
}
.risk-command-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.risk-card {
  min-height: 144px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: var(--radius);
  background: rgba(17, 34, 64, 0.66);
}
.risk-card span {
  color: var(--muted);
  font-weight: 900;
}
.risk-card strong { font-size: 28px; }
.risk-card p {
  min-height: 38px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.risk-card.tone-good { border-color: rgba(16, 185, 129, 0.28); }
.risk-card.tone-warn { border-color: rgba(245, 158, 11, 0.34); }
.risk-card.tone-danger { border-color: rgba(239, 68, 68, 0.34); }
.metric, .metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 58, 95, 0.76), rgba(17, 34, 64, 0.76));
  box-shadow: var(--shadow);
  transition: transform var(--fast), box-shadow var(--fast), border var(--fast);
}
.metric:hover, .metric-card:hover, .vehicle-card:hover, .service-card:hover, .pricing-card:hover, .map-pin:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.38);
  box-shadow: var(--glow);
}
.metric::after, .metric-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.65), rgba(245, 158, 11, 0.5));
  opacity: 0.5;
  clip-path: polygon(0 65%, 15% 35%, 32% 58%, 50% 25%, 70% 45%, 100% 18%, 100% 100%, 0 100%);
}
.metric.cockpit-card {
  min-height: 156px;
  isolation: isolate;
  background:
    radial-gradient(circle at 82% 22%, rgba(96, 165, 250, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(30, 58, 95, 0.84), rgba(11, 23, 48, 0.82));
}
.metric.cockpit-card.green { background: radial-gradient(circle at 82% 22%, rgba(16, 185, 129, 0.22), transparent 28%), linear-gradient(180deg, rgba(13, 80, 73, 0.64), rgba(11, 23, 48, 0.82)); }
.metric.cockpit-card.amber { background: radial-gradient(circle at 82% 22%, rgba(245, 158, 11, 0.24), transparent 28%), linear-gradient(180deg, rgba(92, 61, 18, 0.62), rgba(11, 23, 48, 0.82)); }
.metric.cockpit-card.red, .metric.cockpit-card.danger { background: radial-gradient(circle at 82% 22%, rgba(239, 68, 68, 0.24), transparent 28%), linear-gradient(180deg, rgba(91, 28, 40, 0.58), rgba(11, 23, 48, 0.82)); }
.metric.cockpit-card.cyan { background: radial-gradient(circle at 82% 22%, rgba(34, 211, 238, 0.20), transparent 28%), linear-gradient(180deg, rgba(14, 83, 104, 0.56), rgba(11, 23, 48, 0.82)); }
.metric-top, .metric-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.metric-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 16px;
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.12);
  box-shadow: inset 0 0 28px rgba(96, 165, 250, 0.14);
  font-weight: 900;
}
.metric-bottom small {
  color: var(--muted);
  font-weight: 800;
}
.sparkline {
  width: 116px;
  height: 34px;
  overflow: visible;
}
.sparkline path {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.55));
}
.sparkline.green path, .sparkline.good path { stroke: #10b981; filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.48)); }
.sparkline.amber path, .sparkline.warn path { stroke: #f59e0b; filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.46)); }
.sparkline.red path, .sparkline.danger path { stroke: #ef4444; filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.42)); }
.sparkline.cyan path { stroke: #22d3ee; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.42)); }
.metric strong, .metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}
.vehicle-card strong, .document-card strong, .report-card strong, .service-card strong, .pricing-card strong {
  font-size: var(--font-card-title);
}

.dashboard-grid, .module-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 16px;
  margin-bottom: 16px;
}
.module-layout { grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr); }
.wide { min-width: 0; }
.panel { padding: 18px; }
.form-drawer {
  position: fixed;
  inset: 18px 18px 18px auto;
  z-index: 16;
  width: min(520px, calc(100vw - 28px));
  display: none;
  overflow-y: auto;
  border-color: rgba(96, 165, 250, 0.36);
  background: rgba(11, 23, 48, 0.94);
  backdrop-filter: blur(22px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), 0 0 80px rgba(37, 99, 235, 0.22);
}
.form-drawer.open {
  display: block;
  animation: drawerIn 0.24s ease;
}
.drawer-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid rgba(96, 165, 250, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 18, 38, 0.30);
}
.drawer-stepper span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.drawer-stepper .active {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.62);
  background: rgba(37, 99, 235, 0.28);
}
.drawer-close { min-width: 42px; padding: 0 12px; }
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.fleet-live-map, .map-shell {
  min-height: 330px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 22%, rgba(96, 165, 250, 0.22), transparent 16%),
    radial-gradient(circle at 78% 66%, rgba(245, 158, 11, 0.16), transparent 18%),
    linear-gradient(90deg, rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px),
    rgba(7, 18, 38, 0.7);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
}
.map-pin, .fleet-pin {
  align-self: start;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: var(--radius);
  background: rgba(17, 34, 64, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.map-pin a { color: var(--brand-strong); font-weight: 900; text-decoration: none; }

.table-wrap { overflow-x: auto; }
.table-wrap td, .table-wrap th { overflow-wrap: anywhere; }
table { width: 100%; min-width: 660px; border-collapse: collapse; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: var(--font-table); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0; }
tbody tr { transition: background var(--fast); }
tbody tr:hover { background: rgba(96, 165, 250, 0.055); }
.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(248, 250, 252, 0.35);
  border-radius: 50%;
  vertical-align: -1px;
}
.admin-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.admin-groups, .admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.admin-groups {
  padding: 8px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 18, 38, 0.28);
}
.admin-groups .active, .admin-tabs .active {
  border-color: rgba(96, 165, 250, 0.72);
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.70), rgba(96, 165, 250, 0.20));
}
.admin-command {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 14px;
}
.admin-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(11, 30, 58, 0.46));
}
.admin-intro h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.admin-intro p {
  margin: 0;
  color: var(--muted);
}
.admin-kpi {
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(16, 42, 76, 0.86), rgba(11, 30, 58, 0.62));
}
.admin-kpi span, .admin-kpi small { display: block; color: var(--muted); }
.admin-kpi strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 26px;
}

.vehicle-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}
.vehicle-thumb {
  width: 58px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(96, 165, 250, 0.26);
  border-radius: 12px;
  background:
    linear-gradient(0deg, rgba(248, 250, 252, 0.84) 0 38%, transparent 39%),
    linear-gradient(135deg, rgba(96, 165, 250, 0.76), rgba(37, 99, 235, 0.18));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
}
.vehicle-thumb.warn { background: linear-gradient(0deg, rgba(253, 230, 138, 0.86) 0 38%, transparent 39%), linear-gradient(135deg, rgba(245, 158, 11, 0.72), rgba(37, 99, 235, 0.14)); }
.vehicle-thumb.danger { background: linear-gradient(0deg, rgba(254, 205, 211, 0.86) 0 38%, transparent 39%), linear-gradient(135deg, rgba(239, 68, 68, 0.70), rgba(37, 99, 235, 0.14)); }
.health-ring {
  --score: 72;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border-radius: 999px;
  color: var(--ink);
  background:
    radial-gradient(circle at center, #0b1730 57%, transparent 58%),
    conic-gradient(#60a5fa calc(var(--score) * 1%), rgba(148, 163, 184, 0.18) 0);
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}
.health-ring.good { background: radial-gradient(circle at center, #0b1730 57%, transparent 58%), conic-gradient(#10b981 calc(var(--score) * 1%), rgba(148, 163, 184, 0.18) 0); }
.health-ring.warn { background: radial-gradient(circle at center, #0b1730 57%, transparent 58%), conic-gradient(#f59e0b calc(var(--score) * 1%), rgba(148, 163, 184, 0.18) 0); }
.health-ring.danger { background: radial-gradient(circle at center, #0b1730 57%, transparent 58%), conic-gradient(#ef4444 calc(var(--score) * 1%), rgba(148, 163, 184, 0.18) 0); }

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: var(--font-badge);
  font-weight: 900;
}
.status.good { color: #bbf7d0; background: rgba(16, 185, 129, 0.14); }
.status.warn { color: #fde68a; background: rgba(245, 158, 11, 0.15); }
.status.danger, .status.bad { color: #fecdd3; background: rgba(239, 68, 68, 0.14); }
.status.ai {
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.16);
}
.empty-state, .loading-state, .error-state {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(96, 165, 250, 0.28);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(7, 18, 38, 0.28);
}
.error-state {
  border-color: rgba(239, 68, 68, 0.38);
  color: #fecdd3;
}
.loading-state::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid rgba(96, 165, 250, 0.18);
  border-top-color: var(--brand-strong);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.breadcrumb, .pagination, .stepper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb {
  margin: 2px 0 4px;
  color: #7fa4d6;
  font-size: 12px;
  font-weight: 800;
}
.pagination button, .stepper span {
  min-height: 32px;
  padding: 0 10px;
}
.stepper span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.08);
}
.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.detail-tabs span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(96, 165, 250, 0.07);
  font-size: 12px;
  font-weight: 900;
}
.detail-tabs .active {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.58);
  background: rgba(37, 99, 235, 0.26);
}

.row-actions, .vehicle-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.vehicle-card-actions {
  grid-column: 1 / -1;
  justify-content: space-between;
}
.icon-action {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  color: var(--ink);
  background: rgba(37, 99, 235, 0.14);
  font-size: 11px;
  font-weight: 900;
}
.icon-action:hover:not(:disabled) {
  border-color: rgba(96, 165, 250, 0.58);
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.24);
}
.icon-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.danger-action {
  color: #fecdd3;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
}

.timeline, .fuel-list, .card-list, .document-board, .report-grid, .mobile-list { display: grid; gap: 12px; }
.timeline-item, .vehicle-card, .document-card, .report-card, .fuel-row, .mobile-card, .service-card, .pricing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(17, 34, 64, 0.72);
  transition: transform var(--fast), box-shadow var(--fast), border var(--fast);
}
.timeline-item { display: grid; gap: 6px; }
.vehicle-card {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 12px;
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(17, 34, 64, 0.72)),
    rgba(17, 34, 64, 0.72);
}
.vehicle-visual {
  min-height: 104px;
  display: grid;
  place-items: center;
  align-self: stretch;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 72%, rgba(248, 250, 252, 0.70) 0 9px, transparent 10px),
    linear-gradient(0deg, rgba(248, 250, 252, 0.68) 0 30%, transparent 31%),
    linear-gradient(135deg, rgba(96, 165, 250, 0.38), rgba(37, 99, 235, 0.12));
}
.vehicle-visual.warn { background: radial-gradient(circle at 50% 72%, rgba(253, 230, 138, 0.75) 0 9px, transparent 10px), linear-gradient(0deg, rgba(253, 230, 138, 0.62) 0 30%, transparent 31%), linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(37, 99, 235, 0.12)); }
.vehicle-visual.danger { background: radial-gradient(circle at 50% 72%, rgba(254, 205, 211, 0.75) 0 9px, transparent 10px), linear-gradient(0deg, rgba(254, 205, 211, 0.62) 0 30%, transparent 31%), linear-gradient(135deg, rgba(239, 68, 68, 0.34), rgba(37, 99, 235, 0.12)); }
.vehicle-visual span {
  padding: 8px 10px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(7, 18, 38, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.vehicle-detail-panel { display: none; grid-column: 1 / -1; }
.vehicle-detail-panel.open { display: block; }
.vehicle-360-content { display: grid; gap: 16px; }
.vehicle-360-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}
.vehicle-360-card {
  min-height: 110px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.vehicle-360-card strong { display: block; margin-top: 6px; font-size: 22px; }

.bar-chart { display: grid; gap: 12px; }
.donut-wrap {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 160px;
  margin-bottom: 10px;
}
.donut-chart {
  width: min(170px, 60vw);
  height: min(170px, 60vw);
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 18px rgba(37, 99, 235, 0.22));
}
.donut-wrap strong {
  position: absolute;
  font-size: 18px;
}
.chart-line {
  width: 100%;
  height: 118px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(96, 165, 250, 0.05);
}
.osm-preview {
  position: relative;
  min-height: 250px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    linear-gradient(30deg, rgba(96, 165, 250, 0.12) 1px, transparent 1px),
    linear-gradient(120deg, rgba(16, 185, 129, 0.10) 1px, transparent 1px),
    radial-gradient(circle at 55% 52%, rgba(37, 99, 235, 0.35), transparent 22%),
    #071a34;
  background-size: 42px 42px, 58px 58px, auto, auto;
}
.osm-preview::after {
  content: "Abidjan";
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  color: rgba(248, 250, 252, 0.52);
  font-weight: 900;
  letter-spacing: 0;
}
.map-dot {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.28);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12), 0 10px 28px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 2;
}
.map-dot span {
  display: block;
  width: 10px;
  height: 10px;
  margin: 8px auto;
  border-radius: 999px;
  background: var(--blue-soft);
}
.map-partner-list { display: grid; gap: 10px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 110px; align-items: center; gap: 10px; }
.bar-track { height: 14px; border-radius: 999px; overflow: hidden; background: rgba(148, 163, 184, 0.16); }
.bar-fill { height: 100%; background: linear-gradient(90deg, #2563eb, #60a5fa, #f59e0b); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compact-form { grid-template-columns: 1fr; margin-bottom: 14px; }
.full { grid-column: 1 / -1; }
.document-board, .report-grid, .marketplace-grid, .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.marketplace-grid, .pricing-grid { display: grid; gap: 12px; }
.service-card strong, .pricing-card strong, .vehicle-card strong, .document-card strong, .report-card strong { display: block; margin-bottom: 5px; }
.service-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-weight: 900; }
.pricing-card.featured { border-color: rgba(96, 165, 250, 0.55); background: rgba(37, 99, 235, 0.16); }
.document-card { border-left: 5px solid var(--good); }
.document-card.due { border-left-color: var(--warn); }
.document-card.expired { border-left-color: var(--danger); }
.file-drop-zone {
  min-height: 78px;
  align-content: center;
  padding: 12px;
  border: 1px dashed rgba(96, 165, 250, 0.42);
  border-radius: var(--radius);
  background: rgba(96, 165, 250, 0.08);
}
.file-drop-zone input {
  margin-top: 8px;
  padding: 9px;
  background: rgba(7, 18, 38, 0.54);
}
.upload-preview, .attachment-chip {
  padding: 10px 12px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: var(--radius);
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.10);
  font-size: 13px;
  font-weight: 800;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}
.mission-result {
  margin-top: 16px;
  padding: 18px;
  background: var(--surface-soft);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

dialog {
  width: min(520px, calc(100vw - 32px));
  color: var(--ink);
  padding: 18px;
}
.entity-dialog { width: min(860px, calc(100vw - 32px)); }
.entity-action-content { display: grid; gap: 14px; }
.entity-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.entity-detail-grid article {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 34, 64, 0.74);
}
.entity-detail-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  word-break: break-word;
}
.entity-detail-grid code {
  white-space: normal;
  word-break: break-word;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); }
.dialog-form { display: grid; gap: 12px; }
.dialog-actions, .button-row { display: flex; justify-content: end; gap: 10px; flex-wrap: wrap; }
.print-report, .audit-panel { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.print-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  max-width: 380px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: var(--radius);
  padding: 13px 15px;
  color: #fff;
  background: rgba(17, 34, 64, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: 0.22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.ai-fab {
  position: fixed;
  right: 22px;
  bottom: 86px;
  z-index: 35;
  color: #fff;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 18px 55px rgba(37, 99, 235, 0.44);
}
.bottom-nav { display: none; }

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.7; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawerIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loadingSweep { 0% { transform: translateX(-35%); } 50% { transform: translateX(35%); } 100% { transform: translateX(-35%); } }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .nav-list { grid-template-columns: repeat(3, 1fr); }
  .side-card { display: none; }
  .dashboard-grid, .module-layout, .alert-strip, .metric-grid, .metrics-grid, .risk-command-grid, .document-board, .report-grid, .marketplace-grid, .pricing-grid, .mission-result, .admin-health-grid, .admin-command { grid-template-columns: 1fr; }
  .module-cockpit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-cockpit-hero { grid-column: 1 / -1; }
  .module-action-strip { align-items: stretch; flex-direction: column; }
  .module-actions-main, .module-actions-meta { justify-content: flex-start; }
  .admin-intro { align-items: flex-start; flex-direction: column; }
  .mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .form-drawer {
    inset: 0;
    width: 100vw;
    border-radius: 0;
  }
}

@media (max-width: 720px) {
  .workspace, .sidebar { padding: 16px; }
  .workspace { padding-bottom: 92px; }
  .topbar { position: static; }
  .topbar, .top-actions, .panel-header, .executive-hero { align-items: stretch; flex-direction: column; }
  .top-actions > * { width: 100%; }
  .module-cockpit { grid-template-columns: 1fr; }
  .module-cockpit-card { min-height: auto; }
  .module-actions-main > button { flex: 1 1 100%; }
  .module-actions-meta .status { flex: 1 1 auto; justify-content: center; }
  .search-field input { min-width: 0; }
  .nav-list, .form-grid, .mission-grid, .entity-detail-grid { grid-template-columns: 1fr; }
  .table-wrap {
    overflow: visible;
  }
  .table-wrap table {
    min-width: 0;
  }
  .table-wrap thead {
    display: none;
  }
  .table-wrap tbody, .table-wrap tr, .table-wrap td {
    display: block;
    width: 100%;
  }
  .table-wrap tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: var(--radius);
    background: rgba(17, 34, 64, 0.52);
  }
  .table-wrap td {
    min-height: 34px;
    display: grid;
    grid-template-columns: minmax(104px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(96, 165, 250, 0.10);
  }
  .table-wrap td:last-child { border-bottom: 0; }
  .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }
  .sidebar .nav-list { display: none; }
  .bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 34;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(7, 18, 38, 0.86);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }
  .bottom-nav button {
    min-height: 46px;
    padding: 0 6px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 11px;
  }
  .bottom-nav button.active {
    color: #fff;
    background: rgba(37, 99, 235, 0.24);
  }
  .ai-fab { right: 18px; bottom: 86px; }
}

@media print {
  .sidebar, .topbar, .module-cockpit, .module-action-strip, .alert-strip, .button-row, .ai-fab, .bottom-nav, .view:not(#reportsView), #reportGrid { display: none !important; }
  body, .app-shell, .workspace { display: block; padding: 0; background: #ffffff; color: #000; }
  .panel, .print-report { box-shadow: none; border: 0; background: #fff; }
  table { min-width: 0; }
}
