/* α²Tracking — Operations Dashboard styles
   Self-scoped: design tokens are defined on .db-view so they don't
   leak into the rest of the app's Telerik/Nordic theme. */

.db-view {
  /* tokens from the canvas's dashboard.css :root, scoped here */
  --brand-orange: #F0532D;
  --brand-orange-soft: #FCE9E1;
  --brand-orange-deep: #C13E1D;
  --ink: #191919;
  --ink-2: #2D2D2D;
  --subhead: #616161;
  --grey: #808080;
  --grey-light: #EEEEEE;
  --grey-semi: #E3E3E3;
  --surface: #ffffff;
  --bg: #FAFAF7;
  --bg-warm: #F5F1EC;
  --ok: #14B86A;
  --warn: #E08A00;
  --danger: #D93B3B;
  --info: #2D6BD6;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --pad: 16px;
  --pad-tight: 12px;

  /* layout */
  padding: 22px 28px 40px;
  background: var(--bg);
  color: var(--ink);
}

/* =================== HEADER =================== */
.db-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
  margin-bottom: 22px;
}
.db-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--subhead); font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px 4px 8px;
  background: var(--surface);
  border: 1px solid var(--grey-semi);
  border-radius: 999px;
}
.db-eyebrow .dot {
  width: 3px; height: 3px; border-radius: 999px;
  background: var(--grey);
}
.db-live-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(20,184,106,0.6);
  animation: db-pulse 1.6s infinite;
}
@keyframes db-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20,184,106,0.6); }
  100% { box-shadow: 0 0 0 10px rgba(20,184,106,0); }
}
.db-live-pulse {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--brand-orange);
  box-shadow: 0 0 0 0 rgba(240,83,45,0.6);
  animation: db-pulse-orange 1.8s infinite;
}
@keyframes db-pulse-orange {
  0%   { box-shadow: 0 0 0 0 rgba(240,83,45,0.7); }
  100% { box-shadow: 0 0 0 14px rgba(240,83,45,0); }
}

.db-title {
  font-family: 'Nexa', sans-serif;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 12px 0 8px;
}
.db-sub {
  font-size: 13px;
  color: var(--subhead);
  margin: 0;
}
.db-sub .mono {
  font-family: 'JetBrains Mono', monospace;
  background: var(--surface);
  border: 1px solid var(--grey-semi);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.db-header-right { display: flex; gap: 10px; align-items: center; }
.db-seg {
  display: inline-flex; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--grey-semi);
  border-radius: 999px;
  padding: 4px;
}
.db-seg button {
  padding: 6px 12px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: var(--subhead);
  cursor: pointer;
}
.db-seg button:hover { background: rgba(0,0,0,0.04); color: #191919; }
.db-seg button.active,
.db-seg button[aria-pressed="true"] { background: #191919; color: #fff; }
.db-seg button:focus-visible { outline: 2px solid rgba(25,25,25,0.25); outline-offset: 1px; }

.db-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Nexa', sans-serif;
  font-size: 12px; font-weight: 800;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}
.db-btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--grey-semi); }
.db-btn-ghost:hover { border-color: var(--ink); }
.db-btn-primary { background: var(--brand-orange); color: #fff; border-color: var(--brand-orange); }
.db-btn-primary:hover { background: var(--brand-orange-deep); border-color: var(--brand-orange-deep); }

/* =================== KPI STRIP =================== */
.db-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.db-kpi {
  background: var(--surface);
  border: 1px solid var(--grey-semi);
  border-radius: var(--r-lg);
  padding: 16px 16px 14px;
  display: flex; flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.db-kpi-row { display: grid; grid-template-columns: 36px 1fr 80px; gap: 12px; align-items: center; }
.db-kpi-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
}
.db-kpi-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subhead);
  font-weight: 800;
}
.db-kpi-value {
  font-family: 'Rift Soft', sans-serif;
  font-size: 28px;
  line-height: 1;
  margin-top: 4px;
}
.db-kpi-value .suf {
  font-size: 16px;
  color: var(--subhead);
  margin-left: 2px;
}
.db-kpi-spark { opacity: 0.9; }

