/* ==========================================================
   ADB World — Taxi Rental Management System
   Design system: tokens, layout, components. Light + dark.
   ========================================================== */

:root {
  --accent: #F5B301;
  --accent-hover: #D09801;
  --accent-rgb: 245, 179, 1;
  --on-accent: #111827;

  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --surface-3: #F1F3F6;
  --border: #E4E7EC;
  --border-strong: #CDD3DC;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --faint: #94A3B8;

  --ink: #0E1420;           /* sidebar */
  --ink-2: #161E2E;
  --ink-text: #CBD5E1;
  --ink-muted: #7C8BA1;

  --success: #12A150; --success-bg: #E7F7EE;
  --info: #2563EB;    --info-bg: #E8F0FE;
  --warning: #B7791F; --warning-bg: #FEF5E1;
  --danger: #DC2626;  --danger-bg: #FDECEC;
  --neutral: #475569; --neutral-bg: #EEF1F5;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 4px 12px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .14);
  --ring: 0 0 0 3px rgba(var(--accent-rgb), .35);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sidebar-w: 260px;
  --topbar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0E15; --surface: #111723; --surface-2: #151C2A; --surface-3: #1A2232;
    --border: #232C3D; --border-strong: #33405A; --text: #E6EAF0; --text-2: #C3CBD8; --muted: #8B98AE; --faint: #64748B;
    --ink: #0A0E15; --ink-2: #131A27;
    --success-bg: rgba(18,161,80,.16); --info-bg: rgba(37,99,235,.18); --warning-bg: rgba(183,121,31,.2); --danger-bg: rgba(220,38,38,.18); --neutral-bg: rgba(148,163,184,.14);
    --success: #34D399; --info: #7AA7FF; --warning: #F5B94A; --danger: #F87171; --neutral: #A3B0C2;
    --shadow: 0 1px 3px rgba(0,0,0,.4); --shadow-lg: 0 16px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0E15; --surface: #111723; --surface-2: #151C2A; --surface-3: #1A2232;
  --border: #232C3D; --border-strong: #33405A; --text: #E6EAF0; --text-2: #C3CBD8; --muted: #8B98AE; --faint: #64748B;
  --ink: #0A0E15; --ink-2: #131A27;
  --success-bg: rgba(18,161,80,.16); --info-bg: rgba(37,99,235,.18); --warning-bg: rgba(183,121,31,.2); --danger-bg: rgba(220,38,38,.18); --neutral-bg: rgba(148,163,184,.14);
  --success: #34D399; --info: #7AA7FF; --warning: #F5B94A; --danger: #F87171; --neutral: #A3B0C2;
  --shadow: 0 1px 3px rgba(0,0,0,.4); --shadow-lg: 0 16px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
code { font-family: var(--mono); font-size: .85em; background: var(--surface-3); padding: .1em .35em; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: .5rem } .mt-2 { margin-top: 1rem } .mt-3 { margin-top: 1.5rem }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: .5rem } .mb-2 { margin-bottom: 1rem } .mb-3 { margin-bottom: 1.5rem }
.flex { display: flex; align-items: center; gap: .5rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-lucide], svg.lucide { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--ink); color: var(--ink-text);
  display: flex; flex-direction: column; z-index: 60; transition: transform .25s var(--ease); border-right: 1px solid rgba(255,255,255,.04);
}
.sidebar-brand { height: var(--topbar-h); display: flex; align-items: center; gap: .65rem; padding: 0 1.25rem; border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-brand img { height: 34px; width: auto; }
.sidebar-brand .brand-text { line-height: 1.1; min-width: 0; }
.sidebar-brand .brand-name { color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sidebar-brand .brand-sub { color: var(--ink-muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.brand-initials { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .75rem .75rem 1rem; scrollbar-width: thin; scrollbar-color: #2a3446 transparent; }
.nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); padding: 1rem .75rem .4rem; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 8px; color: var(--ink-text); font-weight: 500; margin-bottom: 2px; transition: background .15s, color .15s; position: relative; }
.nav-link:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.nav-link.active { background: rgba(var(--accent-rgb), .14); color: #fff; }
.nav-link.active::before { content: ""; position: absolute; left: -.75rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nav-link.active [data-lucide], .nav-link.active svg { color: var(--accent); }
.nav-link .nav-badge { margin-left: auto; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; padding: 0 .45rem; border-radius: 999px; }
.nav-link.locked { opacity: .5; }
.sidebar-foot { padding: .9rem 1.25rem; border-top: 1px solid rgba(255,255,255,.06); font-size: 11.5px; color: var(--ink-muted); }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar-h); background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .75rem; padding: 0 1.5rem;
}
.topbar .crumbs { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: 13px; min-width: 0; }
.topbar .crumbs a { color: var(--muted); }
.topbar .crumbs .sep { opacity: .5; }
.topbar .crumbs .current { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); display: inline-grid; place-items: center; cursor: pointer; position: relative; transition: background .15s; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.menu-toggle { display: none; }
.user-chip { display: flex; align-items: center; gap: .55rem; padding: .25rem .5rem .25rem .25rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); font: inherit; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: var(--text-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .uname { font-weight: 600; font-size: 13px; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.content { padding: 1.5rem; width: 100%; max-width: 1600px; margin: 0 auto; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin: .2rem 0 0; }
.page-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.app-footer { padding: 1rem 1.5rem; color: var(--faint); font-size: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.scrim { position: fixed; inset: 0; background: rgba(2, 6, 23, .5); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }

/* ---------- Dropdown menus (topbar) ---------- */
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 80; display: none; animation: pop .14s var(--ease); }
.menu.open .menu-panel { display: block; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .55rem .65rem; border-radius: 7px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-3); text-decoration: none; }
.menu-head { padding: .55rem .65rem .65rem; border-bottom: 1px solid var(--border); margin-bottom: .35rem; }
.notif-panel { width: 360px; max-width: calc(100vw - 24px); padding: 0; }
.notif-panel .notif-list { max-height: 380px; overflow-y: auto; }
.notif-item { display: block; padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.notif-item:hover { background: var(--surface-2); text-decoration: none; }
.notif-item.unread { background: rgba(var(--accent-rgb), .06); }
.notif-item .t { font-weight: 600; font-size: 13px; }
.notif-item .b { color: var(--muted); font-size: 12.5px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Cards & grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 15px; }
.card-head .sub { color: var(--muted); font-size: 12.5px; margin: 0; }
.card-body { padding: 1.25rem; }
.card-body.tight { padding: 0; }
.grid { display: grid; gap: 1rem; }
.grid > *, .main, .content, .card { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-stats { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.span-2 { grid-column: span 2; }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.1rem; display: flex; gap: .85rem; align-items: flex-start; box-shadow: var(--shadow-sm); min-width: 0; }
.stat-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-3); color: var(--text-2); }
.stat-icon.accent { background: rgba(var(--accent-rgb), .15); color: var(--accent-hover); }
.stat-icon.success { background: var(--success-bg); color: var(--success); }
.stat-icon.info { background: var(--info-bg); color: var(--info); }
.stat-icon.warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon.danger { background: var(--danger-bg); color: var(--danger); }
.stat-label { color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.stat-value { font-size: clamp(17px, 1.45vw, 22px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: .1rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat-meta { font-size: 12px; color: var(--muted); margin-top: .15rem; }
.stat-body { min-width: 0; }

.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 230px; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 38px; padding: 0 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none; line-height: 1; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; user-select: none; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn [data-lucide], .btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-dark { background: var(--text); border-color: var(--text); color: var(--surface); }
.btn-dark:hover { opacity: .9; background: var(--text); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(.92); background: var(--danger); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(.92); background: var(--success); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { height: 32px; padding: 0 .7rem; font-size: 12.5px; }
.btn-xs { height: 28px; padding: 0 .55rem; font-size: 12px; border-radius: 6px; }
.btn-lg { height: 46px; padding: 0 1.4rem; font-size: 15px; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { width: 34px; padding: 0; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1rem 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: 13px; color: var(--text-2); }
.field .req { color: var(--danger); }
.field .hint { color: var(--muted); font-size: 12px; }
.field .error { color: var(--danger); font-size: 12px; }
.input, .textarea, select.native {
  width: 100%; height: 40px; padding: 0 .8rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: .6rem .8rem; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus, select.native:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input[readonly] { background: var(--surface-2); }
.input:disabled, .textarea:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.is-invalid, .field.has-error .input, .field.has-error .cs-trigger { border-color: var(--danger) !important; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .input { padding-right: 2.6rem; }
.input-group .input.has-lead { padding-left: 2.4rem; }
.input-group .lead { position: absolute; left: .8rem; color: var(--faint); pointer-events: none; display: flex; }
.input-group .trail { position: absolute; right: .35rem; height: 32px; width: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; display: grid; place-items: center; }
.input-group .trail:hover { background: var(--surface-3); }
.color-input { display: flex; gap: .5rem; align-items: center; }
.color-input input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }

.check { display: inline-flex; align-items: flex-start; gap: .55rem; cursor: pointer; font-size: 13.5px; color: var(--text-2); user-select: none; }
.check input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--border-strong); border-radius: 5px; background: var(--surface); display: grid; place-items: center; flex-shrink: 0; margin: 1px 0 0; cursor: pointer; transition: all .15s; }
.check input[type=radio] { border-radius: 50%; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input[type=checkbox]:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input[type=radio]:checked::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-accent); }
.check input:focus-visible { box-shadow: var(--ring); }

.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; user-select: none; font-size: 13.5px; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }

.file-drop { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 1rem; display: flex; align-items: center; gap: 1rem; background: var(--surface-2); }
.file-drop .preview { width: 64px; height: 64px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.file-drop .preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.file-drop .preview.dark { background: #0E1420; }
.file-drop input[type=file] { font-size: 12.5px; max-width: 100%; color: var(--muted); }
.file-drop input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 6px; padding: .35rem .7rem; margin-right: .6rem; cursor: pointer; }

/* ---------- Custom select ---------- */
.cs { position: relative; width: 100%; }
.cs select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.cs-trigger { width: 100%; height: 40px; display: flex; align-items: center; gap: .5rem; padding: 0 .7rem 0 .8rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.cs-trigger .cs-value { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-trigger .cs-value.placeholder { color: var(--faint); }
.cs-trigger .cs-chevron { color: var(--muted); transition: transform .2s var(--ease); display: flex; }
.cs.open .cs-trigger, .cs-trigger:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.cs.open .cs-chevron { transform: rotate(180deg); }
.cs.disabled .cs-trigger { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.cs-clear { border: 0; background: none; color: var(--faint); cursor: pointer; padding: 2px; display: flex; border-radius: 4px; }
.cs-clear:hover { color: var(--text); }
.cs-panel { position: fixed; z-index: 1000; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .35rem; display: none; animation: pop .14s var(--ease); }
.cs-panel.open { display: block; }
.cs-search { width: 100%; height: 36px; border: 1px solid var(--border); border-radius: 7px; padding: 0 .65rem; font: inherit; background: var(--surface-2); color: var(--text); margin-bottom: .35rem; }
.cs-search:focus { outline: none; border-color: var(--accent); }
.cs-list { max-height: 260px; overflow-y: auto; list-style: none; margin: 0; padding: 0; }
.cs-opt { padding: .5rem .65rem; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: .5rem; font-size: 13.5px; }
.cs-opt.active { background: var(--surface-3); }
.cs-opt.selected { font-weight: 600; }
.cs-opt.selected::after { content: ""; margin-left: auto; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cs-opt.disabled { color: var(--faint); cursor: not-allowed; }
.cs-empty { padding: .7rem; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Date picker ---------- */
.dp-input { cursor: pointer; }
.dp { position: fixed; z-index: 1000; width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: .85rem; display: none; animation: pop .14s var(--ease); user-select: none; }
.dp.open { display: block; }
.dp-head { display: flex; align-items: center; gap: .35rem; margin-bottom: .6rem; }
.dp-head .dp-nav { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.dp-head .dp-nav:hover { background: var(--surface-3); }
.dp-head .dp-nav:disabled { opacity: .3; cursor: default; }
.dp-title { flex: 1; display: flex; gap: .3rem; justify-content: center; }
.dp-title select { border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; padding: .25rem .35rem; border-radius: 7px; cursor: pointer; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: .3rem 0; text-transform: uppercase; }
.dp-day { aspect-ratio: 1; border: 0; background: none; color: var(--text); border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; display: grid; place-items: center; position: relative; }
.dp-day:hover:not(:disabled) { background: var(--surface-3); }
.dp-day.today { font-weight: 700; color: var(--accent-hover); }
.dp-day.today::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.dp-day.selected, .dp-day.range-end { background: var(--accent) !important; color: var(--on-accent); font-weight: 700; }
.dp-day.selected::after { background: var(--on-accent); }
.dp-day.in-range { background: rgba(var(--accent-rgb), .16); border-radius: 0; }
.dp-day.focus { box-shadow: inset 0 0 0 2px var(--accent); }
.dp-day:disabled { color: var(--faint); opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.dp-blank { aspect-ratio: 1; }
.dp-foot { display: flex; justify-content: space-between; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--border); }
.dp-foot button { border: 0; background: none; color: var(--info); font: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer; padding: .25rem .4rem; border-radius: 6px; }
.dp-foot button:hover { background: var(--surface-3); }

/* ---------- Tables ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); padding: .7rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table th a { color: inherit; display: inline-flex; align-items: center; gap: .25rem; }
.table th a:hover { color: var(--text); text-decoration: none; }
.table th .sort-ic { opacity: .5; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .cell-main { font-weight: 600; color: var(--text); }
.table .mono.cell-main, .table .cell-main.mono { white-space: nowrap; }
.table .cell-sub { color: var(--muted); font-size: 12px; }
.table .actions { display: flex; gap: .3rem; justify-content: flex-end; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; padding: .9rem 1.25rem; border-bottom: 1px solid var(--border); }
.toolbar .search { flex: 1 1 220px; max-width: 340px; }
.toolbar .cs, .toolbar .filter { width: auto; min-width: 150px; flex: 0 1 180px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.25rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pagination { display: flex; align-items: center; justify-content: center; gap: .25rem; margin: 0 auto; }
.pg-btn { min-width: 34px; height: 34px; padding: 0 .55rem; border-radius: 8px; display: inline-grid; place-items: center; color: var(--text-2); font-weight: 600; font-size: 13px; border: 1px solid transparent; }
.pg-btn:hover { background: var(--surface-3); text-decoration: none; }
.pg-btn.active { background: var(--accent); color: var(--on-accent); }
.pg-btn.disabled { opacity: .35; pointer-events: none; }
.pg-btn svg, .pg-btn [data-lucide] { width: 16px; height: 16px; }
.pg-ellipsis { color: var(--faint); padding: 0 .25rem; }

.empty { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty .empty-ic { width: 56px; height: 56px; margin: 0 auto .9rem; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.empty .empty-ic svg { width: 26px; height: 26px; }
.empty h3 { color: var(--text); margin-bottom: .3rem; }
.loading-row td { text-align: center; color: var(--muted); padding: 2rem; }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 6px; height: 14px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Badges / alerts ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: 11.5px; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral); }
.badge-accent { background: rgba(var(--accent-rgb), .18); color: var(--accent-hover); }
.badge.plain::before { display: none; }
.alert { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid transparent; font-size: 13.5px; margin-bottom: 1rem; }
.alert svg, .alert [data-lucide] { margin-top: 1px; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-error, .alert-danger { background: var(--danger-bg); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert .alert-body { color: var(--text); }
.alert a { font-weight: 600; color: inherit; text-decoration: underline; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: .7rem .95rem; color: var(--muted); font-weight: 600; font-size: 13.5px; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs .active { color: var(--text); border-bottom-color: var(--accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- Date filter bar ---------- */
.filter-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: .35rem .65rem; border-radius: 5px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg a:hover { color: var(--text); text-decoration: none; background: var(--surface-3); }
.seg a.active { background: var(--text); color: var(--surface); }
.range-form { display: none; gap: .4rem; align-items: center; }
.range-form.show { display: inline-flex; }
.range-form .input { height: 34px; width: 140px; font-size: 13px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: .8rem; padding: .7rem 1.25rem; position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.25rem + 15px); top: 2.6rem; bottom: -.2rem; width: 1px; background: var(--border); }
.tl-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex-shrink: 0; position: relative; z-index: 1; }
.tl-ic svg, .tl-ic [data-lucide] { width: 15px; height: 15px; }
.tl-body { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.tl-text { font-size: 13px; color: var(--text); }
.tl-time { font-size: 11.5px; color: var(--muted); }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 900; display: none; align-items: flex-start; justify-content: center; padding: 6vh 1rem 1rem; background: rgba(2, 6, 23, .55); overflow-y: auto; }
.modal.open { display: flex; animation: fade .15s; }
.modal-dialog { width: 100%; max-width: 560px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: rise .2s var(--ease); }
.modal-dialog.lg { max-width: 820px; }
.modal-dialog.sm { max-width: 420px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 1.25rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .9rem 1.25rem; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 2000; display: flex; flex-direction: column; gap: .5rem; max-width: calc(100vw - 2rem); }
.toast { display: flex; align-items: flex-start; gap: .6rem; min-width: 260px; max-width: 400px; background: var(--text); color: var(--surface); padding: .75rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 13.5px; animation: rise .2s var(--ease); }
.toast.success svg { color: #34D399; }
.toast.error svg { color: #F87171; }

/* ---------- Detail lists ---------- */
.dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: .55rem 1rem; margin: 0; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; word-break: break-word; }
.kv-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; gap: 1rem; }
.kv-row:last-child { border-bottom: 0; }
.kv-row.total { font-weight: 700; font-size: 15px; border-bottom: 0; border-top: 1px solid var(--border); padding-top: .75rem; }

.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.plan-card { position: relative; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-card .plan-tag { position: absolute; top: -11px; left: 1.5rem; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; padding: .15rem .6rem; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; }
.plan-price { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.plan-price small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan-list { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: grid; gap: .5rem; font-size: 13.5px; }
.plan-list li { display: flex; gap: .5rem; align-items: flex-start; }
.plan-list li svg, .plan-list li [data-lucide] { color: var(--success); width: 16px; height: 16px; margin-top: 2px; }
.plan-list li.off { color: var(--faint); }
.plan-list li.off svg, .plan-list li.off [data-lucide] { color: var(--faint); }
.plan-select input { position: absolute; opacity: 0; }
.plan-select .plan-card { cursor: pointer; transition: border-color .15s, box-shadow .15s; height: 100%; }
.plan-select input:checked + .plan-card { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.plan-select input:focus-visible + .plan-card { box-shadow: var(--ring); }

/* ---------- Auth pages ---------- */
.auth-body { background: var(--bg); min-height: 100vh; }
.auth-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.auth-aside { background: var(--ink); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: auto -20% -30% auto; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--accent-rgb), .28), transparent 65%); }
.auth-aside::after { content: ""; position: absolute; left: 0; right: 0; bottom: 92px; height: 14px; background: repeating-linear-gradient(90deg, var(--accent) 0 26px, transparent 26px 52px); opacity: .5; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .aside-logo img { height: 44px; width: auto; }
.auth-aside h2 { color: #fff; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; max-width: 460px; margin-bottom: .75rem; }
.auth-aside p { color: #AEB9CA; max-width: 440px; font-size: 15px; }
.auth-aside .aside-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .65rem; color: #D5DCE6; }
.auth-aside .aside-points li { display: flex; gap: .6rem; align-items: center; }
.auth-aside .aside-points svg { color: var(--accent); }
.auth-aside .aside-foot { color: #74839A; font-size: 12px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; }
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card.wide { max-width: 760px; }
.auth-card .boxed { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.auth-logo { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.75rem; }
.auth-logo img { height: 40px; width: auto; }
.auth-title { font-size: 1.6rem; margin-bottom: .35rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.5rem; }
.auth-card form .field { margin-bottom: 1rem; }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin: -.25rem 0 1.25rem; font-size: 13px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 1.25rem; }
.portal-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-hover); background: rgba(var(--accent-rgb), .14); padding: .25rem .6rem; border-radius: 99px; margin-bottom: .9rem; }
.error-code { font-size: 64px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; margin-bottom: .5rem; }
.theme-float { position: fixed; top: 1rem; right: 1rem; z-index: 50; background: var(--surface); border: 1px solid var(--border); }
.steps { display: flex; gap: .4rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.steps .s { flex: 1; min-width: 80px; height: 4px; border-radius: 99px; background: var(--border); }
.steps .s.done { background: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .menu-toggle { display: inline-grid; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 768px) {
  .content { padding: 1rem; }
  .topbar { padding: 0 .75rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .user-chip .uname { display: none; }
  .page-head { align-items: flex-start; }
  .chart-box { height: 240px; }
  .toolbar .search { max-width: none; }
  .toolbar .cs, .toolbar .filter { flex: 1 1 140px; }
  .dl { grid-template-columns: 1fr; gap: .1rem; }
  .dl dd { margin-bottom: .55rem; }
  .auth-card .boxed { padding: 1.5rem; }
  /* stacked responsive tables */
  .table.stack thead { display: none; }
  .table.stack tr { display: block; border-bottom: 1px solid var(--border); padding: .6rem 0; }
  .table.stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .3rem 1rem; text-align: right; }
  .table.stack td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; }
  .table.stack td.actions { justify-content: flex-end; }
  .table.stack td.actions::before { display: none; }
}
@media (max-width: 425px) {
  .stat-value { font-size: 19px; }
  .grid-stats { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .stat { padding: .8rem; flex-direction: column; gap: .5rem; }
  .stat-icon { width: 34px; height: 34px; }
  .topbar .crumbs .muted-crumb { display: none; }
  .dp { width: calc(100vw - 24px); }
  .modal { padding-top: 2vh; }
  .seg a { padding: .35rem .5rem; }
}
@media (max-width: 340px) {
  .grid-stats { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .app-footer, .page-actions, .toolbar, .pagination, .no-print { display: none !important; }
  .main { margin: 0; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ddd; }
}
.flex > .cs { width: auto; min-width: 170px; flex: 0 0 auto; }

/* ---------- Availability calendar ---------- */
.avc { max-width: 520px; }
.avc[aria-busy] { opacity: .6; }
.avc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.avc-head strong { font-size: 15px; }
.avc-head .icon-btn:disabled { opacity: .3; cursor: default; }
.avc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.avc-dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: .2rem 0; }
.avc-day { aspect-ratio: 1; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; display: grid; place-items: center; position: relative; cursor: pointer; transition: transform .1s, box-shadow .15s; }
.avc-day:disabled { cursor: default; }
.avc-day.is-free { background: var(--success-bg); border-color: color-mix(in srgb, var(--success) 30%, transparent); color: var(--success); }
.avc-day.is-partial { background: linear-gradient(135deg, var(--success-bg) 50%, var(--warning-bg) 50%); border-color: color-mix(in srgb, var(--warning) 35%, transparent); color: var(--warning); }
.avc-day.is-booked { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); text-decoration: line-through; }
.avc-day.is-past { background: var(--surface-3); color: var(--faint); border-color: transparent; }
.avc-day:not(:disabled):hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.avc-day.today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.avc-day.sel { background: var(--accent) !important; color: var(--on-accent) !important; border-color: var(--accent) !important; text-decoration: none; }
.avc-day.in-range { box-shadow: inset 0 0 0 2px var(--accent); }
.avc-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .8rem; font-size: 12px; color: var(--muted); }
.avc-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.avc-legend .lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg.free { background: var(--success-bg); border: 1px solid var(--success); }
.lg.partial { background: var(--warning-bg); border: 1px solid var(--warning); }
.lg.booked { background: var(--danger-bg); border: 1px solid var(--danger); }
.lg.sel { background: var(--accent); }

/* ---------- Availability result ---------- */
.avail-result { border-radius: var(--radius); padding: 1rem; border: 1px solid var(--border); }
.avail-result.ok { background: var(--success-bg); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.avail-result.no { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.avail-result .ar-title { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 15px; }
.avail-result.ok .ar-title { color: var(--success); } .avail-result.no .ar-title { color: var(--danger); }
.fare-box { margin-top: .8rem; background: var(--surface); border-radius: var(--radius-sm); padding: .4rem .9rem; border: 1px solid var(--border); }

/* ---------- Vehicle cards (customer) ---------- */
.veh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; }
.veh-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; color: var(--text); transition: transform .15s, box-shadow .15s; }
.veh-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.veh-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--surface-3); }
.veh-card .vc-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.veh-card .vc-name { font-weight: 700; font-size: 16px; }
.veh-specs { display: flex; flex-wrap: wrap; gap: .35rem .9rem; color: var(--muted); font-size: 12.5px; }
.veh-specs span { display: inline-flex; align-items: center; gap: .3rem; }
.veh-specs svg { width: 14px; height: 14px; }
.veh-card .vc-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: .5rem; border-top: 1px dashed var(--border); }
.veh-price { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.veh-price small { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- Resource timeline (calendar) ---------- */
.tl-wrap { overflow-x: auto; }
.tl-table { min-width: 860px; }
.tl-row { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--border); min-height: 46px; }
.tl-row:last-child { border-bottom: 0; }
.tl-label { padding: .55rem .8rem; font-size: 13px; border-right: 1px solid var(--border); background: var(--surface-2); position: sticky; left: 0; z-index: 2; }
.tl-label .cell-sub { font-size: 11.5px; }
.tl-lane { position: relative; background-image: linear-gradient(to right, var(--border) 1px, transparent 1px); }
.tl-head .tl-lane { display: grid; font-size: 11.5px; color: var(--muted); font-weight: 600; background: var(--surface-2); background-image: none; }
.tl-head .tl-lane div { padding: .5rem .3rem; border-left: 1px solid var(--border); text-align: center; white-space: nowrap; overflow: hidden; }
.tl-head .tl-lane div.today { color: var(--accent-hover); background: rgba(var(--accent-rgb), .1); }
.tl-bar { position: absolute; top: 7px; height: 32px; border-radius: 7px; padding: 0 .5rem; font-size: 11.5px; font-weight: 600; display: flex; align-items: center; overflow: hidden; white-space: nowrap; color: #fff; text-decoration: none !important; min-width: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.tl-bar.s-pending { background: #D69E2E; } .tl-bar.s-confirmed { background: #2563EB; } .tl-bar.s-driver_assigned { background: #0EA5E9; }
.tl-bar.s-driver_en_route { background: #14B8A6; } .tl-bar.s-in_progress { background: #8B5CF6; } .tl-bar.s-completed { background: #12A150; }
.tl-bar.s-block { background: repeating-linear-gradient(45deg, #64748B, #64748B 6px, #94A3B8 6px, #94A3B8 12px); }
.month-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.month-cal .mc-dow { padding: .5rem; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.month-cal .mc-day { min-height: 118px; padding: .4rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-width: 0; }
.month-cal .mc-day.blank { background: var(--surface-2); }
.month-cal .mc-num { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: .25rem; display: flex; justify-content: space-between; }
.month-cal .mc-day.today .mc-num span:first-child { background: var(--accent); color: var(--on-accent); border-radius: 99px; padding: 0 .45rem; }
.mc-ev { display: block; font-size: 11px; padding: .15rem .4rem; border-radius: 5px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; text-decoration: none !important; }
@media (max-width: 768px) { .month-cal .mc-day { min-height: 74px; padding: .25rem; } .mc-ev { font-size: 0; height: 6px; padding: 0; } .tl-row { grid-template-columns: 130px 1fr; } }
.steps-mini { display: flex; gap: .4rem; flex-wrap: wrap; }
.steps-mini span { display: inline-flex; align-items: center; gap: .35rem; font-size: 12.5px; color: var(--muted); }
.steps-mini span.done { color: var(--success); font-weight: 600; }
.steps-mini span.now { color: var(--text); font-weight: 700; }

/* Customer booking progress */
.progress-steps { display: flex; list-style: none; margin: 0; padding: 0; }
.progress-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; font-size: 12.5px; color: var(--muted); position: relative; min-width: 0; }
.progress-steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 2px solid var(--border); font-weight: 700; position: relative; z-index: 1; }
.progress-steps li::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: var(--border); }
.progress-steps li:first-child::before { display: none; }
.progress-steps li.done { color: var(--text-2); }
.progress-steps li.done span { background: var(--success); border-color: var(--success); color: #fff; }
.progress-steps li.done::before, .progress-steps li.current::before { background: var(--success); }
.progress-steps li.current { color: var(--text); font-weight: 700; }
.progress-steps li.current span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
