/* ================================================================
   NJR INSCHRIJFPORTAAL — STYLESHEET
   Design: "NJR Sport" — strak, sportief, herkenbaar
   (c) Van Peer Company BV
   ================================================================ */

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
    --lime:       #C1D90B;
    --lime-dark:  #9ab200;
    --lime-light: #f3f7cc;
    --blue:       #04588C;
    --blue-dark:  #003462;
    --blue-slate: #7897BF;
    --blue-light: #e9f0f8;
    --orange:     #EF8300;
    --white:      #ffffff;
    --gray-50:    #f8f9fb;
    --gray-100:   #f1f3f5;
    --gray-200:   #e2e5e9;
    --gray-300:   #cdd2d8;
    --gray-400:   #9ca3af;
    --gray-500:   #6b7280;
    --gray-700:   #374151;
    --gray-900:   #111827;
    --green:      #059669;
    --green-bg:   #ecfdf5;
    --red:        #dc2626;
    --red-bg:     #fef2f2;
    --amber:      #d97706;
    --amber-bg:   #fffbeb;
    --sky:        #0284c7;
    --sky-bg:     #f0f9ff;

    --font: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Cascadia Code', monospace;

    --r: 6px;
    --r-pill: 999px;

    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.08);
}


/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 15px;
    line-height: 1.55;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--gray-100);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }


/* ── Squiggle ──────────────────────────────────────────────────── */
.squiggle {
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='8' viewBox='0 0 20 8'%3E%3Cpath d='M0 4 Q2.5 0 5 4 Q7.5 8 10 4 Q12.5 0 15 4 Q17.5 8 20 4' fill='none' stroke='%23C1D90B' stroke-width='2.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 20px 8px;
    height: 8px;
}


/* ── Container ─────────────────────────────────────────────────── */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}


/* ═══════════════════════════════════════════════════════════════
   HEADER & FOOTER — NJR huisstijl (ongewijzigd)
   ═══════════════════════════════════════════════════════════════ */

.njr-topbar {
    background: var(--lime);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 24px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue-dark);
    gap: 12px;
}

.njr-topbar .topbar-logo {
    width: 34px;
    height: 34px;
    background: var(--blue-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2.5px solid white;
    font-weight: 900;
    font-size: 9px;
    color: white;
    line-height: 1.1;
    text-align: center;
    flex-shrink: 0;
}

.njr-brandbar {
    background: var(--blue-slate);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    gap: 12px;
}

.njr-brandbar .brandbar-text {
    font-weight: 700;
    font-size: 16px;
    color: white;
    letter-spacing: .5px;
}

.njr-nav {
    background: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.njr-nav-item {
    padding: 11px 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: .15s;
}

.njr-nav-item:hover,
.njr-nav-item.active {
    border-bottom-color: var(--lime);
    color: var(--lime);
    text-decoration: none;
}

.njr-nav .gebruiker-info {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
}

.njr-nav .gebruiker-naam {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.njr-nav .btn-uitloggen {
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    background: transparent;
    color: rgba(255,255,255,.6);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--r);
    text-decoration: none;
    cursor: pointer;
    transition: .15s;
}

.njr-nav .btn-uitloggen:hover {
    color: white;
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.06);
    text-decoration: none;
}

/* ── Main ──────────────────────────────────────────────────────── */
main {
    flex: 1;
    padding: 56px 0 64px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
    background: var(--blue-dark);
    color: rgba(255,255,255,.4);
    padding: 24px 0;
    font-size: .78rem;
    text-align: center;
    margin-top: auto;
}

.site-footer .footer-squiggle {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.site-footer a { color: rgba(255,255,255,.6); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--lime); }

.site-footer .footer-copyright {
    margin-top: 10px;
    font-size: .82rem;
    opacity: 1;
    color: rgba(255,255,255,.75);
    letter-spacing: .02em;
}
.site-footer .footer-versie {
    opacity: .5;
    font-size: .75rem;
    margin-left: 4px;
}

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.site-footer .footer-vpc-link {
    margin-left: auto;
}
.site-footer .footer-vpc-logo {
    height: 56px;
    width: auto;
    opacity: .7;
    transition: opacity .2s ease;
}
.site-footer .footer-vpc-link:hover .footer-vpc-logo { opacity: 1; }


/* ═══════════════════════════════════════════════════════════════
   TYPOGRAFIE
   ═══════════════════════════════════════════════════════════════ */

h1 {
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--blue-dark);
    margin-bottom: 16px;
    letter-spacing: -.02em;
}

