/* ============================================================
   BV Boekhouding — stijl (navy/flame, DM Sans)
   Zelfde visuele taal als PSM / Eurofly Vechtdal.
   ============================================================ */

:root {
    --navy:   #1a2d5a;
    --flame:  #e8820a;
    --forest: #2d6e2d;
    --red:    #c0392b;
    --sand:   #f7f8fa;
    --white:  #ffffff;
    --muted:  #6b7280;
    --border: #e2e6ee;

    --radius: 8px;
    --shadow: 0 1px 3px rgba(26, 45, 90, 0.08), 0 1px 2px rgba(26, 45, 90, 0.04);
    --shadow-lg: 0 10px 30px rgba(26, 45, 90, 0.18);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    color: #1f2430;
    background: var(--sand);
    line-height: 1.5;
}

h1, h2, h3 { font-weight: 300; color: var(--navy); margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; font-weight: 600; }
.muted { color: var(--muted); }
a { color: var(--flame); }

/* ---------- Header + tabmenu (sticky) ---------- */
.app-top {
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 10px rgba(26, 45, 90, 0.1);
}
.app-header {
    background: var(--navy);
    color: #fff;
}
.app-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: .85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand { font-weight: 700; font-size: 1.1rem; }
.header-right { display: flex; align-items: center; gap: .75rem; }
.user-pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; }

/* ---------- Tabs ---------- */
.tabs {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: .25rem;
    padding: 0 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
}
.tab {
    appearance: none;
    border: none;
    background: none;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    color: var(--muted);
    padding: .9rem 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.tab:hover { color: var(--navy); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--flame); }

/* ---------- Content ---------- */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}
.panel[hidden] { display: none; }

