:root {
  --bg: #eef6fb;
  --surface: rgba(255, 255, 255, 0.82);
  --line: #d4e3ef;
  --text: #183247;
  --muted: #628198;
  --brand: #1992c6;
  --brand-strong: #156fa6;
  --accent: #38b2ac;
  --danger: #dc5f5f;
  --shadow: 0 18px 42px rgba(42, 89, 124, 0.10);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 178, 172, 0.16), transparent 24%),
    radial-gradient(circle at bottom right, rgba(25, 146, 198, 0.16), transparent 28%),
    linear-gradient(180deg, #f5fbff, #e8f2fa);
}
.login-body, .driver-body, .admin-body { min-height: 100vh; }
.login-body {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.68), transparent 34%),
    linear-gradient(180deg, #edf7fd 0%, #d9ebf8 100%);
}
.login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.login-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.9;
  animation: floatOrb 14s ease-in-out infinite;
}
.login-orb-a {
  width: 360px;
  height: 360px;
  top: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(19, 125, 203, 0.32), rgba(19, 125, 203, 0.02) 68%);
}
.login-orb-b {
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(255, 141, 47, 0.28), rgba(255, 141, 47, 0.02) 72%);
  animation-delay: -7s;
}
.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.26) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 78%);
}
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: var(--brand); margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
button, input, select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
}
select[multiple] {
  min-height: 132px;
  padding: 10px 12px;
}
button { border: 0; cursor: pointer; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; font-weight: 700; }
textarea { min-height: 96px; resize: vertical; }
#sharedTourDispatchText {
  min-height: 140px;
  overflow-y: hidden;
}
.ghost-btn { background: transparent; border: 1px solid var(--line); color: var(--text); }

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-content: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 36px;
}
.brand-panel, .login-panel, .mobile-card, .sidebar, .content, .card-block, .list-card, .stat-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,.65); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.brand-panel, .login-panel { padding: 28px; }
.brand-panel {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(236,247,254,.88)),
    radial-gradient(circle at top right, rgba(255, 150, 56, 0.16), transparent 34%);
}
.login-panel {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(242,249,255,.92));
}
.brand-mark {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 18px;
  align-items: center;
}
.brand-mark > div {
  min-width: 0;
}
.brand-logo { width: 104px; height: 104px; display: block; margin-bottom: 0; filter: drop-shadow(0 18px 28px rgba(21, 102, 160, 0.18)); }
.login-subtitle {
  margin-bottom: 0;
  max-width: 460px;
  line-height: 1.7;
}
.login-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.login-feature-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20, 111, 166, 0.08);
  color: #115978;
  font-size: 12px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(20, 111, 166, 0.08);
}
.login-panel-head {
  margin-bottom: 12px;
  text-align: center;
}
.login-panel .form {
  gap: 12px;
}
.login-panel .form,
.login-panel-head,
.brand-panel .login-feature-strip,
.brand-panel .brand-mark {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.login-panel input {
  min-height: 50px;
  border-radius: 16px;
  background: rgba(247, 251, 255, 0.96);
  border-color: rgba(187, 210, 226, 0.92);
}
.login-panel button[type="submit"] {
  min-height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d8fc2, #155ca8 58%, #0f4a86);
  box-shadow: 0 14px 26px rgba(19, 85, 143, 0.22);
}
.sidebar-logo { width: 48px; height: 48px; display: block; margin-bottom: 8px; }
.sidebar .eyebrow {
  margin-bottom: 2px;
}
.sidebar .muted {
  margin-bottom: 0;
  line-height: 1.2;
}
.device-badge { display: inline-flex; margin-top: 10px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.desktop-badge { background: rgba(13, 79, 184, .12); color: #0d4fb8; }
.mobile-badge { background: rgba(56, 178, 172, .14); color: #17837e; }
.login-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.login-tags span, .badge { padding: 6px 10px; border-radius: 999px; background: rgba(25, 146, 198, .10); color: var(--brand-strong); font-size: 12px; display: inline-block; }
.demo-box { margin-top: 18px; color: var(--muted); font-size: 14px; }
@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -18px, 0) scale(1.04); }
}

.admin-body {
  font-size: 14px;
  background:
    linear-gradient(180deg, #f4fbff, #eaf5fb 26%, #f7fcff 100%);
}
.app-shell { display: grid; grid-template-columns: 222px 1fr; min-height: 100vh; gap: 14px; padding: 14px; }
.sidebar {
  padding: 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(236,247,252,.96));
}
.sidebar-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin-top: 20px;
  padding-right: 4px;
}
.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(25, 146, 198, 0.22);
  border-radius: 999px;
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.nav-list { display: grid; gap: 6px; }
.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
}
.admin-notification-btn {
  position: relative;
  justify-content: center;
}
.admin-notification-badge {
  position: absolute;
  top: 6px;
  right: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b6b, #d62839);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(214, 40, 57, .24);
}
.admin-notification-actions {
  justify-content: space-between;
}
.admin-notification-list {
  display: grid;
  gap: 10px;
  max-height: min(56vh, 520px);
  overflow-y: auto;
}
.admin-notification-list .list-card.is-clickable {
  cursor: pointer;
}
.admin-notification-list .list-card.is-clickable:hover {
  box-shadow: 0 14px 28px rgba(25, 146, 198, 0.14);
}
.admin-notification-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.admin-notification-entry.is-read {
  opacity: 0.82;
}
.admin-notification-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.admin-notification-copy strong,
.admin-notification-copy p,
.admin-notification-copy span {
  margin: 0;
}
.admin-notification-copy p {
  color: #32556c;
}
.table-badge.warning {
  background: rgba(255, 184, 77, 0.16);
  color: #a35c00;
}
.nav-group {
  display: grid;
  gap: 6px;
}
.nav-btn { text-align: left; min-height: 34px; padding: 8px 11px; font-size: 12px; border-radius: 16px; }
.nav-btn.active { background: linear-gradient(135deg, var(--brand), var(--accent)); }
.nav-toggle {
  position: relative;
  padding-right: 28px;
}
.nav-toggle::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  opacity: 0.78;
}
.nav-toggle.collapsed::after {
  content: "▸";
}
.nav-sublist {
  display: grid;
  gap: 4px;
  padding-left: 8px;
}
.nav-sublist.collapsed {
  display: none;
}
.nav-subbtn {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 11px;
}
.nav-btn-base {
  background: linear-gradient(135deg, #f6a542, #eb7f1e);
  color: #fff7ee;
}
.nav-btn-base::after {
  color: rgba(255, 247, 238, 0.92);
}
.nav-btn-base.active {
  background: linear-gradient(135deg, #ffb553, #e57114);
}
.nav-subbtn-base {
  background: rgba(246, 165, 66, 0.12);
  color: #8f4708;
}
.nav-subbtn-base.active {
  background: linear-gradient(135deg, #f6a542, #eb7f1e);
  color: #fff7ee;
}
.shared-tour-line-form {
  grid-template-columns: 2fr 1fr;
}
.shared-tour-line-form .dialog-head,
.shared-tour-line-form textarea,
.shared-tour-line-form .dialog-actions {
  grid-column: 1 / -1;
}
.shared-tour-line-name {
  grid-column: span 1;
}
.shared-tour-filter-form {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 160px 280px 180px;
  gap: 10px;
  align-items: center;
}
.shared-tour-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
.shared-tour-toolbar > .shared-tour-filter-form {
  order: 1;
}
.shared-tour-actions {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0;
}
.shared-tour-actions > button {
  width: auto;
  flex: 0 0 auto;
  min-width: 180px;
}
.shared-tour-list-wrap {
  margin-top: -2px;
}
.toolbar-row > .create-btn,
.toolbar-row > .contract-btn,
.toolbar-row > .dispatch-btn {
  min-width: 164px;
  justify-content: center;
}
.shared-tour-actions > .create-btn,
.shared-tour-actions > .contract-btn,
.shared-tour-actions > .dispatch-btn,
.shared-tour-actions > .secondary-btn {
  min-width: 164px;
  justify-content: center;
}
.shared-tour-chart-panel {
  margin-bottom: 10px;
}
.shared-tour-people-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 14px;
}
.shared-tour-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(243, 249, 253, 0.96);
  color: #35566c;
  font-size: 12px;
  font-weight: 700;
}
.shared-tour-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.shared-tour-people-chart {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 240px;
}
.shared-tour-people-column {
  display: grid;
  gap: 8px;
  align-items: end;
}
.shared-tour-people-date {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #577287;
}
.shared-tour-people-stack {
  min-height: 190px;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(198, 219, 232, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(239, 247, 252, 0.95));
  align-items: flex-end;
}
.shared-tour-people-bar-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.shared-tour-chart-bar-btn {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.shared-tour-people-segment-total {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #426377;
  line-height: 1;
}
.driver-dispatch-text {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font: inherit;
}
.shared-tour-people-segment {
  width: 100%;
  min-height: 18px;
  border-radius: 10px 10px 4px 4px;
}
.shared-tour-people-empty {
  min-height: 18px;
  flex: 1 1 auto;
}
.content {
  padding: 18px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(242,250,255,.94));
}
.tab { display: none; }
.tab.active { display: block; }
.stats-grid, .card-grid.two-col { display: grid; gap: 12px; }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.card-grid.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card, .card-block, .list-card { padding: 14px; }
.section-head, .topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.section-head h2, .topbar h2 { font-size: 16px; margin-bottom: 0; }
.overview-top-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.overview-range-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(18, 127, 190, 0.08);
}
.overview-section {
  margin-bottom: 14px;
}
.overview-focus-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.overview-focus-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(239,248,255,.92));
}
.overview-focus-card h4,
.overview-pulse-card h4,
.overview-metric-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.overview-focus-value,
.overview-pulse-value,
.overview-metric-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #12344b;
}
.overview-focus-note,
.overview-pulse-note,
.overview-metric-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.overview-priority-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 14px;
  margin-bottom: 14px;
}
.overview-reminder-list {
  display: grid;
  gap: 10px;
}
.overview-reminder-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  color: var(--text);
}
.overview-reminder-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.overview-reminder-item p {
  margin: 0;
}
.overview-reminder-item.priority-high {
  border-color: rgba(214, 67, 67, 0.18);
  background: linear-gradient(180deg, rgba(255,244,244,.95), rgba(255,249,249,.98));
}
.overview-reminder-item.priority-high strong { color: #c53d3d; }
.overview-reminder-item.priority-medium {
  border-color: rgba(235, 153, 40, 0.2);
  background: linear-gradient(180deg, rgba(255,249,238,.95), rgba(255,252,246,.98));
}
.overview-reminder-item.priority-medium strong { color: #c07a11; }
.overview-reminder-item.priority-low {
  border-color: rgba(54, 128, 203, 0.18);
  background: linear-gradient(180deg, rgba(243,249,255,.95), rgba(248,252,255,.98));
}
.overview-reminder-item.priority-low strong { color: #2e6fb2; }
.overview-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.overview-pulse-card,
.overview-metric-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(242,249,255,.92));
}
.overview-core-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 0.95fr;
  gap: 14px;
  margin-bottom: 14px;
}
.overview-trend-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 220px;
  margin-bottom: 14px;
}
.overview-trend-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.overview-trend-value {
  font-size: 12px;
  font-weight: 700;
  color: #2f6ea5;
}
.overview-trend-bar {
  width: 100%;
  min-height: 10px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #2fa7df, #1472c2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.overview-trend-label {
  font-size: 12px;
  color: var(--muted);
}
.overview-status-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.overview-status-row {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 10px;
  align-items: center;
}
.overview-status-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(18, 127, 190, 0.1);
  overflow: hidden;
}
.overview-status-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1e95d1, #47c0df);
}
.overview-inline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.overview-inline-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 127, 190, 0.08);
  color: #2d658e;
  font-size: 12px;
  font-weight: 600;
}
.overview-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.overview-resource-pressure,
.overview-mini-trend,
.overview-mini-list {
  display: grid;
  gap: 10px;
}
.overview-driver-map-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.section-head.compact {
  margin-bottom: 0;
}
.overview-driver-map {
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  overflow: hidden;
}
.overview-driver-location-list {
  display: grid;
  gap: 8px;
}
.overview-driver-location-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
}
.overview-driver-location-item strong,
.overview-driver-location-item span,
.overview-driver-location-item p {
  margin: 0;
}
.overview-driver-location-copy {
  display: grid;
  gap: 4px;
}
.overview-driver-location-copy p {
  color: var(--muted);
  font-size: 12px;
}
.overview-driver-location-meta {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}
.overview-pressure-row,
.overview-mini-list-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  color: var(--text);
}
.overview-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.overview-quick-links {
  display: grid;
  gap: 10px;
}
.overview-quick-links button {
  width: 100%;
  justify-content: flex-start;
}
.overview-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.overview-link-btn small {
  color: var(--muted);
  font-size: 12px;
}
.overview-empty {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.7);
}
.finance-section {
  margin-bottom: 14px;
}
.finance-filter-toolbar {
  margin-bottom: 14px;
}
.finance-filter-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0;
}
.finance-kpi-grid,
.finance-health-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.finance-priority-grid,
.finance-analysis-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 14px;
  margin-bottom: 14px;
}
.finance-reminder-list {
  display: grid;
  gap: 10px;
}
.finance-reminder-item {
  width: 100%;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.finance-reminder-item.priority-high {
  background: linear-gradient(180deg, rgba(255,244,244,.96), rgba(255,250,250,.98));
  border-color: rgba(217, 74, 74, .18);
}
.finance-reminder-item.priority-medium {
  background: linear-gradient(180deg, rgba(255,249,238,.96), rgba(255,252,246,.98));
  border-color: rgba(224, 156, 43, .18);
}
.finance-reminder-item.priority-low {
  background: linear-gradient(180deg, rgba(244,249,255,.96), rgba(248,252,255,.98));
  border-color: rgba(70, 129, 202, .16);
}
.finance-reminder-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.finance-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(242,249,255,.92));
}
.finance-card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.finance-card .value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #12344b;
}
.finance-card .note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.finance-trend-chart {
  min-height: 200px;
}
.finance-trend-day {
  gap: 6px;
}
.finance-trend-track {
  width: 100%;
  min-height: 156px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 6px 0;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18,127,190,.06), rgba(18,127,190,.015));
}
.finance-trend-bar {
  width: 100%;
  max-width: 42px;
  background: linear-gradient(180deg, #47c0df, #1d78c9);
}
.finance-trend-value {
  font-size: 11px;
  text-align: center;
}
.finance-trend-meta {
  font-size: 11px;
  color: var(--muted);
}
.finance-aging-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
}
.finance-aging-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.finance-aging-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(18,127,190,.08);
}
.finance-aging-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9f5a, #e56c3f);
}
.finance-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.finance-quick-actions button {
  width: 100%;
  justify-content: flex-start;
}
.toolbar-row {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.desktop-note { max-width: 780px; }
.form { display: grid; gap: 8px; margin-bottom: 10px; }
.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}
.filter-toolbar .form {
  margin-bottom: 0;
}
.filter-toolbar .toolbar-row {
  margin-bottom: 0;
  justify-content: flex-end;
  align-items: end;
  align-self: end;
}
.quote-filter-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.quote-filter-form {
  grid-template-columns: 1.15fr 1fr 1fr 0.9fr auto;
  margin-bottom: 0;
}
.quote-filter-form button[type="submit"] {
  width: auto;
  min-width: 110px;
}
.quote-filter-toolbar .toolbar-row {
  align-self: center;
}
.quote-filter-toolbar .create-btn {
  width: auto;
  min-width: 132px;
}
.order-filter-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0;
}
.order-filter-form button[type="submit"] {
  width: auto;
  min-width: 112px;
}
.expense-filter-form {
  grid-template-columns: repeat(4, minmax(180px, 240px));
  gap: 14px 16px;
  margin-bottom: 14px;
  align-items: start;
  justify-content: start;
}
.expense-filter-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(180px, 220px) minmax(160px, 200px) auto;
  gap: 12px;
  align-items: center;
  justify-content: start;
  margin-bottom: 8px;
}
.expense-filter-actions button {
  width: auto;
  min-width: 104px;
}
.expense-filter-date-range {
  min-width: 0;
}
.expense-summary-inline {
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0;
  align-self: stretch;
}
.expense-summary-inline .stat-card {
  min-height: 88px;
}
.expense-filter-form {
  margin-top: 12px;
}
.accommodation-filter-form {
  grid-template-columns: 1fr 1fr 1fr auto;
}
.accommodation-filter-form button[type="submit"] {
  width: auto;
  min-width: 120px;
}
.dispatch-calendar-panel {
  margin-top: 14px;
}
.dispatch-calendar-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}
.dispatch-calendar-board {
  min-width: 1280px;
  display: grid;
  gap: 10px;
}
.dispatch-calendar-header,
.dispatch-calendar-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.dispatch-calendar-driver-head,
.dispatch-calendar-driver-cell {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}
.dispatch-calendar-driver-head {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
}
.dispatch-calendar-driver-cell {
  display: grid;
  gap: 4px;
}
.dispatch-calendar-driver-cell strong {
  font-size: 14px;
}
.dispatch-calendar-driver-cell span {
  font-size: 12px;
  color: var(--muted);
}
.dispatch-calendar-days-head {
  display: grid;
  grid-template-columns: repeat(var(--days), minmax(72px, 1fr));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
}
.dispatch-calendar-day-head,
.dispatch-calendar-day-cell {
  border-left: 1px solid rgba(212, 227, 239, 0.9);
}
.dispatch-calendar-day-head:first-child,
.dispatch-calendar-day-cell:first-child {
  border-left: 0;
}
.dispatch-calendar-day-head {
  min-height: 56px;
  padding: 10px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  color: var(--text);
  background: rgba(244, 251, 255, 0.94);
}
.dispatch-calendar-day-head strong {
  font-size: 13px;
}
.dispatch-calendar-track {
  position: relative;
  min-height: calc(var(--lanes) * 34px + 16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
}
.dispatch-calendar-grid,
.dispatch-calendar-events {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--days), minmax(72px, 1fr));
}
.dispatch-calendar-grid {
  z-index: 0;
}
.dispatch-calendar-day-cell {
  min-height: 100%;
  background: rgba(244, 251, 255, 0.64);
}
.dispatch-calendar-day-head.is-weekend,
.dispatch-calendar-day-cell.is-weekend {
  background: rgba(228, 242, 249, 0.96);
}
.dispatch-calendar-events {
  z-index: 1;
  padding: 8px 6px;
  grid-auto-rows: 28px;
  row-gap: 6px;
  pointer-events: none;
}
.dispatch-calendar-event {
  width: auto;
  min-width: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #7a66d8, #8c6fe2);
  box-shadow: 0 10px 18px rgba(122, 102, 216, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
}
.accommodation-preview-panel {
  margin-bottom: 12px;
}
.accommodation-preview-table-wrap {
  overflow-x: auto;
}
.accommodation-preview-table {
  min-width: 720px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
}
.accommodation-preview-head,
.accommodation-preview-city,
.accommodation-preview-cell {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(212, 227, 239, 0.9);
  border-right: 1px solid rgba(212, 227, 239, 0.9);
}
.accommodation-preview-head:nth-child(4n),
.accommodation-preview-cell:nth-child(4n),
.accommodation-preview-city:nth-child(4n) {
  border-right: 0;
}
.accommodation-preview-head {
  font-size: 14px;
  font-weight: 800;
  background: rgba(246, 251, 255, 0.96);
}
.accommodation-preview-city {
  font-size: 15px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
}
.accommodation-preview-cell {
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
}
.accommodation-preview-table > *:nth-last-child(-n + 4) {
  border-bottom: 0;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-all { grid-column: 1 / -1; }
.span-2 { grid-column: span 2; }
.settings-panel { max-width: 860px; }
.settings-form { gap: 18px; }
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(75, 124, 180, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
}
.settings-toggle-row strong {
  display: block;
  margin-bottom: 6px;
}
.settings-toggle-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}
.field-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.date-range-field {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}
.date-range-field input {
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.date-range-field span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.textarea-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.textarea-toolbar p {
  margin-bottom: 0;
  font-size: 12px;
}
.textarea-toolbar .ghost-btn {
  width: auto;
  min-width: 116px;
}
.quote-actions-toolbar {
  align-items: start;
}
.quote-actions-toolbar p {
  max-width: 560px;
  line-height: 1.45;
}
.quote-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  justify-self: end;
}
.quote-inline-actions .ghost-btn {
  min-width: 118px;
}
.quote-empty-drive-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}
.quote-empty-drive-row .checkbox-row {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}
.quote-over-mileage-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 10px;
  align-items: stretch;
}
.field-label-chip {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 700;
}
.upload-field {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}
.upload-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.upload-field input[type="file"] {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}
.file-preview-list {
  display: grid;
  gap: 8px;
}
.inline-file-cell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.inline-file-thumb {
  display: block;
  width: 72px;
  min-width: 72px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(25, 146, 198, 0.08);
}
.inline-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inline-file-card {
  display: inline-grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.inline-file-card .file-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(25, 146, 198, 0.1);
  color: var(--brand-strong);
  font-weight: 800;
}
.file-folder-browser {
  display: grid;
  gap: 10px;
}
.file-explorer {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.file-explorer-sidebar {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
}
.file-explorer-sidebar-title {
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.file-explorer-tree {
  display: grid;
  gap: 8px;
}
.file-tree-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(192, 216, 231, 0.9);
  background: rgba(245, 251, 255, 0.95);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}
.file-tree-btn strong {
  margin-left: auto;
  color: var(--brand-strong);
}
.file-tree-btn.active {
  background: linear-gradient(135deg, rgba(19, 135, 194, 0.12), rgba(67, 192, 196, 0.18));
  border-color: rgba(25, 146, 198, 0.35);
}
.file-tree-icon {
  width: 20px;
  text-align: center;
}
.file-explorer-content {
  min-width: 0;
}
.file-explorer-pane {
  display: none;
}
.file-explorer-pane.active {
  display: block;
}
.file-explorer-pane-head {
  margin-bottom: 10px;
}
.file-explorer-pane-head h3 {
  margin: 0;
}
.file-folder-node {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}
.file-folder-node > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(241, 249, 255, 0.95), rgba(233, 244, 252, 0.92));
  display: flex;
  align-items: center;
  gap: 8px;
}
.file-folder-node > summary::-webkit-details-marker {
  display: none;
}
.file-folder-node > summary::before {
  content: "▸";
  font-size: 12px;
  color: var(--brand-strong);
  transition: transform .18s ease;
}
.file-folder-node[open] > summary::before {
  transform: rotate(90deg);
}
.file-folder-content {
  display: grid;
  gap: 10px;
  padding: 12px;
}
.file-folder-year {
  margin-left: 10px;
}
.file-folder-month {
  margin-left: 22px;
}
.file-entry-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(192, 216, 231, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}
.file-entry-main {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.file-entry-main strong {
  word-break: break-word;
}
.file-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 12px;
}
.mobile-file-browser .file-entry-card {
  flex-direction: column;
}
.driver-file-list {
  display: grid;
  gap: 12px;
}
.driver-file-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(192, 216, 231, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(32, 74, 104, 0.08);
}
.driver-file-card-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.driver-file-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  word-break: break-word;
}
.driver-file-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 12px;
}
.driver-file-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b98c4, #2c7dd1);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(44, 125, 209, 0.22);
}
.driver-file-download-btn:hover {
  filter: brightness(1.03);
}
.driver-file-actions {
  display: grid;
  gap: 8px;
  min-width: 140px;
}
.driver-file-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(235, 245, 252, 0.98);
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(176, 207, 227, 0.92);
}
.driver-file-open-btn:hover {
  background: rgba(225, 239, 249, 0.98);
}
@media (max-width: 900px) {
  .file-explorer,
  .mobile-file-explorer {
    grid-template-columns: 1fr;
  }
  .file-explorer-tree {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
.file-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}
.file-preview-card.rich {
  align-items: stretch;
}
.file-preview-visual {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.file-preview-link {
  color: inherit;
  text-decoration: none;
}
.file-preview-thumb {
  width: 160px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(25, 146, 198, 0.08);
}
.file-preview-file {
  grid-template-columns: 44px 1fr;
  align-items: center;
}
.file-preview-file span,
.file-preview-visual span {
  color: var(--brand-strong);
  font-weight: 700;
  word-break: break-all;
}
.expense-images-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 8px;
}
.expense-image-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-decoration: none;
}
.expense-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(25, 146, 198, 0.08);
}
.expense-image-card.file {
  align-content: center;
  justify-items: start;
}
.expense-image-card.file .driver-file-icon {
  width: 52px;
  height: 52px;
}
.expense-image-card span {
  font-size: 12px;
  color: var(--brand-strong);
  font-weight: 700;
}
.driver-attachment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.driver-attachment-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  text-decoration: none;
}
.driver-attachment-card.image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(25, 146, 198, 0.08);
}
.driver-attachment-card span {
  font-size: 12px;
  color: var(--brand-strong);
  font-weight: 700;
  word-break: break-all;
}
.driver-attachment-card.file {
  grid-template-columns: 44px 1fr;
  align-items: center;
}
.driver-attachment-card.compact {
  max-width: 220px;
}
.driver-attachment-card.compact.image img {
  aspect-ratio: 16 / 10;
}
.driver-file-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #5f7df0, #3b5bcc);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.driver-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.driver-expense-row {
  display: grid;
  gap: 8px;
}
.driver-accommodation-row {
  display: grid;
  gap: 8px;
}
.driver-expense-row .actions {
  margin-top: 2px;
}
.quote-item-list {
  display: block;
  overflow-x: auto;
  padding-bottom: 4px;
  white-space: nowrap;
}
.quote-item-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px;
  min-width: 1280px;
  width: max-content;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}
