:root {
  --font-sans: "Inter", "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  --ink-strong: #182536;
  --ink-soft: #607389;
  --bg-page: #f8fafc;
  --bg-panel: #ffffff;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --alert-row: rgba(220, 38, 38, 0.12);
  --input-bg: #ffffff;
  --table-head-bg: #f3f4f6;
  --button-soft-bg: #f8fafc;
  --status-pill-bg: #f8fafc;
  --surface-elevated: #ffffff;
  --surface-muted: #ffffff;
  --surface-strong: #f3f4f6;
  --hover-row: #f9fafb;
  --hover-row-strong: #f3f4f6;
  --shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.04);
  --shadow-panel: 0 10px 24px rgba(15, 23, 42, 0.05);
  --sticky-section-offset: 21px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg-page);
}

.page-shell {
  max-width: 100%;
  margin: 0 auto;
  height: 100vh;
  padding: 8px 10px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  overflow: hidden;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, var(--surface-elevated), var(--surface-muted)),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 40%);
  box-shadow: var(--shadow-soft);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.metric-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-panel);
  border-color: rgba(15, 118, 110, 0.18);
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, rgba(17, 94, 89, 0.9), rgba(17, 94, 89, 0.25));
}

.metric-card--terminal::after {
  background: linear-gradient(180deg, rgba(16, 32, 51, 0.92), rgba(17, 94, 89, 0.4));
}

.metric-card--delivery::after {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.92), rgba(96, 165, 250, 0.45));
}

.metric-card--late::after {
  background: linear-gradient(180deg, rgba(180, 35, 24, 0.95), rgba(220, 38, 38, 0.4));
}

.metric-card--attention::after {
  background: linear-gradient(180deg, rgba(193, 111, 27, 0.95), rgba(245, 158, 11, 0.38));
}

.metric-label {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-value {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1;
}

.metric-meta {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-panel);
  padding: 24px;
  box-shadow: var(--shadow-panel);
}

.login-form-card {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-panel);
}

.toolbar-copy {
  flex: 1 1 720px;
  min-width: 0;
}

.toolbar-actions {
  display: grid;
  flex: 1 1 320px;
  width: min(100%, 380px);
  gap: 4px;
  justify-items: stretch;
  position: relative;
}

.toolbar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.toolbar-select {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
}

.toolbar-search {
  display: grid;
  gap: 6px;
  flex: 1 1 260px;
  min-width: 220px;
  color: var(--ink-strong);
  font-size: 11px;
  font-weight: 600;
}

.toolbar-search span {
  color: var(--ink-soft);
}

.toolbar-search input {
  width: 100%;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input-bg);
  padding: 4px 8px;
  color: inherit;
  font: inherit;
  line-height: 1;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.toolbar-clear-search {
  align-self: end;
  min-height: 24px;
}

.toolbar-select select,
.toolbar-select input {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input-bg);
  padding: 4px 8px;
  color: inherit;
  font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
  height: 24px;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
th {
  font-family: var(--font-sans);
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
}

.refresh-status,
.panel-heading p,
.section-head p,
.empty-state {
  color: var(--ink-soft);
}

.vendorweb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.vendorweb-strip--health {
  margin-top: 8px;
}

.error-banner {
  margin-top: 2px;
  padding: 4px 8px;
  border: 1px solid rgba(180, 35, 24, 0.24);
  border-radius: 8px;
  background: rgba(254, 226, 226, 0.96);
  color: #8a1c14;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--status-pill-bg);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.status-pill.ok {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.16);
}

.status-pill.warning {
  color: #8a4b16;
  background: rgba(200, 120, 40, 0.10);
  border-color: rgba(200, 120, 40, 0.16);
}

.status-pill.muted {
  font-weight: 600;
  color: var(--ink-soft);
}

.primary-button,
.secondary-button,
.icon-button {
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease, color 120ms ease;
  font-size: 11px;
  line-height: 1;
}

.primary-button {
  background: var(--accent);
  color: white;
  padding: 0 10px;
  height: 24px;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.12);
}

.secondary-button {
  background: var(--button-soft-bg);
  color: var(--ink-strong);
  border-color: var(--line);
  padding: 0 10px;
  height: 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.shortcut-hint {
  margin-left: 4px;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.72;
}

.icon-button {
  background: var(--button-soft-bg);
  color: var(--ink-strong);
  border-color: var(--line);
  padding: 0 8px;
  height: 24px;
}

.primary-button:hover:not(:disabled) {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.14);
}

.danger-button {
  background: #b42318;
}

.danger-button:hover:not(:disabled) {
  background: #8f231a;
}

.secondary-button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.main-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.drivers-panel[hidden],
.table-panel[hidden] {
  display: none;
}

.drivers-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 10px;
}

.drivers-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
}

.import-workspace {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.import-workspace[hidden],
.drivers-live-details[hidden],
.drivers-terminal-tabs[hidden] {
  display: none !important;
}

.driver-import-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.driver-import-tabs {
  margin-bottom: 0;
}

.driver-import-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.driver-import-filters .settings-actions {
  grid-column: 1 / -1;
}

.driver-import-table-wrap {
  max-height: 52vh;
  overflow: auto;
}

.driver-import-table th,
.driver-import-table td {
  white-space: nowrap;
  font-size: 0.81rem;
  padding: 6px 8px;
}

.drivers-live-details {
  margin-top: 6px;
}

.drivers-action-buttons {
  display: flex;
  gap: 8px;
  align-items: end;
}

.drivers-terminal-tabs {
  margin-bottom: 8px;
}

.drivers-terminal-columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 8px;
  align-items: start;
}

.drivers-terminal-columns[hidden] {
  display: none;
}

.driver-terminal-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-panel);
  overflow: hidden;
}

.driver-terminal-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--table-head-bg);
}

.driver-terminal-column-head strong,
.driver-terminal-column-head span {
  font-size: 0.82rem;
  font-weight: 800;
}

