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

:root {
  --dispatch-navy: #18264a;
  --dispatch-blue: #1e90ff;
  --dispatch-blue-soft: rgba(30, 144, 255, 0.18);
  --dispatch-ink: #10203f;
  --dispatch-muted: rgba(16, 32, 63, 0.64);
  --dispatch-page: #f4f7fb;
  --dispatch-surface: #ffffff;
  --dispatch-surface-soft: #f8fbff;
  --dispatch-border: rgba(19, 42, 81, 0.09);
  --dispatch-shadow: rgba(16, 32, 63, 0.08);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --dispatch-navy: #07111f;
  --dispatch-blue: #62b4ff;
  --dispatch-blue-soft: rgba(98, 180, 255, 0.18);
  --dispatch-ink: #e7edf7;
  --dispatch-muted: rgba(231, 237, 247, 0.68);
  --dispatch-page: #0b1422;
  --dispatch-surface: #121f31;
  --dispatch-surface-soft: #17263b;
  --dispatch-border: rgba(207, 226, 255, 0.13);
  --dispatch-shadow: rgba(0, 0, 0, 0.32);
  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 #258cfb;
}

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

body.admin-body {
  overflow: auto;
}

.topbar {
  min-height: 78px;
  background: var(--dispatch-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(11, 22, 48, 0.14);
}

.topbar .container-fluid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.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;
  padding: 0.36rem 0.68rem;
  border: 1px solid var(--dispatch-blue);
  border-radius: 0.6rem;
  background: var(--dispatch-blue-soft);
}

.topbar-logo {
  display: block;
  height: 28px;
  width: auto;
}

.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-link {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 600;
}

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

.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;
}

: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(98, 180, 255, 0.16), transparent 42%),
    linear-gradient(165deg, var(--dispatch-surface) 0%, var(--dispatch-surface-soft) 100%);
}

: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(23, 38, 59, 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(231, 237, 247, 0.45);
}

: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(98, 180, 255, 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(98, 180, 255, 0.16);
}

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

.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;
}

.dispatch-footer {
  display: none;
}

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

.dispatch-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  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;
  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(18, 112, 77, 0.82);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 32, 63, 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;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(30, 144, 255, 0.1);
  color: #115dbe;
  font-weight: 700;
}

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

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

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

.booking-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.booking-form__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding-right: 0.15rem;
}

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

  .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;
}