h2 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blue-dark);
    margin: 28px 0 12px;
}

h2 small {
    font-weight: 400;
    font-size: .82rem;
    color: var(--gray-500);
}

h3 {
    font-weight: 700;
    font-size: .95rem;
    color: var(--blue-dark);
    margin: 20px 0 8px;
}

p { margin-bottom: 8px; }

code {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: .82em;
}

.pagina-intro {
    color: var(--gray-500);
    margin: -8px 0 20px;
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════
   KNOPPEN — pill-shape (NJR huisstijl)
   ═══════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 18px;
    font-family: var(--font);
    font-weight: 600;
    font-size: .82rem;
    text-decoration: none;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--r-pill);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: .15s;
    white-space: nowrap;
    line-height: 1.4;
}

.btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    text-decoration: none;
}

.btn:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.btn-primair {
    background: var(--lime);
    color: var(--blue-dark);
    border-color: var(--lime-dark);
    font-weight: 700;
}

.btn-primair:hover {
    background: #cde60e;
    color: var(--blue-dark);
}

.btn-gevaar {
    background: var(--white);
    color: var(--red);
    border-color: #fca5a5;
}

.btn-gevaar:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn-oranje {
    background: var(--orange);
    color: var(--white);
    border-color: #c56a00;
}

.btn-oranje:hover {
    background: #ff9210;
    color: var(--white);
}

.btn-sm   { padding: 4px 12px; font-size: .75rem; }
.btn-lg   { padding: 10px 24px; font-size: .88rem; }
.btn-klein { padding: 4px 12px; font-size: .75rem; }


/* ═══════════════════════════════════════════════════════════════
   KAARTEN — witte blokken met lime accent
   ═══════════════════════════════════════════════════════════════ */

.pagina-kaart {
    background: var(--white);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
    border-top: 3px solid var(--lime);
}

.pagina-kaart h2:first-child { margin-top: 0; }

.pagina-kaart .tabel {
    box-shadow: none;
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    border-radius: 0;
}


/* ═══════════════════════════════════════════════════════════════
   FORMULIEREN
   ═══════════════════════════════════════════════════════════════ */

.form {
    max-width: 560px;
    margin-bottom: 28px;
}

.form-groep {
    margin-bottom: 22px;
}

.form-groep label {
    display: block;
    font-weight: 600;
    font-size: .85rem;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-groep input[type="text"],
.form-groep input[type="email"],
.form-groep input[type="password"],
.form-groep input[type="tel"],
.form-groep input[type="number"],
.form-groep input[type="date"],
.form-groep input[type="datetime-local"],
.form-groep select,
.form-groep textarea {
    width: 100%;
    padding: 11px 14px;
    font-family: var(--font);
    font-size: .92rem;
    color: var(--gray-900);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--r);
    outline: none;
    transition: .15s;
}

.form-groep input::placeholder,
.form-groep textarea::placeholder {
    color: var(--gray-400);
}

.form-groep textarea {
    resize: vertical;
    min-height: 100px;
}

.form-groep input:focus,
.form-groep select:focus,
.form-groep textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(4,88,140,.1);
}

.form-groep .fout {
    color: var(--red);
    font-size: .78rem;
    font-weight: 600;
    margin-top: 3px;
}

.form-groep .invoer-fout { border-color: var(--red); }
.form-groep .invoer-fout:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.1); }

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
    font-weight: 400;
    font-size: .92rem;
    cursor: pointer;
}

