/* ColorTaxi admin theme.
   Plain CSS on top of Filament's own classes, so there is no build step: change a
   value here and reload.

   The brand
   - Blood Orange #FF5A00 (60%) is the mark and the colour of every action. Text and
     buttons use shade 600, #C94600, which is 4.8:1 with white; the full-strength orange
     is kept for the logo, focus on dark surfaces and large areas.
   - State Blue #003B9C (30%) is the secondary colour. The sidebar is a deep navy taken
     from it, and information badges use it.
   - Alpine Frost #F4F8FF (10%) is the page.
   Status has its own colours and never uses orange: amber is waiting, red is urgent,
   green is fine. */

:root {
  --ct-orange: #c94600;
  --ct-orange-bright: #ff5a00;
  --ct-blue: #003b9c;

  --ct-navy: #0b1b3a;
  --ct-navy-2: #14284f;
  --ct-navy-3: #1e3a6d;
  --ct-navy-text: #c9d6ee;
  --ct-navy-muted: #93a6c9;

  --ct-bg: #f4f8ff;
  --ct-card: #ffffff;
  --ct-line: #dce5f5;
  --ct-heading: #0b1b3a;
  --ct-text: #33435f;
  --ct-muted: #4f5f7d;

  --ct-warn-bg: #fef3c7;
  --ct-warn-text: #78350f;
  --ct-warn-dot: #d97706;
  --ct-danger-bg: #fde8e8;
  --ct-danger-text: #7a1414;
  --ct-danger-dot: #c62828;
  --ct-ok-bg: #dcfce7;
  --ct-ok-text: #14532d;
  --ct-info-bg: #e0f2fe;
  --ct-info-text: #003b9c;

  --ct-shadow: 0 1px 2px rgba(11, 27, 58, 0.06), 0 8px 24px rgba(11, 27, 58, 0.06);
}