.driver-terminal-column-subtitle {
  padding: 5px 8px 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-terminal-list {
  display: grid;
  gap: 0;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding: 0;
}

.drivers-bulk-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}

.drivers-bulk-selected,
.drivers-bulk-field {
  display: grid;
  gap: 4px;
}

.drivers-bulk-selected span,
.drivers-bulk-field span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.drivers-bulk-selected strong {
  min-width: 210px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-strong);
  font-size: 0.86rem;
}

.drivers-bulk-field select {
  min-width: 150px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.driver-terminal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, 0.48fr);
  align-items: center;
  min-height: 30px;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.driver-terminal-row.is-selected {
  position: relative;
  z-index: 0;
  box-shadow: inset 0 0 0 2px var(--brand);
}

.driver-terminal-row.driver-shift-morning {
  background: #dcfce7;
}

.driver-terminal-row.driver-shift-afternoon {
  background: #fef9c3;
}

.driver-terminal-row.driver-shift-night {
  background: #dbeafe;
}

.driver-terminal-row.driver-shift-off {
  background: #fee2e2;
}

.driver-terminal-row > * {
  min-width: 0;
  height: 100%;
  padding: 5px 6px;
  border-right: 1px solid var(--line);
}

.driver-terminal-row > *:last-child {
  border-right: 0;
}

.driver-terminal-row--head {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 26px;
  background: var(--table-head-bg);
}

.driver-terminal-row--head span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.driver-terminal-name {
  min-width: 0;
  max-width: 100%;
  color: var(--ink-strong);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.driver-terminal-meta {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-terminal-carrier {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-company-select {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 29px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.72rem;
}

.drivers-panel {
  background: #f8fafc;
  min-height: 0;
  overflow: auto;
}

.drivers-panel .compact-heading {
  min-height: 32px;
  padding: 4px 8px;
}

.drivers-topbar {
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.75fr) minmax(140px, 0.8fr) minmax(120px, 0.7fr) minmax(110px, 0.6fr) auto;
  align-items: end;
  gap: 6px;
  margin-bottom: 6px;
}

.drivers-topbar .field {
  gap: 3px;
}

.drivers-topbar .field span {
  font-size: 11px;
  line-height: 1;
}

.drivers-topbar input,
.drivers-topbar select {
  min-height: 30px;
  height: 30px;
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 8px;
}

.drivers-action-buttons {
  gap: 5px;
  flex-wrap: nowrap;
}

.drivers-action-buttons .secondary-button,
.drivers-action-buttons .primary-button {
  min-height: 30px;
  height: 30px;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.drivers-terminal-columns {
  display: block;
}

.driver-directory-shell {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  min-height: 0;
  padding-bottom: 18px;
}

.driver-directory-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.driver-directory-tab {
  min-width: 84px;
  height: 34px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 0;
  background: #fff;
  color: #25324a;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.driver-directory-tab span {
  color: var(--ink-soft);
  font-weight: 700;
}

.driver-directory-tab.is-active {
  color: #1d4ed8;
  box-shadow: inset 0 -3px 0 #2563eb;
}

.driver-directory-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.driver-directory-header h2 {
  margin: 0;
  color: #111827;
  font-size: 15px;
}

.driver-directory-kpis {
  display: flex;
  gap: 14px;
  color: #25324a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.driver-directory-columns {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(520px, 0.85fr);
  gap: 10px;
  align-items: start;
}

.driver-type-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: visible;
}

.driver-type-title {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  text-transform: uppercase;
}

.driver-type-column--highway .driver-type-title {
  color: #1d4ed8;
}

.driver-type-column--local .driver-type-title {
  color: #15803d;
}

.driver-schedule-group {
  border-bottom: 1px solid var(--line);
  min-height: 0;
}

.driver-group-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  background: #fbfdff;
  color: #25324a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.driver-directory-table-wrap {
  max-height: calc(100vh - 360px);
  overflow: auto;
  overscroll-behavior: contain;
}

.driver-directory-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.driver-directory-table th,
.driver-directory-table td {
  height: 26px;
  padding: 2px 6px;
  border-top: 1px solid #e8edf3;
  color: #25324a;
  font-size: 12px;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.driver-directory-table th {
  height: 28px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
}

.driver-directory-table th:nth-child(1),
.driver-directory-table td:nth-child(1) {
  width: 34%;
}

.driver-directory-table th:nth-child(2),
.driver-directory-table td:nth-child(2) {
  width: 34%;
}

.driver-directory-table th:nth-child(3),
.driver-directory-table td:nth-child(3) {
  width: 26%;
}

.driver-directory-table th:nth-child(4),
.driver-directory-table td:nth-child(4) {
  width: 32px;
  padding-left: 2px;
  padding-right: 2px;
}

.driver-directory-select {
  width: 100%;
  min-width: 118px;
  height: 22px;
  min-height: 22px;
  border: 1px solid #dfe6ef;
  border-radius: 4px;
  background: #fff;
  color: #25324a;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 6px;
}

.driver-directory-error {
  margin: 0 0 8px;
  padding: 6px 10px;
  border: 1px solid #f3b4b4;
  border-radius: 6px;
  background: #fdeaea;
  color: #8a1f1f;
  font-size: 12px;
}

.driver-name-cell {
  min-width: 0;
}

.driver-row-menu-cell {
  position: relative;
  text-align: center;
  overflow: visible !important;
}

.driver-row-menu-button {
  width: 24px;
  height: 20px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: transparent;
  font-weight: 900;
  cursor: pointer;
}

.driver-directory-table tr:hover .driver-row-menu-button {
  color: #25324a;
  background: #eef2f7;
}

.driver-directory-row.is-selected td {
  background: #eff6ff;
}

.driver-row-actions {
  position: absolute;
  right: 4px;
  top: 24px;
  z-index: 20;
  display: grid;
  min-width: 142px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.14);
}

.driver-row-action {
  height: 26px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #25324a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.driver-row-action:hover {
  background: #eef2f7;
}

.driver-row-action--danger {
  color: #b42318;
}

.driver-empty-cell {
  color: var(--ink-soft);
  font-style: italic;
}

.driver-deactivated-panel {
  grid-column: 1 / -1;
}

.drivers-directory,
.drivers-detail,
.drivers-subpanel {
  display: grid;
  gap: 8px;
}

.drivers-layout {
  grid-template-columns: 1fr !important;
}

.drivers-detail {
  display: none !important;
}

.driver-move-list,
.driver-history-list {
  display: grid;
  gap: 10px;
}

.drivers-table-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  background: var(--surface-elevated);
}