.checkbox-groep label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: .92rem;
    cursor: pointer;
    line-height: 1.45;
}

.checkbox-groep input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

fieldset {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r);
    padding: 18px 18px 10px;
    margin-bottom: 20px;
    background: var(--white);
}

legend {
    font-weight: 700;
    font-size: .88rem;
    color: var(--blue-dark);
    padding: 0 6px;
}

.form-acties {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    align-items: center;
}

.form-hint {
    display: block;
    margin-top: 3px;
    font-size: .78rem;
    color: var(--gray-500);
    line-height: 1.45;
}


/* ═══════════════════════════════════════════════════════════════
   TABELLEN — clean met subtiele striping
   ═══════════════════════════════════════════════════════════════ */

.tabel {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: .82rem;
    background: var(--white);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tabel th,
.tabel td {
    padding: 9px 14px;
    text-align: left;
    vertical-align: middle;
}

.tabel th {
    font-weight: 700;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
}

.tabel td {
    border-bottom: 1px solid var(--gray-100);
}

/* Subtiele striping */
.tabel tbody tr:nth-child(even) td {
    background: var(--gray-50);
}

.tabel tbody tr:hover td {
    background: var(--lime-light);
}

.tabel tbody tr:last-child td {
    border-bottom: none;
}

.tabel-acties {
    white-space: nowrap;
    display: flex;
    gap: 5px;
    align-items: center;
}


/* ═══════════════════════════════════════════════════════════════
   BADGES & STATUS
   ═══════════════════════════════════════════════════════════════ */

.status, .badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--r-pill);
    font-weight: 700;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1.6;
}

