/* MijnMoneywise — Customer Portal Styles
   Design: Clean, accessible, 55+ friendly
   Based on WiseCore palette, adapted for customers */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* MoneyWise huisstijl — heldere skyblue + warm oranje accent */
    --primary: #1aa7e6;          /* MoneyWise sky-blue (logo, headings, links) */
    --primary-hover: #0e8fc6;
    --primary-dark: #1f5da8;     /* Navy voor diepere contrastblokken */
    --primary-light: #d6effa;    /* Sky tint voor backgrounds */
    --primary-soft: #edf8fd;     /* Heel subtiel sky */
    /* MoneyWise oranje — chevrons, CTA's, highlights */
    --accent: #f58220;
    --accent-hover: #d96e10;
    --accent-light: #ffe7cc;
    --accent-dark: #8a4308;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #d1d5db;
    --border-light: #e2e8f0;
    --bg: #eaf4fb;               /* Subtiele sky-blue page-bg */
    --bg-light: #f8fafc;
    --bg-alt: #d8edf8;           /* Iets diepere sky voor headerblokken */
    --white: #ffffff;
    --success: #10b981;
    --success-light: #dcfce7;
    --success-dark: #166534;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --warning-dark: #92400e;

    /* 55+ sizing */
    --font-base: 18px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
}

html {
    font-size: var(--font-base);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
}

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

img { max-width: 100%; height: auto; }

/* ===== TOP NAVIGATION ===== */
.topNav {
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 0 0 var(--primary), 0 3px 8px rgba(26,167,230,0.10);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topNavInner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 72px;
    gap: 12px;
}

.navLogo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}

.navLogo .owl {
    width: 42px;
    height: 42px;
    background: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.navLogo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.navLogo:hover { text-decoration: none; }

.navLinks {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 40px;
    list-style: none;
}

.navLinks a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.15s;
    text-decoration: none;
}

.navLinks a:hover {
    background: var(--bg-alt);
    color: var(--text);
    text-decoration: none;
}

.navLinks a.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    box-shadow: inset 0 -3px 0 var(--primary);
}

.navLinks a svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.navRight {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.navUser {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
}

.navUser:hover { background: var(--bg-alt); }

.navAvatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    flex-grow: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
}

.navUserName {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

/* ===== USER MENU DROPDOWN ===== */
.navRight { position: relative; }

.userMenu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    min-width: 260px;
    z-index: 300;
    animation: slideDown 0.15s ease;
}

