/* ── Floating sync knop ──────────────────────────────────────────────────── */
.sync_fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a56db;
    color: #fff;
    border-radius: 50px;
    padding: 12px 20px 12px 16px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    user-select: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.sync_fab:hover {
    background: #1648c0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);
    transform: translateY(-1px);
}
.sync_fab__icoon {
    font-size: 20px;
    transition: transform 0.6s linear;
}
.sync_fab--bezig .sync_fab__icoon {
    animation: sync_draaien 0.8s linear infinite;
}
.sync_fab--succes {
    background: #057a55;
}
.sync_fab--fout {
    background: #c81e1e;
}
@keyframes sync_draaien {
    to { transform: rotate(360deg); }
}

/* Toast melding bij sync */
.sync_toast {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 1001;
    background: #111827;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    max-width: 320px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}
.sync_toast--zichtbaar {
    opacity: 1;
    transform: translateY(0);
}
.sync_toast--succes { background: #057a55; }
.sync_toast--fout   { background: #c81e1e; }

/* Header nav */
.header_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
    max-width: 1280px;
    margin: 0 auto;
    height: 5rem;
}
.header_logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.header_nav {
    display: flex;
    gap: 1.5rem;
}
.nav_link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--color-text-muted, #64748b);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.nav_link:hover,
.nav_link--actief {
    color: var(--primary);
    background: #fdf2f8;
}
.nav_link .material-symbols-outlined { font-size: 1.1rem; }

/* Meer dropdown */
.nav_dropdown {
    position: relative;
}

.nav_dropdown_trigger {
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.25rem;
}

.nav_dropdown_pijl {
    font-size: 1rem !important;
    transition: transform 0.2s;
}

.nav_dropdown--open .nav_dropdown_pijl {
    transform: rotate(180deg);
}

.nav_dropdown_menu {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,27,94,0.13);
    width: min(900px, calc(100vw - 2rem));
    padding: 1.25rem;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem 1.5rem;
}

.nav_dropdown_kolom {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.nav_dropdown_kolom_titel {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    padding: 0.4rem 0.6rem 0.25rem;
}

.nav_dropdown_scheiding_v {
    width: 1px;
    background: #f1f5f9;
    margin: 0 0.25rem;
}

.nav_dropdown_menu[hidden] { display: none; }

.nav_dropdown_item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav_dropdown_item:hover,
.nav_dropdown_item--actief {
    background: #fdf2f8;
    color: var(--primary);
}

.nav_dropdown_item .material-symbols-outlined { font-size: 1.05rem; }

/* nav_icon_btn (instellingen) */
.nav_icon_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    transition: background 0.15s, color 0.15s;
}
.nav_icon_btn:hover,
.nav_icon_btn--actief {
    background: #fdf2f8;
    color: var(--primary);
}
.nav_icon_btn .material-symbols-outlined { font-size: 1.25rem; }

.header_rechts {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.terug_link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-text-muted, #64748b);
    text-decoration: none;
    transition: color 0.2s;
}
.terug_link:hover { color: var(--primary); }

/* Hamburger */
.hamburger_btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    color: #374151;
    transition: background 0.15s;
}
.hamburger_btn:hover { background: #e2e8f0; }
.hamburger_btn .material-symbols-outlined { font-size: 1.4rem; }

/* Overlay */
.mobiel_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s;
}
.mobiel_overlay--zichtbaar {
    display: block;
    opacity: 1;
}

/* Mobile nav drawer */
.mobiel_nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 280px;
    max-width: 85vw;
    background: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}
