:root {
  --paper: #f4f6fb;
  --paper-2: #eaeef7;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #eef2fa;
  --ink: #0f172a;
  --ink-2: #33405c;
  --muted: #5c6a86;
  --faint: #8a96ae;
  --label: #33405c;
  --line: rgba(15, 23, 42, 0.1);
  --line-2: rgba(15, 23, 42, 0.18);
  --line-soft: rgba(15, 23, 42, 0.06);
  --accent: #2f6bf0;
  --accent-2: #1d54cf;
  --accent-soft: rgba(47, 107, 240, 0.1);
  --focus: #2f6bf0;
  --ok: #0f7d5c;
  --ok-soft: rgba(15, 125, 92, 0.1);
  --warn: #a1620a;
  --warn-soft: rgba(201, 122, 12, 0.12);
  --bad: #b42318;
  --bad-soft: rgba(180, 35, 24, 0.1);
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-2: 0 24px 48px -40px rgba(15, 23, 42, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
}

:root[data-theme="dark"] {
  --paper: #090d18;
  --paper-2: #0e1524;
  --surface: #111a2c;
  --surface-2: #16203a;
  --surface-3: #1b273f;
  --ink: #eef2fb;
  --ink-2: #c3ccdf;
  --muted: #8e9ab4;
  --faint: #6b7793;
  --label: #c3ccdf;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.2);
  --line-soft: rgba(255, 255, 255, 0.055);
  --accent: #5b8cff;
  --accent-2: #8fb0ff;
  --accent-soft: rgba(91, 140, 255, 0.16);
  --focus: #5b8cff;
  --ok: #6ee7b7;
  --ok-soft: rgba(52, 211, 153, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.14);
  --bad: #fca5a5;
  --bad-soft: rgba(248, 113, 113, 0.14);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  --shadow-2: 0 30px 60px -50px #000;
}

body {
  font-family: "Inter", "Segoe UI", -apple-system, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.003em;
  background: var(--paper);
  color: var(--ink);
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

.company-shell {
  background: var(--paper);
}

.navpanel {
  width: 252px;
  padding: 14px 12px;
  background: var(--paper-2);
  border-right: 1px solid var(--line);
}

.navpanel__brand {
  padding: 8px 10px 18px;
}

.navpanel__brand b {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
}

.navpanel__brand small {
  font-size: 11.5px;
  color: var(--faint);
}

.navpanel__area {
  border: 0;
  background: none;
  padding: 16px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.navpanel__link {
  height: 36px;
  padding: 0 11px;
  gap: 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.navpanel__link:hover {
  background: var(--line-soft);
  color: var(--ink-2);
}

.navpanel__link[aria-current="true"] {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}

.navpanel__link svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.topbar {
  height: 62px;
  padding: 0 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.scope {
  color: var(--ink-2);
}

.topbar-mode,
.topbar-sep {
  color: var(--faint);
}

.pagehead {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 28px 32px 8px;
  gap: 24px;
  align-items: flex-start;
}

.pagehead h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.pagehead p {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 78ch;
}

.pagehead__search {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.workspace__main {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 16px 32px 64px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.panel + .panel,
.panel + .body--split,
.body--split + .panel {
  margin-top: 18px;
}

.panel__head {
  min-height: 0;
  padding: 18px 22px 16px;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
  background: none;
}

.panel__head h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.panel__head p {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.panel__metric {
  height: 26px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 12.5px;
  font-weight: 650;
}

.panel__tools {
  gap: 8px;
}

.panel__foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--faint);
  background: var(--surface-2);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 18px;
}

.section-head h1 {
  margin: 6px 0 6px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.section-head p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 80ch;
}

.workspace__main .stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.stat-card:first-child {
  border-top-color: var(--accent);
}

.stat-card > span {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card b {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: var(--ink);
}

.stat-card small {
  margin-top: 2px;
  font-size: 12px;
  color: var(--faint);
}

.body--split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.body__main,
.body__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.checklist {
  padding: 0;
}

.check-row,
.attention-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 22px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}

.check-row:last-child,
.attention-row:last-child {
  border-bottom: 0;
}

.check-row b,
.attention-row b {
  margin-left: auto;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.check-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: var(--line-soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.check-icon.is-done {
  background: var(--ok-soft);
  color: var(--ok);
}

.dashboard-alert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-size: 13.5px;
}

.button {
  height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: var(--surface);
  color: var(--ink-2);
}

.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

:root[data-theme="dark"] .button--primary {
  color: #06101f;
}

.button--quiet {
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--ink-2);
}

.button--danger {
  background: var(--bad-soft);
  border-color: transparent;
  color: var(--bad);
}

.button--small {
  height: 30px;
  padding: 0 11px;
  font-size: 12px;
}

.button svg {
  width: 15px;
  height: 15px;
}

.link-button {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
}

.data-table,
table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  color: var(--ink-2);
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 44px;
  padding: 0 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: left;
  white-space: nowrap;
}

.data-table tbody td {
  height: 60px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: var(--accent-soft);
}

.cell-muted,
.cell-note {
  color: var(--faint);
  font-size: 12px;
}

.cell-actions {
  text-align: right;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.pill--ok {
  border-color: transparent;
  background: var(--ok-soft);
  color: var(--ok);
}

.pill--warn {
  border-color: transparent;
  background: var(--warn-soft);
  color: var(--warn);
}

.pill--danger {
  border-color: transparent;
  background: var(--bad-soft);
  color: var(--bad);
}

.pill--info {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
}

.progress-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line-soft);
  margin: 0 22px 12px;
  overflow: hidden;
}

.progress-track > span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.filters,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.panel .filters > .filters__actions:first-of-type {
  margin-left: 0;
  margin-right: auto;
}

.filters__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}

.filters {
  justify-content: space-between;
}

.filters > .filters__actions:last-of-type {
  flex: 1 1 100%;
  justify-content: flex-end;
}

.filters__note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12.5px;
  color: var(--faint);
}

.field--inline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field--inline input {
  min-width: 150px;
}

.field span {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.notice {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  padding: 12px 14px;
}

.notice--error {
  border-color: transparent;
  background: var(--bad-soft);
  color: var(--bad);
}

.notice--success {
  border-color: transparent;
  background: var(--ok-soft);
  color: var(--ok);
}

.empty-state {
  padding: 34px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.empty-state b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 14.5px;
}

.tabs,
.tab-row {
  gap: 4px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: none;
}

.tabs button,
.tab-row button {
  height: 42px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--muted);
  border: 0;
  background: none;
}

.tabs button[aria-selected="true"],
.tab-row button[aria-selected="true"],
.tabs button[aria-current="true"],
.tab-row button[aria-current="true"] {
  color: var(--ink);
  font-weight: 650;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.login {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: radial-gradient(circle at 50% 0%, var(--accent-soft), transparent 48%), var(--paper);
}

.login .login__aside {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 20px;
  border: 0;
  background: none;
  width: min(404px, 100%);
}

.login .login__message,
.login .login__switches {
  display: none;
}

.login .login__main {
  width: min(404px, 100%);
  padding: 0;
  gap: 14px;
}

.login .login__box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.login .login__box .button {
  width: 100%;
  height: 46px;
}

.login .login__title h2 {
  margin: 2px 0 4px;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.login .login__title p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.login .field span {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.login .field input {
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 14px;
}

.login .field input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.login__aux-link {
  align-self: center;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
}

.login__signout {
  width: 100%;
}

.login__foot {
  margin: 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--faint);
}

.login .choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login .locale-switch {
  display: inline-flex;
}

@media (max-width: 1180px) {
  .body--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace__main .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .pagehead,
  .workspace__main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .workspace__main .stat-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

[data-slot="fleet-drivers-table"],
[data-slot="fleet-vehicles-table"] {
  table-layout: fixed;
}

[data-slot="fleet-drivers-table"] th:nth-child(1),
[data-slot="fleet-vehicles-table"] th:nth-child(1) {
  width: 42px;
}

[data-slot="fleet-drivers-table"] th:nth-child(2) {
  width: 25%;
}

[data-slot="fleet-drivers-table"] th:nth-child(3) {
  width: 15%;
}

[data-slot="fleet-drivers-table"] th:nth-child(4) {
  width: 9%;
}

[data-slot="fleet-drivers-table"] th:nth-child(5) {
  width: 11%;
}

[data-slot="fleet-drivers-table"] th:nth-child(6) {
  width: 24%;
}

[data-slot="fleet-drivers-table"] th:nth-child(7),
[data-slot="fleet-vehicles-table"] th:last-child {
  width: 62px;
}

[data-slot="fleet-drivers-table"] td,
[data-slot="fleet-vehicles-table"] td {
  height: auto;
  min-height: 56px;
  padding: 12px 16px;
  vertical-align: middle;
}

.cell-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cell-identity > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cell-identity b,
.cell-identity small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cell-note {
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}

.data-table .pill,
.data-table .chip {
  white-space: nowrap;
}

.cell-actions {
  width: 62px;
  text-align: right;
  white-space: nowrap;
}
