/* Poppins from our own server like the shop (Nov 2026: Google Fonts cost an extra connection and blocked the first paint). Latin and Latin Extended (Czech) only. SIL Open Font License. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin-ext-zc30_cW.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400-latin-heQdAz3.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin-ext-UEujKhQ.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500-latin-AuPgurU.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin-ext-yqhVVzG.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600-latin-RV1hfMj.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin-ext-c8zWSwk.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700-latin-5ePuYxR.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* 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 in the middle for 5 s (Vašek, 19 Nov 2026; was 3 s), a click closes it. */
.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); cursor: pointer; animation: toast-out .4s ease-in 4.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="datetime-local"], 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; }
/* Login, návrh B (Vašek, 14 Nov 2026): white side with a red edge, the logo and today's date; the form on grey. */
.auth .auth-side { background: #fff; color: var(--ink); border-left: 12px solid var(--accent); justify-content: flex-start; gap: 0; padding: 56px 64px; }
.auth .auth-side::after { display: none; }
.auth-side .auth-logo { display: block; }
.auth-logo svg { height: 54px; width: auto; display: block; }
.auth-side > div { margin: auto 0; }
.auth-day { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.auth-nameday { margin: 10px 0 0; color: var(--muted); font-size: 1.05rem; }
.auth .auth-main { background: #f2f2f2; }
.auth-card .auth-logo svg { height: 40px; }
.auth-card .field input { min-height: 50px; font-size: 1.05rem; border-radius: 0; background: #fff; }
.auth-card .btn.primary.block { min-height: 52px; font-size: 1.05rem; border-radius: 0; }
@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) 9.5rem; gap: 8px; align-items: center; }
.component-cost { font-size: 0.85rem; color: var(--muted, #666); text-align: right; white-space: nowrap; }
.component-cost.missing { color: var(--accent); }
.material-total { margin: 4px 0 0; font-weight: 600; }
.material-total .sub { font-weight: 400; }
@media (max-width: 560px) { .component-row { grid-template-columns: 70px minmax(0, 1fr); } .component-cost { grid-column: 2; text-align: left; } }
.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 input[type="datetime-local"], .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.found { outline: 2px solid var(--accent); outline-offset: -2px; }
.tile-search-row { padding: 6px; border-bottom: 1px solid var(--line); }
.tile-search-row .tile-search { width: 100%; box-sizing: border-box; padding: 6px 10px; border: 1px solid var(--line); background: var(--surface); }
.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); }
.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); }
.icon-link.disabled { opacity: 0.3; cursor: not-allowed; filter: grayscale(1); }

