/* Office presentation only. Driver portals and printed documents retain their styles. */
@media screen {
body:not(.public-portal) {
  --bg: #f5f6f7;
  --surface: #fff;
  --surface-2: #eef1f2;
  --ink: #202629;
  --muted: #5d686e;
  --line: #dce1e4;
  --charcoal: #1d2225;
  --charcoal-2: #2c3337;
  --gold: #b38a4b;
  --gold-dark: #745728;
  --teal: #176b63;
  --green: #24663e;
  --red: #a6322d;
  --blue: #285c86;
  --shadow: none;
  --dispatch-radius: 6px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  background: var(--bg);
}

body:not(.public-portal) :is(button, input, select, textarea) {
  letter-spacing: 0;
}

body:not(.public-portal) :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #087b73;
  outline-offset: 3px;
  scroll-margin-block: 140px 24px;
}

body:not(.public-portal) button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

body:not(.public-portal) [hidden] {
  display: none !important;
}

body:not(.public-portal) .app-shell {
  grid-template-columns: 216px minmax(0, 1fr);
}

body:not(.public-portal) .sidebar {
  gap: 20px;
  padding: 20px 12px 16px;
  background: var(--charcoal);
  color: #e4e8ea;
  scrollbar-width: thin;
  scrollbar-color: #576067 transparent;
}

body:not(.public-portal) .brand {
  gap: 10px;
  padding: 0 8px 18px;
  border-bottom: 1px solid #3c4347;
}

body:not(.public-portal) .brand-logo {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 4px;
}

body:not(.public-portal) .brand strong {
  font-size: 16px;
  font-weight: 650;
  color: #fff;
}

body:not(.public-portal) .brand span {
  margin-top: 3px;
  font-size: 11px;
  color: #b8c0c4;
}

body:not(.public-portal) .nav-list {
  gap: 2px;
}

body:not(.public-portal) .nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 4px;
  background: transparent;
  color: #c5cdd1;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

body:not(.public-portal) .nav-item:hover {
  background: #293034;
  color: #fff;
}

body:not(.public-portal) .nav-item.active {
  background: #353b3c;
  box-shadow: inset 2px 0 0 #cfad72;
  color: #fff;
  font-weight: 600;
}

body:not(.public-portal) .nav-item.active .dispatch-icon {
  color: #e1c38e;
}

body:not(.public-portal) .nav-item .nav-badge {
  margin-left: auto;
  flex-shrink: 0;
}

body:not(.public-portal) .sidebar :focus-visible {
  outline-color: #6bd1c6;
}

body:not(.public-portal) .sidebar-panel {
  gap: 5px;
  padding: 16px 8px 0;
  border-color: #3c4347;
  color: #d4dadd;
  font-size: 12px;
}

body:not(.public-portal) .sidebar-panel :is(.label, span:last-child) {
  color: #b8c0c4;
  font-size: 11px;
}

body:not(.public-portal) .workspace {
  min-width: 0;
  padding: 24px;
}

body:not(.public-portal) .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

body:not(.public-portal) h1 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.public-portal) .brand-subtitle {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
}

body:not(.public-portal) .brand-subtitle span {
  box-shadow: none;
}

body:not(.public-portal) #officeAccessLabel {
  font-size: 11px;
}

body:not(.public-portal) .topbar-actions {
  min-width: 0;
  align-items: end;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

body:not(.public-portal) .topbar-actions .search {
  flex: 1 1 240px;
  width: auto;
  max-width: 480px;
  min-width: 0;
}

body:not(.public-portal) :is(.search, .inline-control) > span {
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
}

body:not(.public-portal) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-width: 0;
  border-color: #929da3;
  border-radius: 5px;
  background-color: #fff;
  color: var(--ink);
  font-size: 13px;
}

body:not(.public-portal) :is(input:not([type="checkbox"]):not([type="radio"]), select) {
  min-height: 36px;
  padding: 7px 10px;
}

body:not(.public-portal) :is(input, textarea)::placeholder {
  color: #69757b;
  opacity: 1;
}

body:not(.public-portal) :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--teal);
}

body:not(.public-portal) :is(.primary-button, .ghost-button, .danger-button, .small-button) {
  min-height: 36px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background-color 120ms ease, border-color 120ms ease;
}

body:not(.public-portal) .primary-button {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: #fff;
}

body:not(.public-portal) .primary-button:hover:not(:disabled) {
  background: #374146;
  border-color: #374146;
}

body:not(.public-portal) .ghost-button {
  background: #fff;
  color: var(--ink);
  border-color: #a4afb5;
}

body:not(.public-portal) .ghost-button:hover:not(:disabled) {
  background: #eaf0f1;
  border-color: #74838b;
}

body:not(.public-portal) .danger-button {
  background: #fff0ee;
  color: var(--red);
  border-color: #dba5a0;
}

body:not(.public-portal) .dispatch-has-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

body:not(.public-portal) .dispatch-icon {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  stroke-width: 1.75;
  pointer-events: none;
}

