/* BC-FleetOps design tokens + component styles.
   Referenced from templates/base.html. Kept minimal and framework-free (Tailwind CDN
   handles utility classes; this file owns branded components + theme tokens). */

:root {
  --bc-primary: #0f4c81;
  --bc-primary-light: #1e6db8;
  --bc-primary-tint: rgba(15, 76, 129, 0.08);
  --bc-accent: #f59e0b;
  --bc-surface: #f6f7fb;
  --bc-surface-alt: #ffffff;
  --bc-surface-raised: #ffffff;
  --bc-text: #0f172a;
  --bc-text-muted: #64748b;
  --bc-text-faint: #94a3b8;
  --bc-border: #e5e9f2;
  --bc-border-strong: #cbd5e1;
  --bc-danger: #b91c1c;
  --bc-danger-tint: #fef2f2;
  --bc-warn: #b45309;
  --bc-warn-tint: #fef3c7;
  --bc-ok: #15803d;
  --bc-ok-tint: #dcfce7;
  --bc-info: #4338ca;
  --bc-info-tint: #e0e7ff;
  --bc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --bc-shadow-md: 0 6px 16px -4px rgba(15, 23, 42, 0.10), 0 2px 6px -2px rgba(15, 23, 42, 0.06);
  --bc-shadow-lg: 0 16px 40px -12px rgba(15, 23, 42, 0.20), 0 4px 12px -6px rgba(15, 23, 42, 0.10);
  --bc-radius-sm: 0.375rem;
  --bc-radius: 0.5rem;
  --bc-radius-lg: 0.75rem;
}
.dark {
  --bc-primary-tint: rgba(30, 109, 184, 0.16);
  --bc-surface: #0b1220;
  --bc-surface-alt: #111827;
  --bc-surface-raised: #1a2436;
  --bc-text: #e5e7eb;
  --bc-text-muted: #94a3b8;
  --bc-text-faint: #64748b;
  --bc-border: #1f2937;
  --bc-border-strong: #334155;
  --bc-danger-tint: rgba(185, 28, 28, 0.15);
  --bc-warn-tint: rgba(180, 83, 9, 0.18);
  --bc-ok-tint: rgba(21, 128, 61, 0.18);
  --bc-info-tint: rgba(67, 56, 202, 0.22);
  --bc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --bc-shadow-md: 0 6px 16px -4px rgba(0, 0, 0, 0.5), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
  --bc-shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, 0.6), 0 4px 12px -6px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: var(--bc-surface);
  color: var(--bc-text);
  -webkit-font-smoothing: antialiased;
}
.bc-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.bc-numeric { font-feature-settings: "tnum" 1, "lnum" 1; }

