/* V37 — Jednotné čitelné bílé karty. Jen CSS + odstranění starých inline barev ve Školství. */
.rud-redesign .rd-report .tabs{--rud-card-ink:#23364a;--rud-card-secondary:#667f91;--rud-card-line:#dbe5ea;--rud-card-accent:#155e82;}
.rud-redesign .rd-report .tab-content{color:var(--rud-card-ink)!important;background:#fff!important;padding:clamp(16px,2.1vw,30px)!important}
.rud-redesign .rd-report .tab-content h2,.rud-redesign .rd-report .tab-content h3,.rud-redesign .rd-report .tab-content h4,.rud-redesign .rd-report .tab-content h5{color:#203b51!important}
.rud-redesign .rd-report .rud-unified-head,.rud-redesign .rd-report .profil-intro,.rud-redesign .rd-report #tab-skolstvi .sk-nadpis{border-bottom:1px solid var(--rud-card-line)!important;margin:0 0 20px!important;padding:2px 0 18px!important;background:transparent!important}
.rud-redesign .rd-report .rud-unified-kicker,.rud-redesign .rd-report #tab-skolstvi .sk-eyebrow{color:#1b7697!important;letter-spacing:.13em;font-size:11px!important;font-weight:800!important;margin:0 0 9px!important;display:block}
.rud-redesign .rd-report .rud-unified-head h3,.rud-redesign .rd-report .profil-intro h3,.rud-redesign .rd-report #tab-skolstvi .sk-nadpis h3,.rud-redesign .rd-report #tab-finance>h2,.rud-redesign .rd-report .analysis-head h3{color:#1c354a!important;font-size:clamp(19px,1.7vw,24px)!important;font-weight:790!important;letter-spacing:-.025em!important;line-height:1.2!important;margin:0 0 7px!important}
.rud-redesign .rd-report .rud-unified-head p,.rud-redesign .rd-report .profil-intro p,.rud-redesign .rd-report #tab-skolstvi .sk-nadpis p,.rud-redesign .rd-report #tab-finance>.finance-note:first-of-type,.rud-redesign .rd-report .analysis-head p{color:#687f90!important;font-size:13px!important;line-height:1.55!important;margin:0!important}
/* Stejný tabulkový jazyk jako hlavní karta RUD 2027 */
.rud-redesign .rd-report .tab-content table.detail{width:100%!important;border:1px solid #dde6eb!important;border-collapse:collapse!important;border-radius:0!important;background:#fff!important;font-size:13px!important}
.rud-redesign .rd-report .tab-content table.detail thead tr{background:#f2f5f6!important}
.rud-redesign .rd-report .tab-content table.detail thead th{background:#f2f5f6!important;color:#20384c!important;padding:14px 12px!important;font-weight:700!important;border-bottom:1px solid #d6e1e7!important}
.rud-redesign .rd-report .tab-content table.detail tbody th,.rud-redesign .rd-report .tab-content table.detail tbody td,.rud-redesign .rd-report .tab-content table.detail tfoot th,.rud-redesign .rd-report .tab-content table.detail tfoot td{background:#fff!important;color:#283e51!important;border-bottom:1px solid #dce5ea!important;padding:13px 12px!important;line-height:1.4!important}
.rud-redesign .rd-report .tab-content table.detail tbody tr.section-row th,.rud-redesign .rd-report .tab-content table.detail tbody tr.section-row td{background:#e9f0f3!important;color:#23445a!important;font-weight:740!important}
.rud-redesign .rd-report .tab-content table.detail tbody tr.sum-row th,.rud-redesign .rd-report .tab-content table.detail tbody tr.sum-row td,.rud-redesign .rd-report .tab-content table.detail tfoot th,.rud-redesign .rd-report .tab-content table.detail tfoot td{background:#f3f7f8!important;color:#163a52!important;font-weight:780!important}
.rud-redesign .rd-report .tab-content table.detail td:last-child{font-variant-numeric:tabular-nums}
/* Profil obce — lehké metriky a stejné oddělovače */
.rud-redesign .rd-report #tab-profil .profil-metrika{background:#fff!important;border:1px solid #dce5eb!important;border-radius:9px!important;padding:16px!important;box-shadow:none!important}
.rud-redesign .rd-report #tab-profil .profil-metrika span,.rud-redesign .rd-report #tab-profil .profil-metrika small{color:#647d8e!important}
.rud-redesign .rd-report #tab-profil .profil-metrika strong{color:#14587a!important;font-weight:800!important}
.rud-redesign .rd-report #tab-profil .profil-administrativa{color:#334c60!important;border-color:#dce5eb!important}
.rud-redesign .rd-report #tab-profil .profil-administrativa b{color:#5f798a!important}
.rud-redesign .rd-report #tab-profil .profil-subcard{background:#fff!important;border:1px solid #dce5eb!important;border-radius:9px!important;color:#324e61!important}
.rud-redesign .rd-report #tab-profil .profil-vekove,.rud-redesign .rd-report #tab-profil .profil-historie,.rud-redesign .rd-report #tab-profil .profil-row-label,.rud-redesign .rd-report #tab-profil .profil-histcol span,.rud-redesign .rd-report #tab-profil .profil-zdroje{color:#637d8e!important}
.rud-redesign .rd-report #tab-profil .profil-row-value,.rud-redesign .rd-report #tab-profil .profil-histcol b{color:#24455d!important}
/* Školství: změna tmavých panelů na světlé, zachované rozbalování škol a funkce */
.rud-redesign .rd-report #tab-skolstvi .sk-oficialni{background:#f3f8fa!important;border:1px solid #cfe1e9!important;border-radius:10px!important;color:#24455b!important;padding:21px!important}
.rud-redesign .rd-report #tab-skolstvi .sk-hlavni{border-bottom:1px solid #d3e2e9!important}
.rud-redesign .rd-report #tab-skolstvi .sk-hlavni>span,.rud-redesign .rd-report #tab-skolstvi .sk-hlavni small{color:#637d8e!important}
.rud-redesign .rd-report #tab-skolstvi .sk-hlavni strong{color:#145f83!important}
.rud-redesign .rd-report #tab-skolstvi .sk-metriky>div{background:#fff!important;border:1px solid #dbe6eb!important;border-radius:8px!important}
.rud-redesign .rd-report #tab-skolstvi .sk-metriky span{color:#607b8d!important}
.rud-redesign .rd-report #tab-skolstvi .sk-metriky strong{color:#174b68!important}
.rud-redesign .rd-report #tab-skolstvi .sk-rozpis,.rud-redesign .rd-report #tab-skolstvi .sk-ss-sekce,.rud-redesign .rd-report #tab-skolstvi .skoly-profil{background:#fff!important;border:1px solid #dce6eb!important;border-radius:10px!important;color:#284659!important}
.rud-redesign .rd-report #tab-skolstvi .sk-head p,.rud-redesign .rd-report #tab-skolstvi .sk-detail-title p,.rud-redesign .rd-report #tab-skolstvi .skoly-note,.rud-redesign .rd-report #tab-skolstvi .sk-ss-info{color:#637b8e!important}
.rud-redesign .rd-report #tab-skolstvi .sk-kat,.rud-redesign .rd-report #tab-skolstvi .skoly-box,.rud-redesign .rd-report #tab-skolstvi .sk-ss-skola{background:#f8fafb!important;border:1px solid #dce6ec!important;border-radius:9px!important}
.rud-redesign .rd-report #tab-skolstvi .sk-kat>div{border-color:#dce5ea!important;color:#657e90!important}
.rud-redesign .rd-report #tab-skolstvi .sk-kat strong,.rud-redesign .rd-report #tab-skolstvi .skoly-box strong,.rud-redesign .rd-report #tab-skolstvi .sk-ss-skola strong,.rud-redesign .rd-report #tab-skolstvi .sk-ss-skola .sk-cislo{color:#17465f!important}
.rud-redesign .rd-report #tab-skolstvi .skoly-box .skoly-titulek,.rud-redesign .rd-report #tab-skolstvi .sk-ss-skola small,.rud-redesign .rd-report #tab-skolstvi .sk-kat h5,.rud-redesign .rd-report #tab-skolstvi .skoly-box small{color:#5e788a!important}
.rud-redesign .rd-report #tab-skolstvi .sk-rozbaleni{background:#f8fafb!important;border:1px solid #d7e4eb!important;color:#25445a!important}
.rud-redesign .rd-report #tab-skolstvi .sk-rozbaleni>summary{color:#1d4059!important}
.rud-redesign .rd-report #tab-skolstvi .sk-rozbaleni>summary span{color:#6a8191!important}
.rud-redesign .rd-report #tab-skolstvi .sk-rozbaleni[open]>summary{border-color:#dbe5eb!important}
.rud-redesign .rd-report #tab-skolstvi .skoly-profil th,.rud-redesign .rd-report #tab-skolstvi .skoly-profil td{border-color:#dce6ea!important;color:#29475a!important}
.rud-redesign .rd-report #tab-skolstvi .skoly-profil th{background:#f2f5f6!important}
/* Finance: původní tmavé infokarty do světlé palety; čísla zůstávají čitelná */
.rud-redesign .rd-report #tab-finance>h2{margin-bottom:7px!important}
.rud-redesign .rd-report #tab-finance>.finance-note:first-of-type{padding-bottom:18px!important;border-bottom:1px solid #dce6eb!important}
.rud-redesign .rd-report #tab-finance .finance-tile,.rud-redesign .rd-report #tab-finance .finance-panel{background:#fff!important;border:1px solid #dbe5eb!important;border-radius:9px!important;color:#254459!important;box-shadow:none!important}
.rud-redesign .rd-report #tab-finance .finance-tile strong{color:#145d7e!important}
.rud-redesign .rd-report #tab-finance .finance-label,.rud-redesign .rd-report #tab-finance .finance-tile small,.rud-redesign .rd-report #tab-finance .finance-note,.rud-redesign .rd-report #tab-finance .finance-panel p{color:#617b8e!important}
.rud-redesign .rd-report #tab-finance .finance-panel h3{color:#233d50!important;border-bottom:1px solid #dce5ea;padding-bottom:12px}
.rud-redesign .rd-report #tab-finance .finance-table td{background:#fff!important;color:#2b4759!important;border-color:#dce6eb!important}
.rud-redesign .rd-report #tab-finance .finance-table td:last-child{color:#124e6e!important;font-weight:700}
/* Analytika: stejné záhlaví a světle zvýrazněné vysvětlení */
.rud-redesign .rd-report #tab-analyza .analysis-head{position:relative;border-bottom:1px solid #dce6eb!important;padding:23px 0 17px!important;margin-bottom:19px!important;flex-wrap:wrap}
.rud-redesign .rd-report #tab-analyza .rud-analysis-kicker{position:absolute;top:0;left:0}
.rud-redesign .rd-report #tab-analyza .analysis-message{background:#edf5f8!important;color:#496a80!important;border:1px solid #d8e6ec!important}
.rud-redesign .rd-report #tab-analyza .analysis-note{background:#f4f8fa!important;color:#536e82!important;border-left:3px solid #1f7b9c!important;border-radius:0 6px 6px 0}
.rud-redesign .rd-report .tab-content .icon-btn,.rud-redesign .rd-report .tab-content .mini-btn{background:#f2f6f8!important;color:#1c4560!important;border:1px solid #d8e5ec!important}
@media(max-width:700px){.rud-redesign .rd-report #tab-skolstvi .sk-metriky{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rud-redesign .rd-report #tab-profil .profil-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rud-redesign .rd-report #tab-finance .finance-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}}


/* V37: záměrná kontrastní vrstva po všech předchozích tématech.
   Pozor: školské tabulky původně používaly #e6edf3 na světlém pozadí. */
.rud-redesign .rd-report .tab-content {
  --v37-ink:#1d3042;--v37-muted:#425b70;--v37-line:#cddae4;
  --v37-bg:#ffffff;--v37-th:#edf3f7;--v37-accent:#145d80;
  color:var(--v37-ink)!important;background:#fff!important;
  font-size:15px!important;line-height:1.5!important;
}
.rud-redesign .rd-report .tab-content p,
.rud-redesign .rd-report .tab-content li,
.rud-redesign .rd-report .tab-content label,
.rud-redesign .rd-report .tab-content dt,
.rud-redesign .rd-report .tab-content dd{color:var(--v37-muted)!important;line-height:1.55!important}
.rud-redesign .rd-report .tab-content h3,
.rud-redesign .rd-report .tab-content h4,
.rud-redesign .rd-report .tab-content h5{color:var(--v37-ink)!important;font-weight:800!important}
.rud-redesign .rd-report .tab-content h4{font-size:18px!important}
.rud-redesign .rd-report .tab-content h5{font-size:16px!important}
.rud-redesign .rd-report .tab-content .rud-unified-head p,
.rud-redesign .rd-report .tab-content .profil-intro p,
.rud-redesign .rd-report #tab-skolstvi .sk-nadpis p,
.rud-redesign .rd-report #tab-finance>.finance-note:first-of-type,
.rud-redesign .rd-report #tab-analyza .analysis-head p {font-size:14px!important;color:var(--v37-muted)!important}
/* Sdílená tabulka napříč záložkami */
.rud-redesign .rd-report .tab-content table,
.rud-redesign .rd-report .tab-content table.detail,
.rud-redesign .rd-report .tab-content table.finance-table {
  border-collapse:collapse!important;width:100%!important;
  color:var(--v37-ink)!important;background:#fff!important;font-size:15px!important;
}
.rud-redesign .rd-report .tab-content table th,
.rud-redesign .rd-report .tab-content table td,
.rud-redesign .rd-report #tab-skolstvi table th,
.rud-redesign .rd-report #tab-skolstvi table td,
.rud-redesign .rd-report #tab-finance table td {
  color:var(--v37-ink)!important;background:#fff!important;
  border-bottom:1px solid var(--v37-line)!important;
  padding:12px 13px!important;font-size:15px!important;
  line-height:1.48!important;vertical-align:middle!important;
}
.rud-redesign .rd-report .tab-content table thead th,
.rud-redesign .rd-report #tab-skolstvi table thead th {
  background:var(--v37-th)!important;color:#213c52!important;
  font-weight:800!important;border-bottom:2px solid #b9cbd8!important;
}
.rud-redesign .rd-report .tab-content table tfoot th,
.rud-redesign .rd-report .tab-content table tfoot td,
.rud-redesign .rd-report .tab-content table tr.sum-row td,
.rud-redesign .rd-report .tab-content table tr.sum-row th {
  background:#edf4f7!important;color:#153b53!important;font-weight:800!important;
}
.rud-redesign .rd-report .tab-content table tr.section-row td,
.rud-redesign .rd-report .tab-content table tr.section-row th {
  background:#e6eff4!important;color:#173b53!important;font-weight:800!important;
}
.rud-redesign .rd-report .tab-content table tbody tr:hover td,
.rud-redesign .rd-report .tab-content table tbody tr:hover th {background:#f3f8fb!important}
.rud-redesign .rd-report .tab-content table td small,
.rud-redesign .rd-report #tab-skolstvi table td small {color:#476277!important}
/* Školství – důsledné přepsání původních tmavých barev */
.rud-redesign .rd-report #tab-skolstvi .sk-oficialni {
  background:#f5fafc!important;color:#1d3548!important;
  border:1px solid #c6dbe5!important;
}
.rud-redesign .rd-report #tab-skolstvi .sk-hlavni>span,
.rud-redesign .rd-report #tab-skolstvi .sk-hlavni small,
.rud-redesign .rd-report #tab-skolstvi .sk-metriky span,
.rud-redesign .rd-report #tab-skolstvi .sk-head p,
.rud-redesign .rd-report #tab-skolstvi .sk-detail-title p,
.rud-redesign .rd-report #tab-skolstvi .skoly-note,
.rud-redesign .rd-report #tab-skolstvi .sk-ss-info {color:#405b70!important;opacity:1!important}
.rud-redesign .rd-report #tab-skolstvi .sk-hlavni strong,
.rud-redesign .rd-report #tab-skolstvi .sk-metriky strong{color:#115d80!important}
.rud-redesign .rd-report #tab-skolstvi .sk-kat,
.rud-redesign .rd-report #tab-skolstvi .skoly-box,
.rud-redesign .rd-report #tab-skolstvi .skoly-box-dalsi,
.rud-redesign .rd-report #tab-skolstvi .sk-ss-skola {
  background:#fff!important;color:#1d3042!important;border:1px solid #cddce7!important;
  border-left:3px solid #207ba1!important;border-radius:9px!important;
}
.rud-redesign .rd-report #tab-skolstvi .sk-kat h5,
.rud-redesign .rd-report #tab-skolstvi .skoly-box .skoly-titulek,
.rud-redesign .rd-report #tab-skolstvi .sk-ss-skola strong {
  color:#193b52!important;font-weight:800!important;
}
.rud-redesign .rd-report #tab-skolstvi .sk-kat>div,
.rud-redesign .rd-report #tab-skolstvi .sk-kat .sk-empty,
.rud-redesign .rd-report #tab-skolstvi .skoly-box small,
.rud-redesign .rd-report #tab-skolstvi .sk-ss-skola small {
  color:#405b70!important;opacity:1!important;
  border-color:#d8e3ea!important;
}
.rud-redesign .rd-report #tab-skolstvi .sk-kat strong,
.rud-redesign .rd-report #tab-skolstvi .skoly-box strong,
.rud-redesign .rd-report #tab-skolstvi .sk-ss-skola .sk-cislo {
  color:#123f5a!important;font-weight:800!important;
}
.rud-redesign .rd-report #tab-skolstvi .sk-rozpis,
.rud-redesign .rd-report #tab-skolstvi .sk-rozbaleni,
.rud-redesign .rd-report #tab-skolstvi .sk-ss-sekce,
.rud-redesign .rd-report #tab-skolstvi .skoly-profil {
  background:#fff!important;color:#1d3042!important;
  border:1px solid #cddce7!important;
}
.rud-redesign .rd-report #tab-skolstvi .sk-rozbaleni>summary {
  background:#f0f5f8!important;color:#163d57!important;
  font-size:16px!important;font-weight:800!important;
}
.rud-redesign .rd-report #tab-skolstvi .sk-rozbaleni>summary span {color:#476276!important}
.rud-redesign .rd-report #tab-skolstvi .skoly-rud-warning,
.rud-redesign .rd-report #tab-skolstvi .sk-ss-varovani {
  background:#fff8e9!important;color:#59441b!important;
  border-left:4px solid #b77919!important;
  padding:10px 12px!important;
}
.rud-redesign .rd-report #tab-skolstvi .skoly-profil a,
.rud-redesign .rd-report #tab-profil a,
.rud-redesign .rd-report #tab-finance a{color:#075c82!important;text-decoration:underline!important}
/* Finanční ukazatele: záměrně tmavé popisky i pro měnící se hodnoty. */
.rud-redesign .rd-report #tab-finance .finance-tile,
.rud-redesign .rd-report #tab-finance .finance-panel,
.rud-redesign .rd-report #tab-profil .profil-metrika,
.rud-redesign .rd-report #tab-profil .profil-subcard {
  background:#fff!important;color:#1d3042!important;border:1px solid #cddce7!important;
}
.rud-redesign .rd-report #tab-finance .finance-tile strong,
.rud-redesign .rd-report #tab-profil .profil-metrika strong{color:#0e5a7c!important}
.rud-redesign .rd-report #tab-finance .finance-label,
.rud-redesign .rd-report #tab-finance .finance-note,
.rud-redesign .rd-report #tab-finance .finance-tile small,
.rud-redesign .rd-report #tab-profil .profil-metrika span,
.rud-redesign .rd-report #tab-profil .profil-metrika small{color:#435d71!important;opacity:1!important}
.rud-redesign .rd-report #tab-analyza .analysis-message,
.rud-redesign .rd-report #tab-analyza .analysis-note{
  color:#2a495f!important;background:#eef5f8!important;
  border-color:#cbdce6!important;font-size:14px!important;
}
/* Zaručení čitelnosti polí a tlačítek uvnitř záložek */
.rud-redesign .rd-report .tab-content input,
.rud-redesign .rd-report .tab-content select {
  background:#fff!important;color:#1d3042!important;border:1px solid #9fb6c6!important;
}
.rud-redesign .rd-report .tab-content .mini-btn,
.rud-redesign .rd-report .tab-content .icon-btn{
  background:#eef5f9!important;color:#154a67!important;
  border:1px solid #bbcedb!important;font-weight:700!important;
}
@media(max-width:720px){
  .rud-redesign .rd-report .tab-content{padding:14px!important}
  .rud-redesign .rd-report #tab-skolstvi .sk-kategorie{grid-template-columns:1fr!important}
  .rud-redesign .rd-report .tab-content table th,
  .rud-redesign .rd-report .tab-content table td {padding:10px 9px!important;font-size:14px!important}
}

