﻿/* ========== MOBILE RECONNECT STYLING ========== */

/* Verberg de standaard Blazor reconnect modal */
#components-reconnect-modal {
    display: none !important;
}

/* Subtiele verbindingsstatus indicator bovenaan */
#connection-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #28a745;
    z-index: 20000;
    transition: background-color 0.3s ease;
    display: none;
}

#connection-status-bar.reconnecting {
    background: #ffc107;
    animation: pulse 1.5s ease-in-out infinite;
}

#connection-status-bar.offline {
    background: #dc3545;
}

#connection-status-bar.show {
    display: block;
}

/* Offline / beperkte verbinding banner (Blazor WASM PWA) */
.offline-connection-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #b00020;
    color: #fff;
    padding: 10px 12px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    line-height: 1.35;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.offline-connection-banner__content {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
}

.offline-connection-banner__retry {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.offline-connection-banner__retry:disabled {
    opacity: 0.7;
    cursor: default;
}

.connectivity-retry-card {
    margin: 0.5rem 0 1rem;
}

.connectivity-retry-card__inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.connectivity-retry-card--compact .connectivity-retry-card__inner {
    padding: 1rem 0.75rem;
}

.connectivity-retry-card__icon {
    font-size: 1.75rem;
    color: #b00020;
    margin-bottom: 0.5rem;
    display: block;
}

.connectivity-retry-card__title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.35rem;
}

.connectivity-retry-card__message {
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 0.85rem;
}

.connectivity-retry-card__btn {
    min-width: 10rem;
}

.connectivity-body-host {
    position: relative;
}

.connectivity-body-host__scrim {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    z-index: 50;
    pointer-events: none;
}

.connectivity-body-host__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 51;
    padding: 0 1rem;
    pointer-events: auto;
}

.connectivity-blocking-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    background: #f7fafc;
}

.connectivity-blocking-overlay__card {
    width: 100%;
    max-width: 22rem;
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.connectivity-blocking-overlay__icon {
    font-size: 2.5rem;
    color: #b00020;
    display: block;
    margin-bottom: 0.75rem;
}

.connectivity-blocking-overlay__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.connectivity-blocking-overlay__message {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.connectivity-blocking-overlay__btn {
    width: 100%;
}

.mobile-layout:has(.offline-connection-banner) .mobile-content {
    padding-top: calc(2.75rem + env(safe-area-inset-top, 0px));
}

.onboarding-focus-layout:has(.offline-connection-banner) .onboarding-focus-content,
.onboarding-focus-layout:has(.offline-connection-banner) > .mobile-page {
    padding-top: calc(2.75rem + env(safe-area-inset-top, 0px));
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Custom reconnect UI voor mobiele devices */
.mobile-reconnect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

/* Verberg de custom modal standaard */
.mobile-reconnect.components-reconnect-hide {
    display: none !important;
}

/* Toon de custom modal alleen wanneer nodig */
.mobile-reconnect:not(.components-reconnect-hide) {
    display: flex !important;
}

/* Verberg alle reconnect states standaard */
.mobile-reconnect .show,
.mobile-reconnect .failed,
.mobile-reconnect .rejected {
    display: none;
}

/* Toon alleen de actieve state */
.mobile-reconnect .show.active,
.mobile-reconnect .failed.active,
.mobile-reconnect .rejected.active {
    display: block;
}

.reconnect-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.reconnect-content p {
    margin: 10px 0;
    color: #333;
    font-size: 16px;
}

.reconnect-content button {
    background: #006CFE;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.reconnect-content button:hover {
    background: #0056D4;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== MOBIELE LAYOUT STYLING ========== */

/* Forceer altijd light mode - geen dark mode */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color-scheme: light;
    overflow-x: hidden; /* Voorkom horizontale scrollbar bij smalle viewport */
}

/* Zorg ervoor dat alle elementen altijd light mode gebruiken */
* {
    color-scheme: light;
}

/* Forceer light mode voor alle componenten */
.mobile-layout,
.mobile-top-bar,
.mobile-card,
.mobile-list-item,
.mobile-input,
.bottom-tab-bar,
.mobile-page,
.menu-sheet-alt,
.filter-sheet,
.login-card {
    color-scheme: light !important;
}

/* SPECIFIEKE MENU LIGHT MODE FORCERING */
.menu-overlay-alt,
.menu-sheet-alt,
.menu-header,
.menu-content,
.menu-item,
.btn-logout {
    background-color: white !important;
    color: #1a1a1a !important;
    color-scheme: light !important;
}

/* LOGIN: visuele stijl staat in /css/login.css (wolken, CTA). Alleen light mode voor onderdelen die gedeeld worden. */
.login-card,
.login-header,
.login-content,
.login-footer,
.logo-container,
.login-info {
    color-scheme: light !important;
}

/* Bootstrap dropdown override voor light mode */
.dropdown-menu,
.dropdown-item,
.dropdown-header {
    background-color: white !important;
    color: #1a1a1a !important;
    border-color: #e0e0e0 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: #1a1a1a !important;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: #006CFE !important;
    color: white !important;
}

/* Basis mobiele layout */
.mobile-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* flex: PWA/desktop venster mag smaller; voorkomt min-content-breedte van kinderen */
    background: #f8f9fa;
    overflow: hidden;
}

/* Initial Loading Overlay */
.initial-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.initial-loading-overlay__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
    max-width: 20rem;
}

.initial-loading-overlay__spinner {
    width: 3rem;
    height: 3rem;
}

.loading-slow-hint {
    margin-top: 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.45;
}

/* Top App Bar */
.mobile-top-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.mobile-toolbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    min-height: 3.5rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

.mobile-toolbar-title-spinner {
    width: 1.125rem;
    height: 1.125rem;
    border-width: 0.15em;
}

.home-page-logo {
    height: 1.25rem;
    width: auto;
    object-fit: contain;
}

/* Knoppen */
.btn-back {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    color: #006CFE;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-back:hover {
        background-color: rgba(0, 108, 254, 0.1);
    }

    .btn-back:active {
        transform: scale(0.95);
    }

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    color: #6c757d;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-icon:hover {
        background-color: rgba(108, 117, 125, 0.1);
        color: #495057;
    }

    .btn-icon:active {
        transform: scale(0.95);
    }

.btn-close {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    color: #6c757d;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 2rem;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-close:hover {
        background-color: rgba(108, 117, 125, 0.1);
    }

/* Zoekbalk */
.search-bar {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.search-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 1.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .search-input:focus {
        outline: none;
        border-color: #006CFE;
        box-shadow: 0 0 0 3px rgba(0, 108, 254, 0.1);
    }

/* Hoofdinhoud */
.mobile-content {
    flex: 1;
    min-width: 0; /* Mag krimpen onder intrinsieke breedte van banner/kaarten (desktop PWA) */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem;
    padding-bottom: calc(1rem + 4rem); /* Ruimte voor bottom tab bar */
}

/* Geen vaste tabbalk: geen extra bodem-inspringing (bijv. AlleenLening-satellietpagina's). */
.mobile-content.mobile-content--no-bottom-tabs {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* Bottom Tab Bar */
.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: max(env(safe-area-inset-bottom), 0.5rem);
    z-index: 50;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.4rem 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
    min-height: 3rem;
}

    .tab-item:hover {
        color: #006CFE;
        background-color: rgba(0, 108, 254, 0.1);
    }

    .tab-item.active {
        color: #006CFE;
    }

    .tab-item i {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .tab-item span {
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.2;
    }

/* Tab badge (ongelezen berichten) */
.tab-item-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.tab-item-icon-wrapper i {
    font-size: 1.25rem;
}

.tab-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 0.85rem;
    height: 0.85rem;
    padding: 0 0.15rem;
    font-size: 0.5rem;
    font-weight: 700;
    line-height: 0.85rem;
    color: white;
    background: #dc3545;
    border-radius: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    transform: translate(-5%, -5%);
}

/* ========== OVERLAY EN SHEETS ========== */

/* Filter Overlay */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    pointer-events: all;
    touch-action: manipulation;
}

.filter-sheet {
    background: white;
    border-radius: 1rem 1rem 0 0;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    z-index: 201;
    pointer-events: all;
    position: relative;
}

/* Menu Overlay - Alternatieve implementatie */
.menu-overlay-alt {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    pointer-events: all !important;
    touch-action: manipulation !important;
}

