/* =====================================================================
   MMRV Rentals — design system
   Μονόχρωμη ταυτότητα (όπως το λογότυπο) + χρώματα μόνο για καταστάσεις.
   ===================================================================== */
:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-xl: 24px;
  --sidebar: 252px;
  --topbar: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --st-pending: #f5a524;
  --st-confirmed: #4c8dff;
  --st-active: #22c55e;
  --st-completed: #8b8b95;
  --st-cancelled: #ef4444;
  --st-block: #94a3b8;
  --danger: #ef4444;
  --warn: #f5a524;
  --ok: #22c55e;
  --info: #4c8dff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --surface: #141416;
  --surface-2: #1b1b1f;
  --surface-3: #232328;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --text: #f5f5f4;
  --text-2: #c9c9cf;
  --muted: #9a9aa3;
  --faint: #6b6b74;
  --primary: #f5f5f4;
  --on-primary: #0a0a0b;
  --hover: rgba(255, 255, 255, .05);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.7);
  --shadow-pop: 0 24px 80px -12px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08);
  --glass: rgba(20, 20, 22, .72);
  --mark: url('/img/mark-white.png');
  --logo: url('/img/logo-white.png');
  --weekend: rgba(255,255,255,.022);
}
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f3f1;
  --bg-2: #ebebe8;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --surface-3: #eeeeeb;
  --line: rgba(10, 10, 11, .08);
  --line-2: rgba(10, 10, 11, .15);
  --text: #0a0a0b;
  --text-2: #2c2c31;
  --muted: #5f5f68;
  --faint: #8d8d95;
  --primary: #0a0a0b;
  --on-primary: #ffffff;
  --hover: rgba(10, 10, 11, .045);
  --shadow: 0 1px 2px rgba(10,10,11,.04), 0 12px 32px -16px rgba(10,10,11,.18);
  --shadow-pop: 0 24px 70px -16px rgba(10,10,11,.35), 0 0 0 1px rgba(10,10,11,.08);
  --glass: rgba(255, 255, 255, .78);
  --mark: url('/img/mark-black.png');
  --logo: url('/img/logo-black.png');
  --weekend: rgba(10,10,11,.025);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--text);
  font: 400 14px/1.5 var(--font);
  font-feature-settings: 'cv11', 'ss01', 'tnum';
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.015em; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot-mark { width: 180px; opacity: .9; animation: pulse 1.4s var(--ease) infinite alternate; }
:root[data-theme="dark"] .boot-mark { filter: invert(1); }
@keyframes pulse { from { opacity: .25; transform: scale(.98); } to { opacity: .9; transform: scale(1); } }

/* --------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column;
  padding: 22px 14px 16px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.brand { display: block; padding: 4px 10px 22px; }
.brand-mark { height: 26px; width: 100%; background: var(--mark) left center / contain no-repeat; }
.brand-sub { margin-top: 8px; font-size: 10px; font-weight: 600; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { margin: 18px 12px 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.nav a {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.nav a.on .ico { color: var(--text); }
.nav .ico { color: var(--muted); }
.nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--st-pending); color: #000; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.me:hover { border-color: var(--line-2); }
.me-info { min-width: 0; flex: 1; }
.me-name { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-role { font-size: 11.5px; color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 12.5px; letter-spacing: .02em;
}
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar);
  display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-logo { display: none; height: 18px; width: 120px; background: var(--mark) left center / contain no-repeat; }
.searchbtn {
  flex: 0 1 380px; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); cursor: pointer; text-align: left;
}
.searchbtn:hover { border-color: var(--line-2); }
.searchbtn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd { font: 600 11px var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.topbar .spacer { flex: 1; }
.content { padding: 28px; width: 100%; max-width: 1480px; margin: 0 auto; flex: 1; }
.content.wide { max-width: none; }

.tabbar { display: none; }

/* --------------------------------------------------------------- page */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; line-height: 1.15; letter-spacing: -.025em; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.back:hover { color: var(--text); }

