/* Verejka app: shell extras on top of ui.css, plus a compatibility layer (.legacy) for page bodies that still use the
   pre-design markup. Rebuilt pages drop `.legacy` and use ui.css classes only. */

/* old variable names used by components and inline page styles */
:root { --panel: var(--surface); --accent: var(--brand); --soft: var(--brand-soft); --fg: var(--ink); --side: var(--sidebar); }

/* ---------- shell extras ---------- */
.sb-search { padding: 0 6px 0 10px; color: var(--faint); }
.sb-search input { flex: 1; min-width: 0; height: 30px; border: 0; outline: none; background: transparent; color: var(--ink); font: var(--t-13)/1 var(--font-sans); padding: 0; }
.sb-search input::placeholder { color: var(--faint); }
.sb-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.sb-search .sg { flex: 1; min-width: 0; }
.sb-search .sg-list { min-width: 300px; }
.sb-ask[aria-current="page"] { background: var(--brand); }
.nav-item [hidden] { display: none; }
.sidebar .logo .word { font-size: 21px; }
.topbar .acct { margin-left: 4px; }
.m-top .acct { width: 44px; height: 44px; display: grid; place-items: center; }
.m-top .acct .user-btn { padding: 0; height: 44px; border: 0; }
.m-top .acct .avatar { width: 30px; height: 30px; font-size: 11.5px; }
.m-top .acct .btn { height: 36px; }

/* the "Viac" sheet on phones */
.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(14, 26, 21, .35); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-in { width: 100%; background: var(--surface); border-radius: 16px 16px 0 0; padding: 8px 8px calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); box-shadow: var(--sh-3); }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 2px auto 10px; }
.sheet a { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.sheet a .i { width: 20px; height: 20px; color: var(--muted); }
.sheet a:hover, .sheet a[aria-current="page"] { background: var(--surface-2); }

/* the side panel (?embed=1) and print: content only */
html.embed .sidebar, html.embed .topbar, html.embed .m-top, html.embed .tabbar, html.embed .sheet { display: none !important; }
html.embed .app { display: block; }
html.embed .content { padding: 18px 20px 40px; }

/* ---------- compatibility layer for pre-design page bodies ---------- */
.legacy h1 { font-family: var(--font-display); font-weight: 560; font-size: var(--t-32); line-height: var(--lh-32); letter-spacing: -.02em; margin: 0 0 6px; }
.legacy h2 { font-size: 18px; line-height: 26px; margin: 36px 0 10px; }
.legacy h3 { font-size: 15px; line-height: 22px; margin: 22px 0 8px; }
.legacy p { margin: 0 0 10px; }
.legacy .meta { color: var(--muted); font-size: 13px; line-height: 19px; }
.legacy .meta span + span::before { content: " · "; }
.legacy .src { all: unset; display: block; color: var(--muted); font-size: 12px; line-height: 18px; margin-top: 36px; }
.legacy .card { padding: 6px 18px; margin-top: 10px; overflow-x: auto; }
.legacy .card > p { margin: 10px 0; }
.legacy .kpis { margin: 20px 0; }
.legacy .kpi { min-height: 0; display: block; }
.legacy .kpi small { display: block; font-size: 12.5px; line-height: 17px; color: var(--muted); }
.legacy .kpi b { display: block; margin: 3px 0; font-size: 24px; line-height: 30px; font-weight: 620; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.legacy .kpi.warn b { color: var(--danger); }
.legacy table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-13); line-height: var(--lh-13); }
.legacy th { background: var(--surface-2); color: var(--muted); font-weight: 500; font-size: 12px; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.legacy td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legacy .card table { margin: 0 -18px; width: calc(100% + 36px); }
.legacy .card table th:first-child, .legacy .card table td:first-child { padding-left: 18px; }
.legacy .card table th:last-child, .legacy .card table td:last-child { padding-right: 18px; }
.legacy tr:last-child td { border-bottom: 0; }
.legacy tbody tr:hover td, .legacy tr:hover td { background: var(--row-hover); }
.legacy td:first-child { white-space: nowrap; }
.legacy td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.legacy .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.legacy .two > div > h2:first-child { margin-top: 28px; }
.legacy .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.legacy .actions a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; text-decoration: none; box-shadow: var(--sh-1); }
.legacy .actions a:hover { background: var(--surface-2); }
.legacy .banner { margin: 12px 0 16px; padding: 12px 14px; border-radius: var(--r-md); font-size: 13.5px; line-height: 20px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.legacy .banner.warn { background: var(--signal-bg); border-color: var(--signal-line); color: #6b3a07; }
.legacy .warn { background: var(--danger-bg); color: var(--danger); }
.legacy .retender { display: inline-block; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted); }
.legacy .retender.open { color: var(--info); font-weight: 600; }
.legacy .retender.done { color: var(--signal); }
.legacy .retender.pin { color: var(--info); font-weight: 600; }
.legacy .addenda, .legacy .addenda a { color: var(--signal); }
.legacy .chip { margin: 2px 4px 2px 0; }
.legacy .chart { width: 100%; }
.legacy button.more-rows { display: flex; margin: 10px auto 4px; }
.legacy details summary { cursor: pointer; color: var(--brand); font-size: 13.5px; margin: 14px 0 6px; }
.legacy select, .legacy input:not([type=checkbox]):not([type=radio]) { height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: var(--t-13)/1 var(--font-sans); }
.legacy form.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 18px; }
.legacy form.filters label { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.legacy button.go { height: 34px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--brand); color: var(--on-brand); font: 500 13.5px/1 var(--font-sans); cursor: pointer; }
@media (max-width: 960px) {
  .legacy .two { grid-template-columns: 1fr; }
  .legacy h1 { font-size: 27px; line-height: 32px; }
}
/* phones: old tables become label/value rows until each page gets the ui.css .tbl.stack pattern */
@media (max-width: 700px) {
  .legacy .card { padding: 4px 14px; }
  .legacy .card table, .legacy .card tbody, .legacy .card tr, .legacy .card td { display: block; width: 100%; margin: 0; }
  .legacy .card tr:first-child { display: none; }
  .legacy .card tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .legacy .card td { border: 0; padding: 2px 0 !important; text-align: left !important; white-space: normal !important; }
  .legacy .card td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 12px; }
}

