/* Beheer: jaarrekening (beheer/jaarrekening.js). Zelfde tokens als beheer.css. */
.jr { min-width: 0; }
.jr .neg { color: var(--rood); }
.jr .getal { font-variant-numeric: tabular-nums; }
.jr .link-knop { min-height: 44px; }
.jr h3 { display: flex; align-items: center; gap: 8px; }
.jr h3:focus, .jr h2:focus, .jr h4:focus { outline: none; }
.jr h3 svg, .jr-pil-def svg, .jr-slot svg { flex-shrink: 0; }

/* Kop */
.jr-kop h2 { margin-bottom: 6px; }
.jr-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; }
.jr-pil-concept { background: var(--amber-vlak); color: var(--amber); }
.jr-pil-def { display: inline-flex; align-items: center; gap: 6px; background: var(--groen-vlak); color: var(--groen); }
.jr-pil-def svg { width: 14px; height: 14px; }
.jr-keuze { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.jr-keuze .veld { margin: 0; }
.jr-keuze select { width: auto; min-width: 170px; }

/* Controles */
.jr-controles { border-left: 4px solid var(--groen); }
.jr-controles.is-blok { border-left-color: var(--rood); }
.jr-controles.is-let { border-left-color: var(--goud); }
.jr-controles .kaart-kop { margin-bottom: 8px; }
.jr-controles h3 { font-size: 1.05rem; margin: 0; }
.jr-controles.is-blok h3 { color: var(--rood); }
.jr-controles.is-let h3 { color: var(--amber); }
.jr-controles.is-ok h3 { color: var(--groen); }
.jr-ctl-groep { font: 500 .78rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--grijs); margin: 14px 0 4px; }
.jr-ctl-lijst { list-style: none; margin: 0; padding: 0; }
.jr-ctl { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--lijn-zacht); min-height: 44px; }
.jr-ctl:last-child { border-bottom: 0; }
.jr-ctl-stop { color: var(--rood); }
.jr-ctl-let { color: var(--amber); }
.jr-ctl-ok { color: var(--groen); }
.jr-ctl-tekst { color: var(--tekst); overflow-wrap: anywhere; }
.jr-ctl-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.jr-ctl-ok-lijst, details.jr-ctl-ok { margin-top: 10px; }
details.jr-ctl-ok summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--grijs); font-size: .92rem; width: fit-content; }
details.jr-ctl-ok summary:hover { color: var(--tekst); }
@media (max-width: 600px) {
  .jr-ctl { grid-template-columns: 18px minmax(0, 1fr); align-items: start; padding: 10px 0; }
  .jr-ctl svg { margin-top: 3px; }
  .jr-ctl-link { grid-column: 2; min-height: 40px; }
}

.jr-slot { display: flex; align-items: center; gap: 10px; }