/* --------------------------------------------------------------- buttons */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--b); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .12s var(--ease), background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn.primary:hover { opacity: .9; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ok.solid { background: var(--st-active); border-color: var(--st-active); color: #04140a; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 13px; }
.btn.icon { width: 40px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn.block { width: 100%; }
.btn .ico { flex: none; }
.btn.loading { pointer-events: none; opacity: .7; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 15px; height: 15px; }
.ico.lg { width: 22px; height: 22px; }

/* --------------------------------------------------------------- cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; display: flex; align-items: center; gap: 10px; }
.card-head .meta { color: var(--muted); font-size: 12.5px; }
.card-body { padding: 18px 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 650; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.hr { height: 1px; background: var(--line); margin: 16px 0; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; }

/* KPI tiles */
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.kpi-value { margin-top: 10px; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.kpi-value small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.kpi-foot { margin-top: 10px; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.kpi .bar { margin-top: 12px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.kpi .bar i { display: block; height: 100%; border-radius: 99px; background: var(--text); }
a.kpi:hover { border-color: var(--line-2); }

/* status pills */
.pill {
  --c: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 99px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.pill.plain::before { display: none; }
.pill.plain { padding: 0 10px; }
.pill.pending { --c: var(--st-pending); }
.pill.confirmed { --c: var(--st-confirmed); }
.pill.active { --c: var(--st-active); }
.pill.completed { --c: var(--st-completed); }
.pill.cancelled { --c: var(--st-cancelled); }
.pill.block, .pill.blocked, .pill.maintenance { --c: var(--st-block); }
.pill.available { --c: var(--st-active); }
.pill.rented { --c: var(--st-confirmed); }
.pill.inactive { --c: var(--faint); }
.pill.danger { --c: var(--danger); }
.pill.warn { --c: var(--warn); }
.pill.vip { --c: #d4b26a; }
.pill.sm { height: 20px; font-size: 11px; padding: 0 8px 0 7px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--text-2); white-space: nowrap; }
.chip:hover { border-color: var(--faint); color: var(--text); }
.chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.25), inset 0 0 0 1px var(--line); }

/* --------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.field .hint { font-size: 11.5px; color: var(--faint); }
.input, .select, textarea.input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
  font-size: 14px;
}
textarea.input { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover { border-color: var(--faint); }
.input:focus, .select:focus { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 12%, transparent); background: var(--surface); }
.input::placeholder { color: var(--faint); }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9aa3' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input[type="date"], .input[type="time"], .input[type="datetime-local"] { min-width: 0; }
.input.num { text-align: right; font-variant-numeric: tabular-nums; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: 11px 0 0 11px; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 11px 11px 0; background: var(--surface-3); color: var(--muted); font-weight: 600; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.g3c { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-section { padding: 20px; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.form-section h4 { font-size: 13px; letter-spacing: .02em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--text); }
.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); transition: .2s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: .2s var(--ease); }
.switch input:checked + i { background: var(--primary); border-color: var(--primary); }
.switch input:checked + i::after { left: 18px; background: var(--on-primary); }
.err { color: var(--danger); font-size: 12.5px; font-weight: 500; }

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.link { cursor: pointer; transition: background .12s; }
.table tbody tr.link:hover { background: var(--hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); transition: background .12s; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover, .list-item.link:hover { background: var(--hover); cursor: pointer; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.thumb { width: 64px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--surface-3); flex: none; }
.thumb.sm { width: 46px; height: 32px; border-radius: 7px; }
.time-badge { flex: none; width: 56px; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.time-badge b { display: block; font-size: 15px; letter-spacing: -.01em; }
.time-badge span { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.dir { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.dir.out { background: color-mix(in srgb, var(--st-confirmed) 16%, transparent); color: var(--st-confirmed); }
.dir.in { background: color-mix(in srgb, var(--st-active) 16%, transparent); color: var(--st-active); }

.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty .ico { width: 28px; height: 28px; margin: 0 auto 10px; color: var(--faint); }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* --------------------------------------------------------------- dashboard */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.hello h1 { font-size: 30px; letter-spacing: -.03em; }
.hello .date { color: var(--muted); margin-top: 4px; text-transform: capitalize; }
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.kpis { display: contents; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.fleet-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; padding: 16px; }
.fleet-tile { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: block; transition: transform .2s var(--ease), border-color .2s; }
.fleet-tile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.fleet-tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fleet-tile .ft-body { padding: 10px 12px 12px; }
.fleet-tile .ft-name { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-tile .ft-meta { color: var(--muted); font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet-tile .pill { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--c) 22%, rgba(0,0,0,.55)); }
:root[data-theme="light"] .fleet-tile .pill { background: color-mix(in srgb, var(--c) 18%, rgba(255,255,255,.85)); }
.alert-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.alert-item:last-child { border-bottom: 0; }
.alert-item .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; }
.alert-item.danger .dot { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 20%, transparent); }
.alert-item.warn .dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 20%, transparent); }
a.alert-item:hover { background: var(--hover); }

/* bar chart */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar-mark { fill: var(--text); opacity: .85; transition: opacity .15s; }
.chart .bar-mark.dim { opacity: .28; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .bar-mark, .chart g:hover .bar-mark { opacity: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart-tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); background: var(--surface-3); border: 1px solid var(--line-2); padding: 7px 10px; border-radius: 9px; font-size: 12px; white-space: nowrap; box-shadow: var(--shadow-pop); z-index: 5; }
.chart-tip b { display: block; font-size: 13px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 190px) 1fr auto; gap: 12px; align-items: center; padding: 8px 0; }
.hbar .track { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 99px; background: var(--text); opacity: .85; }