.status-uitgenodigd, .status-voorbereiding  { background: #dbeafe; color: #1d4ed8; }
.status-concept, .badge-concept             { background: #fef3c7; color: #b45309; }
.status-ingediend, .badge-actief            { background: #d1fae5; color: #047857; }
.status-geannuleerd, .badge-geannuleerd     { background: #fee2e2; color: #b91c1c; }
.status-inschrijving-open                   { background: #d1fae5; color: #047857; }
.status-inschrijving-gesloten               { background: #fef3c7; color: #b45309; }
.status-gearchiveerd                        { background: var(--gray-100); color: var(--gray-500); }
.status-open                                { background: #fef3c7; color: #b45309; }
.status-betaald                             { background: #d1fae5; color: #047857; }
.status-mislukt                             { background: #fee2e2; color: #b91c1c; }
.status-terugbetaald                        { background: var(--gray-100); color: var(--gray-500); }
.status-nvt                                 { background: var(--gray-100); color: var(--gray-400); }


/* ═══════════════════════════════════════════════════════════════
   PLOEGLEIDER ELEMENTEN
   ═══════════════════════════════════════════════════════════════ */

.ploeg-meta { margin: 6px 0 10px; font-size: .82rem; }

.rugnummer-form { display: flex; gap: 4px; align-items: center; }

.select-rugnummer {
    width: 5.5rem;
    padding: 4px 8px;
    font-size: .82rem;
    font-family: var(--font);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--r);
    background: var(--white);
    cursor: pointer;
}
.select-rugnummer:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(4,88,140,.1);
    outline: none;
}


/* ═══════════════════════════════════════════════════════════════
   FILTER & ACTIES
   ═══════════════════════════════════════════════════════════════ */

.filter-balk {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--r);
    box-shadow: var(--shadow);
}

.filter-groep { display: flex; flex-direction: column; gap: 3px; }

.filter-groep label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.filter-groep select {
    padding: 7px 10px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--r);
    font-size: .85rem;
    font-family: var(--font);
    background: var(--white);
    min-width: 150px;
    cursor: pointer;
}
.filter-groep select:focus {
    border-color: var(--blue);
    outline: none;
}

.tabel-telling { font-size: .78rem; color: var(--gray-500); margin-top: 6px; }
.tekst-gedempt { color: var(--gray-400); font-style: italic; font-size: .82rem; }

.acties-balk {
    display: flex;
    gap: 8px;
    margin: 12px 0 20px;
    align-items: center;
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════
   MELDINGEN
   ═══════════════════════════════════════════════════════════════ */

.melding {
    padding: 10px 16px;
    border-radius: var(--r);
    margin-bottom: 16px;
    font-size: .85rem;
    border-left: 4px solid;
    line-height: 1.5;
}

.melding-succes   { background: var(--green-bg); border-color: var(--green); color: #065f46; }
.melding-fout     { background: var(--red-bg);   border-color: var(--red);   color: #991b1b; }
.melding-waarschuwing { background: var(--amber-bg); border-color: var(--amber); color: #92400e; }
.melding-info     { background: var(--sky-bg);   border-color: var(--sky);   color: #0c4a6e; }

.melding ul { margin: 4px 0 0 16px; }
.melding a  { font-weight: 600; }


/* ═══════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 16px 0 24px;
}

.stat-kaart {
    background: var(--white);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 18px 14px;
    text-align: center;
    border-top: 3px solid var(--lime);
}

.stat-kaart::before { display: none; }
.stat-kaart:nth-child(2) { border-top-color: var(--green); }
.stat-kaart:nth-child(3) { border-top-color: var(--orange); }
.stat-kaart:nth-child(4) { border-top-color: var(--blue); }

.stat-icoon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-bottom: 8px;
}

.stat-icoon-lime  { background: var(--lime-light); color: var(--lime-dark); }
.stat-icoon-groen { background: #d1fae5; color: var(--green); }
.stat-icoon-oranje { background: #ffedd5; color: var(--orange); }
.stat-icoon-blauw { background: #dbeafe; color: var(--blue); }

.stat-waarde {
    display: block;
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--blue-dark);
    margin-bottom: 4px;
}

.stat-label {
    font-weight: 600;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--gray-500);
}

.dashboard-sectie   { margin-bottom: 36px; }
.dashboard-sectie h2 { margin-bottom: 12px; }

.dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--blue-dark);
    border-radius: var(--r);
    padding: 22px 24px;
    margin-bottom: 16px;
    color: white;
}

.hero-titel {
    font-weight: 800;
    font-size: 1.15rem;
    color: white;
    margin: 0;
    letter-spacing: -.01em;
}

.hero-sub {
    font-size: .82rem;
    color: rgba(255,255,255,.55);
    margin: 3px 0 0;
}

.hero-acties { display: flex; gap: 8px; flex-shrink: 0; }
.hero-acties .btn { border-color: rgba(255,255,255,.2); color: white; background: transparent; }
.hero-acties .btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); }
.hero-acties .btn-primair { background: var(--lime); color: var(--blue-dark); border-color: var(--lime-dark); }
.hero-acties .btn-primair:hover { background: #cde60e; }

.voortgang-balk-container {
    background: var(--white);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 14px 18px;
}

.voortgang-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.voortgang-label  { font-weight: 600; font-size: .78rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .3px; }
.voortgang-percentage { font-weight: 800; font-size: .92rem; color: var(--lime-dark); }

.voortgang-balk {
    width: 100%;
    height: 8px;
    background: var(--gray-100);
    border-radius: var(--r-pill);
    overflow: hidden;
}

.voortgang-vulling {
    height: 100%;
    background: var(--lime);
    border-radius: var(--r-pill);
    transition: width .5s;
}

.voortgang-detail {
    font-size: .78rem;
    color: var(--gray-500);
    margin: 6px 0 0;
}

.snelkoppelingen {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 10px;
}

.snelkoppeling {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--white);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 600;
    font-size: .82rem;
    transition: .15s;
    border: 1.5px solid transparent;
}

.snelkoppeling:hover {
    border-color: var(--lime);
    text-decoration: none;
}

.snelkoppeling-icoon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r);
    background: var(--gray-50);
    color: var(--blue);
    flex-shrink: 0;
}

.nav-lijst {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


/* ═══════════════════════════════════════════════════════════════
   WIZARD
   ═══════════════════════════════════════════════════════════════ */

.wizard { max-width: 620px; }

.wizard-stappen {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 24px;
    padding: 10px 0;
}

.wizard-stappen::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 17px;
    right: 17px;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.wizard-stap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
    z-index: 1;
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--gray-400);
    text-align: center;
    background: none;
}

.wizard-stap::before {
    content: attr(data-stap);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .88rem;
    background: var(--white);
    color: var(--gray-300);
    border: 2px solid var(--gray-200);
    transition: .15s;
}

.wizard-stap.actief { color: var(--blue-dark); }
.wizard-stap.actief::before {
    background: var(--lime);
    color: var(--blue-dark);
    border-color: var(--lime-dark);
}

.wizard-stap.voltooid { color: var(--blue); }
.wizard-stap.voltooid::before {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}


/* ═══════════════════════════════════════════════════════════════
   GEGEVENSLIJST
   ═══════════════════════════════════════════════════════════════ */

.gegevens-lijst {
    margin: 10px 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r);
    padding: 14px 16px;
}

.gegevens-lijst dt {
    font-weight: 600;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--gray-500);
    margin-top: 10px;
}
.gegevens-lijst dt:first-child { margin-top: 0; }

.gegevens-lijst dd {
    font-size: .92rem;
    color: var(--gray-900);
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}
.gegevens-lijst dd:last-child { border-bottom: none; padding-bottom: 0; }


/* ═══════════════════════════════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════════════════════════════ */

.login-container {
    max-width: 380px;
    margin: 48px auto;
    background: var(--white);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    padding: 32px 28px;
    border-top: 3px solid var(--lime);
}

.login-container h1 { text-align: center; margin-bottom: 20px; }
.login-container .form { max-width: 100%; }
.login-container .btn-primair { width: 100%; }


/* ═══════════════════════════════════════════════════════════════
   2FA
   ═══════════════════════════════════════════════════════════════ */

.tfa-setup { text-align: center; margin-bottom: 20px; }

.qr-code-container {
    display: inline-block;
    background: var(--white);
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--r);
    margin-bottom: 12px;
}
.qr-code-container img { display: block; }

.tfa-instructie {
    font-size: .85rem;
    color: var(--gray-500);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.45;
}


/* ═══════════════════════════════════════════════════════════════
   PLOEG BLOK, TEMPLATES, DETAILS
   ═══════════════════════════════════════════════════════════════ */

.ploeg-blok {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--gray-200);
}
.ploeg-blok:last-child { border-bottom: none; padding-bottom: 0; }

.template-blok {
    margin-bottom: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r);
    overflow: hidden;
}

.template-blok summary {
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
    color: var(--blue-dark);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    transition: .1s;
}
.template-blok summary:hover { background: var(--gray-100); }
.template-blok .form { padding: 16px; max-width: 100%; }

.foutpagina { text-align: center; padding: 64px 0; }
.foutpagina h1 { font-size: 3rem; color: var(--gray-400); }
.foutpagina p { color: var(--gray-500); }

.betaling-info {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--lime);
    border-radius: var(--r);
    padding: 16px 18px;
    margin: 10px 0;
}

.bevestiging { text-align: center; padding: 32px 0; }
.bevestiging h1 { color: var(--green); }
.bevestiging .gegevens-lijst { text-align: left; max-width: 360px; margin: 20px auto; }

.let-op {
    background: var(--amber-bg);
    border-left: 4px solid var(--amber);
    padding: 10px 14px;
    border-radius: var(--r);
    font-size: .85rem;
    margin-bottom: 12px;
    color: #92400e;
}

.paginering {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    font-size: .85rem;
    color: var(--gray-500);
}
.paginering .btn { min-width: 34px; justify-content: center; }

.samenvatting {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r);
    padding: 18px;
    margin-bottom: 18px;
}
.samenvatting h2 { margin-top: 0; }
.samenvatting .gegevens-lijst { border: none; padding: 0; margin: 0; }

.archief-sectie { margin-top: 20px; }

.archief-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: .85rem;
    color: var(--gray-500);
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r);
    list-style: none;
    transition: .1s;
}
.archief-toggle::-webkit-details-marker { display: none; }
.archief-toggle::before { content: '\25B6'; font-size: 9px; transition: transform .2s; }
.archief-sectie[open] > .archief-toggle::before { transform: rotate(90deg); }
.archief-toggle:hover { background: var(--gray-50); }
.tabel-archief { opacity: .6; }


