/* Administrácia webu nks.sk (admin.nks.sk/admin). Vzhľad z prototypu prototyp-administracie/sablona.html (tokeny webu
   z DESIGN.md), bez lišty prototypu a prepínača rolí. CSP administrácie povoľuje len štýly z tohto súboru: žiadne
   inline štýly ani atribúty style, písmo a logo z /admin/ (build ich kopíruje z public/). */
@font-face { font-family: 'Parkinsans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/admin/fonts/parkinsans-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Parkinsans'; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(/admin/fonts/parkinsans-latin.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; }

/* Tokeny z webu (DESIGN.md) + pár stavových farieb pre administráciu. */
:root {
  --ink: #0A1A3C; --navy: #13306F; --royal: #2D49A5; --sky: #009ADB; --sky-hi: #4CC3F5;
  --mist: #E4F2FA; --paper: #F4F3EE; --card: #FFFFFF; --lime: #C6E96A; --lime-deep: #A9D13F;
  --muted: #4B5877; --line: rgb(10 26 60 / .12); --line-strong: rgb(10 26 60 / .22);
  --warn: #C2410C; --warn-bg: #FFF1E6; --ok: #1E8A4A; --ok-bg: #E6F5EC; --danger: #C0262D; --danger-bg: #FDECEC;
  --font: 'Parkinsans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-panel: 28px; --r-card: 20px; --r-in: 14px;
  --shadow: 0 12px 40px rgb(10 26 60 / .14);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --pb: 0px; --side: 264px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15.5px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0; }
a { color: var(--royal); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
/* top/left: skrytý text nesmie ostať na svojom mieste v širokom obsahu (napr. hlavička tabuľky) a rozšíriť stránku */
.sr { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; }
.ic--sm { width: 16px; height: 16px; }
.ic--xs { width: 14px; height: 14px; }
.ic--lg { width: 26px; height: 26px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- logo ---------- */
.mark { display: block; flex: none; width: 84px; height: 35px; background: var(--royal); -webkit-mask: url(/admin/img/logo-nks.png) center / contain no-repeat; mask: url(/admin/img/logo-nks.png) center / contain no-repeat; }
.mark--lg { width: 116px; height: 48px; }
.mark--sm { width: 56px; height: 23px; }

/* ---------- rozloženie ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100dvh - var(--pb)); }
.side { position: sticky; top: var(--pb); height: calc(100dvh - var(--pb)); display: flex; flex-direction: column; gap: 6px; padding: 22px 14px 16px; background: var(--card); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 20px; text-decoration: none; color: var(--ink); }
.brand__t { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.2; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; transition: background-color .15s ease; }
.nav a:hover { background: var(--paper); }
.nav a .ic { color: var(--muted); }
.nav a[aria-current="page"] { background: var(--royal); color: #fff; }
.nav a[aria-current="page"] .ic { color: #fff; }
.nav__badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--warn); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.nav__sep { margin: 16px 12px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.side__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.side__web { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 14px; font-weight: 600; text-decoration: none; }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 8px; }
.me__n { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.me__r { display: block; font-size: 12.5px; color: var(--muted); }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--royal); font-weight: 700; font-size: 13px; flex: none; }
.av--sm { width: 30px; height: 30px; font-size: 11.5px; }
.side__note { display: flex; gap: 6px; align-items: center; padding: 0 8px; font-size: 12px; color: var(--muted); }
.main { min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 40px) 96px; }
.topbar { display: none; }
.scrim--nav { display: none; }
@media (max-width: 899px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: var(--pb); left: 0; bottom: 0; height: auto; width: min(300px, 86vw); z-index: 56; transform: translateX(-102%); transition: transform .35s var(--ease-drawer); box-shadow: var(--shadow); }
  .navopen .side { transform: none; }
  .scrim--nav { display: block; position: fixed; inset: var(--pb) 0 0; z-index: 55; background: rgb(10 26 60 / .4); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .navopen .scrim--nav { opacity: 1; pointer-events: auto; }
  .topbar { display: flex; position: sticky; top: var(--pb); z-index: 40; align-items: center; gap: 10px; height: 58px; padding: 0 12px; background: rgb(244 243 238 / .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .topbar__t { font-weight: 600; font-size: 15px; margin-left: auto; color: var(--muted); }
  .page { padding-top: 20px; }
}

/* ---------- hlavička stránky ---------- */
.ph { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.ph h1 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
.ph p { color: var(--muted); margin-top: 6px; max-width: 64ch; }
.ph__act { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- tlačidlá ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color .18s ease, border-color .18s ease, color .18s ease; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
.btn--block { width: 100%; }
.btn--royal { background: var(--royal); color: #fff; }
.btn--royal:hover { background: var(--navy); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-deep); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #9E1C22; }
.btn--dghost { background: #fff; color: var(--danger); border-color: rgb(192 38 45 / .35); }
.btn--dghost:hover { border-color: var(--danger); }
.btn--ms { background: #fff; color: var(--ink); border-color: var(--line-strong); min-height: 54px; font-size: 15.5px; gap: 12px; }
.btn--ms:hover { border-color: var(--ink); }
.ms { display: grid; grid-template-columns: 9px 9px; gap: 2px; }
.ms i { width: 9px; height: 9px; } .ms i:nth-child(1) { background: #F25022; } .ms i:nth-child(2) { background: #7FBA00; } .ms i:nth-child(3) { background: #00A4EF; } .ms i:nth-child(4) { background: #FFB900; }
.iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; flex: none; transition: background-color .15s ease; }
.iconbtn:hover { background: var(--paper); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--royal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* ---------- karty, štítky, stavy ---------- */
.card { background: var(--card); border-radius: var(--r-card); padding: 22px; min-width: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card__h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.card__h h2 { font-size: 18px; }
.card__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cell-t { font-weight: 600; line-height: 1.3; }
.cell-s { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.bdg { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--paper); color: var(--muted); vertical-align: middle; }
.bdg--ok { background: var(--ok-bg); color: var(--ok); }
.bdg--warn { background: var(--warn-bg); color: var(--warn); }
.bdg--danger { background: var(--danger-bg); color: var(--danger); }
.bdg--info { background: var(--mist); color: var(--royal); }
.bdg--new { background: var(--lime); color: var(--ink); }
.st { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.st i { width: 9px; height: 9px; border-radius: 50%; background: #B8BFCC; flex: none; }
.st--open { color: var(--ok); } .st--open i { background: #34C26A; box-shadow: 0 0 0 4px rgb(52 194 106 / .18); }
.st--lunch { color: #9A6700; } .st--lunch i { background: #F0B429; }
.st--off { color: var(--danger); } .st--off i { background: var(--danger); box-shadow: 0 0 0 4px rgb(192 38 45 / .15); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-in); font-size: 14.5px; line-height: 1.45; }
.alert .ic { margin-top: 1px; }
.alert--warn { background: var(--warn-bg); color: #7C2D12; } .alert--warn .ic { color: var(--warn); }
.alert--info { background: var(--mist); color: var(--navy); } .alert--info .ic { color: var(--royal); }
.alert--danger { background: var(--danger-bg); color: #7A1A1F; } .alert--danger .ic { color: var(--danger); }
.empty { color: var(--muted); padding: 8px 0; }

/* ---------- tabuľky ---------- */
/* position: obsah s position:absolute (napr. .sr) sa posúva v obale a neutečie z neho na šírku stránky */
.tw { position: relative; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FCFBF8; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
.tbl tr[data-a] { cursor: pointer; }
.tbl tbody tr { transition: background-color .12s ease; }
.tbl tbody tr:hover { background: #FAF9F5; }
.tbl tr.is-off td { opacity: .5; }
.tbl tr.is-off td.tact { opacity: 1; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tact { white-space: nowrap; text-align: right; }
.tact > * { vertical-align: middle; }
.tact .iconbtn { display: inline-grid; }
.tbl--wide { min-width: 760px; }
.tbl--imp { min-width: 940px; }
.tbl--imp td:nth-child(3) { min-width: 200px; }
.tbl--imp td:nth-child(4) { min-width: 220px; }

/* ---------- formuláre ---------- */
.fld { display: grid; gap: 6px; align-content: start; min-width: 0; }
.lbl { font-size: 14px; font-weight: 600; }
.req::after { content: ' *'; color: var(--danger); }
.inp { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-in); border: 1.5px solid var(--line-strong); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.inp:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgb(45 73 165 / .15); }
.inp:disabled { background: var(--paper); color: var(--muted); }
textarea.inp { min-height: 96px; resize: vertical; line-height: 1.5; }
select.inp { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5877' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.inp--sm { min-height: 40px; padding: 8px 12px; }
.hint { font-size: 13px; color: var(--muted); }
.hint--row { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; }
.err { font-size: 13px; color: var(--danger); font-weight: 600; }
.fld.is-err .inp, .fld.is-err .rte { border-color: var(--danger); }
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--royal); flex: none; }
.step { display: grid; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step__h { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15.5px; }
.step__n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.sub-h { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform 160ms var(--ease-out); }
.opt:hover { border-color: var(--ink); }
.opt:active { transform: scale(.97); }
.opt .ic { color: var(--muted); }
.opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt[aria-pressed="true"] .ic { color: var(--lime); }
.opt--all[aria-pressed="true"] { background: var(--royal); border-color: var(--royal); }
.opt--all .ic { display: none; } .opt--all[aria-pressed="true"] .ic { display: block; color: #fff; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--paper); gap: 2px; justify-self: start; }
.seg button { border: 0; background: none; padding: 8px 15px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); transition: background-color .15s ease, color .15s ease; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgb(10 26 60 / .14); }
.seg--card { background: var(--card); }
.seg--card button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.sw { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; position: relative; }
.sw__i { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw__t { flex: none; width: 44px; height: 26px; border-radius: 999px; background: #C9CED8; position: relative; transition: background-color .2s ease; }
.sw__t::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform .22s var(--ease-out); }
.sw__i:checked + .sw__t { background: var(--royal); }
.sw__i:checked + .sw__t::after { transform: translateX(18px); }
.sw__i:focus-visible + .sw__t { outline: 3px solid var(--sky); outline-offset: 2px; }
.sw__i:disabled + .sw__t { opacity: .55; }
.sw b { display: block; font-weight: 600; font-size: 14.5px; }
.sw .hint { display: block; }
.search { position: relative; display: block; width: min(320px, 100%); }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .inp { padding-left: 40px; }
.dz { display: grid; justify-items: center; gap: 8px; padding: 26px 20px; border: 2px dashed var(--line-strong); border-radius: var(--r-card); background: #fff; text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.dz:hover, .dz.is-over { border-color: var(--royal); background: var(--mist); }
.dz__ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--royal); }
.dz:hover .dz__ic { background: #fff; }
.dz--wide { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 4px 16px; padding: 18px 22px; }
.dz--wide .dz__ic { grid-row: span 2; }
.dz__alt { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; font-size: 13.5px; }
.checks { display: grid; gap: 6px; margin: 0; padding: 12px 14px; border-radius: var(--r-in); background: var(--paper); list-style: none; font-size: 14px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks .is-ok { color: var(--ok); } .checks .is-bad { color: var(--danger); }
.checks .ic { margin-top: 2px; }
.fcard { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-in); border: 1.5px solid var(--line); background: #fff; }
.fcard__b { flex: 1; min-width: 0; }
.ftag { width: 40px; height: 48px; border-radius: 8px; background: var(--mist); color: var(--royal); font-size: 10.5px; font-weight: 700; display: grid; place-items: end center; padding-bottom: 7px; flex: none; letter-spacing: .02em; }
.ftag--bad { background: var(--danger-bg); color: var(--danger); }
.url { font-size: 14px; padding: 10px 14px; border-radius: var(--r-in); background: var(--paper); overflow-wrap: anywhere; }
.count { font-variant-numeric: tabular-nums; }

/* ---------- vysúvací panel a dialóg ---------- */
.scrim { position: fixed; inset: 0; background: rgb(10 26 60 / .42); opacity: 0; transition: opacity .25s ease; }
.dwrap .scrim { z-index: 70; }
.dr { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(1060px, 100vw); background: var(--paper); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .42s var(--ease-drawer); box-shadow: -20px 0 60px rgb(10 26 60 / .2); }
.dr--narrow { width: min(600px, 100vw); }
.is-in .scrim { opacity: 1; }
.is-in .dr { transform: none; }
.dr__head { display: flex; align-items: flex-start; gap: 16px; padding: 20px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.dr__head h2 { font-size: 21px; outline: none; }
.dr__head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.dr__head .iconbtn { margin-left: auto; background: var(--paper); }
.dr__head .iconbtn:hover { background: var(--mist); }
.dr__body { flex: 1; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; overscroll-behavior: contain; }
.dr--narrow .dr__body, .dr--single .dr__body, .dr__body.is-single { grid-template-columns: minmax(0, 1fr); }
.dr__form { padding: 24px; background: #fff; min-height: 100%; display: grid; gap: 16px; align-content: start; }
.dr__prev { position: sticky; top: 0; padding: 24px; display: grid; gap: 14px; align-content: start; }
.dr__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 24px; background: #fff; border-top: 1px solid var(--line); }
.dr__foot .hint { margin-right: auto; display: flex; gap: 6px; align-items: center; }
@media (max-width: 860px) {
  .dr__body { display: block; }
  .dr__form { min-height: 0; }
  .dr__prev { position: static; border-top: 1px solid var(--line); }
  .dr__head, .dr__form, .dr__prev { padding-left: 18px; padding-right: 18px; }
  .dr__foot { padding: 12px 18px; }
  .dr__foot .hint { display: none; }
}
.mo { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.mo .scrim { z-index: 0; }
.mo__box { position: relative; width: min(480px, 100%); background: #fff; border-radius: var(--r-panel); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; transform: scale(.96); opacity: 0; transition: transform .22s var(--ease-out), opacity .2s ease; }
.mo__box h2 { font-size: 20px; }
.mo__box p { color: var(--muted); }
.is-in .mo__box { transform: none; opacity: 1; }
.mo__act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(540px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 14.5px; animation: tin .35s var(--ease-out); }
.toast > .ic { color: var(--lime); }
.toast span { flex: 1; }
.toast button { background: none; border: 0; color: var(--lime); font-weight: 700; cursor: pointer; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.toast button:hover { background: rgb(255 255 255 / .08); }
body.is-locked .toasts { bottom: 92px; }
@keyframes tin { from { transform: translateY(12px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .dr, .scrim, .mo__box, .side, .sw__t::after, .btn, .opt { transition: none !important; }
  .toast { animation: none !important; }
}

/* ---------- prihlásenie ---------- */
.login { min-height: calc(100dvh - var(--pb)); display: grid; place-items: center; padding: 48px 16px;
  background: radial-gradient(55% 45% at 88% 8%, rgb(0 154 219 / .16), transparent 70%), radial-gradient(45% 40% at 8% 92%, rgb(198 233 106 / .32), transparent 70%), var(--paper); }
.login__wrap { position: relative; width: min(440px, 100%); display: grid; gap: 18px; }
.login__card { position: relative; z-index: 1; background: #fff; border-radius: var(--r-panel); padding: 36px 32px 28px; box-shadow: var(--shadow); text-align: center; display: grid; gap: 16px; justify-items: center; }
.login__card h1 { font-size: 24px; margin-top: 6px; }
.login__p { color: var(--muted); margin-top: -6px; }
.login__sec { list-style: none; margin: 4px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; text-align: left; font-size: 14px; width: 100%; }
.login__sec li { display: flex; gap: 10px; align-items: flex-start; }
.login__sec .ic { color: var(--royal); margin-top: 2px; }
.login__foot { text-align: center; font-size: 13.5px; color: var(--muted); padding: 0 12px; }
.otp { display: flex; gap: 8px; justify-content: center; }
.otp__i { width: 46px; height: 56px; text-align: center; font-size: 22px; font-weight: 600; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; }
.otp__i:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgb(45 73 165 / .15); }
@media (max-width: 400px) { .otp__i { width: 40px; height: 50px; } .login__card { padding: 32px 20px 24px; } }

/* ---------- prehľad ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--r-card); background: var(--card); border: 0; text-align: left; cursor: pointer; transition: transform .18s var(--ease-out), box-shadow .2s ease; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgb(10 26 60 / .08); }
.tile:active { transform: scale(.98); }
.tile__ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); color: var(--royal); }
.tile--warn .tile__ic { background: var(--danger-bg); color: var(--danger); }
.tile__t { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.tile__s { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr 1fr; } .tile { padding: 14px; gap: 10px; } .tile__s { display: none; } }
a.tile { color: var(--ink); text-decoration: none; }
.upozornenia { display: grid; gap: 10px; margin-bottom: 16px; }
.sub-h--pod { padding: 0 0 8px; }
.sub-h--sep { margin-top: 14px; }
.todo .cell-t, .rows .cell-s { overflow-wrap: anywhere; }
.mbar + .mbar { margin-top: 6px; }
.mbar .bdg { margin-left: auto; flex: none; }
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
@media (max-width: 1000px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows__t { font-weight: 600; font-size: 14.5px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 14.5px; text-decoration: none; }
.more .ic { transition: transform .2s var(--ease-out); }
.more:hover .ic { transform: translateX(3px); }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn); }
.todo__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 520px) { .todo li { grid-template-columns: 40px minmax(0, 1fr); } .todo__end { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; } }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:last-child { border-bottom: 0; }
.feed b { font-weight: 600; }
.ok-line { display: flex; gap: 10px; align-items: center; color: var(--ok); font-weight: 600; padding: 8px 0; }
.mbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--sky); color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.mdot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgb(198 233 106 / .3); flex: none; }
.kpis { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.kpis b { color: var(--ink); }

/* ---------- zberné dvory ---------- */
.ygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.yc { background: var(--card); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; }
.yc--off { border-color: rgb(192 38 45 / .4); }
.yc h3 { font-size: 17px; }
.yc__dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 2px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.yc__dl dt { color: var(--muted); font-size: 12.5px; }
.yc__dl dd { margin: 2px 0 0; font-weight: 500; line-height: 1.35; }
.yc__act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.hgrid { display: grid; gap: 6px; min-width: 520px; }
.hrow { display: grid; grid-template-columns: 34px repeat(4, minmax(82px, 1fr)) 92px; gap: 6px; align-items: center; }
.hrow--h { font-size: 12px; font-weight: 600; color: var(--muted); }
.hrow .inp { min-height: 38px; padding: 6px 8px; font-size: 14px; }
.hrow.is-closed .inp { opacity: .3; }
.hrow .chk { font-size: 13px; }

/* ---------- náhľad webu ---------- */
.prev__lbl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.prev-empty { display: grid; justify-items: center; gap: 10px; padding: 48px 24px; text-align: center; color: var(--muted); border: 2px dashed var(--line-strong); border-radius: var(--r-card); }
.mock { border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: 0 10px 30px rgb(10 26 60 / .1); border: 1px solid var(--line); }
.mock__chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #fff; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mock__chrome i { width: 9px; height: 9px; border-radius: 50%; background: #E3E1D9; }
.mock__chrome span { margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--paper); }
.mock__bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--sky); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.35; }
.mock__hdr { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.mock__nav { display: flex; gap: 8px; }
.mock__nav i { width: 30px; height: 6px; border-radius: 3px; background: var(--line-strong); }
.mock__in { padding: 0 14px 14px; display: grid; gap: 8px; }
.mock__more { font-size: 13px; color: var(--muted); padding: 0 4px; }
.yardm { background: #fff; border-radius: 16px; padding: 16px; display: grid; gap: 6px; }
.yardm__h { font-size: 16px; }
.yardm__a { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.yardm__sub { font-size: 13px; color: var(--muted); }
.yardm__note { margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--danger-bg); color: #7A1A1F; font-size: 13.5px; line-height: 1.45; }
.mini { list-style: none; margin: 0; padding: 4px 14px; background: #fff; border-radius: 16px; }
.mini li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini li:last-child { border-bottom: 0; }
.newsm { background: #fff; border-radius: var(--r-card); overflow: hidden; width: min(340px, 100%); }
.newsm__img { aspect-ratio: 16 / 10; background: var(--mist); display: grid; place-items: center; color: var(--royal); }
.newsm__img img { width: 100%; height: 100%; object-fit: cover; }
.newsm__b { padding: 16px 18px 20px; }
.newsm__meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.newsm__tag { padding: 2px 9px; border-radius: 999px; background: var(--mist); color: var(--royal); font-weight: 600; }
.newsm__h { font-size: 17px; line-height: 1.25; }
.newsm__ex { margin-top: 8px; color: var(--muted); font-size: 14px; }
.artm { background: #fff; border-radius: var(--r-card); padding: 20px; }
.artm h4 { font-size: 20px; margin-bottom: 10px; }
.artm__body { font-size: 14.5px; }
.artm__body p { margin: 0 0 .8em; }
.artm__body h3 { font-size: 16px; margin: 1em 0 .4em; }
.artm__body ul { padding-left: 1.2em; margin: 0 0 .8em; }
.is-ph { color: var(--muted); font-style: italic; }
.docm { background: #fff; border-radius: var(--r-card); padding: 16px 18px; }
.docm h4 { font-size: 15.5px; margin-bottom: 8px; }
.docm__i { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.docm__i a { font-weight: 600; text-decoration: none; }
.docm__i.is-new { background: linear-gradient(90deg, rgb(198 233 106 / .35), transparent); margin: 0 -18px; padding: 10px 18px; }
.regm { background: #fff; border-radius: var(--r-card); padding: 18px; display: grid; gap: 10px; }
.regm h4 { font-size: 16px; line-height: 1.3; }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.deadline { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-in); background: #fff; font-size: 14px; }
.deadline b { font-weight: 600; }

/* ---------- oznamy ---------- */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bars__m { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.nrow { display: flex; gap: 12px; align-items: center; min-width: 260px; }
.nrow__img { width: 64px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--mist); flex: none; display: grid; place-items: center; color: var(--royal); }
.nrow__img img { width: 100%; height: 100%; object-fit: cover; }
.clamp, .clamp2 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { -webkit-line-clamp: 2; max-width: 46ch; }
.rte { border: 1.5px solid var(--line-strong); border-radius: var(--r-in); background: #fff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.rte:focus-within { border-color: var(--royal); box-shadow: 0 0 0 4px rgb(45 73 165 / .15); }
.rte__bar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: #FBFAF7; }
.rte__bar button { width: 34px; height: 32px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 15px; display: grid; place-items: center; }
.rte__bar button:hover { background: var(--mist); }
.rte__ed { min-height: 150px; padding: 12px 14px; outline: none; font-size: 15px; }
.rte__ed:empty::before { content: attr(data-ph); color: var(--muted); }
.rte__ed p { margin: 0 0 .7em; }
.rte__ed h3 { font-size: 17px; margin: .6em 0 .3em; }
.rte__ed ul { padding-left: 1.2em; margin: 0 0 .7em; }
.imgp { display: flex; gap: 14px; align-items: center; }
.imgp img { width: 120px; height: 75px; object-fit: cover; border-radius: 10px; flex: none; }

/* ---------- dokumenty ---------- */
.dropbar { margin-bottom: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cats { display: grid; gap: 10px; }
.cat { background: var(--card); border-radius: var(--r-card); }
.cat summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 600; }
.cat summary::-webkit-details-marker { display: none; }
.cat__t { flex: 1; min-width: 0; }
.cat__chev { color: var(--muted); transition: transform .2s ease; }
.cat[open] .cat__chev { transform: rotate(180deg); }
.docs { list-style: none; margin: 0; padding: 0 12px 10px; }
.doc { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 8px; border-top: 1px solid var(--line); }
.doc.is-off .ftag, .doc.is-off .doc__b { opacity: .5; }
.doc__act { display: flex; gap: 6px; align-items: center; }
@media (max-width: 640px) { .doc { grid-template-columns: 40px minmax(0, 1fr); } .doc__act { grid-column: 2; } .dz--wide { grid-template-columns: 1fr; justify-items: center; text-align: center; } .dz--wide .dz__ic { grid-row: auto; } }

/* ---------- zverejňovanie ---------- */
.rules { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rule { display: inline-flex; gap: 8px; align-items: center; padding: 7px 13px; border-radius: 999px; background: var(--card); font-size: 13.5px; }
.rule b { font-weight: 600; }
.rule .ic { color: var(--royal); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-strong); margin: 22px 0 16px; overflow-x: auto; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; background: none; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--royal); }
.tabs__n { font-size: 12.5px; padding: 1px 8px; border-radius: 999px; background: var(--card); color: var(--muted); }
.tabs__p { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--warn); color: #fff; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 0 0 16px 26px; font-size: 14px; }
.tl li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--royal); }
.tl li::after { content: ''; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--line-strong); }
.tl li:last-child { padding-bottom: 0; }
.tl li:last-child::after { display: none; }
.tl li.is-wait::before { background: var(--warn); }
.tl li.is-void::before { background: var(--danger); }
.tl b { font-weight: 600; display: block; }
.done { display: grid; justify-items: center; text-align: center; gap: 14px; width: min(540px, 100%); margin: 24px auto; }
.done h3 { font-size: 22px; }
.done__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.done__ic .ic { width: 32px; height: 32px; }
.done .kv { background: var(--paper); padding: 16px 20px; border-radius: var(--r-in); width: 100%; text-align: left; }
.done__act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.impsum { display: flex; flex-wrap: wrap; gap: 8px; }
.tbl .chk input { margin: 0; }

/* ---------- používatelia ---------- */
.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.matrix th:not(:first-child), .matrix td:not(:first-child) { text-align: center; }
.matrix .yes { color: var(--ok); }
.matrix .no { color: #B8BFCC; }
.secl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px 24px; }
.g2--stack { grid-template-columns: minmax(0, 1fr); }
.secl li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.secl .tile__ic { width: 38px; height: 38px; border-radius: 12px; flex: none; }
.secl b { display: block; font-weight: 600; font-size: 14.5px; }
.secl span { color: var(--muted); }
.rolecards { display: grid; gap: 8px; }
.rolecard { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-in); border: 1.5px solid var(--line-strong); cursor: pointer; }
.rolecard:has(input:checked) { border-color: var(--royal); background: var(--mist); }
.rolecard input { margin-top: 3px; accent-color: var(--royal); }
.rolecard b { display: block; font-weight: 600; }

/* ---------- administrácia: doplnky k prototypu (namiesto inline štýlov prototypu) ---------- */
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nacitanie { display: grid; place-items: center; min-height: 60dvh; color: var(--muted); }
.who { display: inline-flex; gap: 10px; align-items: center; }
.who__t { display: grid; min-width: 0; white-space: nowrap; }
.who__t .cell-s { overflow-wrap: normal; }
.card__bar h2 { font-size: 18px; }
.hint--pad { padding: 12px 20px 16px; }
.empty--pad { padding: 18px 20px; }
.fld--set { border: 0; padding: 0; margin: 0; min-width: 0; }
.fld--set legend { padding: 0; margin-bottom: 8px; }
.sec { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.sec__h { font-size: 15.5px; }
.sec__act { display: flex; flex-wrap: wrap; gap: 8px; }
.bdgs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tact .btn { vertical-align: middle; }
.page__msg { display: grid; justify-items: start; gap: 12px; max-width: 60ch; padding: 32px 0; }
.page__msg h1 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.page__msg p { color: var(--muted); }
.login__err { width: 100%; text-align: left; }
.login__zapamatat { width: 100%; text-align: left; }
.login__zapamatat .hint { display: block; }
.login__steps { width: 100%; display: grid; gap: 14px; text-align: left; }
.login__step { display: grid; gap: 8px; }
.login__step .lbl { display: flex; gap: 8px; align-items: center; }
.qr { width: 184px; height: 184px; justify-self: center; image-rendering: pixelated; border-radius: 8px; }
.tajomstvo { font: 600 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; padding: 8px 12px; border-radius: 10px; background: var(--paper); overflow-wrap: anywhere; user-select: all; }
.kod { font: 700 26px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: var(--ink); user-select: all; }
.inp--kod { font: 600 18px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.done .alert { text-align: left; width: 100%; }
/* Zberné dvory: stav webu po uložení, odsadené pole pod prepínačom (prototyp margin-left: 56px), text v tabuľke,
   náhľad zatvorenia a chyby hodín (zoznam hlášok). */
.dr__form > :empty:first-child + .step { border-top: 0; padding-top: 0; } /* prázdne miesto pre chyby nad prvým krokom */
.webstav { margin: -8px 0 16px; }
.webstav:empty { display: none; }
.hint--ic { display: flex; gap: 6px; align-items: center; }
.fld--odsadene { margin-left: 56px; max-width: 220px; }
.td-text { min-width: 300px; }
.prev { display: grid; gap: 14px; }
.yardm__note { white-space: pre-line; }
.errlist { margin: 0; padding-left: 18px; }
@media (max-width: 520px) { .fld--odsadene { margin-left: 0; } .td-text { min-width: 220px; } }
/* Oznamy v lište: skupiny v zozname, počítadlá znakov, okruhy ako zaškrtávacie polia, deň a čas, náhľad pruhu a boxu
   (vzhľad podľa webu: .announce a .halert v public/assets/css/style.css). */
.tbl .grp th { padding: 10px 20px; background: #FCFBF8; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
/* zoznam oznamov sa s akciami zmestí od 1024 px (s bočným panelom), užší sa posúva vo vnútri karty */
.tbl--oznamy { min-width: 600px; }
.tbl--oznamy .td-text { min-width: 220px; }
.tact__zalom { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (min-width: 1100px) { .tact__zalom { flex-wrap: nowrap; } } /* tlačidlá vedľa seba, keď je miesto */
.count { font-variant-numeric: tabular-nums; font-weight: 600; }
.count.is-over { color: var(--danger); font-weight: 700; }
.okruhy { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 16px; }
.stack { display: grid; gap: 14px; }
.dtrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 130px); gap: 8px; }
.mock__bar--alert { background: var(--warn); }
.mock__bar--alert .mock__txt { font-weight: 700; }
.mock__txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mock__a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; }
.mock--mobil { max-width: 320px; }
.mock--mobil .mock__a { font-size: 0; }
.mock--mobil .mock__a .ic { width: 18px; height: 18px; }
.halertm { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-in); background: #FFF1E7; border-left: 6px solid var(--warn); box-shadow: 0 6px 20px rgb(10 26 60 / .08); }
.halertm--info { background: #fff; border-left-color: var(--sky); }
.halertm__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--warn); color: #fff; }
.halertm--info .halertm__ic { background: var(--sky); }
.halertm__k { margin-bottom: 3px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--warn); }
.halertm--info .halertm__k { color: var(--royal); }
.halertm__h { margin-bottom: 6px; font-size: 16px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.halertm__p { font-size: 14px; color: #2A3550; overflow-wrap: anywhere; }
.halertm__a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--royal); }
@media (max-width: 400px) { .otp { gap: 6px; } .otp__i { width: 38px; } }
@media (max-width: 520px) {
  .matrix th, .matrix td { padding-left: 6px; padding-right: 6px; }
  .matrix th:first-child, .matrix td:first-child { padding-left: 16px; }
  .matrix th:last-child, .matrix td:last-child { padding-right: 14px; }
  .matrix th { font-size: 11.5px; }
  .matrix td:first-child { font-size: 13.5px; }
}
/* Aktuality: zachovaný blok z prenosu v editore (obrázok, zoznam odkazov; dá sa len zmazať) a fotka v paneli. */
.rte__blok { display: flex; gap: 8px; align-items: center; margin: 0 0 .7em; padding: 8px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 13.5px; user-select: none; }
.imgp .nrow__img { width: 120px; height: 75px; }
.imgp .stack { gap: 4px; min-width: 0; }
.imgp .dz__alt { justify-content: flex-start; }
/* Dokumenty: dlhé názvy a adresy súborov sa zalomia (nie posun stránky na mobile), akcie kategórie v jej hlavičke. */
.cat__t, .doc__b .cell-t, .doc__b .cell-s, .docm__i .cell-t, .fcard__b .cell-t { overflow-wrap: anywhere; }
.cat summary .iconbtn { width: 34px; height: 34px; }
.cat summary .bdg { flex: none; }
@media (max-width: 520px) { .cat summary { gap: 6px; padding: 14px 12px 14px 16px; } .cat summary .bdg--info { display: none; } .docs { padding: 0 6px 8px; } }
/* karta súboru v paneli dokumentu: na úzkom displeji ide „Nahradiť novou verziou“ pod názov súboru */
.dr .fcard { flex-wrap: wrap; }
.dr .fcard__b { flex: 1 1 160px; }
/* Zmeny vývozu: karta sviatkov, zoznam, našepkávanie ulíc (GET /api/ulice), vybrané ulice a rýchly výber dňa vývozu. */
.card--sviatky { margin-bottom: 16px; }
.tbl--vyvoz { min-width: 640px; }
.tbl--vyvoz .td-text { min-width: 240px; }
.opts--sm { gap: 6px; align-items: center; }
.opt--sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.ac { position: relative; }
.ac__list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; max-height: 264px; overflow-y: auto; }
.ac__list:empty { display: none; }
.ac__list button { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: var(--paper); text-align: left; font-size: 14.5px; cursor: pointer; }
.ac__list button:hover, .ac__list button:focus-visible { background: var(--mist); }
.ac__list small { color: var(--muted); font-size: 12.5px; flex: none; }
.ac__none { padding: 9px 12px; font-size: 13.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips:empty { display: none; }
.chipx { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--mist); color: var(--navy); font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.chipx--zle { background: var(--danger-bg); color: #7A1A1F; }
.chipx button { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.chipx button:hover { background: rgb(10 26 60 / .08); }

/* Ceny kontajnerov: prehľad sadzieb a riadky druhov odpadu a častí mesta v paneli */
.kdl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; }
.kdl > div { padding: 14px 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.kdl dt { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.kdl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.krows { display: grid; gap: 10px; }
.krow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 12px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-in); background: #fff; }
.krow .fld { grid-column: span 3; }
.krow .fld:nth-child(n+3):nth-child(-n+5) { grid-column: span 2; }
.krow__x { grid-column: 1 / -1; justify-self: end; }
.krow--cast .fld:first-child { grid-column: span 3; }
.krow--cast .fld:nth-child(2) { grid-column: span 2; }
.krow--cast .krow__x { grid-column: span 1; }
.krows__pridat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
@media (max-width: 520px) {
  .krow { grid-template-columns: minmax(0, 1fr); }
  .krow .fld, .krow .fld:nth-child(n+3):nth-child(-n+5), .krow--cast .fld:first-child, .krow__x { grid-column: 1 / -1; }
  .krow--cast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .krow--cast .fld:nth-child(2), .krow--cast .krow__x { grid-column: span 1; }
}

/* Excel stanovíšť: náhľad nového zoznamu (rozbaľovacie zoznamy zmien) a verzie */
.stn__nadpis { font-size: 18px; margin: 26px 0 12px; }
.stn__chyby:not(:empty) { margin-bottom: 12px; }
.stn__telo { display: grid; gap: 12px; padding: 16px 20px; }
.stn__pocty { border: 1px solid var(--line); border-radius: var(--r-in); }
.stn__pocty > div { border-bottom: 0; }
.stn__sek { border: 1px solid var(--line); border-radius: var(--r-in); background: #fff; }
.stn__sek summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 600; }
.stn__sek summary::-webkit-details-marker { display: none; }
.stn__sek summary > span:first-child { flex: 1; min-width: 0; }
.stn__chev { color: var(--muted); transition: transform .2s ease; }
.stn__sek[open] .stn__chev { transform: rotate(180deg); }
.stn__sek .hint, .stn__pod { padding: 0 14px 12px; }
.stn__pod { font-weight: 600; font-size: 14px; }
.stn__zoz { margin: 0; padding: 0 14px 12px 32px; display: grid; gap: 4px; font-size: 14px; overflow-wrap: anywhere; }
.alert .stn__zoz { padding: 6px 0 0 18px; }
.stn__zoz s { color: var(--muted); }
.stn__act { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); }