/* V39: rozlišení účetních údajů 2026 a ročních ukazatelů 2025 */
.rud-redesign .rd-report #tab-finance .finance-year-group {margin-top:17px;border:1px solid #d6e3eb;border-radius:8px;overflow:hidden;background:#fff}
.rud-redesign .rd-report #tab-finance .finance-year-group h4 {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0!important;padding:11px 14px!important;background:#edf4f8!important;color:#163b53!important;font-size:16px!important;font-weight:800!important;border-bottom:1px solid #d6e3eb}
.rud-redesign .rd-report #tab-finance .finance-year-group h4 span {font-size:13px;font-weight:500;color:#526b7c}
.rud-redesign .rd-report #tab-finance .finance-year-group table {margin:0!important}
.rud-redesign .rd-report #tab-finance .finance-year-group .finance-table td {padding:11px 13px!important}
/* Prázdná stavová zpráva se nezobrazuje. Chyby načítání zůstávají viditelné. */
.rud-redesign .rd-report #tab-skolstvi #skoly-rud-status:empty {display:none!important}

/* V40: osobitné tmavě červené označení záložky RUD 2027 */
.rud-redesign .rud-top-menu .tab-buttons button[data-tab="rud2027"]{
  color:#8a2231!important;font-weight:850!important;
}
.rud-redesign .rud-top-menu .tab-buttons button[data-tab="rud2027"].active,
.rud-redesign .rud-top-menu .tab-buttons button[data-tab="rud2027"]:hover{
  background:#f6e7e9!important;color:#791a2b!important;
  box-shadow:inset 0 0 0 1px #d5a3ab!important;
}

