/* Sharp corners everywhere: no rounded fields, buttons or badges (Vašek, 1 Nov 2026).
   iKvětiny look, the same as the till (ikvetiny-pokladna): white, neutral greys and the company red #EE2E2A
   from i-kvetiny.cz, font Poppins. Black and yellow belong to Vosime/HAJEK apps, not here (Vašek, 31 Oct 2026).
   Red fills carry white text. Layout: sticky white header (brand, user), tabs, one view. */
:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-2: #efefef;
  --ink: #222222;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --link: #ee2e2a;
  --accent: #ee2e2a;
  --accent-hover: #d92521;
  --accent-ink: #ffffff;
  --accent-soft: #fdecec;
  --head-bg: #ffffff;
  --head-ink: #222222;
  --head-muted: #6b6b6b;
  --head-2: #efefef;
  --good: #2e7d32;
  --good-soft: #e8f3e9;
  --warn: #222222;
  --warn-soft: #fff4d6;
  --bad: #ee2e2a;
  --bad-soft: #fdecec;
  --chart-line: #ee2e2a;
  --chart-2: #bdbdbd;
  --focus: #ee2e2a;
  --font-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 28px rgba(0, 0, 0, 0.10);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "cv11"; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: 1.1rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 0.95rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Header */
header.top { position: sticky; top: 0; z-index: 5; background: var(--head-bg); color: var(--head-ink); border-bottom: 1px solid var(--line); }
header.top :focus-visible { outline-color: var(--accent); }
.top-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 12px 6px; }
.top-center { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; white-space: nowrap; }
.top-actions { justify-self: end; }
.tabs-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tabs-row .top-user { padding-bottom: 6px; flex: none; }
.tabs-row nav.tabs { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 0; }
.usermenu .menu a[aria-current] { font-weight: 600; color: var(--accent); }
@media (max-width: 760px) {
  .top-row { grid-template-columns: 1fr auto; }
  .top-center { display: none; }
  .tabs-row { flex-direction: column-reverse; align-items: stretch; }
  .tabs-row .top-user { justify-content: flex-end; }
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo { margin: 0; padding: 10px 20px; border-radius: 0; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.5; letter-spacing: 0.01em; white-space: nowrap; }
.mail-chip { margin: 0 0 3px auto; align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 0; border: 1px solid #3c3c38; background: transparent; color: var(--head-muted); font-size: 0.82rem; white-space: nowrap; }
.mail-chip strong { color: var(--head-ink); font-weight: 600; }
.mail-chip:hover { border-color: var(--accent); color: var(--head-ink); }
@media (max-width: 760px) { .mail-chip { margin: 6px 0 8px; } }
.top-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.top-controls:empty { display: none; }
.top-user { display: flex; align-items: center; gap: 8px; }
.month { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border-radius: 0; padding: 3px; }
.month a { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 0; color: var(--muted); text-decoration: none; }
.month a:hover { background: var(--surface); color: var(--ink); }
.month span { padding: 0 8px; font-size: 0.88rem; font-weight: 600; min-width: 108px; text-align: center; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 0; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 5px 12px; border-radius: 0; font-size: 0.86rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
header.top .month, header.top .seg { background: var(--head-2); }
header.top .month a, header.top .seg a { color: var(--head-muted); }
header.top .month a:hover { background: #e4e4e4; color: var(--head-ink); }
header.top .seg a:hover { color: var(--head-ink); }
header.top .seg a[aria-current="true"] { color: var(--accent-ink); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 0; color: var(--head-ink); background: var(--head-2); text-decoration: none; }
.icon-btn:hover { background: #e4e4e4; }
.icon-btn[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 3px; border-radius: 0; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover { background: var(--head-2); }
.avatar { width: 30px; height: 30px; border-radius: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; }
.usermenu .menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); padding: 6px; min-width: 220px; z-index: 6; }
.usermenu .menu .who { padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.usermenu .menu .who p + p { color: var(--muted); font-size: 0.82rem; }
.usermenu .menu a, .usermenu .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 0; font-size: 0.9rem; color: var(--ink); text-decoration: none; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--surface-2); }
nav.tabs { display: flex; flex-wrap: wrap; align-items: stretch; column-gap: 2px; }
nav.tabs > a, nav.tabs > span.soon { text-decoration: none; color: var(--head-muted); padding: 9px 9px 11px; font-size: 0.9rem; border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
nav.tabs > a[aria-current="page"] { color: var(--head-ink); border-bottom-color: var(--accent); font-weight: 600; }
nav.tabs > a:hover { color: var(--head-ink); }
nav.tabs > a.tab-icon { padding-inline: 10px; }
nav.tabs > span.soon { opacity: 0.45; cursor: default; padding-inline: 7px; font-size: 0.84rem; }
.tabs-sep { flex: none; width: 1px; background: #e4e4e4; margin: 9px 8px 12px; }
@media (max-width: 600px) {
  nav.tabs > a, nav.tabs > span.soon { padding: 7px 9px 9px; font-size: 0.86rem; }
  .tabs-sep { display: none; }
}
.count { background: var(--accent); color: var(--accent-ink); font-size: 0.72rem; font-weight: 700; border-radius: 0; padding: 0 6px; line-height: 1.5; }

main { padding-block: 24px 48px; }
section.view { display: grid; gap: 20px; }

/* Messages */
.flash { display: flex; gap: 10px; align-items: flex-start; border-radius: 0; padding: 10px 14px; font-size: 0.9rem; border-left: 4px solid currentColor; }
.flash.ok { background: var(--good-soft); color: var(--good); border-left-color: var(--accent); }
.flash.err { background: var(--bad-soft); color: var(--bad); }
/* A confirmation the staff cannot miss: floats at the top and fades out by itself. */
.flash.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2000; width: max-content; max-width: calc(100vw - 32px);
  background: #1f8a4c; color: #fff; border: 0; border-radius: 0; padding: 28px 44px; font-size: 1.6rem; font-weight: 700; text-align: center;
  box-shadow: 0 16px 48px rgba(0,0,0,.3); pointer-events: none; animation: toast-out .4s ease-in 2.6s forwards; }
.flash.toast span { font-size: 1.9rem; margin-right: 6px; }
@keyframes toast-out { to { opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(0.96); } }
.flash.info { background: var(--accent-soft); color: var(--ink); border-left-color: var(--accent); }

/* Figures and cards: hairlines, no shadows */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0; padding: 12px 16px 14px; display: grid; gap: 4px; align-content: start; }
.kpi:first-child { border-top-color: var(--accent); }
.kpi .lbl { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.kpi .val { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.kpi .val small { font-size: 0.9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kpi .src { font-size: 0.8rem; color: var(--muted); }
.kpi.muted { border-top-color: var(--line); }
.kpi.muted .val { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 16px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.card-head span { color: var(--muted); font-size: 0.82rem; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.chart svg { width: 100%; height: auto; display: block; }
svg text { fill: var(--muted); font-family: var(--font-body); font-size: 11px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 0; vertical-align: middle; margin-right: 6px; }

.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 0.88rem; }
.bar-row .track { grid-column: 1 / -1; height: 8px; background: var(--surface-2); border-radius: 0; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--accent); border-right: 2px solid var(--ink); border-radius: 0; }
.bar-row .amt { font-weight: 600; }

.alerts { display: grid; }
.alert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.alert:first-child { border-top: 0; padding-top: 0; }
.alert a { color: inherit; }
.dot { width: 10px; height: 10px; border-radius: 0; margin-top: 6px; }
.dot.bad { background: var(--bad); }
.dot.warn { background: #f2b705; }
.dot.good { background: var(--ink); }
.alert p + p { color: var(--muted); font-size: 0.84rem; }

.empty { text-align: center; padding: 36px 16px; display: grid; gap: 8px; justify-items: center; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; border-radius: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.empty h3 { color: var(--ink); }
.empty p { max-width: 46ch; font-size: 0.9rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; padding: 6px 8px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.group td { background: var(--surface-2); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink); border-bottom: 0; }
tr.total td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
tr.zero td { color: var(--muted); }
.sub { color: var(--muted); font-size: 0.8rem; }

.pill { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 2px 9px; border-radius: 0; white-space: nowrap; }
.pill.ok { background: var(--good-soft); color: var(--good); box-shadow: inset 0 0 0 1px var(--line); }
.pill.est { background: var(--accent); color: var(--accent-ink); }
.pill.miss { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--surface-2); color: var(--muted); }
.pill.acc { background: var(--accent); color: var(--accent-ink); }

/* Forms and buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--ink); background: var(--surface); padding: 7px 14px; border-radius: 0; font-size: 0.88rem; font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.block { width: 100%; padding: 11px 16px; font-size: 0.95rem; }
.btn.small { padding: 3px 10px; font-size: 0.8rem; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 0.86rem; font-weight: 600; }
.field .hint { font-size: 0.8rem; color: var(--muted); }
input[type="email"], input[type="password"], input[type="text"], input[type="date"], input[type="number"], input[type="tel"], textarea, select {
  font: inherit; width: 100%; padding: 10px 12px; border-radius: 0; border: 1px solid #c9c9c2; background: var(--surface); color: var(--ink);
}
@media (prefers-color-scheme: dark) { input[type="email"], input[type="password"], input[type="text"], input[type="date"], input[type="number"], textarea, select { border-color: var(--line); } }
/* a choice (Příchod/Odchod, provozovna) looks like the date field next to it, with its own arrow */
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.form { display: grid; gap: 16px; }
.inline-form { display: inline; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.invite-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 150px auto; gap: 10px; align-items: end; }
@media (max-width: 760px) { .invite-form { grid-template-columns: minmax(0, 1fr); } }

/* Chat */
.ask { display: flex; gap: 8px; align-items: flex-end; position: sticky; bottom: 0; background: var(--bg); padding-block: 8px; }
.ask textarea { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 0; border: 1px solid #c9c9c2; background: var(--surface); color: var(--ink); resize: vertical; }
.ask textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Upload */
.kind-picker { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.kind-picker legend { font-size: 0.86rem; font-weight: 600; margin-bottom: 8px; }
.kind { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; cursor: pointer; }
.kind:hover { border-color: var(--ink); }
.kind:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.kind input { margin-top: 3px; accent-color: var(--ink); }
.kind span { display: grid; gap: 2px; font-size: 0.9rem; }
.kind small { color: var(--muted); font-size: 0.8rem; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 28px 16px; border: 2px dashed #c9c9c2; border-radius: 0; cursor: pointer; background: var(--surface); }
.dropzone:hover, .dropzone.over { border-color: var(--ink); background: var(--accent-soft); }
.dropzone.has-files { border-style: solid; border-color: var(--ink); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon { width: 40px; height: 40px; border-radius: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 1.2rem; font-weight: 700; }

/* Invoice detail: original next to what was read */
.preview .pages { display: grid; gap: 10px; max-height: min(85vh, 1100px); overflow-y: auto; background: var(--surface-2); padding: 8px; border-radius: 0; }
.preview .pages img { width: 100%; height: auto; display: block; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.review-form { display: grid; gap: 12px; }
.review-form .card-head { margin-bottom: 0; }
.review-form textarea { font: inherit; width: 100%; padding: 10px 12px; border-radius: 0; border: 1px solid #c9c9c2; background: var(--surface); color: var(--ink); resize: vertical; }
.review-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.form-actions .danger { margin-left: auto; }
.preview iframe { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); border-radius: 0; background: var(--surface-2); display: block; }
.preview img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 0; display: block; }
.preview .card-head a { font-size: 0.85rem; }
a.pill { text-decoration: none; }

/* Page intro: what the page shows and the rules behind it, full width */
.page-intro { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 16px 32px; align-items: center;
  padding: 18px 20px; border-radius: 0; background: var(--surface-2); border-left: 6px solid var(--accent); }
.page-intro .eyebrow { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.page-intro h2 { font-size: 1.7rem; letter-spacing: -0.02em; white-space: nowrap; }
.page-intro-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.page-intro-rules li { padding-left: 14px; position: relative; }
.page-intro-rules li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 0; background: var(--ink); }
.page-intro.has-aside { grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; }
.page-intro h2.long { white-space: normal; max-width: 22ch; }
.page-intro .eyebrow a { color: inherit; }
.page-intro-aside { justify-self: end; }
@media (max-width: 760px) { .page-intro, .page-intro.has-aside { grid-template-columns: minmax(0, 1fr); } .page-intro-aside { justify-self: start; } }

/* Zebra rows for long lists */
table.striped tbody tr:nth-child(even) td, table.striped-groups tbody.group:nth-of-type(even) td { background: var(--surface-2); }
table.striped-groups tbody.group td { border-bottom: 0; }
table.striped-groups tbody.group tr.detail-row td { border-bottom: 1px solid var(--line); }
a.kpi-link { color: inherit; text-decoration: none; }
a.kpi-link:hover { border-color: var(--ink); }
a.kpi-link .src { font-weight: 600; color: var(--ink); }

/* Chart period picker */
.range-picker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 0; border: 1px solid var(--line);
  font-size: 0.84rem; text-decoration: none; color: var(--ink); background: var(--surface); }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.custom-range { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 0.84rem; padding: 3px 6px; border-radius: 0; border: 1px solid transparent; }
.custom-range.on { border-color: var(--accent); }
.custom-range input[type="date"] { font: inherit; padding: 4px 6px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); }
.kpis.compact { margin-bottom: 12px; }
.kpis.compact .kpi { padding: 8px 12px; }
.kpis.compact .kpi .val { font-size: 1.3rem; }
.grid-2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .grid-2.even { grid-template-columns: minmax(0, 1fr); } }
.chart h4 { margin: 0 0 6px; font-size: 0.84rem; font-weight: 600; color: var(--muted); }

/* Cars */
.assign-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.assign-form select, .assign-form input[type="text"] { width: auto; padding: 5px 8px; font-size: 0.85rem; }
.assign-form select { padding-right: 28px; background-position: right 8px center; }
tr.detail-row > td { padding-top: 0; }
tr.detail-row summary { cursor: pointer; font-size: 0.8rem; color: var(--muted); padding: 2px 0 4px; }
table.inner { font-size: 0.84rem; margin: 2px 0 8px; }
table.inner td { padding: 4px 8px; border-bottom: 1px solid var(--line); }
tbody tr.detail-row:hover td { background: transparent; }
.row-edit { display: inline-block; text-align: right; }
.row-edit summary { list-style: none; cursor: pointer; }
.row-edit summary::-webkit-details-marker { display: none; }
.row-edit[open] summary { margin-bottom: 6px; }

/* Settings and users */
.settings-block { display: grid; gap: 12px; }
.settings-block .card-head { margin-bottom: 0; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; align-items: center; font-size: 0.9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.kv code, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; background: var(--surface-2); padding: 2px 6px; border-radius: 0; word-break: break-all; }
@media (max-width: 600px) { .kv { grid-template-columns: minmax(0, 1fr); } }
input[type="file"] { font: inherit; font-size: 0.88rem; }
.manual-invite { border-color: var(--ink); background: var(--accent-soft); display: grid; gap: 8px; }
.manual-invite .sub { color: var(--ink); }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-row input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
.terminal-link { align-items: center; margin-top: 8px; }
.terminal-link > span { min-width: 120px; font-weight: 600; }

/* Sign-in pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--accent); color: #ffffff; padding: 48px max(32px, 6vw); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: 0; bottom: 0; width: 38%; height: 10px; background: var(--accent); }
.auth-side .brand { color: #ffffff; }
.auth-side .logo { background: #ffffff; color: var(--accent); }
.auth-side h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; color: #ffffff; max-width: 18ch; letter-spacing: -0.025em; }
.auth-side ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; max-width: 40ch; }
.auth-side li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 0.95rem; }
.auth-side li::before { content: "✓"; width: 22px; height: 22px; border-radius: 0; background: #ffffff; color: var(--accent); display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; }
.auth-side .mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 460px; position: relative; z-index: 1; }
.auth-side .mini div { border: 1px solid #2c2c29; border-top: 3px solid var(--accent); border-radius: 0; padding: 10px 12px; }
.auth-side .mini span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: #a9a9a2; }
.auth-side .mini strong { font-family: var(--font-display); font-size: 1.15rem; color: #ffffff; }
.auth-main { display: grid; place-items: center; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); }
.auth-card { width: 100%; max-width: 400px; display: grid; gap: 22px; }
.auth-card h1 { font-size: 1.7rem; letter-spacing: -0.025em; }
.auth-card .lead { color: var(--muted); margin-top: 6px; }
.auth-card .links { display: flex; justify-content: space-between; font-size: 0.88rem; gap: 10px; flex-wrap: wrap; }
.auth-card .fine { font-size: 0.8rem; color: var(--muted); text-align: center; }
.mobile-brand { display: none; }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .mobile-brand { display: flex; }
}

.app-footer { padding-block: 0 28px; font-size: 0.8rem; text-align: center; }
.app-footer a { color: var(--muted); text-decoration: none; }
.app-footer a:hover { color: var(--ink); text-decoration: underline; }
.changelog { display: grid; gap: 4px; padding: 20px 24px; }
.changelog h1 { display: none; }
.changelog h2 { font-size: 1rem; margin: 18px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.changelog h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.changelog ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.changelog p { color: var(--muted); }
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-page .inner { display: grid; gap: 10px; justify-items: center; max-width: 420px; }

@media (prefers-reduced-motion: no-preference) { .fill { transition: width 0.4s ease; } }

/* Přehled: Co hlídat as one strip, the analysis table with section totals and unused rows folded into one line */
.watch { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.watch-title { align-self: center; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.watch-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: inherit; text-decoration: none; font-size: 0.88rem; flex: 1 1 240px; max-width: 420px; }
a.watch-item:hover { border-color: var(--ink); }
.watch-item .dot { flex: none; margin-top: 5px; }
.watch-item small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.bars.cols { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 32px; }
table.analyza tbody tr:not(.section):not(.unused):nth-child(odd) td { background: var(--surface-2); }
table.analyza tr.section td { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; padding-top: 20px; border-bottom: 2px solid var(--ink); }
table.analyza tbody:first-of-type tr.section td { padding-top: 8px; }
table.analyza tr.unused td { color: var(--muted); font-size: 0.84rem; border-bottom: 0; }
table.analyza tr.unused span { font-weight: 600; }

/* Banka */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bank-filter .range-picker { margin-bottom: 12px; }
.bank-filter .search { flex: 1 1 260px; display: flex; }
.bank-filter .search input { width: 100%; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: 0.88rem; }
table.bank td.amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
table.bank td.amount.in { font-weight: 700; }
table.bank td.amount.in::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 0; background: var(--accent); box-shadow: 0 0 0 1.5px var(--ink); }

/* Upload button next to the logo (camera: on a phone it opens straight to taking a photo of a receipt) */
.brand-group { display: flex; align-items: center; gap: 10px; }

/* Docházka: forms */
.emp-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
@media (max-width: 900px) { .emp-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.punch-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; cursor: pointer; padding: 6px 0; }
.rules-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 18px; align-items: end; }
.with-unit { display: flex; align-items: center; gap: 8px; }
.with-unit input { width: 90px; }
.with-unit span { color: var(--muted); font-size: 0.82rem; }
.branch-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.branch-row input[type="text"] { max-width: 320px; }
.pin-show { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.6rem; letter-spacing: 0.25em; background: var(--surface); padding: 2px 12px; border-radius: 0; }
.emp-pin { margin: 8px 0 0; font-size: 1rem; color: var(--muted); }
.emp-pin .pin-show { font-size: 2rem; font-weight: 700; color: var(--ink); }
details.void summary { list-style: none; }
details.void summary::-webkit-details-marker { display: none; }
details.void[open] summary { display: none; }
details.void form { display: flex; gap: 6px; flex-wrap: wrap; }
details.void input { min-width: 180px; }
.item-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.close-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.close-card h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
table.payroll td, table.payroll th { white-space: nowrap; }

/* Docházka: branch terminal (kiosk) */
body.kiosk { background: #0b0b0b; color: #ffffff; min-height: 100vh; overflow: hidden; user-select: none; -webkit-user-select: none; }
.kiosk-main { min-height: 100vh; display: grid; grid-template-rows: auto auto 1fr; justify-items: center; padding: 24px 16px; gap: 16px; }
.kiosk-head { width: 100%; max-width: 900px; display: flex; justify-content: space-between; align-items: center; }
.kiosk-head .logo { background: var(--accent); color: #0b0b0b; }
.kiosk-branch { font-size: 1.2rem; font-weight: 700; color: #d9d9d3; }
.kiosk-clock { text-align: center; }
#clock-time { font-family: var(--font-display); font-size: clamp(3rem, 9vh, 6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kiosk-date { color: #a9a9a2; font-size: 1.1rem; margin-top: 6px; }
.kiosk-pad { display: grid; gap: 18px; justify-items: center; align-content: start; }
.kiosk-lead { color: #d9d9d3; font-size: 1.15rem; }
.kiosk-dots { display: flex; gap: 14px; height: 22px; }
.kiosk-dots span { width: 20px; height: 20px; border-radius: 0; border: 2px solid #55554f; }
.kiosk-dots span.on { background: var(--accent); border-color: var(--accent); }
.kiosk-keys { display: grid; grid-template-columns: repeat(3, min(22vw, 13vh, 120px)); gap: 14px; }
.kiosk-keys button { aspect-ratio: 1; border-radius: 0; border: 0; background: #232321; color: #ffffff; font-size: clamp(1.6rem, 4.5vh, 2.4rem); font-weight: 600; touch-action: manipulation; }
.kiosk-keys button:active { background: #3a3a36; transform: scale(0.96); }
.kiosk-keys button.aux { background: transparent; color: #a9a9a2; }
.kiosk-keys button.ok { background: var(--accent); color: #0b0b0b; font-weight: 800; font-size: clamp(1.2rem, 3.5vh, 1.8rem); }
.kiosk-foot { position: fixed; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 0.8rem; color: #8a8a84; }
.kiosk-result { position: fixed; inset: 0; display: grid; place-items: center; background: #0b0b0b; z-index: 10; padding: 24px; }
.kiosk-result[hidden] { display: none; }
.kiosk-result-inner { text-align: center; display: grid; gap: 14px; justify-items: center; }
.kiosk-confirm { display: flex; gap: 16px; margin-top: 10px; }
.kiosk-confirm[hidden] { display: none; }
.kiosk-confirm .btn { font-size: 1.6rem; padding: 18px 36px; }
.kiosk-result-icon { width: 130px; height: 130px; border-radius: 0; display: grid; place-items: center; font-size: 4rem; font-weight: 800; }
.kiosk-result.in .kiosk-result-icon { background: var(--accent); color: #0b0b0b; }
.kiosk-result.out .kiosk-result-icon { background: #ffffff; color: #0b0b0b; }
.kiosk-result.err .kiosk-result-icon { background: #c4261b; color: #ffffff; }
.kiosk-result h2 { font-size: clamp(2rem, 6vh, 3.4rem); color: #ffffff; }
.kiosk-result p { font-size: clamp(1.2rem, 3vh, 1.6rem); color: #d9d9d3; }
.branch-form { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1fr) auto; }
@media (max-width: 900px) { .branch-form { grid-template-columns: minmax(0, 1fr); } }
.hours-row { display: grid; grid-template-columns: 110px 72px auto 72px; gap: 8px; align-items: center; }
.filter-seg { flex-wrap: wrap; justify-self: start; }
.kiosk-result.info .kiosk-result-icon { background: #232321; color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); }
.submit-form { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ikvetiny-v2 additions: Symfony form theme (templates/form/intranet.html.twig) */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; }
.field-error { color: var(--bad); font-size: 0.82rem; }
.field.has-error input, .field.has-error select { border-color: var(--bad); }
.page-intro-title .eyebrow a { color: inherit; }
.form-actions + .card { margin-top: 12px; }

/* Catalogue (florists look up the photo and composition) */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input[type="text"] { flex: 1 1 220px; width: auto; }
.filters select { flex: 0 1 220px; width: auto; }
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.product-tile a { display: grid; grid-template-rows: auto 1fr; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 0; color: inherit; text-decoration: none; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.product-tile a:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.tile-photo { position: relative; display: block; aspect-ratio: 1; background: var(--surface-2); }
.tile-photo img, .tile-photo .no-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-photo .no-photo { display: grid; place-items: center; color: var(--muted); font-size: 0.8rem; }
.tile-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.tile-price { position: absolute; right: 8px; bottom: 8px; background: var(--ink); color: var(--surface); font-weight: 700; font-size: 0.86rem; padding: 3px 8px; border-radius: 0; }
.tile-body { display: grid; gap: 3px; align-content: start; padding: 10px 12px 12px; }
.tile-body strong { line-height: 1.3; }
.tile-comp { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.tile-comp em { font-style: normal; font-weight: 600; color: var(--ink); }
.product-tile.inactive a { opacity: 0.6; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.product-photo img { width: 100%; height: auto; display: block; border-radius: 0; }
.product-photo a { display: block; cursor: zoom-in; }
.photo-hint { margin-top: 6px; text-align: center; }
table.composition { font-size: 1.05rem; }
table.composition td.num { width: 1%; padding-right: 14px; }
.note { margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 14px 0 8px; font-size: 0.9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.composition-edit { border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; display: grid; gap: 8px; margin: 0; }
.composition-edit legend { font-weight: 600; font-size: 0.86rem; padding: 0 4px; }
.component-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; }
.component-row .field-error { grid-column: 1 / -1; }
@media (max-width: 720px) { .product-detail { grid-template-columns: 1fr; } }

/* Orders */
.nowrap { white-space: nowrap; }
.filters .seg { flex: 0 0 auto; }
.filters input[type="date"] { width: auto; }
table.orders td { font-size: 0.86rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; }
.card-text { font-size: 1.05rem; font-style: italic; margin-bottom: 12px; }
.order-product { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; margin-top: 14px; font-size: 0.9rem; }
.order-product img { width: 96px; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
details.card summary { cursor: pointer; font-weight: 600; }
details.card[open] summary { margin-bottom: 12px; }

/* New order: the old intranet's layout (customer | recipient, tiles | cart), compact enough for a MacBook screen
   without scrolling; fixed confirm bar at the bottom. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main.wrap:has(.order-form) { max-width: 1680px; padding-block: 10px 0; }
.order-form { padding-bottom: 76px; display: grid; gap: 16px; }
.order-form input[type="text"], .order-form input[type="email"], .order-form input[type="tel"], .order-form input[type="number"], .order-form select, .order-form textarea { padding: 8px 11px; }
.order-form select { padding-right: 28px; background-position: right 9px center; }
.order-form .field { gap: 3px; }

.order-top, .order-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.order-col { display: grid; gap: 12px; align-content: start; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.block-title { font-size: 1.12rem; }
.company-btn { border: 2px solid var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 700; padding: 6px 14px; }
.company-btn:hover { background: var(--accent); color: #fff; }
.pairs { display: grid; grid-template-columns: 80px minmax(0, 1fr) 90px minmax(0, 1fr); gap: 8px 12px; align-items: center; }
.pairs > label { font-weight: 600; font-size: 0.86rem; }
.pairs .span3 { grid-column: span 3; }
.pairs .span2 { grid-column: span 2; }
.company-row { margin-top: 5px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.phone-field { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 6px; }
.phone-field .prefix { display: grid; place-items: center; border: 1px solid #c9c9c2; border-radius: 0; background: var(--surface); }
.phone-field .field-error { grid-column: 1 / -1; }
.suggest { position: relative; }
.suggest-list { position: absolute; z-index: 8; left: 0; right: -120%; top: calc(100% + 2px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.suggest-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 0; }
.suggest-list button:hover { background: var(--accent-soft); }
.picker { border: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.picker-tabs { display: flex; gap: 4px; align-items: end; padding: 6px 6px 0; border-bottom: 2px solid var(--ink); }
.picker-tabs > button { border: 1px solid var(--line); border-bottom: 0; background: var(--surface); padding: 9px 20px; border-radius: 0; font-weight: 600; }
.picker-tabs > button[aria-selected="true"] { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.own-price { display: flex; gap: 8px; align-items: center; margin: 0 0 6px auto; padding: 6px 8px; background: var(--accent-soft); border: 2px solid var(--accent); border-radius: 0; }
.own-price-label { font-weight: 700; color: var(--accent); white-space: nowrap; }
.order-form .own-price input { width: 120px; font-size: 1.15rem; font-weight: 700; text-align: right; border: 2px solid var(--accent); }
.own-price-unit { font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: clamp(260px, calc(100vh - 560px), 460px); overflow-y: auto; align-content: start; }
.tiles[hidden] { display: none; }
.otile { display: grid; gap: 3px; justify-items: center; align-content: center; padding: 10px 6px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); text-align: center; line-height: 1.3; }
.otile:hover { background: var(--surface-2); }
.otile:active { background: var(--accent-soft); }
.otile img { width: 68px; height: 68px; object-fit: cover; border-radius: 0; }
.otile-price { font-weight: 700; background: var(--surface-2); padding: 4px 8px; border-radius: 0; width: 100%; }
.look { display: grid; gap: 8px; }
.look .block-title { font-size: 1.05rem; }
.look-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.look-label { width: 84px; font-weight: 600; font-size: 0.86rem; }
.look-option { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); border-radius: 0; padding: 5px 10px 5px 7px; background: var(--surface); cursor: pointer; }
.look-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.look-option { border-radius: 0; }
.look-option input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border: 2px solid #9a9a9a; border-radius: 0; background: var(--surface); display: grid; place-items: center; flex: none; cursor: pointer; }
.look-option input:checked { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.cart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 0; max-height: 220px; overflow-y: auto; }
table.cart td { vertical-align: middle; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.cart td:first-child { display: flex; align-items: center; gap: 4px; }
.cart-empty { padding: 8px 10px; }
.cart-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 12px; padding: 0 8px; font-size: 1.05rem; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px 14px; display: grid; gap: 10px; align-content: start; }
.box-title { font-size: 1.05rem; color: var(--accent); }
.box .block-head { margin-bottom: 0; }
.cart-qty-label { font-weight: 600; white-space: nowrap; }
.cart-qty { display: none; }
.cart-price input { width: 80px; text-align: right; }
.cart-line { width: 70px; }
.cart-buttons { white-space: nowrap; width: 1%; }
.qty-btn { width: 30px; height: 30px; border-radius: 0; border: 0; font-weight: 700; }
.qty-btn.plus { background: var(--good-soft); color: var(--good); }
.qty-btn.minus { background: var(--bad-soft); color: var(--bad); }
.link-danger { border: 0; background: none; color: var(--bad); font-weight: 700; margin-left: 4px; }
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.notes { align-items: stretch; }
.notes .field { grid-template-rows: auto 1fr; }
.notes textarea { resize: vertical; height: 100%; min-height: 110px; }
.time-range { display: flex; align-items: center; gap: 6px; }
.time-range select { min-width: 0; }
.paid-select { font-weight: 600; }
.paid-select:has(option[value="0"]:checked) { background-color: var(--accent); color: #ffffff; border-color: var(--accent); }
.wolt-note { font-size: 0.85rem; }
.datepicker { position: relative; }
.date-button { width: 100%; text-align: left; padding: 8px 11px; border: 1px solid #c9c9c2; border-radius: 0; background: var(--surface); font-weight: 600; }
.date-button::before { content: "📅 "; }
.calendar { position: absolute; z-index: 9; bottom: calc(100% + 6px); left: 0; width: 400px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); display: grid; gap: 8px; }
.calendar-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.calendar-quick button { padding: 8px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 0; font-weight: 600; }
.calendar-head { display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; text-transform: capitalize; }
.calendar-head button { width: 38px; height: 38px; border: 0; background: var(--surface-2); border-radius: 0; font-size: 1.4rem; }
.calendar-days, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.calendar-days span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.calendar-grid button { height: 46px; border: 0; border-radius: 0; background: var(--surface-2); font-size: 1.05rem; font-weight: 600; }
.calendar-grid button:hover:not(:disabled) { background: var(--accent-soft); }
.calendar-grid button.other { opacity: 0.5; }
.calendar-grid button.sunday { color: var(--accent); }
.calendar-grid button.late { background: var(--surface); color: var(--muted); font-weight: 400; }
.calendar-grid button.today { box-shadow: inset 0 0 0 2px var(--ink); }
.calendar-grid button.selected { background: var(--accent); color: #ffffff; }
.calendar-grid button:disabled { opacity: 0.25; cursor: default; }
.order-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: 220px 1fr; gap: 6px; padding: 5px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06); }
.order-bar .cancel { display: grid; place-items: center; border-radius: 0; background: var(--accent); color: #ffffff; font-weight: 700; text-decoration: none; }
.order-bar .cancel:hover { background: var(--accent-hover); }
.order-bar .confirm { border: 0; border-radius: 0; background: #2e7d32; color: #ffffff; font-weight: 700; font-size: 1.05rem; padding: 17px; letter-spacing: 0.02em; }
.order-bar .confirm:hover { background: #256628; }
.look-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.flash.notice { background: var(--warn-soft); color: #7a5a00; }
@media (max-width: 1100px) { .order-top, .order-bottom { grid-template-columns: 1fr; } .tiles { height: 320px; grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pairs { grid-template-columns: 70px minmax(0, 1fr); } .pairs .span3, .pairs .span2 { grid-column: auto; } .notes { grid-template-columns: 1fr; } .order-bar { grid-template-columns: 1fr 2fr; } .calendar { width: calc(100vw - 32px); } }

/* Catalogue filters */
.cat-filters { display: grid; gap: 12px; position: sticky; top: 0; z-index: 3; background: var(--bg); padding-block: 10px; margin-block: -10px 0; }
.cat-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cat-search { flex: 1 1 280px; position: relative; display: flex; align-items: center; }
.cat-search svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.cat-search input { width: 100%; height: 42px; padding: 0 12px 0 38px; font-size: 1rem; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); }
.cat-search input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.cat-select select { height: 42px; }
.seg label { position: relative; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span { display: inline-block; padding: 5px 12px; border-radius: 0; font-size: 0.86rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg label input:checked + span { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg label input:focus-visible + span { outline: 2px solid var(--focus); }
.cat-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.cat-chips .chip { cursor: pointer; flex: 0 0 auto; gap: 6px; }
.cat-chips .chip input { position: absolute; opacity: 0; pointer-events: none; }
.cat-chips .chip .count { background: transparent; padding: 0; font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-chips .chip.on .count { color: var(--accent-ink); }
.cat-chips .chip.empty:not(.on) { opacity: 0.45; }
.cat-chips .chip:has(input:focus-visible) { outline: 2px solid var(--focus); }
.cat-more { border: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.cat-more summary { cursor: pointer; padding: 9px 14px; font-weight: 600; font-size: 0.9rem; list-style: none; }
.cat-more summary::-webkit-details-marker { display: none; }
.cat-more summary::after { content: " ▾"; color: var(--muted); }
.cat-more[open] summary::after { content: " ▴"; }
.cat-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 4px 14px 14px; }
.cat-more .label { font-size: 0.86rem; font-weight: 600; }
.cat-more .seg { margin-bottom: 6px; }
.cat-flowers { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-flowers .chip { gap: 6px; }
.cat-flowers .chip button { border: 0; background: none; padding: 0 0 0 2px; font-size: 1rem; line-height: 1; color: inherit; }
.cat-range { display: flex; gap: 6px; align-items: center; }
.cat-range input { width: 100%; }
.cat-results { display: grid; gap: 12px; }
.cat-results[busy] { opacity: 0.6; transition: opacity .2s; }
.cat-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.cat-summary strong { color: var(--ink); }
.cat-reset { color: var(--ink); }
.cat-table td { vertical-align: middle; }
.cat-table tr.inactive td { opacity: 0.6; }
.cat-thumb { width: 64px; }
.cat-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 0; display: block; }
.cat-comp span { display: inline-block; margin: 0 10px 2px 0; font-size: 0.86rem; white-space: nowrap; }
@media (max-width: 620px) { .cat-filters { position: static; } .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.cat-more .field { align-content: start; }
.cat-flowers:empty { display: none; }


/* Header bar like the till's admin: clock, name days, version, account */
.top-user { gap: 12px; font-size: 0.88rem; }
.top-clock { font-weight: 700; font-variant-numeric: tabular-nums; }
.top-nameday { color: var(--muted); }
.top-nameday strong { color: var(--ink); }
.top-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); text-decoration: none; background: var(--surface); white-space: nowrap; }
.top-chip:hover { background: var(--surface-2); }
.usermenu summary.top-chip { padding: 6px 12px; border-radius: 0; }
@media (max-width: 1100px) { .top-nameday { display: none; } }
@media (max-width: 640px) { .top-username { display: none; } }
.btn-new-order { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 0; background: #2e7d32; color: #ffffff; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.btn-new-order:hover { background: #256628; }
.suggest-list li button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 0; }
.suggest-list li button:hover { background: var(--accent-soft); }
.phone-field .suggest-list { grid-column: 1 / -1; right: -110%; }

/* Order list like the old intranet: totals, filter rows, one row per order; unprinted orders marked red */
main.wrap:has(.orders-view) { max-width: 1680px; }
.order-stats { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; }
.order-stats div { display: flex; gap: 10px; align-items: baseline; }
.order-stats span { font-weight: 700; }
.order-stats strong { font-size: 1.1rem; }
.order-filters { display: grid; gap: 10px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 12px; align-items: end; }
.filter-grid label { display: grid; gap: 3px; font-weight: 600; font-size: 0.84rem; }
.filter-grid input, .filter-grid select { padding: 7px 10px; font-weight: 400; }
.filter-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.btn-filter { border: 0; border-radius: 0; background: #2e7d32; color: #ffffff; font-weight: 700; padding: 9px 26px; }
.btn-filter:hover { background: #256628; }
table.orders { font-size: 0.92rem; }
table.orders thead th { background: var(--accent); color: #ffffff; font-size: 0.85rem; text-transform: none; letter-spacing: 0; padding: 10px 8px; }
table.orders td { padding: 10px 8px; }
table.orders tbody tr:nth-child(even) td { background: var(--surface-2); }
table.orders tr.cancelled td { color: var(--muted); text-decoration: line-through; }
table.orders tr.cancelled td.options, table.orders tr.cancelled td:nth-last-child(2) { text-decoration: none; }
.dot-unprinted { display: inline-block; width: 9px; height: 9px; border-radius: 0; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.cust { font-size: 1rem; }
.count-badge { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 0; background: #2e7d32; color: #ffffff; font-size: 0.74rem; font-weight: 700; text-align: center; }
.phone { color: var(--muted); font-size: 0.86rem; white-space: nowrap; }
.paid-yes { display: inline-block; padding: 1px 9px; border-radius: 0; background: #2e7d32; color: #ffffff; font-weight: 700; font-size: 0.85rem; }
.status-select { padding: 5px 26px 5px 8px; font-size: 0.85rem; min-width: 120px; background-position: right 8px center; }
th.options, td.options { text-align: right; }
.icon-link { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 0; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.95rem; background: var(--surface); }
.icon-link:hover { background: var(--surface-2); }
.icon-link.danger { color: var(--accent); }

/* While an order is being entered, everything around the form is blurred so shop staff see only the form */
body.focus-form { background: #d9d9d9; }
body.focus-form header.top { position: static; }
body.focus-form header.top, body.focus-form .app-footer { filter: blur(3px); opacity: 0.55; transition: filter 0.2s, opacity 0.2s; }
body.focus-form header.top:hover { filter: none; opacity: 1; }
body.focus-form main.wrap { margin-top: 12px; padding: 14px 18px; background: var(--bg); border-radius: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); }
.day-id { display: inline-block; min-width: 28px; padding: 0 6px; border-radius: 0; background: var(--ink); color: #ffffff; text-align: center; font-size: 1rem; }
.day-id-filter input { background: var(--accent-soft); border-color: var(--accent) !important; }
.btn-wolt { margin-left: auto; padding: 10px 22px; border-radius: 0; background: #00c2e8; color: #ffffff; font-weight: 700; text-decoration: none; }
.wolt { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 0; font-size: 0.78rem; font-weight: 700; background: #e0f7fc; color: #007a93; }
.wolt a { color: inherit; }
.wolt-error { background: var(--bad-soft); color: var(--bad); }
.wolt-delivered { background: var(--good-soft); color: var(--good); }
.wolt-cancelled { background: var(--surface-2); color: var(--muted); }
.key-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.key-form input { flex: 1 1 320px; width: auto; }
input[type="password"] { font: inherit; width: 100%; padding: 10px 12px; border-radius: 0; border: 1px solid #c9c9c2; background: var(--surface); color: var(--ink); }
.template-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.field .label { font-size: 0.86rem; font-weight: 600; }
.cust-link { color: inherit; text-decoration: none; }
.cust-link:hover { text-decoration: underline; }

/* All checkboxes (and the order form's look options) the same: big square, green tick when chosen (Vašek, 31 Oct 2026) */
input[type="checkbox"], .look-option input {
  appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; cursor: pointer;
  border: 2px solid #9a9a9a; border-radius: 0; background: var(--surface); display: inline-grid; place-items: center; vertical-align: middle;
}
input[type="checkbox"]:checked, .look-option input:checked {
  border-color: #2e7d32;
  background: #2e7d32 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
input[type="checkbox"]:focus-visible, .look-option input:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; }
.look-option:has(input:checked) { border-color: #2e7d32; background: var(--good-soft); color: var(--good); }
.stats-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
table.orders tr.unmatched td:first-child { box-shadow: inset 4px 0 0 #f2b705; }
.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pager a, .pager span { min-width: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 0; text-align: center; text-decoration: none; color: var(--ink); background: var(--surface); }
.pager a:hover { background: var(--surface-2); }
.pager span[aria-current] { background: var(--accent); border-color: var(--accent); color: #ffffff; font-weight: 700; }
.pager .gap { border: 0; background: none; }
.filter-check { align-self: end; padding-bottom: 8px; }
.variant-row { display: grid; grid-template-columns: minmax(0, 2fr) 110px minmax(0, 1fr); gap: 8px; }
.variant-row .field-error { grid-column: 1 / -1; }
.section-title { margin: 22px 0 10px; font-size: 1.05rem; }
.top-gear { padding: 6px 8px; } .top-gear:hover, .top-gear[aria-current] { color: #EE2E2A; }
.cart-ribbon { display: grid; gap: 4px; margin-top: 6px; }
.cart-ribbon[hidden] { display: none; }
.cart-ribbon select, .cart-ribbon input { width: 100%; font: inherit; font-size: 0.85rem; padding: 4px 6px; }
.ticket-ribbon { border: 2px solid #000; padding: 4px; margin: 4px 0; }
.email-preview { width: 100%; height: 520px; border: 1px solid var(--line); background: #e7e7e7; }
/* Orders: time filters, own range and the totals in one bar */
.time-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); }
.time-range { display: flex; align-items: center; gap: 8px; }
.time-range label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.time-range input[type="date"] { width: auto; padding: 6px 8px; }
.time-range.active input[type="date"] { border-color: var(--accent); }
.time-bar .btn-wolt { margin-left: 0; padding: 8px 16px; }
.stat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stat-tiles div { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 8px 12px; display: grid; gap: 2px; }
.stat-tiles span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat-tiles strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Product photos: gallery strip in the detail, photo management on the edit page */
.photo-strip { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-strip a { cursor: zoom-in; display: block; border: 1px solid var(--line); }
.photo-strip a:hover { border-color: var(--ink); }
.photo-manage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.photo-manage li { position: relative; display: grid; gap: 6px; align-content: start; }
.photo-manage img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border: 1px solid var(--line); }
.photo-manage li.main img { border: 2px solid var(--accent); }
.photo-manage .photo-badge { position: absolute; top: 6px; left: 6px; background: var(--ink); color: var(--surface); font-size: 0.75rem; font-weight: 700; padding: 2px 7px; }
.photo-manage li.main .photo-badge { background: var(--accent); color: var(--accent-ink); }
.photo-actions { display: flex; flex-wrap: wrap; gap: 4px; }
/* Rozvoz / Naložení */
.delivery-bar { padding: 8px 12px; }
.delivery-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--muted); }
.delivery-stats strong { color: var(--ink); font-size: 1rem; margin-left: 2px; }
.delivery-stats .bad strong { color: var(--bad); }
.delivery-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; font-size: 0.9rem; font-weight: 600; }
.delivery-mode select { width: auto; }
.delivery-layout { display: grid; gap: 14px; margin-top: 10px; }
.delivery-map { min-height: 420px; border: 1px solid var(--line); background: var(--surface); position: relative; }
.delivery-list { display: grid; gap: 8px; align-content: start; }
.delivery-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: sticky; top: 120px; z-index: 2; background: var(--bg, #f6f6f6); padding: 4px 0; }
.delivery-actions label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; }
.delivery-actions select { width: auto; }
.delivery-card { display: grid; grid-template-columns: max-content minmax(0, 1fr) minmax(0, 0.7fr); grid-template-areas: "side main message" "foot foot foot" "buttons buttons buttons"; gap: 10px 18px; padding: 14px 16px; align-items: start; cursor: default; }
label.delivery-card { cursor: pointer; position: relative; }
.delivery-card > .sub { grid-column: 1 / -1; }
label.delivery-card input { position: absolute; opacity: 0; pointer-events: none; }
label.delivery-card:has(input:checked) { border-color: #2e7d32; box-shadow: inset 5px 0 0 #2e7d32; background: #e3f4e4; }
label.delivery-card:has(input:checked) .dcard-side, label.delivery-card:has(input:checked) .dcard-message { border-color: #b9dfbb; }
.delivery-card.is-done { opacity: 0.6; }
.dcard-side { grid-area: side; display: grid; justify-items: start; align-content: start; gap: 3px; padding-right: 14px; border-right: 1px solid var(--line); }
.dcard-no { font-size: 1.35rem; line-height: 1.1; }
.dcard-number { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dcard-time { font-size: 1.25rem; white-space: nowrap; }
.dcard-city { background: #f2d55c; color: #5c4c0c; font-weight: 600; font-size: 0.85rem; padding: 3px 9px; border-radius: 0; margin-top: 2px; }
.dcard-main { grid-area: main; display: grid; gap: 6px; font-size: 1rem; }
.dcard-person { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: baseline; }
.dcard-person > div { display: grid; }
.dcard-person strong { font-size: 1.1rem; }
.dcard-kind { font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.dcard-to strong { color: #2e7d32; }
.dcard-person a { font-size: 0.92rem; white-space: nowrap; justify-self: start; }
.dcard-addr { display: grid; gap: 2px; justify-items: start; padding-left: 34px; }
.dcard-message { grid-area: message; display: grid; align-content: start; gap: 8px; font-size: 0.9rem; padding-left: 14px; border-left: 1px solid var(--line); align-self: stretch; }
.dcard-items { width: 100%; border-collapse: collapse; }
.dcard-items td { padding: 2px 0; vertical-align: top; border: 0; }
.dcard-items td.num { text-align: right; white-space: nowrap; padding-left: 10px; font-variant-numeric: tabular-nums; }
.dcard-items .dcard-total td { border-top: 1px solid var(--line); padding-top: 5px; font-weight: 700; }
.dcard-card { font-size: 0.85rem; font-style: italic; color: #555; }
.btn.btn-load { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.btn.btn-load:hover { background: #256628; }
.dcard-foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dcard-foot .btn { min-height: 44px; padding-inline: 26px; }
@media (max-width: 700px) { .delivery-card { grid-template-columns: 110px minmax(0, 1fr); grid-template-areas: "side main" "message message" "foot foot" "buttons buttons"; } .dcard-message { border-left: 0; padding-left: 0; } }
.delivery-buttons { grid-area: buttons; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.delivery-buttons .btn { min-height: 44px; }
.undelivered { position: relative; }
.undelivered summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; }
.undelivered[open] { display: flex; flex-wrap: wrap; gap: 6px; }
.map-pin { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; padding: 4px 6px; background: #e63946; color: #fff; font-weight: 700; font-size: 0.8rem; box-shadow: 0 2px 6px rgba(0,0,0,0.35); white-space: nowrap; position: relative; }
.map-pin::after { content: ''; position: absolute; bottom: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #e63946; }
.map-pin.chosen { background: #2e7d32; } .map-pin.chosen::after { border-top-color: #2e7d32; }
.map-pin.done { background: #777; } .map-pin.done::after { border-top-color: #777; }
@media (min-width: 1000px) {
  .delivery-layout { grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr); align-items: start; }
  .delivery-map { position: sticky; top: 120px; height: calc(100vh - 150px); }
}
/* Map over the whole screen (delivery_map_controller.js) */
.delivery-map.is-full { position: fixed !important; inset: 0; z-index: 1000; height: auto !important; min-height: 0; border: 0; }
body.map-is-full { overflow: hidden; }
.map-full { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 8px 12px; background: #fff; color: #222; border: 2px solid rgba(0,0,0,0.25); border-radius: 0; cursor: pointer; }
.map-full:hover { background: #f2f2f2; }
@media print { .delivery-map, .delivery-buttons, nav.tabs, .time-bar { display: none !important; } }
/* Thin separators between the section tabs (Vašek, 2 Nov 2026) */
nav.tabs > a, nav.tabs > span.soon { position: relative; }
nav.tabs > :is(a, span.soon) + :is(a, span.soon)::before { content: ''; position: absolute; left: -1px; top: 50%; height: 16px; margin-top: -9px; width: 1px; background: #d9d9d9; }
/* Orders list (Vašek, 2 Nov 2026): compact filters on one row, day number centred on top, count badge before the customer */
.filter-grid { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 6px 8px; }
.filter-grid label { font-size: 0.78rem; }
.filter-grid input, .filter-grid select { padding: 5px 6px; font-size: 0.85rem; min-width: 0; width: 100%; }
.filter-grid .filter-actions { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; font-size: 0.8rem; }
.filter-grid .filter-actions .btn-filter { width: 100%; }
.number-cell { text-align: center; vertical-align: top; white-space: nowrap; }
.number-cell .day-id { display: block; margin: 0 auto 4px; width: max-content; }
.customer-cell .count-badge { margin-top: 4px; }
table.order-list tbody tr { cursor: default; }
/* Orders list 50 % larger for reading at the shop (Vašek, 2 Nov 2026) */
table.orders td { font-size: 1.22rem; padding: 6px 10px; line-height: 1.25; }
table.orders thead th { font-size: 1.15rem; padding: 12px 10px; }
table.orders .sub, table.orders .phone { font-size: 1.1rem; }
table.order-list .status-select { font-size: 1.1rem; }
table.order-list .icon-link { font-size: 1.2rem; }
.filter-grid .filter-actions { flex-direction: column; align-items: stretch; }
.btn-filter-reset { display: block; text-align: center; text-decoration: none; background: var(--surface-2) !important; color: var(--ink) !important; border: 1px solid var(--line); }
main.wrap:has(.orders-view) { max-width: none; }
table.orders td { vertical-align: top; }
table.order-list .cust { font-size: inherit; }
table.order-list td:nth-child(5) { min-width: 7em; }
table.orders td, table.orders thead th { padding-left: 5px; padding-right: 5px; }
table.order-list td.options { white-space: nowrap; width: 1%; }
table.order-list td.options .icon-link { width: 34px; height: 34px; margin-left: 1px; font-size: 1.3rem; }
table.order-list .status-select { width: 6.6em; min-width: 0; padding-right: 22px; background-position: right 4px center; }
table.order-list td:nth-child(5) { max-width: 12.5em; }
table.order-list thead th:last-child { font-size: 0.95rem; }
/* Day id at the left edge; a finished order's status pill as big as the status select of an open one. */
.number-cell { text-align: left; }
.number-cell .day-id { margin: 0 0 3px; }
.number-cell .dot-unprinted { display: block; margin: 0 0 3px; width: 11px; height: 11px; }
table.order-list .pill { display: block; box-sizing: border-box; width: 6.6em; font-size: 1.1rem; font-weight: 400; padding: 5px 8px; border: 1px solid var(--line); line-height: normal; }
/* Darker stripes; a cancelled order is struck through on a light red row. */
table.order-list tbody tr:nth-child(even) td { background: #e3e3e3; }
table.order-list tbody tr:hover td { background: #d8d8d8; }
table.order-list tbody tr.cancelled td { background: #fbe3e3; }
table.order-list tbody tr.cancelled:hover td { background: #f6d2d2; }
table.order-list .count-badge { margin-top: 2px; }
/* A new order stays red until its ticket is printed (darker than a cancelled one). */
table.order-list tbody tr.unprinted td { background: #f3b9b9; }
table.order-list tbody tr.unprinted:hover td { background: #eea8a8; }
/* Paid yes/no under the price. */
.paid-box { display: inline-block; padding: 0 7px; border: 2px solid; font-weight: 700; font-size: 1rem; background: #ffffff; }
.paid-box.yes { border-color: #2e7d32; color: #2e7d32; }
.paid-box.no { border-color: var(--accent); color: var(--accent); }
/* Options in two rows: preview, print, card / edit, detail, cancel. */
table.order-list td.options > div { white-space: nowrap; }
table.order-list td.options > div + div { margin-top: 3px; }
.key-group { margin: 22px 0 6px; font-size: 1.05rem; }
/* New-order alarm bar on top of every page until the ticket is printed. */
.new-order-alert { position: sticky; top: 0; z-index: 50; display: flex; gap: 12px; justify-content: center; align-items: center;
  padding: 10px 16px; background: var(--accent); color: #ffffff; font-size: 1.15rem; animation: new-order-blink 1s steps(2, start) infinite; }
.new-order-alert[hidden] { display: none; }
.new-order-alert a { color: #ffffff; text-decoration: none; }
.new-order-alert button { background: #ffffff; color: var(--accent); border: 0; padding: 4px 10px; font-weight: 700; cursor: pointer; }
@keyframes new-order-blink { 50% { background: #a4141a; } }
@media (prefers-reduced-motion: reduce) { .new-order-alert { animation: none; } }
/* New/edit order: one larger size for every label, field and button, readable at the shop counter (Vašek, 2 Nov 2026). */
.order-form, .order-form :is(label, input, select, textarea, button, span, small, strong, em, td, th, p, a, li, div) { font-size: 1.15rem; }
.order-form :is(.block-title, .box-title, .look .block-title) { font-size: 1.35rem; }
.order-form .own-price input, .order-form .cart-total, .order-form .cart-total * { font-size: 1.3rem; }
.order-form .look-label, .order-form .pairs > label { font-size: 1.1rem; width: auto; }
.order-form .pairs { grid-template-columns: 105px minmax(0, 1fr) 115px minmax(0, 1fr); }
.order-form .look-option input { width: 22px; height: 22px; }
.order-form .btn.small.company-btn { font-size: 1.05rem; }
.order-form .order-bar .confirm, .order-form .order-bar .cancel { font-size: 1.3rem; }
.order-form .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.order-form .own-price input { width: 80px; }
.order-form .own-price { gap: 6px; }
.order-form .picker-tabs > button { padding: 9px 12px; }
/* Logo: red text only. */
header.top .logo { background: none; color: var(--accent); padding: 0; font-size: 1.6rem; letter-spacing: 0; text-transform: none; }
/* Header: Wolt closing under the new-order button. */
.top-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.top-actions .btn-wolt { margin: 0; padding: 6px 20px; text-align: center; }
/* Calendars in the orders filter open downwards; a range is filled between its ends. */
.calendar.down { bottom: auto; top: calc(100% + 6px); }
.calendar-grid button.in-range { background: var(--accent-soft); }
.calendar-clear { padding: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.range-picker .date-button { min-width: 250px; padding: 7px 11px; }
.filter-date { display: grid; gap: 3px; font-size: 0.8rem; font-weight: 600; }
.filter-date .date-button { padding: 6px 8px; min-height: 34px; font-weight: 400; }
.filter-date .date-button::before { content: "📅"; }
.filter-date .calendar { z-index: 20; }
/* Time bar in one row: quick ranges, one calendar for od–do, totals (management only). */
.time-bar { flex-wrap: nowrap; align-items: center; }
.time-bar .time-range, .time-bar .range-picker { display: flex; align-items: center; margin: 0; }
.time-bar .range-picker .date-button { height: 40px; min-width: 210px; }
.time-bar .stat-tiles { display: flex; gap: 6px; margin-left: auto; }
.time-bar .stat-tiles div { padding: 3px 10px; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.time-bar .stat-tiles strong { font-size: 1.05rem; }
/* Header: new order on the left, Wolt closing on the right, same size. */
.brand-group .btn-new-order, .top-actions .btn-wolt { padding: 10px 20px; font-size: 1rem; min-width: 200px; justify-content: center; text-align: center; }
.top-actions { flex-direction: row; }
/* "Jak má květina vypadat?": labels in one column, checkboxes in equal columns lined up across the rows. */
.order-form .look-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: start; gap: 8px; }
.order-form .look-label { padding-top: 7px; }
.order-form .look-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.order-form .look-option { justify-content: flex-start; white-space: nowrap; }
/* Košík and Doručení as tall as the left half: the cart grows. */
.order-form .order-bottom { align-items: stretch; }
.order-form .order-bottom > .order-col:last-child { display: flex; flex-direction: column; gap: 12px; }
.order-form .order-bottom > .order-col:last-child > .box:first-child { flex: 1; display: flex; flex-direction: column; }
.order-form .order-bottom .cart-wrap { flex: 1; max-height: none; min-height: 180px; }
.order-form .notes textarea { min-height: 130px; }
.order-form .look-row { grid-template-columns: 108px minmax(0, 1fr); }
.order-form .look-options { gap: 4px; }
.order-form .look-option, .order-form .look-option * { font-size: 1.05rem; }
.order-form .look-option { padding: 5px 6px; gap: 5px; overflow: hidden; }
.order-form .look-option { white-space: normal; overflow: visible; line-height: 1.2; }
.order-form .look-option { white-space: nowrap; padding: 5px 4px; gap: 4px; letter-spacing: -0.01em; }
.order-form .look-option input { width: 18px; height: 18px; }
.order-form .look-label { padding-top: 5px; }
.order-form .look-option:has(input[data-text="barvu neřeším"]) { grid-column: span 2; }

/* ===== Phone (Vašek, 3 Nov 2026): the computer layout stays as it is; below 760 px the intranet folds up. ===== */
.filter-toggle { display: none; }
@media (max-width: 760px) {
  main.wrap, header.top .wrap { padding-inline: 10px; }
  /* Header: the two big buttons side by side, tabs scroll sideways. */
  .top-row { grid-template-columns: 1fr 1fr; gap: 8px; padding-block: 8px 4px; }
  .brand-group .btn-new-order, .top-actions .btn-wolt { min-width: 0; width: 100%; padding: 10px 8px; font-size: 0.95rem; }
  .top-actions { justify-self: stretch; }
  .tabs-row { flex-direction: row; align-items: flex-end; }
  .tabs-row .top-user { gap: 6px; }
  /* Time bar: quick ranges in one scrolling row, od–do on its own line, totals below. */
  .time-bar { flex-wrap: wrap; padding: 8px; gap: 8px; }
  .time-bar .seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .time-bar .time-range, .time-bar .range-picker, .time-bar .range-picker .date-button { width: 100%; min-width: 0; }
  .time-bar .stat-tiles { flex-wrap: wrap; margin-left: 0; }
  .calendar.down { width: calc(100vw - 20px); left: 0; }
  .filter-date .calendar { left: auto; right: 0; }
  /* Other filters behind one button. */
  .filter-toggle { display: block; width: 100%; padding: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 1rem; }
  .filter-toggle.open, .filter-grid.open + * { }
  .filter-grid { display: none; grid-template-columns: 1fr 1fr; }
  .filter-grid.open { display: grid; }

}
/* Current section: a red frame instead of the underline (Vašek, 3 Nov 2026). */
nav.tabs > a, nav.tabs > span.soon { border: 2px solid transparent; margin-bottom: 4px; }
nav.tabs > a[aria-current="page"] { border: 2px solid var(--accent); color: var(--accent); }
nav.tabs > a[aria-current="page"]::after { display: none; }
@media (max-width: 760px) { .new-order-alert { font-size: 0.95rem; padding: 6px 10px; } .new-order-alert button { padding: 4px 8px; } }
nav.tabs > a, nav.tabs > span.soon { padding: 6px 5px; }
/* New order on a phone: one column, label + field pairs, two tiles per row. */
@media (max-width: 760px) {
  .order-form .order-top, .order-form .order-bottom { grid-template-columns: minmax(0, 1fr); }
  .order-form .pairs { grid-template-columns: 95px minmax(0, 1fr); }
  .order-form .pairs .span3, .order-form .pairs .span2 { grid-column: auto; }
  .order-form .block-head { flex-wrap: wrap; }
  .order-form .picker-tabs { flex-wrap: wrap; }
  .order-form .own-price { margin: 4px 0 6px; width: 100%; }
  .order-form .own-price input { flex: 1; }
  .order-form .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 360px; }
  .order-form .look-row { grid-template-columns: minmax(0, 1fr); }
  .order-form .look-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-form .notes { grid-template-columns: minmax(0, 1fr); }
  .order-form .order-bar .confirm, .order-form .order-bar .cancel { font-size: 1.05rem; padding: 14px 8px; }
  .order-form .calendar { width: calc(100vw - 20px); left: -95px; }
}
@media (max-width: 760px) { .order-form .pairs > div:has(.paid-select) { grid-column: 1 / -1; } .order-form .pairs > label.sr-only { position: absolute; } }
/* New/edit order starts at the very top: no menu above it (Vašek, 3 Nov 2026); Zrušit leads back. */
body.focus-form header.top { display: none; }
body.focus-form main.wrap { margin-top: 0; }
/* Wider intranet on big screens (Vašek, 3 Nov 2026): header and every section share one width. */
.wrap, main.wrap:has(.orders-view), main.wrap:has(.order-form) { max-width: 1680px; }
/* Header text 15 % larger (Vašek, 3 Nov 2026). */
header.top nav.tabs > a, header.top nav.tabs > span.soon { font-size: 1.035rem; }
header.top .top-center { font-size: 1.01rem; }
header.top .brand-group .btn-new-order, header.top .top-actions .btn-wolt { font-size: 1.15rem; }
header.top .top-chip, header.top .usermenu summary { font-size: 1.035rem; }
@media (max-width: 760px) { header.top .brand-group .btn-new-order, header.top .top-actions .btn-wolt { font-size: 1.05rem; } }
/* Nákup */
.purchase-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.purchase-form { display: grid; gap: 10px; }
.purchase-search { width: 100%; }
.purchase-branch { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.purchase-group { background: var(--surface); border: 1px solid var(--line); }
.purchase-group summary { padding: 10px 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; background: var(--surface-2); }
.purchase-item { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; align-items: center; padding: 6px 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: 1.05rem; }
.purchase-item[hidden] { display: none; }
.purchase-item input { text-align: right; padding: 7px 8px; }
.purchase-item.own { grid-template-columns: minmax(0, 1fr) 90px; }
.purchase-item.own input[type="text"] { text-align: left; }
.purchase-submit { position: sticky; bottom: 8px; padding: 14px; font-size: 1.1rem; }
.purchase-history { padding: 0; overflow-x: auto; }
.purchase-table td, .purchase-table th { padding: 8px 10px; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }
form.inline { display: inline; }
.purchase-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.purchase-row input[type="text"], .purchase-row input[type="email"] { flex: 1 1 220px; }
.purchase-row input.short, .purchase-row input[type="number"] { width: 90px; flex: none; }
@media (max-width: 900px) { .purchase-layout { grid-template-columns: minmax(0, 1fr); } }
.purchase-search { padding: 10px 12px; font-size: 1.05rem; border: 1px solid var(--line); }
.purchase-actions { min-width: 170px; }
/* Přehled: sales figures (Vedení). Values are written on every bar, not only on hover. */
.sales-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.sales-tile { display: grid; gap: 3px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 12px 14px; }
.sales-tile .lbl { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.sales-tile .val { font-size: 1.7rem; line-height: 1.15; }
.sales-tile .src { font-size: 0.85rem; color: var(--muted); }
.sales-tile .trend { font-size: 0.85rem; font-weight: 700; }
.sales-tile .trend.up { color: #2e7d32; }
.sales-tile .trend.down { color: var(--accent); }
.sales-chart { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 4px; height: 240px; align-items: end; padding-top: 8px; }
.bar-col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; }
.bar-col .bar { align-self: end; display: block; background: var(--accent); min-height: 1px; }
.bar-col.weekend .bar { background: #f08a87; }
.bar-val { font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.bar-day { font-size: 0.68rem; color: var(--muted); padding-top: 3px; white-space: nowrap; }
.bar-col { position: relative; }
.bar-col .bar-val { align-self: end; }
.sales-table { width: 100%; }
.sales-table td, .sales-table th { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.sales-table .num { text-align: right; }
.sales-table .share { white-space: nowrap; font-size: 0.85rem; }
.sales-table .share span { display: inline-block; height: 10px; background: var(--accent); vertical-align: middle; margin-right: 4px; }
@media (max-width: 1100px) { .sales-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .sales-chart { grid-template-columns: repeat(30, 24px); overflow-x: auto; } .bar-val { font-size: 0.6rem; } }
/* Orders: quick ranges and filter labels/fields 15 % larger (Vašek, 3 Nov 2026). */
.time-bar .seg a { font-size: 0.99rem; }
.filter-grid label, .filter-date { font-size: 0.9rem; }
.filter-grid input, .filter-grid select, .filter-date .date-button { font-size: 0.98rem; }
.filter-picker .date-button { width: 100%; min-height: 36px; padding: 6px 10px; font-weight: 600; }
.filter-date.inline { display: flex; align-items: center; gap: 8px; }
.filter-date.inline .date-button { min-width: 230px; }
.filter-date.wide { grid-column: span 2; }
.bar-col { display: flex; flex-direction: column; justify-content: flex-end; }
.bar-col .bar-val { order: 1; padding-bottom: 2px; }
.bar-col .bar { order: 2; align-self: stretch; }
.bar-col .bar-day { order: 3; }
.sales-chart { align-items: stretch; }
.bar-col .bar-wrap { display: none; }
.sales-table .share { width: 30%; }
.bar-col .bar-val { text-align: center; width: 100%; display: block; }
.payment-message { overflow-wrap: anywhere; min-width: 200px; }
/* Obsah webu: photo galleries of a page. */
.gallery-admin { display: grid; gap: 14px; }
.gallery-block { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.gallery-head, .gallery-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gallery-head input[type="text"] { flex: 1 1 260px; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.gallery-grid li { display: grid; gap: 4px; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--surface-2); }
.gallery-grid form { display: flex; justify-content: center; gap: 4px; }
/* Link to the shop above the name day. */
header.top .top-center { flex-direction: column; gap: 2px; }
.top-web { font-size: 0.9rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.top-web:hover { text-decoration: underline; }
/* Table header bar green (Vašek, 4 Nov 2026). */
table.orders thead th { background: #2e7d32; }
/* Section tabs: separators sit in the gap between tabs, never under the red frame of the open one. */
nav.tabs { column-gap: 9px; }
nav.tabs > :is(a, span.soon) + :is(a, span.soon)::before { left: -5px; }
nav.tabs > a[aria-current="page"]::before, nav.tabs > a[aria-current="page"] + :is(a, span.soon)::before { display: none; }
/* Exact amount above every bar, written upwards so 30 days fit. */
.bar-col .bar-val { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; width: auto; font-size: 0.72rem; padding: 0 0 4px; margin: 0 auto; }
.sales-chart { height: 300px; }
.bar-col .bar-val { padding: 0; margin: 0 auto 5px; }
/* Intranet across the whole screen of the shop PCs (Vašek, 4 Nov 2026). */
.wrap, main.wrap:has(.orders-view), main.wrap:has(.order-form) { max-width: none; }
.wrap { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Smaller screens (Vašek, 4 Nov 2026): a narrower table on a small notebook, cards below 1100 px
   (two per row on a tablet, one on a phone). */
@media (max-width: 1400px) {
  table.order-list td { font-size: 1.02rem; }
  table.order-list thead th { font-size: 0.98rem; }
  table.order-list .sub, table.order-list .phone { font-size: 0.92rem; }
  table.order-list td:nth-child(5) { min-width: 6em; }
}
@media (max-width: 1100px) {
  /* Orders as cards: number + state, date + price, customer + delivery, icons. */
  table.order-list, table.order-list tbody { display: block; }
  table.order-list thead { display: none; }
  table.order-list tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; padding: 10px; margin-bottom: 10px; border: 1px solid var(--line); background: var(--surface); }
  table.order-list tbody tr:nth-child(even) { background: #ececec; }
  table.order-list tbody tr.unprinted { background: #f3b9b9; }
  table.order-list tbody tr.cancelled { background: #fbe3e3; }
  table.order-list tbody tr td, table.order-list tbody tr:nth-child(even) td, table.order-list tbody tr:hover td, table.order-list tbody tr.unprinted td, table.order-list tbody tr.cancelled td { display: block; padding: 0; border: 0; background: none; font-size: 1.05rem; min-width: 0; max-width: none; }
  table.order-list td:nth-child(1) { order: 1; }
  table.order-list td:nth-child(11) { order: 2; justify-self: end; }
  table.order-list td:nth-child(2) { order: 3; }
  table.order-list td:nth-child(4) { order: 4; text-align: right; }
  table.order-list td:nth-child(3) { order: 5; }
  table.order-list td:nth-child(5) { order: 6; text-align: right; }
  table.order-list td:nth-child(6), table.order-list td:nth-child(7), table.order-list td:nth-child(8), table.order-list td:nth-child(9), table.order-list td:nth-child(10) { display: none !important; }
  table.order-list td.options { order: 7; grid-column: 1 / -1; display: flex !important; flex-wrap: wrap; gap: 6px; text-align: left; width: auto; }
  table.order-list td.options > div { display: flex; gap: 6px; }
  table.order-list td.options > div + div { margin-top: 0; }
  table.order-list td.options .icon-link { width: 44px; height: 44px; font-size: 1.4rem; margin: 0; }
  table.order-list .number-cell { display: flex !important; align-items: center; gap: 8px; }
  table.order-list .number-cell .day-id { margin: 0; }
  .table-wrap { overflow: visible; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  table.order-list tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  table.order-list tbody tr { margin-bottom: 0; }
}
@media (max-width: 1100px) { .time-bar { flex-wrap: wrap; } .time-bar .seg { flex-wrap: nowrap; } }
/* Katalog: the whole photo visible (contain, not cropped) in bigger tiles (Vašek, 4 Nov 2026). */
.product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.product-tile .tile-photo { aspect-ratio: 3 / 4; height: auto; background: #ffffff; }
.product-tile .tile-photo img { width: 100%; height: 100%; object-fit: contain; }
.cat-thumb { width: 84px; }
.cat-thumb img { width: 76px; height: 96px; object-fit: contain; background: #ffffff; }
/* Sub-menu of a section (Obsah webu: Stránky, Texty kategorií, E-mailové šablony). */
.subnav { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 14px; border-bottom: 2px solid var(--line); }
.subnav a { padding: 10px 18px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; font-size: 1rem; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
/* SMS statistics. */
.sms-chart { height: 200px; }
.sms-chart .bar-val { writing-mode: horizontal-tb; transform: none; font-size: 0.8rem; }
.stats-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .stats-3 { grid-template-columns: minmax(0, 1fr); } }
/* Filters line up: one label height, one field height (Platby, Fakturace, Objednávky). */
.filter-grid { align-items: end; }
.filter-grid > label, .filter-grid > .filter-date { display: grid; grid-template-rows: auto 38px; gap: 3px; font-size: 0.9rem; font-weight: 600; }
.filter-grid > label > input, .filter-grid > label > select, .filter-grid .filter-date .date-button { height: 38px; min-height: 38px; box-sizing: border-box; }
.filter-grid .filter-date .datepicker { height: 38px; }
.form-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
/* Order form: Wolt, video, storno and history (there is no order detail page any more). */
.form-info { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.order-history { margin-top: 12px; }
.order-history summary { cursor: pointer; font-weight: 600; }
.order-history .history { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.inline-form { display: inline; }

/* Square everything that has a frame or is a button (Vašek, 4 Nov 2026: no rounded shapes). */
button, input, select, textarea, .btn { border-radius: 0; }

/* Header on a computer (Vašek, 5 Nov 2026): "Nová objednávka" big over the whole white bar on the left,
   the tabs move to the middle; Wolt and the user menu stay on the right. */
@media (min-width: 761px) {
  header.top > .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "new center wolt" "new tabs user"; column-gap: 20px; }
  header.top .top-row, header.top .tabs-row { display: contents; }
  header.top .brand-group { grid-area: new; display: flex; align-items: stretch; align-self: stretch; padding-block: 10px; }
  header.top .brand-group:empty { display: none; }
  header.top .brand-group .btn-new-order { align-self: stretch; height: auto; min-width: 250px; padding: 0 28px; font-size: 1.5rem; justify-content: center; }
  header.top .top-center { grid-area: center; justify-self: center; padding-top: 10px; }
  header.top .top-actions { grid-area: wolt; align-self: center; padding-top: 10px; }
  /* Centred with auto margins: justify-content: center would cut off the first tab when they do not fit. */
  header.top nav.tabs { grid-area: tabs; }
  header.top nav.tabs > :first-child { margin-left: auto; }
  header.top nav.tabs > :last-child { margin-right: auto; }
  header.top .tabs-row .top-user { grid-area: user; align-self: end; justify-self: end; }
}
/* With all tabs (admin) the middle gets tight: narrower tabs, the user menu shows only its icon. */
@media (min-width: 761px) and (max-width: 1700px) {
  header.top nav.tabs > a { padding-inline: 4px; font-size: 0.97rem; }
  header.top .tabs-sep { margin-inline: 2px; }
  header.top .brand-group .btn-new-order { min-width: 0; padding-inline: 20px; font-size: 1.3rem; }
  header.top .top-actions .btn-wolt { min-width: 0; padding-inline: 16px; }
  header.top > .wrap { column-gap: 8px; }
}
/* Users: shop PCs and people as two lists, each with its own add button (Vašek, 5 Nov 2026) */
.block-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.block-head-row h3 { margin: 0; font-size: 1.15rem; }

/* Customers: loyalty groups by order count (Customer::SEGMENTS) */
.seg-badge { display: inline-block; padding: 1px 7px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; vertical-align: middle; border: 1px solid var(--line); color: var(--muted); }
.seg-badge.seg-vraceji-se { border-color: #90caf9; color: #1565c0; background: #e3f2fd; }
.seg-badge.seg-verni { border-color: #a5d6a7; color: #2e7d32; background: #e8f5e9; }
.seg-badge.seg-vip { border-color: #ffcc80; color: #a15c00; background: #fff3e0; }
.customer-kpis { margin-bottom: 16px; }
.customer-card-link { margin-left: auto; }
.customers-table td .seg-badge { margin-left: 4px; }
