/* Παραλαβές δελτίων — εμφάνιση
   Το --brand παίρνει αυτόματα το χρώμα του λογοτύπου (app.js). */
:root {
  color-scheme: light dark;
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --surface-2: #F8F9FA;
  --ink: #14171C;
  --muted: #5E6672;
  --line: #E3E6EA;
  --brand: #D21C28;
  --on-brand: #FFFFFF;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, var(--surface));
  --danger: #C42B1C;
  --ok: #12805C;
  --ok-bg: #E2F4EC;
  --warn: #8F5600;
  --warn-bg: #FFF3DA;
  --info: #2457C5;
  --neutral-bg: #ECEEF1;
  --on-ink: #FFFFFF;
  --stamp: var(--brand);

  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 28px rgba(16, 24, 40, 0.08);
  --shadow-brand: 0 14px 34px color-mix(in srgb, var(--brand) 32%, transparent);

  --fs-s: 0.8125rem;
  --fs-b: 1rem;
  --fs-m: 1.125rem;
  --fs-l: 1.625rem;
  --fs-xl: 2.25rem;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --pad: 20px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  font-family: "Commissioner", -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1114; --surface: #1A1D22; --surface-2: #20242A; --ink: #ECEEF1; --muted: #9AA2AD; --line: #2B3036;
    --danger: #F06A5D; --ok: #3CC48A; --ok-bg: #143325; --warn: #F0B455; --warn-bg: #352812; --info: #82A9F2;
    --neutral-bg: #2A2F36; --on-ink: #14171C; --stamp: color-mix(in srgb, var(--brand) 60%, #ffffff);
    --shadow-1: none; --shadow-2: 0 0 0 1px var(--line); --shadow-brand: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F1114; --surface: #1A1D22; --surface-2: #20242A; --ink: #ECEEF1; --muted: #9AA2AD; --line: #2B3036;
  --danger: #F06A5D; --ok: #3CC48A; --ok-bg: #143325; --warn: #F0B455; --warn-bg: #352812; --info: #82A9F2;
  --neutral-bg: #2A2F36; --on-ink: #14171C; --stamp: color-mix(in srgb, var(--brand) 60%, #ffffff);
  --shadow-1: none; --shadow-2: 0 0 0 1px var(--line); --shadow-brand: none;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 70%, transparent); outline-offset: 2px; }

/* ---------- Κεφαλίδα: το λογότυπο σε πρώτο πλάνο ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(var(--safe-t) + 12px) var(--pad) 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; min-height: 44px; min-width: 0; }
.brand-logo { display: block; height: 44px; width: auto; max-width: 62vw; object-fit: contain; }
.brand-text { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.01em; color: var(--stamp); white-space: nowrap; }
.who {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 4px 12px 4px 4px; font-size: var(--fs-s); font-weight: 600; cursor: pointer; box-shadow: var(--shadow-1);
}
.who-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em;
}
.who-name { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.devbar {
  background: var(--warn-bg); color: var(--warn);
  font-size: var(--fs-s); font-weight: 600; text-align: center; padding: 8px var(--pad);
}

/* ---------- Οθόνες ---------- */
.screen { display: none; max-width: 560px; margin: 0 auto; padding: 24px var(--pad) calc(var(--safe-b) + 36px); }
.screen-mid { max-width: 720px; }
.screen-wide { max-width: 1100px; }
body[data-screen="setup"]    .screen[data-for="setup"],
body[data-screen="login"]    .screen[data-for="login"],
body[data-screen="activate"] .screen[data-for="activate"],
body[data-screen="home"]     .screen[data-for="home"],
body[data-screen="users"]    .screen[data-for="users"],
body[data-screen="trucks"]   .screen[data-for="trucks"],
body[data-screen="vehicles"] .screen[data-for="vehicles"],
body[data-screen="aadeq"]    .screen[data-for="aadeq"],
body[data-screen="pending"]  .screen[data-for="pending"],
body[data-screen="history"]  .screen[data-for="history"],
body[data-screen="settings"] .screen[data-for="settings"],
body[data-screen="demoqr"]   .screen[data-for="demoqr"] { display: block; }
body[data-screen="install"]  .screen[data-for="install"],
body[data-screen="note"]     .screen[data-for="note"],
body[data-screen="result"]   .screen[data-for="result"] {
  display: flex; flex-direction: column; padding-bottom: 0;
  min-height: calc(100vh - 69px - var(--safe-t));
  min-height: calc(100dvh - 69px - var(--safe-t));
}
body[data-screen="scan"] .screen[data-for="scan"] { display: block; }
body[data-screen="scan"] .topbar,
body[data-screen="scan"] .devbar { display: none; }
body[data-screen="setup"] .topbar,
body[data-screen="login"] .topbar,
body[data-screen="activate"] .topbar,
body[data-screen="loading"] .topbar { display: none; }
body[data-screen="setup"] .devbar,
body[data-screen="login"] .devbar,
body[data-screen="activate"] .devbar { padding-top: calc(var(--safe-t) + 8px); }

.title { font-size: var(--fs-l); font-weight: 800; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.015em; }
.lead { color: var(--muted); margin: 0 0 22px; max-width: 36em; }
.h2 { font-size: var(--fs-m); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.link { color: var(--ink); font-weight: 600; font-size: var(--fs-s); text-underline-offset: 3px; }
.error { color: var(--danger); font-size: var(--fs-s); font-weight: 500; min-height: 1.2em; margin: 0; }
.empty { color: var(--muted); font-size: var(--fs-s); margin: 12px 0 4px; }

/* ---------- Κάρτες ---------- */
.card { background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-2); }
.card-pad { padding: 20px; }
.card-list { padding: 4px 16px; }

/* ---------- Σύνδεση / ενεργοποίηση: μεγάλο λογότυπο ---------- */
.screen-auth { max-width: 440px; padding-top: 28px; }
.auth-hero { display: flex; justify-content: center; align-items: center; min-height: 96px; margin: 4px 0 24px; }
.auth-logo { display: block; max-height: 88px; max-width: 280px; width: auto; object-fit: contain; }
.auth-wordmark { font-size: 2.5rem; font-weight: 800; color: var(--stamp); letter-spacing: 0.01em; }
.screen-auth .title, .screen-auth .lead { text-align: center; }
.screen-auth .lead { margin-left: auto; margin-right: auto; }
.aside { margin: 22px 0 0; color: var(--muted); font-size: var(--fs-s); text-align: center; }