.drivers-table {
  width: 100%;
  border-collapse: collapse;
}

.drivers-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--table-head-bg);
  font-weight: 700;
}

.drivers-table th,
.drivers-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink-strong);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.drivers-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #475569;
}

.drivers-table tbody tr {
  cursor: pointer;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.drivers-table tbody tr.is-active {
  background: var(--hover-row-strong);
}

.drivers-table tbody tr:hover:not(.driver-expanded-row) {
  background: var(--hover-row);
}

.driver-sheet-input,
.driver-sheet-select {
  width: 100%;
  min-width: 0;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--input-bg);
  color: var(--ink-strong);
  font: inherit;
  line-height: 1.2;
}

.driver-sheet-input:focus,
.driver-sheet-select:focus {
  outline: 1px solid rgba(17, 94, 89, 0.35);
  border-color: rgba(17, 94, 89, 0.35);
}

.driver-expanded-row td {
  padding: 0;
  background: var(--surface-elevated);
}

.inline-driver-detail {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.inline-driver-header {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: #000;
}

.inline-driver-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #000;
  font-family: var(--font-sans);
  font-size: 12px;
}

.inline-week-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-week-button,
.inline-moves-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 5px 9px;
  font: inherit;
  color: var(--ink-strong);
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.inline-week-button.is-active {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.22);
}

.drivers-week-table th,
.drivers-week-table td,
.drivers-moves-table th,
.drivers-moves-table td {
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 5px 7px;
}

.driver-move-card,
.driver-move-card {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  text-align: left;
}

.driver-move-card strong {
  font-size: 0.92rem;
}

.driver-move-card span {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.driver-profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.driver-profile-form .settings-actions {
  grid-column: 1 / -1;
}

.driver-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.drivers-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.driver-detail-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.driver-summary-card {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.driver-detail-header {
  display: grid;
  gap: 6px;
}

.driver-breadcrumb {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.driver-hero {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
}

.driver-hero h2 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.driver-hero p {
  margin: 1px 0;
  color: #000;
  font-size: 0.84rem;
}

.driver-status-pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--ink-strong);
  font-weight: 600;
  border: 1px solid rgba(15, 118, 110, 0.14);
}

.driver-hours-bars,
.driver-current-status,
.driver-timeline {
  display: grid;
  gap: 6px;
}

.hours-bar-block {
  display: grid;
  gap: 4px;
}

.hours-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(16, 32, 51, 0.08);
  overflow: hidden;
}

.hours-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.driver-current-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  color: #000;
}

.timeline-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  color: #000;
  font-size: 0.82rem;
}

.drivers-search-field input,
.drivers-action-buttons .secondary-button,
.drivers-action-buttons .primary-button {
  padding-top: 8px;
  padding-bottom: 8px;
}

.drivers-events-table th,
.drivers-events-table td {
  padding: 5px 7px;
  font-size: 0.8rem;
  white-space: nowrap;
}

.driver-summary-card span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.driver-summary-card strong {
  color: #000;
  font-size: 0.95rem;
}

.driver-name-button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  font-weight: 600;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-panel);
  padding: 10px 12px 12px;
  box-shadow: var(--shadow-panel);
  min-height: 0;
}

.settings-panel {
  position: static;
  z-index: auto;
  width: min(420px, 100%);
  max-height: none;
  overflow: auto;
  padding: 0;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.toolbar .settings-panel {
  display: none !important;
}

.settings-panel[open] {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  padding-bottom: 12px;
}

.settings-summary {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 600;
  list-style: none;
  padding: 11px 14px;
  background: var(--surface-elevated);
  border-radius: 18px;
}

.settings-summary--icon {
  display: revert;
}

.settings-form {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  padding: 0 12px 14px;
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.settings-section {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.settings-section h2 {
  margin: 0;
  font-size: 1rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.column-toggle span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg);
  padding: 9px 11px;
  font: inherit;
  color: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input:focus,
.field select:focus,
.toolbar-search input:focus,
.toolbar-select select:focus,
.toolbar-select input:focus,
.column-width-input:focus,
.pool-required-input:focus,
.pool-live-count-button:focus,
.dispatch-code-button:focus,
.header-sort-button:focus,
.terminal-tab:focus,
.primary-button:focus,
.secondary-button:focus,
.icon-button:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.10);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-field input {
  width: auto;
}

.columns-list {
  display: grid;
  gap: 8px;
}

.column-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
}

.column-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.column-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.column-width-input {
  width: 74px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg);
  padding: 7px 8px;
  color: inherit;
  font: inherit;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
}

.table-panel .panel-heading {
  display: none;
}

.table-panel {
  padding: 4px 6px 6px;
  border-radius: 10px;
  box-shadow: none;
}

.panel-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.table-heading-copy,
.table-heading-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table-heading-copy p,
.table-heading-meta .status-pill {
  font-size: 0.82rem;
}

.table-heading-meta {
  align-items: flex-end;
}

.terminal-top-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: stretch;
  margin: 6px 0 0;
}

.terminal-top-stats[hidden] {
  display: none;
}

.terminal-stat-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  line-height: 1;
}

