/* Ιδέα: το λευκό κουτί του φαρμακείου. Λευκό χαρτόνι, μαύρα γράμματα, μία λωρίδα χρώματος ανά σειρά. */
@font-face { font-family: Commissioner; src: url(/fonts/commissioner-greek.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: Commissioner; src: url(/fonts/commissioner-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
:root {
  --ink: #15191b; --mute: #57636a; --line: #d3dadb; --edge: #8b979b; --bg: #e9eeee; --paper: #fff; --soft: #f4f7f7;
  --alert: #b92c19; --alert-bg: #fdeae6; --ok: #0a6b55; --ok-bg: #e0f3ed; --wait: #5a3d00; --wait-bg: #fff3d6; --c: #9aa5a8; --r: 3px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Commissioner, 'Segoe UI', sans-serif; }
h1, h2, h3, p, dl, dd, ul, fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
h1, h2, .range, .lead { font-variation-settings: 'FLAR' 100; }
h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 750; letter-spacing: -.015em; }
h2 { font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
h3 { font-size: .9rem; font-weight: 650; color: var(--mute); margin-bottom: 4px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2b74c8; outline-offset: 2px; }
#view:focus-visible { outline: 0; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: square; }
.mute { color: var(--mute); }
.pre, .lead { white-space: pre-wrap; overflow-wrap: anywhere; }
.code { color: var(--mute); font-size: .82rem; font-variant-numeric: tabular-nums; margin-left: auto; white-space: nowrap; }
.print-only { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 18px; border: 2px solid var(--ink); border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: #38464a; border-color: #38464a; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.danger { background: var(--alert); border-color: var(--alert); }
.btn.big { min-height: 56px; font-size: 1.1rem; flex: 1; }
.btn:disabled { opacity: .55; cursor: progress; }
.link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 550; text-align: left; }
.link.danger { color: var(--alert); }

/* Πεδία */
label { display: block; font-weight: 600; }
legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
label small { display: block; font-weight: 400; font-size: .9rem; color: var(--mute); margin-top: 4px; }
input:not([type=radio], [type=checkbox], [type=color], [type=file]), select, textarea { display: block; width: 100%; min-height: 46px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: var(--r); background-color: var(--paper); font-weight: 400; }
input[type=date] { -webkit-appearance: none; appearance: none; }
input[type=color] { display: block; width: 80px; height: 46px; margin-top: 6px; padding: 4px; }
input[type=file], .seg input, .range-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.btn:focus-within { outline: 3px solid #2b74c8; outline-offset: 2px; }
::placeholder { color: #67747a; opacity: 1; }
form { display: grid; gap: 18px; }
form > * { min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > * { min-width: 0; }

/* Κέλυφος */
.spectrum { display: flex; height: 6px; }
.spectrum i { flex: 1; }
.mark { display: inline-flex; align-items: flex-end; gap: 10px; white-space: nowrap; line-height: 1; }
.mark img { display: block; width: auto; height: 25px; }
.mark span { font-size: .88rem; font-weight: 500; }
.top { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: center; padding-top: env(safe-area-inset-top); }
.top .spectrum { grid-column: 1 / -1; }
.home { text-decoration: none; padding: 12px 16px; }
.account { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; text-decoration: none; font-weight: 550; }
.account span { display: none; }
#view { outline: 0; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
.page { max-width: 1100px; margin: 0 auto; }
.nav { position: fixed; z-index: 6; inset: auto 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--paper); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav a { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; height: 62px; font-size: .74rem; font-weight: 550; color: var(--mute); text-decoration: none; }
.nav .i { width: 24px; height: 24px; }
.nav a[aria-current] { color: var(--ink); font-weight: 750; box-shadow: inset 0 3px var(--ink); }
.nav a[data-nav=new] { background: var(--ink); color: #fff; }
.nav b { position: absolute; top: 5px; left: calc(50% + 8px); min-width: 19px; padding: 0 5px; border-radius: 10px; background: var(--alert); color: #fff; font-size: .72rem; line-height: 19px; text-align: center; }
.page-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 16px; }
.page-head h1 { margin-right: auto; }
[data-total] { color: var(--mute); font-size: .65em; font-weight: 500; margin-left: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; padding: 8px 0; text-decoration: none; font-weight: 600; }

.gate { min-height: 100dvh; display: grid; grid-template-rows: 14px 1fr; background: var(--paper); }
.gate .spectrum { height: 14px; }
.gate > div:last-child { width: min(380px, 100% - 40px); margin: 11vh auto auto; display: grid; gap: 24px; }
.mark.full { display: grid; justify-items: start; gap: 14px; }
.mark.full img { width: 210px; height: auto; }
.mark.full span { font-size: 1.05rem; }

/* Λίστα */
.tools { display: flex; gap: 10px; margin-bottom: 12px; }
.search { position: relative; flex: 1; min-width: 0; }
.search .i { position: absolute; left: 12px; top: 13px; }
.search input[type=search] { margin: 0; padding-left: 42px; }
[data-n]:not(:empty) { background: var(--ink); color: #fff; border-radius: 10px; min-width: 20px; padding: 0 5px; font-size: .78rem; line-height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 3px 16px; scrollbar-width: none; }
.chips button, .range-chip span, .quick button { display: block; flex: none; white-space: nowrap; padding: 8px 14px; min-height: 42px; border: 1px solid var(--edge); border-radius: var(--r); background: var(--paper); font-weight: 550; font-size: .95rem; }
.chips button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; background: var(--paper); padding: 16px; margin-bottom: 14px; border-radius: var(--r); }
.filter-end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.cards, .answers { display: grid; gap: 10px; }
.card, .sheet, .answer { background: var(--paper); border-left: 8px solid var(--c); border-radius: var(--r); min-width: 0; }
.card { display: flex; gap: 14px; padding: 14px; text-decoration: none; }
.card:hover { box-shadow: 0 2px 14px #15191b1f; }
.card.on { box-shadow: 0 0 0 2px var(--ink); }
.card-main { flex: 1; min-width: 0; display: grid; gap: 6px; align-content: start; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .88rem; }
.kind { display: inline-flex; align-items: center; gap: 5px; color: var(--mute); font-weight: 550; }
.range { font-weight: 800; letter-spacing: .03em; color: color-mix(in srgb, var(--c) 62%, var(--ink)); }
.brand { font-weight: 600; }
.card-text { font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: .86rem; color: var(--mute); }
.card-meta .n { display: inline-flex; align-items: center; gap: 4px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--r); background: var(--bg); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.tag.s-new { background: var(--ink); color: #fff; }
.tag.s-done { background: var(--ok-bg); color: var(--ok); }
.tag.s-rejected { background: none; color: var(--mute); padding-left: 0; }
.tag.high { background: var(--alert); color: #fff; }
.tag.late { background: var(--alert-bg); color: var(--alert); }
.tag.locked { background: var(--wait-bg); color: var(--wait); }
.thumb { position: relative; width: 88px; height: 88px; flex: none; }
.thumb img, .photos img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; background: var(--bg); }
.thumb i { position: absolute; right: 4px; bottom: 4px; background: var(--ink); color: #fff; font-style: normal; font-size: .75rem; font-weight: 700; padding: 0 6px; border-radius: 2px; }
.more { margin: 16px auto; display: flex; }
.empty { background: var(--paper); border-radius: var(--r); padding: 44px 22px; text-align: center; display: grid; gap: 12px; justify-items: center; }

/* Λεπτομέρειες και αξιολόγηση */
.detail { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.sheet { padding: 20px 18px; display: grid; gap: 18px; align-content: start; }
.lead { font-size: 1.22rem; line-height: 1.45; font-weight: 550; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.photos > * { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: none; }
.photos div button { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 2px; background: var(--ink); color: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font-size: .86rem; color: var(--mute); }
.facts dd { font-weight: 600; overflow-wrap: anywhere; }
.notice { background: var(--wait-bg); color: var(--wait); padding: 10px 14px; border-radius: var(--r); font-weight: 500; }
.notice .i { vertical-align: -.25em; margin-right: 6px; }
.notice.ok, .approved { background: var(--ok-bg); color: #07483a; }
.approved, .outcome { padding: 14px; border-radius: var(--r); }
.approved h3 { color: inherit; }
.outcome { background: var(--soft); display: grid; gap: 8px; justify-items: start; }
.row-actions { display: flex; gap: 22px; }
.comments { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.comment .link { padding: 0; font-size: .86rem; margin-left: 8px; font-weight: 400; }
.comments form { gap: 8px; justify-items: start; }
.review { background: var(--paper); border-top: 8px solid var(--ink); border-radius: var(--r); padding: 18px; gap: 16px; align-content: start; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--edge); border-radius: var(--r); overflow: hidden; }
.seg label, .range-chip { position: relative; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 4px; font-weight: 550; }
.seg label + label { border-left: 1px solid var(--edge); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span, .range-chip input:focus-visible + span { outline: 3px solid #2b74c8; outline-offset: -3px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -8px; }
.quick button { min-height: 38px; padding: 5px 9px; font-size: .85rem; }
.tabs { display: flex; gap: 22px; margin-bottom: 16px; border-bottom: 2px solid var(--line); }
.tabs a { display: flex; gap: 7px; align-items: center; padding: 8px 0 10px; text-decoration: none; font-weight: 600; color: var(--mute); margin-bottom: -2px; border-bottom: 4px solid transparent; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--ink); }
.tabs b { font-weight: 600; font-variant-numeric: tabular-nums; }
.late-text { color: var(--alert); font-weight: 700; }
.pane { display: none; }

/* Φόρμα */
.entry-form { max-width: 640px; margin: 0 auto; gap: 14px; }
.entry-form .page-head { margin: 0; }
.ask { font-size: 1.1rem; margin-bottom: 12px; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.types button { display: grid; gap: 10px; justify-items: start; align-content: space-between; min-height: 108px; padding: 16px; border: 0; border-radius: var(--r); background: var(--paper); font-weight: 700; font-size: 1.08rem; text-align: left; }
.types .i { width: 32px; height: 32px; }
.types.small { margin-top: 10px; }
.types.small button { display: flex; align-items: center; justify-content: flex-start; min-height: 54px; padding: 8px 14px; font-size: .95rem; font-weight: 600; }
.types.small .i { width: 22px; height: 22px; }
.types button:hover { background: var(--ink); color: #fff; }
.chosen { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--r); font-size: 1.05rem; }
.chosen .link { margin-left: auto; }
[data-rest] { display: grid; gap: 22px; background: var(--paper); padding: 20px 18px; border-radius: var(--r); }
[data-rest] > * { min-width: 0; }
.range-chip span { border-left: 8px solid var(--c); padding-left: 10px; }
.range-chip input:checked + span { background: color-mix(in srgb, var(--c) 68%, #000); border-color: color-mix(in srgb, var(--c) 68%, #000); color: #fff; }
.warn { font-size: .92rem; margin-bottom: 10px; padding-left: 12px; border-left: 3px solid var(--alert); }
.photo-btns { display: flex; gap: 10px; margin-top: 10px; }
.photo-btns .btn { flex: 1; position: relative; }
.photo-btns .touch { display: none; }
@media (pointer: coarse) { .photo-btns .touch { display: inline-flex; } }
summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
details .two { margin-top: 10px; }
.submit { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }

/* Απαντήσεις */
.answer summary { list-style: none; padding: 14px 16px; display: grid; gap: 3px; }
.answer summary::-webkit-details-marker { display: none; }
.answer summary > span { display: flex; gap: 10px; font-size: .88rem; }
.answer summary strong { font-size: 1.08rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.answer-body { padding: 0 16px 10px; display: grid; gap: 12px; max-width: 75ch; }
.answer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-size: .9rem; }

/* Αναφορά */
.report { max-width: 860px; margin: 0 auto; background: var(--paper); border-radius: var(--r); padding: 22px 18px; display: grid; gap: 24px; }
.report form { gap: 30px; }
.report > * { min-width: 0; }
.report .page-head { margin: 0; }
.report h2 { border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 12px; }
.months { display: flex; }
.months a { display: grid; place-items: center; width: 44px; height: 44px; }
.sum strong { font-size: 2.2rem; line-height: 1; font-weight: 800; }
.sum .tag { margin: 6px 2px 0 0; }
.r-list { list-style: none; display: grid; gap: 14px; }
.r-list li { border-left: 5px solid var(--c); padding-left: 12px; overflow-wrap: anywhere; min-width: 0; }
.r-list a { text-decoration: none; display: block; }
.r-list a:hover { text-decoration: underline; }
.r-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: .92rem; }
.locked-list { margin-top: -14px; background: var(--wait-bg); padding: 14px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 650; }
.bars th { font-size: .88rem; width: 1%; white-space: nowrap; padding-right: 12px; }
.bars td { padding: 4px 0; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.bars td + td { width: 1%; padding-left: 10px; }
.bars td.mute { font-weight: 400; font-size: .86rem; }
.bars i { display: block; height: 18px; background: var(--c); min-width: 4px; }
.pending { font-size: .93rem; }
.pending th, .pending td { padding: 8px 10px 8px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.pending td:first-child { font-variant-numeric: tabular-nums; }

/* Ρυθμίσεις και διάλογοι */
.panel { background: var(--paper); border-radius: var(--r); padding: 18px; margin-bottom: 14px; }
.panel > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.panel.narrow form { max-width: 380px; justify-items: start; }
.panel.narrow label { width: 100%; }
.rows { list-style: none; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.rows div { flex: 1; min-width: 0; }
.rows .mute { display: block; font-size: .9rem; }
.rows .off b, .rows .off .swatch { opacity: .5; }
.swatch { width: 10px; align-self: stretch; background: var(--c); }
dialog { width: min(440px, 100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; border: 0; border-top: 8px solid var(--ink); border-radius: var(--r); padding: 22px; color: var(--ink); background: var(--paper); }
dialog.wide { width: min(640px, 100vw - 24px); max-width: none; }
dialog::backdrop { background: #15191b99; }
dialog > * + * { margin-top: 14px; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.actions .link { margin-right: auto; }
.actions.left { justify-content: flex-start; margin-top: 14px; }
code { font: 700 1.1rem ui-monospace, Menlo, monospace; user-select: all; }
dialog.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0; background: #0c0f10; overflow: hidden; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.lightbox button { position: absolute; margin: 0; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; border: 0; border-radius: 2px; }
.lightbox .lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lightbox .lb-prev { left: 14px; top: calc(50% - 24px); }
.lightbox .lb-next { right: 14px; top: calc(50% - 24px); }
#toast { position: fixed; z-index: 20; left: 50%; bottom: calc(78px + env(safe-area-inset-bottom)); margin: 0; transform: translate(-50%, 20px); width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 600; opacity: 0; pointer-events: none; transition: .18s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.error { background: var(--alert); }

/* Εξαγωγή */
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: #fff; }
.menu > div { position: absolute; z-index: 4; right: 0; top: calc(100% + 6px); width: min(310px, 100vw - 32px); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 0 10px 30px #15191b33; }
.menu p { padding: 10px 14px; font-size: .9rem; border-bottom: 1px solid var(--line); }
.menu a { display: block; padding: 9px 14px; text-decoration: none; }
.menu a:hover { background: var(--bg); }
.menu a span { display: block; font-size: .88rem; color: var(--mute); }
.p-entry { border-left: 6px solid var(--c); padding-left: 14px; display: grid; gap: 6px; min-width: 0; }
.p-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.p-photos img { max-width: 100%; height: 190px; object-fit: contain; }

@media (min-width: 800px) {
  .shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100dvh; }
  .top { grid-column: 1 / -1; }
  .home { padding: 14px 24px; }
  .account { padding: 0 24px; }
  .account span { display: inline; }
  .nav { position: sticky; inset: auto; top: 63px; align-self: start; grid-auto-flow: row; border: 0; background: none; padding: 26px 0 0 12px; gap: 2px; }
  .nav a { display: flex; justify-content: flex-start; align-items: center; gap: 12px; height: 46px; padding: 0 12px; font-size: 1rem; border-radius: var(--r); }
  .nav a[aria-current] { box-shadow: inset 4px 0 var(--ink); background: var(--paper); }
  .nav a[data-nav=new] { order: -1; margin-bottom: 10px; background: var(--ink); }
  .nav b { position: static; margin-left: auto; }
  #view { padding: 26px 28px 60px; }
  .chips.scroll { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; }
  .sheet { padding: 26px 28px; }
  .report { padding: 34px 40px; }
  .types { grid-template-columns: repeat(3, 1fr); }
  .types.small { grid-template-columns: 1fr 1fr; }
  .card { padding: 16px 18px; }
  .p-e .detail:not(.with-review) { max-width: 760px; }
  #toast { bottom: 28px; }
}
@media (min-width: 1000px) {
  .p-e .with-review { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
}
@media (min-width: 1100px) {
  .p-review { max-width: 1400px; }
  .split { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
  .pane { display: block; position: sticky; top: 80px; max-height: calc(100dvh - 96px); overflow: auto; }
  .split .thumb { width: 56px; height: 56px; }
}
@media (min-width: 1300px) {
  .pane .with-review { grid-template-columns: minmax(0, 1fr) 310px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media print {
  @page { margin: 16mm; }
  body { background: #fff; font-size: 10.5pt; }
  .top, .nav, .no-print, .report .btn, .months, .report textarea, #toast { display: none !important; }
  .print-only { display: block; }
  .print-logo { width: 34mm; margin-bottom: 8mm; }
  .shell { display: block; }
  #view, .report { padding: 0; }
  .report { max-width: none; display: block; }
  .report form { display: block; }
  .report section, .sum { margin: 0 0 16pt; }
  .report-name { font-weight: 700; margin: 2pt 0 10pt; }
  .p-entry { break-inside: avoid; margin-bottom: 14pt; }
  .p-photos img { height: 46mm; }
  .r-list { display: block; }
  .r-list li { margin-bottom: 9pt; }
  .r-list li, tr { break-inside: avoid; }
  h2 { break-after: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Μέσα σε διάλογο το μήνυμα βγαίνει πάνω, για να μη σκεπάζει την «Αποθήκευση». */
dialog #toast { top: calc(16px + env(safe-area-inset-top)); bottom: auto; }
@media (min-width: 800px), print { .pending th, .pending td:first-child, .pending td:last-child { white-space: nowrap; } }
/* Σε στενή οθόνη το μενού πιάνει όλο το πλάτος, όπου κι αν πέσει το κουμπί. */
@media (max-width: 799px) {
  .page-head { position: relative; }
  .menu { position: static; }
  .menu > div { left: 0; right: 0; width: auto; }
}