/* ---------- Κουμπιά ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 20px; border-radius: 14px;
  font-weight: 700; font-size: var(--fs-b); cursor: pointer; text-decoration: none;
  border: 1px solid transparent; background: none; user-select: none; -webkit-user-select: none;
  transition: transform 120ms ease, filter 120ms ease, background-color 120ms ease;
}
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-primary.is-danger { background: var(--danger); box-shadow: none; }
.btn-big { min-height: 58px; font-size: var(--fs-m); width: 100%; border-radius: 16px; }
.btn-quiet { border-color: var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.btn-quiet:hover:not(:disabled) { background: var(--surface-2); }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 0.9375rem; border-radius: 12px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-quiet { color: var(--danger); width: 100%; font-weight: 600; }
.btn-onimage { background: rgba(255, 255, 255, 0.94); color: #14171C; }
.link-btn {
  border: 0; background: none; padding: 4px 0; font-weight: 700; font-size: inherit;
  color: var(--brand); text-decoration: none; cursor: pointer;
}
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Φόρμες ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: var(--fs-s); font-weight: 600; color: var(--muted); margin: 0; }
.field-help { font-size: var(--fs-s); color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-s);
  background: var(--surface-2); padding: 12px 14px; font-size: 1.0625rem; min-height: 50px; color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); background: var(--surface); outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent);
}
.field input:disabled { opacity: 0.5; }
.field select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 100px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--muted); font-size: var(--fs-s); font-weight: 700; padding: 8px 10px; cursor: pointer;
}
.code-input { font-size: var(--fs-m) !important; letter-spacing: 0.14em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.steps { margin: 0; padding-left: 2.2em; display: grid; gap: 12px; }
.steps li { padding-left: 4px; }
.segmented { border: 0; margin: 0; padding: 0; min-width: 0; }
.segmented legend { padding: 0; margin: 0 0 8px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--neutral-bg); border-radius: 14px; padding: 4px; }
.segmented label { position: relative; display: block; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 6px; text-align: center;
  border-radius: 10px; font-weight: 600; font-size: 0.9375rem; cursor: pointer; color: var(--muted);
}
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.segmented input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 70%, transparent); }
.segmented input:disabled + span { opacity: 0.5; cursor: not-allowed; }

/* ---------- Αρχική ---------- */
.tip {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px;
  border-radius: var(--r-s); background: var(--brand-soft); font-size: var(--fs-s);
}
.tip span { flex: 1; }
.tip-close { border: 0; background: none; color: var(--muted); padding: 0 2px; font-size: var(--fs-b); cursor: pointer; }
.scan-btn {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; min-height: 210px; border: 0; border-radius: var(--r-l);
  background: var(--brand); color: var(--on-brand); cursor: pointer; box-shadow: var(--shadow-brand);
  transition: transform 140ms ease;
}
.scan-btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 85% 0%, rgba(255, 255, 255, 0.28), transparent 60%),
              radial-gradient(90% 70% at 0% 100%, rgba(0, 0, 0, 0.18), transparent 60%);
}
.scan-btn:active { transform: scale(0.985); }
.scan-glyph { position: relative; width: 72px; height: 72px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; margin-bottom: 8px; }
.scan-glyph rect, .scan-glyph path:not(:first-child) { fill: currentColor; stroke: none; }
.scan-label { position: relative; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.scan-sub { position: relative; font-size: 0.9375rem; opacity: 0.9; font-weight: 500; }
.alt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.alt-actions .btn { padding: 0 10px; font-size: 0.9375rem; white-space: nowrap; }
.history, .demo { margin-top: 22px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.section-head-top { margin-bottom: 8px; }
.section-head-top .title { margin: 0; }
.section-text { color: var(--muted); font-size: var(--fs-s); margin: 4px 0; }
.list { list-style: none; margin: 0; padding: 0; }
.day { font-size: 0.75rem; color: var(--muted); font-weight: 700; padding: 16px 0 4px; text-transform: none; letter-spacing: 0.02em; }
.row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer;
}
.list > .row:last-child { border-bottom: 0; }
.row-glyph {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 0.9375rem; color: #fff; background: var(--ok);
}
.row-glyph.is-reject { background: var(--neutral-bg); color: var(--ink); }
.row-glyph.is-error { background: var(--warn-bg); color: var(--warn); }
.row-glyph.is-transfer { background: var(--info); color: #fff; }
.row-glyph.is-demo { background: var(--brand-soft); color: var(--brand); font-size: 0.875rem; }
.row-glyph.is-person { background: var(--brand-soft); color: var(--brand); font-size: 0.8125rem; border-radius: 50%; }
.row-main { min-width: 0; }
.row-title { font-weight: 700; }
.row-sub { font-size: var(--fs-s); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-time { font-size: var(--fs-s); color: var(--muted); font-variant-numeric: tabular-nums; }
#userList .row-sub { white-space: normal; }
#userList .row { align-items: start; }
.chip-status {
  font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--ok-bg); color: var(--ok);
}
.chip-status.is-pending { background: var(--warn-bg); color: var(--warn); }
.chip-status.is-disabled { background: var(--neutral-bg); color: var(--muted); }
.demo-qr-btn { width: 100%; margin-top: 12px; }

/* ---------- Κάμερα ---------- */
.screen-scan { position: fixed; inset: 0; z-index: 50; max-width: none; padding: 0; background: #000; }
.screen-scan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder {
  position: absolute; left: 50%; top: 44%; width: min(70vw, 70vh, 340px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 28px;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.55);
  border: 3px solid rgba(255, 255, 255, 0.95); transition: border-color 150ms ease;
}
.viewfinder.is-hit { border-color: #4ADE80; }
.scan-hint {
  position: absolute; left: 0; right: 0; top: calc(44% + min(35vw, 35vh, 170px) + 22px);
  margin: 0; text-align: center; color: #fff; font-weight: 600; padding: 0 var(--pad);
}
.scan-bar { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-b) + 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 16px; }
.scan-bar .btn { min-width: 0; padding-left: 18px; padding-right: 18px; }
.driver-alt { display: flex; justify-content: center; gap: 22px; margin: -6px 0 14px; }

/* ---------- Δελτίο ---------- */
.back {
  align-self: flex-start; border: 0; background: none; padding: 8px 0; margin: -8px 0 10px;
  color: var(--muted); font-weight: 600; cursor: pointer;
}
.back::before { content: "‹ "; }
.note-kicker { margin: 0; color: var(--muted); font-size: var(--fs-s); font-weight: 600; }
.note-mark {
  margin: 2px 0 12px; font-size: var(--fs-xl); font-weight: 800; line-height: 1.05;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.note-status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9375rem;
  padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--neutral-bg);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.note-status.is-go { background: var(--ok-bg); color: var(--ok); }
.note-status.is-go .dot { background: var(--ok); }
.note-status.is-wait { background: var(--warn-bg); color: var(--warn); }
.note-status.is-wait .dot { background: var(--warn); }
.note-status.is-stop { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.note-status.is-stop .dot { background: var(--danger); }
.note-status.is-loading .dot { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.note-warning {
  margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-s);
  background: var(--warn-bg); color: var(--warn); font-size: var(--fs-s); font-weight: 500;
}
.note-card { margin-top: 16px; }
.note-card:has(.facts:empty):has(.timeline:empty) { display: none; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: var(--fs-s); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.timeline { list-style: none; margin: 14px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); font-size: var(--fs-s); }
.timeline:empty { display: none; }
.timeline li { padding: 4px 0; color: var(--muted); }
.timeline strong { color: var(--ink); font-weight: 700; }
.actions {
  position: sticky; bottom: 0; display: grid; gap: 8px;
  margin: auto calc(-1 * var(--pad)) 0;
  padding: 28px var(--pad) calc(var(--safe-b) + 16px);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 30%);
}

/* ---------- Σφραγίδα ---------- */
.screen-result { text-align: center; }
.stamp {
  align-self: center; display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 40px auto 8px; padding: 18px clamp(16px, 5vw, 28px) 16px; max-width: calc(100% - 24px);
  color: var(--stamp); border: 5px solid currentColor; border-radius: 16px;
  outline: 2px solid currentColor; outline-offset: 5px; transform: rotate(-5deg);
  animation: stamp 260ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.stamp.is-reject { color: var(--ink); }
.stamp.is-transfer { color: var(--info); }
.stamp-word { font-size: clamp(1.5rem, 8vw, 2.25rem); font-weight: 800; letter-spacing: 0.06em; line-height: 1; white-space: nowrap; }
.stamp-date { font-size: var(--fs-b); font-weight: 700; font-variant-numeric: tabular-nums; }
.stamp-by { font-size: var(--fs-s); font-weight: 600; }
@keyframes stamp { from { transform: rotate(-5deg) scale(1.35); opacity: 0; } to { transform: rotate(-5deg) scale(1); opacity: 1; } }
.screen-result .facts { text-align: left; max-width: 360px; margin: 30px auto 0; }
.failure { text-align: left; }
.failure-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.failure-list li { background: var(--surface); box-shadow: var(--shadow-2); border-radius: var(--r-m); padding: 16px; }
.failure-code { font-size: var(--fs-s); color: var(--muted); font-weight: 700; }
.failure-msg { font-weight: 700; margin: 2px 0 0; }
.failure-hint { color: var(--muted); font-size: var(--fs-s); margin: 6px 0 0; }

/* ---------- Ρυθμίσεις ---------- */
.settings-card { display: grid; gap: 14px; margin-bottom: 16px; }
.settings-card > .btn { justify-self: start; }
.logo-preview {
  display: grid; place-items: center; min-height: 120px; padding: 16px;
  border-radius: var(--r-s); background: #fff; border: 1px dashed var(--line);
}
.logo-preview img { max-height: 96px; max-width: 100%; object-fit: contain; }
.logo-preview span { color: #5E6672; font-size: var(--fs-s); }
.check-lines { list-style: none; margin: 0; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface-2); font-size: var(--fs-s); display: grid; gap: 6px; overflow-wrap: anywhere; }
.mobile-link { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: var(--r-s); background: var(--brand-soft); }
.mobile-link-main { display: grid; gap: 8px; min-width: 0; }
.mobile-url { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .mobile-link { grid-template-columns: minmax(0, 1fr); }
  .mobile-link > .invite-qr { justify-self: center; width: min(192px, 100%); }
  .mobile-link .row-actions { flex-wrap: wrap; }
}

/* ---------- Φύλλα ---------- */
.sheet {
  width: 100%; max-width: 560px; margin: auto auto 0; max-height: 92vh; overflow-y: auto;
  padding: 24px var(--pad) calc(var(--safe-b) + 20px);
  border: 0; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--surface); color: var(--ink);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
}
@media (min-width: 700px) { .sheet { margin: auto; border-radius: var(--r-l); } }
.sheet::backdrop { background: rgba(10, 12, 16, 0.48); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet-body { display: grid; gap: 14px; }
.sheet-kicker { margin: 0 0 -8px; color: var(--muted); font-size: var(--fs-s); font-weight: 600; }
.sheet-text { margin: 0; color: var(--muted); font-size: var(--fs-s); }
.sheet-close { width: 100%; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 4px; }
.menu { display: grid; border-top: 1px solid var(--line); margin-top: 4px; }
.menu-item { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 15px 2px; font-weight: 600; cursor: pointer; }
.menu-item-danger { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 8px 12px; font-size: var(--fs-s); font-weight: 600; cursor: pointer; }
.invite { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; }
.invite-qr { width: 132px; aspect-ratio: 1; background: #fff; border-radius: var(--r-s); padding: 6px; box-shadow: var(--shadow-1); }
.invite-qr svg { display: block; width: 100%; height: 100%; }
#batchReloadQr { width: min(224px, 100%); justify-self: center; }
#batchReloadDocuments { overflow-wrap: anywhere; }
.invite-facts { margin: 0; grid-template-columns: 1fr; gap: 2px; }
.invite-facts dd { margin-bottom: 8px; font-size: var(--fs-b); }
.invite-code { font-size: var(--fs-l) !important; font-weight: 800 !important; letter-spacing: 0.08em; }
#usTitle:focus { outline: none; }

/* ---------- Δοκιμαστικά QR ---------- */
.qr-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.qr-card { background: var(--surface); box-shadow: var(--shadow-2); border-radius: var(--r-m); padding: 16px; display: grid; gap: 10px; }
.qr-card .qr { background: #fff; aspect-ratio: 1; border-radius: 8px; }
.qr-card .qr svg { display: block; width: 100%; height: 100%; }
.qr-card h2 { margin: 0; font-size: var(--fs-b); font-weight: 700; }
.qr-card p { margin: 0; color: var(--muted); font-size: var(--fs-s); }

/* ---------- Μηνύματα ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--safe-t) + 78px); z-index: 60;
  transform: translate(-50%, -12px); opacity: 0; pointer-events: none;
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--on-ink); font-size: var(--fs-s); font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); transition: opacity 180ms ease, transform 180ms ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 900px) {
  .brand-logo { height: 52px; }
}
/* Μειωμένη κίνηση: σταματούν οι κινήσεις της εφαρμογής, ΟΧΙ το intro (αλλιώς έμενε μαύρη οθόνη). */
@media (prefers-reduced-motion: reduce) {
  *:not(.splash):not(.splash *), *:not(.splash *)::before, *:not(.splash *)::after { animation: none !important; transition: none !important; }
}

/* ---------- Κάτω μπάρα καρτελών ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px 8px calc(var(--safe-b) + 6px);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--line);
}
body[data-screen="home"] .tabbar,
body[data-screen="pending"] .tabbar,
body[data-screen="history"] .tabbar { display: grid; }
.screen-tab { padding-bottom: calc(var(--safe-b) + 96px); }
.tab {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px;
  border: 0; background: none; color: var(--muted); font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.tab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-active { color: var(--brand); }
.badge {
  position: absolute; top: 0; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 0.75rem; line-height: 20px; text-align: center;
}
@media (min-width: 900px) {
  .tabbar { left: 50%; right: auto; bottom: 16px; width: 420px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-2); padding-bottom: 6px; }
}

/* ---------- Εκκρεμότητες ---------- */
.group { margin-top: 18px; }
.group-head { display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; font-size: var(--fs-s); font-weight: 700; color: var(--muted); text-transform: none; }
.group-head .dot { width: 10px; height: 10px; }
.group .card { padding: 4px 16px; }
.dot.is-go { background: var(--ok); }
.dot.is-wait { background: #D99A1E; }
.dot.is-info { background: var(--info); }
.dot.is-stop { background: var(--danger); }
.empty-card { margin-top: 18px; text-align: center; }
.empty-title { margin: 0 0 4px; font-weight: 700; font-size: var(--fs-m); }
.done-box { margin-top: 18px; }
.done-box summary { cursor: pointer; list-style: none; }
.done-box summary::-webkit-details-marker { display: none; }
.done-box summary::after { content: " ›"; color: var(--muted); }
.done-box[open] summary::after { content: " ⌄"; }
.note-hide { margin: 14px 4px 0; font-size: var(--fs-s); color: var(--muted); }

/* ---------- Όλες οι ενέργειες ---------- */
.action-list { display: grid; gap: 8px; }
.action-item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; text-align: left;
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.action-item:not(:disabled):active { background: var(--surface-2); }
.action-item:disabled { cursor: not-allowed; opacity: 0.55; background: var(--surface-2); }
.action-title { font-weight: 700; }
.action-role { grid-row: 1; grid-column: 2; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--neutral-bg); color: var(--muted); }
.action-desc { grid-column: 1 / -1; font-size: var(--fs-s); color: var(--muted); }
.action-item.is-danger .action-title { color: var(--danger); }
.action-item.is-main { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }

/* ---------- Παράδοση ---------- */
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); }
.pack { display: grid; gap: 8px; }
.pack-rows { display: grid; gap: 8px; }
.pack-row { display: grid; grid-template-columns: 1fr 84px 40px; gap: 8px; align-items: center; }
.pack-row .pack-title { grid-column: 1 / 3; }
.pack-row select, .pack-row input {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r-s);
  background: var(--surface-2); color: var(--ink); padding: 0 12px; font-size: 1rem;
}
.pack-del { border: 0; background: none; color: var(--muted); font-size: 1.25rem; cursor: pointer; min-height: 46px; }

/* ---------- Τεχνικές λεπτομέρειες σφάλματος ---------- */
.tech { margin-top: 12px; font-size: var(--fs-s); color: var(--muted); }
.tech summary { cursor: pointer; font-weight: 600; }
.tech pre {
  margin: 8px 0 0; padding: 12px; max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-s); font-size: 0.75rem; color: var(--ink);
}
.stamp.is-neutral { color: var(--ink); }
.stamp-word { white-space: normal !important; text-align: center; overflow-wrap: anywhere; max-width: 78vw; font-size: clamp(1.35rem, 7vw, 2.25rem) !important; line-height: 1.05; }

/* ================= Νέα αρχική ================= */
.hello { margin: 4px 2px 18px; }
.hello-day { margin: 0; font-size: var(--fs-s); font-weight: 600; color: var(--muted); text-transform: capitalize; }
.hello-title { margin: 2px 0 10px; font-size: 2rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.hello-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); font-size: var(--fs-s); font-weight: 600;
}
.hchip svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hchip.is-plate { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; padding-left: 6px; }
.hchip.is-plate b {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px;
  background: #1F4BB8; color: #fff; font-size: 0.625rem; letter-spacing: 0;
}

.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 44%; align-items: center;
  width: 100%; min-height: 216px; padding: 22px 18px 22px 22px; border: 0; border-radius: var(--r-l); cursor: pointer; text-align: left;
  color: var(--on-brand);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #fff 18%, transparent) 0%, transparent 55%),
    linear-gradient(140deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 72%, #000) 100%);
  box-shadow: var(--shadow-brand);
  transition: transform 140ms ease;
}
.hero:active { transform: scale(0.985); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: color-mix(in srgb, #fff 9%, transparent);
}
.hero::before { width: 220px; height: 220px; right: -70px; bottom: -110px; }
.hero::after { width: 120px; height: 120px; left: -40px; top: -60px; }
.hero-text { position: relative; z-index: 1; display: grid; gap: 4px; }
.hero-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.85; }
.hero-title { font-size: 1.625rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.hero-sub { font-size: 0.875rem; opacity: 0.92; line-height: 1.35; }
.hero-cta {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 10px 14px; border-radius: 999px; background: #fff; color: var(--brand); font-weight: 700; font-size: 0.9375rem; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.hero-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.hero-art { position: relative; z-index: 1; align-self: end; margin-right: -6px; }
.hero-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18)); }
.art-brand { fill: var(--brand); }
.art-brand-dark { fill: color-mix(in srgb, var(--brand) 70%, #000); }
.art-brand-soft { fill: color-mix(in srgb, var(--brand) 14%, #fff); }
.art-stroke { fill: none; stroke: var(--brand); stroke-linecap: round; stroke-linejoin: round; }
.art-truck .wheel { animation: wheel 1.6s linear infinite; transform-box: fill-box; transform-origin: center; }
.art-float { animation: float 3.2s ease-in-out infinite; }
@keyframes wheel { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-5px); } }
.art-beam { animation: beam 2s ease-in-out infinite; }
@keyframes beam { 0%, 100% { transform: translateY(-26px); opacity: 0.2; } 50% { transform: translateY(26px); opacity: 1; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat {
  display: grid; justify-items: start; gap: 2px; padding: 14px 14px 12px; border: 0; border-radius: var(--r-m);
  background: var(--surface); box-shadow: var(--shadow-2); color: var(--ink); cursor: pointer; text-align: left;
}
.stat:active { transform: scale(0.98); }
.stat-num { font-size: 1.75rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
#statPending .stat-num { color: var(--brand); }
#statTransit .stat-num { color: var(--info); }
#statToday .stat-num { color: var(--ok); }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.quick-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 12px;
  border: 0; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
  color: var(--ink); font-weight: 600; font-size: 0.9375rem; cursor: pointer; white-space: nowrap;
}
.quick-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.role-card { margin-top: 16px; }
.role-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: st; }
.role-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; counter-increment: st; }
.role-steps li::before {
  content: counter(st); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand); font-weight: 800;
}
.role-steps b { display: block; font-weight: 700; }
.role-steps span { display: block; color: var(--muted); font-size: var(--fs-s); }

/* Χρήστες: θέση και όχημα */
.vehicle-box { display: grid; gap: 12px; padding: 14px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); }
.vehicle-fields { display: grid; gap: 12px; }
.vehicle-fields select, .field select { width: 100%; }
.plate-input { text-transform: uppercase; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.job-help { margin-top: -6px; }
.ujob { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--neutral-bg); color: var(--muted); font-size: 0.75rem; font-weight: 700; vertical-align: 1px; }
.actions-note { margin: 4px 2px 0; font-size: var(--fs-s); color: var(--muted); }