.terminal-stat-card span {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.terminal-stat-card strong {
  font-size: 0.82rem;
  font-weight: 800;
}

.terminal-stat-button {
  cursor: pointer;
}

.terminal-stat-button:hover,
.terminal-stat-button:focus-visible {
  border-color: var(--accent);
  background: rgba(15, 118, 110, 0.06);
}

.load-table-wrap {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: auto;
  overflow-x: auto;
  padding-right: 20px;
  scroll-padding-right: 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-elevated);
}

.load-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  border: 0;
}

body[data-view-mode="poolCustomers"] .load-table {
  width: auto;
  min-width: auto;
}

body[data-view-mode="poolCustomers"] .load-table th,
body[data-view-mode="poolCustomers"] .load-table td {
  padding: 2px 6px;
  white-space: nowrap;
  width: auto;
  min-width: 0;
  max-width: none;
}

body[data-view-mode="poolCustomers"] .load-table th[data-column-key="profile"],
body[data-view-mode="poolCustomers"] .load-table td[data-column-key="profile"],
body[data-view-mode="poolCustomers"] .load-table th[data-column-key="customer"],
body[data-view-mode="poolCustomers"] .load-table td[data-column-key="customer"],
body[data-view-mode="poolCustomers"] .load-table th[data-column-key="pool"],
body[data-view-mode="poolCustomers"] .load-table td[data-column-key="pool"] {
  padding-left: 2px;
  padding-right: 2px;
}

body[data-view-mode="poolCustomers"] .pool-loads-section-row td,
body[data-view-mode="poolCustomers"] .pool-loads-nested-row td {
  background: rgba(245, 239, 230, 0.92);
}

body[data-view-mode="poolCustomers"] .pool-loads-table-wrap {
  overflow-x: auto;
  padding: 4px 0 8px;
}

body[data-view-mode="poolCustomers"] .pool-loads-table {
  min-width: 100%;
  width: max-content;
}

body[data-view-mode="poolCustomers"] .pool-loads-table th,
body[data-view-mode="poolCustomers"] .pool-loads-table td {
  padding: 2px 5px;
  font-size: 12px;
}

body[data-view-mode="poolCustomers"] .pool-profiles-toggle-row td {
  background: rgba(245, 239, 230, 0.92);
}

.pool-profiles-toggle-button {
  border: 1px solid rgba(16, 32, 51, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #000;
  padding: 4px 10px;
  font: inherit;
  cursor: pointer;
}

.pool-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
}

.pool-add-form input,
.pool-add-form select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 3px 6px;
  font: inherit;
  color: inherit;
  min-width: 90px;
}

.pool-add-form input[name="customer"] {
  min-width: 180px;
}

body[data-column-width-mode="compact"] .load-table {
  min-width: 100%;
}

.load-table th,
.load-table td {
  padding: 0 6px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  transition: background 120ms ease, box-shadow 120ms ease, color 120ms ease, border-color 120ms ease;
  background: var(--bg-panel);
  height: 19px;
  min-height: 0;
  margin: 0;
}

body[data-column-width-mode="compact"] .load-table th,
body[data-column-width-mode="compact"] .load-table td {
  padding: 0 5px;
  font-size: 11px;
  white-space: nowrap;
  line-height: 1;
  overflow: hidden;
  text-overflow: clip;
  height: 18px;
  min-height: 0;
}

.load-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--table-head-bg);
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #475569;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 8px;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 var(--line);
  height: 21px;
  min-height: 0;
}

.load-table th.pinned-column-header {
  left: 0;
  z-index: 5;
  background: var(--table-head-bg);
  box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line);
}

.load-table td.pinned-column {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-panel);
  box-shadow: inset -1px 0 0 var(--line);
}

.load-table tbody tr:hover td {
  background: var(--hover-row);
  box-shadow: inset 0 0 0 9999px var(--hover-row);
}

.skeleton-cell {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--line) 25%, var(--surface-strong) 50%, var(--line) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.load-table th[data-column-key="moveDispatchCode"],
.load-table td[data-column-key="moveDispatchCode"],
.load-table th[data-column-key="dest l/s"],
.load-table td[data-column-key="dest l/s"] {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  padding-left: 1px;
  padding-right: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.header-sort-button {
  justify-content: center;
  text-align: center;
}

.header-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  min-height: 0;
  height: 18px;
  line-height: 1;
  margin: 0;
}

.column-resize-handle {
  position: absolute;
  top: 0;
  right: -8px;
  width: 16px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
  z-index: 3;
}

.column-resize-handle::after {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 3px;
  width: 2px;
  border-radius: 999px;
  background: var(--line-strong);
  opacity: 0;
  transition: opacity 120ms ease;
}

.column-resize-handle:hover::after,
body.is-column-resizing .column-resize-handle::after {
  opacity: 1;
}

.sort-indicator {
  font-size: 10px;
  opacity: 0.35;
  min-width: 10px;
}

.sort-indicator.is-active {
  opacity: 1;
  font-weight: 800;
}

.planned-count-button {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0 3px;
  min-width: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  height: 13px;
  min-height: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.planned-count-button:not(:disabled) {
  background: #dbeafe;
  color: #1d4ed8;
}

.planned-count-button.conflict-blink {
  background: #b42318;
  animation: conflict-pulse 3.2s ease-in-out infinite;
}

.planned-count-button:disabled {
  background: transparent;
  color: inherit;
  cursor: default;
}

.planned-count-button.conflict-blink:disabled {
  background: #b42318;
  color: white;
}

.planned-count-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0 3px;
  min-width: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  height: 13px;
  min-height: 0;
  line-height: 1;
  margin: 0;
}

.planned-count-label.conflict-blink {
  background: #b42318;
  color: white;
  animation: conflict-pulse 3.2s ease-in-out infinite;
}

.expanded-move-row td {
  background: rgba(16, 32, 51, 0.04);
}

.secondary-row-label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 0;
}

