/* Werkboek (beheer/werkboek.js): het Excel-sjabloon van het kantoor als bladen in het platform. */
.wb-jaar { margin: 0; min-width: 120px; }
.wb-knoppen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.wb-balk { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: 14px; }
.wb-stand { margin: 0; color: var(--tekst); }
.wb-goed { color: var(--groen); }
.wb-saldo { margin: 0; width: 170px; }
.wb-saldo input { text-align: right; font-variant-numeric: tabular-nums; }
.wb-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 22px; margin-bottom: 14px; padding: 12px 14px; background: var(--vlak-licht); border-radius: 10px; }
.wb-filter .veld { margin: 0; flex: 1 1 240px; max-width: 360px; }
.wb-vink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9rem; cursor: pointer; }
.wb-vink input { width: 18px; height: 18px; accent-color: var(--diep); }

.wb-wrap { max-height: 70vh; overflow: auto; }
.wb-tabel { font-size: .88rem; font-variant-numeric: tabular-nums; }
.wb-tabel thead th { position: sticky; top: 0; z-index: 1; background: #fff; box-shadow: inset 0 -1px 0 var(--lijn); }
.wb-tabel thead tr + tr th { top: 33px; }
.wb-tabel td, .wb-tabel th { padding: 7px 8px; }
.wb-tabel td.getal { text-align: right; white-space: nowrap; }
.wb-tabel .neg { color: var(--rood); }
.wb-tabel tfoot th, .wb-tabel tfoot td { font-weight: 600; color: var(--tekst); text-transform: none; letter-spacing: 0; font-size: .88rem; border-top: 1px solid var(--lijn); border-bottom: 0; background: var(--vlak-licht); }
.wb-tabel tbody th[scope="row"], .wb-tabel tfoot th[scope="row"] { text-align: left; white-space: nowrap; }
.wb-tabel tbody th[scope="row"] { text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--tekst); border-bottom: 1px solid var(--lijn-zacht); }
.wb-datum { white-space: nowrap; }
.wb-naam { max-width: 220px; }
.wb-naam span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-roms { min-width: 150px; color: var(--tekst); }
.wb-roms.wb-voorstel { color: var(--amber); font-style: italic; }
.wb-bank input, .wb-bank select { min-height: 36px; padding: 5px 8px; font-size: .88rem; border: 1px solid var(--lijn); border-radius: 6px; background: #fff; color: var(--tekst); font-family: inherit; }
.wb-bank input:focus-visible, .wb-bank select:focus-visible { outline: 2px solid var(--blauw); outline-offset: 1px; }
.wb-rek { width: 74px; font-variant-numeric: tabular-nums; }
.wb-rek[aria-invalid="true"] { border-color: var(--rood); background: var(--rood-vlak); }
.wb-rek::placeholder { color: var(--amber); opacity: 1; }
.wb-extra { width: 100%; min-width: 180px; }
.wb-pct { width: 72px; }
.wb-pct:disabled { background: var(--vlak-licht); color: var(--grijs); }
tr.wb-open > td { background: #FFFBF1; }
tr.wb-verschil th, tr.wb-verschil td { background: var(--amber-vlak) !important; color: var(--amber); }
.wb-let-op { background: var(--amber-vlak); color: var(--amber); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
.wb-groep { border-left: 1px solid var(--lijn); }
.wb-groepkop { text-align: center; }
.wb-cat { color: var(--grijs); white-space: nowrap; }
.wb-klein { max-width: 560px; margin-top: 22px; }
.wb-klein caption { text-align: left; font-weight: 600; padding: 0 0 8px; color: var(--tekst); }

.wb-kasform { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; align-items: start; padding: 14px 16px 2px; margin-bottom: 18px; background: var(--vlak-licht); border-radius: 10px; }
.wb-kasform .wb-breed { grid-column: span 2; }
.wb-kasknop { align-self: end; margin-bottom: 14px; }
@media (max-width: 860px) { .wb-kasform { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .wb-kasform { grid-template-columns: 1fr; } .wb-kasform .wb-breed { grid-column: auto; } .wb-saldo { width: 100%; } }

/* Banktabel passend maken: koppen mogen afbreken, cellen compacter */
.wb-bank th { white-space: normal; line-height: 1.25; vertical-align: bottom; letter-spacing: .03em; font-size: .74rem; }
.wb-bank td, .wb-bank th { padding: 6px 6px; }
.wb-bank .wb-rek { width: 72px; padding-inline: 7px; }
.wb-bank .wb-extra { min-width: 120px; }
.wb-bank .wb-roms { min-width: 110px; }
.wb-bank .wb-naam { max-width: 170px; }
.wb-bank .wb-pct { width: 68px; padding-inline: 6px; }
.wb-bank th { hyphens: manual; }
.wb-bank .wb-naam { max-width: 150px; }

/* Beginsaldo uit het bankbestand: hint onder het veld en rustige melding bij een afwijkend saldo */
.wb-saldo .wb-bron { display: block; margin-top: 4px; line-height: 1.35; }
.wb-saldo:has(.wb-bron:not([hidden])) { width: 240px; }
.wb-controle[hidden] { display: none; }
@media (max-width: 520px) { .wb-saldo:has(.wb-bron:not([hidden])) { width: 100%; } }

/* Kop: Boekjaar-keuze en de knop 'Download als Excel' naast elkaar, rechts van de titel */
.werkbak-kop:has(> .wb-excel) > div:first-child { flex: 1 1 320px; }
.wb-excel { white-space: nowrap; }

/* Automatisch ingedeelde bankregels: smal goudkleurig streepje links en het woord "automatisch" bij de grootboekomschrijving */
tr.wb-auto > td:first-child { box-shadow: inset 3px 0 0 var(--goud); }
.wb-autotag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--amber-vlak); color: var(--tekst); font-size: .72rem; line-height: 1.5; white-space: nowrap; cursor: help; }

/* Kolommenbalans: acht bedragkolommen in vier groepen. Compacte cellen, zodat de tabel op een breed scherm zonder schuiven past.
   Op een smal scherm schuift de tabel binnen zijn eigen kader (.wb-wrap). */
.wb-uitleg { max-width: 860px; margin: 0 0 12px; line-height: 1.5; }
.wb-sluit { background: var(--groen-vlak); color: var(--groen); }
.wb-kol { width: 100%; }
.wb-kol td, .wb-kol th { padding: 6px 8px; }
.wb-kol thead th { white-space: nowrap; vertical-align: bottom; }
.wb-kol thead tr + tr th { top: 31px; }
.wb-kol thead th.getal { text-align: right; }
.wb-kol td.getal { min-width: 64px; }
.wb-kol .wb-koms { min-width: 150px; }
.wb-kol tr.wb-kunst td { color: var(--grijs); }
.wb-kol tr.wb-kunst .getal span { color: var(--tekst); }
.wb-kunsttag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--vlak-licht); color: var(--tekst); font-size: .72rem; font-style: normal; line-height: 1.5; white-space: nowrap; }
.wb-kol tfoot tr.wb-resultaat th, .wb-kol tfoot tr.wb-resultaat td { background: #fff; border-top: 2px solid var(--lijn); }
.wb-kol tfoot tr:last-child th, .wb-kol tfoot tr:last-child td { border-top: 1px solid var(--lijn); }
