:root {
  --brand: #0f766e;
  --on-brand: #ffffff;
  --brand-soft: color-mix(in srgb, var(--brand) 11%, #ffffff);
  --brand-ink: color-mix(in srgb, var(--brand) 82%, #000000);
  --ink: #0f172a;
  --muted: #5b6472;
  --faint: #8a93a3;
  --line: #e6e8ee;
  --line-strong: #d3d8e0;
  --sunken: #f3f5f8;
  --surface: #ffffff;
  --bg: color-mix(in srgb, var(--brand) 3%, #f5f6f9);
  --ok: #0f7a3d;
  --ok-bg: #e6f6ec;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --bad-soft: #f4a6a0;
  --warn: #9a5b00;
  --warn-bg: #fff3dc;
  --info: #1d4ed8;
  --info-bg: #eaf1ff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); }
h1 { font-size: 26px; line-height: 1.15; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
h2, h3 { margin: 0; }
p { margin: 0 0 8px; }
svg { flex: 0 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ── κεφαλίδα / μενού ── */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 20px; background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-logo { height: 36px; width: auto; max-width: 140px; object-fit: contain; border-radius: 8px; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 80%, #fff), var(--brand)); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: 0 0 auto; box-shadow: 0 2px 6px color-mix(in srgb, var(--brand) 30%, transparent); }
.brand-name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 2px; margin: 0 auto; padding: 4px; border-radius: 14px; background: var(--sunken); }
.nav-item { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; transition: background 0.15s, color 0.15s; }
.nav-item:hover { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.nav-item.is-on { background: var(--surface); color: var(--brand-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1); }
.nav-item .lbl-short { display: none; }
.top-end { display: flex; align-items: center; gap: 8px; }
.top-end form { margin: 0; }
.who { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); min-width: 0; }
.who-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: 0 0 auto; }
.who-name { font-size: 13px; font-weight: 600; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-switch select { height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; font: inherit; font-size: 14px; font-weight: 600; background: var(--surface); max-width: 220px; }

.main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.foot { text-align: center; padding: 18px 16px 28px; color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  .nav-item { padding: 8px 10px; }
  .who-name { max-width: 120px; }
}
@media (max-width: 760px) {
  .top { height: 58px; padding: 0 14px; gap: 10px; background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; border-radius: 0; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 30; }
  .nav-item { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 11px; min-width: 0; flex: 1; text-align: center; }
  .nav-item.is-on { box-shadow: none; background: var(--brand-soft); }
  .nav-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .nav-item .lbl { display: none; }
  .nav-item .lbl-short { display: block; }
  .nav.is-single { display: none; }
  .top-end { margin-left: auto; }
  .who { display: none; }
  .logout-lbl { display: none; }
  .store-switch select { max-width: 150px; }
  .main { padding: 18px 14px 100px; gap: 14px; }
  .foot { padding-bottom: 100px; }
  body:has(.nav.is-single) .main, body:has(.nav.is-single) .foot { padding-bottom: 24px; }
  h1 { font-size: 22px; }
}

/* ── κουμπιά / φόρμες ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s; }
.btn:hover { background: var(--sunken); }
.btn:active { transform: translateY(1px); }
.btn.is-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 2px 8px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn.is-primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn.is-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.btn.is-danger:hover { background: var(--bad-bg); }
.btn.is-ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn.is-ghost:hover { background: var(--sunken); color: var(--ink); }
.btn.is-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.is-lg { min-height: 50px; padding: 0 22px; font-size: 16px; border-radius: 13px; }
.btn.is-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.inline { display: inline; margin: 0; }
.push { margin-left: auto; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; border: 0; padding: 0; }
.field > span, .field > legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; }
.field small { font-weight: 400; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field textarea { height: auto; min-height: 76px; padding: 11px 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.field.grow { flex: 1 1 220px; }
.hint { font-size: 13px; color: var(--muted); min-height: 1em; }
.hint.is-ok { color: var(--ok); font-weight: 600; }
.hint:empty { display: none; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--sunken); }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-31 { display: grid; grid-template-columns: 3fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid-31 { grid-template-columns: 2fr 1fr; } }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.seg label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px; background: var(--surface); transition: border-color 0.15s, background 0.15s; }
.seg input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--brand); }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }

.combo { position: relative; }
.combo-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 15; margin: 6px 0 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); max-height: 300px; overflow: auto; }
.combo-list li { padding: 10px 12px; border-radius: 9px; cursor: pointer; font-size: 15px; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--brand-soft); color: var(--brand-ink); }
.combo-list li.is-empty { color: var(--muted); cursor: default; background: none; }

/* ── κάρτες ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 750; margin: 2px 0 12px; letter-spacing: -0.01em; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--sunken); color: var(--muted); font-size: 12px; font-weight: 700; }
.sub-title { font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.card-head .section-title { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters .field { flex: 0 1 170px; }
.filters .field.grow { flex: 1 1 220px; }
.filters .btn { min-height: 46px; }
.filters-card { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 600px) {
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .filters .field.grow, .filters .btn { grid-column: 1 / -1; }
  .filters .field input, .filters .field select { font-size: 15px; padding: 0 10px; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.chip:hover { background: var(--sunken); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 18px; }
.empty-state h1, .empty-state h2 { font-size: 18px; margin: 6px 0 2px; }
.empty-state p { max-width: 420px; }
.empty-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.empty-inline { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 10px 2px; }
.calm { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 14px 18px; }
.calm svg { color: var(--ok); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.danger-zone p { margin: 0; color: var(--muted); font-size: 14px; }

.flash { padding: 12px 16px; border-radius: 13px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.flash.is-ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 18%, transparent); }
.flash.is-err { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 18%, transparent); }
.flash.is-info { background: var(--info-bg); color: #1e3a8a; border-color: color-mix(in srgb, var(--info) 15%, transparent); }

/* ── KPI ── */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpis.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px 18px; }
.kpi-ico { grid-row: span 2; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi > b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi > small { grid-column: 1 / -1; margin-top: 8px; font-size: 12px; color: var(--muted); }
.kpi.is-accent { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); background: linear-gradient(160deg, var(--brand-soft), var(--surface) 70%); }
.kpi.is-accent .kpi-ico { background: var(--brand); color: var(--on-brand); }
.kpi.is-accent > b { color: var(--brand-ink); }
.kpi.is-bad > b { color: var(--bad); }
.kpi.is-warn > b { color: var(--warn); }
@media (max-width: 900px) { .kpis.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .kpis { gap: 8px; }
  .kpi { grid-template-columns: 1fr; padding: 12px; }
  .kpi-ico { grid-row: auto; width: 30px; height: 30px; border-radius: 9px; margin-bottom: 6px; }
  .kpi-ico svg { width: 16px; height: 16px; }
  .kpi > b { font-size: 20px; }
  .kpi-label, .kpi > small { font-size: 12px; }
  .kpi > small { margin-top: 4px; }
}
@media (max-width: 600px) {
  .kpis.is-notes { grid-template-columns: 1fr; }
  .kpis.is-notes .kpi { grid-template-columns: auto 1fr; }
  .kpis.is-notes .kpi-ico { grid-row: span 2; margin-bottom: 0; }
}

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; margin: 0; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.is-wait { background: var(--warn-bg); color: var(--warn); }
.pill.is-go { background: var(--info-bg); color: var(--info); }
.pill.is-done { background: var(--ok-bg); color: var(--ok); }
.pill.is-bad { background: var(--bad-bg); color: var(--bad); }

/* ── κεφαλίδα σελίδας στο χρώμα του brand (Σήμερα, μεταπωλητής) ── */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 28px 66px; border-radius: 22px; color: var(--on-brand); background: radial-gradient(620px 280px at 90% -30%, rgba(255, 255, 255, 0.24), transparent 62%), linear-gradient(135deg, color-mix(in srgb, var(--brand) 82%, #fff), var(--brand) 48%, var(--brand-ink)); box-shadow: 0 16px 36px color-mix(in srgb, var(--brand) 26%, transparent); }
.hero::after { content: ""; position: absolute; right: -70px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, 0.08); pointer-events: none; }
.hero::before { content: ""; position: absolute; right: 150px; top: -80px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; opacity: 0.86; }
.hero h1 { color: inherit; font-size: 28px; overflow-wrap: anywhere; }
.hero-sub { margin: 2px 0 0; font-size: 14px; opacity: 0.86; }
.hero .btn { position: relative; z-index: 1; }
.hero-amount { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hero-stats { position: relative; z-index: 1; display: flex; gap: 10px; margin: 0; }
.hero-stats > div { min-width: 132px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); }
.hero-stats dt { font-size: 12px; font-weight: 600; opacity: 0.88; }
.hero-stats dd { margin: 2px 0 0; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-stats dd small { font-size: 14px; font-weight: 600; opacity: 0.75; }
.btn.is-light { background: var(--surface); border-color: transparent; color: var(--brand-ink); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2); }
.btn.is-light:hover { background: color-mix(in srgb, var(--surface) 90%, var(--brand)); }
.kpis.is-float { position: relative; z-index: 2; margin: -64px 18px 0; }
.kpis.is-float .kpi { box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09); }
@media (max-width: 760px) {
  .hero { padding: 20px 18px 58px; border-radius: 18px; gap: 14px; }
  .hero h1 { font-size: 21px; }
  .hero:not(.is-money) .hero-sub { display: none; }
  .hero .btn { width: 100%; }
  .hero-amount { font-size: 36px; }
  .hero-stats { width: 100%; }
  .hero-stats > div { flex: 1; min-width: 0; }
  .kpis.is-float { margin: -48px 8px 0; }
}

/* ── μεταπωλητής: κατάταξη μαγαζιών, κανόνες ── */
.rank { list-style: none; margin: 0; padding: 0; }
.rank-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rank-main b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-main small { font-size: 12px; color: var(--muted); }
.rank-bar { display: block; height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 62%, #fff), var(--brand)); }
.rank-amt { display: flex; flex-direction: column; align-items: flex-end; }
.rank-amt b { font-size: 17px; font-weight: 800; color: var(--brand-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-amt small { font-size: 11px; color: var(--muted); }
.chips.is-static { margin-top: 8px; }
.chips.is-static .chip { cursor: default; min-height: 28px; font-weight: 500; color: var(--muted); }
.chips.is-static .chip:hover { background: var(--surface); }
.rules { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rules li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 12px; background: var(--sunken); }
.rules-label { font-weight: 700; }
.rules li small { flex-basis: 100%; }

/* ── Σήμερα ── */
.today { display: flex; flex-direction: column; gap: 18px; }
.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 14px; }
@media (max-width: 960px) { .orders { grid-template-columns: 1fr; } }
.act-short { display: none; }
.order { display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.order::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.order-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-addr { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.order-sub { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress li { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600; color: var(--faint); min-width: 0; }
.progress li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress li::before { content: ""; height: 6px; border-radius: 6px; background: var(--line); }
.progress li.is-done { color: var(--muted); }
.progress li.is-done::before { background: var(--brand); }
.progress li.is-current { color: var(--brand-ink); }
.progress li.is-current::before { background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 25%, var(--line)), var(--brand)); background-size: 200% 100%; animation: flow 1.6s linear infinite; }
@keyframes flow { from { background-position: 200% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .progress li.is-current::before { animation: none; background: color-mix(in srgb, var(--brand) 55%, var(--line)); } }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.facts li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.facts li svg { color: var(--faint); }
.facts li.is-cod { color: var(--warn); font-weight: 700; }
.facts li.is-cod svg { color: var(--warn); }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .order-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .order-actions .btn { width: 100%; }
  .order-actions .push { grid-column: 1 / -1; margin: 0; }
  .order-actions .push .btn { border-color: transparent; min-height: 30px; }
  .act-long { display: none; }
  .act-short { display: inline; }
}

.done-list { list-style: none; margin: 0; padding: 4px 0; }
.done-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 84px; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.done-row:last-child { border-bottom: 0; }
.done-time { font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.done-main { display: flex; flex-direction: column; min-width: 0; }
.done-main b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-main small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.done-row.is-off .done-main b, .done-row.is-off .done-amt { color: var(--faint); }
@media (max-width: 600px) {
  .done-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "time main amt" "time pill pill"; row-gap: 6px; padding: 12px 14px; }
  .done-time { grid-area: time; align-self: start; padding-top: 1px; }
  .done-main { grid-area: main; }
  .done-row .pill { grid-area: pill; justify-self: start; }
  .done-amt { grid-area: amt; align-self: start; }
}

/* ── Νέα παραγγελία ── */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.compose-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.compose-side { position: sticky; top: 82px; }
.form-section { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.form-step { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 750; }
.step-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; font-weight: 800; }
.summary { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.summary .section-title { margin: 0; }
.sum { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sum > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: baseline; gap: 8px; }
.sum dt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sum dt svg { color: var(--faint); }
.sum dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.sum dd.is-empty { color: var(--faint); font-weight: 500; }
.order-form { display: flex; flex-direction: column; gap: 14px; }
.form-narrow { max-width: 720px; width: 100%; }
.quote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 16px; border-radius: 14px; background: var(--sunken); font-size: 14px; }
.quote b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.summary .quote { background: var(--brand-soft); }
.summary .quote b { font-size: 30px; color: var(--brand-ink); }
.quote .warn { color: var(--warn); font-weight: 600; width: 100%; }
.quote .bad { color: var(--bad); font-weight: 600; width: 100%; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .compose { grid-template-columns: 1fr; }
  .compose-side { position: static; }
}

/* ── πίνακες ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--sunken); }
.table th:first-child { border-top-left-radius: 10px; }
.table th:last-child { border-top-right-radius: 10px; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--brand) 3%, transparent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot th { border-top: 2px solid var(--line); border-bottom: 0; color: var(--ink); font-size: 14px; background: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.person { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.avatar.is-lg { width: 54px; height: 54px; font-size: 18px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .table.is-cards thead { display: none; }
  .table.is-cards, .table.is-cards tbody { display: block; }
  .table.is-cards tr { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .table.is-cards tbody tr:last-child { border-bottom: 0; }
  .table.is-cards tbody tr:hover td { background: none; }
  .table.is-cards td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 0; border: 0; text-align: right; }
  .table.is-cards td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; }
  .table.is-cards td:empty { display: none; }
  .table.is-cards td.strong, .table.is-cards td.person { order: -1; justify-content: flex-start; text-align: left; font-size: 15px; padding-right: 56px; }
  .table.is-cards td.strong::before { content: none; }
  .table.is-cards td[data-label="#"] { position: absolute; top: 14px; right: 2px; padding: 0; font-size: 12px; }
  .table.is-cards td[data-label="#"]::before { content: none; }
  .table.is-cards td.num:not([data-label]) { justify-content: flex-start; padding-top: 6px; }
}

.bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding: 10px 0 0; overflow-x: auto; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.bar { flex: 1 0 24px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; padding-bottom: 6px; }
.bar-val { font-size: 10px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1em; }
.bar-fill { width: 100%; max-width: 34px; min-height: 3px; background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 78%, #fff), var(--brand)); border-radius: 8px 8px 3px 3px; display: flex; flex-direction: column; overflow: hidden; }
.bar:hover .bar-fill { filter: brightness(1.08); }
.bar-bad { width: 100%; background: var(--bad-soft); }
.bar small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
.legend .key { width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.legend .key.is-main { background: var(--brand); }
.legend .key.is-bad { background: var(--bad-soft); }
.more { margin-top: 4px; }
.more > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--brand-ink); padding: 6px 0; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
.more[open] > summary::before { transform: rotate(45deg); }
.more > .table-wrap { margin-top: 8px; }

/* ── Πελάτες ── */
.searchbar { display: flex; gap: 10px; align-items: center; padding: 12px; }
.search-field { position: relative; flex: 1; display: flex; align-items: center; }
.search-field svg { position: absolute; left: 13px; color: var(--faint); pointer-events: none; }
.search-field input { width: 100%; height: 46px; padding: 0 13px 0 42px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 16px; background: var(--surface); }
.search-field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.searchbar .btn { min-height: 46px; }

/* ── Λογαριασμός ── */
.profile { display: flex; align-items: center; gap: 14px; }
.profile h2 { font-size: 18px; margin-bottom: 2px; }
.profile p { margin: 0; }
.balance { display: flex; flex-direction: column; gap: 12px; }
.balance.is-bad { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.balance.is-warn { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.balance-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.balance-top > div { display: flex; flex-direction: column; gap: 4px; }
.balance-amt { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.balance.is-bad .balance-amt { color: var(--bad); }
.balance.is-warn .balance-amt { color: var(--warn); }
.balance > p { margin: 0; }
.topup { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.topup .field { flex: 1 1 200px; }
.topup .chips { flex: 1 1 100%; order: 2; }
.topup .btn { min-height: 46px; }
.moves { list-style: none; margin: 0; padding: 0; }
.moves li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.moves li:last-child { border-bottom: 0; }
.moves-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); flex: 0 0 auto; }
.moves-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.moves-main b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.moves-main small { color: var(--muted); font-size: 12px; }
.moves-amt { font-weight: 700; color: var(--ok); font-variant-numeric: tabular-nums; }
.help-card { display: flex; align-items: flex-start; gap: 12px; }
.help-card > svg { color: var(--brand-ink); margin-top: 2px; }
.help-card p { margin: 2px 0 0; }

.month-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; }
.month-stats > div { padding: 12px 14px; border-radius: 12px; background: var(--sunken); }
.month-stats dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.month-stats dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .month-stats { grid-template-columns: 1fr 1fr; } }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.quick-item { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.quick-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.quick-item b { font-size: 15px; }
.quick-item small { color: var(--muted); font-size: 13px; }
.quick-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 6px; }
@media (max-width: 700px) { .quick { grid-template-columns: 1fr; gap: 10px; } }
@media (prefers-reduced-motion: reduce) { .quick-item { transition: none; } .quick-item:hover { transform: none; } }

/* ── σύνδεση ── */
body.is-bare { background: radial-gradient(900px 520px at 50% -8%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 70%), var(--bg); }
.login { width: 100%; max-width: 420px; margin: 9vh auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px 26px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; }
.login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.login-brand h1 { font-size: 22px; margin-top: 4px; }
.login-brand p { margin: 0; }
.login-logo { max-height: 64px; max-width: 200px; object-fit: contain; }
.login-mark { width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 78%, #fff), var(--brand)); color: var(--on-brand); display: grid; place-items: center; font-size: 22px; font-weight: 800; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.login-help { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ── παρακολούθηση ── */
.track { width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.track-head { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.track-card { display: flex; flex-direction: column; gap: 8px; }
.track-card .pill { align-self: flex-start; }
.track-eta { font-size: 18px; font-weight: 700; color: var(--brand-ink); margin: 0; }
.track-map { height: 320px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps li { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.steps li::before { content: ""; height: 6px; border-radius: 6px; background: var(--line); }
.steps li.is-done::before { background: var(--brand); }
.steps li.is-current::before { background: color-mix(in srgb, var(--brand) 55%, var(--line)); }
.steps li.is-fail::before { background: var(--bad); }
.steps li b { color: var(--ink); font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 13px; font-size: 14px; font-weight: 600; z-index: 60; box-shadow: var(--shadow-lg); }
@media (max-width: 760px) { .toast { bottom: 92px; } }
