html {
  font-size: 14px;
}

html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

:root {
  --dispatch-navy: #2a0f36;
  --dispatch-blue: #682880;
  --dispatch-blue-soft: rgba(104, 40, 128, 0.14);
  --dispatch-ink: #2c1735;
  --dispatch-muted: rgba(82, 48, 96, 0.74);
  --dispatch-page: #f1eee9;
  --dispatch-surface: #ffffff;
  --dispatch-surface-soft: #f7f2fa;
  --dispatch-border: rgba(104, 40, 128, 0.16);
  --dispatch-shadow: rgba(42, 15, 54, 0.13);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --dispatch-navy: #14071c;
  --dispatch-blue: #d078f8;
  --dispatch-blue-soft: rgba(208, 120, 248, 0.2);
  --dispatch-ink: #fff7ff;
  --dispatch-muted: rgba(224, 196, 236, 0.76);
  --dispatch-page: #120818;
  --dispatch-surface: #1d0e25;
  --dispatch-surface-soft: #2a1236;
  --dispatch-border: rgba(208, 120, 248, 0.22);
  --dispatch-shadow: rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(34, 34, 34, 0.28);
}

body {
  background: var(--dispatch-page);
  margin-bottom: 0;
  color: var(--dispatch-ink);
  overflow: hidden;
}

body.admin-body {
  overflow: auto;
}

body.system-portal-body {
  overflow: auto;
}

body.messenger-body {
  overflow: hidden;
}

body.reports-body {
  overflow: hidden;
}

.topbar {
  min-height: 78px;
  background:
    linear-gradient(90deg,
      #d99cff 0%,
      #bf78ea 14%,
      #5b1a76 34%,
      #2a0f36 50%,
      #5b1a76 66%,
      #bf78ea 86%,
      #d99cff 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(42, 15, 54, 0.28);
}

.topbar .container-fluid {
  display: grid;
  grid-template-columns: auto minmax(12rem, auto) 1fr auto;
  align-items: center;
  gap: 0.85rem;
}

.topbar-phone-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 4rem;
  min-height: 2.8rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  justify-self: start;
}

.topbar-phone-status__icon {
  font-size: 1rem;
  line-height: 1;
}

.topbar-phone-status__extension {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.topbar-phone-status--online .topbar-phone-status__icon {
  color: #7dffb1;
  text-shadow: 0 0 12px rgba(125, 255, 177, 0.45);
}

.topbar-phone-status--offline .topbar-phone-status__icon {
  color: #ff7d94;
  text-shadow: 0 0 12px rgba(255, 125, 148, 0.36);
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin-right: 0;
  text-decoration: none;
}

.topbar-brand:hover,
.topbar-brand:focus {
  text-decoration: none;
}

.topbar-logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(12rem, 18vw, 17.5rem);
  min-height: 4.65rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.topbar-logo {
  display: block;
  width: 100%;
  max-width: 16.5rem;
  height: 4.15rem;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(34, 7, 49, 0.28));
}

.topbar-company {
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.topbar-inbox-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.topbar-staff-chat-button {
  text-decoration: none;
}

.topbar-inbox-button:hover,
.topbar-inbox-button:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.topbar-inbox-button__icon {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-inbox-button__icon::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.topbar-inbox-button__badge {
  min-width: 1.45rem;
  padding: 0.16rem 0.38rem;
  border-radius: 999px;
  background: var(--dispatch-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.topbar-inbox-button--alert {
  background: rgba(208, 120, 248, 0.18);
  border-color: rgba(208, 120, 248, 0.76);
  animation: companyInboxFlash 1s ease-in-out infinite;
}

.topbar-inbox-button--alert .topbar-inbox-button__icon::before {
  background: #d078f8;
  box-shadow: 0 0 0 0 rgba(208, 120, 248, 0.55);
  animation: companyInboxPulse 1.2s ease-out infinite;
}

@keyframes companyInboxFlash {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(208, 120, 248, 0.12);
  }

  50% {
    box-shadow: 0 0 0 0.42rem rgba(208, 120, 248, 0.24);
  }
}

@keyframes companyInboxPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(208, 120, 248, 0.55);
  }

  100% {
    box-shadow: 0 0 0 0.7rem rgba(208, 120, 248, 0);
  }
}

.topbar-link {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 600;
}

.topbar-link:hover,
.topbar-link:focus {
  color: #fff;
}

.login-card__support-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.login-card__support-links a {
  color: var(--dispatch-blue);
  font-weight: 600;
  text-decoration: none;
}

.login-card__support-links a:hover,
.login-card__support-links a:focus {
  text-decoration: underline;
}

.system-login-screen {
  background:
    radial-gradient(circle at top left, rgba(104, 40, 128, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(42, 15, 54, 0.06), transparent 35%);
}

.system-login-card {
  max-width: 34rem;
}

.system-login-card__eyebrow,
.system-portal__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.12);
  color: var(--dispatch-blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-portal {
  padding: 1.5rem;
}

.system-portal__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.system-portal__hero h1 {
  margin: 0.8rem 0 0.55rem;
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.system-portal__intro {
  max-width: 46rem;
  margin: 0;
  color: var(--dispatch-muted);
  font-size: 1.02rem;
}

.system-portal__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.system-stat-card,
.system-panel,
.system-company-card {
  border: 1px solid var(--dispatch-border);
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at top left, rgba(104, 40, 128, 0.08), transparent 32%);
  box-shadow: 0 18px 34px var(--dispatch-shadow);
}

:root[data-theme="dark"] .system-stat-card,
:root[data-theme="dark"] .system-panel,
:root[data-theme="dark"] .system-company-card {
  background:
    linear-gradient(180deg, rgba(29, 14, 37, 0.98), rgba(29, 14, 37, 0.9)),
    radial-gradient(circle at top left, rgba(208, 120, 248, 0.12), transparent 34%);
}

.system-stat-card {
  padding: 1rem 1.1rem;
}

.system-stat-card span {
  display: block;
  color: var(--dispatch-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.system-stat-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.8rem;
}

.system-panel {
  padding: 1.2rem;
}

.system-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.system-panel__header h2,
.system-panel__section-title h3,
.system-company-card__title-row h3 {
  margin: 0;
}

.system-panel__section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dispatch-border);
}

.system-panel__section-title p {
  margin: 0.35rem 0 0;
  color: var(--dispatch-muted);
}

.system-company-form .booking-actions {
  margin-top: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.system-company-submit {
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 800;
}

.system-company-list {
  display: grid;
  gap: 1rem;
}

.system-company-card {
  padding: 1.15rem;
}

.system-company-card__header,
.system-company-card__title-row,
.system-company-card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.system-company-card__header {
  justify-content: space-between;
}

.system-company-card__title-row {
  flex-wrap: wrap;
}

.system-company-card__meta {
  margin: 0.35rem 0 0;
  color: var(--dispatch-muted);
}

.system-company-card__actions {
  flex-wrap: wrap;
}

.system-company-card__actions form {
  margin: 0;
}

.system-company-card__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.system-company-card__details p {
  margin: 0.25rem 0 0;
  color: var(--dispatch-muted);
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.system-status-pill--active {
  background: rgba(29, 161, 109, 0.14);
  color: #118054;
}

.system-status-pill--suspended {
  background: rgba(210, 96, 37, 0.14);
  color: #b14c1a;
}

.system-status-pill--archived {
  background: rgba(107, 114, 128, 0.16);
  color: #586171;
}

@media (max-width: 991.98px) {
  .system-portal__hero,
  .system-company-card__details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .system-portal {
    padding: 1rem;
  }

  .system-portal__stats {
    grid-template-columns: 1fr;
  }

  .system-panel__header,
  .system-company-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .login-card__support-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

.reports-suite {
  display: grid;
  grid-template-columns: minmax(20rem, 30rem) minmax(0, 1fr);
  gap: 1rem;
  height: calc(100vh - 118px);
  padding: 1rem;
}

.reports-suite__catalog,
.reports-suite__viewer,
.reports-empty,
.reports-output {
  border: 1px solid var(--dispatch-border);
  background:
    radial-gradient(circle at top left, var(--dispatch-blue-soft), transparent 34%),
    var(--dispatch-surface);
  box-shadow: 0 18px 44px var(--dispatch-shadow);
}

.reports-suite__catalog,
.reports-suite__viewer {
  min-height: 0;
  border-radius: 1.4rem;
  overflow: hidden;
}

.reports-suite__catalog {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem;
}

.reports-suite__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.reports-suite__heading h1,
.reports-output h2,
.reports-empty h2 {
  margin: 0;
  color: var(--dispatch-ink);
  font-weight: 900;
}

.reports-suite__heading span,
.reports-output header span,
.reports-empty p,
.reports-card span,
.reports-card small {
  color: var(--dispatch-muted);
}

.reports-suite__search,
.reports-filters {
  display: flex;
  gap: 0.65rem;
  align-items: end;
}

.reports-suite__search input,
.reports-filters input {
  min-height: 2.6rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 0.9rem;
  background: var(--dispatch-surface-soft);
  color: var(--dispatch-ink);
  padding: 0.58rem 0.78rem;
}

.reports-suite__search input {
  min-width: 0;
  flex: 1;
}

.reports-suite__search button,
.reports-filters button,
.reports-export {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dispatch-border);
  border-radius: 999px;
  background: var(--dispatch-blue);
  color: #fff;
  padding: 0.55rem 1rem;
  font-weight: 800;
  text-decoration: none;
}

.reports-suite__groups {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding-right: 0.25rem;
}

.reports-group {
  display: grid;
  gap: 0.55rem;
}

.reports-group h2 {
  margin: 0;
  color: var(--dispatch-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reports-card {
  display: grid;
  gap: 0.22rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.48);
  color: var(--dispatch-ink);
  padding: 0.72rem 0.82rem;
  text-decoration: none;
}

:root[data-theme="dark"] .reports-card {
  background: rgba(255, 255, 255, 0.04);
}

.reports-card:hover,
.reports-card--active {
  border-color: rgba(208, 120, 248, 0.55);
  background: var(--dispatch-blue-soft);
  color: var(--dispatch-ink);
}

.reports-suite__viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 1rem;
  gap: 1rem;
}

.reports-filters {
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dispatch-border);
}

.reports-filters label {
  display: grid;
  gap: 0.25rem;
  color: var(--dispatch-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reports-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  min-height: 0;
  border-radius: 1rem;
  text-align: center;
  padding: 2rem;
}

.reports-empty span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #d078f8, #682880);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.reports-output {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 1rem;
  overflow: hidden;
}

.reports-output header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--dispatch-border);
}

.reports-output header strong {
  color: var(--dispatch-blue);
}

.reports-filters--dashboard {
  justify-content: space-between;
  align-items: center;
}

.reports-filters__intro {
  display: grid;
  gap: 0.15rem;
}

.reports-filters__intro strong {
  color: var(--dispatch-ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.reports-filters__intro small {
  color: var(--dispatch-muted);
  font-weight: 700;
}

.reports-filters__actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.reports-print-button {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dispatch-border);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a59, #ff4d6d);
  color: #fff;
  padding: 0.55rem 1rem;
  font-weight: 900;
}

.reports-dashboard {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 1rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.reports-dashboard__hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 89, 0.22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(208, 120, 248, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(104, 40, 128, 0.96), rgba(30, 58, 138, 0.94));
  color: #fff;
  box-shadow: 0 20px 50px rgba(68, 18, 98, 0.28);
}

.reports-dashboard__hero h2 {
  margin: 0;
  color: #fff;
}

.reports-dashboard__hero .map-panel__label,
.reports-dashboard__hero span,
.reports-dashboard__hero small {
  color: rgba(255, 255, 255, 0.82);
}

.reports-dashboard__hero-note {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  min-width: 12rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.14);
}

.reports-dashboard__hero-note span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reports-dashboard__hero-note strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.reports-dashboard__live {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.reports-live-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 1.1rem;
  color: #fff;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.14);
}

.reports-live-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reports-live-card strong {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  line-height: 1;
  font-weight: 950;
}