.menu-sheet-alt {
    background: white !important;
    border-radius: 0 0 1rem 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    animation: slideDownAlt 0.3s ease-out !important;
    position: relative !important;
    z-index: 10000 !important;
    margin-top: 0 !important;
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideUpAlt {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideDownAlt {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Sheet Headers en Content */
.filter-header,
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

    .filter-header h3,
    .menu-header h3 {
        margin: 0;
        font-size: 1.125rem;
        font-weight: 600;
    }

.filter-content,
.menu-content {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 4.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* ========== MOBIELE COMPONENTEN ========== */

/* Menu styling */
.menu-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.menu-item:last-child {
    border-bottom: none;
}

.btn-menu-item {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 0;
    color: #1a1a1a;
    font-size: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.btn-menu-item:hover {
    background-color: #f8f9fa;
    color: #006CFE;
}

.btn-menu-item:active {
    background-color: #e9ecef;
    transform: scale(0.98);
}

.btn-menu-item i {
    font-size: 1.25rem;
    color: #6c757d;
}

.btn-menu-item:hover i {
    color: #006CFE;
}

.menu-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0.5rem 1rem;
}

.logout-item {
    border-top: 2px solid #f0f0f0;
    margin-top: 0.5rem;
}

.btn-logout {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem 0;
    color: #dc3545;
    font-size: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.btn-logout:hover {
    background-color: #fff5f5;
    color: #c82333;
}

.btn-logout:active {
    background-color: #ffe6e6;
    transform: scale(0.98);
}

.btn-logout i {
    font-size: 1.25rem;
    color: #dc3545;
}

.btn-logout:hover i {
    color: #c82333;
}

/* Kaartjes */
.mobile-card {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

    .mobile-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .mobile-card:active {
        transform: scale(0.98);
    }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0.25rem 0 0 0;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Lijst items */
.mobile-list-item {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 3.5rem;
}

    .mobile-list-item:hover {
        background-color: #f8f9fa;
        transform: translateX(4px);
    }

    .mobile-list-item:active {
        transform: scale(0.98);
    }

    .mobile-list-item.unread {
        background-color: #f8f9ff;
        border-left: 3px solid #006CFE;
    }

.list-item-content {
    flex: 1;
}

.list-item-main {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
}

.list-item-subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.list-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.list-item-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-item-chevron {
    color: #adb5bd;
    font-size: 1.125rem;
}

/* Status indicators */
.status-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    display: inline-block;
}

.status-active {
    background-color: #28a745;
}

.status-verified {
    background-color: #006CFE; /* Blauw voor succesvolle verificatie */
}

.status-failed {
    background-color: #dc3545; /* Rood voor failed/mismatch verificatie */
}

.status-pending {
    background-color: #ffc107; /* Geel voor pending verificatie */
}

.status-none {
    background-color: #6c757d; /* Grijs voor geen verificatie */
}

.status-inactive {
    background-color: #dc3545;
}

.unread-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #006CFE;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Knoppen */
.mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 3rem;
    min-width: 6rem;
    gap: 0.5rem; /* Ruimte tussen icoon en tekst */
}

.mobile-btn-primary {
    background: #006CFE;
    color: white;
}

    .mobile-btn-primary:hover {
        background: #0056D4;
        transform: translateY(-1px);
    }

    .mobile-btn-primary:active {
        transform: scale(0.98);
    }

.mobile-btn-secondary {
    background: #6c757d;
    color: white;
}

    .mobile-btn-secondary:hover {
        background: #545b62;
        transform: translateY(-1px);
    }

.mobile-btn-outline {
    background: transparent;
    color: #006CFE;
    border: 2px solid #006CFE;
}

    .mobile-btn-outline:hover {
        background: #006CFE;
        color: white;
    }

/* Formulieren */
.mobile-form-group {
    margin-bottom: 1.5rem;
}

/* Postcode lookup (NL) - Zoek adres knop */
.postcode-lookup-row {
    margin-top: 0.75rem;
}

/* NL adres: postcode + huisnr + toev + zoek knop in rij */
.adres-nl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}
.adres-nl-row .form-control {
    flex: 1 1 auto;
    min-width: 4rem;
}
.adres-nl-row .form-control:first-of-type {
    flex: 0 0 5rem; /* postcode smaller */
}
.adres-nl-row .btn {
    flex-shrink: 0;
}

/* ES adres autocomplete dropdown */
.adres-autocomplete-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.mobile-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.mobile-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
    min-height: 3rem;
}

    .mobile-input:focus {
        outline: none;
        border-color: #006CFE;
        box-shadow: 0 0 0 3px rgba(0, 108, 254, 0.1);
    }

    .mobile-input.error {
        border-color: #dc3545;
    }

.mobile-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading states */
.mobile-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.5rem;
}

.loading-skeleton {
    padding: 1rem;
}

.skeleton-item {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    min-height: 4rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Dashboard en layout */
.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

    .info-row:last-child {
        border-bottom: none;
    }

.info-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.875rem;
}

.info-value {
    color: #1a1a1a;
    font-size: 0.875rem;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

    .quick-actions .mobile-btn {
        justify-content: flex-start;
        text-align: left;
    }

/* Empty states */
.mobile-empty-state,
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state-icon,
.empty-icon {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* ========== KLANTEN PAGINA ========== */

.mobile-page {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    padding-top: 4.5rem; /* Ruimte voor de fixed toolbar (min-height: 3.5rem + padding: 0.75rem) */
    padding-bottom: calc(1rem + 4rem); /* Ruimte voor bottom tab bar */
    background: #f8f9fa;
}

/* AFM-waarschuwing: witte balk, zwarte tekst, pictogram direct na de tekst (geen blauwe knop-stijl). */
.afm-lening-waarschuwing-blok {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem 0.35rem;
    margin: 0 0 0.75rem;
    padding: 0.65rem 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: none;
    border-radius: 0.375rem;
    background: #fff;
    color: #111;
    font-weight: 700;
    /* Zelfde typografie als toolbar `.page-title` (1.25rem / 1.125rem ≤480px). */
    font-size: 1.25rem;
    line-height: 1.35;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.afm-lening-waarschuwing-blok__pictogram {
    flex-shrink: 0;
    display: block;
    height: 1.25em;
    width: auto;
    max-width: min(55vw, 15rem);
    object-fit: contain;
    object-position: left center;
}

.afm-lening-waarschuwing-blok__tekst {
    flex: 0 1 auto;
    min-width: 0;
    text-align: left;
}

.repeat-lening-pep-verklaring .form-check-label {
    font-size: 0.95rem;
    line-height: 1.35;
    padding-top: 0.15rem;
}

/* Home pagina heeft full-width cards */
.mobile-page.home-page .dashboard-cards,
.mobile-page.financieel-analyse-page .dashboard-cards,
.mobile-page.financial-health-page .dashboard-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.financieel-analyse-page .mobile-card .card-header .btn-outline-primary {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Chat pagina heeft eigen layout - geen padding nodig */
.mobile-page.chat-page {
    padding-top: 0;
    padding-bottom: 0;
}

.klanten-list {
    padding: 0;
}

/* ========== UITLOG STYLING ========== */

.logout-item {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    /* Chrome-specifieke fixes */
    position: relative;
    z-index: 1;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.btn-logout {
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    /* Chrome-specifieke fixes */
    position: relative;
    z-index: 2;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Force visibility */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

    .btn-logout:hover {
        background: linear-gradient(135deg, #c82333, #a71e2a);
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
    }

    .btn-logout:active {
        transform: scale(0.98);
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    }

    .btn-logout i {
        font-size: 1.1rem;
        /* Chrome-specifieke fixes */
        display: inline-block;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

/* ========== LOGIN PAGINA ========== */
/* Layout en styling: zie wwwroot/css/login.css (inclusief wolken-achtergrond). */

/* ========== RESPONSIVE ========== */

@media (max-width: 480px) {
    .mobile-content {
        padding: 0.75rem;
    }

    .mobile-card {
        padding: 0.75rem;
    }

    .mobile-list-item {
        padding: 0.75rem;
    }

    .page-title {
        font-size: 1.125rem;
    }

    .afm-lening-waarschuwing-blok {
        font-size: 1.125rem;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

/* ========== DARK MODE UITGESCHAKELD - ALTIJD LIGHT MODE ========== */

/* Dark mode is uitgeschakeld om altijd de light mode te gebruiken */
/* Alle dark mode styling is gecommentarieerd */

/*
@media (prefers-color-scheme: dark) {
    .mobile-layout {
        background: #1a1a1a;
        color: #ffffff;
    }

    .mobile-top-bar {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: #333;
    }

    .mobile-card,
    .mobile-list-item {
        background: #2d2d2d;
        color: #ffffff;
    }

        .mobile-list-item:hover {
            background-color: #3d3d3d;
        }

    .list-item-title {
        color: #ffffff;
    }

    .list-item-subtitle {
        color: #adb5bd;
    }

    .mobile-input {
        background: #2d2d2d;
        color: #ffffff;
        border-color: #444;
    }

    .bottom-tab-bar {
        background: rgba(26, 26, 26, 0.95);
        border-top-color: #333;
    }

    .mobile-page {
        background: #1a1a1a;
        padding-top: 4.5rem; /* Ruimte voor de fixed toolbar (consistent met light mode) */
    }

    /* Chat pagina heeft eigen layout - geen padding-top nodig */
    .mobile-page.chat-page {
        padding-top: 0;
    }

    .skeleton-item {
        background: linear-gradient(90deg, #2d2d2d 25%, #3d3d3d 50%, #2d2d2d 75%);
    }

    .mobile-empty-state,
    .empty-state {
        color: #adb5bd;
    }

    .empty-state-title {
        color: #ffffff;
    }

    .empty-state-description {
        color: #adb5bd;
    }

    .empty-state h3 {
        color: #ffffff;
    }

    /* Dark mode voor menu en overlay */
    .menu-sheet-alt {
        background: #2d2d2d !important;
        color: #ffffff;
    }

    .filter-sheet {
        background: #2d2d2d;
        color: #ffffff;
    }

    /* Dark mode voor uitlog knop */
    .logout-item {
        border-top-color: #495057;
    }

    .btn-logout {
        background: linear-gradient(135deg, #dc3545, #c82333);
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
    }

        .btn-logout:hover {
            background: linear-gradient(135deg, #c82333, #a71e2a);
            box-shadow: 0 4px 8px rgba(220, 53, 69, 0.5);
    }

    /* Dark mode voor login pagina */
    .login-card {
        background: #2d2d2d;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
}



/* ========== LENING DETAILS STYLING ========== */

/* Payment List Styling */
.payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-item {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 4px solid #28a745;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.payment-date {
    font-weight: 600;
    color: #495057;
    flex: 1;
    min-width: 0;
    margin-right: 0.5rem;
}

.payment-amount {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.payment-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-type {
    font-weight: 500;
    color: #6c757d;
}

.payment-reference {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Cost List Styling */
.cost-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cost-item {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 4px solid #ffc107;
}

.cost-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.cost-description {
    font-weight: 600;
    color: #495057;
    flex: 1;
    min-width: 0;
    margin-right: 0.5rem;
}

.cost-amount {
    font-weight: 700;
    color: #ffc107;
    font-size: 1.1rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.cost-date {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Term List Styling */
.term-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.term-item {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 4px solid #006CFE;
}

.term-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.term-number {
    font-weight: 700;
    color: #006CFE;
    font-size: 1.1rem;
    flex: 1;
    min-width: 0;
    margin-right: 0.5rem;
}

.term-date {
    font-weight: 600;
    color: #495057;
    flex-shrink: 0;
    white-space: nowrap;
}

.term-amounts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amount-label {
    font-weight: 500;
    color: #6c757d;
}

.amount-value {
    font-weight: 600;
    color: #495057;
}

/* Reservation List Styling */
.reservation-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reservation-item {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 4px solid #6f42c1;
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
    min-width: 0;
}

.reservation-date {
    font-weight: 600;
    color: #495057;
    flex: 1;
    min-width: 0;
    margin-right: 0.5rem;
}

.reservation-amount {
    font-weight: 700;
    color: #6f42c1;
    font-size: 1.1rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.reservation-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reservation-ratio {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Section Title Styling */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #495057;
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
}

.empty-state i {
    opacity: 0.5;
}

/* Skeleton Loading Styling */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 0.5rem;
}

.skeleton-line {
    height: 1rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-line.short {
    width: 70%;
    height: 0.875rem;
}

.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-item {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    border-left: 4px solid #dee2e6;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile Responsive for Lening Details */
@media (max-width: 576px) {
    .section-title {
        font-size: 1.1rem;
    }

    .payment-header,
    .cost-header,
    .term-header,
    .reservation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .payment-amount,
    .cost-amount,
    .term-date,
    .reservation-amount {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1rem;
    }
}

/* ========== LEENBOEK STYLING ========== */

.list-item-details {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.25rem;
}

.list-item-amount {
    font-weight: 600;
    color: var(--bs-success);
    text-align: right;
    margin-bottom: 0.25rem;
}

.badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.badge.status-actief {
    background-color: var(--bs-success);
}

.badge.status-afgesloten {
    background-color: var(--bs-secondary);
}

.badge.status-in-behandeling {
    background-color: var(--bs-warning);
}

/* ========== HISTORIE STYLING ========== */

.clickable-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.clickable-card:active {
    transform: translateY(0);
}

/* ========== CASHFLOW DASHBOARD STYLING ========== */

.dashboard-controls {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dashboard-controls h4 {
    margin: 0;
    color: #495057;
    font-size: 1.2rem;
}

.dashboard-controls .year-selector {
    min-width: 80px;
    width: auto;
    padding-right: 1.5rem;
    text-align: center;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chart-header {
    text-align: center;
    margin-bottom: 20px;
}

.chart-header h5 {
    margin: 0;
    color: #495057;
    font-size: 1rem;
}

.chart-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.legend-item:last-child {
    border-bottom: none;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    font-size: 0.9rem;
    color: #495057;
}

.legend-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

.legend-value.positive {
    color: #28a745;
}

.legend-value.negative {
    color: #dc3545;
}

.action-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #006CFE 0%, #0056D4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.action-content {
    flex: 1;
}

.action-content h6 {
    margin: 0 0 4px 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.action-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.875rem;
}

.action-arrow {
    color: #6c757d;
    font-size: 1.2rem;
}

/* ========== CASHFLOW DETAILS STYLING ========== */

/* Volg mobile-page patroon: ruimte voor toolbar en bottom tab bar, met extra marge */
.cashflow-details-page {
    padding: 5rem 1rem calc(1.5rem + 4rem) 1rem;
}

/* Hero: duidelijke hoofdboodschap */
.forecast-hero {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.forecast-hero-title {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
}

.forecast-hero-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.forecast-hero-amount.positive {
    color: #28a745;
}

.forecast-hero-amount.negative {
    color: #dc3545;
}

.forecast-hero-subtitle {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.forecast-hero-rebuild {
    background: none;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.forecast-hero-rebuild:hover:not(:disabled) {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

.forecast-hero-rebuild:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Secties: Vaste lasten / Variabele uitgaven */
.forecast-section {
    margin-bottom: 1.25rem;
}

.forecast-section-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}

.forecast-section-card {
    background: white;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.forecast-detail-row-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.forecast-detail-row-simple:last-child {
    border-bottom: none;
}

.forecast-detail-row-simple .detail-label {
    flex: 1;
    min-width: 0;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
}

.forecast-detail-row-simple .detail-value {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Bedrag + edit-knop naast elkaar, bedragen rechts uitgelijnd */
.forecast-value-edit-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.7rem;
    width: 8rem;
    flex-shrink: 0;
}

.forecast-value-edit-group .detail-value {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.forecast-value-edit-group .forecast-edit-btn {
    flex-shrink: 0;
}

/* Uitlegblok tussen hero en uitgaven */
.forecast-uitleg-blok {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid #006CFE;
}

.forecast-uitleg-blok-text {
    margin: 0;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}

/* Forecast rij met edit-knop */
.forecast-row-with-edit {
    gap: 0.5rem;
}

.forecast-edit-btn {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: #f1f3f4;
    color: #6c757d;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.forecast-edit-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.forecast-edit-btn i {
    font-size: 0.9rem;
}

/* Modal: Jouw verwachting aanpassen */
.forecast-override-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.forecast-override-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1051;
    max-width: 90vw;
    width: 22rem;
}

.forecast-override-modal-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.forecast-override-modal-subtitle {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

.forecast-override-modal-uitleg {
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

.forecast-override-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.forecast-override-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.forecast-override-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.forecast-override-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.forecast-override-btn {
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.forecast-override-save {
    background: #006CFE;
    color: white;
}

.forecast-override-save:hover {
    background: #0056D4;
}

.forecast-override-reset {
    background: #f8f9fa;
    color: #6c757d;
}

.forecast-override-reset:hover {
    background: #e9ecef;
}

.forecast-override-cancel {
    background: transparent;
    color: #6c757d;
}

.forecast-override-cancel:hover {
    background: #f8f9fa;
}

/* Collapsible: Hoe wordt dit berekend? */
.forecast-uitleg-collapsible {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.forecast-uitleg-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.forecast-uitleg-toggle:hover {
    background: #f8f9fa;
}

.forecast-uitleg-toggle i {
    font-size: 1.1rem;
    color: #6c757d;
}

.forecast-uitleg-content {
    padding: 0 1rem 1rem;
    border-top: 1px solid #f0f0f0;
}

.forecast-uitleg-content p {
    margin: 0 0 0.75rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.forecast-uitleg-content .forecast-update-info {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #e7f3ff;
    border-left: 3px solid #006CFE;
    border-radius: 4px;
    color: #004085;
}

.forecast-uitleg-content .forecast-methods-list {
    margin: 0.5rem 0 0 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.forecast-uitleg-content .forecast-methods-list li {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.85rem;
    line-height: 1.5;
}

.forecast-uitleg-content .forecast-methods-list li strong {
    color: #006CFE;
    font-weight: 600;
}

/* Cashflow Actuals - Samenvatting blok (zelfde layout als Overzicht: label links, bedrag rechts, niet klikbaar) */
.cashflow-samenvatting-collapsible {
    margin-bottom: 1.25rem;
}

.cashflow-samenvatting-content {
    padding-top: 1rem !important;
}

.cashflow-samenvatting-list {
    display: flex;
    flex-direction: column;
}

.cashflow-samenvatting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cashflow-samenvatting-row:last-child {
    border-bottom: none;
}

.cashflow-samenvatting-label {
    font-size: 0.9rem;
    color: #333;
}

.cashflow-samenvatting-value {
    font-size: 0.9rem;
}

.cashflow-samenvatting-value.positive {
    color: #28a745;
}

.cashflow-samenvatting-value.negative {
    color: #dc3545;
}

.forecast-zero-uitleg {
    margin-bottom: 0.75rem !important;
}

.forecast-zero-row .detail-value {
    color: #6c757d !important;
}

.cashflow-monthly-list {
    padding: 0;
}

.month-card {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.month-card.clickable {
    cursor: pointer;
}

.month-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.month-card.non-clickable {
    cursor: default;
    opacity: 0.7;
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.month-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.forecast-badge {
    background: #ffc107;
    color: #212529;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.actual-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.month-total {
    font-weight: 700;
    font-size: 1.2rem;
}

.month-total.positive {
    color: #28a745;
}

.month-total.negative {
    color: #dc3545;
}

.month-details {
    padding: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-value.positive {
    color: #28a745;
}

.detail-value.negative {
    color: #dc3545;
}

.forecast-detail-row {
    align-items: flex-start;
    gap: 0.5rem;
}

.detail-label-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.fixed-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.variable-badge {
    background: #ffc107;
    color: #212529;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.method-badge {
    background: #6c757d;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    font-family: monospace;
}

.month-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    color: #6c757d;
}

.month-footer i {
    font-size: 1.2rem;
}

.month-card.forecast-card {
    cursor: default;
}

.month-card.forecast-card:hover {
    background-color: #f8f9fa;
}

/* Forecast Info Card */
.forecast-info-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #006CFE;
}

.forecast-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.forecast-info-header .btn {
    margin-left: auto;
    white-space: nowrap;
}

.forecast-info-header i {
    font-size: 1.25rem;
    color: #006CFE;
}

.forecast-info-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.forecast-info-content p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.forecast-update-info {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background-color: #e7f3ff;
    border-left: 3px solid #006CFE;
    border-radius: 4px;
    color: #004085;
}

.forecast-methods-list {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.forecast-methods-list li {
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.5;
}

.forecast-methods-list li strong {
    color: #006CFE;
    font-weight: 600;
}

/* ========== CATEGORIE ANALYSE STYLING ========== */

.filters-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    flex: 1;
}

.filter-group-wide {
    flex: 1;
    min-width: 100%;
}

/* Flex item mag inkrimpen zodat naastgelegen knop (bijv. refresh) zichtbaar blijft */
.min-width-0 {
    min-width: 0;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 4px;
}

.form-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.875rem;
}

.results-container {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.results-header h4 {
    margin: 0;
    color: #495057;
    font-size: 1.1rem;
}

.total-amount {
    font-weight: 700;
    font-size: 1.2rem;
}

.total-amount.positive {
    color: #28a745;
}

.total-amount.negative {
    color: #dc3545;
}

.transacties-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Transactie Zoeken - totaal weergave (resultaten en totaal onder elkaar) */
.transactie-zoeken-total {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.transactie-zoeken-total .results-header-row h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #212529;
}

.transactie-zoeken-total .total-amount-block {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.transactie-zoeken-total .total-amount-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.transactie-zoeken-total .total-amount {
    font-size: 1.25rem;
    font-weight: 700;
}

.transactie-zoeken-search .input-group .form-control {
    border-radius: 8px 0 0 8px;
}

.transactie-zoeken-search .input-group .btn {
    border-radius: 0 8px 8px 0;
}

/* Zoekknop alleen icoon (geen tekst) - past beter op smalle schermen */
.transactie-zoeken-search .transactie-zoeken-btn {
    padding: 0.375rem 0.75rem;
    min-width: 2.5rem;
}

.transactie-zoeken-search .input-group {
    flex-wrap: nowrap;
    min-width: 0; /* Voorkom overflow op smalle schermen */
}

.transactie-zoeken-search .input-group .form-control {
    min-width: 0;
}

/* Bulk categorise modal - TransactieZoeken */
.transactie-zoeken-bulk-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
}

.transactie-zoeken-bulk-modal .bulk-modal-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    padding-bottom: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.transactie-zoeken-bulk-modal .bulk-modal-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.transactie-zoeken-bulk-modal .bulk-modal-actions .btn {
    flex-shrink: 0;
}

.transactie-zoeken-bulk-actions .btn {
    white-space: nowrap;
}

/* Recategorisatie styling */
.transactie-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
}

/* Extra small button size */
.btn-xs {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    line-height: 1.2;
}

.recategorise-btn {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.3rem !important;
    white-space: nowrap;
    background-color: #0056D4 !important;
    border-color: #0056D4 !important;
    color: white !important;
    font-weight: 500;
    line-height: 1 !important;
    min-height: auto !important;
    height: auto !important;
    border-radius: 0.2rem !important;
}

.recategorise-btn:hover:not(:disabled) {
    background-color: #004085 !important;
    border-color: #004085 !important;
}

.recategorise-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.recategorise-btn i {
    font-size: 0.55rem !important;
    margin-right: 0.1rem;
    line-height: 1;
}
.recategorise-btn {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Inline modal binnen transactie-item */
.recategorise-modal-inline {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    border-left: 3px solid #006CFE;
}

.recategorise-modal-inline .recategorise-result {
    padding: 0;
    margin-bottom: 0.75rem;
}

.recategorise-modal-inline .result-section {
    margin-bottom: 1rem;
}

.recategorise-modal-inline .result-section:last-child {
    margin-bottom: 0;
}

.recategorise-modal-inline .result-section h6 {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.recategorise-modal-inline .current-category,
.recategorise-modal-inline .new-category {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.2rem;
}

.recategorise-modal-inline .new-category {
    color: #006CFE;
}

.recategorise-modal-inline .merchant-name,
.recategorise-modal-inline .confidence {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.15rem;
}

.recategorise-save-regel {
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid #dee2e6;
}

.recategorise-save-regel .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.recategorise-save-regel .form-check-label {
    font-size: 0.85rem;
    font-weight: 500;
}

.recategorise-save-regel .text-muted {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0;
}

.recategorise-modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.recategorise-modal-actions .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    min-width: 70px;
}

.transaction-type-selector {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #dee2e6;
}

.transaction-type-selector .form-label-small {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
    color: #495057;
}

.transaction-type-selector .form-select-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
}

.transaction-type-selector .form-text {
    font-size: 0.7rem;
    color: #6c757d;
    display: block;
    margin-top: 0.25rem;
    font-style: italic;
}

.ai-suggestion {
    font-size: 0.875rem;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background-color: #e7f3ff;
    border-left: 3px solid #006CFE;
    border-radius: 4px;
}

.ai-suggestion strong {
    color: #006CFE;
    font-weight: 600;
}

.ai-badge-small {
    display: inline-block;
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    margin-left: 0.5rem;
    background-color: #006CFE;
    color: white;
    border-radius: 3px;
    font-weight: 600;
    vertical-align: middle;
}

.btn-manual-select {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.35rem !important;
    margin-top: 0.5rem;
    line-height: 1.2 !important;
    min-height: auto !important;
    height: auto !important;
}

.btn-manual-select i {
    font-size: 0.65rem !important;
    margin-right: 0.2rem;
}

/* AI badge voor AI-gegenereerde waarden */
.ai-badge {
    display: inline-block;
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    margin-left: 0.5rem;
    background-color: #006CFE;
    color: white;
    border-radius: 3px;
    font-weight: 600;
    vertical-align: middle;
    line-height: 1.2;
}

/* Regel-gebaseerde categorisatie (KlantCategorisationRegel) - ander icoon dan AI */
.regel-badge,
.transactie-description .regel-badge,
.transactie-merchant .regel-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    padding: 0.15rem 0.35rem;
    margin-left: 0.5rem;
    background: #198754 !important;
    background-color: #198754 !important;
    color: white !important;
    border-radius: 3px;
    vertical-align: middle;
    line-height: 1.2;
}

.regel-badge i,
.regel-badge .bi,
.regel-badge i.bi {
    font-size: 0.65rem;
    color: white !important;
}

.regel-badge-small {
    font-size: 0.6rem;
    padding: 0.1rem 0.25rem;
}

.regel-badge-small i {
    font-size: 0.55rem;
}

/* Eigen categorisatie: blok op categorie-analyse + regels-pagina */
.categorie-analyse-beheer-wrap {
    padding: 0 1rem 1rem 1rem;
}

.categorie-analyse-beheer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #0d6efd;
    font-weight: 600;
    font-size: 0.95rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.categorie-analyse-beheer-card:hover {
    border-color: #cfe2ff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
    color: #0a58ca;
}

.categorie-analyse-beheer-card-text {
    text-align: left;
    flex: 1;
}

.categorie-analyse-beheer-card-chevron {
    font-size: 1rem;
    opacity: 0.75;
    flex-shrink: 0;
}

.categorie-regels-empty {
    padding: 1.5rem;
    text-align: center;
    color: #6c757d;
}

.categorie-regels-list-plain {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 1rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.categorie-regel-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 12px 14px;
    margin: 0;
    background: #fff;
    border: none;
    border-bottom: 1px solid #eee;
    text-align: left;
    cursor: pointer;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
}

.categorie-regels-list-plain .categorie-regel-row:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.categorie-regels-list-plain .categorie-regel-row:last-child {
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.categorie-regel-row:active {
    background: #f8f9fa;
}

.categorie-regel-row-main {
    flex: 1;
    min-width: 0;
}

.categorie-regel-row .categorie-regel-type {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #198754;
    display: block;
    margin-bottom: 2px;
}

.categorie-regel-row-value {
    word-break: break-word;
    font-weight: 500;
    font-size: 0.95rem;
    color: #212529;
    line-height: 1.35;
}

.categorie-regel-row-mapping {
    font-size: 0.82rem;
    color: #6c757d;
    margin-top: 4px;
}

.categorie-regel-row-chevron {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: #adb5bd;
}

.categorie-regels-banner {
    margin: 0 1rem 0.75rem 1rem;
}

/* Bottom sheet: detail regel */
.categorie-regels-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1045;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.categorie-regels-detail-sheet {
    background: #fff;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0.5rem 1.25rem 1.25rem;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.detail-sheet-grabber {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #dee2e6;
    margin: 8px auto 16px;
}

.detail-sheet-explanation {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #343a40;
    margin: 0 0 1.35rem;
}

.detail-sheet-actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.detail-sheet-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-weight: 600;
}

.detail-sheet-close-btn {
    font-weight: 600;
    min-height: 46px;
}

.detail-sheet-confirm-text {
    font-size: 0.95rem;
    color: #495057;
}

/* Bewerk-overlay iets boven sheet */
.categorie-regels-edit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1055;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.categorie-regels-edit-panel {
    background: #fff;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.25rem;
    border-radius: 12px 12px 0 0;
    margin-top: auto;
}

@media (min-width: 576px) {
    .categorie-regels-sheet-overlay {
        align-items: center;
    }

    .categorie-regels-detail-sheet {
        border-radius: 16px;
        margin: 1rem;
    }

    .categorie-regels-edit-overlay {
        align-items: center;
    }

    .categorie-regels-edit-panel {
        border-radius: 12px;
        margin: 1rem;
    }
}

.recategorise-result {
    padding: 1rem 0;
}

.result-section {
    margin-bottom: 1.5rem;
}

.result-section h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.current-category,
.new-category {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

/* ========== CASHFLOW ACTUALS PAGE STYLING ========== */

.month-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1.25rem;
}

.month-switcher .btn {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.month-display {
    flex: 1;
    text-align: center;
}

.month-display h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.chart-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-header {
    margin-bottom: 1rem;
}

.chart-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
}

.chart-wrapper canvas {
    /* Dimensies worden via JS ingesteld met DPR-scaling voor scherpe weergave op Retina */
    max-width: 100%;
    display: block;
}

.category-summary {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-summary h5 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #006CFE;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.category-item.clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0.75rem;
    margin: 0 -0.75rem;
    border-radius: 4px;
}

.category-item.clickable:hover {
    background-color: #f8f9fa;
}

.category-item.clickable:active {
    background-color: #e9ecef;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item.subtotal {
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e9ecef;
    font-size: 1rem;
}

.category-item.total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #dee2e6;
    font-size: 1.1rem;
}

.category-item.total.clickable {
    cursor: default;
}

.category-item.total.clickable:hover {
    background-color: transparent;
}

.category-item.total.total-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: 4px;
}

.category-item.total.total-clickable:hover {
    background-color: #f8f9fa;
}

.category-item.total.total-clickable:active {
    background-color: #e9ecef;
}

.category-arrow {
    margin-left: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.category-arrow-placeholder {
    visibility: hidden;
}

.category-label {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.category-value {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 100px;
    text-align: right;
}

.category-value.positive {
    color: #28a745;
}

.category-value.negative {
    color: #dc3545;
}

.category-item.total .category-value {
    font-size: 1.1rem;
}

.new-category {
    color: #006CFE;
}

.merchant-name,
.confidence {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.transactie-item {
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.transactie-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.transactie-description {
    flex: 1;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-right: 12px;
}

.transactie-amount {
    font-weight: 700;
    font-size: 1rem;
}

.transactie-amount.positive {
    color: #28a745;
}

.transactie-amount.negative {
    color: #dc3545;
}

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

.transactie-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.transactie-category {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
}

.transactie-merchant {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* ========== ABONNEMENT PAGE - MOBILE OPTIMIZATION ========== */
@media (max-width: 576px) {
    .cancel-subscription-card {
        padding: 0.875rem;
    }

    .cancel-subscription-info {
        font-size: 0.85rem;
    }

    .btn-cancel-subscription {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ========== AI CHAT FEEDBACK STYLING ========== */
.feedback-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
    flex-wrap: nowrap !important;
}

.feedback-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-right: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.feedback-separator {
    color: #dee2e6;
    margin: 0 0.25rem;
    font-weight: 300;
    flex-shrink: 0;
}

.feedback-btn {
    padding: 0.25rem 0.5rem;
    font-size: 1.2rem;
    border-radius: 0.375rem;
    border: 1px solid;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feedback-btn:hover {
    transform: scale(1.1);
}

.feedback-btn.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
}

.feedback-btn.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}

.feedback-btn.btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.feedback-btn.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

.escalation-prompt {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border-left: 3px solid #ffc107;
}

.escalation-prompt p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.escalation-prompt .d-flex {
    display: flex;
    gap: 0.5rem;
}

.escalation-prompt .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.5rem;
}

/* System messages styling */
.chat-message.system-message {
    justify-content: center;
    margin: 0.5rem 0;
}

.chat-message.system-message .message-content {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    max-width: 85%;
    text-align: center;
    color: #004085;
    font-size: 0.9rem;
    font-style: italic;
}

.chat-message.system-message .message-timestamp {
    color: #6c757d;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ========== iOS PWA INSTALL MODAL ========== */
/* Boven AppLock-overlay (9999) tijdens pincode-setup */
.ios-install-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ios-install-content {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ios-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ios-header i {
    font-size: 32px;
    color: #667eea;
}

.ios-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.ios-install-content p {
    color: #495057;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.ios-install-content ol {
    text-align: left;
    color: #495057;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
    padding-left: 24px;
}

.ios-install-content ol li {
    margin-bottom: 12px;
}

.ios-install-content ol li strong {
    color: #667eea;
    font-weight: 600;
}

.ios-install-content ol li i {
    color: #667eea;
    margin: 0 4px;
}

.btn-close-ios {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-close-ios:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-close-ios:active {
    transform: translateY(0);
}

.ios-arrow {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    animation: bounce 1s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========== CHALLENGES PAGINA STYLING ========== */

.challenges-page .challenges-section {
    padding: 0 1rem 1rem;
}

.challenges-page .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.challenges-page .section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.challenges-page .section-header .btn,
.challenges-page .mobile-empty-state .mobile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.challenges-page .challenge-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--mobile-border, #e9ecef);
}

.challenges-page .challenge-tabs .nav-link {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted, #6c757d);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
}

.challenges-page .challenge-tabs .nav-link:hover {
    color: var(--bs-primary, #0d6efd);
}

.challenges-page .challenge-tabs .nav-link.active {
    color: var(--bs-primary, #0d6efd);
    border-bottom-color: var(--bs-primary, #0d6efd);
}

.challenge-list-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 12px;
    background: var(--mobile-card-bg, #fff);
    border: 1px solid var(--mobile-border, #e9ecef);
    margin-bottom: 0.75rem;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.challenge-list-item:active {
    background: var(--mobile-card-active, #f8f9fa);
}

.challenge-list-item .list-item-content {
    flex: 1;
    min-width: 0;
}

.challenge-list-item .list-item-title {
    font-weight: 600;
    font-size: 1rem;
}

.challenge-list-item .list-item-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin-top: 0.25rem;
}

.challenge-progress {
    margin-top: 0.5rem;
}

.challenge-progress .progress-bar-container {
    height: 8px;
    background: var(--mobile-border, #e9ecef);
    border-radius: 4px;
    overflow: hidden;
}

.challenge-progress .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Visuele voortgang challenge cards (minder tekst, meer balken) */
.challenge-progress-visual {
    margin-top: 0.5rem;
}

.challenge-progress-visual .progress-bar-container {
    height: 10px;
    background: var(--mobile-border, #e9ecef);
    border-radius: 5px;
    overflow: hidden;
}

.challenge-progress-visual .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.challenge-progress-visual .challenge-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.challenge-progress-visual .challenge-progress-label {
    color: var(--text-muted, #6c757d);
}

.challenge-progress-visual .challenge-progress-pct {
    font-weight: 600;
}

.challenge-progress-visual .progress-bar-prominent {
    height: 10px;
    margin-bottom: 0.5rem;
}

.challenge-progress-visual .progress-bar-tijd .progress-bar-fill.progress-bar-tijd-fill {
    background: linear-gradient(90deg, #0d6efd, #6ea8fe);
}

.challenge-progress-visual .challenge-progress-einddatum {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.challenge-zero-spend-line,
.challenge-details-page .challenge-zero-spend-line {
    font-weight: 500;
    line-height: 1.4;
}

.challenge-trend-line,
.challenge-details-page .challenge-trend-line {
    font-weight: 500;
    line-height: 1.45;
}

.challenge-template-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.challenge-template-card.selected {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}

.challenge-template-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.challenge-form .form-label {
    font-weight: 500;
}

.challenges-page .mobile-empty-state-minimal {
    padding: 2rem 1rem;
}

.challenges-page .mobile-empty-state-minimal .empty-state-title {
    margin: 0;
}

.challenge-details-page .mobile-card .card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--mobile-border, #e9ecef);
}

.challenge-details-page .challenge-progress-detail .progress-bar-container {
    height: 12px;
    background: var(--mobile-border, #e9ecef);
    border-radius: 6px;
    overflow: hidden;
}

.challenge-details-page .challenge-progress-detail .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.challenge-details-page .challenge-progress-detail .progress-bar-fill.progress-success {
    background: linear-gradient(90deg, #198754, #20c997);
}

.challenge-details-page .challenge-progress-detail .progress-bar-fill.progress-on-track {
    background: linear-gradient(90deg, #0d6efd, #20c997);
}

.challenge-details-page .challenge-progress-detail .progress-bar-fill.progress-over {
    background: linear-gradient(90deg, #dc3545, #fd7e14);
}

.challenge-details-page .challenge-uitleg-block {
    background: var(--mobile-card-bg, #f8f9fa);
}

.challenge-details-page .challenge-uitleg-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--bs-body-color);
    white-space: pre-wrap;
}

.challenge-details-page .spaardoel-maandelijkse-resultaten {
    padding-top: 0.5rem;
    border-top: 1px solid var(--mobile-border, #e9ecef);
}

/* Challenge detail: visuele secties Budgetstatus + Maand voortgang */
.challenge-progress-visual-sections .challenge-visual-section {
    background: var(--mobile-card-bg, #f8f9fa);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.challenge-progress-visual-sections .challenge-visual-section:last-of-type {
    margin-bottom: 0;
}

.challenge-progress-visual-sections .challenge-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.challenge-progress-visual-sections .challenge-section-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.challenge-progress-visual-sections .challenge-section-pct {
    font-weight: 700;
    font-size: 1rem;
}

.challenge-progress-visual-sections .challenge-section-status {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.challenge-progress-visual-sections .progress-bar-prominent {
    height: 14px;
    background: var(--mobile-border, #e9ecef);
    border-radius: 7px;
    overflow: hidden;
}

.challenge-progress-visual-sections .progress-bar-tijd .progress-bar-fill.progress-bar-tijd-fill {
    background: linear-gradient(90deg, #0d6efd, #6ea8fe);
}

.challenge-details-page .spaardoel-maandelijkse-resultaten ul li:last-child {
    border-bottom: none !important;
}

.challenge-details-page .action-buttons {
    padding: 0 1rem 2rem;
}

.challenge-details-page .mobile-btn-danger {
    color: var(--bs-danger, #dc3545);
    border-color: var(--bs-danger, #dc3545);
}

/* ========== BENCHMARK PAGINA STYLING ========== */

.benchmark-page .benchmark-section {
    padding: 0 1rem 1rem;
}

/* Benchmark landingspagina */
.benchmark-page .benchmark-intro {
    font-size: 1rem;
    color: var(--text-muted, #6c757d);
    line-height: 1.5;
}

.benchmark-landing-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benchmark-landing-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.benchmark-landing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.benchmark-landing-section {
    text-align: center;
    padding: 1.5rem 1rem;
}

.benchmark-landing-section .benchmark-landing-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.benchmark-page .benchmark-landing-section .benchmark-landing-icon {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.benchmark-landing-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.benchmark-landing-uitleg {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
}

.benchmark-landing-profiel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0d9488;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.35);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.benchmark-landing-profiel-btn:hover {
    background: rgba(13, 148, 136, 0.15);
    border-color: #0d9488;
}

.benchmark-landing-profiel-btn:active {
    transform: scale(0.98);
}

.benchmark-landing-profiel-btn i {
    font-size: 1rem;
}

.benchmark-landing-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benchmark-landing-icon-nibud {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.benchmark-landing-icon-cbs {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.benchmark-landing-content {
    flex: 1;
    min-width: 0;
}

.benchmark-landing-content h6 {
    margin: 0 0 4px 0;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.benchmark-landing-content p {
    margin: 0;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
}

.benchmark-landing-arrow {
    color: #6c757d;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benchmark-profiel-link,
.benchmark-landing-profiel-link {
    text-align: center;
}

.benchmark-profiel-link-a {
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    font-size: 0.9rem;
}

.benchmark-profiel-link-a:hover {
    text-decoration: underline;
}

/* Benchmark placeholder (Nibud/CBS coming soon) */
.benchmark-placeholder {
    text-align: center;
    padding: 3rem 1rem;
}

.benchmark-placeholder-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.benchmark-placeholder h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benchmark-placeholder p {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Benchmark Nibud detailpagina */
.benchmark-nibud-page .benchmark-periode-selector .form-select {
    max-width: 200px;
}

.benchmark-nibud-page .benchmark-nibud-samenvatting {
    padding: 0.75rem 0;
}

.benchmark-nibud-leenroute-uitleg {
    line-height: 1.45;
    border-color: rgba(0, 0, 0, 0.08);
}

.benchmark-nibud-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benchmark-nibud-page .benchmark-snelle-lening-cta {
    margin-top: 1rem;
}

.benchmark-nibud-card {
    margin-bottom: 0;
}

.benchmark-nibud-card .benchmark-nibud-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.benchmark-nibud-card .benchmark-nibud-segment {
    font-weight: 600;
    font-size: 1rem;
}

.benchmark-nibud-card .benchmark-nibud-header-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.benchmark-nibud-card .benchmark-nibud-bedrag {
    font-weight: 600;
    color: var(--text-primary, #2d3748);
}

.benchmark-nibud-card .benchmark-nibud-chevron {
    font-size: 1rem;
    color: #6c757d;
    flex-shrink: 0;
}

/* Verschilbalk: eerste deel = t.o.v. doelbedrag; tweede deel = alleen het euroverschil (meer/minder). */
.benchmark-nibud-delta-bar-stack {
    margin: 0.45rem 0 0.25rem 0;
}

.benchmark-nibud-delta-bar-track {
    width: 100%;
    min-height: 11px;
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
}

.benchmark-nibud-delta-bar-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    min-height: 11px;
    height: 11px;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
}

.benchmark-nibud-delta-seg {
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: 2px;
    min-height: 11px;
    height: 11px;
    box-sizing: border-box;
    transition: width 0.25s ease;
}

/* Uitgaven: boven doel — tot doel (blauw) + meerverbruik (rood) */
.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--uitgaven-boven .benchmark-nibud-delta-seg-first {
    background: #0d6efd;
}

.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--uitgaven-boven .benchmark-nibud-delta-seg-second {
    background: #dc3545;
}

/* Uitgaven: onder doel — uitgegeven (groen) + marge t.o.v. doel (neutraal) */
.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--uitgaven-onder .benchmark-nibud-delta-seg-first {
    background: #198754;
}

.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--uitgaven-onder .benchmark-nibud-delta-seg-second {
    background: #ced4da;
}

.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--uitgaven-op .benchmark-nibud-delta-seg-first {
    background: #0d6efd;
}

/* Sparen: tekort — eerste = gespaard; tweede = ontbreekt t.o.v. doel */
.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--sparen-tekort .benchmark-nibud-delta-seg-first {
    background: #14b8a6;
}

.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--sparen-tekort .benchmark-nibud-delta-seg-second {
    background: #9ca3af;
}

/* Sparen: op of boven doel */
.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--sparen-op .benchmark-nibud-delta-seg-first {
    background: #14b8a6;
}

.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--sparen-extra .benchmark-nibud-delta-seg-first {
    background: #14b8a6;
}

.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--sparen-extra .benchmark-nibud-delta-seg-second {
    background: #0f766e;
}

.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--neutral .benchmark-nibud-delta-seg-first {
    background: #adb5bd;
}

.benchmark-nibud-delta-bar-caption {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.35rem 0 0 0;
    line-height: 1.35;
    color: var(--text-primary, #2d3748);
}

.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--uitgaven-boven .benchmark-nibud-delta-bar-caption {
    color: #dc3545;
}

.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--uitgaven-onder .benchmark-nibud-delta-bar-caption,
.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--sparen-extra .benchmark-nibud-delta-bar-caption {
    color: #198754;
}

.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--sparen-tekort .benchmark-nibud-delta-bar-caption {
    color: #0d9488;
}

.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--uitgaven-op .benchmark-nibud-delta-bar-caption,
.benchmark-nibud-delta-bar-stack.benchmark-nibud-delta--sparen-op .benchmark-nibud-delta-bar-caption {
    color: var(--text-muted, #6c757d);
    font-weight: 500;
}

.benchmark-nibud-percentage-badge {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 3.5rem;
    text-align: center;
    padding: 0.35rem 0.5rem;
}

/* Bedragen-regel: Jij | Richtlijn - tekst klein en grijs, bedragen vet (zoals CBS) */
.benchmark-nibud-page .benchmark-nibud-bedragen {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
    color: #6c757d;
}

.benchmark-nibud-page .benchmark-nibud-bedrag-jij,
.benchmark-nibud-page .benchmark-nibud-bedrag-richtlijn {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6c757d;
}

.benchmark-nibud-page .benchmark-nibud-bedrag-waarde {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary, #2d3748);
}

.benchmark-nibud-page .benchmark-nibud-bedrag-vs {
    font-size: 0.75rem;
    color: #adb5bd;
}

.benchmark-nibud-card .benchmark-nibud-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin-left: 0;
    padding-left: 0;
}

.benchmark-nibud-card .benchmark-nibud-richtlijn {
    margin-left: 0;
}

.benchmark-nibud-card .benchmark-nibud-vergelijking {
    display: block;
    margin-top: 0.35rem;
    margin-left: 0;
    font-size: 0.8rem;
}

.benchmark-nibud-page .benchmark-nibud-ok .benchmark-nibud-vergelijking,
.benchmark-nibud-page .benchmark-nibud-card.benchmark-nibud-ok .benchmark-nibud-vergelijking {
    color: #0d6efd;
}

.benchmark-nibud-page .benchmark-nibud-onder .benchmark-nibud-vergelijking,
.benchmark-nibud-page .benchmark-nibud-card.benchmark-nibud-onder .benchmark-nibud-vergelijking {
    color: #198754;
}

.benchmark-nibud-page .benchmark-nibud-boven .benchmark-nibud-vergelijking,
.benchmark-nibud-page .benchmark-nibud-card.benchmark-nibud-boven .benchmark-nibud-vergelijking {
    color: #dc3545;
}

/* Sparen onder richtlijn (= te weinig); niet de groene “onder”-stijl van uitgaven. */
.benchmark-nibud-page .benchmark-nibud-card.benchmark-nibud-sparen-waarschuwing .benchmark-nibud-vergelijking {
    color: #dc3545;
}

/* Inkomen-segment: andere kleur (licht blauw/groen) */
.benchmark-nibud-page .benchmark-nibud-card-clickable {
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.benchmark-nibud-page .benchmark-nibud-card-clickable:hover {
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.benchmark-nibud-page .benchmark-nibud-card.benchmark-nibud-inkomen {
    border-left: 4px solid #0d9488;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06) 0%, rgba(13, 148, 136, 0.02) 100%);
}

.benchmark-nibud-page .benchmark-nibud-card.benchmark-nibud-inkomen .benchmark-nibud-bedrag {
    color: #0d9488;
}

.benchmark-nibud-page .benchmark-nibud-inkomen-geen-data {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

.benchmark-nibud-page .benchmark-nibud-inkomen-uitleg {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.35rem 0 0 0;
    line-height: 1.3;
}

/* Ongecategoriseerd-segment: neutrale/waarschuwende kleur */
.benchmark-nibud-page .benchmark-nibud-card.benchmark-nibud-ongecategoriseerd {
    border-left: 4px solid #6c757d;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.06) 0%, rgba(108, 117, 125, 0.02) 100%);
}

.benchmark-nibud-page .benchmark-nibud-ongecategoriseerd-hint {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* Info-banner: huidige maand - vaste kosten nog niet compleet */
.benchmark-nibud-huidige-maand-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1.5rem;
    background: rgba(13, 110, 253, 0.08);
    border-left: 4px solid #0d6efd;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #495057;
    line-height: 1.35;
}

.benchmark-nibud-huidige-maand-info i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #0d6efd;
}

/* Saldo resultaat (vrij te besteden / tekort) */
.benchmark-nibud-saldo {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 1rem 0 0.75rem 0;
}

.benchmark-nibud-saldo > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.benchmark-nibud-saldo-uitleg {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.5rem 0 0 0;
    line-height: 1.3;
}

.benchmark-nibud-saldo-positief {
    background: rgba(25, 135, 84, 0.12);
    border-left: 4px solid #198754;
}

.benchmark-nibud-saldo-negatief {
    background: rgba(220, 53, 69, 0.12);
    border-left: 4px solid #dc3545;
}

.benchmark-nibud-saldo-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}

.benchmark-nibud-saldo-positief .benchmark-nibud-saldo-bedrag {
    font-size: 1.1rem;
    font-weight: 700;
    color: #198754;
}

.benchmark-nibud-saldo-negatief .benchmark-nibud-saldo-bedrag {
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc3545;
}

.benchmark-nibud-page .benchmark-nibud-onderverdeeld-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 0.5rem 0;
}

.benchmark-page .benchmark-form .huishoud-type-buttons,
.benchmark-nibud-page .benchmark-form .huishoud-type-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Form acties: duidelijke scheiding van selectie-knoppen */
.benchmark-form-actions {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benchmark-form-annuleren {
    background: white;
    border: 2px solid #006CFE;
    color: #006CFE;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.benchmark-form-annuleren:hover {
    background: rgba(0, 108, 254, 0.08);
}

.benchmark-form-opslaan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #006CFE;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.benchmark-form-opslaan:hover:not(:disabled) {
    background: #0056D4;
    transform: translateY(-1px);
}

.benchmark-form-opslaan:active:not(:disabled) {
    transform: scale(0.98);
}

.benchmark-form-opslaan:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.benchmark-page .huishoud-type-buttons .mobile-btn,
.benchmark-nibud-page .huishoud-type-buttons .mobile-btn {
    width: 100%;
    min-width: 0;
    min-height: 2.85rem;
    height: auto;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    text-align: center;
}

.benchmark-page .huishoud-type-buttons .huishoud-type-btn--wide,
.benchmark-nibud-page .huishoud-type-buttons .huishoud-type-btn--wide {
    grid-column: 1 / -1;
}

.benchmark-page .benchmark-card {
    margin-bottom: 0.75rem;
}

.benchmark-page .benchmark-card .benchmark-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.benchmark-page .benchmark-categorie {
    font-weight: 600;
    font-size: 1rem;
}

.benchmark-page .benchmark-bedrag {
    font-weight: 600;
    color: var(--text-primary, #2d3748);
}

.benchmark-page .benchmark-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
}

.benchmark-page .benchmark-ref {
    margin-left: 0.25rem;
}

.benchmark-page .benchmark-vergelijking {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
}

.benchmark-page .benchmark-ok .benchmark-vergelijking,
.benchmark-page .benchmark-card.benchmark-ok .benchmark-vergelijking {
    color: var(--bs-success, #28a745);
}

.benchmark-page .benchmark-boven .benchmark-vergelijking,
.benchmark-page .benchmark-card.benchmark-boven .benchmark-vergelijking {
    color: var(--bs-warning, #ffc107);
}

/* ========== BENCHMARK CBS (EUROSTAT) PAGINA ========== */

.benchmark-cbs-page .benchmark-section {
    padding: 0 1rem 1rem;
}

.benchmark-cbs-page .benchmark-cbs-gezinssamenstelling {
    font-size: 0.9rem;
    color: #6c757d;
}

.benchmark-cbs-page .benchmark-periode-selector .form-select {
    max-width: 200px;
}

/* Info-banner: huidige maand - nog niet alle kosten verwerkt (tot laatste bank sync) */
.benchmark-cbs-page .benchmark-cbs-huidige-maand-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    background: rgba(13, 110, 253, 0.08);
    border-left: 4px solid #0d6efd;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #495057;
    line-height: 1.35;
}

.benchmark-cbs-page .benchmark-cbs-huidige-maand-info i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #0d6efd;
}

.benchmark-cbs-page .benchmark-cbs-totaal-uitleg {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin: 0;
}

.benchmark-cbs-page .benchmark-cbs-totaal {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}

.benchmark-cbs-page .benchmark-cbs-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.benchmark-cbs-page .benchmark-cbs-card {
    margin-bottom: 0;
}

.benchmark-cbs-page .benchmark-cbs-card .benchmark-cbs-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}

.benchmark-cbs-page .benchmark-cbs-card .benchmark-cbs-header-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.benchmark-cbs-page .benchmark-cbs-card .benchmark-cbs-chevron {
    font-size: 1rem;
    color: #6c757d;
    flex-shrink: 0;
}

.benchmark-cbs-page .benchmark-cbs-omschrijving {
    font-weight: 600;
    font-size: 1rem;
}

.benchmark-cbs-page .benchmark-cbs-bedrag {
    font-weight: 600;
    color: var(--text-primary, #2d3748);
}

/* Bedragen-regel: Jij | Gemiddeld - tekst klein en grijs, bedragen vet */
.benchmark-cbs-page .benchmark-cbs-bedragen {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
    color: #6c757d;
}

.benchmark-cbs-page .benchmark-cbs-bedrag-jij,
.benchmark-cbs-page .benchmark-cbs-bedrag-gemiddeld {
    font-size: 0.8rem;
    font-weight: 400;
    color: #6c757d;
}

.benchmark-cbs-page .benchmark-cbs-bedrag-waarde {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary, #2d3748);
}

.benchmark-cbs-page .benchmark-cbs-bedrag-vs {
    font-size: 0.75rem;
    color: #adb5bd;
}

.benchmark-cbs-page .benchmark-cbs-status-regel {
    margin-top: 0.25rem;
}

.benchmark-cbs-page .benchmark-cbs-vergelijking {
    font-size: 0.8rem;
}

.benchmark-cbs-page .benchmark-cbs-card.benchmark-cbs-onder {
    border-left: 4px solid #198754;
}

.benchmark-cbs-page .benchmark-cbs-card.benchmark-cbs-onder .benchmark-cbs-vergelijking {
    color: #198754;
}

.benchmark-cbs-page .benchmark-cbs-card.benchmark-cbs-boven {
    border-left: 4px solid #dc3545;
}

.benchmark-cbs-page .benchmark-cbs-card.benchmark-cbs-boven .benchmark-cbs-vergelijking {
    color: #dc3545;
}

.benchmark-cbs-page .benchmark-cbs-card.benchmark-cbs-gelijk {
    border-left: 4px solid #0d6efd;
}

.benchmark-cbs-page .benchmark-cbs-card.benchmark-cbs-gelijk .benchmark-cbs-vergelijking {
    color: #0d6efd;
}

.benchmark-cbs-page .benchmark-cbs-onderverdeeld-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
}

.benchmark-cbs-page .benchmark-cbs-card-clickable {
    cursor: pointer;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.benchmark-cbs-page .benchmark-cbs-card-clickable:hover {
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ongecategoriseerd-kaart: neutrale/waarschuwende kleur (zoals bij Nibud) */
.benchmark-cbs-page .benchmark-cbs-card.benchmark-cbs-ongecategoriseerd {
    border-left: 4px solid #6c757d;
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.06) 0%, rgba(108, 117, 125, 0.02) 100%);
    margin-bottom: 0.75rem;
}

.benchmark-cbs-page .benchmark-cbs-ongecategoriseerd-hint {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
    display: block;
    margin-top: 0.35rem;
}

.benchmark-cbs-page .benchmark-cbs-bron {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ========== BERICHT INSTELLINGEN PAGINA ========== */

.bericht-instellingen-page .bericht-instellingen-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.bericht-instellingen-page .bericht-instellingen-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
}

.bericht-instellingen-page .bericht-instellingen-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.bericht-instellingen-page .bericht-instellingen-empty-icon {
    font-size: 4rem;
    color: #6c757d;
}

.bericht-instellingen-page .bericht-instellingen-empty h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bericht-instellingen-page .bericht-instellingen-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bericht-instellingen-page .bericht-instellingen-section {
    margin-top: 1.25rem;
}

.bericht-instellingen-page .bericht-instellingen-section:first-child {
    margin-top: 0;
}

.bericht-instellingen-page .bericht-instellingen-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #dee2e6;
}

.bericht-instellingen-page .bericht-instellingen-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.bericht-instellingen-page .bericht-instellingen-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.bericht-instellingen-page .bericht-instellingen-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bericht-instellingen-page .bericht-instellingen-info {
    flex: 1;
}

.bericht-instellingen-page .bericht-instellingen-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #212529;
}

.bericht-instellingen-page .bericht-instellingen-toggle {
    flex-shrink: 0;
}

.bericht-instellingen-page .bericht-instellingen-thresholds {
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.5rem;
}

.bericht-instellingen-page .bericht-instellingen-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bericht-instellingen-page .bericht-instellingen-actions .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.bericht-instellingen-page .bericht-instellingen-actions .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== FINANCIEEL ANALYSE PAGINA ========== */

/* Nieuwe vereenvoudigde layout */
.financieel-analyse-page .financieel-leenruimte-card {
    border-left: 4px solid #0d6efd;
}

.financieel-analyse-page .financieel-krediet-diagnose-card {
    border-left: 4px solid #fd7e14;
    background: #fff8f0;
}

.financieel-analyse-page .financieel-krediet-diagnose-subtitel {
    font-size: 0.85rem;
    color: #6c757d;
}

.financieel-analyse-page .financieel-krediet-diagnose-samenvatting {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #495057;
    word-break: break-word;
}

.financieel-analyse-page .financieel-krediet-diagnose-sectie {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

.financieel-analyse-page .financieel-krediet-diagnose-lijst {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
}

.financieel-analyse-page .financieel-krediet-diagnose-lijst--blockers li {
    color: #842029;
}

.financieel-analyse-page .financieel-krediet-diagnose-lijst--waarschuwingen li {
    color: #055160;
}

.financieel-analyse-page .financieel-subtitel {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

.financieel-analyse-page .financieel-leenruimte-intro {
    font-size: 0.95rem;
    color: #495057;
}

.financieel-analyse-page .financieel-leenruimte-bedrag {
    font-size: 2rem;
}

.financieel-analyse-page .financieel-leenruimte-achtervoegsel {
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    margin-left: 0.5rem;
}

.financieel-analyse-page .financieel-ruimte-regels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.financieel-analyse-page .financieel-ruimte-regel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.financieel-analyse-page .financieel-ruimte-regel.financieel-ruimte-totaal {
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid #dee2e6;
    font-weight: 600;
}

.financieel-analyse-page .financieel-ruimte-label {
    color: #495057;
}

.financieel-analyse-page .financieel-ruimte-waarde {
    font-weight: 600;
    color: #212529;
}

.financieel-analyse-page .financieel-saldomio-lening-card .card-content {
    padding-top: 0;
}

.financieel-analyse-page .financieel-saldomio-lening-tekst {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.55;
}

.financieel-analyse-page .financieel-saldomio-lening-tekst strong {
    font-weight: 700;
    color: #212529;
}

.financieel-analyse-page .financieel-uitleg-titel {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.financieel-analyse-page .financieel-uitleg-tekst {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.5;
}

.financieel-analyse-page .financieel-details-subtitel {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.financieel-analyse-page .financieel-section,
.financieel-overzicht-page .financieel-section {
    padding: 1rem;
}

.financieel-analyse-page .financieel-kerncijfers,
.financieel-overzicht-page .financieel-kerncijfers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.financieel-analyse-page .financieel-card,
.financieel-overzicht-page .financieel-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.financieel-analyse-page .financieel-card-vrije-ruimte,
.financieel-overzicht-page .financieel-card-vrije-ruimte {
    border-left: 4px solid #28a745;
}

.financieel-analyse-page .financieel-card-leenruimte,
.financieel-overzicht-page .financieel-card-leenruimte {
    border-left: 4px solid #006CFE;
}

.financieel-analyse-page .financieel-intro {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.financieel-analyse-page .financieel-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.financieel-analyse-page .financieel-bullet-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.financieel-analyse-page .financieel-bullet-item:last-child {
    border-bottom: none;
}

.financieel-analyse-page .financieel-bullet-tekst {
    font-size: 0.95rem;
    color: #212529;
}

.financieel-analyse-page .financieel-bullet-details-btn {
    background: none;
    border: none;
    color: #0d6efd;
    font-size: 0.85rem;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.financieel-analyse-page .financieel-bullet-details {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 0.5rem 0;
}

.financieel-analyse-page .financieel-bullet-details ul {
    margin: 0;
    padding-left: 1.25rem;
}

.financieel-analyse-page .financieel-risico-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.financieel-analyse-page .financieel-risico-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.financieel-analyse-page .financieel-risico-waarde {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.financieel-analyse-page .financieel-details {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.financieel-analyse-page .financieel-details summary {
    cursor: pointer;
    color: #0d6efd;
}

.financieel-analyse-page .financieel-details-content {
    margin-top: 0.5rem;
    color: #6c757d;
}

.financieel-analyse-page .balance-display {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: baseline;
}

.financieel-analyse-page .currency-symbol {
    font-size: 1.1rem;
    color: #718096;
    margin-right: 0.25rem;
}

.financieel-analyse-page .financieel-formule {
    font-size: 0.9rem;
    line-height: 1.6;
}

.financieel-analyse-page .financieel-formule-stacked .financieel-formule-regel {
    margin-bottom: 0.35rem;
}

.financieel-analyse-page .financieel-formule-stacked .formule-resultaat {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.financieel-analyse-page .financieel-formule-stacked .formule-resultaat:last-child {
    margin-bottom: 0;
}

.financieel-analyse-page .financieel-formule-regel {
    margin-bottom: 0.5rem;
}

.financieel-analyse-page .financieel-risico-waarde {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
}

.financieel-analyse-page .financieel-details-summary {
    cursor: pointer;
    color: #0d6efd;
}

.financieel-analyse-page .financieel-details-content p {
    margin: 0 0 0.5rem 0;
}

.financieel-analyse-page .financieel-card-label,
.financieel-overzicht-page .financieel-card-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.financieel-analyse-page .financieel-card-waarde,
.financieel-overzicht-page .financieel-card-waarde {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.financieel-overzicht-page .financieel-subtitel {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
}

.financieel-overzicht-page .financieel-componenten {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.financieel-overzicht-page .financieel-component-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.financieel-overzicht-page .financieel-component-naam {
    font-size: 0.95rem;
}

.financieel-overzicht-page .financieel-component-score {
    font-weight: 600;
    color: #495057;
}

.financieel-overzicht-page .financieel-breakdown {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.financieel-overzicht-page .financieel-breakdown-regel {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.financieel-overzicht-page .financieel-breakdown-totaal {
    font-weight: 600;
    border-top: 1px solid #dee2e6;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
}

.financieel-analyse-page .financieel-alert,
.financieel-overzicht-page .financieel-alert {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.financieel-analyse-page .financieel-alert-danger,
.financieel-overzicht-page .financieel-alert-danger {
    background: #f8d7da;
    border: 1px solid #dc3545;
}

.financieel-overzicht-page .financieel-alert-waarschuwing {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.financieel-analyse-page .financieel-alert-waarschuwing {
    background: #fff3cd;
    border: 1px solid #ffc107;
}

.financieel-overzicht-page .financieel-alert-info,
.financieel-analyse-page .financieel-alert-info {
    background: #cce5ff;
    border: 1px solid #0d6efd;
}

.financieel-analyse-page .financieel-alert i,
.financieel-overzicht-page .financieel-alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Leningaanvraag stappenplan – verticaal onder elkaar voor betere leesbaarheid */
.lening-stappenplan {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    background: var(--bs-light, #f8f9fa);
    border-radius: 8px;
    gap: 0;
}
.lening-stappenplan .stap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.5rem;
}
.lening-stappenplan .stap-nr {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}
.lening-stappenplan .stap-label {
    font-size: 0.875rem;
    text-align: left;
    line-height: 1.3;
    display: block;
}
.lening-stappenplan .stap-text {
    flex: 1;
    min-width: 0;
}
.lening-stappenplan .stap-hint {
    display: block;
    font-size: 0.75rem;
    line-height: 1.25;
    color: #6c757d;
    margin-top: 0.125rem;
}
.lening-stappenplan .stap-actief .stap-hint {
    color: #0d6efd;
}
.lening-stappenplan .stap-voltooid .stap-hint {
    color: #198754;
}

.repeat-hub-volgende-actie .card-title {
    font-size: 1rem;
}
.repeat-hub-volgende-actie-situatie {
    font-size: 0.9375rem;
    line-height: 1.45;
    margin-bottom: 0;
}
.mobile-page-shell-loading {
    min-height: 12rem;
}
.lening-stappenplan .stap-voltooid .stap-nr {
    background: var(--bs-success, #198754);
    color: white;
}
.lening-stappenplan .stap-actief .stap-nr {
    background: var(--bs-primary, #0d6efd);
    color: white;
}
.lening-stappenplan .stap-wacht .stap-nr {
    background: #dee2e6;
    color: #6c757d;
}
.lening-stappenplan .stap-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.lening-stappenplan .stap-link:hover {
    opacity: 0.9;
}
.lening-stappenplan .stap-connector {
    width: 2px;
    min-height: 12px;
    margin-left: 12px;
    background: #dee2e6;
    flex-shrink: 0;
}

/* 5-stappen + Leenruimte variant */
.lening-stappenplan-5 .stap-label {
    font-size: 0.8125rem;
}
.lening-stappenplan-5 .stap-nr {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
}
.lening-stappenplan-5 .stap-connector {
    margin-left: 11px;
}

.lening-stappenplan-4 .stap-label {
    font-size: 0.8125rem;
}
.lening-stappenplan-4 .stap-nr {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
}
.lening-stappenplan-4 .stap-connector {
    margin-left: 11px;
}

.lening-stappenplan-2 .stap-label {
    font-size: 0.875rem;
}
.lening-stappenplan-2 .stap-nr {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
}
.lening-stappenplan-2 .stap-connector {
    margin-left: 12px;
}

/* LeningAanvraagStappen: bulk categorise voor stap 4 */
.lening-stap4-bulk .input-group {
    gap: 0.25rem;
}
.lening-stap4-bulk .btn {
    padding: 0.6rem 1rem;
}
.lening-stap0-block {
    margin-bottom: 0.75rem;
}
.lening-stap0-block-primary {
    border-left: 3px solid var(--mobile-primary, #0d6efd);
}
.lening-stap0-section-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mobile-text-muted, #6c757d);
    margin: 0.75rem 0 0.35rem;
    padding-top: 0.25rem;
}
.lening-stap0-section-toggle {
    font-size: 0.9rem;
    text-decoration: none;
    color: inherit;
}
.transactie-bank-description {
    word-break: break-word;
}
.lening-bulk-modal .bulk-modal-content {
    margin: 1rem;
}

/* Recategorise overlay modal - buiten scroll-flow, voorkomt touch/overscroll problemen */
.lening-recategorise-overlay {
    touch-action: manipulation;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.lening-recategorise-overlay .lening-recategorise-content {
    touch-action: manipulation;
    max-height: 85vh;
    overflow-y: auto;
}
/* Grotere tap-targets voor checkboxes op mobile */
.form-check-touch {
    min-height: 44px;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.form-check-touch .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    cursor: pointer;
}
.form-check-touch .form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
    flex: 1;
}

/* Repeat-lening aanvraag: indicatieve terugbetaling */
.repeat-lening-terugbetaling-card .repeat-lening-terugbetaling-content {
    padding: 0.75rem 0 0;
}
.repeat-lening-terugbetaling-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.repeat-lening-terugbetaling-disclaimer {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.5rem 0 0;
    line-height: 1.35;
}

/* Inline pagina-laden (hub, stappen, financieel): geen grote lege kaart met gecentreerde spinner */
.mobile-inline-loading-root {
    padding-top: 0.25rem;
}
.mobile-inline-loading-card .mobile-inline-loading-inner {
    padding: 0.75rem 1rem;
}

/* Incasso-traject: banner volle breedte onder vaste toolbar.
   main.mobile-content is expliciet flex-kolom zodat de banner niet als smal flex-item naast .mobile-page komt te staan. */
.mobile-content.mobile-content--has-incasso-banner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    min-width: 0;
}

.mobile-content--has-incasso-banner > .incasso-traject-banner,
.mobile-content--has-incasso-banner > a.incasso-traject-banner {
    margin-top: 4.5rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    flex: 0 0 auto;
    align-self: stretch;
    overflow-wrap: anywhere;
}

/* Geen kind-selector (>): Body kan in een wrapper zitten; descendant blijft werken. */
.mobile-content.mobile-content--has-incasso-banner .mobile-page:not(.chat-page) {
    padding-top: 1rem;
    flex: 1 1 auto;
    min-height: 0;
}

.mobile-content.mobile-content--has-incasso-banner .mobile-page.chat-page {
    padding-top: 0;
    flex: 1 1 auto;
    min-height: 0;
}

.incasso-traject-banner {
    margin-left: 0;
    margin-right: 0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 0;
    overflow-wrap: anywhere;
}
.incasso-traject-banner__title {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-bottom: 0.35rem;
    color: #f8f9fa;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.incasso-traject-banner__text {
    font-size: 0.875rem;
    line-height: 1.4;
    opacity: 0.95;
    color: #f8f9fa;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Geen color:inherit: dan erven we body/main (zwart). Bootstrap link-kleur overschrijven. */
a.incasso-traject-banner.incasso-traject-banner--link,
a.incasso-traject-banner.incasso-traject-banner--link:visited,
a.incasso-traject-banner.incasso-traject-banner--link:active {
    display: block;
    text-decoration: none;
    color: #f8f9fa;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
}

a.incasso-traject-banner.incasso-traject-banner--link:hover {
    color: #ffffff;
    filter: brightness(1.06);
}

a.incasso-traject-banner--link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Support-impersonatie: alleen-lezen banner bovenaan de app */
.support-impersonation-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-bottom: 1px solid #ffc107;
    color: #664d03;
    padding: 0.65rem 1rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.support-impersonation-banner__title {
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.support-impersonation-banner__target {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.support-impersonation-banner__text {
    margin-bottom: 0.45rem;
}

.support-impersonation-banner__stop {
    display: inline-block;
    font-weight: 600;
    color: #664d03;
    text-decoration: underline;
}

.support-impersonation-banner__stop:hover,
.support-impersonation-banner__stop:focus-visible {
    color: #4a3702;
}

/* Factuurdetail (abo + lening): PDF-download staat op de pagina, niet in het toolbar-menu */
.factuur-pdf-download-wrap {
    margin-bottom: 1rem;
}

.subscription-factuur-page .invoice-container {
    padding-bottom: 2rem;
}

.subscription-factuur-page .invoice-item {
    padding: 0.5rem 0;
}

/* ========== APP LOCK OVERLAY ========== */

.app-lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    touch-action: pan-y;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.app-lock-overlay .lock-content {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.app-lock-brand {
    margin-bottom: 0.75rem;
}

/* Zelfde wordmark als toolbar (Home); iets groter voor leesbaarheid op het lock-scherm */
.app-lock-overlay .app-lock-brand .app-lock-brand-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: 2rem;
    width: auto;
    max-width: min(220px, 85vw);
    object-fit: contain;
}

.app-lock-overlay .lock-icon {
    font-size: 3rem;
    color: #006cfe;
    margin-bottom: 1rem;
}

.app-lock-overlay .pin-display {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
    height: 20px;
}

.app-lock-overlay .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #333;
    background: transparent;
}

.app-lock-overlay .dot.filled {
    background: #333;
}

.app-lock-overlay .error-message {
    color: red;
    margin-bottom: 1rem;
    height: 20px;
}

.app-lock-overlay .keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    touch-action: manipulation;
}

.app-lock-overlay .keypad button {
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 auto;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.app-lock-overlay .keypad button:active {
    background: #d0d0d0;
}

.app-lock-overlay .keypad button.secondary {
    font-size: 1rem;
    background: transparent;
    color: #666;
}

/* Onboarding focus layout (geen bottom-nav / minimale chrome) */
.onboarding-focus-layout {
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #f8f9fa;
}

/* Trajectkeuze — zelfde toolbar als Home; begroeting in mobile-card; keuzeblokken */
.traject-keuze-mobile-page {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0));
}

.traject-keuze-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    padding: 1rem 1rem 0;
}

.traject-keuze-page-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    padding: 2rem 1rem calc(2rem + env(safe-area-inset-bottom, 0));
}

.traject-keuze-greeting-card {
    margin-bottom: 0;
    border-radius: 1rem;
}

.traject-keuze-greeting-card:hover,
.traject-keuze-greeting-card:active {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.traject-keuze-greeting-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.traject-keuze-greeting-lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #6c757d;
}

.traject-keuze-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.traject-keuze-alert {
    margin-bottom: 0;
    border-radius: 12px;
    border: none;
    font-size: 0.9rem;
}

.traject-keuze-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 1.15rem 1.2rem 1.2rem;
    background: #ffffff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.05),
        0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    overflow: hidden;
}

.traject-keuze-card--primary {
    color: inherit;
    cursor: pointer;
    border: 1px solid rgba(79, 70, 229, 0.28);
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    box-shadow:
        0 1px 2px rgba(79, 70, 229, 0.08),
        0 16px 36px rgba(67, 56, 202, 0.15);
}

.traject-keuze-card--primary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, #6366f1 0%, #2563eb 100%);
}

.traject-keuze-card--primary:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(79, 70, 229, 0.12),
        0 20px 44px rgba(67, 56, 202, 0.2);
}

.traject-keuze-card--primary:not(:disabled):active {
    transform: translateY(0);
}

.traject-keuze-card--primary:disabled {
    opacity: 0.85;
    cursor: wait;
}

.traject-keuze-card--lening {
    color: inherit;
    cursor: pointer;
    border: 1px solid rgba(13, 148, 136, 0.35);
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%);
    box-shadow:
        0 1px 2px rgba(13, 148, 136, 0.12),
        0 14px 32px rgba(13, 148, 136, 0.12);
}

.traject-keuze-card--lening::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
}

.traject-keuze-card--lening .traject-keuze-card-kicker {
    color: #0f766e;
}

.traject-keuze-card--lening:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(13, 148, 136, 0.15),
        0 18px 40px rgba(13, 148, 136, 0.18);
}

.traject-keuze-card--lening:not(:disabled):active {
    transform: translateY(0);
}

.traject-keuze-card--lening:disabled {
    opacity: 0.85;
    cursor: wait;
}

.traject-keuze-card--lening .traject-keuze-card-cta {
    color: #0d9488;
}

.traject-keuze-card--lening .traject-keuze-card-cta::after {
    content: "\203A";
    margin-left: 0.35rem;
    font-size: 1.15em;
    line-height: 1;
    opacity: 0.85;
}

.traject-keuze-card--selected {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
}

.traject-keuze-card--selected.traject-keuze-card--lening {
    outline-color: #0f766e;
}

.traject-keuze-wijzig-link-wrap {
    text-align: center;
}

.traject-keuze-wijzig-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-primary, #0d6efd);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.traject-keuze-wijzig-link:hover,
.traject-keuze-wijzig-link:focus-visible {
    color: #0a58ca;
}

.traject-keuze-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.45);
}

.traject-keuze-confirm-panel {
    width: 100%;
    max-width: 28rem;
    padding: 1.25rem 1.15rem 1.35rem;
    border-radius: 1rem 1rem 0.75rem 0.75rem;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
}

.traject-keuze-confirm-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.traject-keuze-confirm-body {
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 1rem;
}

.traject-keuze-confirm-actions {
    display: flex;
    flex-direction: column;
}

.traject-keuze-card--disabled {
    opacity: 0.86;
    border: 1px dashed #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    background: #f8fafc;
    cursor: not-allowed;
}

.traject-keuze-card-badge {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    background: #e2e8f0;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
}

.traject-keuze-card-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 0.35rem;
}

.traject-keuze-card--disabled .traject-keuze-card-kicker {
    color: #94a3b8;
}

.traject-keuze-card-head {
    display: block;
    font-weight: 700;
    font-size: 1.12rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.traject-keuze-card-body {
    display: block;
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.55;
    white-space: pre-line;
    margin-bottom: 0.85rem;
}

.traject-keuze-card--primary .traject-keuze-card-body {
    margin-bottom: 1rem;
}

.traject-keuze-card-cta {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.98rem;
    color: #2563eb;
    margin-top: auto;
}

.traject-keuze-card--primary .traject-keuze-card-cta::after {
    content: "\203A";
    margin-left: 0.35rem;
    font-size: 1.15em;
    line-height: 1;
    opacity: 0.85;
}

.traject-keuze-card-spinner {
    margin-right: 0.45rem;
    vertical-align: middle;
    color: #2563eb !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
    border-right-color: transparent !important;
}

/* Snelle-lening hub + laadschermen (OnboardingFocusLayout): horizontaal gelijk aan .mobile-content */
.onboarding-lening-snelle-page {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0));
}

/* Hub stappen: zelfde opbouw als traject-keuze — toolbar-clearance via .mobile-page + ademruimte in dashboard */
.onboarding-lening-snelle-page.onboarding-lening-snelle-stappen .onboarding-lening-snelle-dashboard {
    padding-top: 1.5rem;
}

/* Uitslag stap 4: extra top/onder marge */
.onboarding-lening-snelle-page.onboarding-lening-snelle-uitslag {
    padding-top: calc(4.5rem + 1rem);
    padding-bottom: calc(1.25rem + 1rem + env(safe-area-inset-bottom, 0px));
}

.onboarding-lening-snelle-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    padding: 1rem 0 0;
}

.onboarding-lening-snelle-status-panel {
    margin-top: 0.35rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
}

.onboarding-lening-snelle-poll-hint {
    font-size: 0.8rem;
    line-height: 1.35;
}

/* Hub (snelle leenroute): CTA’s altijd herkenbaar als knoppen, niet als platte links */
.onboarding-lening-hub-actieve-lening-banner .onboarding-lening-hub-cta-stack {
    gap: 0.65rem !important;
}

a.btn.onboarding-lening-hub-cta,
button.btn.onboarding-lening-hub-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease, background-color 0.15s ease;
}

a.btn.onboarding-lening-hub-cta:hover,
button.btn.onboarding-lening-hub-cta:hover:not(:disabled) {
    filter: brightness(1.03);
    text-decoration: none !important;
}

a.btn.onboarding-lening-hub-cta:active,
button.btn.onboarding-lening-hub-cta:active:not(:disabled) {
    transform: scale(0.985);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.onboarding-lening-snelle-dashboard a.btn.onboarding-lening-hub-cta:focus-visible,
.onboarding-lening-snelle-dashboard button.btn.onboarding-lening-hub-cta:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.55);
    outline-offset: 2px;
}

.onboarding-lening-snelle-dashboard .onboarding-lening-hub-cta--outline {
    background-color: #fff;
    color: #0d6efd;
    border: 2px solid #0d6efd !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.onboarding-lening-snelle-dashboard .onboarding-lening-hub-cta--outline:hover {
    background-color: rgba(13, 110, 253, 0.08);
    color: #0b5ed7;
    border-color: #0b5ed7 !important;
    filter: none;
}

.onboarding-lening-snelle-dashboard .onboarding-lening-hub-cta--outline:active {
    background-color: rgba(13, 110, 253, 0.14);
}

.onboarding-lening-hub-actieve-lening-banner a.btn.onboarding-lening-hub-cta:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.55);
    outline-offset: 2px;
}

.onboarding-lening-hub-actieve-lening-marketing.mobile-card:hover,
.onboarding-lening-hub-actieve-lening-marketing.mobile-card:active {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hub: marketingblok als lening actief is (geen stap-voortgang meer) */
.onboarding-lening-hub-actieve-lening-marketing .card-content h3 {
    margin-top: 0;
    font-weight: 600;
    color: #1e293b;
}

.onboarding-lening-hub-actieve-lening-marketing .card-content p {
    line-height: 1.45;
}

/* Aanvraag-route na positieve uitslag: tabel-achtige rijen (stap | titel | actie) */
.onboarding-lening-aanvraag-route-card .card-header {
    padding-bottom: 0.35rem;
}

.onboarding-aanvraag-route-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--bs-border-color, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    background: #fafafa;
}

.onboarding-aanvraag-route-row {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 0.65rem;
    row-gap: 0.2rem;
    padding: 0.65rem 0.7rem;
    align-items: start;
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.06));
    background: #fff;
}

.onboarding-aanvraag-route-row:last-child {
    border-bottom: none;
}

.onboarding-aanvraag-route-row--note .onboarding-aanvraag-route-value {
    grid-column: 3;
}

@media (max-width: 360px) {
    .onboarding-aanvraag-route-row {
        grid-template-columns: 1.35rem minmax(0, 1fr);
        grid-template-rows: auto auto;
    }

    .onboarding-aanvraag-route-row .onboarding-aanvraag-route-value {
        grid-column: 2 / -1;
    }

    .onboarding-aanvraag-route-row--note .onboarding-aanvraag-route-value {
        grid-column: 2 / -1;
    }
}

.onboarding-aanvraag-route-num {
    font-weight: 700;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
}

.onboarding-aanvraag-route-label {
    font-weight: 600;
    font-size: 0.84rem;
    color: #1e293b;
    line-height: 1.35;
}

.onboarding-aanvraag-route-value {
    font-size: 0.82rem;
    line-height: 1.4;
    word-break: break-word;
}

.onboarding-aanvraag-route-value a {
    font-weight: 500;
}

/* Snelle-lening uitslag (stap 4) */
.onboarding-lening-uitslag-intro {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.onboarding-lening-uitslag-card {
    border-radius: 12px;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    margin-bottom: 0.9rem;
}

.onboarding-lening-uitslag-card--positive,
.onboarding-lening-uitslag-card--positief {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 55%);
}

.onboarding-lening-uitslag-pending-alert {
    border-radius: 10px;
    border: 1px solid rgba(13, 110, 253, 0.22);
    background: rgba(13, 110, 253, 0.06);
    color: #0f172a;
}

.onboarding-lening-uitslag-pending-alert .small {
    color: #475569;
    line-height: 1.45;
}

button.onboarding-lening-uitslag-cta-disabled:disabled {
    cursor: not-allowed;
    opacity: 0.88;
}

.onboarding-lening-uitslag-card--negative {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 55%);
}

.onboarding-lening-uitslag-marketing-card {
    border-color: #c7d2fe;
    background: linear-gradient(180deg, #eef2ff 0%, #ffffff 60%);
    text-align: left;
}

.onboarding-lening-uitslag-marketing-card .card-content {
    text-align: left;
}

.onboarding-lening-uitslag-marketing-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    font-size: 1.1rem;
}

.onboarding-lening-uitslag-marketing-tekst {
    white-space: pre-line;
}

.onboarding-lening-uitslag-scenario-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.onboarding-lening-uitslag-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.onboarding-lening-uitslag-body {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.45;
    margin-bottom: 0.85rem;
}

.onboarding-lening-uitslag-btn {
    width: 100%;
    justify-content: center;
    font-weight: 600;
}

.onboarding-lening-uitslag-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.5rem;
    line-height: 1.35;
}

.onboarding-lening-uitslag-error {
    font-size: 0.88rem;
    color: #b45309;
    margin-bottom: 0.75rem;
}

/* ========== Flow mockups (design / team — geen productie-UI definitief) ========== */

.flow-mockup-page {
    padding-bottom: 2rem;
}

.flow-mockup-banner {
    background: #e7f1ff;
    border: 1px solid #b6d4fe;
    color: #084298;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.flow-mockup-banner--warn {
    background: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.flow-mockup-banner--ok {
    background: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.flow-mockup-lead {
    color: #495057;
    margin-bottom: 1rem;
}

.flow-mockup-choice-card {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.flow-mockup-choice-card--primary {
    border-color: #0d6efd;
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.15);
}

.flow-mockup-choice-kicker {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.flow-mockup-choice-title {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: #212529;
}

.flow-mockup-choice-body {
    display: block;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.45;
}

.flow-mockup-note {
    margin-top: 1rem;
    border-style: dashed;
}

.flow-mockup-index-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flow-mockup-index-link {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-decoration: none;
    color: #0d6efd;
    font-weight: 500;
}

.flow-mockup-index-link:hover {
    background: #f8f9fa;
}

.flow-mockup-stepper {
    margin-bottom: 1.25rem;
}

.flow-mockup-step {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.flow-mockup-step-nr {
    flex: 0 0 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    background: #e9ecef;
    color: #495057;
}

.flow-mockup-step--active .flow-mockup-step-nr {
    background: #0d6efd;
    color: #fff;
}

.flow-mockup-step--done .flow-mockup-step-nr {
    background: #198754;
    color: #fff;
}

.flow-mockup-step-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.flow-mockup-step-desc {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.45;
}

.flow-mockup-step-connector {
    width: 2px;
    min-height: 1rem;
    margin: 0.25rem 0 0.25rem 0.95rem;
    background: #dee2e6;
    border-radius: 1px;
}

.flow-mockup-step--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.flow-mockup-step--link:hover {
    opacity: 0.92;
}

.flow-mockup-step--link:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 0.35rem;
}

.flow-mockup-metric-grid {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.flow-mockup-metric {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    background: #f8f9fa;
}

.flow-mockup-metric--highlight {
    background: #fff5f5;
    border-color: #f5c2c7;
}

.flow-mockup-metric-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.2rem;
}

.flow-mockup-metric-value {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    color: #212529;
}

.flow-mockup-footnote {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.flow-mockup-list {
    margin: 0;
    padding-left: 1.15rem;
}

.flow-mockup-list li {
    margin-bottom: 0.5rem;
}

.flow-mockup-pill-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.flow-mockup-pill {
    border: 1px solid #dee2e6;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff;
    color: #495057;
}

.flow-mockup-pill--active {
    border-color: #0d6efd;
    background: #e7f1ff;
    color: #084298;
}

.flow-mockup-health .flow-mockup-stars {
    font-size: 1.5rem;
    color: #ffc107;
    letter-spacing: 0.15rem;
    margin-bottom: 0.75rem;
}

.financial-health-card .card-subtitle {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.25rem;
}

.financial-health-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.financial-health-card--compact .financial-health-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.financial-health-card-chevron {
    color: #a0aec0;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.financial-health-stars {
    font-size: 1.5rem;
    color: #ffc107;
    letter-spacing: 0.15rem;
    margin-bottom: 0;
}

.financial-health-stars--large {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.financial-health-stars-caption {
    font-size: 0.875rem;
    color: #64748b;
}

.financial-health-tip {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.45;
}

.financial-health-page .financial-health-summary-card {
    border-color: #dbeafe;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 55%);
}

.financial-health-hero-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2563eb;
    text-align: center;
    margin: 0 0 1.25rem;
    line-height: 1.35;
}

.financial-health-ladder {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 0.75rem;
    padding: 0 0.15rem;
}

.financial-health-ladder-step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.financial-health-ladder-divider {
    flex: 0 0 1px;
    align-self: center;
    width: 1px;
    height: 2.4rem;
    background: #cbd5e1;
    margin-top: 0.35rem;
}

.financial-health-ladder-divider--active {
    background: #93c5fd;
}

.financial-health-ladder-star {
    font-size: 1.35rem;
    line-height: 1;
    color: #2563eb;
    margin-bottom: 0.45rem;
}

.financial-health-ladder-star .bi-star {
    color: #2563eb;
}

.financial-health-ladder-label {
    font-size: 0.62rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    hyphens: auto;
    word-break: break-word;
    max-width: 100%;
}

.financial-health-ladder-step--current .financial-health-ladder-label {
    color: #2563eb;
}

.financial-health-hero-copy {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e2e8f0;
    text-align: left;
}

.financial-health-hero-copy-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.financial-health-hero-copy-text,
.financial-health-hero-copy-hint {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

.financial-health-hero-copy-hint {
    margin-top: 0.65rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.financial-health-regel-list,
.financial-health-peilmaand-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.financial-health-regel-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.financial-health-regel-badge {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.financial-health-regel-badge--winst {
    background: #e6ffed;
    color: #198754;
}

.financial-health-regel-badge--verlies {
    background: #fde8e8;
    color: #dc3545;
}

.financial-health-regel-titel {
    font-weight: 600;
    color: #2d3748;
    line-height: 1.3;
}

.financial-health-regel-uitleg {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.15rem;
    line-height: 1.4;
}

.financial-health-regel-uitleg--hint {
    margin-top: 0.5rem;
}

.financial-health-regel-actie {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #006CFE;
    text-decoration: none;
}

.financial-health-regel-actie:hover {
    color: #0056D4;
    text-decoration: underline;
}

.financial-health-regel-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #198754;
}

.financial-health-peilmaand-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.financial-health-peilmaand-icon {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.financial-health-peilmaand-text {
    flex: 1;
    line-height: 1.35;
}

.financial-health-peilmaand-delta {
    font-weight: 700;
    margin-left: 0.35rem;
}

.flow-mockup-lock-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.flow-mockup-lock-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    border: 1px dashed #ced4da;
    border-radius: 10px;
    background: #fff;
    color: #6c757d;
}

.flow-mockup-lock-row--open {
    border-style: solid;
    border-color: #dee2e6;
    color: #4285f4;
}

.flow-mockup-lock-row .bi-lock-fill {
    color: #adb5bd;
    margin-top: 0.15rem;
}

.flow-mockup-lock-row--open .bi {
    color: #0d6efd;
    margin-top: 0.15rem;
}

.flow-mockup-lock-title {
    font-weight: 600;
    color: #212529;
}

.flow-mockup-lock-desc {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Sprint 3: leenruimte challenge contract */
.leenruimte-contract-block {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
}

.leenruimte-contract-text {
    color: #495057;
    line-height: 1.45;
}