.db-kpi-chips {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.db-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--grey-light);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.db-chip.ok     { background: rgba(20,184,106,0.14);  color: #0f8a4f; }
.db-chip.warn   { background: rgba(224,138,0,0.16);   color: #a06a00; }
.db-chip.danger { background: rgba(217,59,59,0.14);   color: var(--danger); }
.db-chip.muted  { background: var(--bg); color: var(--subhead); }
.db-chip.on-dark    { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.db-chip.on-dark svg { color: #fff; opacity: 0.8; }

.db-kpi-accent {
  background: var(--ink); color: #fff; border-color: var(--ink);
  background-image: radial-gradient(ellipse at 110% 0%, rgba(240,83,45,0.22) 0%, transparent 55%);
}
.db-kpi-accent .db-kpi-label { color: rgba(255,255,255,0.5); }
.db-kpi-accent .db-kpi-value { color: var(--brand-orange); }
.db-kpi-accent .db-kpi-value .suf { color: rgba(255,255,255,0.6); }

/* =================== INGEST STRIP =================== */
.db-ingest {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 18px 22px 18px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.db-ingest-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
}
.db-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45); font-weight: 700;
  text-transform: uppercase;
}
.db-ingest-head h3 {
  margin: 4px 0 0;
  font-family: 'Nexa', sans-serif;
  font-weight: 900; font-size: 18px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 10px;
}
.db-ingest-meta { display: flex; gap: 28px; }
.db-im-cell .lbl {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); font-weight: 800;
}
.db-im-cell .val {
  font-family: 'Rift Soft', sans-serif;
  font-size: 22px;
  margin-top: 4px;
  line-height: 1;
  color: #fff;
}
.db-im-cell .val.mono { font-family: 'JetBrains Mono', monospace; font-size: 18px; color: var(--brand-orange); font-weight: 700; }
.db-im-cell .val .suf {
  font-family: 'Nexa', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-left: 2px;
  font-weight: 700;
}

.db-ingest-body {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  margin-top: 12px;
  position: relative;
}
.db-ingest-rail {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 130px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  text-align: right;
}
.db-ingest-bars {
  position: relative;
  height: 130px;
  display: flex; align-items: flex-end;
  gap: 1px;
}
.db-ingest-bars .bar {
  flex: 1;
  background: rgba(255,255,255,0.16);
  border-radius: 1px 1px 0 0;
  min-height: 2px;
  transition: background 0.2s;
}
.db-ingest-bars .bar.peak { background: var(--brand-orange); }
.db-ingest-bars .bar.live {
  background: var(--brand-orange);
  animation: db-bar-pulse 1.2s ease-in-out infinite;
}
@keyframes db-bar-pulse {
  0%, 100% { background: var(--brand-orange); }
  50%      { background: #ff8e63; }
}
.db-ingest-threshold {
  position: absolute;
  left: 0; right: 0;
  border-top: 1px dashed rgba(240,83,45,0.55);
  pointer-events: none;
}
.db-ingest-threshold span {
  position: absolute;
  right: 0; top: -16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.06em;
  color: rgba(240,83,45,0.85); font-weight: 700;
  background: var(--ink);
  padding: 0 4px;
}
.db-ingest-pin {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.18);
  transform: translateX(-50%);
}
.db-ingest-pin::before {
  content: ""; position: absolute;
  top: -4px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 2px solid var(--ink);
  z-index: 2;
}
.db-ingest-pin.live::before {
  background: var(--brand-orange);
  box-shadow: 0 0 0 0 rgba(240,83,45,0.6);
  animation: db-pulse-orange 1.4s infinite;
}
.db-ingest-pin .tag {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  background: #fff; color: var(--ink);
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  z-index: 3;
}
.db-ingest-pin[style*="left: 9"] .tag, .db-ingest-pin.live .tag { left: auto; right: 4px; transform: none; }
.db-ingest-pin:hover .tag, .db-ingest-pin.live .tag { opacity: 1; }

.db-ingest-axis {
  position: relative;
  height: 16px;
  margin-left: 58px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}
.db-ingest-axis span {
  position: absolute;
  top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  transform: translateX(-50%);
}

/* =================== SECTION HEAD =================== */
.db-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin: 32px 0 14px;
  gap: 20px;
}
.db-section-head h2 {
  margin: 0;
  font-family: 'Nexa', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.db-section-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--subhead);
}
.db-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-orange-deep);
  text-decoration: none;
}
.db-link:hover { color: var(--brand-orange); }