@media (max-width: 360px) {
  .hero { grid-template-columns: 1fr 38%; }
  .hero-title { font-size: 1.4rem; }
  .stat-num { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .art-truck .wheel, .art-float, .art-beam { animation: none; } }
.note-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 4px 0; font-size: var(--fs-s); }
.note-links .link-btn { color: var(--muted); font-size: var(--fs-s); }
.note-links .note-hide { margin: 0; }
.note-tech { margin: 8px 4px 0; }
.action-item.is-soft { opacity: 0.78; background: var(--surface-2); border-style: dashed; }
.action-item.is-soft .action-desc { color: var(--warn); }

/* ================= Φορτώσεις ================= */
body[data-screen="loads"] .screen[data-for="loads"] { display: block; }
.loads-grid { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 900px) { .loads-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } .load-box { position: sticky; top: 90px; } }
.reg-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.reg-tools select { min-height: 40px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface-2); color: var(--ink); padding: 0 10px; font: inherit; font-size: 0.9375rem; }
.reg-drivers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; }
.reg-drivers > span { font-size: 0.9375rem; font-weight: 600; color: var(--ink); margin-right: 2px; }
.reg-drivers .chip { min-height: 36px; padding: 6px 12px; }
.reg-drivers .chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.reg-count { font-size: var(--fs-s); color: var(--muted); font-weight: 600; }
.reg-all { margin: 8px 0 4px; }
.reg-list .row { grid-template-columns: 28px 1fr auto; cursor: pointer; }
.reg-list .row input { width: 22px; height: 22px; accent-color: var(--brand); }
.reg-list .row.is-off { opacity: 0.55; cursor: not-allowed; }
.reg-amount { font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-s); }
.load-summary { margin: 10px 0 12px; font-weight: 600; }
.loads-title { margin-top: 22px; }
.load-chip { font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--neutral-bg); color: var(--muted); white-space: nowrap; }
.load-chip.is-started { background: color-mix(in srgb, var(--info) 14%, var(--surface)); color: var(--info); }
.load-chip.is-done { background: var(--ok-bg); color: var(--ok); }
.load-chip.is-cancelled { text-decoration: line-through; }

.admin-card {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; width: 100%;
  margin-top: 12px; padding: 14px 16px; border: 0; border-radius: var(--r-m); cursor: pointer; text-align: left;
  background: var(--surface); box-shadow: var(--shadow-2); color: var(--ink);
}
.admin-card-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); }
.admin-card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.admin-card-text b { display: block; font-weight: 800; }
.admin-card-text span { display: block; font-size: var(--fs-s); color: var(--muted); }
.admin-card-go { font-size: 1.5rem; color: var(--muted); }

