/* FinTrace — стилі сайту.
   Оформлення «Бічне меню» вибрав власник 16.11.2026 з чотирьох варіантів (ПЛАН_САЙТУ.md, розд. 10в):
   темно-синя панель розділів зліва, шрифт Manrope, заголовок сторінки на світлому тлі. */

:root {
  --bg: #F3F5F8; --card: #FFFFFF; --text: #16202E; --muted: #566173;
  --line: #E1E5EC; --line2: #EEF1F5; --inline: #C7CEDA;
  --accent: #0F6FDE; --link: #0B5CBA; --linkh: #084A97;
  --navbg: #24508F; --navtext: #FFFFFF;
  --good: #17693A; --warn: #8A4B00; --accent2: #D9822B;
  --c1: #0F6FDE; --t1: #E3EEFC; --c2: #0E7C6B; --t2: #DFF3EF;
  --c3: #D9822B; --t3: #FBEBD9; --c4: #6D3FC0; --t4: #EEE6FA;
  --soft: #E8ECF2;
  --font: Manrope, system-ui, "Segoe UI", sans-serif; --font-head: var(--font);
  --r-card: 14px; --r-ctl: 10px; --r-hero: 0px;
  /* шапка сторінки — без кольорового банера */
  --hero: transparent; --hero-fg: var(--text); --herotext: var(--muted);
  --seg-bg: var(--soft); --seg-fg: var(--text); --seg-hover: var(--line); --seg-cur-bg: var(--card); --seg-cur-fg: var(--link);
  /* бічна панель — основний колір бренду «FinTrace» #102F63 */
  --side: #102F63; --side-fg: #D3DDEE; --side-dim: #9DAECB; --side-line: #2A4C85;
  --scroll-shade: rgba(16, 32, 64, 0.18); --btn-primary: var(--accent); --btn-primary-h: var(--linkh);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E131B; --card: #161E2A; --text: #E6EAF2; --muted: #A3ADBD;
  --line: #2A3443; --line2: #212A37; --inline: #3A4658;
  --accent: #3B8BEB; --link: #8DBBF7; --linkh: #B5D3FA;
  --good: #6AD397; --warn: #F0B45A; --accent2: #F0A24A;
  --c1: #8DBBF7; --t1: #1D3355; --c2: #5FD3BE; --t2: #143A35;
  --c3: #F0A86A; --t3: #43301E; --c4: #B9A0F2; --t4: #2E2548;
  --soft: #212A37;
  --side: #0B1B38; --side-line: #22385E; --navbg: #1F4580;
  /* головні кнопки темніші за --accent: білий текст на #3B8BEB мав контраст 3,5 (потрібно 4,5) — 21.11.2026 */
  --scroll-shade: rgba(0, 0, 0, 0.55); --btn-primary: #2167C4; --btn-primary-h: #1A56A6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
a { color: var(--link); }
a:hover { color: var(--linkh); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, .brand, .kpi .val { font-family: var(--font-head); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { text-align: right; white-space: nowrap; }
.strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* сховане (атрибут hidden) — сховане завжди, навіть якщо в елемента є display (кнопка «Прибрати цей банк» була видна; 21.11.2026) */
[hidden] { display: none !important; }

/* ---------- меню: темно-синя панель зліва; на вузькому екрані — смуга зверху ---------- */
.top { background: var(--side); }
.top-in { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
/* логотип: знак (білий — меню завжди темне) + назва «FinTrace» текстом (рішення власника 18.11.2026:
   назву змінено, знак і колір #102F63 — без змін) */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #FFFFFF; }
.brand:hover { color: #FFFFFF; }
.brand img { display: block; height: 24px; width: auto; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: 0.01em; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav a, .nav span { padding: 12px 14px; border-radius: var(--r-ctl); color: var(--side-fg); font-size: 14px; text-decoration: none; }
.nav a[aria-current="page"] { background: var(--navbg); color: var(--navtext); font-weight: 600; }
.nav a:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.nav .soon { color: var(--side-dim); cursor: default; }
/* пошук у меню (етап А3) */
.top-search { flex: 1 1 220px; max-width: 420px; }
.top-search input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08); color: #FFFFFF; font: inherit; font-size: 14px;
}
.top-search input::placeholder { color: var(--side-dim); }
.top-search input:focus { outline: 2px solid var(--navbg); outline-offset: 1px; background: rgba(255, 255, 255, 0.14); }
.search-big .pfield.wide { flex: 1 1 420px; }
.search-big .pfield.wide input { width: 100%; }
td.links a { font-size: 13px; white-space: nowrap; }
/* карта України на сторінці «Області» (етап А5; вигляд як в OpenBudget — рішення власника 17.11.2026):
   уся карта одного кольору, область під курсором — світліша/іншого відтінку, вибрана — насичена */
:root { --mbase: #C9D6EA; --mhover: #8FB0E3; --msel: #0F6FDE; --mline: #FFFFFF; --mocc: #E1E4E9; --mocc2: #C5CAD3; }
:root[data-theme="dark"] { --mbase: #2A3A55; --mhover: #3F5C8C; --msel: #3B8BEB; --mline: #0E131B; --mocc: #222A36; --mocc2: #333D4C; }
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.map-svg svg { width: 100%; height: auto; display: block; }
.reg { fill: var(--mbase); stroke: var(--mline); stroke-width: 1.4; stroke-linejoin: round; transition: fill .12s; cursor: pointer; }
.reg-a:hover .reg, .reg-a:focus .reg { fill: var(--mhover); }
/* 21.11.2026: області зафарбовано за сумою (q1 — найменше … q5 — найбільше); вибрана — обведена, а не зафарбована */
.reg-a.q1 .reg, .ml-q1 { fill: color-mix(in srgb, var(--msel) 14%, var(--mbase)); background: color-mix(in srgb, var(--msel) 14%, var(--mbase)); }
.reg-a.q2 .reg, .ml-q2 { fill: color-mix(in srgb, var(--msel) 32%, var(--mbase)); background: color-mix(in srgb, var(--msel) 32%, var(--mbase)); }
.reg-a.q3 .reg, .ml-q3 { fill: color-mix(in srgb, var(--msel) 52%, var(--mbase)); background: color-mix(in srgb, var(--msel) 52%, var(--mbase)); }
.reg-a.q4 .reg, .ml-q4 { fill: color-mix(in srgb, var(--msel) 74%, var(--mbase)); background: color-mix(in srgb, var(--msel) 74%, var(--mbase)); }
.reg-a.q5 .reg, .ml-q5 { fill: var(--msel); background: var(--msel); }
.reg-a:hover .reg, .reg-a:focus .reg { fill: var(--mhover); }
.reg-a.sel .reg { stroke: var(--text); stroke-width: 3; }
.reg-a.sel { paint-order: stroke; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 16px; height: 10px; border-radius: 2px; display: inline-block; }
.reg.occ { fill: url(#occ); cursor: default; }
.occ-bg { fill: var(--mocc); } .occ-line { stroke: var(--mocc2); stroke-width: 3; }
.reg.kyiv { stroke-width: 2.5; }
.reg-a:focus { outline: none; }
.mp-pick { display: flex; flex-direction: column; gap: 6px; }
.mp-pick label { font-size: 12px; color: var(--muted); }
.mp-pick select { width: 100%; }
.map-panel { border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.map-panel h3 { margin: 0; font-size: 18px; }
.map-panel dl { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; }
.map-panel dt { font-size: 12px; color: var(--muted); margin-top: 6px; }
.map-panel dd { margin: 0; font-size: 15px; }
.map-panel dd b { font-size: 20px; }
.map-panel .btn { align-self: flex-start; display: inline-flex; align-items: center; text-decoration: none; }
.map-panel [hidden] { display: none !important; }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } }

/* блок «Конкуренція» */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 8px; }
.comp-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); }
.comp-tile .lab { font-size: 12px; color: var(--muted); }
.comp-tile .val { font-size: 24px; font-weight: 700; }
.comp-tile .sub { font-size: 12px; color: var(--muted); }
.comp-tile .sub.cmp { color: var(--text); }
/* «Бюджет України» на «Огляді» */
.uab-tabs button { border: 0; background: transparent; color: inherit; font: inherit; padding: 6px 12px; border-radius: var(--r-ctl); cursor: pointer; }
.uab-tabs button[aria-selected="true"] { background: var(--btn-primary); color: #fff; }
.uab-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 8px; }
.uab-gauge { margin: 0; flex: 0 0 240px; }
.uab-gauge svg { width: 240px; height: auto; display: block; }
.uab-gauge .g-track, .uab-gauge .g-fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.uab-gauge .g-track { stroke: var(--line); }
.uab-gauge .g-fill { stroke: var(--accent); }
.uab-gauge .g-even { stroke: var(--text); stroke-width: 2.5; }
.uab-gauge .g-val { text-anchor: middle; font-size: 26px; font-weight: 700; fill: var(--text); }
.uab-gauge .g-sub { text-anchor: middle; font-size: 11px; fill: var(--muted); }
.uab-nums { display: grid; grid-template-columns: auto auto; gap: 6px 18px; margin: 0; }
.uab-nums dt { color: var(--muted); font-size: 13px; }
.uab-nums dd { margin: 0; font-weight: 600; }
.uab-secs { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.uab-sec { display: grid; grid-template-columns: minmax(150px, 1.2fr) 2fr minmax(140px, auto); gap: 12px; align-items: center; font-size: 13px; }
.uab-bar { position: relative; height: 12px; }
.uab-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.uab-bar i.p { background: var(--line); }
.uab-bar i.d { background: var(--accent); }
.uab-val { text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
  .uab-sec { grid-template-columns: 1fr; gap: 4px; }
  .uab-val { text-align: left; }
}
/* клікабельні показники «Огляду» */
a.kpi-link { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.kpi-link:hover, a.kpi-link:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
a.kpi-link .lab::after { content: " →"; color: var(--muted); }
/* картка-показник із кількома посиланнями: уся картка веде за головним (a.stretch), інші посилання — поверх */
.kpi-click { position: relative; transition: border-color .15s, transform .15s; }
.kpi-click:hover, .kpi-click:focus-within { border-color: var(--accent); transform: translateY(-1px); }
.kpi-click a.stretch { display: block; color: var(--muted); text-decoration: none; }
.kpi-click a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.kpi-click a.stretch::before { content: "→ "; float: right; color: var(--muted); }
.kpi-click a.raise { position: relative; z-index: 1; }
.hbar a { color: var(--text); text-decoration: none; }
.hbar a:hover { color: var(--link); text-decoration: underline; }
/* верхня смуга сторінки: поділитися, зберегти, тема, кабінет, вихід (зауваження власника 18.11.2026) */
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.tb-left, .tb-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tb-right { margin-left: auto; }
.tb-left form, .tb-form { margin: 0; display: flex; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.btn.sm svg { flex: 0 0 auto; color: var(--muted); }
/* картка організації: швидкий перехід до всіх платежів Казначейства (21.11.2026) */
.quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; color: var(--muted); font-size: 14px; }
.theme-sw { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 4px 6px; cursor: pointer; color: var(--muted); border-radius: 999px; }
.sw-track { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--inline); transition: background .2s; flex: 0 0 auto; }
.sw-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s; }
.theme-sw[aria-checked="true"] .sw-track { background: #34C759; }
.theme-sw[aria-checked="true"] .sw-knob { transform: translateX(20px); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 4px; border: 1px solid var(--inline); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; max-width: 260px; }
.user-chip:hover, .user-chip[aria-current="page"] { border-color: var(--accent); color: var(--text); }
.user-chip .avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--t1); color: var(--c1); display: flex; align-items: center; justify-content: center; }
.uc-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; min-width: 0; }
.uc-text b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-text small { font-size: 11px; color: var(--link); }
.side-admin { color: var(--side-dim); font-size: 13px; padding: 8px 14px; text-decoration: none; }
.side-admin:hover { color: #FFFFFF; }
.login-card { max-width: 420px; margin: 40px auto; display: flex; flex-direction: column; gap: 14px; }
.login-card form { display: flex; flex-direction: column; gap: 12px; }
.login-card input { width: 100%; }
.login-err { color: var(--danger, #c62828); font-weight: 600; margin: 0; }
.report-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.report-form .pfield { flex: 1 1 260px; }
/* «Топ постачальників» на сторінці області (26.11.2026): вибір 10 / 20 / 30 і кнопка в одному рядку */
.tops-form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.tops-form select { width: auto; min-width: 96px; }
/* форма ручної частини об'єктивки */
.rf h2 { margin-top: 20px; }
.rf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rf-grid input, .rf-table input, .rf textarea { width: 100%; }
.rf textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card, transparent); color: var(--text); }
.rf-table td:first-child { white-space: nowrap; }
.rf h3 { margin: 18px 0 4px; font-size: 15px; }
.rf-art { display: flex; gap: 8px; margin-bottom: 8px; }
.rf-art input[name="art"] { flex: 1 1 200px; }
.rf-art input[name="art_n"] { flex: 0 0 90px; width: 90px; }
.rf-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
/* бюджет області: смуга виконання, риска — рівномірне виконання */
.bud-total { margin: 4px 0 0; }
.bud-bar { position: relative; height: 10px; margin: 6px 0 2px; background: var(--line); border-radius: 3px; }
.bud-bar i { position: absolute; inset: 0 auto 0 0; max-width: 100%; background: var(--accent); border-radius: 3px; }
.bud-bar b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); }
.bud .tbl-scroll { margin-top: 16px; }
td.hl { font-weight: 700; }

/* картка організації (етап А4): назви бувають дуже довгі */
.hero h1.org-title { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; }
/* картки договору й закупівлі: коротка назва в заголовку, повний предмет — звичайним текстом під ним (21.11.2026) */
.hero h1.doc-title { font-size: clamp(18px, 1.9vw, 23px); }
.doc-subject { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 980px; }
.org-meta { font-size: 14px; }
.btn {
  height: 44px; padding: 0 16px; border: 1px solid var(--inline); border-radius: var(--r-ctl);
  background: var(--card); color: var(--text); font: inherit; font-size: 14px; cursor: pointer;
}
.btn:hover { background: var(--soft); }
@media (min-width: 960px) {
  body { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
  .top { position: sticky; top: 0; height: 100vh; align-self: start; }
  .top-in { flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding: 22px 14px; gap: 20px; height: 100%; }
  .brand { padding: 2px 10px 0; }
  .brand img { height: 30px; }
  .brand-name { font-size: 23px; }
  .nav { flex-direction: column; flex: 0 0 auto; gap: 2px; }
  .top-search { flex: 0 0 auto; max-width: none; }
  .side-admin { margin-top: auto; }
  .wrap { width: 100%; min-width: 0; }      /* інакше вміст виходить за ширину колонки */
}

/* ---------- каркас ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; min-width: 0; }
.card h2 { font-size: 16px; font-weight: 600; }
.card h3 { font-size: 13px; font-weight: 600; color: var(--muted); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.two { display: flex; flex-wrap: wrap; gap: 16px; }
.two > * { flex: 1 1 420px; }
.note { font-size: 12px; color: var(--muted); margin-top: 12px; }
.note + .note { margin-top: 4px; }

/* ---------- шапка сторінки ---------- */
.hero { background: var(--hero); color: var(--hero-fg); border-radius: var(--r-hero); padding: 4px 4px 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.hero-text { flex: 1 1 320px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--herotext); }
.hero h1 { margin-top: 4px; font-size: 30px; font-weight: 700; }
.hero p { margin-top: 8px; font-size: 13px; color: var(--herotext); max-width: 760px; }
.hero p a { color: var(--link); }
.hero .gerb { flex: 0 0 auto; width: 96px; height: 112px; object-fit: contain; align-self: center; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label, .field > .lab { font-size: 12px; color: var(--herotext); display: flex; align-items: center; gap: 6px; }
select {
  font: inherit; color: var(--text); height: 44px; padding: 0 12px; border: 1px solid var(--inline);
  border-radius: var(--r-ctl); background: var(--card); min-width: 240px; max-width: 100%;
}
.seg { display: inline-flex; height: 44px; border-radius: var(--r-ctl); background: var(--seg-bg); padding: 3px; gap: 3px; }
.seg a { display: flex; align-items: center; padding: 0 14px; border-radius: calc(var(--r-ctl) - 2px); color: var(--seg-fg); text-decoration: none; font-size: 14px; white-space: nowrap; }
.seg a:hover { background: var(--seg-hover); color: var(--seg-fg); }
.seg a[aria-current="true"] { background: var(--seg-cur-bg); color: var(--seg-cur-fg); font-weight: 600; }

/* позначка «i» з поясненням */
.info { position: relative; display: inline-flex; }
.info > button {
  width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid currentColor; background: transparent;
  color: inherit; font: 600 11px/1 var(--font); cursor: help;
}
.info .tip {
  display: none; position: absolute; z-index: 5; top: 26px; right: 0; width: 300px; padding: 12px 14px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); font-size: 13px; line-height: 1.45; font-weight: 400;
}
.info:hover .tip, .info:focus-within .tip, .info.open .tip { display: block; }

/* ---------- сторінка області: навігація, панель фільтрів ---------- */
.crumbs { font-size: 13px; color: var(--muted); }
.panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; padding: 16px 20px; }
.pfield { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pfield.grow { flex: 1 1 220px; }
.pfield.narrow input { width: 150px; }
.pfield label { font-size: 12px; color: var(--muted); }
.pfield select { min-width: 200px; }
/* усі поля введення в змісті сторінки — однакові (21.11.2026: поля без type і type="search" були сірими в темній темі) */
input[type="text"], input:not([type]), input[type="password"], input[type="date"], input[type="number"], input[type="email"],
input[type="tel"], .wrap input[type="search"], .search-big input[type="search"] {
  height: 44px; padding: 0 12px; border: 1px solid var(--inline); border-radius: var(--r-ctl);
  background: var(--card); color: var(--text); font: inherit; font-size: 14px; width: 100%;
}
.btn.primary { border: 0; background: var(--btn-primary); color: #FFFFFF; font-weight: 600; padding: 0 20px; }
.btn.primary:hover { background: var(--btn-primary-h); }
.btn.linkbtn { display: inline-flex; align-items: center; text-decoration: none; }
.found { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.found b { color: var(--text); font-weight: 600; }
.hbar.wide { grid-template-columns: 200px 1fr 84px; }
.hbar .fill.f2 { background: var(--c2); }

/* ---------- показники ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.kpi .ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.kpi .ico.i1 { background: var(--t1); color: var(--c1); }
.kpi .ico.i2 { background: var(--t2); color: var(--c2); }
.kpi .ico.i3 { background: var(--t3); color: var(--c3); }
.kpi .ico.i4 { background: var(--t4); color: var(--c4); }
.kpi .lab { font-size: 13px; color: var(--muted); }
.kpi .val { font-size: 30px; font-weight: 700; margin-top: 6px; line-height: 1.15; }
.kpi .val small { font-size: 18px; font-weight: 600; }
.kpi .sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.kpi .sub small { font-size: inherit; }

/* ---------- стовпчикові графіки ---------- */
.legend { display: flex; gap: 16px; font-size: 13px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; background: var(--accent); }
.legend i.b2 { background: var(--accent2); }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.bars.dense { gap: 4px; }
.grp { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); border-radius: 8px; padding: 4px; min-width: 0; }
a.grp:hover { background: var(--soft); color: var(--text); }
.grp.cur .lbl { color: var(--text); font-weight: 600; }
.pair { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; height: 190px; }
.col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.col .v { font-size: 12px; line-height: 16px; height: 16px; margin-bottom: 4px; white-space: nowrap; }
.col .bar { width: 100%; height: calc((100% - 20px) * var(--h) / 100); background: var(--accent); border-radius: 4px 4px 0 0; }
.col .bar.b2 { background: var(--accent2); }
.col .bar.we { opacity: 0.55; }
.lbl { font-size: 12px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-scroll { overflow-x: auto; }
.chart-scroll > .bars { min-width: calc(var(--n, 8) * 68px); }   /* на вузькому екрані графік гортається вбік */
.bars.daily .pair { height: 200px; }
.bars.daily .lbl { white-space: normal; overflow: visible; }
.bars.dense .grp { padding: 4px 0; }
.bars.dense .col .v { display: none; }
.bars.dense .col .bar { height: calc(100% * var(--h) / 100); border-radius: 2px 2px 0 0; }
.bars.dense .lbl { font-size: 11px; min-height: 16px; white-space: nowrap; overflow: visible; text-overflow: clip; }

/* горизонтальні смуги (процедури) */
.hbars { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 76px 84px; gap: 10px; align-items: center; }
.hbar .track { height: 12px; }
.hbar .fill { height: 12px; background: var(--accent); border-radius: 3px; min-width: 2px; }

/* ---------- таблиці ---------- */
.tbl-scroll { overflow-x: auto; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { font-size: 14px; padding: 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th.num, td.num { text-align: right; }
td .code { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
/* посилання в таблицях — без підкреслення (його видно лише при наведенні): у таблицях посилань сотні, рябіло (21.11.2026) */
td a { text-decoration: none; }
td a:hover, td a:focus-visible { text-decoration: underline; }
.t-wide { min-width: 900px; }
/* широкі таблиці (21.11.2026): шапка переноситься — колонки не розпирає довгий підпис («За рішенням про переможця») */
.t-wide th { white-space: normal; min-width: 64px; vertical-align: bottom; }
/* таблиця ширша за картку — тінь біля краю, за яким є ще колонки (видно, що її можна гортати вбік) */
.tbl-scroll {
  background:
    linear-gradient(to right, var(--card) 40%, rgba(0, 0, 0, 0)) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--card) 40%, rgba(0, 0, 0, 0)) right / 32px 100% no-repeat local,
    linear-gradient(to right, var(--scroll-shade), rgba(0, 0, 0, 0)) left / 14px 100% no-repeat scroll,
    linear-gradient(to left, var(--scroll-shade), rgba(0, 0, 0, 0)) right / 14px 100% no-repeat scroll;
}
.t-compact td { padding: 8px 12px; }

/* ---------- сторінка «Договори» ---------- */
.h1-sub { color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips a, .pchips a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--inline); background: var(--card); color: var(--text); text-decoration: none; font-size: 13px;
}
.chips a:hover, .pchips a:hover { background: var(--soft); color: var(--text); }
.chips a[aria-current="true"], .pchips a[aria-current="true"] { background: var(--btn-primary); border-color: var(--btn-primary); color: #FFFFFF; font-weight: 600; }
.pchips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-basis: 100%; }
.pchips a { min-height: 30px; padding: 4px 12px; }
.pfield.amount input { width: 130px; }
.sumrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 24px; }   /* 6 показників в один рядок (21.11.2026) */
.sumrow .sum-title { grid-column: 1 / -1; }
.sumrow > div, .kr > div { display: flex; flex-direction: column; gap: 4px; }
.sumrow .lab, .kr .lab { font-size: 12px; color: var(--muted); }
.sumrow .val, .kr .val { font-size: 22px; font-weight: 700; font-family: var(--font-head); line-height: 1.2; }
.sumrow .val small, .kr .val small { font-size: 14px; font-weight: 600; }
.sumrow .sub, .kr .sub { font-size: 12px; color: var(--muted); }
.kr { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; margin-top: 14px; }
.seg.tabs { height: auto; flex-wrap: wrap; }
.seg.tabs a { min-height: 38px; }
a.sort { color: inherit; text-decoration: none; }
a.sort:hover { color: var(--link); text-decoration: underline; }
.nowrap { white-space: nowrap; }
/* «Шлях гривні»: етапи вгорі */
.path-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.path-flow .step { flex: 1 1 150px; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); min-width: 0; }
.path-flow .step.on { border-color: var(--accent); background: var(--t1); }
.path-flow .step.missing { border-style: dashed; color: var(--muted); background: transparent; }
.path-flow .st-lab { font-size: 12px; color: var(--muted); }
.path-flow .st-val { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.path-flow .st-sub { font-size: 12px; color: var(--muted); }
.path-flow .arrow { align-self: center; color: var(--muted); font-size: 18px; }
.path-crumbs b { color: var(--text); }
@media (max-width: 640px) { .path-flow .arrow { display: none; } .path-flow .step { flex-basis: 100%; } }

/* підказки під час введення */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; min-width: 260px; max-height: 360px; overflow-y: auto;
  margin: 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.ac-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.ac-list li:hover, .ac-list li[aria-selected="true"] { background: var(--soft); }
.ac-name { font-size: 13px; color: var(--text); }
.ac-meta { font-size: 12px; color: var(--muted); }
.ac-picked { font-size: 12px; color: var(--muted); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sumrow .val.small-val { font-size: 15px; font-weight: 600; }
.pfield.checks { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 44px; }
.pfield.checks label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; }
.pfield.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.pg-nav { display: flex; align-items: center; gap: 12px; }
.pager a[aria-current="true"] { color: var(--text); font-weight: 700; text-decoration: none; }

.foot { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

@media (max-width: 640px) {
  .wrap { padding: 16px; }
  .top-in { padding: 12px 16px; }
  .hero { padding: 20px; }
  .hbar, .hbar.wide { grid-template-columns: 110px 1fr 64px; }
  .pfield, .pfield.narrow input, .pfield select, .pfield.amount input { width: 100%; }
  .hbar .cnt { display: none; }
  .bars { gap: 6px; }
  .col .v { font-size: 10px; }
  .chart-scroll .lbl { white-space: normal; overflow: visible; }
  select { min-width: 0; width: 100%; }
}

/* ===== Аналіз ПЗ / ПК (етап Е2, 18.11.2026) ===== */
.pz-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.pz-form-small h2 { font-size: 14px; }
.pz-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 20px; }
.pz-drop input[type=file] { font: inherit; font-size: 14px; padding: 18px 12px; border: 1px dashed var(--inline); border-radius: var(--r-ctl); background: var(--bg); color: var(--text); width: 100%; max-width: 640px; box-sizing: border-box; }
.pz-drop input[type=file].drag { border-color: var(--accent, var(--inline)); border-style: solid; }
.pz-files-hint { margin: 6px 0 0; font-size: 13px; }
.pz-files-hint.bad { color: var(--warn); font-weight: 600; font-size: 14px; }
.pz-files-hint.ok { color: var(--good); font-weight: 600; font-size: 15px; }
/* файли вибрано (21.11.2026): поле зелене — видно одразу, що файли на місці */
.pz-form input[type=file].has-files { border: 2px solid var(--good); background: color-mix(in srgb, var(--good) 12%, var(--bg)); }
.pz-form input[type=file].bad-files { border: 2px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--bg)); }
.file-ok { display: block; margin-top: 4px; color: var(--good); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.pz-level { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pz-level legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.pz-mini { font-size: 12px; color: var(--muted, inherit); }
.pz-tag { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--warn); color: var(--warn); margin-left: 4px; white-space: nowrap; }
.pz-ask { border: 1px solid var(--warn); border-radius: var(--r-ctl); padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.pz-ask legend { font-weight: 600; padding: 0 4px; }
.pz-files input[type=file] { font: inherit; font-size: 14px; padding: 8px; border: 1px dashed var(--inline); border-radius: var(--r-ctl); background: var(--bg); color: var(--text); max-width: 100%; }
.pz-err { margin-top: 16px; border-color: var(--warn); color: var(--warn); font-weight: 600; }
.pz-head { margin-top: 16px; }
.pz-head .btn { margin-top: 10px; }
.pz-firm-name { font-size: 20px !important; }
.pz-scheme { min-width: 760px; }
.pz-svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.pz-svg .pz-h { font-size: 13px; font-weight: 600; fill: var(--muted); }
.pz-svg .pz-box { fill: var(--card); stroke: var(--line); stroke-width: 1; }
.pz-svg .pz-box.pz-in { fill: var(--t2); stroke: var(--c2); }
.pz-svg .pz-box.pz-out { fill: var(--t1); stroke: var(--c1); }
.pz-svg .pz-link { fill: none; opacity: .45; }
.pz-svg .pz-link.pz-in { stroke: var(--c2); }
.pz-svg .pz-link.pz-out { stroke: var(--c1); }
.pz-svg .pz-link:hover { opacity: .85; }
.pz-svg .pz-t { font-size: 13px; font-weight: 600; fill: var(--text); }
.pz-svg .pz-s { font-size: 12px; fill: var(--muted); }
.pz-svg .pz-firm { fill: var(--navbg); }
.pz-svg .pz-ft { font-size: 13px; font-weight: 700; fill: #FFFFFF; }
.pz-svg .pz-fs { font-size: 12px; fill: #C9D3E3; }
.pz-nom { font-size: 13px; min-width: 260px; }
.pz-nom div + div { margin-top: 4px; }
.pz-total td { font-weight: 700; border-top: 1px solid var(--line); }
.pz-sub { margin-top: 18px; }

/* ===== Картка договору (етап Б2, 18.11.2026) ===== */
table.kv th { width: 200px; white-space: normal; vertical-align: top; font-size: 13px; padding-top: 12px; }
td .code.paid { color: var(--good); }
.pay-tx-note { border-left: 3px solid var(--warn); }
.chg-list { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.chg-list li { line-height: 1.45; }
/* картка закупівлі: рядок переможця */
tr.row-win td { background: color-mix(in srgb, var(--good) 10%, transparent); }
tr.row-win td:first-child { box-shadow: inset 3px 0 0 var(--good); }

/* ===== Порівняння (18.11.2026) ===== */
.cmp-mode { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cmp-mode-lab { font-size: 14px; font-weight: 600; color: var(--muted); }

/* ===== Робота команди (18.11.2026) ===== */
.ok-box { margin-top: 16px; border-color: var(--good); color: var(--good); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navbg); color: #FFFFFF; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; }
.note-form { display: flex; flex-direction: column; gap: 10px; }
.note-form textarea { font: inherit; font-size: 14px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); color: var(--text); min-height: 70px; }
.pz-err-text { color: var(--warn); }

/* «Мій кабінет»: профіль, кольорові блоки дій, кольорові позначки (зауваження власника 18.11.2026) */
.cab-profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cab-avatar { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; background: var(--t1); color: var(--c1); display: flex; align-items: center; justify-content: center; }
.cab-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cab-name { font-size: 20px; font-weight: 700; }
.cab-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.cab-tile-form { margin: 0; display: flex; }
.cab-tile { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 16px 18px; border-radius: var(--r-card); border: 1px solid transparent; text-decoration: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s; }
.cab-tile:hover { transform: translateY(-1px); color: var(--text); }
.cab-tile .ct-ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--card); }
.cab-tile .ct-lab { font-size: 15px; font-weight: 700; }
.cab-tile .ct-val { font-size: 26px; font-weight: 700; line-height: 1; }
.cab-tile .ct-sub { font-size: 12px; color: var(--muted); }
/* плитки кабінету — як плитки показників: однаковий фон, колір у значку й смужці вгорі (21.11.2026) */
.t-blue, .t-green, .t-orange, .t-purple, .t-teal { background: var(--card); border-color: var(--line); border-top-width: 3px; }
.t-blue { border-top-color: var(--c1); } .t-blue .ct-ico { color: var(--c1); } .t-blue:hover { border-color: var(--c1); }
.t-green { border-top-color: var(--c2); } .t-green .ct-ico { color: var(--c2); } .t-green:hover { border-color: var(--c2); }
.t-orange { border-top-color: var(--c3); } .t-orange .ct-ico { color: var(--c3); } .t-orange:hover { border-color: var(--c3); }
.t-purple { border-top-color: var(--c4); } .t-purple .ct-ico { color: var(--c4); } .t-purple:hover { border-color: var(--c4); }
.t-teal { border-top-color: var(--c3); } .t-teal .ct-ico { color: var(--c3); } .t-teal:hover { border-color: var(--c3); }
.cab-sec { border-top-width: 4px; }
.cab-sec.sec-teal { border-top-color: var(--c3); }
/* Санкції РНБО (19.11.2026) */
.sanc-card { border-left: 4px solid var(--line); }
.sanc-card.sanc-hit { border-left-color: #C62828; }
.sanc-flag { color: #C62828; }
:root[data-theme="dark"] .sanc-flag { color: #FF8A80; }
.sanc-list { margin: 6px 0 10px; padding-left: 22px; }
.sanc-list li { margin: 3px 0; line-height: 1.45; }
/* картка ФОП (19.11.2026): помітка «за іменем», смужки по місяцях */
.kpi-mark { box-shadow: inset 0 3px 0 var(--c3); }
.fop-mark { border-left: 4px solid var(--c3); }
tr.row-name td { background: color-mix(in srgb, var(--c3) 7%, transparent); }
.fop-tl .bar-col { width: 34%; min-width: 120px; }
.fb { display: block; height: 7px; border-radius: 4px; min-width: 0; }
.fb-pay { display: flex; margin-top: 3px; }
.fb-pay .fb { border-radius: 0; } .fb-pay .fb:first-child { border-radius: 4px 0 0 4px; } .fb-pay .fb:last-child { border-radius: 0 4px 4px 0; }
.fb-c { background: var(--c1); } .fb-e { background: var(--good); } .fb-n { background: var(--c3); }
.fb-key { display: inline-block; width: 12px; height: 8px; border-radius: 3px; vertical-align: middle; }
/* «Стежу» (19.11.2026) */
.watch-form { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.watch-form .watch-on { border-color: var(--c3); color: var(--c3); font-weight: 600; }
.watch-item { padding: 12px 0; border-top: 1px solid var(--line); }
.watch-item:first-of-type { border-top: 0; }
.watch-item.has-new { padding-left: 12px; box-shadow: inset 3px 0 0 var(--c3); }
.watch-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.watch-head .code { margin: 0; }
.watch-btns { margin-left: auto; display: flex; gap: 8px; }
.watch-btns form { margin: 0; }
.watch-sum { margin: 6px 0; }
.watch-item details summary { cursor: pointer; color: var(--c1); margin: 4px 0 8px; }
.cab-sec.sec-blue { border-top-color: var(--c1); }
.cab-sec.sec-green { border-top-color: var(--c2); }
.cab-chips { margin-top: 12px; }
.cab-chips a { gap: 6px; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--inline); }
.st-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--muted); }
.st-watch { background: var(--t1); color: var(--c1); } .st-dot.st-watch { background: var(--c1); }
.st-check { background: var(--t3); color: var(--c3); } .st-dot.st-check { background: var(--c3); }
.st-question { background: #FCE4E4; color: #B42318; } .st-dot.st-question { background: #D92D20; }
.st-ok { background: var(--t2); color: var(--c2); } .st-dot.st-ok { background: var(--c2); }
:root[data-theme="dark"] .st-question { background: #4A1F1F; color: #F7A8A0; }
.cab-notes tr > td:first-child { border-left: 3px solid transparent; }
.cab-notes tr.row-watch > td:first-child { border-left-color: var(--c1); }
.cab-notes tr.row-check > td:first-child { border-left-color: var(--c3); }
.cab-notes tr.row-question > td:first-child { border-left-color: #D92D20; }
.cab-notes tr.row-ok > td:first-child { border-left-color: var(--c2); }
.note-card { margin-top: 16px; }
.note-card summary { cursor: pointer; }
.note-card[open] summary { margin-bottom: 12px; }

.pz-dl { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== Кольорові акценти по всьому сайту — як у «Мій кабінет» (власник 18.11.2026) =====
   головні показники — кольорові плитки (синя, зелена, помаранчева, фіолетова); заголовки розділів — кольорова риска;
   дії (довідки, схеми) — помаранчева плитка; ЄДР і відмітка — кольорова смуга */
/* 21.11.2026 (власник погодив): фон плиток однаковий, колір — у значку й смужці вгорі (у темній темі 4 кольорові фони були строкаті) */
.kpis > .kpi { border-top: 3px solid var(--c1); }
.kpis > .kpi:nth-child(4n+2) { border-top-color: var(--c2); }
.kpis > .kpi:nth-child(4n+3) { border-top-color: var(--c3); }
.kpis > .kpi:nth-child(4n+4) { border-top-color: var(--c4); }
.kpis > .kpi:nth-child(4n+1):hover, .kpis > .kpi:nth-child(4n+1):focus-within { border-color: var(--c1); }
.kpis > .kpi:nth-child(4n+2):hover, .kpis > .kpi:nth-child(4n+2):focus-within { border-color: var(--c2); }
.kpis > .kpi:nth-child(4n+3):hover, .kpis > .kpi:nth-child(4n+3):focus-within { border-color: var(--c3); }
.kpis > .kpi:nth-child(4n+4):hover, .kpis > .kpi:nth-child(4n+4):focus-within { border-color: var(--c4); }
.kpis > .kpi .yoy b { color: var(--text); }
.card > .head > h2:first-child::before { content: ""; display: inline-block; width: 4px; height: 16px; border-radius: 2px; background: var(--c1); margin-right: 10px; vertical-align: -2px; }
.wrap > section.card:nth-of-type(4n+2) > .head > h2:first-child::before { background: var(--c2); }
.wrap > section.card:nth-of-type(4n+3) > .head > h2:first-child::before { background: var(--c3); }
.wrap > section.card:nth-of-type(4n+4) > .head > h2:first-child::before { background: var(--c4); }
.card.report-form { background: var(--t3); border-color: transparent; }
.card.report-form .note { color: var(--text); opacity: .8; }
.card.edr { border-top: 4px solid var(--c4); }
.note-card { border-left: 4px solid var(--c2); }
.cab-sec > .head > h2:first-child::before { display: none; }
.rf-auto { flex-direction: column; align-items: flex-start; }
.scheme-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* ЄДР: організації, де ця — засновник (19.11.2026) */
.edr details.owned { margin: 6px 0; }
.edr details.owned summary { cursor: pointer; color: var(--c1); font-weight: 600; }
.edr .owned-list { columns: 2 320px; column-gap: 28px; margin: 6px 0 4px; padding-left: 18px; }
.edr .owned-list li { break-inside: avoid; margin: 0 0 4px; }
/* «Усі контрагенти» — перемикач ролі (19.11.2026) */
nav.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
nav.tabs .btn { text-decoration: none; }
/* «Договори»: дерево ДК 021 одним рядком (19.11.2026) */
.panel fieldset.cpv-tree { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; border: 0; margin: 0; padding: 0; min-width: 0; }
.panel fieldset.cpv-tree legend { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 4px; float: left; width: 100%; }
.panel fieldset.cpv-tree select { max-width: 100%; }
.panel fieldset.cpv-tree .pfield.grow { flex: 1 1 240px; }
.panel select:disabled { opacity: .6; }

/* ---- Аналіз рахунків (Е3, 19.11.2026) ---- */
.rk-form h2.rk-step { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-top: 8px; }
.rk-step span { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--navbg); color: #fff; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.rk-kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.rk-kind { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); cursor: pointer; background: var(--bg); font-size: 14px; min-height: 48px; }
.rk-kind:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--t1); }
.rk-kind input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.rk-bank { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 12px 14px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rk-bank legend { font-weight: 700; padding: 0 6px; }
.rk-bank select { max-width: 100%; }
.rk-bank .rk-del { align-self: flex-start; }
.rk-hint:empty { display: none; }
.rk-lab { font-size: 13px; color: var(--muted); }
.rk-banner { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--r-ctl); font-size: 14px; }
.rk-banner.rk-bad { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--text); border-left: 4px solid var(--warn); }
.rk-banner.rk-good { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--text); border-left: 4px solid var(--good); }
.rk-good { color: var(--good); font-weight: 600; }
.rk-badtext { color: var(--warn); font-weight: 600; }
.rk-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rk-fname { word-break: break-all; min-width: 160px; }
.rk-checks { margin: 8px 0 0; padding-left: 20px; font-size: 13px; }
.rk-checks li { margin: 4px 0; }
.rk-checks .rk-bad { color: var(--warn); font-weight: 600; }
.rk-checks .rk-info { color: var(--muted); }
.rk-tabs { margin-top: 18px; position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 8px 0; }
.rk-scope { margin-top: 16px; }
.rk-scope > .card, .rk-scope > section, .rk-scope > .rk-two, .rk-scope > .kpis { margin-top: 16px; }
.rk-scope-head h2 { font-size: 20px; }
.rk-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.rk-two > .card { margin-top: 0; min-width: 0; }
.rk-share { display: block; height: 4px; background: var(--seg-bg); border-radius: 2px; margin-top: 4px; }
.rk-share span { display: block; height: 4px; background: var(--c1); border-radius: 2px; }
.rk-months .rk-barcol { width: 34%; min-width: 120px; }
.rk-bar { display: block; height: 6px; border-radius: 3px; margin: 2px 0; }
.rk-bar.rk-in, .rk-sw.rk-in { background: var(--c2); }
.rk-bar.rk-out, .rk-sw.rk-out { background: var(--c1); }
.rk-legend { font-size: 12px; color: var(--muted); margin: 8px 0; display: flex; align-items: center; gap: 6px; }
.rk-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.rk-more { margin-top: 10px; }
.rk-more summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.rk-mini { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.rk-mini table { width: auto; }
.rk-gap { margin-top: 10px; }
.rk-over td { background: color-mix(in srgb, var(--warn) 10%, transparent); }
.rk-scope[hidden] { display: none; }
@media (max-width: 640px) {
  .rk-tabs { position: static; }
  .rk-months .rk-barcol { display: none; }
}

/* ---- Попередження «Аналізу рахунків» і «Потрібна допомога» (20.11.2026) ---- */
.rk-caution { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; border-left: 4px solid var(--accent2); background: var(--t3); border-color: transparent; border-left-color: var(--accent2); }
.rk-caution-text { flex: 1 1 420px; font-size: 14px; line-height: 1.5; }
.rk-caution .btn { flex: 0 0 auto; }
.side-admin-box { display: flex; flex-direction: column; }
@media (min-width: 960px) { .side-admin-box { margin-top: auto; } .side-admin-box .side-admin { margin-top: 0; } }
/* позначка «нове» біля «Новини» і на вкладках новин (21.11.2026) */
.nav-new, .nav a .nav-new { display: inline-block; width: 8px; height: 8px; padding: 0; margin-left: 6px; border-radius: 50%; background: var(--accent2); vertical-align: middle; flex: 0 0 auto; box-shadow: 0 0 0 2px rgba(217, 130, 43, .25); }
.side-badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent2); color: #FFFFFF; font-size: 12px; text-align: center; }
.help-dlg { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; background: var(--card); color: var(--text); }
.help-dlg::backdrop { background: rgba(10, 20, 40, .45); }
.help-dlg h2 { font-size: 18px; }
.help-dlg form { display: flex; flex-direction: column; gap: 8px; }
.help-dlg .muted { font-size: 13px; }
.help-lab { font-size: 13px; font-weight: 600; margin-top: 6px; }
.help-dlg textarea, .help-dlg input[type=text] { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--inline); border-radius: var(--r-ctl); background: var(--bg); color: var(--text); box-sizing: border-box; }
.help-dlg textarea { resize: vertical; min-height: 110px; }
.help-tech { margin-top: 6px; font-size: 13px; }
.help-chk { display: flex; align-items: center; gap: 8px; }
.help-chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.help-tech summary { cursor: pointer; color: var(--accent); margin-top: 6px; }
.help-tech pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; max-height: 180px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin: 6px 0 0; }
.help-err { color: var(--warn); font-weight: 600; font-size: 14px; }
.help-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.help-st { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--soft); }
.help-st.help-new { background: var(--t3); color: var(--warn); }
.help-st.help-work { background: var(--t1); color: var(--link); }
.help-st.help-done { background: var(--t2); color: var(--good); }
.help-ans { margin-top: 6px; font-size: 14px; }
.cab-sec.sec-orange { border-top-color: var(--accent2); }
.pz-dl .pdf-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pz-dl .pdf-hint { align-self: center; font-size: 12px; }
.pz-head .pz-dl .btn { margin-top: 0; }
.pz-head .pz-dl { margin-top: 10px; align-items: center; }
.print-only { display: none; }

/* ---- PDF (друк браузера) результатів «Аналізу рахунків» і «ПЗ / ПК» (20.11.2026) ----
   Світла тема завжди; кольори плиток і смужок зберігаються; навігація, форми й кнопки — приховано;
   кожен розділ (банк / рахунок) — з нової сторінки; таблиці не обрізаються. */
@page { size: A4; margin: 12mm 10mm 12mm 12mm; }
@media print {
  :root, :root[data-theme="dark"] {
    --bg: #FFFFFF; --card: #FFFFFF; --text: #16202E; --muted: #4F5A6B;
    --line: #D5DBE4; --line2: #E6EAF0; --inline: #C7CEDA;
    --accent: #0F6FDE; --link: #0B5CBA; --linkh: #084A97;
    --good: #17693A; --warn: #8A4B00; --accent2: #D9822B;
    --c1: #0F6FDE; --t1: #E3EEFC; --c2: #0E7C6B; --t2: #DFF3EF;
    --c3: #D9822B; --t3: #FBEBD9; --c4: #6D3FC0; --t4: #EEE6FA;
    --soft: #E8ECF2; --seg-bg: #E8ECF2;
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body { background: #FFFFFF !important; }
  body { display: block !important; font-size: 11px; }
  .top, .topbar, .toast, .help-dlg, .no-print, .rk-tabs, .pz-dl, .rk-form, form, .hero .herotext, .ok-box { display: none !important; }
  .print-only { display: block; }
  .wrap { max-width: none; padding: 0; gap: 10px; }
  .hero { padding: 0; }
  .hero h1 { font-size: 20px; margin: 0; }
  .print-head { font-size: 10px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
  .print-foot { font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 8px; }
  .card { padding: 10px 12px; border-radius: 8px; box-shadow: none; }
  .card h2 { font-size: 13px; }
  .rk-scope-head h2 { font-size: 15px; }
  .pz-firm-name { font-size: 16px; }
  .kpis { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .kpi .val { font-size: 15px; }
  .kpi .lab, .kpi .sub { font-size: 10px; }
  .rk-two { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rk-scope > .card, .rk-scope > section, .rk-scope > .rk-two, .rk-scope > .kpis { margin-top: 8px; }
  .rk-scope + .rk-scope { break-before: page; }
  body.pdf-one .rk-scope + .rk-scope { break-before: auto; }
  .rk-scope[hidden] { display: none !important; }
  .tbl-scroll { overflow: visible !important; }
  .pz-scheme { min-width: 0; }
  .pz-scheme svg { width: 100%; height: auto; }
  table { font-size: 10px; width: 100%; }
  th, td { padding: 3px 5px !important; }
  th { white-space: normal !important; font-size: 9px; }
  td { font-size: 10px; }
  td .code, .rk-sub { font-size: 8.5px; }
  .pz-side td { font-size: 9px; }
  .pz-nom { min-width: 0; font-size: 9px; }
  .rk-fname { min-width: 30mm; }
  .rk-files-t td:last-child { min-width: 38mm; }
  .rk-more summary, .rk-more { font-size: 10px; }
  thead { display: table-header-group; }
  tr, .kpi, .rk-banner { break-inside: avoid; }
  h2, h3, .head { break-after: avoid; }
  .rk-months .rk-barcol { display: table-cell !important; width: 30%; }
  details::details-content { content-visibility: visible !important; }   /* розгорнуто й без скрипта */
  .rk-more summary { color: var(--text); font-weight: 600; list-style: none; }
  .rk-more summary::-webkit-details-marker { display: none; }
  a { color: inherit !important; text-decoration: none !important; }
  .code { color: var(--muted); }
  .wrap > section.card > .head > h2:first-child::before { print-color-adjust: exact; }
}

/* ---------- «Новини»: тижневий звіт (20.11.2026) ---------- */
.wk-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 16px; }
.hero .eyebrow a { color: inherit; }
.wk-alert { border: 1px solid var(--line); border-left: 4px solid var(--c3); background: var(--t3); border-radius: var(--r-card); padding: 12px 16px; font-size: 14px; }
.wk-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.wk-toc a { color: var(--link); text-decoration: none; }
.wk-toc a:hover { text-decoration: underline; }
.wk-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--t3); color: var(--warn); vertical-align: middle; }
.wk-tag.new { background: var(--t1); color: var(--c1); }
.wk-lead { font-size: 14px; margin-top: 8px; }
.wk-hbars .hbar.wide { grid-template-columns: minmax(120px, 230px) 1fr 84px; }
.wk-fuel td { background: var(--soft); }
.wk-fuel .code { display: block; }
.wk-tx td { vertical-align: top; }
.wk-reg { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; }
.wk-reg-head, .wk-reg-row { display: grid; grid-template-columns: 190px 200px 1fr; }
.wk-reg-head { background: var(--soft); font-weight: 600; font-size: 13px; }
.wk-reg-head span, .wk-reg-row > div { padding: 8px 12px; }
.wk-reg-head span + span, .wk-reg-row > div + div { border-left: 1px solid var(--line); }
.wk-reg-row { border-top: 1px solid var(--line); font-size: 13px; }
.wk-reg-name { font-weight: 600; }
.wk-reg-list p + p { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.wk-news { display: flex; flex-direction: column; gap: 12px; }
.wk-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.wk-item-head h2 a { color: var(--text); text-decoration: none; }
.wk-item-head h2 a:hover { color: var(--link); text-decoration: underline; }
.wk-facts { margin: 10px 0 0 18px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.wk-item-act { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 760px) {
  .wk-reg-head { display: none; }
  .wk-reg-row { grid-template-columns: 1fr; }
  .wk-reg-row > div + div { border-left: 0; padding-top: 0; }
}

/* «Новини»: вкладки і транзакції без гортання вбік (20.11.2026, вечір) */
.news-tabs { margin-top: 4px; }
.news-tab-off { display: flex; align-items: center; gap: 6px; padding: 0 14px; min-height: 38px; color: var(--muted); font-size: 14px; white-space: nowrap; cursor: default; }
.news-tab-off small { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--t3); color: var(--warn); }
.news-text p + p { margin-top: 8px; }
.news-text { margin-top: 8px; font-size: 14px; }
/* «Оперативна обстановка» (21.11.2026) */
.sit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 12px; }
.sit-entry { display: flex; flex-direction: column; gap: 6px; }
.sit-entry.attn { border-color: var(--warn); box-shadow: inset 4px 0 0 var(--warn); }
.sit-ev { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--good); }
.sit-ev.dismissed { color: var(--warn); }
.sit-ev.other, .sit-ev.moved, .sit-ev.acting { color: var(--muted); }
/* тестові розділи (22.11.2026): санкції — як «звільнено», кошти — як «призначено», реорганізація — сіра */
.sit-ev.sanctions { color: var(--warn); }
.sit-ev.created, .sit-ev.reorg, .sit-ev.liquidation { color: var(--muted); }
.sit-amt { font-size: 16px; font-weight: 700; }
.sit-sub { font-size: 15px; margin: 14px 0 6px; }
.sit-amku { margin: 6px 0 0 20px; font-size: 14px; }
/* «Використання сайту» (22.11.2026): режими розділу — дрібніше, з відступом */
.usage-t .usage-mode td { font-size: 13px; color: var(--muted); }
.usage-t .usage-mode td:first-child { padding-left: 24px; }
.sit-amku li + li { margin-top: 4px; }
.sit-entry h3 { font-size: 17px; margin: 0; }
.sit-entry .sit-pos { font-size: 14px; }
.sit-facts { font-size: 13px; background: var(--line2); border-radius: 8px; padding: 8px 10px; }
.sit-src { font-size: 12px; color: var(--muted); word-break: break-word; }
/* посилання у випуску — без підкреслення, підкреслюються під час наведення (як у таблицях; зауваження власника 21.11.2026) */
.sit-entry a { text-decoration: none; }
.sit-entry a:hover, .sit-entry a:focus-visible { text-decoration: underline; }
.sit-main { margin: 8px 0 0 20px; font-size: 15px; }
.sit-main li + li { margin-top: 6px; }
table.wk-tx { table-layout: fixed; width: 100%; }
table.wk-tx th:nth-child(1) { width: 104px; }
table.wk-tx th:nth-child(2), table.wk-tx th:nth-child(3) { width: 21%; }
table.wk-tx th:nth-child(5) { width: 158px; }
table.wk-tx td { overflow-wrap: anywhere; }
@media (max-width: 760px) { table.wk-tx { min-width: 640px; } }

/* «Мій кабінет» — сповіщення в Telegram (20.11.2026) */
.cab-sec.sec-blue#telegram p { margin: 8px 0; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
a.btn.primary, a.btn.primary:hover { color: #FFFFFF; }
.tg-prefs { display: grid; gap: 8px; margin: 6px 0 12px; }
.tg-prefs label { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; cursor: pointer; }
.tg-prefs input[type=checkbox] { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--accent); }
.tg-btns { margin-top: 4px; }
/* QR-код підключення Telegram (25.11.2026): білий фон і в темній темі — щоб камера прочитала */
.tg-qr-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin: 6px 0 4px; }
.tg-qr-row > div { flex: 1 1 280px; min-width: 0; }
.tg-qr-row > div p { margin: 0 0 10px; }
.tg-qr { margin: 0; flex: 0 0 auto; text-align: center; }
.tg-qr svg { display: block; width: 180px; height: 180px; background: #FFFFFF; border-radius: 8px; }
.tg-qr figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.tg-btns .btn { margin: 0 8px 8px 0; }
/* Карта громад на сторінці області (21.11.2026) */
.hm { stroke: var(--card); stroke-width: 0.8; stroke-linejoin: round; transition: opacity .12s; }
.hm-0 { fill: var(--mbase); }
.hm-a:hover .hm, .hm-a:focus .hm { opacity: .75; stroke: var(--text); stroke-width: 1.2; }
.hm-top { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.hm-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.hm-legend span { display: inline-flex; align-items: center; gap: 5px; }
.hm-legend i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.hm-legend i.hm-none { background: var(--mbase); border: 1px solid var(--line); }.hmap-svg svg { max-height: 720px; }

/* Карта громад — більша, на всю ширину (21.11.2026) */
.hmap-wrap { grid-template-columns: minmax(0, 1fr) 260px; }
.hmap-svg svg { max-height: 980px; }
.hm-all { margin-top: 14px; }
.hm-all summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 6px 0; }
.hm-all table { margin-top: 8px; }@media (max-width: 900px) { .hmap-wrap { grid-template-columns: 1fr; } }
.hmap-wrap { grid-template-columns: minmax(0, 1fr) 330px; }
.hm-top { font-size: 13px; gap: 2px; padding-left: 26px; }
.hm-top li { line-height: 1.45; }
.hm-top li > * { vertical-align: top; }
.hm-top a { display: inline-block; max-width: 175px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-top b { float: right; white-space: nowrap; font-weight: 600; }
@media (max-width: 900px) { .hmap-wrap { grid-template-columns: 1fr; } .hm-top a { max-width: 60%; } }
/* ---------- вибір файлів: своя кнопка українською (21.11.2026; site.js — .file-pick) ---------- */
.file-pick { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 58px; padding: 10px 14px;
  border: 1px dashed var(--inline); border-radius: var(--r-ctl); background: var(--bg); color: var(--text); cursor: pointer; }
.file-pick > input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.file-pick .fp-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--inline);
  background: var(--card); font-weight: 600; white-space: nowrap; }
.file-pick .fp-name { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.file-pick:hover .fp-btn { border-color: var(--accent); }
.file-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-pick:has(> input.drag) { border-color: var(--accent); border-style: solid; }
.file-pick:has(> input.has-files) { border: 2px solid var(--good); background: color-mix(in srgb, var(--good) 12%, var(--bg)); }
/* коли файли вибрано — підпис «✓ вибрано …» дає наявний код (зелений), свій підпис ховаємо */
.file-pick:has(> input.has-files) .fp-name, .file-pick:has(> input.bad-files) .fp-name { display: none; }
.file-pick .file-ok { position: relative; }
.pz-drop .file-pick { min-height: 84px; }
.file-pick:has(> input.bad-files) { border: 2px solid var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--bg)); }

/* ---------- картка організації (21.11.2026): кнопки довідки в шапці, рядок «Перевірки», групи блоків ---------- */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.hero-actions .watch-form { margin: 0; }
.report-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.report-opts { flex-basis: 100%; }
.report-opts > summary { cursor: pointer; color: var(--link); font-size: 13px; width: max-content; }
.report-opts[open] { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); max-width: 720px; }
.report-opts .pfield { margin: 10px 0 6px; max-width: 420px; }
.checks .chk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); font-size: 13px; }
.chk::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: 0 0 8px; }
.chk.ok::before { background: var(--good); }
.chk.warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.chk.warn::before { background: var(--accent2); }
.chk.bad { border-color: #C62828; }
.chk.bad::before { background: #E53935; }
.chk a { color: var(--text); text-decoration: none; }
.chk a:hover { color: var(--link); text-decoration: underline; }
.grp-title { margin: 32px 0 12px; font-size: 20px; font-weight: 700; padding-top: 16px; border-top: 1px solid var(--line); }

/* «Більше фільтрів» (21.11.2026): другорядні фільтри в панелі — під розкривним рядком */
.panel .more-filters { flex: 1 1 100%; min-width: 0; }
.panel .more-filters > summary { cursor: pointer; color: var(--link); font-size: 13px; font-weight: 600; width: max-content; max-width: 100%; }
.panel .more-filters > .mf-body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 12px; }
/* готові вибірки (теми) на телефоні — один рядок, що гортається вбік, а не 6 рядків кнопок */
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .chips a { flex: 0 0 auto; white-space: nowrap; }
}

