/* SlimBoeken v16 - Modern Design System */
:root {
    --kleur-primair:       #2563eb;
    --kleur-primair-donker: #1d4ed8;
    --kleur-primair-licht: #eff6ff;
    --kleur-groen:         #16a34a;
    --kleur-groen-licht:   #dcfce7;
    --kleur-oranje:        #d97706;
    --kleur-oranje-licht:  #fef3c7;
    --kleur-rood:          #dc2626;
    --kleur-rood-licht:    #fee2e2;
    --kleur-blauw:         #2563eb;
    --kleur-blauw-licht:   #dbeafe;
    --kleur-paars:         #7c3aed;
    --kleur-paars-licht:   #ede9fe;
    --kleur-grijs-50:      #f9fafb;
    --kleur-grijs-100:     #f3f4f6;
    --kleur-grijs-200:     #e5e7eb;
    --kleur-grijs-300:     #d1d5db;
    --kleur-grijs-400:     #9ca3af;
    --kleur-grijs-500:     #6b7280;
    --kleur-grijs-700:     #374151;
    --kleur-grijs-900:     #111827;
    --kleur-tekst:         #111827;
    --kleur-tekst-licht:   #6b7280;
    --kleur-rand:          #e5e7eb;
    --kleur-achtergrond:   #f1f5f9;
    --kleur-wit:           #ffffff;
    --radius-sm:           6px;
    --radius:              10px;
    --radius-lg:           14px;
    --schaduw-sm:          0 1px 2px rgba(0,0,0,0.05);
    --schaduw:             0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --schaduw-md:          0 4px 12px rgba(0,0,0,0.09);
    --schaduw-lg:          0 10px 30px rgba(0,0,0,0.12);
    --lettertype:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sidebar-breedte:     232px;
    --animatie:            0.15s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--lettertype);
    font-size: 14px;
    color: var(--kleur-tekst);
    background: var(--kleur-achtergrond);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--kleur-primair); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ─────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-breedte);
    background: #1a2035;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform var(--animatie);
    border-right: 1px solid rgba(255,255,255,0.04);
}

.sidebar__logo {
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 11px;
}

.sidebar__logo-icon {
    width: 34px; height: 34px;
    background: var(--kleur-primair);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37,99,235,0.35);
}

.sidebar__logo-tekst {
    font-size: 16px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
    line-height: 1.2;
}
.sidebar__logo-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.38);
    margin-top: 2px;
    font-weight: 400;
}

/* Sidebar icon visuals */
.sidebar__nav a .nav-icon {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sidebar__nav a .nav-icon svg { display: block; width: 17px; height: 17px; }
.sidebar__nav a.actief .nav-icon { color: white; }

.sidebar__nav { padding: 12px 10px; flex: 1; overflow-y: auto; }

.sidebar__nav-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.3);
    padding: 18px 10px 5px;
}

.sidebar__nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.62);
    font-weight: 500;
    font-size: 13px;
    transition: all var(--animatie);
    margin-bottom: 2px;
    text-decoration: none;
    position: relative;
}

.sidebar__nav a:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.92);
    text-decoration: none;
}

.sidebar__nav a.actief {
    background: rgba(255,255,255,0.09);
    color: white;
    font-weight: 600;
}

.sidebar__nav a.actief::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background: var(--kleur-primair);
    border-radius: 0 3px 3px 0;
}

.sidebar__badge {
    margin-left: auto;
    background: var(--kleur-rood);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    min-width: 18px;
    text-align: center;
}

/* Alias voor JS-badge updates */
.sidebar-badge-todo { margin-left: auto; background: var(--kleur-rood); color: white; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 20px; min-width: 18px; text-align: center; }

.sidebar__footer {
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,0.09);
}

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

.sidebar__avatar {
    width: 34px; height: 34px;
    background: var(--kleur-primair);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: white;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(37,99,235,0.3);
}