.app-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    font-size: .82rem;
}
.app-about-btn { font-size: inherit; color: var(--muted); }
.app-about-btn:hover { color: var(--navy); }
.app-footer-sep { color: var(--border); user-select: none; }
.panel-handleiding { max-width: none; width: 100%; }
.about-copy { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }
.about-disclaimer {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.55;
    margin: .75rem 0 0;
    padding: .75rem .85rem;
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.app-disclaimer-box {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.5;
    padding: .75rem 1rem;
    background: #f8f9fb;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.about-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px;
    background: #fff;
}

/* ---------- Kaarten ---------- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.card-click { cursor: pointer; }
.card-click:hover { box-shadow: 0 4px 14px rgba(26, 45, 90, 0.12); }
.stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin-top: .25rem; }
.stat-value.positief { color: var(--forest); }
.stat-value.negatief { color: var(--red); }

/* ---------- Knoppen ---------- */
.btn {
    appearance: none;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    padding: .55rem .9rem;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--flame); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #cf7308; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover:not(:disabled) { background: #142347; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-danger { background: var(--red); color: #fff; }
.btn-light { background: var(--sand); color: var(--navy); border-color: var(--border); }
.btn-report {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    color: var(--navy);
    border: 1.5px solid var(--navy);
    box-shadow: 0 1px 3px rgba(26, 45, 90, .1);
}
.btn-report:hover:not(:disabled) {
    background: var(--navy);
    color: #fff;
}
.btn-report .icon-report { flex-shrink: 0; }
.btn-sm { padding: .35rem .6rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Toolbar / filters ---------- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}
.toolbar .spacer { flex: 1; }
.toolbar-btw { min-width: 9rem; }
.btw-filter-checks {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .65rem;
    padding: .45rem .65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.check-inline[hidden] { display: none !important; }

.check-inline {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-weight: 500;
    font-size: .85rem;
    color: var(--navy);
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
}
.check-inline input {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* ---------- Formulieren ---------- */
label { display: block; font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: .35rem; }
input, select, textarea {
    font-family: inherit;
    font-size: .9rem;
    width: 100%;
    padding: .5rem .65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--flame);
    box-shadow: 0 0 0 3px rgba(232,130,10,.15);
}
.field { margin-bottom: .9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.ac-field { position: relative; }
.ac-field .ac-list {
    position: relative;
    z-index: 2;
    left: auto;
    right: auto;
    top: auto;
    margin-top: .35rem;
    max-height: min(22rem, 45vh);
    overflow-y: auto;
    padding: .25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}
.ac-field .ac-list[hidden] { display: none; }
.ac-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    width: 100%;
    padding: .45rem .55rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
}
.ac-item:hover,
.ac-item.is-active { background: #eef3fb; }
.ac-item-title { font-size: .88rem; font-weight: 600; }
.ac-item-meta { font-size: .75rem; color: var(--muted, #6b7280); }
.ac-empty { padding: .55rem .65rem; font-size: .85rem; color: var(--muted, #6b7280); }
.ac-gekozen { margin: .45rem 0 0; font-size: .85rem; }
.afs-filter-row { grid-template-columns: minmax(10rem, 2fr) minmax(5rem, 0.75fr) minmax(6rem, 0.75fr); align-items: end; }
textarea { resize: vertical; min-height: 70px; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
#afschriften-card .table-wrap table.data { width: 100%; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data-transacties {
    table-layout: fixed;
    font-size: .7rem;
}
table.data-transacties th,
table.data-transacties td {
    padding: .28rem .35rem;
    line-height: 1.25;
}
table.data-transacties th {
    font-size: .46rem;
    letter-spacing: .005em;
    white-space: normal;
    word-break: break-word;
    line-height: 1.15;
    vertical-align: bottom;
    text-transform: none;
    font-weight: 600;
}
table.data-transacties th.num,
table.data-transacties th.datum {
    white-space: normal;
}
table.data-transacties .verkoop-nr {
    color: var(--forest);
    font-weight: 400;
}
table.data-transacties .credit-bron {
    color: #6d28d9;
    font-weight: 400;
}
table.data-transacties td.cc-stapel {
    white-space: normal;
    vertical-align: top;
}
table.data-transacties .cc-stapel-regel {
    display: block;
    line-height: 1.35;
}
table.data-transacties .cc-stapel-regel + .cc-stapel-regel {
    margin-top: .12rem;
}
table.data th, table.data td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
table.data th { background: #fafbfc; font-weight: 600; color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
table.data tbody tr:hover { background: #fafbff; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td.datum, table.data th.datum { white-space: nowrap; }
.row-clickable { cursor: pointer; }
.bedrag-in { color: var(--forest); font-weight: 600; }
.bedrag-uit { color: var(--red); font-weight: 600; }

/* ---------- Badges / pills ---------- */
.badge {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.badge-rol { background: rgba(255,255,255,.2); color: #fff; }
.badge-groen { background: #e3f3e3; color: var(--forest); }
.badge-rood { background: #fae5e2; color: var(--red); }
.badge-grijs { background: #eceef2; color: var(--muted); }
.badge-flame { background: #fdecd6; color: #b5660a; }

.inloglog-icoon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}
.inloglog-icoon--ok { background: #d4edda; color: #1a6b3c; }
.inloglog-icoon--mis { background: #f5d0cb; color: var(--red); }

/* ---------- Alerts ---------- */
.alert { padding: .65rem .8rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: .75rem; }
.alert-error { background: #fae5e2; color: var(--red); }
.alert-info { background: #e7eefb; color: var(--navy); }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, .5);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 4vh 1rem; z-index: 50;
    overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }

/* Bonnetje-preview boven transactie-modal (formulier blijft behouden) */
.bon-preview-overlay {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(15, 23, 42, .65);
    display: flex; align-items: center; justify-content: center;
    padding: 4vh 1rem;
}
.bon-preview-panel {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%; max-width: min(90vw, 960px);
    max-height: calc(100vh - 8vh);
    display: flex; flex-direction: column;
}
.bon-preview-body { flex: 1; overflow: auto; padding: .75rem 1rem; min-height: 0; }
.modal {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%; max-width: 560px;
}
.modal.modal--breed { max-width: 720px; }
.modal.modal--hoog {
    min-height: min(62vh, 520px);
}
.modal.modal--content { max-width: 1200px; width: calc(100% - 2rem); }
.modal.modal--90 { max-width: 90vw; width: 90vw; }
.modal.modal--tx {
    display: flex; flex-direction: column;
    max-height: calc(100vh - 8vh);
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-header h2 { margin: 0; font-size: 1.15rem; }
.modal-close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 1.25rem; overflow-x: hidden; }
.modal-body.modal-body--tx {
    padding: 0; display: flex; flex-direction: column;
    flex: 1; min-height: 0; overflow: hidden;
}

/* Transactie bewerken — gegroepeerd, scrollbaar */
.tx-form {
    display: flex; flex-direction: column; flex: 1; min-height: 0;
}
.tx-modal-scroll {
    flex: 1; overflow-y: auto; padding: 1rem 1.25rem 0;
}
.tx-modal-footer {
    flex-shrink: 0; padding: .75rem 1.25rem 1rem;
    border-top: 1px solid var(--border); background: #fafbff;
}
.tx-sectie {
    margin-bottom: 1rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.tx-sectie:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.tx-sectie-titel {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 700; margin: 0 0 .65rem;
}
.tx-sectie-titel--summary { cursor: pointer; user-select: none; }
.tx-sectie--inklap summary.tx-sectie-titel--summary { list-style: none; }
.tx-sectie--inklap summary.tx-sectie-titel--summary::-webkit-details-marker { display: none; }
.tx-sectie--inklap summary.tx-sectie-titel--summary::before { content: '▸ '; color: var(--muted); }
.tx-sectie--inklap[open] summary.tx-sectie-titel--summary::before { content: '▾ '; }
.tx-sectie-inhoud { padding-top: .35rem; }
.tx-subsectie { margin-top: .85rem; }
.tx-subsectie:first-child { margin-top: 0; }
.tx-subsectie-titel { font-size: .85rem; font-weight: 600; color: var(--navy); margin: 0 0 .5rem; }
.tx-bedrag-preview {
    font-size: .78rem; color: var(--navy); margin: .25rem 0 0;
    padding: .4rem .55rem; background: var(--sand); border-radius: 4px;
}
.tx-bedrag-preview:empty { display: none; }
.field-row--3 { grid-template-columns: repeat(3, 1fr); }
.tx-hint-nieuw { font-size: .85rem; margin: 0; padding: 0 0 .5rem; }
.tx-sectie-inhoud .card { margin-top: 0; margin-bottom: .75rem; }
.tx-sectie-inhoud .card:last-child { margin-bottom: 0; }
.tx-modal-footer .alert { margin-bottom: .65rem; }

/* Transactie v2 — factuur preview + crediteur + regels */
.tx-form--v2 .tx-modal-scroll { padding: 1rem 1.25rem; }
.tx-eigen-gegevens {
    margin-bottom: .75rem; padding: .35rem .75rem;
    background: #f0f4ff; border: 1px solid #c7d2fe; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: flex-end; gap: .6rem;
}
.tx-eigen-gegevens--hint { background: #f8fafc; border-color: var(--border); }
.tx-inkoop-nummer-label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tx-inkoop-nummer-waarde { font-size: .95rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.tx-top-row {
    display: grid; grid-template-columns: 30% 1fr; gap: .75rem;
    margin-bottom: .75rem; align-items: stretch;
}
.tx-rechts-col { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.tx-bank-kop { margin-bottom: 0; }
.tx-bank-kop label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; display: block; margin-bottom: .25rem; }
.tx-bank-kop input { font-size: .88rem; font-weight: 500; width: 100%; padding: .35rem .45rem; }
.tx-meta-row {
    display: flex; flex-direction: column; gap: .5rem;
}
.tx-preview-col {
    position: relative;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: #f8fafc; display: flex; flex-direction: column; overflow: hidden;
    min-height: 220px; align-self: stretch;
}
.tx-preview-inhoud {
    flex: 1 1 0; display: flex; align-items: center; justify-content: center;
    padding: .75rem; min-height: 180px; overflow: auto;
}
.tx-preview-inhoud iframe { width: 100%; height: 100%; min-height: 0; border: none; }
.tx-preview-inhoud img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.tx-preview-inhoud img.tx-preview-zoom { cursor: zoom-in; }
.tx-preview-leeg { text-align: center; padding: 1rem; }
.tx-preview-leeg .btn { margin-top: .35rem; }
.tx-preview-toolbar {
    display: flex; align-items: center; gap: .25rem; flex-wrap: wrap;
    padding: .35rem 2.75rem .35rem .45rem;
    border-bottom: 1px solid var(--border);
    background: #fff; flex-shrink: 0;
}
.tx-preview-toolbar .tx-icon-btn { margin: 0; }
.tx-preview-count { font-size: .72rem; }
.tx-bon-vrij-corner {
    position: absolute;
    top: .35rem;
    right: .35rem;
    z-index: 4;
}
.bon-preview-toolbar { justify-content: flex-end; }
.tx-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; padding: 0; margin: 0; border: 1px solid var(--border);
    border-radius: 4px; background: #fff; color: var(--navy); cursor: pointer;
    text-decoration: none; line-height: 0; font-weight: 400; box-sizing: border-box;
}
.tx-icon-btn svg {
    display: block; flex-shrink: 0; width: 1.125rem; height: 1.125rem;
}
.tx-icon-btn:hover { background: var(--sand); border-color: #cbd5e1; }
.tx-bon-vrij-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.125rem; height: 1.125rem; }
.tx-bon-vrij-icon .tx-bon-vrij-doc,
.tx-bon-vrij-icon .tx-bon-vrij-kruis { display: block; width: 1.125rem; height: 1.125rem; }
.tx-bon-vrij-icon .tx-bon-vrij-kruis { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.tx-bon-vrij-toggle.bon-niet-nodig .tx-bon-vrij-kruis { visibility: visible; }
.tx-bon-vrij-toggle:disabled,
.tx-bon-vrij-toggle--uit {
    opacity: .4;
    cursor: not-allowed;
}
.tx-bon-vrij-toggle:disabled:hover,
.tx-bon-vrij-toggle--uit:hover {
    background: #fff;
    border-color: var(--border);
}
.tx-icon-btn[hidden] { display: none !important; }
.tx-preview-leeg-tekst { margin: 0; font-size: .82rem; }
.tx-kader-titel--row {
    display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
}
.tx-kader-inkoop-nr { font-size: .78rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.tx-preview-bon-opt {
    padding: .35rem .5rem; border-top: 1px solid var(--border); background: #fff;
}
.tx-preview-bon-check { font-size: .78rem; margin: 0; gap: .35rem; }
.tx-preview-bon-check input { margin: 0; }
.tx-preview-inkoop { padding: .4rem .5rem; border-top: 1px solid var(--border); background: #fff; }
.tx-preview-inkoop-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; display: block; }
.tx-preview-inkoop-row { display: flex; gap: .3rem; margin-top: .25rem; align-items: center; }
.tx-preview-inkoop-row select { flex: 1; min-width: 0; font-size: .78rem; padding: .3rem .35rem; }
.tx-kader {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: .5rem .6rem; display: flex; flex-direction: column; gap: .35rem; min-width: 0;
}
.tx-crediteur-col { background: #fff; }
.tx-boeking-col { background: #fafbff; }
.tx-kader-titel {
    font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); font-weight: 700; margin: 0 0 .15rem;
}
.tx-kader .field { margin-bottom: 0; }
.tx-kader .field label { font-size: .72rem; margin-bottom: .15rem; }
.tx-kader .field input,
.tx-kader .field select,
.tx-kader .field textarea { font-size: .82rem; padding: .3rem .4rem; }
.tx-kader-datum-row { gap: .4rem; align-items: end; }
.tx-kader-datum-row--cred { grid-template-columns: 9rem 9rem 4.5rem minmax(8rem, 1fr); }
.tx-kader-datum-row--cred.tx-kader-datum-row--cred-zonder-iban { grid-template-columns: 9rem 9rem 4.5rem; }
.tx-kader-datum-row--cred .tx-field-iban input { width: 100%; }
.tx-kader-datum-row--boek { grid-template-columns: 9rem 1fr 7.5rem; }
.tx-kader-datum-row--boek-breed { grid-template-columns: 9rem 1fr; }
.tx-kader input[type="date"] { width: 9rem; max-width: 100%; box-sizing: border-box; }
.tx-kader-datum-row .field input[type="number"] { width: 4.5rem; max-width: 100%; padding: .28rem .35rem; }
.tx-kader-datum-row .field input[type="date"] { padding: .28rem .35rem; }
.tx-crediteur-naam-row { grid-template-columns: 1fr 1fr; gap: .4rem; align-items: end; }
.tx-kader-twee-col { grid-template-columns: 1fr 1fr; gap: .4rem; align-items: end; }
.tx-kader-notitie textarea { min-height: 4.5rem; resize: vertical; }
.tx-crediteur-totaal {
    display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
    margin: 0; padding: .35rem .5rem;
    background: var(--sand); border-radius: 4px;
}
.tx-crediteur-totaal-label { font-size: .72rem; color: var(--muted); font-weight: 600; }
.tx-crediteur-totaal-bedrag { font-size: .95rem; color: var(--navy); white-space: nowrap; }
.tx-regels-sectie { margin-bottom: 1rem; }
.tx-regels-sectie h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .5rem; }
.tx-regels-tabel { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tx-regels-tabel th { text-align: left; font-size: .72rem; text-transform: uppercase; color: var(--muted); padding: .35rem .4rem; border-bottom: 1px solid var(--border); }
.tx-regels-tabel td { padding: .35rem .25rem; vertical-align: middle; }
.tx-regels-tabel input, .tx-regels-tabel select { width: 100%; font-size: .85rem; padding: .35rem .4rem; }
.tx-regels-tabel .tx-regel-btw { width: 4.5rem; }
.tx-regels-tabel .tx-regel-excl { width: 6rem; }
.tx-regels-tabel .tx-regel-btw-bedrag { width: 5rem; }
.tx-cc-factuur-sectie { margin-top: .5rem; padding-top: .75rem; border-top: 1px dashed var(--border); }
.tx-cc-factuur-sectie h3 { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.tx-cc-factuur-meta { font-size: .78rem; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.tx-cc-factuur-regel td { font-size: .82rem; }
.tx-cc-factuur-tabel .num { white-space: nowrap; text-align: right; }
.tx-cc-factuur-tabel th:nth-child(4),
.tx-cc-factuur-tabel th:nth-child(5),
.tx-cc-factuur-tabel th:nth-child(6) { text-align: right; }
.tx-cc-factuur-tfoot td { padding: .25rem .25rem; font-size: .82rem; border-top: 1px solid var(--border); }
.tx-cc-factuur-tfoot tr:first-child td { padding-top: .5rem; }
.tx-cc-factuur-totaal-label { text-align: right; color: var(--muted); padding-right: .65rem !important; }
.tx-cc-factuur-totaal-sterk td { font-weight: 700; }
.tx-cc-factuur-check-row td { border-top: none; padding-top: .5rem; }
.tx-cc-factuur-actie { width: 2.5rem; text-align: center; padding: .2rem !important; }
.tx-cc-factuur-add-row td { text-align: left; padding: .35rem .25rem !important; border-top: 1px dashed var(--border); }
.tx-icon-btn--danger { color: #991b1b; border-color: #fecaca; }
.tx-icon-btn--danger:hover { background: #fef2f2; border-color: #fca5a5; }
.tx-status-badge {
    display: inline-block; font-size: .72rem; font-weight: 600; padding: .15rem .45rem;
    border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.tx-status--concept { background: #fef3c7; color: #92400e; }
.tx-status--geboekt { background: #e0e7ff; color: #3730a3; }
.tx-status--gecontroleerd { background: #d1fae5; color: #065f46; }
.tx-status-blok { display: flex; flex-direction: column; gap: .35rem; padding-top: .15rem; }
.tx-status-redenen { margin: 0; padding-left: 1rem; font-size: .78rem; color: #991b1b; font-weight: 400; }
.tx-status-redenen li { margin: .1rem 0; }
.tx-status-veld label { margin-bottom: .2rem; }
.tx-eind-cel { width: 4rem; padding: .28rem .25rem !important; text-align: right; vertical-align: middle; }
table.data-transacties th.tx-eind-cel { text-align: right; font-size: .65rem; }
.tx-eind-icons { display: inline-flex; align-items: center; justify-content: flex-end; gap: .15rem; min-height: 1.25rem; }
.tx-eind-icons .bon-knop { padding: 0; border: none; background: none; cursor: pointer; font-size: .85rem; line-height: 1; }
.tx-status-icon {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; width: 1rem; height: 1rem; opacity: .92;
}
.tx-status-icon svg { display: block; width: .82rem; height: .82rem; }
.tx-status-icon--concept { color: #d97706; }
.tx-status-icon--geboekt { color: #4338ca; }
.tx-status-icon--gecontroleerd { color: #059669; opacity: .75; }
.cc-koppel-overlay { z-index: 20; }
.cc-koppel-panel { max-width: 32rem; width: 100%; }
.cc-koppel-popup-titel { flex: 1; font-weight: 600; font-size: .9rem; }
.tx-bottom-row {
    padding-top: 1rem; border-top: 1px solid var(--border);
}
.tx-totalen-col { font-size: .88rem; }
.tx-totalen-rij { display: flex; justify-content: space-between; padding: .25rem 0; }
.tx-totalen-rij--sterk { font-weight: 700; border-top: 1px solid var(--border); margin-top: .35rem; padding-top: .5rem; }
.tx-totalen-check { margin-top: .5rem; padding: .45rem .6rem; border-radius: 4px; font-size: .82rem; }
.tx-totalen-check.ok { background: #ecfdf5; color: #065f46; }
.tx-totalen-check.fout { background: #fef2f2; color: #991b1b; }
.tx-bank-meta-row { grid-template-columns: 9.5rem 1fr 7.5rem; gap: .5rem; align-items: end; }
.field--compact input[type="date"] { font-size: .85rem; padding: .35rem .4rem; }
.tx-koppelingen { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
@media (max-width: 900px) {
    .modal.modal--content { width: calc(100% - 1rem); }
    .modal.modal--90 { width: 100%; max-width: 100%; }
    .tx-top-row, .tx-bottom-row { grid-template-columns: 1fr; }
    .tx-meta-row { grid-template-columns: 1fr; }
    .tx-crediteur-naam-row { grid-template-columns: 1fr; }
    .tx-kader-datum-row--cred,
    .tx-kader-datum-row--boek { grid-template-columns: 1fr; }
    .tx-kader input[type="date"] { width: 100%; }
    .tx-kader-datum-row .field input[type="number"] { width: 100%; }
}

/* ---------- Login ---------- */
.login-body {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--navy), #0f1c3d);
    padding: 1rem;
}
.login-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 2.25rem; width: 100%; max-width: 380px; text-align: center;
    flex-shrink: 0;
}
.login-logo { font-size: 2.5rem; }
.login-card h1 { font-size: 1.4rem; margin-top: .5rem; }
.login-card form { margin-top: 1.5rem; text-align: left; }
.login-card label { margin-top: .75rem; }
.login-hint { font-size: .8rem; margin: .75rem 0; }
.login-card .btn-block { margin-top: 1rem; }
.login-footer {
    text-align: center;
    font-size: .8rem;
    margin: 1.5rem 0 .5rem;
}
.login-disclaimer {
    text-align: center;
    font-size: .75rem;
    line-height: 1.45;
    max-width: 28rem;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

/* ---------- Toast ---------- */
.toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); z-index: 60; font-size: .9rem; font-weight: 600;
}
.toast[hidden] { display: none; }
.toast.is-error { background: var(--red); }
.toast.is-success { background: var(--forest); }

/* ---------- Diversen ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.table-wrap.cat-beheer-wrap {
    max-height: min(70vh, 720px);
    overflow: auto;
}
table.cat-beheer-tabel thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    box-shadow: 0 1px 0 var(--border);
}
table.cat-beheer-tabel {
    table-layout: fixed;
}
table.cat-beheer-tabel col.cat-col-naam { width: 32%; }
table.cat-beheer-tabel col.cat-col-type { width: 9%; }
table.cat-beheer-tabel col.cat-col-btw { width: 7%; }
table.cat-beheer-tabel col.cat-col-vlag { width: 6%; }
table.cat-beheer-tabel col.cat-col-gebruikt { width: 8%; }
table.cat-beheer-tabel col.cat-col-status { width: 10%; }
table.cat-beheer-tabel tr.cat-groep-kop td {
    background: #f4f6f9;
    border-bottom: 2px solid var(--flame);
    padding: .55rem .8rem;
    font-weight: 700;
    color: var(--navy);
    vertical-align: middle;
}
table.cat-beheer-tabel tr.cat-groep-kop + tr td {
    border-top: none;
}
.cat-groep-kop-label { font-size: .92rem; }
.cat-groep-kop-count { font-weight: 500; font-size: .82rem; margin-left: .35rem; }
.groep-acties { white-space: nowrap; }
.groep-acties .btn { margin-right: .25rem; }
.cat-groep-lijst { display: flex; flex-direction: column; gap: 1.25rem; }
.cat-groep-sectie { margin: 0; }
.cat-groep-titel {
    margin: 0 0 .5rem;
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    padding-bottom: .35rem;
    border-bottom: 2px solid var(--flame);
}
.cat-groep-titel .muted { font-weight: 500; font-size: .82rem; }
.dash-graf-modus { display: flex; gap: .35rem; flex-wrap: wrap; }
.dash-graf-modus .btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.subtabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.subtab { background: none; border: none; font-family: inherit; font-weight: 600; color: var(--muted); padding: .6rem .8rem; cursor: pointer; border-bottom: 2px solid transparent; }
.subtab.is-active { color: var(--navy); border-bottom-color: var(--flame); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.tx-paginering-top { margin-top: .75rem; margin-bottom: .25rem; }
.tx-paginering-top .pagination { margin-top: 0; }
.tx-totalen {
    margin-top: 1rem;
    padding: .85rem 1rem;
    background: var(--sand);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.tx-totalen-head { font-size: .85rem; margin-bottom: .6rem; }
.tx-totalen-sub {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
    margin: .5rem 0 .35rem;
}
.tx-totalen-sub:first-of-type { margin-top: 0; }
.tx-totalen-kas { font-size: .8rem; margin-top: .65rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.tx-totalen-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem 1.25rem;
}
.tx-totalen-item { display: flex; flex-direction: column; gap: .15rem; }
.tx-totalen-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.tx-totalen-item strong { font-size: 1.05rem; }
.tx-totalen-item strong.positief { color: var(--forest); }
.tx-totalen-item strong.negatief { color: var(--red); }
@media (max-width: 720px) {
    .tx-totalen-grid { grid-template-columns: repeat(2, 1fr); }
}
.placeholder-note { background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; color: var(--muted); }

/* ---------- Bonnetjeslijst ---------- */
.bon-lijst { list-style: none; padding: 0; margin: .25rem 0; }
.bon-lijst li {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .4rem .6rem; border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: .4rem; background: var(--sand);
}
.bon-lijst .bon-naam { overflow-wrap: anywhere; font-size: .9rem; }
.bon-knop { background: none; border: none; cursor: pointer; font-size: 1.05rem; padding: 0; line-height: 1; }
.bon-knop:hover { transform: scale(1.15); }
.bon-vrij { position: relative; display: inline-block; opacity: .65; cursor: default; font-size: 1.05rem; line-height: 1; user-select: none; }
.bon-vrij-kruis { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-12deg); color: var(--rood, #dc2626); font-weight: 700; font-size: 1.35rem; line-height: 1; pointer-events: none; text-shadow: 0 0 2px var(--bg, #fff); }

/* ---------- Kwartaalnavigatie ---------- */
.kwartaal-nav { display: flex; align-items: center; gap: .6rem; }
.kwartaal-nav h2 { min-width: 6.5rem; text-align: center; }

/* Kwartaal-checklist */
.checklist-card { margin-top: 1.25rem; padding: 0; overflow: hidden; }
.checklist-toggle {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    margin: 0;
    padding: 1rem 1.1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.checklist-toggle:hover { background: rgba(0, 0, 0, .025); }
.checklist-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.checklist-chevron {
    flex: 0 0 1rem;
    font-size: .85rem;
    color: var(--muted, #667);
    transition: transform .15s ease;
}
.checklist-toggle.is-open .checklist-chevron { transform: rotate(90deg); }
.checklist-toggle-main { flex: 1; min-width: 0; }
.checklist-toggle-main h3 { margin: 0; font-size: 1.05rem; }
.checklist-toggle-sub { display: block; font-size: .85rem; margin-top: .15rem; }
.checklist-head-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex-shrink: 0; }
.checklist-badge {
    display: inline-block;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.checklist-badge-ok { background: #e3f3ea; color: #1a6b3c; }
.checklist-badge-warn { background: #fff4e0; color: #9a5b00; }
.checklist-badge-actie { background: #fae5e2; color: var(--red); }
.checklist-lijst { list-style: none; margin: 0; padding: 0 .9rem 1rem 2.35rem; display: flex; flex-direction: column; gap: .55rem; border-top: 1px solid var(--border, #e8eaef); }
.checklist-lijst[hidden] { display: none !important; }
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .55rem .65rem;
    border-radius: var(--radius);
    background: var(--bg-soft, #f8f9fb);
}
.checklist-item.check-ok { opacity: .92; }
.checklist-item.check-warn { background: #fff8eb; }
.checklist-item.check-actie { background: #fdf0ee; }
.checklist-icoon {
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    margin-top: .1rem;
}
.check-ok .checklist-icoon { background: #d4edda; color: #1a6b3c; }
.check-warn .checklist-icoon { background: #ffe8b8; color: #9a5b00; }
.check-actie .checklist-icoon { background: #f5d0cb; color: var(--red); }
.checklist-body { flex: 1; min-width: 0; }
.checklist-titel { font-weight: 600; font-size: .92rem; }
.checklist-aantal { font-weight: 500; color: var(--muted, #667); }
.checklist-tekst { font-size: .84rem; margin-top: .15rem; line-height: 1.35; }
.checklist-voorbeelden { margin: .35rem 0 0; padding: 0; list-style: none; font-size: .82rem; }
.checklist-voorbeelden li + li { margin-top: .15rem; }
.link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--navy);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.link-btn:hover { color: var(--flame, #e85d04); }

/* Balans-light & RC DGA */
.financieel-wrap { margin-bottom: 1.25rem; }
.financieel-disclaimer { font-size: .82rem; margin: 0 0 1rem; }

.kosten-pie-wrap {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 1.25rem;
    align-items: start;
}
.kosten-pie-chart { max-width: 280px; margin: 0 auto; }
.kosten-pie-legenda {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-size: .88rem;
}
.kosten-pie-legenda-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .45rem .5rem;
    align-items: start;
}
.kosten-pie-swatch {
    width: .75rem;
    height: .75rem;
    border-radius: 2px;
    margin-top: .2rem;
}
.kosten-pie-legenda-label { overflow-wrap: anywhere; }
.kosten-pie-legenda-bedrag { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .82rem; }
@media (max-width: 720px) {
    .kosten-pie-wrap { grid-template-columns: 1fr; }
    .kosten-pie-chart { max-width: 100%; }
}
.print-rapporten-card {
    margin: 1rem 0;
    border-left: 3px solid var(--navy);
    background: #fafbfd;
}
.print-rapporten-uitleg {
    font-size: .85rem;
    margin: 0 0 .85rem;
}
.print-rapporten-knoppen {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}
.checklist-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem 1rem;
    padding: .75rem 1.1rem 1rem;
    border-top: 1px solid var(--border, #e8eaef);
    background: #fafbfd;
}
.checklist-footer-hint { font-size: .8rem; }
@media (max-width: 520px) {
    .checklist-footer { flex-direction: column; align-items: flex-start; }
}
.financieel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.financieel-kolom { padding: 1rem; }
.financieel-kop { margin: 0 0 .65rem; font-size: .95rem; color: var(--navy); }
.financieel-tabel tfoot th { border-top: 2px solid var(--border, #e8eaef); padding-top: .5rem; }
.financieel-rc { padding: 1rem; }
.financieel-rc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: .5rem;
}

/* ---------- Import-kaarten ---------- */
.imp-cards { display: flex; flex-direction: column; gap: .75rem; }
.imp-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: .9rem 1rem;
}
.imp-card-top { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.imp-card-info { min-width: 0; }
.imp-card-naam { font-weight: 600; color: var(--navy); }
.imp-card-oms { color: #374151; font-size: .9rem; margin-top: .15rem; overflow-wrap: anywhere; }
.imp-card-meta { color: var(--muted); font-size: .8rem; margin-top: .25rem; }
.imp-iban-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.1rem; height: 1.1rem; border-radius: 50%;
    font-size: .72rem; font-weight: 700; margin-left: .2rem;
    vertical-align: middle; line-height: 1;
}
.imp-iban-check--ok { background: #d4edda; color: #1a6b3c; }
.imp-iban-check--warn { background: #ffe8b8; color: #9a5b00; }
.imp-card-bedrag { white-space: nowrap; font-weight: 700; font-size: 1.05rem; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.imp-card-richting { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.imp-card-actie { display: flex; gap: .6rem; align-items: center; margin-top: .8rem; flex-wrap: wrap; }
.imp-card-actie .imp-cat { flex: 1; min-width: 180px; }
.imp-card-actie .btn-row { flex-shrink: 0; }
.imp-card-dubbel { border-color: #f59e0b; }
.imp-dubbel { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }
.imp-dubbel-lijst { margin: .45rem 0 0; padding-left: 1.1rem; }
.imp-dubbel-lijst li { margin: .35rem 0; }
.imp-dubbel-lijst .btn { margin-left: .35rem; vertical-align: middle; }

/* ---------- Facturen ---------- */
td.num-acties { white-space: nowrap; text-align: right; }
td.num-acties .btn { margin-left: .25rem; }
.factuur-status {
    display: inline-block; font-size: .72rem; font-weight: 600; padding: .15rem .55rem;
    border-radius: 10px; text-transform: uppercase; letter-spacing: .03em;
}
.factuur-status.concept { background: #eceef2; color: var(--muted); }
.factuur-status.verzonden { background: #fdecd6; color: #b5660a; }
.factuur-status.betaald { background: #e3f3e3; color: var(--forest); }
.factuur-status.vervallen { background: #fae5e2; color: var(--red); }
.factuur-status.geannuleerd { background: #eceef2; color: var(--muted); text-decoration: line-through; }
.factuur-status.creditnota { background: #ede9fe; color: #6d28d9; }
.tx-credit-banner {
    display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
    margin: 0 0 .85rem; padding: .55rem .75rem;
    background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 6px;
    color: #5b21b6; font-size: .88rem;
}
.verzend-log { list-style: none; padding: 0; margin: .25rem 0 0; font-size: .82rem; color: var(--muted); }
.verzend-log li { padding: .15rem 0; }

.factuur-regel { margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--border); }
.factuur-regel .regel-hoofd {
    display: grid;
    grid-template-columns: 1fr 4.5rem 6rem 4.5rem 6rem 2rem;
    gap: .4rem; align-items: center;
}
.factuur-regel input, .factuur-regel select { width: 100%; }
.factuur-regel .r-opm { margin-top: .3rem; font-size: .85rem; }
.factuur-regel .r-cat-row { display: flex; gap: .45rem; align-items: center; margin-top: .3rem; }
.factuur-regel .r-cat-row label { font-size: .78rem; color: var(--muted); white-space: nowrap; min-width: 2.75rem; }
.factuur-regel .r-cat { max-width: 16rem; font-size: .85rem; }
.factuur-regel .r-totaal { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; }
.factuur-totalen { margin: 1rem 0 .5rem auto; max-width: 16rem; }
.factuur-totalen div { display: flex; justify-content: space-between; padding: .2rem 0; font-size: .9rem; }
.factuur-totalen .eind { border-top: 2px solid var(--navy); margin-top: .25rem; padding-top: .4rem; font-size: 1.05rem; }
.factuur-totalen .eind strong { color: var(--navy); }

.match-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--border);
}
.match-row:last-child { border-bottom: none; }
.match-pick {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    width: 100%;
    padding: .55rem .65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    margin-bottom: .35rem;
    cursor: pointer;
}
.match-pick:last-child { margin-bottom: 0; }
.match-pick:hover { border-color: var(--flame); }
.match-pick input[type="radio"] {
    grid-column: 1;
    margin: .25rem 0 0;
    cursor: pointer;
}
.match-pick-body {
    grid-column: 2;
    min-width: 0;
    font-weight: 400;
    font-size: .9rem;
    margin: 0;
    color: #1f2430;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.match-pick-hoofd { font-size: .9rem; color: var(--navy); line-height: 1.45; }
.match-pick-hoofd strong { font-weight: 700; }
.match-pick-oms { font-size: .8rem; margin-top: .2rem; line-height: 1.4; }
.match-pick-reden { font-size: .75rem; margin-top: .15rem; line-height: 1.4; }
.match-lijst { display: flex; flex-direction: column; gap: .35rem; width: 100%; max-height: 16rem; overflow-y: auto; }
.match-mode { display: block; margin-bottom: .35rem; font-weight: 400; }
.is-hidden { display: none !important; }

.cc-koppel-lijst {
    max-height: 14rem;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}
.cc-koppel-row {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    padding: .5rem .65rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}
.cc-koppel-row:last-child { border-bottom: none; }
.cc-koppel-row input { margin-top: .25rem; }
.cc-koppel-row span { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 640px) {
    .field-row { grid-template-columns: 1fr; }
    .field-row--3 { grid-template-columns: 1fr; }
    .stat-value { font-size: 1.3rem; }
    .imp-card-actie .btn-row { width: 100%; }
    .imp-card-actie .btn-row .btn { flex: 1; }
    .factuur-regel .regel-hoofd { grid-template-columns: 1fr 1fr; }
    .factuur-regel .r-oms { grid-column: 1 / -1; }
    .factuur-regel .r-totaal { grid-column: 1 / -1; text-align: left; }
}
