/* Πρωινά vouchers. Για οθόνη αφής 15,6" στα ταμεία: μεγάλα κουμπιά, λίγα στοιχεία, υψηλή αντίθεση. */
:root {
  --bg: #f4f1ea;
  --surface: #ffffff;
  --ink: #1d1b16;
  --muted: #6b665c;
  --line: #ddd6c8;
  --brand: #2f5d3a;
  --brand-ink: #ffffff;
  --brand-soft: #e6efe7;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #8a5a00;
  --warn-soft: #fff4d6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 27, 22, .06), 0 2px 8px rgba(29, 27, 22, .05);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.4 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
a { color: var(--brand); }
h1 { font-size: 26px; margin: 0; }
h2 { font-size: 20px; margin: 0 0 10px; }
small { font-size: .8em; color: var(--muted); font-weight: 400; }
code { background: var(--bg); padding: 1px 5px; border-radius: 5px; }

/* ---------- πάνω μπάρα ---------- */
.top {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 20px; background: var(--brand); color: var(--brand-ink);
}
.brand { color: var(--brand-ink); font-weight: 700; font-size: 22px; text-decoration: none; }
.tabs { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.tabs a {
  color: var(--brand-ink); text-decoration: none; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; opacity: .85; min-height: 48px; display: inline-flex; align-items: center;
}
.tabs a.on, .tabs a:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.who { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.who form { margin: 0; }
button.link { background: none; border: 1px solid rgba(255, 255, 255, .5); color: inherit; font: inherit; padding: 8px 14px; border-radius: 8px; cursor: pointer; }

main { padding: 20px; max-width: 1400px; margin: 0 auto; }
.narrow { max-width: 640px; margin: 0 auto; }
.wide-ish { max-width: 820px; }
.wide { max-width: 1400px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }

/* ---------- πεδία ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 600; font-size: 16px; }
input, select, textarea {
  font: inherit; color: inherit; background: #fff; border: 2px solid var(--line); border-radius: 10px;
  padding: 10px 12px; min-height: 48px; width: 100%;
}
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.input-lg { font-size: 20px; min-height: 56px; }
.input-xl { font-size: 30px; min-height: 72px; font-weight: 600; letter-spacing: .02em; }
.code { text-transform: uppercase; font-family: Consolas, "Cascadia Mono", monospace; }
.code::placeholder { text-transform: none; font-family: "Segoe UI", system-ui, sans-serif; font-weight: 400; }
.money { text-align: right; font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.check input { width: 26px; height: 26px; min-height: 0; }
.hint { margin: 0; color: var(--muted); }
.hint strong { color: var(--ink); font-size: 1.15em; }

/* ---------- κουμπιά ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 2px solid var(--line);
  border-radius: 10px; padding: 10px 18px; min-height: 48px; cursor: pointer; text-decoration: none;
  touch-action: manipulation;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #264d30; border-color: #264d30; }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-lg { font-size: 20px; min-height: 60px; }
.btn-xl { font-size: 26px; min-height: 80px; width: 100%; }
.btn-sm { min-height: 40px; padding: 6px 12px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- μηνύματα ---------- */
.flash { max-width: 1400px; margin: 14px auto 0; padding: 14px 20px; border-radius: 10px; font-weight: 600; }
.flash-ok { background: var(--brand-soft); color: var(--brand); }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.alert { margin: 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border: 2px solid #f1d38a; font-size: 20px; }
.big-text { font-size: 22px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tag { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 99px; background: var(--bg); color: var(--muted); font-weight: 600; }
.back { font-weight: 600; text-decoration: none; font-size: 18px; }

/* ---------- ταμείο ---------- */
.till { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.hotel-name { margin: 0; font-size: 22px; font-weight: 700; color: var(--brand); }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 56px; padding: 8px 20px; border: 2px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 20px; cursor: pointer; }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.recent-list a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); min-height: 52px; align-items: center; }
.recent-list .code { font-weight: 700; }
.left { font-weight: 600; white-space: nowrap; }
.left.ok { color: var(--brand); }
.left.zero { color: var(--muted); }

.voucher { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
.vhead { display: flex; flex-direction: column; gap: 2px; }
.vcode { font: 700 34px/1.15 Consolas, "Cascadia Mono", monospace; word-break: break-all; }
.vcode-sm { font-family: Consolas, "Cascadia Mono", monospace; font-weight: 600; }
.balance { display: flex; flex-direction: column; align-items: flex-start; padding: 16px 20px; border-radius: 12px; }
.balance span { font-weight: 600; }
.balance strong { font-size: 52px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.balance.ok { background: var(--brand-soft); color: var(--brand); }
.balance.zero { background: var(--danger-soft); color: var(--danger); }

.entry { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 16px; align-items: start; }
.entry-fields { display: flex; flex-direction: column; gap: 14px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button {
  font: 700 28px/1 "Segoe UI", system-ui, sans-serif; min-height: 68px; border-radius: 12px;
  border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; touch-action: manipulation;
}
.keypad button:active { background: var(--brand-soft); border-color: var(--brand); }
.excess { margin: -4px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font-weight: 600; font-size: 20px; }

.done { text-align: center; align-items: stretch; }
.done-ok { margin: 0; font-size: 34px; font-weight: 800; color: var(--brand); }
.facts { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; text-align: left; font-size: 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.pay { margin: 0; padding: 18px; border-radius: 12px; background: var(--danger); color: #fff; font-size: 26px; font-weight: 600; }
.pay strong { font-size: 34px; display: block; }
.inline-order { display: flex; gap: 10px; align-items: flex-end; text-align: left; }
.inline-order .field { flex: 1; }

/* ---------- λίστες ---------- */
.daybar { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; flex-direction: column; }
.stats span { color: var(--muted); font-size: 15px; }
.stats strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.stats .warn strong { color: var(--danger); }
.table-wrap { overflow-x: auto; padding: 8px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.void td { color: var(--muted); text-decoration: line-through; }
tr.void td:last-child { text-decoration: none; }
td.missing { color: var(--danger); font-weight: 600; }
table.mini th, table.mini td { padding: 6px 8px; font-size: 16px; }
.history { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.danger-zone { border-color: #f3c4bf; }
.hours-cell { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }

/* ---------- διαχειριστικό ---------- */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; max-width: 1400px; margin: 0 auto 16px; }
.subtabs a { padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.subtabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.filters input, .filters select { min-width: 150px; }
fieldset.hours { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
fieldset.hours legend { font-weight: 600; padding: 0 6px; }
.hours-row { display: grid; grid-template-columns: 120px 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }

@media (max-width: 1100px) {
  .till, .voucher { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  main { padding: 12px 16px; }
  .entry { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .vcode { font-size: 26px; }
  .balance strong { font-size: 40px; }
  .inline-order { flex-direction: column; align-items: stretch; }
  .daybar { grid-template-columns: 1fr; }
}