/* ═══════════════════════════════════════════════════════════════
   VERGRENDELD, CHECKBOX, INLINE, DETAILS
   ═══════════════════════════════════════════════════════════════ */

.form-groep-vergrendeld input:disabled,
.form-groep-vergrendeld select:disabled {
    background: var(--gray-50);
    color: var(--gray-400);
    border-color: var(--gray-200);
    cursor: not-allowed;
}
.form-groep-vergrendeld label::after {
    content: ' (vergrendeld)';
    font-weight: 400;
    font-size: .7rem;
    color: var(--gray-400);
}

.checkbox-lijst { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); }
.checkbox-detail { color: var(--gray-500); font-size: .78rem; }

.inline-toevoegen { margin-top: 10px; }
.inline-toevoegen summary { cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--blue); }
.inline-toevoegen summary:hover { color: var(--blue-dark); }

.details-inhoud {
    margin-top: 8px;
    padding: 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--r);
}

.inline-form { display: inline; }

.acties-cel { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.rij-inactief { opacity: .4; }

.detail-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-meta { font-size: .85rem; color: var(--gray-500); }

.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--blue);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    text-decoration: none;
    transition: .15s;
}
.btn-detail:hover { background: var(--blue); color: white; border-color: var(--blue); text-decoration: none; }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 18px 0;
}

