:root {
  --bg: #050b1d;
  --panel: #091a3a;
  --panel-2: #102a59;
  --panel-3: #132f62;
  --line: rgba(184, 205, 255, .18);
  --text: #f6f9ff;
  --muted: #aabbe0;
  --red: #e31b2f;
  --red-soft: #ff5268;
  --blue: #0b74ff;
  --blue-soft: #56d8ff;
  --ok: #35d399;
  --bad: #fb7185;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(227, 27, 47, .10), transparent 18%, transparent 82%, rgba(11, 116, 255, .12)),
    radial-gradient(900px 440px at 12% 0%, rgba(11, 116, 255, .32), transparent 62%),
    radial-gradient(720px 420px at 100% 0%, rgba(227, 27, 47, .22), transparent 58%),
    linear-gradient(180deg, #040918, #081a38 55%, #050b1d);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 72%);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 76px 1fr;
}

.topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(320px, 560px) minmax(240px, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 13, 31, .94), rgba(6, 18, 42, .86));
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .94);
  padding: 4px;
  box-shadow: 0 18px 44px rgba(11, 116, 255, .22), 0 0 0 4px rgba(227, 27, 47, .06);
}
.mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  font-weight: 950;
  box-shadow: 0 14px 35px rgba(0, 87, 184, .30);
}
.brand-title { font-weight: 950; letter-spacing: .2px; }
.brand-subtitle { color: var(--muted); font-size: 12px; margin-top: 2px; }
.session-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, .05);
  font-size: 12px;
  font-weight: 800;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions { justify-content: flex-end; }
.topbar-actions > * { width: auto; }
.staff-login-button,
.top-order-link {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(86, 216, 255, .36);
  border-radius: 8px;
  color: #e9f8ff;
  background: rgba(7, 25, 55, .76);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}
.top-order-link {
  border-color: transparent;
  color: #07152f;
  background: linear-gradient(135deg, #66e4e1, #62a8ff);
  box-shadow: 0 10px 28px rgba(52, 184, 255, .2);
}

.global-search-shell {
  position: relative;
  width: 100%;
}

.global-search-shell label {
  position: absolute;
  left: 16px;
  top: 6px;
  margin: 0;
  color: rgba(169, 189, 226, .8);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  z-index: 1;
}

.global-search-shell input {
  width: 100%;
  min-height: 48px;
  padding: 20px 16px 7px;
  border-radius: 16px;
  border: 1px solid rgba(91, 217, 255, .26);
  background: rgba(5, 13, 31, .78);
  color: #f7fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 14px 34px rgba(0, 0, 0, .18);
}

.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: min(520px, calc(100vh - 110px));
  overflow: auto;
  border: 1px solid rgba(91, 217, 255, .22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 23, 52, .98), rgba(5, 12, 29, .98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .38);
  padding: 8px;
}

.global-search-result {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #eef6ff;
  text-align: left;
}

.global-search-result:hover,
.global-search-result:focus-visible {
  border-color: rgba(91, 217, 255, .34);
  background: rgba(91, 217, 255, .09);
  outline: none;
}

.global-search-result b {
  display: block;
  color: #fff;
  font-size: 12px;
}

.global-search-result span {
  display: block;
  color: #a8b8dc;
  font-size: 11px;
  line-height: 1.35;
}

.global-search-type {
  min-width: 70px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(91, 217, 255, .12);
  color: #73e6ff;
  font-size: 9px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(9, 25, 58, .88), rgba(5, 10, 25, .72)),
    linear-gradient(135deg, rgba(227, 27, 47, .08), transparent 45%);
}

.content {
  padding: 22px;
  max-width: 1440px;
  width: 100%;
}

h1, h2, h3 { margin: 0; }
h1 { font-size: 22px; margin-bottom: 16px; }
h2 { font-size: 26px; letter-spacing: -.35px; }
h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px; }
p { margin: 6px 0 0; color: var(--muted); }

label {
  display: block;
  margin: 12px 0 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .55px;
}

input[readonly] {
  cursor: not-allowed;
  color: #b9d7f7;
  border-color: rgba(86, 216, 255, .22);
  background: rgba(5, 16, 38, .82);
  box-shadow: inset 3px 0 0 #46cde8;
}

.system-balance-card { border-color: rgba(70, 205, 232, .38); }

input, select, button, textarea {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(184, 205, 255, .18);
  color: var(--text);
  background: rgba(7, 18, 42, .72);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(86, 216, 255, .76);
  box-shadow: 0 0 0 4px rgba(86, 216, 255, .12);
}

button {
  width: auto;
  max-width: 100%;
  cursor: pointer;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .35px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.primary {
  margin-top: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--red), #b61535 38%, var(--blue));
  box-shadow: 0 12px 28px rgba(0, 87, 184, .22);
}

.public-order-link {
  display: block;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(86, 216, 255, .35);
  border-radius: 8px;
  color: #bdefff;
  background: rgba(86, 216, 255, .07);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.login-panel {
  border: 1px solid rgba(184, 205, 255, .18);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(86, 216, 255, .10), transparent 44%),
    rgba(8, 18, 42, .72);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}

.login-close {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.public-mode .app-shell { grid-template-columns: 1fr; }
.public-mode .sidebar { display: none; }
.public-mode .content { grid-column: 1; grid-row: 1 / -1; max-width: none; padding: 0; }
.public-mode .topbar {
  position: absolute;
  width: 100%;
  border-bottom-color: rgba(255,255,255,.13);
  background: linear-gradient(180deg, rgba(3,10,25,.88), rgba(3,10,25,.28));
}
.public-mode.login-open .sidebar {
  display: block;
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  padding: 24px;
  overflow-y: auto;
  border-left: 1px solid rgba(86,216,255,.25);
  background: #06132d;
  box-shadow: -30px 0 80px rgba(0,0,0,.55);
}
.public-mode.login-open .login-close { display: grid; place-items: center; }
.public-mode.login-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(2,7,18,.72);
  backdrop-filter: blur(5px);
}