.load-card {
  margin: 0 0 14px; padding: 18px; border-radius: var(--r-l); color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, #2B3A67 0%, #141A33 60%, #0B0F22 100%);
  box-shadow: 0 16px 40px rgba(11, 15, 34, 0.35);
}
.load-card-head { display: flex; gap: 12px; align-items: center; }
.load-truck { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); }
.load-truck svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.load-kicker { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.75; }
.load-title { margin: 2px 0 0; font-size: 1.375rem; font-weight: 800; }
.load-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.load-notes li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.08); cursor: pointer; font-size: 0.9375rem;
}
.load-notes li small { display: block; opacity: 0.7; font-size: 0.75rem; }
.load-notes .ln-state { font-weight: 800; }
.load-notes .ln-state.ok { color: #4ADE80; }
.load-notes .ln-state.err { color: #FCA5A5; }
/* «Αφήνω»: ο οδηγός δεν φορτώνει την παραγγελία (επιστρέφει στο γραφείο) */
.load-notes .ln-leave {
  font: inherit; font-size: 0.8125rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: inherit; min-height: 34px;
}
.load-notes .ln-leave.is-out { background: #fff; color: #141A33; border-color: #fff; }
.load-notes li.is-left > div { opacity: 0.55; text-decoration: line-through; text-decoration-thickness: 1px; }
.load-notes li.is-left > div small { text-decoration: none; }
.load-help { margin: 12px 0; font-size: 0.875rem; opacity: 0.85; }
.load-card .btn-primary { background: #fff; color: #141A33; box-shadow: none; }
.reg-list .row input { pointer-events: none; }

/* ================= Οθόνη εκκίνησης: ελικόπτερα στο ηλιοβασίλεμα ================= */
/* Το χρονοδιάγραμμα το οδηγεί η JS με κλάσεις στο .splash (ph-in, ph-title, ph-tag, ph-shine),
   ώστε η σκηνή του canvas και τα κείμενα να είναι πάντα συγχρονισμένα. */
.splash { position: fixed; inset: 0; z-index: 200; overflow: hidden; background: #000; color: #fff; cursor: pointer; }
/* Κλείσιμο: ήπιο ζουμ προς τα μέσα και σβήσιμο (μόνο transform/opacity: ομαλό) */
.splash.is-out { animation: cine-out .6s cubic-bezier(.55, 0, .75, .2) forwards; pointer-events: none; }
@keyframes cine-out { to { opacity: 0; transform: scale(1.07); } }
.cine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cine-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
/* Με WebGL η βινιέτα γίνεται μέσα στη σκηνή */
.splash.is-gl .cine-vignette { display: none; }
/* Μπάρες σινεμά που κλείνουν λίγο στην αρχή */
.cine-bar { position: absolute; left: 0; right: 0; z-index: 4; height: 11vh; background: #000; pointer-events: none; transition: height 1.1s cubic-bezier(.6, 0, .2, 1); }
.cine-bar.top { top: 0; } .cine-bar.bottom { bottom: 0; }
.splash.ph-in .cine-bar { height: 6vh; }

/* Επωνυμία: τα γράμματα «προσγειώνονται» από ψηλά ένα-ένα, μετά περνά μια λάμψη */
.cine-title { position: absolute; left: 0; right: 0; top: 63%; z-index: 3; display: grid; justify-items: center; pointer-events: none; }
.sp-word {
  position: relative; margin: 0; display: flex; white-space: nowrap; max-width: 94vw;
  font-size: clamp(3.4rem, 18vw, 9rem); font-weight: 800; letter-spacing: .03em; line-height: .95;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)) drop-shadow(0 0 26px rgba(255, 140, 70, .35));
}
.sp-word span {
  display: inline-block; text-align: center; color: transparent;
  background-image: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%), linear-gradient(180deg, #FFFFFF 0%, #FFF2E2 40%, #F7B47A 74%, #DD7A40 100%);
  background-size: 320% 100%, 100% 100%; background-position: 170% 0, 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  opacity: 0; transform: translateY(-.6em) scale(1.2);
  transition: opacity .3s ease calc(var(--i, 0) * 55ms), transform .75s cubic-bezier(.16, 1, .3, 1) calc(var(--i, 0) * 55ms);
}
.splash.ph-title .sp-word span { opacity: 1; transform: none; }
.splash.ph-shine .sp-word span { animation: sp-shine 1s ease-in-out calc(var(--i, 0) * 45ms) forwards; }
@keyframes sp-shine { from { background-position: 170% 0, 0 0; } to { background-position: -70% 0, 0 0; } }
/* Τέλος: η επωνυμία μένει μόνη, μεγαλώνει ήπια και περνά μια δεύτερη λάμψη */
.cine-title { transition: transform 1.8s cubic-bezier(.2, .8, .2, 1); }
.splash.ph-hero .cine-title { transform: scale(1.07); }
.splash.ph-hero .sp-word span { animation: sp-shine2 1.1s ease-in-out calc(var(--i, 0) * 45ms) forwards; }
@keyframes sp-shine2 { from { background-position: 170% 0, 0 0; } to { background-position: -70% 0, 0 0; } }
.sp-word .sp-gap { width: .32em; min-width: .32em; }
.sp-tag { position: relative; margin-top: 14px; padding-bottom: 10px; overflow: hidden; }
.sp-tag span {
  display: block; font-size: clamp(.72rem, 3.1vw, 1.05rem); font-weight: 800; letter-spacing: .16em; color: #FFF6EC; white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .75), 0 0 16px rgba(255, 150, 80, .45);
  opacity: 0; transform: translateY(100%);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .9, .3, 1), letter-spacing 1s cubic-bezier(.2, .9, .3, 1);
}
.splash.ph-tag .sp-tag span { opacity: 1; transform: none; letter-spacing: .3em; }
.sp-tag i { position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, #FFB45C, #fff, #FFB45C, transparent); box-shadow: 0 0 14px #FF9A4A; transition: width .8s ease .15s; }
.splash.ph-tag .sp-tag i { width: 112%; }


/* ================= Αναζήτηση και φίλτρα ================= */
.search {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; margin: 4px 0 6px;
  border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
}
.search:focus-within { box-shadow: 0 0 0 2px var(--brand); }
.search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 1rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.filters .search { flex: 1 1 260px; margin: 0; }
.seg-filter { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--neutral-bg); }
.seg-btn { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font: inherit; font-size: 0.875rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
/* Φορτηγά: μία κάρτα ανά χρήστη */
.truck-card { margin-bottom: 14px; padding: 14px 14px 6px; }
/* Υπογραφή παραλήπτη: λευκή σελίδα σε όλη την οθόνη (πάντα λευκή, και σε σκούρο θέμα) */
.sign-page { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: #111; }
.sign-page::backdrop { background: #fff; }
.sign-wrap { display: flex; flex-direction: column; gap: 10px; height: 100%; box-sizing: border-box;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px calc(env(safe-area-inset-bottom, 0px) + 14px); }
.sign-head { display: grid; gap: 2px; text-align: center; }
.sign-head small { color: #666; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sign-head b { font-size: 1.25rem; line-height: 1.25; }
.sign-head span { color: #555; font-size: 0.9rem; }
.sign-pad { position: relative; flex: 1 1 auto; min-height: 180px; border: 2px dashed #b9b9b9; border-radius: 14px; background: #fff; overflow: hidden; }
.sign-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sign-hint { position: absolute; left: 0; right: 0; bottom: 22%; text-align: center; color: #aaa; font-size: 1rem; pointer-events: none; }
.sign-hint::before { content: ''; display: block; margin: 0 12% 8px; border-top: 2px solid #ddd; }
.sign-name { margin: 0; }
.sign-name .field-label { color: #555; }
.sign-name input { background: #fff; color: #111; border-color: #ccc; }
.sign-page .error { margin: 0; min-height: 0; }
.sign-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sign-actions #sgOk { grid-column: 1 / -1; grid-row: 1; }
.sign-actions .btn-quiet { background: #f1f1f1; color: #111; }
.sign-actions #phOk { grid-column: 1 / -1; grid-row: 1; }
/* Φωτογραφία δέματος (παράδοση χωρίς παραλήπτη) */
.photo-pad { position: relative; flex: 1 1 auto; min-height: 200px; border: 2px dashed #b9b9b9; border-radius: 14px; background: #f6f6f6; overflow: hidden; display: grid; place-items: center; }
.photo-pad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #111; }
.photo-take { display: grid; justify-items: center; gap: 10px; max-width: 260px; padding: 18px; border: 0; background: none; color: #333; font: inherit; font-size: 1rem; font-weight: 700; text-align: center; cursor: pointer; }
.photo-take svg { width: 64px; height: 64px; fill: none; stroke: #333; stroke-width: 1.6; stroke-linejoin: round; }
.sign-page .photo-note { margin: 0; color: #555; text-align: center; }
.sign-card img { display: block; width: 100%; max-width: 520px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 8px 0; }

/* Εκκρεμότητες: πρόοδος ελέγχου στην ΑΑΔΕ */
.pend-check { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.pc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pc-line b { font-size: .92rem; }
.pc-line small { color: var(--muted); font-size: .8rem; }
.pc-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .8rem; font-weight: 900; color: #fff; flex: none; }
.pc-bar { height: 6px; border-radius: 999px; background: var(--neutral-bg); overflow: hidden; }
.pc-bar i { display: block; height: 100%; border-radius: inherit; transition: width .6s ease; }
.pend-check.is-running .pc-icon { border: 3px solid color-mix(in srgb, var(--info) 30%, transparent); border-top-color: var(--info); animation: pc-spin .8s linear infinite; }
.pend-check.is-running .pc-bar i { background: var(--info); background-image: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); background-size: 60px 100%; animation: pc-shine 1.2s linear infinite; }
.pend-check.is-done { box-shadow: var(--shadow-1), 0 0 0 1px color-mix(in srgb, var(--ok) 45%, var(--line)); }
.pend-check.is-done .pc-icon { background: var(--ok); }
.pend-check.is-done b { color: var(--ok); }
.pend-check.is-done .pc-bar i { background: var(--ok); }
.pend-check.is-limited { box-shadow: var(--shadow-1), 0 0 0 1px color-mix(in srgb, var(--warn) 55%, var(--line)); }
.pend-check.is-limited .pc-icon { background: var(--warn); }
.pend-check.is-limited .pc-bar i { background: var(--warn); }
@keyframes pc-spin { to { transform: rotate(360deg); } }
@keyframes pc-shine { from { background-position: -60px 0; } to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .pend-check .pc-icon, .pend-check .pc-bar i { animation: none !important; } }

/* Αναμονές ΑΑΔΕ */
.aq-status { display: grid; gap: 4px; margin-bottom: 18px; border-left: 5px solid var(--muted); }
.aq-status b { font-size: 1.05rem; }
.aq-status small { color: var(--muted); }
.aq-status.is-ok { border-left-color: var(--ok); }
.aq-status.is-ok b { color: var(--ok); }
.aq-status.is-wait { border-left-color: var(--warn); }
.aq-status.is-bad { border-left-color: var(--danger); }
.row.aq-none { cursor: default; }
#aadeqList, #aadeqDone { margin-bottom: 18px; }
.truck-pick { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.row.has-pick { grid-template-columns: 22px 36px 1fr auto; }
.truck-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.truck-all { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-s); font-weight: 700; cursor: pointer; }
.truck-reload { width: auto; }
.truck-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.truck-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; cursor: pointer; border-radius: 10px; padding: 4px; margin-inline: -4px; }
.truck-head:hover { background: var(--surface-2); }
.truck-head:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.truck-caret { flex: none; width: 1.2em; text-align: center; color: var(--muted); font-size: 1.1rem; }
.truck-count { white-space: normal; text-align: right; }
.truck-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.truck-who { display: grid; flex: 1; min-width: 0; }
.truck-who b { font-size: 1.05rem; }
.truck-who small { color: var(--muted); font-size: var(--fs-s); }
.truck-count { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-size: var(--fs-s); font-weight: 700; white-space: nowrap; }
.truck-group { margin: 12px 0 4px; }
.truck-none { margin: 0 0 10px; color: var(--muted); font-size: var(--fs-s); }
.no-match { padding: 18px 4px; color: var(--muted); font-size: var(--fs-s); text-align: center; }

/* ================= Κίνηση και αλληλεπίδραση ================= */
body[data-screen] .screen { animation: screen-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.row { transition: background-color 0.15s ease, transform 0.15s ease; border-radius: 12px; }
.stat, .quick-btn, .admin-card, .card, .action-item, .hero { transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease; }
@media (hover: hover) {
  .row[role="button"]:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
  .stat:hover, .quick-btn:hover, .admin-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 24, 40, 0.06), 0 16px 34px rgba(16, 24, 40, 0.12); }
  .hero:hover { transform: translateY(-2px); box-shadow: 0 22px 46px color-mix(in srgb, var(--brand) 40%, transparent); }
  .hero:hover .hero-cta { transform: translateX(3px); }
  .action-item:not(:disabled):hover { border-color: var(--brand); }
}
.hero-cta { transition: transform 0.18s ease; }
.stat-num.is-bump { animation: bump 0.45s ease; }
@keyframes bump { 40% { transform: scale(1.18); } }

/* ================= Υπολογιστής: όλη η οθόνη ================= */
.sidenav { display: none; }
@media (min-width: 1000px) {
  :root { --side: 256px; }
  .topbar { padding: calc(var(--safe-t) + 7px) 28px 7px; }
  .brand { min-height: 38px; }
  .brand-logo { height: 38px; }
  body[data-screen="home"] .sidenav, body[data-screen="pending"] .sidenav, body[data-screen="history"] .sidenav,
  body[data-screen="loads"] .sidenav, body[data-screen="users"] .sidenav, body[data-screen="settings"] .sidenav, body[data-screen="trucks"] .sidenav, body[data-screen="vehicles"] .sidenav, body[data-screen="aadeq"] .sidenav,
  body[data-screen="note"] .sidenav, body[data-screen="result"] .sidenav, body[data-screen="demoqr"] .sidenav {
    display: flex;
  }
  .sidenav {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 15; width: var(--side); flex-direction: column; gap: 4px;
    padding: 72px 14px 18px; background: var(--surface); border-right: 1px solid var(--line);
  }
  .snav {
    position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 14px;
    border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .snav svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .snav:hover { background: var(--surface-2); color: var(--ink); }
  .snav.is-active { background: var(--brand-soft); color: var(--brand); }
  .snav.is-active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
  .snav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 0.75rem; line-height: 22px; text-align: center; }
  .snav-label { margin: 18px 14px 4px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
  .snav-foot { margin-top: auto; display: grid; gap: 10px; }
  .snav-scan {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(140deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000)); color: var(--on-brand); font: inherit; font-weight: 800;
    box-shadow: var(--shadow-brand);
  }
  .snav-scan svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .snav-env { margin: 0; font-size: 0.75rem; color: var(--muted); text-align: center; }

  /* Περιεχόμενο δίπλα στο μενού, σε όλο το πλάτος */
  body[data-screen="home"] .screen, body[data-screen="pending"] .screen, body[data-screen="history"] .screen,
  body[data-screen="loads"] .screen, body[data-screen="users"] .screen, body[data-screen="settings"] .screen, body[data-screen="trucks"] .screen, body[data-screen="vehicles"] .screen, body[data-screen="aadeq"] .screen,
  body[data-screen="note"] .screen, body[data-screen="result"] .screen, body[data-screen="demoqr"] .screen {
    max-width: none; margin: 0 0 0 var(--side); padding: 30px clamp(28px, 3vw, 56px) 48px;
  }
  body[data-screen="home"] .devbar, body[data-screen="pending"] .devbar, body[data-screen="history"] .devbar,
  body[data-screen="loads"] .devbar, body[data-screen="users"] .devbar, body[data-screen="settings"] .devbar, body[data-screen="trucks"] .devbar, body[data-screen="vehicles"] .devbar, body[data-screen="aadeq"] .devbar,
  body[data-screen="note"] .devbar, body[data-screen="result"] .devbar { margin-left: var(--side); }
  .tabbar, body[data-screen="home"] .tabbar, body[data-screen="pending"] .tabbar, body[data-screen="history"] .tabbar { display: none !important; }
  .screen-tab { padding-bottom: 48px; }
  .back { display: none; }

  /* Αρχική στον υπολογιστή: χωρίς μεγάλη κάρτα σάρωσης, με ζωντανές λίστες */
  .screen-home > .hero, .screen-home > .quick { display: none !important; }
  .desk-only { display: block; }
  form.desk-only { display: flex; }
  .home-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
  .home-main, .home-side { display: grid; gap: 20px; align-content: start; }
  .home-side > * { margin: 0 !important; }
  .screen-home > .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
  .screen-home .stat { padding: 20px 22px; }
  .screen-home .stat-num { font-size: 2.4rem; }
  .screen-home .stat-label { font-size: 0.875rem; }
  .hello-title { font-size: 2.4rem; }
  .screen-home > .load-card { margin-top: 16px; }

  /* Εκκρεμότητες σε στήλες */
  #pendingGroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 0 22px; align-items: start; }
  .screen[data-for="pending"] .search, .screen[data-for="history"] .filters { max-width: 720px; }
  .screen[data-for="history"] .card { max-width: 1100px; }

  /* Δελτίο: στοιχεία αριστερά, ενέργειες δεξιά */
  body[data-screen="note"] .screen[data-for="note"] {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 32px; align-content: start; min-height: 0;
  }
  .screen-note > * { grid-column: 1; max-width: 900px; }
  .screen-note > .actions {
    grid-column: 2; grid-row: 1 / span 12; align-self: start; position: sticky; top: 104px; margin: 0;
    display: grid; grid-template-columns: 1fr; gap: 10px; padding: 20px; border-radius: var(--r-l);
    background: var(--surface); box-shadow: var(--shadow-2);
  }
  .screen-note > .actions::before { content: "Ενέργειες"; font-weight: 800; font-size: var(--fs-m); margin-bottom: 4px; }
  .screen-result > * { max-width: 760px; width: 100%; margin-left: auto; margin-right: auto; }
  .screen-result .actions { position: static; background: none; margin-top: 24px; padding: 0; grid-template-columns: 1fr 1fr; }

  /* Ρυθμίσεις και χρήστες */
  .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .settings-grid > * { margin: 0 !important; }
  .screen[data-for="users"] .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 0 24px; }
  .screen-mid .lead, .screen-wide .lead { max-width: 80ch; }
  .sheet { max-width: 560px; }
}
@media (min-width: 1500px) {
  .screen-home > .hero { min-height: 380px; }
}

/* ================= Αρχική: στοιχεία μόνο για υπολογιστή ================= */
.desk-only { display: none; }
.home-cols, .home-main, .home-side { display: contents; }
@media (min-width: 1000px) {
  .home-cols { display: grid; }
  .home-main, .home-side { display: grid; }
}
.desk-open {
  align-items: center; gap: 12px; margin-top: 18px; padding: 10px 10px 10px 18px;
  border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--line);
}
.desk-open:focus-within { box-shadow: var(--shadow-2), 0 0 0 2px var(--brand); }
.desk-open svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.desk-open input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 1.05rem; padding: 10px 0; }
.desk-open .btn { min-height: 46px; padding: 0 20px; }
.desk-panel .section-head { margin-bottom: 6px; }
.desk-panel .link-btn { font-size: var(--fs-s); color: var(--brand); text-decoration: none; }

@media (min-width: 1000px) {
  .screen-home .desk-only { display: block; }
  .screen-home form.desk-only { display: flex; }
}

/* Επωνυμίες και πώληση/αγορά */
.registry-box { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.h3 { margin: 0; font-weight: 800; font-size: var(--fs-b); }
.note-mark.is-name { font-size: clamp(1.5rem, 6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.01em; }
.note-name-btn { margin: -6px 0 10px; font-size: var(--fs-s); color: var(--brand); text-decoration: none; justify-self: start; align-self: flex-start; }
.dir-tag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.6875rem; font-weight: 800; vertical-align: 1px; }
.dir-tag.is-sale { background: color-mix(in srgb, var(--info) 14%, var(--surface)); color: var(--info); }
.dir-tag.is-purchase { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); }

/* ================= Τοποθεσία και σχέδιο διαδρομής ================= */
body[data-screen="route"] .screen[data-for="route"] { display: flex; flex-direction: column; min-height: calc(100dvh - 57px - var(--safe-t)); padding-bottom: 0; }
/* Οδηγός: το «Φορτίο» είναι tab, με την κάτω μπάρα. Το κουμπί πλοήγησης μένει πάνω από αυτήν. */
body.is-driver[data-screen="route"] .tabbar { display: grid; }
body.is-driver #routeBack { display: none; }
body.is-driver .screen[data-for="route"] .route-actions { bottom: calc(var(--safe-b) + 64px); padding-bottom: 12px; }
body.is-driver[data-screen="route"] .screen[data-for="route"] { padding-bottom: calc(var(--safe-b) + 72px); }
.stop-link { width: auto !important; height: auto !important; padding: 7px 10px; border-radius: 9px; background: var(--neutral-bg) !important; color: var(--ink) !important; font: 800 .75rem/1 Commissioner, sans-serif !important; }
.stop-link.is-sent { color: var(--ok) !important; }
.gps-link-note { color: var(--warn); font-weight: 700; }
.stop-deliver { width: auto !important; height: auto !important; padding: 7px 10px; border-radius: 9px; background: var(--brand) !important; color: var(--on-brand) !important; font: 800 .75rem/1 Commissioner, sans-serif !important; }
.driver-scan { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 62px; margin: 4px 0 14px; border-radius: 18px; font-size: 1.1rem; font-weight: 800; box-shadow: var(--shadow-brand); }
.driver-scan svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Πλοήγηση μέσα στην εφαρμογή: χάρτης σε όλη την οθόνη και κάρτα επόμενης στάσης κάτω */
body[data-screen="nav"] .screen[data-for="nav"] { display: block; position: fixed; z-index: 20; left: 0; right: 0; top: calc(57px + var(--safe-t)); bottom: 0; max-width: none; margin: 0; padding: 0; overflow: hidden; }
.nav-map { position: absolute; inset: 0; }
.nav-map .tmap-mode, .nav-map .tmap-zoom [data-full] { display: none; }
.nav-recenter { position: absolute; z-index: 16; left: 12px; top: 12px; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--surface); color: var(--info); box-shadow: 0 4px 14px rgba(0,0,0,.2); font-size: 1.4rem; cursor: pointer; }
.nav-card { position: absolute; z-index: 18; left: 10px; right: 10px; bottom: calc(var(--safe-b) + 10px); max-width: 560px; margin: 0 auto; padding: 14px 16px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 12px 34px rgba(0,0,0,.28); }
.nav-kicker { margin: 0; font-size: .75rem; font-weight: 800; color: var(--muted); }
.nav-title { margin: 2px 0 2px; font-size: 1.05rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nav-sub { margin: 0; color: var(--muted); font-size: var(--fs-s); }
.nav-dist { margin: 6px 0 0; font-weight: 800; color: var(--info); font-size: var(--fs-s); }
.nav-dist:empty { display: none; }
.nav-card { max-height: 55%; overflow-y: auto; overscroll-behavior: contain; }
.nav-btns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.nav-btns .btn { justify-content: center; min-height: 42px; padding-left: 6px; padding-right: 6px; font-size: .875rem; }
.nav-btns > * { grid-column: span 2; }
.nav-btns #navParcels, .nav-btns #navDeliver { grid-column: span 3; }
.nav-btns #navMessage { grid-column: 1 / -1; }
.nav-pin-button { position: absolute; left: -22px; top: -50px; width: 44px; height: 54px; display: block; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.tmap-leaflet .nav-pin-button { left: -4px; top: -4px; }
.tmap-pin-wrap .nav-pin-button .pin { left: 4px; top: 4px; }
.nav-pin-button:focus-visible { outline: 3px solid var(--info); outline-offset: 4px; border-radius: 12px; }
.nav-parcel-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.nav-parcel { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-m); }
.nav-parcel.is-current { border-color: var(--info); }
.nav-parcel b, .nav-parcel p { overflow-wrap: anywhere; }
.nav-parcel p { margin: 5px 0; font-size: var(--fs-s); color: var(--muted); }
.nav-parcel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nav-parcel-actions .btn { min-height: 44px; flex: 1; }
.loc-card {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin-bottom: 14px; padding: 16px;
  border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px color-mix(in srgb, var(--info) 30%, transparent);
}
.loc-card b { display: block; font-weight: 800; }
.loc-card p { margin: 4px 0 10px; font-size: var(--fs-s); color: var(--muted); }
.loc-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: color-mix(in srgb, var(--info) 14%, var(--surface)); }
.loc-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--info); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.loc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.loc-install { margin-top: 20px; padding: 16px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); display: grid; gap: 10px; }
.load-card #myLoadRoute { display: flex; gap: 10px; }
.load-card #myLoadRoute svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.load-all { display: block; margin: 10px auto 0; color: rgba(255,255,255,.85); font-size: var(--fs-s); }
.load-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.load-stats span { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: 0.75rem; font-weight: 700; }

.route-loc { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 10px; padding: 10px 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); font-size: var(--fs-s); }
.route-loc .dot { width: 10px; height: 10px; }
.route-loc .link-btn { margin-left: auto; color: var(--brand); text-decoration: none; font-size: var(--fs-s); }
.route-tools { display: flex; gap: 18px; margin: 4px 2px 8px; font-size: var(--fs-s); }
.route-tools .link-btn { color: var(--brand); text-decoration: none; }
.route-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stop {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px;
  border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.stop.is-on { box-shadow: var(--shadow-2), 0 0 0 2px var(--brand); }
.stop.is-done { opacity: 0.55; cursor: default; }
.stop-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--line); font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums;
}
.stop.is-on .stop-num { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.stop-main b { display: block; font-weight: 700; }
.stop-main small { display: block; color: var(--muted); font-size: var(--fs-s); }
.stop-main .stop-addr-missing { color: var(--warn); font-weight: 700; }
.stop-tag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 800; background: var(--neutral-bg); color: var(--muted); }
.stop-tag.is-transit { background: color-mix(in srgb, var(--info) 14%, var(--surface)); color: var(--info); }
.stop-tag.is-done { background: var(--ok-bg); color: var(--ok); }
.stop-tag.is-failed { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.stop.is-return .stop-num { color: var(--danger); }
.stop-move { display: grid; gap: 4px; }
.stop-move button { width: 34px; height: 30px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--ink); font-size: 1rem; cursor: pointer; }
.stop-move button:disabled { opacity: 0.3; }
.route-actions { display: grid; gap: 8px; }
.route-summary { margin: 0; font-size: var(--fs-s); color: var(--muted); text-align: center; }
@media (min-width: 1000px) {
  .route-list { max-width: 860px; }
  body[data-screen="route"] .sidenav { display: flex; }
  body[data-screen="route"] .screen { max-width: none; margin: 0 0 0 var(--side); padding: 30px clamp(28px, 3vw, 56px) 48px; }
  .route-actions { position: static; background: none; max-width: 860px; margin-top: 20px; padding: 0; }
}

/* ================= Εντοπισμός οδηγών ================= */
body[data-screen="maps"] .screen[data-for="maps"] { display: block; }
.segmented-4 .seg { grid-template-columns: repeat(4, 1fr) !important; }
.segmented-4 .seg span { font-size: 0.8125rem; padding: 0 4px; text-align: center; line-height: 1.15; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto; margin-right: 8px; padding: 6px 12px; border: 0; border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); font: inherit; font-size: 0.8125rem; font-weight: 800; cursor: pointer;
}
.live-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: live 1.6s ease-out infinite; }
.live-pill.is-off { background: var(--warn-bg); color: var(--warn); }
.live-pill.is-off i { background: var(--warn); animation: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.track-card { display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin-bottom: 14px; padding: 16px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px color-mix(in srgb, var(--warn) 40%, transparent); }
.track-card b { display: block; font-weight: 800; }
.track-card p { margin: 4px 0 10px; font-size: var(--fs-s); color: var(--muted); }
.consent-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: var(--fs-s); color: var(--ink); }
.tracking-help { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
/* Κατάσταση GPS οδηγών από την εφαρμογή ABOVE. */
.tracking-admin summary { cursor: pointer; }
.tracking-admin[open] summary { margin-bottom: 10px; }
.tracking-driver { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.tracking-driver b { font-weight: 800; }
.tracking-driver small { display: block; color: var(--muted); font-size: var(--fs-s); }
.tracking-driver .field-help { grid-column: 1 / -1; margin: 0; }
.tracking-pill { align-self: start; padding: 3px 10px; border-radius: 999px; font-size: var(--fs-s); font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.tracking-pill.is-on { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); box-shadow: none; }
.tracking-pill.is-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); box-shadow: none; }
.consent-list b { font-weight: 800; }

.fleet-updated { font-size: var(--fs-s); color: var(--muted); }
.fleet-grid { display: grid; gap: 16px; margin-top: 8px; }
.fleet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.fleet-item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); cursor: pointer; }
.fleet-item.is-sel { box-shadow: var(--shadow-2), 0 0 0 2px var(--brand); }
.fleet-av { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--neutral-bg); font-weight: 800; }
.fleet-av::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--surface); background: #9AA3AD; }
.fleet-item.is-online .fleet-av::after { background: var(--ok); }
.fleet-item b { display: block; font-weight: 800; }
.fleet-item small { display: block; color: var(--muted); font-size: var(--fs-s); }
.fleet-item .fleet-links { display: flex; gap: 14px; margin-top: 6px; font-size: var(--fs-s); }
.fleet-item .fleet-links a { color: var(--brand); font-weight: 700; text-decoration: none; }
.fleet-map { position: relative; min-height: 360px; overflow: hidden; padding: 0; }
.fleet-map-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; color: var(--muted); font-size: var(--fs-s); }
.fleet-pin { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 13px/1 Commissioner, sans-serif; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.fleet-pin.is-off { background: #8A939D; }
.fleet-pin-wrap { background: none; border: 0; }
@media (min-width: 1000px) {
  .fleet-grid { grid-template-columns: 360px minmax(0, 1fr); align-items: stretch; }
  .fleet-map { min-height: calc(100vh - 260px); }
  body[data-screen="maps"] .sidenav { display: flex; }
  body[data-screen="maps"] .screen { max-width: none; margin: 0 0 0 var(--side); padding: 30px clamp(28px, 3vw, 56px) 48px; }
  body[data-screen="maps"] .devbar { margin-left: var(--side); }
}

/* ================= Χάρτες ================= */
.tabbar { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: 1fr; }
body[data-screen="maps"] .tabbar { display: grid; }
.screen-maps { padding-bottom: calc(var(--safe-b) + 96px); }
.maps-tabs { margin: 2px 0 8px; }
.maps-lead { margin-bottom: 10px; }
.maps-leaflet, .maps-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fleet-map { min-height: 52vh; }
.maps-legend { position: absolute; left: 10px; bottom: 10px; z-index: 500; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.maps-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow-1); font-size: 0.75rem; font-weight: 700; color: var(--ink); }
.maps-legend i { width: 10px; height: 10px; border-radius: 50%; }
.stop-dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35); }
.maps-group { margin: 6px 2px 2px; font-size: var(--fs-s); font-weight: 800; color: var(--muted); list-style: none; }
.maps-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); cursor: pointer; }
.maps-row.is-sel { box-shadow: var(--shadow-2), 0 0 0 2px var(--brand); }
.maps-row b { display: block; font-weight: 700; }
.maps-row small { display: block; color: var(--muted); font-size: var(--fs-s); }
.maps-row i { width: 14px; height: 14px; border-radius: 50%; }
.app-version { margin: 4px 0 0; text-align: center; font-size: 0.75rem; color: var(--muted); }
@media (min-width: 1000px) {
  .fleet-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .fleet-map { min-height: calc(100vh - 250px); }
  .fleet-list { max-height: calc(100vh - 250px); overflow: auto; padding: 2px; }
  .screen-maps { padding-bottom: 48px; }
}
/* Μεγάλη επωνυμία στην κεφαλίδα: κόβεται με «…» αντί να φαρδαίνει τη σελίδα στο κινητό */
.brand { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.brand-text { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.topbar { min-width: 0; }
.topbar .who, .topbar .live-pill { flex: none; }
/* Κινητό: το λογότυπο δεν κόβεται ποτέ. Τα δεξιά κουμπιά γίνονται πιο μικρά για να χωράνε. */
@media (max-width: 999px) {
  .topbar { gap: 8px; }
  .brand { flex: 1 0 auto; overflow: visible; }
  .brand-logo { height: 38px; max-width: 46vw; }
}
@media (max-width: 520px) {
  .who { padding: 4px; }
  .who-name { display: none; }
  .live-pill { padding: 8px 10px; margin-right: 0; }
  .live-pill span { display: none; }
  .top-maps { margin-right: 0; }
}

/* Νέα σε αυτή την έκδοση */
.whatsnew { margin: 0 0 16px; padding: 16px; border-radius: var(--r-l); color: #fff;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #1b1440)); box-shadow: var(--shadow-brand); }
.wn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wn-head b { font-size: 1.05rem; font-weight: 800; }
.wn-head .link-btn { color: rgba(255,255,255,.85); font-size: var(--fs-s); }
.wn-grid { display: grid; gap: 8px; }
@media (min-width: 700px) { .wn-grid { grid-template-columns: repeat(3, 1fr); } }
.wn-item { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 12px; border: 0; border-radius: 14px; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font: inherit; }
.wn-item:hover { background: rgba(255,255,255,.22); }
.wn-item svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.18); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wn-item b { display: block; font-weight: 800; }
.wn-item small { display: block; opacity: .85; font-size: 0.8125rem; }

/* Κουμπί «Χάρτες» πάνω δεξιά και έκδοση */
.top-maps { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 8px; padding: 7px 12px; border: 0; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font: inherit; font-size: 0.875rem; font-weight: 800; cursor: pointer; flex: none; }
.top-maps svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top-maps:not([hidden]) ~ .live-pill { margin-left: 0; }
.top-version { display: none; }
@media (min-width: 1000px) { .top-version { display: inline; margin-left: auto; margin-right: 12px; font-size: 0.75rem; color: var(--muted); } .top-version ~ .top-maps { margin-left: 0; } }
@media (max-width: 380px) { .top-maps span { display: none; } }
/* Χάρτης στη δεξιά στήλη της αρχικής */
.mini-map { position: relative; height: 300px; border-radius: var(--r-m); overflow: hidden; cursor: pointer; }
.mini-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-map-note { margin: 8px 2px 0; font-size: var(--fs-s); color: var(--muted); }
.name-btn { padding: 6px 10px !important; min-height: 32px !important; font-size: 0.8125rem !important; }

/* Εκκρεμότητες: καρτέλες Πωλήσεις / Αγορές */
.pend-tabs { display: inline-flex; margin: 4px 0 10px; }
.pend-tabs .seg-btn { padding: 10px 18px; font-size: 0.9375rem; }
.pend-tabs .seg-btn b { display: inline-block; min-width: 22px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--neutral-bg); color: var(--muted); font-size: 0.75rem; }
.pend-tabs .seg-btn.is-on b { background: var(--brand); color: var(--on-brand); }
/* «Αγορές για ολοκλήρωση»: ο αριθμός τονίζεται όταν υπάρχει κάτι να κάνεις */
.pend-tabs .pt-complete.has-work b { background: #7C3AED; color: #fff; }
/* Φορτώσεις: Πωλήσεις / Αγορές για παραλαβή */
.reg-tabs { display: flex; margin: 4px 0 10px; }
.reg-tabs .seg-btn { flex: 1; }
.reg-tabs .seg-btn b { display: inline-block; min-width: 22px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--neutral-bg); color: var(--muted); font-size: 0.75rem; }
.reg-tabs .seg-btn.is-on b { background: var(--brand); color: var(--on-brand); }
/* Δελτίο χωρίς QR */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.off-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.off-card { border: 1px solid color-mix(in srgb, #F28C28 45%, var(--line)); }
.off-link { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.off-link input { flex: 1 1 220px; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--surface-2); padding: 8px 12px; font: inherit; color: var(--ink); }
.off-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.off-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, #F28C28 16%, var(--surface)); color: #B45309; font-size: 0.75rem; font-weight: 700; }
.stop-tag.is-pickup { background: color-mix(in srgb, #7C3AED 14%, var(--surface)); color: #7C3AED; }
@media (max-width: 600px) {
  .pend-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .pend-tabs .seg-btn { padding: 8px 6px; font-size: .8rem; line-height: 1.2; }
  .pend-tabs .seg-btn b { display: block; width: fit-content; margin: 4px auto 0; }
}

/* ================= Υπολογιστής: σύγχρονο interface ================= */
.top-search { display: none; }
@media (min-width: 1000px) {
  .top-search { display: inline-flex; align-items: center; gap: 10px; margin-left: 28px; padding: 8px 12px; min-width: 300px; border: 0; border-radius: 12px;
    background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); color: var(--muted); font: inherit; font-size: 0.9rem; cursor: pointer; }
  .top-search:hover { box-shadow: 0 0 0 1px var(--brand); }
  .top-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .top-search kbd { margin-left: auto; padding: 2px 6px; border-radius: 6px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font: 600 0.7rem/1.4 ui-monospace, monospace; }
}
/* Πίνακας εκκρεμοτήτων (μόνο στον υπολογιστή) */
.ptable-wrap { display: none; }
@media (min-width: 1000px) {
  .ptable-wrap:not([hidden]) { display: block; margin-top: 10px; overflow: auto; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
  #pendingGroups { display: none !important; }
  .ptable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; }
  .ptable th { position: sticky; top: 0; z-index: 1; padding: 12px 14px; text-align: left; font-size: 0.75rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
    color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; }
  .ptable th:hover { color: var(--ink); }
  .ptable th.is-asc::after { content: " ▲"; color: var(--brand); } .ptable th.is-desc::after { content: " ▼"; color: var(--brand); }
  .ptable td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  .ptable tr { transition: background-color .12s ease; }
  .ptable tbody tr { cursor: pointer; }
  .ptable tbody tr:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
  .ptable tbody tr.is-sel { background: color-mix(in srgb, var(--brand) 9%, transparent); }
  .ptable .pt-name { font-weight: 800; }
  .ptable .pt-sub { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
  .ptable .pt-addr { max-width: 260px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ptable .pt-act { text-align: right; white-space: nowrap; }
  .chip-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; background: var(--neutral-bg); color: var(--ink); white-space: nowrap; }
  .chip-st i { width: 8px; height: 8px; border-radius: 50%; }
  .ptable .pt-empty { padding: 30px; text-align: center; color: var(--muted); }
}
/* Πλαϊνό πάνελ δελτίου */
.drawer-back { position: fixed; inset: 0; z-index: 90; background: rgba(10, 14, 22, .35); backdrop-filter: blur(2px); animation: fade-in .18s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(680px, 92vw); display: flex; flex-direction: column; background: var(--surface);
  box-shadow: -20px 0 50px rgba(0,0,0,.18); animation: drawer-in .26s cubic-bezier(.2,.8,.2,1); }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; border-bottom: 1px solid var(--line); }
.drawer-head .h2 { margin: 2px 0 6px; font-size: 1.35rem; }
.drawer-x { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--surface-2); font-size: 1.05rem; cursor: pointer; color: var(--ink); }
.drawer-body { flex: 1; overflow: auto; padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.dr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-view { flex: 1; display: flex; flex-direction: column; min-height: 420px; }
.dr-view iframe, .view-frame iframe { flex: 1; width: 100%; min-height: 420px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.view-hint { margin: 0 0 8px; font-size: 0.8125rem; color: var(--muted); }
/* Εμπορική προβολή σε όλη την οθόνη */
.sheet-xl { max-width: min(1100px, 96vw) !important; width: 96vw; height: 92vh; }
.sheet-xl .sheet-body { height: 100%; display: flex; flex-direction: column; }
.view-head { display: flex; align-items: center; gap: 10px; }
.view-title { flex: 1; min-width: 0; }
.view-frame { position: relative; flex: 1; display: flex; }
.view-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 30px; text-align: center; color: var(--muted); }
.note-view { color: var(--brand) !important; font-weight: 800; }
/* GPS */
.gps-stops { margin: 6px 0 4px; padding-left: 22px; display: grid; gap: 6px; font-size: var(--fs-s); }
.gps-stops b { display: block; }
.gps-stops small { color: var(--muted); }
.gps-btns { display: grid; gap: 8px; margin: 10px 0 6px; }
/* Γράφημα δραστηριότητας */
.chart-box { position: relative; height: 180px; }
.chart-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.lg-t { background: #2F6FD6; } .lg-d { background: #1D9A5B; } .lg-c { background: var(--brand); }
/* Γρήγορη αναζήτηση (Ctrl+K) */
.palette { max-width: 640px !important; top: 12vh; margin-top: 0; }
.palette-search { margin: 0 0 10px; }
.palette-list { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow: auto; display: grid; gap: 4px; }
.palette-list li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.palette-list li.is-on, .palette-list li:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.palette-list li i { width: 10px; height: 10px; border-radius: 50%; }
.palette-list li b { display: block; } .palette-list li small { color: var(--muted); font-size: 0.8rem; }
.palette-foot { margin: 10px 2px 0; font-size: 0.75rem; color: var(--muted); }
@media (max-width: 420px) { .top-maps span { display: none; } .top-maps { padding: 7px 9px; } }

/* PDF του παρόχου, σελίδα-σελίδα */
.pdf-pages { flex: 1; overflow: auto; display: grid; gap: 12px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: #E9EBEE; min-height: 420px; }
.pdf-pages canvas { display: block; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); border-radius: 4px; }
.view-frame { flex-direction: column; }

.perm-check { margin-top: 10px; }
.pend-head-btns { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.pend-head-btns > * { flex: none; white-space: nowrap; width: auto; }
.ptable .pt-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.complete-btn { white-space: nowrap; min-height: 34px; padding: 0 14px; }
.ptable .complete-btn { margin: 6px 0 0; display: flex; }
.pend-head-btns { min-width: 0; }
@media (min-width: 1800px) { .pend-head-btns { flex-wrap: nowrap; } }
[data-for="pending"] .section-head-top > .title { flex: none; }
.pend-period { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); font-size: 0.875rem; font-weight: 700; }
.pend-period[hidden] { display: none; }
.pend-period label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.pend-period label span { color: var(--muted); font-weight: 600; }
.pend-period input { min-height: 32px; padding: 0 4px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; color-scheme: light dark; cursor: pointer; }
.pend-scope { gap: 6px; cursor: pointer; }
.pend-scope > span { color: var(--muted); font-weight: 600; }
.pend-scope select { width: auto; min-width: 0; min-height: 32px; padding: 0 4px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; color-scheme: light dark; cursor: pointer; }
.pend-scope select option { background: var(--surface); color: var(--ink); }
.maps-drivers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.maps-drivers button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.maps-drivers button i { width: 12px; height: 12px; border-radius: 50%; }
.maps-drivers button.is-on { box-shadow: var(--shadow-2), 0 0 0 2px var(--brand); }
.addr-add { padding: 4px 10px !important; min-height: 28px !important; font-size: 0.78rem !important; }
.maps-group .grp-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; }

/* Χάρτης: έντονες κουκκίδες παραδόσεων και φορτηγάκια οδηγών */
.stop-pin { width: 100%; height: 100%; border-radius: 50%; background: var(--c); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--c), 0 4px 10px rgba(0,0,0,.35); box-sizing: border-box; }
.stop-pin.is-approx { border-style: dashed; opacity: .9; }
.stop-pin.is-sel { box-shadow: 0 0 0 3px var(--c), 0 0 0 8px color-mix(in srgb, var(--c) 30%, transparent), 0 6px 14px rgba(0,0,0,.4); }
.truck-pin { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--c), 0 6px 16px rgba(0,0,0,.35); }
.truck-pin svg { width: 32px; height: 24px; }
.truck-pin span { position: absolute; top: 50px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 8px; border-radius: 999px; background: var(--c); color: #fff; font: 800 11px/1.5 Commissioner, sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.truck-pin.is-off { opacity: .8; }
.maps-row.is-fix small { color: var(--warn); }

@media (min-width: 1000px) {
  .ptable td:first-child { min-width: 230px; }
  .ptable td:nth-child(5) { white-space: nowrap; }
  .ptable td:nth-child(2) { white-space: nowrap; }
}

/* ================= Δύο αρχικές για τον διαχειριστή ================= */
.hello { position: relative; }
.layout-toggle { position: absolute; right: 0; top: 4px; display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.layout-toggle button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font: inherit; font-size: .85rem; font-weight: 800; color: var(--muted); cursor: pointer; }
.layout-toggle button.is-on { background: var(--ink); color: var(--surface); }
@media (max-width: 999px) { .layout-toggle { position: static; margin-top: 10px; } }
/* Απλή */
.hl-simple .screen-home .stats, .hl-simple .screen-home .quick, .hl-simple .screen-home .home-cols,
.hl-simple .screen-home .role-card { display: none !important; }
.simple-home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 18px; }
@media (min-width: 1000px) { .simple-home { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 20px; margin-top: 22px; } .hl-simple .screen-home > .hero { display: none !important; } }
.s-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 150px; padding: 22px; border: 0; border-radius: 22px; text-align: left; cursor: pointer;
  background: var(--surface); color: var(--ink); font: inherit; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 30px rgba(16,24,40,.08); transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.s-tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 18px 40px rgba(16,24,40,.14); }
.s-tile-main { grid-column: span 2; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #12142a)); }
@media (min-width: 1000px) { .s-tile-main { grid-column: auto; grid-row: span 1; min-height: 190px; } .s-tile { min-height: 190px; } }
.s-num { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.s-lab { font-weight: 800; font-size: 1.02rem; }
.s-sub { font-size: .82rem; opacity: .75; }
.s-ico { position: absolute; right: 18px; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-size: 1.35rem; }
.s-blue { background: #E6EEFB; } .s-green { background: #E3F4EA; } .s-red { background: #FBE7E7; }
.muted-s { font-size: .8rem; color: var(--muted); font-weight: 700; }

/* ===== Αναλυτική αρχική: λίγα, καθαρά, διαδραστικά ===== */
/* Βασικοί αριθμοί: λευκή κάρτα, χρωματιστό νούμερο, πατιούνται */
.head-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 4px; }
@media (min-width: 1000px) { .head-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; } }
.head-tile {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-content: start; column-gap: 10px; row-gap: 2px; padding: 18px 18px 16px;
  border: 0; border-radius: 18px; text-align: left; font: inherit; color: var(--ink); background: var(--surface);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
  animation: tile-in .45s cubic-bezier(.2,.8,.2,1) both;
}
.head-tile:nth-child(2) { animation-delay: .04s; } .head-tile:nth-child(3) { animation-delay: .08s; }
.head-tile:nth-child(4) { animation-delay: .12s; } .head-tile:nth-child(5) { animation-delay: .16s; }
.head-tile.is-link { cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.head-tile.is-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, var(--line)); }
.head-tile.is-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--c) 60%, transparent); outline-offset: 2px; }
.ht-ico { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); font-size: 1.15rem; }
.ht-num { grid-column: 1; grid-row: 1; font-size: 2.3rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; color: var(--c); font-variant-numeric: tabular-nums; }
.ht-lab { grid-column: 1 / -1; margin-top: 10px; font-size: .92rem; font-weight: 800; }
.ht-sub { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); }
@keyframes tile-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .head-tile { animation: none; } }

