/* Γραμματοσειρά μέσα στην εφαρμογή (variable font, βάρη 400–700) */
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 400 700; font-display: swap; src: 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: 400 700; font-display: swap; src: url('../fonts/commissioner-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Commissioner'; font-style: normal; font-weight: 400 700; font-display: swap; src: 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; }
/* Πρόγραμμα εργασίας v2 — Σύστημα εμφάνισης.
   Ήρεμο: λευκό και σκούρο μπλε. Χρώμα μόνο όπου σημαίνει κάτι (εντάξει / προσοχή / σφάλμα). Καθόλου χρυσό.
   Βασικό μέγεθος γραμμάτων 17px. Ένα αρχείο για βάση και κοινά στοιχεία· οι σελίδες στο pages.css. */

/* ── Χρώματα και μεγέθη ── */
:root {
  --bg: #f4f6fb; --surface: #ffffff; --surface-2: #f2f4fa; --surface-3: #e8ecf6;
  --ink: #131a35; --muted: #566083; --faint: #8990ab;
  --line: #e2e6f1; --line-2: #cfd5e6;
  --primary: #3b5bdb; --primary-strong: #2f4bc2; --primary-soft: #edf1fe; --on-primary: #ffffff;
  --navy: #1e2a5a; --navy-soft: #e7eaf5;
  /* Επισήμανση χωρίς κόκκινο/πράσινο/πορτοκαλί: όλα στις αποχρώσεις του θέματος. «Προσοχή» = έντονο μπλε, «σοβαρό» = σκούρο μπλε. */
  --ok: var(--primary); --ok-soft: var(--primary-soft); --warn: var(--primary-strong); --warn-soft: var(--primary-soft); --err: var(--navy); --err-soft: var(--navy-soft);
  --shadow-1: 0 1px 2px rgba(19, 26, 53, .05), 0 1px 1px rgba(19, 26, 53, .03);
  --shadow-2: 0 2px 6px rgba(19, 26, 53, .05), 0 12px 32px rgba(19, 26, 53, .08);
  --shadow-3: 0 24px 64px rgba(10, 16, 40, .28);
  --r-s: 10px; --r-m: 14px; --r-l: 18px; --r-pill: 999px;
  --font: 'Commissioner', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --side-w: 256px; --tab-h: 68px; --top-h: 64px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.45, 0, .25, 1);
  --dur-in: 200ms; --dur-out: 160ms;
  --press-release: scale 120ms var(--ease-in-out);
  --ease: var(--ease-out);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0d1226; --surface: #161c37; --surface-2: #1d2445; --surface-3: #283058;
  --ink: #eef1fc; --muted: #a8b0d0; --faint: #7a83a8;
  --line: #262e55; --line-2: #36406e;
  --primary: #7a94ff; --primary-strong: #93a8ff; --primary-soft: #222c5c; --on-primary: #0d1226;
  --navy: #c9d2f5; --navy-soft: #232b52;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 10px 30px rgba(0, 0, 0, .35); --shadow-3: 0 24px 64px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ── Βάση ── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 var(--font); -webkit-font-smoothing: antialiased; touch-action: manipulation; overscroll-behavior-y: none; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 1.55rem; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