.sidebar__gebruiker-info { flex: 1; min-width: 0; }
.sidebar__gebruiker-naam { font-size: 13px; font-weight: 600; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__gebruiker-rol  { font-size: 10px; color: rgba(255,255,255,0.38); margin-top: 1px; }
.sidebar__uitloggen { color: rgba(255,255,255,0.32); margin-top: 4px; display: flex; align-items: center; gap: 5px; font-size: 11px; transition: color var(--animatie); }
.sidebar__uitloggen:hover { color: rgba(255,255,255,0.72); text-decoration: none; }

.main {
    margin-left: var(--sidebar-breedte);
    flex: 1;
    padding: 24px 28px;
    max-width: calc(100vw - var(--sidebar-breedte));
    min-height: 100vh;
}

/* Impersonation banner */
.impersonation-banner {
    background: #fef3c7;
    border-bottom: 2px solid #f59e0b;
    padding: 9px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    margin: -24px -28px 24px;
}
.impersonation-banner strong { color: #92400e; }
.impersonation-banner a { font-weight: 700; color: #92400e; text-decoration: underline; }

/* ─── Pagina header ───────────────────────────────────────── */
.pagina-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.pagina-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--kleur-grijs-900);
    letter-spacing: -0.3px;
}
.pagina-header .subtext { color: var(--kleur-grijs-400); font-size: 13px; margin-top: 2px; }
.pagina-header .acties  { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }

/* ─── Kaarten ─────────────────────────────────────────────── */
.kaart {
    background: var(--kleur-wit);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--radius);
    box-shadow: var(--schaduw);
}

.kaart--highlighted { border-color: var(--kleur-primair); background: var(--kleur-primair-licht); }
.kaart--groen  { border-color: var(--kleur-groen); }
.kaart--oranje { border-color: var(--kleur-oranje); }
.kaart--rood   { border-color: var(--kleur-rood); }

.kaart__header, .kaart-header {
    padding: 13px 18px;
    border-bottom: 1px solid var(--kleur-rand);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kaart__header h2, .kaart-header h2,
.kaart__header h3, .kaart-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--kleur-tekst);
}

.kaart__body, .kaart-body { padding: 18px; }

.kaart__footer, .kaart-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--kleur-rand);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--kleur-grijs-50);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ─── Statistieken ────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-kaart {
    background: var(--kleur-wit);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--schaduw);
    transition: box-shadow var(--animatie), border-color var(--animatie), transform var(--animatie);
}

.stat-kaart:hover { box-shadow: var(--schaduw-md); }
.stat-kaart.klikbaar { cursor: pointer; }
.stat-kaart.klikbaar:hover { border-color: var(--kleur-primair); transform: translateY(-1px); }

.stat-kaart__label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--kleur-grijs-400); margin-bottom: 6px;
}

.stat-kaart__waarde {
    font-size: 26px; font-weight: 700; letter-spacing: -0.5px;
    line-height: 1; margin-bottom: 4px;
}
.stat-kaart__waarde.groen  { color: var(--kleur-groen); }
.stat-kaart__waarde.oranje { color: var(--kleur-oranje); }
.stat-kaart__waarde.rood   { color: var(--kleur-rood); }
.stat-kaart__waarde.blauw  { color: var(--kleur-blauw); }
.stat-kaart__sub { font-size: 11px; color: var(--kleur-grijs-400); }

/* Legacy stat klassen */
.stat-label  { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--kleur-grijs-500); margin-bottom: 4px; }
.stat-waarde { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; line-height: 1; }
.stat-waarde.groen  { color: var(--kleur-groen); }
.stat-waarde.oranje { color: var(--kleur-oranje); }
.stat-waarde.rood   { color: var(--kleur-rood); }
.stat-sub    { font-size: 11px; color: var(--kleur-grijs-400); margin-top: 2px; }

/* ─── Knoppen ─────────────────────────────────────────────── */
.knop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--animatie);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
    -webkit-user-select: none;
    user-select: none;
}

.knop:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--schaduw-sm); }
.knop:active { transform: translateY(0); box-shadow: none; }

/* Accessibilty: focus-visible for keyboard users */
.knop:focus-visible {
    outline: 3px solid rgba(37,99,235,0.18);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.06);
}

