/* Layout: ίδιο κέλυφος με το prototype v2 (πλαϊνό μενού / κάτω μπάρα με κάμερα), αλλά με πραγματικά δεδομένα και πραγματική ανάγνωση. */
:root {
  --bg: #f4f6f7; --surface: #ffffff; --surface-2: #eef1f3; --ink: #12171b; --muted: #5d666f; --faint: #8a939c; --line: #e2e6e9;
  --accent: #0f5c4c; --accent-hover: #0b4a3d; --on-accent: #ffffff; --accent-soft: #e1efea;
  --danger: #b42318; --danger-soft: #fcebe9; --warn: #8a5600; --warn-soft: #fff2d4; --ok: #1b7a4c; --ok-soft: #e2f3e9;
  --s2: #b06f12; --s3: #4b5fc4;
  --shadow: 0 1px 2px rgba(16, 24, 32, .05), 0 6px 18px -10px rgba(16, 24, 32, .18);
  --font-ui: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --font-num: "Manrope", "Commissioner", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1214; --surface: #161b1f; --surface-2: #1d2328; --ink: #e7ecef; --muted: #9ba5ae; --faint: #6f7a83; --line: #262d33;
    --accent: #4fc3a3; --accent-hover: #6fd3b7; --on-accent: #06221b; --accent-soft: #12302a;
    --danger: #ff8b7c; --danger-soft: #3a1d1a; --warn: #f0bd5a; --warn-soft: #34290f; --ok: #63d49c; --ok-soft: #13301f;
    --s2: #e9a94a; --s3: #8e9cf0; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1214; --surface: #161b1f; --surface-2: #1d2328; --ink: #e7ecef; --muted: #9ba5ae; --faint: #6f7a83; --line: #262d33;
  --accent: #4fc3a3; --accent-hover: #6fd3b7; --on-accent: #06221b; --accent-soft: #12302a;
  --danger: #ff8b7c; --danger-soft: #3a1d1a; --warn: #f0bd5a; --warn-soft: #34290f; --ok: #63d49c; --ok-soft: #13301f;
  --s2: #e9a94a; --s3: #8e9cf0; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--bg); }
body { color: var(--ink); font-family: var(--font-ui); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .86em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
h1, h2, h3 { margin: 0; text-wrap: balance; line-height: 1.15; }
h1 { font-family: var(--font-num); font-weight: 800; font-size: 26px; letter-spacing: -.01em; }
h2 { font-family: var(--font-num); font-weight: 700; font-size: 18px; }
h3 { font-weight: 600; font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

.sidebar { display: none; }
.main-inner { max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 8px calc(120px + env(safe-area-inset-bottom, 0px)); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); display: flex; align-items: center; gap: 8px; min-height: 56px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.topbar .title { font-family: var(--font-num); font-weight: 800; font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 13px; display: grid; place-items: center; flex: none; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink); flex: none; }
.iconbtn:hover { background: var(--surface-2); }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.navitem { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; color: var(--faint); min-height: 50px; justify-content: center; padding: 0; }
.navitem[aria-current="page"] { color: var(--accent); font-weight: 600; }
.fab-wrap { display: flex; justify-content: center; }
.fab { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--surface); background: var(--accent); color: var(--on-accent); display: grid; place-items: center; transform: translateY(-16px); box-shadow: 0 8px 20px -8px rgba(15, 92, 76, .7); }
@media (min-width: 900px) {
  .topbar, .bottomnav { display: none; }
  .sidebar { display: flex; flex-direction: column; gap: 6px; position: fixed; top: 0; bottom: 0; left: 0; width: 252px; background: var(--surface); border-right: 1px solid var(--line); padding: calc(22px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); z-index: 5; }
  .main { margin-left: 252px; }
  .main-inner { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); padding-block: 32px 56px; }
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--font-num); font-weight: 800; flex: none; }
.brand b { font-family: var(--font-num); font-weight: 800; font-size: 19px; }
.side-link { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 0 12px; min-height: 44px; border-radius: 10px; color: var(--muted); font-weight: 500; text-align: left; width: 100%; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-link .count { margin-left: auto; font-size: 12px; background: var(--danger-soft); color: var(--danger); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.side-scan { margin: 4px 0 14px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.side-foot .grow div:first-child { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.pad { padding: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; text-align: center; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.block { width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.lg { min-height: 52px; font-size: 16px; border-radius: 14px; }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 56px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--faint); flex: none; display: grid; place-items: center; }
.choice[aria-pressed="true"] .radio { border-color: var(--accent); }
.choice[aria-pressed="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; min-height: 36px; padding: 0 14px; font-size: 13.5px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .n { font-size: 12px; opacity: .75; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.pill.neutral { background: var(--surface-2); color: var(--muted); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px; font-size: 14px; }
.alert .ico { flex: none; margin-top: 1px; }
.alert.warn { background: var(--warn-soft); }
.alert.warn .ico { color: var(--warn); }
.alert.bad { background: var(--danger-soft); }
.alert.bad .ico { color: var(--danger); }
.alert.info { background: var(--accent-soft); }
.alert.info .ico { color: var(--accent); }
.alert b { display: block; margin-bottom: 2px; }
.list > * + * { border-top: 1px solid var(--line); }
.lrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; padding: 13px 0; min-height: 60px; }
.list > .lrow:first-child { border-top: 0; }
button.lrow:hover .lt { color: var(--accent); }
.lt { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls { font-size: 13px; color: var(--muted); }
.amt { font-family: var(--font-num); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; min-height: 52px; }
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; padding: 12px 0; }
.search svg { color: var(--faint); flex: none; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.pw-row { display: flex; gap: 6px; align-items: center; }
.pw-row .input { flex: 1; }
.pw-row .btn { flex: none; }
.input, select.input { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 12px; width: 100%; min-width: 0; }
.input.sm { min-height: 38px; border-radius: 10px; padding: 0 10px; font-size: 14px; }
.input.bad { border-color: var(--warn); background: var(--warn-soft); }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 18px; }
.kv dt { font-size: 12.5px; color: var(--muted); margin: 0; }
.kv dd { margin: 2px 0 0; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.back { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 500; padding: 6px 0; min-height: 40px; }
.back:hover { color: var(--accent); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; z-index: 60; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
@media (min-width: 900px) { .toast { bottom: calc(28px + env(safe-area-inset-bottom, 0px)); } }
.meter { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.meter i.bad { background: var(--danger); }
.copy { border: 0; background: var(--surface-2); color: var(--ink); border-radius: 8px; min-height: 32px; padding: 0 10px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.copy:hover { background: var(--accent-soft); color: var(--accent); }
.code { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-family: var(--font-num); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; }
.kpi.bad .v { color: var(--danger); }
.kpi.warn .v { color: var(--warn); }
.kpi .l { font-size: 13px; color: var(--muted); }
.cols { display: grid; gap: 16px; }
.cols > * { min-width: 0; }
@media (min-width: 900px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cols.home { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
  .cols.detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
}
.inv-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; width: 100%; text-align: left; background: transparent; border: 0; padding: 12px 0; min-height: 64px; }
.inv-row:hover .lt { color: var(--accent); }
.src { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; flex: none; }
.src.demo { background: var(--warn-soft); color: var(--warn); }
.inv-row .src { grid-row: 1 / span 2; }
.inv-row .meta { grid-column: 2 / -1; display: flex; gap: 4px 8px; align-items: center; flex-wrap: wrap; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-l { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; margin-bottom: 6px; }
.bar-l span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.line-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 12px 0; width: 100%; text-align: left; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; }
.line-card .d { grid-column: 1 / -1; font-weight: 600; }
.line-card .c { font-size: 13px; color: var(--muted); }
/* Γραμμές ειδών στον έλεγχο: μία κάρτα ανά είδος, κλειστή δείχνει αριθμό, κωδικό, περιγραφή και ποσά· ανοίγει μία κάθε φορά για διόρθωση. */
.edit-lines { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.edit-line { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); scroll-margin-top: 12px; }
.edit-line.bad { border-color: var(--warn); }
.edit-line.open { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.el-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; width: 100%; text-align: left; border: 0; background: transparent; padding: 14px; border-radius: 13px; }
.edit-line.open .el-head { position: sticky; top: -18px; z-index: 2; background: var(--accent-soft); border-radius: 13px 13px 0 0; border-bottom: 1px solid var(--line); }
.el-no { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-family: var(--font-num); font-weight: 800; font-size: 14px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.edit-line.open .el-no { background: var(--accent); color: var(--on-accent); }
.edit-line.bad:not(.open) .el-no { background: var(--warn-soft); color: var(--warn); }
.el-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.el-code { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--accent); overflow-wrap: anywhere; }
.el-code.none { font-family: var(--font-ui); font-size: 13px; color: var(--faint); font-weight: 400; }
.el-desc { font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.el-sum { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.edit-line.open .el-sum { display: none; }
@media (max-width: 899px) { .card.pad.items { padding: 16px 12px; } }
.el-end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.el-net { font-family: var(--font-num); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.el-chev { color: var(--faint); transition: transform .15s; }
.edit-line.open .el-chev { transform: rotate(180deg); color: var(--accent); }
.el-note { margin: 0 14px 12px; font-size: 13px; border-radius: 10px; padding: 8px 10px; }
.el-note.warn { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.el-note.hint { background: var(--surface-2); color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.el-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 14px; }
.el-body .full { grid-column: 1 / -1; }
.el-body .input { min-height: 46px; font-size: 16px; }
.el-body textarea.input { padding: 10px 12px; resize: vertical; line-height: 1.35; font-family: inherit; }
.el-actions { display: flex; justify-content: space-between; gap: 10px; padding-top: 2px; }
.btn.warn-ghost { border-color: transparent; background: transparent; color: var(--danger); }
.btn.warn-ghost:hover { background: var(--danger-soft); }
@media (min-width: 900px) { .el-body { grid-template-columns: repeat(3, minmax(0, 1fr)); } .edit-line.open .el-head { top: -22px; } }
.totals { display: flex; flex-direction: column; gap: 6px; }
.totals .t { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.totals .g { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink); }
.totals .g strong { font-family: var(--font-num); font-weight: 800; font-size: 24px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks .ok { color: var(--ok); flex: none; }
.checks .bad { color: var(--warn); flex: none; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.photo-view { display: flex; flex-direction: column; gap: 10px; }
.photo-view img { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--line); background: var(--surface-2); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb { position: relative; width: 88px; height: 116px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; }
.thumb .pg { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; border-radius: 6px; padding: 1px 6px; }
.thumb.add { border-style: dashed; color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer; text-align: center; padding: 6px; }
.camera-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 16px; border-radius: 20px; border: 1.5px dashed var(--line); background: var(--surface); text-align: center; cursor: pointer; }
.camera-cta .circle { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.sheet-bg { position: fixed; inset: 0; background: rgba(8, 14, 18, .5); z-index: 40; }
.sheet { position: fixed; inset: 0; z-index: 41; background: var(--bg); display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); background: var(--surface); }
.sheet-head h2 { flex: 1; min-width: 0; }
.sheet-body { flex: 1; overflow-y: auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.sheet-foot { display: flex; gap: 10px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet-foot .btn { flex: 1; }
@media (min-width: 900px) {
  .sheet { inset: 5vh auto auto 50%; transform: translateX(-50%); width: min(560px, 92vw); max-height: 90vh; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
  .sheet.wide { width: min(1120px, 94vw); }
  .sheet-head { padding: 0 16px; }
  .sheet-body { padding: 22px 24px; }
  .sheet-foot { padding: 14px 24px; justify-content: flex-end; }
  .sheet-foot .btn { flex: none; min-width: 140px; }
}
.scan-grid { display: grid; gap: 18px; }
.scan-grid > * { min-width: 0; }
@media (min-width: 900px) { .scan-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } .scan-grid .sticky { position: sticky; top: 0; } }
@media (max-width: 899px) { .scan-grid .sticky .pdf-page { max-height: 48vh; width: auto; margin: 0 auto; } }
.reading { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 20px 0; }
.spinner { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.done-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 8px auto 0; }
.due-big { font-family: var(--font-num); font-weight: 800; font-size: 26px; }
.banner { font-size: 13px; color: var(--warn); background: var(--warn-soft); border-radius: 10px; padding: 8px 12px; }

/* ---------- Οθόνη περικοπής ---------- */
.crop-wrap { display: flex; flex-direction: column; gap: 10px; }
.crop-area { position: relative; height: clamp(260px, calc(100dvh - 290px), 640px); }
.crop-box { position: absolute; inset: 22px; }
.crop-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); touch-action: none; user-select: none; -webkit-user-select: none; }
.crop-stage img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.crop-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.crop-handle { position: absolute; width: 44px; height: 44px; transform: translate(-50%, -50%); touch-action: none; cursor: grab; display: grid; place-items: center; }
.crop-handle::after { content: ""; width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--accent); background: #fff; }
.crop-handle.on::after { transform: scale(1.15); }
.crop-mag { position: absolute; width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--accent); background-color: #fff; background-repeat: no-repeat; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); pointer-events: none; z-index: 5; box-sizing: border-box; }
.crop-mag::before, .crop-mag::after { content: ""; position: absolute; background: var(--accent); }
.crop-mag::before { left: 50%; top: 38%; bottom: 38%; width: 2px; transform: translateX(-50%); }
.crop-mag::after { top: 50%; left: 38%; right: 38%; height: 2px; transform: translateY(-50%); }
.crop-wait { position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 70%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink); z-index: 6; }
.crop-wait .spinner { width: 34px; height: 34px; border-width: 3px; }
.thumb .crop-btn { position: absolute; left: 0; right: 0; bottom: 0; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; font-weight: 600; min-height: 28px; }
.thumb.has-crop .pg { bottom: auto; top: 6px; }
.pdf-page { background: #fff; aspect-ratio: 595.28 / 841.89; padding: 3%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pdf-page img, .photo-view .pdf-page img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; border: 0; border-radius: 0; background: transparent; }
.spinner.sm { width: 28px; height: 28px; border-width: 3px; }
.thumb .hint { position: absolute; left: 4px; right: 4px; bottom: 32px; background: var(--warn-soft); color: var(--warn); font-size: 11px; line-height: 1.2; font-weight: 600; border-radius: 6px; padding: 2px 4px; text-align: center; }