.detail-kaart {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r);
    padding: 18px;
}

.detail-kaart h3 {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--lime);
}

.detail-kaart .gegevens-lijst { border: none; padding: 0; margin: 0; }

.detail-meta-blok {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: .78rem;
}

@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   INSTELLINGEN
   ═══════════════════════════════════════════════════════════════ */

.instellingen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.instelling-kaart {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--r);
    text-decoration: none;
    color: var(--gray-700);
    transition: .15s;
}
.instelling-kaart:hover { border-color: var(--lime); text-decoration: none; }

.instelling-icoon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r);
    background: var(--gray-50);
    color: var(--blue);
    flex-shrink: 0;
}

.instelling-tekst { flex: 1; min-width: 0; }
.instelling-tekst h3 { margin: 0 0 2px; font-size: .88rem; }
.instelling-tekst p { font-size: .78rem; color: var(--gray-500); margin: 0; }

.instelling-status {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    white-space: nowrap;
    flex-shrink: 0;
}
.instelling-status.status-ok { background: #d1fae5; color: #047857; }
.instelling-status.status-niet-ingesteld { background: #fef3c7; color: #b45309; }

.instelling-uitleg { margin-bottom: 18px; }
.instelling-uitleg summary {
    cursor: pointer;
    font-weight: 600;
    font-size: .88rem;
    color: var(--blue);
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r);
}
.instelling-uitleg summary:hover { color: var(--blue-dark); }
.instelling-uitleg-inhoud {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--r) var(--r);
}
.instelling-uitleg-inhoud h3 { margin-top: 18px; }
.instelling-uitleg-inhoud h3:first-child { margin-top: 0; }
.instelling-uitleg-inhoud ol { margin: 6px 0 12px 20px; }
.instelling-uitleg-inhoud li { margin-bottom: 4px; font-size: .88rem; }
.instelling-uitleg-inhoud code {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: .78rem;
}


/* ═══════════════════════════════════════════════════════════════
   AVG
   ═══════════════════════════════════════════════════════════════ */