.attention-row td {
  background: var(--alert-row);
  box-shadow: inset 3px 0 0 rgba(180, 35, 24, 0.48), inset 0 0 0 9999px rgba(255, 59, 48, 0.06);
  border-top: 1px solid rgba(180, 35, 24, 0.12);
  border-bottom: 1px solid rgba(180, 35, 24, 0.12);
}

.action-required-row td {
  background: rgba(52, 120, 246, 0.07);
  box-shadow: inset 3px 0 0 rgba(37, 99, 235, 0.44), inset 0 0 0 9999px rgba(52, 120, 246, 0.04);
  border-top: 1px solid rgba(52, 120, 246, 0.14);
  border-bottom: 1px solid rgba(52, 120, 246, 0.14);
}

.vendorweb-hazardous-row td {
  box-shadow: inset 3px 0 0 #b91c1c, inset 0 0 0 9999px rgba(248, 113, 113, 0.05);
}

.vendorweb-premium-row td {
  color: #c2410c;
  font-weight: 600;
}

.vendorweb-premium-row td .driver-name-button,
.vendorweb-premium-row td .planned-count-button,
.vendorweb-premium-row td .dispatch-code-button,
.vendorweb-premium-row td .planned-count-label,
.vendorweb-premium-row td .secondary-row-label {
  color: inherit !important;
}

.vendorweb-equipment-guarantee-row td {
  color: #15803d;
  font-weight: 600;
}

.vendorweb-equipment-guarantee-row td .driver-name-button,
.vendorweb-equipment-guarantee-row td .planned-count-button,
.vendorweb-equipment-guarantee-row td .dispatch-code-button,
.vendorweb-equipment-guarantee-row td .planned-count-label,
.vendorweb-equipment-guarantee-row td .secondary-row-label {
  color: inherit !important;
}

.vendorweb-priority-service-row td {
  color: #7c3aed;
  font-weight: 600;
}

.vendorweb-priority-service-row td .driver-name-button,
.vendorweb-priority-service-row td .planned-count-button,
.vendorweb-priority-service-row td .dispatch-code-button,
.vendorweb-priority-service-row td .planned-count-label,
.vendorweb-priority-service-row td .secondary-row-label {
  color: inherit !important;
}

.dispatch-conflict-row td {
  box-shadow: inset 0 0 0 9999px rgba(180, 35, 24, 0.06);
  animation: conflict-row-pulse 3.2s ease-in-out infinite;
}

.load-table td[data-column-key="driverName"] {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 11px;
}

.load-table td[data-column-key="driver"] {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.load-table td[data-column-key="move"] {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.load-table td[data-column-key="sourceTerminalCode"],
.load-table td[data-column-key="openSearchResult"] {
  text-align: center;
}

.load-table td[data-column-key="searchTabs"] {
  color: var(--ink-soft);
  font-size: 10px;
  text-align: left;
}

.search-result-open-button {
  min-height: 20px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
}

.load-table td[data-column-key="miles"],
.load-table td[data-column-key="remainingDriveHours"],
.load-table td[data-column-key="startTime"],
.load-table td[data-column-key="start in"],
.load-table td[data-column-key="end in"],
.load-table td[data-column-key="xat in"],
.load-table td[data-column-key="driver"],
.drivers-table td,
.move-details-history-table td,
.move-details-table-view td {
  font-variant-numeric: tabular-nums;
}

.load-table td[data-column-key="dest l/s"],
.load-table td[data-column-key="l/s"] {
  font-weight: 800;
  color: #000;
  background-clip: padding-box;
}

.load-table td[data-column-key="dest l/s"][data-ls-kind="l"],
.load-table td[data-column-key="l/s"][data-ls-kind="l"] {
  background: #e5e7eb !important;
  box-shadow: inset 0 0 0 9999px rgba(229, 231, 235, 0.98);
  color: #111827;
}

.load-table td[data-column-key="dest l/s"][data-ls-kind="s"],
.load-table td[data-column-key="l/s"][data-ls-kind="s"] {
  background: #9ca3af !important;
  box-shadow: inset 0 0 0 9999px rgba(156, 163, 175, 0.98);
  color: #111827;
  text-shadow: none;
}

.load-table tbody tr:hover td[data-column-key="dest l/s"][data-ls-kind="l"],
.load-table tbody tr:hover td[data-column-key="l/s"][data-ls-kind="l"],
.attention-row td[data-column-key="dest l/s"][data-ls-kind="l"],
.attention-row td[data-column-key="l/s"][data-ls-kind="l"],
.dispatch-conflict-row td[data-column-key="dest l/s"][data-ls-kind="l"],
.dispatch-conflict-row td[data-column-key="l/s"][data-ls-kind="l"] {
  background: #d1d5db !important;
  box-shadow: inset 0 0 0 9999px rgba(209, 213, 219, 0.98);
}

.load-table tbody tr:hover td[data-column-key="dest l/s"][data-ls-kind="s"],
.load-table tbody tr:hover td[data-column-key="l/s"][data-ls-kind="s"],
.attention-row td[data-column-key="dest l/s"][data-ls-kind="s"],
.attention-row td[data-column-key="l/s"][data-ls-kind="s"],
.dispatch-conflict-row td[data-column-key="dest l/s"][data-ls-kind="s"],
.dispatch-conflict-row td[data-column-key="l/s"][data-ls-kind="s"] {
  background: #6b7280 !important;
  box-shadow: inset 0 0 0 9999px rgba(107, 114, 128, 0.98);
  color: #111827;
}

.load-table td[data-column-key="moveDispatchCode"] {
  font-weight: 700;
  color: #000;
}

.load-table td[data-column-key="status"] {
  font-weight: 700;
}

.load-table td[data-column-key="status"][data-status-kind="na"] {
  background: #f3f4f6 !important;
  box-shadow: inset 0 0 0 9999px rgba(243, 244, 246, 0.98);
  color: #4b5563 !important;
}

.load-table td[data-column-key="status"][data-status-kind="wfd"] {
  background: #ffedd5 !important;
  box-shadow: inset 0 0 0 9999px rgba(255, 237, 213, 0.98);
  color: #9a3412 !important;
}

.dispatch-code-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 3px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  height: 13px;
  min-height: 0;
  line-height: 1;
  margin: 0;
}

.bci-miles-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.bci-miles-primary {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bci-miles-meta {
  font-size: 10px;
  line-height: 1.15;
  color: var(--ink-soft);
  white-space: nowrap;
}

.load-table td[data-column-key="miles"][data-miles-alert="high"] {
  background: #fee2e2;
  text-align: center;
}

.load-table td[data-column-key="remainingDriveHours"] {
  font-weight: 700;
}

.load-table td[data-column-key="remainingDriveHours"][data-hours-status="normal"] .planned-count-label,
.load-table td[data-column-key="remainingDriveHours"][data-hours-status="normal"] .planned-count-button {
  background: #ffedd5;
  border-color: #fdba74;
  color: #9a3412;
}

.load-table td[data-column-key="remainingDriveHours"][data-hours-status="critical"] {
  background: #ffffff !important;
  box-shadow: none;
  color: inherit !important;
}

.load-table td[data-column-key="remainingDriveHours"][data-hours-status="critical"] .planned-count-label,
.load-table td[data-column-key="remainingDriveHours"][data-hours-status="critical"] .planned-count-button {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c !important;
}

.drivers-table td.miles-alert-cell {
  background: rgba(248, 215, 218, 0.7);
}

.dispatch-popup {
  position: fixed;
  z-index: 1000;
}

.dispatch-popup-card {
  min-width: 240px;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(16, 32, 51, 0.18);
}

.dispatch-popup-head {
  margin-bottom: 8px;
  color: #000;
  font-size: 0.85rem;
}

.dispatch-popup-grid {
  display: grid;
  gap: 6px;
}

.dispatch-popup-grid div {
  display: grid;
  gap: 1px;
}

.dispatch-popup-grid span {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.dispatch-popup-grid strong {
  color: #000;
  font-size: 0.82rem;
}

.move-details-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 32, 51, 0.24);
}

.move-details-modal[hidden] {
  display: none;
}

.move-details-card {
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-soft);
}