.public-welcome { display: block; min-width: 0; }
.public-hero {
  min-height: min(760px, 84vh);
  display: flex;
  align-items: flex-end;
  padding: 130px clamp(24px, 7vw, 110px) clamp(48px, 7vw, 88px);
  background:
    linear-gradient(90deg, rgba(3,10,27,.95) 0%, rgba(3,10,27,.76) 46%, rgba(3,10,27,.17) 78%),
    linear-gradient(0deg, rgba(3,10,27,.75), transparent 52%),
    url('/assets/ahlink-branded-rider-hero-v2.png') center 48% / cover no-repeat;
}
.public-hero-content { width: min(680px, 100%); }
.public-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #69e1ef;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.public-hero h1 { margin: 0 0 18px; font-size: clamp(48px, 7vw, 90px); line-height: .95; letter-spacing: 0; }
.public-hero p { max-width: 640px; color: #d8e5fb; font-size: clamp(17px, 2vw, 22px); line-height: 1.55; }
.public-hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.public-hero-trust { display: flex; gap: 9px 22px; flex-wrap: wrap; margin-top: 26px; color: #c9d8ef; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.public-hero-trust span { position: relative; padding-left: 14px; }
.public-hero-trust span::before { content: ""; position: absolute; top: 5px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #65e1df; box-shadow: 0 0 12px rgba(101,225,223,.65); }
.welcome-order-cta,
.welcome-staff-login {
  width: auto;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}
.welcome-order-cta { color: #041326; background: linear-gradient(135deg, #65e1df, #61a8ff); box-shadow: 0 16px 40px rgba(62,181,255,.28); }
.welcome-staff-login { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(4,15,38,.55); }
.public-service-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: #081832;
}
.public-service-band article { min-height: 150px; padding: 34px clamp(24px, 4vw, 58px); border-right: 1px solid rgba(255,255,255,.11); }
.public-service-band article:last-child { border-right: 0; }
.public-service-band small { display: block; margin-bottom: 18px; color: #59d9e8; font-size: 11px; font-weight: 950; }
.public-service-band strong { display: block; margin-bottom: 10px; font-size: 18px; }
.public-service-band span { color: var(--muted); line-height: 1.55; }
.public-about-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 8vw, 130px);
  padding: clamp(52px, 8vw, 110px) clamp(24px, 7vw, 110px);
  background: linear-gradient(90deg, #0b2145, #07142e 70%);
}
.public-about-band h2 { font-size: clamp(30px, 4vw, 52px); letter-spacing: 0; }
.public-about-band p { color: #c3d3ee; font-size: 18px; line-height: 1.7; }
.public-about-copy { align-self: end; }
.public-about-copy a { display: inline-flex; margin-top: 20px; color: #6ce3ec; font-size: 12px; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.public-process-band { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; background: #eef4fa; color: #112344; }
.public-process-band > div { min-height: 210px; padding: 42px clamp(24px,4vw,58px); border-right: 1px solid #ccd9e8; }
.public-process-band > div:last-child { border-right: 0; }
.public-process-band span { display: block; color: #d91f3d; font-size: 12px; font-weight: 950; }
.public-process-band strong { display: block; margin-top: 18px; font-size: 20px; }
.public-process-band p { margin-top: 10px; color: #586a85; line-height: 1.65; }

.login-hero {
  margin-bottom: 14px;
}

.login-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(11, 116, 255, .24);
}

.login-hero h1 {
  margin: 12px 0 0;
  font-size: 24px;
  line-height: 1.05;
}

.login-hero p {
  font-size: 13px;
}

.login-audience-grid {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.login-audience-grid span {
  display: block;
  border: 1px solid rgba(184, 205, 255, .14);
  border-radius: 12px;
  padding: 9px 10px;
  color: #d9e7ff;
  background: rgba(255, 255, 255, .045);
  font-size: 12px;
  font-weight: 800;
}

.nav-panel { display: grid; gap: 8px; }
.nav {
  text-align: left;
  background: rgba(255, 255, 255, .045);
  border-radius: 10px;
}
.nav.active {
  border-color: rgba(86, 216, 255, .46);
  background: linear-gradient(135deg, rgba(227, 27, 47, .26), rgba(0, 87, 184, .30));
  box-shadow: inset 4px 0 0 var(--red), 0 10px 28px rgba(11, 116, 255, .12);
}

.view { display: grid; gap: 16px; }
.hidden { display: none !important; }

.dashboard-view {
  max-width: 1280px;
}

.dashboard-card {
  border: 1px solid rgba(126, 160, 220, .34);
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(227, 27, 47, .07), transparent 32%),
    linear-gradient(180deg, rgba(13, 24, 54, .97), rgba(7, 15, 35, .99));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 28px 70px rgba(0, 0, 0, .25);
}

.premium-card,
.dispatch-card,
.panel {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 24px 70px rgba(0, 0, 0, .22);
}

.dashboard-title {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 950;
}

.dashboard-title-rule {
  width: 76px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-soft), var(--red-soft));
}

.dashboard-date-row {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
  align-items: end;
  margin-top: 8px;
}

.dashboard-date-field label {
  margin-top: 0;
}

.dashboard-date-row input {
  min-height: 42px;
  border-radius: 13px;
  background: rgba(8, 17, 41, .72);
}

.dashboard-date-row button {
  min-height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.dashboard-workflow-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dashboard-workflow-actions button {
  min-height: 44px;
  border-radius: 14px;
  border-color: rgba(91, 217, 255, .32);
  background:
    linear-gradient(135deg, rgba(91, 217, 255, .18), rgba(255, 255, 255, .05)),
    rgba(8, 20, 47, .9);
  color: #eff8ff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}

.dashboard-workflow-actions button:first-child,
.dashboard-workflow-actions button:nth-child(2) {
  border-color: transparent;
  color: #07152f;
  background: linear-gradient(135deg, #67e5e3, #62a8ff);
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.dashboard-kpis.top-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-kpis.top-kpis .dashboard-kpi:nth-child(5),
.dashboard-kpis.lower-kpis .dashboard-kpi:nth-child(5) {
  grid-column: 1 / span 1;
}

.dashboard-kpi {
  min-height: 77px;
  padding: 14px;
  border-radius: 16px;
  border-color: rgba(184, 205, 255, .16);
  background: linear-gradient(135deg, rgba(32, 51, 94, .82), rgba(14, 25, 55, .92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.dashboard-kpi strong {
  margin-top: 0;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.dashboard-kpi span {
  display: block;
  margin-top: 8px;
  color: #9fb1d2;
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: .2px;
}

.dashboard-kpi[data-dashboard-jump] {
  position: relative;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dashboard-kpi[data-dashboard-jump]::after {
  content: "Open";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(91, 217, 255, .14);
  color: #7de7ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .16s ease, transform .16s ease;
}

.dashboard-kpi[data-dashboard-jump]:hover,
.dashboard-kpi[data-dashboard-jump]:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(91, 217, 255, .46);
  box-shadow: 0 18px 42px rgba(19, 177, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
  outline: none;
}

.dashboard-kpi[data-dashboard-jump]:hover::after,
.dashboard-kpi[data-dashboard-jump]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-action-queue {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(184, 205, 255, .12);
}

.dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dashboard-section-head .dashboard-subtitle {
  margin-bottom: 4px;
}

.dashboard-section-head button {
  min-height: 34px;
  padding: 8px 12px;
  border-color: rgba(184, 205, 255, .2);
  background: rgba(255, 255, 255, .07);
}

.action-queue-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.action-queue-card {
  position: relative;
  min-height: 148px;
  padding: 13px;
  border: 1px solid rgba(184, 205, 255, .16);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 35, 76, .82), rgba(7, 15, 34, .94));
  overflow: hidden;
}

.action-queue-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #5bdcff;
}

.action-queue-card.risk::before { background: #ff5268; }
.action-queue-card.warn::before { background: #f6c451; }
.action-queue-card.ok::before { background: #35d399; }

.action-queue-card h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  color: #f5f8ff;
}

.action-queue-card h4 strong {
  min-width: 28px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  text-align: center;
}

.action-queue-card button {
  width: 100%;
  display: block;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid rgba(184, 205, 255, .11);
  border-radius: 0;
  background: transparent;
  color: #aebfe2;
  font-size: 11px;
  text-align: left;
  text-transform: none;
}

.action-queue-card button:hover,
.action-queue-card button:focus-visible {
  color: #74e6ff;
  outline: none;
}

.action-queue-empty {
  color: #7f91bb;
  font-size: 12px;
}

.shift-control-board {
  margin-top: 16px;
}

.shift-control-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.shift-kpi {
  border-color: rgba(94, 213, 255, .18);
}

.shift-kpi.ok {
  border-color: rgba(53, 211, 153, .34);
}

.shift-kpi.risk {
  border-color: rgba(255, 82, 104, .42);
  box-shadow: 0 0 0 1px rgba(255, 82, 104, .08), 0 16px 34px rgba(255, 82, 104, .08);
}

.shift-control-alerts {
  display: grid;
  gap: 8px;
}

.shift-control-alerts button,
.shift-clear {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid rgba(184, 205, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: #d9e7ff;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.shift-control-alerts button {
  border-color: rgba(255, 82, 104, .34);
  background: linear-gradient(135deg, rgba(255, 82, 104, .12), rgba(14, 28, 62, .82));
}

.shift-control-alerts button strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
}

.shift-control-alerts button span,
.shift-clear {
  color: #aebfe2;
  font-size: 12px;
}

.shift-control-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.shift-control-checklist article {
  padding: 12px;
  border: 1px solid rgba(184, 205, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
}

.shift-control-checklist article.ok {
  border-color: rgba(53, 211, 153, .32);
}

.shift-control-checklist article.risk {
  border-color: rgba(255, 82, 104, .38);
  background: rgba(255, 82, 104, .08);
}

.shift-control-checklist strong,
.shift-control-checklist span {
  display: block;
}

.shift-control-checklist strong {
  margin-bottom: 5px;
  color: #f5f8ff;
}

.shift-control-checklist span {
  color: #aebfe2;
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-table-wrap {
  margin-top: 14px;
}

.dashboard-subtitle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  letter-spacing: 0;
  color: #f3f7ff;
}

.dashboard-subtitle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #58d8f2;
  box-shadow: 0 0 14px rgba(88, 216, 242, .7);
}

.dashboard-table-wrap table {
  border-radius: 0;
}

.dashboard-table-wrap th {
  color: #c2cce2;
  font-size: 11px;
  letter-spacing: .4px;
}

.dashboard-table-wrap td {
  color: #9fb1d2;
}

#dashStatus {
  color: #37e6a0;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 340px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi, .panel, .login-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 42, 89, .92), rgba(7, 22, 47, .88));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

.kpi { padding: 16px; }
.kpi span { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 900; }
.kpi strong { display: block; font-size: 28px; margin-top: 8px; letter-spacing: -.7px; }
.panel, .login-panel { padding: 16px; }

.create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.create-action { align-self: end; margin-top: 0; }

.create-grid.tight {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.mini-kpi {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, .055);
}

.mini-kpi span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-kpi strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 12px;
}

.report-box {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, .12);
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}
th, td {
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  color: #c4d4ef;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .65px;
}
td { color: #edf4ff; font-size: 13px; }

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(11, 116, 255, .38);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(11, 116, 255, .15);
  font-size: 11px;
  font-weight: 900;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.row-actions button {
  width: auto;
  min-height: 32px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 11px;
}

.promotion-badge {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(96, 216, 236, .35);
  border-left: 4px solid #60d8ec;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(96, 216, 236, .14), rgba(219, 39, 119, .1));
  box-shadow: 0 12px 26px rgba(3, 12, 31, .25);
}

.promotion-badge strong {
  color: #e6fbff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.promotion-badge span {
  color: #ffffff;
  font-weight: 900;
}

.promotion-badge small {
  color: #b9c8dd;
  line-height: 1.35;
}

.promotion-prompt {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(96, 216, 236, .45);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(96, 216, 236, .22), transparent 42%),
    linear-gradient(135deg, rgba(8, 20, 48, .92), rgba(24, 32, 72, .92));
}

.promotion-prompt.hidden {
  display: none;
}

.promotion-prompt div {
  display: grid;
  gap: 4px;
}

.promotion-prompt strong {
  color: #60d8ec;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
}

.promotion-prompt span {
  color: #ffffff;
  font-weight: 800;
}

.promotion-prompt small {
  color: #9fb0ca;
}

.promotion-prompt button {
  flex: 0 0 auto;
  background: linear-gradient(135deg, #60d8ec, #58a6ff);
  color: #061021;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(96, 216, 236, .2);
}

.client-promotion-admin {
  border-color: rgba(96, 216, 236, .28);
}

.status { margin-top: 10px; min-height: 18px; color: var(--muted); font-size: 13px; font-weight: 800; }
.status.ok { color: var(--ok); }
.status.err { color: var(--bad); }

.dispatch-view {
  color: #edf5ff;
}

.dispatch-card {
  border: 1px solid rgba(112, 137, 184, .42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(11, 116, 255, .08), transparent 45%),
    linear-gradient(180deg, rgba(17, 28, 56, .97), rgba(7, 14, 32, .97));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.dispatch-shell {
  padding: 18px;
  max-width: 1280px;
}

.dispatch-shell h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.dispatch-card.inner {
  margin-top: 12px;
  padding: 14px;
}

.dispatch-card h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: #e9f2ff;
  font-size: 12px;
  text-transform: uppercase;
}

.dispatch-card h2 span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5bdcff;
  box-shadow: 0 0 16px rgba(91, 220, 255, .7);
}

.section-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(184, 205, 255, .10);
}

.section-head-actions h2 {
  flex: 1 1 260px;
  margin-bottom: 0;
  min-width: 0;
  line-height: 1.35;
}

.workflow-shortcuts {
  display: flex;
  flex-wrap: wrap;
  flex: 1 1 280px;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.workflow-shortcuts .inline-field {
  display: flex;
  flex: 1 1 190px;
  max-width: 260px;
  min-width: 170px;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  color: #aebfe0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.workflow-shortcuts .inline-field input {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.workflow-shortcuts button {
  flex: 0 1 auto;
  width: auto;
  min-width: 118px;
  min-height: 34px;
  padding: 9px 12px;
  border-color: rgba(91, 217, 255, .32);
  background: linear-gradient(135deg, rgba(91, 217, 255, .16), rgba(255, 44, 90, .08));
  color: #eef6ff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.workflow-shortcuts button:hover,
.workflow-shortcuts button:focus-visible {
  border-color: rgba(91, 217, 255, .66);
  background: linear-gradient(135deg, rgba(91, 217, 255, .28), rgba(255, 44, 90, .12));
  outline: none;
}

.jump-highlight {
  animation: jumpPulse 1.45s ease;
}

@keyframes jumpPulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 217, 255, .46), 0 24px 70px rgba(0, 0, 0, .22); }
  45% { box-shadow: 0 0 0 5px rgba(91, 217, 255, .16), 0 0 38px rgba(91, 217, 255, .15), 0 24px 70px rgba(0, 0, 0, .22); }
  100% { box-shadow: 0 0 0 0 rgba(91, 217, 255, 0), 0 24px 70px rgba(0, 0, 0, .22); }
}

.dispatch-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  align-items: end;
}

.dispatch-grid.five { grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)); }
.dispatch-grid.four { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dispatch-grid.three, .dispatch-grid.custom { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.dispatch-grid.special { grid-template-columns: 1.1fr 1fr; }
.dispatch-grid.rides-filter { grid-template-columns: minmax(150px, 190px) minmax(150px, 190px) minmax(240px, 1fr) minmax(90px, auto); }

.dispatch-grid > *,
.premium-grid > *,
.handover-entry > *,
.section-head-actions > * {
  min-width: 0;
}

.dispatch-grid > button,
.premium-grid > button,
.dispatch-actions button,
.toolbar button {
  width: 100%;
}

.dispatch-grid label {
  display: block;
  margin-bottom: 5px;
  color: #aebfe2;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dispatch-grid .checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  color: #f0f6ff;
  font-size: 12px;
  text-transform: none;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  color: #f0f6ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: none;
}

.dispatch-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #5bdcff;
}

.dispatch-grid .muted {
  margin: 5px 0 0;
  font-size: 11px;
}

.contact-suggestion-panel {
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid rgba(86, 216, 255, .28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(86, 216, 255, .12), transparent 46%),
    rgba(8, 18, 43, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.contact-suggestion-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.contact-suggestion-head strong {
  display: block;
  color: #f3f8ff;
  font-size: 13px;
  font-weight: 950;
}

.contact-suggestion-head span {
  display: block;
  margin-top: 3px;
  color: #aebfe2;
  font-size: 12px;
  line-height: 1.4;
}

.contact-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.contact-suggestion-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(174, 191, 226, .18);
  border-radius: 14px;
  background: rgba(13, 27, 62, .72);
}

.contact-suggestion-card strong,
.contact-suggestion-card span,
.contact-suggestion-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-suggestion-card strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
}

.contact-suggestion-card span {
  margin-top: 4px;
  color: #d8e6ff;
  font-size: 13px;
}

.contact-suggestion-card small {
  margin-top: 4px;
  color: #8fa4cc;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
}

.contact-suggestion-type {
  width: fit-content;
  margin-bottom: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #08203a;
  background: linear-gradient(135deg, #5bdcff, #7bf0c6);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.contact-suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.contact-suggestion-actions button,
.contact-suggestion-head button {
  width: auto;
  min-height: 30px;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 10px;
  white-space: nowrap;
}

.dispatch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.client-orders-panel {
  border-color: rgba(86, 216, 255, .45);
  background:
    linear-gradient(125deg, rgba(11, 116, 255, .15), transparent 42%),
    linear-gradient(300deg, rgba(227, 27, 47, .08), transparent 45%),
    rgba(8, 17, 39, .97);
}

.whatsapp-desk-panel {
  border-color: rgba(37, 211, 102, .42);
  background:
    linear-gradient(135deg, rgba(37, 211, 102, .12), transparent 38%),
    linear-gradient(315deg, rgba(11, 116, 255, .11), transparent 48%),
    rgba(8, 17, 39, .98);
}

.whatsapp-desk-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.35fr) minmax(280px, .85fr);
  gap: 14px;
  align-items: stretch;
}

.whatsapp-composer,
.whatsapp-inbox,
.whatsapp-thread {
  border: 1px solid rgba(144, 184, 232, .22);
  border-radius: 14px;
  background: rgba(5, 13, 31, .52);
  padding: 14px;
}

.whatsapp-inbox h3 {
  margin: 0 0 10px;
  color: #f2f7ff;
  font-size: 15px;
}

.whatsapp-inbox-list {
  display: grid;
  gap: 8px;
  max-height: 370px;
  overflow: auto;
}

.whatsapp-inbox-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  width: 100%;
  min-height: auto;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid rgba(96, 216, 236, .22);
  border-radius: 12px;
  background: rgba(10, 27, 58, .72);
}

.whatsapp-inbox-item.unread {
  border-color: rgba(37, 211, 102, .55);
  box-shadow: 0 0 0 1px rgba(37, 211, 102, .15);
}

.whatsapp-inbox-item span,
.whatsapp-inbox-item em {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.whatsapp-inbox-item strong {
  color: #f7fbff;
  font-size: 13px;
}

.whatsapp-inbox-item small,
.whatsapp-inbox-item em {
  color: #aebfe2;
  font-style: normal;
  font-size: 11px;
}

.whatsapp-inbox-item b {
  align-self: center;
  justify-self: end;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #04111f;
  background: #25d366;
  font-size: 11px;
}

.whatsapp-thread {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 330px;
  overflow: auto;
}

.whatsapp-message {
  max-width: min(760px, 92%);
  border: 1px solid rgba(144, 184, 232, .22);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(10, 27, 58, .76);
}

.whatsapp-message.out {
  justify-self: end;
  border-color: rgba(96, 216, 236, .38);
  background: linear-gradient(135deg, rgba(96, 216, 236, .18), rgba(11, 116, 255, .13));
}

.whatsapp-message.in {
  justify-self: start;
  border-color: rgba(37, 211, 102, .34);
  background: linear-gradient(135deg, rgba(37, 211, 102, .13), rgba(8, 30, 59, .58));
}

.whatsapp-message div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.whatsapp-message strong {
  color: #f7fbff;
  font-size: 12px;
}

.whatsapp-message small {
  color: #aebfe2;
  font-size: 10px;
}

.whatsapp-message p {
  margin: 7px 0 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.message-template-preview {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status.warn {
  color: #fbbf24;
}

.live-tracking-panel {
  border-color: rgba(53, 211, 153, .34);
  background:
    linear-gradient(130deg, rgba(53, 211, 153, .10), transparent 36%),
    linear-gradient(310deg, rgba(11, 116, 255, .12), transparent 46%),
    rgba(8, 17, 39, .97);
}

.live-tracking-head,
.live-tracking-actions,
.native-tracking-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.live-tracking-actions { justify-content: flex-end; }
.live-tracking-actions button,
.live-tracking-actions .map-page-button { width: auto; min-width: 130px; }
.device-duty-console {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(190px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(86,216,255,.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(8,126,232,.12), rgba(3,12,30,.58));
}
.device-duty-console label { margin-top: 0; }
.device-duty-console button { width: auto; min-width: 112px; }
.device-duty-console .status { grid-column: 1 / -1; }
.device-duty-table-wrap { margin-top: 10px; }
.device-duty-table { min-width: 760px; }
.device-admin-setup { margin-top: 14px; padding: 14px 16px; border: 1px solid rgba(79, 198, 231, .35); background: rgba(8, 30, 59, .72); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 8px; }
.device-admin-setup p { margin: 4px 0 0; }
.device-pairing-fields { min-width: 220px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.device-pairing-fields input { min-width: 0; height: 34px; padding: 6px 8px; }
.device-pairing-fields .device-pairing-input { max-width: 100px; }
.device-pairing-fields button { grid-column: 1 / -1; min-height: 34px; }
.tracking-count {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(53,211,153,.35);
  border-radius: 8px;
  color: #83f1ca;
  background: rgba(53,211,153,.08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.tracking-command-bar {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 145px 120px 120px repeat(3, auto) auto;
  align-items: end;
  gap: 9px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid rgba(184,205,255,.16);
  border-radius: 8px;
  background: rgba(3,12,30,.55);
}
.tracking-command-bar label { margin-top: 0; }
.tracking-command-bar > button,
.tracking-command-bar > .map-page-button { width: auto; min-width: 112px; }
.route-planner-console {
  display: grid;
  grid-template-columns: minmax(230px, 1.25fr) minmax(190px, 1fr) minmax(190px, 1fr) 150px auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid rgba(86,216,255,.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8,126,232,.16), transparent 52%),
    linear-gradient(315deg, rgba(237,41,76,.10), transparent 45%),
    rgba(3,12,30,.68);
  position: relative;
  z-index: 30;
  overflow: visible;
}
.dispatch-card.inner.live-tracking-panel,
.live-tracking-panel,
.live-tracking-panel .route-planner-console {
  overflow: visible;
}
.route-planner-console > div { min-width: 0; }
.route-planner-copy {
  align-self: center;
  display: grid;
  gap: 4px;
  padding-right: 8px;
}
.route-planner-copy strong {
  color: #eef7ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .45px;
}
.route-planner-copy span {
  color: #aabbe0;
  font-size: 10px;
  line-height: 1.45;
}
.route-planner-console label { margin-top: 0; }
.route-planner-console button { width: auto; min-width: 92px; }
.route-planner-console input.route-place-selected {
  border-color: rgba(53, 211, 153, .72);
  box-shadow: 0 0 0 4px rgba(53,211,153,.10);
}
.pac-container {
  z-index: 2147483647 !important;
  margin-top: 6px;
  border: 1px solid rgba(86,216,255,.32);
  border-radius: 10px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #07152f;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.pac-item {
  min-height: 42px;
  padding: 9px 12px;
  border-top: 1px solid rgba(184,205,255,.10);
  color: #aabbe0;
  cursor: pointer;
}
.pac-item:first-child { border-top: 0; }
.pac-item:hover,
.pac-item-selected {
  background: rgba(86,216,255,.12);
}
.pac-item-query {
  color: #f6f9ff;
  font-weight: 850;
}
.pac-matched {
  color: #66e4e1;
  font-weight: 950;
}
.planned-route-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(86,216,255,.24);
  border-radius: 8px;
  background: rgba(2,10,25,.78);
}
.planned-route-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.planned-route-kpis article {
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(184,205,255,.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}
.planned-route-kpis span {
  display: block;
  color: #97acd0;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .45px;
}
.planned-route-kpis strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 18px;
}
.planned-route-points {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #dceaff;
  font-size: 11px;
}
.planned-route-points span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #06152e;
  background: #66e4e1;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}
.planned-route-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.planned-route-steps li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  min-height: 38px;
  padding: 8px;
  border: 1px solid rgba(184,205,255,.14);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: #dbe8fb;
  font-size: 10px;
  line-height: 1.35;
}
.planned-route-steps b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #06152e;
  background: #62e7ff;
  font-size: 10px;
}
.planned-route-alert {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(237,41,76,.38);
  border-radius: 8px;
  color: #ffdfe5;
  background: rgba(237,41,76,.10);
}
.planned-route-alert strong { color: #fff; }
.planned-route-alert span { color: #ffc2cc; font-size: 11px; line-height: 1.45; }
.planned-route-pin-shell { background: transparent; border: 0; }
.planned-route-pin {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  color: #fff;
  background: var(--pin-color, #087ee8);
  box-shadow: 0 10px 24px rgba(3,12,30,.45);
  transform: rotate(-45deg);
  font-size: 13px;
  font-weight: 950;
}
.planned-route-pin b { transform: rotate(45deg); }
.route-playback-console {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 76px 76px 130px auto;
  align-items: end;
  gap: 9px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(86,216,255,.24);
  border-radius: 8px;
  background: rgba(3,12,30,.62);
}
.route-playback-copy { align-self: center; display: grid; gap: 3px; }
.route-playback-copy strong { color: #eef7ff; font-size: 11px; text-transform: uppercase; }
.route-playback-copy span { color: var(--muted); font-size: 10px; }
.route-playback-console button { width: 76px; min-width: 76px; height: 40px; padding: 0 12px; font-size: 10px; }
.route-playback-console label { margin-top: 0; }
.route-follow-toggle { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 1px solid rgba(184,205,255,.18); border-radius: 7px; color: #d9e7fb; font-size: 10px; font-weight: 850; }
.route-follow-toggle input { width: 17px; height: 17px; margin: 0; accent-color: #ed294c; }
.route-playback-timeline { grid-column: 1 / -1; display: grid; grid-template-columns: 68px minmax(120px,1fr) 68px; align-items: center; gap: 10px; color: #dceaff; font-size: 10px; font-variant-numeric: tabular-nums; }
.route-playback-timeline span:last-child { text-align: right; }
.route-playback-timeline input { width: 100%; height: 18px; margin: 0; padding: 0; accent-color: #ed294c; cursor: pointer; }
.route-playback-progress { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 4px; background: rgba(184,205,255,.14); }
.route-playback-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087ee8, #ef3858); transition: width .08s linear; }
.route-playback-icon-shell { background: transparent; border: 0; }
.route-playback-marker { width: 54px; height: 54px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50%; background: #ed294c; box-shadow: 0 0 0 10px rgba(237,41,76,.2), 0 10px 28px rgba(3,12,30,.55); animation: playbackPulse 1.4s infinite; }
.route-playback-marker i { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 25px solid #fff; transform: rotate(var(--route-heading, 0deg)); transition: transform .2s linear; }
@keyframes playbackPulse { 50% { box-shadow: 0 0 0 17px rgba(237,41,76,.06), 0 12px 30px rgba(3,12,30,.6); } }
.map-style-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(184,205,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.map-style-switch button {
  width: auto;
  min-width: 72px;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  color: #94a9ca;
  background: transparent;
  font-size: 9px;
}
.map-style-switch button.active { color: #04142f; background: #64dff0; box-shadow: 0 4px 14px rgba(86,216,255,.25); }
.tracking-map-shell { position: relative; margin: 16px 0 12px; }
.tracking-map-shell.route-playing .tracking-current-location { display: none !important; }
.tracking-map-shell.route-playing .rider-tracking-map { box-shadow: 0 0 0 2px rgba(237,41,76,.55), 0 22px 60px rgba(0,0,0,.34); }
.tracking-current-location {
  position: absolute;
  z-index: 520;
  top: 14px;
  right: 14px;
  width: min(360px, calc(100% - 28px));
  padding: 13px 14px;
  border: 1px solid rgba(73,232,183,.58);
  border-radius: 8px;
  color: #edf7ff;
  background: rgba(3,15,35,.94);
  box-shadow: 0 14px 40px rgba(0,0,0,.34);
  backdrop-filter: blur(14px);
}
.tracking-current-location-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.tracking-current-location-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.tracking-current-location-head > span:last-child { color: #6ff0bf; font-size: 9px; font-weight: 950; }
.tracking-live-pulse { width: 9px; height: 9px; border-radius: 50%; background: #35d399; box-shadow: 0 0 0 0 rgba(53,211,153,.65); animation: trackingPulse 1.8s infinite; }
.tracking-current-location p { margin: 9px 0 8px; color: #fff; font-size: 13px; font-weight: 800; line-height: 1.35; }
.tracking-current-location > div:last-child { display: flex; justify-content: space-between; gap: 10px; color: #9fb4d3; font-size: 9px; }
.tracking-current-location.stale { border-color: rgba(240,68,97,.52); }
.tracking-current-location.stale .tracking-live-pulse { background: #f04461; box-shadow: none; animation: none; }
.tracking-current-location.stale .tracking-current-location-head > span:last-child { color: #ff8ea0; }
@keyframes trackingPulse { 70% { box-shadow: 0 0 0 10px rgba(53,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(53,211,153,0); } }

.rider-tracking-map {
  width: 100%;
  height: clamp(560px, 68vh, 860px);
  margin: 0;
  border: 1px solid rgba(184,205,255,.22);
  border-radius: 8px;
  overflow: hidden;
  background: #dfe8f1;
}
.tracking-map-legend {
  position: absolute;
  z-index: 500;
  left: 12px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 7px;
  color: #eaf3ff;
  background: rgba(4,15,38,.88);
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.tracking-map-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: #687b9a; }
.legend-dot.live { background: #35d399; box-shadow: 0 0 8px rgba(53,211,153,.8); }
.legend-dot.stale { background: #f04461; }
.legend-line { width: 18px; height: 4px; border-radius: 3px; background: #55e3ff; box-shadow: 0 0 0 2px rgba(4,20,47,.75); }
.tracking-route-summary {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 54px;
  right: 390px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 8px;
  color: #dceaff;
  background: rgba(4,15,38,.90);
  box-shadow: 0 12px 32px rgba(0,0,0,.30);
  backdrop-filter: blur(12px);
  font-size: 10px;
}
.tracking-route-summary strong { margin-right: auto; color: #fff; }
.tracking-route-summary span { white-space: nowrap; }
.rider-map-icon-shell { background: transparent; border: 0; }
.rider-map-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #687b9a;
  box-shadow: 0 6px 20px rgba(4,15,38,.4);
  font-size: 10px;
  font-weight: 950;
}
.rider-map-icon.live { background: #0c9c70; box-shadow: 0 0 0 7px rgba(53,211,153,.22), 0 8px 24px rgba(4,15,38,.4); animation: riderMarkerPulse 2s infinite; }
@keyframes riderMarkerPulse { 50% { box-shadow: 0 0 0 12px rgba(53,211,153,.08), 0 8px 26px rgba(4,15,38,.5); } }
.rider-map-icon.stale { background: #d55568; }
.rider-map-pin {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  color: #fff;
  background: #07966c;
  box-shadow: 0 10px 24px rgba(3,12,30,.48);
  transform: rotate(-45deg);
}
.rider-map-pin::after { content: ""; position: absolute; inset: 7px; border: 2px solid rgba(255,255,255,.48); border-radius: 50%; background: rgba(3,22,48,.82); }
.rider-map-pin b { position: relative; z-index: 2; font-size: 11px; font-weight: 950; transform: rotate(45deg); }
.rider-map-pin.live { animation: riderPinPulse 1.8s infinite; }
.rider-map-pin.stale { background: #d33f58; animation: none; }
.rider-map-pin.selected { border-color: #ffd34f; filter: drop-shadow(0 0 8px rgba(255,211,79,.9)); }
@keyframes riderPinPulse { 50% { filter: drop-shadow(0 0 12px rgba(53,211,153,.95)); } }

.leaflet-popup-content-wrapper { border-radius: 8px; color: #172033; }
.google-rider-popup { min-width: 170px; display: grid; gap: 4px; padding: 3px; color: #172033; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.google-rider-popup strong { font-size: 14px; color: #07152f; }
.google-rider-popup span { color: #536580; font-size: 11px; }
.google-rider-popup hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid #d7dfeb; }
.google-rider-popup b { color: #0878d1; font-size: 11px; }
.live-rider-table { min-width: 1040px; }
.live-location-name { display: block; max-width: 220px; color: #eaf6ff; line-height: 1.35; }
.rider-map-focus {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
}
.rider-map-focus span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: none; }

.native-tracking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  border-color: rgba(86,216,255,.34);
}
.native-tracking-card.tracking-active { border-color: rgba(53,211,153,.5); box-shadow: 0 20px 55px rgba(53,211,153,.08); }
.native-tracking-copy h2 { font-size: 20px; }
.native-tracking-state { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px; min-width: 210px; }
.native-tracking-state small { grid-column: 2; margin-top: 4px; color: var(--muted); }
.tracking-indicator { width: 11px; height: 11px; border-radius: 50%; background: #667895; }
.tracking-active .tracking-indicator { background: #35d399; box-shadow: 0 0 0 6px rgba(53,211,153,.12), 0 0 16px rgba(53,211,153,.7); }
.native-tracking-actions { justify-content: flex-end; }
.native-tracking-actions button { width: auto; min-width: 130px; margin-top: 0; }

.client-orders-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.client-orders-live {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 6px;
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(53, 211, 153, .28);
  border-radius: 8px;
  color: #80efc5;
  background: rgba(53, 211, 153, .07);
}

.client-orders-live > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d399;
  box-shadow: 0 0 12px rgba(53, 211, 153, .8);
}

.client-orders-live strong { font-size: 9px; text-transform: uppercase; }
.client-orders-live small { grid-column: 1 / -1; margin-top: 2px; color: #719f91; font-size: 8px; }

.client-orders-head h2 { margin-bottom: 5px; }
.client-orders-head .muted { margin: 0; }

.client-orders-kicker {
  margin: 0 0 7px;
  color: #60dcff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-order-page-link {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid rgba(86, 216, 255, .35);
  border-radius: 8px;
  color: #c8f3ff;
  background: rgba(86, 216, 255, .08);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.office-status-console {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(86, 216, 255, .26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(86,216,255,.10), rgba(3,12,30,.52));
}

.office-status-console label {
  margin-top: 0;
}

.office-status-console button {
  width: auto;
  min-width: 126px;
}

.office-status-console .status {
  grid-column: 1 / -1;
}

.map-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(86, 216, 255, .35);
  border-radius: 8px;
  color: #d8f6ff;
  background: rgba(86, 216, 255, .1);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.map-page-button:hover { border-color: rgba(86,216,255,.7); background: rgba(86,216,255,.18); }

.map-page-button-primary {
  min-height: 38px;
  padding-inline: 15px;
  border-color: rgba(105, 232, 255, .65);
  color: #041326;
  background: linear-gradient(135deg, #62e7ff, #6fb4ff);
  box-shadow: 0 14px 28px rgba(20, 153, 255, .22);
}

.map-page-button-primary:hover {
  border-color: rgba(255,255,255,.72);
  background: linear-gradient(135deg, #8bf0ff, #86c4ff);
}

.dispatch-grid.client-order-filters {
  grid-template-columns: 160px 150px 150px minmax(240px, 1fr) 150px;
  margin-top: 14px;
}

.rider-detail-table { min-width: 1320px; }
.rider-detail-table td { vertical-align: top; }
.rider-notes { max-width: 240px; margin-top: 7px; color: #c9d8f2; line-height: 1.45; }
.rider-contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 7px;
  padding: 6px 8px;
  border: 1px solid rgba(53,211,153,.4);
  border-radius: 6px;
  color: #8af4cb;
  background: rgba(53,211,153,.09);
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.buttonlike {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid rgba(53, 211, 153, .48);
  border-radius: 10px;
  color: #071525;
  background: linear-gradient(135deg, #5df1c2, #5bd9ff);
  font-size: 11px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.buttonlike.disabled,
.rider-contact-link.disabled {
  pointer-events: none;
  cursor: not-allowed;
  color: rgba(215, 225, 246, .66);
  background: rgba(148, 163, 184, .14);
  border-color: rgba(148, 163, 184, .25);
  box-shadow: none;
}

.ride-pickup-contact {
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(101, 214, 244, .28);
  border-radius: 8px;
  background: rgba(101, 214, 244, .07);
}

.ride-pickup-contact strong {
  color: #eef7ff;
}

.ride-pickup-contact .rider-contact-link {
  margin-top: 6px;
}
.workflow-compact { min-width: 190px; margin-top: 8px; }

.client-order-summary {
  display: flex;
  gap: 7px;
  margin: 12px 0 8px;
  flex-wrap: wrap;
}

.client-order-summary span {
  padding: 6px 9px;
  border: 1px solid rgba(148, 174, 222, .2);
  border-radius: 7px;
  color: #aabce0;
  background: rgba(255,255,255,.035);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.client-order-summary strong { margin-right: 4px; color: #fff; font-size: 12px; }

.client-orders-table td { vertical-align: top; }
.client-orders-table .request-route { min-width: 210px; }
.client-orders-table .request-actions { display: flex; gap: 5px; flex-wrap: wrap; min-width: 180px; }
.client-orders-table .request-actions button, .client-orders-table .request-actions a {
  width: auto;
  min-height: 30px;
  padding: 6px 8px;
  border: 1px solid rgba(86, 216, 255, .28);
  border-radius: 6px;
  color: #d8f6ff;
  background: rgba(86, 216, 255, .08);
  font-size: 9px;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

.client-orders-table .request-actions .prepare-order { border-color: rgba(53, 211, 153, .4); color: #84f2c8; background: rgba(53, 211, 153, .1); }
.client-orders-table .request-actions .reject-order { border-color: rgba(255, 82, 104, .38); color: #ff9bab; background: rgba(255, 82, 104, .1); }
.client-order-status { display: inline-block; padding: 4px 6px; border: 1px solid rgba(86,216,255,.28); border-radius: 5px; color: #bdefff; font-size: 8px; font-weight: 900; }
.client-order-status.NEW { color: #fff; border-color: rgba(86,216,255,.5); background: rgba(86,216,255,.11); }
.client-order-status.CONVERTED { color: #80efc5; border-color: rgba(53,211,153,.4); }
.client-order-status.REJECTED, .client-order-status.CANCELLED { color: #ff9bab; border-color: rgba(255,82,104,.38); }
.client-order-source { color: #60dcff; }

.row-actions .receiver-whatsapp {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid rgba(53, 211, 153, .42);
  border-radius: 8px;
  color: #8af4cb;
  background: rgba(53, 211, 153, .1);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.table-scroll {
  overflow: auto;
}

.dispatch-table th,
.dispatch-table td {
  font-size: 11px;
  line-height: 1.35;
}

.dispatch-table td strong {
  font-size: 12px;
}

.tag.warn {
  border-color: rgba(255, 204, 102, .46);
  background: rgba(255, 204, 102, .12);
  color: #ffe0a3;
}

.tag.ok {
  border-color: rgba(55, 233, 157, .42);
  background: rgba(55, 233, 157, .12);
  color: #98ffd0;
}

.tag.bad {
  border-color: rgba(255, 108, 126, .42);
  background: rgba(255, 108, 126, .14);
  color: #ffb3bf;
}

.tag.live {
  border-color: rgba(91, 220, 255, .48);
  background: rgba(91, 220, 255, .14);
  color: #b7f2ff;
}

.workflow {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.workflow span {
  border: 1px solid rgba(177, 194, 226, .22);
  border-radius: 999px;
  padding: 3px 7px;
  color: #96a8c9;
  font-size: 10px;
  font-weight: 800;
}

.workflow span.active {
  border-color: rgba(91, 220, 255, .5);
  background: rgba(91, 220, 255, .15);
  color: #d8fbff;
}

.premium-section {
  max-width: 1280px;
}

.premium-card {
  border: 1px solid rgba(104, 135, 190, .42);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(11, 116, 255, .08), transparent 42%),
    linear-gradient(180deg, rgba(17, 30, 61, .96), rgba(7, 15, 35, .96));
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 20px 58px rgba(0, 0, 0, .18);
}

.fee-catalogue-admin textarea {
  min-height: 88px;
  resize: vertical;
}

.fee-zone-table td { vertical-align: top; }
.fee-zone-areas { max-width: 440px; white-space: normal; line-height: 1.45; }
.tag.danger {
  border-color: rgba(255, 108, 126, .42);
  background: rgba(255, 108, 126, .12);
  color: #ffb3bf;
}

.premium-card.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(227, 27, 47, .16), transparent 40%),
    linear-gradient(135deg, rgba(24, 72, 116, .94), rgba(12, 26, 57, .96));
}

.premium-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: 0;
}

.premium-card h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #eef6ff;
  font-size: 12px;
  text-transform: uppercase;
}

.premium-card h2 span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5bdcff;
  box-shadow: 0 0 16px rgba(91, 220, 255, .65);
}

.section-kicker {
  color: #4df0b3;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-badge {
  border: 1px solid rgba(91, 220, 255, .45);
  border-radius: 999px;
  padding: 7px 12px;
  color: #c6fbff;
  background: rgba(91, 220, 255, .12);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.premium-grid {
  display: grid;
  gap: 10px;
  align-items: end;
}

.premium-grid.filters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.premium-grid.five { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.premium-grid.four { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.premium-grid.two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.premium-grid .wide { grid-column: span 2; }

.premium-grid label {
  display: block;
  margin-bottom: 5px;
  color: #aebfe2;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-kpis {
  margin-bottom: 12px;
}

.premium-table th,
.premium-table td {
  font-size: 11px;
  line-height: 1.35;
}

.statement-box:empty::before {
  content: "Select a partner and month to generate a professional settlement statement.";
  color: var(--muted);
}

.statement-document {
  display: grid;
  gap: 14px;
}

.statement-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(184, 205, 255, .18);
}

.statement-head h3 {
  margin: 0 0 4px;
}

.statement-no,
.statement-verification {
  border: 1px solid rgba(91, 220, 255, .22);
  border-radius: 10px;
  padding: 10px;
  background: rgba(91, 220, 255, .06);
}

.danger-zone {
  border-color: rgba(255, 82, 104, .45);
  background:
    linear-gradient(135deg, rgba(255, 82, 104, .09), transparent 38%),
    linear-gradient(180deg, rgba(17, 30, 61, .96), rgba(7, 15, 35, .96));
}

button.danger,
.danger-soft {
  border-color: rgba(255, 82, 104, .55);
  color: #ffd3d9;
  background: linear-gradient(180deg, rgba(255, 82, 104, .22), rgba(89, 22, 38, .42));
}

button.danger:hover,
.danger-soft:hover {
  box-shadow: 0 0 0 1px rgba(255, 82, 104, .28), 0 14px 30px rgba(255, 82, 104, .12);
}

.audit-console {
  border-color: rgba(91, 220, 255, .34);
}

.audit-table td {
  vertical-align: top;
}

.audit-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid rgba(91, 220, 255, .28);
  border-radius: 999px;
  color: #dff7ff;
  background: rgba(91, 220, 255, .09);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-bars {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 2fr minmax(90px, auto);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, .035);
}

.mini-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5bdcff, #65f0b4);
}

.profit-panel {
  border: 1px solid rgba(255, 91, 130, .38);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 91, 130, .08);
}

.profit-panel strong {
  display: block;
  font-size: 24px;
  margin-top: 5px;
}

.chart-studio {
  border-color: rgba(86, 216, 255, .44);
}

.finance-control-card {
  border-color: rgba(86, 216, 255, .34);
  background:
    linear-gradient(135deg, rgba(11, 116, 255, .15), transparent 44%),
    linear-gradient(180deg, rgba(15, 31, 68, .96), rgba(8, 18, 43, .98));
}

.finance-control-card h3 {
  margin-top: 18px;
  color: #eaf4ff;
}

.finance-report-card {
  border-color: rgba(255, 82, 104, .28);
}

.report-header {
  border-bottom: 1px solid rgba(184, 205, 255, .18);
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.report-box table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.report-box th,
.report-box td {
  border-bottom: 1px solid rgba(184, 205, 255, .16);
  padding: 8px;
  text-align: left;
}

.analytics-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.chart-panel {
  min-height: 230px;
  border: 1px solid rgba(184, 205, 255, .14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(86, 216, 255, .12), transparent 42%),
    linear-gradient(225deg, rgba(227, 27, 47, .12), transparent 50%),
    rgba(3, 10, 28, .42);
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.chart-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #f6f9ff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.chart-title span {
  color: var(--muted);
  font-size: 11px;
  text-transform: none;
}

.analytics-svg {
  width: 100%;
  height: 175px;
  display: block;
}

.analytics-svg .grid-line {
  stroke: rgba(184, 205, 255, .12);
  stroke-width: 1;
}

.analytics-svg .area {
  fill: rgba(86, 216, 255, .12);
}

.analytics-svg .line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.analytics-svg .dot {
  fill: #f7fbff;
  stroke: #56d8ff;
  stroke-width: 2;
}

.analytics-svg text {
  fill: #aabbe0;
  font-size: 10px;
  font-weight: 800;
}

.marketing-pipeline-card {
  border-color: rgba(53, 211, 153, .32);
  background:
    linear-gradient(135deg, rgba(53, 211, 153, .12), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
}

.marketing-phone-cell {
  min-width: 220px;
  display: grid;
  gap: 7px;
}

.marketing-phone-cell strong {
  color: #eef6ff;
  font-size: 13px;
}

.marketing-phone-cell.converted {
  padding: 9px;
  border: 1px solid rgba(53, 211, 153, .45);
  border-radius: 10px;
  background: rgba(53, 211, 153, .08);
}

.marketing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.marketing-meta span,
.conversion-alert {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid rgba(184, 205, 255, .18);
  border-radius: 999px;
  color: #b9c8e6;
  background: rgba(255, 255, 255, .045);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.conversion-alert {
  border-color: rgba(53, 211, 153, .55);
  color: #082016;
  background: linear-gradient(135deg, #6effc8, #62e7ff);
  box-shadow: 0 10px 24px rgba(53, 211, 153, .18);
}

.debt-card {
  border-color: rgba(91, 220, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 22px 48px rgba(0, 0, 0, .18);
}

#balancingPrintReport {
  margin-top: 14px;
}

#view-analytics .premium-card,
#view-finance .premium-card,
#view-rider .premium-card,
#view-partners .premium-card {
  border-color: rgba(184, 205, 255, .20);
}

#view-analytics .hero,
#view-rider .hero,
#view-partners .hero,
#view-finance .hero {
  background:
    linear-gradient(135deg, rgba(86, 216, 255, .16), transparent 42%),
    linear-gradient(225deg, rgba(227, 27, 47, .12), transparent 50%),
    linear-gradient(180deg, rgba(17, 31, 67, .98), rgba(8, 18, 42, .96));
}

.hero-badge {
  border: 1px solid rgba(86, 216, 255, .35);
  background: rgba(86, 216, 255, .11);
  color: #e8f7ff;
}

.debt-card .premium-grid {
  margin-bottom: 12px;
}

#view-balancing .premium-card.hero,
#view-admin .premium-card.hero {
  border-color: rgba(91, 220, 255, .42);
  background:
    linear-gradient(135deg, rgba(30, 83, 118, .55), rgba(17, 30, 61, .94)),
    linear-gradient(180deg, rgba(17, 30, 61, .98), rgba(10, 19, 42, .96));
}

#view-balancing .premium-kpis .mini-kpi,
#view-admin .premium-card {
  border-radius: 12px;
}

#view-balancing textarea,
#view-admin textarea {
  min-height: 96px;
}

#balDiffCard {
  color: #5df0b7;
}

.insight-list p {
  margin: 8px 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
}

.premium-section,
.dashboard-view,
.dispatch-shell {
  width: min(100%, 1360px);
}

.premium-card,
.dispatch-card,
.dashboard-card,
.panel,
.login-panel {
  position: relative;
  overflow: hidden;
}

.premium-card::before,
.dispatch-card::before,
.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .09), transparent 28%, transparent 72%, rgba(86, 216, 255, .05));
  opacity: .55;
}

.premium-card > *,
.dispatch-card > *,
.dashboard-card > * {
  position: relative;
  z-index: 1;
}

button {
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(86, 216, 255, .55);
  box-shadow: 0 12px 30px rgba(11, 116, 255, .18);
}

button:active {
  transform: translateY(0);
}

.nav {
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.nav:hover {
  transform: translateX(2px);
  border-color: rgba(86, 216, 255, .34);
  background: rgba(86, 216, 255, .08);
}

.nav[data-view="dispatch"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0 18px rgba(227, 27, 47, .5);
  font-size: 9px;
}

.premium-table,
.dispatch-table,
table {
  background: rgba(2, 8, 24, .18);
}

.premium-table thead th,
.dispatch-table thead th,
table thead th {
  background: rgba(9, 22, 52, .74);
}

.table-scroll {
  border-radius: 14px;
}

.table-scroll table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.premium-table tbody tr,
.dispatch-table tbody tr,
table tbody tr {
  transition: background .16s ease;
}

.premium-table tbody tr:hover,
.dispatch-table tbody tr:hover,
table tbody tr:hover {
  background: rgba(86, 216, 255, .055);
}

.premium-kpis .mini-kpi,
.dashboard-kpi {
  background:
    linear-gradient(135deg, rgba(86, 216, 255, .11), transparent 45%),
    linear-gradient(225deg, rgba(227, 27, 47, .10), transparent 58%),
    rgba(17, 31, 67, .76);
}

.premium-kpis .mini-kpi strong,
.dashboard-kpi strong {
  color: #f8fbff;
  text-shadow: 0 0 22px rgba(86, 216, 255, .18);
}

.growth-card {
  border-color: rgba(53, 211, 153, .32);
  background:
    linear-gradient(135deg, rgba(53, 211, 153, .12), transparent 38%),
    linear-gradient(225deg, rgba(86, 216, 255, .10), transparent 54%),
    linear-gradient(180deg, rgba(17, 30, 61, .96), rgba(7, 15, 35, .96));
}

.growth-card h2 span {
  background: #35d399;
  box-shadow: 0 0 16px rgba(53, 211, 153, .7);
}

.statement-document {
  color: #f6f9ff;
}

.statement-document h3 {
  margin-top: 16px;
  color: #ffffff;
}

.statement-verification {
  margin-top: 14px;
  border: 1px solid rgba(86, 216, 255, .20);
  border-radius: 12px;
  padding: 12px;
  background: rgba(86, 216, 255, .055);
}

.login-panel {
  background:
    linear-gradient(145deg, rgba(227, 27, 47, .12), transparent 34%),
    linear-gradient(35deg, rgba(86, 216, 255, .18), transparent 52%),
    linear-gradient(180deg, rgba(15, 33, 72, .96), rgba(5, 14, 34, .96));
}

.login-audience-grid span {
  border-color: rgba(86, 216, 255, .20);
  background:
    linear-gradient(90deg, rgba(86, 216, 255, .09), transparent),
    rgba(255, 255, 255, .045);
}

.status.ok {
  text-shadow: 0 0 18px rgba(53, 211, 153, .22);
}

.danger-zone {
  border-color: rgba(255, 82, 104, .36);
  background:
    linear-gradient(135deg, rgba(227, 27, 47, .13), transparent 44%),
    linear-gradient(180deg, rgba(17, 30, 61, .96), rgba(7, 15, 35, .96));
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(520px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, .94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 7, 20, .72);
  backdrop-filter: blur(12px);
}

.modal-card {
  width: min(1060px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(184, 205, 255, .24);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(86, 216, 255, .12), transparent 40%),
    linear-gradient(225deg, rgba(227, 27, 47, .10), transparent 52%),
    #07152f;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .45);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.modal-head button {
  width: auto;
  min-width: 92px;
}

.correction-card {
  border-color: rgba(86, 216, 255, .34);
}

.row-actions button[data-finance-void],
.row-actions button[data-action="CANCEL"] {
  border-color: rgba(255, 82, 104, .38);
  background: rgba(255, 82, 104, .14);
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .topbar { grid-template-columns: 1fr; align-items: stretch; }
  .topbar-actions { justify-content: flex-start; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .content { padding: 14px; }
  .section-head, .toolbar { display: grid; min-width: 0; width: 100%; }
  .kpi-grid, .create-grid, .create-grid.tight, .mini-grid, .split-grid { grid-template-columns: 1fr 1fr; }
  .dispatch-grid.five,
  .dispatch-grid.four,
  .dispatch-grid.three,
  .dispatch-grid.special,
  .dispatch-grid.custom,
  .dispatch-grid.rides-filter {
    grid-template-columns: 1fr 1fr;
  }
  .dispatch-grid.client-order-filters { grid-template-columns: 1fr 1fr; }
  .dispatch-grid.client-order-filters button { grid-column: span 2; }
  .premium-grid.filters,
  .premium-grid.five,
  .premium-grid.four,
  .premium-grid.two {
    grid-template-columns: 1fr 1fr;
  }
  .whatsapp-desk-grid {
    grid-template-columns: 1fr;
  }
  .analytics-chart-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-kpis,
  .dashboard-kpis.top-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-workflow-actions,
  .action-queue-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-kpis.top-kpis .dashboard-kpi:nth-child(5),
  .dashboard-kpis.lower-kpis .dashboard-kpi:nth-child(5) {
    grid-column: auto;
  }
  .native-tracking-card { grid-template-columns: 1fr 1fr; }
  .native-tracking-copy { grid-column: 1 / -1; }
  .tracking-command-bar { grid-template-columns: 1fr 1fr 1fr; }
  .tracking-command-bar > div:first-child { grid-column: span 2; }
  .public-service-band { grid-template-columns: 1fr 1fr; }
  .public-service-band article:nth-child(2) { border-right: 0; }
  .public-service-band article { border-bottom: 1px solid rgba(255,255,255,.1); }
}

@media (max-width: 620px) {
  .topbar { align-items: flex-start; gap: 10px; }
  .session-pill { display: none; }
  .brand-logo { width: 43px; height: 43px; }
  .brand-subtitle { display: none; }
  .top-order-link { padding: 9px 10px; font-size: 10px; }
  .staff-login-button { display: none; }
  .public-hero { min-height: 76vh; padding: 112px 20px 42px; background-position: 62% center; }
  .public-hero h1 { font-size: 50px; }
  .public-hero p { font-size: 16px; }
  .public-hero-actions { display: grid; }
  .welcome-order-cta, .welcome-staff-login { width: 100%; }
  .public-service-band, .public-about-band, .public-process-band { grid-template-columns: 1fr; }
  .public-service-band article { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .public-about-band { gap: 22px; }
  .public-process-band > div { min-height: auto; border-right: 0; border-bottom: 1px solid #ccd9e8; }
  .kpi-grid, .create-grid, .create-grid.tight, .mini-grid, .split-grid { grid-template-columns: 1fr; }
  .dispatch-grid.five,
  .dispatch-grid.four,
  .dispatch-grid.three,
  .dispatch-grid.special,
  .dispatch-grid.custom,
  .dispatch-grid.rides-filter {
    grid-template-columns: 1fr;
  }
  .client-orders-head { display: grid; }
  .live-tracking-head, .live-tracking-actions, .native-tracking-actions { display: grid; justify-content: stretch; }
  .live-tracking-actions button,
  .live-tracking-actions .map-page-button,
  .native-tracking-actions button { width: 100%; }
  .rider-tracking-map { height: 470px; }
  .native-tracking-card { grid-template-columns: 1fr; gap: 16px; }
  .native-tracking-copy { grid-column: auto; }
  .tracking-command-bar { grid-template-columns: 1fr 1fr; }
  .route-playback-console { grid-template-columns: 1fr 76px 76px; }
  .route-playback-console > div:nth-of-type(2), .route-follow-toggle { grid-column: 1 / -1; }
  .device-duty-console { grid-template-columns: 1fr 1fr; }
  .device-duty-console button { width: 100%; }
  .office-status-console { grid-template-columns: 1fr 1fr; }
  .office-status-console > div { grid-column: 1 / -1; }
  .office-status-console button { width: 100%; }
  .tracking-command-bar > div:first-child { grid-column: 1 / -1; }
  .tracking-command-bar > button,
  .tracking-command-bar > .map-page-button { width: 100%; min-width: 0; }
  .map-style-switch { grid-column: 1 / -1; }
  .tracking-current-location { top: 12px; right: 12px; left: 12px; width: auto; }
  .tracking-route-summary { top: 128px; left: 12px; right: 12px; display: grid; grid-template-columns: 1fr 1fr; }
  .tracking-route-summary strong { grid-column: 1 / -1; }
  .tracking-map-legend { right: 12px; flex-wrap: wrap; }
  .route-planner-console { grid-template-columns: 1fr; }
  .route-planner-console button { width: 100%; }
  .planned-route-kpis,
  .planned-route-steps { grid-template-columns: 1fr; }
  .client-orders-live { justify-self: start; }
  .client-order-page-link { justify-self: start; }
  .dispatch-grid.client-order-filters { grid-template-columns: 1fr; }
  .dispatch-grid.client-order-filters button { grid-column: auto; }
  .office-status-console { grid-template-columns: 1fr; }
  .office-status-console > div,
  .office-status-console .status { grid-column: auto; }
  .premium-card.hero {
    display: grid;
  }
  .premium-grid.filters,
  .premium-grid.five,
  .premium-grid.four,
  .premium-grid.two,
  .premium-grid .wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
  .whatsapp-desk-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-card { padding: 14px; border-radius: 18px; }
  .dashboard-date-row,
  .dashboard-kpis,
  .dashboard-kpis.top-kpis,
  .dashboard-workflow-actions,
  .action-queue-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-section-head,
  .section-head-actions {
    display: grid;
  }
  .workflow-shortcuts {
    justify-content: stretch;
  }
  .workflow-shortcuts button {
    width: 100%;
  }
  table, thead, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tr { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; padding: 8px; }
  td { border-bottom: 1px solid rgba(255, 255, 255, .08); }
}

@media print {
  body {
    background: #ffffff;
    color: #111827;
  }

  .topbar,
  .sidebar,
  body.printing-finance .premium-section > :not(.active-print-card),
  body.printing-partner-statement .premium-section > :not(.active-print-card),
  body:not(.printing-finance):not(.printing-partner-statement):not(.printing-balancing) .premium-section > :not(.finance-report-card),
  body.printing-balancing .premium-section > :not(.balancing-print-card),
  .finance-report-card > h2,
  .finance-report-card > p,
  .finance-report-card > .premium-grid,
  .partner-statement-card > h2,
  .partner-statement-card > p,
  .partner-statement-card > .premium-grid,
  .balancing-print-card > h2,
  .balancing-print-card > p,
  .balancing-print-card > .table-scroll {
    display: none !important;
  }

  .app-shell,
  .content {
    display: block;
    padding: 0;
    max-width: none;
  }

  .finance-report-card,
  .partner-statement-card,
  .balancing-print-card,
  .report-box,
  .mini-kpi {
    border: 0;
    box-shadow: none;
    background: #ffffff;
    color: #111827;
  }

  .report-box th,
  .report-box td {
    color: #111827;
    border-color: #d1d5db;
  }

  .muted,
  .mini-kpi span,
  .report-header p {
    color: #4b5563;
  }
}

.command-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.command-rider-card {
  position: relative;
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(130, 160, 210, .28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(16, 37, 76, .92), rgba(10, 21, 48, .96));
  box-shadow: 0 18px 38px rgba(1, 9, 25, .28);
}

.command-rider-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: #4aa7ff;
}

.command-rider-card.complete::before { background: #27d17f; }
.command-rider-card.risk::before { background: #ff506f; }
.command-rider-card.pending::before { background: #ffad3d; }
.command-rider-card.available::before { background: #64d8ff; }
.command-rider-card.muted-card { color: var(--muted); }

.command-rider-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.command-rider-head strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.command-rider-head span,
.command-rider-meta span,
.handover-note small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.command-rider-state {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.command-rider-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.command-rider-meta b {
  display: block;
  color: #fff;
  font-size: 18px;
}

.ride-warning-panel {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.ride-warning-panel article {
  border: 1px solid rgba(255, 173, 61, .35);
  border-left: 4px solid #ffad3d;
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffe4ba;
  background: rgba(255, 173, 61, .09);
}

.ride-warning-panel article.risk {
  border-color: rgba(255, 80, 111, .45);
  border-left-color: #ff506f;
  color: #ffd0d8;
  background: rgba(255, 80, 111, .10);
}

.handover-entry {
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(260px, 1fr) minmax(140px, auto);
  gap: 12px;
  align-items: end;
}

.handover-entry button {
  width: 100%;
}

.handover-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.handover-note {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(130, 160, 210, .25);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, .035);
}

.handover-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.handover-note-head button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
}

.handover-note strong {
  color: #fff;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.handover-note small {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.heatmap-list {
  display: grid;
  gap: 9px;
}

.heatmap-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 10px;
  align-items: center;
}

.heatmap-row .bar {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.heatmap-row .bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #52d8f6, #2ee09a);
}

.compact-mode .premium-card,
.compact-mode .dispatch-card.inner {
  padding: 14px;
}

.compact-mode .premium-section {
  gap: 12px;
}

.compact-mode .muted,
.compact-mode label,
.compact-mode td {
  font-size: 12px;
}

.public-track-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #eef5ff, #ffffff);
  color: #06132b;
}

.public-track-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0;
}

.public-track-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.public-track-header img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.public-track-header strong,
.public-track-card h1 {
  color: #06132b;
}

.public-track-header span {
  display: block;
  color: #5b6b84;
}

.public-track-card {
  overflow: hidden;
  border: 1px solid #d8e4f4;
  border-radius: 22px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(6, 19, 43, .13);
}

.public-track-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px;
}

.public-track-title-row h1 {
  margin-bottom: 6px;
}

.public-track-title-row button {
  width: auto;
  min-width: 118px;
  margin-top: 0;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #123c7a, #ed294c);
  color: #fff;
  box-shadow: 0 14px 28px rgba(18, 60, 122, .22);
}

.public-track-status-copy {
  max-width: 720px;
  margin: 0;
  color: #52627c;
  font-size: 16px;
  line-height: 1.45;
}

.public-track-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.public-track-kpis article {
  border-radius: 14px;
  padding: 12px;
  background: #f3f7fd;
}

.public-track-kpis span {
  display: block;
  color: #63718a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.public-track-kpis strong {
  display: block;
  margin-top: 5px;
  color: #06132b;
  font-size: 18px;
}

.public-track-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.public-track-progress article {
  min-height: 108px;
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  padding: 12px;
  background: #f8fbff;
}

.public-track-progress article.done {
  border-color: rgba(31, 165, 114, .42);
  background: linear-gradient(145deg, rgba(31, 165, 114, .12), #fff);
}

.public-track-progress article > span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 9px;
  border-radius: 50%;
  background: #dfe9f8;
  color: #123c7a;
  font-weight: 950;
}

.public-track-progress article.done > span {
  background: #1fa572;
  color: #fff;
}

.public-track-progress strong {
  display: block;
  color: #06132b;
  line-height: 1.25;
}

.public-track-progress small {
  display: block;
  margin-top: 6px;
  color: #63718a;
}

.public-track-payment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}

.public-track-payment > div {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid #dbe6f5;
  background: #f7fbff;
}

.public-track-payment.confirmed > div:first-child {
  border-color: rgba(31, 165, 114, .45);
  background: rgba(31, 165, 114, .11);
}

.public-track-payment.pending > div:first-child {
  border-color: rgba(237, 41, 76, .32);
  background: rgba(237, 41, 76, .08);
}

.public-track-payment span {
  display: block;
  color: #63718a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-track-payment strong {
  display: block;
  margin: 5px 0;
  color: #06132b;
  font-size: 20px;
}

.public-track-payment small {
  color: #63718a;
}

.public-track-map {
  height: 420px;
  border-radius: 18px;
  background: #eef3fb;
  overflow: hidden;
}

.public-track-map-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100%;
  padding: 22px;
  text-align: center;
  color: #52627c;
}

.public-track-map-empty strong {
  color: #06132b;
  font-size: 20px;
}

.public-track-map-empty span {
  display: block;
  max-width: 420px;
  margin-top: 8px;
}

.public-track-note {
  margin: 14px 0 0;
  color: #63718a;
  font-size: 13px;
}

@media (max-width: 760px) {
  .public-track-title-row,
  .public-track-payment {
    grid-template-columns: 1fr;
  }
  .public-track-progress {
    grid-template-columns: 1fr;
  }
  .public-track-map {
    height: 340px;
  }
}

@media (max-width: 760px) {
  .handover-entry {
    grid-template-columns: 1fr;
  }
  .command-board-grid {
    grid-template-columns: 1fr;
  }
}