/* --- Buttons --------------------------------------------------------- */
.bc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--bc-radius);
  font-weight: 500;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.15;
  transition: background-color 120ms, border-color 120ms, color 120ms, filter 120ms;
  white-space: nowrap;
}
.bc-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.bc-btn .icon { width: 15px; height: 15px; flex-shrink: 0; }
.bc-btn-primary { background: var(--bc-primary); color: #fff; box-shadow: 0 1px 2px rgba(15, 76, 129, 0.25); }
.bc-btn-primary:hover { background: var(--bc-primary-light); box-shadow: 0 2px 6px rgba(15, 76, 129, 0.30); }
.bc-btn-secondary {
  background: var(--bc-surface-alt);
  color: var(--bc-text);
  border-color: var(--bc-border);
}
.bc-btn-secondary:hover { border-color: var(--bc-border-strong); filter: brightness(0.98); }
.bc-btn-danger {
  background: var(--bc-surface-alt);
  color: var(--bc-danger);
  border-color: #fecaca;
}
.bc-btn-danger:hover { background: var(--bc-danger-tint); }
.dark .bc-btn-danger { border-color: #7f1d1d; color: #fca5a5; }
.bc-btn-ghost { background: transparent; color: var(--bc-text); }
.bc-btn-ghost:hover { background: rgba(0, 0, 0, 0.05); }
.dark .bc-btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.bc-btn-xs { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
.bc-btn-xs .icon { width: 13px; height: 13px; }

/* --- Form controls --------------------------------------------------- */
.bc-input, .bc-select, .bc-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  font-size: 0.9rem;
  background: var(--bc-surface-alt);
  color: var(--bc-text);
  line-height: 1.3;
}
.bc-input::placeholder, .bc-textarea::placeholder { color: var(--bc-text-faint); }
.bc-input:focus, .bc-select:focus, .bc-textarea:focus {
  outline: none;
  border-color: var(--bc-primary);
  box-shadow: 0 0 0 3px var(--bc-primary-tint);
}
.bc-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

/* --- Cards + tables -------------------------------------------------- */
.bc-card {
  background: var(--bc-surface-alt);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow-sm);
}
.bc-card-hover {
  transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}
.bc-card-hover:hover {
  border-color: var(--bc-primary);
  box-shadow: var(--bc-shadow-md);
}

/* --- v0.20.0: Card-Semantik ----------------------------------------------
   .bc-card ist neutral. Für die Detail-Seiten kennzeichnet das Klassen-Suffix
   die Rolle des Widgets, damit das Auge Info/Aktion/Verlauf sofort trennt.
   Additiv — bestehende .bc-card ohne Modifier bleibt unverändert. */
.bc-card--action {
  border-left: 3px solid var(--bc-accent);
}
.bc-card--log {
  background: var(--bc-surface);
}
.bc-card--danger {
  border-left: 3px solid var(--bc-danger);
}

/* --- v0.20.0: Sticky Tab-Header für Detail-Seiten (device/employee) ------ */
.bc-tabs {
  display: flex;
  gap: 0.25rem;
  position: sticky;
  top: 3.5rem; /* height of top-nav */
  z-index: 20;
  background: var(--bc-surface);
  border-bottom: 1px solid var(--bc-border);
  padding: 0.25rem 0 0 0;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}
.bc-tab {
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--bc-text-muted);
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: color 120ms, background 120ms;
}
.bc-tab:hover {
  color: var(--bc-text);
  background: var(--bc-surface-alt);
}
.bc-tab.active {
  color: var(--bc-primary);
  background: var(--bc-surface-alt);
  border-color: var(--bc-border);
  box-shadow: inset 0 -2px 0 var(--bc-primary);
}
.bc-tab-badge {
  display: inline-block;
  min-width: 1.1rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--bc-text-muted);
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: 999px;
  text-align: center;
}
.bc-tab.active .bc-tab-badge {
  color: var(--bc-primary);
  border-color: var(--bc-primary);
}
.bc-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bc-text-muted);
}
.bc-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bc-text);
  letter-spacing: -0.01em;
}
.bc-page-subtitle {
  font-size: 0.875rem;
  color: var(--bc-text-muted);
  margin-top: 0.15rem;
}
.bc-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

table.bc-table { width: 100%; border-collapse: collapse; }
table.bc-table th,
table.bc-table td { padding: 0.65rem 0.85rem; text-align: left; font-size: 0.875rem; vertical-align: middle; }
table.bc-table th {
  color: var(--bc-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--bc-border);
  background: var(--bc-surface);
}
table.bc-table tbody tr { border-bottom: 1px solid var(--bc-border); }
table.bc-table tbody tr:last-child { border-bottom: none; }
table.bc-table tbody tr:hover { background: var(--bc-primary-tint); }
/* v0.21.0: Dense-Variante für lange Reports (Inventur, Software, Updates).
   Toggle via .bc-table-wrap[data-density="dense"] auf dem Wrapper — dann
   gelten die dichteren Regeln automatisch für alle bc-tables darunter. */
.bc-table-wrap[data-density="dense"] table.bc-table th,
.bc-table-wrap[data-density="dense"] table.bc-table td {
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.15;
}
.bc-table-wrap[data-density="dense"] table.bc-table th {
  font-size: 0.62rem;
  letter-spacing: 0.03em;
}
.bc-density-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-sm);
  background: var(--bc-surface-alt);
  color: var(--bc-text-muted);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
.bc-density-toggle:hover { color: var(--bc-text); border-color: var(--bc-border-strong); }
.bc-density-toggle[aria-pressed="true"] {
  background: var(--bc-primary-tint);
  color: var(--bc-primary);
  border-color: var(--bc-primary);
}
.bc-table-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--bc-text-muted);
  font-size: 0.875rem;
}

/* --- Pills / badges -------------------------------------------------- */
.status-pill,
.type-pill,
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.type-pill, .cat-pill { border-radius: 0.35rem; }