.reports-live-card--drivers { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.reports-live-card--vehicles { background: linear-gradient(135deg, #0f766e, #0f9f8f); }
.reports-live-card--accounts { background: linear-gradient(135deg, #7c3aed, #9333ea); }
.reports-live-card--customers { background: linear-gradient(135deg, #ea580c, #f97316); }
.reports-live-card--staff { background: linear-gradient(135deg, #be185d, #ec4899); }

.reports-dashboard__periods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.reports-period-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at top left, rgba(208, 120, 248, 0.08), transparent 32%),
    var(--dispatch-surface);
  box-shadow: 0 18px 44px var(--dispatch-shadow);
}

.reports-period-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.reports-period-card__header span {
  display: block;
  color: var(--dispatch-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reports-period-card__header strong {
  color: var(--dispatch-ink);
  font-size: 1.2rem;
  font-weight: 950;
}

.reports-period-card__header small {
  color: var(--dispatch-muted);
  font-weight: 700;
  text-align: right;
}

.reports-period-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.reports-metric {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(104, 40, 128, 0.05);
}

.reports-metric span {
  color: var(--dispatch-muted);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reports-metric strong {
  color: var(--dispatch-ink);
  font-size: 1.1rem;
  font-weight: 950;
  line-height: 1.15;
}

.reports-metric small {
  color: var(--dispatch-muted);
  font-weight: 700;
}

.reports-metric--wide {
  grid-column: span 2;
}

.reports-table-wrap {
  min-height: 0;
  overflow: auto;
}

.reports-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--dispatch-ink);
}

.reports-table th,
.reports-table td {
  padding: 0.7rem 0.78rem;
  border-bottom: 1px solid var(--dispatch-border);
  white-space: nowrap;
  vertical-align: top;
}

.reports-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--dispatch-surface-soft);
  color: var(--dispatch-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reports-table tbody tr:hover {
  background: var(--dispatch-blue-soft);
}

@media (max-width: 1000px) {
  body.reports-body {
    overflow: auto;
  }

  .reports-suite {
    grid-template-columns: 1fr;
    height: auto;
  }

  .reports-suite__catalog,
  .reports-suite__viewer {
    min-height: 28rem;
  }

  .reports-dashboard__hero,
  .reports-period-card__header,
  .reports-filters--dashboard {
    grid-template-columns: 1fr;
    display: grid;
  }

  .reports-dashboard__live,
  .reports-dashboard__periods,
  .reports-period-card__grid {
    grid-template-columns: 1fr;
  }

  .reports-metric--wide {
    grid-column: auto;
  }
}

@media print {
  body.reports-body {
    background: #fff !important;
    overflow: visible !important;
  }

  .topbar,
  .admin-tabs,
  .reports-suite__catalog,
  .reports-export,
  .reports-print-button {
    display: none !important;
  }

  .reports-suite,
  .reports-suite__viewer,
  .reports-dashboard {
    display: block !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .reports-suite__viewer,
  .reports-dashboard__hero,
  .reports-live-card,
  .reports-period-card {
    box-shadow: none !important;
    border: 1px solid #d1d5db !important;
    break-inside: avoid;
  }

  .reports-dashboard__hero {
    color: #111827 !important;
    background: #f8fafc !important;
    margin-bottom: 1rem;
  }

  .reports-dashboard__hero h2,
  .reports-dashboard__hero .map-panel__label,
  .reports-dashboard__hero span,
  .reports-dashboard__hero strong,
  .reports-dashboard__hero small,
  .reports-live-card span,
  .reports-live-card strong {
    color: #111827 !important;
  }

  .reports-dashboard__live,
  .reports-dashboard__periods {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem;
  }

  .reports-period-card__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.staff-messenger {
  display: grid;
  grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr);
  gap: 1rem;
  height: calc(100vh - 118px);
  padding: 1rem;
}

.staff-messenger__sidebar,
.staff-thread,
.staff-compose-card {
  border: 1px solid var(--dispatch-border);
  background:
    radial-gradient(circle at top left, var(--dispatch-blue-soft), transparent 34%),
    var(--dispatch-surface);
  box-shadow: 0 18px 44px var(--dispatch-shadow);
}

.staff-messenger__sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.85rem;
  min-height: 0;
  padding: 1rem;
  border-radius: 1.4rem;
}

.staff-messenger__titlebar,
.staff-thread__header,
.staff-compose-card__header,
.staff-compose-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.staff-messenger__titlebar h1,
.staff-thread__header h2,
.staff-compose-card__header h2 {
  margin: 0;
  font-weight: 900;
  color: var(--dispatch-ink);
}

.staff-messenger__new,
.staff-thread__ghost,
.staff-thread__composer button,
.staff-compose-card__close {
  border: 1px solid var(--dispatch-border);
  border-radius: 999px;
  background: var(--dispatch-blue);
  color: #fff;
  font-weight: 800;
}

.staff-messenger__new,
.staff-thread__ghost,
.staff-thread__composer button {
  padding: 0.55rem 1rem;
}

.staff-thread__ghost {
  background: var(--dispatch-surface-soft);
  color: var(--dispatch-ink);
}

.staff-messenger__search,
.staff-compose-card__field,
.staff-compose-all {
  display: grid;
  gap: 0.35rem;
  color: var(--dispatch-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.staff-messenger__search input,
.staff-compose-card__field input,
.staff-compose-card__field textarea,
.staff-thread__composer textarea {
  width: 100%;
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: var(--dispatch-surface-soft);
  color: var(--dispatch-ink);
  outline: 0;
}

.staff-messenger__search input,
.staff-compose-card__field input {
  min-height: 2.65rem;
  padding: 0.65rem 0.9rem;
}

.staff-compose-card__field textarea {
  min-height: 5.2rem;
  padding: 0.75rem 0.9rem;
  resize: vertical;
}

.staff-compose-all {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(208, 120, 248, 0.35);
  border-radius: 1rem;
  background: var(--dispatch-blue-soft);
  color: var(--dispatch-ink);
  text-transform: none;
  letter-spacing: 0;
}

.staff-compose-all input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #d078f8;
}

.staff-compose-all span {
  display: grid;
  gap: 0.12rem;
}

.staff-compose-all small {
  color: var(--dispatch-muted);
  font-weight: 700;
}

.staff-conversation-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.staff-conversation,
.staff-compose-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.48);
  color: var(--dispatch-ink);
  text-align: left;
}

:root[data-theme="dark"] .staff-conversation,
:root[data-theme="dark"] .staff-compose-user {
  background: rgba(255, 255, 255, 0.04);
}

.staff-conversation {
  padding: 0.72rem;
}

.staff-conversation:hover,
.staff-conversation--active,
.staff-compose-user:hover,
.staff-compose-user--selected {
  border-color: rgba(208, 120, 248, 0.55);
  background: var(--dispatch-blue-soft);
}

.staff-conversation__avatar,
.staff-compose-user__avatar,
.staff-thread__empty-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #d078f8, #682880);
  color: #fff;
  font-weight: 900;
}

.staff-conversation__main {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.staff-conversation__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-conversation__line strong,
.staff-conversation__preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-conversation__line small,
.staff-conversation__preview,
.staff-compose-user small {
  color: var(--dispatch-muted);
}

.staff-conversation__badge {
  min-width: 1.55rem;
  padding: 0.2rem 0.44rem;
  border-radius: 999px;
  background: #d078f8;
  color: #14071c;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.staff-conversation-list__empty,
.staff-thread__empty-line {
  padding: 1rem;
  color: var(--dispatch-muted);
  text-align: center;
}

.staff-thread {
  min-height: 0;
  border-radius: 1.4rem;
  overflow: hidden;
}

.staff-thread__empty,
.staff-thread__active {
  height: 100%;
}

.staff-thread__empty {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.staff-thread__empty-card {
  max-width: 30rem;
  text-align: center;
}

.staff-thread__empty-mark {
  width: 4.75rem;
  height: 4.75rem;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.staff-thread__empty-card h2 {
  color: var(--dispatch-ink);
  font-weight: 900;
}

.staff-thread__empty-card p {
  color: var(--dispatch-muted);
}

.staff-thread__active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.staff-thread__header {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--dispatch-border);
}

.staff-typing-indicator {
  margin-top: 0.25rem;
  color: var(--dispatch-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.staff-thread__messages {
  min-height: 0;
  overflow: auto;
  padding: 1.2rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.staff-message {
  display: flex;
  justify-content: flex-start;
}

.staff-message--flash .staff-message__bubble {
  animation: staffMessageFlash 1.2s ease;
}

.staff-message--mine {
  justify-content: flex-end;
}

.staff-message__bubble {
  display: grid;
  gap: 0.5rem;
  max-width: min(42rem, 78%);
  padding: 0.9rem 1rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1.2rem 1.2rem 1.2rem 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dispatch-ink);
  box-shadow: 0 14px 28px rgba(42, 15, 54, 0.08);
}

.staff-message--mine .staff-message__bubble {
  border-color: rgba(208, 120, 248, 0.5);
  border-radius: 1.2rem 1.2rem 0.35rem 1.2rem;
  background: linear-gradient(135deg, rgba(208, 120, 248, 0.92), rgba(104, 40, 128, 0.92));
  color: #fff;
}

:root[data-theme="dark"] .staff-message__bubble {
  border-color: rgba(125, 88, 155, 0.8);
  background: linear-gradient(135deg, rgba(53, 24, 76, 0.96), rgba(32, 12, 49, 0.96));
  color: #f8f2ff;
  box-shadow: 0 16px 30px rgba(5, 2, 12, 0.42);
}

:root[data-theme="dark"] .staff-message--mine .staff-message__bubble {
  border-color: rgba(215, 153, 255, 0.54);
  background: linear-gradient(135deg, rgba(184, 109, 244, 0.92), rgba(88, 32, 126, 0.98));
  color: #fff;
}

.staff-message__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  opacity: 0.82;
}

.staff-message__bubble p {
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.staff-message__reply {
  display: grid;
  gap: 0.18rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(208, 120, 248, 0.26);
  border-radius: 0.95rem;
  background: rgba(208, 120, 248, 0.08);
  color: inherit;
  text-align: left;
}

.staff-message__reply strong,
.staff-message__attachment strong {
  font-size: 0.82rem;
}

.staff-message__reply span,
.staff-message__attachment span,
.staff-message__attachment small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.84;
}

.staff-message__attachments {
  display: grid;
  gap: 0.6rem;
}

.staff-message__attachment {
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.56);
  color: inherit;
  text-decoration: none;
}

.staff-message__attachment--image {
  overflow: hidden;
  padding: 0;
}

.staff-message__attachment--image img {
  display: block;
  width: 100%;
  max-height: 15rem;
  object-fit: cover;
}

.staff-message__attachment--image span {
  padding: 0 0.85rem 0.85rem;
}

.staff-message__reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.staff-message__reaction {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.52rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--dispatch-ink);
  font-size: 0.88rem;
}

.staff-message__reaction--mine {
  border-color: rgba(208, 120, 248, 0.7);
  background: rgba(208, 120, 248, 0.16);
}

.staff-message__status {
  justify-self: end;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.staff-thread__composer {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-top: 1px solid var(--dispatch-border);
  background: var(--dispatch-surface);
}

.staff-thread__composer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.staff-thread__composer textarea {
  min-height: 4.25rem;
  resize: vertical;
  padding: 0.8rem 0.95rem;
}

.staff-attachment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 50%;
  background: var(--dispatch-surface-soft);
  color: var(--dispatch-blue);
  font-size: 1.6rem;
  font-weight: 900;
  cursor: pointer;
}

.staff-reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(208, 120, 248, 0.3);
  border-radius: 1rem;
  background: rgba(208, 120, 248, 0.08);
}

.staff-reply-banner__content {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.staff-reply-banner__content span,
.staff-reply-banner__content small {
  color: var(--dispatch-muted);
}

.staff-reply-banner__content small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.staff-attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 999px;
  background: var(--dispatch-surface-soft);
}

.staff-attachment-pill span,
.staff-attachment-pill small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-attachment-pill button {
  border: 0;
  background: transparent;
  color: var(--dispatch-muted);
  font-size: 1.05rem;
  line-height: 1;
}

.staff-compose-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.staff-compose-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 14, 0.72);
  backdrop-filter: blur(6px);
}

.staff-compose-card {
  position: relative;
  z-index: 1;
  width: min(58rem, 100%);
  max-height: min(52rem, 92vh);
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 1.4rem;
  overflow: hidden;
}

.staff-compose-card__close {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.staff-compose-users {
  display: none;
  min-height: 0;
  overflow: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-right: 0.2rem;
  align-content: start;
}

.staff-compose-users--open {
  display: grid;
  min-height: 12rem;
}

.staff-compose-users--disabled {
  opacity: 0.42;
  pointer-events: none;
}

.staff-compose-user {
  grid-template-columns: auto auto minmax(0, 1fr);
  min-height: 4.5rem;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
}

.staff-compose-user input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #d078f8;
}

.staff-compose-user--selected {
  box-shadow: 0 0 0 1px rgba(208, 120, 248, 0.18);
}

.staff-compose-start {
  opacity: 0.78;
  transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

.staff-compose-start:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.staff-compose-start--ready:not(:disabled) {
  background: linear-gradient(135deg, #d078f8, #7b33c2);
  border-color: rgba(208, 120, 248, 0.7);
  color: #fff;
  opacity: 1;
}

.staff-compose-user__details {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.staff-compose-user__details strong,
.staff-compose-user__details small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-message-menu {
  position: fixed;
  z-index: 2000;
  display: grid;
  gap: 0.55rem;
  min-width: 14rem;
  padding: 0.75rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 44px rgba(42, 15, 54, 0.18);
  backdrop-filter: blur(16px);
}

.staff-message-menu > button,
.staff-message-menu__reactions button {
  border: 1px solid var(--dispatch-border);
  border-radius: 0.9rem;
  background: var(--dispatch-surface-soft);
  color: var(--dispatch-ink);
  font-weight: 800;
}

.staff-message-menu > button {
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.staff-message-menu__reactions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.staff-message-menu__reactions button {
  min-height: 2.6rem;
  font-size: 1.1rem;
}

@keyframes staffMessageFlash {
  0% {
    box-shadow: 0 0 0 0 rgba(208, 120, 248, 0.55);
  }

  100% {
    box-shadow: 0 0 0 1rem rgba(208, 120, 248, 0);
  }
}

@media (max-width: 900px) {
  body.messenger-body {
    overflow: auto;
  }

  .staff-messenger {
    grid-template-columns: 1fr;
    height: auto;
  }

  .staff-messenger__sidebar,
  .staff-thread {
    min-height: 28rem;
  }

  .staff-thread__composer-row {
    grid-template-columns: 1fr;
  }

  .staff-compose-card {
    width: min(42rem, 100%);
    max-height: 94vh;
    padding: 1rem;
  }

  .staff-compose-users {
    grid-template-columns: 1fr;
  }
}

.topbar-user {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.topbar-user-menu__panel {
  min-width: 14rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: var(--dispatch-surface);
  color: var(--dispatch-ink);
  box-shadow: 0 18px 46px var(--dispatch-shadow);
}

.topbar-user-menu__panel .dropdown-header,
.topbar-user-menu__panel .dropdown-item {
  color: var(--dispatch-ink);
}

.topbar-user-menu__panel .dropdown-item:hover,
.topbar-user-menu__panel .dropdown-item:focus {
  background: var(--dispatch-surface-soft);
}

.topbar-theme-choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.company-inbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.company-inbox-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 7, 28, 0.58);
  backdrop-filter: blur(4px);
}

.company-inbox-overlay__card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1120px, 100%);
  max-height: min(82vh, 920px);
  border: 1px solid var(--dispatch-border);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top right, rgba(17, 17, 17, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 250, 0.98));
  box-shadow: 0 26px 70px rgba(20, 7, 28, 0.24);
  overflow: hidden;
}

.company-inbox-overlay__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1rem;
  border-bottom: 1px solid var(--dispatch-border);
}

.company-inbox-overlay__header h2 {
  margin: 0.2rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.company-inbox-overlay__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.company-inbox-overlay__compose {
  min-width: 8.5rem;
  width: auto;
}

.company-inbox-overlay__close {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.08);
  color: var(--dispatch-ink);
  font-size: 1.45rem;
  line-height: 1;
}

.company-inbox-overlay__body {
  display: grid;
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  min-height: 0;
}

.company-inbox-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-right: 1px solid var(--dispatch-border);
  background: rgba(104, 40, 128, 0.03);
}

.company-inbox-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid var(--dispatch-border);
  font-size: 0.9rem;
}

.company-inbox-sidebar__header span {
  color: var(--dispatch-muted);
  font-weight: 600;
}

.company-inbox-thread-list {
  overflow: auto;
  padding: 0.7rem;
}

.company-alerts-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}

.company-alerts-list {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.company-alerts-list__item {
  cursor: default;
}

.company-alerts-list__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.company-alerts-list__status {
  display: grid;
  gap: 0.18rem;
}

.company-alerts-list__taken {
  color: var(--dispatch-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.company-alerts-list__taken--mine {
  color: #2563eb;
}

.company-alerts-list__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.company-alerts-list__action {
  border: 1px solid rgba(104, 40, 128, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dispatch-ink);
  font-size: 0.74rem;
  font-weight: 850;
  padding: 0.38rem 0.75rem;
}

.company-alerts-list__action--primary {
  background: #2a0f36;
  border-color: #2a0f36;
  color: #fff7ff;
}

.company-alert-pill {
  text-transform: capitalize;
}

.company-alert-pill--danger {
  background: #b42318;
}

.company-alert-pill--warning {
  background: #f59e0b;
  color: #1f2937;
}

.company-alert-pill--success {
  background: #059669;
}

.company-alert-pill--info {
  background: #2563eb;
}

.company-inbox-thread-list__empty,
.company-inbox-thread-messages__empty {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: var(--dispatch-muted);
  text-align: center;
  padding: 1.2rem;
}

.company-inbox-thread-list__item {
  width: 100%;
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.55rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--dispatch-ink);
  text-align: left;
}

.company-inbox-thread-list__item strong,
.company-inbox-thread-list__item span,
.company-inbox-thread-list__item small {
  display: block;
}

.company-inbox-thread-list__item small {
  color: var(--dispatch-muted);
}

.company-inbox-thread-list__item--selected {
  border-color: rgba(17, 17, 17, 0.42);
  background: rgba(17, 17, 17, 0.1);
}

.company-inbox-thread-list__item--unread {
  border-color: rgba(255, 122, 24, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.08);
}

.company-inbox-thread-list__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.company-inbox-thread-list__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: #ff7a18;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.company-inbox-thread-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.company-inbox-thread-panel__header {
  padding: 1rem 1.2rem 0.85rem;
  border-bottom: 1px solid var(--dispatch-border);
}

.company-inbox-thread-panel__header h3,
.company-inbox-thread-panel__header p {
  margin: 0;
}

.company-inbox-thread-panel__header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.company-inbox-thread-panel__header p {
  color: var(--dispatch-muted);
  margin-top: 0.2rem;
}

.company-inbox-thread-messages {
  overflow: auto;
  padding: 1rem 1.2rem;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  background: rgba(247, 242, 250, 0.75);
}

.company-inbox-thread-bookings {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 1.2rem 0;
}

.company-inbox-thread-bookings:empty {
  display: none;
}

.company-inbox-booking-list {
  display: grid;
  gap: 0.6rem;
}

.company-inbox-booking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(104, 40, 128, 0.05);
}

.company-inbox-booking-card strong,
.company-inbox-booking-card span,
.company-inbox-booking-card small {
  display: block;
}

.company-inbox-booking-card small {
  color: var(--dispatch-muted);
}

.company-inbox-booking-card .booking-submit {
  min-width: 8.5rem;
  width: auto;
}

.company-inbox-message {
  max-width: min(82%, 620px);
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(104, 40, 128, 0.08);
  box-shadow: 0 12px 24px rgba(104, 40, 128, 0.06);
}

.company-inbox-message--dispatch {
  justify-self: end;
  background: rgba(17, 17, 17, 0.1);
  border-color: rgba(17, 17, 17, 0.2);
}

.company-inbox-message__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  color: var(--dispatch-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.company-inbox-message p {
  margin: 0;
  white-space: pre-wrap;
}

.company-inbox-thread-reply {
  padding: 1rem 1.2rem 1.2rem;
  border-top: 1px solid var(--dispatch-border);
  background: rgba(255, 255, 255, 0.94);
}

.company-inbox-thread-reply__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.dispatch-sms-dialog__card {
  gap: 0.9rem;
}

.dispatch-sms-dialog__grid {
  gap: 0.7rem;
}

.dispatch-sms-dialog__message {
  min-height: 8rem;
  resize: vertical;
}

:root[data-theme="dark"] .table,
:root[data-theme="dark"] .table-light,
:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select,
:root[data-theme="dark"] .booking-input,
:root[data-theme="dark"] .admin-plain-input {
  --bs-table-bg: var(--dispatch-surface);
  --bs-table-color: var(--dispatch-ink);
  --bs-table-border-color: var(--dispatch-border);
  background-color: var(--dispatch-surface-soft);
  border-color: var(--dispatch-border);
  color: var(--dispatch-ink);
}

:root[data-theme="dark"] .text-muted,
:root[data-theme="dark"] .admin-panel__hint,
:root[data-theme="dark"] .jobs-panel__empty {
  color: var(--dispatch-muted) !important;
}

:root[data-theme="dark"] .booking-panel {
  background:
    radial-gradient(circle at top left, rgba(225, 225, 225, 0.16), transparent 42%),
    linear-gradient(165deg, var(--dispatch-surface) 0%, var(--dispatch-surface-soft) 100%);
}

:root[data-theme="dark"] .topbar-inbox-button {
  background: rgba(225, 225, 225, 0.12);
  border-color: rgba(210, 210, 210, 0.18);
}

:root[data-theme="dark"] .topbar-phone-status {
  background: rgba(225, 225, 225, 0.12);
  border-color: rgba(210, 210, 210, 0.18);
}

:root[data-theme="dark"] .topbar-inbox-button:hover,
:root[data-theme="dark"] .topbar-inbox-button:focus {
  background: rgba(225, 225, 225, 0.2);
  border-color: rgba(210, 210, 210, 0.26);
}

:root[data-theme="dark"] .topbar-inbox-button--alert {
  background: rgba(255, 122, 24, 0.2);
  border-color: rgba(255, 190, 140, 0.62);
}

:root[data-theme="dark"] .booking-input-wrap,
:root[data-theme="dark"] .booking-lead-box,
:root[data-theme="dark"] .eta-list__row,
:root[data-theme="dark"] .dispatch-info-panel__note,
:root[data-theme="dark"] .eta-list-empty,
:root[data-theme="dark"] .address-history-suggestions {
  background: rgba(42, 18, 54, 0.94);
  border-color: var(--dispatch-border);
  box-shadow: none;
}

:root[data-theme="dark"] .booking-input::placeholder,
:root[data-theme="dark"] .form-control::placeholder {
  color: rgba(255, 247, 255, 0.45);
}

:root[data-theme="dark"] .company-inbox-overlay__card {
  background:
    radial-gradient(circle at top right, rgba(225, 225, 225, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(42, 15, 54, 0.98), rgba(42, 18, 54, 0.98));
}

:root[data-theme="dark"] .company-inbox-sidebar,
:root[data-theme="dark"] .company-inbox-thread-messages,
:root[data-theme="dark"] .company-inbox-thread-reply {
  background: rgba(20, 7, 28, 0.2);
}

:root[data-theme="dark"] .company-inbox-thread-list__item,
:root[data-theme="dark"] .company-inbox-message,
:root[data-theme="dark"] .company-inbox-overlay__close {
  background: rgba(42, 15, 54, 0.95);
  border-color: var(--dispatch-border);
  color: var(--dispatch-ink);
}

:root[data-theme="dark"] .company-inbox-thread-list__item--selected,
:root[data-theme="dark"] .company-inbox-message--dispatch {
  background: rgba(225, 225, 225, 0.14);
}

:root[data-theme="dark"] .company-alert-pill--warning {
  color: #1f2937;
}

:root[data-theme="dark"] .company-alerts-list__action {
  background: rgba(42, 15, 54, 0.95);
  border-color: var(--dispatch-border);
  color: var(--dispatch-ink);
}

:root[data-theme="dark"] .company-alerts-list__action--primary {
  background: #fff7ff;
  border-color: #fff7ff;
  color: #2a0f36;
}

:root[data-theme="dark"] .company-inbox-booking-card {
  background: rgba(42, 15, 54, 0.95);
  border-color: var(--dispatch-border);
}

:root[data-theme="dark"] .booking-input-wrap i,
:root[data-theme="dark"] .dispatch-info-panel__fare,
:root[data-theme="dark"] .dispatch-info-panel__tariff-name,
:root[data-theme="dark"] .lead-suggestion-button {
  color: var(--dispatch-blue);
}

:root[data-theme="dark"] .lead-suggestion-button {
  background: rgba(225, 225, 225, 0.14);
}

:root[data-theme="dark"] .address-history-suggestions__item:hover,
:root[data-theme="dark"] .address-history-suggestions__item:focus,
:root[data-theme="dark"] .address-history-suggestions__item--active {
  background: rgba(225, 225, 225, 0.16);
}

.dispatch-shell {
  height: calc(100vh - 78px);
  padding: 0.75rem 0.55rem 0.75rem;
}

body.system-portal-body .dispatch-shell {
  height: auto;
  min-height: calc(100vh - 78px);
}

.dispatch-shell > main {
  display: grid;
  grid-template-rows: minmax(0, 7fr) minmax(0, 5fr);
  gap: 0.75rem;
  height: 100%;
  min-height: 0;
  padding-bottom: 0 !important;
}

body.system-portal-body .dispatch-shell > main {
  display: block;
  height: auto;
  min-height: calc(100vh - 78px);
}

.dispatch-footer {
  display: none;
}

.dispatch-hero {
  overflow: hidden;
  min-height: 0;
  padding: 0;
}

.dispatch-split {
  display: grid;
  grid-template-columns: minmax(0, 4.45fr) minmax(0, 2.35fr) minmax(0, 5.2fr);
  gap: 0.75rem !important;
  height: 100%;
  min-height: 0;
  margin-right: 0;
  margin-left: 0;
}

.dispatch-split > [class*="col-"] {
  width: auto;
  max-width: none;
  min-height: 0;
  padding-right: 0;
  padding-left: 0;
}

.dispatch-split .dispatch-panel {
  overflow: hidden;
  min-height: 0;
}

.booking-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.dispatch-panel {
  background: var(--dispatch-surface);
  border: 1px solid var(--dispatch-border);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px var(--dispatch-shadow);
}

.dispatch-flash-toast {
  position: fixed;
  top: 4.35rem;
  right: 1rem;
  z-index: 1090;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.78rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1rem;
  background: rgba(96, 32, 120, 0.82);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(104, 40, 128, 0.24);
  font-size: 0.92rem;
  font-weight: 900;
  pointer-events: none;
  transform: translateX(118%) translateY(-0.3rem);
  animation: dispatchFlashToast 2s ease-in-out forwards;
  backdrop-filter: blur(10px);
}

.dispatch-flash-toast i {
  font-size: 1.05rem;
}

@keyframes dispatchFlashToast {
  0% {
    opacity: 0;
    transform: translateX(118%) translateY(-0.3rem);
  }

  14%,
  78% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(118%) translateY(-0.3rem);
  }
}

.dispatch-edit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.3rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(17, 17, 17, 0.1);
  color: #1f1f1f;
  font-weight: 700;
}

.dispatch-edit-banner--hidden {
  display: none;
}

.dispatch-edit-banner-slot {
  min-height: 3.65rem;
  margin-bottom: 0.35rem;
}

.dispatch-edit-banner-slot--hidden {
  min-height: 0;
  margin-bottom: 0;
}

.dispatch-edit-banner-slot--hidden > .dispatch-edit-banner {
  display: none;
}

.dispatch-edit-banner__link {
  color: #1f1f1f;
  text-decoration: none;
  white-space: nowrap;
}

.dispatch-edit-banner__link:hover,
.dispatch-edit-banner__link:focus {
  text-decoration: underline;
}

.booking-panel {
  padding: 0.56rem 0.78rem 0.68rem;
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.12), transparent 38%),
    linear-gradient(165deg, var(--dispatch-surface) 0%, var(--dispatch-surface-soft) 100%);
}