/* fixes after the first render of real pages */
.sidebar [hidden], .nav-group[hidden] { display: none !important; }
.legacy .two > div { min-width: 0; }
.legacy .kpis { background: none; border: 0; box-shadow: none; gap: 10px; overflow: visible; }
.legacy .kpi { border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.legacy select, .legacy input:not([type=checkbox]):not([type=radio]) { max-width: 100%; }
.m-top .acct .btn { width: 44px; padding: 0; border: 0; box-shadow: none; background: none; color: var(--ink-2); }
.m-top .acct .btn span { display: none; }
.topbar .acct .btn .i { display: none; }
@media (max-width: 700px) { .legacy form.filters label { flex: 1 1 100%; } .legacy form.filters label select { flex: 1; min-width: 0; } }
.badge[hidden] { display: none !important; }

/* ---------- rebuilt pages (company, buyer, ...) ---------- */
.content > header.entity { margin-top: 4px; }
.entity .acts { align-items: center; }
details.more { position: relative; }
details.more > summary { list-style: none; } details.more > summary::-webkit-details-marker { display: none; }
details.more .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 240px; }
details.more:not([open]) .menu { display: none; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.grid-2 > section > .section-h:first-child { margin-top: 32px; }
.chart-pane { padding: 12px 16px 4px; } .chart-pane .chart { min-height: 220px; }
.cats .catrow { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cats .catrow:last-of-type { border-bottom: 0; }
.cats .catrow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cats .catrow .bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; } .cats .catrow .bar i { display: block; height: 100%; background: var(--viz-1); border-radius: 3px; }
.cats .catrow b { font-weight: 600; text-align: right; }
.sec-first { margin-top: 22px; }
section[id] { scroll-margin-top: calc(var(--topbar-h) + 52px); }
.tbl .t-sub a { color: var(--muted); } .tbl .t-sub a:hover { color: var(--brand); }
.tbl small.retender, .tbl small.addenda, .tbl .retender, .tbl .addenda { display: block; margin: 0 0 6px; padding: 3px 8px; border-radius: 6px; font-size: 12px; line-height: 16px; background: var(--surface-2); color: var(--ink-2); font-weight: 500; }
.tbl .retender.open, .tbl .retender.announced { background: var(--info-bg); color: var(--info); }
.tbl .retender.pin { background: var(--info-bg); color: var(--info); }
.tbl .retender.done { background: var(--surface-2); color: var(--muted); }
.tbl .addenda { background: var(--signal-bg); color: var(--signal); }
.tbl .retender a, .tbl .addenda a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.tbl td.c-full { min-width: 200px; max-width: 320px; }
.tbl .track { width: 140px; }
.legacy-sec { margin-top: 8px; }
.legacy-sec > h2:first-child { margin-top: 40px; }
.roles .role-row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.roles .role-row:last-child { border-bottom: 0; } .roles .chip { margin: 2px 0; }
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .roles .role-row { grid-template-columns: 1fr; gap: 4px; }
  .tbl td.c-full { max-width: none; }
  .entity .acts details.more { flex: none; }
}
@media (max-width: 640px) { .tbl.stack .track { width: 100%; } }
.chart { display: block; width: 100%; }
.tbl-wrap > .more-rows, .card > .more-rows { display: flex; margin: 10px auto; box-shadow: none; }
.tbl .note-chip { display: inline-flex; align-items: center; gap: 5px; margin: 0 6px 6px 0; padding: 3px 8px; border-radius: 6px; font-size: 12px; line-height: 16px; font-weight: 500; text-decoration: none; }
.tbl .note-chip .i { width: 13px; height: 13px; }
.tbl .note-chip.info { background: var(--info-bg); color: var(--info); }
.tbl .note-chip.signal { background: var(--signal-bg); color: var(--signal); }
.tbl .note-chip.muted { background: var(--surface-2); color: var(--muted); }
a.note-chip:hover { text-decoration: underline; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--info-bg); display: grid; gap: 10px; }
.timeline li { position: relative; display: grid; gap: 2px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--info); box-shadow: 0 0 0 3px var(--surface); }
.timeline .date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
details.card-f > summary { cursor: pointer; color: var(--brand); }
details.card-f[open] { display: block; }
.fbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; padding: 14px 16px; }
.fbar .fl { display: grid; gap: 4px; min-width: 150px; flex: 1 1 160px; } .fbar .fl.sm { flex: 0 1 110px; min-width: 100px; }
.fbar .fl > span { font-size: 12px; color: var(--muted); font-weight: 500; }
.fbar .btn { flex: none; }
.osum { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0; }
.osum .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-right: 1px solid var(--line); }
.osum .nums > div { background: var(--surface); padding: 14px 18px; display: grid; gap: 2px; align-content: center; }
.osum .nums b { font-size: 22px; line-height: 28px; font-weight: 620; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.osum .nums span { font-size: 12.5px; color: var(--muted); }
.osum .nums .sig b { color: var(--signal); }
.osum .hist { padding: 12px 16px 10px; } .osum .hist .chart { min-height: 130px; }
.tbl th.sort a { color: inherit; text-decoration: none; }
@media (max-width: 960px) { .osum { grid-template-columns: 1fr; } .osum .nums { border-right: 0; border-bottom: 1px solid var(--line); } .fbar .fl { flex: 1 1 100%; } .fbar .fl.sm { flex: 1 1 40%; } }
.tbl td.c-full { min-width: 160px; max-width: 220px; }
.tbl .track { width: 104px; }
.osum .nums > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fbar .more-f { display: none; }
@media (max-width: 960px) {
  .fbar.collapsed .fl:not(:first-of-type) { display: none; }
  .fbar .more-f { display: inline-flex; }
  .fbar { align-items: stretch; }
  .fbar .btn { flex: 1; }
  .page-h .end { width: 100%; } .page-h .end .btn { flex: 1; }
}
.tbl tr.grp td { background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 7px 18px; }
.tbl a.src { text-decoration: none; margin-top: 4px; } .tbl a.src:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 640px) { .tbl.stack tr.grp { padding: 8px 16px; background: var(--surface-2); } .tbl.stack tr.grp td { padding: 0; background: none; } }
/* public data pages on the site (company, buyer) */
body.public { background: #fbfbfa; }
body.public .app-bar { border-bottom: 1px solid var(--line); background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; }
body.public .app-bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
body.public .app-bar .btn { margin-left: auto; }
body.public .public-content { max-width: 1200px; }
body.public .jumpbar { top: 64px; }
@media (max-width: 960px) { body.public .entity .acts { flex-wrap: wrap; } body.public .entity .acts .btn { flex: 1 1 auto; } }
@media (max-width: 860px) { body.public .jumpbar { top: 60px; } }

/* ---- polish after review F (files/reviews/F-ui-polish.md) ---- */
/* chips stay one line; subjects clamp to two lines */
.tbl .note-chip { white-space: nowrap; }
.tbl td.c-full { min-width: 210px; max-width: 260px; }
.tbl td.c-full.inc { min-width: 200px; }
.tbl .t-sub a[title] { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* one rule for entity names: ink in tables (brand on hover), brand in prose */
.tbl a.t-main, .tbl td.c-main > a:first-child { color: var(--ink); font-weight: 500; }
.tbl a.t-main:hover { color: var(--brand); text-decoration: underline; text-decoration-color: var(--line-strong); }
/* "show 50 more" footer */
.tbl-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); }
/* opportunities histogram header */
.osum .hist-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: 13.5px; }
.osum .nums { grid-template-columns: 1fr 1fr; }
/* balanced two-column sections */
.grid-2 { align-items: stretch; }
.grid-2 > .card { display: flex; flex-direction: column; }
.grid-2 > .card > .chart-pane { flex: 1; }
.cats .catrow { grid-template-columns: minmax(0, 1.4fr) minmax(60px, .7fr) auto; }
.cats details summary { cursor: pointer; color: var(--brand); font-size: 13px; padding-top: 10px; }
/* phone list rows: date with relative time on one line, separators never start a line */
@media (max-width: 640px) {
  .tbl.stack td.c-meta.date .t-sub { display: inline; margin-left: 6px; }
  .tbl.stack td.dl { order: -1; flex-basis: 100%; }
  .tbl.stack td.c-full.inc { order: 3; }
}
/* tenders: deadline block, master-detail with a sticky panel (mockups/tenders.html) */
.tn-md { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 14px; }
.tn-md.has-panel { grid-template-columns: minmax(0, 1fr) 440px; }
.tn-md > .card { min-width: 0; }
.tn-tbl td.dl { width: 74px; text-align: center; vertical-align: top; }
.tn-tbl td.dl b { display: block; font-size: 18px; line-height: 20px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--ink); }
.tn-tbl td.dl small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tn-tbl td.dl .left { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 650; color: var(--signal); background: var(--signal-bg); border-radius: var(--r-pill); padding: 2px 7px; white-space: nowrap; }
.tn-tbl td.dl .left.urgent { color: var(--danger); background: var(--danger-bg); }
.tn-tbl td.dl .left.far { color: var(--muted); background: var(--surface-2); }
.tn-row { position: relative; }
.tn-row.sel > td { background: var(--brand-soft); }
.tn-row.sel > td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.tn-detail { position: sticky; top: calc(var(--topbar-h, 56px) + 16px); max-height: calc(100dvh - var(--topbar-h, 56px) - 32px); overflow: auto; padding: 0; }
.tn-detail .hd { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tn-detail .hd-top { display: flex; gap: 6px; align-items: center; }
.tn-detail .tn-close { margin-left: auto; }
.tn-detail h2 { font-size: 17px; line-height: 24px; letter-spacing: -.015em; margin: 6px 0 4px; }
.tn-detail .hd > a { font-size: 13px; }
.tn-detail .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.tn-detail .facts > div { background: var(--surface); padding: 12px 20px; }
.tn-detail .facts span { display: block; font-size: 11.5px; color: var(--muted); }
.tn-detail .facts b { display: block; font-size: 15px; font-weight: 620; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tn-detail .facts b.w { font-size: 14px; font-weight: 500; }
.tn-detail .sec { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tn-detail .sec h3 { font-size: 12px; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; }
.hist-i { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; font-size: 13px; position: relative; }
.hist-i::before { content: ""; position: absolute; left: 4px; top: 22px; bottom: -8px; width: 2px; background: var(--line); }
.hist-i:last-of-type::before { display: none; }
.hist-i .d { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); margin-top: 5px; }
.hist-i.now .d { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hist-i > div > a:first-child { font-weight: 600; color: var(--ink); }
.hist-i span { display: block; font-size: 12px; color: var(--muted); }
.hist-i span a { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hist-i .v { text-align: right; font-weight: 600; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-detail .ft { padding: 14px 20px; display: flex; gap: 8px; flex-wrap: wrap; }
/* with the panel open the list keeps date, subject and value; "Kto to robí dnes" is in the panel */
@media (min-width: 1181px) { .has-panel .tn-tbl th:nth-child(3), .has-panel .tn-tbl td.inc { display: none; } .tn-row { cursor: pointer; } .tn-row:hover > td { background: #fafbf9; } .tn-row.sel:hover > td { background: var(--brand-soft); } }
@media (max-width: 1180px) { .tn-md.has-panel { grid-template-columns: 1fr; } .tn-detail { display: none; } }
@media (max-width: 640px) {
  .tbl.stack.tn-tbl td.dl { width: auto; text-align: left; display: flex; align-items: baseline; gap: 6px; }
  .tbl.stack.tn-tbl td.dl b { display: inline; font-size: 16px; }
  .tbl.stack.tn-tbl td.dl small { display: inline; }
  .tbl.stack.tn-tbl td.dl .left { margin: 0 0 0 4px; }
}
/* Analýza pages and the chart components (map, flow, treemap, grapher): pill controls (vkPills), design-system inputs */
.an-card { min-width: 0; overflow-x: clip; }  /* wide charts never widen the page; menus still open downwards */
.cmp-pick + .an-card { margin-top: 14px; }
.an-note { display: flex; gap: 6px; align-items: center; margin-top: 12px; }
.an-note .i { width: 14px; height: 14px; flex: none; }
body .vm-c, body .vf-c, body .vt-c, body .vg-c { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.vkp { display: inline-flex; }
body .vm-c label, body .vf-c label, body .vt-c label, body .vg-c label { display: inline-flex; align-items: center; gap: 6px; }
.vm-c input[type=number], .vf-c input[type=number], .vt-c input[type=number] { width: 72px; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); font: 13px var(--font-sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.vf-c select, .vf-c .vf-q { height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); font: 13px var(--font-sans); color: var(--ink); }
.vf-c .vf-back { height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); font: 500 13px var(--font-sans); cursor: pointer; }
.vg-c input[type=range] { accent-color: var(--brand); }
/* chart footer (vkFoot): the source line, then one toolbar of small ghost buttons (CSV, link, pin, embed).
   body + class: the components inject their own <style> after app.css */
body .vg-src, body .vm-src, body .vf-src, body .vt-src { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cf-src { font-size: 12px; line-height: 17px; color: var(--muted); max-width: 900px; }
.cf-bar { display: flex; flex-wrap: wrap; gap: 2px; margin: 6px 0 0 -10px; }
body .cf-bar a { margin: 0; }
.cf-bar .btn .i { width: 14px; height: 14px; }
.cf-bar .vk-emb-box { flex: 1 1 100%; margin-left: 10px; }
.vm-leg { gap: 4px 14px !important; } .vm-leg i { width: 24px !important; height: 8px !important; }
@media (max-width: 720px) {
  .an-card.card-pad { padding: 14px; }
  /* body + class: the components inject their own <style> after app.css */
  body .vm-c, body .vf-c, body .vt-c, body .vg-c { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 0 14px 2px; }
  .vm-c::-webkit-scrollbar, .vf-c::-webkit-scrollbar, .vt-c::-webkit-scrollbar, .vg-c::-webkit-scrollbar { display: none; }
  body .vm-c > *, body .vf-c > *, body .vt-c > *, body .vg-c > * { flex: none; }
  /* a scrolling row would clip the menus: on phones they open as a bottom sheet */
  .vkp details.fp[open] .menu { position: fixed; left: 8px; right: 8px; bottom: calc(var(--tabbar-h, 64px) + 8px); top: auto; max-width: none; width: auto; max-height: 60vh; }
}
/* boards */
.vb-new[hidden] { display: none; }
.vb-new { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.vb-new .input { flex: 1; }
.vb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.vb-card { display: grid; gap: 6px; padding: 16px 18px; color: var(--ink); text-decoration: none; transition: border-color var(--d-fast), transform var(--d-fast); }
.vb-card:hover { border-color: var(--brand-soft-2); transform: translateY(-1px); text-decoration: none; }
.vb-card .vb-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.vb-card b { font-size: 15px; line-height: 21px; }
.vb-card .chip { justify-self: start; gap: 5px; } .vb-card .chip .i { width: 12px; height: 12px; }
.vb-steps { list-style: none; display: grid; gap: 8px; margin: 6px 0 10px; padding: 0; text-align: left; color: var(--ink-2); font-size: 13px; }
.vb-steps li { display: flex; gap: 10px; align-items: center; }
.vb-steps span { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--brand); }
.vb-steps .i { width: 14px; height: 14px; }
.vb-own { display: flex; gap: 6px; align-items: center; margin-top: 14px; } .vb-own .i { width: 14px; height: 14px; }
/* one board: page header, share link, full-width grid of card tiles with a drag handle and an actions menu */
.vb-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; } .vb-meta .chip .i { width: 12px; height: 12px; }
.vb-link { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; } .vb-link > .i { width: 16px; height: 16px; color: var(--muted); flex: none; }
.vb-link .input { flex: 1; min-width: 0; height: 32px; }
.vb-danger, .menu .m-item.vb-danger { color: var(--danger); } .menu .m-item.vb-danger .i { color: var(--danger); }
.vb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 16px; align-items: start; }
.vb-tile { padding: 12px 16px 14px; min-width: 0; overflow-x: clip; }
.vb-tile.drag { opacity: .45; outline: 2px dashed var(--brand); }
.vb-head { display: flex; gap: 8px; align-items: center; margin: -2px -6px 10px 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.vb-head b { flex: 1; min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.vb-drag { display: inline-grid; place-items: center; width: 20px; height: 28px; margin-left: -6px; color: var(--muted); cursor: grab; touch-action: none; } .vb-drag .i { width: 16px; height: 16px; }
.vb-more { position: relative; } .vb-more > summary { list-style: none; } .vb-more > summary::-webkit-details-marker { display: none; }
@media (min-width: 721px) { details.fp.vb-more .menu { right: 0; left: auto; top: calc(100% + 4px); min-width: 220px; } }
.vb-tile .vk-art { margin: 0; }
.vb-tile .vk-art-bar b { display: none; } .vb-tile .vk-art-live { margin-right: auto; }  /* the tile head already carries the title */
@media (hover: none), (pointer: coarse) { .vb-drag { display: none; } }
@media (max-width: 720px) { .vb-tile { padding: 12px 14px; } .vb-grid { gap: 12px; } }
/* site: the phone header keeps the menu only (the hero carries the CTA) */
@media (max-width: 600px) { .site-header .end .btn-dark { display: none; } }
body.public .jumpbar { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

/* filter bar (pages.rs filter_bar): saved-search tabs, text search, pills with popovers.
   Desktop: search and pills share one wrapping row (.fb is display: contents), sort on the right.
   Phone: search on its own line, pills in a sideways-scrolling row, popovers as bottom sheets. */
.views { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.views::-webkit-scrollbar { display: none; }
.views a { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; color: var(--muted); font-weight: 500; white-space: nowrap; position: relative; text-decoration: none; }
.views a:hover { color: var(--ink); text-decoration: none; }
.views a .i { width: 14px; height: 14px; }
.views a.on { color: var(--ink); } .views a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.views a .badge { background: var(--signal); }
.views:not(.has) { display: none; }
.fb-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 16px; }
.fb { display: contents; }
.fb-wrap .fsearch { flex: 0 1 230px; }
.fb-wrap .fsearch .input { width: 100%; height: 32px; border-radius: var(--r-pill); }
details.fp { position: relative; }
details.fp > summary { list-style: none; cursor: pointer; user-select: none; white-space: nowrap; }
details.fp > summary::-webkit-details-marker { display: none; }
details.fp[open] > summary { border-color: var(--muted); }
details.fp .menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: max-content; max-width: 340px; max-height: 380px; overflow: auto; overscroll-behavior: contain; }
details.fp .menu a { height: auto; min-height: 34px; padding: 7px 10px; line-height: 1.3; }
details.fp.fp-sort { margin-left: auto; } details.fp.fp-sort .menu { left: auto; right: 0; }
details.fp .fp-title { display: none; }
details.fp .menu a.sel { color: var(--brand-ink); font-weight: var(--w-semibold); } details.fp .menu a.sel .i { color: var(--brand); }
.fpill.clear { text-decoration: none; color: var(--muted); border-style: dashed; } .fpill.clear:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) {
  .fb-wrap { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .fb-wrap .fsearch { flex: auto; }
  .fb { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .fb::-webkit-scrollbar { display: none; }
  .fb > * { flex: none; }
  details.fp.fp-sort { margin-left: 0; }
  details.fp .menu, details.fp.fp-sort .menu { position: fixed; left: 8px; right: 8px; width: auto; max-width: none; top: auto; bottom: calc(72px + env(safe-area-inset-bottom)); max-height: 60vh; z-index: 120; }
  details.fp .menu a { min-height: 44px; }
  details.fp .fp-title { display: block; font-weight: var(--w-semibold); color: var(--ink); }
  /* the dimmed page behind the sheet; a tap on it toggles the summary and closes the sheet */
  details.fp[open] > summary::before { content: ""; position: fixed; inset: 0; background: rgb(15 23 20 / .28); z-index: 110; cursor: default; }
}

/* alerts and watchlist (pages.rs alerts_html, mockups/alerts.html) */
.seg-wrap { margin-bottom: 16px; }
.al-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.feed .grp-h { padding: 10px 18px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; gap: 8px; }
.feed .grp-h:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
.feed .grp-h span { color: var(--muted); font-weight: 400; }
.it { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); position: relative; }
.it:last-child { border-bottom: 0; }
.it.unread::before { content: ""; position: absolute; left: 7px; top: 30px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.it .ic, .wrow .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.it .k { font-size: 12px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.it .k .why { font-weight: 400; color: var(--muted); }
.it .tt { display: block; font-size: 14px; font-weight: 550; line-height: 20px; margin-top: 3px; color: var(--ink); text-decoration: none; }
.it .tt:hover { text-decoration: underline; }
.it .sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.it .sub a { color: var(--ink-2); }
.it .side { text-align: right; display: grid; gap: 4px; justify-items: end; align-content: start; }
.it .side b { font-variant-numeric: tabular-nums; font-weight: 620; white-space: nowrap; } .it .side b.nb { font-weight: 500; }
.it .side small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.row-acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.it .row-acts { justify-content: flex-start; grid-column: 2 / -1; margin-top: -4px; }
.k-tender { color: var(--info); } .ic-tender { background: var(--info-bg); color: var(--info); }
.k-end { color: var(--signal); } .ic-end { background: var(--signal-bg); color: var(--signal); }
.k-award { color: var(--ok); } .ic-award { background: var(--ok-bg); color: var(--ok); }
.k-new { color: var(--ink-2); } .ic-new { background: var(--surface-2); color: var(--ink-2); }
.side-col { display: grid; gap: 16px; position: sticky; top: calc(var(--topbar-h, 56px) + 20px); }
.wl { padding: 4px 18px 10px; }
.wl a.r { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; text-decoration: none; min-width: 0; }
.wl a.r:last-child { border-bottom: 0; } .wl a.r.more { color: var(--muted); }
.wl a.r .i { color: var(--muted); flex: none; } .wl a.r .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl a.r .n { margin-left: auto; color: var(--brand-ink); font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dg { padding: 14px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dg div b { display: block; font-size: 20px; font-weight: 620; font-variant-numeric: tabular-nums; }
.dg div span { font-size: 12px; color: var(--muted); }
.deliv { display: flex; gap: 10px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.deliv .i { color: var(--muted); flex: none; } .deliv span { flex: 1; } .deliv .btn { white-space: nowrap; }
.dlg { border: 1px solid var(--line); border-radius: var(--r-lg, 14px); padding: 0; width: min(640px, calc(100vw - 32px)); box-shadow: var(--sh-3); }
.dlg::backdrop { background: rgb(15 23 20 / .35); }
.dlg pre { margin: 0; padding: 16px 18px; max-height: 60vh; overflow: auto; white-space: pre-wrap; font: 12.5px/1.55 var(--font-mono); background: var(--surface-2); }
.wl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.wrow { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.wrow:last-child { border-bottom: 0; }
.wrow .nm { display: block; color: var(--ink); font-weight: 550; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wrow .nm:hover { text-decoration: underline; }
@media (max-width: 1100px) { .al-layout, .wl-grid { grid-template-columns: 1fr; } .side-col { position: static; } }
@media (max-width: 720px) {
  .it { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 16px 14px 18px; }
  .it .ic { width: 32px; height: 32px; border-radius: 9px; }
  .it .side { grid-column: 2; justify-items: start; text-align: left; display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
  .it.unread::before { left: 6px; }
  .seg-wrap { overflow-x: auto; margin: 0 -16px 16px; padding: 0 16px; scrollbar-width: none; }
  .wrow { grid-template-columns: 32px minmax(0, 1fr) auto; } .wrow .btn { grid-column: 2 / -1; justify-self: start; }
  .page-h .end #my-run { display: none; }
}

/* folded tender lots on the buyer page (review F #10) */
.tbl tr.lotgrp .c-main { position: relative; padding-left: 40px; }
.tbl tr.lotgrp .fold { position: absolute; left: 10px; top: 12px; width: 22px; height: 22px; }
.tbl tr.lotgrp .fold .i { transition: transform .15s; } .tbl tr.lotgrp .fold[aria-expanded="true"] .i { transform: rotate(90deg); }
.tbl tr.child > td { background: var(--surface-2); } .tbl tr.child .c-main { padding-left: 40px; }
@media (max-width: 720px) { .tbl tr.lotgrp .c-main, .tbl tr.child .c-main { padding-left: 32px; } .tbl tr.lotgrp .fold { left: 0; top: 0; } }

/* invoices and EU-funds sections (review F #13) */
.kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi .v.v-name { font-size: 17px; line-height: 24px; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-h .chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
details.fold-card > summary { list-style: none; cursor: pointer; } details.fold-card > summary::-webkit-details-marker { display: none; }
details.fold-card:not([open]) > summary { border-bottom: 0; }
@media (max-width: 720px) { .kpis.kpis-3 { grid-template-columns: 1fr; } .card-h .chips { display: none; } }
/* opportunities at 1280 px: the amount column must fit (review H, B #8): the deal-window track goes below 1360 px */
@media (max-width: 1360px) { .tbl .c-hide-l { display: none; } }
.tbl th.c-buyer { min-width: 180px; }
#zoznam tr[id] { scroll-margin-top: 72px; }
.tbl .note-chip { max-width: 100%; white-space: normal; }
/* phones: long role labels and chip rows wrap instead of widening the page (review H, B-company #3) */
.roles .overline { overflow-wrap: anywhere; }
.roles .chip { white-space: normal; max-width: 100%; }
main.content { overflow-x: clip; }
/* tender detail as a bottom sheet below 1181 px (review H, B-tenders #1) */
.tn-scrim { position: fixed; inset: 0; background: rgba(16, 20, 18, .38); z-index: 900; }
@media (max-width: 1180px) {
  .tn-detail.sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow: auto; z-index: 901;
    background: var(--surface); border-radius: 16px 16px 0 0; box-shadow: var(--sh-3); padding-bottom: env(safe-area-inset-bottom); }
  .tn-detail.sheet::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 8px auto 0; }
}
/* phones: control bars scroll sideways; a fade at the right edge says there is more (review H, C #10) */
@media (max-width: 720px) {
  body .vm-c, body .vf-c, body .vt-c, body .vg-c, .fb { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
}
/* alerts grouped by source (review H, C-alerts #1) */
.feed .grp-s { display: flex; justify-content: space-between; gap: 8px; padding: 12px 18px 4px; font-size: 13px; font-weight: 600; color: var(--ink); }
.feed .grp-s .muted { font-weight: 400; }
.feed .grp-btn { margin: 4px 18px 10px; }
.feed .grp-more[hidden] { display: none !important; }
/* phones: page leads take two lines at most, so the list starts on the first screen (review H, B-opportunities #11) */
@media (max-width: 640px) { .page-h .lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
/* board tiles: chart, title and source only; the tool controls open with "Upraviť pohľad" (review H, C-boards #1) */
.vb-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.vb-tile:not(.edit) :is(.vg-c, .vm-c, .vf-c, .vt-c, .vf-crumbs) { display: none; }
.vb-tile .vg-ov { display: none; }
.vb-tile .cf-bar > :not(.vg-csv) { display: none; }