/* Action utility classes for consistent primary/secondary export buttons */
.action-primary {
    background: var(--kleur-groen);
    color: white;
    border-color: var(--kleur-groen);
}
.action-primary:hover { background: #15803d; }

.action-secondary {
    background: var(--kleur-wit);
    color: var(--kleur-grijs-700);
    border-color: var(--kleur-rand);
    box-shadow: var(--schaduw-sm);
}
.action-secondary:hover { background: var(--kleur-grijs-50); color: var(--kleur-tekst); }

/* Ensure KPI cards used as anchors are visually consistent and keyboard accessible */
.kpi-kaart { text-decoration: none; color: inherit; display: block; }
.kpi-kaart:focus-visible { outline: 3px solid rgba(37,99,235,0.14); }

.knop--primair { background: var(--kleur-primair); color: white; border-color: var(--kleur-primair); }
.knop--primair:hover { background: var(--kleur-primair-donker); color: white; }

.knop--groen { background: var(--kleur-groen); color: white; border-color: var(--kleur-groen); }
.knop--groen:hover { background: #15803d; color: white; }

.knop--rood { background: var(--kleur-rood); color: white; border-color: var(--kleur-rood); }
.knop--rood:hover { background: #b91c1c; color: white; }

.knop--oranje { background: var(--kleur-oranje); color: white; border-color: var(--kleur-oranje); }
.knop--oranje:hover { background: #b45309; color: white; }

.knop--grijs {
    background: var(--kleur-wit);
    color: var(--kleur-grijs-700);
    border-color: var(--kleur-rand);
    box-shadow: var(--schaduw-sm);
}
.knop--grijs:hover { background: var(--kleur-grijs-50); color: var(--kleur-tekst); border-color: var(--kleur-grijs-300); }

.knop--ghost  { background: transparent; color: var(--kleur-primair); border-color: var(--kleur-primair); }
.knop--ghost:hover { background: var(--kleur-primair-licht); }

.knop--klein  { padding: 5px 10px; font-size: 12px; }
.knop--groot  { padding: 11px 20px; font-size: 14px; font-weight: 600; }
.knop--full   { width: 100%; justify-content: center; }
.knop:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; transform: none; box-shadow: none; }

/* Legacy knop-varianten (zonder dubbel-streepje) */
.knop-primair { background: var(--kleur-primair); color: white; border-color: var(--kleur-primair); }
.knop-primair:hover { background: var(--kleur-primair-donker); color: white; }
.knop-grijs   { background: var(--kleur-wit); color: var(--kleur-grijs-700); border-color: var(--kleur-rand); box-shadow: var(--schaduw-sm); }
.knop-grijs:hover { background: var(--kleur-grijs-50); color: var(--kleur-tekst); }
.knop-groen   { background: var(--kleur-groen); color: white; border-color: var(--kleur-groen); }
.knop-groen:hover { background: #15803d; color: white; }
.knop-sm      { padding: 5px 10px; font-size: 12px; }
.knop-full    { width: 100%; justify-content: center; }

/* ─── Tabel ───────────────────────────────────────────────── */
.tabel-wrapper { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }

table { width: 100%; border-collapse: collapse; }

thead th {
    background: var(--kleur-grijs-50);
    padding: 9px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--kleur-grijs-500);
    border-bottom: 1px solid var(--kleur-rand);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
}

thead th:hover  { color: var(--kleur-grijs-900); }
thead th.sorteer-actief { color: var(--kleur-primair); }

tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--kleur-grijs-100);
    font-size: 13px;
    vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--kleur-grijs-50); }
tbody tr[data-href] { cursor: pointer; }
tbody tr.rij-groen  td:first-child { border-left: 3px solid var(--kleur-groen); }
tbody tr.rij-oranje td:first-child { border-left: 3px solid var(--kleur-oranje); }
tbody tr.rij-rood   td:first-child { border-left: 3px solid var(--kleur-rood); }

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge--groen  { background: var(--kleur-groen-licht);  color: var(--kleur-groen); }
.badge--oranje { background: var(--kleur-oranje-licht); color: var(--kleur-oranje); }
.badge--rood   { background: var(--kleur-rood-licht);   color: var(--kleur-rood); }
.badge--blauw  { background: var(--kleur-blauw-licht);  color: var(--kleur-blauw); }
.badge--paars  { background: var(--kleur-paars-licht);  color: var(--kleur-paars); }
.badge--grijs  { background: var(--kleur-grijs-100);    color: var(--kleur-grijs-500); }

