/* ERProxenos · ανανέωση εμφάνισης (απόφαση Mike 17/11/2026). Φορτώνεται τελευταίο και αλλάζει μόνο χρώματα, γράμματα
   και επιφάνειες· οι κλάσεις και η διάταξη των άλλων αρχείων μένουν ίδιες.
   - Γράμματα: Commissioner (ελληνικής σχεδίασης, OFL), από τον ίδιο server (web/fonts).
   - Χρώματα: μελάνι με μπλε απόχρωση αντί για ουδέτερο γκρι.
   - Πλαϊνή στήλη: σκούρα, στο χρώμα της ενότητας. Από εκεί φαίνεται πού βρίσκεσαι· το περιεχόμενο μένει καθαρό. */
@font-face {
  font-family: "Commissioner"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/commissioner-greek.woff2") format("woff2-variations"), url("/fonts/commissioner-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Commissioner"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/commissioner-latin.woff2") format("woff2-variations"), url("/fonts/commissioner-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f1f3f8; --panel: #ffffff; --ink: #111a2e; --muted: #5a677e; --line: rgba(17, 26, 46, .10);
  --brand: #1463e0; --brand-press: #0f52be;
  --surface: #ffffff; --soft: #f7f8fb; --hover: rgba(17, 26, 46, .04); --border-strong: rgba(17, 26, 46, .24);
  --chip: rgba(17, 26, 46, .07); --grey-bg: rgba(17, 26, 46, .07); --fill: rgba(17, 26, 46, .055); --fill-press: rgba(17, 26, 46, .11);
  --info-bg: rgba(20, 99, 224, .10); --info-ink: #0f4fb3; --toast: rgba(17, 26, 46, .92);
  --bar-bg: rgba(255, 255, 255, .8); --scrim: rgba(10, 15, 30, .34);
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 0 0 1px rgba(17, 26, 46, .06), 0 1px 2px rgba(17, 26, 46, .04), 0 8px 22px -10px rgba(17, 26, 46, .12);
  --shadow-lg: 0 0 0 1px rgba(17, 26, 46, .06), 0 20px 48px -14px rgba(17, 26, 46, .30);
  /* Η πλαϊνή στήλη: το χρώμα της ενότητας, βαθύ. */
  --rail: color-mix(in srgb, var(--sec) 44%, #0a0f1e);
  font-family: "Commissioner", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}
:root[data-theme="dark"] {
  --bg: #0c111d; --panel: #161c2c; --ink: #edf0f7; --muted: #94a0b8; --line: rgba(160, 175, 205, .16);
  --brand: #4b8dff; --brand-press: #6ea3ff;
  --surface: #1f2740; --soft: #121827; --hover: rgba(160, 175, 205, .07); --border-strong: rgba(160, 175, 205, .32);
  --chip: rgba(140, 155, 190, .18); --grey-bg: rgba(140, 155, 190, .18); --fill: rgba(140, 155, 190, .14); --fill-press: rgba(140, 155, 190, .26);
  --info-bg: rgba(75, 141, 255, .18); --info-ink: #9fc2ff; --toast: rgba(44, 53, 80, .96);
  --bar-bg: rgba(22, 28, 44, .82); --scrim: rgba(0, 0, 0, .55);
  --shadow: 0 0 0 1px rgba(160, 175, 205, .11);
  --shadow-lg: 0 0 0 1px rgba(160, 175, 205, .14), 0 22px 54px -12px rgba(0, 0, 0, .7);
  --rail: color-mix(in srgb, var(--sec) 30%, #080c18);
}
:root[data-theme="dark"] .tabs button.on { background: #2e3857; }
:root[data-theme="dark"] .log { background: #070a12; }

/* Φόντο: μια ελαφριά ανάσα από το χρώμα της ενότητας πάνω, και μετά καθαρό. */
body, :root[data-theme="dark"] body {
  background: linear-gradient(180deg, color-mix(in srgb, var(--sec) 8%, var(--bg)) 0, var(--bg) 320px) no-repeat, var(--bg);
}

/* ---------- Πλαϊνή στήλη ---------- */
.side {
  background: var(--rail); border-right: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color .4s var(--ease);
  --side-ink: #ffffff; --side-muted: rgba(255, 255, 255, .64);
  --hover: rgba(255, 255, 255, .09); --fill: rgba(255, 255, 255, .10); --fill-press: rgba(255, 255, 255, .18); --line: rgba(255, 255, 255, .16);
}
.side .brand { font-weight: 650; font-size: 15.5px; }
.side .brand svg { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22), 0 2px 8px rgba(0, 0, 0, .28); }
.side .nav { padding: 8px 10px; border-radius: 10px; font-weight: 500; }
.side .nav svg { opacity: .78; }
.side .nav.active, :root[data-theme="dark"] .side .nav.active { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 650; }
.side .nav.active svg { opacity: 1; }
.side .nav .count, .side .nav.active .count { background: #fff; color: var(--rail); font-weight: 700; }
.side .who a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.side :where(button, a):focus-visible { outline-color: rgba(255, 255, 255, .8); }

/* ---------- Τίτλοι και αριθμοί ---------- */
.head h1, .crm-head h1 { font-weight: 700; letter-spacing: -.018em; }
.card h2, .drawer .top h2 { font-weight: 650; letter-spacing: -.008em; }
.sec-head h2 { font-weight: 700; letter-spacing: -.012em; }
.kpi { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; padding: 16px 18px 15px; }
.kpi .l, .stat .l { font-weight: 550; }
.kpi .v, .stat .v { font-weight: 650; letter-spacing: -.02em; }
.kpi.link { position: relative; }
.kpi.link.on { box-shadow: 0 0 0 2px var(--sec), var(--shadow); }

/* ---------- Κουμπιά, πεδία ---------- */
.btn { font-weight: 550; }
.btn.primary { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px color-mix(in srgb, var(--brand) 55%, transparent); }
.btn.primary:disabled { box-shadow: none; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
::selection { background: color-mix(in srgb, var(--brand) 26%, transparent); }
label.f > span { font-weight: 650; }
table.list th { font-weight: 650; }
.pill, .chip { font-weight: 650; }

/* ---------- Κάρτες παραγγελιών ---------- */
.ocard { border-radius: 16px; }
.ocode { font-weight: 700; }
.ocust { font-weight: 650; }
.oval b { font-weight: 700; }
.ocard-foot { flex-wrap: nowrap; }
.ocard-foot .oval { flex: none; }
.ocard-done { flex: none; }

/* ---------- Φωνή: παράθυρο ηχογράφησης ---------- */
.voice-row { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.voice-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; }
.voice-box.rec .voice-dot { background: var(--bad); animation: voice-pulse 1.2s ease-in-out infinite; }
.voice-box.busy .voice-dot { background: var(--brand); animation: none; }
.voice-clock { font-size: 30px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
@keyframes voice-pulse { 50% { opacity: .35; } }
.crm-voice { display: inline-flex; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .voice-box.rec .voice-dot { animation: none; } }

/* ---------- Συνημμένα στη σύνταξη email ---------- */
.notify-attach { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 8px; }
.notify-attach .help { margin: 0; }
.notify-contacts { display: grid; gap: 6px; max-height: 210px; overflow-y: auto; }
.notify-folds { display: grid; gap: 6px; }
.notify-fold { margin: 0; box-shadow: none; }
.notify-fold > summary { padding: 10px 14px; font-size: 14px; min-height: 44px; }
.notify-fold .fold-b { padding: 0 10px 10px; }
.nc-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 12px; background: var(--fill); }
.nc-row.sel { box-shadow: inset 0 0 0 1.5px var(--brand, #1463e0); }
.nc-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.nc-who small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.nc-b { flex: none; min-height: 34px; padding: 0 12px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 999px; background: var(--surface, #fff); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.nc-b.on { background: var(--brand, #1463e0); border-color: transparent; color: #fff; }
.osheet-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ins-mail { margin-left: 6px; min-height: 28px; padding: 0 8px; }
.notify-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.notify-files:empty { display: none; }
.notify-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--fill); font-size: 13px; }
.notify-file .nf-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.notify-file .nf-x { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; font-size: 12px; }
.notify-file .nf-x:hover { background: var(--fill-press); color: var(--ink); }

/* ---------- Πελάτης ως σύνδεσμος προς την καρτέλα του ---------- */
a.custlink { color: inherit; text-decoration: none; }
a.custlink:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Παράθυρο προόδου μιας ενέργειας ---------- */
.steps-box .proglog { min-height: 120px; max-height: 46vh; }
.steps-box .progline:last-child { color: var(--muted); }

/* ---------- Οδηγίες AI ---------- */
.instr-list { display: grid; gap: 0; }
.instr-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.instr-row:last-child { border-bottom: 0; }
.instr-text { flex: 1; min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }

/* ---------- Σύνδεση ---------- */
.center, :root[data-theme="dark"] .center { background: radial-gradient(1100px 560px at 50% -12%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 62%), var(--bg); }
.login h1 { font-weight: 700; letter-spacing: -.018em; }

/* ---------- Κινητό ---------- */
@media (max-width: 860px) {
  /* iPhone (απόφαση Mike 17/11/2026): η πάνω γραμμή κατεβαίνει 10px κάτω από την μπάρα κατάστασης, γιατί το logo και ο
     τίτλος έπεφταν πάνω στη θολή ζώνη της. Η λωρίδα στο χρώμα της ενότητας καλύπτει όλη τη ζώνη, χωρίς διαφάνεια. */
  .topbar {
    padding-top: calc(18px + env(safe-area-inset-top));
    background: linear-gradient(var(--sec) 0 calc(env(safe-area-inset-top) + 8px), transparent 0), color-mix(in srgb, var(--sec) 8%, var(--panel));
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .drawer .top { padding-top: calc(18px + env(safe-area-inset-top)); }
  .topbar b { font-weight: 650; }
  .tabbar button { font-weight: 550; }
  .ocard-foot { flex-wrap: wrap; }
}

/* Αριθμοί και ετικέτες σε κύκλο ή χάπι (απόφαση Mike 18/11/2026): το σχήμα μεγαλώνει με το κείμενο, ποτέ το αντίθετο.
   Ελάχιστο πλάτος ίσο με το ύψος, κενό δεξιά-αριστερά, μία γραμμή, χωρίς σταθερό πλάτος· αντέχει 2-3 ψηφία («99+») και μεγαλύτερα γράμματα. */
.count, .fold-n, .crm-chip, .crm-today, .chip, .ccard-count {
  box-sizing: border-box; width: auto; height: auto; flex: none; white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums;
}
.nav .count { min-width: 19px; }
.tabs .count { border-radius: 999px; }
.fold-n { display: inline-block; min-width: 22px; line-height: 20px; padding: 0 8px; }
@media (max-width: 860px) {
  /* Κάτω μπάρα: το badge μετρά από το κέντρο του κουμπιού και μπορεί να βγει προς τα δεξιά, αντί να στριμώχνεται στο μισό πλάτος. */
  .tabbar .count { box-sizing: border-box; min-width: 18px; padding: 0 5px; line-height: 18px; width: max-content; max-width: none; }
  /* Ετικέτες που στο κινητό πιάνουν δύο γραμμές: με πολύ στρογγυλές άκρες τα γράμματα έβγαιναν από τις γωνίες. */
  .pill, .crm-pay-label, .cstatus { border-radius: 11px; overflow-wrap: anywhere; }
  .cstatus { align-items: flex-start; }
}

@media (prefers-contrast: more) { body, :root[data-theme="dark"] body { background: var(--bg); } }
.instr-area { width: 100%; min-height: 260px; line-height: 1.55; }
.instr-foot { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-top: 6px; }
.instr-foot .bad { color: var(--bad, #c0392b); font-weight: 600; }
.instr-view { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; background: var(--soft, rgba(127,127,127,.08)); padding: 10px 12px; border-radius: 8px; max-height: 320px; overflow: auto; }

/* =====================================================================================================================
   ΕΠΑΓΓΕΛΜΑΤΙΚΗ ΕΜΦΑΝΙΣΗ (απόφαση Mike 21/11/2026). Το μπλοκ αυτό είναι τελευταίο και υπερισχύει όλων των άλλων αρχείων.
   Κανόνες: ουδέτερη παλέτα slate με ΕΝΑ μπλε (#1d4ed8)· πλαϊνή στήλη #111827 σε όλες τις ενότητες, το χρώμα ενότητας μόνο
   σε γραμμή 3px στο ενεργό στοιχείο· γωνίες 4–8px (στρογγυλά μόνο avatars, τελείες κατάστασης, ενδείξεις φόρτωσης)·
   περίγραμμα 1px αντί για σκιά, χωρίς blur και gradients· Segoe UI 13.5px, τίτλοι έως 21px, αριθμοί έως 22px, βάρος έως 600·
   χωρίς scale στο πάτημα, κινήσεις έως 150ms· πίνακες και φόρμες πιο πυκνά, αριθμοί tabular.
   Δεν αλλάζει καμία κλάση, HTML ή οριζόντιο κενό. Τρία μέρη: 1) μεταβλητές, 2) μηχανικές διορθώσεις ανά κανόνα
   (ίδιος selector με τα αρχικά αρχεία), 3) διορθώσεις με το χέρι.
   ===================================================================================================================== */

/* ---------- 1. Μεταβλητές ---------- */
:root {
  --bg: #f3f4f6; --panel: #ffffff; --ink: #111827; --muted: #566070; --line: #e2e5ea; --border-strong: #c3c9d2;
  --brand: #1d4ed8; --brand-press: #1e40af; --brand-ink: #ffffff; --brand-fill: #1d4ed8; --brand-fill-press: #1e40af;
  --surface: #ffffff; --soft: #f8f9fb; --hover: rgba(17, 24, 39, .04);
  --chip: #eceef2; --grey-bg: #eceef2; --fill: rgba(17, 24, 39, .055); --fill-press: rgba(17, 24, 39, .10); --switch-off: #c3c9d2;
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
  --ok-bg: #edf7f0; --warn-bg: #fdf4e7; --bad-bg: #fbeded; --info-bg: #edf2fd;
  --ok-ink: #166534; --warn-ink: #8a4b08; --bad-ink: #991b1b; --info-ink: #1e40af; --them: #475569;
  --toast: #111827; --bar-bg: #ffffff; --side-bg: #111827; --scrim: rgba(17, 24, 39, .42);
  --radius: 8px; --radius-sm: 6px;
  --shadow: 0 0 0 1px var(--line);
  --shadow-lg: 0 0 0 1px var(--border-strong), 0 6px 16px -6px rgba(17, 24, 39, .16);
  --rail: #111827;
  /* Το χρώμα της ενότητας κρατιέται μόνο για τη γραμμή του ενεργού στοιχείου στην πλαϊνή στήλη. */
  --sec-line: var(--sec);
  --chat-soft: var(--fill);
  --crm-start: #1d4ed8; --crm-hold: #b45309; --crm-bill: #475569; --crm-done: #15803d; --crm-off: #8b93a1; --crm-col: rgba(17, 24, 39, .045);
  font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13.5px; letter-spacing: 0;
}
/* Σκοτεινό θέμα: το ίδιο μπλε, πιο ανοιχτό μόνο όπου είναι γράμματα ή γραμμές, για να διαβάζεται· τα γεμάτα κουμπιά μένουν #1d4ed8. */
:root[data-theme="dark"] {
  --bg: #0d1117; --panel: #151b24; --ink: #e6e9ef; --muted: #9aa4b2; --line: rgba(148, 163, 184, .18); --border-strong: rgba(148, 163, 184, .36);
  --brand: #6c98f5; --brand-press: #8fb1f8; --brand-fill: #1d4ed8; --brand-fill-press: #2a5ae0;
  --surface: #1b222d; --soft: #11161d; --hover: rgba(148, 163, 184, .08);
  --chip: rgba(148, 163, 184, .16); --grey-bg: rgba(148, 163, 184, .16); --fill: rgba(148, 163, 184, .12); --fill-press: rgba(148, 163, 184, .22); --switch-off: rgba(148, 163, 184, .3);
  --ok: #3fb96b; --warn: #e0a03a; --bad: #f07b72;
  --ok-bg: rgba(63, 185, 107, .14); --warn-bg: rgba(224, 160, 58, .14); --bad-bg: rgba(240, 123, 114, .14); --info-bg: rgba(108, 152, 245, .16);
  --ok-ink: #86d9a3; --warn-ink: #f0c27a; --bad-ink: #f5a8a1; --info-ink: #a9c3fa; --them: #a3aebd;
  --toast: #2a3340; --bar-bg: #151b24; --side-bg: #111827; --scrim: rgba(0, 0, 0, .6);
  --shadow: 0 0 0 1px var(--line);
  --shadow-lg: 0 0 0 1px var(--border-strong), 0 10px 24px -8px rgba(0, 0, 0, .6);
  --rail: #111827;
  --crm-start: #6c98f5; --crm-hold: #e0a03a; --crm-bill: #a3aebd; --crm-done: #3fb96b; --crm-off: #7d8796; --crm-col: rgba(148, 163, 184, .07);
}
/* Μέσα στη σελίδα το «χρώμα ενότητας» είναι πάντα το ένα μπλε: ό,τι το χρησιμοποιούσε (γραφήματα, μπάρες, εστίαση) γίνεται ουδέτερο. */
body, :root[data-theme="dark"] body { --sec: var(--brand); background: var(--bg); transition: none; }

/* ---------- 2. Μηχανικές διορθώσεις ανά κανόνα: γωνίες, blur, scale στο πάτημα, βάρη, διάρκειες ---------- */
.side { -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav:active { transform: none; }
.nav .count { border-radius: 4px; }
.head h1 { font-weight: 600; }
.stat .v { font-weight: 600; }
.btn { border-radius: 6px; }
.btn:active { transform: none; }
.tabs { border-radius: 6px; }
.tabs button { transition: background-color .15s var(--ease), box-shadow .15s var(--ease); }
.tabs .count { border-radius: 6px; }
input.search { border-radius: 6px !important; }
.switch input { border-radius: 6px; transition: background-color .15s var(--ease); }
.switch input::after { border-radius: 4px; transition: transform .15s var(--ease-out); }
.pill { border-radius: 4px; }
.alert { border-radius: 6px; }
.drawer .top { -webkit-backdrop-filter: none; backdrop-filter: none; }
.transcript { border-radius: 6px; }
.files a { border-radius: 6px; }
.picker .menu { border-radius: 6px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.login { border-radius: 8px; }
.login svg { border-radius: 6px; }
.login h1 { font-weight: 600; }
.steps button { border-radius: 6px; transition: transform .12s var(--ease), background-color .15s var(--ease); }
.steps button:active { transform: none; }
.log { border-radius: 6px; }
#toast { border-radius: 8px; -webkit-backdrop-filter: none; backdrop-filter: none; transition: opacity .15s var(--ease), transform .15s var(--ease-out); }
#toast.show.click { border-radius: 8px; }
.modal { border-radius: 8px; }
.sideact:active { transform: none; }
.proglog { border-radius: 6px; }
.progline .ico { font-weight: 600; }
.iconbtn { border-radius: 6px; }
.iconbtn:active { transform: none; }
.sheet-group { border-radius: 8px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sheet-cancel { border-radius: 8px; }
body { transition: background-color .15s ease; }
.kpi { border-radius: 8px; -webkit-backdrop-filter: none; backdrop-filter: none; }
.kpi .v { font-weight: 600; }
.kpi.link { transition: transform .12s var(--ease-out), box-shadow .15s var(--ease); }
.kpi.link:active { transform: none; }
.sec-head h2 { font-weight: 600; }
.chipbtn { border-radius: 6px; }
.chipbtn:active { transform: none; }
.ocard { border-radius: 8px; transition: transform .15s var(--ease-out), box-shadow .15s var(--ease); }
.ocard:active { transform: none; }
.ocode { font-weight: 600; }
.ocust.big { font-weight: 600; }
.oval b { font-weight: 600; }
.oempty { border-radius: 8px; }
.skeleton { border-radius: 8px; }
.iico { border-radius: 6px; }
.osheet-total { border-radius: 8px; }
.osheet-total b { font-weight: 600; }
.fact { border-radius: 6px; }
.ototals .grand b { font-weight: 600; }
.osheet-wrap.busy > * { transition: opacity .15s var(--ease); }
.notify-preview { border-radius: 6px; }
.thread-row { border-radius: 6px; }
.aicost-kpis div { border-radius: 6px; }
.fold > summary::after { transition: transform .15s var(--ease); }
.fold-n { border-radius: 4px; }
.errbar { border-radius: 6px; }
.crm-filter { border-radius: 6px; }
.crm .crm-search { border-radius: 6px; }
.crm-col { border-radius: 8px; }
.crm-card { border-radius: 6px; }
.crm-card:active, .crm-slot:active { transform: none; }
.crm-chip { border-radius: 4px; }
.crm-day { border-radius: 8px; }
.crm-today { border-radius: 4px; }
.crm-slot { border-radius: 6px; }
.crm-tech { border-radius: 8px; }
.crm-tech:active { transform: none; }
.crm-tfig b { font-weight: 600; }
.crm-rows { border-radius: 8px; }
.crm-tile { border-radius: 6px; font-weight: 600; }
.crm-tile.big { border-radius: 8px; }
.crm-pay { border-radius: 8px; }
.crm-pay-label { border-radius: 4px; }
.crm-info { border-radius: 6px; }
.crm-info-pop { border-radius: 6px; }
.crm-profile { border-radius: 8px; }
.crm-brief { border-radius: 8px; }
.crm-states button { border-radius: 6px; }
.crm-states button:active { transform: none; }
.crm-picked { border-radius: 6px; }
.chatx-searchbox { border-radius: 6px; }
.chatx-li { border-radius: 6px; }
.chatx-li-open { border-radius: 6px; }
.cmsg.me .cbubble { border-radius: 8px 8px 6px 8px; }
.cmsg.bot .cbubble { border-radius: 6px 8px 8px 8px; }
.cstatus { border-radius: 4px; }
.md .md-h { font-weight: 600; }
.md-code { border-radius: 6px; }
.md-tablewrap { border-radius: 6px; }
.ccard-chev { transition: transform .15s var(--ease); }
.ctable-filter[type=search] { border-radius: 6px; }
.chat-sql { border-radius: 6px; }
.cdiff { border-radius: 6px; }
.chatx-hero-icon { border-radius: 8px; }
.chatx-hero h2 { font-weight: 600; }
.chatx-tile { border-radius: 8px; }
.chatx-tile:active { transform: none; }
.chatx-chip, .chatx-chip.saved button { border-radius: 6px; }
.chatx-chip.saved button:first-child { border-radius: 6px 0 0 6px; }
.chatx-chip.saved .x { border-radius: 0 6px 6px 0; }
.chatx-field { border-radius: 8px; }
.chatx-tool { border-radius: 6px; }
.chatx-send { border-radius: 6px; }
.chatx-send:active { transform: none; }
.pu-drop { border-radius: 8px; }
.pu-pdf { border-radius: 6px; }
.pu-img { border-radius: 6px; }
.pu-line { border-radius: 6px; }
.dun-amount { font-weight: 600; }
.ins-row { border-radius: 6px; }
.ins-track { border-radius: 4px; }
.ins-fill { border-radius: 4px; }
.sav-h { font-weight: 600; }
.sav-small b { font-weight: 600; }
.bil-h { font-weight: 600; }
.billbar { border-radius: 6px; }
.side { transition: background-color .15s var(--ease); }
.side .brand { font-weight: 600; }
.side .nav { border-radius: 6px; }
.side .nav.active, :root[data-theme="dark"] .side .nav.active { font-weight: 600; }
.side .nav .count, .side .nav.active .count { font-weight: 600; }
.head h1, .crm-head h1 { font-weight: 600; }
.card h2, .drawer .top h2 { font-weight: 600; }
.sec-head h2 { font-weight: 600; }
.kpi .v, .stat .v { font-weight: 600; }
label.f > span { font-weight: 600; }
table.list th { font-weight: 600; }
.pill, .chip { font-weight: 600; }
.ocard { border-radius: 8px; }
.ocode { font-weight: 600; }
.ocust { font-weight: 600; }
.oval b { font-weight: 600; }
.voice-clock { font-weight: 600; }
.nc-row { border-radius: 6px; }
.nc-b { border-radius: 6px; }
.notify-file { border-radius: 4px; }
.notify-file .nf-x { border-radius: 6px; }
.login h1 { font-weight: 600; }
.tabs .count { border-radius: 4px; }
@media (max-width: 860px) {
  .topbar { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar button:active { transform: none; }
  .tabbar .count { border-radius: 4px; }
  .pu-bar { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar b { font-weight: 600; }
  .pill, .crm-pay-label, .cstatus { border-radius: 6px; }
}

/* ---------- 3. Διορθώσεις με το χέρι ---------- */

/* Πλαϊνή στήλη: ουδέτερη σκούρα παντού. Το χρώμα της ενότητας φαίνεται μόνο στη γραμμή 3px του ενεργού στοιχείου. */
.side { background: var(--rail); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06); transition: none; }
.side .brand { font-weight: 600; }
.brand svg, .side .brand svg, .login svg { box-shadow: none; }
.side .nav.active, :root[data-theme="dark"] .side .nav.active { background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--sec-line); }
.side .nav .count, .side .nav.active .count { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }

/* Τίτλοι: χωρίς το διακοσμητικό εικονίδιο της ενότητας, έως 21px. */
.head h1::before, .crm-head h1::before { content: none; }
.head h1, .crm-head h1, .chatx-head h1, .login h1 { font-family: inherit; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.card h2, .drawer .top h2, .sec-head h2, .sav-h, .bil-h { font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: 0; }
.crm-profile h2 { font-family: inherit; font-size: 16px; }
.chatx-hero h2 { font-size: 18px; font-weight: 600; letter-spacing: 0; }

/* Αριθμοί: έως 22px, πάντα tabular. */
.stat .v, .kpi .v, .sav-stat .v, .sav-small b, .crm-tile.big, .osheet-total b, .voice-clock {
  font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.sav-stat .v.sav-na, .ocust.big { font-size: 18px; }
.crm-fact b, .crm-tfig b, .ototals .grand b, .crm-kpis b, .dun-amount, .aicost-kpis b, .crm-day .dn { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.oval b { font-size: 15px; }
table, .num, .kpi, .stat, input[type=number] { font-variant-numeric: tabular-nums; }
.kpi .l, .stat .l { font-weight: 500; }
.kpi { background: var(--panel); }
.kpi.link .v, .ocode, .osheet-total b, .ototals .grand b { color: var(--ink); }
.kpi.link:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.kpi.link.on { box-shadow: 0 0 0 1px var(--brand), inset 0 0 0 1px var(--brand); }
.osheet-total { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }

/* Κουμπιά: επίπεδα, με περίγραμμα· ένα γεμάτο μπλε για την κύρια ενέργεια. */
.btn { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); font-weight: 500; }
.btn:hover { background: var(--soft); }
.btn:active { background: var(--fill-press); }
.btn.primary { background: var(--brand-fill); color: #fff; box-shadow: none; }
.btn.primary:hover, .btn.primary:active { background: var(--brand-fill-press); }
.btn.danger-fill { box-shadow: none; }
.btn:focus-visible, .nav:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.steps button.on, .nc-b.on { background: var(--brand-fill); }
.switch input:checked { background: var(--brand-fill); }
.switch input::after { box-shadow: 0 0 0 1px rgba(17, 24, 39, .14); }

/* Πεδία. */
/* Ίδια λίστα (και ειδικότητα) με το style.css, ώστε η εστίαση και το κόκκινο του λάθους να συνεχίσουν να υπερισχύουν. */
input[type=text], input[type=password], input[type=number], input[type=search], input[type=email], input[type=date], input[type=datetime-local], select, textarea { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input.search { background: var(--surface) !important; border-color: var(--border-strong) !important; }
label.f > span { font-weight: 600; }

/* Καρτέλες, ετικέτες, μετρητές. */
.tabs button { border-radius: 4px; }
.tabs button.on, :root[data-theme="dark"] .tabs button.on { background: var(--surface); box-shadow: 0 0 0 1px var(--border-strong); }
.tabs .count { border-radius: 4px; background: var(--brand-fill); }
.chip, .fold-n { border-radius: 4px; }
.chip.ok { color: var(--ok-ink); }
.pill, .chip { font-weight: 600; }

/* Κάρτες με γραμμή κατάστασης: στο hover αλλάζει μόνο το περίγραμμα. */
.crm-card:hover, .crm-slot:hover { box-shadow: 0 0 0 1px var(--border-strong), inset 3px 0 0 var(--tone); }

/* Σύνδεση: καθαρό φόντο. */
.center, :root[data-theme="dark"] .center { background: var(--bg); }

/* Μηνύματα και παράθυρα: χωρίς μεγέθυνση, μόνο σύντομη εμφάνιση. */
#toast { transform: translateY(8px); }
#toast.show { transform: none; }
#toast.bad { background: #b91c1c; }
@keyframes px-pop { from { opacity: 0; } }
@keyframes px-modal { from { opacity: 0; } }
@keyframes px-sheet { from { transform: translateX(16px); opacity: 0; } }
@keyframes px-up { from { transform: translateY(12px); opacity: 0; } }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes crm-flash { 0% { background-color: var(--info-bg); } 100% { background-color: var(--crm-col); } }
.drawer-bg, .drawer, .modal, .sheet, .picker .menu, .cmsg.new, .main.swipe-from-right, .main.swipe-from-left, .crm-info-wrap.open .crm-info-pop { animation-duration: .15s; }
.crm-day.flash { animation-iteration-count: 1; }
.skeleton { background: var(--fill); animation: none; }

/* Βοηθός: εικονίδια ουδέτερα, το μπλε μόνο στο δικό σου μήνυμα και στην αποστολή. */
.chatx-bar-icon, .cavatar, .ccard-icon, .chatx-hero-icon, .chatx-tile-icon, .chatx-chip.saved button:first-child svg { color: var(--muted); }
.cmsg.me .cbubble, .chatx-send { background: var(--brand-fill); }
.cbubble.streaming > :last-child::after, .cdots i { background: var(--muted); }
.md blockquote { border-left-color: var(--border-strong); }
.chatx-field:focus-within { box-shadow: 0 0 0 1px var(--brand), 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }

/* Πίνακες και φόρμες πιο πυκνά στον υπολογιστή (μόνο το ύψος· τα δεξιά-αριστερά κενά μένουν). Στο κινητό μένουν όπως ήταν, για το δάχτυλο. */
@media (min-width: 861px) {
  table.list th { padding-top: 8px; padding-bottom: 6px; letter-spacing: 0; border-bottom-color: var(--border-strong); }
  table.list td { padding-top: 7px; padding-bottom: 7px; }
  label.f { margin-bottom: 12px; }
  label.f > span { margin-bottom: 4px; font-size: 12.5px; }
  input[type=text], input[type=password], input[type=number], input[type=search], input[type=email], input[type=date], input[type=datetime-local], select, textarea { padding-top: 6px; padding-bottom: 6px; }
}

@media (max-width: 860px) {
  .head h1, .crm-head h1, .chatx-head h1 { font-size: 20px; }
  .stat .v, .kpi .v, .sav-stat .v { font-size: 20px; }
  /* iPhone: η σελίδα μπαίνει κάτω από την μπάρα κατάστασης, που έχει λευκά γράμματα· η λωρίδα της μένει σκούρα, με λίγο από το χρώμα της ενότητας. */
  .topbar { background: linear-gradient(var(--rail) 0 calc(env(safe-area-inset-top) + 8px), transparent 0), color-mix(in srgb, var(--sec-line) 5%, var(--panel)); box-shadow: inset 0 -1px 0 var(--line); }
  .tabbar { background: var(--panel); }
  .tabbar button.on { color: var(--sec-line); }
  .chatx-field { box-shadow: 0 0 0 1px var(--border-strong); }
}
@media (prefers-reduced-motion: reduce) { .drawer-bg, .drawer, .modal, .sheet, .picker .menu, .cmsg.new { animation-duration: .01ms; } }

/* ---------- 4. Ασθενές χρώμα ενότητας (απόφαση Mike 21/11/2026: «βοηθάει να καταλαβαίνεις πού βρίσκεσαι») ----------
   Το χρώμα της ενότητας γυρίζει πολύ σβηστό: στην πλαϊνή στήλη, στο φόντο της σελίδας και στο ενεργό στοιχείο του μενού.
   Κουμπιά, σύνδεσμοι και εστίαση μένουν στο ένα μπλε. */
:root { --rail: color-mix(in srgb, var(--sec) 16%, #111827); }
:root[data-theme="dark"] { --rail: color-mix(in srgb, var(--sec) 12%, #111827); }
body { background: color-mix(in srgb, var(--sec-line) 5%, var(--bg)); }
:root[data-theme="dark"] body { background: color-mix(in srgb, var(--sec-line) 4%, var(--bg)); }
.side .nav.active, :root[data-theme="dark"] .side .nav.active { background: color-mix(in srgb, var(--sec-line) 26%, rgba(255, 255, 255, .06)); }

/* ---------- 5. Κινητό: καρτέλες ενότητας και πάνω λωρίδα (απόφαση Mike 21/11/2026) ---------- */
@media (max-width: 860px) {
  /* Πολλές καρτέλες (π.χ. CRM): ίσα κελιά σε πλέγμα 4 στηλών αντί για άνισες σειρές. Λίγες καρτέλες: μία σειρά που γεμίζει το πλάτος. */
  .tabs { width: 100%; padding: 3px; gap: 3px; border-radius: 8px; }
  .tabs button { padding: 8px 6px; border-radius: 6px; font-size: 13.5px; line-height: 1.2; white-space: nowrap; color: var(--muted); }
  .tabs button.on { color: var(--ink); }
  .tabs:has(> button:nth-child(5)) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabs:has(> button:nth-child(5)) button { padding: 8px 2px; font-size: 13px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
  .tabs:has(> button:nth-child(5)):not(:has(> button:nth-child(7))) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Η ζώνη της μπάρας κατάστασης του iPhone είναι θολή: σκούρο χρώμα εκεί βγαίνει μουντό γκρι. Μπαίνει καθαρό το χρώμα της ενότητας. */
  .topbar { background: linear-gradient(var(--sec-line) 0 calc(env(safe-area-inset-top) + 8px), transparent 0), var(--panel); }
}

/* ---------- 6. Χρώμα ενότητας μόνο στο πάνω μέρος, με gradient (απόφαση Mike 21/11/2026, αντικαθιστά το μέρος 4) ----------
   Η πλαϊνή στήλη και το υπόλοιπο φόντο μένουν ουδέτερα. Το χρώμα της ενότητας είναι έντονο στη ζώνη της ώρας του iPhone
   και σβήνει σταδιακά προς τα κάτω, μέσα από την πάνω μπάρα, έως τα ~380px της σελίδας. Έτσι φαίνεται πού βρίσκεσαι
   (wayfinding) χωρίς να βάφεται όλη η οθόνη. */
:root, :root[data-theme="dark"] { --rail: #111827; --sec-top: color-mix(in srgb, var(--sec-line) 20%, var(--bg)); --sec-mid: color-mix(in srgb, var(--sec-line) 9%, var(--bg)); }
:root[data-theme="dark"] { --sec-top: color-mix(in srgb, var(--sec-line) 24%, var(--bg)); --sec-mid: color-mix(in srgb, var(--sec-line) 10%, var(--bg)); }
body, :root[data-theme="dark"] body { background: linear-gradient(180deg, var(--sec-top) 0, var(--sec-mid) 160px, var(--bg) 380px) no-repeat, var(--bg); }
.side .nav.active, :root[data-theme="dark"] .side .nav.active { background: rgba(255, 255, 255, .08); }
@media (max-width: 860px) {
  /* Ζώνη ώρας: καθαρό χρώμα ενότητας (λευκά γράμματα της μπάρας κατάστασης). Από κάτω η μπάρα συνεχίζει το gradient,
     ημιδιάφανη με θόλωμα, ώστε όταν κυλάς το περιεχόμενο να περνά από κάτω της σαν υλικό (iOS) και όχι να κόβεται. */
  .topbar {
    background:
      linear-gradient(var(--sec-line) 0 calc(env(safe-area-inset-top) + 8px), transparent 0),
      linear-gradient(180deg, color-mix(in srgb, var(--sec-line) 26%, var(--bg)) 0, color-mix(in srgb, var(--sec-top) 88%, transparent) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
    box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--sec-line) 14%, transparent);
  }
  .topbar b { letter-spacing: -.015em; }
  .crm-head h1, .head h1, .chatx-head h1 { letter-spacing: -.02em; }
}
@media (prefers-reduced-transparency: reduce) { .topbar { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; } }
@media (prefers-contrast: more) { body, :root[data-theme="dark"] body { background: var(--bg); } }
/* Οι καρτέλες κάθονται πάνω στο gradient: ημιδιάφανο φόντο, ώστε να μην φαίνονται γκρι μπάλωμα. */
.tabs { background: color-mix(in srgb, var(--ink) 6%, transparent); }
:root[data-theme="dark"] .tabs { background: color-mix(in srgb, var(--ink) 9%, transparent); }

/* Μπάρα «νέα έκδοση» (απόφαση Mike 21/11/2026): κάτω δεξιά στον υπολογιστή, πάνω από την κάτω μπάρα στο κινητό. */
.verbar { position: fixed; z-index: 60; right: 20px; bottom: 20px; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--panel); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 13px; line-height: 1.4; }
.verbar .grow { flex: 1; min-width: 0; }
.verbar b { font-weight: 600; }
.verbar span { color: var(--muted); }
@media (max-width: 860px) {
  .verbar { left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); max-width: none; flex-wrap: wrap; }
  .verbar .grow { flex-basis: 100%; }
  .verbar .btn { flex: 1; }
}

/* ---------- 7. Logo ERP και τίτλος (απόφαση Mike 21/11/2026) ---------- */
.wordmark { font-weight: 600; letter-spacing: -.02em; }
.wm-p { color: var(--brand); }
.side .wordmark { color: #fff; font-size: 16px; }
.side .wm-p { color: #7aa2f7; }
.brand svg, .topbar > svg, .login svg { border-radius: 6px; }
.side .brand { align-items: center; }