.booking-form {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.booking-form__validation {
  min-height: 0;
  margin-bottom: 0.18rem !important;
}

.booking-form__validation:empty {
  display: none;
  margin-bottom: 0 !important;
}

.booking-form__body {
  min-height: 0;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 0.2rem;
  padding-bottom: 0;
}

.booking-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.18rem, 0.55vh, 0.4rem);
  align-content: start;
  overflow: visible;
}

  .booking-field--full {
    grid-column: 1 / -1;
  }

  .booking-field--vehicle,
  .booking-field--driver {
    grid-column: 1 / -1;
  }

.booking-field--vehicle {
  grid-column: span 1;
}

.booking-field--driver {
  grid-column: span 1;
}

.booking-field {
  position: relative;
  z-index: 0;
}

.booking-field:focus-within {
  z-index: 50;
}

.booking-field .form-label {
  margin-bottom: clamp(0.04rem, 0.25vh, 0.16rem);
  font-weight: 700;
  font-size: clamp(0.62rem, 1.05vh, 0.74rem);
  color: var(--dispatch-ink);
}

.booking-input-wrap {
  display: flex;
  align-items: center;
  gap: clamp(0.28rem, 0.7vh, 0.45rem);
  padding: 0 clamp(0.45rem, 0.9vh, 0.68rem);
  border: 1px solid var(--dispatch-border);
  border-radius: clamp(0.68rem, 1.35vh, 1rem);
  background: color-mix(in srgb, var(--dispatch-surface) 92%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.booking-input-wrap i {
  color: var(--dispatch-blue);
  font-size: 0.88rem;
}

.booking-input {
  border: 0;
  background: transparent;
  min-height: clamp(1.42rem, 3.7vh, 2.05rem);
  padding-left: 0;
  padding-right: 0;
  box-shadow: none !important;
  font-size: clamp(0.66rem, 1.3vh, 0.8rem);
}

.booking-input-suffix {
  color: var(--dispatch-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.booking-field__hint {
  min-height: clamp(0.1rem, 1.8vh, 1.2rem);
  margin-top: 0.12rem;
  color: var(--dispatch-muted);
  font-size: clamp(0.62rem, 1.2vh, 0.78rem);
  font-weight: 700;
}

.address-history-suggestions {
  position: absolute;
  z-index: 1400;
  right: 0;
  left: 0;
  top: calc(100% - 0.1rem);
  max-height: 13rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 0.9rem;
  background: var(--dispatch-surface);
  box-shadow: 0 18px 40px var(--dispatch-shadow);
}

.address-history-suggestions__item {
  display: block;
  width: 100%;
  padding: 0.62rem 0.72rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--dispatch-ink);
  font-size: 0.88rem;
  font-weight: 750;
  text-align: left;
}

.address-history-suggestions__item--stacked {
  display: grid;
  gap: 0.12rem;
}

.address-history-suggestions__item--stacked strong {
  font-size: 0.9rem;
}

.address-history-suggestions__item--stacked span {
  color: var(--dispatch-muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.address-history-suggestions__item:hover,
.address-history-suggestions__item:focus,
.address-history-suggestions__item--active {
  background: rgba(17, 17, 17, 0.1);
  color: var(--dispatch-ink);
  outline: none;
}

.fixed-fare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.fixed-fare-grid label,
.fixed-fare-total {
  display: grid;
  gap: 0.35rem;
}

.fixed-fare-money-box {
  border: 1px solid rgba(17, 17, 17, 0.32);
  border-radius: 8px;
  padding: 0.65rem;
  background: rgba(248, 250, 252, 0.88);
}

.fixed-fare-grid label span,
.fixed-fare-total span {
  color: var(--dispatch-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fixed-fare-total {
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(248, 250, 252, 0.92);
}

.fixed-fare-money-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 2.15rem;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.fixed-fare-money-input > span {
  padding-left: 0.75rem;
  color: var(--dispatch-ink);
  font-weight: 900;
}

.fixed-fare-money-input input {
  min-height: 2.15rem;
  border: 0;
  border-radius: 0;
  padding-left: 0.35rem;
}

.fixed-fare-money-input input:focus {
  box-shadow: none;
}

.fixed-fare-money-input:focus-within {
  border-color: rgba(17, 17, 17, 0.8);
  box-shadow: 0 0 0 0.18rem rgba(17, 17, 17, 0.12);
}

.fixed-fare-total strong {
  font-size: 1.25rem;
}

.fixed-fare-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.booking-driver-suggestion {
  display: grid;
  gap: 0.08rem;
}

.booking-driver-suggestion strong {
  color: var(--dispatch-ink);
  font-size: 0.92rem;
  font-weight: 950;
}

.booking-driver-suggestion span {
  color: var(--dispatch-muted);
  font-size: 0.76rem;
  font-weight: 780;
}

.lead-suggestion-button {
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.12);
  color: #1f1f1f;
  font-size: 0.74rem;
  font-weight: 900;
}

.booking-actions {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 104px;
  align-items: stretch;
  gap: 0.38rem;
}

.booking-fixed-fare-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(1.76rem, 4vh, 2.25rem);
  padding-inline: 0;
  border-radius: 0.82rem;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.tariff-active-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 900;
}

.tariff-active-indicator--active {
  background: rgba(104, 40, 128, 0.14);
  color: #602078;
}

.tariff-active-indicator--inactive {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.booking-form__footer {
  flex: 0 0 auto;
  margin-top: clamp(0.08rem, 0.35vh, 0.22rem);
  padding-top: clamp(0.08rem, 0.35vh, 0.2rem);
  border-top: 1px solid var(--dispatch-border);
  background: color-mix(in srgb, var(--dispatch-surface-soft) 86%, transparent);
  position: relative;
  z-index: 2;
}

.booking-form__footer > .text-danger.small:empty,
.booking-field__hint--actions:empty {
  display: none;
}

.booking-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: clamp(1.76rem, 4vh, 2.25rem);
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(135deg, #121212, #262626);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(208, 120, 248, 0.28);
}

.booking-submit:hover,
.booking-submit:focus {
  color: #fff;
  background: linear-gradient(135deg, #151515, #2b2b2b);
}

.booking-lead-box {
  display: grid;
  align-content: center;
  gap: 0.15rem;
  min-height: clamp(1.76rem, 4vh, 2.25rem);
  padding: clamp(0.16rem, 0.45vh, 0.28rem) clamp(0.32rem, 0.7vh, 0.45rem);
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--dispatch-surface) 94%, transparent);
}

@media (max-height: 960px) {
  .booking-panel {
    padding: 0.78rem;
  }

  .booking-form__grid {
    gap: 0.24rem;
  }

  .booking-field .form-label {
    font-size: 0.68rem;
  }

  .booking-input-wrap {
    padding: 0 0.55rem;
  }

  .booking-input {
    min-height: 1.62rem;
    font-size: 0.74rem;
  }

  .booking-actions {
    grid-template-columns: 48px minmax(0, 1fr) 94px;
    gap: 0.32rem;
  }

  .booking-form__footer {
    margin-top: 0.22rem;
    padding-top: 0.22rem;
  }

  .booking-submit,
  .booking-lead-box {
    min-height: 1.9rem;
  }
}

.booking-lead-box label {
  color: var(--dispatch-muted);
  font-size: clamp(0.58rem, 1.05vh, 0.7rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.booking-lead-box__input {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.booking-lead-box__input input {
  width: 3rem;
  border: 0;
  background: transparent;
  color: var(--dispatch-ink);
  font-size: clamp(0.7rem, 1.35vh, 0.88rem);
  font-weight: 900;
  outline: none;
}

.booking-lead-box__input span {
  color: var(--dispatch-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.map-panel {
  display: flex;
  flex-direction: column;
  padding: 0.58rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.map-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0.35rem 1rem;
}

.map-panel__label {
  margin-bottom: 0.2rem;
  color: rgba(104, 40, 128, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-panel__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.map-panel__badge {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.1);
  color: #1f1f1f;
  font-size: 0.85rem;
  font-weight: 700;
}

.map-panel__frame {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 0;
  border-radius: 1.2rem;
  border: 1px solid rgba(17, 17, 17, 0.18);
  box-shadow: 0 18px 45px rgba(104, 40, 128, 0.12);
}

.map-panel__frame iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

:root[data-theme="dark"] .map-panel {
  background:
    radial-gradient(circle at top left, rgba(225, 225, 225, 0.14), transparent 42%),
    linear-gradient(180deg, #1d0e25 0%, #14071c 100%);
  border-color: rgba(225, 225, 225, 0.22);
}

:root[data-theme="dark"] .map-panel__frame {
  border-color: rgba(225, 225, 225, 0.38);
  background: #1d0e25;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 45px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .dispatch-map,
:root[data-theme="dark"] .dispatch-map__fallback {
  background: #1d0e25;
}

.dispatch-map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.dispatch-map__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 260px;
  padding: 1.5rem;
  color: rgba(104, 40, 128, 0.6);
  text-align: center;
  font-weight: 600;
}

.coverage-legend {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.45rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(104, 40, 128, 0.14);
}

.map-overlay-toggle {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(20, 7, 28, 0.54);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 32px rgba(20, 7, 28, 0.22);
}

.map-overlay-toggle__button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.42rem 0.88rem;
}

.map-overlay-toggle__button--active {
  background: #ffffff;
  color: var(--dispatch-navy);
  box-shadow: 0 8px 22px rgba(20, 7, 28, 0.18);
}

.map-utility-toggle {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(42, 15, 54, 0.56);
  backdrop-filter: blur(12px);
}

.map-utility-toggle__button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.42rem 0.88rem;
}

.map-utility-toggle__button--active {
  background: #ffffff;
  color: var(--dispatch-navy);
  box-shadow: 0 8px 22px rgba(20, 7, 28, 0.18);
}

.zones-overlay {
  position: absolute;
  top: 4.05rem;
  left: 0.75rem;
  z-index: 3;
  width: min(24rem, calc(100% - 1.5rem));
  max-height: calc(100% - 5.6rem);
}

.map-panel__frame--zones .zones-overlay {
  top: 0;
  left: 0;
  width: 100%;
  max-height: 100%;
  padding: 0.75rem 0.75rem 4.25rem;
}

.map-panel__frame--zones .map-utility-toggle {
  display: none;
}

.zones-overlay__card {
  display: grid;
  gap: 0.45rem;
  max-height: inherit;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 46px rgba(104, 40, 128, 0.24);
}

.map-panel__frame--zones .zones-overlay__card {
  height: 100%;
  max-height: 100%;
}

.zones-overlay__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.zones-overlay__header h3 {
  margin: 0.05rem 0 0;
  color: var(--dispatch-ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.zones-overlay__summary {
  color: var(--dispatch-muted);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zones-overlay__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.4rem;
  overflow-y: auto;
  padding-right: 0.12rem;
}

.zones-overlay__zone {
  display: grid;
  gap: 0.28rem;
  padding: 0.46rem 0.5rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 0.72rem;
  background: rgba(247, 242, 250, 0.92);
}

.zones-overlay__zone-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.zones-overlay__zone-header strong {
  color: var(--dispatch-ink);
  font-size: 0.76rem;
  font-weight: 950;
}

.zones-overlay__zone-header span {
  color: var(--dispatch-muted);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zones-overlay__driver-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--zone-driver-color, var(--dispatch-blue));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  flex: 0 0 auto;
}

.zones-overlay__order {
  display: grid;
  gap: 0.14rem;
}

.zones-overlay__order-row {
  display: grid;
  grid-template-columns: 0.95rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.28rem;
}

.zones-overlay__order-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.12);
  color: #1f1f1f;
  font-size: 0.53rem;
  font-weight: 900;
}

.zones-overlay__order-driver {
  color: var(--dispatch-ink);
  font-size: 0.66rem;
  font-weight: 850;
}

.zones-overlay__order-state {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  color: var(--dispatch-muted);
  font-size: 0.54rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.zones-overlay__empty {
  margin: 0;
  color: var(--dispatch-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.coverage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(104, 40, 128, 0.72);
  font-size: 0.74rem;
  font-weight: 850;
}

.coverage-legend__swatch {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 0.22rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.coverage-legend__swatch--empty {
  background: #159947;
}

.coverage-legend__swatch--enroute {
  background: #d92828;
}

.coverage-legend__swatch--arrived {
  background: #7c3aed;
}

.coverage-legend__swatch--nearly {
  background: #f08a12;
}

.driver-map-info {
  position: fixed;
  top: 6rem;
  right: 1.25rem;
  z-index: 1080;
  width: min(420px, calc(100vw - 2.5rem));
  max-height: calc(100vh - 7.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.driver-map-info__card {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
  border: 1px solid rgba(104, 40, 128, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(104, 40, 128, 0.32);
  backdrop-filter: blur(10px);
}

.driver-map-info__card h3 {
  margin: 0;
  padding-right: 1.8rem;
  color: var(--dispatch-ink);
  font-size: 1.18rem;
  font-weight: 950;
}

.driver-map-info__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  color: rgba(104, 40, 128, 0.5);
  font-size: 1.45rem;
  line-height: 1;
}

.driver-map-info__phone {
  color: #1f1f1f;
  font-weight: 900;
  text-decoration: none;
}

.driver-map-info__section {
  display: grid;
  gap: 0.12rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(104, 40, 128, 0.08);
}

.driver-map-info__section strong {
  color: rgba(104, 40, 128, 0.58);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.driver-map-info__section span,
.driver-map-info__section small,
.driver-map-info__muted {
  color: rgba(104, 40, 128, 0.72);
  font-size: 0.82rem;
  font-weight: 750;
}

.driver-map-info__section small {
  display: block;
  font-size: 0.76rem;
}

.driver-map-info__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.driver-map-info__chips span {
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  background: rgba(208, 120, 248, 0.1);
  color: #1f1f1f;
  font-size: 0.72rem;
  font-weight: 900;
}

.driver-map-info__job {
  padding: 0.55rem;
  border: 1px solid rgba(208, 120, 248, 0.12);
  border-radius: 0.8rem;
  background: rgba(208, 120, 248, 0.06);
}

.driver-map-info__actions {
  display: flex;
  justify-content: flex-start;
}

.driver-map-info__messages {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(104, 40, 128, 0.08);
}

.driver-map-info__messages > strong {
  color: rgba(104, 40, 128, 0.58);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.driver-map-info__message-thread {
  display: grid;
  gap: 0.35rem;
  max-height: 9rem;
  overflow-y: auto;
  padding: 0.45rem;
  border-radius: 0.75rem;
  background: rgba(104, 40, 128, 0.045);
}

.driver-map-info__message {
  padding: 0.42rem 0.55rem;
  border-radius: 0.7rem;
  background: #fff;
}

.driver-map-info__message--driver {
  background: rgba(208, 120, 248, 0.12);
}

.driver-map-info__message span,
.driver-message span {
  display: block;
  color: rgba(104, 40, 128, 0.55);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.driver-map-info__message p,
.driver-message p {
  margin: 0;
  color: rgba(104, 40, 128, 0.78);
  font-size: 0.82rem;
  font-weight: 720;
}

@media (max-width: 767.98px) {
  .driver-map-info {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: calc(100vh - 2rem);
  }
}

.major-event-info {
  display: grid;
  gap: 0.25rem;
  max-width: 260px;
  color: #2c1735;
}

.major-event-info strong {
  color: #7f1d1d;
  font-size: 1rem;
}

.major-event-info span,
.major-event-info small,
.major-event-info p {
  margin: 0;
  color: rgba(104, 40, 128, 0.72);
  font-weight: 700;
}

.major-event-info a {
  color: #b91c1c;
  font-weight: 900;
}

.dispatch-info-panel {
  display: flex;
  flex-direction: column;
  padding: 0.58rem;
  background: linear-gradient(180deg, var(--dispatch-surface) 0%, var(--dispatch-surface-soft) 100%);
}

.dispatch-info-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.15rem 0.2rem 0.45rem;
}

.dispatch-info-panel__fare {
  color: #1f1f1f;
  font-size: 1.22rem;
  font-weight: 950;
  line-height: 1.05;
}

.dispatch-info-panel__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
}

.dispatch-info-panel__tariff {
  margin-top: auto;
  padding: 0.08rem 0.22rem 0.18rem;
}

.dispatch-info-panel__tariff-line {
  height: 1px;
  margin-bottom: 0.48rem;
  background: var(--dispatch-border);
}

.dispatch-info-panel__tariff-name {
  color: #1f1f1f;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 0.18rem;
}

.dispatch-info-panel__note {
  padding: 0.85rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--dispatch-surface-soft) 72%, transparent);
  color: var(--dispatch-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.eta-list {
  display: grid;
  gap: 0.32rem;
}

.eta-list__header,
.eta-list__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.8fr) minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 0.5rem;
}

.eta-list__header {
  padding: 0 0.2rem;
  color: var(--dispatch-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eta-list__header span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eta-list__row {
  padding: 0.42rem 0.56rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 0.85rem;
  background: var(--dispatch-surface);
}

.eta-list__row--empty {
  border-color: color-mix(in srgb, #159947 35%, var(--dispatch-border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #159947 18%, transparent);
}

.eta-list__row--enroute {
  border-color: color-mix(in srgb, #d92828 35%, var(--dispatch-border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #d92828 18%, transparent);
}

.eta-list__row--arrived {
  border-color: color-mix(in srgb, #7c3aed 35%, var(--dispatch-border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #7c3aed 18%, transparent);
}

.eta-list__row--nearly-destination {
  border-color: color-mix(in srgb, #f08a12 35%, var(--dispatch-border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #f08a12 18%, transparent);
}

.eta-list__cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eta-list__meta {
  display: block;
  color: var(--dispatch-muted);
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.2;
}

.eta-list__cell--status,
.eta-list__cell--driver,
.eta-list__cell--zone {
  color: var(--dispatch-muted);
  font-weight: 800;
}

.eta-list__cell--status {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.eta-list__cell--status::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  flex: 0 0 0.62rem;
  border-radius: 999px;
  background: var(--dispatch-border-strong);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.eta-list__row--empty .eta-list__cell--status::before {
  background: #159947;
}

.eta-list__row--enroute .eta-list__cell--status::before {
  background: #d92828;
}

.eta-list__row--arrived .eta-list__cell--status::before {
  background: #7c3aed;
}

.eta-list__row--nearly-destination .eta-list__cell--status::before {
  background: #f08a12;
}

.eta-list__cell--eta {
  color: var(--dispatch-ink);
  font-size: 0.78rem;
  text-align: right;
}

.eta-list-empty {
  padding: 0.5rem;
  border: 1px dashed var(--dispatch-border);
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--dispatch-surface-soft) 62%, transparent);
  color: var(--dispatch-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.jobs-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.jobs-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--dispatch-border);
  font-size: 1.05rem;
  font-weight: 800;
}

.jobs-panel__table-wrap {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  max-height: none;
}

.jobs-panel__empty {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 1.5rem;
  color: rgba(104, 40, 128, 0.62);
  font-weight: 600;
}

.jobs-panel__count {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.06);
  color: rgba(104, 40, 128, 0.72);
  font-size: 0.85rem;
  font-weight: 700;
}

.dispatch-shell > main > .row.mt-4 {
  min-height: 0;
  margin-top: 0 !important;
}

.dispatch-shell > main > .row.mt-4 > .col-12 {
  display: flex;
  min-height: 0;
}

.jobs-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.jobs-filter-tabs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.36rem 0.75rem 0.36rem 0.45rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.04);
  color: rgba(104, 40, 128, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.jobs-filter-tabs__item:hover,
.jobs-filter-tabs__item:focus {
  color: var(--dispatch-ink);
  background: rgba(17, 17, 17, 0.09);
  text-decoration: none;
}

.jobs-filter-tabs__item strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: rgba(104, 40, 128, 0.72);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

.jobs-filter-tabs__item--active {
  border-color: rgba(17, 17, 17, 0.35);
  background: var(--dispatch-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.22);
}

.jobs-filter-tabs__item--active:hover,
.jobs-filter-tabs__item--active:focus {
  color: #fff;
  background: #242424;
}

.jobs-filter-tabs__item--active strong {
  color: #1f1f1f;
}

:root[data-theme="dark"] .jobs-filter-tabs__item {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

:root[data-theme="dark"] .jobs-filter-tabs__item:hover,
:root[data-theme="dark"] .jobs-filter-tabs__item:focus {
  color: #fff;
  background: rgba(225, 225, 225, 0.18);
}

:root[data-theme="dark"] .jobs-filter-tabs__item strong {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

:root[data-theme="dark"] .jobs-filter-tabs__item--active {
  background: var(--dispatch-blue);
  color: #fff;
}

:root[data-theme="dark"] .jobs-filter-tabs__item--active strong {
  background: rgba(255, 255, 255, 0.95);
  color: #1f1f1f;
}

.jobs-panel .table {
  margin-bottom: 0;
}

:root[data-theme="dark"] .jobs-panel .table {
  --bs-table-bg: transparent;
  --bs-table-color: rgba(255, 247, 255, 0.74);
  --bs-table-hover-bg: rgba(225, 225, 225, 0.16);
  --bs-table-hover-color: #ffffff;
  --bs-table-striped-color: rgba(255, 247, 255, 0.74);
  color: rgba(255, 247, 255, 0.74);
}

.job-row {
  cursor: context-menu;
}

.job-row.job-row--active > * {
  background: rgba(17, 17, 17, 0.1) !important;
}

:root[data-theme="dark"] .job-row > * {
  color: rgba(255, 247, 255, 0.74) !important;
  transition: background-color 0.14s ease, color 0.14s ease;
}

:root[data-theme="dark"] .job-row .text-muted {
  color: rgba(255, 247, 255, 0.58) !important;
}

:root[data-theme="dark"] .job-row:hover > *,
:root[data-theme="dark"] .job-row:focus-within > *,
:root[data-theme="dark"] .job-row.job-row--active > * {
  background: rgba(225, 225, 225, 0.18) !important;
  color: #ffffff !important;
}

:root[data-theme="dark"] .job-row:hover .text-muted,
:root[data-theme="dark"] .job-row:focus-within .text-muted,
:root[data-theme="dark"] .job-row.job-row--active .text-muted {
  color: rgba(255, 255, 255, 0.86) !important;
}

.jobs-panel .table thead th {
  border-bottom-width: 1px;
  color: rgba(104, 40, 128, 0.7);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

:root[data-theme="dark"] .jobs-panel .table thead th {
  background: var(--dispatch-surface);
  color: rgba(255, 247, 255, 0.72);
}

.jobs-panel .table > :not(caption) > * > * {
  padding: 0.31rem 0.78rem;
  font-size: 0.82rem;
  line-height: 1.08;
  vertical-align: middle;
}

.jobs-panel .btn-sm,
.jobs-panel .badge {
  font-size: 0.75rem;
}

.job-context-menu {
  position: fixed;
  z-index: 1055;
  min-width: 220px;
  padding: 0.45rem;
  border: 1px solid rgba(104, 40, 128, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 50px rgba(104, 40, 128, 0.18);
  backdrop-filter: blur(12px);
}

.job-context-menu__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  color: var(--dispatch-ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
}

.job-context-menu__item:hover,
.job-context-menu__item:focus {
  background: rgba(17, 17, 17, 0.1);
  outline: none;
}

.job-context-menu__item--danger {
  color: #b42318;
}

.job-context-menu__item--danger:hover,
.job-context-menu__item--danger:focus {
  background: rgba(180, 35, 24, 0.08);
}

.job-context-menu__item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.job-context-menu__item:disabled:hover,
.job-context-menu__item:disabled:focus {
  background: transparent;
}

:root[data-theme="dark"] .job-context-menu {
  border-color: rgba(210, 210, 210, 0.16);
  background:
    radial-gradient(circle at top left, rgba(225, 225, 225, 0.14), transparent 46%),
    rgba(42, 15, 54, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .job-context-menu__item {
  color: rgba(255, 247, 255, 0.82);
}

:root[data-theme="dark"] .job-context-menu__item:hover,
:root[data-theme="dark"] .job-context-menu__item:focus {
  background: rgba(225, 225, 225, 0.18);
  color: #ffffff;
}

:root[data-theme="dark"] .job-context-menu__item--danger {
  color: #ffb4a8;
}

:root[data-theme="dark"] .job-context-menu__item--danger:hover,
:root[data-theme="dark"] .job-context-menu__item--danger:focus {
  background: rgba(255, 107, 107, 0.18);
  color: #ffffff;
}

:root[data-theme="dark"] .job-context-menu__item:disabled,
:root[data-theme="dark"] .job-context-menu__item:disabled:hover,
:root[data-theme="dark"] .job-context-menu__item:disabled:focus {
  color: rgba(255, 247, 255, 0.38);
  background: transparent;
}

.job-assign-dialog {
  width: min(520px, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  background: transparent;
  box-shadow: 0 28px 70px rgba(104, 40, 128, 0.28);
}

.job-assign-dialog::backdrop {
  background: rgba(20, 7, 28, 0.38);
  backdrop-filter: blur(5px);
}

.job-assign-dialog__card {
  padding: 1.25rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 1.25rem;
  background: #fff;
}

.job-assign-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.job-assign-dialog__header h2 {
  margin: 0;
  color: var(--dispatch-ink);
  font-size: 1.25rem;
  font-weight: 950;
}

.job-assign-dialog__close {
  border: 0;
  background: transparent;
  color: rgba(104, 40, 128, 0.48);
  font-size: 1.55rem;
  line-height: 1;
}

.job-assign-dialog__ref {
  margin: 0 0 0.85rem;
  color: rgba(104, 40, 128, 0.68);
  font-weight: 800;
}

.job-assign-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1rem;
}

.job-details-card {
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.job-details-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.job-details-list div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(104, 40, 128, 0.08);
}

.job-details-list dt {
  color: rgba(104, 40, 128, 0.56);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.job-details-list dd {
  margin: 0;
  color: var(--dispatch-ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.job-logs-dialog {
  width: min(760px, calc(100vw - 2rem));
}

.job-logs-list {
  display: grid;
  gap: 0.65rem;
}

.job-log-item {
  display: grid;
  grid-template-columns: 8.8rem 1fr;
  gap: 0.8rem;
  padding: 0.75rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 0.9rem;
  background: rgba(241, 247, 243, 0.86);
}

.job-log-item__time {
  color: rgba(104, 40, 128, 0.56);
  font-size: 0.78rem;
  font-weight: 900;
}

.job-log-item__message {
  margin: 0;
  color: var(--dispatch-ink);
  font-weight: 800;
}

.job-log-item__meta {
  margin-top: 0.2rem;
  color: rgba(104, 40, 128, 0.58);
  font-size: 0.78rem;
  font-weight: 750;
}

:root[data-theme="dark"] .job-assign-dialog__card {
  border-color: rgba(255, 255, 255, 0.12);
  background: #1d0e25;
}

:root[data-theme="dark"] .job-assign-dialog__header h2,
:root[data-theme="dark"] .job-details-list dd {
  color: #f7fbff;
}

:root[data-theme="dark"] .job-assign-dialog__ref,
:root[data-theme="dark"] .job-details-list dt {
  color: rgba(255, 247, 255, 0.68);
}

:root[data-theme="dark"] .job-details-list div {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .job-log-item {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .job-log-item__message {
  color: #f7fbff;
}

:root[data-theme="dark"] .job-log-item__time,
:root[data-theme="dark"] .job-log-item__meta {
  color: rgba(255, 247, 255, 0.68);
}

.admin-panel__body {
  padding: 1.5rem;
}

.admin-panel__hint {
  margin: 1rem 0 0;
  color: rgba(104, 40, 128, 0.64);
}

.phone-config-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.phone-overview-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  gap: 0.2rem;
}

.phone-overview-card strong {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--dispatch-ink);
}

.phone-overview-card small {
  color: rgba(104, 40, 128, 0.68);
}

.phone-overview-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(104, 40, 128, 0.68);
}

.phone-setup-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.phone-setup-list > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.phone-setup-list__step {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(104, 40, 128, 0.16), rgba(42, 111, 151, 0.18));
  color: var(--dispatch-ink);
  font-weight: 800;
}

.phone-field-help {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(104, 40, 128, 0.7);
}

.phone-choice-grid {
  display: grid;
  gap: 0.75rem;
}

.phone-choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.phone-choice-card input {
  margin-top: 0.2rem;
}

.phone-choice-card strong,
.phone-route-card__number {
  color: var(--dispatch-ink);
}

.phone-choice-card small,
.phone-route-card small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(104, 40, 128, 0.68);
}

.phone-route-target[hidden] {
  display: none !important;
}

.phone-route-card-list {
  display: grid;
  gap: 0.85rem;
}

.phone-route-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
}

.phone-route-card__main {
  display: grid;
  gap: 0.18rem;
}

.phone-route-card__number {
  font-size: 1.05rem;
  font-weight: 800;
}

.phone-route-card__meta,
.phone-route-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

:root[data-theme="dark"] .phone-overview-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .phone-choice-card,
:root[data-theme="dark"] .phone-route-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] .phone-overview-card strong {
  color: #f7fbff;
}

:root[data-theme="dark"] .phone-choice-card strong,
:root[data-theme="dark"] .phone-route-card__number {
  color: #f7fbff;
}

:root[data-theme="dark"] .phone-overview-card small,
:root[data-theme="dark"] .phone-choice-card small,
:root[data-theme="dark"] .phone-route-card small,
:root[data-theme="dark"] .phone-overview-card__label,
:root[data-theme="dark"] .phone-field-help {
  color: rgba(255, 247, 255, 0.72);
}

.admin-panel .booking-actions {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 0.5rem;
}

.admin-panel .booking-actions > .btn,
.admin-panel .booking-actions > button,
.admin-panel .booking-actions > form,
.admin-panel .booking-actions .booking-submit {
  width: 100%;
}

.admin-shell {
  display: grid;
  gap: 1rem;
}

.admin-shell--hide-validation .validation-summary-valid,
.admin-shell--hide-validation .validation-summary-errors,
.admin-shell--hide-validation [data-valmsg-for] {
  display: none !important;
}

.admin-report-row {
  cursor: pointer;
}

.admin-empty-state,
.admin-report-summary {
  padding: 1rem;
  color: rgba(104, 40, 128, 0.66);
}

.admin-report-summary {
  display: grid;
  gap: 0.35rem;
  border-bottom: 1px solid var(--dispatch-border);
}

.admin-booking-price-cell {
  min-width: 8rem;
}

.admin-bookings-filter-form {
  display: grid;
  gap: 0.75rem;
}

.admin-bookings-filter-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-bookings-filter-field--date {
  max-width: 11rem;
}

.admin-bookings-filter-input {
  max-width: 100%;
}

.admin-bookings-filter-input--date {
  max-width: 11rem;
}

@media (max-width: 1199.98px) {
  .phone-config-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-bookings-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .admin-bookings-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-bookings-filter-field--date,
  .admin-bookings-filter-input--date {
    max-width: 100%;
  }
}

.admin-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.35rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 14px 36px rgba(104, 40, 128, 0.06);
}

.admin-tabs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
  color: rgba(104, 40, 128, 0.72);
  font-weight: 800;
  text-decoration: none;
}

.admin-tabs__item:hover,
.admin-tabs__item:focus {
  color: var(--dispatch-ink);
  background: rgba(17, 17, 17, 0.08);
  text-decoration: none;
}

.admin-tabs__item--active {
  background: var(--dispatch-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.22);
}

.admin-tabs__item--active:hover,
.admin-tabs__item--active:focus {
  color: #fff;
  background: #242424;
}

.admin-subtabs {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: -0.35rem;
  padding: 0.28rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(104, 40, 128, 0.05);
}

.admin-subtabs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.7rem;
  color: rgba(104, 40, 128, 0.68);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.admin-subtabs__item:hover,
.admin-subtabs__item:focus {
  color: var(--dispatch-ink);
  background: rgba(17, 17, 17, 0.08);
  text-decoration: none;
}

.admin-subtabs__item--active {
  background: rgba(104, 40, 128, 0.92);
  color: #fff;
}

.admin-subtabs__item--active:hover,
.admin-subtabs__item--active:focus {
  color: #fff;
  background: var(--dispatch-navy);
}

:root[data-theme="dark"] body.admin-body {
  background:
    radial-gradient(circle at 12% 8%, rgba(208, 120, 248, 0.15), transparent 30rem),
    linear-gradient(180deg, #14071c 0%, var(--dispatch-page) 100%);
}

:root[data-theme="dark"] .admin-tabs,
:root[data-theme="dark"] .admin-subtabs {
  border-color: var(--dispatch-border);
  background: rgba(29, 14, 37, 0.92);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .admin-tabs__item,
:root[data-theme="dark"] .admin-subtabs__item {
  color: rgba(255, 247, 255, 0.74);
}

:root[data-theme="dark"] .admin-tabs__item:hover,
:root[data-theme="dark"] .admin-tabs__item:focus,
:root[data-theme="dark"] .admin-subtabs__item:hover,
:root[data-theme="dark"] .admin-subtabs__item:focus {
  background: rgba(255, 247, 255, 0.1);
  color: #ffffff;
}

:root[data-theme="dark"] .admin-tabs__item--active,
:root[data-theme="dark"] .admin-subtabs__item--active {
  background: linear-gradient(135deg, rgba(208, 120, 248, 0.96), rgba(104, 40, 128, 0.96));
  color: #14071c;
}

:root[data-theme="dark"] .admin-tabs__item--active:hover,
:root[data-theme="dark"] .admin-tabs__item--active:focus,
:root[data-theme="dark"] .admin-subtabs__item--active:hover,
:root[data-theme="dark"] .admin-subtabs__item--active:focus {
  background: #d078f8;
  color: #14071c;
}

:root[data-theme="dark"] .dispatch-panel,
:root[data-theme="dark"] .admin-panel {
  background:
    radial-gradient(circle at top left, rgba(208, 120, 248, 0.1), transparent 28rem),
    linear-gradient(160deg, var(--dispatch-surface), var(--dispatch-surface-soft));
  border-color: var(--dispatch-border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .jobs-panel__header,
:root[data-theme="dark"] .admin-panel__subheader {
  border-color: var(--dispatch-border);
  color: var(--dispatch-ink);
}

:root[data-theme="dark"] .admin-empty-state,
:root[data-theme="dark"] .admin-report-summary {
  color: var(--dispatch-muted);
}

:root[data-theme="dark"] .admin-check,
:root[data-theme="dark"] .form-label {
  color: rgba(255, 247, 255, 0.84);
}

:root[data-theme="dark"] .admin-tick-pill span,
:root[data-theme="dark"] .tariff-band-pill,
:root[data-theme="dark"] .badge.bg-light,
:root[data-theme="dark"] .badge.text-dark {
  border-color: var(--dispatch-border);
  background: rgba(255, 247, 255, 0.1) !important;
  color: rgba(255, 247, 255, 0.86) !important;
}

:root[data-theme="dark"] .btn-outline-secondary {
  border-color: rgba(224, 196, 236, 0.34);
  color: rgba(255, 247, 255, 0.84);
}

:root[data-theme="dark"] .btn-outline-secondary:hover,
:root[data-theme="dark"] .btn-outline-secondary:focus {
  background: rgba(255, 247, 255, 0.12);
  color: #ffffff;
}

.admin-plain-input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(104, 40, 128, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.94);
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  font-weight: 800;
  color: rgba(82, 48, 96, 0.78);
}

.admin-tick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-tick-pill {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.admin-tick-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-tick-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(104, 40, 128, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: rgba(104, 40, 128, 0.82);
  font-weight: 800;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-tick-pill--active span {
  border-color: rgba(208, 120, 248, 0.32);
  background: rgba(208, 120, 248, 0.12);
  color: #2f2f2f;
  box-shadow: 0 0 0 1px rgba(208, 120, 248, 0.08);
}

.driver-app-qr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 1rem;
  background: rgba(17, 17, 17, 0.06);
}

.driver-app-qr strong,
.driver-app-qr a {
  display: block;
}

.driver-app-qr a {
  margin-top: 0.25rem;
  color: #1f1f1f;
  font-size: 0.82rem;
  font-weight: 800;
  word-break: break-all;
}

.driver-app-qr img {
  width: 132px;
  height: 132px;
  border-radius: 0.75rem;
  background: #fff;
}

.admin-list-header {
  align-items: stretch;
}

.admin-search {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  width: min(480px, 100%);
}

.admin-search .form-control {
  min-height: 2.3rem;
  border-radius: 0.75rem;
}

.admin-inline-form {
  display: inline-flex;
  margin-left: 0.3rem;
}

.admin-driver-row,
.admin-user-row,
.admin-vehicle-row,
.admin-account-row,
.tariff-row {
  cursor: context-menu;
}

.admin-driver-row--active,
.admin-user-row--active,
.admin-vehicle-row--active,
.admin-account-row--active,
.tariff-row--active {
  outline: 2px solid rgba(17, 17, 17, 0.32);
  outline-offset: -2px;
}

.admin-vehicle-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.api-permission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.api-permission-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.api-permission-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(104, 40, 128, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
}

.api-permission-option strong,
.api-permission-option small {
  display: block;
}

.api-permission-option small {
  color: #63746f;
  line-height: 1.25;
}

.api-client-edit {
  display: inline-block;
  position: relative;
}

.api-client-edit__form {
  position: absolute;
  right: 0;
  z-index: 30;
  width: min(520px, 80vw);
  margin-top: 0.4rem;
  padding: 1rem;
  border: 1px solid rgba(104, 40, 128, 0.16);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1rem 2.5rem rgba(42, 15, 54, 0.22);
  text-align: left;
}

.api-client-edit__form label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.api-explorer-body {
  background:
    radial-gradient(circle at 15% 10%, rgba(104, 40, 128, 0.16), transparent 32rem),
    linear-gradient(135deg, #f7f2fa 0%, #f8f0e8 42%, #f1eee9 100%);
  color: #2c1735;
  min-height: 100vh;
  overflow-y: auto;
}

.api-explorer-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2rem);
}

.api-explorer-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(104, 40, 128, 0.12);
  border-radius: 1.4rem;
  background: linear-gradient(135deg, #ffffff, #f7f2fa);
  box-shadow: 0 1.4rem 3rem rgba(104, 40, 128, 0.12);
}

.api-explorer-kicker {
  margin: 0 0 0.35rem;
  color: #682880;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.api-explorer-hero h1 {
  margin: 0;
  color: #2a0f36;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.api-explorer-hero p {
  max-width: 54rem;
  margin: 0.55rem 0 0;
  color: #6b5674;
}

.api-explorer-base {
  min-width: min(100%, 24rem);
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #2c1735;
  color: #f8f0e8;
}

.api-explorer-base span,
.api-explorer-auth-card h2,
.api-endpoint-card__head em {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.api-explorer-base strong {
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.api-explorer-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 23rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-height: 0;
}

.api-explorer-sidebar {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.api-explorer-auth-card,
.api-endpoint-card {
  border: 1px solid rgba(104, 40, 128, 0.12);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1rem 2.5rem rgba(104, 40, 128, 0.1);
}

.api-explorer-auth-card {
  padding: 1rem;
  min-width: 0;
}

.api-explorer-auth-card h2 {
  margin: 0 0 0.65rem;
  color: #2c1735;
}

.api-explorer-auth-card p,
.api-endpoint-card p {
  color: #6b5674;
}

.api-explorer-auth-card p,
.api-explorer-auth-card li,
.api-explorer-auth-card code,
.api-explorer-note {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.api-explorer-auth-card label,
.api-path-param,
.api-query-grid label,
.api-test-grid label {
  display: grid;
  gap: 0.35rem;
  color: #2c1735;
  font-size: 0.86rem;
  font-weight: 800;
}

.api-explorer-auth-card label + label {
  margin-top: 0.75rem;
}

.api-explorer-auth-card .form-control,
.api-endpoint-card .form-control {
  border-color: rgba(104, 40, 128, 0.16);
  border-radius: 0.75rem;
  background: #f7f2fa;
}

.api-explorer-note {
  margin: 0.8rem 0 0;
  font-size: 0.84rem;
}

.api-explorer-nav {
  display: grid;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(104, 40, 128, 0.12);
  background: #2c1735;
}

.api-nav-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.api-nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.api-nav-group summary::-webkit-details-marker {
  display: none;
}

.api-nav-group summary::before {
  content: "▸";
  color: #d078f8;
  transition: transform 0.18s ease;
}

.api-nav-group[open] summary::before {
  transform: rotate(90deg);
}

.api-nav-group summary span {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ff;
  font-size: 0.7rem;
}

.api-explorer-nav a {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.85rem 0.62rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #f4dcff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  text-decoration: none;
}

.api-explorer-nav a:hover,
.api-explorer-nav a:focus {
  background: rgba(208, 120, 248, 0.18);
  color: #ffffff;
}

.api-explorer-nav a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-nav-method {
  display: inline-grid;
  place-items: center;
  min-width: 3.25rem;
  padding: 0.2rem 0.35rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.api-nav-method--get {
  background: #303030;
}

.api-nav-method--post {
  background: #682880;
}

.api-nav-method--put {
  background: #6f4bd8;
}

.api-nav-method--delete {
  background: #b42318;
}

.api-explorer-content {
  display: grid;
  gap: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding-right: 0.35rem;
  scroll-padding-top: 1rem;
}

.api-endpoint-card {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.api-endpoint-card__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.api-endpoint-card__head h2 {
  margin: 0;
  color: #2c1735;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.api-endpoint-card__head em {
  color: rgba(82, 48, 96, 0.74);
  font-style: normal;
}

.api-method {
  display: inline-grid;
  place-items: center;
  min-width: 4.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
}

.api-method--post {
  background: #682880;
}

.api-method--get {
  background: #303030;
}

.api-test-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
}

.api-query-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.8rem 0;
}

.api-body,
.api-response,
.api-request-sample {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.api-request-sample {
  margin: 0.8rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(104, 40, 128, 0.18);
  border-radius: 0.85rem;
  background: #f7f2fa;
  color: #2c1735;
  white-space: pre-wrap;
}

.api-request-sample code,
.api-response code {
  display: block;
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.api-request-sample::before {
  content: "Example request";
  display: block;
  margin-bottom: 0.45rem;
  color: #682880;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-response {
  min-height: 12rem;
  max-height: 28rem;
  overflow: auto;
  margin: 0.8rem 0 0;
  padding: 1rem;
  border-radius: 0.9rem;
  background: #1d0e25;
  color: #fff7ff;
  white-space: pre-wrap;
}

.api-response::before {
  content: "Example response / live response";
  display: block;
  margin-bottom: 0.45rem;
  color: #d078f8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-try-button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #682880, #602078);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 0.75rem 1.4rem rgba(104, 40, 128, 0.28);
}

.api-try-button:hover,
.api-try-button:focus {
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .api-explorer-hero,
  .api-explorer-grid,
  .api-test-grid {
    grid-template-columns: 1fr;
  }

  .api-explorer-hero {
    display: grid;
  }

  .api-explorer-sidebar {
    position: static;
    max-height: none;
  }

  .api-explorer-content {
    max-height: none;
  }

  .api-query-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .api-query-grid {
    grid-template-columns: 1fr;
  }

  .api-explorer-shell {
    padding: 0.75rem;
  }
}

.admin-vehicle-type-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 0.75rem;
  background: rgba(244, 247, 251, 0.72);
  font-weight: 800;
  color: rgba(104, 40, 128, 0.76);
}

.admin-table-wrap {
  max-height: calc(100vh - 290px);
}

.admin-panel__subheader {
  margin: 1.1rem -1.5rem 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--dispatch-border);
  border-bottom: 1px solid var(--dispatch-border);
  box-shadow: none;
}

.admin-company-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 0.75rem;
  align-items: stretch;
}

.admin-company-card div {
  padding: 1rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: var(--dispatch-surface-soft);
  min-width: 0;
}

.admin-company-card span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--dispatch-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-company-card strong {
  color: var(--dispatch-ink);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-company-card img {
  width: 132px;
  height: 132px;
  border-radius: 1rem;
  border: 1px solid var(--dispatch-border);
  background: var(--dispatch-surface);
  padding: 0.45rem;
}

.admin-company-card--download {
  grid-template-columns: minmax(0, 1.55fr) 132px;
}

.admin-company-card--setup {
  grid-template-columns: minmax(0, 1.7fr) 132px;
}

.admin-company-card--pairing {
  grid-template-columns: minmax(0, 1fr) 132px;
}

.admin-sms-pairing-code {
  display: grid;
  gap: 0.15rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(104, 40, 128, 0.35);
  border-radius: 0.75rem;
  background: rgba(104, 40, 128, 0.1);
}

.admin-sms-pairing-code span {
  color: var(--dispatch-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-sms-pairing-code strong {
  color: var(--dispatch-ink);
  font-family: "Courier New", monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 0.18em;
}

.admin-tariff-page {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr);
  gap: 1.5rem;
  align-items: start;
}

.admin-tariff-form-panel {
  position: sticky;
  top: 1rem;
}

.admin-tariff-table-wrap {
  height: auto;
  min-height: 420px;
  max-height: calc(100vh - 260px);
}

.admin-day-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 1rem;
}

.admin-day-grid label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.2rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 0.65rem;
  background: rgba(244, 247, 251, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
}

.tariff-schedule-panel {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 1rem;
  background: rgba(244, 247, 251, 0.52);
}

.tariff-schedule-panel .admin-panel__hint {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.tariff-pricing-options {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 1rem;
  background: rgba(17, 17, 17, 0.06);
}

.tariff-pricing-options .admin-panel__hint {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.tariff-band-editor {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tariff-band-editor__head,
.tariff-band-editor__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.tariff-band-editor__head {
  color: rgba(104, 40, 128, 0.58);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tariff-band-pill {
  display: inline-flex;
  margin: 0.12rem;
  padding: 0.24rem 0.45rem;
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.06);
  color: rgba(104, 40, 128, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
}

.zone-page-shell {
  display: grid;
  gap: 1rem;
}

.zone-subnav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.28rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 0.95rem;
  background: var(--dispatch-surface);
  box-shadow: 0 12px 30px rgba(104, 40, 128, 0.06);
}

.zone-subnav__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.48rem 0.82rem;
  border-radius: 0.72rem;
  color: var(--dispatch-muted);
  font-weight: 900;
  text-decoration: none;
}

.zone-subnav__item:hover,
.zone-subnav__item:focus {
  background: rgba(104, 40, 128, 0.08);
  color: var(--dispatch-ink);
  text-decoration: none;
}

.zone-subnav__item--active {
  background: var(--dispatch-blue);
  color: #fff;
}

.zone-subnav__item--active:hover,
.zone-subnav__item--active:focus {
  background: var(--dispatch-navy);
  color: #fff;
}

.zone-settings-page {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.zone-settings-list {
  position: sticky;
  top: 1rem;
}

.zone-search {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.zone-search span {
  color: var(--dispatch-muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.zone-list-stack {
  display: grid;
  gap: 0.45rem;
  max-height: calc(100vh - 300px);
  overflow: auto;
  padding-right: 0.25rem;
}

.zone-list-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 0.9rem;
  background: var(--dispatch-surface-soft);
  color: var(--dispatch-ink);
  text-decoration: none;
}

.zone-list-item:hover,
.zone-list-item:focus {
  border-color: rgba(104, 40, 128, 0.28);
  color: var(--dispatch-ink);
  text-decoration: none;
}

.zone-list-item--active {
  border-color: rgba(104, 40, 128, 0.78);
  background: rgba(104, 40, 128, 0.92);
  color: #fff;
}

.zone-list-item--active:hover,
.zone-list-item--active:focus {
  color: #fff;
}

.zone-list-item span {
  font-weight: 900;
}

.zone-list-item small {
  color: rgba(104, 40, 128, 0.58);
  font-weight: 800;
}

.zone-list-item--active small {
  color: rgba(255, 255, 255, 0.72);
}

.zone-list-empty {
  margin-top: 0.7rem;
  padding: 0.85rem;
  border: 1px dashed var(--dispatch-border);
  border-radius: 0.8rem;
  color: var(--dispatch-muted);
  font-weight: 800;
  text-align: center;
}

.zone-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.zone-feature-card {
  display: grid;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(104, 40, 128, 0.1);
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(244, 247, 251, 0.96), rgba(255, 255, 255, 0.72));
}

.zone-feature-card span {
  color: var(--dispatch-muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.zone-feature-card strong {
  color: var(--dispatch-ink);
  font-size: 1rem;
}

.zone-feature-card p {
  margin: 0;
  color: var(--dispatch-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.zone-map-placeholder {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 8rem;
  border: 1px dashed rgba(104, 40, 128, 0.26);
  border-radius: 0.85rem;
  background:
    linear-gradient(90deg, rgba(104, 40, 128, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(104, 40, 128, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

.zone-map-placeholder i {
  color: rgba(104, 40, 128, 0.62);
  font-size: 1.6rem;
}

.zone-map-placeholder--large {
  min-height: 18rem;
  padding: 1.2rem;
  text-align: center;
}

.zone-map-placeholder--large small {
  max-width: 34rem;
  color: var(--dispatch-muted);
  font-weight: 800;
}

.zone-map-canvas {
  position: relative;
  min-height: min(68vh, 38rem);
  overflow: hidden;
  border: 1px solid rgba(104, 40, 128, 0.14);
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at top left, rgba(208, 120, 248, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 247, 255, 0.72), rgba(255, 255, 255, 0.94));
}

.zone-google-map,
.zone-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.zone-map-svg {
  background:
    linear-gradient(90deg, rgba(104, 40, 128, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(104, 40, 128, 0.06) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 247, 255, 0.72), rgba(255, 255, 255, 0.94));
  background-size: 24px 24px, 24px 24px, auto;
}

.zone-map-path {
  fill: color-mix(in srgb, var(--zone-color) 28%, transparent);
  stroke: var(--zone-color);
  stroke-width: 2.2;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
}

.zone-map-path:hover,
.zone-map-path:focus,
.zone-map-path--selected {
  fill: color-mix(in srgb, var(--zone-color) 42%, transparent);
  stroke-width: 4;
  outline: none;
}

.zone-map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  color: var(--dispatch-muted);
}

.zone-map-empty i {
  color: var(--dispatch-blue);
  font-size: 2rem;
}

.zone-map-empty span {
  color: var(--dispatch-ink);
  font-weight: 950;
}

.zone-map-empty small {
  max-width: 28rem;
  font-weight: 800;
}

.zone-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 8.5rem;
  overflow: auto;
  margin-top: 0.8rem;
}

.zone-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem 0.55rem;
  border: 1px solid rgba(104, 40, 128, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(104, 40, 128, 0.82);
  font-size: 0.76rem;
  font-weight: 850;
}

.zone-map-legend i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.zone-map-editor-card {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  display: grid;
  gap: 0.65rem;
  width: min(31rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(104, 40, 128, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(104, 40, 128, 0.22);
  backdrop-filter: blur(16px);
}

.zone-map-editor-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.zone-map-editor-card__header > div {
  display: grid;
  gap: 0.12rem;
}

.zone-map-editor-card__header strong {
  color: var(--dispatch-ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.zone-map-editor-card__header small {
  color: var(--dispatch-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.zone-map-editor-card__close {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(104, 40, 128, 0.14);
  border-radius: 999px;
  background: rgba(244, 247, 251, 0.82);
  color: var(--dispatch-ink);
}

.zone-map-editor-card__close:hover,
.zone-map-editor-card__close:focus {
  background: rgba(208, 120, 248, 0.14);
  outline: none;
}

.zone-selected-summary {
  padding: 1rem;
  border: 1px solid rgba(104, 40, 128, 0.1);
  border-radius: 1rem;
  background: rgba(244, 247, 251, 0.66);
}

.zone-selected-summary h2 {
  margin: 0.15rem 0 0.45rem;
  color: var(--dispatch-ink);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
}

.zone-selected-summary p {
  margin: 0 0 0.7rem;
  color: var(--dispatch-muted);
  font-weight: 800;
}

.zone-rule-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.zone-rule-metric-grid > div {
  display: grid;
  gap: 0.18rem;
  padding: 0.8rem;
  border: 1px solid rgba(104, 40, 128, 0.1);
  border-radius: 0.9rem;
  background: var(--dispatch-surface-soft);
}

.zone-rule-metric-grid span,
.zone-backup-summary-box span {
  color: var(--dispatch-muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.zone-rule-metric-grid strong {
  color: var(--dispatch-ink);
  font-size: 1.15rem;
  font-weight: 950;
}

.zone-rule-metric-grid small,
.zone-backup-summary-box small {
  color: var(--dispatch-muted);
  font-weight: 750;
}

.zone-backup-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}

.zone-backup-summary-box {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 0.75rem;
  border: 1px solid rgba(104, 40, 128, 0.12);
  border-radius: 0.95rem;
  background: rgba(244, 247, 251, 0.78);
}

.zone-backup-summary-box strong {
  display: inline-flex;
  width: fit-content;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.08);
  color: rgba(104, 40, 128, 0.82);
  font-size: 0.78rem;
}

.zone-backup-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.zone-backup-summary span {
  display: inline-flex;
  padding: 0.32rem 0.56rem;
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.08);
  color: rgba(104, 40, 128, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
}

.zone-context-menu {
  position: fixed;
  z-index: 1200;
  min-width: 9.5rem;
  padding: 0.35rem;
  border: 1px solid rgba(104, 40, 128, 0.16);
  border-radius: 0.75rem;
  background: var(--dispatch-surface);
  box-shadow: 0 18px 45px rgba(104, 40, 128, 0.18);
}

.zone-context-menu button {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--dispatch-ink);
  font-weight: 900;
  text-align: left;
}

.zone-context-menu button:hover,
.zone-context-menu button:focus {
  background: rgba(104, 40, 128, 0.08);
}

.zone-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.zone-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.44);
  backdrop-filter: blur(4px);
}

.zone-editor-overlay .admin-panel {
  position: relative;
  width: min(820px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.zone-backup-editor {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.zone-backup-box {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 12rem;
  padding: 0.8rem;
  border: 1px solid rgba(104, 40, 128, 0.12);
  border-radius: 1rem;
  background: rgba(244, 247, 251, 0.78);
}

.zone-backup-box span {
  display: block;
  color: var(--dispatch-ink);
  font-weight: 900;
}

.zone-backup-box small {
  display: block;
  color: var(--dispatch-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.zone-backup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-height: 2rem;
}

.zone-backup-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.42rem;
  border: 1px solid rgba(104, 40, 128, 0.12);
  border-radius: 999px;
  background: #fff;
  color: rgba(104, 40, 128, 0.82);
  font-size: 0.74rem;
  font-weight: 850;
}

.zone-backup-tag button {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.12);
  color: rgba(104, 40, 128, 0.9);
  font-size: 0.72rem;
  line-height: 1;
}

.zone-map-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.zone-boundary-textarea {
  min-height: 14rem;
  font-family: Consolas, "Liberation Mono", monospace;
  line-height: 1.45;
  resize: vertical;
}

.zone-boundary-textarea--compact {
  min-height: 10rem;
}

.company-zone-list {
  display: grid;
  gap: 0.7rem;
}

.company-zone-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid rgba(104, 40, 128, 0.12);
  border-radius: 1rem;
  background: rgba(244, 247, 251, 0.78);
}

.company-zone-card > div {
  display: grid;
  gap: 0.12rem;
}

.company-zone-card strong {
  color: var(--dispatch-ink);
}

.company-zone-card span {
  color: var(--dispatch-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.company-zone-card summary {
  cursor: pointer;
  color: var(--dispatch-ink);
  font-weight: 900;
}

.sms-text-dashboard {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  align-items: start;
}

.sms-text-editor-page,
.sms-text-editor-form {
  display: grid;
  gap: 0.8rem;
}

.sms-text-editor-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(104, 40, 128, 0.09);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top left, rgba(104, 40, 128, 0.12), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.84));
}

.sms-text-editor-hero h2 {
  margin: 0.08rem 0 0.16rem;
  color: var(--dispatch-ink);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 950;
}

.sms-text-editor-hero p {
  max-width: 52rem;
  margin: 0;
  color: var(--dispatch-muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.sms-text-editor-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  color: rgba(104, 40, 128, 0.82);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.sms-text-editor-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 0.5rem;
}

.sms-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 0.8rem;
  align-items: start;
}

.sms-builder-panel {
  overflow: hidden;
}

.sms-builder-panel .admin-panel__body,
.sms-builder-workspace .admin-panel__body,
.sms-builder-sidebar .admin-panel__body {
  padding: 0.85rem;
}

.sms-builder-group-list,
.sms-reference-grid {
  display: grid;
  gap: 0.65rem;
}

.sms-builder-token-group h3,
.sms-reference-section h3 {
  margin: 0 0 0.32rem;
  color: var(--dispatch-ink);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sms-builder-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.sms-builder-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 0;
  padding: 0.32rem 0.46rem;
  border: 1px solid rgba(104, 40, 128, 0.12);
  border-radius: 999px;
  background: var(--dispatch-surface-soft);
  color: var(--dispatch-ink);
  text-align: left;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.1;
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.sms-builder-chip:hover,
.sms-builder-chip:focus {
  border-color: rgba(104, 40, 128, 0.36);
  background: rgba(104, 40, 128, 0.07);
  transform: translateY(-1px);
  outline: none;
}

.sms-builder-chip span {
  font-weight: 950;
  white-space: nowrap;
}

.sms-builder-chip code {
  width: fit-content;
  padding: 0.08rem 0.28rem;
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.1);
  color: rgba(104, 40, 128, 0.82);
  font-size: 0.68rem;
}

.sms-builder-chip small {
  display: none;
}

.sms-builder-chip--added {
  border-color: rgba(208, 120, 248, 0.62);
  background: rgba(208, 120, 248, 0.16);
  transform: translateY(-1px) scale(1.02);
}

.sms-message-preview {
  min-height: 7.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(104, 40, 128, 0.13);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--dispatch-ink);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.55;
}

.sms-message-preview:empty::before {
  content: attr(data-empty-text);
  color: var(--dispatch-muted);
}

.sms-token-box {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0.08rem;
  padding: 0.16rem 0.45rem;
  border: 1px solid rgba(104, 40, 128, 0.16);
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.08);
  color: rgba(104, 40, 128, 0.86);
  font-size: 0.78em;
  font-weight: 900;
}

.sms-token-box--condition {
  background: rgba(245, 158, 11, 0.12);
  color: rgba(146, 64, 14, 0.96);
}

.sms-text-event-type {
  display: inline-flex;
  margin-bottom: 0.2rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.08);
  color: rgba(104, 40, 128, 0.74);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sms-reference-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.55rem;
}

.sms-reference-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid rgba(104, 40, 128, 0.1);
  border-radius: 0.85rem;
  background: rgba(244, 247, 251, 0.72);
}

.sms-reference-card span {
  color: var(--dispatch-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.sms-reference-card strong {
  color: var(--dispatch-ink);
}

.sms-reference-card small {
  color: var(--dispatch-muted);
  font-weight: 700;
}

.sms-reference-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

:root[data-theme="dark"] .zone-subnav,
:root[data-theme="dark"] .zone-feature-card,
:root[data-theme="dark"] .zone-selected-summary,
:root[data-theme="dark"] .zone-rule-metric-grid > div,
:root[data-theme="dark"] .zone-backup-summary-box,
:root[data-theme="dark"] .zone-backup-box,
:root[data-theme="dark"] .company-zone-card,
:root[data-theme="dark"] .sms-text-editor-hero,
:root[data-theme="dark"] .sms-builder-chip,
:root[data-theme="dark"] .sms-message-preview,
:root[data-theme="dark"] .sms-token-box,
:root[data-theme="dark"] .sms-reference-card {
  border-color: var(--dispatch-border);
  background:
    radial-gradient(circle at top left, rgba(208, 120, 248, 0.08), transparent 24rem),
    var(--dispatch-surface-soft);
  color: var(--dispatch-ink);
}

:root[data-theme="dark"] .zone-subnav__item {
  color: rgba(255, 247, 255, 0.76);
}

:root[data-theme="dark"] .zone-subnav__item:hover,
:root[data-theme="dark"] .zone-subnav__item:focus {
  background: rgba(255, 247, 255, 0.1);
  color: #ffffff;
}

:root[data-theme="dark"] .zone-subnav__item--active {
  background: var(--dispatch-blue);
  color: #14071c;
}

:root[data-theme="dark"] .zone-list-item:hover,
:root[data-theme="dark"] .zone-list-item:focus {
  border-color: rgba(208, 120, 248, 0.34);
  color: var(--dispatch-ink);
}

:root[data-theme="dark"] .zone-list-item small,
:root[data-theme="dark"] .zone-map-placeholder--large small,
:root[data-theme="dark"] .sms-builder-chip small,
:root[data-theme="dark"] .sms-reference-card span,
:root[data-theme="dark"] .sms-reference-card small {
  color: var(--dispatch-muted);
}

:root[data-theme="dark"] .zone-list-item--active {
  background: linear-gradient(135deg, rgba(208, 120, 248, 0.95), rgba(96, 32, 120, 0.95));
  color: #14071c;
}

:root[data-theme="dark"] .zone-list-item--active small {
  color: rgba(3, 17, 12, 0.72);
}

:root[data-theme="dark"] .zone-map-placeholder {
  border-color: rgba(224, 196, 236, 0.24);
  background:
    linear-gradient(90deg, rgba(224, 196, 236, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(224, 196, 236, 0.07) 1px, transparent 1px),
    rgba(6, 13, 10, 0.42);
  background-size: 18px 18px;
}

:root[data-theme="dark"] .zone-map-placeholder i,
:root[data-theme="dark"] .sms-text-editor-back {
  color: rgba(153, 244, 205, 0.86);
}

:root[data-theme="dark"] .zone-map-canvas,
:root[data-theme="dark"] .zone-map-svg {
  border-color: rgba(224, 196, 236, 0.18);
  background:
    linear-gradient(90deg, rgba(224, 196, 236, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(224, 196, 236, 0.07) 1px, transparent 1px),
    linear-gradient(145deg, rgba(6, 13, 10, 0.78), rgba(18, 32, 26, 0.94));
  background-size: 24px 24px, 24px 24px, auto;
}

:root[data-theme="dark"] .zone-map-legend span {
  border-color: var(--dispatch-border);
  background: rgba(255, 247, 255, 0.08);
  color: rgba(255, 247, 255, 0.86);
}

:root[data-theme="dark"] .zone-map-editor-card {
  border-color: var(--dispatch-border);
  background:
    radial-gradient(circle at top left, rgba(208, 120, 248, 0.14), transparent 46%),
    rgba(42, 15, 54, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .zone-map-editor-card__header strong {
  color: #ffffff;
}

:root[data-theme="dark"] .zone-map-editor-card__header small {
  color: rgba(255, 247, 255, 0.66);
}

:root[data-theme="dark"] .zone-map-editor-card__close {
  border-color: var(--dispatch-border);
  background: rgba(255, 247, 255, 0.1);
  color: rgba(255, 247, 255, 0.9);
}

:root[data-theme="dark"] .zone-map-editor-card__close:hover,
:root[data-theme="dark"] .zone-map-editor-card__close:focus {
  background: rgba(208, 120, 248, 0.18);
  color: #ffffff;
}

:root[data-theme="dark"] .zone-backup-summary span,
:root[data-theme="dark"] .zone-backup-summary-box strong,
:root[data-theme="dark"] .zone-backup-tag,
:root[data-theme="dark"] .sms-builder-chip code,
:root[data-theme="dark"] .sms-text-event-type {
  border-color: var(--dispatch-border);
  background: rgba(255, 247, 255, 0.1);
  color: rgba(255, 247, 255, 0.86);
}

:root[data-theme="dark"] .zone-backup-tag button {
  background: rgba(255, 247, 255, 0.16);
  color: #ffffff;
}

:root[data-theme="dark"] .sms-builder-chip:hover,
:root[data-theme="dark"] .sms-builder-chip:focus {
  border-color: rgba(208, 120, 248, 0.4);
  background: rgba(208, 120, 248, 0.12);
}

@media (max-width: 1180px) {
  .zone-settings-page,
  .sms-text-dashboard,
  .sms-builder-layout,
  .zone-map-layout {
    grid-template-columns: 1fr;
  }

  .zone-settings-list {
    position: static;
  }

  .zone-feature-grid,
  .zone-backup-editor,
  .zone-backup-grid,
  .zone-rule-metric-grid {
    grid-template-columns: 1fr;
  }

  .zone-map-editor-card {
    top: auto;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-height: min(27rem, calc(100% - 1.5rem));
  }
}

.login-screen {
  min-height: calc(100vh - 112px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-card {
  width: min(460px, 100%);
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.12), transparent 42%),
    linear-gradient(160deg, var(--dispatch-surface) 0%, var(--dispatch-surface-soft) 100%);
  border: 1px solid var(--dispatch-border);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px var(--dispatch-shadow);
}

.login-card__brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-card__logo-frame {
  margin-bottom: 1rem;
  min-width: min(23rem, 100%);
  min-height: 6.2rem;
  padding: 0.22rem 0.45rem;
}

.login-card__logo {
  max-width: 21rem;
  height: 5.45rem;
}

.login-card__brand h1 {
  margin-bottom: 0.5rem;
  color: var(--dispatch-ink);
  font-size: 1.7rem;
  font-weight: 800;
}

.login-card__brand p {
  margin: 0;
  color: var(--dispatch-muted);
  font-weight: 700;
}

.login-form__field .form-label {
  color: var(--dispatch-ink);
  font-weight: 850;
}

.login-form .form-control {
  min-height: 2.85rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--dispatch-surface) 92%, transparent);
  color: var(--dispatch-ink);
  font-weight: 750;
}

.login-form__field + .login-form__field {
  margin-top: 1rem;
}

.login-form__submit {
  margin-top: 1.2rem;
}

:root[data-theme="dark"] .login-screen {
  background:
    radial-gradient(circle at 20% 0%, rgba(225, 225, 225, 0.12), transparent 36%),
    var(--dispatch-page);
}

:root[data-theme="dark"] .login-card {
  background:
    radial-gradient(circle at top left, rgba(208, 120, 248, 0.18), transparent 42%),
    linear-gradient(160deg, rgba(42, 15, 54, 0.98), rgba(20, 7, 28, 0.98));
  border-color: rgba(208, 120, 248, 0.22);
}

:root[data-theme="dark"] .login-card__logo-frame {
  background: transparent;
  border-color: transparent;
}

:root[data-theme="dark"] .login-form .form-control {
  background: rgba(42, 18, 54, 0.94);
  border-color: rgba(208, 120, 248, 0.2);
  color: #fff;
}

:root[data-theme="dark"] .login-form .form-control:focus {
  border-color: var(--dispatch-blue);
  box-shadow: 0 0 0 0.2rem rgba(225, 225, 225, 0.18);
}

.driver-app-body {
  overflow: hidden;
  background: #14071c;
}

.driver-app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #14071c;
}

.driver-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #14071c;
}

.driver-map--heading-up {
  overflow: hidden;
}

.driver-map--heading-up .gm-style {
  backface-visibility: hidden;
  will-change: transform;
}

.driver-map-orientation {
  position: absolute;
  top: 5.45rem;
  right: 1rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #2c1735;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(104, 40, 128, 0.22);
  backdrop-filter: blur(10px);
}

.driver-map-orientation::before {
  content: "▲";
  position: absolute;
  top: 0.3rem;
  color: #d92828;
  font-size: 0.9rem;
  line-height: 1;
}

.driver-map-orientation span {
  display: block;
  margin-top: 0.5rem;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 950;
  line-height: 1;
}

.driver-map-orientation--active {
  background: rgba(104, 40, 128, 0.95);
  color: #fff;
}

.driver-map-orientation--active::before {
  color: #d078f8;
}

.driver-map-heat {
  position: absolute;
  top: 9.35rem;
  right: 1rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  color: #2c1735;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(104, 40, 128, 0.22);
  backdrop-filter: blur(10px);
}

.driver-map-heat--active {
  background: rgba(104, 40, 128, 0.95);
  color: #fff;
}

.driver-map-message-alert {
  position: absolute;
  top: 12.65rem;
  right: 1rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 4.4rem;
  height: 2.7rem;
  border: 1px solid rgba(255, 173, 108, 0.9);
  border-radius: 999px;
  padding: 0 0.85rem;
  background: rgba(255, 122, 24, 0.96);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 34px rgba(104, 40, 128, 0.24);
  backdrop-filter: blur(10px);
}

.driver-map-message-alert--active {
  animation: driverMessageAlertFlash 1s ease-in-out infinite;
}

.driver-map-message-alert__icon {
  font-size: 1rem;
  line-height: 1;
}

.driver-map-message-alert__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

@keyframes driverMessageAlertFlash {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 34px rgba(104, 40, 128, 0.24);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 0.45rem rgba(255, 173, 108, 0.26), 0 12px 34px rgba(104, 40, 128, 0.24);
  }
}
.driver-top-card {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(104, 40, 128, 0.16);
  pointer-events: none;
}

.driver-top-card__identity {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.driver-top-card__identity strong {
  overflow: hidden;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-app--onjob .driver-current-zone,
.driver-app--onjob .driver-menu-button,
.driver-app--onjob .driver-awake-dot {
  display: none;
}

.driver-app--onjob .driver-top-card__identity {
  display: none;
}

.driver-app--onjob .driver-top-card {
  display: none;
  right: auto;
  max-width: calc(100vw - 2rem);
}

.driver-top-card span {
  display: block;
  color: rgba(104, 40, 128, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.driver-top-card a {
  color: #1f1f1f;
  font-weight: 850;
  text-decoration: none;
}

.driver-top-card__actions {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: nowrap;
  pointer-events: auto;
}

.driver-current-zone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  max-width: min(44vw, 14rem);
  overflow: hidden;
  border: 1px solid rgba(104, 40, 128, 0.12);
  border-radius: 0.85rem;
  padding: 0.32rem 0.72rem;
  background: rgba(37, 16, 47, 0.94);
  color: #fff;
  font-size: clamp(0.96rem, 3.6vw, 1.12rem);
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-menu-button {
  display: inline-grid;
  place-items: center;
  gap: 0.22rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(104, 40, 128, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
}

.driver-menu-button span {
  display: block;
  width: 1.25rem;
  height: 0.16rem;
  border-radius: 999px;
  background: #2c1735;
}

.driver-zone-queue {
  position: absolute;
  top: calc(1rem + 4.2rem);
  left: 1rem;
  right: 1rem;
  z-index: 17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0.58rem 0.9rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(104, 40, 128, 0.12);
  pointer-events: none;
}

.driver-zone-queue span {
  color: rgba(104, 40, 128, 0.58);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.driver-zone-queue strong {
  color: #2c1735;
  font-size: 0.98rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: right;
}

.driver-app--onjob .driver-zone-queue {
  display: none !important;
}

.driver-menu-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  padding: 0.9rem;
  background: rgba(20, 7, 28, 0.36);
  backdrop-filter: blur(5px);
}

.driver-menu-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  width: min(360px, 100%);
  height: min(620px, calc(100vh - 1.8rem));
  max-height: min(620px, calc(100vh - 1.8rem));
  overflow-y: auto;
  padding: 1.15rem;
  border: 1px solid rgba(104, 40, 128, 0.1);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(17, 17, 17, 0.13), transparent 44%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(104, 40, 128, 0.26);
}

.driver-menu-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: rgba(104, 40, 128, 0.48);
  font-size: 1.6rem;
  line-height: 1;
}

.driver-menu-identity {
  display: grid;
  gap: 0.28rem;
  padding-right: 2rem;
}

.driver-menu-identity span {
  color: rgba(104, 40, 128, 0.55);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.driver-menu-identity strong {
  color: #2c1735;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.driver-menu-section {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(104, 40, 128, 0.08);
}

.driver-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 0.9rem;
  background: rgba(104, 40, 128, 0.04);
  color: #2c1735;
  font-weight: 900;
}

.driver-menu-toggle input {
  order: 2;
}

.driver-menu-actions .btn {
  min-height: 2.8rem;
  font-weight: 950;
}

.driver-menu-version {
  display: grid;
  gap: 0.2rem;
  align-self: end;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(104, 40, 128, 0.08);
}

.driver-menu-version span {
  color: rgba(104, 40, 128, 0.55);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.driver-menu-version strong {
  color: #2c1735;
  font-size: 1.05rem;
  font-weight: 950;
}

.driver-meter-card {
  position: absolute;
  top: 0.85rem;
  left: 1rem;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(10.8rem, calc(100vw - 8rem));
  min-height: 8.9rem;
  align-content: stretch;
  padding: 0.62rem 0.7rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(104, 40, 128, 0.95), rgba(208, 120, 248, 0.92));
  color: #fff;
  box-shadow: 0 16px 42px rgba(104, 40, 128, 0.28);
}

.driver-meter-card > div:first-child {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 100%;
  text-align: center;
}

.driver-meter-card span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.driver-meter-card span:empty {
  display: none;
}

#driver-meter-label {
  align-self: start;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-meter-card strong {
  display: block;
  font-weight: 950;
}

.driver-meter-card > div:last-child {
  display: none;
  min-width: 0;
  text-align: left;
}

#driver-meter-fare {
  display: grid;
  place-items: center;
  margin-top: 0;
  font-size: clamp(2.2rem, 8.8vw, 3.25rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  padding-inline: 0.12em;
  white-space: nowrap;
}

#driver-meter-rate {
  margin-top: 0.08rem;
  font-size: 0.92rem;
  line-height: 1.15;
  text-align: left;
}

#driver-meter-distance,
#driver-meter-remaining,
#driver-meter-eta {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
}

@media (max-width: 420px) {
  .driver-meter-card {
    width: min(9.8rem, calc(100vw - 7rem));
    padding-inline: 0.58rem;
  }

  #driver-meter-fare {
    font-size: clamp(2rem, 9.5vw, 2.78rem);
  }

  #driver-meter-rate {
    font-size: 0.82rem;
  }
}

.driver-wake-lock-status {
  padding: 0.24rem 0.45rem;
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.08);
  color: rgba(104, 40, 128, 0.62);
  font-size: 0.72rem;
  font-weight: 850;
}

.driver-wake-lock-status--active {
  background: rgba(104, 40, 128, 0.12);
  color: #682880;
}

.job-fare-split {
  display: inline-flex;
  align-items: stretch;
  gap: 0.35rem;
  min-width: max-content;
}

.job-fare-box {
  display: grid;
  gap: 0.05rem;
  min-width: 4.6rem;
  padding: 0.32rem 0.45rem;
  border-radius: 0.45rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: right;
}

.job-fare-box small {
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.job-fare-box--cost {
  background: #f7f2fa;
  color: #682880;
}

.job-fare-box--price {
  background: #fde8e8;
  color: #9b1c1c;
}

.jobs-table__header--draggable {
  cursor: grab;
  user-select: none;
}

.jobs-table__header--dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.driver-awake-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: #93a0b5;
  box-shadow: 0 0 0 3px rgba(147, 160, 181, 0.18);
}

.driver-awake-dot--active {
  background: #d078f8;
  box-shadow: 0 0 0 0 rgba(208, 120, 248, 0.5);
  animation: driverAwakePulse 1.15s infinite;
}

@keyframes driverAwakePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(208, 120, 248, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(208, 120, 248, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(208, 120, 248, 0);
  }
}

.driver-keep-awake-media {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  opacity: 0.01;
  pointer-events: none;
}

.driver-install-help {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 7, 28, 0.42);
  backdrop-filter: blur(6px);
}

.driver-install-help__card {
  position: relative;
  width: min(430px, 100%);
  padding: 1.4rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 60px rgba(104, 40, 128, 0.28);
}

.driver-install-help__card h2 {
  margin: 0 0 0.6rem;
  color: var(--dispatch-ink);
  font-size: 1.35rem;
  font-weight: 950;
}

.driver-install-help__card p:last-child {
  margin-bottom: 0;
  color: rgba(104, 40, 128, 0.68);
  font-weight: 750;
}

.driver-install-help__close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  color: rgba(104, 40, 128, 0.48);
  font-size: 1.5rem;
  line-height: 1;
}

.driver-update-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 7, 28, 0.86);
  backdrop-filter: blur(9px);
}

.driver-jobs-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 5.25rem;
  left: 0;
  z-index: 19;
  display: grid;
  padding: 0.9rem 0.9rem 0;
}

.driver-jobs-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 7, 28, 0.58);
  backdrop-filter: blur(7px);
}

.driver-jobs-overlay__card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100%;
  max-height: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(104, 40, 128, 0.1);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.driver-jobs-overlay__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(104, 40, 128, 0.08);
}

.driver-jobs-overlay__header h2 {
  margin: 0.12rem 0 0;
  color: var(--dispatch-ink);
  font-size: 1.4rem;
  font-weight: 950;
}

.driver-jobs-overlay__close {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: rgba(104, 40, 128, 0.08);
  color: rgba(104, 40, 128, 0.78);
  font-size: 0.82rem;
  font-weight: 950;
}

.driver-jobs-overlay__body {
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 0.9rem;
}

.driver-jobs-section {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 0.9rem 0;
}

.driver-jobs-section__title {
  margin: 0;
  color: #2c1735;
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.driver-jobs-section__table {
  overflow: hidden;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 1rem;
  background: rgba(247, 243, 251, 0.72);
}

.driver-cancelled-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 7, 28, 0.58);
  backdrop-filter: blur(5px);
}

.driver-message-overlay {
  position: absolute;
  inset: 0;
  z-index: 19;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 7, 28, 0.58);
  backdrop-filter: blur(6px);
}

.driver-endtrip-overlay {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 7, 28, 0.42);
  backdrop-filter: blur(5px);
}

.driver-app--endtrip-active .driver-meter-card,
.driver-app--endtrip-active .driver-turns {
  display: none !important;
}

.driver-endtrip-card {
  display: grid;
  gap: 0.9rem;
  width: min(24rem, 100%);
  max-height: min(85vh, calc(100vh - 2rem));
  overflow-y: auto;
  padding: 1.15rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.98);
  color: #2c1735;
  box-shadow: 0 24px 70px rgba(104, 40, 128, 0.28);
}

.driver-endtrip-card h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 950;
}

.driver-endtrip-lines {
  display: grid;
  gap: 0.55rem;
}

.driver-endtrip-lines div,
.driver-endtrip-lines label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(104, 40, 128, 0.05);
  font-weight: 900;
}

.driver-endtrip-lines input {
  width: min(8rem, 100%);
  min-width: 0;
  text-align: right;
}

.driver-endtrip-total {
  background: rgba(104, 40, 128, 0.12) !important;
  color: #682880;
}

.driver-endtrip-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

@media (max-width: 420px) {
  .driver-endtrip-overlay {
    padding: 0.7rem;
  }

  .driver-endtrip-card {
    width: 100%;
    max-height: calc(100vh - 1.4rem);
    padding: 1rem;
    border-radius: 1rem;
  }

  .driver-endtrip-lines div,
  .driver-endtrip-lines label {
    align-items: flex-start;
  }

  .driver-endtrip-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.driver-message-overlay__card {
  display: grid;
  gap: 0.75rem;
  width: min(430px, 100%);
  padding: 1.35rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.driver-message-overlay__card h2 {
  margin: 0;
  color: var(--dispatch-ink);
  font-size: 1.35rem;
  font-weight: 950;
}

.driver-message-list {
  display: grid;
  gap: 0.45rem;
  max-height: 15rem;
  overflow-y: auto;
  padding: 0.55rem;
  border-radius: 0.9rem;
  background: rgba(104, 40, 128, 0.06);
}

.driver-message {
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  background: #fff;
}

.driver-message--mine {
  background: rgba(208, 120, 248, 0.12);
}

.driver-message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.driver-cancelled-overlay__card {
  width: min(360px, 100%);
  padding: 1.4rem;
  border-radius: 1.25rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.driver-cancelled-overlay__card h2 {
  margin: 0;
  color: #d92828;
  font-size: 1.65rem;
  font-weight: 950;
}

.driver-update-overlay__card {
  width: min(430px, 100%);
  padding: 1.6rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f2fa 100%);
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.driver-update-overlay__card h2 {
  margin: 0 0 0.55rem;
  color: var(--dispatch-ink);
  font-size: 1.55rem;
  font-weight: 950;
}

.driver-update-overlay__card p:last-child {
  margin-bottom: 0;
  color: rgba(104, 40, 128, 0.68);
  font-weight: 760;
}

.driver-update-overlay__spinner {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 1rem;
  border: 0.35rem solid rgba(208, 120, 248, 0.16);
  border-top-color: #1f1f1f;
  border-radius: 999px;
  animation: driverUpdateSpin 0.85s linear infinite;
}

@keyframes driverUpdateSpin {
  to {
    transform: rotate(360deg);
  }
}

.driver-bottom-tabs {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  z-index: 21;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 36px rgba(104, 40, 128, 0.16);
}

.driver-tab {
  border: 0;
  border-radius: 0.8rem;
  padding: 0.7rem 0.35rem;
  background: transparent;
  color: rgba(104, 40, 128, 0.68);
  font-weight: 900;
}

.driver-tab--alert {
  animation: driverBidFlash 1s ease-in-out infinite;
}

@keyframes driverBidFlash {
  0%, 100% {
    background: rgba(217, 40, 40, 0.12);
    box-shadow: 0 0 0 rgba(217, 40, 40, 0);
  }

  50% {
    background: rgba(217, 40, 40, 0.94);
    color: #fff;
    box-shadow: 0 0 0.9rem rgba(217, 40, 40, 0.34);
  }
}

.driver-tab--active {
  background: var(--dispatch-blue);
  color: #fff;
}

.driver-list-panel {
  position: absolute;
  right: 0.8rem;
  bottom: 5.2rem;
  left: 0.8rem;
  z-index: 4;
  max-height: 34vh;
  overflow-y: auto;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 36px rgba(104, 40, 128, 0.13);
}

.driver-app--onjob .driver-list-panel {
  bottom: 0.8rem;
}

.driver-list-item,
.driver-empty {
  display: grid;
  width: 100%;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(104, 40, 128, 0.08);
  background: transparent;
  text-align: left;
}

.driver-list-item span,
.driver-list-item em,
.driver-empty {
  color: rgba(104, 40, 128, 0.62);
  font-size: 0.86rem;
}

.driver-list-item--muted {
  opacity: 0.62;
}

.driver-bid-table__header,
.driver-bid-table__row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(104, 40, 128, 0.08);
}

.driver-bid-table__header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(247, 243, 251, 0.98);
  color: rgba(104, 40, 128, 0.72);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.driver-bid-table__row {
  border: 0;
  background: transparent;
  color: #2c1735;
  text-align: left;
  font-size: 0.88rem;
}

.driver-bid-table__row span,
.driver-bid-table__row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-bid-table__row strong {
  font-weight: 900;
}

.driver-bid-table__row--muted {
  opacity: 0.62;
}

.driver-bid-table__row--static {
  cursor: default;
}

.driver-empty--overlay,
.driver-empty--section {
  margin: 0.9rem;
  padding: 1rem;
  border: 1px dashed rgba(104, 40, 128, 0.16);
  border-radius: 1rem;
  background: rgba(247, 243, 251, 0.72);
}

.driver-empty--section {
  margin: 0;
}

.driver-job-drawer {
  position: absolute;
  right: 0.8rem;
  bottom: 5.25rem;
  left: 0.8rem;
  z-index: 7;
  max-height: min(34vh, 16rem);
  overflow-y: auto;
  padding: 0.62rem 0.82rem 0.78rem;
  border: 1px solid rgba(104, 40, 128, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -18px 48px rgba(104, 40, 128, 0.24);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, max-height 180ms ease;
}

.driver-app--onjob .driver-job-drawer {
  bottom: 0.8rem;
}

.driver-app:not(.driver-app--navigating) .driver-job-drawer {
  max-height: min(38vh, 18rem);
}

.driver-job-drawer__handle {
  display: block;
  width: 3.4rem;
  height: 0.3rem;
  margin: 0 auto 0.38rem;
  border-radius: 999px;
  background: rgba(104, 40, 128, 0.18);
}

.driver-job-drawer__toggle {
  position: sticky;
  top: 0;
  z-index: 2;
  display: block;
  margin: 0 0 0.35rem auto;
  border: 0;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  background: rgba(104, 40, 128, 0.08);
  color: rgba(104, 40, 128, 0.72);
  font-size: 0.76rem;
  font-weight: 950;
}

.driver-job-drawer--collapsed {
  max-height: 3.85rem;
  overflow: hidden;
  transform: translateY(calc(100% - 3.85rem));
}

.driver-job-drawer--collapsed .driver-job-drawer__handle,
.driver-job-drawer--collapsed .driver-job-drawer__content {
  display: none;
}

.driver-job-drawer--collapsed .driver-job-drawer__toggle {
  margin: 0.18rem auto;
  min-height: 2.7rem;
  min-width: min(12rem, 80vw);
  background: #1f1f1f;
  color: #fff;
  box-shadow: 0 10px 26px rgba(208, 120, 248, 0.24);
}

.driver-job-drawer h2 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  font-weight: 900;
}

.driver-job-drawer--pickup h2,
.driver-job-drawer--destination h2 {
  font-size: clamp(1.45rem, 5.5vw, 2.35rem);
  line-height: 1.05;
}

.driver-job-drawer--pickup #driver-job-destination {
  color: rgba(104, 40, 128, 0.72);
  font-size: 1rem;
  font-weight: 850;
}

.driver-job-drawer--destination #driver-job-destination {
  display: none;
}

.driver-job-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.55rem 0;
}

.driver-job-distance {
  display: grid;
  place-items: center;
  min-height: 3rem;
  margin-bottom: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(208, 120, 248, 0.1);
  color: #1f1f1f;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.driver-turns {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  left: 1rem;
  z-index: 6;
  display: grid;
  gap: 0.4rem;
  min-height: 6.25rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgba(104, 40, 128, 0.96), rgba(208, 120, 248, 0.93));
  color: #fff;
  box-shadow: 0 18px 46px rgba(104, 40, 128, 0.32);
  backdrop-filter: blur(10px);
}

.driver-app.driver-app--navigating.driver-app--meter-active .driver-turns {
  left: calc(1rem + min(10.8rem, calc(100vw - 8rem)) + 0.65rem);
}

.driver-turns__next {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-height: 100%;
}

.driver-turns__arrow {
  display: grid;
  place-items: center;
  width: 3.9rem;
  height: 3.9rem;
  border-radius: 1rem;
  background: #fff;
  color: #2c1735;
  font-size: 2.85rem;
  font-weight: 950;
  line-height: 1;
}

.driver-turns__instruction {
  min-width: 0;
}

.driver-turns__instruction span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.driver-turns__instruction strong {
  display: block;
  margin: 0.08rem 0;
  color: #fff;
  font-size: clamp(1.08rem, 3.65vw, 1.55rem);
  font-weight: 950;
  line-height: 1.08;
}

@media (max-width: 420px) {
  .driver-app.driver-app--navigating.driver-app--meter-active .driver-turns {
    left: calc(1rem + min(9.8rem, calc(100vw - 7rem)) + 0.5rem);
  }
}

@media (max-width: 340px) {
  .driver-meter-card {
    width: calc(100vw - 2rem);
  }

  .driver-app.driver-app--navigating.driver-app--meter-active .driver-turns {
    top: 10.25rem;
    right: 1rem;
    left: 1rem;
  }
}

.driver-job-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.driver-job-actions .booking-submit,
.driver-job-actions .btn-outline-primary,
.driver-job-actions .btn-outline-danger,
.driver-job-actions .btn-outline-secondary {
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 950;
}

.driver-job-actions .driver-action--wide {
  grid-column: 1 / -1;
}

:root[data-theme="dark"] .driver-top-card,
:root[data-theme="dark"] .driver-zone-queue,
:root[data-theme="dark"] .driver-bottom-tabs,
:root[data-theme="dark"] .driver-list-panel,
:root[data-theme="dark"] .driver-job-drawer {
  border: 1px solid rgba(210, 210, 210, 0.14);
  background:
    radial-gradient(circle at top left, rgba(225, 225, 225, 0.12), transparent 42%),
    rgba(42, 15, 54, 0.95);
  color: #fff7ff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

:root[data-theme="dark"] .driver-top-card span,
:root[data-theme="dark"] .driver-zone-queue span,
:root[data-theme="dark"] .driver-list-item span,
:root[data-theme="dark"] .driver-list-item em,
:root[data-theme="dark"] .driver-empty,
:root[data-theme="dark"] .driver-job-destination,
:root[data-theme="dark"] #driver-job-destination,
:root[data-theme="dark"] .driver-job-meta {
  color: rgba(255, 247, 255, 0.72);
}

:root[data-theme="dark"] .driver-top-card strong,
:root[data-theme="dark"] .driver-zone-queue strong,
:root[data-theme="dark"] .driver-job-drawer h2,
:root[data-theme="dark"] .driver-list-item strong,
:root[data-theme="dark"] #driver-job-fare {
  color: #ffffff;
}

:root[data-theme="dark"] .driver-top-card a {
  color: #d078f8;
}

:root[data-theme="dark"] .driver-top-card .btn-outline-primary {
  border-color: rgba(225, 225, 225, 0.32);
  background: rgba(225, 225, 225, 0.12);
  color: #f4dcff;
}

:root[data-theme="dark"] .driver-menu-button {
  border-color: rgba(210, 210, 210, 0.18);
  background: rgba(20, 7, 28, 0.62);
}

:root[data-theme="dark"] .driver-menu-button span {
  background: #fff7ff;
}

:root[data-theme="dark"] .driver-menu-card {
  border-color: rgba(210, 210, 210, 0.16);
  background:
    radial-gradient(circle at top left, rgba(225, 225, 225, 0.14), transparent 44%),
    rgba(42, 15, 54, 0.98);
  color: #fff7ff;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.46);
}

:root[data-theme="dark"] .driver-menu-close {
  color: rgba(255, 247, 255, 0.62);
}

:root[data-theme="dark"] .driver-menu-identity span {
  color: rgba(255, 247, 255, 0.62);
}

:root[data-theme="dark"] .driver-menu-identity strong,
:root[data-theme="dark"] .driver-menu-toggle {
  color: #ffffff;
}

:root[data-theme="dark"] .driver-menu-section {
  border-top-color: rgba(210, 210, 210, 0.12);
}

:root[data-theme="dark"] .driver-menu-version {
  border-top-color: rgba(210, 210, 210, 0.12);
}

:root[data-theme="dark"] .driver-menu-version span {
  color: rgba(255, 247, 255, 0.62);
}

:root[data-theme="dark"] .driver-menu-version strong {
  color: #ffffff;
}

:root[data-theme="dark"] .driver-menu-toggle {
  border-color: rgba(210, 210, 210, 0.13);
  background: rgba(255, 247, 255, 0.07);
}

:root[data-theme="dark"] .driver-map-orientation {
  border-color: rgba(210, 210, 210, 0.28);
  background: rgba(42, 15, 54, 0.94);
  color: #fff7ff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .driver-map-orientation--active {
  background: var(--dispatch-blue);
  color: #14071c;
}

:root[data-theme="dark"] .driver-map-message-alert {
  border-color: rgba(255, 205, 165, 0.82);
  background: rgba(255, 122, 24, 0.92);
}

:root[data-theme="dark"] .driver-map-info__card {
  border-color: rgba(210, 210, 210, 0.14);
  background: rgba(20, 7, 28, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
}

:root[data-theme="dark"] .driver-map-info__card h3 {
  color: #fff7ff;
}

:root[data-theme="dark"] .driver-map-info__close {
  color: rgba(255, 247, 255, 0.72);
}

:root[data-theme="dark"] .driver-map-info__phone {
  color: #d078f8;
}

:root[data-theme="dark"] .driver-map-info__section,
:root[data-theme="dark"] .driver-map-info__messages {
  border-top-color: rgba(210, 210, 210, 0.12);
}

:root[data-theme="dark"] .driver-map-info__section strong,
:root[data-theme="dark"] .driver-map-info__messages > strong {
  color: rgba(255, 247, 255, 0.56);
}

:root[data-theme="dark"] .driver-map-info__section span,
:root[data-theme="dark"] .driver-map-info__section small,
:root[data-theme="dark"] .driver-map-info__muted {
  color: rgba(255, 247, 255, 0.76);
}

:root[data-theme="dark"] .driver-map-info__chips span {
  background: rgba(225, 225, 225, 0.16);
  color: #d078f8;
}

:root[data-theme="dark"] .driver-map-info__job {
  border-color: rgba(225, 225, 225, 0.18);
  background: rgba(225, 225, 225, 0.08);
}

:root[data-theme="dark"] .driver-map-info__message-thread {
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .driver-map-info__message {
  background: rgba(42, 15, 54, 0.96);
}

:root[data-theme="dark"] .driver-map-info__message--driver {
  background: rgba(208, 120, 248, 0.18);
}

:root[data-theme="dark"] .driver-map-info__message span,
:root[data-theme="dark"] .driver-message span {
  color: rgba(255, 247, 255, 0.54);
}

:root[data-theme="dark"] .driver-map-info__message p,
:root[data-theme="dark"] .driver-message p {
  color: rgba(243, 247, 255, 0.86);
}

:root[data-theme="dark"] .driver-wake-lock-status {
  background: rgba(210, 210, 210, 0.1);
  color: rgba(255, 247, 255, 0.72);
}

:root[data-theme="dark"] .driver-wake-lock-status--active {
  background: rgba(208, 120, 248, 0.18);
  color: #f4dcff;
}

:root[data-theme="dark"] .driver-tab {
  color: rgba(255, 247, 255, 0.74);
}

:root[data-theme="dark"] .driver-tab:hover,
:root[data-theme="dark"] .driver-tab:focus {
  background: rgba(225, 225, 225, 0.12);
  color: #ffffff;
}

:root[data-theme="dark"] .driver-tab--active {
  background: var(--dispatch-blue);
  color: #14071c;
}

:root[data-theme="dark"] .driver-tab--alert {
  animation-name: driverBidFlashDark;
}

@keyframes driverBidFlashDark {
  0%, 100% {
    background: rgba(255, 122, 24, 0.18);
    color: #fff7ff;
    box-shadow: 0 0 0 rgba(255, 122, 24, 0);
  }

  50% {
    background: rgba(255, 122, 24, 0.96);
    color: #14071c;
    box-shadow: 0 0 1rem rgba(255, 122, 24, 0.4);
  }
}

:root[data-theme="dark"] .driver-list-item,
:root[data-theme="dark"] .driver-empty {
  border-bottom-color: rgba(210, 210, 210, 0.12);
  color: rgba(255, 247, 255, 0.72);
}

:root[data-theme="dark"] .driver-bid-table__header {
  background: rgba(44, 23, 53, 0.98);
  color: rgba(240, 218, 255, 0.8);
  border-bottom-color: rgba(210, 210, 210, 0.12);
}

:root[data-theme="dark"] .driver-bid-table__row {
  color: #fff7ff;
  border-bottom-color: rgba(210, 210, 210, 0.12);
}

:root[data-theme="dark"] .driver-jobs-overlay__card {
  border: 1px solid rgba(210, 210, 210, 0.14);
  background:
    radial-gradient(circle at top left, rgba(225, 225, 225, 0.14), transparent 44%),
    linear-gradient(160deg, rgba(42, 15, 54, 0.98), rgba(20, 7, 28, 0.98));
  color: #fff7ff;
}

:root[data-theme="dark"] .driver-jobs-overlay__header,
:root[data-theme="dark"] .driver-jobs-section__table,
:root[data-theme="dark"] .driver-empty--overlay,
:root[data-theme="dark"] .driver-empty--section {
  border-color: rgba(210, 210, 210, 0.12);
}

:root[data-theme="dark"] .driver-jobs-overlay__header h2,
:root[data-theme="dark"] .driver-jobs-section__title {
  color: #ffffff;
}

:root[data-theme="dark"] .driver-jobs-overlay__close {
  background: rgba(255, 247, 255, 0.08);
  color: rgba(255, 247, 255, 0.82);
}

:root[data-theme="dark"] .driver-jobs-section__table,
:root[data-theme="dark"] .driver-empty--overlay,
:root[data-theme="dark"] .driver-empty--section {
  background: rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] .driver-list-item:hover,
:root[data-theme="dark"] .driver-list-item:focus {
  background: rgba(225, 225, 225, 0.14);
}

:root[data-theme="dark"] .driver-job-drawer__handle {
  background: rgba(255, 247, 255, 0.28);
}

:root[data-theme="dark"] .driver-job-distance {
  background: rgba(225, 225, 225, 0.14);
  color: #f4dcff;
}

:root[data-theme="dark"] .driver-message-overlay__card,
:root[data-theme="dark"] .driver-install-help__card,
:root[data-theme="dark"] .driver-cancelled-overlay__card,
:root[data-theme="dark"] .driver-update-overlay__card {
  border: 1px solid rgba(210, 210, 210, 0.14);
  background:
    radial-gradient(circle at top left, rgba(225, 225, 225, 0.14), transparent 44%),
    linear-gradient(160deg, rgba(42, 15, 54, 0.98), rgba(20, 7, 28, 0.98));
  color: #fff7ff;
}

:root[data-theme="dark"] .driver-message-overlay__card h2,
:root[data-theme="dark"] .driver-install-help__card h2,
:root[data-theme="dark"] .driver-update-overlay__card h2 {
  color: #ffffff;
}

:root[data-theme="dark"] .driver-install-help__card p:last-child,
:root[data-theme="dark"] .driver-update-overlay__card p:last-child {
  color: rgba(255, 247, 255, 0.72);
}

:root[data-theme="dark"] .driver-message-list {
  background: rgba(20, 7, 28, 0.58);
}

:root[data-theme="dark"] .driver-message {
  background: rgba(255, 247, 255, 0.08);
}

:root[data-theme="dark"] .driver-message--mine {
  background: rgba(225, 225, 225, 0.16);
}

:root[data-theme="dark"] .driver-message span {
  color: rgba(255, 247, 255, 0.68);
}

:root[data-theme="dark"] .zones-overlay__card,
:root[data-theme="dark"] .zones-overlay__zone {
  border-color: rgba(210, 210, 210, 0.16);
  background: rgba(42, 15, 54, 0.92);
}

:root[data-theme="dark"] .zones-overlay__header h3,
:root[data-theme="dark"] .zones-overlay__zone-header strong,
:root[data-theme="dark"] .zones-overlay__order-driver {
  color: var(--dispatch-ink);
}

:root[data-theme="dark"] .zones-overlay__summary,
:root[data-theme="dark"] .zones-overlay__zone-header span,
:root[data-theme="dark"] .zones-overlay__order-state,
:root[data-theme="dark"] .zones-overlay__empty {
  color: var(--dispatch-muted);
}

:root[data-theme="dark"] .driver-message p {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991.98px) {
  body:not(.admin-body):not(.driver-app-body):not(.driver-login-body) {
    overflow: hidden;
  }

  body.system-portal-body {
    overflow: auto;
  }

  .dispatch-shell {
    height: calc(100vh - 78px);
    overflow: hidden;
  }

  body.system-portal-body .dispatch-shell {
    height: auto;
    overflow: visible;
  }

  .dispatch-hero {
    overflow: hidden;
  }

  .dispatch-split {
    grid-template-columns: minmax(0, 4.45fr) minmax(0, 2.35fr) minmax(0, 5.2fr);
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }

  .dispatch-split > [class*="col-"] {
    min-height: 0;
  }

  .dispatch-split > [class*="col-"]:has(.map-panel) {
    grid-column: auto;
  }

  .booking-panel,
  .dispatch-info-panel,
  .map-panel {
    overflow: hidden;
    padding: 0.7rem;
  }

  .booking-form__grid {
    gap: 0.38rem;
  }

  .booking-input {
    min-height: 2.05rem;
    font-size: 0.78rem;
  }

  .booking-actions {
    grid-template-columns: 52px minmax(0, 1fr) 102px;
  }

  .map-panel__title {
    font-size: 1.05rem;
  }

  .map-panel__frame {
    flex: 1 1 auto;
    min-height: 0;
  }

  .jobs-panel__table-wrap {
    max-height: 100%;
  }

  .admin-tariff-page {
    grid-template-columns: 1fr;
  }

  .admin-tariff-form-panel {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .topbar .container-fluid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .topbar-phone-status {
    justify-self: center;
  }

  .topbar-logo-frame {
    width: min(21rem, 92vw);
    min-height: 5.4rem;
  }

  .topbar-logo {
    max-width: 20rem;
    height: 4.85rem;
  }

  .topbar-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .topbar-inbox-button {
    order: 10;
  }

  .dispatch-shell {
    height: calc(100vh - 78px);
    min-height: 0;
    overflow: hidden;
  }

  body.system-portal-body .dispatch-shell {
    height: auto;
    min-height: calc(100vh - 78px);
    overflow: visible;
  }

  body:not(.admin-body):not(.driver-app-body):not(.driver-login-body) {
    overflow: hidden;
  }

  body.system-portal-body {
    overflow: auto;
  }

  .dispatch-hero {
    overflow: hidden;
  }

  .dispatch-split {
    grid-template-columns: minmax(0, 4.45fr) minmax(0, 2.35fr) minmax(0, 5.2fr);
  }

  .dispatch-shell > main > .row.mt-4 {
    min-height: 0;
  }

  .booking-form__grid {
    grid-template-columns: 1fr;
  }

  .booking-field--full {
    grid-column: auto;
  }

  .map-panel__header,
  .jobs-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .jobs-filter-tabs {
    justify-content: flex-start;
    width: 100%;
  }

  .admin-company-card {
    grid-template-columns: 1fr;
  }

  .admin-day-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-inbox-overlay {
    padding: 0.6rem;
  }

  .company-inbox-overlay__card {
    max-height: 90vh;
  }

  .company-inbox-overlay__body {
    grid-template-columns: 1fr;
  }

  .company-inbox-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--dispatch-border);
    max-height: 34vh;
  }
}

@media (max-width: 575.98px) {
  .dispatch-hero {
    overflow: hidden;
  }

  .dispatch-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr) minmax(0, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }

  .dispatch-info-panel {
    min-height: 0;
  }

  .map-panel {
    min-height: 0;
  }
}

@media (max-height: 820px) {
  .booking-panel,
  .dispatch-info-panel,
  .map-panel {
    padding: 0.55rem;
    border-radius: 1rem;
  }

  .booking-form__grid {
    gap: 0.22rem;
  }

  .booking-field .form-label {
    margin-bottom: 0.08rem;
    font-size: 0.68rem;
  }

  .booking-input-wrap {
    gap: 0.3rem;
    padding: 0 0.5rem;
    border-radius: 0.72rem;
  }

  .booking-input {
    min-height: 1.56rem;
    font-size: 0.74rem;
  }

  .booking-actions {
    gap: 0.32rem;
    grid-template-columns: 44px minmax(0, 1fr) 88px;
  }

  .booking-form__footer {
    margin-top: 0.3rem;
    padding-top: 0.3rem;
  }

  .booking-submit,
  .booking-lead-box {
    min-height: 1.8rem;
    border-radius: 0.72rem;
  }

  .booking-submit {
    font-size: 0.78rem;
  }

  .booking-field__hint {
    min-height: 0.2rem;
    font-size: 0.68rem;
  }

  .map-panel__label {
    margin-bottom: 0.05rem;
    font-size: 0.64rem;
  }

  .map-panel__title,
  .dispatch-info-panel__fare {
    font-size: 0.92rem;
  }

  .eta-list__row,
  .eta-list-empty {
    padding: 0.3rem 0.4rem;
    font-size: 0.68rem;
  }
}

@media (max-height: 720px) {
  .booking-form__grid {
    gap: 0.16rem;
  }

  .booking-field .form-label {
    font-size: 0.6rem;
  }

  .booking-input {
    min-height: 1.38rem;
    font-size: 0.66rem;
  }

  .booking-input-wrap i,
  .booking-submit i {
    display: none;
  }

  .booking-submit,
  .booking-lead-box {
    min-height: 1.58rem;
    border-radius: 0.62rem;
  }

  .booking-submit {
    font-size: 0.68rem;
  }

  .booking-lead-box label,
  .booking-lead-box__input span,
  .booking-field__hint,
  .booking-field span.text-danger {
    display: none;
  }

  .booking-form__footer {
    margin-top: 0.16rem;
    padding-top: 0.16rem;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.dispatch-update-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 100000;
  background: rgba(20, 7, 28, 0.58);
  backdrop-filter: blur(3px);
}

.dispatch-update-card {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  min-width: min(24rem, calc(100vw - 2rem));
  padding: 1.4rem 1.6rem;
  border-radius: 1rem;
  background: #ffd166;
  color: #2c1735;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: dispatch-update-pulse 1.1s ease-in-out infinite;
}

.dispatch-update-card span {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dispatch-update-card strong {
  font-size: 1.02rem;
  line-height: 1.1;
}

.dispatch-update-spinner {
  width: 2.6rem;
  height: 2.6rem;
  border: 0.26rem solid rgba(104, 40, 128, 0.18);
  border-top-color: #2c1735;
  border-radius: 50%;
  animation: dispatch-update-spin 0.9s linear infinite;
}

@keyframes dispatch-update-pulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(255, 209, 102, 0.75);
  }

  50% {
    transform: translateY(-2px);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(255, 209, 102, 0);
  }
}

@keyframes dispatch-update-spin {
  to {
    transform: rotate(360deg);
  }
}

.sms-link-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(208, 120, 248, 0.24), transparent 32%),
    linear-gradient(160deg, #14071c 0%, #1d0e25 48%, #2a1236 100%);
  color: #fff7ff;
}

.sms-link-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.sms-link-card {
  width: min(100%, 34rem);
  border: 1px solid rgba(208, 120, 248, 0.28);
  border-radius: 1.8rem;
  padding: 1.8rem;
  background:
    radial-gradient(circle at top left, rgba(208, 120, 248, 0.18), transparent 40%),
    rgba(20, 7, 28, 0.96);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.36);
}

.sms-link-card__brand {
  text-align: center;
}

.sms-link-card__brand h1 {
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 900;
}

.sms-link-card__brand p {
  margin: 0.65rem auto 0;
  max-width: 28rem;
  color: rgba(255, 247, 255, 0.72);
}

.sms-link-card__eyebrow {
  display: inline-block;
  margin-top: 1rem;
  color: #d078f8;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sms-link-card__actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.sms-link-card__button {
  width: 100%;
}

.cab-marketing-body {
  min-height: 100vh;
  margin: 0;
  overflow: auto;
  background:
    radial-gradient(circle at 16% 8%, rgba(208, 120, 248, 0.24), transparent 32rem),
    radial-gradient(circle at 78% 0%, rgba(104, 40, 128, 0.28), transparent 28rem),
    linear-gradient(145deg, #f8f0e8 0%, #f1eee9 42%, #f7f2fa 100%);
  color: #2c1735;
}

.cab-marketing {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 4rem;
}

.cab-marketing-nav {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(104, 40, 128, 0.14);
  border-radius: 1.35rem;
  background: rgba(248, 240, 232, 0.82);
  box-shadow: 0 18px 48px rgba(42, 15, 54, 0.12);
  backdrop-filter: blur(18px);
}

.cab-marketing-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(23rem, 58vw);
  min-height: 6rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cab-marketing-logo img {
  display: block;
  width: 100%;
  max-height: 5.35rem;
  object-fit: contain;
}

.cab-marketing-nav__links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cab-marketing-nav__links a,
.cab-marketing-login {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: rgba(44, 23, 53, 0.78);
  font-weight: 850;
  text-decoration: none;
}

.cab-marketing-nav__links a:hover,
.cab-marketing-nav__links a:focus {
  background: rgba(104, 40, 128, 0.1);
  color: #2c1735;
}

.cab-marketing-login {
  background: #2a0f36;
  color: #fff7ff !important;
}

.cab-marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(22rem, 1.06fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 8rem);
  padding: clamp(2rem, 6vw, 5rem) 0;
}

.cab-marketing-kicker {
  margin: 0 0 0.9rem;
  color: #682880;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cab-marketing-hero h1 {
  margin: 0;
  color: #2a0f36;
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.cab-marketing-hero__copy > p:not(.cab-marketing-kicker) {
  max-width: 44rem;
  margin: 1.35rem 0 0;
  color: rgba(44, 23, 53, 0.74);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 700;
  line-height: 1.6;
}

.cab-marketing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.cab-marketing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none;
}

.cab-marketing-button--primary {
  background: linear-gradient(135deg, #682880, #d078f8);
  color: #fff7ff;
  box-shadow: 0 18px 38px rgba(104, 40, 128, 0.24);
}

.cab-marketing-button--ghost {
  border: 1px solid rgba(104, 40, 128, 0.22);
  background: rgba(255, 255, 255, 0.48);
  color: #2a0f36;
}

.cab-marketing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.cab-marketing-proof span {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(104, 40, 128, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: rgba(44, 23, 53, 0.74);
  font-size: 0.82rem;
  font-weight: 850;
}

.cab-marketing-preview {
  position: relative;
  min-height: 38rem;
}

.cab-preview-window {
  border: 1px solid rgba(208, 120, 248, 0.22);
  border-radius: 1.7rem;
  background: rgba(29, 14, 37, 0.94);
  color: #fff7ff;
  box-shadow: 0 28px 80px rgba(42, 15, 54, 0.28);
}

.cab-preview-window--dispatch {
  padding: 0.85rem;
  transform: rotate(-1.5deg);
}

.cab-preview-window--phone {
  position: absolute;
  right: 2rem;
  bottom: 0;
  width: min(16rem, 54vw);
  padding: 1.4rem 1rem 1rem;
  border-radius: 2.1rem;
  background:
    radial-gradient(circle at top, rgba(208, 120, 248, 0.22), transparent 44%),
    #14071c;
  transform: rotate(3deg);
}

.cab-preview-window__bar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.6rem 0.7rem 0.9rem;
}

.cab-preview-window__bar span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: #d078f8;
}

.cab-preview-window__bar strong {
  margin-left: 0.45rem;
  color: rgba(255, 247, 255, 0.8);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cab-preview-dispatch-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 0.85rem;
}

.cab-preview-form,
.cab-preview-map {
  min-height: 22rem;
  border-radius: 1.2rem;
  background: rgba(255, 247, 255, 0.08);
}

.cab-preview-form {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1rem;
}

.cab-preview-form span {
  color: rgba(255, 247, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cab-preview-form strong {
  display: block;
  padding: 0.75rem;
  border-radius: 0.8rem;
  background: rgba(255, 247, 255, 0.12);
}

.cab-preview-form button {
  margin-top: 0.75rem;
  min-height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: #d078f8;
  color: #14071c;
  font-weight: 950;
}

.cab-preview-map {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 247, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 247, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 42% 48%, rgba(208, 120, 248, 0.28), transparent 32%),
    rgba(255, 247, 255, 0.08);
  background-size: 2.6rem 2.6rem, 2.6rem 2.6rem, auto, auto;
}

.cab-preview-map i {
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  border: 3px solid #fff7ff;
  border-radius: 50%;
  background: #d078f8;
  box-shadow: 0 0 0 0.45rem rgba(208, 120, 248, 0.16);
}

.cab-preview-map i:nth-child(1) { left: 18%; top: 26%; }
.cab-preview-map i:nth-child(2) { left: 48%; top: 44%; }
.cab-preview-map i:nth-child(3) { left: 72%; top: 34%; }
.cab-preview-map i:nth-child(4) { left: 58%; top: 68%; }

.cab-preview-map b {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 7, 28, 0.78);
}

.cab-phone-notch {
  width: 5rem;
  height: 0.55rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: rgba(255, 247, 255, 0.26);
}

.cab-preview-window--phone p {
  margin: 0;
  color: #d078f8;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cab-preview-window--phone h2 {
  margin: 0.45rem 0 1rem;
  font-size: 1.55rem;
  font-weight: 950;
}

.cab-phone-card {
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 247, 255, 0.1);
  color: rgba(255, 247, 255, 0.82);
  font-weight: 850;
}

.cab-phone-card + .cab-phone-card {
  margin-top: 0.7rem;
}

.cab-phone-card--active {
  background: #d078f8;
  color: #14071c;
}

.cab-marketing-section {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.cab-section-heading {
  max-width: 48rem;
  margin-bottom: 1.4rem;
}

.cab-section-heading h2 {
  margin: 0;
  color: #2a0f36;
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.cab-feature-grid,
.cab-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.cab-feature-grid article,
.cab-screenshot-card {
  min-height: 16rem;
  padding: 1.25rem;
  border: 1px solid rgba(104, 40, 128, 0.15);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top left, rgba(208, 120, 248, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 48px rgba(42, 15, 54, 0.1);
}

.cab-feature-grid article span {
  color: #d078f8;
  font-size: 0.86rem;
  font-weight: 950;
}

.cab-feature-grid h3,
.cab-screenshot-card h3 {
  margin: 0.75rem 0 0.55rem;
  color: #2a0f36;
  font-size: 1.2rem;
  font-weight: 950;
}

.cab-feature-grid p,
.cab-screenshot-card p {
  margin: 0;
  color: rgba(44, 23, 53, 0.7);
  font-weight: 700;
  line-height: 1.55;
}

.cab-screens-section {
  padding-bottom: 1rem;
}

.cab-screenshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cab-screenshot {
  min-height: 13rem;
  border-radius: 1rem;
  background: #1d0e25;
  color: #fff7ff;
}

.cab-screenshot--board {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-content: center;
  padding: 1rem;
}

.cab-screenshot--board span {
  color: rgba(255, 247, 255, 0.64);
  font-weight: 850;
}

.cab-screenshot--board b {
  color: #d078f8;
  font-size: 1.5rem;
}

.cab-screenshot--zones {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  padding: 1rem;
}

.cab-screenshot--zones i {
  display: grid;
  place-items: center;
  border: 1px solid rgba(208, 120, 248, 0.32);
  border-radius: 1rem;
  background: rgba(208, 120, 248, 0.12);
  font-style: normal;
  font-weight: 950;
}

.cab-screenshot--texts {
  display: grid;
  gap: 0.65rem;
  align-content: center;
  padding: 1rem;
}

.cab-screenshot--texts em {
  justify-self: start;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(208, 120, 248, 0.16);
  color: #d078f8;
  font-style: normal;
  font-weight: 900;
}

.cab-screenshot--texts strong {
  display: block;
  padding: 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 247, 255, 0.1);
}

.cab-marketing-section--banner,
.cab-marketing-section--signup {
  padding-top: 1rem;
}

.cab-trial-banner,
.cab-integrations-panel,
.cab-signup-card,
.cab-signup-copy,
.cab-roadmap-grid article {
  border: 1px solid rgba(104, 40, 128, 0.15);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at top left, rgba(208, 120, 248, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 48px rgba(42, 15, 54, 0.1);
}

.cab-trial-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.85fr);
  gap: 1.5rem;
  padding: 1.5rem;
}

.cab-trial-banner h2,
.cab-signup-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 0.96;
}

.cab-trial-banner p,
.cab-integrations-panel p,
.cab-signup-copy > p {
  margin: 1rem 0 0;
  color: rgba(44, 23, 53, 0.75);
  font-weight: 700;
  line-height: 1.7;
}

.cab-trial-banner__meta {
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(42, 15, 54, 0.92);
  color: #fff7ff;
}

.cab-trial-banner__meta strong,
.cab-signup-notes strong {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.cab-trial-banner__meta ul,
.cab-roadmap-grid ul,
.cab-signup-notes ul {
  margin: 0;
  padding-left: 1.15rem;
}

.cab-trial-banner__meta li,
.cab-roadmap-grid li,
.cab-signup-notes li {
  margin-top: 0.45rem;
  line-height: 1.5;
}

.cab-feature-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cab-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cab-roadmap-grid article,
.cab-integrations-panel {
  padding: 1.35rem;
}

.cab-roadmap-grid h3 {
  margin: 0 0 0.8rem;
  color: #2a0f36;
  font-size: 1.2rem;
  font-weight: 950;
}

.cab-signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(22rem, 1.05fr);
  gap: 1.25rem;
  align-items: start;
}

.cab-signup-copy,
.cab-signup-card {
  padding: 1.35rem;
}

.cab-signup-notes {
  margin-top: 1.15rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(42, 15, 54, 0.08);
}

.cab-signup-form {
  display: grid;
  gap: 1rem;
}

.cab-signup-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cab-signup-submit {
  width: 100%;
}

.cab-signup-success {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(53, 132, 81, 0.2);
  border-radius: 1rem;
  background: rgba(53, 132, 81, 0.08);
}

.cab-signup-success h3 {
  margin: 0;
  color: #2a0f36;
  font-size: 1.4rem;
  font-weight: 950;
}

.cab-signup-success__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.cab-signup-success__grid div {
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.75);
}

.cab-signup-success__grid span {
  display: block;
  color: rgba(44, 23, 53, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cab-signup-success__grid strong {
  display: block;
  margin-top: 0.3rem;
  word-break: break-word;
}

.cab-signup-success__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1rem 0 0;
}

.cab-signup-success__links a {
  color: #682880;
  font-weight: 900;
  text-decoration: none;
}

.admin-feedback-list {
  display: grid;
  gap: 1rem;
}

.admin-feedback-item {
  padding: 1rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: var(--dispatch-surface-soft);
}

.admin-feedback-item__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.admin-feedback-item__header p,
.admin-feedback-item__message {
  margin: 0.35rem 0 0;
}

.admin-feedback-item__message {
  white-space: pre-wrap;
}

.system-status-pill--trial {
  background: rgba(104, 40, 128, 0.14);
  color: #682880;
}

@media (max-width: 1040px) {
  .cab-marketing-hero,
  .cab-feature-grid,
  .cab-screenshot-grid,
  .cab-feature-grid--three,
  .cab-roadmap-grid,
  .cab-signup-layout,
  .cab-signup-form__grid,
  .cab-trial-banner {
    grid-template-columns: 1fr;
  }

  .cab-marketing-preview {
    min-height: auto;
  }

  .cab-preview-window--phone {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -1rem 1rem 0 auto;
  }
}

@media (max-width: 720px) {
  .cab-marketing {
    width: min(100% - 1rem, 1180px);
  }

  .cab-marketing-nav {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .cab-marketing-logo {
    width: 100%;
  }

  .cab-marketing-nav__links {
    justify-content: center;
  }

  .cab-marketing-hero {
    padding-top: 2rem;
  }

  .cab-preview-dispatch-grid {
    grid-template-columns: 1fr;
  }

  .cab-preview-form,
  .cab-preview-map {
    min-height: 15rem;
  }

  .cab-signup-success__grid {
    grid-template-columns: 1fr;
  }
}

.sms-link-card__resume {
  color: #d078f8;
  text-decoration: none;
  justify-self: center;
}

.sms-link-card__resume:hover,
.sms-link-card__resume:focus {
  color: #d078f8;
}

.sms-link-card__pairing-code {
  display: grid;
  gap: 0.15rem;
  margin-top: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(208, 120, 248, 0.42);
  border-radius: 0.8rem;
  background: rgba(208, 120, 248, 0.1);
  text-align: center;
}

.sms-link-card__pairing-code span {
  color: rgba(255, 247, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sms-link-card__pairing-code strong {
  color: #fff7ff;
  font-family: "Courier New", monospace;
  font-size: clamp(2.4rem, 11vw, 4rem);
  line-height: 1;
  letter-spacing: 0.18em;
}

.sms-link-card__tips {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(208, 120, 248, 0.18);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
}

.sms-link-card__tips strong {
  display: block;
  margin-bottom: 0.55rem;
}

.sms-link-card__tips ul {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 247, 255, 0.78);
}

.admin-sms-device-list {
  display: grid;
  gap: 1rem;
}

.admin-sms-device-item {
  padding: 1rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 1rem;
  background: var(--dispatch-surface-soft);
}

.admin-sms-device-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.admin-sms-device-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.admin-sms-device-stats div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--dispatch-border);
  border-radius: 0.65rem;
  background: var(--dispatch-surface);
}

.admin-sms-device-stats span {
  color: var(--dispatch-muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-sms-device-stats strong {
  color: var(--dispatch-ink);
  font-size: 1.45rem;
  line-height: 1;
}

@media (max-width: 680px) {
  .admin-sms-device-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