.quote-item-head {
  padding: 0 8px;
  border: 0;
  background: transparent;
}
.quote-item-head div {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.quote-item-head div:nth-child(1) { width: 116px; }
.quote-item-head div:nth-child(2) { width: 150px; }
.quote-item-head div:nth-child(3) { width: 170px; }
.quote-item-head div:nth-child(4) { width: 180px; }
.quote-item-head div:nth-child(5) { width: 220px; }
.quote-item-head div:nth-child(6) { width: 120px; }
.quote-item-head div:nth-child(7) { width: 220px; }
.quote-item-head div:nth-child(8) { width: 164px; justify-content: center; }
.quote-item-row input,
.quote-item-row select,
.quote-item-row textarea,
.quote-item-row button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
}
.quote-item-date { width: 116px; }
.quote-item-city { width: 150px; }
.quote-item-name { width: 170px; }
.quote-item-hotel-name { width: 180px; }
.quote-item-hotel-address { width: 220px; }
.quote-item-amount { width: 120px; }
.quote-item-notes {
  width: 220px;
  min-height: 38px;
  overflow-y: hidden;
  resize: none;
}
.quote-item-remove {
  width: 88px;
  min-width: 88px;
}
.quote-item-actions {
  width: 164px;
  display: flex;
  gap: 6px;
}
.quote-item-actions .secondary-btn,
.quote-item-actions .danger-btn {
  width: 79px;
  min-width: 79px;
}
.city-price-list {
  display: block;
  overflow-x: auto;
  padding-bottom: 4px;
}
.city-price-head div:nth-child(1) { width: 240px; }
.city-price-head div:nth-child(2) { width: 140px; }
.city-price-head div:nth-child(3) { width: 140px; }
.city-price-head div:nth-child(4) { width: 88px; justify-content: center; }
.city-price-row {
  min-width: 648px;
}
.city-price-name { width: 240px; }
.city-price-value { width: 140px; }
.city-price-peak-value { width: 140px; }
.city-price-remove {
  width: 88px;
  min-width: 88px;
}
.city-season-head div:nth-child(1) { width: 180px; }
.city-season-head div:nth-child(2) { width: 150px; }
.city-season-head div:nth-child(3) { width: 150px; }
.city-season-head div:nth-child(4) { width: 88px; justify-content: center; }
.city-season-row {
  min-width: 612px;
}
.city-season-label { width: 180px; }
.city-season-start,
.city-season-end { width: 150px; }
.city-season-remove {
  width: 88px;
  min-width: 88px;
}
.long-distance-alert {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.city-price-table {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.city-price-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  align-items: center;
  min-height: 40px;
}
.vehicle-maintenance-table {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.vehicle-maintenance-row {
  display: grid;
  grid-template-columns: 108px 120px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 12px;
  font-size: 12px;
  border-top: 1px solid rgba(140, 175, 201, 0.18);
}
.vehicle-maintenance-row:first-child {
  border-top: 0;
}
.vehicle-maintenance-head {
  font-weight: 700;
  color: var(--muted);
  background: rgba(232, 243, 250, 0.76);
}
.city-price-table-row span {
  padding: 10px 12px;
  font-size: 12px;
}
.city-price-table-row span + span {
  border-left: 1px solid var(--line);
}
.city-price-table-row + .city-price-table-row {
  border-top: 1px solid var(--line);
}
.city-price-table-head {
  background: rgba(25, 146, 198, 0.10);
  color: var(--brand-strong);
  font-weight: 700;
}
.quote-item-empty {
  display: block;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
}
.order-detail-list {
  display: block;
  overflow-x: auto;
  padding-bottom: 4px;
  white-space: nowrap;
}
.order-detail-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 8px;
  min-width: 1120px;
  width: max-content;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}
.order-detail-day {
  flex: 0 0 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(25, 146, 198, 0.10);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.order-detail-head {
  padding: 0 8px;
  border: 0;
  background: transparent;
  min-width: 1120px;
}
.order-detail-head div {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.order-detail-head div:nth-child(1) { width: 70px; justify-content: center; }
.order-detail-head div:nth-child(2) { width: 112px; }
.order-detail-head div:nth-child(3) { width: 150px; }
.order-detail-head div:nth-child(4) { width: 170px; }
.order-detail-head div:nth-child(5) { width: 180px; }
.order-detail-head div:nth-child(6) { width: 260px; }
.order-detail-head div:nth-child(7) { width: 164px; justify-content: center; }
.order-detail-row input,
.order-detail-row select,
.order-detail-row button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
}
.order-detail-date { width: 112px; }
.order-detail-city { width: 150px; }
.order-detail-item { width: 170px; }
.order-detail-hotel-name { width: 180px; }
.order-detail-hotel { width: 260px; }
.order-detail-actions {
  width: 164px;
  display: flex;
  gap: 6px;
}
.order-detail-actions .secondary-btn,
.order-detail-actions .danger-btn {
  width: 79px;
  min-width: 79px;
}
.order-detail-row input[readonly] {
  background: rgba(232, 242, 250, 0.8);
  color: var(--muted);
}
.order-detail-empty {
  display: block;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
}
.stack-list { display: grid; gap: 10px; }
.compact-filter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}
.compact-filter-form .date-range-field {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.compact-filter-form button[type="submit"] {
  width: auto;
  min-width: 92px;
}
.desktop-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
}
.desktop-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}
.desktop-table th,
.desktop-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(188, 210, 224, 0.6);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.5;
}
.desktop-table th {
  background: rgba(233, 244, 251, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}
.desktop-table tbody tr:hover {
  background: rgba(240, 248, 253, 0.84);
}
.desktop-table .actions {
  margin-top: 0;
}
.orders-table .actions {
  gap: 4px;
}
.orders-table .actions button {
  min-width: 58px;
  min-height: 26px;
  padding: 4px 8px;
  font-size: 11px;
  gap: 4px;
}
.orders-table .actions button::before {
  font-size: 11px;
}
.desktop-table-row-clickable {
  cursor: pointer;
}
.desktop-table-row-clickable:hover {
  background: rgba(229, 242, 251, 0.9);
}
.desktop-table tr.self-built-order-card {
  background: rgba(222, 245, 229, 0.78);
}
.desktop-table tr.quote-card-rejected {
  background: rgba(255, 246, 203, 0.9);
}
.desktop-table tr.quote-card-voided,
.desktop-table tr.order-card-voided {
  background: rgba(255, 228, 228, 0.92);
}
.desktop-table .table-subtext {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.desktop-table .table-link {
  text-decoration: none;
  color: var(--brand-strong);
  font-weight: 700;
}
.desktop-table .table-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand-strong);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.desktop-table .table-link-btn:hover {
  text-decoration: underline;
}

.compact-status {
  margin: -6px 0 6px;
  font-size: 12px;
}
.compact-card {
  padding: 12px;
}
.table-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(28, 131, 178, 0.1);
  color: #165e80;
  font-size: 11px;
  font-weight: 600;
}
.shared-tour-status-badge {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}
.shared-tour-status-dispatched {
  background: rgba(203, 240, 217, 0.92);
  color: #1b6b41;
}
.shared-tour-status-cancelled {
  background: rgba(255, 226, 226, 0.94);
  color: #a53b47;
}
.shared-tour-status-finished {
  background: rgba(219, 236, 255, 0.96);
  color: #235d98;
}
.desktop-table tr.shared-tour-row-dispatched {
  background: rgba(226, 245, 232, 0.78);
}
.desktop-table tr.shared-tour-row-cancelled {
  background: rgba(255, 236, 236, 0.92);
}
.desktop-table tr.shared-tour-row-finished {
  background: rgba(230, 241, 255, 0.88);
}
.muted-badge {
  background: rgba(233, 240, 246, 0.92);
  color: #688196;
}
.desktop-table .table-price-list {
  display: grid;
  gap: 4px;
}
.desktop-table .table-price-list span {
  white-space: nowrap;
}
.checkbox-filter-group {
  display: grid;
  gap: 8px;
}
.checkbox-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.checkbox-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.82);
}
.checkbox-filter-list-scroll {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 6px;
  max-height: 196px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
}
.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25, 146, 198, 0.08);
  font-size: 12px;
  color: var(--text);
}
.checkbox-filter-list-scroll .checkbox-chip {
  width: 100%;
  min-height: 32px;
  justify-content: flex-start;
  padding: 5px 9px;
  border-radius: 12px;
}
.checkbox-filter-list-scroll .checkbox-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.checkbox-filter-list-scroll .checkbox-chip input {
  transform: scale(0.92);
}
.checkbox-chip input {
  width: auto;
  min-height: auto;
  margin: 0;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 4px;
}
.checkbox-row input {
  width: auto;
  min-height: auto;
}
.completion-section .checkbox-row,
#driverCompletionForm .checkbox-row {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  min-height: auto;
  padding: 0;
  width: auto;
}
.completion-section .checkbox-row input,
#driverCompletionForm .checkbox-row input {
  margin: 0;
  flex: 0 0 auto;
}
.completion-toggle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.completion-toggle-head .checkbox-row {
  margin-left: auto;
  white-space: nowrap;
}
.completion-toggle-head h3 {
  margin: 0;
}
.merge-resource-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 14px;
  align-items: start;
}
.merge-resource-box-wide {
  min-width: 0;
}
.merge-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.dispatch-pair-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}
.dispatch-pair-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(238, 246, 251, 0.78);
}
.dispatch-pair-row select {
  min-height: 42px;
}
.dispatch-pair-remove {
  min-width: 72px;
}
.merge-resource-box {
  border: 1px dashed rgba(78, 145, 197, 0.28);
  border-radius: 20px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.7);
}
.merge-resource-summary .stack-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.merge-summary-chip {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(238, 246, 251, 0.8);
  border: 1px solid rgba(78, 145, 197, 0.2);
}
.merge-summary-chip strong {
  display: block;
  margin-bottom: 4px;
}
.compact .list-card { padding: 14px; }
.list-card {
  padding: 12px 14px;
}
.list-card h3 {
  font-size: 14px;
  margin-bottom: 4px;
}
.list-card p {
  font-size: 12px;
  margin-bottom: 4px;
}
.list-card p:last-child { margin-bottom: 0; }
.preview-card {
  cursor: pointer;
}
.preview-card:hover {
  border-color: rgba(29, 143, 194, 0.34);
  box-shadow: 0 10px 24px rgba(28, 76, 109, 0.08);
}
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.actions button {
  width: auto;
  min-width: 72px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.create-btn,
.edit-btn,
.dispatch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  line-height: 1;
  border-radius: 12px;
}
.create-btn {
  background: linear-gradient(135deg, #37b26c, #209152);
  min-width: 132px;
  min-height: 40px;
  padding: 12px 14px;
  white-space: nowrap;
}
.quick-create-btn {
  min-width: 96px;
  min-height: 40px;
  padding: 10px 12px;
}
.edit-btn {
  color: #5c4300;
  background: linear-gradient(135deg, #ffd774, #f0b73d);
}
.dispatch-btn {
  color: #fff;
  background: linear-gradient(135deg, #3f9df0, #1b6fd1);
}
.create-btn::before {
  content: "+";
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.edit-btn::before {
  content: "✎";
  font-size: 13px;
  line-height: 1;
}
.dispatch-btn::before {
  content: "➜";
  font-size: 13px;
  line-height: 1;
}
.danger-btn::before {
  content: "🗑";
  font-size: 12px;
  line-height: 1;
}
.secondary-btn { background: linear-gradient(135deg, #38b2ac, #1992c6); }
.secondary-btn,
.completion-btn,
.danger-btn,
.contract-btn,
.cancel-btn,
.restore-btn {
  text-decoration: none;
  line-height: 1;
  border-radius: 12px;
}
.completion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}
.completion-btn::before {
  content: "🗂";
  font-size: 12px;
  line-height: 1;
}
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #ef8f8f, var(--danger));
}
.cancel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(135deg, #b69af8, #8f74e6);
  min-width: 96px;
}
.restore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(135deg, #93d7a8, #69b985);
  min-width: 96px;
}
.contract-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  background: linear-gradient(135deg, #6e8efb, #4568dc);
}
.chart-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.driver-map-wrap {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}
.driver-map-frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}
.app-dialog {
  width: min(860px, calc(100vw - 48px));
  border: 0;
  padding: 0;
  border-radius: 26px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 32px);
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(42, 89, 124, 0.22);
}
.quote-modal {
  width: min(1180px, calc(100vw - 36px));
  max-height: calc(100vh - 20px);
}
.order-dialog {
  width: min(1060px, calc(100vw - 40px));
}
.app-dialog::backdrop {
  background: rgba(16, 41, 58, 0.34);
  backdrop-filter: blur(6px);
}
.dialog-form {
  padding: 24px;
  margin-bottom: 0;
}
.app-dialog > .dialog-head,
.app-dialog > .dialog-actions,
.app-dialog > .stack-list,
.app-dialog > div:not(.dialog-form) {
  padding-left: 24px;
  padding-right: 24px;
}
.app-dialog > .dialog-head {
  padding-top: 24px;
}
.app-dialog > .dialog-actions:last-child {
  padding-bottom: 24px;
}
.dialog-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.dialog-head h3 {
  font-size: 15px;
  margin-bottom: 0;
}
.dialog-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}
.dialog-actions button {
  width: auto;
  min-width: 96px;
}
.inline-field-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
}
.compact-attachment-preview {
  display: grid;
  gap: 8px;
}
.compact-attachment-preview:empty {
  display: none;
}
.dialog-copy {
  padding-left: 24px;
  padding-right: 24px;
  color: var(--text);
}
.dialog-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.admin-body input,
.admin-body select,
.admin-body textarea,
.admin-body button {
  min-height: 40px;
}
.mobile-dialog {
  width: min(440px, calc(100vw - 24px));
}
.mobile-dialog-full {
  width: min(520px, calc(100vw - 12px));
  max-width: calc(100vw - 12px);
  min-height: min(80vh, 720px);
}
.compact-dialog {
  width: min(520px, calc(100vw - 40px));
}
#bulkCitySeasonModal.compact-dialog {
  width: min(1040px, calc(100vw - 40px));
}
#quoteContractModal {
  width: min(780px, calc(100vw - 40px));
}
.export-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}
.inline-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
#driverDatePickerModal {
  width: min(392px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
}
.chart-range-btn.active {
  background: linear-gradient(135deg, #1992c6, #38b2ac);
  color: white;
  border-color: transparent;
}
.bar-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  min-height: 220px;
  padding: 16px 0 8px;
}
.bar-group {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.bar-stack {
  height: 170px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
}
.bar {
  width: 18px;
  border-radius: 10px 10px 4px 4px;
}
.bar-one-day {
  background: linear-gradient(180deg, #67c3e6, #1992c6);
}
.bar-multi-day {
  background: linear-gradient(180deg, #77d8d2, #38b2ac);
}
.bar-order-ongoing {
  background: linear-gradient(180deg, #ffd37d, #f0a33a);
}
.bar-order-finished {
  background: linear-gradient(180deg, #7ad7b7, #2f8d6a);
}
.bar-label {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.shared-tour-chart-label-btn,
.shared-tour-chart-date-btn,
.shared-tour-chart-legend-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.shared-tour-chart-legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.shared-tour-chart-label-btn:hover,
.shared-tour-chart-date-btn:hover,
.shared-tour-chart-legend-btn:hover {
  color: inherit;
  text-decoration: underline;
}
.highlight-card {
  border: 1px solid rgba(56, 178, 172, 0.35);
  box-shadow: 0 18px 42px rgba(56, 178, 172, 0.12);
}
.quote-card-rejected {
  border: 1px solid rgba(240, 183, 61, 0.62);
  box-shadow: 0 18px 42px rgba(240, 183, 61, 0.16);
  background: linear-gradient(180deg, rgba(255, 247, 210, 0.98), rgba(255, 252, 240, 0.96));
}
.quote-card-voided {
  border: 1px solid rgba(214, 40, 57, 0.42);
  box-shadow: 0 18px 42px rgba(214, 40, 57, 0.14);
  background: linear-gradient(180deg, rgba(255, 232, 235, 0.98), rgba(255, 247, 248, 0.96));
}
.self-built-order-card {
  border: 1px solid rgba(92, 184, 92, 0.34);
  box-shadow: 0 18px 42px rgba(92, 184, 92, 0.12);
  background: linear-gradient(180deg, rgba(234, 249, 234, 0.98), rgba(247, 253, 247, 0.96));
}

.mobile-body {
  background:
    radial-gradient(circle at top right, rgba(103, 195, 230, .24), transparent 28%),
    linear-gradient(180deg, #f7fcff, #ecf7fb 58%, #e4f1f8 100%);
}
.driver-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 6px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 252, 255, .84);
  backdrop-filter: blur(12px);
}
.driver-brand { display: flex; align-items: center; gap: 12px; }
.driver-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.driver-header-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}
.driver-header-meta.is-clickable {
  cursor: pointer;
}
.driver-header-name {
  max-width: 96px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25, 146, 198, 0.10);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.driver-notification-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b6b, #d62839);
  color: white;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(214, 40, 57, .24);
}
.hidden {
  display: none !important;
}
.driver-mini-title {
  display: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.driver-brand-copy .eyebrow {
  margin-bottom: 4px;
  font-size: 10px;
}
.driver-brand-copy h1 {
  margin-bottom: 2px;
  font-size: 18px;
  line-height: 1.1;
}
.driver-brand-copy .muted {
  margin-bottom: 4px;
  font-size: 12px;
}
.driver-brand-copy .device-badge {
  margin-top: 0;
  padding: 4px 8px;
  font-size: 10px;
}
.driver-logo { width: 42px; height: 42px; flex: 0 0 auto; }
.driver-header .ghost-btn {
  width: auto;
  min-width: 64px;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.driver-main { max-width: 460px; margin: 0 auto; padding: 8px 12px 104px; display: grid; gap: 14px; }
.driver-dispatch-banner {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(27, 111, 209, .16);
  background: linear-gradient(135deg, rgba(63, 157, 240, .16), rgba(27, 111, 209, .10));
  box-shadow: 0 14px 28px rgba(27, 111, 209, .12);
}
.driver-dispatch-banner strong {
  font-size: 15px;
  color: #1359a5;
}
.driver-dispatch-banner p {
  margin: 0;
  font-size: 13px;
  color: #24527b;
}
.driver-dispatch-banner .actions {
  margin-top: 2px;
}
.mobile-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.72);
}
.list-card.is-clickable {
  cursor: pointer;
}
.list-card.is-clickable:hover {
  box-shadow: 0 14px 30px rgba(25, 146, 198, 0.12);
}
.mobile-card h2 {
  font-size: 18px;
}
.mobile-subsection + .mobile-subsection {
  margin-top: 12px;
}
.mobile-subsection h3 {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--brand-strong);
}
.mobile-collapse-btn {
  width: 100%;
  justify-content: space-between;
}
.mobile-collapse-btn::after {
  content: "▾";
  font-size: 12px;
}
.mobile-collapse-btn.collapsed::after {
  content: "▸";
}
.signature-block {
  display: grid;
  gap: 8px;
}
.signature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.signature-pad {
  width: 100%;
  max-width: 100%;
  height: 180px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: white;
  touch-action: none;
  box-sizing: border-box;
}
.signature-image {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
}
.mobile-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.single-action-row {
  grid-template-columns: 1fr;
}
.single-action-row .create-btn {
  width: 100%;
}
.mobile-card input,
.mobile-card select,
.mobile-card textarea,
.mobile-card button {
  min-height: 48px;
}
.mobile-dialog .form input,
.mobile-dialog .form select,
.mobile-dialog .form textarea,
.mobile-dialog .form button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  box-sizing: border-box;
}
.mobile-dialog .inline-field-row {
  grid-template-columns: 112px minmax(0, 1fr);
}
.mobile-dialog .form .list-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.driver-accommodation-detail-card {
  gap: 16px;
  padding: 18px;
}
.driver-accommodation-detail-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}
.driver-accommodation-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.driver-accommodation-detail-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(241, 248, 253, 0.96);
  border: 1px solid rgba(198, 220, 234, 0.85);
}
.driver-accommodation-detail-item.span-all {
  grid-column: 1 / -1;
}
.driver-accommodation-detail-label {
  font-size: 13px;
  font-weight: 700;
  color: #5a7588;
}
.driver-accommodation-detail-item strong {
  font-size: 18px;
  line-height: 1.5;
  color: #153248;
  word-break: break-word;
}
.driver-route-summary-card {
  gap: 8px;
  background: linear-gradient(180deg, rgba(236, 246, 255, 0.98), rgba(225, 240, 251, 0.92));
}
.driver-route-summary-card strong {
  font-size: 17px;
}
.driver-route-summary-card .muted {
  font-size: 13px;
}
.driver-attachment-card-wrap {
  display: grid;
  gap: 8px;
}
.small-btn {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 12px;
}
.table-check-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}
.table-check-head input[type="checkbox"],
.desktop-table input[type="checkbox"][data-city-select] {
  width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(146, 178, 204, 0.9);
  border-radius: 4px;
  background: #fff;
  vertical-align: middle;
}
.file-entry-card .table-actions,
.file-entry-card .actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  min-width: 132px;
}
.file-entry-card .table-actions .small-btn,
.file-entry-card .actions .small-btn,
.file-entry-card .table-actions .file-action-btn {
  width: 132px;
  min-height: 38px;
  padding: 9px 12px;
  justify-content: center;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.download-btn::before {
  content: "⬇";
  font-size: 12px;
  line-height: 1;
}
.mobile-dialog-full #driverAccommodationDetailContent {
  padding-bottom: 8px;
}
.mobile-dialog-full .dialog-head h3 {
  font-size: 20px;
}
.mobile-dialog-full .dialog-actions {
  margin-top: 10px;
}
.driver-date-field {
  display: grid;
  gap: 6px;
}
.driver-date-label {
  font-size: 12px;
  font-weight: 700;
  color: #4d6a81;
  padding-left: 2px;
}
.driver-date-trigger {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(186, 214, 231, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(236, 245, 252, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88);
  color: #17384f;
  text-align: left;
}
.driver-date-icon {
  font-size: 15px;
  line-height: 1;
  opacity: 0.85;
}
.driver-date-value {
  font-weight: 600;
}
.driver-date-field input[type="hidden"] {
  display: none;
}
.driver-date-picker-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 0 18px 12px;
}
.driver-date-picker-toolbar button {
  width: auto;
  min-width: 72px;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 12px;
}
.driver-date-picker-month {
  text-align: center;
  font-weight: 700;
  color: #183247;
  font-size: 14px;
  min-width: 0;
}
.driver-date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 0 18px 18px;
  width: 100%;
  min-width: 0;
}
.driver-date-weekday,
.driver-date-empty,
.driver-date-day {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.driver-date-weekday {
  color: var(--muted);
  font-weight: 700;
}
.driver-date-day {
  border: 1px solid rgba(186, 214, 231, 0.9);
  border-radius: 12px;
  background: rgba(247, 251, 255, 0.96);
  color: #17384f;
  min-width: 0;
  padding: 0;
}
.driver-date-day[disabled] {
  background: rgba(236, 242, 247, 0.9);
  color: rgba(109, 133, 151, 0.55);
  border-color: rgba(206, 218, 228, 0.92);
}
.driver-date-day.is-selected {
  background: linear-gradient(135deg, #1d8fc2, #155ca8);
  color: #fff;
  border-color: transparent;
}
.mobile-dialog .form .list-card .upload-field {
  min-width: 0;
  width: 100%;
}
.mobile-dialog .form .list-card input[type="datetime-local"],
.mobile-dialog .form .list-card input[type="date"],
.mobile-dialog .form .list-card input[type="time"],
.mobile-dialog .form .list-card input[type="file"],
.mobile-dialog .form .list-card textarea {
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
}
.mobile-dialog .form .list-card input[type="datetime-local"],
.mobile-dialog .form .list-card input[type="date"],
.mobile-dialog .form .list-card input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  font-size: 16px;
}
.mobile-dialog .form .list-card input[type="file"] {
  overflow: hidden;
  font-size: 14px;
}
.mobile-dialog input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
}
.mobile-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(500px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(21, 52, 74, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(29, 76, 109, .22);
}
.mobile-nav a {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 6px;
  text-align: center;
  text-decoration: none;
  color: white;
  border-radius: 14px;
  font-size: 11px;
}
.mobile-nav-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.18);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.driver-toast-stack {
  position: fixed;
  left: 50%;
  top: 76px;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  z-index: 40;
  pointer-events: none;
}
.driver-toast {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(21, 52, 74, .94);
  color: white;
  box-shadow: 0 18px 32px rgba(17, 39, 58, .24);
  animation: driverToastIn .25s ease;
}
.driver-toast strong,
.driver-toast p {
  margin: 0;
}
.driver-toast p {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.86);
}
.driver-navigation-options {
  display: grid;
  gap: 12px;
}
.driver-navigation-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(33, 76, 108, 0.10);
  background: rgba(255, 255, 255, 0.92);
}
.driver-navigation-card.apple {
  background: linear-gradient(135deg, rgba(247, 249, 251, 0.98), rgba(231, 239, 245, 0.94));
}
.driver-navigation-card.google {
  background: linear-gradient(135deg, rgba(244, 250, 255, 0.98), rgba(231, 245, 255, 0.94));
}
.driver-navigation-logo {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(212, 227, 239, 0.86);
}
.driver-navigation-card.apple .driver-navigation-logo {
  color: #111827;
}
.driver-navigation-logo svg {
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
}
.driver-navigation-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.driver-navigation-copy strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}
.driver-navigation-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
@keyframes driverToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 430px) {
  .driver-header {
    padding: 8px 10px 4px;
  }
  .driver-mini-title {
    display: block;
  }
  .driver-brand-copy {
    display: none;
  }
  .driver-brand {
    gap: 8px;
  }
  .driver-logo {
    width: 38px;
    height: 38px;
  }
  .driver-main {
    padding-top: 6px;
  }
  .driver-header-name {
    max-width: 72px;
    padding: 4px 8px;
    font-size: 11px;
  }
  .driver-toast-stack {
    top: 60px;
  }
  .mobile-nav a {
    font-size: 11px;
  }
}
.mobile-nav a:hover {
  background: rgba(255,255,255,.12);
}
.mobile-nav a.active {
  background: rgba(255,255,255,.18);
}

