:root { --b: #1f4e79; --s: #f4f6f9; --t: #1d2430; --m: #6b7380; --r: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--t); background: var(--s); }
.pruh-test { background: #6d28d9; color: #fff; text-align: center; font-size: 12px; padding: 2px; letter-spacing: .05em; }
header.horni { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 10px 24px;
  background: #fff; border-bottom: 1px solid #dde2ea; }
header .logo { font-weight: 700; color: var(--b); text-decoration: none; white-space: nowrap; width: 196px; }
.hledani-hlava { flex: 1; max-width: 560px; }
.hledani-hlava input { width: 100%; }
.ucet-lista { margin-left: auto; display: flex; gap: 16px; align-items: center; white-space: nowrap; }
.ucet-lista > a { color: var(--t); text-decoration: none; }
.ucet-menu { position: relative; }
.ucet-menu summary { cursor: pointer; list-style: none; color: var(--b); }
.ucet-menu summary::after { content: " ▾"; }
.ucet-menu summary::-webkit-details-marker { display: none; }
.ucet-nabidka { position: absolute; right: 0; top: 140%; background: #fff; border: 1px solid #dde2ea; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(20, 30, 50, .12); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.rozvrzeni { display: flex; align-items: flex-start; }
nav.bocni { position: sticky; top: 49px; width: 240px; flex: none; height: calc(100vh - 49px); overflow-y: auto;
  padding: 16px 12px 32px; background: #fff; border-right: 1px solid #dde2ea; }
nav.bocni .skupina { margin-bottom: 14px; }
nav.bocni h2 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--m); margin: 0 10px 4px; font-weight: 600; }
nav.bocni a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--t); text-decoration: none; }
nav.bocni a:hover { background: var(--s); }
nav.bocni a.aktivni { background: #e6eef7; color: var(--b); font-weight: 600; }
.menu-prepinac { display: none; }
.menu-tlacitko { cursor: pointer; font-size: 22px; line-height: 1; color: var(--b); }
main { flex: 1; min-width: 0; max-width: 1100px; margin: 24px auto; padding: 0 32px; }
.karta { background: #fff; border: 1px solid #dde2ea; border-radius: 8px; padding: 20px 24px; margin-bottom: 16px; }
.uzka { max-width: 460px; margin: 60px auto; }
.tlacitko, button { display: inline-block; background: var(--b); color: #fff; border: 0; border-radius: 6px;
  padding: 7px 14px; font: inherit; text-decoration: none; cursor: pointer; }
header button, .akce button, li button { background: #fff; color: var(--b); border: 1px solid #c4ccd8; padding: 3px 10px; }
input { font: inherit; padding: 6px 10px; border: 1px solid #c4ccd8; border-radius: 6px; }
.radek { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pozn { color: var(--m); }
.chyba { color: var(--r); }
.stitek { font-size: 12px; background: #e6eef7; color: var(--b); border-radius: 4px; padding: 1px 6px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e8ebf0; }
tr.zadost { background: #fff8e6; }
tr.zablokovany { color: var(--m); }
.akce form { display: flex; gap: 6px; flex-wrap: wrap; }
.dlazdice { display: flex; gap: 16px; }
.dlazdice div { background: #fff; border: 1px solid #dde2ea; border-radius: 8px; padding: 16px 24px; min-width: 160px; }
.dlazdice b { display: block; font-size: 28px; color: var(--b); }
.volba { display: block; margin: 6px 0; }
ul { list-style: none; padding: 0; }
.sloupec { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sloupec label { display: flex; flex-direction: column; gap: 4px; }
.sloupec label.volba { flex-direction: row; }
.hledani input { flex: 1 1 220px; font-size: 17px; padding: 9px 12px; }
.hledani { margin: 12px 0 20px; }
.dlazdice a.dulezite b { color: var(--r); }
.stav-baze a { color: inherit; }
.dlazdice a { background: #fff; border: 1px solid #dde2ea; border-radius: 8px; padding: 16px 24px; min-width: 160px; color: var(--t); text-decoration: none; }
.dlazdice a b { display: block; font-size: 28px; color: var(--b); }
.dlazdice { flex-wrap: wrap; margin-bottom: 16px; }
button.vedlejsi, .tlacitko.vedlejsi { background: #fff; color: var(--b); border: 1px solid #c4ccd8; }
.stitek.cerveny { background: #fde8e6; color: var(--r); }
.upozorneni { background: #fff8e6; border: 1px solid #f3d27a; padding: 8px 12px; border-radius: 6px; }
.vysledek { background: #fff; border: 1px solid #dde2ea; border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.vysledek .titulek { font-weight: 600; }
.cesta { color: var(--m); font-size: 13px; }
.text { white-space: pre-wrap; margin-top: 4px; }
mark { background: #fff1a8; padding: 0 1px; }
.uryvek { background: #fff; border-left: 3px solid #dde2ea; padding: 8px 14px; margin-bottom: 8px; }
.uryvek.zvyrazneny { border-left-color: var(--b); background: #f0f6fc; }
.vazby li { margin-bottom: 10px; }
.dva { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dva > div { background: var(--s); border-radius: 6px; padding: 10px 12px; min-width: 0; }
.rozpor .akce { margin-top: 10px; flex-wrap: wrap; }
tr.chyba td:last-child { color: var(--r); }
hr { border: 0; border-top: 1px solid #e8ebf0; margin: 18px 0; }
.kv { display: inline-block; min-width: 2.2em; text-align: center; border-radius: 4px; padding: 1px 6px; font-size: 13px; font-weight: 600; }
.kv-dobra { background: #e3f4e8; color: #1b6b35; }
.kv-stredni { background: #fff3d6; color: #8a5a00; }
.kv-slaba { background: #fde8e6; color: var(--r); }
h2 .kv { margin-left: 8px; vertical-align: middle; }
table.rozpad { width: auto; }
table.rozpad th { font-weight: normal; color: var(--m); padding-right: 24px; }
select { font: inherit; padding: 6px 8px; border: 1px solid #c4ccd8; border-radius: 6px; background: #fff; }
.hledani-hlava input { padding: 6px 12px; }
.naseptavac { position: relative; flex: 1; display: flex; }
.hledani-hlava .naseptavac { flex: none; }
.naseptavac > input { flex: 1; }
.naseptavac-seznam { position: absolute; top: 100%; left: 0; right: 0; min-width: 320px; z-index: 20; margin: 4px 0 0;
  background: #fff; border: 1px solid #c4ccd8; border-radius: 8px; box-shadow: 0 6px 20px rgba(20, 30, 50, .12);
  max-height: 70vh; overflow-y: auto; padding: 4px 0; }
.hledani-hlava .naseptavac-seznam { left: auto; width: 420px; }
.naseptavac-seznam li { padding: 6px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.naseptavac-seznam li.vybrana { background: #eaf2fb; }
.naseptavac-seznam li.naseptavac-nadpis { cursor: default; font-size: 12px; color: var(--m); text-transform: uppercase;
  letter-spacing: .04em; padding: 8px 12px 2px; }
.naseptavac-typ { color: var(--m); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
@media (max-width: 800px) { .hledani-hlava { display: none; } }
textarea { font: inherit; padding: 8px 10px; border: 1px solid #c4ccd8; border-radius: 6px; width: 100%; resize: vertical; }
.otazka-form { max-width: 760px; }
.otazka-rychla { margin: -8px 0 20px; }
.otazka-rychla input { flex: 1; }
.otazka-text { font-size: 22px; }
.odpoved p { line-height: 1.6; }
a.citace { font-size: 13px; background: #eef3f9; border-radius: 4px; padding: 0 5px; text-decoration: none; white-space: nowrap; }
ol.timeline { list-style: none; padding: 0; border-left: 2px solid #c4ccd8; margin-left: 8px; }
ol.timeline li { display: flex; gap: 16px; padding: 6px 0 12px 16px; position: relative; }
ol.timeline li::before { content: ""; position: absolute; left: -7px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--b); }
ol.timeline .datum { min-width: 96px; font-weight: 600; color: var(--b); }
ul.historie li { margin-bottom: 6px; }
/* znalostní báze, karta dokumentu, lhůty, matice */
.mezera { justify-content: space-between; flex-wrap: wrap; }
.zalamovat { flex-wrap: wrap; margin: 8px 0; }
.roztahnout { flex: 1; min-width: 200px; }
.stitek.zeleny { background: #e3f4e8; color: #1b6b35; }
.hodnoceni-dulezite { background: #fde8e6; color: var(--r); }
.hodnoceni-nerelevantni { background: #eceef2; color: var(--m); }
table.pole th { font-weight: normal; color: var(--m); width: 26%; vertical-align: top; }
table.pole td { vertical-align: top; }
table.pole details summary { cursor: pointer; color: var(--b); font-size: 14px; }
.stitek-form { display: inline-flex; align-items: center; gap: 2px; }
button.mini { background: none; color: var(--m); border: 0; padding: 0 4px; }
.s-nahledem { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.nahled { position: sticky; top: 12px; }
.nahled iframe { width: 100%; height: 80vh; border: 1px solid #dde2ea; border-radius: 6px; background: #fff; }
.siroky, .siroky label, .siroky input, .siroky textarea, .siroky select { width: 100%; }
fieldset { border: 1px solid #e8ebf0; border-radius: 6px; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.souhrn { font-size: 17px; }
.navrh { border-color: #f3d27a; background: #fffcf2; }
.citace-seznam summary { cursor: pointer; color: var(--m); font-size: 13px; }
.citace-seznam li { font-size: 14px; color: var(--m); margin-bottom: 4px; }
tr.lhuta-prosla td:first-child, li.lhuta-prosla { color: var(--r); font-weight: 600; }
tr.lhuta-7 td:first-child, li.lhuta-7 { color: var(--r); }
tr.lhuta-14 td:first-child, li.lhuta-14 { color: #8a5a00; }
tr.vyrizeno { color: var(--m); text-decoration: line-through; }
.siroka-tabulka { overflow-x: auto; }
table.matice td, table.matice th { font-size: 14px; vertical-align: top; min-width: 120px; }
table.matice td.navrh { color: var(--m); }
.jen-mobil { display: none; }
@media (max-width: 800px) {
  .jen-mobil { display: flex; }
  .s-nahledem { grid-template-columns: minmax(0, 1fr); }
  .nahled { position: static; }
  header.horni { gap: 12px; padding: 8px 12px; }
  header .logo { width: auto; }
  .ucet-lista { gap: 10px; }
  .ucet-lista > a[href="/novinky"] { display: none; }
  nav.bocni { display: none; position: fixed; top: 45px; left: 0; z-index: 30; height: calc(100vh - 45px);
    box-shadow: 4px 0 20px rgba(20, 30, 50, .15); }
  .menu-prepinac:checked + .rozvrzeni nav.bocni { display: block; }
  main { padding: 0 14px; margin: 16px auto; }
}
.volba-inline { display: inline-flex; gap: 4px; align-items: center; margin-right: 10px; }
/* porovnání znění (N11) */
.diff { width: 100%; border-collapse: collapse; table-layout: fixed; }
.diff td { vertical-align: top; padding: 4px 8px; border-bottom: 1px solid #eef1f5; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff tr.smazano td:first-child, .diff del { background: #fde8e6; }
.diff tr.pridano td:last-child, .diff ins { background: #e3f4e8; }
.diff tr.zmeneno td { background: #fffbea; }
.diff del { text-decoration: line-through; }
.diff ins { text-decoration: none; }
.diff tr.sbaleno td { text-align: center; color: #6b7280; font-size: 13px; background: #f7f8fa; }
.kratke { width: 7em; }
form.inline { display: inline; }
.prochazeni { max-height: 26rem; overflow: auto; border: 1px solid #ddd; border-radius: 6px; padding: .4rem .8rem; }
.vyber-seznam { list-style: none; padding: 0; margin: 0; }
.vyber-seznam li { padding: .2rem 0; }
.drobky { font-size: .95rem; }
.predformat { white-space: pre-wrap; }
.odznak { display:inline-block; padding:0 .45em; border-radius:1em; background:#c0392b; color:#fff; font-size:.75em; font-weight:600; vertical-align:middle; }
.spravce-ukoly { border-left: 4px solid var(--r); }
.ukoly-spravce { list-style: none; padding: 0; margin: 0; }
.ukoly-spravce > li { padding: 12px 0; border-top: 1px solid #e6e9ef; }
.ukoly-spravce > li:first-child { border-top: 0; }
.ukoly-spravce .radek { margin-top: 6px; align-items: center; }
pre.prikaz { background: #f3f5f8; border: 1px solid #dde2ea; border-radius: 6px; padding: 6px 10px; margin: 6px 0;
  white-space: pre-wrap; word-break: break-all; font-size: 13px; }
form.filtry { flex-wrap: wrap; }
form.filtry > * { flex: 0 1 auto; min-width: 0; max-width: 100%; }
a { color: var(--b); }
a:hover { color: #163a5c; }