/* V44 – dvě výrazné akce ve stejné vínově červené jako RUD 2027. */
.rud-redesign .rud-top-menu .rud-model-navlink,
.rud-redesign .rud-top-menu .tab-buttons .rud-model-navlink {
  color:#8a2231!important;
  font-weight:850!important;
  background:#fff7f8!important;
  border:1px solid #d5a3ab!important;
}
.rud-redesign .rud-top-menu .rud-model-navlink:hover,
.rud-redesign .rud-top-menu .rud-model-navlink:focus-visible {
  background:#f6e7e9!important;
  color:#791a2b!important;
  box-shadow:inset 0 0 0 1px #d5a3ab!important;
}
.rud-redesign .rd-report #tab-rud2027 #predCfgBtn,
.rud-redesign .rd-report #predCfgBtn {
  color:#8a2231!important;
  font-weight:850!important;
  background:#fff3f5!important;
  border:1px solid #c98e99!important;
  border-radius:7px!important;
  min-width:35px;
  min-height:32px;
  cursor:pointer;
}
.rud-redesign .rd-report #predCfgBtn:hover,
.rud-redesign .rd-report #predCfgBtn:focus-visible {
  background:#f6e7e9!important;
  color:#791a2b!important;
  outline:2px solid #b96b7a;
  outline-offset:1px;
}