/* Γράφημα: υπόμνημα που πατιέται, ετικέτα με τα νούμερα της ημέρας */
.chart-legend { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chart-legend button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 0; border-radius: 999px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line);
  font: inherit; font-size: .76rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: opacity .15s ease, background .15s ease; }
.chart-legend button i { width: 9px; height: 9px; border-radius: 3px; margin: 0; }
.chart-legend button:not(.is-on) { opacity: .45; text-decoration: line-through; }
.chart-legend button:hover { background: var(--neutral-bg); }
.chart-box { cursor: pointer; }
.chart-tip { position: absolute; top: 4px; z-index: 2; display: grid; gap: 3px; min-width: 150px; padding: 10px 12px; border-radius: 12px; pointer-events: none;
  background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); font-size: .8rem; }
.chart-tip b { font-size: .85rem; }
.chart-tip span { display: flex; align-items: center; gap: 6px; }
.chart-tip i { width: 8px; height: 8px; border-radius: 2px; }
.chart-tip small { color: var(--muted); }
/* «Σήμερα» κάτω από το γράφημα, σε μία γραμμή */
.today-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ts-title { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ts-item { display: inline-flex; align-items: baseline; gap: 6px; }
.ts-item b { font-size: 1.25rem; font-weight: 900; color: var(--c); line-height: 1; font-variant-numeric: tabular-nums; }
.ts-item span { font-size: .8rem; font-weight: 700; color: var(--muted); }

/* Καρτέλες «Εκκρεμότητες / Τελευταίες κινήσεις» */
.panel-head { gap: 10px; }
.panel-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--neutral-bg); }
.panel-tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font: inherit; font-size: .88rem; font-weight: 800; color: var(--muted); cursor: pointer; }
.panel-tabs button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.panel-tabs b { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: .72rem; }
.panel-tabs b:empty { display: none; }