small { font-size: .84rem; }
b, strong { font-weight: 650; }
a { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(button, a.btn) { transition: var(--press-release); }
[hidden] { display: none !important; }
.ic { flex: none; display: block; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--primary) 25%, transparent); }
@media (prefers-reduced-motion: reduce) {
  :root { --dur-in: 0ms; --dur-out: 0ms; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── Κουμπιά ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r-s);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .96rem; text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s, var(--press-release); white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) {
  :is(button, a.btn):not(:disabled, [aria-disabled="true"]):active { scale: .97; transition: none; }
}
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgba(59, 91, 219, .35); }
.btn.primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: var(--surface); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--navy); border-color: var(--navy); color: var(--surface); }
.btn.danger-ghost { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, var(--line)); background: transparent; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .88rem; border-radius: 9px; gap: 6px; }
.btn.lg { min-height: 56px; font-size: 1.06rem; padding: 0 24px; border-radius: var(--r-m); }
.btn.block { display: flex; width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); transition: background .15s, color .15s, var(--press-release); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.link { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ── Πεδία φόρμας ── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-l { font-size: .84rem; font-weight: 600; color: var(--muted); }
.field-h { color: var(--faint); line-height: 1.4; }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="month"], input[type="datetime-local"], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
textarea { min-height: 76px; resize: vertical; line-height: 1.45; }
select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238990ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: var(--faint); }
/* Ημερομηνία πάντα ως ΗΗ/ΜΜ/ΕΕΕΕ, όποια γλώσσα κι αν έχει ο browser (με το πληκτρολόγιο φαίνεται το κανονικό πεδίο) */
.date { position: relative; display: block; min-width: 0; }
.date input { color: transparent; }
.date input:focus { color: var(--ink); }
.date-t { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.date-t.empty { color: var(--faint); }
.date input:focus + .date-t { display: none; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--primary); flex: none; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check small { display: block; font-weight: 400; color: var(--faint); margin-top: 2px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-msg { min-height: 1.3em; font-size: .9rem; color: var(--navy); font-weight: 600; }
.form-msg.ok { color: var(--ok); }
@media (max-width: 420px) { .cols2 { grid-template-columns: 1fr; } }

/* ── Επιφάνειες ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.card.pad { padding: 16px 18px; }
.card-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px 0; }
.card-h h2 { flex: 1; min-width: 0; }
.card-h + * { margin-top: 10px; }
.card-b { padding: 0 18px 16px; }
.sec-t { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 4px 4px 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pad-b { padding: 0 18px 16px; }
.note { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.note.box { background: var(--surface-2); border-radius: var(--r-s); padding: 10px 12px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }

/* ── Σήματα κατάστασης ── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; line-height: 1.3;
  background: var(--surface-2); color: var(--muted); border: 1px solid transparent; }
/* Τρεις βαθμίδες, όλες στο θέμα: απλή (απαλό φόντο) · προσοχή (περίγραμμα + κουκκίδα) · σοβαρό (γεμάτο σκούρο μπλε + «!») */
.chip.ok, .chip.info { background: var(--primary-soft); color: var(--primary-strong); }
.chip.warn { background: var(--surface); color: var(--primary-strong); box-shadow: inset 0 0 0 1.5px var(--primary); font-weight: 650; } .chip.err { background: var(--navy); color: var(--surface); font-weight: 700; }
.chip.na { background: var(--surface-2); color: var(--faint); }
.chip.warn::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }
.chip.err::before { content: '!'; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); color: var(--navy); font-size: .72rem; font-weight: 800; line-height: 1; flex: none; }
button.chip { border: 1px solid transparent; transition: filter .15s, var(--press-release); text-align: left; }
button.chip:hover { filter: brightness(.96); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; background: var(--faint); }

/* ── Επιλογή «ένα από πολλά» ── */
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-2); border-radius: 13px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: background .15s, color .15s, var(--press-release); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.seg .badge { margin-left: 2px; }

/* ── Λίστα με γραμμές ── */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-1); }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; min-height: 56px; transition: background .15s, var(--press-release); }
.row:first-child { border-top: 0; }
button.row:hover { background: var(--surface-2); }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-t strong { font-weight: 600; }
.row-t small { color: var(--muted); line-height: 1.35; }
.row-c { color: var(--faint); display: grid; place-items: center; }
.tile { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); flex: none; }
/* Όλα τα εικονίδια στο χρώμα του θέματος — το επείγον φαίνεται από το κείμενο και τον αριθμό, όχι από το χρώμα του εικονιδίου */
.tile.danger, .tile.warning { background: var(--navy); color: var(--surface); } .tile.plain { background: var(--surface-2); color: var(--muted); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--primary); color: var(--on-primary); font-size: .74rem; font-weight: 700; }
.badge.hot { background: var(--navy); color: var(--surface); }

/* ── Άνθρωποι ── */
.avatar { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-3); color: var(--muted); font-weight: 700; font-size: .86rem; flex: none; letter-spacing: .02em; }
.avatar.in { background: var(--navy); color: var(--surface); } .avatar.missing { background: var(--primary-soft); color: var(--primary); } .avatar.left { background: var(--surface-2); color: var(--faint); }
.avatar.me { background: var(--primary-soft); color: var(--primary); }
.avatar.lg { width: 64px; height: 64px; font-size: 1.2rem; }