html.dark {
  --ct-bg: #071325;
  --ct-card: #0d1d33;
  --ct-line: #1c3050;
  --ct-heading: #f1f5fa;
  --ct-text: #d5deea;
  --ct-muted: #9fb0c6;

  --ct-navy: #041a33;
  --ct-navy-2: #0a2747;

  --ct-warn-bg: #3b2a0a;
  --ct-warn-text: #fcd34d;
  --ct-warn-dot: #f59e0b;
  --ct-danger-bg: #3a1414;
  --ct-danger-text: #fca5a5;
  --ct-danger-dot: #ef4444;
  --ct-ok-bg: #0f2e1c;
  --ct-ok-text: #86efac;
  --ct-info-bg: #0c2a4a;
  --ct-info-text: #93c5fd;

  --ct-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------------------------------- Page */
.fi-body,
.fi-main-ctn { background: var(--ct-bg); }
.fi-main { padding-block: 1.5rem; }
body { color: var(--ct-text); font-feature-settings: "tnum" 0, "cv11"; }

.fi-header-heading {
  color: var(--ct-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.75rem;
  line-height: 2.25rem;
}
.fi-breadcrumbs-item-label,
.fi-breadcrumbs-item-separator { font-size: 0.8125rem; color: var(--ct-muted); }

/* One plain sentence under each screen's title */
.ct-intro {
  margin: 0.375rem 0 0;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ct-muted);
}

/* ---------------------------------------------------------------- Cards and sections */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-wi-chart,
.fi-fo-wizard,
.fi-in-section {
  border-radius: 1rem !important;
  background: var(--ct-card);
  --tw-ring-color: var(--ct-line);
  box-shadow: var(--ct-shadow) !important;
}
.fi-section-header-heading,
.fi-wi-widget .fi-section-header-heading { color: var(--ct-heading); font-weight: 600; letter-spacing: -0.01em; }
.fi-section-header-description { color: var(--ct-muted); }
.fi-fo-field-wrp-label { font-weight: 500; color: var(--ct-text); }

/* ---------------------------------------------------------------- Stat cards */
.fi-wi-stats-overview-stat-value {
  color: var(--ct-heading);
  font-size: 2rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.fi-wi-stats-overview-stat-label { font-weight: 500; color: var(--ct-muted); }
/* Filament's default green and amber captions miss AA on white; these are the same hues, darker. */
.fi-wi-stats-overview-stat-description.fi-color-success { --c-600: 20 83 45 !important; --c-400: 134 239 172 !important; }
.fi-wi-stats-overview-stat-description.fi-color-warning { --c-600: 120 53 15 !important; --c-400: 252 211 77 !important; }
.fi-wi-stats-overview-stat-description.fi-color-danger { --c-600: 153 27 27 !important; --c-400: 252 165 165 !important; }

/* ---------------------------------------------------------------- Tables */
.fi-ta-header-cell {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ct-muted);
  background: color-mix(in srgb, var(--ct-bg) 55%, var(--ct-card));
}
.fi-ta-cell { font-variant-numeric: tabular-nums; }
.fi-ta-text-item-description { color: var(--ct-muted); font-size: 0.8125rem; }
.fi-ta-row { transition: background-color 0.12s ease-out; }
.fi-ta-row:hover { background: color-mix(in srgb, var(--ct-blue) 5%, transparent); }
.fi-ta-empty-state-heading { color: var(--ct-heading); font-weight: 600; }
.fi-ta-empty-state-description { color: var(--ct-muted); max-width: 46ch; margin-inline: auto; }
.fi-ta-search-field .fi-input-wrp { background: var(--ct-bg); }

/* Badges read as pills */
.fi-badge { border-radius: 9999px; font-weight: 600; padding-inline: 0.65rem; }

/* ---------------------------------------------------------------- Buttons, inputs, dialogs */
.fi-btn { border-radius: 0.625rem; font-weight: 600; min-height: 2.5rem; }
.fi-input-wrp,
.fi-select-input { border-radius: 0.625rem; }
.fi-modal-window { border-radius: 1rem; box-shadow: var(--ct-shadow); }
.fi-modal-heading { color: var(--ct-heading); font-weight: 700; letter-spacing: -0.01em; }
/* In dark mode Filament uses shade 500 behind white text, which is 3.9:1; use the AA shade. */
html.dark .fi-btn.fi-color-primary { --c-500: 204 58 0 !important; --c-400: 232 67 0 !important; }

/* ---------------------------------------------------------------- Top bar */
.fi-topbar > nav {
  background: var(--ct-bg);
  box-shadow: none;
  border-bottom: 1px solid var(--ct-line);
}

/* ---------------------------------------------------------------- Sidebar: deep navy from State Blue, in both modes */
.fi-sidebar { background: var(--ct-navy); border: 0; }
.fi-sidebar-header { background: var(--ct-navy); border: 0; box-shadow: none; height: 4.5rem; }
.fi-sidebar-nav { padding-inline: 1rem; }

.fi-sidebar-group-label {
  color: var(--ct-navy-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.fi-sidebar-group-collapse-button svg { color: var(--ct-navy-muted); }

.fi-sidebar-item-button { border-radius: 0.625rem; padding: 0.5rem 0.625rem; }
.fi-sidebar-item-label,
.fi-sidebar-item-icon { color: var(--ct-navy-text) !important; }
.fi-sidebar-item-button:hover { background: var(--ct-navy-2) !important; }
.fi-sidebar-item-button:hover .fi-sidebar-item-label,
.fi-sidebar-item-button:hover .fi-sidebar-item-icon { color: #fff !important; }

.fi-sidebar-item-active > .fi-sidebar-item-button { background: var(--ct-orange) !important; }
.fi-sidebar-item-active > .fi-sidebar-item-button .fi-sidebar-item-label,
.fi-sidebar-item-active > .fi-sidebar-item-button .fi-sidebar-item-icon { color: #fff !important; font-weight: 600; }

.fi-sidebar-item .fi-badge { background: var(--ct-navy-3); color: #e6edf5; --tw-ring-color: transparent; }
.fi-sidebar-item-active > .fi-sidebar-item-button .fi-badge { background: #fff; color: #7f2400; }

/* ---------------------------------------------------------------- Logo: the colour copy on light surfaces, the white copy on dark ones */
.ct-brand { display: inline-flex; align-items: center; }
.ct-brand img { height: 2.25rem; width: auto; display: block; }
.ct-brand__white { display: none !important; }
.fi-sidebar .ct-brand__color,
html.dark .ct-brand__color { display: none !important; }
.fi-sidebar .ct-brand__white,
html.dark .ct-brand__white { display: block !important; }

/* ---------------------------------------------------------------- Sign-in page */
.fi-simple-layout { background: var(--ct-bg); }
.fi-simple-main {
  border-radius: 1.25rem;
  background: var(--ct-card);
  box-shadow: var(--ct-shadow);
  --tw-ring-color: var(--ct-line);
}
.fi-simple-layout .ct-brand img { height: 3.75rem; margin-bottom: 0.5rem; }
.fi-simple-header-heading { color: var(--ct-heading); font-weight: 700; letter-spacing: -0.02em; }
.ct-login-note { margin: 1.25rem 0 0; text-align: center; font-size: 0.8125rem; color: var(--ct-muted); }

/* ---------------------------------------------------------------- Keyboard focus: visible on light, dark and on the orange menu item */
:focus-visible { outline: 2px solid var(--ct-orange); outline-offset: 2px; }
html.dark :focus-visible { outline-color: var(--ct-orange-bright); }
.fi-sidebar :focus-visible { outline-color: #fff; }

/* ---------------------------------------------------------------- "Needs you" on the dashboard */
.ct-need {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--ct-text);
  text-decoration: none;
}
.ct-need + .ct-need { margin-top: 0.25rem; }
.ct-need:hover { background: color-mix(in srgb, var(--ct-text) 5%, transparent); }
.ct-need__dot { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--ct-warn-dot); flex: none; }
.ct-need__text { flex: 1; font-weight: 500; }
.ct-need__action { color: var(--ct-muted); font-weight: 500; }
.ct-need--danger { background: var(--ct-danger-bg); color: var(--ct-danger-text); }
.ct-need--danger:hover { background: var(--ct-danger-bg); filter: brightness(0.97); }
.ct-need--danger .ct-need__dot { background: var(--ct-danger-dot); }
.ct-need--danger .ct-need__text { font-weight: 600; }
.ct-need--danger .ct-need__action { color: var(--ct-danger-text); }
.ct-need__empty { margin: 0; padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--ct-muted); }

/* ---------------------------------------------------------------- SOS strip across every page */
.ct-sos-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1.5rem;
  background: #b91c1c; /* white text 6.5:1 in both modes */
  color: #fff;
  font-size: 0.9375rem;
}
.ct-sos-banner a { margin-left: auto; color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------------------------------------------------------------- Top bar chips */
.ct-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2rem;
  padding: 0 0.75rem;
  margin-right: 0.5rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.ct-chip::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: currentColor; }
.ct-chip--test { background: var(--ct-warn-bg); color: var(--ct-warn-text); }
.ct-chip--live { background: var(--ct-ok-bg); color: var(--ct-ok-text); }
.ct-chip--env { background: var(--ct-info-bg); color: var(--ct-info-text); letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- Live map */
.ct-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.125rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.ct-pill--busy { background: var(--ct-warn-bg); color: var(--ct-warn-text); }
.ct-pill--free { background: var(--ct-ok-bg); color: var(--ct-ok-text); }
.ct-note { padding: 1rem; border-radius: 0.75rem; font-size: 0.875rem; background: var(--ct-warn-bg); color: var(--ct-warn-text); }
.ct-muted { color: var(--ct-muted); }
.ct-panel { border: 1px solid var(--ct-line); border-radius: 0.75rem; background: var(--ct-card); overflow: hidden; }
.ct-thead { background: color-mix(in srgb, var(--ct-bg) 55%, var(--ct-card)); color: var(--ct-muted); }
.ct-link { color: var(--ct-orange); font-weight: 500; }
html.dark .ct-link { color: var(--ct-orange-bright); }

/* ---------------------------------------------------------------- Pay-out dialog */
.ct-payee { margin: 0.75rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; font-size: 0.875rem; text-align: left; }
.ct-payee dt { color: var(--ct-muted); }
.ct-payee dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Warnings inside forms */
.ct-warning {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  background: var(--ct-danger-bg);
  color: var(--ct-danger-text);
}
.ct-warning strong { font-weight: 700; }

/* ---------------------------------------------------------------- Scrollbars: slim and on-brand */
.fi-sidebar-nav { scrollbar-width: thin; scrollbar-color: var(--ct-navy-3) transparent; }
.fi-sidebar-nav::-webkit-scrollbar { width: 6px; }
.fi-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.fi-sidebar-nav::-webkit-scrollbar-thumb { background: var(--ct-navy-3); border-radius: 3px; }

/* In dark mode the sidebar and the page are close in tone; a hairline keeps them apart. */
html.dark .fi-sidebar { border-right: 1px solid var(--ct-line); }

/* Phones: the top bar keeps one-line chips, and the environment chip steps aside for the payment-mode one. */
.ct-chip { white-space: nowrap; }
@media (max-width: 640px) {
  .ct-chip--env { display: none; }
  .ct-chip { font-size: 0.6875rem; padding-inline: 0.5rem; }
  .fi-topbar .fi-global-search-field { display: none; }
}

/* Sidebar rhythm: a hairline and room between groups, labels that read as headings. */
.fi-sidebar-nav-groups { row-gap: 0.25rem; }
.fi-sidebar-group { padding-top: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.fi-sidebar-nav-groups > .fi-sidebar-group:first-child,
.fi-sidebar-nav-groups > li:first-child { border-top: 0; padding-top: 0; }
.fi-sidebar-group-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em; }
.fi-sidebar-item-label { font-size: 0.875rem; }

/* Ride page: the trip map and the progress steps. */
.ct-tripmap__frame { position: relative; border-radius: 0.875rem; overflow: hidden; border: 1px solid var(--ct-line); }
.ct-tripmap__canvas { height: 34rem; width: 100%; background: var(--ct-bg); }
.ct-tripmap__chips { position: absolute; top: 0.75rem; right: 0.75rem; display: flex; gap: 0.5rem; z-index: 500; }
.ct-tripmap__chip { background: var(--ct-card); color: var(--ct-heading); font-weight: 600; font-size: 0.8125rem; padding: 0.25rem 0.625rem; border-radius: 9999px; box-shadow: 0 1px 4px rgba(11, 27, 58, 0.25); }
.ct-tripmap__legend { position: absolute; left: 0.75rem; bottom: 1.5rem; display: flex; gap: 0.875rem; z-index: 500; background: var(--ct-card); color: var(--ct-text); font-size: 0.75rem; padding: 0.375rem 0.625rem; border-radius: 0.5rem; box-shadow: 0 1px 4px rgba(11, 27, 58, 0.25); }
.ct-tripmap__legend i { display: inline-block; width: 0.625rem; height: 0.625rem; border-radius: 9999px; margin-right: 0.375rem; }
.ct-tripmap__foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.625rem; font-size: 0.8125rem; }

.ct-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ct-step { position: relative; display: flex; gap: 0.875rem; padding-bottom: 1.125rem; }
.ct-step:last-child { padding-bottom: 0; }
.ct-step::before { content: ""; position: absolute; left: 0.5rem; top: 1.25rem; bottom: 0; width: 2px; background: var(--ct-line); }
.ct-step:last-child::before { display: none; }
.ct-step--done::before { background: #16a34a; }
.ct-step__dot { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.125rem; border-radius: 9999px; border: 2px solid var(--ct-line); background: var(--ct-card); position: relative; z-index: 1; }
.ct-step--done .ct-step__dot { background: #16a34a; border-color: #16a34a; }
.ct-step--now .ct-step__dot { border-color: var(--ct-orange); box-shadow: 0 0 0 4px rgba(255, 90, 0, 0.18); }
.ct-step--stop .ct-step__dot { background: var(--ct-danger-dot); border-color: var(--ct-danger-dot); }
.ct-step__title { margin: 0; font-weight: 600; font-size: 0.875rem; color: var(--ct-heading); }
.ct-step--todo .ct-step__title { color: var(--ct-muted); font-weight: 500; }
.ct-step__time { margin: 0.125rem 0 0; font-size: 0.8125rem; color: var(--ct-muted); }
.leaflet-container { font-family: inherit; }

/* Sub-items (Brands and Car models under Vehicles): lighter, indented, with their own active state. */
.fi-sidebar-item .fi-sidebar-item .fi-sidebar-item-button { padding-block: 0.375rem; }
.fi-sidebar-item .fi-sidebar-item .fi-sidebar-item-label { font-size: 0.8125rem; font-weight: 500; }
.fi-sidebar-item .fi-sidebar-item.fi-sidebar-item-active > .fi-sidebar-item-button { background: var(--ct-navy-2) !important; box-shadow: inset 3px 0 0 var(--ct-orange-bright); }

/* ================================================================ Depth and life
   The first pass was clean but flat. This layer adds what makes a screen feel built:
   a soft blue wash behind the header, cards with layered shadows that lift on hover,
   tinted section headers with icon chips, a warmer primary button, and a sidebar that
   has a gradient and a glowing active item. Everything here is tokens and plain CSS. */

:root {
  --ct-wash: linear-gradient(180deg, #dfeaff 0%, rgba(244, 248, 255, 0) 22rem);
  --ct-card-shadow:
    0 1px 1px rgba(11, 27, 58, 0.04),
    0 3px 6px -1px rgba(11, 27, 58, 0.05),
    0 14px 30px -10px rgba(0, 59, 156, 0.16);
  --ct-card-shadow-hover:
    0 1px 1px rgba(11, 27, 58, 0.05),
    0 6px 12px -2px rgba(11, 27, 58, 0.08),
    0 22px 40px -12px rgba(0, 59, 156, 0.26);
  --ct-head-bg: linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
  --ct-chip-bg: #e4edff;
  --ct-chip-fg: #003b9c;
}
html.dark {
  --ct-wash: linear-gradient(180deg, rgba(0, 59, 156, 0.28) 0%, rgba(7, 19, 37, 0) 22rem);
  --ct-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 28px -10px rgba(0, 0, 0, 0.55);
  --ct-card-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 36px -10px rgba(0, 0, 0, 0.7);
  --ct-head-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  --ct-chip-bg: rgba(63, 120, 220, 0.2);
  --ct-chip-fg: #9fc0ff;
}

/* Page: the wash sits behind the title and fades out. */
.fi-main-ctn { background: var(--ct-wash), var(--ct-bg); background-repeat: no-repeat; }
.fi-header-heading { font-size: 1.875rem; }
.fi-header-heading::after {
  content: ""; display: block; width: 2.75rem; height: 0.25rem; margin-top: 0.625rem;
  border-radius: 9999px; background: linear-gradient(90deg, var(--ct-orange-bright), #ff9a62);
}

/* Cards: layered shadow, hairline border, lift on hover where they are clickable or summary tiles. */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat,
.fi-wi-chart,
.fi-fo-wizard,
.fi-in-section {
  box-shadow: var(--ct-card-shadow) !important;
  border: 1px solid var(--ct-line);
  --tw-ring-shadow: 0 0 #0000 !important;
}
.fi-wi-stats-overview-stat,
.fi-section.fi-collapsible {
  transition: box-shadow 0.18s ease-out, transform 0.18s ease-out;
}
.fi-wi-stats-overview-stat:hover,
.fi-section.fi-collapsible:hover { box-shadow: var(--ct-card-shadow-hover) !important; transform: translateY(-2px); }
.fi-wi-stats-overview-stat { background: linear-gradient(160deg, var(--ct-card) 55%, #f1f6ff 100%); }
html.dark .fi-wi-stats-overview-stat { background: linear-gradient(160deg, var(--ct-card) 55%, #10264a 100%); }
.fi-wi-stats-overview-stat-value { color: var(--ct-blue); }
html.dark .fi-wi-stats-overview-stat-value { color: #fff; }

/* Section headers: a tinted strip, an icon chip, and a hover state when they fold. */
.fi-section-header {
  background: var(--ct-head-bg);
  border-bottom: 1px solid var(--ct-line);
  border-radius: 1rem 1rem 0 0;
  padding-block: 1rem;
}
.fi-section.fi-collapsed .fi-section-header { border-bottom-color: transparent; border-radius: 1rem; }
.fi-section.fi-collapsible .fi-section-header { cursor: pointer; }
.fi-section.fi-collapsible .fi-section-header:hover .fi-section-header-heading { color: var(--ct-orange); }
.fi-section-header-icon {
  width: 2.5rem; height: 2.5rem; padding: 0.55rem; border-radius: 0.75rem;
  background: var(--ct-chip-bg); color: var(--ct-chip-fg) !important;
  box-shadow: inset 0 0 0 1px rgba(0, 59, 156, 0.12);
}
.fi-section-header-heading { font-size: 1.0625rem; }

/* Buttons: the primary one is warm, lifted and glows a little; the rest stay quiet. */
.fi-btn.fi-color-primary:not(.fi-outlined) {
  background: linear-gradient(180deg, #e65000 0%, #c94600 100%) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 14px -4px rgba(201, 70, 0, 0.55);
  transition: box-shadow 0.15s ease-out, transform 0.15s ease-out, filter 0.15s;
}
.fi-btn.fi-color-primary:not(.fi-outlined):hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 20px -4px rgba(201, 70, 0, 0.6); }
.fi-btn.fi-color-primary:not(.fi-outlined):active { transform: translateY(0); }
.fi-btn.fi-color-gray { box-shadow: 0 1px 2px rgba(11, 27, 58, 0.08); }

/* Fields: white wells with a real focus state, and tinted prefix/suffix chips. */
.fi-input-wrp { box-shadow: 0 1px 2px rgba(11, 27, 58, 0.06) !important; transition: box-shadow 0.15s, border-color 0.15s; }
.fi-input-wrp:focus-within { box-shadow: 0 0 0 3px rgba(255, 90, 0, 0.22), 0 1px 2px rgba(11, 27, 58, 0.06) !important; }
.fi-input-wrp-prefix,
.fi-input-wrp-suffix { background: #f1f6ff; color: var(--ct-blue); font-weight: 600; }
html.dark .fi-input-wrp-prefix,
html.dark .fi-input-wrp-suffix { background: rgba(63, 120, 220, 0.15); color: #9fc0ff; }
.fi-fo-field-wrp-label { font-weight: 600; color: var(--ct-heading); }

/* Tables: a tinted header row and a firmer hover. */
.fi-ta-header-cell { background: var(--ct-head-bg); }
.fi-ta-row:hover { background: color-mix(in srgb, var(--ct-blue) 7%, transparent); }

/* Top bar: floats above the page. */
.fi-topbar > nav {
  background: color-mix(in srgb, var(--ct-bg) 82%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--ct-line), 0 8px 20px -14px rgba(11, 27, 58, 0.25);
}

/* Sidebar: a gradient instead of a flat block, and an active item that glows. */
.fi-sidebar { background: linear-gradient(180deg, #112a55 0%, #0b1b3a 42%, #07132b 100%); box-shadow: 6px 0 24px -12px rgba(11, 27, 58, 0.5); }
.fi-sidebar-header { background: transparent; }
.fi-sidebar-item-active > .fi-sidebar-item-button {
  background: linear-gradient(180deg, #e65000 0%, #c94600 100%) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 6px 16px -4px rgba(255, 90, 0, 0.55);
}
.fi-sidebar-item-button { transition: background-color 0.12s, transform 0.12s; }
.fi-sidebar-item-button:hover { transform: translateX(2px); }
.fi-sidebar-item-active > .fi-sidebar-item-button:hover { transform: none; }
html.dark .fi-sidebar { background: linear-gradient(180deg, #0a1d3b 0%, #061229 100%); }

@media (prefers-reduced-motion: reduce) {
  .fi-wi-stats-overview-stat, .fi-section.fi-collapsible, .fi-btn, .fi-sidebar-item-button { transition: none !important; transform: none !important; }
}
.ct-intro { margin-top: 0.5rem; }

/* Text fields: a light blue tint and a clear edge, so a field never disappears into a white card.
   It turns white when you focus it, and the prefix/suffix chips sit a shade deeper. */
:root { --ct-field-bg: #eef4ff; --ct-field-edge: #bccde9; --ct-field-affix: #dce7fa; }
html.dark { --ct-field-bg: rgba(63, 120, 220, 0.1); --ct-field-edge: #2c4a7a; --ct-field-affix: rgba(63, 120, 220, 0.22); }

.fi-input-wrp {
  background: var(--ct-field-bg) !important;
  --tw-ring-color: var(--ct-field-edge) !important;
  box-shadow: 0 0 0 1px var(--ct-field-edge), 0 1px 2px rgba(11, 27, 58, 0.06) !important;
}
.fi-input-wrp:hover:not(:focus-within) { --tw-ring-color: #8fa9d6 !important; box-shadow: 0 0 0 1px #8fa9d6, 0 1px 2px rgba(11, 27, 58, 0.06) !important; }
.fi-input-wrp:focus-within {
  background: #fff !important;
  --tw-ring-color: var(--ct-orange) !important;
  box-shadow: 0 0 0 2px var(--ct-orange), 0 0 0 5px rgba(255, 90, 0, 0.18) !important;
}
html.dark .fi-input-wrp:focus-within { background: rgba(255, 255, 255, 0.06) !important; }
.fi-input-wrp-input, .fi-input, .fi-select-input { background: transparent !important; }
.fi-input-wrp-prefix,
.fi-input-wrp-suffix { background: var(--ct-field-affix) !important; border-color: var(--ct-field-edge) !important; }
.fi-input-wrp.fi-disabled { background: #e5eaf3 !important; }

/* ---------------------------------------------------------------- Drivers waiting strip (below the SOS strip) */
.ct-info-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.625rem 1.5rem; background: #003b9c; color: #fff; font-size: 0.9375rem;
}
.ct-info-banner a { margin-left: auto; color: #fff; font-weight: 700; text-decoration: underline; }