.compact-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(98, 143, 178, 0.24);
  border-radius: 16px;
  background: rgba(245, 250, 255, 0.96);
}

.compact-summary-card p {
  margin: 0;
  font-size: 13px;
  color: #5b738d;
}

.compact-summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  color: #16344e;
}

@media (max-width: 980px) {
  .login-shell, .app-shell, .card-grid.two-col, .stats-grid, .grid-3, .overview-focus-grid, .overview-priority-grid, .overview-core-grid, .overview-support-grid, .overview-pulse-grid, .overview-metric-grid, .finance-kpi-grid, .finance-health-grid, .finance-priority-grid, .finance-analysis-grid { grid-template-columns: 1fr; }
  .finance-filter-form {
    grid-template-columns: 1fr;
  }
  .overview-top-actions {
    align-items: stretch;
  }
  .overview-range-switch,
  .overview-top-actions .actions {
    width: 100%;
  }
  .overview-top-actions .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .brand-mark {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .brand-logo {
    margin: 0 auto;
  }
  .login-feature-strip {
    justify-content: center;
  }
  .filter-toolbar { grid-template-columns: 1fr; }
  .filter-toolbar .toolbar-row { justify-content: flex-start; }
  .quote-filter-form { grid-template-columns: 1fr; }
  .order-filter-form { grid-template-columns: 1fr; }
  .expense-filter-form { grid-template-columns: 1fr; }
  .expense-filter-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .expense-filter-actions button {
    width: 100%;
  }
  .expense-summary-inline {
    grid-template-columns: 1fr 1fr;
  }
  .accommodation-filter-form { grid-template-columns: 1fr; }
  .field-stack { grid-template-columns: 1fr; }
  .textarea-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .expense-images-gallery {
    grid-template-columns: 1fr;
  }
  .quote-item-list {
    white-space: normal;
  }
  .sidebar {
    position: static;
    height: auto;
  }
  .content { padding: 18px; }
  .app-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
  .dialog-form {
    padding: 18px;
  }
  .app-dialog > .dialog-head,
  .app-dialog > .dialog-actions,
  .app-dialog > .stack-list,
  .app-dialog > div:not(.dialog-form) {
    padding-left: 18px;
    padding-right: 18px;
  }
  .app-dialog > .dialog-head {
    padding-top: 18px;
  }
  .app-dialog > .dialog-actions:last-child {
    padding-bottom: 18px;
  }
  .compact-summary-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  #driverDatePickerModal {
    width: min(360px, calc(100vw - 12px));
    max-width: calc(100vw - 12px);
  }
  .mobile-dialog-full {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    min-height: calc(100vh - 10px);
  }
  .driver-accommodation-detail-card {
    padding: 16px;
  }
  .driver-accommodation-detail-card h3 {
    font-size: 22px;
  }
  .driver-accommodation-detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .driver-accommodation-detail-item strong {
    font-size: 17px;
  }
  .login-shell {
    padding: 18px 14px 24px;
  }
  .brand-panel,
  .login-panel {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .brand-logo {
    width: 84px;
    height: 84px;
  }
  .driver-date-picker-toolbar {
    gap: 6px;
    padding: 0 14px 10px;
  }
  .driver-date-picker-toolbar button {
    min-width: 58px;
    padding: 8px 8px;
    font-size: 11px;
  }
  .driver-date-picker-month {
    font-size: 13px;
  }
  .driver-date-picker-grid {
    gap: 6px;
    padding: 0 14px 14px;
  }
  .driver-date-weekday,
  .driver-date-empty,
  .driver-date-day {
    min-height: 34px;
    font-size: 12px;
  }
  .driver-date-day {
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  #driverDatePickerModal {
    width: calc(100vw - 10px);
    max-width: calc(100vw - 10px);
  }
  .login-feature-strip span {
    width: calc(50% - 5px);
    text-align: center;
  }
  .compact-filter-form {
    grid-template-columns: 1fr;
  }
  .compact-filter-form button[type="submit"] {
    width: 100%;
  }
  .driver-date-picker-toolbar {
    grid-template-columns: 1fr;
  }
  .driver-date-picker-toolbar button {
    width: 100%;
  }
  .driver-date-picker-grid {
    gap: 4px;
    padding: 0 12px 12px;
  }
  .driver-date-weekday,
  .driver-date-empty,
  .driver-date-day {
    min-height: 30px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  #driverDatePickerModal {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
  }
  .driver-date-picker-toolbar {
    gap: 4px;
    padding: 0 10px 8px;
  }
  .driver-date-picker-toolbar button {
    min-width: 0;
    padding: 7px 6px;
    font-size: 11px;
  }
  .driver-date-picker-month {
    font-size: 12px;
  }
  .driver-date-picker-grid {
    gap: 3px;
    padding: 0 10px 10px;
  }
  .driver-date-weekday,
  .driver-date-empty,
  .driver-date-day {
    min-height: 28px;
    font-size: 10px;
  }
  .driver-date-day {
    border-radius: 8px;
  }
}

@media (max-width: 360px) {
  .driver-date-picker-toolbar {
    padding: 0 8px 8px;
  }
  .driver-date-picker-grid {
    padding: 0 8px 10px;
  }
  .driver-date-weekday,
  .driver-date-empty,
  .driver-date-day {
    min-height: 26px;
    font-size: 10px;
  }
}