/* ── Πίνακες ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th { text-align: left; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; transition: background .15s; }
.tbl tr.click:hover { background: var(--surface-2); }
.tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line-2); border-bottom: 0; }
.tbl td small { display: block; color: var(--muted); }
.tbl td:first-child b, .tbl .chip { white-space: nowrap; }

/* ── Κενή κατάσταση ── */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 16px; color: var(--muted); text-align: center; }
.empty-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); color: var(--faint); }
.empty.ok .empty-ic { background: var(--primary-soft); color: var(--primary); }

/* ── Παράθυρα ── */
body.modal-open { overflow: hidden; }
html.scroll-lock { overscroll-behavior: none; }
@media (pointer: coarse) { html.scroll-lock, html.scroll-lock body { overflow: hidden; } }
.modal-b, .dialog, .modal { overscroll-behavior: contain; }
.modal-back, .dialog-back { position: fixed; inset: 0; z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 17, 38, .5); opacity: 0; transition: opacity var(--dur-out) var(--ease-in-out); }
.modal-back.show, .dialog-back.show { opacity: 1; transition: opacity var(--dur-in) var(--ease-out); }
.modal-back.closing, .dialog-back.closing, .cf:not(#cf.show) { pointer-events: none; }
.dialog-back { z-index: 1000; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.modal, .dialog, .pinpad {
  transform: scale(.95); transform-origin: var(--motion-origin, 50% 50%);
  transition: transform var(--dur-out) var(--ease-in-out);
}
:is(.modal-back, .dialog-back).show > :is(.modal, .dialog, .pinpad) { transform: none; transition: transform var(--dur-in) var(--ease-out); }
@starting-style {
  :is(.modal-back, .dialog-back).show { opacity: 0; }
  :is(.modal-back, .dialog-back).show > :is(.modal, .dialog, .pinpad) { transform: scale(.95); }
}
/* Το σώμα παραμένει το ίδιο στοιχείο όταν αλλάζει το περιεχόμενό του. */
.modal-back.show .modal-b, .dialog-back.show :is(.pin-lbl, .pin-keys) {
  animation: detail-settle var(--dur-out) var(--ease-out) 30ms backwards;
}
.dialog-back.show .pin-keys { animation-delay: 60ms; }
@keyframes detail-settle { from { opacity: .7; translate: 0 3px; } }
.modal { width: 100%; max-width: 560px; max-height: min(92vh, 900px); max-height: min(92dvh, 900px); display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-3); outline: none; }
.modal.sm { max-width: 440px; } .modal.lg { max-width: 860px; } .modal.xl { max-width: 1080px; }
.modal-h { display: flex; align-items: center; gap: 12px; padding: 16px 12px 12px 22px; border-bottom: 1px solid var(--line); }
.modal-h h2 { flex: 1; min-width: 0; font-size: 1.15rem; }
.modal-b { padding: 20px 22px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 16px; }
.modal-f { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 4px; }
.modal-f .btn { flex: 1 1 140px; }
.dialog { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(18px, 4vw, 26px); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-3); overflow-wrap: anywhere; }
.dialog-head { display: flex; align-items: center; gap: 12px; }
.dialog-head :is(h2, h3) { font-size: 1.2rem; line-height: 1.25; }
.msg-icon { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary-strong); }
:is([data-tone="warn"], .toast.warn) .msg-icon { background: var(--navy-soft); color: var(--navy); }
:is([data-tone="err"], .toast.err) .msg-icon { background: var(--navy); color: var(--surface); }
.dialog-lead, .dialog-detail { white-space: pre-line; }
.dialog-lead { font-size: 1.05rem; line-height: 1.45; }
.dialog-detail { font-size: .92rem; line-height: 1.45; color: var(--muted); }
.dialog-btns { display: flex; flex-direction: row-reverse; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.dialog-btns .btn { min-width: min(108px, 40%); }
:is(.dialog-btns, .modal-f) .btn { min-height: 52px; padding: 6px 14px; white-space: normal; line-height: 1.25; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .dialog-btns, .modal-f { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
  .modal-f .btn.primary { order: -1; }
  .modal-back { padding: 0; align-items: flex-end; }
  .modal, .modal.sm, .modal.lg, .modal.xl { max-width: none; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; transform-origin: var(--motion-origin, 50% 100%); padding-bottom: env(safe-area-inset-bottom); }
  .modal-h { padding: 14px 8px 12px 18px; }
  .modal-h::before { content: ''; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
  .modal { position: relative; }
  .modal-b { padding: 16px 18px 20px; }
  /* Και τα μικρά παράθυρα (ερωτήσεις, «Προσοχή», επιβεβαίωση χτυπήματος) ανοίγουν από κάτω, όπως τα υπόλοιπα (επιλογή ιδιοκτήτη).
     Το πληκτρολόγιο PIN μένει στη μέση. */
  .dialog-back:has(> .dialog) { padding: 0; align-items: flex-end; }
  .dialog-back > .dialog { position: relative; max-width: none; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; transform-origin: var(--motion-origin, 50% 100%);
    padding: 26px 18px max(18px, env(safe-area-inset-bottom)); }
  .dialog-back > .dialog::before { content: ''; position: absolute; top: 9px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
}

/* ── Πληκτρολόγιο PIN ── */
.pinpad { width: 100%; max-width: 360px; background: var(--surface); border-radius: 24px; padding: 24px 22px 22px; box-shadow: var(--shadow-3); text-align: center; }
.pin-who { font-size: 1.25rem; font-weight: 700; }
.pin-act { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: var(--r-pill); font-size: .84rem; font-weight: 700; letter-spacing: .04em; background: var(--primary-soft); color: var(--primary-strong); }
.pin-act.out { background: var(--navy-soft); color: var(--navy); }
.pin-lbl { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 14px 0 18px; height: 16px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); transition: background .12s, border-color .12s, transform .12s; }
.pin-dots i.on { background: var(--primary); border-color: var(--primary); transform: scale(1.1); }
.pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pin-keys button { height: 62px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); font-size: 1.5rem; font-weight: 600; display: grid; place-items: center; transition: background .1s, var(--press-release); }
.pin-keys button:active { background: var(--surface-3); }
.pin-keys button.alt { background: transparent; border-color: transparent; font-size: .95rem; color: var(--muted); }

/* ── Σύντομο μήνυμα ── */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); z-index: 1100; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(440px, calc(100% - 32px));
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); color: var(--ink); font-size: .94rem; line-height: 1.35; box-shadow: var(--shadow-2); transform: translate(-50%, var(--toast-offset, 8px)); opacity: 0; pointer-events: none;
  transition: transform var(--dur-out) var(--ease-in-out), opacity var(--dur-out) var(--ease-in-out); }
