@font-face { font-family: "Mona Sans"; src: url(/fonts/mona-sans-latin.woff2) format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Mona Sans"; src: url(/fonts/mona-sans-latin-ext.woff2) format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }

:root {
  color-scheme: light dark;
  --frame: light-dark(#262350, #0e0d1b);
  --frame-hi: light-dark(#38346d, #201e38);
  --frame-text: #c6c4e2;
  --gold: #cdbb62;
  --gold-text: light-dark(#75671f, #d8c873);
  --sheet: light-dark(#fff, #181728);
  --sunk: light-dark(#f3f4fa, #201f34);
  --raise: light-dark(#fff, #26253d);
  --line: light-dark(#e2e3ee, #313049);
  --edge: light-dark(#8b8da8, #6c6b8c);
  --text: light-dark(#201e3a, #eae9f6);
  --soft: light-dark(#5d5e7b, #a5a4c2);
  --link: light-dark(#453fa3, #b4b0fa);
  --fill: light-dark(#453fa3, #5d56c8);
  --fill-hi: light-dark(#373185, #6a63d2);
  --series: light-dark(#6a64bd, #8680dc);
  --water: light-dark(#13808f, #4fc0cf);
  --ok: light-dark(#17693f, #74d3a2); --ok-bg: light-dark(#dcf3e6, #16372a);
  --bad: light-dark(#ad1f30, #ff979e); --bad-bg: light-dark(#fce4e6, #471a22);
  --warn: light-dark(#7d5200, #f0c068); --warn-bg: light-dark(#fbeed0, #3d2e10);
  --info-bg: light-dark(#e9e8f8, #2f2d52);
  --pad: clamp(16px, 2.6vw, 36px);
  font: 440 14px/1.5 "Mona Sans", "Segoe UI", system-ui, sans-serif;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--frame); color: var(--text); font-variant-numeric: tabular-nums; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
h1 { font-size: 27px; line-height: 1.2; font-weight: 680; font-stretch: 112%; letter-spacing: -.015em; overflow-wrap: anywhere; font-variant-numeric: normal; }
h2 { font-size: 17px; line-height: 1.3; font-weight: 650; font-stretch: 106%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
a:hover { text-decoration-color: currentColor; }
small { font-size: 12.5px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
main:focus { outline: 0; }
.topbar :focus-visible, .rail :focus-visible, .dock :focus-visible { outline-color: var(--gold); }
.icon { width: 18px; height: 18px; flex: none; }
.soft { color: var(--soft); } .ok { color: var(--ok); } .bad { color: var(--bad); }
.r { text-align: right; } .nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 50; background: var(--sheet); padding: 8px 12px; border-radius: 6px; }
kbd { font: inherit; font-size: 12px; padding: 0 6px; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 4px; white-space: nowrap; }

/* Rám: lišta a navigace tvoří tmavý okraj, obsah je jeden list */
.shell { display: grid; grid-template: 60px minmax(0, 1fr) / 232px minmax(0, 1fr); height: 100dvh; }
.topbar { grid-column: 1 / -1; display: grid; grid-template-columns: 232px minmax(0, 1fr) auto; align-items: center; padding-right: 16px; color: var(--frame-text); }
.brand { color: #fff; text-decoration: none; font-size: 26px; font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; padding-left: 22px; }
.brand b { color: var(--gold); font-weight: inherit; }
.ask { display: flex; align-items: center; gap: 10px; width: min(520px, 100%); height: 40px; padding: 0 12px; border-radius: 10px; background: var(--frame-hi); color: var(--frame-text); text-decoration: none; }
.ask:hover { color: #fff; } .ask span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-end { grid-column: 3; display: flex; gap: 8px; align-items: center; padding-left: 12px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; }
.icon-btn:hover { background: var(--frame-hi); color: #fff; }
.account { position: relative; } .account summary { list-style: none; cursor: pointer; border-radius: 50%; } .account summary::-webkit-details-marker { display: none; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #262350; font-size: 13px; font-weight: 700; }
.account-menu { position: absolute; right: 0; top: 46px; z-index: 30; width: 250px; padding: 8px; border-radius: 12px; background: var(--raise); color: var(--text); border: 1px solid var(--line); box-shadow: 0 12px 36px #0c0a2440; }
.account-menu > div { display: grid; padding: 8px 10px 12px; overflow-wrap: anywhere; }
.account-menu a, .account-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.account-menu a:hover, .account-menu button:hover { background: var(--sunk); }
.topbar .account-menu :focus-visible { outline-color: var(--link); }
.rail { overflow-y: auto; padding: 6px 12px 20px; display: flex; flex-direction: column; gap: 18px; color: var(--frame-text); scrollbar-width: thin; scrollbar-color: #ffffff30 transparent; }
.rail-group { display: grid; gap: 2px; } .rail-title { padding: 0 10px 4px; font-size: 12.5px; color: color-mix(in srgb, var(--frame-text) 78%, transparent); }
.rail a { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-weight: 500; }
.rail a:hover { background: var(--frame-hi); color: #fff; }
.rail a[aria-current] { background: var(--frame-hi); color: #fff; font-weight: 600; } .rail a[aria-current] .icon { color: var(--gold); }
.sheet { background: var(--sheet); border-top-left-radius: 20px; padding: 28px var(--pad) 40px; min-width: 0; overflow: hidden auto; }
.dock { display: none; }

/* Stránka */
.head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; }
.head h1 { margin-right: auto; } .head .back { flex-basis: 100%; margin-bottom: -4px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--soft); text-decoration: none; } .back:hover { color: var(--link); } .back .icon { width: 15px; height: 15px; }
.stack { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.cols { display: grid; gap: 32px clamp(28px, 4vw, 64px); grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.cols.even { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); }
.panel > h2, .section-head { margin-bottom: 14px; }
.section-head { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: space-between; }
.stack > .panel + .panel { border-top: 1px solid var(--line); padding-top: 28px; }
details.panel summary { cursor: pointer; }

/* Ovládací prvky */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 580; color: var(--text); background: var(--raise); border: 1px solid color-mix(in srgb, var(--edge) 55%, transparent); border-radius: 9px; padding: 6px 14px; min-height: 38px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--sunk); border-color: var(--edge); } .btn:active { transform: translateY(1px); }
.btn.main { background: var(--fill); border-color: transparent; color: #fff; } .btn.main:hover { background: var(--fill-hi); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn[aria-disabled], .btn:disabled { opacity: .45; pointer-events: none; }
.btn.s { min-height: 30px; padding: 1px 10px; font-size: 13px; border-radius: 7px; }
td .btn.s { border-color: transparent; background: transparent; color: var(--link); } td .btn.s.danger { color: var(--bad); } td .btn.s:hover { background: var(--info-bg); } td .btn.s.danger:hover { background: var(--bad-bg); }
input, select, textarea { font: inherit; color: inherit; background-color: var(--raise); border: 1px solid var(--edge); border-radius: 9px; padding: 6px 12px; min-height: 40px; width: 100%; }
::placeholder { color: var(--soft); opacity: 1; }
input:hover, select:hover { border-color: var(--soft); }
input:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--link) 35%, transparent); outline-offset: 0; border-color: var(--link); }
input:disabled, select:disabled { opacity: .5; }
input[type=checkbox] { appearance: none; width: 38px; height: 22px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 11px; background: var(--edge); flex: none; cursor: pointer; position: relative; transition: background .15s; }
input[type=checkbox]::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: translate .15s; }
input[type=checkbox]:checked { background: var(--fill); } input[type=checkbox]:checked::after { translate: 16px 0; }
@media (forced-colors: active) { input[type=checkbox] { appearance: auto; } input[type=checkbox]::after { display: none; } }
.input-validation-error { border-color: var(--bad); }
.field-validation-error, .validation-summary-errors { color: var(--bad); font-size: 13px; }
.validation-summary-errors { background: var(--bad-bg); padding: 10px 14px; border-radius: 9px; grid-column: 1 / -1; } .validation-summary-errors ul { list-style: none; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; max-width: 760px; align-items: start; }
.form > label, .form > div { display: grid; gap: 5px; align-content: start; }
.form > .validation-summary-valid { display: none; }
.form label > span:first-child { font-weight: 580; }
.form .wide, .form .actions, .form > h2 { grid-column: 1 / -1; }
.form > h2 { margin: 0; padding-top: 22px; border-top: 1px solid var(--line); } .form > h2:first-of-type { padding-top: 0; border: 0; } .form.late > h2:first-of-type { padding-top: 22px; border-top: 1px solid var(--line); }
.form .check { display: flex; gap: 10px; align-items: center; min-height: 40px; align-self: end; cursor: pointer; } .form .check span { font-weight: 450 !important; }
.form:has(> h2) > .actions { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; }
/* Viditelná centra: rámeček s přidanými a okno s výběrem */
.box { list-style: none; border: 1px solid var(--line); border-radius: 12px; max-width: 760px; overflow: hidden; } .box.empty { padding: 28px 24px; border-style: dashed; border-color: var(--edge); }
.box li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px; } .box li + li { border-top: 1px solid var(--line); }
.box strong, .choices strong { font-weight: 580; } .box small, .choices small { display: block; } .box .btn.s { border-color: transparent; background: none; } .box .btn.s:hover { background: var(--bad-bg); }
#centra .section-head { max-width: 760px; align-items: center; }
.window { width: min(520px, calc(100vw - 32px)); } .window form, .window-body { display: grid; gap: 14px; } .window-body p { margin: 0; } .own { display: grid; gap: 5px; } .own span { font-weight: 580; } .window form { display: grid; gap: 14px; }
.choices { max-height: min(46vh, 420px); overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; } .choices p { padding: 14px; margin: 0; }
.choices label { display: flex; gap: 14px; align-items: center; padding: 9px 14px; cursor: pointer; } .choices label[hidden] { display: none; } .choices label + label { border-top: 1px solid var(--line); } .choices label:hover { background: var(--sunk); } .choices label:has(:checked) { background: var(--info-bg); }
.owner-find { display: flex; gap: 8px; } #owners { display: grid; gap: 6px; } #owners p { font-size: 13px; }
/* Seznam ukazuje dva řádky, přepínač pod ním ho zvětší */
.assign { max-width: none; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.pick { max-height: 82px; } .assign:has(#owner-all:checked) .pick { max-height: 300px; }
.pick { overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; } .pick:empty { display: none; }
.pick label { display: flex; gap: 2px 10px; align-items: center; padding: 8px 12px; cursor: pointer; } .pick label + label { border-top: 1px solid var(--line); } .pick label:hover { background: var(--sunk); } .pick label:has(:checked) { background: var(--info-bg); }
.pick input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--fill); } .pick small { flex: 1; min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form .pick label > span { font-weight: 520; }
.actions { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.filters input[type=search] { width: 320px; } .filters select { width: auto; max-width: 240px; }
input[type=search] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f80a0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20.5 20.5-4.5-4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 11px 50%; background-size: 17px; padding-left: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.chips a { padding: 5px 13px; border-radius: 18px; text-decoration: none; color: var(--soft); font-weight: 520; }
.chips a:hover { color: var(--text); background: var(--sunk); } .chips a[aria-current] { background: var(--info-bg); color: var(--link); font-weight: 620; }

/* Tabulky jdou od okraje k okraji listu */
.table { margin-inline: calc(var(--pad) * -1); overflow: auto; border-block: 1px solid var(--line); }
table { border-collapse: separate; border-spacing: 0; width: 100%; }
th, td { text-align: left; padding: 6px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; } td { height: 44px; }
.table th:first-child, .table td:first-child { padding-left: var(--pad); } .table th:last-child, .table td:last-child { padding-right: var(--pad); }
th { position: sticky; top: 0; z-index: 1; background: var(--sunk); color: var(--soft); font-weight: 560; font-size: 13px; white-space: nowrap; height: 38px; }
.panel th { position: static; background: none; }
.table:not(.free) { max-height: max(340px, calc(100dvh - 290px)); } .chips ~ #list .table, .tabs ~ #list .table { max-height: max(340px, calc(100dvh - 350px)); }
th a { color: inherit; text-decoration: none; display: block; } th a:hover { color: var(--text); }
th[aria-sort] { color: var(--link); } th[aria-sort=ascending] a::after { content: " ↑"; } th[aria-sort=descending] a::after { content: " ↓"; }
th.r, td.r { text-align: right; }
tbody tr { content-visibility: auto; contain-intrinsic-size: auto 45px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover > td { background: var(--sunk); } tr[data-href] { cursor: pointer; } tbody tr.last > td { background: var(--info-bg); }
.table tr > td:has(+ td > .dev), .table tr > td:has(> .dev) + td { white-space: nowrap; }
.table td.act { position: sticky; right: 0; background: var(--sheet); } td.act { white-space: nowrap; text-align: right; } td.act form { display: inline; }
td.json { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--soft); }
td > a:not(.uid, .btn) { font-weight: 580; text-decoration: none; } td > a:not(.uid, .btn):hover { text-decoration: underline; }
.empty { padding: 52px 24px; color: var(--soft); text-align: center; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; color: var(--soft); } .pager > span:first-child { margin-right: auto; }

/* Strany doplňované při posouvání. Pozici drží skript, prohlížeč by ji posunul podruhé. */
.table[data-pages], .sheet:has(.table[data-pages]) { overflow-anchor: none; }
.more { padding: 12px var(--pad); } .more:empty { display: none; }
@media (min-width: 821px) { .table[data-pages] tbody:not(:last-child) > tr:last-child > td { border-bottom: 1px solid var(--line); } }

/* UID jako malá karta se zkoseným rohem, pruh rozlišuje DESFire a Mifare */
.uid { font-variant-numeric: normal; display: inline-block; background: linear-gradient(90deg, #8288ac 5px, var(--info-bg) 5px); color: var(--text); text-decoration: none; font-weight: 620; letter-spacing: .02em; padding: 2px 13px; border-radius: 4px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); white-space: nowrap; }
.uid.des { background: linear-gradient(90deg, var(--gold) 5px, var(--info-bg) 5px); }
.uid:hover { color: var(--link); } .uid:focus-visible { clip-path: none; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 6px; background: var(--info-bg); white-space: nowrap; font-size: 13px; font-weight: 540; }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.bad { background: var(--bad-bg); color: var(--bad); } .tag.warn { background: var(--warn-bg); color: var(--warn); }
.dev { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; } .dev::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--edge); } .dev small { color: var(--soft); }
.dev.rwc::before { background: var(--water); } .dev.mcm::before { background: var(--gold); } .dev.test::before { background: #c9505a; }
.star { background: none; border: 0; font-size: 18px; line-height: 1; min-width: 32px; min-height: 32px; cursor: pointer; color: light-dark(#b4b6cc, #57567a); border-radius: 8px; } .star:hover { background: var(--info-bg); } .star.on { color: light-dark(#a8912a, #d8c873); }

/* Vysvětlivka po najetí myší */
.ctr { cursor: help; } .dev[data-tip] { cursor: help; } .dev[data-tip] > span { text-decoration: underline dotted color-mix(in srgb, currentColor 55%, transparent); text-underline-offset: 4px; }
#tip { position: fixed; inset: auto; margin: 0; border: 0; max-width: min(340px, calc(100vw - 24px)); padding: 9px 13px; border-radius: 9px; background: light-dark(#201e3a, #eeedf8); color: light-dark(#fff, #1a1830); font-size: 13px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; pointer-events: none; box-shadow: 0 8px 26px #0c0a2440; }
.notes { display: grid; gap: 14px; max-width: 900px; } .note { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 16px; align-items: center; } .note .btn.s { border-color: transparent; background: none; } .note .btn.s:hover { background: var(--bad-bg); } .notes textarea { resize: vertical; min-height: 58px; }
@media (max-width: 820px) { .note { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; } .note textarea { grid-area: 2 / 1 / 3 / -1; } .notes textarea { font-size: 16px; } }

/* Přehled: boxy po centrech */
.bays { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.bay { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bay strong { font-weight: 650; font-stretch: 106%; overflow-wrap: anywhere; }
.bay-row { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.bay-row li { position: relative; min-width: 48px; padding: 4px 8px 5px; border-radius: 6px; background: color-mix(in srgb, var(--water) 15%, transparent); border-bottom: 3px solid var(--water); line-height: 1.25; text-align: center; font-size: 12.5px; }
.bay-row b { display: block; font-size: 16px; font-weight: 680; }
.bay-row li.off { background: var(--bad-bg); border-bottom: 3px dashed var(--bad); color: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--soft); }
.chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; height: 250px; }
.chart > div { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 6px; text-align: center; font-size: 12px; color: var(--soft); min-width: 0; white-space: nowrap; }
.chart .col { display: flex; flex-direction: column; justify-content: flex-end; color: var(--text); border-bottom: 1px solid var(--edge); }
.chart .col i { display: block; background: var(--series); border-radius: 4px 4px 0 0; } .chart > div:hover i { background: var(--link); } .chart .now .col i { background: var(--gold); }
.chart.month { height: 190px; gap: 3px; }
.list { list-style: none; display: grid; } .list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); } .list li:last-child { border: 0; } .list a[aria-current] { font-weight: 680; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 28px; }
.facts dt { color: var(--soft); font-size: 13px; } .facts dd { font-size: 15px; } .facts .big { font-size: 30px; font-weight: 680; font-stretch: 110%; letter-spacing: -.015em; line-height: 1.2; white-space: nowrap; }
.strip { display: flex; flex-wrap: wrap; gap: 12px 44px; padding-top: 24px; border-top: 1px solid var(--line); } .strip dt { color: var(--soft); font-size: 13px; } .strip dd { font-size: 20px; font-weight: 650; font-stretch: 106%; }
.mix { display: grid; gap: 10px; } .mix > div { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(104px, auto); gap: 4px 12px; align-items: center; } .mix .soft { text-align: right; white-space: nowrap; } .mix strong { white-space: nowrap; text-align: right; font-weight: 600; }
.bar { display: block; height: 8px; background: var(--line); min-width: 60px; border-radius: 4px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--series); }

/* Detail karty */
.hero { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 30px; }
.plastic { aspect-ratio: 1.586; border-radius: 18px; background: linear-gradient(135deg, #4b4594, #262350); color: #fff; padding: 22px 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; box-shadow: 0 14px 32px -12px #1a174699; }
.plastic::after { content: ""; position: absolute; right: -110px; bottom: -130px; width: 250px; height: 250px; border: 38px solid var(--gold); border-radius: 50%; }
.plastic > * { position: relative; z-index: 1; } .plastic .top { display: flex; justify-content: space-between; font-weight: 600; }
.chip { width: 42px; height: 31px; margin-top: 18px; border-radius: 6px; background: linear-gradient(90deg, transparent 32%, #26235066 32% 35%, transparent 35% 65%, #26235066 65% 68%, transparent 68%), linear-gradient(transparent 48%, #26235066 48% 52%, transparent 52%), var(--gold); }
.plastic .num { font-variant-numeric: normal; font-size: 22px; font-weight: 650; font-stretch: 112%; letter-spacing: .05em; margin-top: auto; overflow-wrap: anywhere; } .plastic .name { font-size: 15px; min-height: 22px; max-width: 58%; }
.tabs { display: flex; gap: 4px; overflow: auto hidden; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 calc(var(--pad) * -1) 20px; padding-inline: calc(var(--pad) - 12px); }
.tabs a { padding: 10px 12px; text-decoration: none; color: var(--soft); border-bottom: 3px solid transparent; white-space: nowrap; font-weight: 520; } .tabs a:hover { color: var(--text); } .tabs a[aria-current] { color: var(--text); font-weight: 650; border-color: var(--gold); } .tabs a:focus-visible { outline-offset: -3px; }
/* Odkaz na část karty posune stránku jen tak, aby záložky byly nejvýš v polovině obrazovky */
#cast { scroll-margin-top: 45vh; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px 16px; } .shots img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: var(--line); display: block; } .shots figcaption { font-size: 13px; color: var(--soft); padding-top: 6px; }

/* Účet */
.gate { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.gate-art { display: grid; place-items: center; padding: 32px; overflow: hidden; }
.gate-cards { position: relative; width: min(440px, 80%); rotate: -7deg; } .gate-cards .plastic { box-shadow: 0 24px 60px -16px #05041599; } .gate-cards .plastic.alt { position: absolute; inset: 0; background: var(--gold); rotate: 14deg; translate: 24px -34px; } .plastic.alt::after { border-color: #4b4594; }
.gate-main { background: var(--sheet); border-radius: 20px 0 0 20px; display: grid; place-items: center; padding: 32px 24px; }
.gate-box { width: min(380px, 100%); display: grid; gap: 20px; } .gate-box > .brand { padding: 0; color: var(--text); font-size: 36px; } .gate-box > .brand b { color: var(--gold-text); }
.gate-box .form { grid-template-columns: minmax(0, 1fr); } .gate-box .btn.main { min-height: 44px; } .gate-box input:not([type=checkbox]) { min-height: 44px; } .links { display: grid; gap: 6px; }
.qr { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; text-align: center; } .qr img { width: 100%; height: auto; image-rendering: pixelated; background: #fff; border-radius: 8px; }

/* Hlášky, potvrzení, rychlé hledání */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 40; max-width: min(420px, calc(100vw - 32px)); background: light-dark(#201e3a, #eeedf8); color: light-dark(#fff, #1a1830); border-radius: 12px; padding: 14px 18px 14px 36px; box-shadow: 0 12px 36px #0c0a2440; } .toast::before { content: ""; position: absolute; left: 16px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: #3fbf82; } .toast.err::before { background: #f0656c; border-radius: 1px; }
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--raise); color: var(--text); padding: 26px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 24px 70px #0c0a2466; } dialog::backdrop { background: #0f0d2599; } dialog p { margin: 8px 0 20px; }
#palette { width: min(620px, calc(100vw - 24px)); margin-top: 10vh; padding: 0; overflow: hidden; }
.palette-box { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--soft); } .palette-box input { border: 0; background: none; outline: 0 !important; min-height: 58px; padding: 0; font-size: 17px; color: var(--text); }
#palette-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
#palette-list a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; } #palette-list a span:last-child { margin-left: auto; color: var(--soft); text-align: right; } #palette-list a[aria-selected=true] { background: var(--info-bg); } #palette-list p { padding: 14px 12px; margin: 0; }
.palette-help { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); margin: 0 !important; color: var(--soft); font-size: 12.5px; }
/* Pod rozmazáním je jen výplň, skutečný klíč ve stránce není. */
.key-blur { display: inline-block; filter: blur(5px); user-select: none; -webkit-user-select: none; pointer-events: none; }
.code { font-family: Consolas, ui-monospace, monospace; overflow-wrap: anywhere; } pre.code { background: var(--sunk); padding: 16px; border-radius: 10px; margin: 12px 0 0; }
.busy { opacity: .55; }

@media (max-width: 1100px) and (min-width: 821px) {
  .shell { grid-template-columns: 64px minmax(0, 1fr); } .topbar { grid-template-columns: 118px minmax(0, 1fr) auto; }
  .rail a { justify-content: center; } .rail a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .rail-title { display: none; } .rail-group + .rail-group { border-top: 1px solid #ffffff24; padding-top: 14px; }
  .hero { grid-template-columns: 300px minmax(0, 1fr); } .hero .num { font-size: 18px; } .chart .opt { display: none; }
}
@media (max-width: 820px) {
  .shell { grid-template: 56px minmax(0, 1fr) auto / minmax(0, 1fr); }
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; padding-right: 10px; } .topbar .brand { padding-left: 16px; font-size: 24px; }
  .ask { width: 40px; padding: 0; justify-content: center; justify-self: end; background: none; } .ask span, .ask kbd { display: none; } .top-end { padding-left: 0; }
  .sheet { grid-area: 2 / 1; border-radius: 18px 18px 0 0; padding-top: 20px; }
  .dock { grid-row: 3; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--frame); padding: 4px 4px max(4px, env(safe-area-inset-bottom)); }
  .dock a, .dock button { display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border: 0; background: none; color: var(--frame-text); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; } .dock [aria-current] { color: #fff; font-weight: 620; } .dock [aria-current] .icon { color: var(--gold); }
  .rail { display: none; } .rail.open { display: flex; grid-area: 2 / 1; z-index: 20; background: var(--frame); padding: 12px 16px; } .rail.open a { padding: 11px 10px; }
  h1 { font-size: 23px; } .head h1 { flex-basis: 100%; }
  .cols, .cols.even, .hero { grid-template-columns: minmax(0, 1fr); } .plastic { max-width: 350px; width: 100%; }
  .form { grid-template-columns: minmax(0, 1fr); } .filters input:not([type=checkbox]) { width: 100% !important; } .filters select { flex: 1; min-width: 0; max-width: none; }
  #cast { scroll-margin-top: 0; }
  .pick label { flex-wrap: wrap; } .pick label > span { flex: 1; } .pick small { flex: 1 0 100%; text-align: left; padding-left: 28px; } .pick { max-height: 122px; }
  input, select { font-size: 16px; } .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); } .chips a { white-space: nowrap; }
  .sheet .table.table.table { max-height: none; } .chart .opt { display: none; } .chart.month > div > span { visibility: hidden; } .chart.month > div:nth-child(5n+1) > span { visibility: visible; width: 0; }
  .bays { grid-template-columns: minmax(0, 1fr); } .palette-help { display: none; } .toast { right: 16px; bottom: 80px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts .big { font-size: 22px; }
  .gate { grid-template-columns: minmax(0, 1fr); } .gate-art { display: none; } .gate-main { border-radius: 0; }
  /* Tabulka se skládá do záznamů pod sebou, popisky doplní app.js ze záhlaví */
  table.cards thead { display: none; } table.cards, table.cards tbody { display: block; }
  table.cards tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px var(--pad); border-bottom: 1px solid var(--line); contain-intrinsic-size: auto 220px; } .panel > table.cards tr { padding-inline: 0; }
  table.cards tr > td { display: flex; justify-content: flex-end; align-items: center; gap: 8px; position: static; padding: 3px 0; border: 0; height: auto; text-align: right; white-space: normal; overflow-wrap: anywhere; max-width: none; background: none; }
  .table table.cards td:first-child, .table table.cards td:last-child { padding-inline: 0; } table.cards tr:hover > td { background: none; }
  table.cards td[data-label]::before { content: attr(data-label); color: var(--soft); text-align: left; white-space: nowrap; flex: none; margin-right: auto; }
  table.cards tr > td:empty, table.cards tr > td[data-none], table.cards tr > td.json { display: none; } table.cards tr > td.act { justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .rail, .topbar, .dock, .head .btn, .filters, .chips, .tabs, .pager, .toast, td.act { display: none !important; } .shell { display: block; height: auto; } .sheet, .table { overflow: visible; max-height: none !important; padding: 0; } :root { color-scheme: light !important; } body { background: #fff; color: #000; } }

/* ---------- Blazor Bootstrap ----------
   Knihovna je ve vrstvě "bootstrap". Tady se jí předají barvy aplikace a srovnají místa, kde se názvy tříd potkávají. */
:root, [data-theme] { --bs-body-color: var(--text); --bs-body-bg: var(--sheet); --bs-border-color: var(--line); --bs-link-color-rgb: initial; }
body { font: inherit; line-height: inherit; color: var(--text); background: var(--frame); }
dt { font-weight: inherit; } kbd { color: inherit; background: none; } label { margin: 0; } small { font-weight: inherit; }
a { color: var(--link); } .rail a, .ask, .tabs a, .chips a, .account-menu a, th a { color: inherit; } .tabs a, .chips a { color: var(--soft); } .brand, .brand:hover { color: #fff; } .gate .brand, .gate .brand:hover { color: var(--text); }
.btn { --bs-btn-color: inherit; transition: none; } .btn.main { color: #fff; } .btn.danger { color: var(--bad); } td .btn.s { color: var(--link); } td .btn.s.danger, .box .btn.s.danger, .note .btn.s.danger { color: var(--bad); }
.toast { display: block; width: auto; border: 0; font-size: inherit; } .chart .col { flex: none; width: auto; max-width: none; padding: 0; }
.dock a { color: var(--frame-text); } .dock a[aria-current] { color: #fff; } .back { color: var(--soft); } .uid { color: var(--text); }
.table { margin-bottom: 0; } .table > table > * > tr { background: none; box-shadow: none; color: inherit; } .table > table > * { vertical-align: inherit; border: 0; }
tbody, td, tfoot, th, thead, tr { border-width: 0; } .table td, .table th, .panel td, .panel th { border-bottom: 1px solid var(--line); } .table tbody:last-child > tr:last-child > td, .panel tbody > tr:last-child > td { border-bottom: 0; }

/* Vrstvy: list je podklad, obsah leží na něm */
:root { --ground: light-dark(#f0f0f8, #11101f); --lift: 0 1px 2px #1a17470f, 0 6px 20px -12px #1a174733; }
.sheet { background: var(--ground); }
.table, .panel, .hero, .totals, .cols > section:not(.panel) { background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; }
.panel, .hero { padding: 22px 24px; box-shadow: var(--lift); } .stack { gap: 20px; } .cols { gap: 20px; }
.stack > .panel + .panel { border-top: 1px solid var(--line); padding-top: 22px; } .form.panel { max-width: 860px; }
.table { margin-inline: 0; box-shadow: var(--lift); --pad: 18px; } .table th { height: 42px; }
.filters input[type=search], .filters select { background-color: var(--sheet); } .btn:not(.main, .s) { background: var(--sheet); } .btn:not(.main, .s):hover { background: var(--info-bg); border-color: var(--link); }
.btn.main { box-shadow: 0 4px 12px -6px var(--fill); }
.head h1 { font-size: 30px; } .section-head h2 { font-size: 19px; }
.tabs { border: 0; margin: 0 0 16px; padding: 4px; gap: 2px; background: var(--sheet); border: 1px solid var(--line); border-radius: 13px; width: fit-content; max-width: 100%; }
.tabs a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 0; border-radius: 9px; } .tabs a:hover { background: var(--sunk); } .tabs a[aria-current] { background: var(--info-bg); color: var(--link); }
.chips a { border: 1px solid transparent; } .chips a:hover { background: var(--sheet); } .chips a[aria-current] { background: var(--fill); color: #fff; }
.empty:not(.box) { padding-block: 60px; } .notes > .box.empty { background: var(--sheet); }
.note { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; } .box { background: var(--sheet); }
.pick, .choices { background: var(--raise); }
.gate-main { background: var(--sheet); }

/* Součty: jeden pás, ne samostatné dlaždice */
.totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); overflow: hidden; box-shadow: var(--lift); }
.totals > div { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 11px; align-items: center; padding: 18px 16px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.totals > div > i { grid-row: 1 / 3; font-size: 22px; color: var(--link); line-height: 1; } .totals dt { color: var(--soft); font-size: 13px; white-space: nowrap; } .totals dd { font-size: 22px; line-height: 1.2; font-weight: 680; font-stretch: 108%; letter-spacing: -.01em; white-space: nowrap; }
.totals.big dd { font-size: 28px; }

/* Snímky: ikona a okno */
.shot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--link); background: var(--info-bg); text-decoration: none; vertical-align: middle; } .shot:hover { background: var(--fill); color: #fff; } td > a.shot:hover { text-decoration: none; }
.shots figcaption form { margin-top: 6px; } .shots figcaption .btn.s { color: var(--bad); }
#viewer { width: fit-content; min-width: min(420px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; } #viewer[open] { display: flex; flex-direction: column; }
#viewer header { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; } #viewer h2 { margin-right: auto; font-size: 16px; overflow-wrap: anywhere; } #viewer .icon-btn { flex: none; } #viewer .icon-btn:hover { background: var(--info-bg); color: var(--link); }
.viewer-body { display: grid; place-items: center; min-height: 160px; background: var(--sunk); overflow: hidden; } .viewer-body img { display: block; max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; } .viewer-body img:not([src]) { display: none; } .viewer-body p { margin: 24px; } .viewer-body p:empty { display: none; }

/* Zákaznická karta: údaje jsou v místech, kde na obrázku není nápis ani logo */
.plastic.customer { container-type: inline-size; aspect-ratio: 1341 / 879; padding: 0; background: #c98a1b url(/images/zakaznicka-karta.jpg) center / cover; }
.plastic.customer::after { display: none; } .plastic.customer .top { position: absolute; inset: 3cqw 3.2cqw auto; gap: 8px; font-size: max(11px, 3.6cqw); line-height: 1.3; }
.plastic.customer .top span:not(.ctr) { padding: 1px 9px; border-radius: 6px; background: #262350d9; color: #fff; } .plastic.customer .top span:empty { display: none; } .plastic.customer .top span:last-child:not(.ctr) { margin-left: auto; }
.plastic.customer .num, .plastic.customer .name { position: absolute; right: 4cqw; max-width: 50cqw; margin: 0; text-align: right; color: #201e3a; }
.plastic.customer .num { bottom: 9.6cqw; max-width: none; padding: .12em .5em; border-radius: 6px; background: #262350d9; color: #fff; font-size: clamp(3.1cqw, calc(64cqw / var(--n)), 5.2cqw); line-height: 1.25; letter-spacing: 0; white-space: nowrap; overflow-wrap: normal; } .plastic.customer .name { bottom: 3cqw; min-height: 0; font-size: max(11px, 3.9cqw); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
@media (forced-colors: active) { .plastic.customer { forced-color-adjust: none; } }
/* Přihlášení: karty a pozadí v barvách ComfortWapka (modrá #141466, nebeská #00a0e1, slunce #facc15) */
.gate-art { background: radial-gradient(circle at 28% 18%, #00a0e159, transparent 55%), radial-gradient(circle at 80% 90%, #facc1533, transparent 45%), linear-gradient(160deg, #141466, #0a0a3a); }
/* Zadní strana karty: bílý podklad a pěna z potisku přední strany. Výřez je otočený, protože z karty v pozadí je vidět horní okraj. */
.gate-cards .plastic.alt { background: #fff; }
.gate-cards .plastic.alt::after { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; rotate: 180deg; background: linear-gradient(#fff 0 28%, #fff0 55%), url(/images/zakaznicka-karta.jpg) right bottom / 227% auto no-repeat; }
.gate-cards .plastic.customer { box-shadow: 0 24px 60px -16px #0a0a3acc; }
/* Maskot stojí vlevo od karet a ukazuje na ně */
.gate-scene { display: flex; align-items: flex-end; width: min(660px, 94%); margin-top: 8%; }
.gate-scene .gate-cards { flex: 1; width: auto; margin: 0 4% 46% -4%; }
.mascot { flex: 0 0 42%; width: 42%; height: auto; filter: drop-shadow(0 18px 24px #05041566); }

/* Pruh karty: kredit originu, poslední použití a plánovaná operace */
.summary { display: grid; gap: 20px; align-content: center; min-width: 0; } .summary-top { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: start; } .summary-top .facts { flex: 1 1 330px; gap: 14px 24px; grid-template-columns: repeat(2, minmax(130px, 1fr)); margin: 0; } .summary .facts small { display: block; }
.credit dl { margin: 0; } .credit dt { color: var(--soft); font-size: 13px; } .credit dd { font-size: 36px; line-height: 1.15; font-weight: 680; font-stretch: 110%; letter-spacing: -.015em; white-space: nowrap; }
.other-credit { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; padding: 4px 11px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 580; text-decoration: none; } .other-credit:hover { text-decoration: underline; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; } .tile { display: flex; gap: 14px; align-items: start; min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--sunk); } .tile > i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; font-size: 19px; color: #fff; background: var(--tone); } .tile > div { flex: 1; min-width: 0; overflow-wrap: anywhere; } .tile h2 { font-size: 13px; font-weight: 450; font-stretch: 100%; color: var(--soft); margin: 0; } .tile .lead { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 640; } .tile p { margin: 0; } .tile .where { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; margin-top: 2px; } .tile > .shot { flex: none; } .tile .btn { margin-top: 10px; } .tile .tag { white-space: normal; } .tile > .shot { background: var(--sheet); width: 34px; height: 34px; }
.tile.use { --tone: light-dark(#13808f, #1a7f8d); } .tile.plan { --tone: var(--fill); } .tile.k0 { --tone: light-dark(#ad1f30, #b23a47); } .tile.k1 { --tone: light-dark(#17693f, #22794c); } .tile.k4 { --tone: light-dark(#7d5200, #8a6416); } .tile.none { background: none; border: 1px dashed var(--edge); } .tile.none > i { background: var(--sunk); color: var(--soft); }
tr.zero td, tr.zero strong { color: var(--soft); font-weight: 440; } .credit-sum { margin-top: 12px; text-align: right; } .credit-sum strong { color: var(--text); margin-left: 8px; font-size: 17px; }
@media (max-width: 820px) { .credit dd { font-size: 30px; } .summary-top .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1250px) { .hero { grid-template-columns: minmax(0, 1fr); } .hero .plastic { max-width: 350px; width: 100%; } }

/* Součty a stav karty, další karty držitele */
.passed { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 12px 0 0 !important; } .credit .passed dt { font-size: 12.5px; } .credit .passed dd { font-size: 16px; line-height: 1.3; font-weight: 620; font-stretch: 100%; letter-spacing: 0; }
.more-cards { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-size: 13px; }
.plastic.paused { filter: grayscale(.85); } .stamp { position: absolute !important; left: 50%; top: 52%; z-index: 2 !important; translate: -50% -50%; rotate: -14deg; padding: .1em .6em; border: 3px solid #ad1f30; border-radius: 8px; background: #ffffffd9; color: #ad1f30; font-size: 8cqw; font-weight: 760; white-space: nowrap; }
h1 .tag { vertical-align: middle; font-stretch: 100%; letter-spacing: 0; }
/* Plánovaná operace jako lístek */
.ticket { display: flex; flex-direction: column; min-width: 0; border: 1px solid color-mix(in srgb, var(--tone) 45%, var(--line)); border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--tone) 5%, var(--sheet)); --tone: light-dark(#453fa3, #6f69d0); } .ticket.k0 { --tone: light-dark(#ad1f30, #c24653); } .ticket.k1 { --tone: light-dark(#17693f, #2f8f5e); } .ticket.k4 { --tone: light-dark(#7d5200, #97701c); }
.ticket header { display: flex; gap: 12px; align-items: center; padding: 11px 16px; background: var(--tone); color: #fff; } .ticket header i { font-size: 22px; line-height: 1; } .ticket h2 { margin: 0; font-size: 12.5px; line-height: 1.3; font-weight: 450; font-stretch: 100%; opacity: .92; } .ticket header strong { font-size: 17px; line-height: 1.25; font-weight: 660; }
.ticket .amount { padding: 12px 16px 0; font-size: 27px; line-height: 1.2; font-weight: 680; font-stretch: 108%; letter-spacing: -.01em; white-space: nowrap; } .ticket dl { display: grid; gap: 6px; margin: 0; padding: 12px 16px; } .ticket dl > div { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; } .ticket dt i { color: var(--tone); } :root[data-theme="dark"] .ticket dt i { color: var(--link); } .ticket dd { margin: 0; overflow-wrap: anywhere; } .ticket dl:empty { display: none; }
.ticket footer { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: auto; padding: 8px 8px 8px 16px; border-top: 1px dashed color-mix(in srgb, var(--tone) 45%, var(--line)); min-height: 46px; } .ticket footer .btn { flex: none; }
/* Držitel: výběr karty a účet */
.sub { margin: 24px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 630; line-height: 1.3; } .pick-box { display: grid; gap: 6px; } .pick-box p { font-size: 13px; } .pick.tall { max-height: 236px; }
.account-state { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--sunk); } .account-state > i { font-size: 26px; line-height: 1; color: var(--link); } .account-state > div { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; } .account-state strong, .account-state small { display: block; } .account-state strong { font-weight: 620; } .account-state + table { margin-top: 16px; }
#ucet, .panel:has(> table) { overflow-x: auto; }
.keep { display: flex; gap: 10px; align-items: center; } .keep input { width: 110px; } .keep span { font-weight: 560; }
.role-card:not([href]) { cursor: default; } .role-card:not([href]):hover { border-color: var(--line); }
.pick .addr { margin-left: 8px; color: var(--soft); font-weight: 440; }
/* Místo posledního použití */
.tile.use { position: relative; } .tile.use > .shot { position: absolute; right: 12px; top: 12px; } .tile.use:has(> .shot) h2, .tile.use:has(> .shot) .lead { padding-right: 34px; } .tile.use p { font-variant-numeric: tabular-nums; }
.place { display: flex; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--edge) 40%, transparent); } .place > i { color: var(--tone); font-size: 16px; line-height: 1.4; } .place > div { min-width: 0; } .place strong { display: block; font-weight: 640; overflow-wrap: anywhere; } .code-pill { padding: 0 8px; border-radius: 6px; background: var(--fill); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
/* Filtr událostí a zařízení centra */
.filters .chips { margin-bottom: 0; max-width: 100%; }
.filters .until { display: inline-flex; gap: 8px; align-items: center; } .filters .until input { width: 205px; background-color: var(--sheet); } .filters .until input[type=date] { width: 160px; }
.live { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; } .live-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); box-shadow: inset 0 4px 0 var(--water), var(--lift); } .live-card.off { box-shadow: inset 0 4px 0 var(--bad), var(--lift); } .live-card header { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; } .live-card .dev { font-size: 17px; font-weight: 620; } .live-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; margin: 0; } .live-card dt { color: var(--soft); } .live-card dd { margin: 0; text-align: right; overflow-wrap: anywhere; } .live-sum { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
@media (min-width: 821px) { .tabs ~ .filters:has(.until) ~ #list .table:not(.free) { max-height: max(340px, calc(100dvh - 425px)); } }
@media (max-width: 820px) { .filters .until { width: 100%; } .filters .until span { width: 26px; } .filters .until input { flex: 1; } }

/* Detaily mytí. Barvy programů prošly kontrolou rozlišitelnosti ve světlém i tmavém vzhledu. */
:root { --w1: light-dark(#2a78d6, #3987e5); --w2: light-dark(#eb6834, #d95926); --w3: light-dark(#1baf7a, #199e70); --w4: light-dark(#eda100, #c98500); --w5: light-dark(#e87ba4, #d55181); --w6: light-dark(#008300, #0ca30c); --w7: light-dark(#6250d6, #9085e9); --w8: light-dark(#e34948, #e66767); --w0: light-dark(#85869f, #8d8ea8); }
.w1 { --c: var(--w1); } .w2 { --c: var(--w2); } .w3 { --c: var(--w3); } .w4 { --c: var(--w4); } .w5 { --c: var(--w5); } .w6 { --c: var(--w6); } .w7 { --c: var(--w7); } .w8 { --c: var(--w8); } .w0 { --c: var(--w0); }
.wash { display: grid; gap: 22px; min-width: 0; text-align: left; } .wash .facts { margin: 0; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } .wash-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: center; } .wash figure { margin: 0; text-align: center; } .wash svg { display: block; width: 100%; max-width: 250px; margin: 0 auto 8px; } .wash path { fill: var(--c); stroke: var(--raise); stroke-width: 2; stroke-linejoin: round; } .wash path:hover { opacity: .82; }
.wash-table { overflow-x: auto; } .wash-table table { width: 100%; } .wash-table th, .wash-table td { position: static !important; padding: 7px 10px !important; height: auto; background: none !important; white-space: nowrap; } .wash-table td:first-child { white-space: normal; min-width: 130px; } .wash-table tfoot th, .wash-table tfoot td { border-top: 2px solid var(--edge); border-bottom: 0; color: var(--text); font-size: inherit; font-weight: 650; } .wash-table thead { display: table-header-group !important; } .swatch { display: inline-block; width: 11px; height: 11px; margin-right: 9px; border-radius: 3px; background: var(--c); }
#wash { width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; } #wash[open] { display: flex; flex-direction: column; } #wash header { display: flex; align-items: center; padding: 12px 12px 8px 24px; } #wash h2 { margin-right: auto; font-size: 20px; } #wash .icon-btn:hover { background: var(--info-bg); color: var(--link); } .wash-window { padding: 6px 24px 26px; overflow-y: auto; } .wash-window > p { margin: 24px 0; }
@media (max-width: 820px) { .wash-table th, .wash-table td { padding: 7px 4px !important; font-size: 13px; } .wash-table td:first-child { min-width: 0; } .wash-table tr > :nth-child(5) { display: none; } .wash-table thead th { white-space: normal; } .wash-body { grid-template-columns: minmax(0, 1fr); } .wash svg { max-width: 210px; } .wash-window { padding-inline: 16px; } #wash header { padding-left: 16px; } .wash .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.period label { display: flex; gap: 8px; align-items: center; } .period input { width: 215px; background-color: var(--sheet); } .period label span { font-weight: 560; }
@media (max-width: 820px) { .period label { width: 100%; } .period label span { width: 26px; } }

/* Anonymizovaný údaj: výplň je jen v CSS, skutečná hodnota na stránce není */
.secret { display: inline-block; user-select: none; cursor: not-allowed; } .secret::before { content: "XXXXXXX"; filter: blur(5px); opacity: .75; } .r .secret::before { content: "000,00 Kč"; }
@media (forced-colors: active), print { .secret::before { content: "skryto"; filter: none; } }
/* Datum posledního použití a ikona snímku ve sloupci pod sebou */
.used { display: inline-grid; grid-template-columns: 132px 28px; gap: 8px; align-items: center; }
/* Držitel v nadpisu karty */
h1 .of { margin-left: 8px; font-size: .68em; font-weight: 560; font-stretch: 100%; letter-spacing: 0; color: var(--link); } h1 .of.none { font-weight: 400; font-style: italic; color: var(--soft); }
/* Verze a novinky */
.news { display: grid; gap: 18px; max-width: 860px; } .news .panel { padding: 22px 26px; } .news .now { border-color: var(--link); box-shadow: inset 4px 0 0 var(--gold), var(--lift); } .news header { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; } .news h2 { font-size: 20px; margin: 0; } .news time { margin-left: auto; } .news h3 { margin-top: 8px; font-size: 16px; line-height: 1.4; font-weight: 600; } .news p { margin: 10px 0 0; overflow-wrap: anywhere; } .news ul { margin: 10px 0 0; padding-left: 22px; } .news li { margin: 4px 0; overflow-wrap: anywhere; } .news li::marker { color: var(--gold); }
.head + .box.empty { background: var(--sheet); } textarea { line-height: 1.5; }

/* Role */
.rail a[data-count]:not([data-count=""])::after { content: attr(data-count); margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--gold); color: #1a1830; font-size: 12px; font-weight: 650; text-align: center; } .request table { margin: 12px 0; } .request td:first-child { width: 200px; color: var(--soft); } .request .filters { margin: 0; } .request .filters input { width: 280px; max-width: 100%; } .request .section-head a { color: var(--link); } @media (max-width: 820px) { .request td:first-child { width: auto; } }
.paused-in { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; } .pause-row { display: inline-flex; gap: 12px; align-items: center; cursor: pointer; } .pause-row input { flex: none; margin: 0; } .pause h3 { margin: 0; font-size: 16px; font-weight: 620; } #stav .actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; } .pause { display: grid; gap: 12px; max-width: 620px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); } #stav { scroll-margin-top: 12px; }
/* Vyřízené žádosti. Třídy ok a bad jinak barví i text. */
.panel.verdict { color: var(--text); } .verdict h2 .uid { font-size: 15px; }
.verdict { --c: var(--soft); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; border-left: 4px solid var(--c); } .verdict.ok { --c: var(--ok); } .verdict.bad { --c: var(--bad); }
.verdict-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.verdict header { display: flex; gap: 12px; align-items: start; } .verdict header > div { flex: 1; min-width: 0; } .verdict header small { display: block; } .panel.verdict h2 { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 2px 0 0; font-size: 19px; overflow-wrap: anywhere; } .verdict h2 a { color: var(--link); }
.verdict-state { padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 620; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); } .verdict header .icon-btn { width: 32px; height: 32px; min-height: 0; color: var(--soft); } .verdict header .icon-btn:hover { color: var(--bad); background: var(--bad-bg); }
.verdict-diff { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin: 16px 0 0; } .verdict-diff > div { padding: 10px 14px; border-radius: 10px; background: var(--sunk); min-width: 0; } .verdict-diff dt { font-size: 12.5px; color: var(--soft); font-weight: 400; } .verdict-diff dd { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; margin: 2px 0 0; } .verdict-diff dd > * { min-width: 0; overflow-wrap: anywhere; } .verdict-diff i { color: var(--soft); font-size: 13px; }
.verdict .want { font-weight: 620; } .verdict.ok .was { color: var(--soft); text-decoration: line-through; } .verdict.ok .want { color: var(--ok); } .verdict:not(.ok) .want { color: var(--soft); text-decoration: line-through; font-weight: 400; } .verdict:not(.ok) .was { font-weight: 620; }
.verdict blockquote { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid var(--c); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--c) 8%, transparent); font-size: inherit; overflow-wrap: anywhere; } .verdict blockquote small { display: block; }
.verdict-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 13.5px; } .verdict-steps li { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; } .verdict-steps li i { color: var(--soft); } .verdict-steps li:last-child i { color: var(--c); } .verdict-steps strong { font-weight: 600; }
@media (max-width: 820px) { .verdict { grid-template-columns: minmax(0, 1fr); gap: 12px; } .verdict-icon { display: none; } .verdict header { flex-wrap: wrap; } .verdict header > div { flex: 1 1 100%; } .verdict header form { margin-left: auto; } .verdict-diff { grid-template-columns: minmax(0, 1fr); } }
td .changed { display: block; } .role-about { margin: 0 0 16px; } #opravneni .tabs { margin: 0 0 18px; background: var(--sunk); } #opravneni .tabs a { padding-inline: 12px; } #opravneni { scroll-margin-top: 12px; }
.role-pick { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; } .role-pick fieldset { min-width: 0; margin: 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; } .role-pick legend { float: none; width: auto; margin: 0; padding: 0 6px; font-size: 14px; font-weight: 600; } .perm + .perm { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .role-pick { grid-template-columns: minmax(0, 1fr); } }
.roles-one { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; } .roles-one .roles { position: sticky; top: 0; }
.roles { display: grid; gap: 10px; } .roles-all .roles { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.role-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; } .role-card > span:last-child { min-width: 0; } .role-card strong, .role-card small { display: block; overflow-wrap: anywhere; } .role-card strong { font-weight: 620; }
.role-card:hover { border-color: var(--link); } .role-card[aria-current] { border-color: var(--link); background: var(--info-bg); box-shadow: inset 4px 0 0 var(--gold); }
.roles-all .role-card { align-items: start; padding: 22px; box-shadow: var(--lift); } .roles-all .role-card strong { font-size: 17px; } .roles-all .role-card small { margin-top: 6px; }
.role-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--info-bg); color: var(--link); font-size: 20px; } .role-card[aria-current] .role-icon, .role-head .role-icon { background: var(--fill); color: #fff; }
.role-head { display: flex; gap: 18px; align-items: center; } .role-head .role-icon { width: 56px; height: 56px; font-size: 26px; border-radius: 16px; } .role-head > div { min-width: 0; } .panel.role-head h2 { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin: 0 0 2px; font-size: 22px; overflow-wrap: anywhere; } .role-head .tag { font-stretch: 100%; }
.perm { display: flex; gap: 16px; align-items: center; } .perm > i { font-size: 20px; color: var(--link); } .perm label { flex: 1; cursor: pointer; } .perm strong, .perm small, .members strong, .members small { display: block; font-weight: 580; } .perm small, .members small { font-weight: inherit; } .perm input:disabled, .perm label:has(+ :disabled) { cursor: default; }
.members { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; } .members a { display: flex; gap: 12px; align-items: center; height: 100%; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; } .members a:hover { background: var(--info-bg); } .members a > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; } .members .avatar { flex: none; } .members .tag { margin-left: auto; }
.role-edit { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; } .role-edit .filters { margin: 0; flex: 1; } .role-edit .filters input { width: 240px; }
@media (max-width: 1100px) { .roles-one { grid-template-columns: minmax(0, 1fr); } .roles-one .roles { position: static; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

/* Mycí boxy */
.bays { border: 0; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.bay.card { display: block; padding: 0; --bs-card-bg: var(--sheet); --bs-card-color: var(--text); background: var(--sheet); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--lift); }
.bay .card-body { display: grid; gap: 12px; padding: 16px 18px 18px; } .bay-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .bay strong { font-size: 17px; }
.bay-row { padding: 0; margin: 0; } .bay-row li { flex: 1 0 58px; max-width: 110px; padding: 8px 8px 7px; border-radius: 8px 8px 4px 4px; background: linear-gradient(color-mix(in srgb, var(--water) 7%, transparent), color-mix(in srgb, var(--water) 24%, transparent)); } .bay-row b { font-size: 20px; } .bay-row li.off { background: var(--bad-bg); }
.badge.tag { padding: 2px 10px; font-size: 12.5px; font-weight: 600; line-height: inherit; border-radius: 7px; }
.progress { --bs-progress-bg: var(--line); --bs-progress-bar-bg: var(--series); border-radius: 6px; } .progress-bar { border-radius: 6px; } .progress-bar.water { background: var(--water); }
.alert { margin: 0 0 14px; padding: 11px 16px; border-radius: 12px; } .alert-warning { color: var(--warn); background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.bar-panel { position: relative; height: 270px; } .bar-panel .chart { height: 100%; } .bar-live, .bar-wait { position: absolute; inset: 0; } .bar-wait { visibility: hidden; } .bar-live > div, .bar-wait > div { height: 100%; }
.trend-panel { position: relative; height: 290px; } .trend-svg { width: 100%; height: 100%; overflow: visible; } .trend-svg polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; } .trend-svg .now { stroke: var(--series); stroke-width: 2.5; } .trend-svg .prev { stroke: var(--soft); opacity: .6; } .trend-svg .fit { stroke: var(--gold); stroke-dasharray: 6 5; } .trend-svg .grid { stroke: var(--line); vector-effect: non-scaling-stroke; }
.trend-legend { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; } .trend-legend li { display: flex; align-items: center; gap: 6px; } .trend-legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--series); } .trend-legend i.prev { border-color: var(--soft); opacity: .6; } .trend-legend i.fit { border-top-style: dashed; border-color: var(--gold); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px clamp(28px, 4vw, 64px); align-items: start; }
.mix .progress { order: 1; grid-column: 1 / -1; }

@media (max-width: 1100px) and (min-width: 821px) { .hero { padding: 18px; } }
@media (max-width: 820px) {
  .panel, .hero { padding: 18px 16px; } .totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .totals > div { padding: 14px; column-gap: 10px; } .totals dd { font-size: 19px; } .totals.big { grid-template-columns: minmax(0, 1fr); }
  .head h1 { font-size: 24px; } .tabs { width: auto; } .table { --pad: 14px; } table.cards td { border-bottom: 0 !important; }
}
@media print { .table, .panel, .hero, .totals { box-shadow: none; border-color: #ccc; } .sheet { background: #fff; } }
/* Nový držitel z karty: hlavička a tlačítka zůstávají na místě, posouvá se jen obsah */
#owner-new { position: fixed; inset: 0; margin: auto; height: fit-content; z-index: 30; width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; } #owner-new[open] { display: flex; flex-direction: column; } #owner-new > form { display: flex; flex-direction: column; min-height: 0; }
#owner-new header { display: flex; align-items: center; padding: 12px 12px 8px 24px; } #owner-new h2 { margin-right: auto; font-size: 20px; } #owner-new .icon-btn:hover { background: var(--info-bg); color: var(--link); }
#owner-new .form { max-width: none; gap: 14px 20px; padding: 4px 24px 20px; overflow-y: auto; } #owner-new p { margin: 0; } #owner-new form > .actions { padding: 14px 24px; border-top: 1px solid var(--line); margin: 0; }
.owner-find input { flex: 1; min-width: 0; } .owner-find .btn { flex: none; }

/* Levý dolní roh: nápověda, verze, čas serveru a odezva. Drží u kraje i při posunu menu. */
.rail { padding-bottom: 0; }
.rail-foot { position: sticky; bottom: 0; margin-top: auto; padding: 10px 0 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; background: var(--frame); z-index: 1; }
.rail .help { padding: 9px 10px; border: 1px solid #ffffff2e; border-radius: 10px; background: var(--frame-hi); color: #fff; font-weight: 600; font-size: 14px; } .rail .help:hover { border-color: var(--gold); } .rail .help .icon { font-size: 17px; line-height: 18px; text-align: center; color: var(--gold); } .rail .help .help-go { margin-left: auto; font-size: 20px; line-height: 18px; }
.rail .version { gap: 0; padding: 0; border: 1px solid #ffffff2e; border-radius: 8px; overflow: hidden; font-size: 12px; white-space: nowrap; } .rail .version .icon { display: none; } .version .ver { padding: 5px 8px; background: var(--gold); color: #1a1830; font-weight: 700; } .version .new { flex: 1; padding: 5px 8px; text-align: right; }
.server { display: flex; justify-content: space-between; gap: 6px; padding: 0 2px; font-size: 11.5px; white-space: nowrap; } .server time, .ping span { color: #fff; font-weight: 580; } .server i { margin-right: 4px; } .ping.off span { color: #ff979e; }
.brand-box { display: flex; align-items: center; min-width: 0; padding-left: 12px; } .brand-box .brand { padding-left: 8px; } .mini-form .icon-btn { font-size: 18px; }
.help-form { display: grid; gap: 14px; } .help-form label { display: grid; gap: 5px; } .help-form label span { font-weight: 580; } .help-form textarea { width: 100%; resize: vertical; } .help-form p { margin: 0; } .help-state:empty { display: none; }
#help { width: min(560px, calc(100vw - 32px)); } #help header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; } #help h2 { font-size: 20px; } #help .icon-btn:hover { background: var(--info-bg); color: var(--link); }
@media (min-width: 1101px) {
  .shell.mini { grid-template-columns: 64px minmax(0, 1fr); } .mini .rail a { position: relative; justify-content: center; } .mini .rail a span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  .mini .rail-title { display: none; } .mini .rail-group + .rail-group { border-top: 1px solid #ffffff24; padding-top: 14px; }
  .mini .rail .help .help-go, .mini .server .clock, .mini .server i { display: none; } .mini .rail .version { padding: 7px 0; } .mini .rail .version .icon { display: block; font-size: 16px; line-height: 18px; text-align: center; } .mini .server { justify-content: center; font-size: 10.5px; }
  .mini .rail a[data-count]:not([data-count=""])::after { position: absolute; top: 0; right: 0; min-width: 16px; padding: 0 4px; font-size: 10.5px; }
}
@media (max-width: 1100px) and (min-width: 821px) {
  .mini-form, .rail .help .help-go, .server .clock, .server i { display: none; } .brand-box { padding-left: 14px; } .rail a { position: relative; } .rail .version { padding: 7px 0; } .rail .version .icon { display: block; font-size: 16px; line-height: 18px; text-align: center; } .server { justify-content: center; font-size: 10.5px; }
  .rail a[data-count]:not([data-count=""])::after { position: absolute; top: 0; right: 0; min-width: 16px; padding: 0 4px; font-size: 10.5px; }
}
@media (max-width: 820px) { .mini-form { display: none; } .brand-box { padding: 0 0 0 8px; } .rail.open { padding-bottom: 0; } .rail.open .version { padding: 0; } .help-form textarea { font-size: 16px; } }

/* Plánovaná operace v okně nad kartou */
#plan { width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; } #plan[open] { display: flex; flex-direction: column; }
#plan header { display: flex; align-items: center; padding: 12px 12px 8px 24px; } #plan header h2 { margin-right: auto; font-size: 20px; } #plan .icon-btn:hover { background: var(--info-bg); color: var(--link); }
#plan > [role=status] { margin: 0; padding: 4px 24px 16px; } #plan > [role=status]:empty { display: none; } #plan .form p { margin: 0; }
.plan-window { overflow-y: auto; min-height: 0; } #plan .form { max-width: none; gap: 14px 20px; padding: 4px 24px 0; } #plan .form > .actions { position: sticky; bottom: 0; z-index: 1; margin: 0 -24px; padding: 14px 24px; background: var(--raise); border-top: 1px solid var(--line); }

/* Registrace uživatelů: jeden řádek, podrobnosti po rozbalení */
.box.regs { max-width: none; overflow: hidden; } .reg { position: relative; } .reg + .reg { border-top: 1px solid var(--line); }
.reg summary { display: grid; grid-template-columns: 16px minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1.2fr) 150px 170px; gap: 14px; align-items: center; min-height: 48px; padding: 4px 18px; cursor: pointer; list-style: none; } .reg summary::-webkit-details-marker { display: none; }
.reg summary > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .reg summary:hover { background: var(--sunk); } .reg.has-delete summary { padding-right: 60px; }
.reg summary .bi { transition: transform .15s; } .reg details[open] .bi-chevron-right { transform: rotate(90deg); } .reg summary:focus-visible { outline-offset: -2px; } .reg-state { text-align: right; }
.reg-body { padding: 6px 18px 18px 48px; background: var(--sunk); } .reg-body dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 24px; padding: 8px 0 14px; } .reg-body dt { color: var(--soft); font-size: 12.5px; } .reg-body dd { overflow-wrap: anywhere; } .reg-body .filters { margin: 0; } .reg-body .filters input { width: 220px; max-width: 100%; }
.reg-delete { position: absolute; top: 6px; right: 12px; margin: 0; } .reg-delete .icon-btn { width: 36px; height: 36px; color: var(--soft); } .reg-delete .icon-btn:hover { background: var(--bad-bg); color: var(--bad); }
@media (max-width: 1100px) { .reg summary { grid-template-columns: 16px minmax(0, 1fr) minmax(0, 1fr) auto; } .reg summary > :nth-child(3), .reg summary > :nth-child(5) { display: none; } }
@media (max-width: 560px) { .reg summary { grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; padding: 4px 12px; } .reg summary > :nth-child(4) { display: none; } .reg-body { padding-left: 12px; } }
.pie { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; } .pie svg { flex: 0 1 220px; width: 220px; min-width: 160px; margin-inline: auto; } .pie path { fill: var(--c); stroke: var(--sheet); stroke-width: 2; stroke-linejoin: round; } .pie path:hover { opacity: .82; }
.pie table { flex: 1 1 260px; width: auto; min-width: 0; } .pie th, .pie td { position: static; height: auto; padding: 7px 10px; background: none; white-space: nowrap; } .pie tr:last-child td { border-bottom: 0; } .pie .swatch { print-color-adjust: exact; } .pie path { print-color-adjust: exact; }
/* Schválení: přepínač a tlačítko v řadě, vysvětlivka pod nimi, aby tlačítka neposouvala. */
.approve { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; } .approve > small { flex-basis: 100%; order: 1; contain: inline-size; font-size: 12px; line-height: 1.35; }
/* Držitel: zobrazení celé historie karet zákazníkovi. */
.history-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; } .history-bar > div { flex: 1 1 320px; } .history-bar small { display: block; margin-top: 2px; } .history-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