/* Legacy badge-varianten */
.badge-groen  { background: var(--kleur-groen-licht);  color: var(--kleur-groen); }
.badge-oranje { background: var(--kleur-oranje-licht); color: var(--kleur-oranje); }
.badge-rood   { background: var(--kleur-rood-licht);   color: var(--kleur-rood); }
.badge-blauw  { background: var(--kleur-blauw-licht);  color: var(--kleur-blauw); }
.badge-paars  { background: var(--kleur-paars-licht);  color: var(--kleur-paars); }
.badge-grijs  { background: var(--kleur-grijs-100);    color: var(--kleur-grijs-500); }

/* ─── Formulieren ─────────────────────────────────────────── */
.formulier-groep { margin-bottom: 14px; }

/* Additional visual enhancements */
:root {
    --topbar-height: 64px;
    --kpi-size: 92px;
    --kpi-icon-size: 28px;
}

/* Topbar */
.topbar {
    height: var(--topbar-height);
    display:flex;align-items:center;justify-content:space-between;
    gap:12px;padding:10px 16px;margin-bottom:18px;border-radius:10px;
    background: linear-gradient(90deg, rgba(37,99,235,0.04), rgba(16,185,129,0.02));
    border: 1px solid rgba(37,99,235,0.04);
}
.topbar h2 { margin:0;font-size:16px;color:var(--kleur-grijs-900);font-weight:700 }
.topbar .topbar-actions { display:flex;gap:8px;align-items:center }

/* KPI visuals */
.kpi-kaart { display:flex;align-items:center;gap:12px }
.kpi-kaart .kpi-waarde { font-size:28px;font-weight:800 }
.kpi-icon { width:var(--kpi-size);height:var(--kpi-size);display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--kleur-primair-licht);color:var(--kleur-primair);font-size:var(--kpi-icon-size);box-shadow:0 8px 24px rgba(37,99,235,0.06) }

/* Slightly stronger card elevation */
.kaart { transition: transform .18s ease, box-shadow .18s ease }
.kaart:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(2,6,23,0.06) }

/* Larger avatar in sidebar footer */
.sidebar__avatar { width:44px;height:44px;font-size:16px }
.sidebar__gebruiker-info { margin-left:8px }

/* Table hover stronger */
tbody tr:hover { background: #fbfdff }

/* Make primary action buttons slightly larger */
.action-primary, .knop--primair, .knop-primair { padding:10px 16px }

.formulier-groep label { display: block; font-size: 12.5px; font-weight: 500; margin-bottom: 5px; color: var(--kleur-grijs-700); }
.hulptekst { font-size: 11px; color: var(--kleur-grijs-400); margin-top: 3px; }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], select, textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--kleur-rand);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: var(--kleur-wit);
    color: var(--kleur-tekst);
    transition: border-color var(--animatie), box-shadow var(--animatie);
    -webkit-appearance: none;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--kleur-primair);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

input::placeholder { color: var(--kleur-grijs-400); }

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

textarea { resize: vertical; min-height: 80px; }

/* ─── Upload zone ─────────────────────────────────────────── */
.upload-zone {
    border: 2px dashed var(--kleur-rand);
    border-radius: var(--radius);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--kleur-grijs-50);
}

.upload-zone:hover, .upload-zone.actief {
    border-color: var(--kleur-primair);
    background: var(--kleur-primair-licht);
}