.db-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--grey-semi);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--subhead);
  font-size: 12px;
}
.db-search input {
  border: 0; outline: 0; background: transparent;
  font-family: inherit; font-size: 12px;
  width: 200px;
}

/* =================== TWO-COL =================== */
.db-twocol {
  display: grid; grid-template-columns: 1.45fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.db-twocol-balanced { grid-template-columns: 1fr 1fr; }
.db-card {
  background: var(--surface);
  border: 1px solid var(--grey-semi);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  overflow: hidden;
}
.db-card-flush { padding: 0; }
.db-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.db-card-head h3 {
  margin: 0;
  font-family: 'Nexa', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.db-card-meta { font-size: 11px; color: var(--subhead); }

/* =================== ALERTS LIST =================== */
.db-alerts {
  display: flex; flex-direction: column;
  padding: 0;
}
.db-alert {
  display: grid;
  grid-template-columns: 4px 40px 1fr 130px;
  gap: 14px;
  align-items: center;
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--grey-light);
}
.db-alert:last-child { border-bottom: 0; }
.db-alert .sev-stripe {
  width: 4px;
  height: 100%;
  min-height: 40px;
  background: var(--danger);
  border-radius: 0 4px 4px 0;
}
.db-alert.sev-warning  .sev-stripe { background: var(--warn); }
.db-alert.sev-info     .sev-stripe { background: var(--info); }
.db-alert-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(217,59,59,0.12);
  color: var(--danger);
}
.db-alert-icon.sev-warning { background: rgba(224,138,0,0.16); color: var(--warn); }
.db-alert-icon.sev-info    { background: rgba(45,107,214,0.12); color: var(--info); }
.db-alert-msg {
  font-size: 13px; font-weight: 800;
  color: var(--ink);
}
.db-alert-meta {
  display: flex; gap: 7px; align-items: center;
  font-size: 11px;
  color: var(--subhead);
  margin-top: 3px;
  font-weight: 600;
}
.db-alert-meta .dot {
  width: 3px; height: 3px; border-radius: 999px; background: var(--grey);
}
.db-alert-meta .mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--ink-2);
}
.db-alert-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }

.db-status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.db-status-pill::before {
  content: ""; width: 5px; height: 5px; border-radius: 999px; background: currentColor;
}
.db-status-pill.active   { background: rgba(217,59,59,0.14);  color: var(--danger); }
.db-status-pill.ack      { background: rgba(224,138,0,0.16);  color: #a06a00; }
.db-status-pill.resolved { background: rgba(20,184,106,0.14); color: #0f8a4f; }
.db-status-pill.ok       { background: rgba(20,184,106,0.14); color: #0f8a4f; }
.db-status-pill.danger   { background: rgba(217,59,59,0.14);  color: var(--danger); }
.db-status-pill.online   { background: rgba(20,184,106,0.14); color: #0f8a4f; }
.db-status-pill.offline  { background: var(--grey-light);     color: var(--subhead); }

.db-icon-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--subhead);
  display: grid; place-items: center;
}
.db-icon-btn:hover { background: var(--bg); border-color: var(--grey-semi); color: var(--ink); }

.db-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 50px 20px;
  text-align: center;
  color: var(--ok);
}
.db-empty > div { font-weight: 800; font-size: 15px; color: var(--ink); margin-top: 12px; }
.db-empty small { color: var(--subhead); font-weight: 600; font-size: 11px; margin-top: 4px; }

/* =================== FLEET MIX =================== */
.db-mix-row {
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: 16px;
  align-items: center;
}
.db-mix-divider { background: var(--grey-light); height: 100%; min-height: 180px; }
.db-mix-cell {
  display: grid;
  grid-template-columns: 170px 1fr;
  grid-template-areas: "label  label"
                       "chart  legend";
  column-gap: 16px;
  row-gap: 10px;
  align-items: center;
  min-width: 0;
}
.db-mix-cell > .db-mix-label       { grid-area: label;  text-align: left; }
.db-mix-cell > .db-mix-chart-wrap  { grid-area: chart;  }
.db-mix-cell > .db-mix-legend      { grid-area: legend; }
.db-mix-chart-wrap { position: relative; width: 170px; height: 170px; }
.db-mix-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
}
.db-mix-center-num  { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
.db-mix-center-unit { font-size: 10px; color: var(--subhead); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.db-mix-legend {
  display: flex; flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.db-mix-leg {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--subhead);
  font-weight: 600;
  white-space: nowrap;
}
.db-mix-leg .db-mix-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.db-mix-leg .db-mix-leg-label { color: var(--subhead); flex: 1; }
.db-mix-leg strong { color: var(--ink); font-weight: 900; margin-left: 6px; min-width: 18px; text-align: right; }
.db-mix-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  color: var(--subhead); font-weight: 800;
  margin-bottom: 4px;
}
.db-mix-row-leg { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.db-mix-row-leg span {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--subhead);
  font-weight: 600;
  white-space: nowrap;
}
.db-mix-row-leg span i {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.db-mix-row-leg span b {
  color: var(--ink); font-weight: 900;
  margin-left: 2px;
}

/* =================== MINI MAP =================== */
.db-minimap {
  position: relative;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  background: #E8EFE8;
}
.db-minimap-canvas {
  width: 100%; height: 100%;
  min-height: 280px;
}
.db-minimap-canvas .maplibregl-canvas-container,
.db-minimap-canvas .maplibregl-canvas { width: 100% !important; height: 100% !important; }
.db-batt { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.db-batt.ok     { background: rgba(20,184,106,0.12); color: #0e8c50; }
.db-batt.warn   { background: rgba(224,138,0,0.14);  color: #b9651a; }
.db-batt.danger { background: rgba(217,59,59,0.14);  color: var(--danger); }
.db-batt-bolt   { font-size: 10px; }
.db-minimap-bg {
  position: absolute; inset: 0;
}
.db-minimap-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.db-minimap-fence {
  position: absolute;
  border: 2px dashed var(--brand-orange);
  background: rgba(240,83,45,0.06);
  border-radius: 14px;
  pointer-events: none;
}
.db-minimap-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
  border: 3px solid var(--ok);
  box-shadow: 0 2px 6px -1px rgba(0,0,0,0.3);
}
.db-minimap-dot.st-parked   { border-color: var(--grey); }
.db-minimap-dot.st-alert    { border-color: var(--danger); background: var(--danger); animation: db-pulse-danger 1.4s infinite; }
.db-minimap-dot.st-charging { border-color: var(--info); }
@keyframes db-pulse-danger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,59,59,0.7); }
  50%      { box-shadow: 0 0 0 8px rgba(217,59,59,0); }
}
.db-minimap-overlay {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.db-minimap-overlay .kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: 0.1em;
  color: var(--subhead); font-weight: 700;
  text-transform: uppercase;
}
.db-minimap-overlay .title {
  font-family: 'Nexa', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.db-minimap-overlay .sub {
  font-size: 11px;
  color: var(--subhead);
  margin-top: 2px;
  font-weight: 700;
}
.db-minimap-cta {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-orange);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Nexa', sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.db-minimap-cta:hover { background: var(--brand-orange-deep); }

/* =================== HEATMAP =================== */
.db-heatmap {
  position: relative;
  padding-top: 24px;
}
.db-heatmap-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18px;
}
.db-heatmap-corner { width: 40px; }
.db-heatmap-hour {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--subhead);
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
}
.db-heatmap-row {
  display: grid; grid-template-columns: 40px 1fr; gap: 8px;
  align-items: center;
  padding: 1px 0;
}
.db-heatmap-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--subhead);
  font-weight: 800;
  letter-spacing: 0.06em;
}
.db-heatmap-cells {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
}
.db-heatmap-cell {
  height: 18px;
  border-radius: 3px;
  cursor: default;
  transition: transform 0.1s;
}
.db-heatmap-cell:hover {
  transform: scale(1.15);
  outline: 1px solid var(--ink);
}
.db-heatmap-legend {
  display: flex; align-items: center; gap: 4px;
  margin-top: 12px;
  font-size: 10px;
  color: var(--subhead);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  justify-content: flex-end;
}
.db-heatmap-legend .sw {
  width: 11px; height: 11px; border-radius: 2px;
}