body:not(.public-portal) .metrics {
  gap: 0;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

body:not(.public-portal) .metrics article {
  padding: 12px 16px;
}

body:not(.public-portal) .metrics span {
  font-size: 11px;
  line-height: 1.5;
}

body:not(.public-portal) .metrics strong {
  margin-top: 5px;
  font-size: 21px;
  font-weight: 650;
}

body:not(.public-portal) :is(.eyebrow, th) {
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

body:not(.public-portal) .eyebrow {
  margin-bottom: 4px;
  font-size: 11px;
}

body:not(.public-portal) .toolbar {
  gap: 12px;
  min-width: 0;
  margin-bottom: 16px;
}

body:not(.public-portal) .segmented {
  min-width: 0;
  max-width: 100%;
  padding: 3px;
  gap: 2px;
  border-radius: 5px;
  border-color: var(--line);
  background: #e9edef;
  scrollbar-width: thin;
}

body:not(.public-portal) .filter {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 3px;
  color: #46545c;
  font-size: 12px;
  font-weight: 500;
}

body:not(.public-portal) .filter.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px #2026291a;
  font-weight: 650;
}

body:not(.public-portal) .board-toolbar {
  gap: 12px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.public-portal) .board-toolbar-copy {
  min-width: 0;
}

body:not(.public-portal) .board-toolbar-copy strong {
  font-size: 13px;
  font-weight: 600;
}

body:not(.public-portal) .board-period {
  border-radius: 5px;
  background: #fff;
}

body:not(.public-portal) .board-period button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 550;
}

body:not(.public-portal) .board-period button.active {
  background: var(--charcoal);
  color: #fff;
}

body:not(.public-portal) .board-empty-toggle {
  min-height: 36px;
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
}

body:not(.public-portal) .column {
  border-radius: var(--dispatch-radius);
  background: #edf0f2;
}

body:not(.public-portal) .column-header {
  min-height: 44px;
  border-top-width: 2px;
  padding: 10px 12px;
}

body:not(.public-portal) .column-header h2 {
  font-size: 13px;
  font-weight: 650;
}