.avg-beschermd { position: relative; }

.avg-overlay {
    background: var(--gray-50);
    border: 1.5px dashed var(--gray-300);
    border-radius: var(--r);
    padding: 28px 16px;
    text-align: center;
}
.avg-overlay p { font-size: .85rem; color: var(--gray-500); margin-bottom: 10px; }

.avg-inhoud { display: none; }
.avg-inhoud.zichtbaar { display: block; }
.avg-overlay.verborgen { display: none; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    main { padding: 36px 0 48px; }
    .container { padding: 0 14px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .snelkoppelingen { grid-template-columns: 1fr 1fr; }
    .njr-topbar { font-size: 10px; padding: 5px 12px; }
    .njr-brandbar { padding: 6px 12px; }
    .njr-brandbar .brandbar-text { font-size: 14px; }
    .njr-nav { justify-content: flex-start; overflow-x: auto; }
    .njr-nav-item { padding: 10px 12px; font-size: 11px; }
    .dashboard-hero { flex-direction: column; text-align: center; }
    .hero-acties { justify-content: center; }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .stats-grid { gap: 8px; }
    .stat-kaart { padding: 12px 10px; }
    .stat-waarde { font-size: 1.3rem; }
    .snelkoppelingen { grid-template-columns: 1fr; }
    .wizard-stappen { flex-direction: column; gap: 8px; align-items: flex-start; }
    .wizard-stappen::before { top: 17px; bottom: 17px; left: 17px; right: auto; width: 2px; height: auto; }
    .wizard-stap { flex-direction: row; gap: 10px; }
    .form-acties { flex-direction: column; }
    .form-acties .btn { width: 100%; justify-content: center; }
    .tabel { font-size: .78rem; }
    .tabel th, .tabel td { padding: 7px 10px; }
    .login-container { margin: 16px 10px; padding: 20px 18px; }
    .njr-topbar .topbar-logo { display: none; }
    .njr-nav .gebruiker-info {
        width: 100%; justify-content: center; padding: 6px 12px;
        border-top: 1px solid rgba(255,255,255,.1);
    }
    .filter-balk { flex-direction: column; align-items: stretch; }
    .filter-groep select { min-width: auto; width: 100%; }
    .instellingen-grid { grid-template-columns: 1fr; }
    .pagina-kaart { padding: 16px; }
}

/* ================================================================
   HELP-PAGINA'S
   ================================================================ */
.help-inhoudsopgave {
    background: var(--slate-50, #f8fafc);
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 8px;
    padding: 24px 32px;
    margin-bottom: 32px;
}
.help-inhoudsopgave h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--navy, #1e293b);
}
.help-inhoudsopgave ol {
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 32px;
}
.help-inhoudsopgave li {
    margin-bottom: 6px;
    break-inside: avoid;
}
.help-inhoudsopgave a {
    color: var(--navy, #1e293b);
    text-decoration: none;
    border-bottom: 1px solid var(--lime, #84cc16);
    transition: border-color .2s;
}
.help-inhoudsopgave a:hover {
    border-bottom-color: var(--navy, #1e293b);
}
.help-sectie {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--slate-200, #e2e8f0);
}
.help-sectie:last-of-type {
    border-bottom: none;
}
.help-sectie h2 {
    color: var(--navy, #1e293b);
    margin-bottom: 12px;
}
.help-sectie h3 {
    color: var(--navy, #1e293b);
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1rem;
}
.help-sectie ul,
.help-sectie ol {
    margin-bottom: 12px;
    padding-left: 24px;
}
.help-sectie li {
    margin-bottom: 6px;
    line-height: 1.6;
}
.help-sectie code {
    background: var(--slate-100, #f1f5f9);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--navy, #1e293b);
}
.help-sectie .tabel {
    margin-top: 12px;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .help-inhoudsopgave ol { columns: 1; }
    .help-inhoudsopgave { padding: 16px 20px; }
}