/* ---------- телефон і планшет (до 960 px): меню під кнопкою «Меню», верхні кнопки — значками (21.11.2026) ---------- */
.menu-btn { display: none; }
@media (max-width: 959px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 40px; padding: 0 14px; border-radius: var(--r-ctl);
    border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.08); color: #FFFFFF; font: inherit; font-size: 14px; cursor: pointer; }
  .menu-btn[aria-expanded="true"] { background: var(--navbg); }
  .top:not(.menu-open) .nav, .top:not(.menu-open) .side-admin-box { display: none; }
  .top-search { flex: 1 1 100%; max-width: none; order: 3; }
  .nav { order: 4; }
}
@media (max-width: 640px) {
  .top-in { gap: 10px 12px; }
  /* «Зберегти вибірку», «Потрібна допомога» — лише значок (підказка — у title); ім’я користувача — лише кружечок */
  .topbar .btn.sm:has(> svg) { font-size: 0; gap: 0; width: 40px; padding: 0; }
  .topbar .btn.sm:has(> svg) svg { width: 18px; height: 18px; }
  .topbar .uc-text { display: none; }
  .topbar .user-chip { padding: 0 4px; }
  .topbar { flex-wrap: nowrap; }
  .tb-right { flex-wrap: nowrap; }
}
.more-rows { margin-top: 12px; }