.move-details-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.move-details-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.move-details-head strong {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.move-details-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.move-details-tab.is-active {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.18);
}

.move-details-grid {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 8px 14px;
  margin-top: 14px;
}

.move-details-grid span {
  color: var(--ink-soft);
  font-weight: 700;
}

.move-details-grid strong {
  color: var(--ink-strong);
  font-weight: 700;
  word-break: break-word;
}

.move-details-history {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.driver-report-modal {
  z-index: 1120;
}

.driver-report-card {
  width: min(96vw, 1800px);
  max-height: 94vh;
  height: min(94vh, 1280px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.driver-report-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.move-details-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-strong);
  font-size: 12px;
}

.move-details-history-head span {
  color: var(--ink-soft);
}

.move-details-history-table th,
.move-details-history-table td {
  font-size: 12px;
}

.move-details-table-view th,
.move-details-table-view td {
  font-size: 12px;
  white-space: nowrap;
}

.load-table td[data-column-key="moveDispatchCode"][data-dispatch-code="a"] {
  background: #dbeafe;
}

body[data-terminal-code="__PICKUP_UNASSIGNED__"] .load-table td[data-column-key="status"][data-status-kind="lwp"] {
  background: #fde68a !important;
  box-shadow: inset 0 0 0 9999px rgba(253, 230, 138, 0.98);
  color: #000 !important;
}

body[data-terminal-code="__DELIVERY_UNASSIGNED__"] .load-table td[data-column-key="status"][data-status-kind="wfd"] {
  background: #ffedd5 !important;
  box-shadow: inset 0 0 0 9999px rgba(255, 237, 213, 0.98);
  color: #9a3412 !important;
}

body[data-terminal-code="__DELIVERY_UNASSIGNED__"] .load-table td[data-column-key="container"][data-unit-kind="reefer"] {
  background: transparent !important;
  box-shadow: none !important;
  color: #0ea5e9 !important;
  font-weight: 800;
}

body[data-terminal-code="__PRIORITIES__"] .load-table td[data-column-key="status"][data-status-kind="wfd"] {
  background: #ffedd5 !important;
  box-shadow: inset 0 0 0 9999px rgba(255, 237, 213, 0.98);
  color: #9a3412 !important;
}

body[data-terminal-code="__PREVIOUS_DAYS__"] .load-table td[data-column-key="status"][data-status-kind="wfd"] {
  background: #ffedd5 !important;
  box-shadow: inset 0 0 0 9999px rgba(255, 237, 213, 0.98);
  color: #9a3412 !important;
}

body[data-terminal-code="__PREVIOUS_DAYS__"] .load-table td[data-column-key="status"][data-status-kind="lwp"] {
  background: #fde68a !important;
  box-shadow: inset 0 0 0 9999px rgba(253, 230, 138, 0.98);
  color: #000 !important;
}

.load-table td[data-column-key="moveDispatchCode"][data-dispatch-code="i"] {
  background: #dcfce7;
}

.load-table td[data-column-key="moveDispatchCode"][data-dispatch-code="r"] {
  background: #fef3c7;
}

.load-table td[data-column-key="moveDispatchCode"][data-dispatch-code="d"] {
  background: #fee2e2;
}

body[data-terminal-code="__JEOPARDY__"] .load-table th,
body[data-terminal-code="__JEOPARDY__"] .load-table td {
  height: 22px;
}

body[data-terminal-code="__JEOPARDY__"] .planned-count-button,
body[data-terminal-code="__JEOPARDY__"] .planned-count-label,
body[data-terminal-code="__JEOPARDY__"] .dispatch-code-button {
  height: 15px;
  font-size: 11px;
  padding: 0 4px;
}

body[data-terminal-code="__JEOPARDY__"] .driver-name-button {
  line-height: 1;
  min-height: 0;
}

.load-table tbody tr:hover td[data-column-key="moveDispatchCode"][data-dispatch-code="a"] {
  background: #bfdbfe;
}

.load-table tbody tr:hover td[data-column-key="moveDispatchCode"][data-dispatch-code="i"] {
  background: #bbf7d0;
}

.load-table tbody tr:hover td[data-column-key="moveDispatchCode"][data-dispatch-code="r"] {
  background: #fde68a;
}

.load-table tbody tr:hover td[data-column-key="moveDispatchCode"][data-dispatch-code="d"] {
  background: #fecaca;
}

@keyframes conflict-pulse {
  0%, 100% {
    transform: none;
    box-shadow: none;
  }

  10% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18);
  }

  20% {
    transform: none;
    box-shadow: none;
  }

  30% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18);
  }

  40% {
    transform: none;
    box-shadow: none;
  }
}