.toast .msg-icon { width: 30px; height: 30px; }
.toast.ok .msg-icon { background: var(--primary); color: var(--surface); }
.toast-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; transition-duration: var(--dur-in); transition-timing-function: var(--ease-out); }
@starting-style { .toast.show { transform: translate(-50%, var(--toast-offset, 8px)); opacity: 0; } }
.toast button { flex: none; border: 0; border-radius: var(--r-s); min-height: 44px; padding: 4px 10px; background: var(--primary-soft); color: var(--primary-strong); font-weight: 650; }
@media (min-width: 900px) { .toast { bottom: 28px; } }
/* Με ανοιχτό παράθυρο το μήνυμα εμφανίζεται επάνω, για να μην κρύβει τη φόρμα και τα κουμπιά */
body.modal-open .toast { bottom: auto; top: calc(var(--tb-h, 0px) + 14px + env(safe-area-inset-top)); --toast-offset: -8px; }

/* ── Μπάρα δοκιμαστικής λειτουργίας ── */
.testbar { position: sticky; top: 0; z-index: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 14px; background: #1e2a5a; color: #dfe5fb; font-size: .8rem; }
.testbar strong { color: #fff; letter-spacing: .04em; text-transform: uppercase; font-size: .74rem; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
.testbar-note { flex: 1 1 200px; min-width: 0; opacity: .85; }
.testbar label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.testbar select { width: auto; min-height: 30px; padding: 3px 30px 3px 9px; font-size: .8rem; border-radius: 8px; border-color: rgba(255, 255, 255, .25); background-color: rgba(255, 255, 255, .1); color: #fff; }
.testbar select option { color: #131a35; }
.testbar input[type="checkbox"] { width: 16px; height: 16px; }
.testbar button { min-height: 30px; padding: 3px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: .8rem; }
@media (max-width: 640px) { .testbar-note { display: none; } .testbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 7px 10px; gap: 10px; } .testbar::-webkit-scrollbar { display: none; } .testbar > * { flex: none; } }
@media print { .testbar, .side, .tabbar, .top, .toast, .no-print { display: none !important; } body { background: #fff; } }

/* Ονόματα υπαλλήλων: φαίνονται κεφαλαία ενώ πληκτρολογούνται */
.upper { text-transform: uppercase; }