.userMenuHeader {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.userMenuInfo { flex: 1; min-width: 0; }

.userMenuNaam {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.userMenuEmail {
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.userMenuDivider {
    height: 1px;
    background: var(--border-light);
}

.userMenuItem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s;
}

.userMenuItem:hover {
    background: var(--bg-alt);
    text-decoration: none;
    color: var(--text);
}

.userMenuItem svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.userMenuItemDanger { color: var(--danger); }
.userMenuItemDanger svg { color: var(--danger); }
.userMenuItemDanger:hover { background: var(--danger-light); color: var(--danger); }

/* Mobile menu */
.menuToggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    width: 44px;
    height: 44px;
    cursor: pointer;
    color: var(--text);
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.menuToggle:active {
    background: var(--bg-alt);
}

/* ===== PAGE LAYOUT ===== */
.pageWrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.pageTitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
    line-height: 1.2;
}

.pageSubtitle {
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 400;
    margin-bottom: 32px;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
    scroll-margin-top: 88px;
}

.cardHeader {
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cardTitle {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cardTitle svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.cardBody {
    padding: 24px 28px;
}

.cardFooter {
    padding: 16px 24px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-height: 44px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-decoration: none;
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover { text-decoration: none; }

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btnPrimary {
    background: var(--primary);
    color: var(--white);
}
.btnPrimary:hover { background: var(--primary-hover); color: var(--white); }

.btnSecondary {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}
.btnSecondary:hover { background: var(--bg-alt); }

.btnSuccess {
    background: var(--success);
    color: var(--white);
}
.btnSuccess:hover { background: #059669; color: var(--white); }

.btnAccent {
    background: var(--accent);
    color: var(--white);
}
.btnAccent:hover { background: var(--accent-hover); color: var(--white); }

.btnSmall {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btnLarge {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badgeGreen { background: var(--success-light); color: var(--success-dark); }
.badgeBlue { background: var(--primary-light); color: var(--primary-dark); }
.badgeYellow { background: var(--warning-light); color: var(--warning-dark); }
.badgeRed { background: var(--danger-light); color: #991b1b; }
.badgeGray { background: var(--bg-alt); color: var(--text-secondary); }
.badgeOrange { background: var(--accent-light); color: var(--accent-dark); }

/* ===== TOGGLE SWITCH ===== */
.toggleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.toggleRow:last-child { border-bottom: none; }

.toggleInfo { flex: 1; }

.toggleLabel {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 2px;
}

.toggleHint {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toggleSwitch {
    position: relative;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.toggleSwitch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggleTrack {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggleTrack::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

.toggleSwitch input:checked + .toggleTrack {
    background: var(--primary);
}

.toggleSwitch input:checked + .toggleTrack::after {
    transform: translateX(22px);
}

/* Opvallende card rand */
.cardHighlightBorder {
    border: 2px solid var(--warning);
    background: linear-gradient(135deg, #fffbeb 0%, var(--white) 40%);
}

/* ===== FORM ELEMENTS ===== */
.formGroup {
    margin-bottom: 20px;
}

.formLabel {
    display: block;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 1rem;
}

.formInput,
.formSelect {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.formInput:focus,
.formSelect:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.formHint {
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.formIntro {
    margin-bottom: 18px;
    color: var(--text-secondary);
}

.formActions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.reqDocGroep + .reqDocGroep { border-top: 1px solid var(--border-light); }
.reqDocGroepHeader {
    padding: 12px 20px 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background: var(--bg-light);
}

/* ===== DASHBOARD GRID ===== */
.dashGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.statCard {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
}
.statCard:hover {
    box-shadow: 0 4px 14px rgba(26,167,230,0.12);
    text-decoration: none;
    color: inherit;
}

.statCardLink { cursor: pointer; }

/* Knipperend randje — 2x highlight */
.cardHighlight {
    animation: borderBlink 0.4s ease 2;
}

@keyframes borderBlink {
    0%, 100% { box-shadow: var(--shadow); }
    50% { box-shadow: 0 0 0 3px var(--primary); }
}

.statIcon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.statIcon svg { width: 26px; height: 26px; }

.statIcon.blue { background: var(--primary-light); color: var(--primary); }
.statIcon.green { background: var(--success-light); color: var(--success); }
.statIcon.yellow { background: var(--accent-light); color: var(--accent-hover); }
.statIcon.red { background: var(--danger-light); color: var(--danger); }
.statIcon.orange { background: var(--accent-light); color: var(--accent-hover); }

.statContent { flex: 1; }

.statValue {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.statLabel {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ===== ACTION ITEMS ===== */
.actionItem {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.actionItem:last-child { border-bottom: none; }
.actionItem:hover { background: var(--bg-light); }

.actionDot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.actionDot.urgent { background: var(--danger); }
.actionDot.info { background: var(--primary); }
.actionDot.success { background: var(--success); }

.actionText {
    flex: 1;
    font-size: 1rem;
    color: var(--text);
}

.actionDate {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.actionBtn {
    flex-shrink: 0;
}

/* Verzamel-CTA onderaan een lijst met actionItems (bv. opgevraagde docs op dashboard) */
.reqDocsCta {
    padding: 20px 24px;
    display: flex;
    justify-content: flex-end;
}
@media (max-width: 600px) {
    .reqDocsCta { padding: 16px; }
    .reqDocsCta .btn { width: 100%; justify-content: center; }
}

/* ===== PRODUCT LIST ===== */
.productItem {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.productItem:last-child { border-bottom: none; }
.productItem:hover { background: var(--bg-light); text-decoration: none; color: inherit; }

.productIcon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.productIconLogo { background: var(--white); padding: 6px; }
.productIconLogo img { max-width: 40px; max-height: 40px; object-fit: contain; }

.productInfo { flex: 1; }

.productName {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 2px;
}

.productMeta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.productArrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ===== WONINGEN (hypotheek dossier, uit Findesk-import) ===== */
.woningItem {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.woningItem:last-child { border-bottom: none; }

.woningInfo { flex: 1; min-width: 0; }

.woningRol {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.woningAdres {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2px;
}

.woningPlaats {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Map-modal: gebruikt .modalContent.mapMode override */
.modalContent.mapMode {
    max-width: 800px;
    width: calc(100% - 32px);
    padding: 0;
    overflow: hidden;
}

.mapModal { display: flex; flex-direction: column; }

.mapModalHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}

.mapModalHeader h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.mapModalFrame {
    width: 100%;
    height: 500px;
    border: 0;
    display: block;
}

.mapModalFooter {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .woningItem { flex-wrap: wrap; }
    .mapModalFrame { height: 350px; }
}

/* ===== PERSON LIST (Account) ===== */
.personItem {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
    cursor: pointer;
}

.personItem:last-child { border-bottom: none; }
.personItem:hover { background: var(--bg-light); }

.personAvatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.personInfo { flex: 1; }

.personName {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.personMeta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ===== DOCUMENT LIST ===== */
.docItem {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}

.docItem:last-child { border-bottom: none; }
.docItem:hover { background: var(--bg-light); }

.docIcon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--danger-light);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.75rem;
}

.docInfo { flex: 1; }

.docName {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
}

.docMeta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.docActions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== BENODIGDE DOCUMENTEN (inline upload op productkaart) ===== */
.reqDocItem {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.reqDocItem:last-child { border-bottom: none; }

.reqDocIcon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.reqDocIcon svg { width: 22px; height: 22px; }

.reqDocInfo { flex: 1; min-width: 0; }

.reqDocName {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.reqDocName .badge { margin-left: 8px; font-size: 0.75rem; }

.reqDocStatus {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.reqDocActions {
    flex-shrink: 0;
}

/* Upload-knop bevat een verborgen <input type="file"> — label is klikbaar */
.reqDocUploadBtn {
    cursor: pointer;
    margin: 0;
}

/* States */
.reqDocItemUploading {
    background: var(--primary-soft);
}
.reqDocItemUploading .reqDocStatus {
    color: var(--primary-dark);
    font-weight: 600;
}
.reqDocItemUploading .reqDocIcon {
    background: var(--primary-light);
    color: var(--primary);
}

.reqDocItemSuccess {
    background: var(--success-light);
}
.reqDocItemSuccess .reqDocStatus {
    color: var(--success-dark);
    font-weight: 600;
}
.reqDocItemSuccess .reqDocIcon {
    background: var(--success-light);
    color: var(--success);
}

.reqDocItemError .reqDocStatus {
    color: var(--danger);
    font-weight: 600;
}
.reqDocItemError .reqDocIcon {
    background: var(--danger-light);
    color: var(--danger);
}

/* ===== UPLOAD AREA ===== */
.uploadArea {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.uploadArea:hover {
    border-color: var(--primary);
    background: rgba(59,130,246,0.03);
}

.uploadIcon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.uploadText {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 4px;
}

.uploadHint {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===== FIELD ROWS (Account) ===== */
.fieldRow {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 16px;
}

.fieldRow:last-child { border-bottom: none; }

.fieldLabel {
    width: 200px;
    flex-shrink: 0;
    font-weight: 500;
    color: var(--text-secondary);
    padding-top: 2px;
    font-size: 0.95rem;
}

.fieldValue {
    flex: 1;
    color: var(--text);
    font-size: 1rem;
}

/* ===== SECTION TABS ===== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 28px;
    gap: 4px;
    overflow-x: auto;
}

.tab {
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.tab:hover { color: var(--text); }
.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ===== LOGIN PAGE ===== */
.loginPage {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 24px;
}

.loginCard {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 460px;
    padding: 48px 40px;
}

.loginLogo {
    text-align: center;
    margin-bottom: 32px;
}

.loginLogo .owl {
    width: 64px;
    height: 64px;
    background: var(--text);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 12px;
}

.loginLogo h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.loginLogo p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 4px;
}

.loginDivider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.loginDivider::before,
.loginDivider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.loginLinks {
    text-align: center;
    margin-top: 24px;
    font-size: 0.95rem;
}

.loginLinks a {
    display: inline-block;
    margin: 4px 0;
}

.loginIntro {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.loginError {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.loginCodeInput {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 8px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    padding: 16px;
}

/* Bredere card voor de aanmeld-form (meer velden) */
.loginCardWide {
    max-width: 520px;
}

/* Inline radio's (Dhr/Mevr) */
.radioRow {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.radioInline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    min-height: 44px;
    flex: 1 1 auto;
    justify-content: center;
}

.radioInline input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.radioInline:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light, rgba(59,130,246,0.08));
    color: var(--primary);
    font-weight: 500;
}

/* Form rij met halve breedtes (voornaam + tussenvoegsel naast elkaar) */
.formRow {
    display: flex;
    gap: 12px;
}

.formGroupHalf {
    flex: 2 1 0;
}

.formGroupQuart {
    flex: 1 1 0;
}

@media (max-width: 480px) {
    .formRow { flex-direction: column; gap: 0; }
}

/* 'Wat is Mijn MoneyWise' link op login + uitleg-modal */
.loginInfoLink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.loginInfoLink:hover {
    text-decoration: underline;
}

.loginInfoLink svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.watIsIntro {
    margin: 0 0 24px 0;
    color: var(--text);
    line-height: 1.55;
}

.watIsFeature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.watIsFeature:last-of-type {
    border-bottom: none;
}

.watIsIcon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light, rgba(59,130,246,0.1));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.watIsIcon svg {
    width: 22px;
    height: 22px;
}

.watIsText {
    flex: 1;
    min-width: 0;
}

.watIsText h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.watIsText p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.watIsFooter {
    margin: 24px 0 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.watIsFooter a {
    color: var(--primary);
}

.loginVernieuwd {
    margin: 0 0 24px 0;
    padding: 14px 16px;
    background: #f0f7ff;
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.loginVernieuwdTitel {
    text-align: center;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.loginVernieuwd a {
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.nieuwList {
    margin: 0 0 20px 0;
    padding-left: 20px;
    line-height: 1.6;
}

.nieuwList li {
    margin-bottom: 10px;
}

.geenMailList {
    margin: 0 0 20px 0;
    padding-left: 20px;
    line-height: 1.6;
}

.geenMailList li {
    margin-bottom: 10px;
}

.geenMailContact {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    line-height: 1.6;
}

.geenMailContact a {
    color: var(--primary);
}

.loginHelp {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.loginHelp a {
    color: var(--primary);
}

.loginSentIcon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--success, #16a34a);
}

.loginSentIcon svg {
    width: 100%;
    height: 100%;
}

.loginSentTitle {
    text-align: center;
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    color: var(--text);
}

#pnlLoginSent {
    text-align: center;
}

#pnlLoginSent p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

#pnlLoginSent .textMuted {
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* ===== ALERT / NOTICE ===== */
.notice {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notice svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }

.noticeInfo {
    background: var(--primary-light);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.noticeSuccess {
    background: var(--success-light);
    color: var(--success-dark);
    border: 1px solid #bbf7d0;
}

.noticeWarning {
    background: var(--warning-light);
    color: var(--warning-dark);
    border: 1px solid #fde68a;
}

/* ===== EMPTY STATE ===== */
.emptyState {
    text-align: center;
    padding: 48px 24px;
}

.emptyState .icon { font-size: 3rem; margin-bottom: 12px; }
.emptyState p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== FOOTER ===== */
.siteFooter {
    background: var(--white);
    border-top: 3px solid var(--accent);
    margin-top: 48px;
}

.footerInner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footerLinks {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footerLinks a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footerLinks a:hover { color: var(--text); }

.footerContact {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footerContact a {
    color: var(--accent-hover);
    font-weight: 600;
}
.footerContact a:hover { color: var(--accent-dark); }

/* ===== TABLE SCROLL (mobile) ===== */
.tableScroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== TOUCH FEEDBACK ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:active { opacity: 0.7; }
    .btnPrimary:active { background: #1d4ed8; }
    .btnSecondary:active { background: var(--border-light); }
    .productItem:active { background: var(--bg-alt); }
    .personItem:active { background: var(--bg-alt); }
    .personItemAction:active { background: #bfdbfe; }
    .personItemDetail:active { background: var(--bg-alt); }
    .docItem:active { background: var(--bg-alt); }
    .actionItem:active { background: var(--bg-alt); }
    .statCard:active { box-shadow: var(--shadow); }
    .offerteRij:active { background: var(--bg-light); }
    .bankItem:active { background: #bfdbfe; border-color: var(--primary); }
    .idMethodeOptie:active { background: #bfdbfe; }
    .navLinks a:active { background: var(--bg-alt); }
    .tab:active { color: var(--primary); }
    .dossierToggleHeader:active { background: var(--bg-alt); }
    .logItem:active { background: var(--bg-light); }
    .offerteDetailsTrigger:active { color: var(--primary); }
    .offerteAfgelegdHint:active { background: var(--bg-alt); color: var(--primary); }
    /* Verberg hover-only stijlen op touch */
    .navUserName { display: none; }
}

/* ===== RESPONSIVE 768px ===== */
@media (max-width: 768px) {
    .topNavInner { height: 64px; padding: 0 16px; }
    .navLinks { display: none; }
    .menuToggle { display: flex; }
    .navLinks.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-light);
        padding: 8px 16px;
        box-shadow: var(--shadow-md);
        z-index: 200;
        animation: slideDown 0.2s ease;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .navLinks.open a {
        padding: 16px;
        font-size: 1.05rem;
        border-radius: var(--radius);
    }
    .navLinks.open a.active {
        background: var(--primary-light);
        color: var(--primary-hover);
    }
    .navUserName { display: none; }
    .pageWrap { padding: 24px 16px; }
    .pageTitle { font-size: 1.5rem; }
    .dashGrid { grid-template-columns: 1fr; }
    .fieldRow { flex-direction: column; gap: 4px; }
    .fieldLabel { width: auto; }
    .loginCard { padding: 32px 24px; }
    .footerInner { flex-direction: column; text-align: center; }
    .footerLinks { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .productItem { flex-wrap: wrap; }
    .cardBody { padding: 16px; }
    .cardHeader { padding: 16px; }
    .actionItem { padding: 16px; gap: 12px; }
    .productItem { padding: 16px; gap: 14px; }
    .personItem { padding: 16px; gap: 14px; }
    .docItem { padding: 14px 16px; gap: 12px; }
    .uploadArea { padding: 32px 20px; }
    .statCard { padding: 20px; gap: 14px; }
    .statValue { font-size: 1.6rem; }
    .statIcon { width: 44px; height: 44px; border-radius: 10px; }
    .statIcon svg { width: 22px; height: 22px; }
    .modalContent { padding: 24px; max-width: none; width: calc(100% - 32px); }
    .modalActions { flex-direction: column; }
    .modalActions .btn { width: 100%; }
    .tabs { gap: 0; }
    .tab { padding: 14px 16px; font-size: 0.95rem; }
    .logItem { padding: 12px 16px; gap: 10px; flex-direction: column; }
    .logLinks { width: auto; display: flex; gap: 8px; align-items: baseline; }
    .logDatum { font-size: 0.75rem; }
    .compareLabel { white-space: normal; }
    /* Dossier header mobile */
    .dossierHeader { flex-direction: column; align-items: flex-start; }
    .dossierBadge { align-self: flex-start; }
}

/* ===== RESPONSIVE 480px (kleine telefoons) ===== */
@media (max-width: 480px) {
    .pageTitle { font-size: 1.3rem; }
    .pageSubtitle { font-size: 0.95rem; margin-bottom: 20px; }
    .pageWrap { padding: 20px 12px; }
    .modalContent { padding: 20px; width: calc(100% - 24px); }
    .loginCard { padding: 28px 20px; }
    .loginLogo h1 { font-size: 1.4rem; }
    .cardHeader { padding: 14px; }
    .cardBody { padding: 14px; }
    .cardTitle { font-size: 1.05rem; }
    .statCard { padding: 16px; }
    .statValue { font-size: 1.4rem; }
    .navLogo span { display: none; }
    .topNavInner { padding: 0 12px; }
    .productIcon { width: 44px; height: 44px; border-radius: 10px; font-size: 1.2rem; }
    .personAvatar { width: 44px; height: 44px; font-size: 1rem; }
    .idStep { gap: 12px; }
    .idStepNr { width: 36px; height: 36px; font-size: 1rem; }
    .dossierTitle { font-size: 18px; }
    .dossierHeader { padding: 14px; }
    .voortgangLabel { font-size: 12px; }
}

/* ===== LOGO IMAGE ===== */
.navLogoImg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

/* ===== MODAL OVERLAY ===== */
.modalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modalContent {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-md);
}

.modalContent h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.modalContent p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.modalActions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.modalHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.modalHeader h3 {
    margin: 0;
    flex: 1;
}

.modalClose {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s, color 0.15s;
}

.modalClose:hover,
.modalClose:focus-visible {
    background: var(--bg);
    color: var(--text);
    outline: none;
}

.modalBody {
    color: var(--text);
}

/* ===== CONTACT MODAL ===== */
.contactModal {
    max-width: 420px;
    padding: 0;
}

.contactModalHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.contactModalHeader h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.contactModalClose {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contactModalClose:hover { background: var(--bg-alt); color: var(--text); }

.contactModalSub {
    padding: 8px 24px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.contactItems {
    display: flex;
    flex-direction: column;
}

.contactItem {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid var(--border-light);
    transition: background 0.15s;
}

.contactItem:hover {
    background: var(--bg-light);
    text-decoration: none;
    color: inherit;
}

.contactItem:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.contactIcon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contactIcon svg { width: 22px; height: 22px; }

.contactIconPhone { background: var(--primary-light); color: var(--primary); }
.contactIconWhatsapp { background: #dcfce7; color: #22c55e; }
.contactIconEmail { background: var(--accent-light); color: var(--accent-hover); }

.contactText { flex: 1; }

.contactLabel {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contactValue {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

/* ===== TEXT CONTENT (privacy, voorwaarden) ===== */
.textContent h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 10px;
}

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

.textContent p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.textContent ul {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 12px 24px;
}

.textContent li { margin-bottom: 4px; }

.textContent a { color: var(--primary); }

/* ===== CONTACT PAGE CARDS ===== */
.contactPageCard {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, transform 0.15s;
    cursor: pointer;
}

.contactPageCard:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.contactPageCard .cardBody {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 24px;
}

.contactPageCard .contactIcon {
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
}

.contactPageLabel {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contactPageValue {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.contactPageHint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== PENSIOENVEILING ===== */
.veilingMeta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.veilingKaart {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

/* Uniforme rij: Logo - Naam - Status - Standaard - Eind - Verschil - Actie */
.veilingRij {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}

.veilingRij:last-child { border-bottom: none; }

.veilingHeader {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    background: var(--bg-light);
}

.veilingCel { flex-shrink: 0; }
.veilingCelLogo { width: 60px; }
.veilingCelNaam { flex: 1; min-width: 0; font-weight: 600; color: var(--text); }
.veilingCelStatus { width: 120px; }
.veilingCelBedrag { width: 110px; text-align: right; font-size: 0.95rem; color: var(--text-secondary); }
.veilingCelEind { font-weight: 700; color: var(--text); }
.veilingCelVerschil { width: 100px; text-align: right; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.veilingCelActie { width: 150px; text-align: right; }
.veilingCelActie .btn { white-space: nowrap; }

/* Winnaar-rij opvallend */
.veilingRijWinnaar {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
}
.veilingRijWinnaar .veilingCelNaam { font-size: 1.05rem; }
.veilingRijWinnaar .veilingCelEind { color: var(--success); font-size: 1.05rem; }
.veilingRijWinnaar .veilingCelVerschil { color: var(--success); }

.veilingLogo {
    width: 55px;
    height: 40px;
    object-fit: contain;
}

.veilingPositief { color: var(--success); }

.veilingOverigeTitel {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.textCenter { text-align: center; }

@media (max-width: 768px) {
    .veilingHeader { display: none; }
    .veilingRij {
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px;
    }
    .veilingCelLogo { width: 44px; }
    .veilingLogo { width: 44px; height: 30px; }
    .veilingCelNaam { flex: 1 1 calc(100% - 60px); }
    .veilingCelStatus { width: auto; }
    .veilingCelBedrag { width: auto; text-align: left; }
    .veilingCelVerschil { width: auto; text-align: left; }
    .veilingCelActie { width: 100%; text-align: left; }
    .veilingCelActie .btn { width: 100%; justify-content: center; }
    .veilingMeta { flex-direction: column; gap: 8px; }
}

/* ===== UTILITIES ===== */
.hideMe { display: none !important; }
/* Honeypot — in de HTML een gewoon ogend veld; alleen hier verborgen. Echte gebruikers
   zien/vullen het nooit (ook uit tab-volgorde + a11y-tree), bots die alles invullen wel.
   Server-check zit in AuthController.MaakAccount (DTO-veld Website). */
.fieldWebsite { display: none; }
.textCenter { text-align: center; }
.noPadding { padding: 0; }
.mt0 { margin-top: 0; }
.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.mb0 { margin-bottom: 0; }
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px; }

/* ===== SPINNER ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinnerLarge {
    width: 48px;
    height: 48px;
    border-width: 4px;
}

/* Laad-modal: gecentreerd wachticoon + tekst */
.modalContent.loadingModal {
    max-width: 360px;
    text-align: center;
}

.loadingModalText {
    margin: 18px 0 0;
    font-size: 1.1rem;
    color: var(--text);
}

/* Lijst van nog aan te leveren documenten (dossierpagina, in een notice) */
.reqDocNeedList {
    margin: 8px 0 0;
    padding-left: 22px;
    line-height: 1.6;
}

/* ===== IDENTIFICATIE PAGINA ===== */
.idSteps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.idStep {
    display: flex;
    align-items: center;
    gap: 16px;
}

.idStepNr {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.idStepText {
    font-size: 1rem;
    color: var(--text);
}

.personItemAction { cursor: pointer; }
.personItemAction:hover { background: var(--primary-light); }

/* Methode keuze modal */
.idMethodeKeuze {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.idMethodeOptie {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.15s;
}

.idMethodeOptie:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.idMethodeIcon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.idMethodeIcon svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.idMethodeInfo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.idMethodeInfo strong {
    font-size: 1.1rem;
    color: var(--text);
}

.idMethodeInfo span {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Bank selectie */
.bankLijst {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.bankItem {
    padding: 14px 20px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s;
}

.bankItem:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* Identificatie detail */
.personItemDetail { cursor: pointer; }
.personItemDetail:hover { background: var(--bg-light); }

/* Methode-keuze modal (iDIN / iDEAL) */
.modalMethodeKeuze { max-width: 560px; }
.methodeOptie {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
    background: var(--bg-light);
}
.methodeOptie:first-of-type { margin-top: 8px; }
.methodeOptieHeader {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.methodeOptieIcon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.methodeOptieIcon svg { width: 22px; height: 22px; }
.methodeOptieTitel { font-size: 1.05rem; }
.methodeOptie p { margin: 6px 0; line-height: 1.5; }
.methodeOptie .btn { margin-top: 12px; }
.btnFull { width: 100%; justify-content: center; }

.detailHeader {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.detailMeta {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.compareTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.compareTable th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid var(--primary);
}
.compareTable th:first-child { border-top-left-radius: 8px; }
.compareTable th:last-child { border-top-right-radius: 8px; }

.compareTable th:last-child {
    width: 40px;
    text-align: center;
}

.compareRow td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.compareLabel {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.compareRowMismatch td {
    background: var(--warning-light);
}

.compareMatch {
    color: var(--success);
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
}

.compareMismatch {
    color: var(--danger);
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
}

.textMuted {
    color: var(--text-muted);
}

/* Notices (result meldingen) */
.noticeDanger {
    background: var(--danger-light);
    border-left: 4px solid var(--danger);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    color: #991b1b;
}

/* ===== OFFERTES ===== */

.offerteToggle {
    margin-bottom: 24px;
}

.checkLabel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-secondary);
}

.checkLabel input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Offerte rij */
/* Offerte item wrapper */
.offerteItem {
    border-bottom: 1px solid var(--border);
}
.offerteItem:last-child {
    border-bottom: none;
}
.offerteAfgelegd {
    opacity: 0.55;
}

/* Hoofdrij */
.offerteRij {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
}

/* Logo */
.offerteLogo {
    width: 60px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.offerteLogo img {
    max-width: 60px;
    max-height: 40px;
    object-fit: contain;
}

/* Info links: naam, product, kerndata */
.offerteInfo {
    flex: 1;
    min-width: 0;
}
.offerteAanbieder {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}
.offerteProduct {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.offerteAanvrager {
    color: var(--text-muted);
    font-style: italic;
}
.offerteKerndata {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
}

/* Label in het midden */
.offerteLabel {
    flex-shrink: 0;
}

/* Knoppen rechts gestapeld */
.offerteRechts {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}
.offerteAflegLink {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}
.offerteAflegLink:hover {
    color: #dc2626;
}

/* Details trigger: centraal onderaan de offerterij */
.offerteDetailsTrigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 0;
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    background: azure;
    border-bottom: 1px solid #ccc;
}
.offerteDetailsTrigger:hover {
    color: var(--primary);
}
.offerteDetailsTrigger .offerteChevron {
    font-size: 13px;
    transition: transform 0.2s;
}
.offerteChevronOpen {
    transform: rotate(180deg);
}

/* Uitklapbare details */
.offerteDetail {
    padding: 16px 24px 20px 24px;
    background: #f8fafc;
}

.offerteDetail .notice {
    margin-bottom: 12px;
}

.offerteDetailGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.offerteDetailKolom {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .offerteRij {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 16px;
    }
    .offerteLogo {
        width: 44px;
        height: 30px;
    }
    .offerteLogo img {
        max-width: 44px;
        max-height: 30px;
    }
    .offerteInfo {
        flex: 1 1 calc(100% - 70px);
        min-width: 0;
    }
    .offerteAanbieder {
        font-size: 16px;
    }
    .offerteKerndata {
        font-size: 14px;
    }
    .offerteLabel {
        order: 10;
    }
    .offerteRechts {
        order: 11;
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        min-width: 0;
        gap: 16px;
    }
    .offerteDetailGrid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .offerteDetail {
        padding: 14px 16px 16px 16px;
    }
    .offerteDetailsTrigger {
        padding: 6px 16px;
    }
}

/* Offerte acties (legacy, bewaar voor detail) */
.btnDanger {
    background: #dc2626;
    color: #fff;
    border: 1px solid #dc2626;
}
.btnDanger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Hint voor afgelegde offertes */
.offerteAfgelegdHint {
    padding: 12px 24px;
    font-size: 15px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    text-align: center;
    cursor: pointer;
}
.offerteAfgelegdHint:hover {
    color: var(--primary);
    background: var(--bg-light);
}

/* ===== DOSSIER PAGINA ===== */

.dossierBreadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.dossierBreadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.dossierBreadcrumb a:hover {
    text-decoration: underline;
}

.dossierHeader {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
}
.dossierLogo {
    width: 80px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}
.dossierHeaderInfo {
    flex: 1;
}
.dossierTitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.dossierSubtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.dossierKerndata {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-top: 6px;
}
.dossierPersonen {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
}
.dossierBadge {
    font-size: 15px;
    padding: 6px 16px;
    flex-shrink: 0;
    align-self: flex-start;
}

.dossierDivider {
    border-bottom: none;
    margin: 4px 0;
}

/* Uitklapbare secties */
.dossierToggleHeader {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dossierToggleHeader:hover {
    background: var(--bg-light);
}
.dossierChevron {
    font-size: 14px;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.dossierChevronOpen {
    transform: rotate(180deg);
}

/* Dossier tabel (expiraties) */
.dossierTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.dossierTable th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--primary-light);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--primary);
}
.dossierTable th:first-child { border-top-left-radius: 8px; }
.dossierTable th:last-child { border-top-right-radius: 8px; }
.dossierTable td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}
.dossierTable tr:last-child td {
    border-bottom: none;
}

/* Logboek */
.logItem {
    display: flex;
    gap: 16px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}
.logItem:last-child {
    border-bottom: none;
}
.logLinks {
    flex-shrink: 0;
    width: 160px;
}
.logWie {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}
.logDatum {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.logTekst {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Document beoordelen status */
.docBeoordeelHint {
    color: #dc2626;
    font-weight: 600;
    font-size: 14px;
}
.docBeoordeelBadge {
    background: #fef2f2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.docBeoordelen {
    background: #fffbeb;
}

/* Voortgang timeline */
.voortgang {
    padding: 8px 0;
}
.voortgangStappen {
    display: flex;
    justify-content: space-between;
    position: relative;
}
/* Lijn achter de dots — van midden eerste dot tot midden laatste dot */
.voortgangStappen::before {
    content: '';
    position: absolute;
    top: 8px;
    left: calc(100% / (var(--stap-count, 5) * 2));
    right: calc(100% / (var(--stap-count, 5) * 2));
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 0;
}
.voortgangBarOverlay {
    position: absolute;
    top: 8px;
    left: calc(100% / (var(--stap-count, 5) * 2));
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    z-index: 1;
    transition: width 0.5s;
}
.voortgangStap {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}
.voortgangDot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #cbd5e1;
    margin: 0 auto 8px;
    border: 3px solid #e2e8f0;
}
.voortgangStap.done .voortgangDot {
    background: var(--primary);
    border-color: var(--primary-light);
}
.voortgangLabel {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.3;
}
.voortgangStap.done .voortgangLabel {
    color: var(--text);
    font-weight: 600;
}
.voortgangDatum {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Dossier 2-koloms (offerte vs polis) */
.dossierColumns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
}

.dossierCol {
    min-width: 0;
}

.dossierColHeader {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    padding: 12px 0 8px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .dossierColumns {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .dossierCol:last-child .dossierColHeader {
        margin-top: 16px;
    }
}

/* Paginering */
.pagerWrap {
    border-top: 1px solid var(--border-light);
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 24px;
}

.pagerInfo {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive dossier */
@media (max-width: 768px) {
    .dossierHeader {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }
    .dossierLogo {
        width: 60px;
        height: 38px;
    }
    .dossierTitle {
        font-size: 20px;
    }
    .voortgangStappen {
        flex-direction: column;
        gap: 12px;
    }
    .voortgangStap {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }
    .voortgangDot {
        margin: 0;
        flex-shrink: 0;
    }
    .voortgangStappen::before,
    .voortgangBarOverlay {
        display: none;
    }
}

/* === OTD (Opdracht tot dienstverlening) === */
.otdTekst {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
}

.otdTekst p {
    margin: 0 0 12px 0;
}

.otdTekst h1,
.otdTekst h2,
.otdTekst h3 {
    margin: 18px 0 10px 0;
    color: var(--text);
}

.otdTekst ul,
.otdTekst ol {
    margin: 0 0 12px 24px;
    padding: 0;
}

.otdTekst li {
    margin-bottom: 6px;
}

.otdCheckRow {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.otdCheckRow:last-of-type {
    border-bottom: none;
}

.otdCheck {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
}

.otdCheckRow label {
    cursor: pointer;
    line-height: 1.5;
    flex: 1;
}

.otdCheckRow a {
    color: var(--primary);
    text-decoration: underline;
}

.otdAkkoordRow {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

.otdAkkoordInput {
    max-width: 280px;
    margin-top: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.otdSubmitRow {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.otdSubmitRow .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === E-mailadres wijzigen === */
.emailCodeRow {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.emailCodeRow:last-of-type {
    border-bottom: none;
}

.emailCodeLabel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.emailCodeInputRow {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.emailCodeInputRow .formInput {
    max-width: 180px;
    text-align: center;
}

.emailCodeInputRow .btn {
    flex-shrink: 0;
}

.emailStap2Actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.emailCodeInputRow .formInput:disabled {
    background: var(--bg);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* === Persoon-kiezer (radio cards) === */
.personRadioGroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 20px 0;
    max-height: 260px;
    overflow-y: auto;
    /* Padding zodat focus-ring + selected border niet tegen scrollbar plakken */
    padding: 2px;
}

.personRadioItem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.personRadioItem:hover {
    background: var(--bg);
}

.personRadioItem input[type="radio"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.personRadioItem:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light, rgba(59,130,246,0.08));
}

.personRadioInfo {
    flex: 1;
    min-width: 0;
}

.personRadioName {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.personRadioMeta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* === Tabs === */
.tabsRow {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
}

.tabBtn {
    padding: 12px 18px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    font-family: inherit;
}

.tabBtn:hover {
    color: var(--text);
}

.tabBtn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tabContent {
    /* niets — alleen layout-anchor voor hide/show */
}

/* === Settings-rij knoppen op /account === */
.settingsItem {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
    transition: background-color 0.15s;
    min-height: 64px;
}

.settingsItem:last-child {
    border-bottom: none;
}

.settingsItem:hover,
.settingsItem:focus-visible {
    background: var(--bg);
    outline: none;
}

.settingsItemIcon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--primary-light, rgba(59,130,246,0.1));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.settingsItemIcon svg {
    width: 22px;
    height: 22px;
}

.settingsItemDanger .settingsItemIcon {
    background: #fee2e2;
    color: #b91c1c;
}

.settingsItemText {
    flex: 1;
    min-width: 0;
}

.settingsItemTitle {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.settingsItemHint {
    margin-top: 2px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.settingsItemArrow {
    flex-shrink: 0;
    font-size: 1.4rem;
    color: var(--text-muted);
    line-height: 1;
}

/* === Modal large (voor email-wijziging) + mobile-first === */
.modalContent.modalLarge {
    max-width: 560px;
}

/* Op desktop mag modal max het viewport vullen; body scrollt intern.
   Header + actions blijven vast zichtbaar. */
.modalContent {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modalContent > .modalHeader {
    flex-shrink: 0;
}

.modalContent > .modalBody {
    flex: 1 1 auto;
    overflow-y: auto;
    /* Negatieve marge zodat scroll-padding ruim aanvoelt zonder layout-shift */
    min-height: 0;
}

.modalContent > .modalActions {
    flex-shrink: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 0;
}

/* Body class voorkomt scrollen achter open modal */
body.modalOpen {
    overflow: hidden;
}

/* Mobile-first: op smal scherm full-height sheet ipv centered popup */
@media (max-width: 600px) {
    .modalOverlay {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
    }

    .modalContent,
    .modalContent.modalLarge {
        max-width: none;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .modalHeader {
        padding: 16px 20px;
        margin: 0;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        background: var(--white);
        z-index: 2;
    }

    .modalBody {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
    }

    .modalActions {
        padding: 14px 20px;
        border-top: 1px solid var(--border);
        position: sticky;
        bottom: 0;
        background: var(--white);
        z-index: 2;
        flex-wrap: wrap;
    }

    .modalActions .btn {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 48px;
        justify-content: center;
    }

    /* Settings-rijen blijven sowieso al touch-friendly door min-height:64px */
    .settingsItem {
        padding: 16px;
        gap: 12px;
    }

    /* Email-code rij: input + knop onder elkaar op smal scherm */
    .emailCodeInputRow {
        flex-direction: column;
        align-items: stretch;
    }

    .emailCodeInputRow .formInput {
        max-width: none;
    }

    .emailCodeInputRow .btn {
        min-height: 48px;
    }

    /* Tabs blijven naast elkaar maar krijgen meer ademruimte */
    .tabBtn {
        flex: 1;
        text-align: center;
        padding: 14px 8px;
        min-height: 48px;
    }
}

/* Op iets bredere maar nog smalle schermen (tablet portrait) — tussenvorm */
@media (min-width: 601px) and (max-width: 900px) {
    .modalContent,
    .modalContent.modalLarge {
        max-width: 90vw;
    }
}

/* ===== FACTUREN ===== */
.factuurSamenvatting {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--warning-light);
    border: 1px solid var(--accent-light);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 24px;
}

.factuurSamenvattingIcon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    color: var(--accent-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.factuurSamenvattingIcon svg { width: 26px; height: 26px; }

.factuurSamenvattingLabel {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.factuurSamenvattingBedrag {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

/* Factuurrij — bouwt voort op .docItem */
.factuurIcon {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}
.factuurIconGreen { background: var(--success-light); color: var(--success-dark); }
.factuurIconBlue { background: var(--primary-light); color: var(--primary-dark); }
.factuurIconOrange { background: var(--accent-light); color: var(--accent-dark); }
.factuurIconRed { background: var(--danger-light); color: #991b1b; }
.factuurIconGray { background: var(--bg-alt); color: var(--text-secondary); }

.factuurItemOverdue {
    background: var(--danger-light);
}
.factuurItemOverdue:hover {
    background: var(--danger-light);
}

.factuurSub {
    color: var(--text-secondary);
}
.factuurSubRood {
    color: #991b1b;
    font-weight: 600;
}

.factuurActions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.factuurBetaalBtn svg,
.docActions .btn svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

@media (max-width: 640px) {
    .factuurSamenvatting { padding: 14px 16px; gap: 14px; }
    .factuurSamenvattingBedrag { font-size: 1.35rem; }
    .factuurActions { width: 100%; }
}

/* Factuurrij = rij + uitklappaneel als één geheel (scheidingslijn op de wrapper) */
.factuurRij {
    border-bottom: 1px solid var(--border-light);
}
.factuurRij:last-child { border-bottom: none; }
.factuurRij .docItem { border-bottom: none; }

/* Betaalinstructies-uitklap (handmatige overboeking) */
.factuurBetaalInfo {
    padding: 4px 24px 20px 84px; /* links uitgelijnd onder de tekst, naast het icoon */
    background: var(--bg-light);
}

.betaalInfoTitel {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.betaalRegel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}
.betaalRegel:last-of-type { border-bottom: none; }

.betaalLabel {
    flex: 0 0 110px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.betaalWaarde {
    flex: 1;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.copyBtn { flex-shrink: 0; }
.copyBtnDone {
    background: var(--success-light) !important;
    color: var(--success-dark) !important;
}

.betaalInfoHint {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.factuurOvermaakBtn.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}

@media (max-width: 640px) {
    .factuurBetaalInfo { padding: 4px 16px 18px 16px; }
    .betaalRegel { flex-wrap: wrap; gap: 6px 12px; }
    .betaalLabel { flex-basis: 70px; }
}

/* Uitklapbaar incasso-overzicht (meerdere termijnen) */
.factuurIncassoDetails {
    padding: 0 24px 18px 84px; /* uitgelijnd onder de tekst, naast het icoon */
    background: var(--bg-light);
}

.incassoLijst {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.incassoRow {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}
.incassoRow:last-child { border-bottom: none; }

.incassoNr {
    flex: 0 0 auto;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    border-radius: 9px;
    background: var(--bg-alt);
    color: var(--text);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}
.incassoNrTot { color: var(--text-muted); font-weight: 500; }

.incassoStatusCell {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    min-width: 0;
}

.incassoIcon {
    flex-shrink: 0;
    font-size: 1.05rem;
    line-height: 1;
}

/* Toestand-kleuren kleuren zowel het icoon als de statustekst */
.incassoToestand-gepland { color: var(--primary); }
.incassoToestand-aangeboden { color: var(--accent-hover); }
.incassoToestand-betaald { color: var(--success-dark); }
.incassoToestand-herpoging,
.incassoToestand-mislukt,
.incassoToestand-stopgezet { color: #b91c1c; }

.incassoBedragCell {
    flex: 0 0 90px;
    text-align: right;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

/* Chevron in toggle-knoppen draait bij open */
.toggleChevron { transition: transform 0.18s ease; }
.factuurToggleBtn.active .toggleChevron { transform: rotate(180deg); }

@media (max-width: 640px) {
    .factuurIncassoDetails { padding: 0 16px 16px 16px; }
    .incassoRow { flex-wrap: wrap; gap: 8px 12px; }
    .incassoStatusCell { flex: 1 0 60%; }
    .incassoBedragCell { flex: 0 0 auto; }
}