.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: 20;
  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(30, 144, 255, 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(30, 144, 255, 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(30, 144, 255, 0.8);
  box-shadow: 0 0 0 0.18rem rgba(30, 144, 255, 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(30, 144, 255, 0.12);
  color: #115dbe;
  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(34, 197, 94, 0.14);
  color: #15803d;
}

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

.booking-form__footer {
  flex: 0 0 auto;
  margin-top: clamp(0.16rem, 0.5vh, 0.36rem);
  padding-top: clamp(0.16rem, 0.5vh, 0.34rem);
  border-top: 1px solid var(--dispatch-border);
  background: color-mix(in srgb, var(--dispatch-surface-soft) 86%, transparent);
}

.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, #18a0fb, #1b6fff);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(27, 111, 255, 0.28);
}

.booking-submit:hover,
.booking-submit:focus {
  color: #fff;
  background: linear-gradient(135deg, #0f95f1, #185fe0);
}

.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(16, 32, 63, 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(30, 144, 255, 0.1);
  color: #115dbe;
  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(30, 144, 255, 0.18);
  box-shadow: 0 18px 45px rgba(18, 57, 116, 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(98, 180, 255, 0.14), transparent 42%),
    linear-gradient(180deg, #18264a 0%, #111d3a 100%);
  border-color: rgba(98, 180, 255, 0.22);
}

:root[data-theme="dark"] .map-panel__frame {
  border-color: rgba(98, 180, 255, 0.38);
  background: #18264a;
  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: #18264a;
}

.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(16, 32, 63, 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(16, 32, 63, 0.14);
}

.map-overlay-toggle {
  position: absolute;
  top: 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(7, 17, 31, 0.54);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 32px rgba(7, 17, 31, 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(7, 17, 31, 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(17, 33, 57, 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(7, 17, 31, 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: 4.25rem 0.75rem 0.75rem;
}

.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(16, 32, 63, 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(248, 251, 255, 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(30, 144, 255, 0.12);
  color: #115dbe;
  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(16, 32, 63, 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(16, 32, 63, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(16, 32, 63, 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(16, 32, 63, 0.5);
  font-size: 1.45rem;
  line-height: 1;
}

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

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

.driver-map-info__section strong {
  color: rgba(16, 32, 63, 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(16, 32, 63, 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(17, 93, 190, 0.1);
  color: #115dbe;
  font-size: 0.72rem;
  font-weight: 900;
}

.driver-map-info__job {
  padding: 0.55rem;
  border: 1px solid rgba(17, 93, 190, 0.12);
  border-radius: 0.8rem;
  background: rgba(17, 93, 190, 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(16, 32, 63, 0.08);
}

.driver-map-info__messages > strong {
  color: rgba(16, 32, 63, 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(16, 32, 63, 0.045);
}

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

.driver-map-info__message--driver {
  background: rgba(24, 185, 87, 0.12);
}

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

.driver-map-info__message p,
.driver-message p {
  margin: 0;
  color: rgba(16, 32, 63, 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: #10203f;
}

.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(16, 32, 63, 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: #115dbe;
  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: #115dbe;
  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__cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.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(16, 32, 63, 0.62);
  font-weight: 600;
}

.jobs-panel__count {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(24, 38, 74, 0.06);
  color: rgba(16, 32, 63, 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(16, 32, 63, 0.08);
  border-radius: 999px;
  background: rgba(24, 38, 74, 0.04);
  color: rgba(16, 32, 63, 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(30, 144, 255, 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(16, 32, 63, 0.72);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

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

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

.jobs-filter-tabs__item--active strong {
  color: #115dbe;
}

: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(98, 180, 255, 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: #115dbe;
}

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

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

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

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

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

:root[data-theme="dark"] .job-row .text-muted {
  color: rgba(231, 237, 247, 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(98, 180, 255, 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(16, 32, 63, 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(231, 237, 247, 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(16, 32, 63, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 50px rgba(16, 32, 63, 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(30, 144, 255, 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(207, 226, 255, 0.16);
  background:
    radial-gradient(circle at top left, rgba(98, 180, 255, 0.14), transparent 46%),
    rgba(18, 31, 49, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

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

:root[data-theme="dark"] .job-context-menu__item:hover,
:root[data-theme="dark"] .job-context-menu__item:focus {
  background: rgba(98, 180, 255, 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(231, 237, 247, 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(16, 32, 63, 0.28);
}

.job-assign-dialog::backdrop {
  background: rgba(15, 29, 56, 0.38);
  backdrop-filter: blur(5px);
}

.job-assign-dialog__card {
  padding: 1.25rem;
  border: 1px solid rgba(16, 32, 63, 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(16, 32, 63, 0.48);
  font-size: 1.55rem;
  line-height: 1;
}

.job-assign-dialog__ref {
  margin: 0 0 0.85rem;
  color: rgba(16, 32, 63, 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(16, 32, 63, 0.08);
}

.job-details-list dt {
  color: rgba(16, 32, 63, 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(16, 32, 63, 0.08);
  border-radius: 0.9rem;
  background: rgba(244, 248, 252, 0.86);
}

.job-log-item__time {
  color: rgba(16, 32, 63, 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(16, 32, 63, 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: #10243e;
}

: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(235, 245, 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(235, 245, 255, 0.68);
}

.admin-panel__body {
  padding: 1.5rem;
}

.admin-panel__hint {
  margin: 1rem 0 0;
  color: rgba(16, 32, 63, 0.64);
}

.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(16, 32, 63, 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-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(16, 32, 63, 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(16, 32, 63, 0.72);
  font-weight: 800;
  text-decoration: none;
}

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

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

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

.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(16, 32, 63, 0.08);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(16, 32, 63, 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(16, 32, 63, 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(30, 144, 255, 0.08);
  text-decoration: none;
}

.admin-subtabs__item--active {
  background: rgba(24, 38, 74, 0.9);
  color: #fff;
}

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

.admin-plain-input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(16, 32, 63, 0.08);
  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(16, 32, 63, 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(16, 32, 63, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: rgba(16, 32, 63, 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(17, 93, 190, 0.32);
  background: rgba(17, 93, 190, 0.12);
  color: #0d4f9b;
  box-shadow: 0 0 0 1px rgba(17, 93, 190, 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(30, 144, 255, 0.16);
  border-radius: 1rem;
  background: rgba(30, 144, 255, 0.06);
}

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

.driver-app-qr a {
  margin-top: 0.25rem;
  color: #115dbe;
  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-vehicle-row,
.admin-account-row,
.tariff-row {
  cursor: context-menu;
}

.admin-driver-row--active,
.admin-vehicle-row--active,
.admin-account-row--active,
.tariff-row--active {
  outline: 2px solid rgba(30, 144, 255, 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(31, 70, 58, 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(31, 70, 58, 0.16);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 1rem 2.5rem rgba(22, 45, 39, 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(23, 155, 118, 0.16), transparent 32rem),
    linear-gradient(135deg, #eef4f1 0%, #f8faf8 42%, #e5ece8 100%);
  color: #20342e;
  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(31, 70, 58, 0.12);
  border-radius: 1.4rem;
  background: linear-gradient(135deg, #ffffff, #eff8f4);
  box-shadow: 0 1.4rem 3rem rgba(28, 58, 49, 0.12);
}

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

.api-explorer-hero h1 {
  margin: 0;
  color: #162f28;
  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: #557169;
}

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

.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(31, 70, 58, 0.12);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1rem 2.5rem rgba(28, 58, 49, 0.1);
}

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

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

.api-explorer-auth-card p,
.api-endpoint-card p {
  color: #5b756d;
}

.api-explorer-auth-card label,
.api-path-param,
.api-query-grid label,
.api-test-grid label {
  display: grid;
  gap: 0.35rem;
  color: #28443d;
  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(31, 70, 58, 0.16);
  border-radius: 0.75rem;
  background: #f8fbfa;
}

.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(31, 70, 58, 0.12);
  background: #173c34;
}

.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: #7ee0c4;
  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: #dffaf2;
  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: #dcf7ef;
  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(36, 193, 145, 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: #2463a7;
}

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

.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: #173c34;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.api-endpoint-card__head em {
  color: #739087;
  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: #179b76;
}

.api-method--get {
  background: #2463a7;
}

.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(23, 155, 118, 0.18);
  border-radius: 0.85rem;
  background: #eef8f4;
  color: #173c34;
  white-space: pre-wrap;
}

.api-request-sample::before {
  content: "Example request";
  display: block;
  margin-bottom: 0.45rem;
  color: #148363;
  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: #10251f;
  color: #d7fff2;
  white-space: pre-wrap;
}

.api-response::before {
  content: "Example response / live response";
  display: block;
  margin-bottom: 0.45rem;
  color: #7ee0c4;
  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, #179b76, #0f6f58);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 0.75rem 1.4rem rgba(23, 155, 118, 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(16, 32, 63, 0.08);
  border-radius: 0.75rem;
  background: rgba(244, 247, 251, 0.72);
  font-weight: 800;
  color: rgba(16, 32, 63, 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: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.admin-company-card div {
  padding: 1rem;
  border: 1px solid rgba(16, 32, 63, 0.08);
  border-radius: 1rem;
  background: rgba(244, 247, 251, 0.74);
}

.admin-company-card span {
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(16, 32, 63, 0.55);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

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

.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(16, 32, 63, 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(16, 32, 63, 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(30, 144, 255, 0.16);
  border-radius: 1rem;
  background: rgba(30, 144, 255, 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(16, 32, 63, 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(16, 32, 63, 0.06);
  color: rgba(16, 32, 63, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
}

.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(30, 144, 255, 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;
}

.login-card__logo {
  height: 30px;
}

.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(98, 180, 255, 0.12), transparent 36%),
    var(--dispatch-page);
}

:root[data-theme="dark"] .login-card {
  background:
    radial-gradient(circle at top left, rgba(98, 180, 255, 0.16), transparent 42%),
    linear-gradient(160deg, rgba(18, 31, 49, 0.98), rgba(11, 20, 34, 0.98));
  border-color: rgba(207, 226, 255, 0.18);
}

:root[data-theme="dark"] .login-card__logo-frame {
  background: rgba(98, 180, 255, 0.15);
  border-color: rgba(98, 180, 255, 0.7);
}

:root[data-theme="dark"] .login-form .form-control {
  background: rgba(23, 38, 59, 0.94);
  border-color: rgba(207, 226, 255, 0.16);
  color: #fff;
}

:root[data-theme="dark"] .login-form .form-control:focus {
  border-color: var(--dispatch-blue);
  box-shadow: 0 0 0 0.2rem rgba(98, 180, 255, 0.18);
}

.driver-app-body {
  overflow: hidden;
  background: #0f1d38;
}

.driver-app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #0f1d38;
}

.driver-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0f1d38;
}

.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: #10203f;
  font-size: 0.8rem;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(16, 32, 63, 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(16, 32, 63, 0.95);
  color: #fff;
}

.driver-map-orientation--active::before {
  color: #62b4ff;
}

.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: #10203f;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(16, 32, 63, 0.22);
  backdrop-filter: blur(10px);
}

.driver-map-heat--active {
  background: rgba(16, 32, 63, 0.95);
  color: #fff;
}
.driver-top-card {
  position: absolute;
  top: 1rem;
  right: 1rem;
  left: 1rem;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(16, 32, 63, 0.16);
  pointer-events: none;
}

.driver-top-card span {
  display: block;
  color: rgba(16, 32, 63, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.driver-top-card a {
  color: #115dbe;
  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.55rem;
  flex-wrap: wrap;
  pointer-events: auto;
}

.driver-menu-button {
  display: inline-grid;
  place-items: center;
  gap: 0.22rem;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(16, 32, 63, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(16, 32, 63, 0.12);
}

.driver-menu-button span {
  display: block;
  width: 1.25rem;
  height: 0.16rem;
  border-radius: 999px;
  background: #10203f;
}

.driver-menu-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  padding: 0.9rem;
  background: rgba(15, 29, 56, 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(16, 32, 63, 0.1);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(30, 144, 255, 0.13), transparent 44%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(16, 32, 63, 0.26);
}

.driver-menu-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: rgba(16, 32, 63, 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(16, 32, 63, 0.55);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.driver-menu-identity strong {
  color: #10203f;
  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(16, 32, 63, 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(16, 32, 63, 0.08);
  border-radius: 0.9rem;
  background: rgba(16, 32, 63, 0.04);
  color: #10203f;
  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(16, 32, 63, 0.08);
}

.driver-menu-version span {
  color: rgba(16, 32, 63, 0.55);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.driver-menu-version strong {
  color: #10203f;
  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(16, 32, 63, 0.95), rgba(17, 93, 190, 0.92));
  color: #fff;
  box-shadow: 0 16px 42px rgba(16, 32, 63, 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.08em;
  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(24, 38, 74, 0.08);
  color: rgba(16, 32, 63, 0.62);
  font-size: 0.72rem;
  font-weight: 850;
}

.driver-wake-lock-status--active {
  background: rgba(25, 135, 84, 0.12);
  color: #167245;
}

.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: #e6f6ea;
  color: #116232;
}

.job-fare-box--price {
  background: #fde8e8;
  color: #9b1c1c;
}

.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: #18b957;
  box-shadow: 0 0 0 0 rgba(24, 185, 87, 0.5);
  animation: driverAwakePulse 1.15s infinite;
}

@keyframes driverAwakePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 185, 87, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(24, 185, 87, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(24, 185, 87, 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(15, 29, 56, 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(16, 32, 63, 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(16, 32, 63, 0.68);
  font-weight: 750;
}

.driver-install-help__close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  color: rgba(16, 32, 63, 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(15, 29, 56, 0.86);
  backdrop-filter: blur(9px);
}

.driver-cancelled-overlay {
  position: absolute;
  inset: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 29, 56, 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(15, 29, 56, 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(15, 29, 56, 0.42);
  backdrop-filter: blur(5px);
}

.driver-endtrip-card {
  display: grid;
  gap: 0.9rem;
  width: min(24rem, 100%);
  padding: 1.15rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.98);
  color: #10203f;
  box-shadow: 0 24px 70px rgba(16, 32, 63, 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;
  gap: 0.8rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(16, 32, 63, 0.05);
  font-weight: 900;
}

.driver-endtrip-lines input {
  width: 8rem;
  text-align: right;
}

.driver-endtrip-total {
  background: rgba(25, 135, 84, 0.12) !important;
  color: #116232;
}

.driver-endtrip-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.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(16, 32, 63, 0.06);
}

.driver-message {
  padding: 0.55rem 0.65rem;
  border-radius: 0.85rem;
  background: #fff;
}

.driver-message--mine {
  background: rgba(17, 93, 190, 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%, #eef6ff 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(16, 32, 63, 0.68);
  font-weight: 760;
}

.driver-update-overlay__spinner {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 1rem;
  border: 0.35rem solid rgba(17, 93, 190, 0.16);
  border-top-color: #115dbe;
  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: 5;
  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(16, 32, 63, 0.16);
}

.driver-tab {
  border: 0;
  border-radius: 0.8rem;
  padding: 0.7rem 0.35rem;
  background: transparent;
  color: rgba(16, 32, 63, 0.68);
  font-weight: 900;
}

.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(16, 32, 63, 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(16, 32, 63, 0.08);
  background: transparent;
  text-align: left;
}

.driver-list-item span,
.driver-list-item em,
.driver-empty {
  color: rgba(16, 32, 63, 0.62);
  font-size: 0.86rem;
}

.driver-list-item--muted {
  opacity: 0.62;
}

.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(16, 32, 63, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -18px 48px rgba(16, 32, 63, 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(16, 32, 63, 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(16, 32, 63, 0.08);
  color: rgba(16, 32, 63, 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: #115dbe;
  color: #fff;
  box-shadow: 0 10px 26px rgba(17, 93, 190, 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(16, 32, 63, 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(17, 93, 190, 0.1);
  color: #115dbe;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.driver-turns {
  position: absolute;
  top: 0.85rem;
  right: 4.45rem;
  left: 1rem;
  z-index: 6;
  display: grid;
  gap: 0.55rem;
  min-height: 8.9rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, rgba(16, 32, 63, 0.96), rgba(17, 93, 190, 0.93));
  color: #fff;
  box-shadow: 0 18px 46px rgba(16, 32, 63, 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;
}

.driver-turns__arrow {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1rem;
  background: #fff;
  color: #10203f;
  font-size: 3.1rem;
  font-weight: 950;
  line-height: 1;
}

.driver-turns__instruction {
  min-width: 0;
}

.driver-turns__instruction span,
.driver-turns__instruction em {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.driver-turns__instruction strong {
  display: block;
  margin: 0.08rem 0;
  color: #fff;
  font-size: clamp(1.15rem, 4vw, 1.75rem);
  font-weight: 950;
  line-height: 1.08;
}

.driver-turns__queue {
  display: grid;
  gap: 0.35rem;
  max-height: 7rem;
  overflow-y: auto;
}

.driver-turns__queue div {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.38rem 0.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
}

.driver-turns__queue span,
.driver-turns__queue strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.driver-turns__queue p {
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@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-bottom-tabs,
:root[data-theme="dark"] .driver-list-panel,
:root[data-theme="dark"] .driver-job-drawer {
  border: 1px solid rgba(207, 226, 255, 0.14);
  background:
    radial-gradient(circle at top left, rgba(98, 180, 255, 0.12), transparent 42%),
    rgba(18, 31, 49, 0.95);
  color: #e7edf7;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

:root[data-theme="dark"] .driver-top-card 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(231, 237, 247, 0.72);
}

:root[data-theme="dark"] .driver-top-card 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: #9dd0ff;
}

:root[data-theme="dark"] .driver-top-card .btn-outline-primary {
  border-color: rgba(98, 180, 255, 0.32);
  background: rgba(98, 180, 255, 0.12);
  color: #cfe7ff;
}

:root[data-theme="dark"] .driver-menu-button {
  border-color: rgba(207, 226, 255, 0.18);
  background: rgba(7, 17, 31, 0.62);
}

:root[data-theme="dark"] .driver-menu-button span {
  background: #e7edf7;
}

:root[data-theme="dark"] .driver-menu-card {
  border-color: rgba(207, 226, 255, 0.16);
  background:
    radial-gradient(circle at top left, rgba(98, 180, 255, 0.14), transparent 44%),
    rgba(18, 31, 49, 0.98);
  color: #e7edf7;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.46);
}

:root[data-theme="dark"] .driver-menu-close {
  color: rgba(231, 237, 247, 0.62);
}

:root[data-theme="dark"] .driver-menu-identity span {
  color: rgba(231, 237, 247, 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(207, 226, 255, 0.12);
}

:root[data-theme="dark"] .driver-menu-version {
  border-top-color: rgba(207, 226, 255, 0.12);
}

:root[data-theme="dark"] .driver-menu-version span {
  color: rgba(231, 237, 247, 0.62);
}

:root[data-theme="dark"] .driver-menu-version strong {
  color: #ffffff;
}

:root[data-theme="dark"] .driver-menu-toggle {
  border-color: rgba(207, 226, 255, 0.13);
  background: rgba(231, 237, 247, 0.07);
}

:root[data-theme="dark"] .driver-map-orientation {
  border-color: rgba(207, 226, 255, 0.28);
  background: rgba(18, 31, 49, 0.94);
  color: #e7edf7;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .driver-map-orientation--active {
  background: var(--dispatch-blue);
  color: #07111f;
}

:root[data-theme="dark"] .driver-wake-lock-status {
  background: rgba(207, 226, 255, 0.1);
  color: rgba(231, 237, 247, 0.72);
}

:root[data-theme="dark"] .driver-wake-lock-status--active {
  background: rgba(24, 185, 87, 0.18);
  color: #8df0b5;
}

:root[data-theme="dark"] .driver-tab {
  color: rgba(231, 237, 247, 0.74);
}

:root[data-theme="dark"] .driver-tab:hover,
:root[data-theme="dark"] .driver-tab:focus {
  background: rgba(98, 180, 255, 0.12);
  color: #ffffff;
}

:root[data-theme="dark"] .driver-tab--active {
  background: var(--dispatch-blue);
  color: #07111f;
}

:root[data-theme="dark"] .driver-list-item,
:root[data-theme="dark"] .driver-empty {
  border-bottom-color: rgba(207, 226, 255, 0.12);
  color: rgba(231, 237, 247, 0.72);
}

:root[data-theme="dark"] .driver-list-item:hover,
:root[data-theme="dark"] .driver-list-item:focus {
  background: rgba(98, 180, 255, 0.14);
}

:root[data-theme="dark"] .driver-job-drawer__handle {
  background: rgba(231, 237, 247, 0.28);
}

:root[data-theme="dark"] .driver-job-distance {
  background: rgba(98, 180, 255, 0.14);
  color: #cfe7ff;
}

: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(207, 226, 255, 0.14);
  background:
    radial-gradient(circle at top left, rgba(98, 180, 255, 0.14), transparent 44%),
    linear-gradient(160deg, rgba(18, 31, 49, 0.98), rgba(11, 20, 34, 0.98));
  color: #e7edf7;
}

: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(231, 237, 247, 0.72);
}

:root[data-theme="dark"] .driver-message-list {
  background: rgba(7, 17, 31, 0.58);
}

:root[data-theme="dark"] .driver-message {
  background: rgba(231, 237, 247, 0.08);
}

:root[data-theme="dark"] .driver-message--mine {
  background: rgba(98, 180, 255, 0.16);
}

:root[data-theme="dark"] .driver-message span {
  color: rgba(231, 237, 247, 0.68);
}

:root[data-theme="dark"] .zones-overlay__card,
:root[data-theme="dark"] .zones-overlay__zone {
  border-color: rgba(207, 226, 255, 0.16);
  background: rgba(18, 31, 49, 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;
  }

  .dispatch-shell {
    height: calc(100vh - 78px);
    overflow: hidden;
  }

  .dispatch-hero {
    overflow: hidden;
  }

  .dispatch-split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
    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-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .dispatch-shell {
    height: calc(100vh - 78px);
    min-height: 0;
    overflow: hidden;
  }

  body:not(.admin-body):not(.driver-app-body):not(.driver-login-body) {
    overflow: hidden;
  }

  .dispatch-hero {
    overflow: hidden;
  }

  .dispatch-split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  }

  .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));
  }
}

@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;
  z-index: 100000;
  background: rgba(7, 17, 31, 0.58);
  backdrop-filter: blur(3px);
}

.dispatch-update-button {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: grid;
  gap: 0.15rem;
  min-width: 13rem;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 0.8rem;
  background: #ffd166;
  color: #10203f;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  text-align: left;
  animation: dispatch-update-pulse 1.1s ease-in-out infinite;
}

.dispatch-update-button span {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dispatch-update-button strong {
  font-size: 1.02rem;
  line-height: 1.1;
}

@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);
  }
}