/* --------------------------------------------------------------- cars */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.car-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), border-color .2s; }
.car-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.car-card .ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.car-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.car-card:hover .ph img { transform: scale(1.04); }
.car-card .ph .pill { position: absolute; top: 12px; left: 12px; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--c) 22%, rgba(0,0,0,.55)); }
.car-card .ph .plate { position: absolute; top: 12px; right: 12px; }
.plate { display: inline-flex; align-items: center; height: 22px; padding: 0 7px 0 0; border-radius: 5px; background: #f7f7f2; color: #111; font: 700 11.5px/1 var(--font); letter-spacing: .06em; border: 1px solid #c9c9c9; overflow: hidden; white-space: nowrap; }
.plate::before { content: 'GR'; display: grid; place-items: center; align-self: stretch; padding: 0 4px; margin-right: 6px; background: #1747c7; color: #fff; font-size: 8px; letter-spacing: 0; }
.car-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car-card .name { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.car-card .specs { display: flex; gap: 14px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.car-card .specs span { display: inline-flex; gap: 5px; align-items: center; }
.car-card .foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.price small { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.car-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 280px; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.car-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.car-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.82)); }
.car-hero .in { position: relative; z-index: 1; padding: 26px; color: #fff; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.car-hero h1 { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: 0; }
.car-hero .btn { --b: rgba(255,255,255,.3); background: rgba(0,0,0,.35); color: #fff; backdrop-filter: blur(8px); }
.car-hero .btn.primary { background: #fff; color: #000; border-color: #fff; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.specs-grid > div { background: var(--surface); padding: 12px 14px; }
.specs-grid .k { font-size: 11.5px; color: var(--muted); }
.specs-grid .v { font-weight: 600; margin-top: 2px; }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: 0; }

/* --------------------------------------------------------------- calendar */
.cal-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-toolbar .range { font-size: 18px; font-weight: 650; letter-spacing: -.02em; min-width: 200px; text-transform: capitalize; }
.cal { --carcol: 230px; --day: 64px; position: relative; overflow: auto; max-height: calc(100dvh - 210px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overscroll-behavior: contain; }
.cal-inner { position: relative; min-width: calc(var(--carcol) + var(--days) * var(--day)); }
.cal-head, .cal-row { display: grid; grid-template-columns: var(--carcol) 1fr; }
.cal-head { position: sticky; top: 0; z-index: 6; background: var(--surface); border-bottom: 1px solid var(--line); }
.cal-corner { position: sticky; left: 0; z-index: 7; background: var(--surface); border-right: 1px solid var(--line); padding: 10px 14px; display: flex; align-items: flex-end; font-size: 11.5px; color: var(--faint); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cal-days { display: grid; grid-template-columns: repeat(var(--days), minmax(var(--day), 1fr)); }
.cal-day { padding: 8px 0 8px; text-align: center; border-left: 1px solid var(--line); line-height: 1.15; }
.cal-day .dw { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.cal-day .dn { font-size: 16px; font-weight: 650; margin-top: 3px; }
.cal-day .dm { font-size: 10px; color: var(--faint); text-transform: uppercase; }
.cal-day.we { background: var(--weekend); }
.cal-day.today .dn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); margin-top: 1px; }
.cal-row { border-bottom: 1px solid var(--line); min-height: 64px; }
.cal-row:last-child { border-bottom: 0; }
.cal-car { position: sticky; left: 0; z-index: 4; background: var(--surface); border-right: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-width: 0; }
.cal-car:hover .cal-car-name { text-decoration: underline; text-underline-offset: 3px; }
.cal-car-name { font-family: var(--serif); font-size: 16.5px; font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-car .meta { color: var(--muted); font-size: 11.5px; }
.cal-track { position: relative; display: grid; grid-template-columns: repeat(var(--days), minmax(var(--day), 1fr)); cursor: copy; }
.cal-track > .c { border-left: 1px solid var(--line); }
.cal-track > .c.we { background: var(--weekend); }
.cal-track > .c.today { background: color-mix(in srgb, var(--text) 4%, transparent); }
.cal-bar {
  --c: var(--st-confirmed);
  position: absolute; top: 10px; bottom: 10px; z-index: 2; min-width: 6px; border-radius: 10px; padding: 0 10px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--c) 22%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: inset 3px 0 0 var(--c);
  transition: transform .15s var(--ease), box-shadow .15s;
}
.cal-bar:hover { transform: translateY(-1px); box-shadow: inset 3px 0 0 var(--c), 0 8px 24px -8px rgba(0,0,0,.5); z-index: 3; }
.cal-bar b { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-bar span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-bar.pending { --c: var(--st-pending); border-style: dashed; }
.cal-bar.active { --c: var(--st-active); }
.cal-bar.completed { --c: var(--st-completed); opacity: .75; }
.cal-bar.block { --c: var(--st-block); background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--c) 18%, var(--surface)) 0 6px, color-mix(in srgb, var(--c) 8%, var(--surface)) 6px 12px); }
.cal-bar.overdue { --c: var(--danger); }
.cal-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); z-index: 5; pointer-events: none; }
.cal-now::before { content: ''; position: absolute; top: 0; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.agenda-day { padding: 14px 20px 6px; font-weight: 650; display: flex; align-items: baseline; gap: 10px; text-transform: capitalize; }
.agenda-day .muted { font-weight: 500; font-size: 12.5px; text-transform: none; }

/* --------------------------------------------------------------- booking */
.steps { display: flex; gap: 0; margin: 4px 0 20px; }
.step { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--faint); font-weight: 600; font-size: 12.5px; min-width: 0; }
.step::after { content: ''; flex: 1; height: 2px; border-radius: 2px; background: var(--line-2); margin: 0 10px; }
.step:last-child { flex: none; }
.step:last-child::after { display: none; }
.step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); flex: none; font-size: 12px; }
.step.done { color: var(--text-2); }
.step.done .n { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.step.done::after { background: var(--text); }
.step.now { color: var(--text); }
.step.now .n { border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 12%, transparent); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 9px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.money-lines { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.money-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.money-lines .total { padding-top: 12px; margin-top: 4px; border-top: 1px dashed var(--line-2); font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.money-lines .neg { color: var(--st-active); }
.balance-box { margin-top: 14px; padding: 14px 16px; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.balance-box.due { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.balance-box.paid { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.balance-box b { font-size: 20px; letter-spacing: -.02em; }
.big-sum { position: sticky; top: calc(var(--topbar) + 20px); }
.car-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.car-opt { position: relative; text-align: left; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); overflow: hidden; cursor: pointer; padding: 0; transition: border-color .15s, transform .15s var(--ease); }
.car-opt:hover { border-color: var(--faint); }
.car-opt img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.car-opt .co-b { padding: 8px 10px 10px; }
.car-opt .co-n { font-family: var(--serif); font-weight: 600; font-size: 16.5px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-opt .co-m { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-opt.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--text); }
.car-opt.on::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.car-opt.busy { opacity: .45; }
.car-opt.busy .co-m { color: var(--danger); }
.cust-pick { position: relative; }
.dropdown { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-pop); max-height: 320px; overflow: auto; padding: 6px; }
.dropdown button { display: flex; width: 100%; text-align: left; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.dropdown button:hover, .dropdown button.on { background: var(--hover); }
.selected-cust { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); }
.extra-row { display: grid; grid-template-columns: auto 1fr 110px auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.extra-row:last-child { border-bottom: 0; }
.fuel { display: flex; gap: 4px; }
.fuel button { flex: 1; height: 34px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: 11px; font-weight: 700; color: var(--muted); }
.fuel button.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.sigpad { width: 100%; height: 220px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: #fff; touch-action: none; cursor: crosshair; display: block; }
.sig-img { max-height: 110px; background: #fff; border-radius: 10px; padding: 6px; border: 1px solid var(--line); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.file { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 4/3; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
.file img { width: 100%; height: 100%; object-fit: cover; }
.file .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; display: grid; place-items: center; }
.file .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 8px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: 11px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload { border: 1.5px dashed var(--line-2); cursor: pointer; transition: border-color .15s; }
.upload:hover { border-color: var(--text); color: var(--text); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding-bottom: 14px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); margin-top: 3px; }
.tl-item .t { font-size: 13px; }
.tl-item .m { font-size: 11.5px; color: var(--faint); }
.mobile-sum { display: none; }

/* --------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); animation: fade .2s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal {
  position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); animation: pop .22s var(--ease);
}
.modal.wide { width: min(760px, calc(100vw - 32px)); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.drawer {
  position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-pop); animation: slide .28s var(--ease);
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.ov-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.ov-head h3 { font-size: 17px; }
.ov-body { padding: 20px 22px; overflow: auto; flex: 1; overscroll-behavior: contain; }
.ov-body.flush { padding: 0; }
.ov-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-wrap: wrap; }
.ov-foot .left { margin-right: auto; }

.palette { top: 12vh; transform: translateX(-50%); width: min(640px, calc(100vw - 24px)); animation: pop2 .2s var(--ease); }
@keyframes pop2 { from { opacity: 0; transform: translate(-50%, -8px); } }
.palette .pal-in { display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette input { flex: 1; height: 58px; border: 0; background: transparent; outline: none; font-size: 16px; }
.palette .pal-res { max-height: 56vh; overflow: auto; padding: 8px; }
.pal-group { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; }
.pal-item.on, .pal-item:hover { background: var(--hover); }
.pal-item .grow { flex: 1; min-width: 0; }

#toasts { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 12px 16px; border-radius: 13px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow-pop); animation: toast .3s var(--ease); }
.toast.error { background: var(--danger); color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes toast { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.menu-pop { position: fixed; z-index: 90; min-width: 220px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 6px; animation: fade .15s; }
.menu-pop button, .menu-pop a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; font-weight: 500; text-align: left; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--hover); }
.menu-pop .sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* --------------------------------------------------------------- auth */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.2fr 1fr; background: #000; color: #f5f5f4; }
.auth-visual { position: relative; overflow: hidden; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 18s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1%, -1%); } }
.auth-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.1), rgba(0,0,0,.25) 60%, #000), linear-gradient(0deg, rgba(0,0,0,.75), transparent 45%); }
.auth-visual .cap { position: absolute; z-index: 1; left: 48px; bottom: 44px; right: 48px; }
.auth-visual .cap .eyebrow { color: rgba(255,255,255,.6); }
.auth-visual .cap h2 { font-size: 40px; font-weight: 300; line-height: 1.08; margin-top: 12px; letter-spacing: -.035em; max-width: 560px; }
.auth-side { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(28px, 6vw, 88px); position: relative; }
.auth-logo { width: min(340px, 100%); aspect-ratio: 900 / 264; background: url('/img/logo-white.png') left center / contain no-repeat; margin-bottom: 44px; }
.auth h1 { font-size: 26px; letter-spacing: -.025em; }
.auth .sub { color: #9a9aa3; margin: 6px 0 26px; }
.auth form { display: flex; flex-direction: column; gap: 14px; max-width: 400px; }
.auth .input { background: #141416; border-color: rgba(255,255,255,.14); color: #f5f5f4; height: 48px; }
.auth .input:focus { border-color: #fff; background: #18181b; }
.auth .field > label { color: #9a9aa3; }
.auth .btn.primary { background: #fff; color: #000; border-color: #fff; height: 50px; font-size: 15px; }
.auth .check { color: #c9c9cf; }
.auth .check input { accent-color: #fff; }
.auth .foot { position: absolute; bottom: 26px; left: clamp(28px, 6vw, 88px); right: 24px; color: #6b6b74; font-size: 12px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-wrap button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: #9a9aa3; cursor: pointer; display: grid; place-items: center; border-radius: 9px; }

/* --------------------------------------------------------------- contract (A4) */
.contract-bar { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.paper-wrap { overflow-x: auto; padding-bottom: 20px; }
.paper {
  width: 210mm; min-height: 297mm; margin: 0 auto; background: #fff; color: #111; padding: 14mm 14mm 12mm;
  font: 400 9.6pt/1.42 var(--font); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); border-radius: 4px;
}
.paper .c-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 5mm; border-bottom: 2px solid #111; }
.paper .c-logo { width: 62mm; }
.paper .c-co { text-align: right; font-size: 8.4pt; line-height: 1.5; color: #333; }
.paper .c-co b { color: #111; font-size: 9.2pt; }
.paper .c-title { display: flex; justify-content: space-between; align-items: flex-end; margin: 5mm 0 4mm; }
.paper .c-title h2 { font-size: 15pt; letter-spacing: .02em; font-weight: 800; }
.paper .c-title h2 span { display: block; font-size: 9pt; font-weight: 500; color: #666; letter-spacing: .14em; text-transform: uppercase; margin-top: 1mm; }
.paper .c-no { text-align: right; font-size: 8.6pt; color: #444; }
.paper .c-no b { display: block; font-size: 13pt; color: #111; letter-spacing: .04em; }
.paper .c-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
.paper .c-box { border: 1px solid #cfcfcf; border-radius: 2.5mm; padding: 3mm 3.5mm; break-inside: avoid; }
.paper .c-box h4 { font-size: 7.6pt; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #666; margin-bottom: 2mm; }
.paper .c-kv { display: grid; grid-template-columns: 36mm 1fr; gap: .8mm 3mm; font-size: 8.8pt; }
.paper .c-kv dt { color: #666; }
.paper .c-kv dd { margin: 0; font-weight: 600; }
.paper .c-kv dt small, .paper th small { display: block; font-size: 6.8pt; color: #999; font-weight: 400; line-height: 1.1; }
.paper table { width: 100%; border-collapse: collapse; font-size: 8.8pt; }
.paper th { text-align: left; font-weight: 600; color: #555; border-bottom: 1px solid #bbb; padding: 1.4mm 1mm; }
.paper td { border-bottom: 1px solid #e5e5e5; padding: 1.4mm 1mm; }
.paper .r { text-align: right; }
.paper .tot td { border-bottom: 0; font-weight: 800; font-size: 10.5pt; border-top: 1.5px solid #111; }
.paper .c-terms { columns: 2; column-gap: 6mm; font-size: 7.3pt; line-height: 1.38; color: #333; margin: 0; padding-left: 4mm; }
.paper .c-terms li { break-inside: avoid; margin-bottom: 1mm; }
.paper .c-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; margin-top: 6mm; }
.paper .c-sign > div { border-top: 1px solid #111; padding-top: 1.5mm; font-size: 8pt; color: #555; position: relative; min-height: 22mm; display: flex; flex-direction: column; justify-content: flex-end; }
.paper .c-sign img { position: absolute; bottom: 6mm; left: 0; max-height: 22mm; max-width: 70mm; }
.paper .c-fuel { display: inline-flex; gap: .6mm; vertical-align: middle; }
.paper .c-fuel i { width: 2.6mm; height: 3.4mm; border: .8px solid #111; border-radius: .5mm; }
.paper .c-fuel i.f { background: #111; }
.paper .c-foot { margin-top: 5mm; font-size: 7.2pt; color: #888; display: flex; justify-content: space-between; }
.paper .mt { margin-top: 4mm; }

@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  .sidebar, .topbar, .tabbar, .contract-bar, #toasts, .no-print { display: none !important; }
  .shell { display: block; }
  .content { padding: 0 !important; max-width: none; }
  .paper-wrap { overflow: visible; padding: 0; }
  .paper { box-shadow: none; border-radius: 0; margin: 0; width: 210mm; min-height: 0; padding: 10mm 12mm; }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .span-3 { grid-column: span 6; }
  .span-4 { grid-column: span 6; }
  .span-8, .span-7, .span-5 { grid-column: span 12; }
  .split { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1080px) {
  :root { --sidebar: 76px; }
  .sidebar { padding: 18px 10px; align-items: center; }
  .brand { padding: 4px 0 18px; width: 100%; }
  .brand-mark { height: 14px; }
  .brand-sub, .nav-label, .nav a span, .nav .count, .me-info { display: none; }
  .nav a { justify-content: center; padding: 0; width: 48px; height: 44px; position: relative; }
  .nav a .count { display: grid; position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; }
  .me { padding: 6px; border: 0; background: transparent; }
  .split { grid-template-columns: 1fr; }
  .big-sum { position: static; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --topbar: 58px; }
  body { font-size: 14.5px; }
  .shell { display: block; }
  .sidebar { display: none; }
  .topbar { padding: 0 14px; padding-top: env(safe-area-inset-top); height: calc(var(--topbar) + env(safe-area-inset-top)); gap: 8px; }
  .topbar-logo { display: block; }
  .searchbtn { flex: none; width: 40px; padding: 0; justify-content: center; margin-left: auto; }
  .searchbtn span, .searchbtn kbd, .topbar .hide-m { display: none; }
  .topbar .spacer { display: none; }
  .hide-m { display: none !important; }
  .content { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .page-head h1, .hello h1 { font-size: 24px; }
  .page-head { margin-bottom: 16px; align-items: flex-start; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--glass);
    backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 10.5px; font-weight: 600; color: var(--muted); position: relative; }
  .tabbar a.on { color: var(--text); }
  .tabbar a .ico { width: 22px; height: 22px; }
  .tabbar .fab { align-self: center; justify-self: center; width: 52px; height: 52px; border-radius: 17px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); margin-top: -18px; padding: 0; }
  .tabbar .fab .ico { width: 24px; height: 24px; stroke-width: 2.2; }
  .tabbar .count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--st-pending); color: #000; font-size: 9.5px; font-weight: 800; display: grid; place-items: center; }
  .dash { gap: 12px; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; grid-column: span 12; }
  .kpis > .kpi { grid-column: auto; }
  .kpi { padding: 14px 15px; }
  .kpi-value { font-size: 24px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .g4.keep2, .g2.keep2 { grid-template-columns: 1fr 1fr; }
  .form-grid, .form-grid.g3c { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-grid > .field.m-full { grid-column: 1 / -1; }
  .form-section { padding: 16px; }
  .card-head { padding: 14px 16px; }
  .card-body { padding: 16px; }
  .list-item { padding: 12px 16px; }
  .fleet-strip { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 12px; gap: 10px; }
  .fleet-tile .ft-name { font-size: 16px; }
  .car-grid { grid-template-columns: 1fr; gap: 14px; }
  .car-hero { min-height: 220px; border-radius: var(--r-lg); }
  .car-hero h1 { font-size: 32px; }
  .car-hero .in { padding: 18px; }
  .cal { --carcol: 104px; --day: 48px; max-height: none; }
  .cal-car { padding: 6px 8px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .cal-car .thumb { display: none; }
  .cal-car-name { font-size: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cal-car .meta { display: none; }
  .cal-bar { top: 8px; bottom: 8px; padding: 0 7px; border-radius: 8px; }
  .cal-bar span { display: none; }
  .cal-toolbar .range { min-width: 0; font-size: 16px; flex: 1 1 100%; order: -1; }
  .kv { grid-template-columns: 110px 1fr; }
  .steps .step span { display: none; }
  .drawer { width: 100vw; border-left: 0; }
  .modal { top: auto; bottom: 0; left: 0; transform: none; width: 100vw; max-height: 92dvh; border-radius: 22px 22px 0 0; animation: sheet .28s var(--ease); }
  .modal.wide { width: 100vw; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .palette { top: 0; left: 0; transform: none; width: 100vw; height: 100dvh; max-height: none; border-radius: 0; animation: fade .15s; }
  .palette .pal-res { max-height: none; flex: 1; }
  #toasts { left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); align-items: stretch; }
  .toast { max-width: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-visual { position: fixed; inset: 0; }
  .auth-visual::after { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.82) 45%, #000 80%); }
  .auth-visual .cap { display: none; }
  .auth-side { position: relative; z-index: 1; min-height: 100dvh; justify-content: flex-end; padding: 32px 22px calc(70px + env(safe-area-inset-bottom)); }
  .auth-logo { margin-bottom: auto; margin-top: 10vh; width: 82%; }
  .auth .foot { left: 22px; bottom: calc(20px + env(safe-area-inset-bottom)); }
  .table.responsive thead { display: none; }
  .table.responsive tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.responsive td { padding: 0; border: 0; }
  .table.responsive td.hide-m { display: none; }
  .table.responsive td.m-span { grid-column: 1 / -1; }
  .mobile-sum {
    display: flex; position: fixed; z-index: 39; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom));
    padding: 10px 16px; gap: 12px; align-items: center; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line);
  }
  .mobile-sum .grow { flex: 1; min-width: 0; }
  .mobile-sum b { font-size: 18px; letter-spacing: -.02em; }
  .booking-form .big-sum .save-row { display: none; }
  .extra-row { grid-template-columns: auto 1fr 90px; }
  .extra-row .del { grid-column: 3; justify-self: end; }
  .hbar { grid-template-columns: 96px 1fr auto; gap: 8px; }
}
@media (max-width: 420px) {
  .hide-xs { display: none !important; }
  .form-grid, .form-grid.g3c { grid-template-columns: 1fr; }
  .kpi-value { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ειδοποίηση νέας έκδοσης */
.update-banner {
  position: fixed; z-index: 95; left: 50%; top: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); font-size: 13.5px;
  animation: pop2 .3s var(--ease); white-space: nowrap; max-width: calc(100vw - 24px);
}
@media (max-width: 760px) { .update-banner { top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); } }
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--text); transition: width .2s; }
.bell-count { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font: 800 10px/17px var(--font); font-style: normal; text-align: center; }

/* τα παιδιά των grid/flex δεν πρέπει να «φουσκώνουν» το πλάτος στο κινητό */
.split > *, .stack > *, .grid > *, .dash > *, .form-grid > *, .kpis > * { min-width: 0; }
.page-head > div:first-child { min-width: 0; }
.page-head h1 { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .kpi-value { font-size: 22px; overflow-wrap: anywhere; }
  .car-hero .actions { width: 100%; }
  .car-hero .actions .btn { flex: 1; }
  .page-head > .row { width: 100%; }
  .money-lines > div > span:first-child { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 760px) {
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
}
.kpi-foot { flex-wrap: wrap; }
@media (max-width: 760px) {
  .list-item { gap: 10px; }
  .list-item > .dir { display: none; }
  .list-item .time-badge { width: 50px; }
  .list-item > .pill { font-size: 11px; height: 22px; padding: 0 8px 0 7px; }
}
@media (max-width: 760px) { .booking-form { padding-bottom: 72px; } }

/* iPhone/iPad: πεδία κάτω από 16px προκαλούν αυτόματο zoom στο πάτημα — πάντα 16px σε οθόνες αφής */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea, .input, .select { font-size: 16px !important; }
}
.date-range .input { width: auto; }
@media (max-width: 760px) {
  .date-range { width: 100%; }
  .date-range .input { flex: 1; width: auto; min-width: 0; }
}