.status-in_use { background: var(--bc-ok-tint); color: var(--bc-ok); }
.status-spare { background: var(--bc-info-tint); color: var(--bc-info); }
.status-repair { background: var(--bc-warn-tint); color: var(--bc-warn); }
.status-retired { background: var(--bc-surface); color: var(--bc-text-muted); border: 1px solid var(--bc-border); }
.dark .status-in_use { color: #86efac; }
.dark .status-spare { color: #a5b4fc; }
.dark .status-repair { color: #fcd34d; }

.type-pill { background: #eff6ff; color: #1d4ed8; }
.dark .type-pill { background: #172554; color: #93c5fd; }
.cat-pill { background: #f1f5f9; color: #334155; }
.dark .cat-pill { background: #1e293b; color: #cbd5e1; }

.badge-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  margin-left: 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--bc-accent);
  color: #422006;
}

.traffic-green { background: #16a34a; }
.traffic-yellow { background: #eab308; }
.traffic-red { background: #dc2626; }
.traffic-gray { background: #94a3b8; }

.priority-urgent { color: #dc2626; font-weight: 700; }
.priority-high { color: #ea580c; font-weight: 600; }
.priority-normal { color: var(--bc-text); }
.priority-low { color: var(--bc-text-muted); }

.system-generated { opacity: 0.72; font-style: italic; }

/* --- Alerts / callouts ---------------------------------------------- */
.bc-alert {
  border-radius: var(--bc-radius);
  padding: 1rem 1.15rem;
  border: 1px solid var(--bc-border);
  background: var(--bc-surface-alt);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.bc-alert .icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.bc-alert-ok { background: var(--bc-ok-tint); border-color: rgba(21, 128, 61, 0.25); color: #14532d; }
.dark .bc-alert-ok { color: #bbf7d0; }
.bc-alert-warn { background: var(--bc-warn-tint); border-color: rgba(180, 83, 9, 0.3); color: #78350f; }
.dark .bc-alert-warn { color: #fde68a; }
.bc-alert-danger { background: var(--bc-danger-tint); border-color: rgba(185, 28, 28, 0.3); color: #7f1d1d; }
.dark .bc-alert-danger { color: #fecaca; }
.bc-alert-info { background: var(--bc-info-tint); border-color: rgba(67, 56, 202, 0.25); color: #312e81; }
.dark .bc-alert-info { color: #c7d2fe; }

/* --- Nav ------------------------------------------------------------ */
.bc-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--bc-surface-alt);
  border-bottom: 1px solid var(--bc-border);
  backdrop-filter: saturate(1.1) blur(6px);
}
.nav-link {
  padding: 0.4rem 0.75rem;
  border-radius: var(--bc-radius-sm);
  color: var(--bc-text);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.nav-link .icon { width: 15px; height: 15px; opacity: 0.7; }
.nav-link:hover { background: rgba(0, 0, 0, 0.04); }
.dark .nav-link:hover { background: rgba(255, 255, 255, 0.05); }
.nav-link.active {
  background: var(--bc-primary);
  color: #fff;
}
.nav-link.active .icon { opacity: 1; }

.bc-brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; color: var(--bc-text);
  text-decoration: none;
}
.bc-brand-mark {
  width: 30px; height: 30px;
  border-radius: 0.4rem;
  background: linear-gradient(135deg, var(--bc-primary) 0%, var(--bc-primary-light) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}
.bc-brand-logo {
  height: 30px; width: auto; max-width: 140px;
  object-fit: contain; display: block;
}

.bc-dropdown { position: relative; }
.bc-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: var(--bc-surface-alt);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-lg);
  box-shadow: var(--bc-shadow-lg);
  padding: 0.35rem;
  display: none;
  z-index: 50;
  animation: bc-pop 120ms ease-out;
}
@keyframes bc-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.bc-dropdown[open] .bc-dropdown-panel,
.bc-dropdown.open .bc-dropdown-panel { display: block; }
.bc-dropdown-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--bc-radius-sm);
  font-size: 0.85rem;
  color: var(--bc-text);
  text-decoration: none;
}
.bc-dropdown-item .icon { width: 15px; height: 15px; opacity: 0.7; }
.bc-dropdown-item:hover { background: var(--bc-primary-tint); }
.bc-dropdown-divider { height: 1px; background: var(--bc-border); margin: 0.35rem 0.15rem; }

/* --- Icon button ---------------------------------------------------- */
.bc-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--bc-radius-sm);
  color: var(--bc-text-muted);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background-color 120ms, color 120ms, border-color 120ms;
}
.bc-icon-btn:hover {
  background: var(--bc-primary-tint);
  color: var(--bc-text);
}
.bc-icon-btn .icon { width: 17px; height: 17px; }

/* --- KPI cards on dashboard ---------------------------------------- */
.bc-kpi {
  padding: 1rem 1.1rem;
  border-radius: var(--bc-radius-lg);
  border: 1px solid var(--bc-border);
  background: var(--bc-surface-alt);
  display: flex; flex-direction: column; gap: 0.35rem;
  min-height: 88px;
}
.bc-kpi .kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--bc-text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 0.4rem;
}
.bc-kpi .kpi-label .icon { width: 13px; height: 13px; }
.bc-kpi .kpi-value {
  font-size: 1.65rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bc-text);
}
.bc-kpi .kpi-hint {
  font-size: 0.72rem;
  color: var(--bc-text-muted);
}
.bc-kpi.kpi-alert { border-color: rgba(180, 83, 9, 0.35); background: var(--bc-warn-tint); }
.bc-kpi.kpi-alert .kpi-value { color: #7c2d12; }
.dark .bc-kpi.kpi-alert .kpi-value { color: #fbbf24; }
.bc-kpi.kpi-ok { border-color: rgba(21, 128, 61, 0.35); background: var(--bc-ok-tint); }
.bc-kpi.kpi-ok .kpi-value { color: #14532d; }
.dark .bc-kpi.kpi-ok .kpi-value { color: #86efac; }
.bc-kpi.kpi-critical { border-color: rgba(185, 28, 28, 0.4); background: var(--bc-danger-tint); }
.bc-kpi.kpi-critical .kpi-value { color: #7f1d1d; }
.dark .bc-kpi.kpi-critical .kpi-value { color: #fca5a5; }

/* --- Feature link tile (MS365 dashboard etc.) --------------------- */
.bc-tile {
  display: block;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius-lg);
  background: var(--bc-surface-alt);
  color: var(--bc-text);
  text-decoration: none;
  transition: border-color 150ms, transform 150ms, box-shadow 150ms;
}
.bc-tile:hover { border-color: var(--bc-primary); box-shadow: var(--bc-shadow-md); transform: translateY(-1px); }
.bc-tile .tile-icon {
  width: 34px; height: 34px;
  border-radius: 0.5rem;
  background: var(--bc-primary-tint);
  color: var(--bc-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.bc-tile .tile-icon .icon { width: 18px; height: 18px; }
.bc-tile .tile-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bc-text-muted);
  font-weight: 700;
}
.bc-tile .tile-title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.25rem;
  color: var(--bc-text);
}
.bc-tile .tile-desc {
  font-size: 0.8rem;
  color: var(--bc-text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}
.bc-tile.tile-primary { border-color: var(--bc-primary); }
.bc-tile.tile-primary .tile-title { color: var(--bc-primary); }

/* --- Copy-to-clipboard chip --------------------------------------- */
.bc-copy {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--bc-radius-sm);
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  cursor: pointer;
}
.bc-copy:hover { border-color: var(--bc-primary); }
.bc-copy .icon { width: 13px; height: 13px; opacity: 0.6; }

/* --- Scrollbar ---------------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bc-border-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--bc-text-muted); }

/* --- Small utilities ---------------------------------------------- */
.bc-muted { color: var(--bc-text-muted); }
.bc-faint { color: var(--bc-text-faint); }
.bc-divider {
  height: 1px; background: var(--bc-border);
  margin: 1.25rem 0;
}
.bc-code-block {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: var(--bc-radius);
  padding: 0.6rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--bc-text);
  overflow-x: auto;
  white-space: pre;
}

/* --- Mobile nav (hamburger panel < xl) ---------------------------- */
.bc-mobile-nav {
  border-top: 1px solid var(--bc-border);
  background: var(--bc-surface-alt);
  box-shadow: var(--bc-shadow-md);
  max-height: calc(100vh - 3.5rem);
  overflow-y: auto;
}
.bc-mobile-nav[hidden] { display: none; }
.bc-mnav-link {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--bc-radius);
  color: var(--bc-text);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}
.bc-mnav-link .icon { width: 17px; height: 17px; opacity: 0.65; flex-shrink: 0; }
.bc-mnav-link:hover { background: var(--bc-primary-tint); }
.bc-mnav-link.active { background: var(--bc-primary); color: #fff; }
.bc-mnav-link.active .icon { opacity: 1; }
.bc-mnav-group {
  padding: 0.75rem 0.75rem 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bc-text-faint);
}

/* --- Dark-mode remap for legacy hardcoded Tailwind slate utilities ----
   Many content templates still use `text-slate-900`, `bg-slate-50` etc.
   directly. In dark mode those resolve to near-black text on a dark surface
   (invisible). Remapping them to theme tokens under `.dark` fixes contrast on
   every page at once without touching 30+ templates. `.dark` sits on <html>
   so these ancestor selectors out-specify the base utility. */
.dark .text-slate-900,
.dark .text-slate-800,
.dark .text-slate-700 { color: var(--bc-text); }
.dark .text-slate-600,
.dark .text-slate-500 { color: var(--bc-text-muted); }
.dark .text-slate-400,
.dark .text-slate-300 { color: var(--bc-text-faint); }
.dark .bg-white { background-color: var(--bc-surface-alt); }
.dark .bg-slate-50,
.dark .bg-slate-100 { background-color: var(--bc-surface); }
.dark .border-slate-100,
.dark .border-slate-200 { border-color: var(--bc-border); }
.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: var(--bc-border); }

@media (max-width: 768px) {
  .bc-page-title { font-size: 1.25rem; }
  .bc-kpi .kpi-value { font-size: 1.4rem; }
  .bc-page-head { margin-bottom: 1.15rem; }
}
