/* Паспорт пакета · блок «Звіт НСЗУ щодо стану реалізації ПМГ» (regional.js).
   Кольори — змінні панелі (analytics-panel.css), тож темна тема приходить звідти. */
.ap-regional-card .rg-sec { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line, #e3edf3); }
.ap-regional-card .rg-sec:first-of-type { margin-top: 4px; padding-top: 0; border-top: 0; }
.ap-regional-card h5 { margin: 0 0 6px; font-size: .9rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ap-regional-card h5 small { font-weight: 400; color: var(--muted, #647688); font-size: .76rem; }
.rg-lead { margin: 0 0 8px; font-size: .86rem; line-height: 1.45; }
.rg-note { margin: 6px 0 0; font-size: .76rem; color: var(--muted, #647688); line-height: 1.45; }
.rg-empty { margin: 4px 0; font-size: .84rem; color: var(--muted, #647688); }
.rg-vol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 12px; align-items: center; }
.rg-spark { margin: 0; }
.rg-spark svg { width: 100%; height: 48px; display: block; }
.rg-spark figcaption { font-size: .72rem; color: var(--muted, #647688); }
.rg-tbl th small, .rg-tbl td small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted, #647688); }
.rg-tbl tbody th { max-width: 60ch; }
.rg-staff .rg-barc { width: 18%; min-width: 60px; }
.rg-code { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rg-link { color: var(--accent-deep, #2f6b9e); text-decoration: none; }
.rg-link:hover, .rg-link:focus-visible { text-decoration: underline; }
.rg-chip { font-size: .74rem; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--ap-sunk, #f2f8fb); }
.rg-chip.is-up { color: #23784b; }
.rg-chip.is-down { color: #a5432e; }
:root.dark-theme .rg-chip.is-up { color: #7fd3a3; }
:root.dark-theme .rg-chip.is-down { color: #f0a08c; }
.rg-refs { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line, #e3edf3);
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .82rem; }
.rg-refs span { color: var(--muted, #647688); }
.rg-refs a { color: var(--accent-deep, #2f6b9e); text-decoration: none; padding: 2px 10px;
  border: 1px solid var(--line, #e3edf3); border-radius: 999px; background: var(--ap-sunk, #f2f8fb); }
.rg-refs a:hover, .rg-refs a:focus-visible { border-color: var(--accent, #4a8fc7); }
@media (max-width: 640px) {
  .rg-vol { grid-template-columns: minmax(0, 1fr); }
  .rg-staff .rg-barc { display: none; }
}

/* Блок «Потреба за даними канцер-реєстру» (ncru.js): таблиці Л1–Л5 лікарняних канцер-реєстрів */
.nc-hcr { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line, #e3edf3); }
.nc-ctl { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0 8px; font-size: .8rem; color: var(--muted, #647688); }
.nc-ctl label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.nc-ctl select { max-width: 100%; min-width: 0; font: inherit; font-size: .82rem; padding: 4px 8px; border: 1px solid var(--line, #e3edf3);
  border-radius: 8px; background: var(--ap-card, #fff); color: var(--ink, #1c2b3a); }
.nc-wrap { max-height: 70vh; overflow: auto; }
.nc-tbl thead th, .nc-tbl thead th.n { position: sticky; top: 0; z-index: 2; vertical-align: bottom; white-space: normal;
  min-width: 11ch; max-width: 18ch; line-height: 1.25; }
.nc-tbl thead th button { all: unset; cursor: pointer; font: inherit; color: inherit; }
.nc-tbl thead th button:hover, .nc-tbl thead th button:focus-visible { text-decoration: underline; }
.nc-tbl thead th.is-sorted { color: var(--accent-deep, #2f6b9e); }
.nc-tbl tbody th, .nc-tbl thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--ap-card, #fff);
  white-space: nowrap; max-width: none; }
.nc-tbl thead th:first-child { z-index: 3; }
@media (max-width: 640px) {
  .nc-tbl tbody th, .nc-tbl thead th:first-child { white-space: normal; min-width: 12ch; max-width: 16ch; }
}