/* Οδηγοί: συμπαγής λίστα στη δεξιά στήλη */
.drv-card .section-head { margin-bottom: 4px; }
.drv-online { font-size: .78rem; font-weight: 800; color: var(--ok); }
.drv-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drv-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 8px; margin: 0 -8px; border-radius: 12px; cursor: pointer; transition: background .15s ease; }
.drv-row:hover, .drv-row:focus-visible { background: var(--surface-2); outline: none; }
.drv-av { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 800; font-size: .85rem; }
.drv-av.is-on::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--surface); }
.drv-body { display: grid; gap: 5px; min-width: 0; }
.drv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; }
.drv-head b { font-weight: 800; }
.drv-plate { padding: 0 6px; border-radius: 6px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); font-size: .7rem; font-weight: 800; letter-spacing: .03em; }
.drv-st { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--muted); }
.drv-st.is-on { color: var(--ok); }
.drv-st.is-nav { color: var(--info); }
.drv-track { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--neutral-bg); }
.drv-track i { display: block; height: 100%; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.drv-sub { font-size: .74rem; color: var(--muted); }
.drv-none { padding: 8px 0; font-size: .85rem; color: var(--muted); }
.drv-idle { margin: 8px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }

/* Στον υπολογιστή οι κάρτες «Χάρτες» και «Φορτώσεις» υπάρχουν ήδη στο πλαϊνό μενού. */
@media (min-width: 1000px) { .hl-full .screen-home .admin-card { display: none !important; } }
.danger-card .btn-danger { margin-top: 6px; }
.addr-src { color: var(--warn); font-weight: 700; }

.hl-full .screen-home .stats, .hl-full .screen-home .role-card { display: none !important; }
@media (max-width: 600px) {
  .s-tile { min-height: 128px; padding: 16px; }
}

.btn-danger-quiet { color: var(--danger, #C62828) !important; }
.whatsnew { display: none !important; }

/* Επιλογή αρχικής οθόνης */
.sheet-wide-2 { max-width: 720px !important; }
.lay-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.lay-card { display: grid; gap: 6px; padding: 14px; border: 0; border-radius: 16px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); text-align: left; cursor: pointer; font: inherit; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.lay-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--brand), var(--shadow-2); }
.lay-card b { font-size: 1.1rem; } .lay-card small { color: var(--muted); }
.lay-prev { display: grid; gap: 6px; height: 120px; padding: 10px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.lp-simple { grid-template-columns: 1fr 1fr; } .lp-simple i { border-radius: 8px; background: linear-gradient(135deg, var(--brand), #F28C28); opacity: .85; }
.lp-full { grid-template-columns: repeat(4, 1fr); grid-template-rows: 26px 1fr; }
.lp-full i { border-radius: 50%; border: 4px solid #2F6FD6; border-right-color: var(--neutral-bg); }
.lp-full em { grid-column: span 2; border-radius: 8px; background: repeating-linear-gradient(90deg, #1D9A5B 0 18%, #2F6FD6 18% 30%, var(--neutral-bg) 30% 36%); opacity: .7; }
.layout-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--neutral-bg); }
.layout-toggle button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; }
.layout-toggle button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
@media (max-width: 600px) { .lay-pick { grid-template-columns: 1fr; } }


/* Μπάρα σύνδεσης (χωρίς internet / αποστολή / αποτυχίες) */
.netbar { position: sticky; top: 57px; z-index: 30; display: block; width: 100%; border: 0; padding: 9px 16px; font: inherit; font-size: 0.875rem; font-weight: 700; text-align: center; cursor: pointer; color: #fff; }
.netbar.is-off { background: #C2410C; }
.netbar.is-send { background: #2F6FD6; }
.netbar.is-fail { background: #B91C1C; }
@media (min-width: 1000px) { .netbar { margin-left: var(--side); width: calc(100% - var(--side)); } }
.chip-queued { margin-top: 4px; background: #DBEAFE !important; color: #1E40AF !important; }

/* ================= Νέος χάρτης ================= */
.tmap { position: absolute; inset: 0; overflow: hidden; background: #b6d4e2; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.tmap.is-drag { cursor: grabbing; }
.tmap-tiles, .tmap-marks, .tmap-svg { position: absolute; inset: 0; }
.tmap-tiles img { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; transition: opacity .12s ease; pointer-events: none; max-width: none; image-rendering: auto; }
.tmap-tiles img.is-in { opacity: 1; }
/* Σκούρο θέμα: ο χάρτης OpenStreetMap αντεστραμμένος (χωρίς άλλη υπηρεσία χαρτών) */
.tmap.is-dark { background: #243d48; }
.tmap.is-dark .tmap-tiles img { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); }
.tmap-svg { pointer-events: none; z-index: 2; }
.tmap-marks { z-index: 3; pointer-events: none; }
.tmap-mark { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; }
.tmap-pin-wrap .pin { position: absolute; left: -18px; top: -46px; width: 36px; height: 46px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); transition: transform .15s ease; transform-origin: 50% 100%; }
.tmap-pin-wrap .pin svg { width: 36px; height: 46px; display: block; }
.tmap-pin-wrap:hover .pin, .tmap-pin-wrap.is-sel .pin { transform: scale(1.22); }
.tmap-pin-wrap.is-sel .pin { animation: pin-bounce .5s ease; z-index: 5; }
@keyframes pin-bounce { 30% { transform: translateY(-10px) scale(1.22); } 100% { transform: scale(1.22); } }
.pin.is-approx svg path:first-child { opacity: .78; stroke-dasharray: 4 3; }
.pin-approx { position: absolute; right: -6px; top: -4px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #fff; color: var(--c); font: 900 12px/1 Arial, sans-serif; font-style: normal; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.pin-no { position: absolute; left: -7px; top: -6px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px; background: #1f2430; color: #fff; font: 800 11px/1 Commissioner, sans-serif; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.tmap-cluster-wrap .clu { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; box-shadow: 0 4px 12px rgba(0,0,0,.3); transition: transform .15s ease; }
.tmap-cluster-wrap .clu span { display: grid; place-items: center; width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 50%; background: #fff; color: #1f2430; font: 800 15px/1 Commissioner, sans-serif; }
.tmap-cluster-wrap:hover .clu { transform: translate(-50%, -50%) scale(1.1); }
.tmap-truck-wrap { z-index: 10; }
.truck2 { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; }
.truck2-b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--c), 0 6px 14px rgba(0,0,0,.35); }
.truck2.is-on .truck2-b { animation: truck-halo 1.8s ease-out infinite; }
@keyframes truck-halo { 0% { box-shadow: 0 0 0 3px var(--c), 0 0 0 3px color-mix(in srgb, var(--c) 50%, transparent), 0 6px 14px rgba(0,0,0,.35); } 100% { box-shadow: 0 0 0 3px var(--c), 0 0 0 16px transparent, 0 6px 14px rgba(0,0,0,.35); } }
.truck2-b svg { width: 32px; height: 24px; transition: transform .6s ease; }
.truck2 span { white-space: nowrap; padding: 2px 9px; border-radius: 999px; background: var(--c); color: #fff; font: 800 11px/1.6 Commissioner, sans-serif; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.tmap-pop { position: absolute; left: 0; top: 0; z-index: 20; width: 290px; padding: 14px 14px 12px; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.28), 0 0 0 1px var(--line); cursor: default; animation: pop-in .18s ease; }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px); } }
.tmap-pop-x { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.pp-k { margin: 0 0 4px; font-size: .75rem; color: var(--muted); } .pp-t { display: block; font-size: 1.05rem; margin-right: 26px; }
.pp-s { margin: 3px 0 0; font-size: .8125rem; color: var(--muted); } .pp-a { margin: 8px 0 0; font-size: .875rem; } .pp-a small { color: var(--muted); }
.pp-b { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .pp-b .btn { min-height: 34px; padding: 0 12px; font-size: .8125rem; }
.pp-waze { color: #0099FF !important; font-weight: 800; }
.tmap-ui { position: absolute; z-index: 15; inset: 10px 10px auto auto; display: grid; gap: 8px; justify-items: end; }
.tmap-mode { display: inline-flex; gap: 3px; padding: 3px; border-radius: 12px; background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.tmap-mode button { border: 0; background: none; padding: 8px 12px; border-radius: 9px; font: inherit; font-size: .8125rem; font-weight: 800; color: var(--muted); cursor: pointer; }
.tmap-mode button.is-on { background: var(--brand); color: #fff; }
.tmap-zoom { display: grid; overflow: hidden; border-radius: 12px; background: var(--surface); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.tmap-zoom button { width: 40px; height: 38px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 1.2rem; color: var(--ink); cursor: pointer; }
.tmap-zoom button:last-child { border-bottom: 0; } .tmap-zoom button:hover { background: var(--surface-2); }
.tmap-attr { position: absolute; z-index: 15; right: 6px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.75); font-size: 10px; color: #555; }
.tmap-attr a { color: #555; }
.tmap-waze { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; background: var(--surface); }
.tmap-waze iframe { flex: 1; width: 100%; border: 0; }
.tmap-waze p { margin: 0; padding: 6px 12px; font-size: .75rem; color: var(--muted); background: var(--surface-2); }
/* Leaflet moves existing layers during gestures; the application updates data separately. */
.tmap-leaflet { isolation: isolate; z-index: 0; font-family: inherit; }
.tmap-leaflet .tmap-ui, .tmap-leaflet .tmap-attr { z-index: 800; }
.tmap-leaflet .tmap-pop { z-index: 810; }
.tmap-leaflet .tmap-waze { z-index: 790; }
.tmap-leaflet.is-dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9); }
.tmap-leaflet .leaflet-marker-icon { background: transparent; border: 0; }
.tmap-leaflet .tmap-pin-wrap .pin { left: 0; top: 0; }
.tmap-leaflet .tmap-truck-wrap { pointer-events: auto; }
.tmap-leaflet .tmap-truck-wrap .truck2, .tmap-leaflet .tmap-cluster-wrap .clu { left: 50%; top: 50%; }
.tmap-leaflet .leaflet-tile { image-rendering: auto; }
.tmap-leaflet .leaflet-control-container { font-family: inherit; }
.fleet-map.is-full { position: fixed !important; inset: 0; z-index: 150; border-radius: 0 !important; min-height: 100vh !important; }
.maps-legend { pointer-events: auto !important; }
.leg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-1); font: inherit; font-size: .75rem; font-weight: 800; color: var(--ink); cursor: pointer; }
.leg-chip i { width: 10px; height: 10px; border-radius: 50%; }
.leg-chip.is-off { opacity: .45; text-decoration: line-through; }
@media (min-width: 1000px) { .fleet-map { min-height: calc(100vh - 230px) !important; } }
.tmap-truck-wrap { pointer-events: none; }
.tmap-truck-wrap .truck2-b { pointer-events: auto; cursor: pointer; }
.tmap-truck-wrap .truck2 span { pointer-events: none; opacity: .95; }

/* Διόρθωση θέσης, Waze ζωντανά */
.is-pick, .is-pick * { cursor: crosshair !important; }
.is-pick { box-shadow: inset 0 0 0 4px #F28C28; }
.pp-fix { color: #C2410C !important; }
.map-mode { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 12px; background: var(--neutral-bg); grid-column: 1 / -1; justify-self: start; }
.map-mode button { border: 0; background: none; padding: 9px 14px; border-radius: 9px; font: 800 13.5px/1 Commissioner, sans-serif; color: var(--muted); cursor: pointer; }
.map-mode button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.waze-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; background: #e9eef3; }
.waze-hint { position: absolute; left: 10px; bottom: 10px; right: 10px; z-index: 5; margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(6, 42, 58, .85); color: #fff; font-size: 12.5px; }

/* ================= Χάρτης: μία καθαρή οθόνη ================= */
body[data-screen="maps"] .screen[data-for="maps"] { display: block; padding: 0 !important; max-width: none !important; }
.mx { display: grid; grid-template-columns: 1fr; }
.mx-panel { order: 2; padding: 14px 14px 110px; display: grid; gap: 12px; align-content: start; }
.mx-map { order: 1; position: relative; height: 56vh; min-height: 320px !important; border-radius: 0 !important; margin: 0 !important; overflow: hidden; background: #E9EEF3; }
.mx-head { display: flex; align-items: baseline; gap: 12px; }
.mx-title { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.mx-upd { margin-left: auto; font-size: .75rem; color: var(--muted); }
.mx-back { display: none; }
.mx-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mx-kpi { display: grid; gap: 2px; justify-items: start; padding: 12px 12px 10px; border: 0; border-radius: 14px; cursor: pointer; text-align: left;
  background: color-mix(in srgb, var(--c) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); transition: transform .12s ease, opacity .12s ease; }
.mx-kpi:hover { transform: translateY(-1px); }
.mx-kpi b { font-size: 1.9rem; line-height: 1; font-weight: 800; color: var(--c); }
.mx-kpi span { font-size: .78rem; font-weight: 800; color: var(--ink); }
.mx-kpi.is-on { background: var(--c); box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 40%, transparent); }
.mx-kpi.is-on b, .mx-kpi.is-on span { color: #fff; }
.mx-kpi.is-dim { opacity: .45; }
.mx-warn { border: 0; text-align: left; padding: 11px 13px; border-radius: 12px; background: #FFF7ED; color: #9A3412; font: 700 .85rem/1.35 Commissioner, sans-serif; box-shadow: inset 0 0 0 1px #FDBA74; cursor: pointer; }
.mx-warn.is-approx { background: #EFF6FF; color: #1E40AF; box-shadow: inset 0 0 0 1px #93C5FD; margin-top: 6px; }
.mx-groups { display: grid; gap: 10px; }
.mx-none { margin: 10px 4px; color: var(--muted); }
.mx-card { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .15s ease; }
.mx-card.is-sel { box-shadow: var(--shadow-2), 0 0 0 2px var(--c); }
.mx-card-h { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.mx-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: .9rem; }
.mx-who b { display: block; font-weight: 800; }
.mx-who small { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.mx-who small.is-on { color: #1D9A5B; font-weight: 700; }
.mx-pct { font-weight: 800; color: var(--c); font-size: .95rem; }
.mx-bar { height: 4px; margin: 0 14px 10px; border-radius: 4px; background: var(--neutral-bg); overflow: hidden; }
.mx-bar i { display: block; height: 100%; background: var(--c); border-radius: 4px; }
.mx-stops { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; gap: 2px; }
.mx-stop { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 8px; border-radius: 11px; cursor: pointer; }
.mx-stop:hover { background: var(--surface-2); }
.mx-stop.is-sel { background: color-mix(in srgb, var(--c, #2F6FD6) 8%, var(--surface-2)); box-shadow: inset 3px 0 0 var(--ink); }
.mx-stop.is-done { opacity: .5; }
.mx-no { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: #fff; font: 800 .8rem/1 Commissioner, sans-serif; }
.mx-st b { display: block; font-weight: 700; font-size: .92rem; }
.mx-st small { display: block; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mx-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mx-tag { font-style: normal; font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--neutral-bg); color: var(--muted); }
.mx-tag.is-warn { background: #FEE2E2; color: #B91C1C; }
.mx-tag.is-approx { background: #FFEDD5; color: #C2410C; }
.mx-nav { padding: 7px 10px; border-radius: 9px; background: #33CCFF; color: #062A3A; font: 800 .78rem/1 Commissioner, sans-serif; text-decoration: none; }
.mx-ctrls { position: absolute; top: 12px; right: 12px; z-index: 700; display: flex; gap: 6px; }
.mx-ctrls button { border: 0; padding: 10px 13px; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.18); font: 800 .85rem/1 Commissioner, sans-serif; cursor: pointer; }
.mx-ctrls button:hover { background: var(--surface-2); }
.mx-map .maps-legend { left: 12px; bottom: 12px; }
.mx-map.is-full { position: fixed !important; inset: 0; z-index: 150; height: 100vh !important; }
/* Τα κουμπιά του χάρτη (+/−) κάτω από τη σειρά «Όλα / Κίνηση / ⤢», χωρίς τα διπλά και χωρίς Waze
   (ο οδηγός έχει το «🚦 Κίνηση», ο διαχειριστής δεν έχει Waze). */
.mx-map .tmap-mode, .mx-map .tmap-zoom [data-fit], .mx-map .tmap-zoom [data-full] { display: none; }
.mx-map .tmap-ui { top: 62px; right: 12px; }
@media (min-width: 1000px) {
  body[data-screen="maps"] .screen[data-for="maps"] { margin: 0 0 0 var(--side) !important; }
  .mx { grid-template-columns: 400px minmax(0, 1fr); height: calc(100vh - 57px); }
  .mx-panel { order: 1; overflow: auto; padding: 22px 18px 30px; border-right: 1px solid var(--line); background: var(--bg); }
  .mx-map { order: 2; height: 100%; }
}
/* Κάρτα πινέζας: μεγαλύτερη και πιο καθαρή */
.tmap-pop { min-width: 270px; max-width: 320px; padding: 14px 16px !important; border-radius: 16px !important; box-shadow: 0 16px 40px rgba(0,0,0,.25) !important; }
.tmap-pop .pp-t { font-size: 1.05rem; }
.tmap-pop .pp-b { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.tmap-pop .pp-b .btn { justify-content: center; min-height: 38px; }
.tmap-pop .pp-b .btn-primary { grid-column: 1 / -1; }
.tmap-pop .pp-waze { background: #33CCFF !important; color: #062A3A !important; }

.mx-plan { margin: -4px 14px 8px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.mx-plan.is-sug { color: #7C3AED; }

/* Ορισμός κωδικού από τον διαχειριστή */
.pw-set-row { display: flex; gap: 8px; align-items: center; }
.pw-set-row input { flex: 1; min-width: 0; }

/* Προτάσεις δρομολογίων (Φορτώσεις) */
.suggest-box { display: grid; gap: 10px; margin: 8px 0 14px; }
.suggest-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.suggest-card { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-m); padding: 10px 12px; background: var(--surface); }
.suggest-card.is-agency { border-left-color: var(--info); }
.suggest-card.is-unknown { border-left-color: var(--warn); }
.suggest-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.suggest-items { margin: 6px 0; padding-left: 18px; font-size: var(--fs-s); color: var(--muted); }
.suggest-items li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.suggest-actions select { flex: 1; min-width: 160px; }

/* Κεφαλίδα: σταθερό λογότυπο της εφαρμογής αριστερά, επωνυμία της επιχείρησης δεξιά */
.brand-logo { background: #000; border-radius: 10px; padding: 3px 8px; box-sizing: content-box; }
.brand { flex: 0 1 auto; }
.top-company { margin-left: auto; min-width: 0; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 700; font-size: var(--fs-m); color: var(--ink); text-align: right; }
.top-company:empty { display: none; }
.top-company ~ .live-pill { margin-left: 8px; }
.top-company ~ .who { margin-left: 8px; }
.auth-logo { background: #000; border-radius: 14px; padding: 6px 12px; }
@media (max-width: 560px) {
  .brand-logo { height: 34px; padding: 2px 6px; }
  .top-company { font-size: var(--fs-s); max-width: 54vw; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
}
.top-company:empty ~ .live-pill, .top-company:empty ~ .who { margin-left: auto; }
/* Υπολογιστής: λογότυπο ευδιάκριτο, μπάρα χαμηλή (η κεφαλίδα είναι ήδη μαύρη, άρα χωρίς κάθετο padding) */
@media (min-width: 1000px) {
  .topbar { padding-top: calc(var(--safe-t) + 6px); padding-bottom: 6px; }
  .brand { min-height: 0; }
  .brand-logo { height: 44px; padding: 0 18px; border-radius: 12px; }
}

/* ===== Κεφαλίδα: εντελώς μαύρη, για να δένει με το λογότυπο ===== */
.topbar { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid #000; color: #fff; }
.topbar .top-company { color: #fff; }
.topbar .who { background: #161616; border-color: #2a2a2a; color: #fff; box-shadow: none; }
.topbar .who:hover { background: #222; }
.topbar .live-pill { background: rgba(255, 255, 255, 0.08); }
@media (min-width: 1000px) {
  .topbar .top-search { background: #161616; box-shadow: 0 0 0 1px #2a2a2a; color: #b5b5b5; }
  .topbar .top-search:hover { box-shadow: 0 0 0 1px var(--brand); }
  .topbar .top-search kbd { background: #000; box-shadow: 0 0 0 1px #333; color: #b5b5b5; }
}
/* Στήλη «Οδηγός» χωρίς ανάθεση */
td.muted { color: var(--muted); }

/* ================= Οχήματα: επιλογή από τον οδηγό, λίστα του διαχειριστή ================= */
.hchip.is-plate.is-btn { border: 0; font: inherit; font-size: var(--fs-s); font-weight: 700; color: var(--ink); cursor: pointer; }
.hchip.is-plate.is-btn::after { content: "›"; margin-left: 2px; color: var(--muted); font-weight: 800; }
.hchip.is-plate.is-none { color: var(--danger); }
.veh-pick, .veh-list { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 10px; }
.veh-pick button {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 0; border-radius: 16px;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
.veh-pick button:hover:not(:disabled) { box-shadow: 0 0 0 2px var(--brand), var(--shadow-1); }
.veh-pick button:active:not(:disabled) { transform: scale(.985); }
.veh-pick button:disabled { opacity: .55; cursor: not-allowed; }
.veh-pick button.is-mine { box-shadow: 0 0 0 2px var(--brand); }
.veh-plate {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 8px; background: #fff; color: #111;
  box-shadow: 0 0 0 2px #111 inset; font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.veh-plate b { display: inline-grid; place-items: center; width: 22px; align-self: stretch; border-radius: 4px; background: #1F4BB8; color: #fff; font-size: .625rem; letter-spacing: 0; }
.veh-info { display: grid; gap: 2px; min-width: 0; }
.veh-info small { color: var(--muted); font-size: var(--fs-s); }
.veh-info .veh-taken { color: var(--danger); font-weight: 600; }
.veh-info .veh-free { color: var(--ok); font-weight: 600; }
.veh-big { display: flex; justify-content: flex-start; }
.veh-big .veh-plate { font-size: 1.6rem; padding: 8px 16px 8px 8px; }
.veh-big .veh-plate b { width: 28px; font-size: .75rem; }
#vpSkip { width: 100%; }
.veh-list li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-m);
  background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
}
.veh-list .veh-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .veh-list li { grid-template-columns: 1fr; } .veh-list .veh-acts { justify-content: flex-start; } }
.vehicle-note b { color: var(--ink); }
.veh-info .veh-who { color: var(--ink); font-weight: 600; }
.veh-list li > .veh-plate { justify-self: start; }

/* ================= Πλοήγηση: οδηγία στροφής, ώρα άφιξης, φωνή ================= */
.nav-turn {
  position: absolute; z-index: 18; left: 10px; right: 10px; top: 10px; max-width: 560px; margin: 0 auto;
  display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 4px 14px; padding: 12px 16px 12px 12px; border-radius: 18px;
  background: #0E1A2B; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.nav-turn[hidden] { display: none; }
.nav-turn.is-arrive { background: #0F5F43; }
.nav-turn.is-rerouting { background: #4A4F57; }
.nav-turn-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: rgba(255,255,255,.1); }
.nav-turn-ico svg { width: 46px; height: 46px; fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-turn-txt { display: grid; min-width: 0; }
.nav-turn-txt b { font-size: 1.9rem; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.nav-turn-txt span { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.nav-turn-txt small { font-size: .875rem; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-turn-txt small:empty { display: none; }
.nav-then { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.14); font-size: .8125rem; font-weight: 600; color: rgba(255,255,255,.8); }
.nav-voice { position: absolute; z-index: 16; left: 12px; top: 66px; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.2); cursor: pointer; display: grid; place-items: center; }
.nav-voice svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-voice[aria-pressed="false"] { color: var(--muted); }
.screen-nav.has-turn .nav-recenter { top: 124px; }
.screen-nav.has-turn .nav-voice { top: 178px; }
.screen-nav.has-turn.has-then .nav-recenter { top: 158px; }
.screen-nav.has-turn.has-then .nav-voice { top: 212px; }
.screen-nav.has-turn .tmap-ui { top: 124px; }
.screen-nav.has-turn.has-then .tmap-ui { top: 158px; }
.nav-dist { font-size: 1rem !important; color: var(--ink) !important; }
.nav-dist b { color: var(--ok); }
.nav-eta2 { margin: 2px 0 0; font-size: var(--fs-s); color: var(--muted); }
.nav-eta2:empty { display: none; }
@media (min-width: 1000px) { .nav-turn { left: 20px; right: auto; width: 420px; margin: 0; } }

/* Οθόνη «Οχήματα»: πινακίδα στην κεφαλή κάθε οχήματος */
.truck-head .veh-plate { flex: none; font-size: .95rem; padding: 4px 10px 4px 4px; }
.truck-who .truck-free { color: var(--muted); font-weight: 700; }

/* Συμπληρωματικές πληροφορίες στις υπάρχουσες φόρμες και λίστες. */
.assigned-vehicles { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.assigned-vehicle-list { display: grid; gap: 8px; margin: 10px 0; }
.assigned-vehicle-list .check { padding: 9px 10px; border-radius: 9px; background: var(--surface-2); }
.user-quota { margin: 0 0 18px; }
.overdue-issued { margin: 18px 0; }
.overdue-issued > .h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.overdue-issued .list { margin-top: 10px; }
.declared-contents { margin: 16px 0; }
.contents-table-wrap { overflow-x: auto; margin: 12px 0; }
.contents-table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.contents-table th, .contents-table td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.contents-table th { color: var(--muted); font-weight: 700; }
.contents-table td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.contents-table td small { display: block; color: var(--muted); margin-top: 3px; }
.declared-content-preview { display: block; margin-top: 5px; color: var(--muted); font-size: var(--fs-s); line-height: 1.45; }
/* The installed app has its own background GPS. Browser fallback stays available. */
.is-native-app #installedTrackingHelp, .is-native-app #wakeWrap { display: none !important; }
#nativeTrackingStatus, #consentNoticeText { overflow-wrap: anywhere; }
.address-picker { margin: -2px 0 20px; }
.address-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.address-status { margin: 10px 0; line-height: 1.5; }
.address-status.is-confirmed { color: var(--ok); }
.address-results { display: grid; gap: 7px; }
.address-result { display: grid; gap: 4px; padding: 12px; text-align: left; width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font: inherit; overflow-wrap: anywhere; }
.address-result:hover, .address-result:focus-visible { border-color: var(--brand); }
.address-result small { color: var(--muted); line-height: 1.4; }
.address-preview[hidden] { display: none; }
.address-map { position: relative; inset: auto; height: 250px; min-height: 220px; width: 100%; border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; }
.address-map .tmap-mode, .address-map [data-fit], .address-map [data-full] { display: none; }
.address-center-pin { position: absolute; z-index: 7; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 36px; line-height: 1; pointer-events: none; filter: drop-shadow(0 2px 2px #0008); }
.address-preview > .btn { width: 100%; }
.note-instruction { margin: 16px 0; }
.instruction-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.instruction-preview { display: block; margin-top: 7px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-s); }
.contact-mapping { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-mapping .field { min-width: 0; }
.contact-list { max-height: 220px; }
.contact-errors { max-height: 180px; overflow: auto; padding-left: 22px; color: var(--muted); }
#contactImportSheet { width: min(900px, calc(100vw - 24px)); }
#contactImportSheet .contents-table td { max-width: 250px; overflow-wrap: anywhere; }
#contactImportConfirm { flex-shrink: 0; }
@media (max-width: 520px) { .contact-mapping { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .address-actions > .btn { flex: 1 1 140px; } }
.above-copyright { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 11px; }
.pending-select { width: 20px; height: 20px; margin: 0 8px 0 0; cursor: pointer; flex-shrink: 0; }
.ui-language { display:flex; align-items:center; justify-content:center; gap:10px; margin:12px 0; font-size:13px; color:var(--muted,#7e8794); }
.ui-language select { width:auto; min-width:120px; padding:7px 10px; border:1px solid var(--line,#39414b); border-radius:9px; background:var(--card,#1d2229); color:var(--text,#f0f2f5); font:inherit; }
[data-plan-hidden] { display: none !important; }

.subscription-notice{padding:13px 20px;background:#49391a;color:#ffe1a1;border-bottom:1px solid #866124;font-size:13px;font-weight:600;text-align:center;line-height:1.6}.subscription-notice[hidden]{display:none}