@keyframes conflict-row-pulse {
  0%, 100% {
    background: transparent;
  }

  10% {
    background: rgba(180, 35, 24, 0.08);
  }

  20% {
    background: transparent;
  }

  30% {
    background: rgba(180, 35, 24, 0.08);
  }

  40% {
    background: transparent;
  }
}

.empty-state {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-muted);
  border: 1px dashed var(--line-strong);
}

.recovery-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 247, 245, 0.98), rgba(255, 237, 233, 0.98)),
    radial-gradient(circle at top right, rgba(180, 35, 24, 0.14), transparent 34%);
  box-shadow: 0 14px 32px rgba(16, 32, 51, 0.08);
}

.recovery-card + .recovery-card {
  margin-top: 0;
}

.recovery-card--manual {
  border-color: rgba(15, 118, 110, 0.2);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.98), rgba(236, 253, 245, 0.98));
}

.recovery-card-copy {
  display: grid;
  gap: 8px;
}

.recovery-card-copy h3 {
  margin: 0;
  font-size: 1rem;
}

.recovery-card-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.5;
}

.recovery-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-elevated);
  color: var(--ink-strong);
  box-shadow: var(--shadow-panel);
  transform: translateX(110%);
  animation: toast-slide-in 180ms ease-out forwards;
  pointer-events: auto;
}

.toast.is-dismissing {
  animation: toast-slide-out 180ms ease-in forwards;
}

.toast--success {
  border-color: rgba(15, 118, 110, 0.38);
}

.toast--error {
  border-color: rgba(180, 35, 24, 0.42);
}

.toast-message {
  min-width: 0;
  font-weight: 700;
  line-height: 1.35;
}

.toast-close {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--button-soft-bg);
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1;
}

@keyframes toast-slide-in {
  to {
    transform: translateX(0);
  }
}

@keyframes toast-slide-out {
  to {
    opacity: 0;
    transform: translateX(110%);
  }
}

.terminal-tabbar {
  position: relative;
  z-index: 4;
  padding: 0;
  background: linear-gradient(180deg, transparent, var(--bg-page) 32%, var(--bg-page) 100%);
}

.terminal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: visible;
  padding: 1px 1px 0;
}

.terminal-tab {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-panel);
  color: var(--ink-strong);
  padding: 8px 11px 9px;
  font: inherit;
  cursor: pointer;
  white-space: normal;
  min-width: 152px;
  display: grid;
  gap: 3px;
  text-align: left;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.terminal-tab.has-error {
  border-color: rgba(185, 28, 28, 0.22);
  box-shadow: inset 3px 0 0 rgba(185, 28, 28, 0.44);
}

.terminal-tab--compact {
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  white-space: nowrap;
}

.terminal-tab--child {
  min-width: 64px;
  margin-left: 8px;
}

.terminal-tab.is-active {
  background: var(--accent);
  color: white;
  border-color: transparent;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.18);
}

.terminal-tab.has-alert:not(.terminal-tab--jeopardy) {
  color: #7f1d1d;
  border-color: rgba(180, 35, 24, 0.18);
  background: linear-gradient(180deg, rgba(255, 241, 240, 0.98), rgba(255, 233, 231, 0.98));
  box-shadow: inset 3px 0 0 rgba(180, 35, 24, 0.42);
}

.terminal-tab.has-alert.is-active:not(.terminal-tab--jeopardy) {
  color: #fff;
  background: #b42318;
  border-color: transparent;
}

.terminal-tab-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.10);
  border: 1px solid rgba(220, 38, 38, 0.14);
  color: #991b1b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.terminal-tab--jeopardy:not(.is-active) {
  border-style: dashed;
}

.terminal-tab--jeopardy.has-alert {
  color: #fff;
  background: #b42318;
  border-color: transparent;
}

.terminal-tab--jeopardy.has-alert.is-active {
  background: #8f231a;
}

.terminal-tab--action.has-alert:not(.is-active) {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.98), rgba(191, 219, 254, 0.98));
}

.terminal-tab--action.has-alert.is-active {
  color: #fff;
  background: #2563eb;
  border-color: transparent;
}

.terminal-tab--danger:not(.is-active) {
  color: #7f1d1d;
  border-color: rgba(180, 35, 24, 0.24);
  background: linear-gradient(180deg, rgba(255, 235, 233, 0.98), rgba(255, 216, 212, 0.98));
}

.terminal-tab--danger.is-active {
  background: #b42318;
  color: #fff;
  border-color: transparent;
}

.terminal-tab-code {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-view-mode="reappointments"] .load-table-wrap {
  border-radius: 0;
  background: #fff;
  border: 0;
}

body[data-view-mode="reappointments"] .load-table {
  border-collapse: collapse;
  background: #fff;
  color: #0f172a;
  min-width: 1320px;
  width: 100%;
}

body[data-view-mode="reappointments"] .load-table th,
body[data-view-mode="reappointments"] .load-table td {
  border: 1px solid #111;
  font-size: 11px;
  line-height: 1.15;
  padding: 2px 6px;
  height: 21px;
}