/* Tabellen */
.jr-eenheid { font-size: .85rem; }
.jr-twee { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px 40px; align-items: start; }
.jr-een { max-width: 760px; }
.jr-tabel { width: 100%; table-layout: fixed; font-size: .93rem; }
.jr-tabel col.jr-col-getal { width: 8.6em; }
.jr-tabel thead th { padding: 8px 10px 8px 0; }
.jr-tabel thead th.getal { padding: 8px 0 8px 10px; }
.jr-tabel th, .jr-tabel td { overflow-wrap: anywhere; }
.jr-tabel tbody th { text-align: left; font-weight: 400; font-size: inherit; color: var(--tekst); text-transform: none; letter-spacing: 0; white-space: normal; padding: 0 10px 0 0; border-bottom: 1px solid var(--lijn-zacht); height: 44px; }
.jr-tabel td { padding: 6px 0 6px 10px; height: 44px; }
.jr-tabel .jr-vj { color: var(--grijs); }
.jr-tabel .jr-vj .neg { color: var(--rood); opacity: .85; }
.jr-leeg { color: var(--lijn); }
.jr-rub-rij th, .jr-rub-rij td { font-weight: 500; }
.jr-rub-naam { display: inline-block; padding-left: 24px; }
.jr-uitklap { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 0; background: none; border: 0; font: inherit; font-weight: 500; color: var(--tekst); text-align: left; cursor: pointer; }
.jr-uitklap:hover span { text-decoration: underline; text-underline-offset: 3px; }
.jr-pijl { flex-shrink: 0; color: var(--grijs); transition: transform .15s; margin: 0 2px; }
.jr-uitklap[aria-expanded="true"] .jr-pijl { transform: rotate(90deg); }
.jr-regels td { font-size: .88rem; height: 40px; background: var(--vlak-licht); }
.jr-regels td:first-child { padding-left: 24px; }
.jr-rek { display: inline-flex; gap: 10px; align-items: baseline; color: var(--tekst); text-decoration: none; min-height: 32px; padding: 6px 0; }
a.jr-rek:hover { color: var(--blauw); text-decoration: underline; text-underline-offset: 3px; }
.jr-nr { font-variant-numeric: tabular-nums; color: var(--grijs); min-width: 2.6em; white-space: nowrap; }
.jr-tussen th, .jr-tussen td { font-weight: 600 !important; border-top: 1px solid var(--lijn); background: #fff; }
.jr-tussen th { padding-left: 24px !important; }
.jr-tabel tfoot th, .jr-tabel tfoot td { font-weight: 600; font-size: .95rem; color: var(--tekst); text-transform: none; letter-spacing: 0; border-top: 2px solid var(--diep); border-bottom: 0; padding: 12px 0 12px 10px; text-align: right; }
.jr-tabel tfoot th { text-align: left; padding-left: 0; }
.jr-tabel tfoot .jr-vj { color: var(--grijs); }
.jr-tabel tfoot tr.jr-resultaat th, .jr-tabel tfoot tr.jr-resultaat td { background: var(--groen-vlak); font: 500 1.05rem var(--kopfont); }
.jr-tabel tfoot tr.jr-resultaat.verlies th, .jr-tabel tfoot tr.jr-resultaat.verlies td { background: var(--rood-vlak); }
.jr-tabel tfoot tr.jr-resultaat th { padding-left: 12px; }
.jr-tabel tfoot tr.jr-resultaat td:last-child { padding-right: 12px; }
.jr-ev .jr-ev-stand th, .jr-ev .jr-ev-stand td { color: var(--tekst); }
.jr-ev tbody th { padding-left: 0; }
.jr-uitleg { margin: 12px 0 0; color: var(--grijs); }
.jr-uitleg .link-knop { margin-right: 10px; }
@media (max-width: 480px) {
  .jr .kaart { padding: 16px 14px; }
  .jr-tabel { font-size: .86rem; }
  .jr-tabel col.jr-col-getal { width: 6.9em; }
  .jr-regels td { font-size: .8rem; }
  .jr-regels td:first-child { padding-left: 8px; }
  .jr-rek { flex-direction: column; gap: 0; padding: 4px 0; }
  .jr-nr { min-width: 0; font-size: .74rem; }
  .jr-tabel thead th { letter-spacing: .02em; font-size: .72rem; }
  .jr-rub-naam { padding-left: 0; }
  .jr-tussen th { padding-left: 0 !important; }
}
@media (max-width: 360px) {
  .jr-tabel col.jr-col-getal { width: 6.2em; }
  .jr-tabel { font-size: .8rem; }
}

/* Resultaatbestemming */
.jr-keus { border: 0; margin: 0 0 6px; padding: 0; }
.jr-keus .vinkje input { flex-shrink: 0; }
.jr-rb-rij { max-width: 320px; }
.jr-rb-uitkomst { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 16px; max-width: 520px; }
.jr-rb-uitkomst > div { background: var(--vlak-licht); border-radius: 8px; padding: 10px 14px; }
.jr-rb-uitkomst dt { font-size: .82rem; color: var(--grijs); }
.jr-rb-uitkomst dd { margin: 2px 0 0; font: 400 1.2rem/1.3 var(--kopfont); font-variant-numeric: tabular-nums; }

/* Toelichting */
.jr-toel .veld { max-width: 820px; }
.jr-toel textarea { overflow-y: hidden; }
.jr-toel textarea[readonly] { background: var(--vlak-licht); color: var(--tekst); }
.jr-opslag { font-size: .86rem; }
.jr-opslag.is-fout { color: var(--rood); }
.jr-teller { white-space: nowrap; margin-left: 4px; }

/* Afronden */
.jr-afronden { border-top: 3px solid var(--goud); }
.jr-afronden.is-def { border-top-color: var(--groen); }
.jr-afronden.is-def h3 { color: var(--groen); }
.jr-afronden .knop { white-space: normal; text-align: center; }
.jr-bevestig { background: var(--vlak-licht); border: 1px solid var(--lijn); border-radius: var(--radius); padding: 18px 20px; margin-top: 4px; max-width: 760px; }
.jr-bevestig h4 { font: 500 1.05rem var(--kopfont); margin: 0 0 10px; }
.jr-bevestig ul { margin: 0 0 12px; padding-left: 20px; }
.jr-bevestig li { margin-bottom: 8px; }
.jr-geen h3 { margin-bottom: 8px; }
@media (max-width: 480px) { .jr-bevestig { padding: 14px; } .jr-afronden .knoppen .knop { width: 100%; } }