/* =================== TABLE =================== */
.db-table {
  background: var(--surface);
  border: 1px solid var(--grey-semi);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.db-table-head, .db-table-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.9fr 90px 100px 130px 110px 40px;
  gap: 12px;
  padding: 12px 18px;
  align-items: center;
}
.db-table-head {
  background: var(--bg);
  border-bottom: 1px solid var(--grey-semi);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--subhead); font-weight: 800;
}
.db-table-row {
  border-bottom: 1px solid var(--grey-light);
  font-size: 12px;
  cursor: pointer;
}
.db-table-row:last-child { border-bottom: 0; }
.db-table-row:hover { background: var(--bg); }
.db-table-row .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--ink);
  font-weight: 700;
}
.db-cell-imei { display: flex; align-items: center; gap: 8px; }
.db-cell-imei .dev-ico {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--bg);
  display: grid; place-items: center;
  color: var(--info);
}
.db-cell-time { color: var(--subhead); }
.db-rssi {
  display: inline-flex; align-items: center; gap: 5px;
}
.db-rssi .bar {
  display: inline-block;
  width: 3px; background: var(--grey-light);
  border-radius: 1px;
}
.db-rssi .bar:nth-child(1) { height: 5px; }
.db-rssi .bar:nth-child(2) { height: 8px; }
.db-rssi .bar:nth-child(3) { height: 11px; }
.db-rssi .bar:nth-child(4) { height: 14px; }
.db-rssi .bar.on { background: var(--ok); }
.db-rssi-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--subhead);
  margin-left: 4px;
  font-weight: 700;
}

/* =================== SYSTEM STATUS FOOTER =================== */
.db-syshealth {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-top: 22px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px dashed var(--grey-semi);
  border-radius: var(--r-lg);
}
.db-sys-item { display: flex; gap: 10px; align-items: center; }
.db-sys-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--grey);
  flex-shrink: 0;
}
.db-sys-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(20,184,106,0.14); }
.db-sys-label {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--subhead); font-weight: 800;
}
.db-sys-val {
  font-size: 12px;
  color: var(--ink);
  font-weight: 700;
  margin-top: 2px;
}
.db-sys-val.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
}

/* Telerik skins — keep Telerik components, just paint them to match the design. */

.db-kpi-spark { min-width: 80px; }
.db-kpi-spark .k-sparkline,
.db-kpi-spark .k-chart { width: 100% !important; height: 28px !important; }

.db-ingest .k-chart,
.db-ingest .k-chart-surface,
.db-ingest .k-sparkline { background: transparent !important; }
.db-ingest .k-chart text { fill: rgba(255,255,255,0.7) !important; }
.db-ingest .k-chart .k-tooltip { background: var(--ink) !important; color: #fff !important; }

.db-chip.on-dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.12);
}

.db-twocol .k-grid,
.db-twocol .k-listview,
.db-twocol .k-chart,
.db-card .k-grid,
.db-card .k-listview,
.db-card .k-chart {
  border: none;
  background: transparent;
}
.db-card .k-grid .k-grid-header { background: var(--bg) !important; }
.db-card .k-grid .k-grid-header .k-column-title { color: var(--ink); font-weight: 800; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }

.db-mix-donut, .db-mix-donut .k-chart { width: 170px !important; height: 170px !important; }

.db-card .k-chart path[fill="rgb(245, 243, 239)"],
.db-ingest .k-chart path[fill="rgb(245, 243, 239)"],
.db-spark path[fill="rgb(245, 243, 239)"],
.db-kpi .k-chart path[fill="rgb(245, 243, 239)"] { fill: transparent !important; }