/* 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; }
/* ID dne stands out only once something is typed in; empty it looked like an error (Tester 28 Nov 2026). */
.day-id-filter input:not(:placeholder-shown) { 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; }
/* Columns as many as the bars (a week has 7), the best one green, a dashed trend line over them (Vašek, 14 Nov 2026) */
.sales-chart { position: relative; grid-template-columns: repeat(var(--cols, 30), minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); }
.sales-chart > .bar-col { grid-row: 1; } /* columns set inline: the trend line takes the whole row */
.bar-col.best .bar { background: #2e7d32; }
.bar-col.best .bar-val { color: #2e7d32; }
.trend-line { grid-row: 1; grid-column: 1 / -1; align-self: end; width: 100%; height: calc(100% - 90px); margin-bottom: 19px; pointer-events: none; overflow: visible; }
.trend-line line { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.chart-legend { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chart-legend span { display: inline-block; width: 22px; }
.lg-trend { border-top: 2px dashed var(--ink); }
.lg-best { height: 10px; background: #2e7d32; margin-left: 10px; }
@media (max-width: 760px) { .sales-chart { grid-template-columns: repeat(var(--cols, 30), 24px); } }
.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; }

/* Nápověda (Claude chat) */
.help-chat { display: grid; gap: 12px; max-width: 820px; }
.help-log { display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px; }
.help-msg { padding: 10px 14px; white-space: pre-wrap; line-height: 1.5; max-width: 85%; }
.help-msg.user { justify-self: end; background: #EE2E2A; color: #fff; }
.help-msg.assistant { justify-self: start; background: #f3f3f3; }
.help-msg.waiting { color: #888; font-style: italic; }
.help-form { display: flex; gap: 8px; align-items: stretch; }
.help-form textarea { flex: 1; font: inherit; padding: 10px; border: 1px solid #ccc; resize: vertical; }

/* Show/hide on the web straight from the catalogue list (Vašek, 12 Nov 2026) */
.web-toggle { margin-top: 6px; }
.product-tile .web-toggle { padding: 0 10px 10px; }
.web-toggle .btn { width: 100%; }

/* New order, step 1: find the customer first (Vašek, 12 Nov 2026) */
.order-form.finding .order-top, .order-form.finding .order-bottom, .order-form.finding .order-bar .confirm { display: none; }
.customer-find { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 14px; align-items: center; width: min(900px, 100%); margin: 8vh auto 0; padding: 28px 30px; }
.customer-find .box-title { font-size: 1.6rem; text-align: center; }
.customer-find .sub { text-align: center; }
.customer-find .btn { font-size: 1.1rem; padding: 16px 22px; }
.customer-find .box-title, .customer-find .sub { grid-column: 1 / -1; margin: 0; }
.customer-find-field { position: relative; }
.customer-find-field input { width: 100%; box-sizing: border-box; font-size: 1.6rem; padding: 16px 18px; border: 2px solid var(--line); }
.customer-find .suggest-list button { font-size: 1.05rem; padding: 10px 14px; }
.customer-find-field input:focus { outline: none; border-color: var(--accent); }
.customer-find .suggest-list button { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; }
.customer-find .suggest-list button.active { background: var(--surface-2); }
.customer-find .suggest-list small { grid-column: 1 / -1; color: var(--muted); }
.customer-status { margin: 0 0 10px; padding: 8px 12px; border-left: 4px solid var(--accent); background: var(--surface-2); font-weight: 600; }
.loyalty-pill { white-space: nowrap; font-weight: 700; }

/* Roses by the piece in the order form (Vašek, 12 Nov 2026) */
.rose-calc { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rose-calc input { width: 5.5rem; font-size: 1.1rem; padding: 6px 8px; border: 1px solid var(--line); }
.rose-calc-total { font-weight: 700; min-width: 12rem; }
.customer-find .suggest-list { right: 0; max-height: 440px; }

/* Nákup: the order's list under its row (Vašek, 12 Nov 2026) */
.purchase-preview td { background: var(--surface-2); padding: 10px 14px; }
.purchase-preview h4 { margin: 8px 0 4px; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.purchase-lines { width: 100%; max-width: 560px; border-collapse: collapse; }
.purchase-lines td { padding: 3px 6px; border-bottom: 1px dotted var(--line); background: none; }
.purchase-lines td.num { text-align: right; font-weight: 700; white-space: nowrap; width: 110px; }

/* Unpaid prepaid deliveries: the alarm bar in orange, rings every 20 minutes (12 Nov 2026) */

/* Zrušit right in the find box, where the eye is (Vašek, 12 Nov 2026); the bottom bar's one was easy to miss */
.customer-find .customer-find-cancel { grid-column: 1 / -1; justify-self: center; min-width: 220px; text-align: center; border: 2px solid var(--accent); color: var(--accent); background: var(--surface); font-weight: 700; }
.order-form.finding .order-bar { display: none; }

/* Customer suggestions: one fact per line, rows striped grey and white like the order list (Vašek, 12 Nov 2026) */
.order-form .suggest-list li:nth-child(even) button { background: var(--surface-2); }
.order-form .suggest-list li button:hover, .order-form .suggest-list li button.active { background: var(--accent-soft); }
.order-form .suggest-list li + li { border-top: 1px solid var(--line); }
.order-form .suggest-list button small { display: block; grid-column: 1 / -1; line-height: 1.35; }
.photo-upload-status:empty { display: none; }
.photo-upload-status.error { color: var(--accent); font-weight: 600; }
.form-unsaved { margin: 0 0 10px; padding: 8px 12px; background: var(--accent); color: #fff; font-weight: 700; }
/* Nejoblíbenější star in the catalogue list (Vašek, 13 Nov 2026) */
.star-toggle { display: inline-block; }
.star-toggle .star { background: none; border: 0; cursor: pointer; font-size: 1.5rem; line-height: 1; padding: 2px 6px; color: #bbb; }
.star-toggle .star.on { color: #e3a600; }
.star-toggle .star:hover { color: #e3a600; }
.chip-featured { border-color: #e3a600; color: #8a6400; font-weight: 600; }
.chip-featured.on { background: #e3a600; color: #fff; }
.other-shops-link { align-self: center; white-space: nowrap; }
/* The star sits on the photo's corner (Vašek, 13 Nov 2026) */
.product-tile { position: relative; }
.star-toggle.on-photo { position: absolute; top: 8px; right: 8px; z-index: 2; }
.star-toggle.on-photo .star { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.25); font-size: 1.6rem; }
/* Catalogue tiles, clearer (Vašek, 13 Nov 2026): the card holds the price and the web switch at its foot,
   so nothing spills under the next row; category above the name, the whole composition in two lines. */
.product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; align-items: stretch; }
.product-tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.product-tile:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.product-tile a.tile-link { display: flex; flex-direction: column; flex: 1; height: auto; border: 0; box-shadow: none; transform: none; background: none; }
.product-tile a.tile-link:hover { border: 0; box-shadow: none; transform: none; }
.product-tile a.tile-link:hover .tile-name { color: var(--accent); }
.product-tile .tile-photo { aspect-ratio: 4 / 5; flex: none; width: 100%; border-bottom: 1px solid var(--line); }
.tile-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 6px; }
.tile-meta { font-size: 0.72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tile-name { font-size: 1.02rem; line-height: 1.3; }
.tile-comp { font-size: 0.84rem; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-comp.missing { font-style: italic; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px 14px; margin-top: auto; }
.tile-foot .tile-price { position: static; background: none; color: var(--ink); padding: 0; font-size: 1.1rem; font-weight: 700; white-space: nowrap; }
.tile-foot .web-toggle { margin: 0; padding: 0; }
.tile-foot .web-toggle .btn { width: auto; }
.product-tile.inactive { border-style: dashed; }
.product-tile.inactive a.tile-link { opacity: .55; }
.product-tile.inactive .tile-foot .tile-price { opacity: .55; }
.cat-chips .chip.empty:not(.on) { display: none; }
@media (max-width: 620px) { .tile-foot { flex-direction: column; align-items: stretch; } .tile-foot .web-toggle .btn { width: 100%; } .tile-body { padding: 10px 10px 4px; } .tile-foot { padding: 6px 10px 10px; } }
.product-tile .tile-photo { overflow: hidden; }
.product-tile .tile-photo img, .product-tile .tile-photo .no-photo { position: absolute; inset: 0; }
/* Product edit page in two columns (Vašek, 13 Nov 2026): the bouquet on the left, photos and switches on the right. */
.product-edit-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
.product-edit-main, .product-edit-side { display: grid; gap: 18px; min-width: 0; }
.product-edit-main.form { gap: 18px; }
.product-edit-main .card, .product-edit-side .card { display: grid; gap: 12px; margin: 0; }
.product-edit-main .card-head, .product-edit-side .card-head { margin-bottom: 0; }
.product-edit-side { position: sticky; top: 12px; }
.product-edit-side .photo-manage { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.product-edit-side #fotky .card-head span { display: block; flex-basis: 100%; }
.product-edit-side .switches .field { margin: 0; }
.composition-edit.card { border: 1px solid var(--line); padding: 16px; }
.component-head, .variant-head { display: grid; gap: 8px; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.component-head { grid-template-columns: 90px minmax(0, 1fr) 11rem; }
.product-edit-main .component-row { grid-template-columns: 90px minmax(0, 1fr) 11rem; }
.component-head span:last-child { text-align: right; }
.variant-head { grid-template-columns: minmax(0, 2fr) 110px minmax(0, 1fr); }
.composition-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.composition-foot .material-total { margin: 0; }
.component-row[hidden] { display: none; }
.variants-edit { display: grid; gap: 8px; }
.variants-edit .label { font-weight: 600; font-size: 0.9rem; }
.variants-edit > .btn { justify-self: start; width: auto; }
.money-input { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.money-input input { flex: 1; min-width: 0; }
.save-bar { position: sticky; bottom: 0; z-index: 4; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .product-edit-grid { grid-template-columns: minmax(0, 1fr); } .product-edit-side { position: static; order: -1; } }
@media (max-width: 560px) { .component-head { display: none; } .variant-head { display: none; } }
/* Product detail for florists (Vašek, 13 Nov 2026): price and state first, the note stands out. */
.product-info { display: grid; gap: 16px; align-content: start; }
.product-info .card { margin: 0; }
.product-summary .big-price { font-size: 2rem; font-weight: 700; margin: 0 0 6px; line-height: 1.1; }
.product-flags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.product-flags:empty { display: none; }
.product-summary .facts { margin: 12px 0 0; font-size: 0.95rem; }
.product-note { border-left: 4px solid var(--accent); }
.product-note .note { font-size: 1.05rem; line-height: 1.5; margin: 0; }
.product-info table.composition { font-size: 1.1rem; width: 100%; }
.product-info table.composition td { padding: 7px 14px 7px 0; border-bottom: 1px solid var(--line); }
.product-info table.composition tr:last-child td { border-bottom: 0; }
.material-line { margin: 10px 0 0; }
.product-detail .product-photo > a img { max-height: 72vh; width: 100%; object-fit: contain; }
/* The whole product fits the shop's screen without scrolling (Hrabůvka's new PC, 18 Nov 2026): the photo takes what is
   left under the header; a click still opens it full size. */
.product-detail .product-photo > a img { max-height: max(240px, calc(100vh - 345px)); }
.product-detail .product-photo:has(.photo-strip) > a img { max-height: max(220px, calc(100vh - 430px)); }
/* Video messages gallery for management (Vašek, 13 Nov 2026) */
.video-gallery { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.video-gallery li { display: grid; gap: 10px; margin: 0; padding: 10px; align-content: start; }
.video-gallery video { width: 100%; aspect-ratio: 9 / 16; max-height: 420px; background: #000; display: block; }
.video-meta { display: grid; gap: 2px; font-size: 0.9rem; }
.customer-cell .one-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11em; }
/* Catalogue header and filters in one tidy panel (Vašek, 13 Nov 2026): tabs as tabs, every filter visible, aligned. */
.cat-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 2px solid var(--line); }
.cat-top .btn { margin-bottom: 8px; }
.cat-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: -2px; }
.cat-tabs a { padding: 10px 16px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; }
.cat-tabs a:hover { color: var(--ink); }
.cat-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
:not(.cat-top) > .cat-tabs { margin-bottom: 14px; border-bottom: 2px solid var(--line); }
.cat-filters.card { position: static; margin: 0 0 16px; padding: 16px; display: grid; gap: 16px; background: var(--surface); }
.cat-filters .cat-bar { display: grid; grid-template-columns: minmax(0, 1fr) 13rem auto; gap: 12px; align-items: end; }
.cat-label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cat-label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.cat-control { display: grid; align-content: start; gap: 6px; min-width: 0; }
.cat-control .cat-label { margin-bottom: 0; }
.cat-control select, .cat-filters .cat-range input { height: 42px; width: 100%; }
.cat-view { height: 42px; align-items: stretch; }
.cat-view label span { height: 100%; display: inline-flex; align-items: center; }
.cat-row { display: grid; gap: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.cat-filters .cat-chips { flex-wrap: wrap; overflow: visible; gap: 6px; }
.cat-filters .cat-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.cat-filters .cat-more-grid .seg { align-self: start; justify-self: start; }
.cat-filters .check { font-size: 0.88rem; }
@media (max-width: 760px) { .cat-filters .cat-bar { grid-template-columns: 1fr 1fr; } .cat-filters .cat-search { grid-column: 1 / -1; } }
.cat-filters .cat-more-grid { grid-template-columns: minmax(200px, 1.3fr) minmax(200px, 1fr) auto auto; align-items: start; }
.cat-filters .cat-more-grid .seg, .cat-filters .cat-view { height: 42px; flex-wrap: nowrap; align-items: stretch; }
.cat-filters .cat-more-grid .seg label span { height: 100%; display: inline-flex; align-items: center; }
.cat-filters .cat-range { height: 42px; }
@media (max-width: 1180px) { .cat-filters .cat-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cat-filters .cat-more-grid { grid-template-columns: minmax(0, 1fr); } .cat-filters .cat-more-grid .seg { flex-wrap: wrap; height: auto; } }
/* Nákup: big − / + buttons for the counts (Vašek, 13 Nov 2026) */
.purchase-item, .purchase-item.own { grid-template-columns: minmax(0, 1fr) auto; }
.purchase-item > label { cursor: pointer; }
.stepper { display: inline-flex; align-items: stretch; }
.stepper .step { width: 48px; height: 48px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 1.7rem; font-weight: 700; line-height: 1; cursor: pointer; padding: 0; touch-action: manipulation; user-select: none; }
.stepper .step:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.stepper .step:active { transform: translateY(1px); }
.stepper input { width: 72px; height: 48px; text-align: center; font-size: 1.25rem; font-weight: 700; border-left: 0; border-right: 0; padding: 0 4px; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.purchase-item.own input[type="text"] { height: 48px; }
.purchase-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.btn.manage { background: var(--ink); color: var(--surface); border-color: var(--ink); font-weight: 700; padding: 10px 18px; }
.btn.manage:hover { background: var(--surface); color: var(--ink); }
.cart-loyalty { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0 0; color: #2d7a1b; font-weight: 600; }
.cart-loyalty[hidden] { display: none; }
.cart-loyalty .check { font-weight: 600; }
/* The tabs never hide off the edge (Vašek, 14 Nov 2026: on a laptop the last tab could not be reached): on a
   narrower screen they wrap to a second line instead of scrolling, and the user menu shows only its icon. */
@media (min-width: 761px) {
  .tabs-row nav.tabs, header.top nav.tabs { flex-wrap: wrap; overflow: visible; justify-content: center; row-gap: 2px; }
  header.top nav.tabs > :first-child { margin-left: 0; }
  header.top nav.tabs > :last-child { margin-right: 0; }
}
@media (min-width: 761px) and (max-width: 1500px) {
  header.top .top-username { display: none; }
}
/* Narrower tabs, so all of them fit in one row from 1280 px (Vašek, 23 Nov 2026, with the Uzávěrky tab). */
@media (min-width: 761px) and (max-width: 1700px) {
  header.top nav.tabs { column-gap: 5px; }
  header.top nav.tabs > a { padding-inline: 3px; font-size: 0.9rem; }
  header.top nav.tabs > :is(a, span.soon) + :is(a, span.soon)::before { left: -3px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  header.top .top-center { display: none; }
  header.top > .wrap { grid-template-areas: "new tabs wolt" "new tabs user"; }
}
.dash-period { margin: 0 0 16px; }
.dash-period .time-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dash-period .stat-heading { margin: 0 0 8px; font-size: 1rem; font-weight: 700; }
.dash-period .stat-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; align-items: stretch; margin: 0 0 8px; }
.dash-period .stat-row:last-of-type { margin-bottom: 12px; }
.dash-period .stat-row-label { display: flex; align-items: center; padding: 0 12px; font-weight: 700; font-size: 0.95rem; background: var(--surface-2, #f3f3f1); }
.dash-period .stat-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 0; }
.dash-period .stat-tiles div.blank { background: transparent; border: 0; }
.dash-period .stat-tiles div.pieces { border-left-color: var(--ink); }
.dash-period .stat-tiles div { display: grid; gap: 2px; padding: 8px 12px; white-space: nowrap; }
.dash-period .time-bar .seg { flex: 1; display: flex; }
.dash-period .time-bar .seg a { flex: 1; justify-content: center; text-align: center; }
@media (max-width: 760px) { .dash-period .stat-row { grid-template-columns: 1fr; } .dash-period .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash-period .stat-tiles div.blank { display: none; } }
/* Přehled tiles, clearer (Vašek, 14 Nov 2026) */
.sales-tile { gap: 6px; }
.sales-tile .val { font-size: 1.9rem; }
.sales-tile .trend { justify-self: start; padding: 2px 8px; font-size: 0.9rem; }
.sales-tile .trend.up { background: #e8f5e9; }
.sales-tile .trend.down { background: #fdecea; }
.sales-tile .trend small { font-weight: 400; color: var(--muted); }
.tile-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 6px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.tile-facts dt { color: var(--muted); }
.tile-facts dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.dash-subhead { margin: 8px 0 12px; align-items: center; border-bottom: 0; }
/* Header right column (Vašek, 14 Nov 2026): a bigger Wolt button and the account button under it, the same width;
   the open account menu sits above the new-order banner. */
@media (min-width: 761px) {
  header.top .top-actions .btn-wolt { min-width: 220px; padding: 14px 22px; font-size: 1.3rem; }
  header.top .tabs-row .top-user { justify-self: stretch; display: flex; justify-content: flex-end; }
  header.top .tabs-row .top-user .usermenu { width: 100%; max-width: 220px; margin-left: auto; }
  header.top .usermenu summary.top-chip { width: 100%; justify-content: center; padding: 9px 12px; }
}
header.top:has(.usermenu[open]) { z-index: 60; }
.usermenu .menu { z-index: 61; min-width: 260px; padding: 0 0 6px; }
.usermenu .menu .who { display: grid; gap: 2px; padding: 12px 14px; margin: 0 0 6px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.usermenu .menu .who span { color: var(--muted); font-size: 0.82rem; }
.usermenu .menu a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: 0.95rem; }
.usermenu .menu .mi { width: 22px; text-align: center; }
.usermenu .menu .menu-title { margin: 8px 0 2px; padding: 8px 14px 0; border-top: 1px solid var(--line); font-size: 0.72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.usermenu .menu a.logout { margin-top: 6px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; }
@media (min-width: 761px) {
  header.top .top-username { display: inline !important; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
/* Unpaid web deliveries: a card in the corner, not the new-order bar (Vašek, 14 Nov 2026) */
.unpaid-card { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 360px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid #f2a900; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.unpaid-card[hidden] { display: none; }
.unpaid-min { margin-left: 4px; width: 36px; height: 36px; border: 1px solid #e5d29c; background: #fff; color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.unpaid-min:hover { background: #fff3cf; }
.unpaid-head strong { white-space: nowrap; }
.unpaid-card { width: 380px; }
.unpaid-card.min { width: 360px; cursor: pointer; }
.unpaid-card.min .unpaid-head { border-bottom: 0; }
.unpaid-card.min .unpaid-list, .unpaid-card.min .unpaid-actions { display: none; }
.unpaid-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff8e6; border-bottom: 1px solid #f0e3c0; font-size: 1.05rem; }
.unpaid-head span:first-child { font-size: 1.4rem; }
.unpaid-count { margin-left: auto; background: #f2a900; color: #fff; font-weight: 700; padding: 1px 8px; }
.unpaid-list { display: grid; max-height: 40vh; overflow-y: auto; }
.unpaid-row { display: grid; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.unpaid-row:hover { background: var(--surface-2); }
.unpaid-row span { color: #c25a00; font-weight: 600; font-size: .95rem; }
.unpaid-actions { display: flex; gap: 8px; padding: 12px 14px; }
.unpaid-actions .btn { flex: 1; justify-content: center; text-align: center; }
.unpaid-actions .btn.dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
/* New-order bar in softer colours (Vašek, 14 Nov 2026, variant A): light pink, a red line on top, only the red dot
   pulses instead of the whole bar blinking. */
.new-order-alert { background: #fdecea; color: #8a1c14; border-top: 3px solid var(--accent); border-bottom: 1px solid #f6c7c2; animation: none; }
.new-order-alert a { color: #8a1c14; }
.new-order-alert button { background: var(--accent); color: #ffffff; padding: 5px 12px; }
.new-order-alert .alert-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(238, 46, 42, .5); animation: alert-pulse 1.4s ease-out infinite; flex: none; }
@keyframes alert-pulse { 0% { box-shadow: 0 0 0 0 rgba(238, 46, 42, .55); } 100% { box-shadow: 0 0 0 12px rgba(238, 46, 42, 0); } }
@media (prefers-reduced-motion: reduce) { .new-order-alert .alert-dot { animation: none; } }
.unpaid-row { gap: 3px; }
.unpaid-row span { color: var(--ink); font-weight: 400; font-size: .95rem; }
.unpaid-row span.phone { color: #c25a00; font-weight: 700; font-size: 1.05rem; }
.video-history tr.cancelled td { opacity: .55; }
.video-history tfoot td { border-top: 2px solid var(--line); padding-top: 10px; }

/* ===== Phones and tablets (Vašek, 15 Nov 2026: "Udělej intranet responzivní na mobil"). Everything below sits in
   max-width queries, so the computer layout (1280 px and wider) stays exactly as it is. ===== */
@media (max-width: 1100px) {
  /* A wide child (a scrolling row of quick ranges, a table) must not stretch the whole page sideways. */
  section.view, .order-filters { grid-template-columns: minmax(0, 1fr); }
  section.view > *, .time-bar > * { min-width: 0; }
}

/* Lists as cards on a phone: table.stack + data-controller="stack-table" (the controller copies every column heading
   into data-label). The first cell is the card's title; the others are "label: value" lines. */
@media (max-width: 760px) {
  .table-wrap:has(> table.stack) { overflow: visible; }
  table.stack, table.stack > tbody { display: block; }
  table.stack > thead { display: none; }
  table.stack > tbody > tr { display: block; margin-bottom: 8px; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); }
  .card table.stack > tbody > tr { margin-inline: -4px; }
  table.stack > tbody > tr > td { display: flow-root; padding: 6px 0 6px 8.4rem; border: 0; border-top: 1px solid var(--line);
    background: none !important; text-align: left; white-space: normal; font-size: 1rem; line-height: 1.4; min-width: 0; max-width: none; width: auto; overflow-wrap: break-word; }
  table.stack > tbody > tr > td::before { content: attr(data-label); float: left; width: 7.8rem; margin: 2px 0 0 -8.4rem; font-size: 0.8rem; font-weight: 600; line-height: 1.3; color: var(--muted); overflow-wrap: normal; }
  table.stack > tbody > tr > td:first-child, table.stack > tbody > tr > td:not([data-label]) { padding-left: 0; }
  table.stack > tbody > tr > td:first-child::before, table.stack > tbody > tr > td:not([data-label])::before { content: none; }
  table.stack > tbody > tr > td:first-child { border-top: 0; padding-top: 2px; font-size: 1.08rem; }
  table.stack > tbody > tr > td:empty { display: none; }
  table.stack > tbody > tr > td:empty + td { border-top: 0; }
  table.stack .nowrap, table.stack .num { white-space: normal; }
  table.stack .sub, table.stack .phone { font-size: 0.9rem; }
  table.stack td.options, table.stack td.row-actions { text-align: left; justify-content: flex-start; }
  table.stack td.options .btn, table.stack td.row-actions .btn { min-height: 44px; }
  table.stack.orders tr.unmatched { box-shadow: inset 4px 0 0 #f2b705; }
  table.stack.orders tr.unmatched td:first-child { box-shadow: none; }
  table.stack tr.cancelled { background: #fbe3e3; }
  table.stack tr.purchase-preview td { padding: 8px 0; }
  /* Catalogue list: photo on the left, name, composition, price and the switches next to it. */
  table.cat-table, table.cat-table > tbody { display: block; }
  table.cat-table > thead { display: none; }
  table.cat-table > tbody > tr { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
  table.cat-table > tbody > tr:first-child { border-top: 0; }
  table.cat-table > tbody > tr > td { display: block; padding: 0; border: 0; background: none !important; text-align: left; }
  table.cat-table .cat-thumb { grid-row: 1 / span 4; width: auto; }
  table.cat-table td:not(.cat-thumb) { grid-column: 2; }
  table.cat-table td.num { font-weight: 700; padding-top: 4px; }
  table.cat-table td:last-child { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 6px; }
  table.cat-table td:last-child .web-toggle { margin: 0; }
  table.cat-table td:last-child .btn { min-height: 44px; }
  table.cat-table .star-toggle .star { width: 44px; height: 44px; }
}

/* Phone basics: readable text, fields that iOS does not zoom into (16 px and more), fingers-sized targets (44 px). */
@media (max-width: 760px) {
  body { font-size: 16px; }
  :is(.filter-grid, .assign-form, .time-range, .custom-range, .bank-filter, .cart-ribbon, .tile-search-row, .copy-row, .key-form, .purchase-row, .filters, .stack, .gallery-head, .variant-row, .with-unit, .cat-filters) :is(input, select, textarea),
  input.short, .status-select, .order-list .status-select { font-size: 16px; }
  input[type="email"], input[type="password"], input[type="text"], input[type="date"], input[type="datetime-local"], input[type="number"], input[type="tel"], input[type="search"], select { min-height: 44px; }
  .btn, .btn.small, .chip, .pager a, .pager span, .icon-link, .filter-toggle, .btn-filter { min-height: 44px; }
  .btn.small { padding: 6px 12px; font-size: 0.9rem; }
  .icon-link { min-width: 44px; }
  .seg a, .seg label span { min-height: 44px; display: inline-flex; align-items: center; }
  .chip { font-size: 0.9rem; }
  .pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; }
  .sub { font-size: 0.86rem; }
  th { font-size: 0.75rem; }
  /* Header: tabs scroll sideways, each tab and the account button finger-sized. */
  header.top nav.tabs > a, header.top nav.tabs > span.soon { min-height: 44px; padding-inline: 8px; }
  header.top .usermenu summary.top-chip { min-height: 44px; min-width: 52px; justify-content: center; }
  .usermenu .menu { max-height: calc(100dvh - 140px); overflow-y: auto; }
  .usermenu .menu a { padding-block: 11px; }
  /* Page intro: smaller, the heading may wrap. */
  .page-intro { padding: 14px 14px 14px 16px; gap: 10px; border-left-width: 5px; }
  .page-intro h2 { font-size: 1.4rem; white-space: normal; }
  .page-intro-rules { font-size: 0.92rem; }
  .card { padding: 14px 12px; }
  .card-head span { font-size: 0.86rem; }
  .form-actions .btn, .form-actions button { min-height: 48px; }
  .row-actions { justify-content: flex-start; }
  /* Unpaid deliveries card: across the bottom of the screen. */
  .unpaid-card { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; }
  .unpaid-list { max-height: 34vh; }
  .unpaid-card.min { width: auto; }
  .unpaid-actions .btn { min-height: 48px; }
  .new-order-alert { gap: 8px; }
  .new-order-alert button { min-height: 40px; }
  .flash.toast { padding: 20px 24px; font-size: 1.25rem; }
  .flash.toast span { font-size: 1.4rem; }
}
/* Přehled on a phone: one tile per row. */
@media (max-width: 480px) {
  .sales-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sales-tile .val { font-size: 1.6rem; }
}

/* New / edit order on a phone: every block one column wide, the cart as rows of name + price + buttons. */
@media (max-width: 760px) {
  body.focus-form main.wrap { padding: 10px 10px 0; box-shadow: none; }
  .order-form .order-col { grid-template-columns: minmax(0, 1fr); }
  .order-form .order-col > *, .order-form .box > * { min-width: 0; }
  .order-form .box { padding: 12px 10px; }
  .order-form .picker-tabs { padding: 6px 6px 0; }
  .order-form .picker-tabs > button { flex: 1 1 auto; min-height: 48px; }
  .order-form .own-price { flex: 1 1 100%; min-width: 0; margin: 6px 0; }
  .order-form .own-price input { width: auto; min-width: 0; }
  .order-form .own-price .btn { flex: none; padding-inline: 12px; }
  .order-form .tiles { height: min(360px, 52vh); }
  .order-form .look-option { min-height: 44px; }
  .order-form .look-option input { width: 22px; height: 22px; }
  .order-form .cart-wrap { min-height: 0; max-height: none; }
  table.cart, table.cart > tbody { display: block; }
  table.cart tr.cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "price line" "buttons buttons"; gap: 6px 8px; align-items: center; padding: 8px; border-bottom: 1px solid var(--line); }
  table.cart tr.cart-row > td { display: block; padding: 0; border: 0; }
  table.cart tr.cart-row > td.cart-qty { display: none; }
  table.cart tr.cart-row > td:first-child { grid-area: name; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  table.cart tr.cart-row > td:first-child > input[data-field="name"] { flex: 1 1 0; min-width: 0; }
  table.cart tr.cart-row .cart-ribbon { flex: 1 1 100%; }
  table.cart .cart-price { grid-area: price; }
  table.cart .cart-price input { width: 100%; min-width: 0; }
  table.cart .cart-line { grid-area: line; width: auto; white-space: nowrap; font-weight: 700; }
  table.cart .cart-buttons { grid-area: buttons; justify-self: end; display: flex; gap: 4px; width: auto; }
  table.cart .qty-btn { width: 44px; height: 44px; font-size: 1.3rem; }
  table.cart .link-danger { min-height: 44px; margin: 0; padding: 0 6px; }
  .order-form .cart-total { padding: 8px 4px 0; }
  .order-form .order-bar { padding-bottom: max(5px, env(safe-area-inset-bottom, 0px)); }
  .order-form .customer-find { margin-top: 2vh; padding: 18px 14px; grid-template-columns: minmax(0, 1fr); }
  .order-form .customer-find .box-title { font-size: 1.35rem; }
  .order-form .customer-find-field input { font-size: 1.25rem; padding: 12px 14px; }
  .order-form .customer-find .btn { width: 100%; }
  .order-form .customer-find .suggest-list { max-height: 50vh; }
}

/* Katalog on a phone: categories in one sideways row, the other filters behind "Další filtry". */
@media (max-width: 760px) {
  .cat-filters.card { padding: 12px; gap: 12px; }
  .cat-filters .cat-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .cat-filters .cat-chips .chip { min-height: 44px; }
  .cat-filters .cat-more-grid:not(.open) { display: none; }
  .cat-filters .filter-toggle { margin: 0; }
  .cat-filters .cat-row { padding-top: 10px; }
  .cat-filters .cat-view, .cat-filters .cat-more-grid .seg { height: auto; min-height: 44px; }
  .cat-filters .cat-control select, .cat-filters .cat-range input, .cat-search input { height: 44px; }
  .cat-filters .check { min-height: 44px; }
  .cat-top { gap: 8px; }
  .cat-top .btn { width: 100%; margin-bottom: 10px; }
  .cat-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .cat-tabs a { white-space: nowrap; padding: 10px 12px; }
  .product-grid { gap: 10px; }
  .tile-name { font-size: 0.98rem; }
  .tile-comp { font-size: 0.86rem; }
  .tile-foot .web-toggle .btn { min-height: 44px; font-size: 0.85rem; padding-inline: 6px; white-space: normal; }
}

/* Phone header: scrolls away with the page (it took a sixth of the screen); the tabs fade where more of them hide. */
@media (max-width: 760px) {
  header.top { position: static; }
  header.top nav.tabs.more-right { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  header.top nav.tabs.more-left { -webkit-mask-image: linear-gradient(to left, #000 82%, transparent); mask-image: linear-gradient(to left, #000 82%, transparent); }
  header.top nav.tabs.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); }
  .cat-filters .cat-view { width: 100%; }
  .cat-filters .cat-view label { flex: 1; }
  .cat-filters .cat-view label span { width: 100%; justify-content: center; padding-inline: 6px; }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-tile .tile-photo { aspect-ratio: 1; }
  .tile-meta { font-size: 0.68rem; }
  .tile-foot .tile-price { font-size: 1rem; }
  .star-toggle.on-photo { top: 4px; right: 4px; }
  .star-toggle.on-photo .star { width: 44px; height: 44px; }
}

/* Tablet: wide lists scroll sideways inside their box with the first column (name, number) pinned. */
@media (max-width: 1100px) {
  .table-wrap:not(:has(> table.order-list)) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cat-filters, .cat-filters .cat-row { grid-template-columns: minmax(0, 1fr); }
  .cat-filters > *, .cat-row > * { min-width: 0; }
  .cat-chips .chip { position: relative; } /* its hidden radio stays inside the scrolling row */
}
@media (min-width: 761px) and (max-width: 1100px) {
  .table-wrap > table.stack > * > tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: inset -1px 0 0 var(--line); }
  .table-wrap > table.stack.orders > thead > tr > :first-child { background: #2e7d32; }
  .table-wrap > table.stack.orders > tbody > tr:nth-child(even) > :first-child { background: var(--surface-2); }
  .filter-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  :is(.filter-grid, .cat-filters, .filters) :is(input, select) { font-size: 16px; }
  .btn, .icon-link, .pager a, .pager span, .seg a { min-height: 40px; }
  .btn { display: inline-flex; }
}
@media (max-width: 1100px) {
  .product-edit-main, .product-edit-side, .product-info, .settings-block { grid-template-columns: minmax(0, 1fr); }
  .product-edit-main > *, .product-edit-side > *, .product-edit-main .card > *, .product-edit-side .card > * { min-width: 0; }
}
@media (max-width: 760px) {
  .key-form input { flex: 1 1 100%; min-width: 0; }
  .btn { white-space: normal; text-align: center; }
  .variants-edit { grid-template-columns: minmax(0, 1fr); }
  .key-form .btn { flex: 1 1 auto; }
  .variant-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .variant-row > :first-child { grid-column: 1 / -1; }
  .product-edit-main .component-row { grid-template-columns: 70px minmax(0, 1fr); }
  .product-edit-main .component-cost { grid-column: 2; text-align: left; }
  .save-bar { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .save-bar .btn { min-height: 48px; }
}

/* Rozvoz / Naložení on a phone: a map that leaves room for the list (the full-screen button enlarges it). */
@media (max-width: 760px) {
  .delivery-map { min-height: 0; height: clamp(260px, 46vh, 420px); }
  .delivery-actions { top: 0; padding: 6px 0; }
  .delivery-actions .btn, .delivery-actions select { min-height: 44px; }
  .delivery-mode { margin-left: 0; }
  .delivery-card { padding: 12px; gap: 10px 12px; }
  .dcard-side { padding-right: 10px; }
  .dcard-kind { white-space: normal; }
  .dcard-addr { padding-left: 0; }
  .dcard-person { grid-template-columns: 30px minmax(0, 1fr); }
  .dcard-foot .btn, .delivery-buttons .btn { flex: 1 1 auto; padding-inline: 14px; }
  .dcard-person a { display: inline-flex; align-items: center; min-height: 36px; }
}

/* Tablet header: the two big buttons and the account in one row, the tabs below over the whole width. */
@media (min-width: 761px) and (max-width: 1100px) {
  header.top > .wrap { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "new wolt user" "tabs tabs tabs"; column-gap: 12px; }
  header.top .brand-group { padding-block: 10px; }
  header.top .brand-group .btn-new-order { font-size: 1.2rem; padding: 12px 22px; }
  header.top .top-actions { padding-top: 0; justify-self: end; }
  header.top .top-actions .btn-wolt { min-width: 0; padding: 12px 20px; font-size: 1.15rem; }
  header.top .tabs-row .top-user { align-self: center; justify-self: end; }
  header.top .tabs-row .top-user .usermenu { width: auto; }
  header.top .usermenu summary.top-chip { min-height: 48px; }
  header.top nav.tabs { padding-bottom: 4px; }
  header.top nav.tabs > a { min-height: 44px; padding-inline: 8px; font-size: 1rem; }
}

/* Calendars on a phone open as a sheet at the bottom of the screen, never cut off at the edge. */
@media (max-width: 760px) {
  .calendar, .calendar.down, .order-form .calendar, .filter-date .calendar { position: fixed; z-index: 1001; left: 8px; right: 8px; top: auto; bottom: max(8px, env(safe-area-inset-bottom, 0px)); width: auto; max-height: calc(100dvh - 16px); overflow-y: auto; padding: 12px; box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.25); }
  .calendar-grid button { height: 44px; }
  .calendar-head button { width: 44px; height: 44px; }
  .calendar-quick button, .calendar-clear { min-height: 44px; }
  .help-msg { max-width: 92%; }
  .help-form { flex-wrap: wrap; }
  .help-form textarea { flex-basis: 100%; }
  .help-form .btn { flex: 1; }
}
@media (max-width: 760px) {
  .new-order-alert { justify-content: space-between; text-align: left; }
  .new-order-alert button { flex: none; padding: 8px 10px; font-size: 0.9rem; }
}
@media (max-width: 760px) {
  /* Bigger tap area without moving anything: padding cancelled by a negative margin. */
  table.order-list .number-cell a, .page-intro .eyebrow a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
  :where(details) > :where(summary) { padding-block: 11px; }
  .delivery-mode select, .delivery-actions select, .delivery-bar .date-button { font-size: 16px; min-height: 44px; }
}
@media (max-width: 760px) {
  /* Fields without a type (Uzávěrka kurýra) look like the others. */
  input:not([type]) { font: inherit; font-size: 16px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c9c9c2; border-radius: 0; background: var(--surface); color: var(--ink); }
}
@media (max-width: 760px) {
  /* Charts with many days scroll sideways (intranet.js shows the latest days first); day labels do not overlap. */
  .sales-chart { grid-template-columns: repeat(var(--cols, 30), 36px); overflow-x: auto; overflow-y: hidden; }
  .sales-chart:has(> .bar-col:nth-child(-n + 9):last-of-type) { grid-template-columns: repeat(var(--cols, 30), minmax(0, 1fr)); }
}

/* Order form, Zákazník: heading, loyalty chip and the customer card in one row, all the same size; the company button
   full width under the address (Vašek, 16 Nov 2026). */
.order-form .customer-head { align-items: center; gap: 8px; flex-wrap: wrap; }
.customer-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 8px 0 12px; }
.customer-line[hidden] { display: none; }
.customer-facts { font-size: 15px; font-weight: 600; color: var(--muted); }
.order-form .customer-head .btn.small, .tier-chip { height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 12px; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; }
.tier-chip { gap: 6px; border: 1px solid; }
.tier-chip[hidden] { display: none; }
.tier-chip.tier-bronze { background: #fbeee4; border-color: #b87333; color: #6e3b12; }
.tier-chip.tier-silver { background: #f1f3f5; border-color: #9aa3ab; color: #3d454c; }
.tier-chip.tier-gold { background: #fff7d6; border-color: #d4a106; color: #6b4e00; }
.order-form .company-btn-wide { width: 100%; justify-content: center; margin-top: 10px; min-height: 44px; font-size: 1rem; }
.order-form .company-btn-wide[hidden] { display: none; }

/* Zákazníci: filters in one row of labelled fields, stats in one strip (variant B, Vašek 16 Nov 2026). */
.cust-filters { gap: 0; }
.cust-bar { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.cust-field { display: grid; gap: 6px; min-width: 0; }
.cust-lbl { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.cust-bar .cat-search input, .cust-bar select { height: 44px; width: 100%; }
.cust-more-btn { height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cust-more-btn::after { content: " ▾"; }
.cust-more-btn[aria-expanded="true"]::after { content: " ▴"; }
.cust-more { margin-top: 12px; }
.cust-more[hidden] { display: none; }
.cust-filters .cust-more .cat-more-grid { display: grid; padding: 0; border-top: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cust-more .label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.cust-stats { display: flex; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
.cust-stats > div { flex: 1 1 0; display: grid; gap: 2px; padding: 10px 18px; border-right: 1px solid var(--line); }
.cust-stats > div:last-of-type { border-right: 0; }
.cust-stats strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.cust-stats .cat-reset { align-self: center; padding: 0 18px; white-space: nowrap; }
@media (max-width: 1100px) {
  .cust-bar { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .cust-search { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cust-filters { position: static; }
  .cust-bar { grid-template-columns: minmax(0, 1fr); }
  .cust-more-btn { width: 100%; }
  .cust-stats { flex-wrap: wrap; }
  .cust-stats > div { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .cust-stats > div:nth-of-type(2n) { border-right: 0; }
  .cust-stats .cat-reset { flex: 1 1 100%; padding: 10px 18px; }
}

/* Zákazníci: two pies with an arrow and a count on every slice (Vašek, 16 Nov 2026). */
.pie-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.pie-card { margin: 0; }
.pie { display: block; width: 100%; height: auto; max-height: 300px; }
.pie-slice { stroke: #fff; stroke-width: 2; }
.pie-link:hover .pie-slice { filter: brightness(.92); }
.pie-arrow { fill: none; stroke: #333; stroke-width: 1.3; }
.pie-label { font-size: 15px; font-weight: 700; fill: var(--ink); }
.pie-value { font-size: 14px; fill: var(--muted); }
@media (max-width: 900px) {
  .pie-row { grid-template-columns: minmax(0, 1fr); }
}
/* Delivery to the place of the last farewell (Vašek, 17 Nov 2026) */
.dcard-funeral { border-left: 4px solid #333; background: #f3f3f3; padding: 4px 8px; }
.funeral-box[hidden] { display: none; }
.chip-warn { display: inline-block; background: #fdecea; color: #b3261e; font-weight: 600; font-size: 0.85rem; padding: 4px 10px; margin-top: 6px; }
.chip-warn[hidden] { display: none; }

/* Přehled: the four best-seller tables side by side (Vašek, 17 Nov 2026); two by two, then one under another. */
.best-sellers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.best-sellers .card { min-width: 0; }
.best-sellers .sales-table td, .best-sellers .sales-table th { padding: 6px 5px; font-size: 0.88rem; }
.best-sellers .sales-table td:nth-child(2) { overflow-wrap: anywhere; }
@media (max-width: 1300px) { .best-sellers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .best-sellers { grid-template-columns: minmax(0, 1fr); } }

/* One format everywhere (Vašek, 14 and 17 Nov 2026): every field, choice and button 44 px high on every page and
   screen, not only on phones. The orders table keeps its row icons (Vašek, 17 Nov 2026). */
main :is(input[type="email"], input[type="password"], input[type="text"], input[type="date"], input[type="datetime-local"], input[type="number"], input[type="tel"], input[type="search"], select):not(.status-select),
main .filter-grid > label > :is(input, select), main .cat-search input, main :is(.cat-select, .cat-control) select,
main .cat-filters .cat-range input, main .bank-filter .search input, main .purchase-item.own input[type="text"], main .stepper input,
.auth-card .field input { height: 44px; min-height: 44px; box-sizing: border-box; }
main :is(.btn, .btn.small, .btn-filter, .chip, .date-button, .pager a, .pager span, .filter-toggle),
main .filter-grid .filter-date .date-button, main .time-bar .range-picker .date-button, main .filter-picker .date-button,
.auth-card .btn.primary.block { min-height: 44px; height: auto; box-sizing: border-box; }
main :is(.btn, .chip, .pager a, .pager span) { display: inline-flex; align-items: center; justify-content: center; }
main .btn.block { display: flex; }
main .filter-grid .filter-date .datepicker, main :is(.cat-view, .cat-filters .cat-more-grid .seg, .cat-filters .cat-range) { height: auto; }
/* The field row follows the 44 px fields (it was 38 px), so Filtrace / Zrušit filtry line up with them (Vašek, 28 Nov 2026). */
main .filter-grid > :is(label, .filter-date) { grid-template-rows: auto 44px; }
main .btn.small { padding: 6px 12px; font-size: 0.88rem; }
main .seg a, main .seg label span { min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
main .stepper .step { width: 44px; height: 44px; }
main .icon-link { min-width: 44px; min-height: 44px; }
main table.order-list td.options .icon-link { min-width: 0; min-height: 0; }
/* Two filter buttons on the orders page stack beside the 44 px fields. */
main .filter-grid .filter-actions { gap: 4px; }
main .filter-grid .filter-actions .btn-filter { min-height: 0; height: 44px; display: flex; align-items: center; justify-content: center; padding-block: 0; }

/* Phone (Vašek, 17 Nov 2026): the page intro shows only its title; the tips are for the computer. */
@media (max-width: 760px) {
  .page-intro .page-intro-rules, .page-intro .eyebrow { display: none; }
  .page-intro { padding-block: 10px; }
}

/* Order form: "Květina za cenu:" once, the tiles show the price big (Vašek, 17 Nov 2026) */
.tiles .tiles-head { grid-column: 1 / -1; margin: 6px 4px 0; font-weight: 600; }
.otile.price-only .otile-price { font-size: 1.35rem; }

/* Fakturace, Platby, SMS, Nákup like Zákazníci (Vašek, 17 Nov 2026) */
.cust-stats .stat-bad strong { color: var(--accent); }
.cust-filters + .cat-results, .cust-filters + turbo-frame { display: block; margin-top: 12px; }
.inv-link { font-weight: 600; color: var(--link, #c4211d); text-decoration: none; white-space: nowrap; }
.inv-link:hover { text-decoration: underline; }
.pay-bar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto auto; }
@media (max-width: 1100px) { .pay-bar { grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto; } }
.sms-strip { margin: 0 0 16px; }
.sms-none { padding: 22px; text-align: center; color: var(--muted); }
/* Nákup (Vašek, 17 Nov 2026): shops as buttons, groups as white cards, the order on the right */
.purchase-tools { justify-content: space-between; }
.purchase-branches { display: flex; flex-wrap: wrap; gap: 8px; }
.purchase-branch-chip input { position: absolute; opacity: 0; }
.purchase-branch-chip span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.purchase-branch-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.purchase-branch-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.purchase-layout { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); }
/* the count right by the name, the room left over for the order and the history (Vašek, 17 Nov 2026) */
.purchase-group summary { background: var(--surface); display: flex; justify-content: space-between; align-items: center; }
.purchase-group summary small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.purchase-unit { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: 6px; }
.purchase-side { position: sticky; top: 12px; display: grid; gap: 10px; }
.purchase-summary { padding: 0; }
.purchase-summary h3 { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.purchase-picked { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow-y: auto; }
.purchase-picked li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.purchase-picked li:not(.sub) { align-items: center; padding: 6px 12px 6px 16px; font-weight: 600; }
.purchase-picked li.sub { color: var(--muted); border-bottom: 0; padding: 14px 16px; }
.purchase-summary .purchase-submit { position: static; display: block; width: calc(100% - 32px); margin: 14px 16px 16px; min-height: 52px; border: 0; background: #2e7d32; color: #fff; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.purchase-summary .purchase-submit:hover { background: #256628; }
.purchase-side .section-title { margin: 6px 0 0; }
@media (max-width: 900px) { .purchase-layout { grid-template-columns: minmax(0, 1fr); } .purchase-side { position: static; } }
.cust-more-btn.bar-btn::after { content: none; }
a.cust-more-btn.bar-btn { display: inline-flex; align-items: center; text-decoration: none; }
.purchase-side table.purchase-table thead th { font-size: .9rem; }
/* Order: number, state and actions on top (Vašek, 17 Nov 2026) */
.order-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); padding: 10px 14px; margin: 0 0 14px; }
.order-toolbar h2 { margin: 0 auto 0 0; font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.order-toolbar h2 .pill { font-size: .85rem; font-weight: 600; padding: 3px 10px; border: 1px solid var(--line); background: var(--surface-2); }
/* New-order bar: sticks under the menu, not over it (Vašek, 17 Nov 2026) */
.new-order-alert { top: var(--head-h, 0px); z-index: 4; }

/* Order form (Vašek, 17 Nov 2026): a search that stands out, prices as one compact grid with nothing hidden below
   the fold (variant 1), and "Jak má květina vypadat" as four cards with two options per line (variant 2). */
.order-form .tile-search-row { position: relative; padding: 10px; background: var(--accent-soft); }
.order-form .tile-search-icon { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); font-size: 18px; opacity: 0.7; pointer-events: none; }
.order-form .tile-search-row .tile-search { height: 48px; padding-left: 44px; border: 2px solid var(--accent); font-size: 1.1rem; background: var(--surface); }
.order-form .tile-search::placeholder { color: #555; }
.order-form .tiles.tiles-prices { display: block; height: auto; overflow: visible; padding: 12px; }
.tiles-prices .extra-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.tiles-prices .extra-label { font-size: 0.85rem; color: var(--muted, #777); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.order-form .tiles-prices .tiles-head { font-size: 1.15rem; margin: 4px 0 8px; }
.tiles-prices .price-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.order-form .tiles-prices .price-chip { display: block; height: 52px; padding: 0 6px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 1.15rem; white-space: nowrap; cursor: pointer; }
.order-form .tiles-prices .price-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.order-form .tiles-prices .price-chip-wide { height: 44px; padding: 0 14px; font-size: 1rem; font-weight: 600; }
@media (max-width: 700px) { .tiles-prices .price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.order-form .look-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.order-form .look-cards .look-row { display: block; border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; }
.order-form .look-cards .look-label { display: block; padding: 0 0 8px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: #666; }
.order-form .look-cards .look-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.order-form .look-cards .look-option { height: 44px; box-sizing: border-box; padding: 0 8px; gap: 8px; }
.order-form .look-cards .look-option input { width: 22px; height: 22px; }
.order-form .look-cards .look-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
@media (max-width: 700px) { .order-form .look-cards { grid-template-columns: 1fr; } }

/* Sub-menus as cards with an icon and one line on what is inside (Vašek, 17 Nov 2026): Obsah webu, SMS, Katalog. */
.subcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 16px; }
.subcards a { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; box-sizing: border-box; }
.subcards a:hover { border-color: var(--accent); }
.subcards a[aria-current="page"] { border: 2px solid var(--accent); background: var(--accent-soft); padding: 11px 13px; }
.subcards a[aria-current="page"] b { color: var(--accent); }
.subcard-icon { font-size: 26px; line-height: 1; flex: none; }
.subcard-text { display: grid; gap: 2px; min-width: 0; }
.subcard-text b { font-size: 1rem; }
.subcard-text small { color: var(--muted); font-size: 0.82rem; }
.cat-top .subcards { flex: 1; margin: 0; }
@media (max-width: 700px) { .subcards { grid-template-columns: 1fr 1fr; } .subcard-text small { display: none; } .subcards a { min-height: 52px; } }
/* Hledání na webu */
.search-report-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.search-report { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.search-table { width: 100%; border-collapse: collapse; }
.search-table th { text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 6px 4px; border-bottom: 2px solid var(--ink); }
.search-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.search-table td:not(:first-child), .search-table th:not(:first-child) { text-align: right; white-space: nowrap; }
@media (max-width: 1100px) { .search-report { grid-template-columns: 1fr; } }
.cat-top:has(.subcards) { border-bottom: 0; align-items: center; }
.cat-top:has(.subcards) .btn { margin-bottom: 0; }
.search-table .q { text-align: left !important; white-space: normal !important; }

.picker-tabs [role="tab"] { white-space: nowrap; }

/* Wolt refused a delivery (18 Nov 2026): the same red bar as new orders, with links to the orders. */
.wolt-alert { flex-wrap: wrap; }
.wolt-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.wolt-links a { font-weight: 700; text-decoration: underline; }
/* Mapa rozvozu for phone calls (Vašek, 19 Nov 2026), the same check as the web's */
.area { padding: 16px; }
.area-check { display: flex; gap: 10px; flex-wrap: wrap; }
.area-check .suggest-host { position: relative; flex: 1 1 320px; min-width: 0; }
.area-check input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 14px; font: inherit; font-size: 1.05rem; border: 1px solid var(--line); }
.area-result { margin: 12px 0 0; padding: 12px 16px; font-weight: 700; font-size: 1.1rem; border-left: 4px solid currentColor; }
.area-result.ok { background: #e8f5e9; color: #1b6e2a; }
.area-result.miss { background: #fdecea; color: #b3261e; }
.area-map { height: 520px; margin-top: 14px; border: 1px solid var(--line); position: relative; z-index: 0; isolation: isolate; }
.area-pin { position: relative; display: inline-block; white-space: nowrap; padding: 6px 10px; font-weight: 700; font-size: 0.85rem; color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); transform: translate(-14px, -100%); }
.area-pin.ok { background: #2e7d32; } .area-pin.miss { background: #c62828; }
.suggest-host .suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 1100; margin: 2px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 300px; overflow-y: auto; }
.suggest-host .suggest li { padding: 10px 14px; cursor: pointer; border-top: 1px solid var(--line); }
.suggest-host .suggest li:first-child { border-top: 0; }
.suggest-host .suggest li:hover, .suggest-host .suggest li.active { background: #f5f5f5; }
.area-places { margin-top: 16px; }
.area-places .places { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; }
.area-places .places h3 { margin: 0 0 4px; font-size: 1rem; }
.area-places .places p, .area-places .places ul { margin: 0; font-size: .95rem; color: var(--muted, #666); }

/* ===== Order list filters (Vašek, 19 Nov 2026): six equal columns, buttons in the last one,
   everything 44 px high with square corners like the rest of the intranet. ===== */
.orders-view .filter-grid { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px 10px; align-items: end; padding: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; }
.orders-view .filter-grid label, .orders-view .filter-grid .filter-date > span { font-size: 0.8rem; font-weight: 600; }
.orders-view .filter-grid input, .orders-view .filter-grid select, .orders-view .filter-grid .date-button { height: 44px; box-sizing: border-box; padding: 0 10px; font-size: 0.95rem; }
.orders-view .filter-grid .filter-actions { grid-column: span 2; flex-direction: row; gap: 8px; align-items: stretch; }
.orders-view .filter-grid .filter-actions .btn-filter { flex: 1; width: auto; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem; text-decoration: none; }
.orders-view .btn-filter-reset { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.orders-view .btn-filter-reset:hover { background: var(--surface-2); }
/* The Mapa rozvozu window */
.area-dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.area-dialog::backdrop { background: rgba(0,0,0,.35); }
.area-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.area-dialog-head h3 { margin: 0; }
.area-dialog-close { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); font-size: 1.1rem; cursor: pointer; }
.area-dialog .area-map { height: 420px; }
@media (min-width: 1100px) {
  .orders-view .filter-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .orders-view .filter-grid .filter-actions { grid-column: -2 / -1; }
}
.orders-view .filter-grid .filter-actions .btn-filter { font-size: 0.9rem; padding: 0 8px; }
/* Address checked against the delivery area in the order form (Vašek, 19 Nov 2026) */
.pairs .addr-area { grid-column: 1 / -1; margin: 0; padding: 8px 12px; font-weight: 700; border-left: 4px solid currentColor; }
.addr-area.ok { background: #e8f5e9; color: #1b6e2a; }
.addr-area.miss { background: #fdecea; color: #b3261e; }
.order-form input.addr-ok { border-color: #2e7d32; box-shadow: inset 0 0 0 1px #2e7d32; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%232e7d32'/%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center / 18px 18px; }
.order-form input.addr-miss { border-color: #c62828; box-shadow: inset 0 0 0 1px #c62828; background-color: #fff5f4; }
/* Order list top, variant A (Vašek, 19 Nov 2026) */
.orders-view .orders-top { display: block; padding: 12px; }
.orders-view .orders-top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.orders-view .orders-top .seg { padding: 0; gap: 0; height: 44px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); flex-wrap: nowrap; }
.orders-view .orders-top .seg a { display: inline-flex; align-items: center; padding: 0 16px; font-size: 0.95rem; color: var(--ink); border-left: 1px solid var(--line); }
.orders-view .orders-top .seg a:first-child { border-left: 0; }
.orders-view .orders-top .time-range { margin-left: -11px; }
.orders-view .orders-top .range-picker .date-button { height: 44px; min-width: 160px; margin: 0; }
.orders-view .orders-top-actions { margin-left: auto; display: flex; gap: 8px; }
.orders-view .orders-top-actions .btn { height: 44px; display: inline-flex; align-items: center; padding: 0 16px; font-size: 0.95rem; white-space: nowrap; }
.orders-view .orders-top-actions .btn-map { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.orders-view .orders-sum { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 10px; padding: 10px 14px; background: var(--surface-2); }
.orders-view .orders-sum p { margin: 0; }
.orders-view .orders-sum strong { margin-right: 4px; }
.orders-view .orders-sum b { font-variant-numeric: tabular-nums; }
.orders-view .orders-sum .sep { color: var(--muted); }
.orders-view .orders-sum .sum-filter { margin-left: auto; }
/* Roles of a user as equal cards (Vašek, 19 Nov 2026) */
.role-cards { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.role-cards legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.role-cards legend small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.role-card { display: flex; gap: 12px; align-items: flex-start; min-height: 76px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-weight: 400; }
.role-card:hover { border-color: var(--ink); }
.role-card:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fff7f6; }
.role-card.disabled { cursor: not-allowed; opacity: .75; }
.role-card input { flex: 0 0 auto; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.role-card span { display: grid; gap: 3px; }
.role-card strong { font-size: 1rem; }
.role-card small { font-size: .86rem; color: var(--muted); line-height: 1.35; }
@media (max-width: 1000px) { .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .role-grid { grid-template-columns: 1fr; } }

/* SMS overview, compact (Vašek, 19 Nov 2026): a lower chart, tighter tables, the list heading beside its filters */
.sms-chart { height: 130px; }
.sms-stats { margin-top: 12px; }
.sms-stats .card { padding: 12px 14px; }
.sms-stats .card-head { margin-bottom: 4px; }
.sms-stats .sales-table td { padding-top: 6px; padding-bottom: 6px; }
.sms-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 10px; }
.sms-filters .section-title { margin: 0 auto 0 0; }
.sms-filters input { width: 220px; }
.sms-filters select { width: 180px; }
.sms-list td { padding-top: 7px; padding-bottom: 7px; }
.sms-list .sub { display: inline; color: var(--muted); font-size: .85em; white-space: nowrap; }
.filters.sms-filters input, .filters.sms-filters select { flex: 0 0 auto; }
.sms-list td:nth-child(5) { white-space: nowrap; }
/* Payments: order first, the account in its own column, every row one line (Vašek, 19 Nov 2026) */
@media (min-width: 761px) {
  table.orders.payments-table { table-layout: fixed; width: 100%; font-size: 0.9rem; }
  .payments-table .c-order { width: 250px; } .payments-table .c-date { width: 105px; } .payments-table .c-amount { width: 100px; }
  .payments-table .c-vs { width: 110px; } .payments-table .c-payer { width: 22%; } .payments-table .c-account { width: 200px; }
  table.orders.payments-table td { font-size: 0.95rem; }
  table.orders.payments-table th, table.orders.payments-table td { vertical-align: middle; padding: 8px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  table.orders.payments-table th { font-size: 0.95rem; }
  table.orders.payments-table .num { text-align: right; }
  .payments-table .one-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .payments-table .payment-message { min-width: 0; }
}
.payments-table .none { color: var(--muted); }
@media (max-width: 760px) { .pay-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pay-bar .cust-search { grid-column: 1 / -1; } .pay-bar .cust-more-btn { padding: 0 8px; font-size: 0.9rem; white-space: nowrap; } }
/* Pages with the filter bar (Platby, Fakturace, …): 12 px between every section, like the rest of the list (Vašek, 19 Nov 2026) */
section.view:has(> .cust-filters) { gap: 12px; }
.cust-filters + .cat-results, .cust-filters + turbo-frame { display: grid; gap: 12px; margin-top: -10px; }
.cust-filters + turbo-frame > .cat-results { display: grid; gap: 12px; }
/* Nákup: the shops as one row of equal buttons in a bar with Správa položek (Vašek, 19 Nov 2026) */
.purchase-tools { background: var(--surface); border: 1px solid var(--line); padding: 12px; gap: 12px; margin: 0; }
.purchase-tools-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.purchase-branches { gap: 0; margin-right: auto; }
.purchase-branch-chip span { min-width: 140px; justify-content: center; margin-left: -1px; }
.purchase-branch-chip:first-child span { margin-left: 0; }
.purchase-branch-chip span:hover { background: var(--surface-2); }
.purchase-branch-chip input:checked + span:hover { background: var(--accent); }
.purchase-tools .purchase-manage { height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; }
.purchase-tools .purchase-manage:hover { background: var(--surface-2); }
@media (max-width: 760px) {
  .purchase-tools-label { width: 100%; }
  .purchase-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-right: 0; }
  .purchase-branch-chip span { min-width: 0; width: 100%; margin: 0 0 -1px -1px; }
  .purchase-tools .purchase-manage { width: 100%; justify-content: center; }
}
/* Katalog, easier to read (Vašek, 19 Nov 2026): every filter row labelled and 44 px high, sections by category,
   bigger names and prices on the tiles */
.catalogue .cat-filters.card { padding: 0; }
.catalogue .cat-bar { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 12px; align-items: end; padding: 14px; }
.catalogue .cat-bar .cat-search, .catalogue .cat-bar .cat-control { display: grid; gap: 6px; margin: 0; }
.catalogue .cat-bar .cat-search { position: relative; }
.catalogue .cat-bar .cat-search svg { position: absolute; left: 12px; bottom: 13px; width: 18px; height: 18px; }
.catalogue .cat-bar input[type=search], .catalogue .cat-bar select { height: 44px; box-sizing: border-box; }
.catalogue .cat-view { height: 44px; padding: 0; align-items: stretch; }
.catalogue .cat-view label span { height: 100%; display: inline-flex; align-items: center; padding: 0 16px; font-size: 0.95rem; }
.catalogue .cat-row { display: grid; gap: 6px; padding: 14px; border-top: 1px solid var(--line); }
.catalogue .cat-chips { flex-wrap: wrap; gap: 8px; overflow: visible; }
.catalogue .cat-chips .chip { height: 44px; padding: 0 16px; font-size: 0.95rem; }
.catalogue .cat-chips .chip .count { font-size: 0.8rem; }
.catalogue .cat-more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; padding: 14px; border-top: 1px solid var(--line); align-items: start; }
.catalogue .cat-more-grid .cat-control { display: grid; gap: 6px; align-content: start; }
.catalogue .cat-more-grid select, .catalogue .cat-more-grid input[type=number] { height: 44px; box-sizing: border-box; }
.catalogue .cat-more-grid .seg { height: 44px; padding: 0; align-items: stretch; flex-wrap: nowrap; }
.catalogue .cat-more-grid .seg label span { height: 100%; display: inline-flex; align-items: center; padding: 0 12px; font-size: 0.9rem; }
.catalogue .cat-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cat-group-title { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font-size: 1.2rem; }
.cat-group-title small { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.catalogue .cat-summary + .cat-group-title { margin-top: 4px; }
.catalogue .tile-meta { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.catalogue .tile-name { font-size: 1.05rem; line-height: 1.3; }
.catalogue .tile-comp { font-size: 0.85rem; }
.catalogue .tile-foot .tile-price { font-size: 1.15rem; }
@media (max-width: 1100px) { .catalogue .cat-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .catalogue .cat-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .catalogue .cat-bar .cat-search { grid-column: 1 / -1; }
  .catalogue .cat-view { display: flex; width: 100%; }
  .catalogue .cat-view label { flex: 1; } .catalogue .cat-view label span { width: 100%; justify-content: center; padding: 0 6px; }
  .catalogue .cat-more-grid { grid-template-columns: minmax(0, 1fr); }
  .catalogue .cat-more-grid .seg { overflow-x: auto; }
}
/* Kalkulačka růží (Vašek, 19 Nov 2026) */
.rose-price-host { display: contents; }
.orders-view .orders-top-actions .btn-roses { background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.rose-dialog { width: min(560px, calc(100vw - 32px)); }
.rose-dialog-body { display: grid; gap: 16px; padding: 16px; }
.rose-label { display: block; margin-bottom: 6px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rose-lengths { display: grid; grid-template-columns: 1fr 1fr; }
.rose-lengths input { position: absolute; opacity: 0; }
.rose-lengths span { display: grid; place-items: center; gap: 2px; min-height: 60px; border: 1px solid var(--line); margin-left: -1px; font-weight: 700; cursor: pointer; background: var(--surface); }
.rose-lengths small { font-weight: 400; color: var(--muted); }
.rose-lengths input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.rose-lengths input:checked + span small { color: #fff; }
.rose-lengths input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.rose-stepper { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; height: 56px; }
.rose-stepper button { border: 1px solid var(--line); background: var(--surface-2); font-size: 1.6rem; font-weight: 700; cursor: pointer; }
.rose-stepper input { height: 56px; box-sizing: border-box; border: 1px solid var(--line); border-left: 0; border-right: 0; text-align: center; font-size: 1.6rem; font-weight: 700; }
.rose-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.rose-quick button { height: 44px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.rose-quick button:hover, .rose-lengths span:hover { border-color: var(--ink); }
.rose-result { padding: 14px 16px; background: var(--good-soft, #e8f5e9); border-left: 4px solid var(--good, #2e7d32); }
.rose-result strong { display: block; font-size: 2.2rem; line-height: 1.1; }
.rose-result span:last-child { color: var(--muted); }
.rose-tiers { margin: 0; font-size: 0.85rem; color: var(--muted); }
.rose-quick button { white-space: nowrap; }
@media (max-width: 480px) { .rose-quick { gap: 4px; } .rose-quick button { font-size: 0.85rem; padding: 0 2px; } }
.purchase-summary.editing { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.purchase-editing { margin: 0; padding: 10px 16px; background: var(--accent-soft, #fdecea); font-weight: 600; }
/* Nákup → Poslední objednávky (Vašek, 19 Nov 2026): grouped by day, the state as labels, equal action buttons */
.ph-state { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.ph-state.sent { background: #e8f5e9; color: #1b6e2a; }
.ph-state.wait { background: #fff4d6; color: #7a5a00; }
.ph-state.printed { background: var(--surface-2); color: var(--muted); }
.ph-states { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 0.88rem; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ph-btn:hover, .ph-btn.on { border-color: var(--ink); }
.ph-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.ph-actions, .ph-card-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ph-actions form.inline, .ph-card-actions form.inline { display: contents; }
.ph-preview { padding: 8px 12px 12px; background: var(--surface-2); }
.ph-preview h4 { margin: 8px 0 4px; }
/* A: one line per order */
.ph-a { padding: 0; }
.ph-a .ph-day { padding: 8px 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--line); }
.ph-a .ph-day:first-child { border-top: 0; }
.ph-row { display: grid; grid-template-columns: 48px 100px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); }
.ph-row .ph-time { font-variant-numeric: tabular-nums; color: var(--muted); }
.ph-row.is-sent .ph-branch, .ph-row.is-sent .ph-time { color: var(--muted); }
@media (max-width: 760px) { .ph-row { grid-template-columns: 48px minmax(0, 1fr); } .ph-row .ph-states, .ph-row .ph-actions { grid-column: 1 / -1; justify-content: flex-start; } }
/* Katalog variant A (Vašek, 19 Nov 2026): the filters in a column on the left, every field full width and 44 px,
   the chosen category or state marked by a light red row with a bar, nothing else coloured. */
.cat-a { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.cat-a-side { display: grid; gap: 18px; padding: 16px; position: sticky; top: 10px; max-height: calc(100vh - 20px); overflow-y: auto; }
.cat-a-block { display: grid; gap: 6px; margin: 0; }
.cat-a-block input[type=search], .cat-a-block select, .cat-a-range input { width: 100%; height: 44px; box-sizing: border-box; padding: 0 12px; font-size: 0.95rem; }
.cat-a-list { display: grid; border: 1px solid var(--line); }
.cat-a-item { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-top: 1px solid var(--line); cursor: pointer; font-size: 0.95rem; }
.cat-a-item:first-child { border-top: 0; }
.cat-a-item input { position: absolute; opacity: 0; pointer-events: none; }
.cat-a-item span { flex: 1; }
.cat-a-item small { color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-a-item:hover { background: var(--surface-2); }
.cat-a-item:has(input:checked) { background: #fdecea; box-shadow: inset 4px 0 0 var(--accent); font-weight: 700; }
.cat-a-item:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.cat-a-item.is-empty:not(:has(input:checked)) { color: var(--muted); }
.cat-a-fold { display: contents; }
.cat-a-fold-btn { display: none; }
.cat-a-fold-body { display: grid; gap: 18px; }
.cat-a-toggle { display: grid; grid-template-columns: 1fr 1fr; height: 44px; border: 1px solid var(--line); }
.cat-a-toggle input { position: absolute; opacity: 0; }
.cat-a-toggle span { display: flex; align-items: center; justify-content: center; height: 100%; background: var(--surface); font-size: 0.95rem; cursor: pointer; }
.cat-a-toggle input:checked + span { background: var(--ink); color: #fff; font-weight: 600; }
.cat-a-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-a-check { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.95rem; }
.cat-a-check input { width: 20px; height: 20px; accent-color: var(--ink); }
.cat-a-side .cat-flowers { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-a-side .cat-flowers:empty { display: none; }
.cat-a-side .cat-flowers .chip { background: var(--surface-2); color: var(--ink); border-color: var(--line); font-weight: 600; }
.cat-a-main { min-width: 0; }
.cat-a-main .cat-summary { margin-bottom: 4px; font-size: 1rem; }
.cat-a-main .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 900px) {
  .cat-a { grid-template-columns: minmax(0, 1fr); }
  .cat-a-side { position: static; max-height: none; gap: 12px; }
  .cat-a-fold { display: block; }
  .cat-a-fold-btn { display: flex; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
  .cat-a-fold-btn::-webkit-details-marker { display: none; }
  .cat-a-fold[open] .cat-a-fold-btn { margin-bottom: 14px; }
}

/* Přehled → Všechny prodané položky: one toolbar row over the table (Vašek, 20 Nov 2026) */
.items-toolbar { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 8px; margin: 0 0 12px; }
.items-toolbar input[type=search], .items-toolbar select { width: 100%; height: 44px; min-height: 44px; box-sizing: border-box; margin: 0; padding: 0 12px; font: inherit; font-size: 0.95rem; border: 1px solid var(--line); border-radius: 0; background-color: var(--surface); color: var(--ink); }
.items-toolbar select { padding-right: 34px; }
.items-toolbar input[type=search]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.items-reset { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 0.95rem; }
.items-reset:hover { border-color: var(--ink); }
#vsechny-polozky .sales-table td, #vsechny-polozky .sales-table th { padding: 10px 12px; }
@media (max-width: 760px) { .items-toolbar { grid-template-columns: 1fr 1fr; } .items-toolbar input[type=search] { grid-column: 1 / -1; } }

/* Administrace → Vyhledávače (20 Nov 2026) */
.search-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; }
.search-reindex { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; }
.search-table td, .search-table th { padding: 10px 12px; }
.search-url { word-break: break-all; font-size: 0.9rem; }
.state-ok { color: #2e7d32; font-weight: 600; } .state-bad { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .search-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Čas of an order: a slider 7–17 with the chosen time big and centred above it (Vašek, 22 Nov 2026). */
.hour-range { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: 4px; width: 100%; }
.hour-range-lists { display: none; }
.hour-range-label { display: block; text-align: center; white-space: nowrap; font-size: 2.1rem; font-weight: 700; line-height: 1.2; color: var(--ink, #222); }
.hour-range-axis { position: relative; height: 32px; margin: 0 13px; }
.hour-range-track { position: absolute; left: 0; right: 0; top: 12px; height: 8px; background: #e6e6e6; }
.hour-range-fill { position: absolute; top: 0; bottom: 0; background: #EE2E2A; }
.hour-range-axis input[type="range"] { position: absolute; left: -13px; right: -13px; top: 0; width: calc(100% + 26px); height: 32px; margin: 0; padding: 0; border: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.hour-range-axis input[type="range"]::-webkit-slider-runnable-track { background: none; height: 32px; }
.hour-range-axis input[type="range"]::-moz-range-track { background: none; }
.hour-range-axis input[type="range"]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 26px; height: 26px; margin-top: 3px; border-radius: 50%; background: #fff; border: 3px solid #EE2E2A; cursor: grab; }
.hour-range-axis input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #EE2E2A; cursor: grab; }
.hour-range-ticks { display: flex; justify-content: space-between; justify-self: stretch; margin: 0 13px; font-size: 0.75rem; color: #777; }
/* Zero-width labels centred on their hour, so 7 sits under the left end of the axis and 17 under the right one. */
.hour-range-ticks span { flex: 0 0 0; min-width: 0; display: flex; justify-content: center; white-space: nowrap; }
/* Four hours written for orientation (Vašek, 22 Nov 2026), each in its true place on the axis. */
.hour-range-ticks span:not(.on) { visibility: hidden; }
.hour-range-axis input[type="range"]:focus { outline: none; }
.hour-range-axis input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(238, 46, 42, 0.3); }

/* Správa položek in one form (23 Nov 2026): inputs fill their cells, the save button stays at the bottom of the screen. */
.purchase-all .purchase-table td { vertical-align: middle; }
.purchase-all .purchase-table td input[type="text"]:not(.short) { width: 100%; }
.purchase-all .purchase-table input.short { width: 90px; }
.purchase-del-cell { text-align: center; }
.purchase-del-cell input, .purchase-del input { width: 22px; height: 22px; }
.purchase-del { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.purchase-new input::placeholder { color: #9a9a9a; }
.purchase-save-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; background: #fff; border-top: 2px solid var(--red, #ee2e2a); box-shadow: 0 -4px 12px rgba(0,0,0,.06); }
.purchase-off td input[type="text"], .purchase-off td input[type="number"] { color: #9a9a9a; background: #f4f4f4; text-decoration: line-through; }
/* Folding groups in Správa položek (23 Nov 2026). */
.purchase-fold-all { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.purchase-fold { flex: none; white-space: nowrap; }
.purchase-fold .fold-icon::before { content: '▾'; }
.purchase-group.folded .fold-icon::before { content: '▸'; }
.purchase-group.folded .purchase-table { display: none; }
/* Historie uzávěrek (23 Nov 2026): the slips side by side as they print, 7.2 cm wide like the receipt. */
.closing-slips { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.closing-slip-card .card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.slip-preview { font-family: Arial, sans-serif; font-size: 13px; color: #000; line-height: 1.3; background: #fff; border: 1px dashed #ccc; padding: 10px; width: 7.6cm; max-width: 100%; margin: 0 auto; }
.slip-preview .head { font-size: 16px; margin: 0 0 10px; }
.slip-preview h2 { text-align: center; font-size: 14px; margin: 12px 0 2px; }
.slip-preview table { width: 100%; border-collapse: collapse; }
.slip-preview table { table-layout: auto; }
.slip-preview td { padding: 1px 0; vertical-align: top; border: 0; text-align: left; width: auto; }
.slip-preview tr:not(.sum) td:nth-child(2) { width: 100%; }
.slip-preview tr.sum td { white-space: nowrap; }
.slip-preview tr.sum td + td { padding-left: 8px; }
.slip-preview td.num { white-space: nowrap; padding-right: 6px; } .slip-preview td.price { text-align: right; white-space: nowrap; }
.slip-preview tr:not(.sum) td { vertical-align: baseline; }
.slip-preview td.name { max-width: 0; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.slip-preview tr.cols td { font-size: 11px; border-bottom: 1px solid #000; padding-bottom: 2px; }
.slip-preview tr.sum td { font-weight: bold; text-align: right; padding-top: 2px; }
.slip-preview .totals { margin-top: 14px; border-bottom: 2px solid #000; padding-bottom: 6px; }
.slip-preview .totals div { display: flex; justify-content: space-between; font-weight: bold; font-size: 15px; margin: 4px 0; }
/* 1280 px with every tab (admin): smaller Nová objednávka and Wolt buttons leave the tabs one row (Vašek, 23 Nov 2026). */
@media (min-width: 1101px) and (max-width: 1400px) {
  header.top .brand-group .btn-new-order { padding: 0 12px; font-size: 1.1rem; }
  header.top .top-actions .btn-wolt { min-width: 0; padding: 12px 14px; font-size: 1.05rem; }
  header.top .tabs-row .top-user .usermenu { max-width: 180px; }
}
/* The web in a window over the intranet (Vašek, 23 Nov 2026). */
dialog.web-popup { width: min(1400px, 96vw); height: 92vh; max-width: none; max-height: none; padding: 0; border: 0; border-radius: 0; overflow: visible; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
dialog.web-popup::backdrop { background: rgba(0, 0, 0, 0.55); }
.web-popup-close { position: absolute; top: 0; right: 0; z-index: 1; width: 72px; height: 72px; border: 0; border-radius: 0; background: var(--accent); color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; }
.web-popup-close:hover { filter: brightness(0.9); }
dialog.web-popup iframe { width: 100%; height: 100%; border: 0; display: block; }
dialog.web-popup.web-popup--ticket { width: min(1140px, 96vw); }
/* Nákup, Vítkovice: the goods the web bouquets are made of (24 Nov 2026). */
.purchase-layout .web-goods-note, .purchase-layout .web-good-mark, .purchase-layout .web-goods-count { display: none; }
.purchase-layout.web-goods-on .web-goods-note { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; background: #eaf6e4; border-left: 4px solid #4caf2e; font-size: 0.9rem; }
.purchase-layout.web-goods-on .purchase-item.web-good { background: #eaf6e4; box-shadow: inset 4px 0 0 #4caf2e; }
.purchase-layout.web-goods-on .web-good-mark { display: inline; margin-right: 6px; }
.purchase-layout.web-goods-on .web-goods-count { display: inline-block; margin-left: 8px; padding: 1px 8px; background: #eaf6e4; color: #2d7a1b; font-size: 0.8rem; font-weight: 600; }
/* Katalog: the rose prices and the count discounts on top, side by side across the page (Vašek, 25 Nov 2026). */
.rose-prices { margin: 0 0 14px; display: grid; gap: 12px; }
.rose-prices-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.rose-prices-head h3 { margin: 0; }
.rose-prices-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.rose-price-tile { display: grid; gap: 4px; align-content: start; padding: 12px 16px; background: var(--surface-2, #f6f6f6); border-left: 4px solid var(--accent); }
.rose-price-tile .rp-label { font-size: 0.85rem; color: var(--muted, #666); }
.rose-price-tile strong { font-size: 1.5rem; line-height: 1.1; }
.rose-price-tile .btn { justify-self: start; }
.rose-price-tile.discount { background: #eaf6e4; border-left-color: #4caf2e; }
.rose-price-tile.discount strong { color: #2d7a1b; }

/* The customer's note from the web on the order (Míša, 27 Nov 2026). */
.customer-note { margin: 0 0 12px; padding: 10px 14px; background: #fff4d6; border-left: 4px solid #e0a100; font-size: 0.95rem; }

/* ===== Header, design A (Vašek, 27 Nov 2026): actions and quick links on top, sections with icons below. ===== */
header.top.top2 > .wrap.t2-row1 { display: flex; align-items: center; gap: 14px; padding-block: 12px; grid-template-areas: none; }
header.top.top2 .t2-left, header.top.top2 .t2-right { flex: none; display: flex; align-items: center; gap: 12px; }
header.top.top2 .t2-center { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; white-space: nowrap; font-size: 1.15rem; }
header.top.top2 .btn-new-order { min-width: 0; padding: 14px 26px; font-size: 1.3rem; height: auto; align-self: auto; }
header.top.top2 .btn-wolt { min-width: 180px; margin: 0; padding: 14px 20px; font-size: 1.15rem; text-align: center; }
header.top.top2 .usermenu summary.top-chip { min-height: 52px; padding: 8px 16px; font-size: 1.15rem; }
header.top.top2 .t2-chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; font-weight: 500; }
header.top.top2 .t2-chip:hover { border-color: var(--accent); color: var(--accent); }
header.top.top2 .top-nameday { display: inline-grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; padding: 2px 12px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 0.95rem; line-height: 1.3; }
header.top.top2 .top-nameday small { grid-row: span 2; font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
header.top.top2 .top-nameday strong { color: var(--ink); }
header.top.top2 .t2-row2 { background: var(--surface-2); border-top: 1px solid var(--line); }
header.top.top2 .t2-tabs { display: flex; align-items: center; gap: 12px; min-width: 0; }
header.top.top2 nav.tabs { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; justify-content: center; align-items: stretch; column-gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0; }
header.top.top2 nav.tabs > a { display: inline-flex; align-items: center; gap: 7px; min-height: 52px; margin: 0; padding: 0 12px; border: 0; border-bottom: 3px solid transparent; font-size: 1.07rem; color: var(--head-muted); white-space: nowrap; }
header.top.top2 nav.tabs > a::before { display: none; }
header.top.top2 nav.tabs > a[aria-current="page"] { border: 0; border-bottom: 3px solid var(--accent); color: var(--accent); background: var(--surface); font-weight: 600; }
header.top.top2 nav.tabs > a:hover { color: var(--accent); }
header.top.top2 .tab-ico { flex: none; width: 20px; height: 20px; }
header.top.top2 .tabs-sep { display: block; align-self: center; width: 1px; height: 24px; margin: 0 6px; background: #d9d9d9; }
header.top.top2 .tabs-sep:first-child, header.top.top2 .tabs-sep:last-child, header.top.top2 .tabs-sep + .tabs-sep { display: none; }
header.top.top2 .top-controls { flex: none; }
/* Narrower screens: the quick links go first, then names; on phones the top row wraps. */
@media (max-width: 1500px) { header.top.top2 .t2-center { font-size: 1rem; gap: 8px; } header.top.top2 .btn-new-order { font-size: 1.15rem; padding: 12px 18px; } header.top.top2 .btn-wolt { min-width: 0; font-size: 1.05rem; padding: 12px 16px; } header.top.top2 nav.tabs > a { padding: 0 8px; font-size: 1rem; } }
@media (max-width: 1250px) { header.top.top2 .top-nameday { display: none; } }
@media (max-width: 1000px) { header.top.top2 .t2-center { display: none; } header.top.top2 .t2-right { margin-left: auto; } header.top.top2 nav.tabs { justify-content: flex-start; } }
@media (max-width: 640px) { header.top.top2 > .wrap.t2-row1 { flex-wrap: nowrap; gap: 8px; padding-block: 8px; } header.top.top2 .t2-left { flex: 1 1 auto; min-width: 0; } header.top.top2 .t2-right { gap: 6px; } header.top.top2 .usermenu summary.top-chip { min-height: 44px; padding: 6px 10px; } header.top.top2 .btn-new-order, header.top.top2 .btn-wolt { font-size: 1rem; padding: 10px 12px; } header.top.top2 nav.tabs > a { min-height: 46px; } header.top.top2 .tabs-sep { display: none; } }
/* 15 % larger on computer screens; smaller ones keep the size that fits (Vašek, 27 Nov 2026). */
@media (min-width: 1600px) { header.top.top2 > .t2-row1, header.top.top2 > .t2-row2 { zoom: 1.15; } }
/* Orders top, variant B (Vašek, 28 Nov 2026): labelled groups; counts as chips, today in red. */
.orders-view .orders-top-row { align-items: flex-end; }
.orders-view .top-group { display: grid; gap: 5px; min-width: 0; }
.orders-view .top-group-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.orders-view .top-group-tools { margin-left: auto; }
.orders-view .top-group-tools .orders-top-actions { margin-left: 0; }
.orders-view .sum-lbl { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.orders-view .orders-sum { gap: 10px 0; margin-top: 12px; padding: 12px 0 0; background: none; border-top: 1px solid var(--line); align-items: stretch; }
.orders-view .sum-group { display: grid; gap: 5px; align-content: start; padding: 0 20px; border-left: 1px solid var(--line); }
.orders-view .sum-group:first-child { padding-left: 0; border-left: 0; }
.orders-view .orders-sum .sum-filter { margin-left: 0; }
.orders-view .sum-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.orders-view .sum-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.orders-view .sum-chip b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.orders-view .sum-chip.today { border-color: var(--accent); background: #fdecec; }
.orders-view .sum-chip.today b { color: var(--accent); }
.orders-view .sum-chip.grey { background: var(--surface-2); }
.orders-view .sum-chip.grey b { font-size: 1rem; }
.orders-view .sum-money { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; min-height: 40px; padding-top: 4px; font-size: 1.25rem; white-space: nowrap; }
.orders-view .sum-money b { font-variant-numeric: tabular-nums; }
.orders-view .sum-money span { font-size: 0.9rem; color: var(--muted); }
/* The counts row spans the whole page: three equal groups, their chips share the width (Vašek, 28 Nov 2026). */
@media (min-width: 761px) {
  .orders-view .orders-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .orders-view .sum-chips { flex-wrap: nowrap; }
  .orders-view .sum-chip { flex: 1; justify-content: center; }
  .orders-view .sum-group:last-child { padding-right: 0; }
}
@media (max-width: 760px) {
  .orders-view .top-group, .orders-view .top-group-tools { width: 100%; margin-left: 0; }
  .orders-view .sum-group { padding: 0; border-left: 0; width: 100%; }
  .orders-view .top-group-tools .orders-top-actions { flex-wrap: wrap; }
  /* Phone: the period row never widens the page (Tester 28 Nov 2026: 426 px on a 390 px screen); the tabs scroll. */
  .orders-view .top-group { grid-template-columns: minmax(0, 1fr); }
  .orders-view .top-group-row { min-width: 0; }
  .orders-view .orders-top .seg { max-width: 100%; overflow-x: auto; }
  .orders-view .orders-top .time-range { margin-left: 0; width: 100%; min-width: 0; }
  .orders-view .orders-top .range-picker .date-button { width: 100%; min-width: 0; }
}
/* Phone ≤ 420 px: "+ Nová objednávka" was cut off (Tester 28 Nov 2026); smaller, and a second line rather than cut. */
@media (max-width: 420px) { header.top.top2 .btn-new-order, header.top.top2 .btn-wolt { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.92rem; padding: 8px 10px; white-space: normal; line-height: 1.2; text-align: center; justify-content: center; } }
/* Přehled on a phone: the all-items table fits the screen like Nejprodávanější (it was 412 px on 390, 28 Nov 2026). */
@media (max-width: 760px) {
  #vsechny-polozky .sales-table td, #vsechny-polozky .sales-table th { padding: 6px 5px; font-size: 0.88rem; }
  #vsechny-polozky .sales-table td:nth-child(2), #vsechny-polozky .sales-table td:nth-child(3) { overflow-wrap: anywhere; }
  #vsechny-polozky .sales-table .num { white-space: nowrap; }
}
/* Rose counter on/off in "Ceny růží" (Vašek, 30 Nov 2026). */
.rose-price-tile .rp-counter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; font-size: 0.85rem; }
.rose-price-tile .rp-counter strong { font-size: inherit; line-height: inherit; }
.rose-price-tile .rp-counter.on strong { color: #2d7a1b; }
.rose-price-tile .rp-counter.off strong { color: var(--accent); }
.rose-price-tile .rp-counter form { margin: 0; }
/* Rozpis směn (Vašek, 25 Nov–1 Dec 2026): a month per shop like Petra's sheets. */
.plan-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 12px 0; }
.plan-branches, .plan-month { display: flex; align-items: center; gap: 8px; }
.plan-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.plan-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.plan-month strong { min-width: 140px; text-align: center; font-size: 1.1rem; }
.plan-fund { color: var(--muted); margin-left: auto; }
.plan-wrap { overflow-x: auto; }
.plan-table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: 0.92rem; }
.plan-table th, .plan-table td { border: 1px solid #000; padding: 0; text-align: center; vertical-align: middle; min-width: 104px; }
.plan-table thead th { padding: 8px; background: var(--surface-2); font-weight: 700; }
.plan-table thead th small { display: block; font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.plan-table .plan-day { text-align: left; padding: 4px 8px; min-width: 150px; white-space: nowrap; background: var(--surface-2); }
.plan-date { display: block; font-weight: 700; }
.plan-nameday { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.plan-table tr.weekend td, .plan-table tr.weekend .plan-day { background: #fbe1e0; }
.plan-table tr.weekend .plan-day .plan-date { color: #c8211d; font-weight: 800; }
.plan-table tr.holiday .plan-day { color: var(--accent); }
.plan-table tr.holiday td { background: #fdecec; }
.plan-cell { height: 44px; }
.plan-cell small { display: block; color: var(--muted); font-size: 0.72rem; }
.plan-cell.k-D { background: #e8f1fb !important; } .plan-cell.k-N { background: #fdf3e2 !important; }
.plan-cell.off { background: repeating-linear-gradient(135deg, #fafafa, #fafafa 6px, #f2f2f2 6px, #f2f2f2 12px); }
.plan-cell.elsewhere { color: var(--muted); font-size: 0.78rem; }
.plan-btn { display: block; width: 100%; min-height: 44px; border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; padding: 4px; }
.plan-btn:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.plan-add { color: #c9c9c2; font-size: 1.2rem; }
.plan-helper { background: #fff7e0 !important; }
.plan-sum th, .plan-sum td { padding: 6px 8px; font-weight: 600; background: var(--surface-2); }
.plan-sum-total td { font-size: 1.05rem; }
.plan-sum-over td.minus { color: var(--muted); }
.plan-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0 12px; }
.plan-kinds label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); cursor: pointer; }
.plan-kinds input:checked + span { font-weight: 700; color: var(--accent); }
.plan-kinds small { color: var(--muted); }
.plan-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan-people { margin-top: 16px; }
.plan-person { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.plan-person input[type=text] { flex: 1 1 180px; }
header.top.top2 .btn-plan { background: #ffffff; color: var(--ink); border: 2px solid var(--ink); }
header.top.top2 .btn-plan:hover, header.top.top2 .btn-plan[aria-current] { background: var(--ink); color: #ffffff; }
.plan-table { table-layout: auto; }
.plan-table .plan-day { width: 1%; text-transform: none; letter-spacing: 0; }
.plan-table thead th:not(.plan-day) { width: 140px; }
.plan-table thead .plan-day { text-transform: uppercase; }
.plan-person > input[type=text] { flex: 1 1 220px; width: auto; }
.plan-person > select, .plan-person > input[type=date] { flex: 0 0 150px; width: auto; }
.plan-person > .btn { flex: 0 0 auto; }
.plan-dialog form { padding: 0 16px 16px; }
.plan-dialog .area-dialog-head { margin: 0 -16px 8px; }
.plan-dialog .form-actions { margin-top: 12px; }
.plan-person > input.plan-time { flex: 0 0 76px; width: 76px; }
.plan-own { color: var(--muted); font-size: 0.85rem; }
/* Docházka (Vašek, 2 Dec 2026): the main button in the header, Rozpis směn smaller under it; keypad on the shop's PC. */
.att-stack { display: inline-flex; flex-direction: column; align-items: stretch; gap: 4px; }
.btn-att { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 26px; background: var(--accent); color: #ffffff; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.btn-att:hover, .btn-att[aria-current] { background: #c81f1b; }
.btn-plan-small { display: block; padding: 2px 8px; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.btn-plan-small[aria-current] { color: var(--accent); }
.att-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .att-grid { grid-template-columns: 1fr; } }
.att-pad { padding: 20px; }
.att-label { display: block; font-weight: 700; margin-bottom: 6px; }
.att-pin { width: 100%; height: 64px; font-size: 2rem; text-align: center; letter-spacing: 0.4em; }
.att-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.att-keys button { height: 64px; font-size: 1.6rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.att-keys button:active { background: var(--line); }
.att-keys .att-ok { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.att-confirm { text-align: center; }
.att-name { margin: 8px 0 4px; font-size: 2rem; font-weight: 700; }
.att-action { margin: 0 0 8px; font-size: 1.4rem; }
.att-action.in strong { color: #2d7a1b; }
.att-action.out strong { color: var(--accent); }
.att-buttons { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 18px; }
.att-buttons .btn { min-height: 56px; font-size: 1.15rem; justify-content: center; }
.att-today h3, .att-view .card h3 { margin: 0 0 10px; }
.att-table { width: 100%; border-collapse: collapse; }
.att-table th, .att-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.att-table th { font-size: 0.8rem; text-transform: uppercase; color: var(--muted); }
.att-table tr.at-work td { background: #eef8ea; }
.att-table tr.voided td { color: var(--muted); text-decoration: line-through; }
.att-table tr.voided td .muted { text-decoration: none; }
.att-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 0.78rem; font-weight: 700; background: var(--line); color: var(--ink); }
.att-badge.in { background: #2d7a1b; color: #ffffff; }
.att-badge.late { background: var(--accent); color: #ffffff; }
.att-badge.check { background: #f5c518; color: #222222; }
.att-void { display: flex; gap: 6px; margin: 0; }
.att-void input { width: 150px; }
.att-add { margin-top: 12px; }
.att-codes { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.att-codes strong { font-size: 1.1rem; letter-spacing: 0.1em; }
/* The shift in the middle of the cell, its hours and Docházka's finding small on the right (Vašek, 4 Dec 2026). */
.plan-cell .pc { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; padding: 4px 6px; }
.plan-cell .pc-main { grid-column: 2; display: block; }
.plan-cell .pc-side { grid-column: 3; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; padding-left: 6px; }
.plan-cell .pc-hours { display: block; font-size: 0.72rem; color: #8a8a8a; font-weight: 400; white-space: nowrap; }
.plan-cell .pc-flag { font-size: 0.72rem; color: var(--accent); font-weight: 700; text-align: right; }
.plan-btn .pc { padding: 0; min-height: 36px; }
.plan-unlocked { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--accent); background: #fdecec; }
.att-unusual .att-badge { margin: 2px 6px 2px 0; }
.btn-att .att-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 8px; padding: 0 6px; background: #ffffff; color: var(--accent); font-size: 0.8rem; border-radius: 11px; }
/* Rozpis směn, clearer (Vašek, 2 Dec 2026): shops across the page, month centred, stronger headers, sums in a box. */
.plan-view .plan-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 12px 0; }
.plan-view .plan-branches .plan-chip { justify-content: center; min-height: 48px; font-size: 1.05rem; }
.plan-view .plan-tools { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.plan-view .plan-month { justify-content: center; }
.plan-view .plan-month strong { font-size: 1.3rem; min-width: 180px; }
.plan-view .plan-fund { justify-self: end; text-align: right; display: flex; flex-direction: column; color: var(--muted); }
.plan-view .plan-fund strong { font-size: 1.2rem; color: var(--ink); }
.plan-view .plan-fund span { font-size: 0.85rem; }
@media (max-width: 760px) { .plan-view .plan-tools { grid-template-columns: 1fr; } .plan-view .plan-fund { justify-self: center; text-align: center; } }
.plan-table thead th { background: #2e2e2e; color: #ffffff; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 12px 8px; border-color: #2e2e2e; }
.plan-table thead th small { color: #cfcfcf; text-transform: none; letter-spacing: 0; }
.plan-table thead th.plan-helper { background: #6b5a1f !important; }
.plan-table .plan-day { padding: 6px 10px; }
.plan-table .plan-date { font-size: 0.95rem; }
.plan-weekday { display: block; font-size: 0.82rem; font-weight: 600; }
.plan-cell .plan-kind { display: block; font-size: 0.85rem; }
.plan-cell .plan-time-range { display: block; font-weight: 600; }
.plan-sums { margin-top: 16px; }
.plan-sums h3 { margin: 0 0 12px; }
.plan-sum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.plan-sum-card { border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 12px 14px; }
.plan-sum-name { font-weight: 700; font-size: 1.05rem; }
.plan-sum-name small { color: var(--muted); font-weight: 400; }
.plan-sum-total { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 8px; }
.plan-sum-total strong { font-size: 1.6rem; }
.plan-sum-total span { color: var(--muted); font-size: 0.85rem; }
.plan-sum-card dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; font-size: 0.92rem; }
.plan-sum-card dt { color: var(--muted); }
.plan-sum-card dd { margin: 0; font-weight: 600; text-align: right; }
.plan-sum-card dd.plus { color: var(--accent); }
.plan-sum-card dd.minus { color: var(--muted); }
.plan-table thead th.plan-day { background: #2e2e2e; color: #ffffff; }
.plan-table .plan-date { font-size: 0.95rem; }
.plan-table .plan-weekday { font-weight: 600; }
.plan-sums-row .plan-gap td { height: 14px; border: 0; background: transparent; }
.plan-sums-row td { vertical-align: top; padding: 0; border: 0; background: transparent; }
.plan-sums-row th.plan-day { vertical-align: top; padding: 14px 10px; background: #2e2e2e; color: #ffffff; text-transform: uppercase; letter-spacing: 0.04em; border-color: #2e2e2e; }
.plan-sums-row th.plan-day small { display: block; text-transform: none; letter-spacing: 0; color: #cfcfcf; font-weight: 400; }
.plan-sums-row .plan-sum-card { margin: 0 4px; background: var(--surface); text-align: left; }
/* Lidé v rozpisu: a card per person with full name, position and pay (Vašek, 2 Dec 2026). */
.plan-person-card { padding: 14px 0; border-top: 1px solid var(--line); }
.ppc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; align-items: end; }
.ppc-grid .field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.ppc-grid .field > span { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.ppc-grid .ppc-wide { grid-column: span 2; }
.ppc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ppc-pair .plan-time { width: 100%; }
.ppc-actions { display: flex; gap: 8px; }
.ppc-rates { margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.ppc-rates span + span::before { content: ' · '; }
@media (max-width: 760px) { .ppc-grid .ppc-wide { grid-column: auto; } }
/* Lidé v rozpisu on one row (Vašek, 2 Dec 2026). */
@media (min-width: 1100px) {
  .ppc-grid { grid-template-columns: minmax(80px, 1fr) minmax(100px, 1.3fr) 118px 104px 120px 120px 72px 132px 84px auto; gap: 6px; }
  .ppc-grid .field > span { white-space: nowrap; font-size: 0.75rem; }
  .ppc-grid input, .ppc-grid select { padding-left: 8px; padding-right: 8px; font-size: 0.9rem; min-width: 0; }
  .ppc-grid select { padding-right: 24px; background-position: right 6px center; }
  .ppc-pair { gap: 4px; }
  .ppc-actions { gap: 4px; }
  .ppc-actions .btn { padding: 0 10px; }
}
/* Each employee its own card; adding apart (Vašek, 2 Dec 2026). */
.plan-people .plan-person-card { margin-top: 12px; padding: 12px 14px 14px; border: 1px solid var(--line); border-left: 4px solid #2e2e2e; background: #fafafa; }
.plan-people .plan-person-card.lead { border-left-color: var(--accent); }
.ppc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.ppc-head strong { font-size: 1.1rem; }
.ppc-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: #2e2e2e; color: #ffffff; font-weight: 700; font-size: 0.85rem; }
.plan-person-card.lead .ppc-no { background: var(--accent); }
.ppc-job { padding: 2px 8px; background: #2e2e2e; color: #ffffff; font-size: 0.78rem; font-weight: 700; }
.plan-person-card.lead .ppc-job { background: var(--accent); }
.ppc-meta { color: var(--muted); font-size: 0.88rem; }
.plan-person-card .ppc-grid input, .plan-person-card .ppc-grid select { background-color: #ffffff; }
.plan-add-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .plan-add-grid { grid-template-columns: 1fr; } }
.plan-add-card h3 { margin: 0 0 10px; }
.plan-add-card .plan-person { border-top: 0; padding: 0; }
.plan-add-card .plan-person > input[type=text] { flex: 1 1 200px; }
.plan-add-card .plan-helper-new > select[name=staff] { flex: 1 1 260px; }
/* Docházka for management, clearer (Vašek, 2 Dec 2026). */
.att-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 16px; }
@media (max-width: 900px) { .att-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.att-tile { display: flex; flex-direction: column; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid #2e2e2e; color: var(--ink); text-decoration: none; }
.att-tile small { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.att-tile strong { font-size: 2rem; line-height: 1.2; }
.att-tile span { font-size: 0.85rem; color: var(--muted); }
.att-tile.green { border-top-color: #2d7a1b; } .att-tile.green strong { color: #2d7a1b; }
.att-tile.red { border-top-color: var(--accent); } .att-tile.red strong { color: var(--accent); }
.att-tile.yellow { border-top-color: #f5c518; }
.att-view .card { margin-bottom: 16px; }
.att-view .card h3 { font-size: 1.1rem; }
.att-table thead th { background: #2e2e2e; color: #ffffff; border-bottom: 0; }
.att-table td { font-size: 0.95rem; }
.att-time { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.att-day small { display: block; color: var(--muted); font-size: 0.78rem; }
.att-state { display: inline-block; padding: 3px 10px; font-size: 0.8rem; font-weight: 700; }
.att-state.in { background: #2d7a1b; color: #ffffff; }
.att-state.out { background: var(--line); color: var(--ink); }
.att-state.wait { background: #ffffff; color: var(--muted); border: 1px dashed #c9c9c2; }
.att-table tr.att-row-in td { background: #eef8ea; }
.att-day-row th { background: #f3f1ee !important; color: var(--ink) !important; text-align: left; font-size: 0.9rem; padding: 8px !important; }
.att-dir { display: inline-block; padding: 2px 8px; font-size: 0.82rem; font-weight: 700; }
.att-dir.in { background: #eef8ea; color: #2d7a1b; }
.att-dir.out { background: #fdecec; color: var(--accent); }
.att-actions { width: 1%; white-space: nowrap; text-align: right; }
/* Neobvyklé: "Opravit" and "V pořádku" side by side; a day marked fine stays greyed (Vašek, 4 Dec 2026). */
.att-unusual-actions { display: flex; gap: 8px; justify-content: flex-end; }
.att-unusual-actions form { margin: 0; }
.att-table tr.att-checked td { color: var(--muted); background: #fafafa; }
.att-table tr.att-checked .att-badge { opacity: 0.45; }
.att-checked-by { display: block; margin-top: 4px; color: #2d7a1b; font-weight: 600; }
.att-table tr.att-focus td { background: #fff6cc; }
.att-void-box summary { list-style: none; cursor: pointer; min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; }
.att-void-box summary::-webkit-details-marker { display: none; }
.att-void-box[open] summary { display: none; }
.att-void-box .att-void input { width: 180px; }
.att-voided-why { font-size: 0.82rem; }
.att-code { display: flex; flex-direction: column; min-width: 140px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.att-code strong { font-size: 1.5rem; letter-spacing: 0.15em; }
.att-code span { font-weight: 600; }
.att-code small { color: var(--muted); }
.att-codes { gap: 10px; }
.att-view .att-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.att-view .att-code { min-width: 0; padding: 8px 10px; }
.att-view .att-code strong { font-size: 1.35rem; }
.att-view .att-code span { font-size: 0.85rem; line-height: 1.25; }
/* Plan header: name, surname, contract; Součty centred (Vašek, 2 Dec 2026). */
.plan-table thead th.plan-person-head { line-height: 1.25; }
.pph-name { display: block; font-size: 1rem; }
.pph-last { display: block; min-height: 1.2em; font-size: 0.82rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: #ffffff; }
.plan-table thead th .pph-load { display: inline-block; margin-top: 4px; padding: 1px 8px; border: 1px solid #6b6b6b; color: #e6e6e6; font-size: 0.72rem; }
.plan-sums-row th.plan-sums-label { vertical-align: middle; text-align: center; }
.plan-sums-row th.plan-sums-label span { display: block; font-size: 1.05rem; letter-spacing: 0.08em; }
/* Pravidla mezd (Vašek, 2 Dec 2026), the look of HAJEK-DOCHÁZKA's. */
.pay-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 4px 0 16px; }
@media (max-width: 900px) { .pay-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay-tile { display: flex; flex-direction: column; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid #2e2e2e; }
.pay-tile small { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.pay-tile strong { font-size: 1.7rem; line-height: 1.25; }
.pay-tile span { font-size: 0.85rem; color: var(--muted); }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card { margin: 0; border-left: 4px solid var(--accent); }
.pay-card h3 { margin: 0 0 6px; }
.pay-card .field { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.pay-card .field > span:first-child { font-weight: 700; font-size: 0.9rem; }
.pay-row { display: flex; flex-wrap: wrap; gap: 14px; }
.pay-input { display: flex; align-items: center; gap: 8px; }
.pay-input input { width: 120px; }
.pay-input em { font-style: normal; color: var(--muted); }
.pay-example { margin: 12px 0 0; padding: 8px 12px; background: #fff7e0; display: inline-block; }
.pay-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.pay-actions .btn { min-width: 200px; justify-content: center; }
.ppc-checks > div { display: flex; flex-direction: column; justify-content: center; min-height: 44px; font-size: 0.85rem; }
.ppc-checks label { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
@media (min-width: 1100px) { .ppc-grid { grid-template-columns: minmax(80px, 1fr) minmax(100px, 1.3fr) 112px 96px 116px 116px 80px 132px 86px auto; } }
.pay-card.pay-wide { grid-column: 1 / -1; }
.pay-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ppc-checks input[type=checkbox] { appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--accent); flex: 0 0 18px; }
/* Mzdy (Vašek, 2 Dec 2026). */
.pay-exports { justify-self: end; display: flex; gap: 8px; }
.pay-warn { color: var(--accent); }
.pay-tables .pay-table + .pay-table { margin-top: 18px; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.pay-table th, .pay-table td { padding: 8px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay-table thead th { background: #2e2e2e; color: #ffffff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; text-align: center; border-color: #444; }
.pay-table thead th.pay-group { background: #444; }
.pay-table .pay-name { text-align: left; white-space: normal; min-width: 180px; }
.pay-table .pay-name small { display: block; color: var(--muted); font-size: 0.78rem; }
.pay-table thead .pay-name { text-align: left; }
.pay-table td.pay-hi { color: var(--accent); font-weight: 700; }
.pay-table .pay-dates { text-align: left; white-space: normal; font-size: 0.85rem; }
.pay-table .pay-gross { background: #fff7e0; }
.pay-table thead .pay-gross { background: var(--accent); }
.pay-table tfoot th, .pay-table tfoot td { background: #f3f1ee; font-weight: 700; }
.pay-wo-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-wo label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); cursor: pointer; }
.pay-wo.on label { border-color: #2d7a1b; background: #eef8ea; }
.pay-wo input[type=checkbox] { appearance: auto; -webkit-appearance: checkbox; width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: #2d7a1b; }
.pay-wo-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.pay-wo label { justify-content: center; min-height: 48px; }
/* Size picker of the order form (Vašek, 3 Dec 2026). */
.size-dialog { width: min(440px, 92vw); }
.size-list { display: grid; gap: 8px; padding: 0 16px 16px; }
.size-option { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-size: 1.05rem; cursor: pointer; text-align: left; }
.size-option:hover, .size-option:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -2px; }
.size-option span { font-weight: 700; }
.otile-sizes { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
/* Cart line: the whole name over two lines, the EAN under it, the price once (Vašek, 3 Dec 2026). */
table.cart td.cart-name { align-items: flex-start; }
.cart-name-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; gap: 2px; }
.cart-name-text textarea[data-field="name"] { width: 100%; min-height: 44px; height: auto; resize: none; padding: 6px 8px; font: inherit; font-weight: 600; line-height: 1.3; overflow: hidden; field-sizing: content; }
.cart-code { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.02em; }
.cart-line { white-space: nowrap; font-weight: 700; }
.size-dialog:focus { outline: none; }
@media (max-width: 760px) { table.cart tr.cart-row > td:first-child > .cart-name-text { flex: 1 1 0; min-width: 0; } }
table.cart { width: 100%; }
table.cart td.cart-name { width: 100%; }
.cart-code { white-space: nowrap; }
/* Cart lines in fixed columns (Vašek, 3 Dec 2026: the fields must not jump around). */
table.cart { width: 100%; table-layout: fixed; border-collapse: collapse; }
table.cart tr.cart-row > td { vertical-align: top; padding: 10px 6px; border-bottom: 1px solid var(--line); }
table.cart td.cart-qty-cell { width: 44px; font-weight: 700; font-size: 1.05rem; padding-top: 12px; }
table.cart td.cart-name { width: auto; }
@media (min-width: 761px) { table.cart tr.cart-row > td.cart-qty-cell, table.cart tr.cart-row > td.cart-name { display: table-cell; } }
table.cart td.cart-money { width: 120px; text-align: right; }
table.cart td.cart-buttons { width: 190px; text-align: right; white-space: nowrap; }
.cart-name-text textarea[data-field="name"] { border: 1px solid transparent; background: transparent; padding: 2px 4px; min-height: 0; font-size: 1rem; }
.cart-name-text textarea[data-field="name"]:hover, .cart-name-text textarea[data-field="name"]:focus { border-color: var(--line); background: #ffffff; }
.cart-code { padding-left: 5px; }
.cart-money .cart-line { display: block; font-size: 1.1rem; padding-top: 2px; }
.cart-money .cart-unit { display: block; color: var(--muted); font-size: 0.8rem; }
.cart-money .cart-price { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 4px; font-size: 0.8rem; }
.cart-money .cart-price input { width: 72px; }
.link-btn { border: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0 4px; }
@media (max-width: 760px) {
  table.cart tr.cart-row { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "qty name money" "buttons buttons buttons"; }
  table.cart tr.cart-row > td.cart-qty-cell { display: block; grid-area: qty; }
  table.cart tr.cart-row > td.cart-name { grid-area: name; }
  table.cart tr.cart-row > td.cart-money { grid-area: money; width: auto; }
  table.cart tr.cart-row > td.cart-buttons { grid-area: buttons; width: auto; }
}
.cart-money .cart-line { width: auto; }
table.cart td.cart-buttons { width: 230px; }
table.cart td.cart-buttons .link-danger { margin-left: 0; }
.cart-name-text textarea[data-field="name"] { font-weight: 600; }
.cart-code { font-size: 0.8rem; }
.cart-money .cart-price { flex-wrap: wrap; }
table.cart td.cart-buttons { width: 130px; }
.cart-remove { width: 30px; height: 30px; margin-left: 6px; border: 0; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: 1rem; cursor: pointer; }
.cart-remove:hover { background: var(--bad); color: #ffffff; }
@media (max-width: 760px) { .cart-remove { width: 44px; height: 44px; } }
/* Cart lines numbered and striped grey/white; the cross apart from + − (Vašek, 3 Dec 2026). */
table.cart > tbody { counter-reset: cart-line; }
table.cart tr.cart-row { counter-increment: cart-line; }
table.cart tr.cart-row > td.cart-qty-cell::before { content: counter(cart-line) "."; display: inline-block; min-width: 26px; color: var(--muted); font-weight: 600; }
table.cart td.cart-qty-cell { width: 70px; }
table.cart tr.cart-row:nth-child(odd) > td { background: #ffffff; }
table.cart tr.cart-row:nth-child(even) > td { background: #f1f1f1; }
table.cart td.cart-buttons { width: 150px; }
.cart-remove { margin-left: 22px; }
/* Rozpis: print on A4, copy last month (Vašek, 3 Dec 2026). */
.plan-view .page-intro { grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; }
.plan-print { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); background: #ffffff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.plan-print:hover { background: var(--ink); color: #ffffff; }
.plan-print-title { display: none; }
.plan-copy { margin: 0; }
@media print {
  @page { size: A4 portrait; margin: 8mm; }
  body { background: #ffffff !important; }
  header.top, footer, .page-intro, .plan-branches, .plan-tools, .plan-people, .plan-add-grid, .plan-dialog, #new-order-alert, .flash, .plan-unlocked, .pc-flag, .plan-add, .sf-toolbar { display: none !important; }
  .plan-print-title { display: block; margin: 0 0 3mm; font-size: 14pt; }
  .plan-wrap { overflow: visible !important; }
  .plan-table { font-size: 7.5pt; width: 100%; }
  .plan-table th, .plan-table td { min-width: 0 !important; }
  .plan-table thead th { padding: 3px 2px !important; font-size: 7.5pt !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .plan-table .plan-day { padding: 1px 4px !important; }
  .plan-table .plan-date { font-size: 7.5pt; }
  .plan-weekday, .plan-nameday { font-size: 6.5pt !important; }
  .plan-cell { height: auto !important; }
  .plan-btn { min-height: 0 !important; padding: 1px !important; }
  .plan-cell .plan-kind { font-size: 7pt; }
  .plan-cell small { font-size: 6pt; }
  .plan-table tr { break-inside: avoid; }
  .plan-table tr.weekend td, .plan-table tr.holiday td, .plan-cell.k-D, .plan-cell.k-N, .plan-sums-row th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .plan-sums-row .plan-gap td { height: 4px; }
  .plan-sum-card { padding: 3px 5px !important; border-top-width: 2px !important; }
  .plan-sum-total strong { font-size: 10pt !important; }
  .plan-sum-card dl { font-size: 6.5pt !important; gap: 0 6px !important; }
}
@media print {
  .plan-table tfoot { display: table-row-group; }
  .plan-cell .plan-kind, .plan-cell .plan-time-range { display: inline !important; font-size: 7pt; }
  .plan-cell .plan-kind::after { content: ' '; }
  .plan-cell small, .plan-nameday { display: none !important; }
  .plan-cell .pc { display: block !important; min-height: 0 !important; padding: 0 !important; }
  .plan-cell .pc-side { display: none !important; }
  .plan-table .plan-date, .plan-weekday { display: inline !important; }
  .plan-table .plan-date::after { content: ' '; }
  .plan-table td, .plan-table th { line-height: 1.15; }
  .plan-btn { line-height: 1.15; }
  .plan-table thead th { padding: 2px !important; }
  .plan-table .pph-load { margin-top: 1px !important; padding: 0 4px !important; }
}
/* Order form: prices in the tiles not bold, the search field without the red tint (Vašek, 3 Dec 2026). */
.order-form .tiles-prices .price-chip, .order-form .otile-price { font-weight: 400; }
.order-form .tile-search-row { background: transparent; }
.order-form .tile-search-row .tile-search { border: 1px solid #cfcac2; }
.order-form .tile-search-row .tile-search:focus { border-color: var(--ink); outline: none; }
/* The customer's note from the web: a row across the address fields (Vašek, 3 Dec 2026). */
.pairs > .customer-note-label { font-weight: 600; font-size: 1.1rem; align-self: start; padding-top: 10px; line-height: 1.2; }
.pairs > .customer-note { grid-column: 2 / -1; margin: 0; padding: 10px 14px; background: #fff4d6; border-left: 4px solid #e0a100; font-size: 1.05rem; line-height: 1.4; white-space: pre-line; }
@media (max-width: 760px) { .pairs > .customer-note { grid-column: 1 / -1; } }
/* Recipient: "Rozvážíme…" in the heading, a compact green tag (Vašek, 3 Dec 2026). */
.block-head .addr-area-head { margin: 0 0 0 auto; padding: 6px 12px; font-size: 0.95rem; font-weight: 600; border: 1px solid currentColor; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block-head .addr-area-head.ok { background: #e8f5e9; color: #1b6e2a; }
.block-head .addr-area-head.miss { background: #fdecea; color: #b3261e; }

/* ==== Pokladna (the till admin, templates/intranet/till/*) ==== */
.till-subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.till-subnav-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.till-subnav-row a { padding: 9px 14px; font-size: 0.88rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.till-subnav-row a:hover { color: var(--ink); }
.till-subnav-row a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.till-view { display: grid; gap: 16px; }
.till-view .card { min-width: 0; }
.till-subtitle { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.till-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.till-grid > div { display: grid; gap: 16px; min-width: 0; }
.till-grid-57 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.till-grid-75 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .till-grid, .till-grid-57, .till-grid-75 { grid-template-columns: minmax(0, 1fr); } .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.till-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.till-filters label { display: grid; gap: 4px; font-size: 0.78rem; font-weight: 600; color: var(--muted); flex: 1 1 150px; }
.till-filters label.narrow { flex: 0 1 100px; }
.till-filters label.wide { flex: 2 1 260px; }
.till-filters input, .till-filters select { width: 100%; }
.till-filter-buttons { display: flex; gap: 8px; }
.till-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; border: 0; padding: 0; margin: 0; flex: 2 1 260px; }
.till-checks legend { font-size: 0.78rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 4px; }
.till-check { display: inline-flex; gap: 6px; align-items: center; font-size: 0.9rem; font-weight: 500; color: var(--ink); }
.till-stats-filters { display: grid; gap: 12px; }
.till-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.till-table td.num, .till-table th.num { text-align: right; white-space: nowrap; }
.till-table th a { color: inherit; text-decoration: none; }
.till-table th.till-sorted { color: var(--ink); }
.till-table .center { text-align: center; }
.till-table .nowrap { white-space: nowrap; }
.till-table .strong, .till-view .strong { font-weight: 700; }
.till-table .div { border-right: 1px solid var(--line); }
.till-table tr.groups th { text-align: center; border-bottom: 1px solid var(--line); }
.till-table tfoot td { font-weight: 700; border-top: 1.5px solid var(--ink); }
.till-table.compact td { padding: 4px 8px; }
.till-table tr.group-end td { border-bottom: 1.5px solid var(--ink); }
.till-table.plain td { padding: 6px 8px; }
.till-empty { text-align: center; color: var(--muted); padding: 24px 8px; }
.till-actions { white-space: nowrap; text-align: right; }
.till-actions form.inline { display: inline; }
.till-shop { white-space: nowrap; font-weight: 600; }
.till-field { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.till-field span { color: var(--muted); }
.till-field strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.till-field.total strong { font-size: 1.15rem; font-weight: 700; }
.till-change { white-space: nowrap; font-weight: 600; }
.till-change.up { color: var(--good); }
.till-change.down { color: var(--bad); }
.till-last-bill { display: block; font-size: 0.74rem; font-weight: 500; color: var(--muted); }
.till-last-bill.old { color: var(--bad); font-weight: 600; }
.till-muted { color: var(--muted); }
.till-bad { color: var(--bad); }
.till-switch input { width: 2.4em; height: 1.3em; accent-color: var(--accent); cursor: pointer; }
.till-tile .val { font-size: 1.55rem; }
.till-revenue .till-compact { display: none; list-style: none; margin: 0; padding: 0; }
.till-revenue .till-more { display: none; }
@media (max-width: 640px) {
  .till-revenue .till-compact { display: grid; gap: 0; }
  .till-revenue .till-compact li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .till-revenue .till-compact li.sum { font-weight: 700; border-top: 1.5px solid var(--ink); }
  .till-revenue .till-compact .total { font-weight: 700; text-align: right; }
  .till-revenue .till-compact .meta { grid-column: 1 / -1; font-size: 0.8rem; color: var(--muted); }
  .till-revenue .till-wide { display: none; }
  .till-revenue .till-more { display: block; margin-top: 8px; }
}
.till-section { font-size: 1.25rem; margin: 12px 0 0; }
.till-section .till-subtitle { font-size: 0.85rem; }
.till-chart { position: relative; height: 260px; }
.till-chart.tall { height: 340px; }
.till-heatmap { font-size: 0.8rem; }
.till-heatmap td { padding: 6px 4px; border: 1px solid #fff; color: var(--ink); }
.till-heatmap th.day { text-transform: none; letter-spacing: 0; font-size: 0.8rem; color: var(--ink); white-space: nowrap; }
.till-heatmap .sum { font-weight: 700; background: var(--surface-2); }
.till-heatmap .date { display: block; font-size: 0.68rem; color: var(--muted); }
.till-legend { padding-top: 8px; }
.till-resend .copy-row { display: flex; gap: 8px; }
.till-resend .copy-row input { flex: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ==== /Pokladna ==== */
