        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        html,
        body {
            overflow-x: hidden;
        }
        body.body-scroll-locked {
            overflow: hidden;
        }

        :root {
            /* Smooth dark mode transitions */
            transition: background-color 0.2s, color 0.2s;
            /* — Nordic Vault: Prestige Palette — */
            /* Spacing scale */
            --sp-1: 4px;
            --sp-2: 8px;
            --sp-3: 12px;
            --sp-4: 16px;
            --sp-6: 24px;
            --sp-8: 32px;
            --sp-12: 48px;
            --sp-16: 64px;
            /* Typography scale */
            --text-xs:   11px;
            --text-sm:   13px;
            --text-base: 15px;
            --text-lg:   17px;
            --text-xl:   20px;
            --text-2xl:  24px;
            --text-3xl:  30px;
            --text-4xl:  38px;
            --leading-tight:   1.2;
            --leading-snug:    1.35;
            --leading-normal:  1.5;
            --leading-relaxed: 1.6;
            --weight-regular:  400;
            --weight-medium:   500;
            --weight-semibold: 600;
            --weight-bold:     700;
            /* Border & bg aliases */
            --border: #E8E6E1;
            --bg-hover: #F4F3F0;
            --bg-subtle: #FAFAF8;
            --brand-navy: #0F1F3D;
            --brand-navy-mid: #1B3360;
            --brand-gold: #D97706;
            --brand-paper: #F7F6F3;
            --primary: #0F1F3D;
            --primary-dark: #080F1E;
            --primary-mid: #1B3360;
            --primary-light: #EEF1F7;
            --accent: #1B3360;
            --accent-dark: #0F2247;
            --accent-light: #EEF2FF;
            --navy: #1B3360;

            /* Semantic status */
            --success: #064E3B;
            --success-light: #D1FAE5;
            --success-text: #064E3B;
            --warning: #6B3A00;
            --warning-light: #FEF3C7;
            --warning-text: #6B3A00;
            --warning-dark: #6B3A00;
            --danger: #7F1D1D;
            --danger-light: #FEE2E2;
            --danger-text: #7F1D1D;
            --danger-dark: #7F1D1D;

            /* Neutral scale — warm off-white base */
            --gray-50: #FAFAF8;
            --gray-100: #F4F3F0;
            --gray-200: #E8E6E1;
            --gray-300: #D4D0C8;
            --gray-400: #5C5650;
            --gray-500: #4F4942;
            --gray-600: #5C5650;
            --gray-700: #3D3A35;
            --gray-800: #252320;
            --gray-900: #141210;

            /* Semantic tokens */
            --bg-app: #F7F6F3;
            --bg-card: #FFFFFF;
            --bg-nav: #FFFFFF;
            --bg-input: #FFFFFF;
            --text-primary: #141210;
            --text-secondary: #5C5650;
            --text-muted: #4F4942;
            --border-color: #E8E6E1;
            --border-subtle: #F0EDE8;
            --shadow-card: 0 1px 4px rgba(15,31,61,0.06), 0 4px 16px rgba(15,31,61,0.04);
            --shadow-lifted: 0 8px 32px rgba(15,31,61,0.12);

            /* Typography — product UI uses one calm, highly readable family */
            --font-body: var(--estmate-font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif);
            --font-heading: var(--font-body);
            --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
            --tracking-tight: -0.025em;
            --tracking-normal: 0em;
            --tracking-wide: 0.04em;
            --tracking-widest: 0.1em;
            /* Compliance kleur */
            --gold: #D97706;

            /* Dashboard surfaces — zelfde rustige familie voor KPI cards + quick actions */
            --dashboard-surface: #F4F1EB;
            --dashboard-surface-strong: #EEE8DE;
            --dashboard-surface-border: rgba(27, 51, 96, 0.10);
            --dashboard-surface-hover: #E9E3D8;
            --dashboard-surface-shadow: 0 1px 4px rgba(15,31,61,0.06), 0 8px 24px rgba(15,31,61,0.06);
        }

        .sr-only {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }

        /* Dark mode via class op html element */
        html.dark {
            --border: #2a3a52;
            --bg-hover: #1c2a3e;
            --bg-subtle: #131c2e;
            --primary: #4A7BC8;
            --primary-dark: #3A6BB8;
            --primary-light: #1A2540;
            --accent: #FFFFFF;
            --accent-light: rgba(255,255,255,0.08);
            --gray-50: #131c2e;
            --gray-100: #1c2a3e;
            --gray-200: #2a3a52;
            --gray-300: #3d5070;
            --gray-400: #7a90b0;
            --gray-500: #94a3b8;
            --gray-600: #c5d3e8;
            --gray-700: #dce6f2;
            --gray-800: #eef3f9;
            --gray-900: #f5f8fc;
            --bg-app: #0d1623;
            --bg-card: #1c2a3e;
            --bg-nav: #131c2e;
            --bg-input: #131c2e;
            --text-primary: #eef3f9;
            --text-secondary: #94a3b8;
            --text-muted: #CBD5E1;
            --border-color: #2a3a52;
            --border-subtle: #1f2f44;
            --shadow-card: 0 1px 4px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
            --success-light: #0a2e1d;
            --warning-light: #2a1a05;
            --danger-light: #2e0c0c;
            --gold: #F59E0B;
            --dashboard-surface: #22314A;
            --dashboard-surface-strong: #2A3A55;
            --dashboard-surface-border: rgba(255,255,255,0.08);
            --dashboard-surface-hover: #30415E;
            --dashboard-surface-shadow: 0 8px 24px rgba(0,0,0,0.22);
            color-scheme: dark;
        }

        /* Dark mode overrides voor hardgecodeerde kleuren */
        html.dark body {
            background: var(--bg-app);
            color: var(--text-primary);
        }
        html.dark .sidebar {
            background: var(--navy) !important;
            border-color: transparent !important;
        }
        html.dark .app-header, html.dark .nav-bar, html.dark .bottom-nav {
            background: var(--bg-nav) !important;
            border-color: transparent !important;
        }
        html.dark :is(.card, .section, .stat-card, .property-card, .property-item, .list-item, .huurder-item, .action-button, .modal-content) {
            background: var(--bg-card) !important;
            border-color: var(--border-color) !important;
            color: var(--text-primary) !important;
        }
        html.dark .metric-card {
            background: linear-gradient(180deg, var(--dashboard-surface) 0%, var(--dashboard-surface-strong) 100%) !important;
            border-color: var(--dashboard-surface-border) !important;
            color: var(--text-primary) !important;
        }
        /* Sidebar nav-links erven hun kleur van de sidebar zelf, niet dark mode */
        html.dark .sidebar .nav-link {
            background: none !important;
            color: rgba(255,255,255,0.55) !important;
            border-color: transparent !important;
        }
        html.dark .sidebar .nav-link:hover {
            background: rgba(255,255,255,0.07) !important;
            color: rgba(255,255,255,0.9) !important;
        }
        html.dark .sidebar .nav-link.active {
            background: rgba(255,255,255,0.10) !important;
            color: rgba(255,255,255,0.95) !important;
        }
        html.dark input, html.dark select, html.dark textarea {
            background: var(--bg-input) !important;
            border-color: var(--border-color) !important;
            color: var(--text-primary) !important;
        }
        html.dark .modal {
            background: rgba(0,0,0,0.7) !important;
        }
        html.dark .modal-content {
            background: var(--bg-card) !important;
        }

        /* Dark mode toggle knop — subtiel als footnote-link */
        .theme-toggle {
            background: none;
            border: none;
            border-radius: 4px;
            padding: 2px 6px;
            cursor: pointer;
            font-size: 12px;
            color: rgba(255,255,255,0.45);
            display: inline-flex;
            align-items: center;
            gap: 4px;
            transition: color 0.2s;
            white-space: nowrap;
        }
        .theme-toggle:hover {
            color: rgba(255,255,255,0.75);
            background: none;
        }

        /* ===== SPACING / RADIUS / FONT TOKEN FIX ===== */
        /* Deze variabelen stonden buiten :root — hersteld als apart blok */
        :root {
            --spacing-xs: 4px;
            --spacing-sm: 8px;
            --spacing-md: 16px;
            --spacing-lg: 24px;
            --spacing-xl: 32px;
            --radius-sm: 6px;
            --radius-md: 8px;
            --radius-lg: 12px;
            --touch-target: 48px;
            --font-sm: 14px;
            --font-base: 16px;
            --font-lg: 18px;
            --font-xl: 20px;
            --font-2xl: 24px;
            --safe-area-top: max(var(--spacing-md), env(safe-area-inset-top));
            --safe-area-bottom: max(var(--spacing-md), env(safe-area-inset-bottom));
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
            --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.12);
            --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
            /* Category color codes */
            --cat-electricity: #3b82f6;
            --cat-maintenance: #f97316;
            --cat-repair: #ef4444;
            --cat-tax: #8b5cf6;
            --cat-insurance: #06b6d4;
            --cat-utilities: #14b8a6;
            --cat-cleaning: #ec4899;
            --cat-other: #6b7280;
        }

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

        html {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            background: var(--bg-app);
            overflow-x: hidden;
            max-width: 100%;
            width: 100%;
        }

        body {
            font-family: var(--font-body);
            font-size: clamp(15px, 1.5vw, 16px);
            line-height: 1.6;
            color: var(--text-primary);
            background: var(--bg-app);
            overflow-x: hidden;
            max-width: 100%;
            width: 100%;
            margin: 0;
            -webkit-font-smoothing: antialiased;
            font-feature-settings: 'kern' 1, 'liga' 1;
        }

        body.shell-overlay-open {
            overflow: hidden;
            overscroll-behavior: contain;
        }

        /* Brand identity: Property Shield */
        .brand-logo {
            --brand-logo-shield: var(--brand-navy);
            --brand-logo-roof: var(--brand-paper);
            --brand-logo-check: var(--brand-gold);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: var(--brand-logo-shield);
            line-height: 1;
            text-decoration: none;
            white-space: nowrap;
        }

        .brand-logo--light {
            --brand-logo-shield: #FFFFFF;
            --brand-logo-roof: var(--brand-navy);
            color: #FFFFFF;
        }

        .brand-logo--on-card {
            --brand-logo-shield: var(--brand-navy);
            --brand-logo-roof: var(--brand-paper);
            color: var(--brand-navy);
        }

        html.dark .brand-logo--on-card {
            --brand-logo-shield: #FFFFFF;
            --brand-logo-roof: var(--brand-navy);
            color: #FFFFFF;
        }

        .brand-logo__mark {
            width: 32px;
            height: 32px;
            flex: 0 0 auto;
            display: block;
        }

        .brand-logo__shield {
            fill: var(--brand-logo-shield);
        }

        .brand-logo__roof {
            fill: none;
            stroke: var(--brand-logo-roof);
            stroke-width: 4.2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .brand-logo__check {
            fill: none;
            stroke: var(--brand-logo-check);
            stroke-width: 4.4;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .brand-logo__word {
            font-family: var(--font-body);
            font-size: 22px;
            font-weight: 850;
            letter-spacing: -0.03em;
        }

        .brand-logo:hover .brand-logo__word,
        .brand-logo:focus-visible .brand-logo__word {
            opacity: 0.88;
        }

        /* Section subtitles */
        .subtitle {
            font-size: 13px;
            color: var(--text-muted);
            letter-spacing: var(--tracking-wide);
            margin-top: 4px;
        }

        /* ===== FOCUS STATE — WCAG 2.2 AA ===== */
        *:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 3px;
            border-radius: 4px;
        }

        button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 2px;
        }

        /* ===== AUTH OVERLAY ===== */
        /* Demo banner */
        /* Auth tabs */
        .auth-tabs {
            display: flex;
            gap: 0;
            margin-bottom: 24px;
            background: var(--gray-100);
            border-radius: 10px;
            padding: 3px;
        }
        .auth-tab {
            flex: 1;
            padding: 8px 12px;
            min-height: 44px;
            font-size: 13px;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            background: none;
            color: var(--gray-500);
            transition: all 0.15s;
        }
        .auth-tab.active {
            background: var(--bg-card);
            color: var(--primary);
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }
        .auth-language.estmate-language-switcher {
            background: rgba(255,255,255,0.82);
            border-color: rgba(27,51,96,0.12);
            box-shadow: none;
        }
        .auth-overlay {
            position: fixed;
            inset: 0;
            background: linear-gradient(135deg, #111318 0%, #1B3360 100%);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 24px;
            overflow-y: auto;
        }
        .auth-overlay.hidden { display: none; }
        .auth-card {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 40px 32px;
            max-width: 400px;
            width: 100%;
            box-shadow: 0 25px 50px rgba(0,0,0,0.25);
            text-align: center;
            max-height: calc(100vh - 48px);
            overflow-y: auto;
        }
        .auth-logo {
            justify-content: center;
            margin-bottom: 10px;
        }

        .auth-logo .brand-logo__mark {
            width: 42px;
            height: 42px;
        }

        .auth-logo .brand-logo__word {
            font-size: 30px;
        }
        .auth-tagline {
            font-size: 14px;
            color: var(--gray-500);
            margin-bottom: 32px;
        }

        @media (max-width: 520px) {
            .auth-overlay {
                align-items: flex-start;
                padding: 16px;
            }

            .auth-card {
                margin: 0 auto;
                padding: 28px 20px;
                border-radius: 16px;
                max-height: none;
            }
        }
        .auth-language.estmate-language-switcher {
            margin: -14px auto 22px;
            width: fit-content;
        }
        .auth-input {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid var(--gray-200);
            border-radius: 10px;
            font-size: 16px;
            margin-bottom: 12px;
            box-sizing: border-box;
            transition: border-color 0.2s;
        }
        .auth-input:focus {
            outline: none;
            border-color: var(--primary);
        }
        .auth-btn {
            width: 100%;
            padding: 14px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            margin-bottom: 12px;
        }
        .auth-btn:hover { background: var(--primary-dark); }
        .auth-btn:disabled { background: var(--gray-300); cursor: not-allowed; }
        .auth-provider-stack {
            display: grid;
            gap: 10px;
        }

        .auth-btn-google,
        .auth-btn-provider {
            width: 100%;
            padding: 14px;
            background: var(--bg-card);
            color: var(--gray-700);
            border: 2px solid var(--gray-200);
            border-radius: 10px;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: border-color 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .auth-btn-google:hover,
        .auth-btn-provider:hover {
            border-color: var(--primary);
        }

        .auth-provider-icon {
            width: 18px;
            height: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
        }
        .auth-divider {
            display: flex;
            align-items: center;
            gap: 12px;
            margin: 16px 0;
            color: var(--gray-400);
            font-size: 13px;
        }
        .auth-divider::before, .auth-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--gray-200);
        }
        .auth-msg {
            padding: 12px;
            border-radius: 8px;
            font-size: 13px;
            margin-top: 12px;
            display: none;
        }
        .auth-msg.success { background: #d1fae5; color: #065f46; display: block; }
        .auth-msg.error { background: #fee2e2; color: #b91c1c; display: block; }

        /* Nordigen bank card */
        .bank-card {
            background: var(--bg-card);
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .bank-card .bank-logo {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }
        .bank-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-left: auto;
            flex-shrink: 0;
        }
        .bank-status-dot.connected { background: var(--success); }
        .bank-status-dot.pending { background: var(--warning); }
        .bank-status-dot.expired { background: var(--danger); }

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

        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes docProcessingPulse {
            0%, 100% { background-color: transparent; }
            50% { background-color: rgba(245, 158, 11, 0.08); }
        }
        .doc-row-processing {
            animation: docProcessingPulse 2s ease-in-out infinite;
        }
        @keyframes skeletonShimmer {
            0% { background-position: -400px 0; }
            100% { background-position: 400px 0; }
        }
        .skeleton-bar {
            height: 16px;
            border-radius: 6px;
            background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
            background-size: 400px 100%;
            animation: skeletonShimmer 1.4s ease-in-out infinite;
        }
        .skeleton-card {
            background: var(--bg-card);
            border-radius: 14px;
            padding: 18px;
            margin-bottom: 12px;
            box-shadow: var(--shadow-sm);
        }
        .skeleton-card__row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .skeleton-card__main {
            display: flex;
            align-items: center;
            gap: 12px;
            flex: 1;
            min-width: 0;
        }
        .skeleton-card__copy {
            flex: 1;
            min-width: 0;
        }
        .skeleton-card.is-grid-cell { grid-column: span 1; }
        .skeleton-bar.is-w-30 { width: 30%; }
        .skeleton-bar.is-w-38 { width: 38%; }
        .skeleton-bar.is-w-42p { width: 42%; }
        .skeleton-bar.is-w-50 { width: 50%; }
        .skeleton-bar.is-w-58 { width: 58%; }
        .skeleton-bar.is-w-120 { width: 120px; }
        .skeleton-bar.is-w-100 { width: 100%; }
        .skeleton-bar.is-h-11 { height: 11px; }
        .skeleton-bar.is-h-12 { height: 12px; }
        .skeleton-bar.is-avatar-sm {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .skeleton-bar.is-icon-md {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            flex-shrink: 0;
        }
        .skeleton-bar.is-muted-40 { opacity: 0.4; }
        .skeleton-bar.is-muted-50 { opacity: 0.5; }
        .skeleton-bar.is-muted-60 { opacity: 0.6; }
        .skeleton-bar.has-bottom-gap-sm { margin-bottom: 8px; }
        .skeleton-bar.has-bottom-gap { margin-bottom: 10px; }
        .skeleton-bar.has-bottom-gap-lg { margin-bottom: 12px; }
        .properties-empty {
            grid-column: 1 / -1;
            padding: 40px 20px;
        }
        .properties-empty__title {
            margin-bottom: 6px;
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 600;
        }
        .properties-empty__copy {
            margin-bottom: 20px;
        }
        .properties-empty__button {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 20px;
            border: none;
            border-radius: 10px;
            background: var(--primary);
            color: white;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
        }
        .property-mobile-shell {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            min-width: 0;
        }
        .property-mobile-main,
        .property-mobile-copy {
            min-width: 0;
            flex: 1;
        }
        .property-mobile-address-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            min-width: 0;
            flex: 1;
        }
        .property-mobile-title-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            line-height: 1.2;
        }
        .property-mobile-title {
            font-weight: 700;
        }
        .lease-status-badge,
        .epc-status-badge {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            font-weight: 700;
            white-space: nowrap;
        }
        .lease-status-badge {
            padding: 2px 7px;
            font-size: 10px;
        }
        .lease-status-badge.is-registered {
            background: var(--success-light);
            color: var(--success-text);
        }
        .lease-status-badge.is-missing {
            background: var(--danger-light);
            color: var(--danger-text);
        }
        .epc-status-badge {
            padding: 2px 7px;
            color: white;
            font-size: 11px;
        }
        .epc-status-badge.is-efficient { background: var(--success); }
        .epc-status-badge.is-medium { background: var(--warning); }
        .epc-status-badge.is-poor { background: var(--danger); }

        /* ===== DOCUMENTEN UPLOAD GRID ===== */
        .doc-upload-grid {
            display: grid;
            grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr);
            gap: 24px;
            align-items: start;
            width: 100%;
        }
        .document-upload-pane {
            display:grid;
            gap:20px;
        }
        .document-upload-shell {
            width: min(100%, 760px);
        }
        .document-upload-pane--solo {
            padding: 28px;
            border-radius: 22px;
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            box-shadow: 0 18px 40px rgba(15,31,61,0.05);
        }
        .document-upload-primary {
            display: grid;
            gap: 14px;
            margin-bottom: 0;
        }
        .document-upload-hero {
            display: grid;
            gap: 8px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-subtle);
        }
        .document-upload-title {
            margin: 0;
            font-size: 22px;
            line-height: 1.14;
            color: var(--text-primary);
            letter-spacing: -0.01em;
            max-width: 18ch;
        }
        .document-upload-copy {
            margin: 0;
            font-size: 15px;
            line-height: 1.55;
            color: var(--text-secondary);
            max-width: 42ch;
        }
        .document-upload-type-row {
            display:flex;
            gap:8px;
            align-items:stretch;
        }
        .document-upload-type-row select {
            flex:1;
            min-width:0;
        }
        .document-upload-type-row .btn {
            min-height:42px;
            padding:0 12px;
            white-space:nowrap;
        }
        .document-upload-note {
            margin-top:6px;
            font-size:var(--text-xs);
            line-height:1.45;
            color:var(--text-muted);
        }
        .document-upload-note.is-core {
            padding:8px 10px;
            border:1px solid rgba(107,58,0,0.20);
            border-radius:10px;
            background:#FFF7ED;
            color:#6B3A00;
            font-weight:700;
        }
        .document-upload-file-input {
            width:100%;
            padding:10px;
            border:1.5px dashed var(--border-color);
            border-radius:10px;
            font-size:var(--text-sm);
            cursor:pointer;
            background:var(--gray-50);
            color:transparent;
        }
        .document-upload-file-label {
            font-size:var(--text-sm);
            color:var(--primary);
            font-weight:600;
            margin-top:5px;
            min-height:16px;
        }
        .document-upload-intro-points {
            display:flex;
            flex-wrap:wrap;
            gap:8px;
        }
        .document-upload-intro-points span {
            display:inline-flex;
            align-items:center;
            gap:6px;
            padding:7px 10px;
            border-radius:999px;
            background:var(--gray-50);
            border:1px solid var(--border-subtle);
            color:var(--text-secondary);
            font-size:12px;
            font-weight:700;
        }
        .document-upload-actions {
            display: grid;
            gap: 12px;
            margin-top: 4px;
            padding-top: 14px;
            border-top: 1px solid var(--border-subtle);
        }
        .document-upload-actions .btn {
            min-height: 52px;
            font-size: var(--text-base);
            font-weight: 800;
            border-radius: 14px;
            box-shadow: 0 8px 20px rgba(27,51,96,0.12);
        }
        .document-upload-security {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            padding: 0;
            background: transparent;
            border-radius: 0;
            border: 0;
        }
        .document-upload-security p {
            font-size: 12px;
            color: var(--text-muted);
            margin: 0;
            line-height: 1.45;
            font-weight: 500;
        }
        .document-list-heading {
            display:flex;
            justify-content:space-between;
            align-items:flex-start;
            gap:12px;
            margin-bottom:18px;
            padding-bottom:12px;
            border-bottom:1px solid var(--border-subtle);
        }
        .document-list-heading h3 {
            margin:0 0 4px;
            flex:1;
            min-width:0;
            font-size:18px;
            line-height:1.2;
            color:var(--text-primary);
        }
        .document-list-heading p {
            margin:0;
            font-size:var(--text-sm);
            line-height:1.45;
            color:var(--text-secondary);
            max-width:46ch;
        }
        .document-list-summary {
            display:flex;
            flex-wrap:wrap;
            gap:8px;
            margin-bottom:14px;
        }
        .document-list-summary span {
            display:inline-flex;
            align-items:center;
            gap:6px;
            padding:7px 10px;
            border-radius:999px;
            background:var(--gray-50);
            border:1px solid var(--border-subtle);
            color:var(--text-secondary);
            font-size:12px;
            font-weight:700;
        }
        .document-list-summary strong {
            color:var(--text-primary);
        }
        .document-card {
            margin-bottom: 12px;
        }
        .document-card__header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }
        .document-card__eyebrow {
            margin-bottom: 4px;
            color: var(--gray-400);
            font-size: var(--text-xs);
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
        }
        .document-card__eyebrow--spaced {
            margin-bottom: 8px;
        }
        .document-card__count {
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 700;
        }
        .document-card__status {
            color: var(--text-muted);
            font-size: var(--text-sm);
            text-align: right;
        }
        .document-card__list {
            display: grid;
            gap: 8px;
        }
        .document-card__item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 12px;
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--bg-card);
        }
        .document-card__copy {
            min-width: 0;
        }
        .document-card__title,
        .document-mobile-row__title {
            overflow: hidden;
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 600;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .document-name-link {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
        }
        .document-name-link__icon {
            display: inline-flex;
            vertical-align: middle;
        }
        .document-name-text {
            font-weight: 600;
        }
        .document-card__meta,
        .document-mobile-row__meta,
        .doc-meta-inline {
            display: inline-flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }
        .document-card__meta {
            margin-top: 2px;
            color: var(--text-muted);
            font-size: var(--text-xs);
        }
        .document-card__actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }
        .document-card__more {
            justify-content: center;
        }
        .doc-icon-btn,
        .doc-mobile-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            cursor: pointer;
            flex-shrink: 0;
        }
        .doc-icon-btn {
            width: 32px;
            height: 32px;
            border: 1px solid var(--danger-light);
            background: transparent;
            color: var(--danger);
        }
        .doc-table-btn {
            height: 28px;
            min-height: unset;
            padding: 0 8px;
        }
        .doc-table-btn.is-danger {
            border-color: var(--danger-light);
            color: var(--danger);
        }
        .document-mobile-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-bottom: 1px solid var(--gray-100);
            transition: background 0.15s;
        }
        .document-mobile-row__icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: var(--primary-light);
            font-size: 18px;
            flex-shrink: 0;
        }
        .document-mobile-row__body {
            flex: 1;
            min-width: 0;
        }
        .document-mobile-row__meta {
            margin-top: 2px;
            color: var(--gray-500);
            font-size: var(--text-xs);
        }
        .doc-mobile-action {
            width: 40px;
            height: 40px;
            border: 1px solid var(--border-color);
            background: var(--bg-card);
            color: var(--primary);
        }
        .doc-mobile-action.is-danger {
            border-color: var(--danger-light);
            background: var(--danger-light);
            color: var(--danger);
        }
        .portaal-history-empty {
            padding: 24px 16px !important;
        }
        .portaal-history-empty h4 {
            font-size: 15px !important;
        }
        .portaal-history-empty .empty-text {
            max-width: 260px !important;
        }
        .payment-status-badge {
            display: inline-block;
            padding: var(--sp-1) var(--sp-2);
            border-radius: 10px;
            font-size: var(--text-xs);
            font-weight: 700;
        }
        .payment-status-badge.is-compact {
            margin-top: 2px;
        }
        .payment-status-badge.is-paid,
        .portaal-status.is-paid {
            background: var(--success-light);
            color: var(--success-text);
        }
        .payment-status-badge.is-overdue,
        .payment-status-badge.is-unpaid,
        .portaal-status.is-overdue,
        .portaal-status.is-unpaid {
            background: var(--danger-light);
            color: var(--danger-text);
        }
        .payment-status-badge.is-pending,
        .portaal-status.is-pending {
            background: var(--warning-light);
            color: var(--warning-text);
        }
        .payment-status-badge.is-muted,
        .portaal-status.is-muted {
            background: var(--gray-100);
            color: var(--text-muted);
        }
        .payment-history-card-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 10px 14px;
            border-bottom: 1px solid var(--border-subtle);
        }
        .payment-history-card-row__month {
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .payment-history-card-row__date {
            color: var(--text-muted);
            font-size: var(--text-xs);
        }
        .payment-history-card-row__amount-wrap {
            text-align: right;
        }
        .payment-history-card-row__amount {
            color: var(--primary);
            font-weight: 700;
        }
        .portaal-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 20px;
        }
        .portaal-card {
            padding: 20px;
            border-radius: 12px;
            background: var(--bg-card);
            box-shadow: var(--shadow-sm);
        }
        .portaal-profile {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }
        .portaal-profile__avatar {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--primary-light);
            font-size: 20px;
            flex-shrink: 0;
        }
        .portaal-profile__name {
            font-weight: 700;
        }
        .portaal-profile__email {
            color: var(--gray-500);
            font-size: var(--text-sm);
        }
        .portaal-stat-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            font-size: var(--text-sm);
        }
        .portaal-stat {
            padding: 10px;
            border-radius: 8px;
            background: var(--gray-50);
        }
        .portaal-stat__label {
            color: var(--gray-500);
            font-size: var(--text-xs);
            text-transform: uppercase;
        }
        .portaal-stat__value {
            margin-top: 2px;
            font-weight: 700;
        }
        .portaal-stat__value.is-address {
            font-size: var(--text-sm);
        }
        .portaal-card__title {
            margin-bottom: 12px;
            font-size: 15px;
        }
        .portaal-card__title.is-compact {
            margin-bottom: 8px;
        }
        .portaal-status {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px;
            border-radius: 8px;
            border-left: 4px solid currentColor;
            margin-bottom: 12px;
        }
        .portaal-status__dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: currentColor;
            flex-shrink: 0;
        }
        .portaal-status__label {
            font-weight: 600;
            text-transform: capitalize;
        }
        .portaal-status__select {
            margin-left: auto;
            padding: 4px 8px;
            border: 1px solid var(--gray-200);
            border-radius: 6px;
            font-size: var(--text-sm);
        }
        .portaal-doc-empty {
            color: var(--gray-500);
            font-size: var(--text-sm);
        }
        .portaal-doc-row {
            padding: 8px 0;
            border-bottom: 1px solid var(--gray-100);
            font-size: var(--text-sm);
        }
        .portaal-doc-row span {
            color: var(--gray-500);
        }
        .portaal-history-card {
            margin-bottom: 0;
        }
        .portaal-history-body {
            padding: 0;
        }
        .notification-empty {
            color: var(--text-muted);
        }
        .notification-error {
            color: var(--danger);
        }
        .notification-card {
            border-left: 4px solid var(--text-muted);
        }
        .notification-card.is-urgent {
            border-left-color: #B91C1C;
        }
        .notification-card.is-important {
            border-left-color: #92400E;
        }
        .notification-card__body {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .notification-card__header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
        }
        .notification-card__meta {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 4px;
        }
        .notification-card__priority {
            color: var(--text-muted);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .notification-card__priority.is-urgent,
        .notification-card__state.is-new {
            color: #B91C1C;
        }
        .notification-card__priority.is-important {
            color: #92400E;
        }
        .notification-card__state {
            color: var(--text-muted);
            font-size: 11px;
        }
        .notification-card__title {
            color: var(--text-primary);
            font-size: var(--text-base);
            font-weight: 700;
        }
        .notification-card__date {
            color: var(--text-muted);
            font-size: var(--text-xs);
        }
        .notification-card__message {
            color: var(--text-secondary);
            font-size: var(--text-sm);
            line-height: 1.6;
            white-space: pre-line;
        }
        .indexation-alert-banner {
            position: fixed;
            top: 50px;
            left: 50%;
            z-index: 9998;
            display: flex;
            align-items: center;
            gap: 10px;
            max-width: 92vw;
            padding: 12px 20px;
            border-radius: 10px;
            background: #92400e;
            color: white;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            font-size: var(--text-sm);
            transform: translateX(-50%);
        }
        .indexation-alert-banner__label {
            margin-right: 6px;
            padding: 1px 6px;
            border-radius: 3px;
            background: #92400e;
            color: white;
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 1px;
        }
        .indexation-alert-banner__view {
            padding: 5px 10px;
            border: 0;
            border-radius: 6px;
            background: rgba(255,255,255,0.2);
            color: white;
            cursor: pointer;
            font-size: var(--text-sm);
            white-space: nowrap;
        }
        .indexation-alert-banner__close {
            border: 0;
            background: none;
            color: rgba(255,255,255,0.6);
            cursor: pointer;
            font-size: 16px;
        }
        #notifTelegramFields {
            display: flex;
        }
        #notifTelegramToggle {
            background: var(--border);
        }
        #notifTelegramToggle.is-active {
            background: var(--accent);
        }
        #notifTelegramKnob {
            left: 3px;
        }
        #notifTelegramToggle.is-active #notifTelegramKnob {
            left: 23px;
        }
        .gap-analysis-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: var(--bg-card);
        }
        .gap-analysis-item.is-open {
            cursor: pointer;
        }
        .gap-analysis-item.is-done {
            border-color: rgba(22,163,74,0.2);
            background: rgba(22,163,74,0.04);
            cursor: default;
        }
        .gap-analysis-item__icon {
            font-size: 18px;
            flex-shrink: 0;
        }
        .gap-analysis-item__body {
            flex: 1;
        }
        .gap-analysis-item__label {
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .gap-analysis-item.is-done .gap-analysis-item__label {
            color: var(--success-text);
        }
        .gap-analysis-item__hint {
            color: var(--gray-400);
            font-size: var(--text-xs);
        }
        .inline-edit-modal {
            display: flex;
        }
        .inline-edit-modal__content {
            max-width: 360px;
        }
        .inline-edit-modal__body {
            padding: 16px;
        }
        .inline-edit-field {
            width: 100%;
            padding: 9px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 14px;
        }
        .inline-edit-modal__actions {
            margin-top: 16px;
        }
        .contract-generation-modal {
            position: fixed;
            inset: 0;
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(0,0,0,0.5);
        }
        .contract-generation-panel {
            max-width: 400px;
            padding: 20px;
            border-radius: 8px;
            background: var(--bg-card);
        }
        .contract-generation-title {
            margin-bottom: 15px;
            font-size: 16px;
            font-weight: 600;
        }
        .contract-generation-field {
            margin-bottom: 15px;
        }
        .contract-generation-field.is-last {
            margin-bottom: 20px;
        }
        .contract-generation-label {
            display: block;
            margin-bottom: 5px;
            font-size: 14px;
            font-weight: 500;
        }
        .contract-generation-input {
            width: 100%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 14px;
        }
        .contract-generation-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        .contract-generation-cancel,
        .contract-generation-submit {
            padding: 8px 16px;
            border-radius: 4px;
            cursor: pointer;
        }
        .contract-generation-cancel {
            border: 1px solid #ccc;
            background: var(--bg-card);
        }
        .contract-generation-submit {
            border: 0;
            background: var(--primary);
            color: white;
            font-weight: 600;
        }
        .removal-flow-modal {
            position: fixed;
            inset: 0;
            z-index: 20000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(15,23,42,.55);
        }
        .removal-flow-modal__panel {
            width: min(720px, 100%);
            padding: 24px;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            background: var(--bg-card);
            box-shadow: 0 24px 80px rgba(15,23,42,.35);
        }
        .removal-flow-modal__header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 16px;
        }
        .removal-flow-modal__kicker {
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .removal-flow-modal__title {
            margin: 6px 0 0;
            color: var(--text-primary);
            font-size: 24px;
        }
        .removal-flow-modal__close {
            border: 0;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            font-size: 28px;
        }
        .removal-flow-modal__entity {
            margin-bottom: 18px;
            padding: 16px;
            border: 1px solid var(--border-color);
            border-radius: 16px;
            background: var(--bg-subtle);
        }
        .removal-flow-modal__entity-title {
            color: var(--text-primary);
            font-weight: 700;
        }
        .removal-flow-modal__entity-copy {
            margin-top: 6px;
            color: var(--text-secondary);
            font-size: 14px;
        }
        .removal-flow-modal__actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 12px;
            margin-bottom: 14px;
        }
        .removal-flow-modal__action,
        .removal-flow-modal__delete {
            cursor: pointer;
            font-weight: 700;
        }
        .removal-flow-modal__action {
            padding: 14px 16px;
            border-radius: 14px;
            text-align: left;
        }
        .removal-flow-modal__action.is-summary {
            border: 1px solid #cbd5e1;
            background: #eff6ff;
            color: #1d4ed8;
        }
        .removal-flow-modal__action.is-log {
            border: 1px solid #bfdbfe;
            background: #f8fbff;
            color: #1e40af;
        }
        .removal-flow-modal__action.is-archive {
            border: 1px solid rgba(6,78,59,0.28);
            background: var(--success-light);
            color: var(--success-text);
            font-weight: 800;
        }
        .removal-flow-modal__action-note {
            margin-top: 4px;
            color: var(--success-text);
            font-size: 12px;
            font-weight: 600;
        }
        .removal-flow-modal__footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            padding-top: 14px;
            border-top: 1px solid var(--border-color);
        }
        .removal-flow-modal__warning {
            color: var(--text-muted);
            font-size: 13px;
        }
        .removal-flow-modal__delete {
            padding: 12px 16px;
            border: 1px solid rgba(127,29,29,0.28);
            border-radius: 12px;
            background: var(--danger-light);
            color: var(--danger-text);
        }
        .is-field-error-flash {
            border-color: var(--danger) !important;
        }
        .is-field-invalid {
            border-color: var(--danger) !important;
            background: var(--danger-light) !important;
        }
        .cat-grid.is-field-invalid {
            padding: 12px;
            border: 1px solid var(--danger);
            border-radius: 12px;
            background: var(--danger-light);
        }
        .is-field-error-label {
            color: var(--danger) !important;
        }
        .cost-wizard-error {
            margin-top: 8px;
            color: var(--danger);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .upload-result-row {
            display: flex;
            align-items: flex-start;
            gap: 6px;
            padding: 3px 0;
        }
        .upload-result-row__icon {
            flex-shrink: 0;
            margin-top: 2px;
        }
        .document-workflow-panel {
            display: grid;
            gap: 12px;
            margin: 0 0 18px;
            padding: 16px;
            border-radius: 16px;
            background: linear-gradient(180deg, rgba(27,51,96,0.04) 0%, rgba(27,51,96,0.015) 100%);
            border: 1px solid rgba(27,51,96,0.08);
        }
        .doc-review-state {
            color: var(--gray-400);
            font-size: var(--text-sm);
        }
        .doc-review-state.is-error {
            color: var(--danger);
        }
        .doc-review-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            border: 1px solid var(--border-color);
            border-radius: 20px;
            background: var(--gray-100);
            color: var(--text-secondary);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .doc-review-status.is-processing,
        .doc-review-status.is-needs_review {
            border-color: rgba(107, 58, 0, 0.22);
            background: var(--warning-light);
            color: var(--warning-text);
        }
        .doc-review-status.is-processed {
            border-color: rgba(6, 78, 59, 0.22);
            background: var(--success-light);
            color: var(--success-text);
        }
        .doc-review-status.is-failed {
            border-color: rgba(127, 29, 29, 0.22);
            background: var(--danger-light);
            color: var(--danger-text);
        }
        #docReviewSaveBtn.is-success-state {
            border-color: var(--success);
            background: var(--success);
            color: #fff;
        }
        .doc-review-alert {
            margin-bottom: 12px;
            padding: 12px;
            border-radius: 8px;
            font-size: var(--text-sm);
        }
        .doc-review-alert.no-gap {
            margin-bottom: 0;
        }
        .doc-review-alert.is-error {
            background: var(--danger-light);
            color: var(--danger-text);
        }
        .doc-review-alert.is-muted {
            background: var(--gray-50);
            color: var(--gray-500);
        }
        .doc-review-alert.is-warning,
        .doc-review-confidence {
            background: #fef3c7;
            color: #92400e;
        }
        .doc-review-confidence {
            margin-bottom: 12px;
            padding: 10px 12px;
            border-radius: 8px;
            font-size: var(--text-sm);
            line-height: 1.5;
        }
        .doc-review-intro {
            margin-bottom: 14px;
            color: var(--text-muted);
            font-size: var(--text-sm);
            line-height: 1.5;
        }
        .doc-review-field {
            margin-bottom: 10px;
        }
        .doc-review-field__label {
            display: block;
            margin-bottom: 4px;
            color: var(--gray-500);
            font-size: var(--text-xs);
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }
        .doc-review-field__input {
            width: 100%;
            padding: 8px 10px;
            border: 1.5px solid var(--gray-200);
            border-radius: 8px;
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: var(--text-sm);
        }
        .doc-review-group {
            margin-bottom: 18px;
        }
        .doc-review-group.is-featured {
            padding: 14px;
            border: 1px solid rgba(27,51,96,0.10);
            border-radius: 12px;
            background: rgba(27,51,96,0.03);
        }
        .doc-review-group__title {
            margin-bottom: 10px;
            color: var(--primary);
            font-size: var(--text-xs);
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
        }
        .doc-review-group__title.has-rule {
            margin-bottom: 8px;
            padding-bottom: 4px;
            border-bottom: 1px solid var(--border-subtle);
        }
        .document-workflow-panel__top {
            display:flex;
            align-items:flex-start;
            justify-content:space-between;
            gap: 12px;
        }
        .document-workflow-panel__title {
            margin:0;
            font-size: 18px;
            line-height: 1.2;
            color: var(--text-primary);
        }
        .document-workflow-panel__copy {
            margin: 4px 0 0;
            font-size: var(--text-sm);
            line-height: 1.55;
            color: var(--text-secondary);
            max-width: 64ch;
        }
        .document-workflow-panel__steps {
            display:grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }
        .document-workflow-step {
            padding: 12px 12px 11px;
            border-radius: 14px;
            background: rgba(255,255,255,0.75);
            border: 1px solid rgba(27,51,96,0.08);
            box-shadow: 0 1px 2px rgba(15,31,61,0.04);
        }
        .document-workflow-step__label {
            display:block;
            font-size: 11px;
            line-height: 1.2;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--gold);
            font-weight: 800;
            margin-bottom: 4px;
        }
        .document-workflow-step__text {
            font-size: 13px;
            line-height: 1.45;
            color: var(--text-primary);
            font-weight: 600;
        }
        .document-upload-form-shell {
            display:grid;
            gap:14px;
            padding:0;
            border-radius:0;
            background:transparent;
            border:0;
            box-shadow:none;
        }
        .document-upload-form-shell .form-group:last-of-type {
            margin-bottom:0;
        }
        @media (max-width: 767px) {
            .document-workflow-panel__steps { grid-template-columns: 1fr; }
            .document-workflow-panel__top { flex-direction: column; }
        }
        @media (max-width: 767px) {
            .doc-upload-grid {
                grid-template-columns: 1fr;
            }
            .document-upload-pane--solo {
                padding: 20px;
                border-radius: 18px;
            }
        }

        /* ===== SAFARI iOS FIX — horizontale scroll preventie ===== */
        /* Safari behandelt overflow-x:hidden op body anders dan andere browsers */
        .app-container, .main-content, .app-content, .app-header, .nav-tabs {
            max-width: 100%;
            width: 100%;
        }

        /* Alle cards en sections nooit breder dan hun parent */
        .card, .section, .metric-card, .action-button {
            max-width: 100%;
            min-width: 0;
        }

        /* Fluid text — afkappen ipv uitlopen */
        .metric-value, .stat-change {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        /* Labels mogen wrappen zodat ze leesbaar blijven bij smalle kolommen */
        .metric-label {
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            white-space: normal;
        }

        /* ===== SAFARI IOS FIX ===== */
        @supports (-webkit-touch-callout: none) {
            .app-container {
                height: -webkit-fill-available;
            }
            html, body {
                overflow-x: clip;
            }
        }

        /* MOBILE: 320px - 767px */
        @media (max-width: 767px) {
            body {
                padding-top: 0;
                padding-bottom: var(--safe-area-bottom);
                overflow-x: hidden;
                background: var(--primary);
            }

            .app-container {
                padding-bottom: 96px;
                overflow-x: hidden;
                width: 100%;
                max-width: 100%;
            }

            .app-header {
                position: sticky;
                top: 0;
                z-index: 40;
                overflow: visible !important;
                padding-top: env(safe-area-inset-top, 0px);
                min-height: calc(58px + env(safe-area-inset-top, 0px));
                height: calc(58px + env(safe-area-inset-top, 0px));
                box-sizing: border-box;
            }

            .sidebar {
                display: none !important;
            }

            .app-content {
                padding: var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom)) calc(var(--sp-4) + env(safe-area-inset-left, 0px)) !important;
                scroll-padding-bottom: 96px;
                overflow-x: hidden;
                width: 100%;
            }

            /* Alle directe kinderen van sections nooit breder dan viewport */
            .section > *, .section > div > * {
                max-width: 100%;
            }

            .nav-tabs {
                position: fixed;
                bottom: 0;
                left: 0;
                right: 0;
                width: 100%;
                display: flex;
                z-index: 50;
                padding-bottom: max(8px, env(safe-area-inset-bottom));
            }

            .nav-tabs.hidden-mobile {
                display: none;
            }

            .modal-content {
                border-radius: var(--radius-lg) var(--radius-lg) 0 0;
                max-height: 92vh;
                animation: slideUp 0.3s ease-out;
                width: 100%;
                max-width: 100vw;
            }

            .grid-2, .grid-3, .grid-4 {
                grid-template-columns: 1fr !important;
            }

            .metrics-grid {
                grid-template-columns: 1fr 1fr !important;
                gap: 10px !important;
                width: 100% !important;
            }

            /* Quick actions: 4 iconen fluid — geen vaste breedte */
            .quick-actions {
                grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
                gap: 6px !important;
                width: 100% !important;
            }

            /* Header icons: extra touch target spacing op mobile */
            .app-header {
                padding: 0 12px !important;
            }

            .header-icon {
                width: 44px !important;
                height: 44px !important;
                margin: 0 2px !important;
            }

            /* Action buttons kleiner op mobile */
            .action-button {
                padding: 12px 4px 10px !important;
                font-size: 11px !important;
                border-radius: 12px !important;
            }

            .action-button svg {
                width: 18px !important;
                height: 18px !important;
            }

            /* Property card grid: minder gap op mobile */
            #propertiesList {
                gap: 10px !important;
            }

            /* Documenten: extra space onderin voor nav overlap preventie */
            #documentsList {
                padding-bottom: 32px !important;
            }

            #documenten .doc-upload-grid > div:last-child {
                padding-bottom: 24px !important;
            }

            /* Property cards: mobile polish */
            .property-item {
                padding: 16px !important;
                border-radius: 12px !important;
                box-shadow: none !important;
                border: 1px solid var(--border-color) !important;
            }

            .property-item.profitable {
                box-shadow: inset 12px 0 0 var(--success) !important;
                border-radius: 0 12px 12px 0 !important;
            }

            .property-item.neutral {
                box-shadow: inset 12px 0 0 var(--warning) !important;
                border-radius: 0 12px 12px 0 !important;
            }

            .property-item.loss {
                box-shadow: inset 12px 0 0 var(--danger) !important;
                border-radius: 0 12px 12px 0 !important;
            }

            /* Geen hover-lift op touch */
            .property-item:hover {
                transform: none !important;
                box-shadow: none !important;
            }

            .property-item:active {
                transform: scale(0.985) !important;
                opacity: 0.92;
            }

            /* Buttons: 2 per rij, consistent formaat */
            .property-item button {
                padding: 9px 10px !important;
                font-size: 11px !important;
                border-radius: 9px !important;
                flex: 1 1 calc(50% - 3px) !important;
                min-width: 0 !important;
                justify-content: center !important;
            }

            /* KPI card tekst afkappen */
            .metric-value {
                font-size: 20px !important;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            h1 {
                font-size: 22px;
            }

            h2 {
                font-size: 18px;
            }

            /* Mobile form fixes */
            input, textarea, select {
                min-height: 44px;
                font-size: 16px;
                padding: 9px 12px;
            }

            textarea {
                min-height: 72px;
            }

            label {
                margin-bottom: 4px;
                font-size: 11px;
            }

            .form-buttons {
                flex-direction: column;
                gap: var(--spacing-md);
            }

            .btn-block {
                min-height: 44px;
            }

            .form-group {
                margin-bottom: 12px;
            }

            /* Compactere card padding op mobile */
            .card > form,
            .card > .card-header + form,
            .card > .card-header + div:not(.card-body):not(.card-footer) {
                padding: var(--sp-4) !important;
            }

            .card > h3:first-child {
                padding: var(--sp-4) var(--sp-4) 0 !important;
            }

            .card-header {
                padding: var(--sp-3) var(--sp-4) !important;
            }

            .card-body {
                padding: var(--sp-4) !important;
            }

            /* Sectietitel minder ruimte op mobile */
            .section > h2:first-child,
            .section > .section-page-header h1,
            .section > .section-page-header h2,
            #kosten > h2:first-child {
                font-size: 18px !important;
                margin-bottom: 2px !important;
            }

            .section > p.subtitle:nth-child(2),
            #kosten > p.subtitle {
                font-size: 12px !important;
                margin-bottom: 12px !important;
            }

            /* Prevent modal scrolling */
            .modal-content {
                max-height: 85vh;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            .modal-content > form {
                display: flex;
                flex-direction: column;
            }

            .form-buttons {
                position: relative;
                bottom: 0;
                padding-top: var(--spacing-md);
                border-top: 1px solid var(--gray-200);
            }
        }

        /* TABLET: 768px - 1024px */
        @media (min-width: 768px) and (max-width: 1024px) {
            .app-container {
                flex-direction: row;
            }

            /* Subtitle op tablet: ellipsis bij te weinig ruimte */
            .section-page-header .subtitle {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .sidebar {
                width: 196px;
                position: fixed;
                left: 0;
                top: 0;
                height: 100vh;
                overflow-y: auto;
                display: flex;
                flex-direction: column;
                z-index: 30;
                padding-bottom: 20px;
            }

            body.sidebar-collapsed .sidebar {
                width: 48px;
                min-width: 48px;
                max-width: 48px;
                border-right: 1px solid rgba(255,255,255,0.10);
                box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
            }

            body.sidebar-collapsed .sidebar-brand {
                padding: 10px 5px;
                justify-content: center;
                position: relative;
            }

            body.sidebar-collapsed .sidebar-brand::after {
                content: '';
                position: absolute;
                inset: auto 8px 0;
                height: 1px;
                background: rgba(255,255,255,0.08);
            }

            body.sidebar-collapsed .sidebar-collapse-btn {
                width: 44px;
                height: 44px;
                border-radius: 12px;
                box-shadow: 0 6px 16px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.84);
            }

            body.sidebar-collapsed .sidebar-collapse-btn svg {
                transform: rotate(180deg);
            }

            body.sidebar-collapsed .sidebar > :not(.sidebar-brand) {
                display: none !important;
            }

            body.sidebar-collapsed .sidebar .nav-link {
                padding-left: 11px;
                padding-right: 11px;
                justify-content: center;
                gap: 0;
            }

            body.sidebar-collapsed .sidebar .nav-link svg,
            body.sidebar-collapsed .sidebar .nav-group-btn svg {
                margin: 0 auto;
                flex-shrink: 0;
            }

            body.sidebar-collapsed .sidebar .nav-sidebar-footer {
                display: flex !important;
                padding: 10px 6px 12px;
                align-items: center;
                justify-content: center;
            }

            body.sidebar-collapsed .sidebar .sidebar-identity-dock {
                width: 42px;
                padding: 4px;
                gap: 0;
            }

            body.sidebar-collapsed .sidebar .sidebar-account-button {
                width: 32px;
                height: 32px;
                min-height: 32px;
                grid-template-columns: 1fr;
                padding: 0;
                justify-items: center;
            }

            body.sidebar-collapsed .sidebar .sidebar-account-button__copy,
            body.sidebar-collapsed .sidebar .sidebar-account-button__glyph,
            body.sidebar-collapsed .sidebar .sidebar-identity-dock__controls {
                display: none !important;
            }

            body.sidebar-collapsed .main-content {
                --sidebar-offset: 48px;
                --shell-gap: 0px;
                margin-left: 48px;
            }

            body.sidebar-collapsed .app-header {
                display: none !important;
            }

            .sidebar .brand,
            .sidebar .nav-group-label,
            .sidebar .nav-sidebar-footer .user-email {
                letter-spacing: 0.01em;
            }

            .main-content {
                --sidebar-offset: 196px;
            }

            .app-header {
                display: none !important;
            }

            .app-content {
                padding: 28px 28px 48px !important;
            }

            .section.active {
                max-width: 1360px;
            }

            .nav-tabs {
                display: none !important;
            }

            .sidebar.hidden-tablet {
                display: none;
            }

            body.sidebar-collapsed .sidebar {
                width: 44px;
                min-width: 44px;
                max-width: 44px;
                overflow: hidden;
                display: flex !important;
                transform: translateX(0) !important;
            }

            body.sidebar-collapsed .sidebar > :not(.sidebar-brand) {
                display: none !important;
            }

            body.sidebar-collapsed .sidebar-brand {
                position: relative;
                width: 100%;
                padding: 10px 4px;
                margin-bottom: 0;
                border-bottom: none;
                justify-content: center;
                overflow: visible;
            }

            body.sidebar-collapsed .logo {
                display: none;
            }

            body.sidebar-collapsed .sidebar-collapse-btn {
                position: static;
                margin: 0 auto;
                transform: none;
                flex-shrink: 0;
            }

            body.sidebar-collapsed .sidebar-collapse-btn svg {
                transform: rotate(180deg);
            }

            body.sidebar-collapsed .main-content {
                --sidebar-offset: 44px;
                --shell-gap: 0px;
                margin-left: 44px;
            }

            body.sidebar-collapsed .app-header {
                display: none !important;
            }

            .modal-content {
                max-width: 600px;
            }

            .grid-2 {
                grid-template-columns: 1fr 1fr;
            }

            /* Tablet: geef content opnieuw lucht; cards mogen naast elkaar vanaf voldoende ruimte */
            #propertiesList.grid-2 {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
            }

            .doc-upload-grid {
                grid-template-columns: minmax(360px, 1.05fr) minmax(0, 0.95fr);
                gap: 20px;
                align-items: start;
            }

            .data-table-wrap {
                overflow-x: auto;
            }

            .grid-3 {
                grid-template-columns: repeat(2, 1fr);
            }

            .grid-4 {
                grid-template-columns: repeat(2, 1fr);
            }

            .metrics-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            /* Tablet heeft ruimte voor 4 kolommen in quick actions */
            .quick-actions {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* DESKTOP: 1025px+ */
        @media (min-width: 1025px) {
            .app-container {
                flex-direction: row;
            }

            .sidebar {
                width: 220px;
                position: fixed;
                left: 0;
                top: 0;
                height: 100vh;
                overflow-y: auto;
                display: flex;
                flex-direction: column;
                z-index: 30;
            }

            body.sidebar-collapsed .sidebar {
                width: 48px;
                min-width: 48px;
                max-width: 48px;
                border-right: 1px solid rgba(255,255,255,0.10);
                box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
            }

            body.sidebar-collapsed .sidebar-brand {
                padding: 10px 5px;
                justify-content: center;
                position: relative;
            }

            body.sidebar-collapsed .sidebar-brand::after {
                content: '';
                position: absolute;
                inset: auto 8px 0;
                height: 1px;
                background: rgba(255,255,255,0.08);
            }

            body.sidebar-collapsed .sidebar-collapse-btn {
                width: 44px;
                height: 44px;
                border-radius: 12px;
                box-shadow: 0 6px 16px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.84);
            }

            body.sidebar-collapsed .sidebar-collapse-btn svg {
                transform: rotate(180deg);
            }

            body.sidebar-collapsed .sidebar > :not(.sidebar-brand) {
                display: none !important;
            }

            body.sidebar-collapsed .main-content {
                --sidebar-offset: 48px;
                --shell-gap: 0px;
                margin-left: 48px;
            }

            body.sidebar-collapsed .sidebar .nav-sidebar-footer {
                display: none !important;
            }

            .main-content {
                --sidebar-offset: 220px;
                padding-top: 0;
            }

            .app-header {
                position: sticky;
                top: 0;
                z-index: 25;
                display: none !important;
            }

            .app-header .header-logo {
                display: none;
            }

            .app-content {
                padding: var(--sp-8) !important;
            }

            .nav-tabs {
                display: none !important;
            }

            .sidebar.hidden-desktop {
                display: none;
            }

            body.sidebar-collapsed .sidebar {
                width: 44px;
                min-width: 44px;
                max-width: 44px;
                overflow: hidden;
                display: flex !important;
                transform: translateX(0) !important;
            }

            body.sidebar-collapsed .sidebar > :not(.sidebar-brand) {
                display: none !important;
            }

            body.sidebar-collapsed .sidebar-brand {
                position: relative;
                width: 100%;
                padding: 10px 4px;
                margin-bottom: 0;
                border-bottom: none;
                justify-content: center;
                overflow: visible;
            }

            body.sidebar-collapsed .logo {
                display: none;
            }

            body.sidebar-collapsed .sidebar-collapse-btn {
                position: static;
                margin: 0 auto;
                transform: none;
                flex-shrink: 0;
            }

            body.sidebar-collapsed .sidebar-collapse-btn svg {
                transform: rotate(180deg);
            }

            body.sidebar-collapsed .main-content {
                --sidebar-offset: 44px;
                --shell-gap: 0px;
                margin-left: 44px;
            }

            body.sidebar-collapsed .app-header {
                display: none !important;
            }

            .modal-content {
                max-width: 600px;
            }

            .grid {
                gap: 24px;
            }

            .grid-2 {
                grid-template-columns: 1fr 1fr;
            }

            .grid-3 {
                grid-template-columns: repeat(3, 1fr);
            }

            .grid-4 {
                grid-template-columns: repeat(4, 1fr);
            }

            .metrics-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 20px;
            }

            #propertiesList.grid-2 {
                grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
            }

            .quick-actions {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        /* ===== HEADER ===== */
        .app-header {
            background: linear-gradient(180deg, #1B3360 0%, #142847 100%);
            border-bottom: 1px solid rgba(255,255,255,0.08);
            padding: 0 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            height: 60px;
            min-height: 60px;
            flex-shrink: 0;
            width: 100%;
            max-width: 100%;
            overflow: hidden;
            box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 24px rgba(10, 18, 34, 0.10);
        }
        /* Display flex ook expliciet op desktop (1025px+) */
        @media (min-width: 1025px) {
            .app-header {
                display: flex;
            }
        }

        .app-header .header-logo {
            flex: 1;
            min-width: 0;
            min-height: 44px;
            cursor: pointer;
            align-items: center;
        }

        .app-header .brand-logo__mark {
            width: 28px;
            height: 28px;
        }

        .app-header .brand-logo__word {
            font-size: 20px;
            color: #FFFFFF;
        }

        .billing-workspace {
            display: grid;
            gap: var(--sp-5);
        }

        .account-settings-card {
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--bg-card);
            box-shadow: var(--shadow-card);
            padding: clamp(18px, 3vw, 24px);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--sp-4);
        }

        .account-settings-card--stacked {
            align-items: flex-start;
            flex-direction: column;
        }

        .account-settings-card[hidden],
        .account-settings-section-title[hidden] {
            display: none !important;
        }

        .account-settings-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--sp-4);
            width: 100%;
        }

        .account-settings-row__copy {
            min-width: 0;
        }

        .account-settings-row--language {
            align-items: center;
        }

        .account-language-switcher.estmate-language-switcher {
            background: var(--bg-subtle);
            border-color: var(--border-color);
            box-shadow: none;
        }

        .account-language-switcher .estmate-language-btn {
            color: var(--text-primary);
        }

        .account-settings-row__title {
            margin: 0 0 4px;
            color: var(--text-primary);
            font-size: 15px;
            font-weight: var(--weight-bold);
        }

        .account-settings-row__meta {
            margin: 0;
            color: var(--text-secondary);
            font-size: var(--text-sm);
            line-height: 1.5;
        }

        .account-settings-toggle {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: var(--weight-semibold);
            white-space: nowrap;
        }

        .account-settings-toggle input {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }

        @media (max-width: 640px) {
            .account-settings-row {
                align-items: flex-start;
                flex-direction: column;
            }
        }

        .account-settings-card__identity {
            display: flex;
            align-items: center;
            gap: var(--sp-3);
            min-width: 0;
        }

        .account-settings-card__avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            background: var(--primary);
            color: #fff;
            font-weight: var(--weight-bold);
            letter-spacing: 0.02em;
        }

        .account-settings-card__eyebrow,
        .account-settings-section-title {
            font-size: var(--text-xs);
            font-weight: var(--weight-bold);
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .account-settings-card__name {
            margin: 3px 0 2px;
            font-size: 22px;
            color: var(--text-primary);
        }

        .account-settings-card__meta {
            margin: 0;
            color: var(--text-secondary);
            line-height: 1.45;
        }

        .account-settings-section-title {
            margin: 4px 0 -10px;
        }

        .billing-hero {
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--bg-card);
            box-shadow: var(--shadow-card);
            padding: clamp(20px, 4vw, 32px);
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: var(--sp-5);
            align-items: center;
        }

        .billing-hero__eyebrow,
        .billing-plan-card__eyebrow,
        .billing-limit__label {
            font-size: var(--text-xs);
            font-weight: var(--weight-bold);
            letter-spacing: 0.14em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .billing-hero__title {
            margin: 6px 0 8px;
            font-size: clamp(26px, 4vw, 36px);
            color: var(--text-primary);
        }

        .billing-hero__copy {
            margin: 0;
            color: var(--text-secondary);
            max-width: 720px;
            line-height: 1.6;
        }

        .billing-status-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 38px;
            padding: 8px 14px;
            border-radius: 999px;
            border: 1px solid rgba(27, 51, 96, 0.14);
            background: rgba(27, 51, 96, 0.06);
            color: var(--primary);
            font-weight: var(--weight-bold);
            white-space: nowrap;
        }

        .billing-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: var(--sp-4);
        }

        .billing-plan-card {
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--bg-card);
            box-shadow: var(--shadow-card);
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .billing-plan-card.is-current {
            border-color: rgba(15, 31, 61, 0.38);
            box-shadow: 0 18px 40px rgba(15, 31, 61, 0.10);
        }

        .billing-plan-card.is-recommended {
            border-color: rgba(217, 119, 6, 0.46);
        }

        .billing-plan-card__head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: var(--sp-3);
        }

        .billing-plan-card__name {
            margin: 4px 0 0;
            font-size: 22px;
            color: var(--text-primary);
        }

        .billing-plan-card__price {
            font-size: 30px;
            font-weight: var(--weight-bold);
            color: var(--primary);
        }

        .billing-plan-card__price span {
            font-size: var(--text-sm);
            color: var(--text-secondary);
            font-weight: var(--weight-semibold);
        }

        .billing-plan-card__list {
            display: grid;
            gap: 8px;
            margin: 0;
            padding: 0;
            list-style: none;
            color: var(--text-secondary);
            font-size: var(--text-sm);
            line-height: 1.45;
        }

        .billing-plan-card__list li {
            display: flex;
            gap: 8px;
            align-items: flex-start;
        }

        .billing-plan-card__list li::before {
            content: "";
            width: 7px;
            height: 7px;
            border-radius: 50%;
            margin-top: 7px;
            background: var(--brand-gold);
            flex: 0 0 auto;
        }

        .billing-limits {
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--bg-card);
            padding: 20px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: var(--sp-4);
        }

        .billing-limit {
            display: grid;
            gap: 8px;
        }

        .billing-limit__row {
            display: flex;
            justify-content: space-between;
            gap: var(--sp-3);
            font-weight: var(--weight-bold);
            color: var(--text-primary);
        }

        .billing-limit__track {
            height: 8px;
            border-radius: 999px;
            background: var(--gray-200);
            overflow: hidden;
        }

        .billing-limit__fill {
            display: block;
            height: 100%;
            width: 0%;
            border-radius: inherit;
            background: var(--primary);
        }
        .billing-limit__progress {
            display: block;
            width: 100%;
            height: 8px;
            overflow: hidden;
            border: 0;
            border-radius: 999px;
            background: var(--gray-200);
        }
        .billing-limit__progress::-webkit-progress-bar { background: var(--gray-200); }
        .billing-limit__progress::-webkit-progress-value {
            border-radius: 999px;
            background: var(--primary);
        }
        .billing-limit__progress::-moz-progress-bar {
            border-radius: 999px;
            background: var(--primary);
        }

        .billing-note {
            border-radius: 10px;
            border: 1px solid rgba(217, 119, 6, 0.24);
            background: rgba(217, 119, 6, 0.08);
            color: var(--text-primary);
            padding: 14px 16px;
            font-size: var(--text-sm);
            line-height: 1.55;
        }

        .billing-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: auto;
        }

        .mail-inbox-workspace {
            display: grid;
            gap: var(--sp-4);
        }

        .mail-inbox-card {
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--bg-card);
            box-shadow: var(--shadow-card);
            padding: clamp(18px, 3vw, 26px);
            display: grid;
            gap: var(--sp-4);
        }

        .mail-inbox-card__head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: var(--sp-4);
        }

        .mail-inbox-card__title {
            margin: 4px 0 6px;
            font-size: 24px;
            color: var(--text-primary);
        }

        .mail-inbox-card__copy {
            margin: 0;
            color: var(--text-secondary);
            line-height: 1.55;
            max-width: 760px;
        }

        .mail-inbox-address {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: var(--sp-3);
            align-items: center;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid rgba(15, 31, 61, 0.14);
            background: rgba(15, 31, 61, 0.04);
        }

        .mail-inbox-address code {
            color: var(--primary);
            font-size: var(--text-lg);
            font-weight: var(--weight-bold);
            overflow-wrap: anywhere;
        }

        .mail-inbox-grid {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: var(--sp-4);
        }

        .mail-inbox-panel {
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--bg-subtle);
            padding: 14px;
            min-width: 0;
        }

        .mail-inbox-panel__title {
            margin: 0 0 10px;
            font-size: var(--text-sm);
            font-weight: var(--weight-bold);
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .mail-inbox-list {
            display: grid;
            gap: 8px;
        }

        .mail-inbox-item {
            display: grid;
            gap: 4px;
            padding: 10px 0;
            border-top: 1px solid var(--border-subtle);
        }

        .mail-inbox-item:first-child {
            border-top: 0;
            padding-top: 0;
        }

        .mail-inbox-item__main {
            display: flex;
            justify-content: space-between;
            gap: var(--sp-3);
            color: var(--text-primary);
            font-weight: var(--weight-bold);
        }

        .mail-inbox-item__meta {
            color: var(--text-secondary);
            font-size: var(--text-sm);
            line-height: 1.45;
        }

        .mail-inbox-empty {
            margin: 0;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .mail-inbox-note {
            border-radius: 10px;
            border: 1px solid rgba(217, 119, 6, 0.24);
            background: rgba(217, 119, 6, 0.07);
            color: var(--text-primary);
            padding: 12px 14px;
            font-size: var(--text-sm);
            line-height: 1.5;
        }

        .mail-source-badge {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 2px 8px;
            background: rgba(15, 31, 61, 0.06);
            color: var(--primary);
            font-size: var(--text-xs);
            font-weight: var(--weight-bold);
            white-space: nowrap;
        }
        .mail-source-badge.is-success {
            background: var(--success-light);
            color: var(--success-text);
        }
        .mail-source-badge.is-muted {
            background: var(--gray-100);
            color: var(--text-muted);
        }

        @media (max-width: 900px) {
            .account-settings-card {
                align-items: flex-start;
                flex-direction: column;
            }
            .billing-hero,
            .billing-limits,
            .billing-grid,
            .mail-inbox-grid,
            .mail-inbox-address {
                grid-template-columns: 1fr;
            }
            .mail-inbox-card__head {
                flex-direction: column;
            }
            .billing-status-pill {
                width: fit-content;
            }
        }

        .header-icon {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            background: rgba(255,255,255,0.12);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: rgba(255,255,255,0.85);
            transition: all 0.18s;
            flex-shrink: 0;
            border: none;
        }

        .header-icon:active {
            background: rgba(255,255,255,0.22);
            transform: scale(0.92);
        }

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

        /* ===== SIDEBAR (Desktop + Tablet) ===== */
        .sidebar {
            background: var(--navy);
            border-right: none;
            padding: 0;
            display: flex;
            flex-direction: column;
            /* Sidebar never causes overflow */
            overflow: hidden;
            flex-shrink: 0;
        }

        .sidebar-brand {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0 12px 0 0;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            margin-bottom: 0;
        }

        .logo {
            appearance: none;
            flex: 1;
            display: flex;
            align-items: center;
            padding: 24px 0 20px 20px;
            border: 0;
            background: transparent;
            cursor: pointer;
            text-align: left;
        }

        .logo:hover .brand-logo__word,
        .logo:focus-visible .brand-logo__word {
            opacity: 0.86;
        }

        .sidebar-brand .brand-logo__mark {
            width: 34px;
            height: 34px;
        }

        .sidebar-brand .brand-logo__word {
            font-size: 22px;
            color: #FFFFFF;
        }

        .sidebar-collapse-btn {
            appearance: none;
            width: 44px;
            height: 44px;
            border: none;
            border-radius: 0;
            background: transparent;
            color: rgba(255,255,255,0.78);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: none;
            transition: color .16s ease, transform .16s ease, opacity .16s ease;
            flex-shrink: 0;
            position: relative;
            z-index: 2;
            padding: 0;
            opacity: 0.92;
        }

        .sidebar-collapse-btn:hover,
        .sidebar-collapse-btn:focus-visible {
            background: transparent;
            color: #ffffff;
            transform: translateX(-1px);
            opacity: 1;
        }

        .sidebar-collapse-btn svg {
            width: 18px;
            height: 18px;
            stroke-width: 2.7;
            filter: none;
        }

        .sidebar-collapse-btn .sidebar-collapse-label {
            display: none;
        }

        body.sidebar-collapsed .sidebar-brand {
            justify-content: center;
        }

        body.sidebar-collapsed .sidebar .logo {
            display: none;
        }

        body.sidebar-collapsed .sidebar .nav-sidebar-footer {
            display: none !important;
        }

        .logo-text {
            font-size: 22px;
            font-weight: 900;
            color: #ffffff;
            letter-spacing: -1px;
        }

        .logo-text-accent {
            color: #FFFFFF;
        }

        .nav-section-label {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255,255,255,0.3);
            padding: 16px 24px 6px;
        }

        .nav-menu {
            list-style: none;
            flex: 1;
            overflow-y: auto;
            padding: 12px 0 8px;
            scrollbar-width: thin;
            scrollbar-color: rgba(255,255,255,0.12) transparent;
        }
        .nav-menu::-webkit-scrollbar {
            width: 3px;
        }
        .nav-menu::-webkit-scrollbar-track {
            background: transparent;
        }
        .nav-menu::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.12);
            border-radius: 2px;
        }
        .nav-menu::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.25);
        }

        .nav-item { margin: 0; }

        .nav-link {
            display: grid;
            grid-template-columns: 12px 16px minmax(0, 1fr);
            align-items: center;
            column-gap: 8px;
            padding: 11px 16px;
            min-height: 46px;
            color: rgba(255,255,255,0.55);
            text-decoration: none;
            cursor: pointer;
            border-radius: 0;
            transition: all 0.15s ease;
            font-size: 13.5px;
            font-weight: 500;
            background: none;
            border: none;
            border-left: 3px solid transparent;
            width: 100%;
            text-align: left;
            position: relative;
        }

        .nav-link svg {
            grid-column: 2;
            opacity: 0.6;
            flex-shrink: 0;
            transition: opacity 0.15s;
        }
        .nav-link::before {
            content: '';
            grid-column: 1;
            width: 12px;
        }

        .nav-link:hover {
            background: rgba(255,255,255,0.07);
            color: rgba(255,255,255,0.9);
            border-left-color: rgba(255,255,255,0.2);
        }

        .nav-link.nav-link-disabled {
            opacity: 0.4;
            cursor: default;
        }

        .nav-link.nav-link-disabled:hover {
            transform: none;
        }

        .nav-link-soon {
            font-size: 9px;
            margin-left: auto;
            color: rgba(255,255,255,0.3);
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .nav-link:hover svg { opacity: 1; }

        .nav-link.active {
            background: rgba(255,255,255,0.10);
            color: rgba(255,255,255,0.95);
            font-weight: 600;
            border-left-color: rgba(255,255,255,0.85);
        }

        .nav-link.active svg { opacity: 1; stroke: rgba(255,255,255,0.95); }
        .nav-link-label {
            grid-column: 3;
            min-width: 0;
        }
        .nav-link-label--with-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            width: fit-content;
            max-width: 100%;
        }
        .nav-link-badge {
            display: none;
            position: static;
            min-width: 20px;
            height: 20px;
            padding: 0 6px;
            border-radius: 999px;
            background: rgba(245, 158, 11, 0.18);
            border: 1px solid rgba(245, 158, 11, 0.24);
            color: #f8d08a;
            font-size: 11px;
            font-weight: 800;
            line-height: 1;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .nav-link-badge--danger {
            background: rgba(192, 57, 43, 0.20);
            border-color: rgba(192, 57, 43, 0.32);
            color: #f3b7ae;
        }

        .nav-sidebar-footer {
            padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
            border-top: 1px solid rgba(255,255,255,0.07);
            margin-top: auto;
        }

        .sidebar-identity-dock {
            display: grid;
            gap: 8px;
            width: 100%;
            padding: 8px;
            border: 1px solid rgba(255,255,255,0.10);
            border-radius: 8px;
            background: linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.045));
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 34px rgba(4, 13, 32, 0.18);
        }

        .sidebar-account-button {
            width: 100%;
            display: grid;
            grid-template-columns: 32px minmax(0, 1fr) 18px;
            align-items: center;
            gap: 9px;
            min-height: 50px;
            margin: 0;
            padding: 7px 7px;
            border: 1px solid transparent;
            border-radius: 8px;
            background: transparent;
            color: inherit;
            cursor: pointer;
            text-align: left;
            transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
        }

        .sidebar-account-button:hover,
        .sidebar-account-button:focus-visible,
        .sidebar-account-button.active {
            background: rgba(255,255,255,0.105);
            border-color: rgba(255,255,255,0.13);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
        }

        .sidebar-account-button:hover {
            transform: translateY(-1px);
        }

        .sidebar-account-button:focus-visible {
            outline: 2px solid rgba(255,255,255,0.78);
            outline-offset: 2px;
        }

        .sidebar-account-button__copy {
            min-width: 0;
            display: grid;
            gap: 2px;
        }

        .sidebar-account-button .user-email,
        .sidebar-account-button .sidebar-auth-status {
            margin: 0 !important;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .sidebar-account-button__avatar {
            position: relative;
            display: inline-grid;
            grid-template: 1fr / 1fr;
            width: 32px;
            height: 32px;
            place-items: center;
            flex-shrink: 0;
        }

        .sidebar-account-button__avatar .sidebar-avatar,
        .sidebar-account-button__avatar .sidebar-avatar-fallback {
            grid-area: 1 / 1;
        }

        .sidebar-account-button__avatar .sidebar-avatar.u-display-none {
            display: none !important;
        }

        .sidebar-account-button__avatar .sidebar-avatar:not(.u-display-none) + .sidebar-avatar-fallback {
            display: none !important;
        }

        .sidebar-account-button__glyph {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: rgba(255,255,255,0.42);
            transition: color 0.16s ease, transform 0.16s ease;
        }

        .sidebar-account-button:hover .sidebar-account-button__glyph,
        .sidebar-account-button.active .sidebar-account-button__glyph {
            color: rgba(255,255,255,0.76);
            transform: translateX(1px);
        }

        .sidebar-identity-dock__controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            min-width: 0;
        }

        .sidebar-identity-dock__actions {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            flex: 0 0 auto;
        }

        .nav-sidebar-footer .footer-language-switcher {
            display: inline-flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            min-width: 0;
            flex: 1 1 auto;
            gap: 2px;
        }

        .nav-sidebar-footer .footer-language-switcher.estmate-language-switcher,
        .nav-sidebar-footer .footer-language-switcher .estmate-language-switcher {
            background: rgba(6, 18, 43, 0.20) !important;
            border: 1px solid rgba(255,255,255,0.09) !important;
            border-radius: 8px !important;
            box-shadow: none !important;
            padding: 2px !important;
            width: auto !important;
            white-space: nowrap !important;
            gap: 1px !important;
            justify-content: flex-start !important;
        }

        .nav-sidebar-footer .footer-language-switcher .estmate-language-switcher,
        .nav-sidebar-footer .footer-language-switcher.estmate-language-switcher,
        .nav-sidebar-footer .footer-link {
            max-width: 100%;
        }

        .nav-sidebar-footer .footer-language-switcher.estmate-language-switcher .estmate-language-btn,
        .nav-sidebar-footer .footer-language-switcher .estmate-language-btn {
            color: rgba(255,255,255,0.58) !important;
            min-width: 32px !important;
            min-height: 30px !important;
            padding: 0 7px !important;
            border-radius: 6px !important;
            background: transparent !important;
            border: none !important;
            text-decoration: none !important;
            box-shadow: none !important;
            font-size: 11px !important;
            font-weight: 760 !important;
            letter-spacing: 0 !important;
            transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease !important;
        }

        .nav-sidebar-footer .footer-language-switcher.estmate-language-switcher .estmate-language-btn:hover,
        .nav-sidebar-footer .footer-language-switcher .estmate-language-btn:hover {
            background: rgba(255,255,255,0.075) !important;
            color: rgba(255,255,255,0.88) !important;
        }

        .nav-sidebar-footer .footer-language-switcher.estmate-language-switcher .estmate-language-btn.is-active,
        .nav-sidebar-footer .footer-language-switcher .estmate-language-btn.is-active {
            background: rgba(255,255,255,0.14) !important;
            color: #fff !important;
            font-weight: 780 !important;
            text-decoration: none !important;
        }

        .nav-sidebar-footer .footer-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 34px;
            min-width: 34px;
            height: 34px;
            min-height: 34px;
            padding: 0;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.09);
            background: rgba(255,255,255,0.065);
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            color: rgba(255,255,255,0.58);
            line-height: 1.3;
            transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
        }

        .nav-sidebar-footer .footer-link svg {
            flex-shrink: 0;
        }

        .nav-sidebar-footer .footer-link:hover {
            background: rgba(255,255,255,0.11);
            border-color: rgba(255,255,255,0.18);
            color: rgba(255,255,255,0.88);
            transform: translateY(-1px);
        }
        .nav-sidebar-footer .footer-link.active {
            background: rgba(255,255,255,0.15);
            border-color: rgba(255,255,255,0.28);
            color: rgba(255,255,255,0.96);
        }
        .nav-sidebar-footer .footer-link.active svg {
            opacity: 1;
            stroke: rgba(255,255,255,0.96);
        }

        .nav-sidebar-footer .footer-link--danger {
            color: rgba(255,255,255,0.42);
        }

        .nav-sidebar-footer .footer-link--danger:hover {
            background: rgba(192, 57, 43, 0.16);
            border-color: rgba(248, 113, 113, 0.22);
            color: #fecaca;
        }

        /* Final founder-shell overrides for collapsed navigation */
        body.sidebar-collapsed .sidebar {
            width: 64px !important;
            min-width: 64px !important;
            max-width: 64px !important;
        }

        body.sidebar-collapsed .main-content {
            margin-left: 64px !important;
            --sidebar-offset: 64px !important;
        }

        body.sidebar-collapsed .sidebar .nav-menu,
        body.sidebar-collapsed .sidebar .nav-sidebar-footer {
            display: block !important;
        }

        body.sidebar-collapsed .sidebar .nav-menu {
            padding: 6px 0;
            overflow: visible;
        }

        body.sidebar-collapsed .sidebar .nav-item,
        body.sidebar-collapsed .sidebar .nav-group {
            margin: 0;
        }

        body.sidebar-collapsed .sidebar .nav-link,
        body.sidebar-collapsed .sidebar .nav-group-btn {
            display: flex !important;
            width: 44px;
            min-width: 44px;
            min-height: 44px;
            margin: 0 auto 6px;
            padding: 0 !important;
            justify-content: center !important;
            gap: 0 !important;
            border-radius: 14px;
            border-left: none !important;
            font-size: 0 !important;
        }

        body.sidebar-collapsed .sidebar .nav-link svg,
        body.sidebar-collapsed .sidebar .nav-group-btn svg {
            grid-column: auto;
            opacity: 0.92;
            margin: 0;
        }
        body.sidebar-collapsed .sidebar .nav-link::before {
            display: none !important;
        }

        body.sidebar-collapsed .sidebar .nav-group-toggle,
        body.sidebar-collapsed .sidebar .nav-group-label,
        body.sidebar-collapsed .sidebar .nav-sub,
        body.sidebar-collapsed .sidebar .nav-link span:not(#reviewBadgeNav):not(#complianceBadgeNav) {
            display: none !important;
        }

        body.sidebar-collapsed .sidebar .nav-group-items {
            display: none !important;
        }

        body.sidebar-collapsed .sidebar .nav-sidebar-footer {
            padding: 10px 10px 12px;
        }

        body.sidebar-collapsed .sidebar .sidebar-identity-dock {
            display: grid !important;
            width: 42px;
            padding: 4px;
            gap: 0;
        }

        body.sidebar-collapsed .sidebar .sidebar-account-button {
            width: 32px;
            height: 32px;
            min-height: 32px;
            grid-template-columns: 1fr;
            padding: 0;
            justify-items: center;
        }

        body.sidebar-collapsed .sidebar .sidebar-account-button__copy,
        body.sidebar-collapsed .sidebar .sidebar-account-button__glyph,
        body.sidebar-collapsed .sidebar .sidebar-identity-dock__controls {
            display: none !important;
        }

        body.sidebar-collapsed .sidebar-brand {
            flex-direction: column;
            justify-content: center;
            gap: 6px;
            padding: 10px 0 8px;
        }

        body.sidebar-collapsed .sidebar .logo {
            display: flex !important;
            flex: 0 0 auto;
            width: 44px;
            height: 44px;
            padding: 0;
            align-items: center;
            justify-content: center;
            border-radius: 14px;
        }

        body.sidebar-collapsed .sidebar .logo:hover,
        body.sidebar-collapsed .sidebar .logo:focus-visible {
            background: rgba(255,255,255,0.08);
        }

        body.sidebar-collapsed .sidebar .logo .brand-logo {
            gap: 0;
        }

        body.sidebar-collapsed .sidebar .logo .brand-logo__word {
            display: none;
        }

        body.sidebar-collapsed .sidebar .logo .brand-logo__mark {
            width: 31px;
            height: 31px;
        }

        body.sidebar-collapsed .sidebar-collapse-btn {
            width: 44px;
            height: 44px;
            border-radius: 10px;
        }

        .nav-sidebar-footer .user-email {
            font-size: 11px;
            color: rgba(255,255,255,0.6);
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .nav-sidebar-footer .signout-btn {
            font-size: 12px;
            color: rgba(255,255,255,0.5);
            background: none;
            border: none;
            cursor: pointer;
            padding: 0;
            transition: color 0.15s;
        }

        .nav-sidebar-footer .signout-btn:hover { color: rgba(255,255,255,0.7); }

        .nav-icon {
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background-color: currentColor;
            flex-shrink: 0;
        }

        /* ===== MOBILE BOTTOM TABS ===== */
        .nav-tabs {
            background: var(--navy);
            border-top: none;
            display: flex;
            padding: 0;
            box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
            width: 100%;
        }

        .nav-tab {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 3px;
            padding: 10px 0 8px;
            cursor: pointer;
            color: rgba(255,255,255,0.78);
            text-decoration: none;
            border: none;
            background: none;
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.04em;
            transition: color 0.2s cubic-bezier(0.22,1,0.36,1);
            min-height: 44px;
            font-family: var(--font-body);
        }
        .nav-tab.active {
            color: #FFFFFF;
            background: #244471;
        }
        .nav-tab:hover:not(.active) {
            color: #FFFFFF;
        }

        .nav-tab span {
            font-size: 20px;
        }

        /* Hamburger drawer */
        .drawer-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            z-index: 200;
        }
        .drawer-overlay.active { display: block; }

        .drawer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-card);
            border-radius: 20px 20px 0 0;
            padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
            z-index: 201;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
            max-height: 80vh;
            overflow-y: auto;
        }
        .drawer.active { transform: translateY(0); }
        .drawer.active ~ #feedbackTrigger { display: none !important; }

        .drawer-handle {
            width: 40px;
            height: 4px;
            background: var(--gray-300);
            border-radius: 2px;
            margin: 0 auto 20px;
        }

        .drawer-title {
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--gray-400);
            margin-bottom: 12px;
        }

        .drawer-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            min-height: 48px;
            border-radius: 10px;
            cursor: pointer;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            transition: background 0.12s;
            justify-content: flex-start;
        }
        .drawer-item:hover, .drawer-item:active { background: var(--gray-100); }
        .drawer-item .drawer-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: 9px;
            background: var(--gray-100);
            flex-shrink: 0;
            color: var(--primary);
        }
        html.dark .drawer-item .drawer-icon { background: rgba(255,255,255,0.08); }
        .drawer-item .drawer-badge {
            margin-left: 6px;
            background: #C0392B;
            color: white;
            font-size: 10px;
            font-weight: 700;
            padding: 1px 6px;
            border-radius: 10px;
            line-height: 1.6;
        }

        .drawer-account-panel {
            display: grid;
            gap: 10px;
            margin-top: 8px;
            padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
            border-top: 1px solid var(--gray-100);
            background: linear-gradient(180deg, rgba(255,255,255,0), rgba(15,31,61,0.025));
        }

        .drawer-account-button {
            width: 100%;
            display: grid;
            grid-template-columns: 38px minmax(0, 1fr) 20px;
            align-items: center;
            gap: 10px;
            min-height: 62px;
            border: 1px solid var(--border-subtle);
            border-radius: 8px;
            background: var(--bg-card);
            color: var(--text-primary);
            padding: 11px 12px;
            text-align: left;
            cursor: pointer;
            transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.16s ease;
        }

        .drawer-account-button:hover,
        .drawer-account-button:focus-visible {
            border-color: rgba(15, 31, 61, 0.22);
            box-shadow: 0 12px 26px rgba(15, 31, 61, 0.08);
        }

        .drawer-account-button:hover {
            transform: translateY(-1px);
        }

        .drawer-account-button:focus-visible {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }

        .drawer-account-avatar {
            display: inline-grid;
            width: 38px;
            height: 38px;
            place-items: center;
            border: 1px solid rgba(15,31,61,0.12);
            border-radius: 999px;
            background: linear-gradient(180deg, rgba(27,51,96,0.10), rgba(27,51,96,0.045));
            color: var(--primary);
            font-size: 13px;
            font-weight: 780;
        }

        .drawer-account-button__copy {
            min-width: 0;
            display: grid;
            gap: 3px;
        }

        .drawer-account-button__glyph {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            transition: color 0.16s ease, transform 0.16s ease;
        }

        .drawer-account-button:hover .drawer-account-button__glyph {
            color: var(--primary);
            transform: translateX(1px);
        }

        .drawer-account-button__email {
            font-size: var(--text-sm);
            font-weight: 720;
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .drawer-account-button__status {
            font-size: var(--text-xs);
            color: #3D3A35;
        }

        .drawer-account-panel__controls {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-width: 0;
        }

        .drawer-language-switcher {
            flex: 1 1 auto;
            min-width: 0;
        }

        .drawer-language-switcher.estmate-language-switcher,
        .drawer-language-switcher .estmate-language-switcher {
            width: fit-content !important;
            max-width: 100% !important;
            gap: 2px !important;
            padding: 3px !important;
            border: 1px solid var(--border-subtle) !important;
            border-radius: 8px !important;
            background: rgba(15,31,61,0.035) !important;
            box-shadow: none !important;
        }

        .drawer-language-switcher.estmate-language-switcher .estmate-language-btn,
        .drawer-language-switcher .estmate-language-btn {
            min-width: 36px !important;
            min-height: 34px !important;
            border-radius: 6px !important;
            padding: 0 9px !important;
            color: var(--text-secondary) !important;
            font-size: 11px !important;
            font-weight: 760 !important;
            letter-spacing: 0 !important;
        }

        .drawer-language-switcher.estmate-language-switcher .estmate-language-btn.is-active,
        .drawer-language-switcher .estmate-language-btn.is-active {
            background: var(--primary) !important;
            color: #fff !important;
        }

        /* ===== LAYOUT BASE ===== */
        .app-container {
            display: flex;
            flex-direction: column;
            height: 100dvh;
            overflow: hidden;
            position: relative;
            width: 100%;
            max-width: 100%;
        }
        .main-content {
            flex: 1;
            min-height: 0;
            min-width: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            width: calc(100vw - var(--sidebar-offset, 0px));
            max-width: calc(100vw - var(--sidebar-offset, 0px));
            margin-left: var(--sidebar-offset, 0px);
            background: var(--bg-app);
            position: relative;
        }

        /* ===== CONTENT AREA ===== */
        .app-content {
            flex: 1;
            min-height: 0;
            min-width: 0;
            height: 0;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            overscroll-behavior-y: contain;
            scroll-behavior: smooth;
            padding: 24px;
            background: var(--bg-app);
            max-width: 100%;
            /* Prevent any child from causing horizontal scroll */
            contain: layout style;
        }

        @media (min-width: 768px) {
            .main-content {
                --shell-gap: clamp(14px, 1.8vw, 18px);
                --shell-right-gap: clamp(16px, 2vw, 24px);
                width: calc(100vw - var(--sidebar-offset, 0px) - var(--shell-gap) - var(--shell-right-gap));
                max-width: calc(100vw - var(--sidebar-offset, 0px) - var(--shell-gap) - var(--shell-right-gap));
                margin-left: calc(var(--sidebar-offset, 0px) + var(--shell-gap));
                padding: 10px var(--shell-right-gap) 18px 0;
            }

            .app-content {
                position: relative;
                z-index: 1;
                background: transparent;
                border: none;
                border-radius: 0;
                box-shadow: none;
                padding: clamp(24px, 2vw, 32px) !important;
            }

            .section-page-header {
                margin-bottom: 28px;
                padding: 4px 4px 18px;
            }

            .data-table-wrap {
                border-radius: 16px !important;
                box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
            }
        }

        html.dark .app-content {
            background: transparent;
            border: none;
            box-shadow: none;
        }

        .section {
            display: none;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
        }

        .app-content > .section.active {
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
        }

        .section.active {
            display: block;
            animation: fadeIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .dashboard-top-surface {
            background: transparent !important;
            border: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            padding: 0 !important;
            margin: 0 0 24px !important;
        }

        @media (min-width: 768px) {
            #dashboard > .dashboard-top-surface {
                background: transparent !important;
                border: none !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                padding: 0 !important;
                margin: 4px 0 24px !important;
            }
        }

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

        @keyframes slideUp {
            from {
                transform: translateY(100%);
            }
            to {
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0%, 100% { width: 30%; }
            50% { width: 70%; }
        }

        /* ===== TYPOGRAPHY ===== */
        h1 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--gray-900);
            letter-spacing: -0.5px;
        }

        h2 {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: var(--spacing-lg);
            color: var(--gray-900);
        }

        h3 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: var(--spacing-md);
            color: var(--gray-900);
        }

        .subtitle {
            font-size: 14px;
            color: var(--gray-500);
            margin-bottom: var(--spacing-lg);
        }

        /* ===== CARDS ===== */
        /* ===== OVERDRACHT MODULE ===== */
        .overdracht-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 20px;
        }
        .overdracht-tabs {
            display: flex;
            gap: 4px;
            background: var(--gray-100);
            border-radius: 10px;
            padding: 3px;
            margin-bottom: 20px;
            width: fit-content;
        }
        .overdracht-tab {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            min-height: 44px;
            font-size: 13px;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            background: none;
            color: var(--gray-500);
            transition: all 0.15s;
        }
        .overdracht-tab.active {
            background: var(--bg-card);
            color: var(--primary);
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }

        /* Dossier kaart */
        .dossier-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 20px;
            margin-bottom: 12px;
            transition: box-shadow 0.15s;
            cursor: pointer;
        }
        .dossier-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
        .dossier-card-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
        }
        .dossier-card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
        .dossier-card-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
        .dossier-status-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
        }
        .dossier-status-draft { background: rgba(27,51,96,0.10); color: #1B3360; }
        .dossier-status-progress { background: rgba(59,130,246,0.1); color: #2563eb; }
        .dossier-status-done { background: rgba(34,197,94,0.1); color: var(--success-text); }

        /* Progress ring / checklist */
        .dossier-progress-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
        .dossier-progress-bar-bg {
            flex: 1;
            height: 6px;
            background: var(--gray-100);
            border-radius: 3px;
            overflow: hidden;
        }
        .dossier-progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, #1B3360, #4A7BC8);
            border-radius: 3px;
            transition: width 0.4s ease;
        }
        .dossier-progress-bar {
            display: block;
            flex: 1;
            height: 6px;
            overflow: hidden;
            border: 0;
            border-radius: 3px;
            background: var(--gray-100);
        }
        .dossier-progress-bar::-webkit-progress-bar { background: var(--gray-100); }
        .dossier-progress-bar::-webkit-progress-value {
            border-radius: 3px;
            background: linear-gradient(90deg, #1B3360, #4A7BC8);
        }
        .dossier-progress-bar::-moz-progress-bar {
            border-radius: 3px;
            background: linear-gradient(90deg, #1B3360, #4A7BC8);
        }
        .dossier-progress-pct { font-size: 12px; font-weight: 700; color: var(--gray-500); min-width: 32px; text-align: right; }

        /* Checklist items in dossier kaart */
        .dossier-checklist { display: flex; flex-wrap: wrap; gap: 8px; }
        .dossier-checklist-item {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 12px;
            color: var(--gray-500);
            background: var(--gray-50, #f9fafb);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 4px 10px;
        }
        .dossier-checklist-item.done { color: var(--success-text); border-color: rgba(34,197,94,0.25); background: rgba(34,197,94,0.07); }
        .dossier-checklist-item.done svg { color: var(--success-text); }
        .dossier-checklist-item svg { flex-shrink: 0; }

        /* Wizard */
        .wizard-progress-bar {
            height: 4px;
            background: var(--gray-100);
            border-radius: 2px;
            overflow: hidden;
            margin-bottom: 8px;
        }
        .wizard-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #1B3360, #4A7BC8);
            border-radius: 2px;
            transition: width 0.35s ease;
        }
        .wizard-progress-fill--step-1 { width: 16.6667%; }
        .wizard-progress-fill--step-2 { width: 33.3333%; }
        .wizard-progress-fill--step-3 { width: 50%; }
        .wizard-progress-fill--step-4 { width: 66.6667%; }
        .wizard-progress-fill--step-5 { width: 83.3333%; }
        .wizard-progress-fill--step-6 { width: 100%; }
        .wizard-steps {
            display: flex;
            justify-content: space-between;
        }
        .wizard-step-label {
            font-size: 10px;
            color: var(--gray-400);
            font-weight: 500;
            text-align: center;
            transition: color 0.2s;
        }
        .wizard-step-label.active { color: var(--primary); font-weight: 700; }
        .wizard-step-label.completed { color: var(--success-text); }

        /* Meter groups */
        .meter-group {
            background: linear-gradient(180deg, rgba(255,255,255,0.98), var(--gray-50, #f9fafb));
            border: 1px solid rgba(27,51,96,0.10);
            border-radius: 16px;
            padding: 18px;
            margin-bottom: 12px;
            box-shadow: 0 1px 2px rgba(15,31,61,0.03);
        }
        .meter-group-title {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }
        .meter-ean-label {
            font-size: 12px;
            color: var(--gray-500);
            margin-bottom: 12px;
            font-family: var(--font-mono);
        }
        .meter-helper {
            margin-top: -4px;
            margin-bottom: 12px;
            font-size: 12px;
            color: var(--gray-500);
            line-height: 1.45;
        }
        .meter-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }
        .meter-grid .form-group { margin-bottom: 0; }
        .meter-grid.single { grid-template-columns: 1fr; }

        /* Info box */
        .checklist-info-box {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            background: rgba(59,130,246,0.07);
            border: 1px solid rgba(59,130,246,0.18);
            border-radius: 10px;
            padding: 12px 14px;
            font-size: 13px;
            color: #2563eb;
            margin-bottom: 18px;
        }
        .checklist-info-success {
            background: rgba(34,197,94,0.07);
            border-color: rgba(34,197,94,0.2);
            color: #15803d;
        }

        /* Pro-rata box */
        .prorata-result {
            background: rgba(27,51,96,0.06);
            border: 1px solid rgba(27,51,96,0.18);
            border-radius: 10px;
            padding: 14px 16px;
            margin: 4px 0 16px;
        }

        /* Energie links */
        .energie-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
        .energie-link-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 14px;
            background: var(--gray-50, #f9fafb);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            color: var(--primary);
            text-decoration: none;
            transition: background 0.15s;
        }
        .energie-link-btn:hover { background: rgba(27,51,96,0.05); }

        /* Energie samenvatting box */
        .energie-summary {
            background: var(--gray-50, #f9fafb);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px;
        }
        .energie-summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 0;
            font-size: 13px;
            border-bottom: 1px solid var(--border-color);
        }
        .energie-summary-row:last-child { border-bottom: none; }
        .energie-summary-row .label { color: var(--gray-500); }
        .energie-summary-row .value { font-weight: 600; font-family: var(--font-mono); }

        /* Meter preview box */
        .meter-preview-box {
            background: var(--gray-50, #f9fafb);
            border: 1px solid rgba(27,51,96,0.10);
            border-radius: 14px;
            padding: 16px;
            font-size: 13px;
        }

        .overdracht-empty {
            padding: 48px 20px;
            color: var(--gray-500);
            text-align: center;
        }
        .overdracht-empty.is-compact {
            padding: 48px;
        }
        .overdracht-empty__icon {
            margin-bottom: 12px;
        }
        .overdracht-empty__title {
            margin-bottom: 6px;
            font-size: 15px;
            font-weight: 600;
        }
        .overdracht-empty__copy {
            font-size: var(--text-sm);
        }
        @media (max-width: 600px) {
            .overdracht-header { flex-direction: column; }
            .wizard-step-label { font-size: 9px; }
            .dossier-checklist-item { font-size: 11px; }
            .wizard-step { padding-left: 14px; max-width: 100%; }
            .meter-grid { grid-template-columns: 1fr; }
        }

        /* Loading spinner */
        .loading-spinner {
            display: inline-block;
            width: 24px;
            height: 24px;
            border: 2px solid rgba(27,51,96,0.2);
            border-top-color: #1B3360;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        .loading-overlay {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(249,250,251,0.75);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9998;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s;
        }
        html.dark .loading-overlay {
            background: rgba(17,24,39,0.75);
        }
        .loading-overlay.visible {
            opacity: 1;
            pointer-events: all;
        }

        :is(.card, .section, .metric-card, .stat-card, .property-card, .property-item, .list-item, .huurder-item, .action-button, .modal-content) {
            background: var(--bg-card);
            color: var(--text-primary);
        }

        .card {
            border-radius: 12px;
            padding: var(--sp-6);
            box-shadow: var(--shadow-card);
            border: 1px solid var(--border);
            margin-bottom: var(--sp-4);
            transition: box-shadow 0.2s cubic-bezier(0.22,1,0.36,1);
            background: var(--bg-card);
        }
        .card:hover { box-shadow: var(--shadow-lifted); }
        #pandMap .leaflet-container { background: #1a2540; }
        #pandMap,
        #pandMap * {
            pointer-events: auto;
        }
        #pandMap .leaflet-control-container,
        #pandMap .leaflet-pane,
        #pandMap .leaflet-top,
        #pandMap .leaflet-bottom,
        #pandMap .leaflet-marker-pane,
        #pandMap .leaflet-popup-pane {
            pointer-events: auto;
        }
        #pandMap .leaflet-popup-content-wrapper { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
        #pandMap .leaflet-popup-tip { background: var(--bg-card); }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--sp-4);
            padding-bottom: var(--sp-3);
            border-bottom: 1px solid var(--border);
        }

        .card-header h3 {
            font-size: var(--text-lg) !important;
            font-weight: var(--weight-semibold) !important;
            color: var(--text-primary) !important;
            letter-spacing: -0.2px;
        }

        .card-icon {
            font-size: 18px;
        }

        /* ===== STAT CARDS ===== */
        .metrics-grid {
            display: grid;
            grid-template-columns: 1fr 1fr; /* desktop override via media query hieronder */
            gap: 12px;
            margin-bottom: 16px;
        }
        @media (min-width: 1025px) {
            .metrics-grid {
                grid-template-columns: repeat(5, 1fr) !important;
                gap: 20px !important;
            }
        }

        .metric-card {
            background: linear-gradient(180deg, var(--dashboard-surface) 0%, var(--dashboard-surface-strong) 100%);
            border-radius: 16px;
            padding: 20px;
            border: 1px solid var(--dashboard-surface-border);
            box-shadow: var(--dashboard-surface-shadow);
            position: relative;
            overflow: hidden;
            transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s cubic-bezier(0.22,1,0.36,1), background 0.2s cubic-bezier(0.22,1,0.36,1);
        }
        .metric-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 42%);
            pointer-events: none;
        }
        .metric-card > * {
            position: relative;
            z-index: 1;
        }
        .metric-card:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow-lifted);
            background: linear-gradient(180deg, var(--dashboard-surface-hover) 0%, var(--dashboard-surface-strong) 100%);
        }
        .metric-card:active { transform: scale(0.98); }
        .metric-card[onclick]:hover { transform: translateY(-1px); box-shadow: var(--shadow-card-hover, var(--shadow-lifted)); cursor: pointer; }

        .metric-card:first-child {
            border-color: var(--dashboard-surface-border);
        }

        .stat-card {
            background: var(--bg-card);
            border-radius: 12px;
            padding: 16px;
            border: 1px solid var(--border-color);
            min-height: 120px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .stat-label {
            font-size: 11px;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.6px;
            margin-bottom: 4px;
            font-weight: 600;
        }

        .metric-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 6px;
            font-weight: 600;
            font-family: var(--font-body);
        }

        /* Cijfers altijd in het UI-font: data moet rustig en exact leesbaar blijven. */
        .stat-value, .metric-value {
            font-size: clamp(20px, 3vw, 24px);
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1;
            letter-spacing: -0.02em;
            font-family: var(--font-body);
        }

        .stat-value.accent, .metric-value.accent {
            color: var(--primary);
        }

        .stat-change {
            font-size: 11px;
            color: #3D3A35;
            margin-top: 6px;
            letter-spacing: var(--tracking-wide);
        }

        .stat-change.positive { color: var(--success); font-weight: 600; }
        .stat-change.negative { color: var(--danger); font-weight: 600; }

        /* ===== GRID LAYOUTS ===== */
        .grid {
            display: grid;
            gap: var(--spacing-lg);
        }

        .grid-2 {
            grid-template-columns: repeat(2, 1fr);
        }

        .grid-3 {
            grid-template-columns: repeat(3, 1fr);
        }

        .grid-4 {
            grid-template-columns: repeat(4, 1fr);
        }

        /* ===== BUTTONS ===== */
        button, .button {
            font-family: inherit;
            font-size: var(--font-base);
            padding: var(--spacing-sm) var(--spacing-md);
            border-radius: var(--radius-md);
            border: none;
            cursor: pointer;
            transition: all 0.2s;
            min-height: var(--touch-target);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--spacing-sm);
            font-weight: 600;
            text-decoration: none;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: var(--spacing-sm);
            padding: 11px 20px;
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.01em;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.22,1,0.36,1);
            text-decoration: none;
            white-space: nowrap;
            min-height: 44px;
            font-family: var(--font-body);
        }

        .btn-primary, .button-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 2px 8px rgba(15,31,61,0.2);
        }
        .btn-primary:hover, .button-primary:hover {
            background: var(--primary-dark);
            box-shadow: 0 4px 16px rgba(15,31,61,0.3);
            transform: translateY(-1px);
        }
        .btn-primary:active, .button-primary:active {
            transform: scale(0.98);
            box-shadow: none;
        }

        .btn-secondary, .button-secondary {
            background: var(--gray-100);
            color: var(--text-primary);
        }
        .btn-secondary:hover, .button-secondary:hover { background: var(--gray-200); }

        .btn-outline {
            background-color: transparent;
            border: 1.5px solid var(--border-color);
            color: var(--text-secondary);
        }
        .btn-outline:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: var(--primary-light);
        }

        .btn-small {
            padding: 6px 12px;
            font-size: 12px;
        }

        .btn-block {
            width: 100%;
            justify-content: center;
        }

        .btn-icon {
            padding: 8px 8px;
            font-size: 16px;
            background: none;
            border: none;
            cursor: pointer;
            color: var(--gray-500);
            transition: color 0.2s;
            min-height: auto;
        }

        .btn-icon:hover {
            color: var(--primary);
        }

        .btn-icon-danger {
            color: var(--danger);
        }

        .action-button {
            background: linear-gradient(180deg, var(--dashboard-surface) 0%, var(--dashboard-surface-strong) 100%);
            border: 1px solid var(--dashboard-surface-border);
            border-radius: 16px;
            padding: 16px 6px 12px;
            text-align: center;
            cursor: pointer;
            transition: all 0.22s cubic-bezier(0.22,1,0.36,1);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 7px;
            justify-content: center;
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0;
            box-shadow: var(--dashboard-surface-shadow);
        }
        .action-button svg {
            color: var(--primary);
            transition: transform 0.22s cubic-bezier(0.22,1,0.36,1);
        }

        .action-button:hover {
            background: linear-gradient(180deg, var(--dashboard-surface-hover) 0%, var(--dashboard-surface-strong) 100%);
            border-color: rgba(15,31,61,0.14);
            color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 10px 26px rgba(15,31,61,0.10);
        }
        .action-button:hover svg { transform: scale(1.1); }
        .action-button:active { transform: scale(0.96); }

        .action-button span {
            font-size: 24px;
        }

        /* ===== FORMS ===== */
        .form-group {
            margin-bottom: 18px;
        }

        label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            font-size: 13px;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        input, textarea, select {
            width: 100%;
            padding: 11px 14px;
            border: 1.5px solid var(--border-color);
            border-radius: 10px;
            font-size: 14px;
            font-family: var(--font-body);
            color: var(--text-primary);
            transition: border-color 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s cubic-bezier(0.22,1,0.36,1);
            background: var(--bg-card);
            min-height: 44px;
        }
        input::placeholder, textarea::placeholder {
            color: var(--text-muted);
            font-weight: 400;
        }
        input:focus, textarea:focus, select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(15,31,61,0.08);
        }

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

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--spacing-lg);
        }

        .form-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 24px;
        }

        .cat-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .cat-option {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            padding: 13px 10px;
            border: 1.5px solid var(--border-color);
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            font-size: 13px;
            color: var(--text-secondary);
            text-transform: none !important;
            letter-spacing: 0 !important;
            transition: all 0.15s;
            margin: 0;
            text-align: center;
        }

        .cat-option:active {
            transform: scale(0.96);
        }

        .cat-option:has(input:checked) {
            border-color: var(--primary);
            background: var(--primary-light);
            color: var(--primary);
            font-weight: 700;
        }

        .cat-option input[type="radio"] {
            width: 0;
            height: 0;
            opacity: 0;
            position: absolute;
        }

        .cat-option .cat-icon {
            font-size: 16px;
            line-height: 1;
        }

        .cat-option span {
            flex: 1;
        }

        .form-tabs {
            display: flex;
            gap: 0;
            margin: 0 24px 20px;
            background: var(--gray-100);
            border-radius: 10px;
            padding: 3px;
            border-bottom: none;
        }

        .form-tab {
            flex: 1;
            border-radius: 8px;
            transition: all 0.2s;
            border-bottom: none !important;
            padding: var(--spacing-md) 0;
            border: none;
            background: none;
            color: var(--gray-500);
            font-weight: 600;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            font-size: var(--font-sm);
            transition: all 0.2s;
        }

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

        .form-tab.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .form-content {
            display: none;
        }

        .form-content.active {
            display: block;
        }

        .form-tab-indicator {
            display: inline-block;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--gray-200);
            color: white;
            font-size: 11px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: var(--spacing-sm);
        }

        .form-tab.active .form-tab-indicator {
            background: var(--primary);
        }

        /* ===== LISTS ===== */
        .list {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-sm);
        }

        .list-item {
            background: var(--bg-card);
            border: 1px solid var(--gray-200);
            border-radius: var(--radius-md);
            padding: var(--spacing-md);
            display: flex;
            align-items: flex-start;
            gap: var(--spacing-md);
            cursor: pointer;
            transition: all 0.2s;
        }

        .list-item:active {
            background: var(--gray-50);
            border-color: var(--primary);
        }

        .list-item-icon {
            font-size: 20px;
            flex-shrink: 0;
            margin-top: 2px;
        }

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

        .list-item-title {
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: var(--spacing-xs);
        }

        .list-item-subtitle {
            font-size: var(--font-sm);
            color: var(--gray-500);
        }

        .list-item-amount {
            font-weight: 600;
            color: var(--primary);
            text-align: right;
        }

        .activity-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
        }

        .action-log-panel {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: 16px;
            box-shadow: 0 14px 38px rgba(15, 31, 61, 0.07);
            overflow: hidden;
        }

        .action-log-table-wrap {
            width: 100%;
            overflow-x: auto;
        }

        .action-log-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 760px;
        }

        .action-log-table th,
        .action-log-table td {
            padding: 16px 20px;
            border-bottom: 1px solid var(--border-subtle);
            text-align: left;
            vertical-align: top;
        }

        .action-log-table th {
            background: var(--gray-50);
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .action-log-table tr:last-child td {
            border-bottom: none;
        }

        .action-log-date,
        .action-log-time {
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }

        .action-log-date {
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 700;
        }

        .action-log-time {
            color: var(--primary);
            font-size: 14px;
            font-weight: 800;
        }

        .action-log-action {
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 800;
        }

        .action-log-detail {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.45;
        }

        .action-log-empty td {
            padding: 28px 20px;
            text-align: center;
            color: var(--text-secondary);
        }

        .action-log-show-toggle td {
            padding: 18px 20px;
            text-align: center;
            background: var(--gray-50);
        }

        .action-log-show-toggle button {
            min-height: 36px;
            padding: 0 14px;
            border: 1px solid var(--border-subtle);
            border-radius: 999px;
            background: var(--bg-card);
            color: var(--primary);
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
        }

        @media (max-width: 720px) {
            .action-log-panel {
                border-radius: 14px;
            }
        }

        /* ===== PROPERTY & COST ITEMS ===== */
        .property-item {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 18px 18px 16px;
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
            gap: 10px;
            box-shadow: 0 10px 28px rgba(15,31,61,0.06);
            min-height: 0;
        }

        .property-item:hover {
            box-shadow: 0 16px 36px rgba(15,31,61,0.10);
            transform: translateY(-3px);
        }

        .property-item:active, .huurder-item:active {
            transform: scale(0.98);
        }

        .property-item.profitable {
            box-shadow: inset 6px 0 0 var(--success), 0 1px 6px rgba(0,0,0,0.05);
            border-radius: 0 16px 16px 0;
        }

        .property-item.profitable:hover {
            box-shadow: inset 6px 0 0 var(--success), 0 6px 20px rgba(0,0,0,0.10);
        }

        .property-item.neutral {
            box-shadow: inset 6px 0 0 var(--warning), 0 1px 6px rgba(0,0,0,0.05);
            border-radius: 0 16px 16px 0;
        }

        .property-item.neutral:hover {
            box-shadow: inset 6px 0 0 var(--warning), 0 6px 20px rgba(0,0,0,0.10);
        }

        .property-item.loss {
            box-shadow: inset 6px 0 0 var(--danger), 0 1px 6px rgba(0,0,0,0.05);
            border-radius: 0 16px 16px 0;
        }

        .property-item.loss:hover {
            box-shadow: inset 6px 0 0 var(--danger), 0 6px 20px rgba(0,0,0,0.10);
        }

        @media (max-width: 768px) {
            .property-item.profitable {
                box-shadow: inset 12px 0 0 var(--success), 0 1px 6px rgba(0,0,0,0.05) !important;
                border-radius: 0 12px 12px 0 !important;
            }
            .property-item.neutral {
                box-shadow: inset 12px 0 0 var(--warning), 0 1px 6px rgba(0,0,0,0.05) !important;
                border-radius: 0 12px 12px 0 !important;
            }
            .property-item.loss {
                box-shadow: inset 12px 0 0 var(--danger), 0 1px 6px rgba(0,0,0,0.05) !important;
                border-radius: 0 12px 12px 0 !important;
            }
        }

        .property-status-indicator {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-right: 6px;
            flex-shrink: 0;
        }

        .property-item.profitable .property-status-indicator {
            background: var(--success);
            box-shadow: 0 0 0 3px rgba(26,122,74,0.15);
        }

        .property-item.neutral .property-status-indicator {
            background: var(--warning);
            box-shadow: 0 0 0 3px rgba(217,119,6,0.15);
        }

        .property-item.loss .property-status-indicator {
            background: var(--danger);
            box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
        }

        .property-address {
            font-weight: 700;
            font-size: 17px;
            margin-bottom: 4px;
            color: var(--text-primary);
            letter-spacing: -0.2px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            justify-content: space-between;
            line-height: 1.2;
        }

        .property-location {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 0;
            padding-left: 0;
        }

        .property-stats {
            display: flex;
            align-items: stretch;
            gap: 10px;
            flex-wrap: wrap;
            font-size: 12px;
            padding-top: 0;
            border-top: 0;
        }

        .property-stat {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 96px;
            flex: 1 1 0;
            padding: 10px 12px;
            border-radius: 14px;
            background: var(--bg-subtle);
            border: 1px solid var(--border-subtle);
        }

        .property-stat-label {
            color: var(--text-secondary);
            font-size: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .property-stat-value {
            font-weight: 700;
            color: var(--primary);
            font-size: 14px;
            white-space: nowrap;
        }

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

        .property-type-badge {
            display: inline-flex;
            align-items: center;
            padding: 5px 9px;
            border-radius: 999px;
            background: rgba(27,51,96,0.08);
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
        }

        .property-tenant-row,
        .property-context-row,
        .property-action-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .property-tenant-row {
            padding: 14px 16px;
            border-radius: 16px;
            background: linear-gradient(180deg, rgba(27,51,96,0.04), rgba(27,51,96,0.02));
            margin-bottom: 14px;
            align-items: flex-start;
        }

        .property-tenant-meta {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .property-tenant-name {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .property-tenant-sub {
            font-size: 11px;
            color: var(--text-secondary);
        }

        .property-status-pill {
            display: inline-flex;
            align-items: center;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
        }

        .property-status-pill.is-occupied {
            background: rgba(22,163,74,0.12);
            color: var(--success-text);
        }

        .property-status-pill.is-vacant {
            background: rgba(27,51,96,0.10);
            color: var(--primary);
        }

        .property-status-pill.is-review {
            background: rgba(217,119,6,0.12);
            color: var(--warning-text);
        }

        .property-chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 14px;
        }

        .property-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 9px;
            border-radius: 999px;
            background: rgba(27,51,96,0.05);
            color: var(--text-secondary);
            font-size: 11px;
            font-weight: 600;
        }

        .property-chip.is-ok {
            background: rgba(22,163,74,0.10);
            color: var(--success-text);
        }

        .property-chip.is-warn {
            background: rgba(217,119,6,0.10);
            color: var(--warning-text);
        }

        .property-dossier-line {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 14px;
            font-size: 11px;
            color: var(--text-secondary);
        }

        .property-map-hint {
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 600;
            white-space: nowrap;
        }
        .property-map-marker {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            transform: translateY(-2px);
        }
        .property-map-marker__pin {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
        }
        .property-map-marker__shape {
            position: absolute;
            inset: 4px;
            border: 2.5px solid white;
            border-radius: 12px 12px 12px 4px;
            box-shadow: 0 4px 12px rgba(15,23,42,0.24);
            transform: rotate(-45deg);
        }
        .property-map-marker.is-review .property-map-marker__shape { background: #d97706; }
        .property-map-marker.is-occupied .property-map-marker__shape { background: #16a34a; }
        .property-map-marker.is-vacant .property-map-marker__shape { background: #1B3360; }
        .property-map-marker__icon {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            color: white;
            transform: translateY(-1px);
        }
        .property-map-marker__label {
            max-width: 170px;
            padding: 3px 8px;
            border: 1px solid rgba(148,163,184,0.24);
            border-radius: 999px;
            background: rgba(255,255,255,0.96);
            box-shadow: 0 2px 8px rgba(15,23,42,0.08);
            color: #1f2937;
            font-size: 11px;
            font-weight: 700;
            line-height: 1.2;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .property-map-popup {
            min-width: 180px;
            font-family: var(--font-body);
        }
        .property-map-popup__title {
            color: #1a2332;
            font-size: 13px;
            font-weight: 700;
        }
        .property-map-popup__meta {
            color: var(--text-secondary);
            font-size: 12px;
        }
        .property-map-popup__meta.has-gap {
            margin-top: 3px;
        }
        .property-map-popup__rent {
            margin-top: 5px;
            color: var(--success-text);
            font-size: 13px;
            font-weight: 700;
        }
        .property-map-popup__action {
            margin-top: 8px;
        }
        .property-map-popup__link {
            color: #1B3360;
            font-size: 11px;
            font-weight: 600;
        }

        .property-action-link {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 600;
        }

        .cost-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: var(--spacing-sm);
            background: var(--gray-50);
            border-radius: var(--radius-md);
            margin-bottom: var(--spacing-xs);
            border-left: 3px solid var(--primary);
            gap: var(--spacing-md);
        }

        .cost-info {
            flex: 1;
        }
        .cost-item__main {
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
            flex: 1;
        }
        .cost-item__actions {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            white-space: nowrap;
        }
        .cost-delete-btn {
            height: 28px;
            min-height: unset;
            padding: 0 8px;
            border-color: var(--danger-light);
            color: var(--danger);
        }
        .data-table .is-right {
            text-align: right;
        }
        .data-table .is-static {
            cursor: default;
        }

        .cost-name {
            font-weight: 500;
            font-size: 13px;
            margin-bottom: 4px;
        }

        .cost-date {
            font-size: 11px;
            color: var(--gray-500);
        }

        .cost-amount {
            font-size: 14px;
            font-weight: 600;
            color: var(--primary);
            white-space: nowrap;
        }

        .cost-category-chart {
            display: grid;
            gap: 16px;
        }

        .cost-category-card-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding: var(--sp-6) var(--sp-6) 0;
        }

        .cost-category-card-header h3 {
            margin: 0;
        }

        .cost-category-filters {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }

        .cost-category-filter-select {
            width: auto;
            min-width: 190px;
            height: 38px;
            border-radius: 10px;
            border: 1px solid var(--border-subtle);
            background: var(--bg-card);
            color: var(--text-primary);
            padding: 0 34px 0 12px;
            font-size: var(--text-sm);
            font-weight: var(--weight-semibold);
        }

        .cost-period-segmented {
            display: inline-flex;
            align-items: center;
            gap: 2px;
            padding: 3px;
            border-radius: 999px;
            border: 1px solid var(--border-subtle);
            background: var(--bg-subtle);
        }

        .cost-period-segmented button {
            min-height: 30px;
            padding: 0 12px;
            border: none;
            border-radius: 999px;
            background: transparent;
            color: var(--text-secondary);
            font-size: var(--text-xs);
            font-weight: var(--weight-bold);
            cursor: pointer;
        }

        .cost-period-segmented button:hover {
            color: var(--text-primary);
        }

        .cost-period-segmented button.is-active {
            background: var(--primary);
            color: #fff;
            box-shadow: 0 6px 14px rgba(15,31,61,0.14);
        }

        #costsByCategory {
            padding: var(--sp-4) var(--sp-6) var(--sp-6);
        }

        .cost-category-chart__hero {
            display: grid;
            grid-template-columns: 150px minmax(0, 1fr);
            gap: 22px;
            align-items: center;
            padding: 18px 20px;
            border: 1px solid var(--border-subtle);
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(247, 246, 243, 0.82));
        }

        .cost-category-empty {
            padding: 26px 10px;
        }

        .cost-category-donut {
            position: relative;
            width: 132px;
            aspect-ratio: 1;
            border-radius: 50%;
            display: grid;
            place-items: center;
            box-shadow: inset 0 0 0 1px rgba(15, 31, 61, 0.08);
            flex-shrink: 0;
        }
        .cost-category-donut__svg {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }
        .cost-category-donut__segment {
            fill: none;
            stroke-width: 10;
        }

        .cost-category-donut__inner {
            position: relative;
            z-index: 1;
            width: 76%;
            aspect-ratio: 1;
            border-radius: 50%;
            background: var(--bg-card);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            text-align: center;
            box-shadow: var(--shadow-soft);
            padding: 8px 6px;
            box-sizing: border-box;
        }

        .cost-category-donut__value {
            display: block;
            width: 100%;
            color: var(--primary);
            font-size: 16px;
            line-height: 1;
            font-weight: var(--weight-bold);
            font-variant-numeric: tabular-nums;
            letter-spacing: 0;
            text-align: center;
            white-space: nowrap;
        }

        .cost-category-donut__label {
            display: block;
            margin-top: 0;
            color: var(--text-muted);
            font-size: var(--text-xs);
            font-weight: var(--weight-medium);
            line-height: 1;
            text-align: center;
        }

        .cost-category-chart__eyebrow,
        .cost-category-row__label {
            font-size: var(--text-xs);
            font-weight: var(--weight-bold);
            letter-spacing: 0.11em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .cost-category-chart__title {
            margin: 4px 0 6px;
            color: var(--text-primary);
            font-size: 22px;
            line-height: 1.15;
            font-weight: var(--weight-bold);
        }

        .cost-category-chart__copy {
            color: var(--text-secondary);
            font-size: var(--text-sm);
            line-height: 1.55;
            margin: 0;
        }

        .cost-category-bars {
            display: grid;
            gap: 13px;
        }

        .cost-category-row {
            display: grid;
            gap: 8px;
            padding: 14px 0;
            border-bottom: 1px solid var(--border-subtle);
        }

        .cost-category-row:last-child {
            border-bottom: none;
            padding-bottom: 2px;
        }

        .cost-category-row__top,
        .cost-category-row__meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .cost-category-row__name {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            color: var(--text-primary);
            font-size: var(--text-base);
            font-weight: var(--weight-bold);
        }

        .cost-category-row__dot {
            width: 12px;
            height: 12px;
            border-radius: 999px;
            box-shadow: 0 0 0 4px rgba(15, 31, 61, 0.055);
            flex-shrink: 0;
        }
        .cost-category-tone.is-electricity,
        .cost-category-donut__segment.is-electricity { background: #8A6B2E; stroke: #8A6B2E; }
        .cost-category-tone.is-maintenance,
        .cost-category-donut__segment.is-maintenance { background: #3F6F64; stroke: #3F6F64; }
        .cost-category-tone.is-repair,
        .cost-category-donut__segment.is-repair { background: #7C4A4A; stroke: #7C4A4A; }
        .cost-category-tone.is-tax,
        .cost-category-donut__segment.is-tax { background: #6C5A40; stroke: #6C5A40; }
        .cost-category-tone.is-insurance,
        .cost-category-donut__segment.is-insurance { background: #263F66; stroke: #263F66; }
        .cost-category-tone.is-utilities,
        .cost-category-donut__segment.is-utilities { background: #596773; stroke: #596773; }
        .cost-category-tone.is-cleaning,
        .cost-category-donut__segment.is-cleaning { background: #7A6470; stroke: #7A6470; }
        .cost-category-tone.is-syndic,
        .cost-category-donut__segment.is-syndic { background: #4B5563; stroke: #4B5563; }
        .cost-category-tone.is-other,
        .cost-category-donut__segment.is-other { background: #68707A; stroke: #68707A; }

        .cost-category-row__amount {
            color: var(--primary);
            font-size: var(--text-lg);
            font-weight: var(--weight-bold);
            white-space: nowrap;
        }

        .cost-category-row__track {
            height: 12px;
            border-radius: 999px;
            overflow: hidden;
            background: var(--border-subtle);
        }

        .cost-category-row__fill {
            display: block;
            height: 100%;
            border-radius: inherit;
            min-width: 12px;
        }
        .cost-category-row__progress {
            display: block;
            width: 100%;
            height: 12px;
            overflow: hidden;
            border: 0;
            border-radius: 999px;
            background: var(--border-subtle);
        }
        .cost-category-row__progress::-webkit-progress-bar {
            background: var(--border-subtle);
        }
        .cost-category-row__progress::-webkit-progress-value,
        .cost-category-row__progress::-moz-progress-bar {
            border-radius: 999px;
        }
        .cost-category-row__progress::-webkit-progress-value { border-radius: 999px; }
        .cost-category-row__progress::-moz-progress-bar { border-radius: 999px; }
        .cost-category-row__progress.is-electricity::-webkit-progress-value,
        .cost-category-row__progress.is-electricity::-moz-progress-bar { background: #8A6B2E; }
        .cost-category-row__progress.is-electricity::-webkit-progress-value { background: #8A6B2E; }
        .cost-category-row__progress.is-electricity::-moz-progress-bar { background: #8A6B2E; }
        .cost-category-row__progress.is-maintenance::-webkit-progress-value,
        .cost-category-row__progress.is-maintenance::-moz-progress-bar { background: #3F6F64; }
        .cost-category-row__progress.is-maintenance::-webkit-progress-value { background: #3F6F64; }
        .cost-category-row__progress.is-maintenance::-moz-progress-bar { background: #3F6F64; }
        .cost-category-row__progress.is-repair::-webkit-progress-value,
        .cost-category-row__progress.is-repair::-moz-progress-bar { background: #7C4A4A; }
        .cost-category-row__progress.is-repair::-webkit-progress-value { background: #7C4A4A; }
        .cost-category-row__progress.is-repair::-moz-progress-bar { background: #7C4A4A; }
        .cost-category-row__progress.is-tax::-webkit-progress-value,
        .cost-category-row__progress.is-tax::-moz-progress-bar { background: #6C5A40; }
        .cost-category-row__progress.is-tax::-webkit-progress-value { background: #6C5A40; }
        .cost-category-row__progress.is-tax::-moz-progress-bar { background: #6C5A40; }
        .cost-category-row__progress.is-insurance::-webkit-progress-value,
        .cost-category-row__progress.is-insurance::-moz-progress-bar { background: #263F66; }
        .cost-category-row__progress.is-insurance::-webkit-progress-value { background: #263F66; }
        .cost-category-row__progress.is-insurance::-moz-progress-bar { background: #263F66; }
        .cost-category-row__progress.is-utilities::-webkit-progress-value,
        .cost-category-row__progress.is-utilities::-moz-progress-bar { background: #596773; }
        .cost-category-row__progress.is-utilities::-webkit-progress-value { background: #596773; }
        .cost-category-row__progress.is-utilities::-moz-progress-bar { background: #596773; }
        .cost-category-row__progress.is-cleaning::-webkit-progress-value,
        .cost-category-row__progress.is-cleaning::-moz-progress-bar { background: #7A6470; }
        .cost-category-row__progress.is-cleaning::-webkit-progress-value { background: #7A6470; }
        .cost-category-row__progress.is-cleaning::-moz-progress-bar { background: #7A6470; }
        .cost-category-row__progress.is-syndic::-webkit-progress-value,
        .cost-category-row__progress.is-syndic::-moz-progress-bar { background: #4B5563; }
        .cost-category-row__progress.is-syndic::-webkit-progress-value { background: #4B5563; }
        .cost-category-row__progress.is-syndic::-moz-progress-bar { background: #4B5563; }
        .cost-category-row__progress.is-other::-webkit-progress-value,
        .cost-category-row__progress.is-other::-moz-progress-bar { background: #68707A; }
        .cost-category-row__progress.is-other::-webkit-progress-value { background: #68707A; }
        .cost-category-row__progress.is-other::-moz-progress-bar { background: #68707A; }

        .cost-category-row__meta {
            color: var(--text-muted);
            font-size: var(--text-xs);
        }

        @media (max-width: 640px) {
            .cost-category-card-header {
                flex-direction: column;
                padding: var(--sp-4) var(--sp-4) 0;
            }

            .cost-category-filters {
                width: 100%;
                justify-content: stretch;
            }

            .cost-category-filter-select,
            .cost-period-segmented {
                width: 100%;
            }

            .cost-period-segmented button {
                flex: 1;
            }

            #costsByCategory {
                padding: var(--sp-4);
            }

            .cost-category-chart__hero {
                grid-template-columns: 1fr;
                text-align: left;
            }

            .cost-category-donut {
                width: min(150px, 54vw);
                justify-self: center;
            }
        }

        /* Adresboek layout */
        .adresboek-grid {
            display:block;
        }

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

        .huurder-contact-row {
            width:100%;
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:18px;
            padding:16px 18px;
            border-radius:18px;
            border:1px solid var(--border-subtle);
            background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,246,243,0.98));
            box-shadow: var(--shadow-card);
            cursor:pointer;
            text-align:left;
            transition:transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }

        .huurder-contact-row:hover {
            transform:translateY(-1px);
            box-shadow:0 10px 30px rgba(15,31,61,0.10);
            border-color:rgba(27,51,96,0.16);
        }

        .huurder-contact-main {
            min-width:0;
            display:flex;
            align-items:center;
            gap:12px;
            flex:1 1 auto;
        }

        .huurder-contact-meta {
            min-width:0;
            flex:1 1 auto;
        }

        .huurder-avatar {
            width:42px;
            height:42px;
            border-radius:50%;
            background: rgba(27,51,96,0.10);
            border: 1px solid rgba(27,51,96,0.18);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            font-weight: 700;
            color: #1B3360;
            flex-shrink: 0;
            text-transform: uppercase;
        }
        .tenant-contact-avatar {
            width: 52px;
            height: 52px;
            font-size: 17px;
        }

        .huurder-card-naam {
            color: var(--text-primary);
            font-weight: 700;
            font-size: 15px;
            line-height: 1.25;
        }

        .huurder-card-pand {
            color: var(--text-muted);
            font-size: 13px;
            margin-top: 4px;
            white-space:nowrap;
            overflow:hidden;
            text-overflow:ellipsis;
        }

        .huurder-contact-phone-wrap {
            display:flex;
            align-items:center;
            gap:10px;
            flex-shrink:0;
            min-width:0;
        }

        .huurder-contact-phone {
            font-size:14px;
            font-weight:600;
            color:var(--text-primary);
            white-space:nowrap;
        }

        .huurder-contact-chevron {
            color:var(--text-muted);
            font-size:18px;
            line-height:1;
        }

        .tenant-contact-modal-content {
            max-width:760px;
            max-height:90vh;
            overflow-y:auto;
        }

        .tenant-contact-modal-head {
            padding: 2px 20px 0;
            display:flex;
            align-items:flex-start;
            justify-content:space-between;
            gap:16px;
        }

        .tenant-contact-hero {
            display:flex;
            align-items:flex-start;
            gap:14px;
            min-width:0;
        }

        .tenant-contact-hero-copy {
            min-width:0;
        }

        .tenant-contact-kicker {
            font-size:11px;
            font-weight:700;
            letter-spacing:0.08em;
            text-transform:uppercase;
            color:var(--text-muted);
            margin-bottom:4px;
        }

        .tenant-contact-title {
            font-size:24px;
            line-height:1.15;
            font-weight:700;
            color:var(--text-primary);
        }

        .tenant-contact-subtitle {
            font-size:14px;
            color:var(--text-secondary);
            margin-top:6px;
        }

        .tenant-contact-badge {
            display:inline-flex;
            align-items:center;
            gap:6px;
            padding:8px 10px;
            border-radius:999px;
            font-size:12px;
            font-weight:700;
            white-space:nowrap;
        }
        .tenant-status-label {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .tenant-contact-badge.is-paid {
            border: 1px solid #bbf7d0;
            background: #dcfce7;
            color: #166534;
        }
        .tenant-contact-badge.is-pending {
            border: 1px solid #fde68a;
            background: #fef3c7;
            color: #b45309;
        }
        .tenant-contact-badge.is-late {
            border: 1px solid #fed7aa;
            background: #fff7ed;
            color: #9a3412;
        }
        .tenant-contact-badge.is-critical {
            border: 1px solid #fecaca;
            background: #fee2e2;
            color: #991b1b;
        }
        .tenant-indexation-badge {
            padding: var(--sp-1) var(--sp-2);
            border-radius: 999px;
            background: var(--warning-light);
            color: var(--warning-dark);
            font-size: var(--text-xs);
            font-weight: 700;
        }

        .tenant-contact-modal-body {
            padding:18px 20px 22px;
            display:flex;
            flex-direction:column;
            gap:16px;
        }

        .tenant-contact-card {
            background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,246,243,0.98));
            border:1px solid var(--border-subtle);
            border-radius:18px;
            padding:16px;
        }

        .tenant-contact-grid {
            display:grid;
            grid-template-columns:repeat(2, minmax(0, 1fr));
            gap:12px;
        }

        .tenant-contact-field {
            min-width:0;
            padding:12px 13px;
            border-radius:14px;
            background:rgba(15,31,61,0.03);
            border:1px solid rgba(15,31,61,0.06);
        }

        .tenant-contact-label {
            font-size:11px;
            font-weight:700;
            letter-spacing:0.08em;
            text-transform:uppercase;
            color:var(--text-muted);
            margin-bottom:4px;
        }

        .tenant-contact-value {
            font-size:14px;
            line-height:1.4;
            color:var(--text-primary);
            word-break:break-word;
        }

        .huurder-card-body {
            padding: 12px 18px 14px;
        }

        .huurder-details {
            margin: 0 16px;
            border-bottom: 1px solid var(--border-subtle);
        }

        .huurder-details summary {
            list-style: none;
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:12px;
            padding: 12px 2px;
            cursor:pointer;
            user-select:none;
            font-size:12px;
            font-weight:700;
            letter-spacing:0.06em;
            text-transform:uppercase;
            color:var(--text-secondary);
        }

        .huurder-details summary::-webkit-details-marker { display:none; }

        .huurder-details summary::after {
            content:'Uitvouwen';
            font-size:11px;
            font-weight:600;
            letter-spacing:0;
            text-transform:none;
            color:var(--text-muted);
        }

        .huurder-details[open] summary::after {
            content:'Inklappen';
        }

        .huurder-details-body {
            padding: 0 2px 14px;
        }

        .huurder-card-row {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--gray-600);
            margin-bottom: 8px;
        }

        .huurder-card-row svg { flex-shrink: 0; opacity: 0.5; }

        .huurder-payment-strip {
            padding: 12px 16px 10px;
            border-top: 1px solid var(--border-subtle);
            border-bottom: 1px solid var(--border-subtle);
            background: linear-gradient(180deg, rgba(15,31,61,0.02), rgba(15,31,61,0));
        }

        .huurder-payment-strip-head {
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:12px;
            margin-bottom:10px;
        }

        .huurder-payment-strip-title {
            font-size:11px;
            font-weight:700;
            letter-spacing:0.08em;
            text-transform:uppercase;
            color:var(--text-muted);
        }

        .huurder-payment-strip-meta {
            font-size:12px;
            color:var(--text-secondary);
        }

        .huurder-payment-grid {
            display:grid;
            grid-template-columns:repeat(6, minmax(0, 1fr));
            gap:8px;
        }

        .huurder-payment-month {
            min-width:0;
            display:flex;
            flex-direction:column;
            align-items:center;
            gap:6px;
            padding:8px 6px;
            border-radius:10px;
            border:1px solid var(--border-subtle);
            background:var(--bg-card);
        }

        .huurder-payment-month-label {
            font-size:11px;
            font-weight:700;
            color:var(--text-secondary);
            line-height:1;
        }

        .huurder-payment-dot {
            width:10px;
            height:10px;
            border-radius:50%;
            flex-shrink:0;
        }
        .huurder-payment-dot.is-paid {
            background: var(--success-text);
            box-shadow: 0 0 0 6px var(--success-light);
        }
        .huurder-payment-dot.is-late {
            background: var(--warning-text);
            box-shadow: 0 0 0 6px var(--warning-light);
        }
        .huurder-payment-dot.is-unpaid {
            background: var(--danger-text);
            box-shadow: 0 0 0 6px var(--danger-light);
        }
        .huurder-payment-dot.is-unknown {
            background: var(--gray-300, #d1d5db);
            box-shadow: 0 0 0 6px var(--gray-100);
        }

        .huurder-payment-status {
            font-size:10px;
            font-weight:600;
            color:var(--text-muted);
            text-align:center;
            line-height:1.2;
        }

        .huurder-card-actions {
            padding: 14px 16px 16px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .huurder-action-card {
            min-width:0;
            display:flex;
            flex-direction:column;
            align-items:flex-start;
            justify-content:space-between;
            gap:6px;
            padding:12px 12px 11px;
            border-radius:12px;
            border:1px solid var(--border-subtle);
            background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,246,243,0.96));
            cursor:pointer;
            text-align:left;
        }

        .huurder-action-card.primary {
            grid-column:1 / -1;
            background:linear-gradient(180deg, rgba(238,242,255,0.98), rgba(224,231,255,0.92));
            border-color:rgba(27,51,96,0.16);
        }

        .huurder-action-card.success {
            background:linear-gradient(180deg, rgba(236,253,245,0.98), rgba(209,250,229,0.9));
            border-color:#a7f3d0;
        }

        .huurder-action-card.neutral {
            background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,244,246,0.96));
        }

        .huurder-action-card.danger {
            background:linear-gradient(180deg, rgba(254,242,242,0.98), rgba(254,226,226,0.9));
            border-color:#fecaca;
        }

        .huurder-action-title {
            display:flex;
            align-items:center;
            gap:6px;
            font-size:13px;
            font-weight:700;
            color:var(--text-primary);
            line-height:1.2;
        }

        .huurder-action-copy {
            font-size:12px;
            line-height:1.35;
            color:var(--text-secondary);
        }

        .huurder-action-arrow {
            font-size:12px;
            font-weight:700;
            color:var(--text-muted);
        }

        /* Tooltip systeem — hover over knoppen */
        [data-tooltip] { position: relative; }
        [data-tooltip]::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: calc(100% + 6px);
            left: 50%;
            transform: translateX(-50%);
            background: #1B3360;
            color: #fff;
            font-size: 11px;
            font-weight: 500;
            white-space: nowrap;
            padding: 4px 8px;
            border-radius: 5px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.15s ease;
            z-index: 9999;
            letter-spacing: 0.01em;
        }
        [data-tooltip]:hover::after,
        [data-tooltip]:focus-visible::after { opacity: 1; }

        .prop-upload-info {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            margin-left: 6px;
            border-radius: 50%;
            border: 1px solid rgba(27,51,96,0.28);
            color: var(--primary);
            background: rgba(27,51,96,0.04);
            font-size: 10px;
            font-weight: 800;
            line-height: 1;
            text-transform: none;
            letter-spacing: 0;
            vertical-align: middle;
            cursor: help;
        }

        .prop-upload-info[data-tooltip]::after {
            width: 320px;
            max-width: min(320px, calc(100vw - 64px));
            white-space: normal;
            text-align: left;
            line-height: 1.35;
            padding: 10px 12px;
            border-radius: 8px;
            box-shadow: 0 10px 28px rgba(15,31,61,0.22);
            letter-spacing: 0;
            text-transform: none;
        }

        .huurder-name {
            font-weight: 500;
            font-size: 13px;
            margin-bottom: var(--spacing-xs);
        }

        .huurder-detail {
            font-size: 11px;
            color: var(--gray-500);
            margin: 2px 0;
        }

        /* ===== CATEGORY BADGES ===== */
        .category-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 26px;
            padding: 4px 11px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
            color: #344054;
            background: #F4F5F7;
            border: 1px solid #E2E6EA;
        }

        .category-badge.electricity {
            color: #5B4A2E;
            background: #F6F1E8;
            border-color: #E8DDC8;
        }

        .category-badge.maintenance {
            color: #315B4D;
            background: #EEF5F2;
            border-color: #D8E7E1;
        }

        .category-badge.onderhoud {
            color: #315B4D;
            background: #EEF5F2;
            border-color: #D8E7E1;
        }

        .category-badge.repair {
            color: #683D3D;
            background: #F6EEEE;
            border-color: #E8D8D8;
        }

        .category-badge.herstelling {
            color: #683D3D;
            background: #F6EEEE;
            border-color: #E8D8D8;
        }

        .category-badge.tax {
            color: #574C3C;
            background: #F3F0EA;
            border-color: #E4DED2;
        }

        .category-badge.belasting {
            color: #574C3C;
            background: #F3F0EA;
            border-color: #E4DED2;
        }

        .category-badge.insurance {
            color: #2E4058;
            background: #EEF2F6;
            border-color: #DCE4ED;
        }

        .category-badge.verzekering {
            color: #2E4058;
            background: #EEF2F6;
            border-color: #DCE4ED;
        }

        .category-badge.utilities {
            color: #43515A;
            background: #F1F4F5;
            border-color: #DDE4E7;
        }

        .category-badge.nutsvoorzieningen {
            color: #43515A;
            background: #F1F4F5;
            border-color: #DDE4E7;
        }

        .category-badge.cleaning {
            color: #5A4650;
            background: #F5F1F3;
            border-color: #E5DCE1;
        }

        .category-badge.reiniging {
            color: #5A4650;
            background: #F5F1F3;
            border-color: #E5DCE1;
        }

        .category-badge.syndic,
        .category-badge.syndicus {
            color: #424A59;
            background: #F1F2F5;
            border-color: #DDE1E8;
        }

        /* ===== MODAL ===== */
        .modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.55);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 500;
            align-items: flex-end;
            justify-content: center;
        }

        .modal.active {
            display: flex;
            animation: modalBgIn 0.2s ease;
        }

        #confirmActionModal {
            z-index: 22000;
            align-items: center;
        }

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

        .modal-content {
            background: var(--bg-card);
            border-radius: 24px 24px 0 0;
            padding: 0;
            width: 100%;
            max-width: 600px;
            box-shadow: 0 -8px 40px rgba(0,0,0,0.2);
            max-height: 82vh;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
            overscroll-behavior: contain;
            animation: slideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
            padding-bottom: max(env(safe-area-inset-bottom), 24px);
            will-change: transform;
        }

        /* Handle bar bovenaan modal */
        .modal-content::before {
            content: '';
            display: block;
            width: 40px;
            height: 4px;
            background: var(--gray-300);
            border-radius: 2px;
            margin: 12px auto 0;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px 16px;
            border-bottom: 1px solid var(--border-color);
            position: sticky;
            top: 0;
            background: var(--bg-card);
            z-index: 1;
        }

        .modal-title {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.3px;
        }

        .modal-close {
            background: var(--gray-100);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            transition: all 0.15s;
            flex-shrink: 0;
        }

        .modal-close:hover {
            background: var(--gray-200);
            color: var(--text-primary);
        }

        .confirm-dialog {
            width: min(520px, calc(100vw - 32px));
            border-radius: 18px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            box-shadow: 0 24px 80px rgba(15, 31, 61, 0.28);
            padding: 0;
            overflow: hidden;
        }

        .confirm-dialog__body {
            padding: 22px 24px 18px;
            display: grid;
            gap: 10px;
        }

        .confirm-dialog__eyebrow {
            color: var(--danger-text);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
        }

        .confirm-dialog__title {
            color: var(--text-primary);
            font-size: 20px;
            font-weight: 800;
            letter-spacing: 0;
            margin: 0;
        }

        .confirm-dialog__copy {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.55;
            margin: 0;
        }

        .confirm-dialog__detail {
            padding: 12px 14px;
            border-radius: 12px;
            background: var(--bg-subtle);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 700;
            overflow-wrap: anywhere;
        }

        .confirm-dialog__actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            padding: 16px 24px 20px;
            border-top: 1px solid var(--border-color);
            background: var(--gray-50);
        }

        /* Modal form wrapper */
        .modal-content > form,
        .modal-content > div:not(.modal-header) {
            padding: 20px 24px 32px;
        }
        .modal-content > form {
            padding-bottom: 36px;
        }
        .modal-content > .form-tabs {
            padding: 16px 0 0 0;
        }

        #propertyModal.property-choice-active .modal-content {
            max-width: 520px;
            max-height: none !important;
            overflow: visible !important;
            padding-bottom: 0 !important;
        }

        #propertyModal.property-choice-active .modal-content::-webkit-scrollbar {
            display: none;
        }

        .prop-choice {
            display: grid;
            gap: 16px;
        }

        .prop-choice__intro {
            margin: 0;
            color: var(--text-secondary);
            font-size: var(--text-sm);
            line-height: 1.5;
        }

        .prop-choice__grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .prop-choice__button {
            position: relative;
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr);
            gap: 12px;
            align-items: center;
            min-height: 92px;
            padding: 16px;
            border: 1.5px solid var(--border-color);
            border-radius: 14px;
            background: var(--bg-card);
            color: var(--text-primary);
            cursor: pointer;
            text-align: left;
            transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
        }

        .prop-choice__button:hover,
        .prop-choice__button:focus-visible {
            border-color: var(--primary);
            box-shadow: 0 14px 32px rgba(15,31,61,0.12);
            transform: translateY(-1px);
            z-index: 2;
        }

        .prop-choice__button.is-recommended {
            border-color: rgba(27,51,96,0.55);
            background: linear-gradient(180deg, rgba(27,51,96,0.05), rgba(255,255,255,0));
        }

        .prop-choice__icon {
            width: 42px;
            height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: var(--primary);
            color: #fff;
        }

        .prop-choice__button:not(.is-recommended) .prop-choice__icon {
            background: var(--bg-subtle);
            color: var(--primary);
            border: 1px solid var(--border-color);
        }

        .prop-choice__label {
            display: grid;
            gap: 5px;
            min-width: 0;
        }

        .prop-choice__title {
            color: var(--text-primary);
            font-size: var(--text-base);
            font-weight: 850;
            line-height: 1.2;
        }

        .prop-choice__badge {
            width: fit-content;
            min-height: 24px;
            padding: 4px 8px;
            border-radius: 999px;
            background: var(--primary-light, #eef2ff);
            color: var(--primary);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        .prop-choice__help {
            position: absolute;
            left: 50%;
            bottom: calc(100% + 10px);
            width: min(280px, calc(100vw - 48px));
            padding: 12px 14px;
            border: 1px solid rgba(15,31,61,0.12);
            border-radius: 12px;
            background: var(--text-primary);
            color: #fff;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.45;
            box-shadow: 0 16px 36px rgba(15,31,61,0.24);
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, 6px);
            transition: opacity .14s ease, transform .14s ease;
        }

        .prop-choice__help::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -6px;
            width: 12px;
            height: 12px;
            background: var(--text-primary);
            transform: translateX(-50%) rotate(45deg);
        }

        @media (hover: hover) and (pointer: fine) {
            .prop-choice__button:hover .prop-choice__help {
                opacity: 1;
                transform: translate(-50%, 0);
            }
        }

        .feedback-overlay {
            position: fixed;
            inset: 0;
            background: rgba(15, 23, 42, 0.44);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 9000;
            display: none;
            align-items: flex-end;
            justify-content: center;
            padding: 16px;
        }
        body.feedback-widget-open { overflow: hidden; }
        .feedback-overlay.open { display: flex; }
        #feedbackTrigger:hover {
            transform: scale(1.06);
        }
        .feedback-panel {
            width: min(100%, 420px);
            background: var(--bg-card,#fff);
            border-radius: 24px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.24);
            border: 1px solid var(--border-subtle,rgba(0,0,0,0.1));
            overflow: hidden;
        }
        .feedback-panel-body { padding: 18px; }
        .feedback-stack { display: grid; gap: 14px; }
        .feedback-field label {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-secondary);
            display: block;
            margin-bottom: 6px;
        }
        .feedback-field input,
        .feedback-field textarea {
            width: 100%;
            padding: 12px 14px;
            border: 1.5px solid var(--border-subtle);
            border-radius: 12px;
            font-size: 14px;
            background: var(--bg-card);
            color: var(--text-primary);
            box-sizing: border-box;
            font-family: inherit;
        }
        .feedback-field textarea {
            min-height: 116px;
            resize: vertical;
            line-height: 1.5;
        }
        .feedback-help {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 14px;
            background: var(--gray-50,#f8fafc);
            border: 1px solid var(--border-subtle);
            border-radius: 12px;
            font-size: 12px;
            color: var(--text-muted);
            line-height: 1.5;
        }
        .feedback-check {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 14px;
            border: 1px solid var(--border-subtle);
            border-radius: 12px;
            background: var(--bg-card);
        }
        .feedback-check input[type="checkbox"] {
            width: 18px;
            height: 18px;
            margin-top: 1px;
            accent-color: var(--primary);
            flex-shrink: 0;
        }
        .feedback-actions {
            display: grid;
            gap: 10px;
            margin-top: 4px;
        }
        @media (max-width: 767px) {
            .feedback-overlay {
                padding: 0;
                align-items: flex-end;
            }
            .feedback-panel {
                width: 100%;
                max-height: min(88vh, calc(100vh - 12px));
                border-radius: 24px 24px 0 0;
            }
            .feedback-panel-body {
                padding: 18px 16px calc(18px + env(safe-area-inset-bottom) + 68px);
                overflow-y: auto;
                max-height: min(78vh, calc(100vh - 74px));
            }
            #feedbackTrigger {
                right: 16px !important;
                bottom: calc(76px + env(safe-area-inset-bottom)) !important;
            }
        }

        /* ===== BADGE ===== */
        .badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            background: var(--primary-light);
            color: var(--primary);
        }

        .badge-primary {
            background: var(--primary-light);
            color: var(--primary);
        }

        .badge-success {
            background: #d1fae5;
            color: var(--success);
        }

        .badge-warning {
            background: #fef3c7;
            color: var(--warning);
        }

        .badge-danger {
            background: #fee2e2;
            color: var(--danger);
        }

        /* ===== ONBOARDING ===== */
        .onboarding-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.65);
            z-index: 999;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .onboarding-overlay.visible {
            display: flex;
        }

        .onboarding-overlay.hidden {
            display: none;
        }

        .onboarding-content {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 36px 28px;
            max-width: 420px;
            width: 100%;
            box-shadow: 0 24px 64px rgba(0,0,0,0.25);
            text-align: center;
        }


        .onboarding-icon {
            --brand-logo-shield: var(--brand-navy);
            --brand-logo-roof: var(--brand-paper);
            --brand-logo-check: var(--brand-gold);
            width: 64px;
            height: 64px;
            margin: 0 auto var(--spacing-lg);
            color: var(--brand-navy);
        }

        html.dark .onboarding-icon {
            --brand-logo-shield: #FFFFFF;
            --brand-logo-roof: var(--brand-navy);
            color: #FFFFFF;
        }

        .onboarding-icon .brand-logo__mark {
            width: 64px;
            height: 64px;
        }

        .onboarding-icon {
            margin-bottom: var(--spacing-lg);
        }

        .onboarding-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: var(--spacing-md);
        }

        .onboarding-subtitle {
            font-size: 16px;
            color: var(--gray-500);
            margin-bottom: var(--spacing-xl);
            line-height: 1.6;
        }

        .onboarding-steps {
            margin: var(--spacing-xl) 0;
            display: flex;
            flex-direction: column;
            gap: var(--spacing-lg);
            align-items: flex-start;
        }

        .onboarding-step {
            display: flex;
            gap: var(--spacing-md);
            text-align: left;
            width: 100%;
        }

        .onboarding-step-number {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--primary);
            color: white;
            font-weight: 700;
            flex-shrink: 0;
        }

        .onboarding-step-content h4 {
            font-size: 14px;
            font-weight: 600;
            color: var(--gray-900);
            margin-bottom: 4px;
        }

        .onboarding-step-content p {
            font-size: 13px;
            color: var(--gray-500);
        }

        .onboarding-buttons {
            display: flex;
            gap: var(--spacing-md);
            margin-top: var(--spacing-xl);
        }

        .onboarding-buttons button {
            flex: 1;
        }

        /* ===== EMPTY STATE ===== */
        .empty-state {
            text-align: center;
            padding: var(--spacing-xl) var(--spacing-md);
            color: var(--gray-500);
        }

        .empty-state-icon, .empty-icon {
            margin-bottom: var(--spacing-md);
            opacity: 0.5;
        }

        .empty-state-text, .empty-text {
            font-size: var(--font-sm);
            color: var(--gray-500);
            margin-bottom: var(--spacing-md);
        }

        /* ===== QUICK ACTIONS ===== */
        .dashboard-shell {
            display: grid;
            gap: 18px;
            max-width: 1180px;
            margin: 0 auto;
        }
        .dashboard-shell__surface {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 22px;
            padding: 20px;
            box-shadow: 0 1px 3px rgba(15,31,61,0.05);
            display: grid;
            gap: 14px;
        }
        .dashboard-shell__lead,
        .dashboard-rendement__header {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
        }

        .dashboard-rendement__meta {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-right: auto;
        }

        .dashboard-rendement__label {
            font-size: var(--text-xs);
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .dashboard-properties {
            display: grid;
            gap: 14px;
            padding: 16px;
            border-radius: 12px;
            background: rgba(248,250,252,0.7);
            border: 1px solid rgba(27,51,96,0.08);
            box-shadow: none;
        }

        .dashboard-properties__header {
            align-items: center;
            justify-content: space-between;
            padding: 0 0 14px;
            border-radius: 0;
            background: transparent;
            border: none;
            border-bottom: 1px solid rgba(27,51,96,0.08);
            box-shadow: none;
        }
        .dashboard-shell__heading {
            display: grid;
            gap: 2px;
        }
        .dashboard-shell__lead-copy {
            display: grid;
            gap: 6px;
            min-width: 0;
        }
        .dashboard-shell__eyebrow {
            font-size: 11px;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 6px;
            font-weight: 700;
        }
        .dashboard-shell__title {
            font-size: 22px;
            line-height: 1.15;
            letter-spacing: -0.03em;
            margin: 0;
        }
        .dashboard-shell__title--compact { font-size: 18px; }
        .dashboard-shell__copy {
            margin: 8px 0 0;
            max-width: 72ch;
            color: var(--text-secondary);
            line-height: 1.6;
            font-size: 14px;
        }
        .dashboard-shell__copy--tight { margin-top: 4px; }
        .dashboard-shell__surface--compact {
            padding-top: 20px;
        }
        .dashboard-shell__surface--compact .dashboard-shell__lead {
            align-items: flex-start;
            flex-direction: column;
            justify-content: space-between;
            gap: 16px;
        }
        .dashboard-shell__surface--compact .dashboard-shell__heading {
            gap: 0;
            max-width: 680px;
        }
        .dashboard-shell__surface--compact .dashboard-shell__eyebrow {
            display: inline-block;
        }
        .dashboard-shell__surface--compact .dashboard-shell__title {
            display: block;
            margin-top: 2px;
        }
        .dashboard-shell__surface--compact .dashboard-shell__copy {
            display: block;
        }
        .dashboard-shell__surface--compact .dashboard-kpi-strip {
            margin-top: 2px;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }
        .dashboard-shell__primary-action {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 48px;
            padding: 0 16px;
            border-radius: 14px;
            background: linear-gradient(180deg, var(--primary) 0%, var(--primary-mid) 100%);
            color: #fff;
            border: 1px solid rgba(27,51,96,0.18);
            box-shadow: 0 8px 18px rgba(27,51,96,0.16);
            font-weight: 700;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .dashboard-shell__primary-action:hover {
            filter: brightness(1.03);
            transform: translateY(-1px);
        }
        .dashboard-shell__primary-action svg {
            flex-shrink: 0;
        }
        .dashboard-kpi-strip {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 12px;
            align-items: stretch;
        }
        .dashboard-kpi {
            min-height: 92px;
            padding: 13px 14px 12px;
            border-radius: 12px;
            background: rgba(27,51,96,0.035);
            border: 1px solid rgba(27,51,96,0.08);
            box-shadow: none;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .dashboard-kpi--interactive {
            font: inherit;
            color: var(--text-primary);
            text-align: left;
            align-items: stretch;
            gap: 0;
            cursor: pointer;
            appearance: none;
            transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
        }
        .dashboard-kpi--interactive:hover,
        .dashboard-kpi--interactive:focus-visible {
            background: linear-gradient(180deg, rgba(27,51,96,0.05) 0%, rgba(27,51,96,0.03) 100%);
            border-color: rgba(27,51,96,0.14);
        }
        .dashboard-kpi--interactive:focus-visible {
            outline: 2px solid rgba(0,122,255,0.32);
            outline-offset: 2px;
        }
        .dashboard-kpi--subtle {
            min-height: 98px;
            background: linear-gradient(180deg, rgba(27,51,96,0.035) 0%, rgba(27,51,96,0.02) 100%);
            border-style: dashed;
            box-shadow: none;
        }
        .dashboard-shell__surface--compact .dashboard-kpi {
            min-height: 58px;
            padding: 12px 14px;
            border-radius: 8px;
            background: rgba(27,51,96,0.035);
            border: 1px solid rgba(27,51,96,0.08);
            justify-content: center;
            gap: 4px;
        }
        .dashboard-shell__surface--compact .dashboard-kpi--subtle {
            min-height: 58px;
            background: rgba(27,51,96,0.035);
            border-style: solid;
        }
        .dashboard-actions {
            display: grid;
            grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
        .dashboard-action-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            align-items: stretch;
            justify-content: stretch;
            gap: 12px;
            margin-top: 0;
            width: 100%;
        }
        .dashboard-action-card {
            position: relative;
            width: 100%;
            min-width: 0;
            min-height: 58px;
            padding: 0 14px;
            border-radius: 8px;
            background: rgba(27,51,96,0.035);
            color: var(--text-primary);
            border: 1px solid rgba(27,51,96,0.08);
            font-size: 14px;
            font-weight: 700;
            line-height: 1;
            box-shadow: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
        }
        .dashboard-action-card.is-alert {
            border-color: rgba(217, 119, 6, 0.18);
            background: rgba(217, 119, 6, 0.04);
        }
        .dashboard-action-card__badge {
            position: absolute;
            top: -10px;
            right: 12px;
            min-width: 28px;
            height: 24px;
            padding: 0 8px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--warning-text);
            color: #fff;
            border: 2px solid var(--bg-card);
            box-shadow: 0 6px 16px rgba(15, 31, 61, 0.12);
            font-size: 12px;
            font-weight: 850;
            line-height: 1;
            font-variant-numeric: tabular-nums;
            pointer-events: none;
        }
        .next-actions {
            border: 1px solid rgba(27,51,96,0.08);
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(247,246,243,0.92) 0%, rgba(255,255,255,0.72) 100%);
            padding: 16px;
        }
        .next-actions .dashboard-shell__copy {
            margin-top: 2px;
            max-width: 58ch;
        }
        .dashboard-next-step-card {
            width: 100%;
            min-height: 92px;
            display: grid;
            grid-template-columns: 46px minmax(0, 1fr) auto;
            align-items: center;
            gap: 14px;
            padding: 14px;
            border-radius: 12px;
            border: 1px solid rgba(27,51,96,0.1);
            background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(238,243,251,0.72) 100%);
            color: var(--text-primary);
            text-align: left;
            cursor: pointer;
            box-shadow: 0 10px 24px rgba(15,31,61,0.06);
            transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
        }
        .dashboard-next-step-card:hover,
        .dashboard-next-step-card:focus-visible {
            transform: translateY(-1px);
            border-color: rgba(27,51,96,0.18);
            box-shadow: 0 14px 30px rgba(15,31,61,0.09);
            outline: none;
        }
        .dashboard-next-step-card__icon,
        .dashboard-next-step-card__cta-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        .dashboard-next-step-card__icon {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            background: var(--primary);
            color: #fff;
            box-shadow: 0 8px 18px rgba(27,51,96,0.16);
        }
        .dashboard-next-step-card__body {
            display: grid;
            gap: 4px;
            min-width: 0;
        }
        .dashboard-next-step-card__eyebrow {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: .11em;
            text-transform: uppercase;
            color: var(--text-muted);
        }
        .dashboard-next-step-card__title {
            font-size: 17px;
            font-weight: 800;
            line-height: 1.2;
            color: var(--text-primary);
        }
        .dashboard-next-step-card__copy {
            font-size: 13px;
            line-height: 1.45;
            color: var(--text-secondary);
        }
        .dashboard-next-step-card__cta {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 40px;
            padding: 0 13px;
            border-radius: 999px;
            background: rgba(27,51,96,0.08);
            color: var(--primary);
            font-size: 13px;
            font-weight: 800;
            white-space: nowrap;
        }
        .partner-campaign-card {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 14px;
            border: 1px solid rgba(217, 119, 6, 0.22);
            border-radius: 12px;
            background: linear-gradient(135deg, rgba(217, 119, 6, 0.09), rgba(15, 31, 61, 0.035));
            padding: 14px;
        }
        .partner-campaign-card__icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #fff;
            border: 1px solid rgba(217, 119, 6, 0.18);
            color: var(--brand-gold);
            box-shadow: 0 8px 18px rgba(15, 31, 61, 0.06);
        }
        .partner-campaign-card__eyebrow {
            display: block;
            margin-bottom: 4px;
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--warning-text);
        }
        .partner-campaign-card__title {
            margin: 0 0 3px;
            font-size: 16px;
            line-height: 1.2;
            color: var(--text-primary);
        }
        .partner-campaign-card__copy {
            margin: 0;
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.45;
        }
        .partner-campaign-card__actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
        }
        .referral-code-panel {
            display: grid;
            gap: 14px;
        }
        .referral-code-box {
            border: 1px solid rgba(15, 31, 61, 0.12);
            border-radius: 12px;
            background: rgba(15, 31, 61, 0.035);
            padding: 14px;
            display: grid;
            gap: 8px;
        }
        .referral-code-box__label {
            font-size: var(--text-xs);
            font-weight: var(--weight-bold);
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
        }
        .referral-code-box__value {
            width: 100%;
            border: 1px solid var(--border-subtle);
            border-radius: 8px;
            background: var(--bg-card);
            color: var(--primary);
            padding: 11px 12px;
            font-size: 16px;
            font-weight: var(--weight-bold);
            font-family: var(--estmate-font-body);
        }
        .referral-stats-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }
        .referral-stat {
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--bg-card);
            padding: 12px;
        }
        .referral-stat__value {
            display: block;
            font-size: 22px;
            font-weight: var(--weight-bold);
            color: var(--primary);
            line-height: 1;
        }
        .referral-stat__label {
            display: block;
            margin-top: 6px;
            font-size: var(--text-xs);
            color: var(--text-secondary);
            line-height: 1.35;
        }
        .dashboard-action {
            min-height: 50px;
            border-radius: 14px;
            background: var(--bg-subtle);
            color: var(--text-primary);
            border: 1px solid var(--border);
            font-weight: 700;
            box-shadow: none;
        }
        .dashboard-action--primary {
            background: rgba(27,51,96,0.035);
            color: var(--text-primary);
            border-color: rgba(27,51,96,0.08);
            box-shadow: none;
        }
        html.dark .dashboard-action-card {
            background: rgba(27,51,96,0.035);
            color: var(--text-primary);
            border-color: rgba(27,51,96,0.08);
            box-shadow: none;
        }
        html.dark .dashboard-action-card:hover {
            background: linear-gradient(180deg, rgba(27,51,96,0.05) 0%, rgba(27,51,96,0.03) 100%);
            color: var(--text-primary);
        }
        .dashboard-rendement {
            padding: 14px;
            border-radius: 12px;
            background: rgba(255,255,255,0.64);
            border: 1px solid rgba(27,51,96,0.08);
            display: grid;
            gap: 8px;
            box-shadow: none;
        }
        .dashboard-rendement--secondary {
            background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(248,250,252,0.86) 100%);
        }
        .dashboard-secondary-stack {
            display: grid;
            gap: 12px;
        }
        .dashboard-rendement__controls {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        .dashboard-rendement__controls .btn-outline {
            border-color: var(--border-subtle);
        }
        .dashboard-toggle { display:flex; gap:6px; position:relative; z-index:1; width:fit-content; }
        .dashboard-toggle .btn { position:relative; z-index:2; pointer-events:auto; }
        .dashboard-rendement__body { min-height: 120px; }
        .dashboard-properties {
            display: grid;
            gap: 10px;
            padding: 14px 16px 16px;
        }
        .dashboard-properties--secondary {
            gap: 10px;
        }
        .dashboard-properties__header { margin-bottom: 0; }
        .dashboard-properties__list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 8px;
        }
        .dashboard-properties__header h2 {
            margin: 0;
        }
        .portfolio-detail-row {
            border: 1px solid var(--border-subtle);
            border-left-width: 4px;
            border-radius: 8px;
            background: rgba(27,51,96,0.035);
            overflow: hidden;
            box-shadow: none;
        }
        .portfolio-detail-row.profitable { border-left-color: var(--success); }
        .portfolio-detail-row.neutral { border-left-color: var(--warning); }
        .portfolio-detail-row.loss { border-left-color: var(--danger); }
        .portfolio-detail-row[open] {
            background: var(--bg-card);
        }
        .portfolio-detail-summary {
            display: grid;
            grid-template-columns: 34px minmax(210px, 1.15fr) minmax(210px, 1fr) 118px 112px;
            align-items: center;
            gap: 12px;
            min-height: 58px;
            padding: 10px 14px;
            cursor: pointer;
            list-style: none;
        }
        .portfolio-detail-summary::-webkit-details-marker {
            display: none;
        }
        .portfolio-detail-eye {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            background: rgba(27,51,96,0.06);
            flex-shrink: 0;
        }
        .portfolio-detail-main,
        .portfolio-detail-tenant {
            min-width: 0;
            display: grid;
            gap: 3px;
        }
        .portfolio-detail-title {
            font-weight: 750;
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .portfolio-detail-meta {
            font-size: 12px;
            color: var(--text-secondary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .portfolio-detail-summary .property-type-badge,
        .portfolio-detail-summary .property-status-pill {
            justify-content: center;
            width: 100%;
            min-width: 0;
        }
        .portfolio-detail-body {
            display: grid;
            gap: 12px;
            padding: 0 14px 14px 60px;
        }
        .portfolio-detail-facts {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }
        .portfolio-detail-fact {
            padding: 10px 12px;
            border-radius: 8px;
            background: rgba(27,51,96,0.035);
            border: 1px solid rgba(27,51,96,0.08);
        }
        .portfolio-detail-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            font-size: 12px;
            color: var(--text-secondary);
        }
        .portfolio-detail-link {
            border: none;
            background: transparent;
            color: var(--primary);
            font-weight: 700;
            cursor: pointer;
            padding: 0;
        }
        .dashboard-rendement__meta {
            display: flex;
            align-items: baseline;
            gap: 10px;
            flex-wrap: wrap;
        }
        .dashboard-rendement__label {
            font-size: var(--text-lg);
            font-weight: 700;
            letter-spacing: -0.02em;
            text-transform: none;
            color: var(--text-primary);
            line-height: 1.1;
        }
        .dashboard-rendement__score {
            font-size: var(--text-lg);
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            line-height: 1;
        }
        .yield-widget-card {
            padding: 2px 0 0;
            cursor: pointer;
            position: relative;
        }
        .yield-widget-card__inner {
            position: relative;
            z-index: 1;
        }
        .yield-widget-card__header,
        .yield-row__header,
        .yield-detail-card__header,
        .yield-chart__header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }
        .yield-widget-card__header {
            margin-bottom: 12px;
        }
        .yield-widget-card__title {
            color: var(--text-muted);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .yield-widget-card__link,
        .yield-widget-card__legend,
        .yield-chart__label,
        .yield-chart__scale {
            color: var(--text-muted);
            font-size: var(--text-xs);
        }
        .yield-row {
            margin-bottom: 7px;
        }
        .yield-row__header {
            margin-bottom: 3px;
        }
        .yield-row__name {
            color: var(--text-secondary);
            font-size: var(--text-xs);
        }
        .yield-row__value {
            font-size: var(--text-xs);
            font-weight: 600;
        }
        .yield-value.is-positive,
        .yield-bar.is-positive .yield-bar__fill,
        .yield-detail-chip.is-positive,
        .yield-kpi__value.is-positive { color: var(--success); }
        .yield-value.is-negative,
        .yield-bar.is-negative .yield-bar__fill,
        .yield-detail-chip.is-negative,
        .yield-kpi__value.is-negative { color: var(--danger); }
        .yield-kpi__value.is-warning { color: var(--warning); }
        .yield-widget-card__legend {
            margin-top: 4px;
        }
        .yield-widget-card__legend-line,
        .yield-overview__legend-line {
            width: 10px;
            height: 2px;
            border-radius: 1px;
            background: var(--accent);
            flex-shrink: 0;
        }
        .yield-overview__legend-line {
            width: 12px;
        }
        .yield-overview-card {
            margin-bottom: 20px;
            padding: 24px;
            border: 1px solid var(--border-subtle);
            border-radius: 16px;
            background: var(--bg-card);
            box-shadow: var(--shadow-card);
        }
        .yield-overview__title {
            margin-bottom: 6px;
            color: var(--text-primary);
            font-size: var(--text-lg);
            font-weight: 700;
            line-height: 1.15;
        }
        .yield-overview__score {
            color: var(--text-primary);
            font-size: 36px;
            font-weight: 800;
            line-height: 1;
        }
        .yield-overview__score-unit {
            font-size: 20px;
            font-weight: 500;
        }
        .yield-overview__meta {
            margin-top: 6px;
            margin-bottom: 20px;
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .yield-overview__meta strong {
            color: var(--text-primary);
        }
        .yield-overview__legend {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            color: var(--text-muted);
            font-size: var(--text-xs);
            font-weight: 600;
        }
        .yield-detail-card {
            margin-bottom: 12px;
            padding: 20px;
            border: 1px solid var(--border-subtle);
            border-radius: 14px;
            background: var(--bg-card);
            box-shadow: var(--shadow-card);
        }
        .yield-detail-card__header {
            align-items: flex-start;
            margin-bottom: 16px;
        }
        .yield-detail-card__title {
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 700;
        }
        .yield-detail-card__meta {
            margin-top: 2px;
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .yield-detail-chip {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: var(--text-xs);
            font-weight: 700;
        }
        .yield-detail-chip.is-positive {
            background: var(--success-light,#d1fae5);
        }
        .yield-detail-chip.is-negative {
            background: var(--danger-light,#fee2e2);
        }
        .yield-kpi-strip {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1px;
            margin-bottom: 16px;
            border-radius: 10px;
            background: var(--border-subtle);
            overflow: hidden;
        }
        .yield-kpi {
            padding: 10px 6px;
            background: var(--bg-card);
            text-align: center;
        }
        .yield-kpi__label {
            margin-bottom: 4px;
            color: var(--text-muted);
            font-size: var(--text-xs);
            font-weight: 600;
            text-transform: uppercase;
        }
        .yield-kpi__value {
            font-size: 20px;
            font-weight: 700;
        }
        .yield-kpi__unit {
            font-size: var(--text-sm);
        }
        .yield-kpi__period {
            font-size: var(--text-xs);
        }
        .yield-chart {
            margin-bottom: 4px;
        }
        .yield-chart__header {
            margin-bottom: 4px;
        }
        .yield-chart__scale {
            display: flex;
            justify-content: space-between;
            margin-top: 3px;
        }
        .yield-chart__benchmark {
            color: var(--accent);
            font-weight: 600;
        }
        .yield-bar {
            display: block;
            width: 100%;
            overflow: visible;
        }
        .yield-bar__track {
            fill: var(--border-subtle);
        }
        .yield-widget-card .yield-bar__track {
            fill: var(--gray-200);
        }
        .yield-bar__fill {
            fill: currentColor;
        }
        .yield-bar__benchmark {
            stroke: var(--accent);
            stroke-width: 1.5;
            stroke-linecap: round;
        }
        .rendement-empty {
            padding: 48px;
            color: var(--text-muted);
            text-align: center;
        }
        .compliance-index-value {
            font-weight: 700;
        }
        .compliance-index-value.is-muted {
            color: var(--text-muted);
        }
        .compliance-index-value.is-success {
            color: var(--success);
        }
        .compliance-index-value.is-primary {
            color: var(--primary);
        }
        .compliance-calendar-status {
            padding: 16px 0;
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .compliance-calendar-status.is-error {
            padding: 12px 0;
            color: var(--danger);
        }
        .dashboard-portfolio-map {
            padding: 14px;
            border-radius: 12px;
            background: rgba(248,250,252,0.72);
            border: 1px solid rgba(27,51,96,0.08);
            box-shadow: none;
            display: grid;
            gap: 12px;
        }
        .dashboard-portfolio-map__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(27,51,96,0.08);
        }
        .dashboard-portfolio-map__meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        .dashboard-portfolio-map__meta h2,
        .dashboard-portfolio-map__title {
            margin: 0;
        }
        .dashboard-portfolio-map__title {
            position: relative;
            display: inline-block;
            padding-right: 16px;
        }
        .dashboard-info-tooltip {
            position: absolute;
            top: -7px;
            right: -1px;
            display: inline-flex;
            align-items: center;
        }
        .dashboard-info-tooltip__trigger {
            width: 44px;
            height: 44px;
            border-radius: 999px;
            border: 0;
            background: transparent;
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 800;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: help;
            opacity: 0.82;
            padding: 0;
        }
        .dashboard-info-tooltip__trigger:hover,
        .dashboard-info-tooltip__trigger:focus-visible {
            color: var(--primary);
            opacity: 1;
        }
        .dashboard-info-tooltip__trigger:focus-visible {
            outline: 1.5px solid var(--primary);
            outline-offset: 2px;
        }
        .dashboard-info-tooltip__content {
            position: absolute;
            right: 0;
            top: calc(100% + 8px);
            width: min(310px, 72vw);
            padding: 10px 12px;
            border-radius: 8px;
            background: var(--primary);
            color: #fff;
            box-shadow: 0 12px 28px rgba(15,31,61,0.18);
            font-size: 12px;
            font-weight: 600;
            line-height: 1.35;
            opacity: 0;
            pointer-events: none;
            transform: translateY(-4px);
            transition: opacity .16s ease, transform .16s ease;
            visibility: hidden;
            z-index: 30;
            text-transform: none;
            letter-spacing: 0;
        }
        .dashboard-info-tooltip__content::before {
            content: '';
            position: absolute;
            right: 3px;
            top: -5px;
            width: 10px;
            height: 10px;
            background: var(--primary);
            transform: rotate(45deg);
        }
        .dashboard-info-tooltip:hover .dashboard-info-tooltip__content,
        .dashboard-info-tooltip:focus-within .dashboard-info-tooltip__content {
            opacity: 1;
            transform: translateY(0);
            visibility: visible;
        }
        .dashboard-section-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .dashboard-section-link {
            font-size: var(--text-sm);
            color: var(--primary);
            font-weight: var(--weight-semibold);
            cursor: pointer;
        }
        .dashboard-section-link.is-muted {
            color: var(--text-secondary);
            font-weight: 600;
        }
        .dashboard-add-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            border-radius: 10px;
            background: rgba(27,51,96,0.08);
            color: var(--primary);
            font-size: var(--text-sm);
            font-weight: 700;
            cursor: pointer;
        }
        .dashboard-portfolio-map__legend {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .dashboard-portfolio-map__legend-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 9px;
            border-radius: 999px;
            background: #EEF3FB;
            color: var(--text-primary);
            font-size: 11px;
            font-weight: 600;
        }
        #pandMap .leaflet-control-zoom a,
        #dashboardPortfolioMap .leaflet-control-zoom a {
            width: 44px !important;
            height: 44px !important;
            line-height: 44px !important;
        }
        #pandMap .leaflet-control-attribution a,
        #dashboardPortfolioMap .leaflet-control-attribution a {
            min-height: 44px;
            display: inline-flex;
            align-items: center;
        }
        .dashboard-portfolio-map__legend-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
        }
        .dashboard-portfolio-map__canvas {
            height: 220px;
            border-radius: 10px;
            overflow: hidden;
            border: 1px solid rgba(27,51,96,0.08);
            background: #eef3fb;
        }
        #dashboardPortfolioMap .leaflet-container { background: #eef3fb; }
        .dashboard-portfolio-map__status {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 600;
        }
        @media (max-width: 1024px) {
            .dashboard-kpi-strip {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 10px;
            }
            .dashboard-kpi {
                min-height: 88px;
                padding: 12px 12px 11px;
            }
            .dashboard-actions { grid-template-columns: 1fr; }
            .dashboard-shell__lead,
            .dashboard-rendement__header { align-items: flex-start; flex-direction: column; }
            .dashboard-action-row {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                width: 100%;
            }
            .partner-campaign-card {
                grid-template-columns: 1fr;
            }
            .partner-campaign-card__actions {
                justify-content: stretch;
            }
            .partner-campaign-card__actions .btn {
                width: 100%;
            }
            .referral-stats-grid {
                grid-template-columns: 1fr;
            }
            .dashboard-rendement__controls { justify-content: flex-start; }
            .dashboard-properties__list { grid-template-columns: 1fr; }
            .portfolio-detail-summary {
                grid-template-columns: 34px minmax(180px, 1.15fr) minmax(180px, 1fr) 108px 104px;
                gap: 10px;
            }
            .portfolio-detail-body {
                padding-left: 58px;
            }
        }

        @media (max-width: 640px) {
            .dashboard-next-step-card {
                grid-template-columns: 40px minmax(0, 1fr);
                align-items: flex-start;
                min-height: 0;
            }
            .dashboard-next-step-card__icon {
                width: 40px;
                height: 40px;
                border-radius: 10px;
            }
            .dashboard-next-step-card__cta {
                grid-column: 1 / -1;
                width: 100%;
                min-height: 42px;
            }
            .dashboard-action-row {
                grid-template-columns: 1fr;
            }
            .dashboard-action-card {
                min-height: 52px;
                justify-content: flex-start;
                padding: 0 48px 0 16px;
                text-align: left;
                white-space: normal;
                line-height: 1.2;
            }
            .dashboard-action-card__badge {
                top: 50%;
                right: 14px;
                transform: translateY(-50%);
                border-color: var(--bg-card);
            }
            .portfolio-detail-summary {
                grid-template-columns: auto minmax(0, 1fr);
                grid-template-areas:
                    "eye main"
                    ". tenant"
                    ". type"
                    ". status";
                gap: 10px;
            }
            .portfolio-detail-eye { grid-area: eye; }
            .portfolio-detail-main { grid-area: main; }
            .portfolio-detail-tenant { grid-area: tenant; }
            .portfolio-detail-summary .property-type-badge { grid-area: type; }
            .portfolio-detail-summary .property-status-pill { grid-area: status; }
            .portfolio-detail-summary .property-type-badge,
            .portfolio-detail-summary .property-status-pill {
                justify-self: start;
            }
            .portfolio-detail-body {
                padding-left: 14px;
            }
            .portfolio-detail-facts {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 1280px) {
            .nav-sidebar-footer .footer-language-switcher {
                width: auto;
            }

            .nav-sidebar-footer .footer-language-switcher.estmate-language-switcher,
            .nav-sidebar-footer .footer-language-switcher .estmate-language-switcher {
                justify-content: flex-start;
            }

            .dashboard-kpi-strip {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }

        @media (max-width: 860px) {
            .dashboard-shell__surface {
                padding: 16px;
            }

            .dashboard-properties__header {
                padding: 12px 14px;
            }

            .sidebar-identity-dock__controls { gap: 7px; }
        }
        .quick-actions {
            display: none;
        }

        /* ===== DIVIDER ===== */
        .divider {
            height: 1px;
            background: var(--gray-200);
            margin: var(--spacing-md) 0;
        }

        /* ===== INVOICE PREVIEW ===== */
        .invoice-preview {
            background: var(--gray-50);
            border: 2px dashed var(--gray-300);
            border-radius: var(--radius-md);
            padding: var(--spacing-lg);
            text-align: center;
            margin: var(--spacing-md) 0;
            cursor: pointer;
            transition: all 0.2s;
        }

        .invoice-preview:active {
            background: var(--primary-light);
            border-color: var(--primary);
        }

        .invoice-preview-icon {
            font-size: 32px;
            margin-bottom: var(--spacing-sm);
        }

        .invoice-preview-text {
            color: var(--gray-600);
            font-size: var(--font-sm);
        }

        .invoice-preview-hint {
            font-size: 11px;
            color: var(--gray-500);
            margin-top: var(--spacing-xs);
        }

        /* ===== UTILITIES ===== */
        .mt-24 {
            margin-top: var(--spacing-lg);
        }

        .mb-24 {
            margin-bottom: var(--spacing-lg);
        }

        .mt-md {
            margin-top: var(--spacing-md);
        }

        .mb-md {
            margin-bottom: var(--spacing-md);
        }

        .flex {
            display: flex;
            gap: var(--spacing-md);
        }

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

        /* ===== SECTION PAGE HEADER — verborgen op mobile ===== */
        .section-page-header {
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-subtle);
        }
        .section-page-header h1, .section-page-header h2 {
            font-family: var(--font-body);
            font-weight: 700;
            letter-spacing: -0.01em;
        }
        .section-page-header h1 {
            display: inline-block;
        }
        .section-page-header h1:focus {
            outline: none;
        }
        .section-page-header h1:focus-visible {
            outline: none;
        }
        .section-page-header .section-page-action {
            align-self: center;
            height: 44px !important;
            min-width: 190px;
            padding: 0 20px !important;
            border-radius: 10px !important;
            line-height: 1 !important;
        }
        .section-page-action__icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 16px;
            height: 16px;
            flex: 0 0 auto;
        }
        .section-page-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 12px;
            flex-wrap: wrap;
        }
        .mobile-section-actions {
            display: none;
        }
        .tenant-sort-control {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 44px;
            padding: 0 12px;
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--bg-card);
            color: var(--text-secondary);
            box-shadow: 0 4px 14px rgba(15,31,61,0.04);
        }
        .tenant-sort-control label {
            margin: 0;
            font-size: var(--text-xs);
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: 0.04em;
            text-transform: uppercase;
            white-space: nowrap;
        }
        .tenant-sort-control select {
            height: 34px;
            min-width: 132px;
            padding: 0 26px 0 8px;
            border: none;
            background: transparent;
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 700;
            cursor: pointer;
        }
        .tenant-sort-control select:focus-visible {
            outline-offset: 2px;
        }
        .section-page-header .subtitle {
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* Base empty-cta styling for all viewports including mobile */
        .empty-cta {
            display: inline-flex !important;
            align-items: center !important;
            background: var(--primary) !important;
            color: #fff !important;
            border: none !important;
            border-radius: 8px !important;
            padding: 0 20px !important;
            height: 40px !important;
            font-size: 14px !important;
            font-weight: 600 !important;
            cursor: pointer;
            text-decoration: none !important;
            transition: background 0.15s;
        }
        .empty-cta:hover { background: var(--primary-mid, #1B3360) !important; }

        @media (max-width: 767px) {
            .section-page-header,
            .section > h1,
            .section > p.subtitle,
            .section > div > h1,
            .section > div > p.subtitle,
            .section .flex-between > div > h1,
            .section .flex-between > div > p.subtitle {
                display: none;
            }
            .section .flex-between {
                margin-bottom: 16px;
            }
            .mobile-section-actions {
                display: flex;
                gap: 12px;
                margin: 0 0 16px;
            }
            .mobile-section-actions .btn {
                width: 100%;
                justify-content: center;
            }
        }

        .flex-col {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-md);
        }

        .text-center {
            text-align: center;
        }

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

        .text-small {
            font-size: 12px;
        }

        .u-mt-half { margin-top: 2px; }
        .u-mt-1 { margin-top: 4px; }
        .u-mt-6px { margin-top: 6px; }
        .u-mt-2 { margin-top: 8px; }
        .u-mt-3 { margin-top: 12px; }
        .u-mt-4 { margin-top: 16px; }
        .u-mt-18 { margin-top: 18px; }
        .u-mt-5 { margin-top: 20px; }
        .u-mb-0h { margin-bottom: 2px; }
        .u-mb-10px { margin-bottom: 10px; }
        .u-mb-3 { margin-bottom: 12px; }
        .u-mb-4 { margin-bottom: 16px; }
        .u-mb-6 { margin-bottom: 24px; }
        .u-m-0 { margin: 0; }
        .u-mb-label { display: block; margin: 0 0 6px; }
        .u-display-none { display: none; }
        .u-relative { position: relative; }
        .u-flex-end-gap-10 {
            display: flex;
            gap: 10px;
            margin-left: auto;
        }
        .u-flex-1-min { flex: 1; min-width: 0; }
        .u-flex-min-140 { flex: 1; min-width: 140px; }
        .u-full-width { width: 100%; }
        .u-grid-full-row { grid-column: 1 / -1; }
        .u-pointer-off { pointer-events: none; }
        .u-text-danger { color: var(--danger); }
        .u-text-primary { color: var(--text-primary); }
        .u-text-muted { color: var(--text-muted); }
        .u-tone-success { color: var(--success-text); }
        .u-tone-danger { color: var(--danger-text); }
        .u-tone-warning { color: var(--warning-text); }
        .u-tone-muted { color: var(--text-secondary); }
        .u-text-border { color: var(--border-color); }
        .u-min-0 { min-width: 0; }
        .u-inline-flex-gap-4 {
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .u-inline-flex-gap-6 {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .u-flex-gap-10-wrap {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .u-flex-stretch-gap-8 {
            display: flex;
            align-items: stretch;
            gap: 8px;
        }
        .u-flex-center-gap-8 {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .u-flex-center-gap-8-wrap-end {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex-wrap: wrap;
            gap: 8px;
        }
        .u-flex-center-gap-10-click {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            font-size: 14px;
        }
        .u-flex-center-gap-8-click {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 14px;
            margin-bottom: 0;
        }
        .u-flex-center-gap-10-click-flush {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 0;
            cursor: pointer;
        }
        .u-flex-align-end {
            display: flex;
            align-items: flex-end;
            padding-bottom: 4px;
        }
        .u-inline-primary-link-xs {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-top: 8px;
            color: var(--primary);
            font-size: var(--text-xs);
            text-decoration: none;
        }
        .u-padding-20 { padding: 20px; }
        .u-padding-modal-body { padding: 0 16px 16px; }
        .u-padding-modal-side { padding: 0 16px; }
        .u-modal-wide { max-width: 560px; }
        .u-modal-sm { max-width: 420px; }
        .u-modal-scroll-85 { max-height: 85vh; overflow-y: auto; }
        .u-modal-scroll-90 { max-height: 90vh; overflow-y: auto; }
        .u-nowrap { white-space: nowrap; }
        .u-grid-auto-150 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 10px;
        }
        .u-grid-auto-160 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 10px;
        }
        .app-icon-muted-60 {
            flex-shrink: 0;
            opacity: .6;
        }
        .app-icon-muted-plain { flex-shrink: 0; }
        .app-icon-muted-70 {
            flex-shrink: 0;
            opacity: .7;
        }
        .app-inline-icon-muted-70 {
            display: inline-flex;
            flex-shrink: 0;
            opacity: .7;
        }
        .app-label-xs {
            display: block;
            margin-bottom: 4px;
            color: var(--text-secondary);
            font-size: var(--text-xs);
            font-weight: 700;
        }
        .app-label-xs-semibold {
            display: block;
            margin-bottom: 4px;
            color: var(--text-secondary);
            font-size: var(--text-xs);
            font-weight: 600;
        }
        .app-section-kicker {
            margin-bottom: 10px;
            color: var(--primary);
            font-size: var(--text-xs);
            font-weight: 800;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .app-help-xs {
            margin-top: 4px;
            color: var(--text-muted);
            font-size: var(--text-xs);
        }
        .app-help-xs-light {
            margin-top: 4px;
            color: var(--gray-400);
            font-size: var(--text-xs);
        }
        .app-help-xs-tight {
            margin-top: 2px;
            color: var(--text-muted);
            font-size: var(--text-xs);
        }
        .app-muted-sm {
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .app-copy-secondary {
            color: var(--text-secondary);
            font-size: 14px;
            margin-bottom: 20px;
        }
        .app-copy-secondary-sm {
            color: var(--text-secondary);
            font-size: var(--text-sm);
            line-height: 1.5;
        }
        .app-kicker-compact {
            margin-bottom: 4px;
            color: var(--primary);
            font-size: var(--text-xs);
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .app-form-note-xs {
            margin-top: 6px;
            color: var(--text-muted);
            font-size: var(--text-xs);
        }
        .app-muted-note-offset {
            margin: 4px 0 0 26px;
            color: var(--gray-400);
            font-size: var(--text-xs);
        }
        .app-section-row-note {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .app-field-wide {
            max-width: 320px;
            margin-bottom: 24px;
        }
        .app-title-flush-sm { margin: 0 0 4px; }
        .app-title-flush-xs { margin: 0 0 2px; }
        .app-subtitle-muted {
            margin: 0;
            color: var(--gray-500);
            font-size: var(--text-sm);
        }
        .app-tax-label {
            display: block;
            margin-bottom: 6px;
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .app-amount-primary {
            color: var(--primary);
            font-size: 18px;
            font-weight: 700;
        }
        .app-primary-link-sm {
            color: var(--primary);
            font-size: var(--text-sm);
            text-decoration: none;
        }
        .app-field-error {
            display: none;
            margin-top: 6px;
            color: var(--danger);
            font-size: var(--text-xs);
            font-weight: 600;
        }
        .app-field-error.is-visible { display: block; }
        .estmate-field-invalid { border-color: var(--danger) !important; }
        .app-file-label {
            min-height: 16px;
            margin-top: 5px;
            color: var(--primary);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .app-checkbox {
            width: 18px;
            height: 18px;
            accent-color: var(--primary);
        }
        .app-checkbox-sm {
            width: 16px;
            height: 16px;
            accent-color: var(--primary);
        }
        .app-checkbox-sm-click {
            width: 16px;
            height: 16px;
            cursor: pointer;
            accent-color: var(--primary);
        }
        .app-file-input-dashed {
            width: 100%;
            padding: 10px;
            border: 1.5px dashed var(--border-color);
            border-radius: 10px;
            background: var(--gray-50);
            color: transparent;
            cursor: pointer;
            font-size: var(--text-sm);
        }
        .app-file-input-muted {
            width: 100%;
            padding: 10px;
            border: 1.5px dashed var(--gray-300);
            border-radius: 8px;
        }
        .app-hidden-file { display: none; }
        .app-input-compact {
            width: 100%;
            padding: 8px 10px;
            border: 1.5px solid var(--border-subtle);
            border-radius: 8px;
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: var(--text-sm);
        }
        .app-input-primary {
            width: 100%;
            padding: 9px 12px;
            border: 1.5px solid var(--primary);
            border-radius: 8px;
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: 14px;
        }
        .app-select-flex {
            flex: 1;
            min-width: 0;
            width: 100%;
            padding: 9px 12px;
            border: 1.5px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: var(--text-sm);
        }
        .app-select-wide {
            width: 100%;
            padding: 10px 12px;
            margin-bottom: 20px;
            border: 1.5px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--bg-card);
            color: var(--text-primary);
            font-size: 14px;
        }
        .app-button-full { width: 100%; }
        .app-button-full-offset {
            width: 100%;
            margin-top: 4px;
        }
        .app-button-compact-inline {
            min-height: 42px;
            padding: 0 12px;
            white-space: nowrap;
        }
        .app-form-buttons-padded { padding: 12px 16px; }
        .app-panel-body-pad { padding: 0 24px 16px; }
        .app-card-header-wrap {
            flex-wrap: wrap;
            gap: var(--sp-2);
        }
        .rendement-toggle-shell {
            display: flex;
            gap: 2px;
            padding: 3px;
            border-radius: 10px;
            background: var(--gray-100);
        }
        .app-filter-select-compact {
            width: auto;
            min-width: 110px;
            height: 32px;
            flex-shrink: 0;
        }
        .app-textarea-min { min-height: 80px; }
        .app-upload-progress-card {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            background: var(--primary-light, #eef2ff);
            border: 1px solid rgba(27,51,96,0.12);
            border-radius: 10px;
        }
        .app-upload-spinner {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            border: 2px solid rgba(27,51,96,0.2);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin .8s linear infinite;
        }
        .app-upload-progress-title {
            color: var(--primary);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .app-upload-progress-sub {
            margin-top: 2px;
            color: var(--gray-500);
            font-size: var(--text-xs);
        }
        .app-upload-progress-percent {
            min-width: 48px;
            padding: 6px 9px;
            border: 1px solid rgba(27,51,96,0.14);
            border-radius: 999px;
            background: rgba(255,255,255,0.72);
            color: var(--primary);
            font-size: var(--text-xs);
            font-weight: 800;
            text-align: center;
        }
        .app-upload-status-box {
            padding: 10px;
            margin-bottom: 12px;
            border-radius: 8px;
            background: var(--gray-50);
            color: var(--gray-600);
            font-size: var(--text-sm);
        }
        .app-upload-process-modal {
            position: fixed;
            inset: 0;
            z-index: 23000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
            background: rgba(10, 17, 32, 0.36);
            backdrop-filter: blur(18px) saturate(1.08);
            -webkit-backdrop-filter: blur(18px) saturate(1.08);
            opacity: 0;
            pointer-events: none;
            transition: opacity 180ms ease;
        }
        .app-upload-process-modal.is-active {
            opacity: 1;
            pointer-events: auto;
        }
        .app-upload-process-panel {
            width: min(560px, 100%);
            max-height: min(760px, calc(100vh - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));
            display: flex;
            flex-direction: column;
            overflow: auto;
            border: 1px solid rgba(17, 24, 39, 0.10);
            border-radius: 28px;
            background: color-mix(in srgb, var(--bg-card) 92%, white 8%);
            box-shadow: 0 24px 80px rgba(10, 17, 32, 0.26), 0 1px 0 rgba(255,255,255,0.72) inset;
            padding: 24px;
            transform: translateY(10px) scale(0.985);
            transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
        }
        .app-upload-process-modal.is-active .app-upload-process-panel {
            transform: translateY(0) scale(1);
        }
        .app-upload-process-dial {
            position: relative;
            order: 1;
            width: 76px;
            height: 76px;
            display: grid;
            place-items: center;
            margin-bottom: 18px;
            border-radius: 50%;
            color: var(--primary);
            background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,247,251,0.94));
            box-shadow: 0 12px 28px rgba(27, 51, 96, 0.14);
        }
        .app-upload-process-ring {
            position: absolute;
            inset: 8px;
            border-radius: 50%;
            border: 3px solid rgba(27,51,96,0.12);
            border-top-color: var(--primary);
            animation: spin 0.9s linear infinite;
        }
        .app-upload-process-modal[data-stage="complete"] .app-upload-process-ring {
            animation: none;
            border-color: rgba(22, 163, 74, 0.22);
            border-top-color: var(--success);
        }
        .app-upload-process-modal[data-stage="error"] .app-upload-process-ring {
            animation: none;
            border-color: rgba(220, 38, 38, 0.22);
            border-top-color: var(--danger);
        }
        .app-upload-process-dial span {
            position: relative;
            z-index: 1;
            font-size: var(--text-sm);
            font-weight: 850;
        }
        .app-upload-process-copy {
            order: 2;
            margin-bottom: 20px;
        }
        .app-upload-process-kicker {
            margin: 0 0 7px;
            color: var(--gray-500);
            font-size: var(--text-xs);
            font-weight: 800;
            letter-spacing: 0;
            text-transform: uppercase;
        }
        .app-upload-process-copy h3 {
            margin: 0;
            color: var(--text-primary);
            font-size: clamp(1.45rem, 1.2rem + 0.4vw, 1.8rem);
            line-height: 1.12;
            letter-spacing: 0;
        }
        .app-upload-process-copy p:last-child {
            margin: 9px 0 0;
            color: var(--gray-600);
            font-size: var(--text-sm);
            line-height: 1.5;
        }
        .app-upload-process-meter {
            order: 3;
            padding: 14px;
            border: 1px solid rgba(27,51,96,0.10);
            border-radius: 16px;
            background: rgba(248, 250, 252, 0.72);
        }
        .app-upload-process-meter-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
            color: var(--gray-600);
            font-size: var(--text-xs);
            font-weight: 700;
        }
        .app-upload-process-meter-head span:first-child {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: var(--text-primary);
        }
        .app-upload-process-meter progress {
            width: 100%;
            height: 7px;
            overflow: hidden;
            border: 0;
            border-radius: 999px;
            background: rgba(27,51,96,0.10);
        }
        .app-upload-process-meter progress::-webkit-progress-bar {
            border-radius: 999px;
            background: rgba(27,51,96,0.10);
        }
        .app-upload-process-meter progress::-webkit-progress-value {
            border-radius: 999px;
            background: linear-gradient(90deg, #17376d, #2f6f9f 58%, #27a36a);
            transition: width 180ms ease;
        }
        .app-upload-process-meter progress::-moz-progress-bar {
            border-radius: 999px;
            background: linear-gradient(90deg, #17376d, #2f6f9f 58%, #27a36a);
        }
        .app-upload-process-stages {
            order: 4;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            margin: 16px 0;
        }
        .app-upload-process-stage {
            display: flex;
            align-items: center;
            gap: 7px;
            min-height: 34px;
            padding: 8px 9px;
            border: 1px solid rgba(27,51,96,0.10);
            border-radius: 12px;
            color: var(--gray-500);
            background: rgba(255,255,255,0.64);
            font-size: var(--text-xs);
            font-weight: 750;
        }
        .app-upload-process-stage.is-active {
            border-color: rgba(27,51,96,0.24);
            color: var(--primary);
            background: rgba(238,242,255,0.78);
        }
        .app-upload-process-stage.is-done {
            color: #166534;
            background: rgba(240,253,244,0.86);
            border-color: rgba(22,163,74,0.18);
        }
        .app-upload-process-stage.is-error {
            color: #991b1b;
            background: rgba(254,242,242,0.92);
            border-color: rgba(220,38,38,0.22);
        }
        .app-upload-process-stage-dot,
        .app-upload-process-check-icon {
            width: 18px;
            height: 18px;
            display: inline-grid;
            place-items: center;
            flex: 0 0 auto;
            border-radius: 999px;
            background: rgba(27,51,96,0.10);
            color: currentColor;
        }
        .app-upload-process-stage.is-active .app-upload-process-stage-dot {
            background: var(--primary);
            box-shadow: 0 0 0 4px rgba(27,51,96,0.10);
        }
        .app-upload-process-stage.is-done .app-upload-process-stage-dot,
        .app-upload-process-check.is-done .app-upload-process-check-icon {
            background: #16a34a;
            color: white;
        }
        .app-upload-process-stage.is-error .app-upload-process-stage-dot {
            background: #dc2626;
            color: white;
            box-shadow: 0 0 0 4px rgba(220,38,38,0.10);
        }
        .app-upload-process-checks {
            order: 5;
            border: 1px solid rgba(27,51,96,0.10);
            border-radius: 18px;
            background: rgba(255,255,255,0.70);
            overflow: hidden;
        }
        .app-upload-process-checks-head {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            padding: 13px 14px;
            border-bottom: 1px solid rgba(27,51,96,0.08);
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 850;
        }
        .app-upload-process-checks-head small {
            color: var(--gray-500);
            font-size: var(--text-xs);
            font-weight: 750;
        }
        .app-upload-process-check {
            display: grid;
            grid-template-columns: 20px minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
            min-height: 42px;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(27,51,96,0.06);
            color: var(--text-primary);
            font-size: var(--text-sm);
        }
        .app-upload-process-check:last-child {
            border-bottom: 0;
        }
        .app-upload-process-check small {
            color: var(--gray-500);
            font-size: var(--text-xs);
            font-weight: 750;
        }
        .app-upload-process-check.is-pending .app-upload-process-check-icon {
            background: transparent;
            border: 1px solid rgba(27,51,96,0.18);
        }
        .app-upload-process-check.is-missing {
            background: rgba(255, 251, 235, 0.62);
        }
        .app-upload-process-check.is-missing .app-upload-process-check-icon {
            background: rgba(217,119,6,0.12);
            color: #b45309;
        }
        .app-upload-process-actions {
            order: 6;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 18px;
        }
        .app-upload-process-error {
            order: 6;
            margin-top: 14px;
            padding: 12px 13px;
            border: 1px solid rgba(220,38,38,0.18);
            border-radius: 12px;
            background: rgba(254,242,242,0.78);
            color: #7f1d1d;
            font-size: var(--text-xs);
            line-height: 1.45;
            font-weight: 650;
        }
        .app-upload-process-modal[data-stage="complete"] .app-upload-process-actions {
            order: 5;
            margin-top: 0;
            margin-bottom: 16px;
        }
        .app-upload-process-modal[data-stage="complete"] .app-upload-process-checks {
            order: 6;
        }
        .app-upload-process-actions[hidden] {
            display: none;
        }
        html.dark .app-upload-process-panel {
            background: color-mix(in srgb, var(--bg-card) 92%, #111827 8%);
            border-color: rgba(255,255,255,0.10);
            box-shadow: 0 24px 80px rgba(0,0,0,0.46), 0 1px 0 rgba(255,255,255,0.08) inset;
        }
        html.dark .app-upload-process-dial,
        html.dark .app-upload-process-meter,
        html.dark .app-upload-process-stage,
        html.dark .app-upload-process-checks {
            background: rgba(255,255,255,0.06);
            border-color: rgba(255,255,255,0.10);
        }
        html.dark .app-upload-process-stage.is-active {
            background: rgba(96,165,250,0.12);
            border-color: rgba(147,197,253,0.24);
            color: #bfdbfe;
        }
        html.dark .app-upload-process-stage.is-done {
            background: rgba(34,197,94,0.11);
            border-color: rgba(34,197,94,0.20);
            color: #bbf7d0;
        }
        html.dark .app-upload-process-stage.is-error,
        html.dark .app-upload-process-error {
            background: rgba(127,29,29,0.24);
            border-color: rgba(248,113,113,0.24);
            color: #fecaca;
        }
        @media (max-width: 640px) {
            .app-upload-process-modal {
                align-items: flex-end;
                padding: 12px 10px max(10px, env(safe-area-inset-bottom));
            }
            .app-upload-process-panel {
                width: 100%;
                max-height: calc(100vh - 20px - env(safe-area-inset-top));
                border-radius: 24px;
                padding: 18px;
            }
            .app-upload-process-dial {
                width: 64px;
                height: 64px;
                margin-bottom: 14px;
            }
            .app-upload-process-copy h3 {
                font-size: 1.35rem;
            }
            .app-upload-process-stages {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .app-upload-process-actions {
                flex-direction: column;
            }
            .app-upload-process-actions .btn {
                width: 100%;
            }
        }
        .app-upload-results-box {
            padding: 12px;
            margin-bottom: 12px;
            border: 1px solid rgba(22,163,74,0.2);
            border-radius: 10px;
            background: rgba(22,163,74,0.06);
            color: var(--text-primary);
            font-size: var(--text-sm);
        }
        .app-progress-track {
            height: 4px;
            margin-top: 8px;
            overflow: hidden;
            background: var(--gray-200);
            border-radius: 2px;
        }
        .app-progress-fill {
            width: 0%;
            height: 100%;
            background: var(--primary);
            border-radius: 2px;
            transition: width .3s ease;
        }
        .app-progress-meter {
            width: 100%;
            appearance: none;
            border: none;
        }
        .app-progress-meter::-webkit-progress-bar {
            background: transparent;
        }
        .app-progress-meter::-webkit-progress-value {
            border-radius: 2px;
            background: var(--primary);
            transition: width .3s ease;
        }
        .app-progress-meter::-moz-progress-bar {
            border-radius: 2px;
            background: var(--primary);
        }
        .app-progress-fill--20 { width: 20%; }
        .lease-registration-box {
            margin-top: 16px;
            padding: 14px;
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            background: var(--gray-50, #f9fafb);
        }
        .lease-registration-label {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 0;
            cursor: pointer;
        }
        .lease-registration-title {
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .lease-registration-divider {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 20px 0 12px;
            padding-top: 16px;
            border-top: 1px solid var(--border-color);
        }
        .smart-meter-label {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 22px;
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 700;
        }
        .auth-label-left {
            display: block;
            margin-bottom: 6px;
            text-align: left;
        }
        .auth-label-password {
            display: block;
            margin: 10px 0 6px;
            text-align: left;
        }
        .auth-input--flush { margin-top: 0; }
        .auth-btn--primary { background: var(--primary); }
        .auth-switch-hint {
            margin-top: 16px;
            color: var(--gray-400);
            font-size: var(--text-sm);
            text-align: center;
        }
        .auth-link-button {
            padding: 0;
            border: none;
            background: none;
            color: var(--primary);
            cursor: pointer;
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .auth-link-button.has-top-gap {
            margin-top: 8px;
        }
        .auth-footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 20px;
            text-align: center;
        }
        .auth-privacy-link {
            display: inline-flex;
            align-items: center;
            min-height: 44px;
            color: var(--gray-400);
            font-size: var(--text-xs);
            text-decoration: none;
        }
        .sidebar-avatar {
            display: block;
            width: 30px;
            height: 30px;
            object-fit: cover;
            border: 1px solid rgba(255,255,255,0.22);
            border-radius: 50%;
        }
        .sidebar-avatar-fallback {
            display: grid;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 30px;
            height: 30px;
            border: 1px solid rgba(255,255,255,0.14);
            border-radius: 50%;
            background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.07));
            color: rgba(255,255,255,0.90);
            font-size: var(--text-xs);
            font-weight: var(--weight-bold);
        }
        .sidebar-user-email {
            max-width: 140px;
            margin: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .sidebar-auth-status {
            margin-top: 1px;
            color: rgba(255,255,255,0.4);
            font-size: var(--text-xs);
        }
        .sidebar-signout-compact {
            padding: var(--sp-1) var(--sp-2);
            font-size: var(--text-sm);
        }
        .header-onboarding-muted { opacity: .7; }
        .offline-indicator {
            padding: var(--sp-1) var(--sp-2);
            border: 1px solid rgba(255,200,0,0.3);
            border-radius: 10px;
            background: rgba(255,200,0,0.2);
            color: #fde68a;
            font-size: var(--text-xs);
        }
        .mobile-urgent-badge {
            position: absolute;
            top: 6px;
            right: calc(50% - 16px);
            padding: var(--sp-1) var(--sp-2);
            border-radius: 6px;
            background: #C0392B;
            color: #fff;
            font-size: 9px;
            font-weight: 700;
        }
        .mobile-signout-danger {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            flex: 0 0 auto;
            min-height: 40px;
            padding: 0 12px;
            border: 1px solid rgba(192,57,43,0.16);
            border-radius: 8px;
            background: rgba(192,57,43,0.055);
            color: var(--danger);
            cursor: pointer;
            font-size: 12px;
            font-weight: 760;
            text-align: left;
            transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
        }

        .mobile-signout-danger:hover,
        .mobile-signout-danger:focus-visible {
            background: rgba(192,57,43,0.10);
            border-color: rgba(192,57,43,0.24);
            transform: translateY(-1px);
        }
        .portfolio-dot--occupied { background: #16a34a; }
        .portfolio-dot--review { background: #d97706; }
        .portfolio-dot--empty { background: #1B3360; }
        .panden-tab-switch {
            display: flex;
            width: fit-content;
            gap: 0;
            margin-bottom: 20px;
            overflow: hidden;
            border: 1px solid var(--border-subtle);
            border-radius: 999px;
            background: var(--bg-card);
            box-shadow: 0 8px 24px rgba(0,0,0,0.04);
        }
        .panden-tab-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 20px;
            border: none;
            background: var(--bg-card);
            color: var(--text-secondary);
            cursor: pointer;
            font-size: var(--text-sm);
            font-weight: 600;
            transition: all .15s;
        }
        .panden-tab-btn + .panden-tab-btn {
            border-left: 1px solid var(--border-subtle);
        }
        .panden-tab-btn.is-active {
            background: var(--primary);
            color: #fff;
        }
        .panden-map-shell {
            overflow: hidden;
            border: 1px solid var(--border-subtle);
            border-radius: 14px;
        }
        .panden-map-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 16px;
            border-bottom: 1px solid var(--border-subtle);
            background: var(--bg-card);
        }
        .panden-map-legend {
            display: flex;
            align-items: center;
            gap: 14px;
            color: var(--text-muted);
            font-size: var(--text-xs);
        }
        .panden-map-legend-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .panden-map-dot {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }
        .panden-map-status {
            color: var(--text-muted);
            font-size: var(--text-xs);
        }
        .panden-map-canvas {
            width: 100%;
            height: 480px;
        }
        .dash-metric-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 1100;
            background: rgba(0,0,0,0.35);
            backdrop-filter: blur(2px);
            animation: fadeInBd .2s ease;
        }
        .dash-metric-backdrop:not([hidden]) {
            display: block;
        }
        .dash-metric-panel {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            z-index: 1101;
            display: flex;
            flex-direction: column;
            width: min(480px, 100vw);
            overflow: hidden;
            background: var(--bg-card);
            box-shadow: -8px 0 40px rgba(0,0,0,0.18);
            transform: translateX(100%);
            transition: transform .32s cubic-bezier(.4,0,.2,1);
        }
        .dash-metric-panel[hidden],
        .dash-metric-backdrop[hidden] {
            display: none !important;
        }
        .dash-metric-panel.open {
            transform: translateX(0);
        }
        .dash-metric-panel__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
            gap: 12px;
            padding: 20px 20px 16px;
            border-bottom: 1px solid var(--border-color);
        }
        .dash-metric-panel__title {
            color: var(--text-primary);
            font-size: 1.05rem;
            font-weight: 700;
        }
        .dash-metric-panel__subtitle {
            margin-top: 2px;
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .dash-metric-panel__close {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            min-height: 44px;
            padding: 4px;
            border: none;
            border-radius: 8px;
            background: none;
            color: var(--text-muted);
            cursor: pointer;
        }
        .dash-metric-panel__body {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
            scrollbar-width: thin;
            scrollbar-color: rgba(0,0,0,0.12) transparent;
        }
        .dash-metric-row,
        .dash-metric-total,
        .dash-metric-cost-row {
            display: flex;
            justify-content: space-between;
        }
        .dash-metric-row {
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
        }
        .dash-metric-row__title,
        .dash-metric-cost-group__title {
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 600;
        }
        .dash-metric-row__meta {
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .dash-metric-row__value {
            font-weight: 700;
        }
        .dash-metric-row__value.is-positive {
            color: var(--success-text);
        }
        .dash-metric-row__value.is-negative {
            color: var(--danger-text);
        }
        .dash-metric-row__value.is-neutral {
            color: var(--text-secondary);
        }
        .dash-metric-total {
            padding: 14px 0 0;
            font-size: 15px;
            font-weight: 700;
        }
        .dash-metric-total--bordered {
            border-top: 1px solid var(--border-color);
        }
        .dash-metric-empty {
            padding: 40px 0;
            color: var(--text-muted);
            text-align: center;
        }
        .dash-metric-cost-row {
            align-items: center;
            padding: 6px 0 6px 12px;
            font-size: var(--text-sm);
        }
        .dash-metric-cost-group {
            margin-bottom: 12px;
        }
        .dash-metric-cost-group__title {
            padding: 10px 0 4px;
        }
        .dash-metric-cost-group__total {
            display: flex;
            justify-content: flex-end;
            padding-top: 4px;
            border-top: 1px solid var(--border-color);
            color: var(--danger-text);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .dash-metric-grid {
            display: grid;
            grid-template-columns: 1fr auto auto auto;
            align-items: center;
            gap: 0 16px;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
            font-size: var(--text-sm);
        }
        .dash-metric-grid--head {
            align-items: start;
            margin-bottom: 4px;
            padding: 0 0 8px;
            color: var(--text-muted);
            font-weight: 600;
            text-transform: uppercase;
        }
        .dash-metric-grid__property {
            color: var(--text-primary);
            font-weight: 500;
        }
        .feedback-trigger {
            position: fixed;
            right: 20px;
            bottom: 24px;
            z-index: 9000;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border: none;
            border-radius: 50%;
            background: var(--primary, #1B3360);
            color: #fff;
            cursor: pointer;
            box-shadow: 0 8px 22px rgba(0,0,0,0.25);
            transition: transform .15s, box-shadow .15s;
        }
        .feedback-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 18px 14px;
            background: var(--primary, #1B3360);
        }
        .feedback-panel-title {
            color: #fff;
            font-size: 15px;
            font-weight: 700;
        }
        .feedback-panel-subtitle {
            margin-top: 2px;
            color: rgba(255,255,255,0.72);
            font-size: 12px;
        }
        .feedback-close {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            width: 34px;
            height: 34px;
            border: none;
            border-radius: 999px;
            background: rgba(255,255,255,0.12);
            color: #fff;
            cursor: pointer;
            font-size: 18px;
            line-height: 1;
        }
        .feedback-attach-label {
            margin: 0;
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 600;
            line-height: 1.45;
        }
        .feedback-image-icon {
            flex-shrink: 0;
            margin-top: 1px;
        }
        .feedback-error {
            display: none;
            margin-top: -2px;
            color: var(--danger);
            font-size: 12px;
        }
        .feedback-error.is-visible { display: block; }
        .feedback-submit {
            min-height: 46px;
            font-size: 14px;
            font-weight: 800;
            box-shadow: 0 10px 24px rgba(27,51,96,0.2);
        }
        .feedback-close-button { min-height: 42px; }
        .feedback-success {
            display: none;
            padding: 18px 4px 6px;
            text-align: center;
        }
        .feedback-success.is-visible { display: block; }
        .feedback-success-icon { margin-bottom: 10px; }
        .feedback-success-title {
            margin-bottom: 4px;
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 700;
        }
        .feedback-success-copy {
            color: var(--text-muted);
            font-size: 13px;
            line-height: 1.5;
        }
        .pwa-update-toast {
            position: fixed;
            left: 16px;
            right: 16px;
            bottom: calc(84px + env(safe-area-inset-bottom));
            z-index: 10050;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 16px;
            background: rgba(15,31,61,0.96);
            color: #fff;
            box-shadow: 0 18px 40px rgba(0,0,0,0.24);
            font-size: 14px;
        }
        .pwa-update-toast__text {
            line-height: 1.4;
            font-weight: 600;
        }
        .pwa-update-toast__button {
            padding: 10px 12px;
            border: none;
            border-radius: 12px;
            background: #fff;
            color: #0F1F3D;
            font-weight: 800;
            cursor: pointer;
            white-space: nowrap;
        }
        .mail-draft-toast {
            position: fixed;
            z-index: 9999;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 20px;
            border-radius: 12px;
            background: #1B3360;
            color: white;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            font-size: var(--text-sm);
        }
        .mail-draft-toast.is-top-right {
            top: 24px;
            right: 24px;
            left: auto;
            max-width: 420px;
            transform: none;
        }
        .mail-draft-toast.is-bottom-center {
            bottom: 90px;
            left: 50%;
            max-width: 92vw;
            transform: translateX(-50%);
        }
        .mail-draft-toast__link {
            padding: 7px 14px;
            border-radius: 8px;
            background: var(--bg-card);
            color: var(--text-primary);
            font-weight: 700;
            font-size: var(--text-sm);
            text-decoration: none;
            white-space: nowrap;
        }
        .mail-draft-toast__close {
            padding: 0 4px;
            border: none;
            background: none;
            color: rgba(255,255,255,0.5);
            cursor: pointer;
            font-size: 16px;
        }
        .global-toast {
            position: fixed;
            z-index: 9999;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            padding: 12px 16px;
            border-radius: 10px;
            color: white;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            font-size: var(--text-sm);
        }
        .global-toast.is-success { background: #064E3B; }
        .global-toast.is-error { background: #7F1D1D; }
        .global-toast.is-warning { background: #6B3A00; }
        .global-toast.is-info { background: #1B3360; }
        .global-toast.is-top-right {
            top: 24px;
            right: 24px;
            left: auto;
            max-width: 380px;
            text-align: left;
            justify-content: flex-start;
            transform: none;
        }
        .global-toast.is-bottom-center {
            bottom: 90px;
            left: 50%;
            max-width: 92vw;
            text-align: center;
            justify-content: center;
            transform: translateX(-50%);
        }
        .global-toast__icon {
            display: inline-flex;
            flex-shrink: 0;
            opacity: 0.9;
        }
        .global-toast__action {
            padding: 8px 12px;
            border: none;
            border-radius: 8px;
            background: var(--bg-card);
            color: #1B3360;
            font-size: var(--text-sm);
            font-weight: 700;
            cursor: pointer;
        }
        .hidden {
            display: none !important;
        }

        [hidden] {
            display: none !important;
        }

        /* ===== LOADING STATE ===== */
        .skeleton {
            background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
            border-radius: var(--radius-md);
            height: 20px;
        }

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

        /* ===== TABLET ADJUSTMENTS ===== */
        @media (min-width: 768px) and (max-width: 1024px) {
            h1 {
                font-size: 24px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }
        }

        /* ===== DESKTOP ADJUSTMENTS ===== */
        @media (min-width: 1025px) {
            h1 {
                font-size: 28px;
            }

            .modal {
                align-items: center;
            }

            .modal-content {
                border-radius: 20px;
                max-height: 90vh;
                overflow-y: auto;
                margin: auto;
            }

            .form-row {
                grid-template-columns: 1fr 1fr;
            }

            .metrics-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 20px;
            }
        }

        /* ===== SECTION PAGE HEADERS — zichtbaar op ≥768px ===== */
        @media (min-width: 768px) {
            .section-page-header {
                display: flex !important;
                align-items: center;
                justify-content: space-between;
                gap: 16px;
                margin-bottom: 24px;
                padding-bottom: 16px;
                border-bottom: 1px solid var(--border-subtle);
            }

            /* Zowel directe wrapper div als directe h1/h2 als eerste kind */
            .section-page-header > div:first-child,
            .section-page-header > h1:first-child,
            .section-page-header > h2:first-child {
                flex: 1;
            }

            .section-page-header h1,
            .section-page-header h2 {
                display: inline-block !important;
                font-size: 20px !important;
                font-weight: 600 !important;
                margin-bottom: 0 !important;
                color: var(--text-primary) !important;
            }

            .section-page-header .subtitle,
            .section-page-header p.subtitle {
                display: block !important;
                font-size: 13px;
                color: var(--text-muted);
                margin-top: 2px;
                margin-bottom: 0;
            }
        }

        /* ===== CONTENT MAX-WIDTH WRAPPER ===== */
        /* De app-content padding wordt geregeld door het Silke v2 blok verderop.
           Hier zorgen we voor max-width centering van de section content. */
        @media (min-width: 768px) {
            /* Sections: gecentreerd met max-width */
            .section.active {
                max-width: 1280px;
                margin-left: auto;
                margin-right: auto;
                width: 100%;
            }
        }

        .trust-panel {
            background: linear-gradient(180deg, rgba(27,51,96,0.05), rgba(27,51,96,0.02));
            border: 1px solid rgba(27,51,96,0.12);
            border-radius: 16px;
            padding: 18px;
        }
        .trust-kpis {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            margin: 16px 0 18px;
        }
        .trust-kpi {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: 14px;
            padding: 14px;
        }
        .trust-kpi-value {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.1;
        }
        .trust-kpi-label {
            font-size: var(--text-xs);
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-top: 4px;
        }
        .trust-list {
            list-style: none;
            display: grid;
            gap: 10px;
            margin: 0;
            padding: 0;
        }
        .trust-list li {
            background: var(--bg-card);
            border: 1px solid var(--border-subtle);
            border-radius: 12px;
            padding: 12px 14px;
            color: var(--text-secondary);
            line-height: 1.55;
        }
        .trust-list strong { color: var(--text-primary); }
        .portfolio-property-card {
            position: relative;
            overflow: hidden;
        }
        .portfolio-property-card::before {
            content: '';
            position: absolute;
            inset: 0 auto 0 0;
            width: 4px;
            background: linear-gradient(180deg, var(--primary), rgba(27,51,96,0.18));
            opacity: 0.9;
        }
        .property-dossier-bar,
        .document-dossier-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            margin: 14px 0 0;
            padding-top: 12px;
            border-top: 1px solid var(--border-subtle);
        }
        .property-dossier-meta,
        .document-dossier-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            color: var(--text-muted);
            font-size: var(--text-xs);
        }
        .property-dossier-chip,
        .document-dossier-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            border-radius: 999px;
            background: var(--gray-100);
            border: 1px solid var(--border-subtle);
            color: var(--text-secondary);
            font-weight: 600;
        }
        .property-primary-actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 12px;
        }
        .property-secondary-actions {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 10px;
        }
        .document-cluster-card {
            border: 1px solid var(--border-subtle);
            border-radius: 16px;
            background: linear-gradient(180deg, rgba(244,243,240,0.65), rgba(255,255,255,0.96));
            padding: 14px;
            margin-bottom: 14px;
        }
        .document-cluster-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }
        .document-entry {
            display: grid;
            grid-template-columns: 40px minmax(0, 1fr) auto;
            gap: 12px;
            align-items: center;
            padding: 12px 0;
            border-top: 1px solid var(--border-subtle);
        }
        .document-entry:first-of-type {
            border-top: none;
            padding-top: 4px;
        }
        .document-entry-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        @media (max-width: 900px) {
            .trust-kpis { grid-template-columns: 1fr; }
            .document-entry { grid-template-columns: 40px minmax(0, 1fr); }
            .document-entry-actions { grid-column: 1 / -1; justify-content: flex-start; }
        }

        @media (min-width: 1280px) {
            .sidebar {
                width: 220px;
            }

            .main-content {
                --sidebar-offset: 220px;
            }
        }

        /* iOS safe area fixes */
        @supports (padding: max(0px)) {
            body {
                padding-left: max(0px, env(safe-area-inset-left));
                padding-right: max(0px, env(safe-area-inset-right));
            }
        }

        /* ===== ONTBREKENDE KLASSEN — OVERDRACHT WIZARD & MODALS ===== */

        /* Modal backdrop — fullscreen overlay voor wizard modals */
        .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }
        .modal-backdrop[hidden],
        .modal-backdrop.u-display-none {
            display: none !important;
        }
        html.dark .modal-backdrop {
            background: rgba(0, 0, 0, 0.75);
        }

        /* Modal container — centreerd venster */
        .modal-container {
            background: var(--bg-card);
            border-radius: 20px;
            width: 100%;
            max-width: 560px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
            display: flex;
            flex-direction: column;
            -webkit-overflow-scrolling: touch;
        }
        .modal-container.modal-lg {
            max-width: 680px;
        }
        @media (max-width: 767px) {
            .modal-backdrop {
                align-items: flex-end;
                padding: 0;
            }
            .modal-container {
                border-radius: 20px 20px 0 0;
                max-height: 92vh;
            }
        }

        /* Modal body — scrollbaar content gedeelte */
        .modal-body {
            padding: 20px 24px;
            flex: 1;
            overflow-y: auto;
        }

        @media (max-width: 768px) {
            .modal-content {
                width: 100%;
                max-width: 100%;
                max-height: min(88vh, calc(100vh - 10px));
                border-radius: 24px 24px 0 0;
                padding-bottom: max(env(safe-area-inset-bottom), 20px);
            }
            .huurder-contact-row {
                padding:14px 15px;
                gap:12px;
                align-items:flex-start;
            }
            .huurder-contact-main {
                align-items:flex-start;
            }
            .huurder-contact-phone-wrap {
                flex-direction:column;
                align-items:flex-end;
                gap:6px;
            }
            .huurder-contact-phone {
                font-size:13px;
                text-align:right;
                white-space:normal;
            }
            .tenant-contact-grid {
                grid-template-columns:1fr;
            }
            .tenant-contact-modal-head {
                padding: 2px 16px 0;
                flex-direction:column;
                align-items:flex-start;
            }
            .tenant-contact-title {
                font-size:21px;
            }
            .modal-header {
                padding: 16px 16px 14px;
            }
            .modal-title {
                font-size: 18px;
                line-height: 1.3;
            }
            .modal-close {
                width: 44px;
                height: 44px;
                font-size: 20px;
            }
            .modal-content > form,
            .modal-content > div:not(.modal-header):not(.modal-footer) {
                padding: 16px 16px calc(92px + env(safe-area-inset-bottom)) !important;
            }
            .prop-choice__grid {
                grid-template-columns: 1fr;
            }
            .prop-choice__button {
                min-height: 76px;
            }
            .prop-choice__help {
                left: 12px;
                right: 12px;
                bottom: auto;
                top: calc(100% + 8px);
                width: auto;
                transform: translateY(-4px);
            }
            .prop-choice__help::after {
                top: -6px;
                bottom: auto;
            }
            @media (hover: hover) and (pointer: fine) {
                .prop-choice__button:hover .prop-choice__help {
                    transform: translateY(0);
                }
            }
            .modal-body {
                padding-bottom: 92px;
            }
            .form-group {
                margin-bottom: 16px;
            }
            .form-group label {
                margin-bottom: 6px;
                line-height: 1.35;
            }
            .form-group input,
            .form-group select,
            .form-group textarea,
            .upload-zone {
                min-height: 46px;
                font-size: 16px;
            }
            .form-buttons,
            .modal-footer {
                position: sticky;
                bottom: 0;
                background: linear-gradient(180deg, rgba(255,255,255,0.92), var(--bg-card));
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
                margin: 0 -16px -16px;
                border-top: 1px solid var(--border-subtle);
                box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.08);
            }
            .form-buttons .btn,
            .modal-footer .btn {
                min-height: 46px;
                font-weight: 700;
            }
        }

        /* Modal footer — acties onderaan */
        .modal-footer {
            padding: 16px 24px;
            border-top: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--bg-card);
            flex-shrink: 0;
            border-radius: 0 0 20px 20px;
        }
        @media (max-width: 767px) {
            .modal-footer {
                border-radius: 0;
                padding-bottom: max(16px, env(safe-area-inset-bottom));
            }
        }

        /* Upload zone — drag & drop gebied in wizard */
        .upload-zone {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 20px 16px;
            border: 2px dashed var(--border-color);
            border-radius: 12px;
            cursor: pointer;
            text-align: center;
            font-size: 13px;
            color: var(--text-secondary);
            background: var(--gray-50);
            transition: border-color 0.2s, background 0.2s;
            min-height: 80px;
        }
        .upload-zone:hover {
            border-color: var(--primary);
            background: var(--primary-light);
            color: var(--primary);
        }
        .upload-zone svg {
            color: var(--text-muted);
            transition: color 0.2s;
        }
        .upload-zone:hover svg {
            color: var(--primary);
        }
        html.dark .upload-zone {
            background: var(--gray-100);
            border-color: var(--border-color);
        }
        html.dark .upload-zone:hover {
            border-color: var(--primary);
            background: rgba(74, 123, 200, 0.1);
        }

        /* form-label — label klasse voor wizard forms */
        .form-label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            font-size: 13px;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

        /* Vereiste velden — automatische * indicator */
        label.required::after, .form-label.required::after {
            content: " *";
            color: var(--danger-text);
            font-weight: 700;
        }
        /* Vereiste inputs: subtiele amber linker rand */
        input[required], select[required], textarea[required] {
            border-left: 3px solid #f59e0b;
        }
        input[required]:focus, select[required]:focus, textarea[required]:focus {
            border-left-color: var(--primary);
        }
        input[required]:valid, select[required]:valid, textarea[required]:valid {
            border-left-color: var(--success);
        }

        /* form-control — input/select/textarea klasse voor wizard forms */
        .form-control {
            width: 100%;
            padding: 11px 14px;
            border: 1.5px solid var(--border-color);
            border-radius: 10px;
            font-size: 14px;
            font-family: var(--font-body);
            color: var(--text-primary);
            background: var(--bg-card);
            transition: border-color 0.2s, box-shadow 0.2s;
            min-height: 44px;
        }
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(15, 31, 61, 0.08);
        }
        html.dark .form-control:focus {
            box-shadow: 0 0 0 3px rgba(74, 123, 200, 0.15);
        }
        .form-control::placeholder {
            color: var(--text-muted);
        }
        textarea.form-control {
            resize: vertical;
            min-height: 100px;
        }

        /* ===== DARK MODE — badge kleuren ===== */
        html.dark .badge-success {
            background: var(--success-light);
            color: #6ee7b7;
        }
        html.dark .badge-warning {
            background: var(--warning-light);
            color: #fcd34d;
        }
        html.dark .badge-danger {
            background: var(--danger-light);
            color: #fca5a5;
        }
        html.dark .badge-primary {
            background: rgba(74, 123, 200, 0.2);
            color: var(--primary);
        }

        /* ===== DARK MODE — dossier status badges ===== */
        html.dark .dossier-status-draft {
            background: rgba(255, 255, 255, 0.10);
            color: rgba(255,255,255,0.85);
        }
        html.dark .dossier-status-progress {
            background: rgba(59, 130, 246, 0.2);
            color: #93c5fd;
        }
        html.dark .dossier-status-done {
            background: rgba(34, 197, 94, 0.15);
            color: #86efac;
        }

        /* ===== DARK MODE — meter group & energie ===== */
        html.dark .meter-group {
            background: var(--gray-100);
            border-color: var(--border-color);
        }
        html.dark .energie-summary {
            background: var(--gray-100);
            border-color: var(--border-color);
        }
        html.dark .meter-preview-box {
            background: var(--gray-100);
            border-color: var(--border-color);
        }
        html.dark .energie-link-btn {
            background: var(--gray-100);
            border-color: var(--border-color);
            color: var(--primary);
        }
        html.dark .energie-link-btn:hover {
            background: rgba(74, 123, 200, 0.15);
        }
        html.dark .checklist-info-box {
            background: rgba(59, 130, 246, 0.1);
            border-color: rgba(59, 130, 246, 0.25);
            color: #93c5fd;
        }
        html.dark .checklist-info-success {
            background: rgba(34, 197, 94, 0.1);
            border-color: rgba(34, 197, 94, 0.25);
            color: #86efac;
        }
        html.dark .prorata-result {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.12);
        }

        /* ===== DARK MODE — dossier checklist items ===== */
        html.dark .dossier-checklist-item {
            background: var(--gray-100);
            border-color: var(--border-color);
            color: var(--text-secondary);
        }
        html.dark .dossier-checklist-item.done {
            background: rgba(34, 197, 94, 0.1);
            border-color: rgba(34, 197, 94, 0.25);
            color: #86efac;
        }

        /* ===== DARK MODE — auth msg ===== */
        html.dark .auth-msg.success {
            background: rgba(5, 150, 105, 0.15);
            color: #6ee7b7;
        }
        html.dark .auth-msg.error {
            background: rgba(220, 38, 38, 0.15);
            color: #fca5a5;
        }

        /* ===== DARK MODE — cost item ===== */
        html.dark .cost-item {
            background: var(--gray-100);
        }

        /* ===== DARK MODE — form tabs ===== */
        html.dark .form-tabs {
            background: var(--gray-100);
        }
        html.dark .form-tab.active {
            background: var(--bg-card);
        }
        html.dark .overdracht-tabs {
            background: var(--gray-100);
        }
        html.dark .overdracht-tab.active {
            background: var(--bg-card);
        }
        html.dark .auth-tabs {
            background: var(--gray-100);
        }
        html.dark .auth-tab.active {
            background: var(--bg-card);
        }

        /* ===== DARK MODE — step indicator in modal ===== */
        html.dark #propStep1Ind[style*="background:var(--gray-100"] {
            background: var(--gray-200) !important;
        }

        /* ===== VERBETERDE EMPTY STATES ===== */
        .empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 48px 24px;
            text-align: center;
            color: var(--text-muted);
        }
        .empty-state-icon, .empty-icon {
            margin-bottom: 12px;
            opacity: 0.4;
        }
        .empty-state h4 {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }
        .empty-state-text, .empty-text {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.5;
            max-width: 280px;
        }

        /* ===== ACTION BUTTON — border was ontbrekend ===== */
        .action-button {
            border: 1px solid var(--border-subtle);
        }

        /* ===== LOADING STATES — verbeterd skeleton ===== */
        html.dark .skeleton {
            background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
            background-size: 200% 100%;
        }

        /* ===== UPLOAD TABS — consistente stijl ===== */
        .upload-tab-bar {
            display: flex;
            gap: 6px;
            margin-bottom: 12px;
            padding: 4px;
            border: 1px solid var(--border-subtle);
            border-radius: 999px;
            background: rgba(15,31,61,0.03);
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            flex-wrap: nowrap;
        }
        .upload-tab-bar::-webkit-scrollbar { display: none; }
        .upload-tab-btn {
            padding: 9px 12px;
            border: none;
            background: none;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            color: var(--text-muted);
            transition: all 0.15s ease;
            font-family: var(--font-body);
            min-height: 38px;
            white-space: nowrap;
            flex-shrink: 0;
            border-radius: 999px;
        }
        .upload-tab-btn.active {
            background: #fff;
            color: var(--primary);
            box-shadow: 0 1px 2px rgba(15,31,61,0.06);
        }
        .upload-tab-btn:hover:not(.active) {
            color: var(--text-secondary);
        }
        html.dark .upload-tab-btn.active {
            color: var(--primary);
        }

        /* ===== STATUS BADGES — consistente grootte ===== */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
            letter-spacing: 0.02em;
        }
        .status-badge-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        .status-badge.success {
            background: var(--success-light);
            color: var(--success);
        }
        .status-badge.warning {
            background: var(--warning-light);
            color: var(--warning);
        }
        .status-badge.danger {
            background: var(--danger-light);
            color: var(--danger);
        }
        .status-badge.info {
            background: rgba(59, 130, 246, 0.1);
            color: #2563eb;
        }
        html.dark .status-badge.success {
            background: var(--success-light);
            color: #6ee7b7;
        }
        html.dark .status-badge.warning {
            background: var(--warning-light);
            color: #fcd34d;
        }
        html.dark .status-badge.danger {
            background: var(--danger-light);
            color: #fca5a5;
        }
        html.dark .status-badge.info {
            background: rgba(59, 130, 246, 0.15);
            color: #93c5fd;
        }

        /* ===== SECTION HEADER — typografische hiërarchie ===== */
        .section-title-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            margin-bottom: 20px;
        }
        .section-title-row h2 {
            margin-bottom: 2px;
            font-size: 22px;
            font-weight: 700;
            letter-spacing: -0.3px;
            color: var(--text-primary);
        }
        .section-title-row .subtitle {
            font-size: 13px;
            color: var(--text-muted);
            margin: 0;
        }

        /* ===== FORM VALIDATION FEEDBACK — consistent ===== */
        .form-error {
            font-size: 12px;
            color: var(--danger-text);
            margin-top: 4px;
            display: none;
        }
        .form-error.is-visible {
            display: block;
        }
        .form-group.has-error input,
        .form-group.has-error select,
        .form-group.has-error textarea,
        .form-group.has-error .form-control {
            border-color: var(--danger);
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
        }
        .form-group.has-error .form-error {
            display: block;
        }
        .form-group.has-success input,
        .form-group.has-success select,
        .form-group.has-success .form-control {
            border-color: var(--success-text);
        }

        /* ===== MOBILE RESPONSIVITEIT DOCUMENTEN TABEL ===== */
        @media (max-width: 767px) {
            .doc-upload-grid {
                gap: 16px;
            }
            .doc-upload-grid .card {
                margin-bottom: 0;
            }
            .modal-body {
                padding: 16px;
            }
            .modal-footer {
                flex-direction: column;
                gap: 8px;
            }
            .modal-footer .btn {
                width: 100%;
                justify-content: center;
            }
        }

        /* ===== WIZARD STEP NAVIGATION ===== */
        .wizard-step {
            animation: fadeIn 0.2s ease;
            max-width: 620px;
            margin: 0 auto;
            padding-left: 18px;
            border-left: 2px solid rgba(27,51,96,0.10);
        }

        .property-stepper {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0;
            margin: 0 0 20px;
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            overflow: hidden;
            background: var(--gray-100);
        }
        .property-stepper__step {
            min-height: 40px;
            padding: 8px 10px;
            font-size: 13px;
            font-weight: 700;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1.2;
            user-select: none;
        }
        .property-stepper__step.is-active {
            background: var(--primary);
            color: #fff;
            cursor: default;
        }
        .property-stepper__step.is-inactive {
            background: var(--gray-100);
            color: var(--gray-400);
            border-left: 1px solid var(--border-subtle);
            cursor: pointer;
        }

        /* ===== OVERDRACHT BINNENKORT LABEL ===== */
        .nav-link-soon {
            display: inline-flex;
            align-items: center;
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.5px;
            color: rgba(255,255,255,0.4);
            background: rgba(255,255,255,0.08);
            padding: 2px 5px;
            border-radius: 4px;
            margin-left: auto;
        }

        /* ===== DOCUMENT UPLOAD FILE INPUT — verbeterd ===== */
        input[type="file"] {
            cursor: pointer;
        }
        input[type="file"]::-webkit-file-upload-button {
            display: none;
        }
        input[type="file"]::file-selector-button {
            display: none;
        }

        /* ===== RENDEMENT TOGGLE BUTTONS ===== */
        #rendToggleMaand, #rendToggleJaar {
            font-family: var(--font-body);
            min-height: 36px;
        }

        /* ===== DARK MODE — loading overlay ===== */
        html.dark .loading-overlay {
            background: rgba(13, 22, 35, 0.8);
        }

        /* ===== DARK MODE — bank cards ===== */
        html.dark .bank-card {
            background: var(--bg-card);
            border-color: var(--border-color);
        }

        /* ===== DARK MODE — property items ===== */
        html.dark .property-item {
            background: var(--bg-card);
            border-color: var(--border-color);
        }
        html.dark .property-item:hover {
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }

        /* ===== DARK MODE — huurder card actions ===== */
        html.dark .huurder-contact-row,
        html.dark .tenant-contact-card,
        html.dark .tenant-contact-field {
            background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
            border-color: rgba(255,255,255,0.08);
        }

        html.dark .huurder-details {
            border-color: rgba(255,255,255,0.08);
        }

        html.dark .huurder-payment-strip {
            background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
        }

        html.dark .huurder-payment-month {
            background: rgba(255,255,255,0.03);
            border-color: rgba(255,255,255,0.08);
        }

        html.dark .huurder-card-actions {
            border-color: var(--border-color);
        }

        html.dark .huurder-action-card {
            background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
            border-color: rgba(255,255,255,0.08);
        }

        html.dark .huurder-action-card.primary {
            background: linear-gradient(180deg, rgba(74,123,200,0.18), rgba(74,123,200,0.10));
        }

        html.dark .huurder-action-card.success {
            background: linear-gradient(180deg, rgba(16,185,129,0.16), rgba(16,185,129,0.08));
        }

        html.dark .huurder-action-card.danger {
            background: linear-gradient(180deg, rgba(220,38,38,0.14), rgba(220,38,38,0.08));
        }

        html.dark .nav-tabs {
            background: var(--bg-nav) !important;
        }

        /* ===== DARK MODE — drawer ===== */
        html.dark .drawer {
            background: var(--bg-card);
        }
        html.dark .drawer-handle {
            background: var(--gray-300);
        }

        /* ===== FOCUS RING — verbeterd voor dark mode ===== */
        html.dark *:focus-visible {
            outline-color: var(--accent);
        }

        /* ===== SCROLLBAR STYLING ===== */
        .app-content::-webkit-scrollbar,
        .modal-content::-webkit-scrollbar,
        .modal-container::-webkit-scrollbar {
            width: 6px;
        }
        .app-content::-webkit-scrollbar-track,
        .modal-content::-webkit-scrollbar-track,
        .modal-container::-webkit-scrollbar-track {
            background: transparent;
        }
        .app-content::-webkit-scrollbar-thumb,
        .modal-content::-webkit-scrollbar-thumb,
        .modal-container::-webkit-scrollbar-thumb {
            background: var(--gray-300);
            border-radius: 3px;
        }
        html.dark .app-content::-webkit-scrollbar-thumb,
        html.dark .modal-content::-webkit-scrollbar-thumb,
        html.dark .modal-container::-webkit-scrollbar-thumb {
            background: var(--gray-300);
        }

        /* ============================================================
           DESIGN SYSTEM REVISIE — SILKE v2
           Spacing scale, type scale, button systeem, cards, modals,
           tables, badges, dark mode, empty states, skeleton loading
           ============================================================ */

        /* ── 1. SPACING SCALE ── */
        :root {
            --sp-1: 4px;
            --sp-2: 8px;
            --sp-3: 12px;
            --sp-4: 16px;
            --sp-6: 24px;
            --sp-8: 32px;
            --sp-12: 48px;
            --sp-16: 64px;

            /* ── 2. TYPOGRAPHY SCALE ── */
            --text-xs:   11px;
            --text-sm:   13px;
            --text-base: 15px;
            --text-lg:   17px;
            --text-xl:   20px;
            --text-2xl:  24px;
            --text-3xl:  30px;
            --text-4xl:  38px;

            --leading-tight:   1.2;
            --leading-snug:    1.35;
            --leading-normal:  1.5;
            --leading-relaxed: 1.6;

            --weight-regular:  400;
            --weight-medium:   500;
            --weight-semibold: 600;
            --weight-bold:     700;

            /* Border alias */
            --border: var(--border-color);
            --bg-hover: var(--gray-50);
            --bg-subtle: var(--gray-50);
        }

        /* ── TYPOGRAFIE HERZIENING ── */
        h1 {
            font-size: var(--text-3xl) !important;
            line-height: var(--leading-tight) !important;
            font-weight: var(--weight-bold) !important;
        }
        h2 {
            font-size: var(--text-2xl) !important;
            line-height: var(--leading-snug) !important;
            font-weight: var(--weight-semibold) !important;
        }
        h3 {
            font-size: var(--text-xl) !important;
            line-height: var(--leading-snug) !important;
            font-weight: var(--weight-semibold) !important;
        }
        p, li, td, .description {
            font-size: var(--text-base);
            line-height: var(--leading-normal);
        }
        label, .form-label {
            font-size: var(--text-sm);
            line-height: var(--leading-normal);
        }
        @media (max-width: 767px) {
            h1 { font-size: var(--text-2xl) !important; }
            h2 { font-size: var(--text-xl) !important; }
        }

        /* ── 3. BUTTON SYSTEEM ── */
        .btn {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: var(--sp-2) !important;
            height: 40px !important;
            padding: 0 var(--sp-4) !important;
            font-size: var(--text-sm) !important;
            font-weight: var(--weight-semibold) !important;
            border-radius: 8px !important;
            border: none !important;
            cursor: pointer !important;
            transition: background 0.15s, box-shadow 0.15s, opacity 0.15s !important;
            white-space: nowrap !important;
            text-decoration: none !important;
            min-height: unset !important;
        }
        .btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
        .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

        .btn-primary {
            background: var(--primary) !important;
            color: #fff !important;
        }
        .btn-primary:hover { background: var(--primary-mid) !important; box-shadow: 0 2px 8px rgba(15,31,61,0.18) !important; transform: none !important; }
        .btn-primary:active { background: var(--primary-dark) !important; transform: none !important; }

        .btn-secondary {
            background: transparent !important;
            color: var(--primary) !important;
            border: 1.5px solid var(--primary) !important;
        }
        .btn-secondary:hover { background: var(--primary) !important; color: #fff !important; }

        .btn-ghost {
            background: transparent !important;
            color: var(--text-secondary) !important;
            border: 1.5px solid var(--border) !important;
        }
        .btn-ghost:hover { background: var(--bg-hover) !important; color: var(--text-primary) !important; }

        .btn-accent {
            background: var(--primary) !important;
            color: #fff !important;
        }
        .btn-accent:hover { background: var(--primary-dark, #0a1628) !important; box-shadow: 0 2px 8px rgba(27,51,96,0.2) !important; }

        .btn-danger { background: var(--danger) !important; color: #fff !important; border: none !important; }
        .btn-danger:hover { background: var(--danger-dark, #b91c1c) !important; }

        .btn-outline {
            background: transparent !important;
            color: var(--text-secondary) !important;
            border: 1.5px solid var(--border) !important;
        }
        .btn-outline:hover { background: var(--bg-hover) !important; color: var(--text-primary) !important; border-color: var(--primary) !important; }

        .btn-sm { min-height: 44px !important; height: auto !important; padding: 0 var(--sp-3) !important; font-size: var(--text-xs) !important; border-radius: 8px !important; }
        .btn-lg { height: 48px !important; padding: 0 var(--sp-6) !important; font-size: var(--text-base) !important; }
        .btn-icon { width: 40px !important; padding: 0 !important; }
        .btn-icon.btn-sm { width: 32px !important; }
        .btn-block { width: 100% !important; }

        /* ── 4. FORMS & INPUTS ── */
        .form-group {
            display: flex;
            flex-direction: column;
            gap: var(--sp-2);
            margin-bottom: var(--sp-4);
        }
        .form-label {
            display: block;
            font-size: var(--text-sm);
            font-weight: var(--weight-medium);
            color: var(--text-secondary);
            margin-bottom: 0;
            text-transform: none;
            letter-spacing: 0;
        }
        .form-label .required { color: var(--danger-text); margin-left: 2px; }

        .form-control {
            height: 40px;
            padding: 0 var(--sp-3);
            font-size: var(--text-base);
            color: var(--text-primary);
            background: var(--bg-card);
            border: 1.5px solid var(--border);
            border-radius: 8px;
            width: 100%;
            transition: border-color 0.15s, box-shadow 0.15s;
            min-height: unset;
            font-family: var(--font-body);
        }
        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(15,31,61,0.08);
        }
        .form-control::placeholder { color: var(--text-muted); }
        textarea.form-control { height: auto; min-height: 96px; padding: var(--sp-3); resize: vertical; }
        select.form-control {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%236b7280' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            padding-right: 36px;
        }
        .form-control.error { border-color: var(--danger-text); }
        .form-control.success { border-color: var(--success-text); }
        .form-error {
            font-size: var(--text-xs);
            color: var(--danger-text);
            margin-top: var(--sp-1);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .form-hint {
            font-size: var(--text-xs);
            color: var(--text-muted);
            margin-top: var(--sp-1);
        }
        html.dark .form-control { background: #1a2744; border-color: #2d3f60; color: #e2e8f0; }
        html.dark .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,255,255,0.10); }
        html.dark select.form-control {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%239ca3af' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
        }

        /* ── 5. CARD SYSTEEM ── */
        .card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: var(--shadow-card);
            overflow: hidden;
            margin-bottom: var(--sp-4);
            padding: 0;
        }
        .card-header {
            padding: var(--sp-4) var(--sp-6);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0;
        }
        .card-header h3 {
            margin-bottom: 0 !important;
        }
        .card-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--text-primary); }
        .card-subtitle { font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; }
        .card-body { padding: var(--sp-6); }
        .card-footer {
            padding: var(--sp-4) var(--sp-6);
            border-top: 1px solid var(--border);
            background: var(--bg-subtle);
        }
        .card:hover { box-shadow: var(--shadow-lifted); }

        /* Cards die geen .card-body wrapper hebben — legacy support */
        .card > form { padding: var(--sp-6); }
        .card > h3:first-child { padding: var(--sp-6) var(--sp-6) 0; margin-bottom: 0 !important; }
        .card > ul { padding: var(--sp-6); }
        .card > .card-header + form,
        .card > .card-header + div:not(.card-body):not(.card-footer) {
            padding: var(--sp-6);
        }

        html.dark .card { background: var(--bg-card); border-color: var(--border-subtle); }
        html.dark .card-footer { background: var(--bg-nav); }
        html.dark .card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.4); }

        /* ── 6. MODALS ── */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(4px);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: var(--sp-4);
        }
        .modal-header {
            padding: var(--sp-6);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0;
        }
        .modal-title {
            font-size: var(--text-xl) !important;
            font-weight: var(--weight-semibold) !important;
        }
        .modal-close {
            width: 44px;
            height: 44px;
            border-radius: 8px;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 18px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .modal-close:hover { background: var(--border); color: var(--text-primary); }
        .modal-body { padding: var(--sp-6); overflow-y: auto; flex: 1; }
        .modal-footer {
            padding: var(--sp-4) var(--sp-6);
            border-top: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: var(--sp-3);
            flex-shrink: 0;
            background: var(--bg-subtle);
        }
        @media (max-width: 640px) {
            .modal-overlay { align-items: flex-end; padding: 0; }
        }
        html.dark .modal-footer { background: var(--bg-nav); }

        /* ── 7. NAVIGATIE ── */
        .nav-link {
            min-height: 44px;
        }
        .nav-link.active {
            background: rgba(255,255,255,0.10) !important;
            color: rgba(255,255,255,0.95) !important;
            font-weight: var(--weight-semibold) !important;
            box-shadow: inset 3px 0 0 rgba(255,255,255,0.9) !important;
        }
        body.sidebar-collapsed .sidebar .nav-link.active,
        body.sidebar-collapsed .sidebar .nav-group-btn.active {
            background: rgba(255,255,255,0.14) !important;
            color: #fff !important;
            box-shadow: none !important;
        }
        body.sidebar-collapsed .sidebar .nav-link.active svg,
        body.sidebar-collapsed .sidebar .nav-group-btn.active svg {
            opacity: 1 !important;
            stroke: rgba(255,255,255,0.98) !important;
        }

        /* ── 8. TABLES ── */
        .table-container {
            overflow-x: auto;
            border-radius: 12px;
            border: 1px solid var(--border);
        }
        .table {
            width: 100%;
            border-collapse: collapse;
            font-size: var(--text-sm);
        }
        .table th {
            background: var(--bg-subtle);
            padding: var(--sp-3) var(--sp-4);
            text-align: left;
            font-size: var(--text-xs);
            font-weight: var(--weight-semibold);
            color: var(--text-muted);
            letter-spacing: 0.05em;
            text-transform: uppercase;
            border-bottom: 1px solid var(--border);
        }
        .table td {
            padding: var(--sp-3) var(--sp-4);
            border-bottom: 1px solid var(--border);
            color: var(--text-primary);
            vertical-align: middle;
        }
        .table tr:last-child td { border-bottom: none; }
        .table tbody tr:hover { background: var(--bg-hover); }
        html.dark .table th { background: var(--bg-nav); }
        html.dark .table tbody tr:hover { background: var(--bg-hover); }

        /* ── 9. STATUS BADGES ── */
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            border-radius: 20px;
            font-size: var(--text-xs);
            font-weight: var(--weight-semibold);
            white-space: nowrap;
        }
        .badge-success { background: #dcfce7; color: #166534; }
        .badge-warning { background: #fef9c3; color: #854d0e; }
        .badge-danger  { background: #fee2e2; color: #991b1b; }
        .badge-info    { background: #dbeafe; color: #1e40af; }
        .badge-neutral { background: var(--border); color: var(--text-secondary); }
        .badge-dot::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: currentColor;
        }
        html.dark .badge-success { background: #14532d; color: #86efac; }
        html.dark .badge-warning { background: #713f12; color: #fde68a; }
        html.dark .badge-danger  { background: #7f1d1d; color: #fca5a5; }
        html.dark .badge-info    { background: #1e3a5f; color: #93c5fd; }

        /* ── 10. DARK MODE AANVULLINGEN ── */
        html.dark body { background: var(--bg-app); }
        html.dark .section-page-header { background: transparent; border-color: var(--border-subtle); }
        html.dark .nav-item.active { background: rgba(255,255,255,0.10); color: var(--accent); }
        html.dark .modal-content { background: var(--bg-card); }
        html.dark .modal-container { background: var(--bg-card); }
        html.dark .modal-header { border-color: var(--border-subtle); }
        html.dark .modal-footer { border-color: var(--border-subtle); }
        html.dark .card-header { border-color: var(--border-subtle); }

        /* ── 11. EMPTY STATES ── */
        .empty-state {
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            text-align: center !important;
            padding: var(--sp-16) var(--sp-8) !important;
            gap: var(--sp-3) !important;
        }
        .empty-state[hidden] {
            display: none !important;
        }
        .empty-state-icon, .empty-icon {
            opacity: 0.35 !important;
            margin-bottom: 0 !important;
        }
        .empty-state-title,
        .empty-state h4 {
            font-size: var(--text-xl) !important;
            font-weight: var(--weight-semibold) !important;
            color: var(--text-primary) !important;
            margin-bottom: 0 !important;
        }
        .empty-state-desc,
        .empty-state-text,
        .empty-text,
        .empty-state > p {
            font-size: var(--text-base) !important;
            color: var(--text-muted) !important;
            max-width: 360px !important;
            line-height: var(--leading-relaxed) !important;
            margin: 0 !important;
        }

        /* ── 12. SKELETON LOADING ── */
        .skeleton {
            background: linear-gradient(90deg, var(--gray-200) 25%, #e5e7eb 50%, var(--gray-200) 75%) !important;
            background-size: 200% 100% !important;
            animation: skeleton-shimmer 1.5s infinite !important;
            border-radius: 6px !important;
        }
        @keyframes skeleton-shimmer {
            0%   { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
        html.dark .skeleton {
            background: linear-gradient(90deg, #1f2d4a 25%, #2d3f60 50%, #1f2d4a 75%) !important;
            background-size: 200% 100% !important;
        }

        /* ── OUTER PAGE PADDING ── */
        .app-content {
            padding: var(--sp-6) !important;
        }
        @media (min-width: 768px) {
            .app-content {
                padding: var(--sp-6) !important;
            }
        }

        /* ── MAX-WIDTH CONTENT WRAPPER ── */
        .section > *,
        .section-inner {
            max-width: 1200px;
            margin-left: auto;
            margin-right: auto;
        }

        /* ── COMPLIANCE FILTER BUTTONS ── */
        .compliance-filter-btn {
            display: inline-flex;
            align-items: center;
            height: 36px;
            padding: 0 var(--sp-4);
            border-radius: 20px;
            font-size: var(--text-sm);
            font-weight: var(--weight-semibold);
            cursor: pointer;
            transition: background 0.15s, color 0.15s, border-color 0.15s;
        }
        /* Actieve filter-knop: primary kleur (dark-mode safe) */
        .compliance-filter-btn.active {
            background: var(--primary) !important;
            color: #fff !important;
            border-color: var(--primary) !important;
        }
        /* Vervallen filter — danger kleur via token */
        .compliance-filter-overdue {
            border-color: var(--danger) !important;
            color: var(--danger) !important;
        }
        .compliance-filter-overdue:hover,
        .compliance-filter-overdue.active {
            background: var(--danger) !important;
            color: #fff !important;
            border-color: var(--danger) !important;
        }
        html.dark .compliance-filter-overdue {
            border-color: #fca5a5 !important;
            color: #fca5a5 !important;
        }
        html.dark .compliance-filter-overdue.active {
            background: #7f1d1d !important;
            color: #fca5a5 !important;
            border-color: #7f1d1d !important;
        }

        .compliance-workspace {
            display: grid;
            gap: 16px;
        }

        .compliance-overview {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 14px;
        }

        .compliance-metric {
            min-height: 106px;
            padding: 18px 20px;
            border: 1px solid var(--border-subtle);
            border-radius: 14px;
            background: var(--bg-card);
            box-shadow: 0 10px 28px rgba(15, 31, 61, 0.045);
        }

        .compliance-metric__value {
            color: var(--text-primary);
            font-size: 30px;
            font-weight: 800;
            line-height: 1;
            font-variant-numeric: tabular-nums;
        }

        .compliance-metric__label {
            margin-top: 12px;
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.10em;
            text-transform: uppercase;
        }

        .compliance-metric.is-danger .compliance-metric__value { color: var(--danger); }
        .compliance-metric.is-warning .compliance-metric__value { color: var(--warning); }
        .compliance-metric.is-success .compliance-metric__value { color: var(--success); }

        .compliance-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 14px 16px;
            border: 1px solid var(--border-subtle);
            border-radius: 14px;
            background: var(--bg-card);
            box-shadow: 0 10px 28px rgba(15, 31, 61, 0.04);
        }

        .compliance-toolbar__title {
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 800;
        }

        .compliance-toolbar__meta {
            margin-top: 3px;
            color: var(--text-muted);
            font-size: 13px;
        }

        .compliance-filter-group {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .compliance-content {
            display: grid;
            gap: 16px;
        }

        .compliance-card {
            border: 1px solid var(--border-subtle);
            border-radius: 16px;
            background: var(--bg-card);
            box-shadow: 0 12px 32px rgba(15, 31, 61, 0.055);
            overflow: hidden;
        }

        .compliance-card__header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 18px 20px;
            border-bottom: 1px solid var(--border-subtle);
            background: var(--gray-50);
        }

        .compliance-card__title {
            color: var(--text-primary);
            font-size: 16px;
            font-weight: 800;
        }

        .compliance-card__subtitle {
            margin-top: 3px;
            color: var(--text-muted);
            font-size: 13px;
        }

        .compliance-card__count {
            flex-shrink: 0;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 700;
        }

        .compliance-alert-list {
            display: grid;
        }

        .compliance-alert-row {
            display: grid;
            grid-template-columns: 118px minmax(0, 1fr) auto;
            gap: 16px;
            align-items: center;
            padding: 16px 20px;
            border-top: 1px solid var(--border-subtle);
        }

        .compliance-alert-row:first-child {
            border-top: none;
        }

        .compliance-alert-row.is-danger { box-shadow: inset 4px 0 0 var(--danger); }
        .compliance-alert-row.is-warning { box-shadow: inset 4px 0 0 var(--warning); }
        .compliance-alert-row.is-ok { box-shadow: inset 4px 0 0 var(--success); }

        .compliance-alert-status {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: fit-content;
            min-width: 86px;
            min-height: 30px;
            padding: 0 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .compliance-alert-row.is-danger .compliance-alert-status {
            background: rgba(220, 38, 38, 0.10);
            color: var(--danger);
            border: 1px solid rgba(220, 38, 38, 0.18);
        }

        .compliance-alert-row.is-warning .compliance-alert-status {
            background: rgba(217, 119, 6, 0.10);
            color: var(--warning);
            border: 1px solid rgba(217, 119, 6, 0.18);
        }

        .compliance-alert-row.is-ok .compliance-alert-status {
            background: rgba(5, 150, 105, 0.10);
            color: var(--success);
            border: 1px solid rgba(5, 150, 105, 0.18);
        }

        .compliance-alert-title {
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 800;
            line-height: 1.35;
        }

        .compliance-alert-detail {
            margin-top: 4px;
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.45;
        }

        .compliance-alert-meta {
            color: var(--text-muted);
            font-size: 13px;
            text-align: right;
            white-space: nowrap;
        }

        .compliance-alert-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 34px;
            margin-top: 8px;
            padding: 0 12px;
            border: 1px solid var(--primary);
            border-radius: 10px;
            background: var(--primary);
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
        }

        .compliance-empty {
            padding: 24px 20px;
            color: var(--text-secondary);
            font-size: 14px;
            text-align: center;
        }

        .compliance-index-table {
            overflow-x: auto;
        }

        .compliance-index-grid {
            display: grid;
            grid-template-columns: minmax(220px, 2fr) minmax(110px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr);
            min-width: 680px;
        }

        .compliance-index-grid > div {
            padding: 14px 18px;
            border-top: 1px solid var(--border-subtle);
            font-size: 14px;
        }

        .compliance-index-grid.is-head > div {
            border-top: none;
            background: var(--gray-50);
            color: var(--text-muted);
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.10em;
            text-transform: uppercase;
        }

        .compliance-index-name {
            color: var(--text-primary);
            font-weight: 800;
        }

        .compliance-index-meta {
            display: block;
            margin-top: 4px;
            color: var(--text-muted);
            font-size: 12px;
            line-height: 1.4;
        }

        .compliance-index-blocked {
            color: var(--danger);
            font-weight: 700;
        }

        @media (max-width: 900px) {
            .compliance-overview {
                grid-template-columns: 1fr;
            }

            .compliance-toolbar,
            .compliance-card__header {
                align-items: flex-start;
                flex-direction: column;
            }

            .compliance-filter-group {
                justify-content: flex-start;
            }

            .compliance-alert-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .compliance-alert-meta {
                text-align: left;
            }
        }

        /* ── RENDEMENT TOGGLE ── */
        #rendToggleMaand, #rendToggleJaar {
            height: 32px;
            padding: 0 var(--sp-3);
            font-size: var(--text-xs);
            font-weight: var(--weight-semibold);
            border-radius: 8px;
            border: none;
            cursor: pointer;
            transition: background 0.15s, color 0.15s, box-shadow 0.15s;
        }
        [data-rendement-periode].active {
            box-shadow: var(--shadow-card);
        }

        /* ── WIZARD BUTTONS IN MODAL FOOTER ── */
        .modal-footer .btn-secondary,
        .modal-footer .btn-primary {
            min-width: 100px;
        }

        /* ══════════════════════════════════════════
           PAND DETAIL POPUP
        ══════════════════════════════════════════ */
        #pandDetailBackdrop {
            display: none;
            position: fixed; inset: 0;
            background: rgba(6, 17, 37, 0.46);
            z-index: 1100;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            animation: fadeInBd 0.2s ease;
        }
        #pandDetailBackdrop:not([hidden]) {
            display: block;
        }
        @keyframes fadeInBd { from { opacity:0 } to { opacity:1 } }

        #pandDetailPanel {
            position: fixed;
            top: 50%;
            left: 50%;
            right: auto;
            bottom: auto;
            width: min(760px, calc(100vw - 40px));
            max-height: min(84vh, 820px);
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            box-shadow: 0 30px 90px rgba(6,17,37,0.28);
            z-index: 1101;
            display: flex; flex-direction: column;
            transform: translate(-50%, -47%) scale(0.96);
            opacity: 0;
            transition: transform 0.24s cubic-bezier(0.22,1,0.36,1), opacity 0.18s ease;
            overflow: hidden;
        }
        #pandDetailPanel.open {
            transform: translate(-50%, -50%) scale(1);
            opacity: 1;
        }
        #pandDetailPanel[hidden],
        #pandDetailBackdrop[hidden] {
            display: none !important;
        }

        .pd-header {
            padding: 20px 20px 16px;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0;
            background: var(--bg-card);
        }
        .pd-header-top {
            display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
        }
        .pd-header-address {
            font-size: 1.05rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; flex: 1;
        }
        .pd-close {
            width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--border-color);
            background: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
            color: var(--text-muted); font-size: 18px; flex-shrink: 0; transition: all .15s;
        }
        .pd-close:hover { background: var(--gray-100); color: var(--text-primary); }
        .pd-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
        .pd-badge { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 20px; letter-spacing: 0.03em; }
        .pd-badge--type {
            background: #EEF1F7;
            color: #1B3360;
        }
        .pd-badge--epc-success {
            background: var(--success-light);
            color: var(--success-text);
        }
        .pd-badge--epc-warning {
            background: var(--warning-light);
            color: var(--warning-text);
        }
        .pd-badge--epc-danger {
            background: var(--danger-light);
            color: var(--danger-text);
        }
        .pd-badge--epc-neutral,
        .pd-badge--city {
            background: var(--gray-100);
            color: var(--text-secondary);
        }

        .pd-actions {
            display: flex; gap: 8px; padding: 12px 20px;
            border-bottom: 1px solid var(--border-color);
            flex-shrink: 0; background: var(--bg-card);
            overflow-x: auto; scrollbar-width: none;
            flex-wrap: wrap;
        }
        .pd-actions::-webkit-scrollbar { display: none; }
        .pd-action-btn {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-color);
            background: var(--gray-50, #f9fafb); font-size: 12px; font-weight: 600;
            cursor: pointer; color: var(--text-secondary); white-space: nowrap;
            transition: all .15s;
        }
        .pd-action-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-strong, var(--border-color)); box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
        .pd-action-btn.primary,
        .pd-action-btn.wizard-btn,
        .pd-action-btn.secondary,
        .pd-action-btn.neutral {
            background: var(--gray-50, #f9fafb);
            color: var(--text-secondary);
            border-color: var(--border-color);
            box-shadow: none;
        }
        .pd-action-btn.primary:hover,
        .pd-action-btn.wizard-btn:hover,
        .pd-action-btn.secondary:hover,
        .pd-action-btn.neutral:hover {
            background: var(--bg-hover);
            color: var(--text-primary);
            border-color: var(--border-strong, var(--border-color));
        }
        .pd-action-btn.finish-action {
            background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
            color: var(--primary);
            border-color: rgba(27,51,96,0.18);
        }
        .pd-action-btn.finish-action:hover {
            background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
            color: var(--primary-mid);
            border-color: rgba(27,51,96,0.28);
        }
        .pd-action-btn.ghost-danger {
            background: transparent;
            color: var(--danger);
            border-color: rgba(220,38,38,0.18);
        }
        .pd-action-btn.ghost-danger:hover {
            background: rgba(220,38,38,0.08);
            color: var(--danger);
            border-color: rgba(220,38,38,0.24);
        }
        .pd-icon-label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .pd-action-full {
            width: 100%;
            justify-content: center;
        }
        .pd-section-action {
            margin-top: 12px;
        }
        .pd-section-action.is-tight {
            margin-top: 10px;
        }

        .pd-body {
            flex: 1; overflow-y: auto; padding: 0;
            -webkit-overflow-scrolling: touch;
        }
        .pd-section {
            padding: 14px 18px;
            border-bottom: 1px solid var(--border-color);
        }
        .pd-section:last-child { border-bottom: none; }
        .pd-section-title {
            font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
            text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
            display: flex; align-items: center; gap: 6px;
        }
        .pd-info-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
        }
        .ledger-eye-toggle {
            width: 34px;
            height: 34px;
            padding: 0;
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            background: rgba(15,31,61,0.04);
            color: var(--text-secondary);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            cursor: pointer;
            opacity: 1;
            transition: color 0.15s, transform 0.15s, opacity 0.15s, background 0.15s, border-color 0.15s;
        }
        .ledger-eye-toggle:hover {
            color: var(--primary);
            background: rgba(27,51,96,0.08);
            border-color: rgba(27,51,96,0.18);
            transform: scale(1.06);
        }
        .ledger-eye-toggle.is-open {
            color: var(--primary);
            background: rgba(27,51,96,0.1);
            border-color: rgba(27,51,96,0.18);
        }
        .ledger-eye-toggle svg {
            display:block;
            width: 18px;
            height: 18px;
            stroke-width: 1.9;
        }
        .properties-ledger-item { display:block; }
        .pd-info-item { display: flex; flex-direction: column; gap: 2px; }
        .pd-info-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
        .pd-info-value { font-size: 0.88rem; color: var(--text-primary); font-weight: 600; }
        .pd-info-value.is-positive { color: var(--success-text); }
        .pd-info-value.is-negative { color: var(--danger-text); }
        .pd-info-value.is-neutral { color: var(--warning-text); }
        .pd-muted-copy {
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .pd-section-title__meta {
            font-size: 0.85em;
            font-weight: 400;
        }
        .pd-payment-toggle {
            padding: 4px 10px;
            border: 0;
            border-radius: 8px;
            cursor: pointer;
            flex-shrink: 0;
            font-size: var(--text-xs);
            font-weight: 700;
        }
        .pd-payment-toggle.is-paid {
            background: var(--success-light);
            color: var(--success-text);
        }
        .pd-payment-toggle.is-late {
            background: var(--warning-light);
            color: var(--warning-text);
        }
        .pd-payment-toggle.is-unpaid {
            background: var(--danger-light);
            color: var(--danger-text);
        }
        .pd-payment-toggle.is-unknown {
            background: var(--gray-100);
            color: var(--text-secondary);
        }

        .pd-huurder-row {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 12px; border-radius: 10px;
            background: var(--gray-50, #f9fafb);
            border: 1px solid var(--border-color);
            margin-bottom: 8px;
        }
        .pd-huurder-avatar {
            width: 36px; height: 36px; border-radius: 50%;
            background: var(--primary); color: #fff;
            display: flex; align-items: center; justify-content: center;
            font-size: 13px; font-weight: 700; flex-shrink: 0;
        }
        .pd-huurder-info { flex: 1; min-width: 0; }
        .pd-huurder-name { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
        .pd-huurder-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }

        .pd-doc-row {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 0; border-bottom: 1px solid var(--border-color);
        }
        .pd-doc-row:last-child { border-bottom: none; }
        .pd-doc-icon { width: 28px; height: 28px; border-radius: 8px; display:flex; align-items:center; justify-content:center; flex-shrink: 0; color: var(--primary); background: var(--primary-light); }
        .pd-doc-name { flex: 1; font-size: 0.82rem; color: var(--text-primary); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .pd-doc-status { flex-shrink: 0; }
        .pd-doc-badge {
            padding: 2px 7px;
            border-radius: 4px;
            font-size: var(--text-xs);
            font-weight: 600;
        }
        .pd-doc-badge.is-reviewed {
            background: var(--success-light);
            color: var(--success-text);
        }
        .pd-doc-badge.is-review {
            background: #fffbeb;
            color: var(--warning-text);
        }
        .pd-doc-badge.is-processing {
            background: var(--warning-light);
            color: var(--warning-text);
        }
        .pd-doc-badge.is-uploaded {
            background: var(--gray-100);
            color: var(--text-secondary);
        }
        .pd-doc-badge.is-clickable {
            cursor: pointer;
        }
        .pd-inline-link {
            display: block;
            margin-top: 8px;
            padding: 0;
            border: 0;
            background: none;
            color: var(--text-muted);
            cursor: pointer;
            font-size: var(--text-sm);
            text-align: left;
        }
        .pd-doc-delete {
            position: relative;
            width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(127, 29, 29, 0.22);
            background: var(--danger-light); color: var(--danger-text); display:inline-flex; align-items:center; justify-content:center;
            cursor: pointer; flex-shrink: 0; transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
        }
        .pd-doc-delete:hover {
            background: #fbd5d5;
            border-color: rgba(127, 29, 29, 0.32);
            box-shadow: 0 8px 18px rgba(127, 29, 29, 0.12);
            transform: translateY(-1px);
        }
        .pd-doc-delete svg {
            width: 18px;
            height: 18px;
            stroke-width: 2.15;
            display: block;
        }
        .doc-table-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
        }
        .doc-table-action-btn {
            height: 24px !important;
            min-height: 24px !important;
            padding: 3px 12px !important;
            border-radius: 999px !important;
            font-family: inherit !important;
            font-size: var(--text-xs) !important;
            font-weight: 600 !important;
            line-height: 1 !important;
            letter-spacing: 0 !important;
            box-shadow: none !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            white-space: nowrap !important;
        }
        .doc-table-action-btn.btn-ghost {
            background: transparent !important;
            border: 1px solid var(--border-subtle) !important;
            color: var(--text-secondary) !important;
        }
        .doc-table-action-btn.btn-ghost:hover {
            background: rgba(15,31,61,0.04) !important;
            border-color: rgba(27,51,96,0.18) !important;
            color: var(--text-primary) !important;
        }
        .doc-table-action-btn.btn-primary {
            background: var(--primary) !important;
            border: 1px solid var(--primary) !important;
            color: #fff !important;
            box-shadow: none !important;
        }
        .doc-table-delete {
            width: 32px;
            height: 32px;
            min-height: 32px;
            font-family: inherit;
            padding: 0;
            line-height: 1;
            border-radius: 999px;
            border: 1px solid rgba(220, 38, 38, 0.18);
            background: transparent;
            color: var(--danger);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
            box-shadow: 0 1px 2px rgba(15,31,61,0.04);
        }
        .doc-table-delete:hover {
            background: rgba(220, 38, 38, 0.06);
            border-color: rgba(220, 38, 38, 0.30);
            box-shadow: 0 8px 18px rgba(220, 38, 38, 0.10);
            transform: translateY(-1px);
        }
        .doc-table-delete svg {
            width: 16px;
            height: 16px;
            stroke-width: 2.1;
            display: block;
        }
        .doc-tab {
            border-bottom: 2px solid transparent;
            color: var(--gray-400);
        }
        .doc-tab.active {
            border-bottom-color: var(--primary);
            color: inherit;
        }
        .review-cockpit {
            display: grid;
            gap: 0;
            margin-bottom: 24px;
            border: 1px solid var(--border-subtle);
            border-radius: 16px;
            background: linear-gradient(180deg, var(--bg-card) 0%, rgba(27,51,96,0.025) 100%);
            box-shadow: 0 8px 26px rgba(15, 31, 61, 0.04);
            overflow: hidden;
        }
        .review-overview-tools {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            align-items: start;
            gap: 16px;
            margin-bottom: 0;
            padding: 18px 20px 14px;
            background: transparent;
        }
        .review-overview-copy {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 18px;
            min-width: 0;
        }
        .review-overview-main {
            display: grid;
            gap: 5px;
            min-width: 0;
        }
        .review-overview-eyebrow {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.10em;
            text-transform: uppercase;
            color: var(--text-muted);
        }
        .review-overview-title {
            font-size: 19px;
            font-weight: 800;
            color: var(--text-primary);
            line-height: 1.2;
        }
        .review-overview-caption {
            margin: 0;
            max-width: 62ch;
            font-size: var(--text-sm);
            color: var(--text-muted);
            line-height: 1.45;
        }
        .review-overview-summary {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin: 0;
            flex: 0 0 auto;
            justify-content: flex-end;
        }
        .review-filter-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            padding-top: 12px;
            border-top: 1px solid var(--border-subtle);
        }
        .review-status-tabs {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            min-width: 0;
        }
        .review-summary-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 28px;
            padding: 5px 9px;
            border-radius: 999px;
            border: 1px solid var(--border-subtle);
            background: rgba(255,255,255,0.70);
            color: var(--text-secondary);
            font-size: var(--text-xs);
            font-weight: 600;
            line-height: 1;
            white-space: nowrap;
        }
        .review-summary-pill strong {
            font-size: 13px;
            font-weight: 800;
            color: var(--text-primary);
        }
        .review-summary-pill.is-warn {
            background: rgba(245, 158, 11, 0.10);
            border-color: rgba(245, 158, 11, 0.18);
            color: var(--warning-text);
        }
        .review-summary-pill.is-success {
            background: rgba(22, 163, 74, 0.10);
            border-color: rgba(22, 163, 74, 0.18);
            color: var(--success-text);
        }
        .review-filter-tab {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 32px;
            padding: 0 12px;
            border-radius: 999px;
            border: 1px solid var(--border-subtle);
            background: var(--bg-subtle);
            color: var(--text-secondary);
            font-size: var(--text-xs);
            font-weight: 700;
            line-height: 1;
            cursor: pointer;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
            white-space: nowrap;
            box-shadow: 0 1px 2px rgba(15, 31, 61, 0.04);
        }
        .review-filter-tab:hover {
            border-color: rgba(27,51,96,0.18);
            color: var(--text-primary);
        }
        .review-filter-tab__count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 999px;
            background: rgba(15,31,61,0.08);
            color: inherit;
            font-size: 10px;
            font-weight: 800;
            line-height: 1;
        }
        .review-filter-tab.is-active.is-open {
            background: rgba(245, 158, 11, 0.10);
            border-color: rgba(245, 158, 11, 0.18);
            color: var(--warning-text);
        }
        .review-filter-tab.is-active.is-reviewed {
            background: rgba(22, 163, 74, 0.10);
            border-color: rgba(22, 163, 74, 0.18);
            color: var(--success-text);
        }
        .review-property-selector {
            flex: 0 1 240px;
            min-width: min(100%, 190px);
        }
        .review-property-selector__control {
            width: 100%;
            min-height: 36px;
            padding: 0 34px 0 14px;
            border-radius: 999px;
            border: 1px solid var(--border-subtle);
            background: var(--bg-subtle);
            font-size: var(--text-xs);
            font-weight: 700;
            color: var(--text-secondary);
            box-shadow: 0 1px 2px rgba(15, 31, 61, 0.04);
        }
        .review-doc-table .data-table {
            min-width: 0;
            table-layout: fixed;
        }
        .review-doc-table.data-table-wrap {
            border-width: 1px 0 0 !important;
            border-left: none !important;
            border-right: none !important;
            border-bottom: none !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            background: transparent;
        }
        .review-doc-empty {
            padding: 20px;
            color: var(--text-muted);
            font-size: var(--text-sm);
            text-align: center;
        }
        .review-doc-table .data-table th,
        .review-doc-table .data-table td {
            padding-top: 13px;
            padding-bottom: 13px;
        }
        .review-doc-cell {
            font-size: var(--text-sm);
        }
        .review-doc-actions-cell {
            min-width: 120px;
        }
        .doc-source-badge.is-success {
            background: var(--success-light);
            color: var(--success-text);
        }
        .doc-source-badge.is-muted {
            background: var(--gray-100);
            color: var(--text-muted);
        }
        .doc-status-badge.is-needs-review,
        .doc-status-badge.is-processing {
            color: var(--warning);
        }
        .doc-status-badge.is-reviewed,
        .doc-status-badge.is-processed {
            color: var(--success);
        }
        .doc-status-badge.is-failed {
            color: var(--danger);
        }
        .doc-status-badge.is-uploaded {
            color: var(--gray-500);
        }
        .review-doc-table .data-table th:nth-child(1),
        .review-doc-table .data-table td:nth-child(1) { width: 27%; }
        .review-doc-table .data-table th:nth-child(2),
        .review-doc-table .data-table td:nth-child(2) { width: 12%; }
        .review-doc-table .data-table th:nth-child(3),
        .review-doc-table .data-table td:nth-child(3) { width: 17%; }
        .review-doc-table .data-table th:nth-child(4),
        .review-doc-table .data-table td:nth-child(4) { width: 8%; }
        .review-doc-table .data-table th:nth-child(5),
        .review-doc-table .data-table td:nth-child(5) { width: 9%; }
        .review-doc-table .data-table th:nth-child(6),
        .review-doc-table .data-table td:nth-child(6) { width: 10%; }
        .review-doc-table .data-table th:nth-child(7),
        .review-doc-table .data-table td:nth-child(7) { width: 17%; }
        .review-doc-table .data-table td {
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .review-doc-table .doc-table-actions {
            justify-content: flex-end;
            gap: 6px;
            flex-wrap: nowrap;
        }
        .review-doc-table .data-table td:nth-child(7) {
            overflow: visible;
            text-align: right;
        }
        .review-doc-table .doc-table-action-btn {
            min-width: 82px;
            padding-left: 10px;
            padding-right: 10px;
        }
        @media (max-width: 980px) {
            .review-overview-copy {
                flex-direction: column;
                gap: 12px;
            }
            .review-overview-summary {
                justify-content: flex-start;
            }
            .review-filter-bar {
                justify-content: flex-start;
            }
            .review-property-selector {
                flex-basis: 100%;
            }
            .review-doc-table .data-table th:nth-child(4),
            .review-doc-table .data-table td:nth-child(4),
            .review-doc-table .data-table th:nth-child(5),
            .review-doc-table .data-table td:nth-child(5) {
                display: none;
            }
            .review-doc-table .data-table th:nth-child(1),
            .review-doc-table .data-table td:nth-child(1) { width: 34%; }
            .review-doc-table .data-table th:nth-child(2),
            .review-doc-table .data-table td:nth-child(2) { width: 16%; }
            .review-doc-table .data-table th:nth-child(3),
            .review-doc-table .data-table td:nth-child(3) { width: 22%; }
            .review-doc-table .data-table th:nth-child(6),
            .review-doc-table .data-table td:nth-child(6) { width: 16%; }
            .review-doc-table .data-table th:nth-child(7),
            .review-doc-table .data-table td:nth-child(7) { width: 18%; }
        }

        .pd-cost-row {
            display: flex; align-items: center; justify-content: space-between;
            padding: 7px 0; border-bottom: 1px dashed var(--border-color); gap: 8px;
        }
        .pd-cost-row:last-child { border-bottom: none; }
        .pd-cost-cat { font-size: 0.8rem; color: var(--text-secondary); flex: 1; }
        .pd-cost-desc { font-weight: 400; }
        .pd-cost-date { font-size: 0.72rem; color: var(--text-muted); }
        .pd-cost-amount { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
        .pd-more-copy {
            margin-top: 6px;
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .pd-cost-total {
            display: flex;
            justify-content: space-between;
            margin-top: 4px;
            padding-top: 8px;
            border-top: 1px solid var(--border-color);
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 700;
        }
        .pd-payment-grid {
            display: flex;
            gap: 3px;
            overflow-x: auto;
            padding: 2px 0;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }
        .pd-payment-month {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            flex-shrink: 0;
        }
        .pd-payment-month span {
            color: var(--text-muted);
            font-size: 8px;
        }
        .pd-payment-cell {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 22px;
            border: 1px solid var(--gray-200);
            border-radius: 4px;
            background: var(--gray-100);
        }
        .pd-payment-cell.is-paid {
            border-color: rgba(6,78,59,0.22);
            background: var(--success-light);
        }
        .pd-payment-cell.is-late {
            border-color: rgba(107,58,0,0.22);
            background: var(--warning-light);
        }
        .pd-payment-cell.is-unpaid {
            border-color: rgba(127,29,29,0.22);
            background: var(--danger-light);
        }
        .pd-payment-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--gray-300, #d1d5db);
        }
        .pd-payment-cell.is-paid .pd-payment-dot { background: var(--success-text); }
        .pd-payment-cell.is-late .pd-payment-dot { background: var(--warning-text); }
        .pd-payment-cell.is-unpaid .pd-payment-dot { background: var(--danger-text); }
        .pd-payment-empty {
            margin: 4px 0;
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .pd-payment-tenant.has-gap {
            margin-bottom: 12px;
        }
        .pd-payment-tenant__name {
            margin-bottom: 6px;
            color: var(--text-secondary);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .pd-compliance-ok {
            display: flex;
            align-items: center;
            gap: 6px;
            color: var(--success-text);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .pd-compliance-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 7px 0;
            border-bottom: 1px dashed var(--border-color);
        }
        .pd-compliance-row__icon {
            font-size: 14px;
        }
        .pd-compliance-row__copy {
            flex: 1;
            min-width: 0;
        }
        .pd-compliance-row__title {
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .pd-compliance-row__meta {
            color: var(--text-muted);
            font-size: var(--text-xs);
        }

        .pd-text-link {
            padding: 0;
            border: 0;
            background: none;
            color: var(--primary);
            cursor: pointer;
            font: inherit;
        }
        .property-photo-field {
            margin-bottom: 16px;
        }
        .property-photo-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            padding: 12px 14px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: var(--gray-50, #f9fafb);
        }
        .property-photo-meta {
            min-width: 0;
            flex: 1;
        }
        .property-photo-meta-title {
            font-size: var(--text-sm);
            font-weight: 700;
            color: var(--text-primary);
        }
        .property-photo-meta-copy {
            margin-top: 2px;
            font-size: var(--text-xs);
            color: var(--text-muted);
            line-height: 1.45;
        }
        .property-photo-actions-inline {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .property-photo-actions-inline button {
            border-radius: 8px;
        }

        @media (max-width: 768px) {
            #pandDetailPanel {
                width: calc(100vw - 16px);
                max-height: calc(100dvh - 32px);
                border-radius: 16px;
            }
            .pd-info-grid { grid-template-columns: 1fr 1fr; }
        }
        html.dark #pandDetailPanel { background: var(--bg-card); }
        html.dark .pd-huurder-row { background: rgba(255,255,255,0.04); }
        html.dark .pd-action-btn { background: rgba(255,255,255,0.06); }

        /* ══════════════════════════════════════════
           MASTER-DETAIL PANDEN LAYOUT (≥1024px)
        ══════════════════════════════════════════ */

        /* Eenvoudige panden-layout op desktop: lijst met details in popup */
        @media (min-width: 1180px) {
            #pandenMasterDetail {
                display: block;
                min-height: 400px;
            }

            #pandenListColumn {
                min-width: 0;
            }

            #pandenListColumn #propertiesList {
                display: block;
            }

            /* Geselecteerd pand in lijst highlighten */
            #propertiesList .property-item.selected {
                border-color: var(--primary);
                box-shadow: 0 0 0 2px rgba(15,31,61,0.12), inset 6px 0 0 var(--primary);
            }

            #propertiesList.properties-ledger {
                display: block;
                background: var(--bg-card);
                border: 1px solid var(--border-color);
                border-radius: 18px;
                box-shadow: var(--shadow-card);
                overflow: hidden;
            }

            .properties-ledger-head,
            .properties-ledger-row {
                display: grid;
                grid-template-columns: minmax(300px, 1.5fr) minmax(280px, 1fr) minmax(220px, 0.85fr);
                gap: 12px;
                align-items: center;
            }

            .properties-ledger-head {
                padding: 14px 18px;
                background: linear-gradient(180deg, rgba(244,241,235,0.9), rgba(250,248,244,0.95));
                border-bottom: 1px solid var(--border-subtle);
                font-size: var(--text-xs);
                font-weight: 700;
                letter-spacing: 0.08em;
                text-transform: uppercase;
                color: var(--text-muted);
            }

            .properties-ledger-body {
                display: grid;
            }

            .properties-ledger-row {
                padding: 16px 18px;
                border-bottom: 1px solid var(--border-subtle);
                transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
                cursor: pointer;
            }

            .properties-ledger-row:last-child { border-bottom: none; }
            .properties-ledger-row:hover { background: var(--bg-subtle); }
            .properties-ledger-row.selected { background: rgba(27,51,96,0.05); box-shadow: inset 3px 0 0 var(--primary); }

            .ledger-property {
                min-width: 0;
                display: flex;
                flex-direction: column;
                gap: 4px;
                justify-content: center;
            }

            .ledger-property-title {
                min-width: 0;
                display: flex;
                flex-direction: column;
                gap: 1px;
                overflow: hidden;
            }

            .ledger-property-name {
                display: flex;
                align-items: flex-start;
                gap: 10px;
                font-weight: 700;
                color: var(--text-primary);
                line-height: 1.2;
                min-height: 30px;
            }

            .ledger-property-meta {
                font-size: var(--text-xs);
                color: var(--text-muted);
                line-height: 1.2;
            }

            .ledger-property-submeta {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
                margin-top: 2px;
                min-height: 28px;
                align-items: center;
            }

            .ledger-kpi {
                font-size: var(--text-sm);
                font-weight: 700;
                color: var(--text-primary);
                white-space: nowrap;
            }

            .ledger-kpi.negative { color: var(--danger); }
            .ledger-kpi.neutral { color: var(--warning); }
            .ledger-kpi.positive { color: var(--success); }

            .ledger-chips {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
            }

            .ledger-fact-cluster {
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 8px;
                align-items: stretch;
            }

            .ledger-fact {
                min-width: 0;
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: 2px;
                min-height: 68px;
                padding: 11px 12px;
                border-radius: 14px;
                background: linear-gradient(180deg, var(--bg-subtle), rgba(255,255,255,0.55));
                border: 1px solid var(--border-subtle);
                box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
            }

            .ledger-fact-label {
                font-size: 10px;
                font-weight: 700;
                letter-spacing: 0.08em;
                text-transform: uppercase;
                color: var(--text-muted);
            }

            .ledger-fact-value {
                font-size: var(--text-base);
                font-weight: 700;
                color: var(--text-primary);
                white-space: nowrap;
                line-height: 1.1;
            }

            .ledger-index-pill {
                display: inline-flex;
                align-items: center;
                gap: 4px;
                padding: 5px 10px;
                border-radius: 999px;
                border: 1px solid var(--border-color);
                background: var(--bg-subtle);
                color: var(--text-secondary);
                font-size: 11px;
                font-weight: 600;
                white-space: nowrap;
                box-shadow: none;
            }

            .ledger-index-pill:hover {
                background: var(--bg-hover);
                color: var(--text-primary);
            }

            .ledger-chip {
                display: inline-flex;
                align-items: center;
                padding: 4px 8px;
                border-radius: 999px;
                background: var(--bg-subtle);
                color: var(--text-secondary);
                font-size: var(--text-xs);
                font-weight: 600;
                white-space: nowrap;
                line-height: 1;
            }

            .ledger-chip.status {
                background: rgba(15,31,61,0.08);
                color: var(--primary);
            }

            .ledger-actions {
                display: flex;
                justify-content: flex-end;
                gap: 8px;
                flex-wrap: wrap;
            }

            .ledger-action {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding: 8px 12px;
                border-radius: 10px;
                border: 1px solid var(--border-color);
                background: linear-gradient(180deg, #fff, #f7f6f3);
                color: var(--text-secondary);
                font-size: var(--text-sm);
                font-weight: 600;
                box-shadow: 0 1px 2px rgba(0,0,0,0.03);
            }

            html.dark .properties-ledger-head {
                background: rgba(255,255,255,0.03);
            }

            html.dark .ledger-chip.status {
                background: rgba(74,123,200,0.18);
                color: var(--gray-700);
            }

            html.dark .ledger-action {
                background: rgba(255,255,255,0.04);
            }

            html.dark .ledger-fact {
                background: rgba(255,255,255,0.04);
                border-color: rgba(255,255,255,0.06);
            }

            html.dark .ledger-index-pill {
                background: rgba(255,255,255,0.04);
                border-color: rgba(255,255,255,0.08);
            }
        }

        /* Op <1024px: detail column altijd verborgen, slide-in panel actief */
        @media (max-width: 1179px) {
            #pandenDetailColumn {
                display: none !important;
            }

            #pandDetailEmpty {
                display: none !important;
            }
        }

        @media (min-width: 768px) {
            #propertiesList.properties-ledger {
                display: block;
                background: var(--bg-card);
                border: 1px solid var(--border-color);
                border-radius: 18px;
                box-shadow: var(--shadow-card);
                overflow: hidden;
            }

            .properties-ledger-head,
            .properties-ledger-row {
                display: grid;
                grid-template-columns: minmax(260px, 1.58fr) minmax(240px, 1.04fr) minmax(220px, 0.82fr);
                gap: 18px;
            }

            .properties-ledger-head {
                padding: 14px 18px;
                background: linear-gradient(180deg, rgba(244,241,235,0.9), rgba(250,248,244,0.95));
                border-bottom: 1px solid var(--border-subtle);
                font-size: var(--text-xs);
                font-weight: 700;
                letter-spacing: 0.08em;
                text-transform: uppercase;
                color: var(--text-muted);
            }

            .properties-ledger-body { display: grid; }

            .properties-table-scroll {
                width: 100%;
                overflow-x: auto;
                overflow-y: hidden;
            }

            .properties-premium-table {
                width: 100%;
                min-width: 1120px;
                border-collapse: separate;
                border-spacing: 0;
                table-layout: fixed;
            }

            .properties-premium-table thead th {
                padding: 16px 18px;
                background: linear-gradient(180deg, rgba(244,241,235,0.9), rgba(250,248,244,0.95));
                border-bottom: 1px solid var(--border-subtle);
                font-size: 11px;
                font-weight: 800;
                letter-spacing: 0.08em;
                text-transform: uppercase;
                color: var(--text-muted);
                text-align: left;
                white-space: nowrap;
            }

            .properties-premium-table thead th.is-icon { width: 4%; }
            .properties-premium-table thead th.is-property { width: 17%; }
            .properties-premium-table thead th.is-type { width: 8%; }
            .properties-premium-table thead th.is-value { width: 10%; }
            .properties-premium-table thead th.is-yield { width: 8%; }
            .properties-premium-table thead th.is-tenant { width: 15%; }
            .properties-premium-table thead th.is-index { width: 10%; text-align: center; }
            .properties-premium-table thead th.is-finance { width: 16%; text-align: right; }
            .properties-premium-table thead th.is-status { width: 12%; text-align: left; }
            .properties-premium-table thead th.is-numeric { text-align: right; }

            .properties-premium-table--simple {
                min-width: 880px;
            }

            .properties-premium-table--simple thead th.is-icon { width: 5%; }
            .properties-premium-table--simple thead th.is-property { width: 35%; }
            .properties-premium-table--simple thead th.is-tenant { width: 25%; }
            .properties-premium-table--simple thead th.is-yield { width: 14%; text-align: right; }
            .properties-premium-table--simple thead th.is-finance { width: 21%; text-align: right; }

            .properties-premium-row {
                cursor: pointer;
                transition: background 0.15s, box-shadow 0.15s;
            }

            .properties-premium-row:hover { background: var(--bg-subtle); }
            .properties-premium-row.selected { background: rgba(27,51,96,0.04); box-shadow: inset 3px 0 0 var(--primary); }

            .properties-premium-row td {
                padding: 18px;
                border-bottom: 1px solid var(--border-subtle);
                vertical-align: middle;
            }

            .properties-premium-table tbody tr:last-child td { border-bottom: none; }
            .properties-premium-row td.is-numeric { text-align: right; }
            .properties-premium-row td.is-icon { text-align: center; }
            .properties-premium-row td.is-index { text-align: center; }
            .properties-premium-row td.is-finance { text-align: right; }
            .properties-premium-row td.is-status { text-align: left; }
            .properties-premium-table thead th.is-index,
            .properties-premium-table thead th.is-finance,
            .properties-premium-table thead th.is-status,
            .properties-premium-row td.is-index,
            .properties-premium-row td.is-finance,
            .properties-premium-row td.is-status {
                padding-left: 12px;
                padding-right: 12px;
            }

            .ppt-primary {
                display: block;
                font-size: 17px;
                font-weight: 800;
                line-height: 1.15;
                letter-spacing: -0.02em;
                color: var(--text-primary);
            }

            .ppt-primary.positive { color: var(--success); }
            .ppt-primary.neutral { color: var(--text-primary); }
            .ppt-primary.negative { color: var(--danger); }

            .ppt-secondary {
                display: block;
                margin-top: 5px;
                font-size: 13px;
                line-height: 1.35;
                color: var(--text-muted);
            }

            .ppt-type {
                display: inline-flex;
                align-items: center;
                min-height: 32px;
                font-size: 14px;
                font-weight: 700;
                color: var(--text-secondary);
            }

            .ppt-number {
                display: inline-block;
                font-size: 16px;
                font-weight: 800;
                letter-spacing: -0.02em;
                color: var(--text-primary);
                white-space: nowrap;
            }

            .ppt-number.positive { color: var(--success); }
            .ppt-number.negative { color: var(--danger); }
            .ppt-number.muted { color: var(--text-secondary); }

            .ppt-finance {
                display: grid;
                justify-items: end;
                align-content: center;
                gap: 4px;
                width: 100%;
                min-width: 0;
            }

            .ppt-finance .ppt-number {
                display: block;
                font-size: 15px;
                line-height: 1.15;
                text-align: right;
            }

            .ppt-finance-sub {
                display: block;
                font-size: 11px;
                font-weight: 700;
                letter-spacing: 0.02em;
                color: var(--text-muted);
                white-space: nowrap;
                text-align: right;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .ppt-status-stack {
                display: grid;
                gap: 6px;
                justify-items: start;
                align-content: center;
                width: 100%;
                min-width: 0;
            }

            .ppt-status {
                display: inline-flex;
                align-items: center;
                min-height: 26px;
                padding: 4px 9px;
                border-radius: 999px;
                font-size: 11px;
                font-weight: 700;
                line-height: 1;
                white-space: nowrap;
                width: 100%;
                min-width: 0;
                max-width: 128px;
                justify-content: center;
                background: rgba(15,31,61,0.06);
                color: var(--text-secondary);
            }

            .ppt-status.is-danger {
                background: rgba(220,38,38,0.08);
                color: var(--danger);
            }

            .ppt-status.is-epc {
                background: rgba(15,31,61,0.05);
                color: var(--text-secondary);
                width: auto;
                min-width: 68px;
            }

            .ppt-status-note {
                display: block;
                margin-top: 5px;
                color: var(--text-muted);
                font-size: 12px;
                font-weight: 650;
                line-height: 1.25;
            }

            .properties-ledger-row {
                padding: 14px 18px;
                border-bottom: 1px solid var(--border-subtle);
                transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
                cursor: pointer;
                align-items: center;
            }

            .properties-ledger-row:last-child { border-bottom: none; }
            .properties-ledger-row:hover { background: var(--bg-subtle); }
            .properties-ledger-row.selected { background: rgba(27,51,96,0.05); box-shadow: inset 3px 0 0 var(--primary); }

            .ledger-property { min-width: 0; display:flex; flex-direction:column; gap:10px; justify-content:center; }
            .ledger-property-name { display:flex; align-items:flex-start; gap:12px; font-weight:700; color:var(--text-primary); line-height:1.2; }
            .ledger-property-title { min-width:0; display:flex; flex-direction:column; gap:8px; overflow:hidden; }
            .ledger-property-line { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:0; }
            .ledger-property-address { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:18px; font-weight:800; letter-spacing:-0.02em; color:var(--text-primary); }
            .ledger-property-location-inline { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:600; color:var(--text-muted); }
            .ledger-property-stats { display:flex; flex-wrap:wrap; gap:8px; }
            .ledger-property-stat { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; background:rgba(15,31,61,0.05); color:var(--text-secondary); font-size:12px; font-weight:600; line-height:1; }
            .ledger-property-stat .value { color:var(--text-primary); font-weight:800; }
            .ledger-property-stat.positive .value { color:var(--success); }
            .ledger-property-stat.negative .value { color:var(--danger); }
            .ledger-property-submeta { display:flex; flex-wrap:wrap; gap:6px; min-height:28px; align-items:center; }
            .ledger-property-meta { display:block; min-width:0; max-width:100%; font-size:13px; color:var(--text-muted); line-height:1.35; }
            .ledger-kpi { font-size:18px; font-weight:800; color:var(--text-primary); white-space:nowrap; letter-spacing:-0.02em; }
            .ledger-kpi.negative { color: var(--danger); }
            .ledger-kpi.neutral { color: var(--warning); }
            .ledger-kpi.positive { color: var(--success); }
            .ledger-chips { display:flex; flex-wrap:wrap; gap:6px; }
            .ledger-finance-card {
                min-width: 0;
                display: grid;
                gap: 10px;
                align-self: center;
                padding: 15px 16px;
                border-radius: 18px;
                border: 1px solid var(--border-subtle);
                background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,245,239,0.98));
                box-shadow: 0 6px 18px rgba(15,31,61,0.05);
            }
            .ledger-finance-main {
                display: grid;
                gap: 4px;
                min-width: 0;
            }
            .ledger-finance-copy {
                min-width: 0;
                display: grid;
                gap: 3px;
            }
            .ledger-finance-title {
                font-size: 11px;
                font-weight: 800;
                color: var(--text-muted);
                letter-spacing: 0.08em;
                text-transform: uppercase;
            }
            .ledger-finance-value {
                flex: 0 0 auto;
                font-size: 22px;
                line-height: 1;
                font-weight: 800;
                letter-spacing: -0.03em;
                color: var(--text-primary);
            }
            .ledger-finance-card.positive .ledger-finance-value { color: var(--success); }
            .ledger-finance-card.negative .ledger-finance-value { color: var(--danger); }
            .ledger-finance-card.neutral .ledger-finance-value { color: var(--text-primary); }
            .ledger-finance-meta {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px;
            }
            .ledger-finance-stat {
                min-width: 0;
                display: grid;
                gap: 5px;
                padding-top: 9px;
                border-top: 1px solid var(--border-subtle);
            }
            .ledger-finance-stat-label {
                font-size: 10px;
                font-weight: 700;
                letter-spacing: 0.08em;
                text-transform: uppercase;
                color: var(--text-muted);
            }
            .ledger-finance-stat-value {
                font-size: 15px;
                line-height: 1.15;
                font-weight: 700;
                color: var(--text-primary);
                letter-spacing: -0.01em;
                white-space: nowrap;
            }
            .ledger-tenant-block { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:6px; min-width:0; }
            .ledger-tenant-topline { width:100%; display:flex; align-items:center; justify-content:space-between; gap:14px; min-width:0; }
            .ledger-tenant-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex:0 0 auto; }
            .ledger-tenant-copy { min-width:0; display:grid; gap:6px; }
            .ledger-yield-pill { display:inline-flex; flex-direction:column; align-items:flex-end; justify-content:center; gap:1px; padding:6px 10px; border-radius:12px; background:rgba(15,31,61,0.06); border:1px solid var(--border-subtle); white-space:nowrap; }
            .ledger-yield-pill.positive { color:var(--success); }
            .ledger-yield-pill.neutral { color:var(--warning); }
            .ledger-yield-pill.negative { color:var(--danger); }
            .ledger-yield-label { font-size:9px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-muted); }
            .ledger-yield-value { font-size:14px; font-weight:800; letter-spacing:-0.02em; color:currentColor; }
            .ledger-yield-value small { font-size:10px; font-weight:700; color:var(--text-muted); margin-left:4px; }
            .ledger-tenant-meta { display:flex; flex-direction:column; gap:3px; min-width:0; width:100%; justify-content:center; }
            .ledger-index-pill { display:inline-flex; align-items:center; justify-content:center; gap:4px; flex:0 0 auto; min-width:112px; min-height:38px; padding:0 14px; border-radius:999px; border:1px solid var(--border-color); background:linear-gradient(180deg, #fff, #f8f6f1); color:var(--text-secondary); font-size:12px; font-weight:700; white-space:nowrap; box-shadow:none; }
            .ledger-index-pill:hover { background:var(--bg-hover); color:var(--text-primary); }
            .ledger-chip { display:inline-flex; align-items:center; min-width:0; max-width:100%; overflow:hidden; text-overflow:ellipsis; padding:4px 8px; border-radius:999px; background:var(--bg-subtle); color:var(--text-secondary); font-size:var(--text-xs); font-weight:600; white-space:nowrap; line-height:1; }
            .ledger-chip.status { background: rgba(15,31,61,0.08); color: var(--primary); }
            .ledger-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
            .ledger-action { display:inline-flex; align-items:center; justify-content:center; padding:8px 12px; border-radius:10px; border:1px solid var(--border-color); background:linear-gradient(180deg, #fff, #f7f6f3); color:var(--text-secondary); font-size:var(--text-sm); font-weight:600; box-shadow:0 1px 2px rgba(0,0,0,0.03); }
            html.dark .properties-ledger-head { background: rgba(255,255,255,0.03); }
            html.dark .ledger-chip.status { background: rgba(74,123,200,0.18); color: var(--gray-700); }
            html.dark .ledger-action { background: rgba(255,255,255,0.04); }
            html.dark .properties-premium-table thead th { background: rgba(255,255,255,0.03); }
            html.dark .ppt-status { background: rgba(255,255,255,0.05); color: var(--text-secondary); }
            html.dark .ppt-status.is-danger { background: rgba(220,38,38,0.16); color: #fca5a5; }
            html.dark .ppt-status.is-epc { background: rgba(255,255,255,0.05); color: var(--text-secondary); }
            html.dark .ledger-finance-card {
                background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
                border-color: rgba(255,255,255,0.08);
                box-shadow: none;
            }
            html.dark .ledger-finance-stat { border-top-color: rgba(255,255,255,0.08); }
            html.dark .ledger-index-pill { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
            html.dark .ledger-yield-pill { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
        }

        /* ══════════════════════════════════════════
           FASE 2 — DATA TABLES, RIGHT-SIDE DRAWERS,
           VERBETERDE LEGE STATEN (SILKE v2 fase 2)
        ══════════════════════════════════════════ */

        /* ── DATA TABLES ≥768px ── */
        /* Verberg tabel op mobile, toon kaarten */
        .data-table-wrap { display: none; }
        .data-cards-wrap { display: block; }

        @media (min-width: 768px) {
            .data-table-wrap { display: block; }
            .data-cards-wrap { display: none !important; }

            /* Tabel container met scrolbare overflow */
            .data-table-wrap {
                overflow-x: auto;
                border-radius: 10px;
                border: 1px solid var(--border-color);
                background: var(--bg-card);
            }

            /* Basis tabel */
            .data-table {
                width: 100%;
                border-collapse: collapse;
                font-size: var(--text-sm);
                min-width: 720px;
            }

            /* Kolombreedtes: type en pand krijgen minimum ruimte */
            .data-table th:nth-child(1), .data-table td:nth-child(1) { min-width: 180px; }
            .data-table th:nth-child(2), .data-table td:nth-child(2) { min-width: 160px; white-space: nowrap; }
            .data-table th:nth-child(3), .data-table td:nth-child(3) { min-width: 130px; }
            .data-table th:nth-child(4), .data-table td:nth-child(4) { min-width: 90px; white-space: nowrap; }
            .data-table th:nth-child(5), .data-table td:nth-child(5) { min-width: 100px; white-space: nowrap; }
            .data-table th:nth-child(6), .data-table td:nth-child(6) { min-width: 80px; white-space: nowrap; }

            /* Thead */
            .data-table thead tr {
                background: var(--bg-subtle);
                border-bottom: 1px solid var(--border-color);
            }

            .data-table th {
                padding: 10px 14px;
                text-align: left;
                font-size: var(--text-xs);
                font-weight: var(--weight-semibold);
                color: var(--text-muted);
                letter-spacing: 0.06em;
                text-transform: uppercase;
                white-space: nowrap;
                user-select: none;
                cursor: pointer;
                transition: color 0.15s;
            }

            .data-table th:hover { color: var(--text-primary); }

            /* Sorteer pijltje in header */
            .data-table th .sort-arrow {
                display: inline-block;
                margin-left: 4px;
                opacity: 0.35;
                font-size: 10px;
                vertical-align: middle;
                transition: opacity 0.15s, transform 0.15s;
            }
            .data-table th.sort-asc .sort-arrow,
            .data-table th.sort-desc .sort-arrow {
                opacity: 1;
                color: var(--primary);
            }
            .data-table th.sort-desc .sort-arrow {
                display: inline-block;
                transform: rotate(180deg);
            }

            /* Tbody */
            .data-table tbody tr {
                border-bottom: 1px solid var(--border-subtle);
                transition: background 0.12s;
            }
            .data-table tbody tr:last-child { border-bottom: none; }

            /* Zebra striping */
            .data-table tbody tr:nth-child(even) {
                background: var(--bg-subtle);
            }

            /* Hover state */
            .data-table tbody tr:hover {
                background: var(--primary-light) !important;
            }

            .data-table td {
                padding: 10px 14px;
                color: var(--text-primary);
                vertical-align: middle;
                font-size: var(--text-sm);
            }

            /* Kolom-specifieke stijlen */
            .data-table .col-name { font-weight: var(--weight-semibold); }
            .data-table .col-amount {
                font-weight: var(--weight-semibold);
                color: var(--primary);
                text-align: right;
                white-space: nowrap;
            }
            .data-table .col-date {
                color: var(--text-secondary);
                white-space: nowrap;
            }
            .data-table .col-actions {
                text-align: right;
                white-space: nowrap;
            }
            .data-table .col-actions button + button { margin-left: 4px; }

            /* Dark mode table */
            html.dark .data-table-wrap { border-color: var(--border-color); background: var(--bg-card); }
            html.dark .data-table thead tr { background: rgba(255,255,255,0.04); }
            html.dark .data-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
            html.dark .data-table tbody tr:hover { background: rgba(74,123,200,0.1) !important; }
        }

        /* ── DOCUMENT STATUS BADGES — dark-mode-aware ── */
        .doc-badge-wait,
        .doc-badge-processed,
        .doc-badge-review,
        .doc-badge-failed,
        .doc-badge-processing,
        .doc-meta-badge,
        .doc-source-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-height: 24px;
            padding: 3px 8px;
            border-radius: 999px;
            font-size: var(--text-xs);
            font-weight: 600;
            line-height: 1;
            vertical-align: middle;
            white-space: nowrap;
        }
        .doc-badge-wait        { background: #f3f4f6; color: var(--text-secondary); }
        .doc-badge-processed   { background: #f0fdf4; color: var(--success-text); cursor: pointer; text-decoration: none; }
        .doc-badge-review      { background: #fffbeb; color: var(--warning-text); cursor: pointer; text-decoration: none; }
        .doc-badge-failed      { background: #fef2f2; color: var(--danger-text); cursor: help; }
        .doc-badge-processing  { background: #fff7ed; color: var(--warning-text); }
        .doc-badge-spinner {
            display: inline-block;
            width: 10px;
            height: 10px;
            border: 1.5px solid currentColor;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            flex-shrink: 0;
            opacity: 0.5;
        }
        .doc-meta-badge        { background: var(--bg-subtle); color: var(--text-secondary); }
        .doc-source-badge      { background: rgba(27,51,96,0.08); color: var(--primary); }
        .doc-source-badge.upload { background: var(--gray-100); color: var(--text-secondary); }
        .doc-badge-procbtn,
        .doc-badge-retry {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 24px;
            font-size: var(--text-xs);
            padding: 3px 8px;
            border: 1px solid var(--border);
            border-radius: 999px;
            background: var(--bg-card);
            cursor: pointer;
            color: var(--primary);
            line-height: 1;
            vertical-align: middle;
        }
        html.dark .doc-badge-wait       { background: rgba(255,255,255,0.08); color: #cbd5e1; }
        html.dark .doc-badge-processed  { background: #14532d; color: #86efac; }
        html.dark .doc-badge-review     { background: #713f12; color: #fde68a; }
        html.dark .doc-badge-failed     { background: #7f1d1d; color: #fca5a5; }
        html.dark .doc-badge-processing { background: rgba(234,88,12,0.15); color: #fb923c; }
        html.dark .doc-meta-badge       { background: rgba(255,255,255,0.08); color: #d1d5db; }
        html.dark .doc-source-badge     { background: rgba(96,165,250,0.18); color: #bfdbfe; }
        html.dark .doc-source-badge.upload { background: rgba(255,255,255,0.08); color: #cbd5e1; }
        html.dark .doc-badge-procbtn,
        html.dark .doc-badge-retry      { background: var(--bg-card); border-color: var(--border); color: var(--primary); }

        /* ── RIGHT-SIDE DRAWERS ≥1024px ── */
        /* De modal-content van geselecteerde modals transformeert naar een drawer */
        @media (min-width: 1024px) {
            .modal.drawer-modal {
                align-items: stretch;
                justify-content: flex-end;
            }

            .modal.drawer-modal .modal-content {
                /* Drawer: sticky rechts, volledige hoogte */
                border-radius: 0;
                max-width: 480px;
                width: 480px;
                max-height: 100vh;
                height: 100vh;
                margin: 0;
                /* Slide-in van rechts */
                animation: drawerSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
                /* Override mobile handle bar */
                padding-bottom: 0;
                overflow-y: auto;
                display: flex;
                flex-direction: column;
            }

            /* Verberg de handle bar (::before pseudo) in drawer modus */
            .modal.drawer-modal .modal-content::before {
                display: none;
            }

            /* Modal header sticky bovenaan in drawer */
            .modal.drawer-modal .modal-header {
                position: sticky;
                top: 0;
                z-index: 2;
                flex-shrink: 0;
            }

            /* Form en div padding in drawer iets compacter */
            .modal.drawer-modal .modal-content > form,
            .modal.drawer-modal .modal-content > div:not(.modal-header):not(.form-tabs) {
                flex: 1;
                overflow-y: auto;
                padding: 20px 24px 32px;
            }

            /* Form-buttons sticky onderaan in drawer */
            .modal.drawer-modal .modal-content .form-buttons {
                position: sticky;
                bottom: 0;
                background: var(--bg-card);
                padding: 16px 24px;
                margin: 0;
                border-top: 1px solid var(--border-color);
                z-index: 1;
            }
        }

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

        /* ── VERBETERDE LEGE STATEN ≥768px ── */
        @media (min-width: 768px) {
            /* Grotere, rijkere empty state op desktop */
            .empty-state.desktop-rich {
                padding: 20px 20px !important;
                gap: 10px !important;
                max-height: 280px;
            }

            .empty-state.desktop-rich .empty-icon,
            .empty-state.desktop-rich .empty-state-icon {
                opacity: 0.3 !important;
                margin-bottom: 12px !important;
            }

            .empty-state.desktop-rich .empty-state-title,
            .empty-state.desktop-rich h4 {
                font-size: var(--text-xl) !important;
                font-weight: var(--weight-semibold) !important;
                color: var(--text-primary) !important;
                margin-bottom: 0 !important;
            }

            .empty-state.desktop-rich .empty-state-desc,
            .empty-state.desktop-rich .empty-text,
            .empty-state.desktop-rich > p {
                font-size: var(--text-base) !important;
                color: var(--text-muted) !important;
                max-width: 400px !important;
                line-height: var(--leading-relaxed) !important;
                margin: 0 !important;
            }

            /* CTA knop in lege staat */
            .empty-state.desktop-rich .empty-cta {
                display: inline-flex;
                align-items: center;
                gap: var(--sp-2);
                margin-top: var(--sp-2);
                padding: 0 var(--sp-6);
                height: 44px;
                background: var(--primary);
                color: #fff;
                border: none;
                border-radius: 10px;
                font-size: var(--text-base);
                font-weight: var(--weight-semibold);
                cursor: pointer;
                transition: background 0.15s, transform 0.15s;
                text-decoration: none;
            }
            .empty-state.desktop-rich .empty-cta:hover {
                background: var(--primary-mid);
                transform: translateY(-1px);
            }
            .empty-state.desktop-rich .empty-cta:active {
                transform: scale(0.98);
            }
        }

        /* ============================================================
           FASE 3 — UI/UX POLISH
           Typografische hiërarchie, spacing, hover/focus states,
           skeleton loading, lege staten, sidebar, micro-interacties
           ============================================================ */

        /* ── 1. TYPOGRAFISCHE HIËRARCHIE ≥768px ── */
        @media (min-width: 768px) {
            /* Page title — sectienaam bovenaan */
            .section-page-header h1,
            .section-page-header h2 {
                font-size: var(--text-2xl) !important; /* 24px */
                font-weight: var(--weight-bold) !important; /* 700 */
                line-height: var(--leading-tight) !important; /* 1.2 */
                color: var(--text-primary) !important;
            }

            /* Section heading — card-titels en subsecties */
            .card-title,
            .card-header h3,
            .section-title-row h2,
            h3.section-heading {
                font-size: 18px !important;
                font-weight: var(--weight-semibold) !important; /* 600 */
                line-height: var(--leading-tight) !important;
                color: var(--text-primary) !important;
            }

            /* Card titel — content-kaarten */
            .property-address,
            .dossier-card-title,
            .list-item-title {
                font-size: 15px !important;
                font-weight: var(--weight-semibold) !important;
                line-height: var(--leading-snug) !important;
                color: var(--text-primary) !important;
            }

            /* Body tekst — standaard inhoud */
            .data-table td,
            .card-body p,
            .activity-desc,
            .huurder-card-row,
            .pd-info-value {
                font-size: 14px;
                line-height: var(--leading-normal); /* 1.5 */
                color: var(--text-primary);
            }

            /* Caption/label — metadata, labels, secundaire info */
            .metric-label,
            .stat-label,
            .property-stat-label,
            .pd-info-label,
            .data-table th,
            .nav-section-label {
                font-size: 12px;
                font-weight: var(--weight-medium); /* 500 */
                text-transform: uppercase;
                letter-spacing: 0.06em;
                color: var(--text-muted);
                line-height: var(--leading-normal);
            }

            /* Secundaire tekst — subtitles, beschrijvingen */
            .subtitle,
            .activity-title,
            .huurder-detail,
            .property-location,
            .cost-date,
            .stat-change {
                color: #3D3A35;
                font-size: 13px;
                line-height: var(--leading-normal);
            }

            /* Headings lijnhoogte: tight voor h1/h2, normaal voor body */
            h1, h2 { line-height: var(--leading-tight); }
            h3, h4 { line-height: var(--leading-snug); }
            p, li, td { line-height: var(--leading-normal); }
        }

        /* ── 2. SPACING & WHITESPACE SYSTEEM ≥768px ── */
        @media (min-width: 768px) {
            /* Cards: consistent 8-grid padding */
            .card-body {
                padding: var(--sp-6) !important; /* 24px */
            }
            .card-header {
                padding: var(--sp-4) var(--sp-6) !important; /* 16px 24px */
            }
            .card-footer {
                padding: var(--sp-4) var(--sp-6) !important;
            }

            /* Sections: consistent gap tussen elementen */
            .section.active > *,
            .section-inner > * {
                margin-bottom: var(--sp-6); /* 24px between blocks */
            }
            .section.active > *:last-child,
            .section-inner > *:last-child {
                margin-bottom: 0;
            }

            /* Metric cards: consistente 8-grid padding */
            .metric-card {
                padding: var(--sp-6) !important; /* 24px */
            }

            /* Tabel-rijen: consistent 8-grid cell padding */
            .data-table th,
            .data-table td {
                padding: var(--sp-3) var(--sp-4) !important; /* 12px 16px */
            }

            /* Quick actions: consistente gap */
            .quick-actions {
                gap: var(--sp-2) !important; /* 8px */
                margin-bottom: var(--sp-6) !important; /* 24px */
            }

            /* Section page header: consistent bottom spacing */
            .section-page-header {
                margin-bottom: var(--sp-6) !important; /* 24px */
                padding-bottom: var(--sp-4) !important; /* 16px */
            }

            /* Property cards: consistent padding 8-grid */
            .property-item {
                padding: var(--sp-6) !important; /* 24px */
                gap: var(--sp-2); /* 8px between items */
            }
        }

        /* ── 3. HOVER & FOCUS STATES ── */

        /* Alle buttons: duidelijke hover + cursor + transition */
        button,
        .btn,
        .action-button,
        .drawer-item,
        .nav-tab,
        .list-item,
        .dossier-card,
        .huurder-item {
            cursor: pointer;
        }

        /* Primaire knoppen — hover al geregeld, maar transition versterken */
        .btn-primary:hover {
            transition: background 0.15s ease, box-shadow 0.15s ease !important;
        }

        /* Ghost / outline knoppen */
        .btn-ghost,
        .btn-outline,
        .btn-secondary {
            transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
        }

        /* Tabelrijen: hover al gezet via .data-table tbody tr:hover, controleer consistentie */
        .data-table tbody tr {
            transition: background 0.12s ease;
            cursor: default;
        }

        /* Klikbare rijen */
        .data-table tbody tr[onclick],
        .data-table tbody tr[data-clickable] {
            cursor: pointer;
        }

        /* Sidebar nav items: hover al aanwezig — verfijn transition */
        .nav-link {
            transition: background 0.15s ease, color 0.15s ease !important;
        }
        .nav-link:hover {
            background: rgba(255,255,255,0.09) !important;
            color: rgba(255,255,255,0.92) !important;
        }
        .nav-link:hover svg {
            opacity: 1;
        }

        /* Pand-kaarten: hover lift */
        @media (min-width: 768px) {
            .property-item {
                transition: box-shadow 0.18s ease, transform 0.18s ease !important;
            }
            .property-item:hover {
                box-shadow: 0 8px 28px rgba(15,31,61,0.13) !important;
                transform: translateY(-2px) !important;
            }
            .property-item.profitable:hover {
                box-shadow: inset 6px 0 0 var(--success), 0 8px 28px rgba(15,31,61,0.13) !important;
            }
            .property-item.neutral:hover {
                box-shadow: inset 6px 0 0 var(--warning), 0 8px 28px rgba(15,31,61,0.13) !important;
            }
            .property-item.loss:hover {
                box-shadow: inset 6px 0 0 var(--danger), 0 8px 28px rgba(15,31,61,0.13) !important;
            }

            /* Huurder kaarten: hover lift */
            .huurder-item {
                transition: box-shadow 0.18s ease, transform 0.18s ease !important;
            }
            .huurder-item:hover {
                box-shadow: 0 6px 24px rgba(15,31,61,0.11) !important;
                transform: translateY(-1px) !important;
            }

            /* Dossier kaarten: hover lift */
            .dossier-card {
                transition: box-shadow 0.18s ease, transform 0.18s ease !important;
            }
            .dossier-card:hover {
                box-shadow: 0 6px 24px rgba(15,31,61,0.11) !important;
                transform: translateY(-1px) !important;
            }
        }

        /* Focus states: altijd zichtbaar, nooit `outline: none` zonder alternatief */
        *:focus-visible {
            outline: 2px solid var(--accent) !important;
            outline-offset: 3px;
            border-radius: 4px;
        }

        .section-page-header h1:focus-visible {
            outline: none !important;
        }

        /* Sidebar knoppen: focus in context van donkere achtergrond */
        .sidebar *:focus-visible {
            outline: 2px solid rgba(255,255,255,0.9) !important;
            outline-offset: 2px;
        }

        /* ── 4. SKELETON LOADING — verbeterde shimmer ── */

        /* Basis shimmer klasse */
        .skeleton,
        .skeleton-line,
        .skeleton-block {
            background: linear-gradient(
                90deg,
                var(--gray-200) 0%,
                var(--gray-100) 40%,
                var(--gray-200) 80%
            ) !important;
            background-size: 400px 100% !important;
            animation: phase3-shimmer 1.5s ease-in-out infinite !important;
            border-radius: 6px !important;
            color: transparent !important;
        }

        @keyframes phase3-shimmer {
            0%   { background-position: 400px 0; }
            100% { background-position: -400px 0; }
        }

        /* Dark mode shimmer */
        html.dark .skeleton,
        html.dark .skeleton-line,
        html.dark .skeleton-block {
            background: linear-gradient(
                90deg,
                #1a2744 0%,
                #253655 40%,
                #1a2744 80%
            ) !important;
            background-size: 400px 100% !important;
        }

        /* Skeleton voor property-list items */
        .property-item-skeleton {
            background: var(--bg-card);
            border-radius: 16px;
            padding: var(--sp-6);
            border: 1px solid var(--border-color);
            box-shadow: 0 1px 6px rgba(0,0,0,0.04);
            margin-bottom: var(--sp-3);
        }
        .property-item-skeleton .sk-line {
            height: 14px;
            border-radius: 6px;
            background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 40%, var(--gray-200) 80%);
            background-size: 400px 100%;
            animation: phase3-shimmer 1.5s ease-in-out infinite;
            margin-bottom: var(--sp-2);
        }
        .property-item-skeleton .sk-line.wide  { width: 70%; }
        .property-item-skeleton .sk-line.medium { width: 45%; }
        .property-item-skeleton .sk-line.narrow { width: 30%; }

        /* Skeleton voor tabelrijen */
        .skeleton-row td {
            padding: var(--sp-3) var(--sp-4);
        }
        .skeleton-row .sk-cell {
            height: 12px;
            border-radius: 4px;
            background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 40%, var(--gray-200) 80%);
            background-size: 400px 100%;
            animation: phase3-shimmer 1.5s ease-in-out infinite;
        }
        html.dark .property-item-skeleton .sk-line,
        html.dark .skeleton-row .sk-cell {
            background: linear-gradient(90deg, #1a2744 0%, #253655 40%, #1a2744 80%);
            background-size: 400px 100%;
        }

        /* Skeleton-bar (al aanwezig) — versterkt */
        .skeleton-bar {
            height: 14px;
            border-radius: 6px;
            background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-100) 40%, var(--gray-200) 80%);
            background-size: 400px 100%;
            animation: phase3-shimmer 1.5s ease-in-out infinite;
        }

        /* ── 5. LEGE STATEN — visuele kwaliteit ≥768px ── */
        @media (min-width: 768px) {
            .empty-state {
                padding: 36px 24px !important;
                gap: var(--sp-3) !important;
            }

            /* Icoon: SVG width/height regelt grootte — geen font-size nodig */
            .empty-state-icon,
            .empty-icon {
                color: var(--text-muted) !important;
                opacity: 0.35 !important;
                margin-bottom: 0 !important;
            }

            /* Titel: text-primary, xl, semibold */
            .empty-state-title,
            .empty-state h4 {
                font-size: var(--text-xl) !important; /* 20px */
                font-weight: var(--weight-semibold) !important; /* 600 */
                color: var(--text-primary) !important;
                margin-bottom: 0 !important;
                line-height: var(--leading-snug) !important;
            }

            /* Beschrijving: text-secondary, sm, max-width 360px */
            .empty-state-desc,
            .empty-state-text,
            .empty-text,
            .empty-state > p {
                font-size: var(--text-sm) !important; /* 13px */
                color: var(--text-secondary) !important;
                max-width: 360px !important;
                text-align: center;
                line-height: var(--leading-relaxed) !important;
                margin: 0 auto !important;
            }

            /* CTA knop: primary style, niet te groot */
            .empty-state .empty-cta,
            .empty-state button.btn-primary {
                height: 40px !important;
                padding: 0 var(--sp-6) !important; /* 0 24px */
                font-size: var(--text-sm) !important;
                font-weight: var(--weight-semibold) !important;
                border-radius: 8px !important;
                background: var(--primary) !important;
                color: #fff !important;
                border: none !important;
                cursor: pointer;
                transition: background 0.15s ease, transform 0.15s ease;
                text-decoration: none;
                display: inline-flex;
                align-items: center;
                gap: var(--sp-2);
                margin-top: var(--sp-2);
            }
            .empty-state .empty-cta:hover,
            .empty-state button.btn-primary:hover {
                background: var(--primary-mid) !important;
                transform: translateY(-1px);
            }
        }

        /* ── 6. SIDEBAR VISUELE VERFIJNING ── */

        /* Actieve nav item: bold label + left border accent (al via box-shadow) */
        .nav-link.active {
            font-weight: var(--weight-semibold) !important;
            /* Left border via box-shadow — al aanwezig */
        }

        /* Nav icon + label: verticaal gecentreerd, 8px gap */
        .nav-link {
            display: grid !important;
            grid-template-columns: 12px 16px minmax(0, 1fr) !important;
            align-items: center !important;
            column-gap: var(--sp-2) !important; /* 8px */
        }

        /* Nav icoon opacity-transitie */
        .nav-link svg {
            grid-column: 2;
            transition: opacity 0.15s ease, stroke 0.15s ease !important;
        }

        /* Nav group (collapsible) */
        .nav-group {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        /* Nav group button: expandable header */
        .nav-group-btn {
            display: grid !important;
            grid-template-columns: 12px 16px minmax(0, 1fr);
            align-items: center !important;
            column-gap: 8px !important;
            min-height: 46px;
            padding: 0 16px !important;
            font-size: var(--text-sm) !important;
            font-weight: 600 !important;
            color: rgba(255,255,255,0.7) !important;
            background: transparent !important;
            border: none !important;
            cursor: pointer !important;
            text-align: left !important;
            width: 100% !important;
            border-left: 2px solid transparent !important;
            transition: all 0.15s ease !important;
        }
        .nav-group-btn svg {
            grid-column: 2;
        }
        .nav-group-btn > span:last-child {
            grid-column: 3;
            flex: 1;
            min-width: 0;
        }
        .nav-group-btn:hover {
            color: rgba(255,255,255,0.85) !important;
        }
        .nav-group-btn.active,
        body.sidebar-collapsed .sidebar .nav-group-btn.active {
            background: rgba(255,255,255,0.10) !important;
            color: rgba(255,255,255,0.95) !important;
            font-weight: var(--weight-semibold) !important;
            box-shadow: inset 3px 0 0 rgba(255,255,255,0.9) !important;
        }
        body.sidebar-collapsed .sidebar .nav-group-btn.active {
            box-shadow: none !important;
        }
        .nav-group-btn.active svg {
            opacity: 1 !important;
            stroke: rgba(255,255,255,0.95) !important;
        }

        /* Group toggle chevron */
        .nav-group-toggle {
            grid-column: 1;
            display: inline-block;
            width: 12px;
            text-align: center;
            font-size: 12px;
            color: rgba(255,255,255,0.5);
            transition: transform 0.2s ease;
            flex-shrink: 0;
            transform: rotate(-90deg);
        }

        .nav-group-btn[aria-expanded="true"] .nav-group-toggle {
            transform: rotate(0deg);
        }

        /* Nav group items container */
        .nav-group-items {
            list-style: none;
            margin: 0;
            padding: 0;
            max-height: 1000px;
            overflow: hidden;
            transition: max-height 0.25s ease;
        }
        .nav-group-items:not(.open) {
            max-height: 0;
        }

        /* Sub nav items align to the same columns as their parent groups */
        .nav-sub .nav-link {
            justify-content: flex-start !important;
            padding-left: 16px !important;
            padding-right: 16px !important;
            font-size: var(--text-sm) !important;
            color: rgba(255,255,255,0.65) !important;
            min-height: 42px !important;
        }
        .nav-sub .nav-link:hover {
            color: rgba(255,255,255,0.8) !important;
        }

        /* Sidebar footer: subtiele separator + gebruikersinfo */
        .nav-sidebar-footer {
            border-top: 1px solid rgba(255,255,255,0.08) !important;
            padding: var(--sp-4) var(--sp-4) !important;
            margin-top: auto;
            transition: background 0.15s ease;
        }
        .nav-sidebar-footer:hover {
            background: rgba(255,255,255,0.03);
            border-radius: 0;
        }

        .nav-sidebar-footer .user-email {
            font-size: var(--text-xs) !important;
            color: rgba(255,255,255,0.65) !important;
            margin-bottom: var(--sp-1) !important;
        }

        .nav-sidebar-footer .signout-btn {
            font-size: 12px;
            color: rgba(255,255,255,0.45);
            transition: color 0.15s ease !important;
            padding: var(--sp-1) 0 !important;
        }
        .nav-sidebar-footer .signout-btn:hover {
            color: rgba(255,255,255,0.75) !important;
        }

        /* ── 7. MICRO-INTERACTIES ── */

        /* Drawer animatie: vloeiende cubic-bezier, 220ms */
        @keyframes drawerSlideIn {
            from { transform: translateX(100%); opacity: 0.6; }
            to   { transform: translateX(0);    opacity: 1; }
        }
        @media (min-width: 1024px) {
            .modal.drawer-modal .modal-content {
                animation: drawerSlideIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
            }
        }

        /* Pand detail popup: vloeiende overgang */
        #pandDetailPanel {
            transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease !important;
        }

        /* Tabel sort indicator: pijl al aanwezig via .sort-arrow — versterk kleur en transitie */
        .data-table th.sort-asc .sort-arrow,
        .data-table th.sort-desc .sort-arrow {
            color: var(--primary) !important;
            opacity: 1 !important;
            transition: opacity 0.15s ease, transform 0.15s ease !important;
        }
        .data-table th:not(.sort-asc):not(.sort-desc) .sort-arrow {
            opacity: 0.3 !important;
            transition: opacity 0.15s ease !important;
        }
        /* Actieve kolom header: primary kleur */
        .data-table th.sort-asc,
        .data-table th.sort-desc {
            color: var(--primary) !important;
        }

        /* Toast notificaties: desktop top-right, mobile bottom */
        @media (min-width: 768px) {
            #globalToast {
                top: 24px !important;
                bottom: auto !important;
                right: 24px !important;
                left: auto !important;
                transform: none !important;
                max-width: 380px !important;
                text-align: left !important;
                border-radius: 10px !important;
                box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.12) !important;
            }
        }

        /* Section fade-in: al aanwezig — verstevig timing */
        .section.active {
            animation: fadeIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) !important;
        }

        /* Modal open/sluit animatie al aanwezig — verstevig */
        .modal.active {
            animation: modalBgIn 0.18s ease !important;
        }
        .modal-content {
            animation: slideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
        }
        @media (min-width: 1025px) {
            .modal-content {
                animation: none !important; /* Desktop modal centreert direct */
            }
        }

        /* Metric card hover lift: al gedefinieerd — verstevig transition */
        .metric-card {
            transition: transform 0.18s ease, box-shadow 0.18s ease !important;
        }

        /* Action button hover: vloeiende kleur + lift */
        .action-button {
            transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, color 0.18s ease !important;
        }

        /* Card hover: vloeiende shadow */
        .card {
            transition: box-shadow 0.18s ease !important;
        }

        /* Dashboard: benut de beschikbare werkruimte naast de navigatiekolom */
        @media (min-width: 768px) {
            #dashboard.section.active {
                max-width: none !important;
                width: 100% !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            #dashboard > * {
                max-width: none !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            #dashboard .section-page-header {
                padding-left: 0 !important;
                padding-right: 0 !important;
            }

            .dashboard-shell {
                max-width: none !important;
                width: 100%;
                margin: 0 !important;
                gap: 18px;
            }

            .dashboard-shell__surface--compact {
                background: transparent !important;
                border: 0 !important;
                border-radius: 0 !important;
                box-shadow: none !important;
                padding: 0 !important;
            }

            .dashboard-shell__surface--compact .dashboard-shell__lead {
                max-width: 860px;
            }

            .dashboard-rendement,
            .dashboard-portfolio-map,
            .dashboard-properties {
                border-radius: 14px;
                background: rgba(255,255,255,0.86);
                border: 1px solid rgba(27,51,96,0.10);
            }

            .dashboard-portfolio-map,
            .dashboard-properties {
                padding: clamp(16px, 1.8vw, 22px);
            }

            .dashboard-portfolio-map__canvas {
                height: clamp(240px, 34vh, 390px);
            }

            .portfolio-detail-summary {
                grid-template-columns: 34px minmax(160px, 1fr) minmax(160px, 1fr) minmax(86px, 0.45fr) minmax(78px, 0.42fr);
            }
        }

        @media (min-width: 768px) and (max-width: 1180px) {
            .main-content {
                padding-right: 14px !important;
            }

            .app-content {
                padding: 18px !important;
            }

            .portfolio-detail-summary {
                grid-template-columns: 34px minmax(150px, 1fr) minmax(150px, 1fr);
            }

            .portfolio-detail-summary .property-type-badge,
            .portfolio-detail-summary .property-status-pill {
                display: none;
            }
        }

        /* ═══════════════════════════════════════════════════════
           HUURDERWISSEL WIZARD — gedeelde Estmate modal
        ═══════════════════════════════════════════════════════ */
        #huurderWisselDrawer.hw-modal {
            padding: 0 14px;
        }
        #huurderWisselDrawer .hw-modal-content {
            width: 100%;
            max-width: min(760px, calc(100vw - 28px));
            height: min(88vh, 860px);
            max-height: 88vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            padding-bottom: 0;
            box-shadow: 0 -18px 60px rgba(15, 31, 61, 0.22);
        }
        @media (min-width: 768px) {
            #huurderWisselDrawer.hw-modal {
                align-items: center;
                padding: 24px;
            }
            #huurderWisselDrawer .hw-modal-content {
                border-radius: 22px;
                box-shadow: 0 24px 90px rgba(15, 31, 61, 0.28);
            }
            #huurderWisselDrawer .hw-modal-content::before {
                display: none;
            }
        }
        @media (max-width: 640px) {
            #huurderWisselDrawer.hw-modal {
                padding: 0;
            }
            #huurderWisselDrawer .hw-modal-content {
                max-width: 100%;
                height: 92vh;
                max-height: 92vh;
                border-radius: 22px 22px 0 0;
            }
        }

        .hw-header {
            padding: 18px 20px 14px; border-bottom: 1px solid var(--border-color);
            flex-shrink: 0; background: var(--bg-card);
            display: flex; align-items: center; justify-content: space-between; gap: 12px;
        }
        .hw-header-left { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
        .hw-title { font-size: 15px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.2px; }
        .hw-title[tabindex="-1"]:focus,
        .hw-title[tabindex="-1"]:focus-visible {
            outline: none !important;
            box-shadow: none !important;
        }
        .hw-subtitle { font-size: 11px; color: var(--text-muted); font-weight: 500; }
        .hw-progress-wrap { padding: 12px 20px 10px; flex-shrink: 0; background: var(--bg-card); }
        .hw-steps {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: min(100%, 380px);
            margin: 0 auto 8px;
        }
        .hw-step-dot {
            width: 28px !important; height: 28px !important;
            min-width: 28px !important; min-height: 28px !important;
            max-width: 28px !important; max-height: 28px !important;
            border-radius: 50% !important;
            border: 2px solid var(--border-color); background: var(--bg-card);
            display: inline-flex; align-items: center; justify-content: center;
            font-size: 11px; font-weight: 750; color: var(--text-muted);
            flex-shrink: 0; transition: all .2s; position: relative; z-index: 1;
            cursor: pointer; padding: 0 !important; font-family: var(--font-body);
            line-height: 1;
        }
        .hw-step-dot:hover, .hw-step-dot:focus-visible { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
        .hw-step-dot.done { background: var(--success); border-color: var(--success); color: #fff; }
        .hw-step-dot.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 3px rgba(15,31,61,0.10); }
        html.dark .hw-step-dot.active { box-shadow: 0 0 0 3px rgba(74,123,200,0.2); }
        .hw-step-line { flex: 0 0 30px; width: 30px; min-width: 30px; max-width: 30px; height: 2px; background: var(--border-color); transition: background .25s; }
        .hw-step-line.done { background: var(--success); }
        .hw-progress-bar { height: 3px; width: min(100%, 380px); background: var(--border-color); border-radius: 2px; margin: 0 auto; overflow: hidden; }
        .hw-progress-fill {
            height: 100%; background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
            border-radius: 2px; transition: width .35s cubic-bezier(0.22,1,0.36,1);
        }
        .hw-progress-fill--step-1 { width: 5%; }
        .hw-progress-fill--step-2 { width: 20%; }
        .hw-progress-fill--step-3 { width: 40%; }
        .hw-progress-fill--step-4 { width: 60%; }
        .hw-progress-fill--step-5 { width: 80%; }
        .hw-progress-fill--step-6 { width: 100%; }
        .intrede-preview-title {
            margin-bottom: 8px;
            color: var(--gray-500);
            font-size: var(--text-sm);
        }
        .intrede-preview-row {
            display: flex;
            justify-content: space-between;
            padding: 5px 0;
            border-bottom: 1px solid var(--border-color);
            font-size: var(--text-sm);
        }
        .selected-file-list {
            max-height: 172px;
            margin: 0;
            padding: 8px 12px 0 18px;
            overflow: auto;
            border: 1px solid rgba(15,23,42,0.06);
            border-radius: 10px;
            background: var(--gray-50);
        }
        .selected-file-list__item {
            padding: 4px 0;
            border-bottom: 1px solid rgba(15,23,42,0.06);
            color: var(--text-secondary);
            font-size: var(--text-xs);
            word-break: break-word;
        }
        .selected-file-list__more {
            padding-top: 6px;
            color: var(--gray-500);
            font-size: var(--text-xs);
            list-style: none;
        }
        .dossier-detail-modal {
            max-width: 520px;
            max-height: 90vh;
            overflow-y: auto;
        }
        .dossier-detail-modal__title {
            margin-bottom: 2px;
        }
        .dossier-detail-modal__subtitle {
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .dossier-detail-modal__body {
            padding: 16px 20px;
        }
        .dossier-detail-modal__progress {
            margin-bottom: 16px;
        }
        .dossier-detail-modal__progress-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 6px;
            color: var(--text-secondary);
            font-size: var(--text-sm);
            font-weight: 600;
        }
        .dossier-detail-modal__progress-head span:last-child {
            color: var(--primary);
            font-weight: 700;
        }
        .dossier-detail-modal__progress-bar {
            display: block;
            width: 100%;
            height: 6px;
            overflow: hidden;
            border: 0;
            border-radius: 3px;
            background: var(--gray-100, #f3f4f6);
        }
        .dossier-detail-modal__progress-bar::-webkit-progress-bar { background: var(--gray-100, #f3f4f6); }
        .dossier-detail-modal__progress-bar::-webkit-progress-value {
            border-radius: 3px;
            background: var(--primary);
        }
        .dossier-detail-modal__progress-bar.is-complete::-webkit-progress-value {
            background: var(--success-text);
        }
        .dossier-detail-modal__progress-bar::-moz-progress-bar {
            border-radius: 3px;
            background: var(--primary);
        }
        .dossier-detail-modal__progress-bar.is-complete::-moz-progress-bar {
            background: var(--success-text);
        }
        .dossier-detail-modal__section-title {
            margin-bottom: 10px;
            color: var(--text-muted);
            font-size: var(--text-xs);
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .dossier-detail-step {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 6px;
            padding: 13px 16px;
            border: 1px solid var(--border-color, #e5e7eb);
            border-radius: 10px;
            background: var(--bg-card);
            cursor: pointer;
            transition: all 0.15s;
        }
        .dossier-detail-step.done {
            border-color: rgba(6,78,59,0.22);
            background: var(--success-light);
        }
        .dossier-detail-step__check {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: 22px;
            height: 22px;
            padding-left: 3px;
            border: 2px solid #d1d5db;
            border-radius: 50%;
            background: transparent;
            flex-shrink: 0;
        }
        .dossier-detail-step.done .dossier-detail-step__check {
            border-color: var(--success-text);
            background: var(--success-text);
        }
        .dossier-detail-step__label {
            flex: 1;
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
        }
        .dossier-detail-step.done .dossier-detail-step__label,
        .dossier-detail-step__status.is-done {
            color: var(--success-text);
        }
        .dossier-detail-step__status {
            color: var(--text-secondary);
            font-size: var(--text-xs);
        }
        .dossier-detail-step__status.is-done {
            font-weight: 600;
        }
        .dossier-detail-modal__notes {
            margin-top: 16px;
            padding: 12px;
            border: 1px solid var(--border-color, #e5e7eb);
            border-radius: 8px;
            background: var(--gray-50, #f9fafb);
            color: var(--text-secondary);
            font-size: var(--text-sm);
        }
        .dossier-detail-modal__actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }
        .dossier-detail-modal__finish,
        .dossier-detail-modal__done,
        .dossier-detail-modal__close {
            padding: 11px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
        }
        .dossier-detail-modal__finish,
        .dossier-detail-modal__done {
            flex: 1;
        }
        .dossier-detail-modal__finish {
            border: 0;
            background: #0F1F3D;
            color: white;
            cursor: pointer;
        }
        .dossier-detail-modal__done {
            background: var(--success-light);
            color: var(--success-text);
            text-align: center;
        }
        .dossier-detail-modal__close {
            padding-right: 16px;
            padding-left: 16px;
            border: 1px solid var(--border-color, #e5e7eb);
            background: var(--bg-card);
            cursor: pointer;
        }

        .hw-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 20px 0; }
        .hw-step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
        .hw-step-icon {
            width: 40px; height: 40px; border-radius: 12px; background: var(--primary-light);
            display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
        }
        html.dark .hw-step-icon { background: var(--gray-100); }
        .hw-step-title { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
        .hw-step-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

        .hw-form-group { margin-bottom: 16px; }
        .hw-form-group.is-flush { margin-bottom: 0; }
        .hw-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em; margin-bottom: 6px; }
        .hw-label .hw-required { color: var(--danger); margin-left: 2px; }
        .hw-input, .hw-select, .hw-textarea {
            width: 100%; padding: 10px 12px; border: 1.5px solid var(--border-color); border-radius: 8px;
            font-size: 14px; color: var(--text-primary); background: var(--bg-input);
            transition: border-color .15s, box-shadow .15s; box-sizing: border-box; font-family: var(--font-body);
        }
        .hw-input:focus, .hw-select:focus, .hw-textarea:focus {
            outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,31,61,0.08);
        }
        html.dark .hw-input:focus, html.dark .hw-select:focus, html.dark .hw-textarea:focus { box-shadow: 0 0 0 3px rgba(74,123,200,0.15); }
        .hw-textarea { resize: vertical; min-height: 80px; }
        .hw-input-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
        .hw-input-hint.computed { color: var(--success); font-weight: 600; }

        .hw-radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
        .hw-radio-option { flex: 1; min-width: 100px; }
        .hw-radio-option input[type="radio"] { display: none; }
        .hw-radio-label {
            display: flex; align-items: center; justify-content: center; gap: 6px;
            padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--border-color);
            background: var(--bg-input); font-size: 13px; font-weight: 600; color: var(--text-secondary);
            cursor: pointer; text-align: center; transition: all .15s;
        }
        .hw-radio-option input[type="radio"]:checked + .hw-radio-label { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
        html.dark .hw-radio-option input[type="radio"]:checked + .hw-radio-label { background: rgba(74,123,200,0.15); }

        .hw-checklist { display: flex; flex-direction: column; gap: 8px; }
        .hw-checklist.has-bottom-gap { margin-bottom: 14px; }
        .hw-check-item {
            display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
            background: var(--gray-50); border: 1px solid var(--border-color); cursor: pointer; transition: background .12s;
        }
        .hw-check-item:hover { background: var(--bg-hover); }
        .hw-check-item input[type="checkbox"] { display: none; }
        .hw-check-box {
            width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border-color);
            background: var(--bg-card); display: flex; align-items: center; justify-content: center;
            flex-shrink: 0; transition: all .15s; font-size: 12px; color: #fff;
        }
        .hw-check-item.checked .hw-check-box { background: var(--success); border-color: var(--success); }
        /* hw-check-box checkmark rendered via SVG in JS */
        .hw-check-text { font-size: 13px; color: var(--text-primary); font-weight: 500; }

        .hw-file-input {
            width: 100%; padding: 10px; border: 1.5px dashed var(--gray-300); border-radius: 8px;
            background: var(--gray-50); font-size: 13px; cursor: pointer; box-sizing: border-box;
        }
        .hw-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
        .hw-2col.has-bottom-gap { margin-bottom: 18px; }

        .hw-summary-block { background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
        .hw-summary-block.is-gap-lg { margin-bottom: 16px; }
        .hw-summary-block.is-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
        .hw-summary-block.is-warning { border-color: #fde68a; background: #fffbeb; color: #92400e; }
        .hw-summary-block.is-info { border-color: rgba(27,51,96,0.16); background: rgba(27,51,96,0.055); color: var(--primary); }
        .hw-summary-label { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
        .hw-summary-label.is-error { color: #991b1b; }
        .hw-summary-label.is-warning { color: #92400e; }
        .hw-summary-label.is-info { color: var(--primary); }
        .hw-summary-list { display: grid; gap: 8px; }
        .hw-summary-item { font-size: var(--text-sm); line-height: 1.5; }
        .hw-summary-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--border-color); gap: 8px; }
        .hw-summary-row:last-child { border-bottom: none; }
        .hw-summary-key { color: var(--text-secondary); }
        .hw-summary-val { font-weight: 600; color: var(--text-primary); text-align: right; }
        .hw-meter-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:4px 0; border-bottom:1px dashed var(--border-color); font-size:13px; }
        .hw-meter-row:last-child { border-bottom:none; }
        .hw-meter-key { color: var(--text-secondary); }
        .hw-meter-val { color: var(--text-primary); font-weight:600; text-align:right; }
        .hw-meter-capture { display: grid; gap: 12px; margin-bottom: 16px; }
        .hw-meter-card {
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-card);
            padding: 12px;
        }
        .hw-meter-card-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
            font-size: 13px;
            font-weight: 750;
            color: var(--text-primary);
        }
        .hw-meter-card-badge {
            font-size: 10px;
            font-weight: 750;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--text-muted);
            background: var(--gray-50);
            border: 1px solid var(--border-color);
            border-radius: 999px;
            padding: 3px 7px;
            white-space: nowrap;
        }
        .hw-meter-form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
        .hw-meter-form-grid .wide { grid-column: 1 / -1; }
        .hw-meter-note {
            margin-top: 8px;
            font-size: 11px;
            line-height: 1.45;
            color: var(--text-muted);
        }
        .hw-inline-tabs {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 6px;
            padding: 4px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: var(--gray-50);
            margin-bottom: 16px;
        }
        .hw-inline-tab {
            min-height: 34px !important;
            padding: 0 10px !important;
            border: 0;
            border-radius: 7px;
            background: transparent;
            color: var(--text-secondary);
            font-size: 12px;
            font-weight: 750;
            cursor: pointer;
        }
        .hw-inline-tab.active {
            background: var(--bg-card);
            color: var(--text-primary);
            box-shadow: 0 1px 3px rgba(15,31,61,0.08);
        }
        .hw-upload-card {
            border: 1px dashed var(--border-color);
            border-radius: 8px;
            background: var(--bg-subtle);
            padding: 14px;
            display: grid;
            gap: 12px;
        }
        .hw-inline-chip {
            color: var(--text-muted);
            font-size: var(--text-xs);
        }
        .hw-empty-notice {
            padding: 10px 14px;
            margin-bottom: 18px;
            border-radius: 10px;
            background: var(--primary-light);
            color: var(--primary);
            font-size: var(--text-sm);
        }
        .hw-notice-box {
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            background: var(--gray-50);
            color: var(--text-secondary);
            font-size: var(--text-sm);
        }
        .hw-review-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
        }
        .hw-review-card {
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-card);
        }
        .hw-review-card__label {
            color: var(--text-muted);
            font-size: var(--text-xs);
            letter-spacing: .08em;
            text-transform: uppercase;
        }
        .hw-review-card__value {
            margin-top: 6px;
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 700;
            line-height: 1.45;
        }
        .hw-inline-action {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .hw-doc-list {
            display: grid;
            gap: 8px;
        }
        .hw-doc-item {
            display: grid;
            gap: 4px;
            padding: 10px 12px;
            border-radius: 8px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            font-size: 12px;
        }
        .hw-doc-item-title {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            color: var(--text-primary);
            font-weight: 750;
        }
        .hw-doc-status {
            color: var(--success);
            font-weight: 750;
            white-space: nowrap;
        }
        .hw-doc-meta {
            color: var(--text-muted);
            line-height: 1.45;
        }

        .hw-layer-card {
            border: 1px solid var(--border-color);
            border-radius: 12px;
            background: var(--bg-card);
            padding: 14px;
            margin-bottom: 14px;
        }
        .hw-layer-card.is-soft {
            background: linear-gradient(180deg, rgba(27,51,96,0.045), rgba(27,51,96,0.015));
        }
        .hw-layer-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 10px;
        }
        .hw-layer-title {
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 800;
            line-height: 1.25;
        }
        .hw-layer-copy {
            color: var(--text-secondary);
            font-size: 12px;
            line-height: 1.55;
            margin-top: 4px;
        }
        .hw-risk-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 24px;
            padding: 4px 9px;
            border-radius: 999px;
            border: 1px solid var(--border-color);
            background: var(--gray-50);
            color: var(--text-secondary);
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            white-space: nowrap;
        }
        .hw-risk-chip.required { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
        .hw-risk-chip.recommended { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
        .hw-risk-chip.optional { background: #ecfdf5; border-color: #bbf7d0; color: #047857; }
        .hw-alert {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 14px;
            border-radius: 12px;
            border: 1px solid #fecaca;
            background: #fef2f2;
            color: #991b1b;
            font-size: 12px;
            font-weight: 650;
            line-height: 1.5;
            margin-bottom: 14px;
        }
        .hw-alert.info {
            border-color: rgba(27,51,96,0.16);
            background: rgba(27,51,96,0.055);
            color: var(--primary);
        }
        .hw-resume-banner {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 16px;
            padding: 14px 16px;
            border: 1px solid rgba(27,51,96,0.12);
            border-radius: 14px;
            background: rgba(27,51,96,0.04);
        }
        .hw-resume-title {
            color: var(--text-primary);
            font-size: var(--text-sm);
            font-weight: 800;
        }
        .hw-resume-copy {
            margin-top: 4px;
            color: var(--text-muted);
            font-size: var(--text-sm);
        }
        .hw-resume-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        .hw-task-list {
            display: grid;
            gap: 8px;
        }
        .hw-task-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
            align-items: center;
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: var(--bg-subtle);
        }
        .hw-task-title {
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 750;
        }
        .hw-task-meta {
            color: var(--text-muted);
            font-size: 11px;
            line-height: 1.4;
            margin-top: 2px;
        }
        .hw-legal-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }
        .hw-action-log {
            display: grid;
            gap: 8px;
            margin-top: 8px;
        }
        .hw-action-log-row {
            display: grid;
            grid-template-columns: 156px minmax(0, 1fr);
            gap: 10px;
            padding: 10px 0;
            border-bottom: 1px dashed var(--border-color);
            font-size: 12px;
        }
        .hw-action-log-row:last-child { border-bottom: none; }
        .hw-action-log-time {
            color: var(--text-muted);
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }
        .hw-action-log-text {
            color: var(--text-primary);
            font-weight: 650;
            line-height: 1.45;
        }

        .hw-success-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 8px; }
        .hw-success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--success-light); display: flex; align-items: center; justify-content: center; font-size: 36px; margin-bottom: 16px; }
        .hw-success-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
        .hw-success-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 340px; }
        .hw-success-items { width: 100%; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
        .hw-success-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: var(--success-light); font-size: 13px; color: var(--success); font-weight: 600; }

        .hw-footer { padding: 14px 20px; border-top: 1px solid var(--border-color); background: var(--bg-card); flex-shrink: 0; display: flex; gap: 10px; }
        .hw-btn { flex: 1; padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all .15s; display: flex; align-items: center; justify-content: center; gap: 6px; }
        .hw-btn-primary { background: var(--primary); color: #fff; }
        .hw-btn-primary:hover { background: var(--primary-mid); }
        .hw-btn-primary:disabled { background: var(--gray-300); color: var(--gray-500); cursor: not-allowed; }
        .hw-btn-outline { background: var(--bg-card); color: var(--text-secondary); border: 1.5px solid var(--border-color); }
        .hw-btn-outline:hover { background: var(--bg-hover); }
        .hw-btn-success { background: var(--success); color: #fff; }
        .hw-btn-success:hover { opacity: .9; }
        .hw-btn-danger { background: var(--danger); color: #fff; }

        .pd-action-btn.wizard-btn { background: var(--bg-subtle); color: var(--text-primary); border-color: var(--border-color); }
        .pd-action-btn.wizard-btn:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-strong, var(--border-color)); }
        html.dark #huurderWisselDrawer .hw-modal-content { background: var(--bg-card); }
        html.dark .hw-check-item { background: var(--bg-subtle); }
        html.dark .hw-layer-card.is-soft { background: rgba(74,123,200,0.08); }
        html.dark .hw-alert.info { background: rgba(74,123,200,0.12); color: var(--text-primary); }
        html.dark .next-actions {
            background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.025) 100%);
            border-color: rgba(255,255,255,0.10);
        }
        html.dark .dashboard-action-card {
            background: rgba(255,255,255,0.065) !important;
            border-color: rgba(255,255,255,0.12) !important;
            color: var(--text-primary) !important;
        }
        html.dark .dashboard-action-card:hover,
        html.dark .dashboard-action-card:focus-visible {
            background: rgba(74,123,200,0.18) !important;
            border-color: rgba(96,165,250,0.32) !important;
        }
        html.dark .dashboard-action-card.is-alert {
            background: rgba(245,158,11,0.13) !important;
            border-color: rgba(245,158,11,0.30) !important;
        }
        html.dark .dashboard-next-step-card {
            background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(74,123,200,0.14) 100%);
            border-color: rgba(255,255,255,0.12);
            box-shadow: none;
        }
        html.dark .dashboard-next-step-card:hover,
        html.dark .dashboard-next-step-card:focus-visible {
            border-color: rgba(96,165,250,0.32);
            box-shadow: 0 14px 30px rgba(0,0,0,0.18);
        }
        html.dark .dashboard-next-step-card__cta {
            background: rgba(255,255,255,0.1);
            color: var(--text-primary);
        }
        html.dark .dashboard-rendement,
        html.dark .dashboard-rendement--secondary,
        html.dark .dashboard-kpi,
        html.dark .dashboard-shell__surface--compact .dashboard-kpi {
            background: rgba(255,255,255,0.055) !important;
            border-color: rgba(255,255,255,0.10) !important;
        }
        html.dark .dashboard-portfolio-map {
            background: rgba(255,255,255,0.055) !important;
            border-color: rgba(255,255,255,0.10) !important;
        }
        html.dark .dashboard-portfolio-map__header {
            border-bottom-color: rgba(255,255,255,0.12) !important;
        }
        html.dark .dashboard-portfolio-map__legend-chip {
            background: rgba(255,255,255,0.07) !important;
            color: var(--text-primary) !important;
            border: 1px solid rgba(255,255,255,0.10);
        }
        html.dark .dashboard-portfolio-map__canvas,
        html.dark #dashboardPortfolioMap .leaflet-container {
            background: #0f172a !important;
            border-color: rgba(255,255,255,0.11) !important;
        }
        html.dark #dashboardPortfolioMap .leaflet-tile {
            filter: invert(1) hue-rotate(180deg) saturate(0.76) brightness(0.88) contrast(0.94);
        }
        html.dark #dashboardPortfolioMap .leaflet-control-zoom a {
            background: rgba(15,23,42,0.92) !important;
            color: var(--text-primary) !important;
            border-color: rgba(255,255,255,0.14) !important;
        }
        html.dark #dashboardPortfolioMap .leaflet-control-attribution {
            background: rgba(15,23,42,0.78) !important;
            color: var(--text-muted) !important;
        }
        html.dark #dashboardPortfolioMap .leaflet-control-attribution a {
            color: #bfdbfe !important;
        }
        html.dark .partner-campaign-card {
            background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(74,123,200,0.09));
            border-color: rgba(245,158,11,0.24);
        }
        html.dark .partner-campaign-card__icon {
            background: rgba(255,255,255,0.07);
            border-color: rgba(245,158,11,0.28);
            box-shadow: none;
        }
        html.dark .cost-category-chart__hero {
            background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
            border-color: rgba(255,255,255,0.11);
        }
        html.dark .cost-category-donut {
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
        }
        html.dark .cost-category-donut__inner {
            background: var(--bg-nav);
            box-shadow: 0 10px 24px rgba(0,0,0,0.24);
        }
        html.dark .cost-category-row__dot {
            box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
        }
        html.dark .cost-category-row__track {
            background: rgba(255,255,255,0.08);
        }
        html.dark #leaseRegSection,
        html.dark #propertyModal [style*="background:var(--gray-50"],
        html.dark #propertyModal [style*="background: var(--gray-50"],
        html.dark #documenten [style*="background:var(--gray-50"],
        html.dark #documenten [style*="background: var(--gray-50"] {
            background: var(--bg-subtle) !important;
            border-color: var(--border-color) !important;
            color: var(--text-secondary) !important;
        }
        @media (max-width: 640px) {
            .hw-meter-form-grid { grid-template-columns: 1fr; }
            .hw-meter-form-grid .wide { grid-column: auto; }
            .hw-legal-grid { grid-template-columns: 1fr; }
            .hw-action-log-row { grid-template-columns: 1fr; gap: 4px; }
        }