.mobiel_nav--open {
    transform: translateX(0);
}
.mobiel_nav_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.mobiel_nav_sluiten {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    cursor: pointer;
    color: #374151;
    transition: background 0.15s;
}
.mobiel_nav_sluiten:hover { background: #e2e8f0; }
.mobiel_nav_sluiten .material-symbols-outlined { font-size: 1.1rem; }

.mobiel_nav_links {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mobiel_nav_link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.mobiel_nav_link .material-symbols-outlined {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.mobiel_nav_link:hover {
    background: #fdf2f8;
    color: var(--primary);
}
.mobiel_nav_link--actief {
    background: #fdf2f8;
    color: var(--primary);
    font-weight: 600;
}
.mobiel_nav_footer {
    padding: 0.75rem;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}
.mobiel_nav_link--uitloggen {
    color: #64748b;
}
.mobiel_nav_link--uitloggen:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Main */
.beheer_main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

/* Meldingen */
.melding {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.125rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}
.melding--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.melding--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.foutmelding_lijst { margin: 0; padding-left: 1.25rem; }
.foutmelding_lijst li { margin-bottom: 0.2rem; }

/* Statistieken dashboard */
.stats_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat_kaart {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    min-width: 0;
}
.stat_kaart__icon {
    font-size: 1.4rem;
    color: var(--primary);
    background: #fdf2f8;
    border-radius: 8px;
    padding: 0.45rem;
    flex-shrink: 0;
    margin-top: .1rem;
}
.stat_kaart--groen  .stat_kaart__icon { color: #16a34a; background: #f0fdf4; }
.stat_kaart--oranje .stat_kaart__icon { color: #ea580c; background: #fff7ed; }
.stat_kaart--blauw  .stat_kaart__icon { color: #2563eb; background: #eff6ff; }
.stat_kaart--paars  .stat_kaart__icon { color: #7c3aed; background: #f5f3ff; }
.stat_kaart__content { min-width: 0; }
.stat_kaart__label  { font-size: 0.78rem; color: #64748b; display: block; line-height: 1.3; }
.stat_kaart__waarde {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: .1rem;
}

/* Sectie headers */
.sectie_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.sectie_titel { font-size: 1rem; font-weight: 600; color: #1e293b; }
.inline_form { display: contents; }

/* Statusbadges */
.status_badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status--concept    { background: #f1f5f9; color: #475569; }   /* grijs  */
.status--verstuurd  { background: #dbeafe; color: #1d4ed8; }   /* blauw  */
.status--bekeken    { background: #e0e7ff; color: #3730a3; }   /* indigo */
.status--betaald    { background: #dcfce7; color: #166534; }   /* groen  */
.status--geaccepteerd { background: #dcfce7; color: #166534; } /* groen  */
.status--herinnering{ background: #fff7ed; color: #c2410c; }   /* oranje */
.status--geannuleerd{ background: #fef2f2; color: #991b1b; }   /* rood   */
.status--afgewezen  { background: #fef2f2; color: #991b1b; }   /* rood   */
.status--verlopen   { background: #fef9c3; color: #854d0e; }   /* geel   */

/* Knoppen */
.btn {
    min-width: 175px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 12px 10px;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.2s, box-shadow 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn--primair   { background: var(--primary); color: #fff; }
.btn--secundair { background: #f1f5f9; color: #475569; margin-right: 10px; }
.btn--klein     { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
.btn .material-symbols-outlined { font-size: 1rem; }

/* Formulieren */
.formulier { display: flex; flex-direction: column; gap: 0; }
.formulier_sectie {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.formulier_sectie_titel { font-size: 0.95rem; font-weight: 600; color: #1e293b; margin-bottom: 1rem; }
.formulier_rij { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.formulier_veld { display: flex; flex-direction: column; gap: 0.35rem; }
.formulier_veld--breed { grid-column: span 2; }
.formulier_veld--smal  { max-width: 140px; }
.formulier_label { font-size: 0.85rem; font-weight: 500; color: #374151; }
.verplicht { color: red; }
.formulier_input, .formulier_textarea {
    border: 1px solid #d1d5db;
    border-radius: 7px;
    padding: 0.55rem 0.8rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    width: 100%;
    transition: border-color 0.2s;
}
.formulier_input:focus, .formulier_textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.formulier_input--fout { border-color: #ef4444; }
.formulier_select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color .15s;
}
.formulier_select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.formulier_fout { color: #dc2626; font-size: 0.8rem; }
.formulier_acties {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.5rem;
}
.terug_knop {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.terug_knop:hover { color: var(--primary); }

/* Factuur aanmaken */
.factuurnummer_preview {
    font-size: 0.9rem;
    font-weight: 600;
    background: #f1f5f9;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    color: #475569;
}
.factuur_rij_header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1.2fr 0.8fr 1fr 36px;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.5rem;
    align-items: center;
}
.factuur_rij {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1.2fr 0.8fr 1fr 0.4fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.rij_totaal { font-weight: 600; font-size: 0.9rem; color: #1e293b; }
.rij_verwijder {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0.2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rij_verwijder:hover { color: #dc2626; background: #fef2f2; }
.rij_verwijder .material-symbols-outlined { font-size: 1rem; }
.factuur_totalen {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}
.totaal_rij { display: flex; gap: 2rem; font-size: 0.9rem; color: #475569; }
.totaal_rij span:last-child { min-width: 100px; text-align: right; font-weight: 600; }
.totaal_rij--eindtotaal {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

/* Paginering */
.paginering {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}
.paginering__info { font-size: .82rem; color: #94a3b8; letter-spacing: .01em; }
.paginering__knoppen { display: flex; align-items: center; gap: .3rem; }
.paginering__knop {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 .6rem;
    border-radius: 10px; font-size: .875rem; font-weight: 500;
    color: #475569; background: #f8fafc; border: 1.5px solid #e2e8f0;
    text-decoration: none; transition: all .15s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.paginering__knop:hover { background: #f1f5f9; border-color: #cbd5e1; color: #1e293b; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.07); }
.paginering__knop--actief {
    background: linear-gradient(135deg, #1a56db, #1e40af);
    color: #fff; border-color: transparent;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(26,86,219,.35);
}
.paginering__knop--uit { opacity: .3; pointer-events: none; box-shadow: none; }
.paginering__knop .material-symbols-outlined { font-size: 1.15rem; }

/* Notities */
.notitie_kaart {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.notitie_kaart--vastgezet { border-left: 3px solid #2563eb; }
.notitie_kaart--belangrijk { border-left: 3px solid #ea580c; }
.notitie_header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.notitie_titel { font-weight: 600; color: #1e293b; font-size: 0.95rem; }
.notitie_meta { font-size: 0.78rem; color: #94a3b8; }
.notitie_badges { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; }
.notitie_badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}
.notitie_badge--vastgezet  { background: #eff6ff; color: #1d4ed8; }
.notitie_badge--belangrijk { background: #fff7ed; color: #c2410c; }

/* Bestandenlijst */
.bestand_rij {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}
.bestand_icoon { font-size: 1.1rem; color: #94a3b8; }

/* Detailpagina grid */
.detail_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.detail_kolom { display: flex; flex-direction: column; gap: 1.25rem; }

/* Kaart component */
.kaart {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.kaart_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.kaart_titel {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}
.kaart_titel .material-symbols-outlined { font-size: 1.1rem; color: #64748b; }
.kaart_header .kaart_titel { margin-bottom: 0; }

/* Gegevenslijst */
.gegevens_lijst { display: flex; flex-direction: column; gap: 0; }
.gegevens_rij {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}
.gegevens_rij:last-child { border-bottom: none; }
.gegevens_rij--volledig { grid-template-columns: 1fr; }
.gegevens_label { color: #64748b; font-size: 0.8rem; }
.gegevens_waarde { color: #1e293b; }
.gegevens_link { color: var(--color-primary, #e91e8c); text-decoration: none; }
.gegevens_link:hover { text-decoration: underline; }

/* Factuur compact rij (op klantpagina) */
.factuur_rij_compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 1rem;
}
.factuur_rij_compact:last-child { border-bottom: none; }
.factuur_rij_info { display: flex; flex-direction: column; }
.factuur_nummer { font-weight: 600; font-size: 0.875rem; color: #1e293b; }
.factuur_datum { font-size: 0.78rem; color: #94a3b8; }
.factuur_rij_bedrag { display: flex; align-items: center; gap: 0.75rem; }
.factuur_bedrag { font-weight: 600; font-size: 0.875rem; }
.factuur_rij_acties { display: flex; gap: 0.25rem; }

/* Log rijen */
.log_rij {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.log_rij:last-child { border-bottom: none; }
.log_info { display: flex; flex-direction: column; }
.log_ontvanger { font-size: 0.875rem; font-weight: 500; color: #1e293b; }
.log_datum { font-size: 0.78rem; color: #94a3b8; }

/* Labels */
.tekst--rood { color: #dc2626; }
.label_pill {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.4rem;
}
.label_pill--rood { background: #fef2f2; color: #991b1b; }

/* Hulptekst formulier */
.formulier_hulp { font-size: 0.78rem; color: #94a3b8; margin-top: 0.2rem; }

/* Notitie formulier animatie */
.verborgen { display: none; }
.notitie_formulier {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.notitie_opties {
    display: flex;
    gap: 1.5rem;
    margin: 0.75rem 0;
}
.checkbox_label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}
.notitie_inhoud { font-size: 0.875rem; color: #475569; line-height: 1.6; margin-top: 0.4rem; }

/* Bestand rij */
.bestand_rij {
    display: grid;
    grid-template-columns: auto 2fr 1fr 0.8fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}
.bestand_rij:last-child { border-bottom: none; }
.bestand_naam { font-weight: 500; color: #1e293b; }
.bestand_meta { color: #94a3b8; font-size: 0.8rem; }

/* Leeg tekst */
.leeg_tekst { color: #94a3b8; font-size: 0.875rem; padding: 1rem 0; }

/* Responsive */
@media (max-width: 900px) {
    .detail_grid { grid-template-columns: 1fr; }
    .factuur_rij_header,
    .factuur_rij_weergave { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .factuur_rij_header span:nth-child(n+5),
    .factuur_rij_weergave span:nth-child(n+5) { display: none; }
}
@media (max-width: 600px) {
    .bestand_rij { grid-template-columns: auto 1fr auto; }
    .bestand_rij .bestand_meta { display: none; }
    .factuur_rij_compact { flex-wrap: wrap; }
}

@media (max-width: 700px) {
    .header2{
        flex-direction: column;
    }

    .header_container{
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .header_nav { display: none; }
    .hamburger_btn { display: flex; }
    .terug_link_tekst { display: none; }
}
@media (min-width: 1025px) {
    .mobiel_nav { display: none !important; }
    .mobiel_overlay { display: none !important; }
}
@media (max-width: 768px) {
    .stats_grid { grid-template-columns: repeat(2, 1fr); }
    .formulier_rij { grid-template-columns: 1fr; }
    .formulier_veld--breed { grid-column: span 1; }
    .factuur_rij, .factuur_rij_header { grid-template-columns: 1fr; }
    .factuur_rij_header { display: none; }
    .bestand_rij { grid-template-columns: 1fr 1fr; }
    .beheer_main { padding: 1rem 1rem; }
}
@media (max-width: 480px) {
    .stats_grid { grid-template-columns: 1fr; }
    .formulier_acties { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .header_filters { flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
    .header_filters .btn { width: auto !important; }
    .search_container { margin: 0; }
    .filter_form { margin: 0; width: 100%; }
}

/* ── Module toggles ─────────────────────────────────────────────────────── */
.module_toggle {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .85rem;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    user-select: none;
    position: relative;
}
.module_toggle input[type="checkbox"],
.module_toggle input[type="hidden"] { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.module_toggle_icoon {
    font-size: 1.1rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: color .15s;
}
.module_toggle_label {
    font-size: .82rem;
    font-weight: 500;
    color: #64748b;
    flex: 1;
    transition: color .15s;
}
.module_toggle_status {
    font-size: .72rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: .03em;
    transition: color .15s;
}
/* Actieve staat */
.module_toggle--aan {
    border-color: var(--primary, #6366f1);
    background: #eef2ff;
}
.module_toggle--aan .module_toggle_icoon { color: var(--primary, #6366f1); }
.module_toggle--aan .module_toggle_label { color: #1e293b; }
.module_toggle--aan .module_toggle_status { color: var(--primary, #6366f1); }

/* Ghost button */
.btn--ghost {
    background: transparent;
    color: #64748b;
    border: 1.5px solid #e2e8f0;
}
.btn--ghost:hover { background: #f1f5f9; }

/* Schakelaar (toggle switch) */
.schakelaar_label {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    cursor: pointer;
    font-size: .875rem;
    color: #475569;
    font-weight: 500;
}
.schakelaar_input { position: absolute; opacity: 0; width: 0; height: 0; }
.schakelaar {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    background: #cbd5e1;
    border-radius: 999px;
    transition: background .2s;
    flex-shrink: 0;
}
.schakelaar::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.schakelaar_input:checked + .schakelaar { background: var(--primary, #6366f1); }
.schakelaar_input:checked + .schakelaar::after { transform: translateX(18px); }

/* kaart_body alias */
.kaart_body { /* kaart already has padding; this is just for semantic grouping */ }
.btn--gevaar { background: #ef4444; color: #fff; }

/* ── Info button + modal ───────────────────────────────────────────────────── */
.info_btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 50%;
    transition: color .15s, background .15s;
    vertical-align: middle;
    flex-shrink: 0;
}
.info_btn:hover { color: var(--primary); background: #f0f4ff; }
.info_btn .material-symbols-outlined { font-size: 1.15rem; }

.info_modal_overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 900;
    align-items: center;
    justify-content: center;
}
.info_modal_overlay.actief { display: flex; }

.info_modal {
    background: #fff;
    border-radius: 14px;
    padding: 1.75rem 1.75rem 1.5rem;
    max-width: 420px;
    width: calc(100% - 2rem);
    box-shadow: 0 20px 60px rgba(0, 27, 94, .15);
    position: relative;
}
.info_modal__header {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .85rem;
}
.info_modal__icoon { color: var(--primary); font-size: 1.3rem; }
.info_modal__titel { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin: 0; }
.info_modal__sluiten {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    padding: 2px;
}
.info_modal__sluiten .material-symbols-outlined { font-size: 1.3rem; }
.info_modal__tekst { font-size: .9rem; color: #374151; line-height: 1.65; margin: 0; }

/* ── Uitloggen knop in header / mobiel nav ─────────────────────────────────── */
.logout_form { margin: 0; }
.logout_btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn--gevaar:hover { background: #dc2626; }