body:not(.public-portal) .column-count {
  min-width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

body:not(.public-portal) .ride-card {
  gap: 10px;
  border-radius: 5px;
  box-shadow: none;
  padding: 12px;
}

body:not(.public-portal) .ride-card-time strong {
  font-size: 19px;
  font-weight: 650;
}

body:not(.public-portal) .ride-card-identity h3 {
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.public-portal) .ride-card .ride-card-header {
  flex-wrap: wrap;
  gap: 8px;
}

body:not(.public-portal) .ride-card-badges {
  flex-wrap: wrap;
}

body:not(.public-portal) .ride-card-badges :is(.type-pill, .status-pill) {
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
}

body:not(.public-portal) .board-route span {
  font-weight: 550;
  -webkit-line-clamp: 2;
}

body:not(.public-portal) .board-assignment > div {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

body:not(.public-portal) .board-assignment span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
  text-transform: none;
}

body:not(.public-portal) .board-assignment strong {
  font-weight: 600;
}

body:not(.public-portal) .driver-planning-card {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  border-width: 1px 0;
  border-radius: 0;
  padding: 16px;
}

body:not(.public-portal) .driver-planning-card > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

body:not(.public-portal) .driver-planning-card > div:first-child {
  grid-column: 1 / -1;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

body:not(.public-portal) .driver-planning-card .commission-pill {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.public-portal) .board-card-actions :is(button, summary, a) {
  min-height: 32px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

body:not(.public-portal) .board-no-results {
  border-radius: 0;
  border-style: solid;
  border-width: 1px 0;
  background: #fff;
}

body:not(.public-portal) :is(.section-head, .planning-section-head, .roster-section-head) {
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

body:not(.public-portal) :is(.section-head h2, .admin-panel h2) {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

body:not(.public-portal) .planning-date-controls {
  min-width: 0;
  flex-wrap: wrap;
}

body:not(.public-portal) .planning-type-toolbar {
  border: 0;
  border-radius: 0;
  padding: 0 0 12px;
  background: transparent;
  box-shadow: none;
}

body:not(.public-portal) .planning-type-segmented {
  border-radius: 5px;
}

body:not(.public-portal) .schedule-type-filter {
  font-size: 12px;
  font-weight: 550;
}

/* Keep category identity without white text on pale priority colours. */
body:not(.public-portal) .schedule-type-filter.active:not([data-schedule-type="all"]) {
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 -3px var(--schedule-type-color);
}

body:not(.public-portal) :is(.planning-day-summary, .time-tracking-summary) {
  border-radius: 0;
  box-shadow: none;
}

body:not(.public-portal) .planning-day-summary article {
  padding: 12px 16px;
}

body:not(.public-portal) .schedule-row {
  grid-template-columns: 78px minmax(180px, 1.7fr) minmax(120px, .8fr) minmax(110px, .7fr) auto;
  gap: 12px;
  border-radius: 4px;
  box-shadow: none;
  font-size: 12px;
}

body:not(.public-portal) .schedule-row:hover {
  background: #f8fafb;
}

body:not(.public-portal) .schedule-row.driver-info-unread {
  background: #fff8e8;
}

body:not(.public-portal) .table-wrap {
  min-width: 0;
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
  scrollbar-width: thin;
  scrollbar-color: #9ca9af #eef1f2;
}

body:not(.public-portal) table {
  font-size: 12px;
  line-height: 1.5;
  background: #fff;
}

body:not(.public-portal) th {
  padding: 10px 12px;
  background: #edf0f2;
  color: #526068;
  font-size: 11px;
}

body:not(.public-portal) td {
  padding: 12px;
  vertical-align: middle;
}

body:not(.public-portal) tbody tr:hover {
  background: #eef5f5;
}

body:not(.public-portal) .resource-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

body:not(.public-portal) .resource-card {
  padding: 16px;
  border-top: 1px solid var(--line);
  border-radius: var(--dispatch-radius);
  box-shadow: none;
  font-size: 12px;
}

body:not(.public-portal) .resource-card h3 {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 650;
}

body:not(.public-portal) .resource-card dl > div {
  border-top: 1px solid #edf0f2;
  padding-top: 8px;
}

body:not(.public-portal) .form-grid label {
  font-size: 12px;
  font-weight: 600;
}

body:not(.public-portal) .portal-subnav button {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:not(.public-portal) .admin-panel {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 0;
  background: transparent;
  box-shadow: none;
}

body:not(.public-portal) .admin-panel h3 {
  font-size: 14px;
  font-weight: 650;
}

body:not(.public-portal) .roster-day {
  border-radius: 5px;
  background: #edf0f2;
}

body:not(.public-portal) .roster-entry-card {
  border-radius: 4px;
  box-shadow: none;
}

body:not(.public-portal) :is(.status-pill, .type-pill, .pill) {
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

body:not(.public-portal) .status-pill.status-assigned {
  color: #8e302a;
  background: #fcece9;
  border-color: #e7c2bd;
}

body:not(.public-portal) .status-pill.status-accepted {
  color: #245f3c;
  background: #e8f4ed;
  border-color: #bfdccb;
}

body:not(.public-portal) .status-pill:is(.status-enroute, .status-arrived, .status-passenger) {
  color: #234f78;
  background: #eaf2fa;
  border-color: #c4d8eb;
}

body:not(.public-portal) .status-pill.status-done {
  color: #345d46;
  background: #edf4ef;
  border-color: #c9dccf;
}

body:not(.public-portal) .status-pill:is(.status-noshow, .status-urgent) {
  color: #922e28;
  background: #ffebe7;
  border-color: #e8b8b0;
}

body:not(.public-portal) :is(.notification-popover, .office-notification, .notification-empty, .payroll-dashboard-panel, .payroll-control-band, .payroll-summary-strip) {
  border-radius: var(--dispatch-radius);
}

body:not(.public-portal) :is(.payroll-page-topbar h1, .payroll-page-topbar h2) {
  font-size: 22px;
}

body:not(.public-portal) .payroll-control-band {
  background: #fff;
  box-shadow: none;
}

body:not(.public-portal) .payroll-page :is(h2, h3, label, strong, button) {
  font-weight: 600;
}

body:not(.public-portal) .payroll-dashboard-panel {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.public-portal) .payroll-action-button {
  border-width: 0 0 1px;
  border-radius: 0;
  background: transparent;
}

body:not(.public-portal) .payroll-total-summary {
  gap: 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

body:not(.public-portal) .payroll-total-summary > div {
  padding: 16px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

body:not(.public-portal) .payroll-total-summary span {
  font-size: 12px;
  font-weight: 500;
}

body:not(.public-portal) .payroll-total-summary strong {
  font-size: 20px;
}

body:not(.public-portal) dialog:not(#nameboardDialog) {
  max-width: calc(100% - 24px);
  border-radius: var(--dispatch-radius);
  border-color: var(--line);
  box-shadow: 0 16px 56px #17212633;
}

body:not(.public-portal) dialog::backdrop {
  background: #17212699;
  backdrop-filter: none;
}

@media (min-width: 1280px) {
  body:not(.public-portal) .kanban {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }
}

@media (min-width: 981px) and (max-width: 1279px) {
  body:not(.public-portal) .app-shell { grid-template-columns: 200px minmax(0, 1fr); }
  body:not(.public-portal) .workspace { padding: 20px; }
  body:not(.public-portal) .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:not(.public-portal) .metrics article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  body:not(.public-portal) .metrics article:nth-child(3n) { border-right: 0; }
  body:not(.public-portal) .board-toolbar { align-items: stretch; flex-direction: column; }
  body:not(.public-portal) .board-toolbar-actions { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 1200px) and (min-width: 641px) {
  body:not(.public-portal) .schedule-row { grid-template-columns: 78px minmax(0, 1fr) minmax(110px, .65fr); }
  body:not(.public-portal) .schedule-row > :nth-child(n+4) { grid-column: 2 / -1; }
}

@media (max-width: 980px) {
  body:not(.public-portal) .app-shell { grid-template-columns: minmax(0, 1fr); }
  body:not(.public-portal) .sidebar { gap: 12px; padding: 12px 16px; max-width: 100%; }
  body:not(.public-portal) .brand { padding: 0; border: 0; }
  body:not(.public-portal) .brand-logo { width: 32px; height: 32px; flex-basis: 32px; }
  body:not(.public-portal) .brand strong { font-size: 14px; }
  body:not(.public-portal) .brand span { font-size: 10px; margin-top: 1px; }
  body:not(.public-portal) .nav-list { gap: 4px; padding: 3px; margin: 0 -3px; scrollbar-width: thin; scrollbar-color: #69757b transparent; }
  body:not(.public-portal) .nav-item { flex: 0 0 auto; min-height: 40px; padding: 8px 12px; font-size: 12px; }
  body:not(.public-portal) .nav-item.active { box-shadow: inset 0 -2px #cfad72; }
  body:not(.public-portal) .nav-item .dispatch-icon { width: 15px; height: 15px; flex-basis: 15px; }
  body:not(.public-portal) .workspace { padding: 20px; }
  body:not(.public-portal) .topbar { gap: 12px; }
  body:not(.public-portal) .board-toolbar-actions { align-items: stretch; }
}

@media (max-width: 640px) {
  body:not(.public-portal) .workspace { padding: 16px 12px 24px; }
  body:not(.public-portal) .sidebar { padding: 10px 12px; }
  body:not(.public-portal) .topbar { margin-bottom: 16px; padding-bottom: 16px; }
  body:not(.public-portal) h1 { font-size: 19px; }
  body:not(.public-portal) .topbar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body:not(.public-portal) .topbar-actions .search { max-width: none; width: 100%; }
  body:not(.public-portal) :is(.primary-button, .ghost-button, .danger-button, .small-button, .filter, .board-period button) { min-height: 44px; }
  body:not(.public-portal) .metrics { margin-bottom: 16px; }
  body:not(.public-portal) .metrics article { padding: 12px; }
  body:not(.public-portal) .metrics strong { font-size: 19px; }
  body:not(.public-portal) .board-period { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body:not(.public-portal) .board-period button { padding: 6px 4px; border-bottom: 0; }
  body:not(.public-portal) .board-period button:nth-child(2) { border-right: 1px solid var(--line); }
  body:not(.public-portal) .section-head { align-items: stretch; }
  body:not(.public-portal) .section-head h2 { font-size: 17px; }
  body:not(.public-portal) .section-head > div:first-child { flex-basis: 100%; }
  body:not(.public-portal) .schedule-row { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  body:not(.public-portal) .planning-date-controls { display: grid; }
  body:not(.public-portal) .board-card-actions :is(button, summary, a) { min-height: 40px; }
  body:not(.public-portal) .resource-grid { gap: 12px; }
  body:not(.public-portal) .resource-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.public-portal) *, body:not(.public-portal) *::before, body:not(.public-portal) *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Compact frosted black. Only the desktop header uses backdrop filtering. */
body:not(.public-portal) {
  color-scheme: dark;
  --bg: #101213;
  --surface: #171a1c;
  --surface-2: #222629;
  --ink: #f0f3f4;
  --muted: #b2bcc1;
  --line: #3d464c;
  --charcoal: #171a1c;
  --gold: #d7b477;
  --teal: #89d8ca;
  --green: #9be2b7;
  --red: #ffb6ae;
  --blue: #a9d5fa;
  --control-line: #7f8b92;
  --control-border: #7f8b92;
  --focus: #8ce1d1;
  background: var(--bg);
  color: var(--ink);
}

body:not(.public-portal) .app-shell { grid-template-columns: 200px minmax(0, 1fr); }
body:not(.public-portal) .workspace { padding: 16px; }
body:not(.public-portal) .sidebar { gap: 12px; padding: 16px 10px; background: #101213; border-right: 1px solid var(--line); }
body:not(.public-portal) .brand { padding: 0 6px 12px; }
body:not(.public-portal) .brand-logo { width: 36px; height: 36px; flex-basis: 36px; }
body:not(.public-portal) .nav-item { min-height: 34px; padding: 6px 9px; font-size: 12px; }
body:not(.public-portal) .nav-item.active { background: #2c3032; }
body:not(.public-portal) .sidebar-panel { padding-top: 10px; gap: 3px; }
body:not(.public-portal) .sidebar-panel :is(#todayRevenue, #todayLoadedKm) { display: none; }
body:not(.public-portal) .topbar { gap: 10px; padding: 8px 10px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
body:not(.public-portal) .topbar > div:first-child { min-width: 0; }
body:not(.public-portal) .topbar h1 { font-size: 18px; line-height: 1.25; }
body:not(.public-portal) .brand-subtitle { display: none; }
body:not(.public-portal) #officeAccessLabel { display: block; margin-top: 3px; font-size: 10px; }
body:not(.public-portal) .topbar-actions { gap: 6px; align-items: center; }
body:not(.public-portal) .topbar-actions .search { flex-basis: 150px; max-width: 240px; }
body:not(.public-portal) .topbar-actions .search > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body:not(.public-portal) h1 { font-size: 20px; }
body:not(.public-portal) :is(.section-head h2, .admin-panel h2, .payroll-page-topbar h1) { font-size: 16px; }
body:not(.public-portal) :is(.section-head, .planning-section-head, .roster-section-head) { gap: 8px; padding-bottom: 8px; margin-bottom: 8px; }
body:not(.public-portal) :is(.primary-button, .ghost-button, .danger-button, .small-button) { min-height: 32px; padding: 6px 10px; }
body:not(.public-portal) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { color-scheme: dark; background: #171b1e; border-color: var(--control-line); color: var(--ink); }
body:not(.public-portal) :is(input:not([type="checkbox"]):not([type="radio"]), select) { min-height: 32px; padding: 6px 8px; }
body:not(.public-portal) :is(input, textarea)::placeholder { color: var(--muted); }
body:not(.public-portal) :is(option, optgroup) { background: #171b1e; color: var(--ink); }
body:not(.public-portal) :is(.ghost-button, .small-button, .icon-button) { border-color: var(--control-line); background: #222629; color: var(--ink); }
body:not(.public-portal) .ghost-button:hover:not(:disabled) { background: #343d42; border-color: #a2afb6; }
body:not(.public-portal) :is(.primary-button, .board-card-actions .board-primary-action) { color: #fff; background: #245e55; border-color: #76bcae; }
body:not(.public-portal) :is(.primary-button, .board-card-actions .board-primary-action):hover:not(:disabled) { color: #fff; background: #2b7064; border-color: #9adccd; }
body:not(.public-portal) .danger-button { background: #492724; border-color: #c1847b; color: #ffb6ae; }
body:not(.public-portal) :is(button, input, select, textarea):disabled { opacity: 1; background: #1d2124; color: #a0abb1; border-color: #59656c; cursor: not-allowed; }
body:not(.public-portal) :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: #8ce1d1; }
body:not(.public-portal) :is(.toolbar, .board-toolbar) { margin-bottom: 8px; gap: 8px; }
body:not(.public-portal) .toolbar .inline-control { display: flex; align-items: center; gap: 8px; }
body:not(.public-portal) .board-toolbar { padding-bottom: 4px; }
body:not(.public-portal) .board-toolbar-copy .eyebrow { display: none; }
body:not(.public-portal) .board-toolbar-copy strong { color: var(--ink); font-size: 12px; }
body:not(.public-portal) :is(.board-empty-toggle, .planning-type-toolbar > span) { color: var(--muted); }
body:not(.public-portal) .metrics { margin-bottom: 8px; background: var(--surface); }
body:not(.public-portal) .metrics article { padding: 8px 12px; }
body:not(.public-portal) .metrics strong { font-size: 18px; margin-top: 2px; }
body:not(.public-portal):not([data-active-view="board"]):not([data-active-view="rides"]) .workspace > .metrics { display: none; }
body:not(.public-portal) :is(.segmented, .board-period, .planning-type-segmented) { background: #171a1c; border-color: var(--line); }
body:not(.public-portal) :is(.filter, .board-period button, .schedule-type-filter) { min-height: 30px; color: #c7d0d5; background: transparent; border-color: var(--line); }
body:not(.public-portal) :is(.filter.active, .board-period button.active, .schedule-type-filter.active) { background: #333c41; color: #fff; box-shadow: none; }
body:not(.public-portal) .schedule-type-filter.active:not([data-schedule-type="all"]) { background: #293136; color: #fff; box-shadow: inset 0 -3px var(--schedule-type-color); }
body:not(.public-portal) .column { background: #171a1c; border-color: var(--line); }
body:not(.public-portal) .column-header { min-height: 36px; padding: 7px 10px; background: #1e2326; border-bottom-color: var(--line); }
body:not(.public-portal) .column-header h2 { color: var(--ink); font-size: 12px; }
body:not(.public-portal) .column-count { background: #2a3237; border-color: #65727a; color: var(--ink); height: 22px; }
body:not(.public-portal) .ride-list { padding: 6px; gap: 6px; }
body:not(.public-portal) .ride-card { background: rgb(34 38 41 / 92%); border-top-color: var(--line); border-right-color: var(--line); border-bottom-color: var(--line); padding: 8px; gap: 7px; }
body:not(.public-portal) .ride-card .status-pill { display: none; }
body:not(.public-portal) .ride-card-time strong { color: var(--ink); font-size: 17px; }
body:not(.public-portal) :is(.ride-card-time span, .ride-card-identity > span, .board-assignment span, .schedule-assignment small) { color: var(--muted); }
body:not(.public-portal) :is(.ride-card-identity h3, .board-route span, .board-assignment strong, .schedule-main > strong, .schedule-time time, .schedule-assignment strong) { color: var(--ink); }
body:not(.public-portal) .board-route { padding: 6px 0; border-color: var(--line); }
body:not(.public-portal) .board-route b { background: #404c53; color: #fff; }
body:not(.public-portal) .board-route > div:last-child b { background: #76bcae; color: #101b18; }
body:not(.public-portal) :is(.board-card-actions button, .board-more-actions summary, .board-action-menu, .board-action-menu a) { color: var(--ink); background: #222629; border-color: #75828a; }
body:not(.public-portal) .board-card-actions .board-primary-action { color: #fff; background: #245e55; border-color: #76bcae; }
body:not(.public-portal) .board-card-facts span { background: #293035; color: #c7d0d5; border-color: var(--line); }
body:not(.public-portal) :is(.planning-day-summary, .driver-planning-card, .time-tracking-summary, .resource-card, .compact-ride, .invoice-row, .office-notification, .notification-popover) { background: var(--surface); border-color: var(--line); color: var(--ink); }
body:not(.public-portal) .planning-type-toolbar { padding-bottom: 8px; margin-bottom: 8px; }
body:not(.public-portal) .planning-day-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 8px; }
body:not(.public-portal) .planning-day-summary article:first-child { display: none; }
body:not(.public-portal) .planning-day-summary article { padding: 8px 12px; }
body:not(.public-portal) .planning-day-summary :is(span, small) { font-size: 11px; font-weight: 500; }
body:not(.public-portal) .planning-day-summary strong { font-size: 16px; }
body:not(.public-portal) .schedule-list { gap: 6px; }
body:not(.public-portal) .schedule-row { background: #1d2225; padding: 8px 10px; gap: 8px; border-top-color: var(--line); border-right-color: var(--line); border-bottom-color: var(--line); }
body:not(.public-portal) .schedule-row:hover { background: #293136; }
body:not(.public-portal) .schedule-row time { font-size: 18px; }
body:not(.public-portal) .schedule-row .ride-badges { min-width: 0; max-width: 160px; }
body:not(.public-portal) :is(.table-wrap, table, .payroll-control-band, .payroll-summary-strip, .payroll-timeline, .payroll-total-summary, .payroll-total-summary > div) { background: var(--surface); border-color: var(--line); }
body:not(.public-portal) th { background: #22292d; color: #c7d0d5; padding: 8px 10px; }
body:not(.public-portal) td { padding: 9px 10px; }
body:not(.public-portal) tbody tr:hover { background: #293638; }
body:not(.public-portal) :is(.resource-card, .driver-planning-card) { padding: 12px; }
body:not(.public-portal) .resource-grid { gap: 10px; }
body:not(.public-portal) .resource-card dl { gap: 5px; margin-top: 8px; }
body:not(.public-portal) .resource-card dl > div { padding-top: 5px; border-color: var(--line); }
body:not(.public-portal) .roster-day { background: #171a1c; border-color: var(--line); }
body:not(.public-portal) .roster-day > header { background: #222629; border-color: var(--line); }
body:not(.public-portal) .roster-day > header span { color: var(--ink); }
body:not(.public-portal) :is(.roster-entry-card, .roster-day-empty, .empty-state, .notification-empty, .board-no-results) { background: #222629; border-color: var(--line); color: var(--muted); }
body:not(.public-portal) .roster-entry-card { color: var(--ink); }
body:not(.public-portal) :is(.status-pill, .type-pill, .pill, .commission-pill) { color: #d2dbe0; background: #2b3338; border-color: #64717a; }
body:not(.public-portal) :is(.type-urgent, .status-pill:is(.status-assigned, .status-noshow, .status-urgent)) { color: #ffb6ae; background: #472824; border-color: #a5645d; }
body:not(.public-portal) .status-pill:is(.status-accepted, .status-done) { color: #9be2b7; background: #20392c; border-color: #5d9a76; }
body:not(.public-portal) :is(.type-defensie, .status-pill:is(.status-enroute, .status-arrived, .status-passenger)) { color: #a9d5fa; background: #203449; border-color: #6087aa; }
body:not(.public-portal) .type-vip { color: #f1d293; background: #3d3221; border-color: #ac8b4e; }
body:not(.public-portal) :is(.type-crew, .type-scheepvaart) { color: #97ded6; background: #203c3b; border-color: #589a96; }
body:not(.public-portal) .type-particulier { color: #f0b6d0; background: #422d38; border-color: #a9788f; }
body:not(.public-portal) .type-zakelijk { color: #d0c4f2; background: #352e47; border-color: #9180b4; }
body:not(.public-portal) :is(.board-alert, .board-notify-warning, .driver-submission-alert, .schedule-driver-attention, .live-location-note.pending, .duplicate-box, .payroll-free-note, .payroll-row-warning) { color: #f0cf91; background: #382d1e; border-color: #9b7c45; }
body:not(.public-portal) :is(.board-flight-status, .board-live-note, .board-flight-status[data-flight-state="pending"]) { color: #a9d5fa; background: #203449; border-color: #6087aa; }
body:not(.public-portal) :is(.board-flight-status[data-flight-state="error"], .schedule-row .flight-status[data-flight-state="error"]) { color: #ffb6ae; background: #472824; border-color: #a5645d; }
body:not(.public-portal) :is(.schedule-row.driver-info-unread, .external-hire-box) { background: #2c3020; }
body:not(.public-portal) :is(.live-location-note, .recurring-box, .payroll-payment-summary) { color: var(--muted); background: #222629; border-color: var(--line); }
body:not(.public-portal) :is(.notification-popover-head, .notification-popover-footer, .notification-feed-item, .office-notification-route, .assignment-picker, .assignment-picker-item) { color: var(--ink); background: #222629; border-color: var(--line); }
body:not(.public-portal) :is(.payroll-page, .payroll-dashboard-panel) { --payroll-paper: #171a1c; --payroll-canvas: #101213; --payroll-line: #3d464c; --payroll-line-strong: #7f8b92; --payroll-green: #9be2b7; --payroll-blue: #a9d5fa; --payroll-amber: #f0cf91; --payroll-red: #ffb6ae; --payroll-green-soft: #20392c; --payroll-blue-soft: #203449; --payroll-amber-soft: #382d1e; --payroll-red-soft: #472824; }
body:not(.public-portal) :is(.payroll-step-dot, .payroll-action-icon, .payroll-action-count, .payroll-archive-button) { color: var(--ink); background: #293136; border-color: var(--control-line); }
body:not(.public-portal) .payroll-summary-item { background: var(--surface); }
body:not(.public-portal) .payroll-timeline { padding: 12px; }
body:not(.public-portal) .payroll-total-summary > div { padding: 10px 12px; }
body:not(.public-portal) dialog:not(#nameboardDialog) { color: var(--ink); background: #171a1c; border-color: #67757d; }
body:not(.public-portal) dialog::backdrop { background: rgb(0 0 0 / 72%); backdrop-filter: none; }
body:not(.public-portal) :is(.suggestions, .suggestion-list, .assignment-picker-dropdown) { background: #222629; color: var(--ink); border-color: var(--control-line); }
body:not(.public-portal) :is(.suggestion-item, .suggestions button) { background: #222629; color: var(--ink); }
body:not(.public-portal) :is(.readable-suggestions, .readable-suggestion, .ride-location-panel) { background: #222629; color: var(--ink); border-color: var(--control-line); }
body:not(.public-portal) .readable-suggestion:hover { background: #343d42; }
body:not(.public-portal) .readable-suggestion:is(:hover, :focus, [aria-selected="true"]) { color: var(--ink); background: #343d42; }
body:not(.public-portal) .readable-suggestion span { color: var(--muted); }
body:not(.public-portal) .assignment-picker-results { background: #222629; color: var(--ink); border-color: var(--control-line); }
body:not(.public-portal) .assignment-picker-result:is(:hover, .is-active, .is-selected) { background: #343d42; }
body:not(.public-portal) .assignment-picker-result small { color: #f0cf91; }
body:not(.public-portal) :is(.live-note, #addressLookupStatus) { background: #203532; color: #a0e2d6; border-color: #76bcae; }
body:not(.public-portal) .schedule-row .live-location-note.compact.pending { color: #f0cf91; background: #382d1e; border-color: #9b7c45; }
body:not(.public-portal) .payroll-timeline-step.active .payroll-step-dot { background: #382d1e; color: #f0cf91; border-color: #ac8b4e; }
body:not(.public-portal) :is(.payroll-row-status.employee, .payroll-row-button, .file-button) { color: var(--ink); background: #293136; border-color: var(--control-line); }
body:not(.public-portal) :is(.portal-summary, .portal-subnav, .portal-subnav button, .portal-card-completed, .calendar-day) { color: var(--ink); background: #222629; border-color: var(--line); }
body:not(.public-portal) :is(.portal-subnav button.active, .calendar-day.active) { color: #fff; background: #245e55; border-color: #76bcae; }
body:not(.public-portal) .driver-steps span { color: var(--muted); background: #222629; border-color: var(--line); }
body:not(.public-portal) .driver-steps span.done { color: #9be2b7; background: #20392c; border-color: #5d9a76; }
body:not(.public-portal) .driver-steps span.current { color: #f0cf91; background: #382d1e; border-color: #9b7c45; }
body:not(.public-portal) :is(.portal-card-attention, .notification-feed-item.unread) { color: var(--ink); background: #302b21; border-color: #9b7c45; }
body:not(.public-portal) .board-action-menu .danger-button { background: #492724; border-color: #c1847b; color: #ffb6ae; }

/* Nested operational text must not retain foregrounds from the light theme. */
body:not(.public-portal) .live-log-box {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}
body:not(.public-portal) .live-log-box :is(h3, .live-log-entry strong) { color: var(--ink); }
body:not(.public-portal) .live-log-entry { border-color: var(--line); }
body:not(.public-portal) .live-log-entry strong { overflow-wrap: anywhere; white-space: pre-line; }
body:not(.public-portal) .live-log-entry :is(span, small) { color: var(--muted); }
body:not(.public-portal) .schedule-driver-attention :is(strong, span:not(.schedule-attention-dot)) { color: #f0cf91; }
body:not(.public-portal) .schedule-attention-dot { background: #f0cf91; box-shadow: 0 0 0 5px rgb(240 207 145 / 12%); }
body:not(.public-portal) .schedule-row.driver-info-unread {
  background: #302b21;
  border-top-color: #9b7c45;
  border-right-color: #9b7c45;
  border-bottom-color: #9b7c45;
  box-shadow: 0 0 0 1px rgb(240 207 145 / 16%);
}
body:not(.public-portal) .schedule-row.driver-info-unread:hover { background: #393122; }
body:not(.public-portal) .schedule-row.driver-info-unread::after { background: #f0cf91; border-color: #302b21; }
body:not(.public-portal) .driver-submission-alert { color: #f0cf91; background: #382d1e; border-color: #9b7c45; }
body:not(.public-portal) .driver-submission-alert.reviewed { color: var(--muted); background: #2b3338; border-color: #64717a; }
body:not(.public-portal) .driver-submission-alert::before { background: currentColor; }
body:not(.public-portal) .schedule-row .driver-info-button { color: #f0cf91; background: #382d1e; border-color: #b99a61; }
body:not(.public-portal) .schedule-row .driver-info-button:hover { color: #f0cf91; background: #493a24; border-color: #d6b577; }
body:not(.public-portal) .notification-feed-open > span:not(.notification-feed-source) { color: var(--muted); }
body:not(.public-portal) .notification-feed-open:is(:hover, :focus-visible) { background: #343b40; }
body:not(.public-portal) .notification-feed-open:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
body:not(.public-portal) :is(.nav-badge, .notification-button-badge) { color: var(--red); background: #472824; }
body:not(.public-portal) .wintax-source-badge { color: #97ded6; background: #203c3b; border-color: #589a96; }
body:not(.public-portal) .wintax-source-zaheed { color: var(--blue); background: #203449; border-color: #6087aa; }
body:not(.public-portal) .notify-note { color: var(--blue); background: #203449; border-color: #6087aa; }
body:not(.public-portal) .commission-hint { color: #f0cf91; background: #382d1e; border-color: #9b7c45; }
body:not(.public-portal) .price-preset-hint { color: #a0e2d6; background: #203532; border-color: #76bcae; }
body:not(.public-portal) :is(.commission-hint, .price-preset-hint) strong { color: inherit; }
body:not(.public-portal) :is(.live-location-note, .schedule-row .live-location-note.compact) { color: var(--blue); background: #203449; border-color: #6087aa; }
body:not(.public-portal) :is(.live-location-note.active, .schedule-row .live-location-note.compact.active) { color: var(--green); background: #20392c; border-color: #5d9a76; }
body:not(.public-portal) :is(.live-location-note.pending, .schedule-row .live-location-note.compact.pending) { color: #f0cf91; background: #382d1e; border-color: #9b7c45; }
body:not(.public-portal) .live-location-note :is(strong, span) { color: inherit; }
body:not(.public-portal) .schedule-row .flight-status { color: var(--blue); background: #203449; border-color: #6087aa; }
body:not(.public-portal) :is(.board-flight-status, .schedule-row .flight-status)[data-flight-state="pending"] { color: #f0cf91; background: #382d1e; border-color: #9b7c45; }
body:not(.public-portal) :is(.board-flight-status, .schedule-row .flight-status)[data-flight-state="error"] { color: var(--red); background: #472824; border-color: #a5645d; }
/* The shared punctuality rules are important; override only their office palette. */
body:not(.public-portal) .flight-status[data-flight-punctuality="on-time"] { color: var(--green) !important; background: #20392c !important; border-left-color: #5d9a76 !important; }
body:not(.public-portal) .flight-status[data-flight-punctuality="late"] { color: var(--red) !important; background: #472824 !important; border-left-color: #a5645d !important; }

/* Document surfaces are deliberately white, including when inspected on screen. */
body:not(.public-portal) :is(.invoice-paper, #invoicePreview, #driverCreditPreview) {
  color-scheme: light;
  --bg: #fff; --surface: #fff; --surface-2: #edf0ef; --ink: #1b1e20; --muted: #697075; --line: #dfe3e2;
  background: #fff;
  color: #1b1e20;
}
body:not(.public-portal) .invoice-paper th { background: #f1f3f2; color: #697075; }
body:not(.public-portal) .invoice-paper tbody tr:hover { background: #f7f8f7; }

/* Login is opted in by the server's body class; credentials and fields stay intact. */
body.dispatch-login { min-height: 100dvh; padding: 20px; }
body.dispatch-login main { width: min(390px, 100%); background: #171a1c; color: var(--ink); border: 1px solid #66747b; border-radius: 6px; padding: 24px; box-shadow: none; }
body.dispatch-login .brand { padding: 0 0 16px; margin-bottom: 16px; }
body.dispatch-login .brand strong { font-size: 16px; }
body.dispatch-login .brand img { width: 44px; height: 44px; }
body.dispatch-login :is(.hint, label span) { color: var(--muted); font-size: 12px; font-weight: 500; }
body.dispatch-login input { width: 100%; min-height: 44px !important; }
body.dispatch-login button { min-height: 44px; background: #245e55; border: 1px solid #76bcae; color: #fff; border-radius: 5px; font-size: 13px; font-weight: 600; }
body.dispatch-login .note { color: #ffb6ae; font-size: 12px; }

@media (min-width: 1280px) {
  body:not(.public-portal) .topbar { grid-template-columns: 230px minmax(0, 1fr); align-items: center; }
  body:not(.public-portal) .topbar-actions { flex-wrap: nowrap; justify-content: flex-end; }
  body:not(.public-portal) .topbar-actions :is(.ghost-button, .primary-button) { padding: 6px 8px; white-space: nowrap; }
}
@media (min-width: 981px) {
  @supports (backdrop-filter: blur(8px)) {
    body:not(.public-portal) .topbar { background: rgb(23 26 28 / 88%); backdrop-filter: blur(8px); }
  }
}
@media (max-width: 980px) {
  body:not(.public-portal) .app-shell { grid-template-columns: minmax(0, 1fr); }
  body:not(.public-portal) .sidebar { padding: 8px 12px; gap: 8px; }
  body:not(.public-portal) .brand { padding: 0; }
  body:not(.public-portal) .brand-logo { width: 30px; height: 30px; flex-basis: 30px; }
  body:not(.public-portal) .nav-item { min-height: 44px; }
  body:not(.public-portal) .workspace { padding: 12px; }
  body:not(.public-portal) .topbar { background: #171a1c; backdrop-filter: none; }
}
@media (max-width: 640px) {
  body:not(.public-portal) :is(.primary-button, .ghost-button, .danger-button, .small-button, .filter, .board-period button, .schedule-type-filter) { min-height: 44px; }
  body:not(.public-portal) :is(input:not([type="checkbox"]):not([type="radio"]), select, .icon-button) { min-height: 44px; }
  body:not(.public-portal) .icon-button { min-width: 44px; }
  body:not(.public-portal) .topbar-actions .search { width: 100%; max-width: none; }
  body:not(.public-portal) .metrics article { padding: 8px; }
  body:not(.public-portal) .planning-day-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:not(.public-portal) .planning-day-summary article { padding: 8px; border-bottom: 0; }
  body:not(.public-portal) .planning-day-summary small { font-size: 10px; }
  body:not(.public-portal) .board-card-actions :is(button, summary, a) { min-height: 44px; }
}
@media (prefers-reduced-transparency: reduce) {
  body:not(.public-portal) :is(.topbar, .ride-card) { background: #222629; backdrop-filter: none; }
}
}