body[data-view-mode="reappointments"] .reappointment-header {
  background: #ed7d31;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

body[data-view-mode="reappointments"] .reappointment-header[data-column-key="shipperConsignee"] {
  background: #bf9000;
}

body[data-view-mode="reappointments"] .reappointment-header--reason {
  background: #9dc3e6;
  color: #111;
}

body[data-view-mode="reappointments"] .reappointment-cell {
  background: #fff;
  color: #0f172a;
  font-weight: 400;
  outline: none;
  vertical-align: top;
}

body[data-view-mode="reappointments"] .reappointment-cell:focus {
  box-shadow: inset 0 0 0 2px #2563eb;
}

body[data-view-mode="reappointments"] .reappointment-terminal-cell {
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

body[data-view-mode="reappointments"] .reappointment-row.is-selected .reappointment-cell {
  background: #eaf2ff;
}

body[data-view-mode="reappointments"] .reappointment-cell--reason {
  font-weight: 400;
  min-width: 520px;
}

body[data-view-mode="reappointments"] .reappointment-spacer-row td {
  height: 14px;
  border: 0;
  background: #fff;
}

.reappointments-toolbar {
  display: grid;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #d8dee9;
  background: #fff;
}

.reappointments-actions,
.reappointments-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
}

.reappointments-filters label {
  display: grid;
  gap: 3px;
  min-width: 132px;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.reappointments-filters input,
.reappointments-filters select {
  height: 30px;
  border: 1px solid #a8b3c4;
  border-radius: 3px;
  padding: 3px 7px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.reappointments-filters .reappointments-search {
  min-width: 260px;
  flex: 1;
}

@media print {
  body[data-view-mode="reappointments"] header,
  body[data-view-mode="reappointments"] .toolbar,
  body[data-view-mode="reappointments"] .terminal-tabbar,
  body[data-view-mode="reappointments"] .drivers-panel,
  body[data-view-mode="reappointments"] .settings-panel,
  body[data-view-mode="reappointments"] .reappointments-toolbar,
  body[data-view-mode="reappointments"] #terminalTopStats,
  body[data-view-mode="reappointments"] #errorBanner {
    display: none !important;
  }

  body[data-view-mode="reappointments"] .app-shell,
  body[data-view-mode="reappointments"] .dashboard-layout,
  body[data-view-mode="reappointments"] .table-panel,
  body[data-view-mode="reappointments"] .load-table-wrap {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

.terminal-tab-name {
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.2;
}

.terminal-tab-username {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.78;
}

.terminal-section-row td {
  position: sticky;
  top: var(--sticky-section-offset);
  z-index: 1;
  padding: 0;
  border-bottom: 0;
  background: var(--bg-panel);
}

.terminal-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 6px 10px 5px;
  background: rgba(15, 118, 110, 0.05);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(16, 32, 51, 0.08);
}

.terminal-section-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.terminal-section-toggle .terminal-section-heading {
  transition: background 140ms ease;
}

.terminal-section-toggle:hover .terminal-section-heading,
.terminal-section-toggle.is-open .terminal-section-heading {
  background: rgba(15, 118, 110, 0.09);
}

.terminal-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 11px;
  line-height: 1;
}

.terminal-section-caret {
  display: inline-block;
  width: 10px;
  font-size: 11px;
}

.terminal-section-meta {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.terminal-group-load-row td {
  background: rgba(255, 255, 255, 0.34);
}

.pool-subhead-row td {
  background: var(--table-head-bg);
  color: var(--ink-soft);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pool-note-row td {
  background: rgba(17, 94, 89, 0.06);
  color: var(--ink-strong);
  font-style: italic;
  text-align: left;
}

.bci-driver-input {
  width: 100%;
  min-width: 96px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input-bg);
  padding: 3px 7px;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1;
}

.bci-driver-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  outline: none;
}

.pool-required-input {
  width: 100%;
  min-width: 48px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1px 4px;
  font: inherit;
  color: inherit;
  text-align: center;
}

.pool-live-count-button {
  width: 100%;
  min-width: 52px;
  border: 1px solid rgba(16, 32, 51, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 1px 4px;
  font: inherit;
  color: #000;
  text-align: center;
  cursor: pointer;
}

.pool-live-count-button:disabled {
  cursor: default;
  opacity: 0.7;
}


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

@keyframes jeopardy-blink {
  0%, 49% {
    background: #b42318;
    box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.45);
  }

  50%, 100% {
    background: #dd524c;
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
  }
}

@media (max-width: 900px) {
  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .drivers-layout {
    grid-template-columns: 1fr;
  }

  .drivers-terminal-columns {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .drivers-topbar {
    grid-template-columns: 1fr;
  }

  .driver-profile-form {
    grid-template-columns: 1fr;
  }

  .driver-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .drivers-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .driver-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .driver-current-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 12px;
  }

  .panel {
    padding: 8px;
  }

  .settings-panel {
    width: 100%;
  }

  .settings-panel[open] {
    position: static;
  }

  .toolbar-actions,
  .toolbar-buttons {
    justify-items: stretch;
    justify-content: stretch;
  }

  .toolbar-buttons > * {
    flex: 1 1 100%;
    text-align: center;
  }

  .toolbar-select {
    text-align: left;
  }

  .column-row {
    flex-direction: column;
    align-items: start;
  }

  .recovery-card {
    grid-template-columns: 1fr;
  }

  .recovery-card-actions {
    justify-content: stretch;
  }

  .terminal-section-heading {
    flex-direction: column;
    align-items: start;
  }

}

@media (max-width: 600px) {
  .page-shell {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .terminal-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg-panel);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.12);
  }

  .terminal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
  }

  .terminal-tab,
  .terminal-tab--compact {
    min-height: 48px;
    min-width: 92px;
    padding: 10px 12px;
  }

  .terminal-tab--child {
    margin-left: 0;
  }

  .toast-container {
    right: 10px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
  }
}