.upload-zone__icoon { font-size: 40px; margin-bottom: 12px; }
.upload-zone__tekst { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.upload-zone__sub   { font-size: 12px; color: var(--kleur-grijs-500); }

/* ─── Voortgangsbalk ──────────────────────────────────────── */
.voortgang { background: var(--kleur-grijs-100); border-radius: 20px; height: 6px; overflow: hidden; }
.voortgang__balk { height: 100%; background: var(--kleur-primair); border-radius: 20px; transition: width 0.4s ease; }
.voortgang__balk.groen  { background: var(--kleur-groen); }
.voortgang__balk.oranje { background: var(--kleur-oranje); }
.voortgang__balk.rood   { background: var(--kleur-rood); }

/* ─── Flash berichten ─────────────────────────────────────── */
.flash {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

/* Dubbel-streepje BEM varianten */
.flash--green, .flash--succes { background: var(--kleur-groen-licht);  color: var(--kleur-groen);  border-color: #bbf7d0; }
.flash--red,   .flash--fout   { background: var(--kleur-rood-licht);   color: var(--kleur-rood);   border-color: #fecaca; }
.flash--yellow,.flash--waarschuwing { background: var(--kleur-oranje-licht); color: var(--kleur-oranje); border-color: #fde68a; }
.flash--blue,  .flash--info,
.flash--blauw, .flash-blauw   { background: var(--kleur-blauw-licht);  color: var(--kleur-blauw);  border-color: #bfdbfe; }

/* Legacy klassen (zonder dubbel-streepje) */
.flash-groen  { background: var(--kleur-groen-licht);  color: var(--kleur-groen);  border-color: #bbf7d0; }
.flash-rood   { background: var(--kleur-rood-licht);   color: var(--kleur-rood);   border-color: #fecaca; }

/* ─── Klant kaarten ───────────────────────────────────────── */
.klant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.klant-kaart {
    background: var(--kleur-wit);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--schaduw);
    transition: box-shadow var(--animatie), border-color var(--animatie), transform var(--animatie);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.klant-kaart:hover { box-shadow: var(--schaduw-md); transform: translateY(-1px); }
.klant-kaart.heeft-aandacht { border-color: var(--kleur-oranje); border-left-width: 3px; }

.klant-kaart__header { display: flex; align-items: flex-start; gap: 12px; }

.klant-kaart__avatar {
    width: 38px; height: 38px;
    background: var(--kleur-primair-licht);
    color: var(--kleur-primair);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
    flex-shrink: 0;
}

.klant-kaart__naamblok { flex: 1; min-width: 0; }
.klant-kaart__naam { font-size: 14px; font-weight: 600; color: var(--kleur-tekst); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.klant-kaart__meta { font-size: 11px; color: var(--kleur-grijs-400); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.klant-kaart__pakket { background: var(--kleur-grijs-100); color: var(--kleur-grijs-500); padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 600; }

.klant-kaart__tellers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

.teller {
    text-align: center;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.teller__getal { font-weight: 700; font-size: 20px; }
.teller__label { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 3px; opacity: 0.7; }

.teller--groen  { background: var(--kleur-groen-licht);  color: var(--kleur-groen); }
.teller--oranje { background: var(--kleur-oranje-licht); color: var(--kleur-oranje); }
.teller--rood   { background: var(--kleur-rood-licht);   color: var(--kleur-rood); }

.klant-kaart__footer { display: flex; gap: 8px; margin-top: auto; }

/* ─── Checks lijst ────────────────────────────────────────── */
.check-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--kleur-grijs-100);
    font-size: 13px;
}
.check-item:last-child { border-bottom: none; }
.check-item__icoon  { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.check-item__melding { flex: 1; color: var(--kleur-grijs-700); line-height: 1.4; }

/* ─── Detail rijen ────────────────────────────────────────── */
.detail-rij {
    display: flex;
    padding: 9px 0;
    border-bottom: 1px solid var(--kleur-grijs-100);
    font-size: 13px;
}
.detail-rij:last-child { border-bottom: none; }
.detail-rij__label  { width: 160px; color: var(--kleur-grijs-500); flex-shrink: 0; font-size: 12.5px; }
.detail-rij__waarde { font-weight: 500; flex: 1; }

/* ─── Factuur detail layout ───────────────────────────────── */
.factuur-detail { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }

/* ─── Bulk balk ───────────────────────────────────────────── */
.bulk-balk {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius);
    padding: 10px 16px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    box-shadow: var(--schaduw-sm);
}
.bulk-balk.zichtbaar { display: flex; }
.bulk-balk__tekst { font-size: 13px; font-weight: 600; color: var(--kleur-rood); }

/* ─── Filter balk ─────────────────────────────────────────── */
.filter-balk {
    background: var(--kleur-wit);
    border: 1px solid var(--kleur-rand);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 14px;
    box-shadow: var(--schaduw-sm);
}
.filter-balk form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-balk input, .filter-balk select { width: auto; }
.filter-balk input[type="text"] { flex: 1; min-width: 200px; }

/* ─── Login ───────────────────────────────────────────────── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--schaduw-lg);
}

.login-box__logo { text-align: center; margin-bottom: 28px; }
.login-box__logo h1 { font-size: 26px; font-weight: 800; color: var(--kleur-tekst); letter-spacing: -0.5px; }
.login-box__logo p  { color: var(--kleur-grijs-500); font-size: 13px; margin-top: 4px; }

/* ─── Leeg staat ──────────────────────────────────────────── */
.leeg-staat { text-align: center; padding: 50px 20px; color: var(--kleur-grijs-500); }
.leeg-staat__icoon { font-size: 40px; margin-bottom: 12px; }
.leeg-staat__tekst { font-size: 15px; font-weight: 600; color: var(--kleur-grijs-700); margin-bottom: 4px; }
.leeg-staat__sub   { font-size: 13px; margin-bottom: 18px; }

/* ─── Toast notificaties ──────────────────────────────────── */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }

.toast {
    background: var(--kleur-grijs-900);
    color: white;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500;
    box-shadow: var(--schaduw-lg);
    display: flex; align-items: center; gap: 8px;
    max-width: 320px;
    animation: slideIn 0.2s ease;
    pointer-events: auto;
}

.toast--groen { background: var(--kleur-groen); }
.toast--rood  { background: var(--kleur-rood); }
.toast--blauw { background: var(--kleur-primair); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ─── Secties ─────────────────────────────────────────────── */
.sectie-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sectie-header h2, .sectie-header h3 {
    font-size: 15px; font-weight: 700; color: var(--kleur-grijs-900);
}
.sectie-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--kleur-grijs-400);
    margin-bottom: 8px; padding-bottom: 6px;
    border-bottom: 1px solid var(--kleur-rand);
}
.sectie-label__dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.sectie-label__dot.rood   { background: var(--kleur-rood); }
.sectie-label__dot.oranje { background: var(--kleur-oranje); }
.sectie-label__dot.groen  { background: var(--kleur-groen); }
.sectie-label__dot.blauw  { background: var(--kleur-blauw); }
.sectie-label__dot.grijs  { background: var(--kleur-grijs-300); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; max-width: 100vw; padding: 16px; }
    .factuur-detail { grid-template-columns: 1fr; }
    .klant-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .pagina-header { flex-direction: column; }
    .pagina-header .acties { width: 100%; }
    .impersonation-banner { margin: -16px -16px 16px; }

    .hamburger {
        display: flex;
        position: fixed;
        top: 12px; left: 12px;
        z-index: 200;
        background: #0f172a;
        color: white;
        border: none;
        padding: 8px 10px;
        border-radius: var(--radius-sm);
        cursor: pointer;
        font-size: 16px;
        align-items: center;
    }
}

@media (min-width: 769px) { .hamburger { display: none; } }

/* ─── Utilities ───────────────────────────────────────────── */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-end  { justify-content: flex-end; }
.gap-4   { gap: 4px; }
.gap-6   { gap: 6px; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }
.gap-16  { gap: 16px; }
.ml-auto { margin-left: auto; }
.tekst-grijs  { color: var(--kleur-grijs-500); }
.tekst-klein  { font-size: 12px; }
.tekst-11     { font-size: 11px; }
.tekst-groen  { color: var(--kleur-groen); }
.tekst-oranje { color: var(--kleur-oranje); }
.tekst-rood   { color: var(--kleur-rood); }
.vet     { font-weight: 600; }
.vet-700 { font-weight: 700; }
.w-full  { width: 100%; }
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afgerond { border-radius: var(--radius); }
.verborgen { display: none; }
.zichtbaar { display: flex !important; }
