/* =============================================
   STYLE.CSS — Erfbelastingplan
   Centraal stylesheet voor alle pagina's
   ============================================= */

/* Fallbacks als Google Fonts geblokkeerd is (adblocker, netwerk, privacy) */
:root {
    --font-body: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-brand: 'Cinzel', Georgia, 'Times New Roman', Times, serif;
    --top-bar-h: 75px;
    --nav-menu-h: 45px;
    --site-header-h: calc(var(--top-bar-h) + var(--nav-menu-h));
}

html {
    overflow-x: hidden;
    /* Altijd verticale scrollbar — voorkomt horizontale sprong van vaste header bij langere pagina's */
    overflow-y: scroll;
    scrollbar-gutter: stable;
    overflow-anchor: none;
}

body {
    font-family: var(--font-body);
    font-variant-numeric: tabular-nums;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-anchor: none;
}
body.has-site-header {
    padding-top: var(--site-header-h);
}

/* VASTE HEADER — blauwe balk + menubalk blijven zichtbaar bij scrollen */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    overflow: visible;
}

/* BLAUWE BALK */
.top-bar {
    position: relative;
    width: 100%;
    height: var(--top-bar-h);
    max-height: var(--top-bar-h);
    box-sizing: border-box;
    background-color: #283673;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 4px solid #d4af37;
}
.top-bar .brand {
    font-family: var(--font-brand);
    font-size: 28px;
    letter-spacing: 3px;
    font-weight: normal;
    text-transform: uppercase;
    line-height: 71px;
}
.top-bar .brand:first-letter {
    font-size: 34px;
    font-weight: normal;
}
.top-bar .logout-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid white;
    padding: 6px 18px;
    border-radius: 2px;
}
.top-bar .logout-link:hover {
    background: white;
    color: #283673;
}

/* NAVIGATIEMENU */
.nav-menu {
    position: relative;
    width: 100%;
    height: var(--nav-menu-h);
    max-height: var(--nav-menu-h);
    box-sizing: border-box;
    background: #fff;
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: visible;
}
.nav-menu a, .nav-module-form button, .dropdown-trigger {
    text-decoration: none;
    color: #283673;
    font-weight: bold;
    font-size: 15px;
    padding: 0 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    box-sizing: border-box;
    cursor: pointer;
    line-height: 1;
}
button.dropdown-trigger {
    border: none;
    background: transparent;
    font: inherit;
}
.nav-menu a.active, .nav-module-form button.active, .dropdown-trigger.active {
    background: #283673;
    color: #fff;
}
.active-dossier-label {
    font-size: 14px;
    color: #555;
    background: #f0f2f7;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid #d8dde8;
    border-left: 3px solid #283673;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    box-sizing: border-box;
    margin-right: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.nav-menu-icon {
    display: inline-flex;
    line-height: 1;
}
.active-dossier-label:hover {
    background: #e4e9f2;
    color: #283673;
}
.active-dossier-label.active {
    background: #283673;
    color: #fff;
    border: 1px solid #283673;
    border-left: 3px solid #d4af37;
    box-shadow: 0 0 0 2px #fff;
    height: 30px;
    padding: 0 11px;
}
.menu-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
.dropdown-content {
    display: none;
    position: fixed;
    top: var(--site-header-h);
    left: 20px;
    background-color: #ffffff;
    min-width: 260px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
    border-top: 3px solid #283673;
    border-radius: 0 0 4px 4px;
    z-index: 2000;
    padding: 10px 0;
}
.menu-dropdown:hover .dropdown-content,
.menu-dropdown.open .dropdown-content { display: block; }
.dropdown-content a {
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: auto;
    width: 100%;
    border-radius: 0;
    font-weight: normal;
    box-sizing: border-box;
}
.dropdown-content a:hover {
    background-color: #f4f6f9;
    color: #283673;
    font-weight: bold;
}
.dropdown-nav-form {
    margin: 0;
    padding: 0;
}
.dropdown-nav-btn {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #333;
    padding: 10px 20px;
    font: inherit;
    display: flex;
    align-items: center;
}
.dropdown-nav-btn:hover,
.dropdown-nav-btn.active {
    background-color: #f4f6f9;
    color: #283673;
    font-weight: bold;
}
.dropdown-nav-btn.active {
    background: #eef2fa;
}
.active-dossier-form {
    display: inline;
    margin: 0;
    padding: 0;
}
.active-dossier-form .active-dossier-label {
    cursor: pointer;
    font: inherit;
}
.inline-open-form {
    display: inline;
    margin: 0;
}
.inline-open-form .btn-view {
    cursor: pointer;
}
.search-container-privacy {
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}
.search-container-privacy input {
    width: 100%;
    padding: 8px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 0;
    text-align: left;
}
.search-container-privacy input:focus {
    border-color: #283673;
    outline: none;
}
.nav-module-form {
    display: inline;
    margin: 0;
    padding: 0;
}
.nav-module-form button {
    border: none;
    cursor: pointer;
    font: inherit;
    background: transparent;
}
.nav-module-form-tree {
    margin-left: auto;
}
.nav-module-form-programma {
    margin-left: auto;
    flex-shrink: 0;
}
.nav-menu a.tree-nav-btn,
.nav-module-form button.tree-nav-btn {
    background: #d4af37;
    color: black;
    border: 1px solid #bfa032;
    font-weight: bold;
}
.nav-menu a.tree-nav-btn:hover,
.nav-module-form button.tree-nav-btn:hover { background: #bfa032; }
.nav-module-form button.tree-nav-btn.active {
    background: #bfa032;
    color: black;
}
.logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}
.logout-form .logout-link {
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    padding: 0;
}

/* ZOEKFOUT BALK */
.search-error-bar {
    background: #f2dede;
    color: #a94442;
    padding: 10px 30px;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #ebccd1;
}

/* FORMULIERBOX (zelfde breedte op alle pagina's) */
.form-box {
    max-width: 1180px;
    background: white;
    padding: 40px 30px;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: left;
    margin: 30px auto;
    border-top: 4px solid #283673;
    box-sizing: border-box;
}

/* LOGO BRANDING */
.logo-branding {
    background-color: #283673;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 1px;
    text-align: center;
}
.logo-branding h1 {
    font-family: inherit;
    color: #ffffff;
    font-size: 22px;
    letter-spacing: 0.4px;
    margin: 0;
    text-transform: none;
    font-weight: 500;
}
.logo-divider {
    height: 1px;
    background-color: #d4af37;
    margin: 5px auto;
    width: 80%;
}
.logo-branding p {
    color: #ffffff;
    font-size: 9px;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
    opacity: 0.8;
}

/* FORMULIERELEMENTEN */
input, select, textarea {
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}
button {
    background: #283673;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}
button:hover { background: #1c2652; }

/* Gedeelde actieknoppen (modules + dossierbeheer) */
.btn-primary-action {
    background: #283673;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    width: auto;
    display: inline-block;
    font-family: inherit;
    box-sizing: border-box;
}
.btn-primary-action:hover { background: #1c2652; }
.btn-primary-action.btn-block {
    display: block;
    width: 100%;
}
.btn-secondary-action {
    background: transparent;
    color: #283673;
    border: 1px solid #283673;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    width: auto;
    display: inline-block;
    font-family: inherit;
    box-sizing: border-box;
}
.btn-secondary-action:hover { background: #f0f2f7; }
.btn-accent-action {
    background: #d4af37;
    color: #000;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    width: auto;
    display: inline-block;
    font-family: inherit;
    box-sizing: border-box;
    line-height: 1.3;
    white-space: nowrap;
}
.btn-accent-action:hover { background: #bfa032; }
.save-button.btn-primary-action { min-width: 240px; }

/* MELDINGEN */
.error {
    color: red;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}
.success {
    color: green;
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

/* KOPPEN */
h2 {
    color: #283673;
    border-bottom: 2px solid #283673;
    padding-bottom: 5px;
    margin-top: 30px;
}

/* LAYOUT */
.row { display: flex; gap: 15px; }
.col { flex: 1; }
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.checkbox-group input {
    width: auto;
    margin-bottom: 0;
}

/* KIND- EN PARTNERBLOKKEN */
.child-block {
    background: #f9f9f9;
    padding: 15px;
    border-left: 3px solid #d4af37;
    margin-bottom: 20px;
    position: relative;
}
.partner-block {
    background: #f0f2f7;
    padding: 12px;
    border-left: 3px solid #283673;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* DOSSIERTABEL */
.dossier-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: left;
}
.dossier-table th, .dossier-table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}
.dossier-table th {
    background: #283673;
    color: white;
}
.dossier-table tr:hover { background: #f1f1f1; }
.btn-view {
    text-decoration: none;
}
.inline-open-form .btn-view.btn-accent-action {
    width: auto;
}

/* INLOGSCHERM */
.login-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
.login-box {
    background: white;
    padding: 40px 30px;
    border-radius: 2px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    width: 320px;
    border-top: 4px solid #283673;
}

/* WELKOM SPLASH */
.welcome-splash-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    text-align: center;
    box-sizing: border-box;
    padding: 40px;
}
.welcome-logo {
    max-width: 800px;
    width: 100%;
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0px 15px 30px rgba(0,0,0,0.08));
    margin-bottom: 20px;
}

/* INFORMATIEPAGINA'S */
.info-page,
.programma-page {
    max-width: 820px;
    margin: 24px auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}
.programma-page {
    max-width: 1140px;
}
.info-page .opt-page-header,
.programma-page .opt-page-header {
    margin-bottom: 16px;
}
.info-page .opt-page-title,
.programma-page .opt-page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #283673;
    line-height: 1.3;
}
.programma-kolommen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
}
.programma-page .programma-panel {
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: 4px;
    padding: 18px 22px 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 0;
}
@media (max-width: 860px) {
    .programma-kolommen {
        grid-template-columns: 1fr;
    }
}
.programma-page .programma-panel h2 {
    margin: 0 0 16px;
    padding-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #283673;
    border-bottom: 1px solid #e3e6ec;
}
.programma-stappen {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.programma-stap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background: #f8f9fc;
    border: 1px solid #e8ecf4;
    border-radius: 4px;
}
.programma-stap-nummer {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #283673;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.programma-stap-tekst {
    padding-top: 4px;
    font-size: 15px;
    line-height: 1.45;
    color: #1a1a2e;
}
.programma-kosten p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.55;
    color: #1a1a2e;
}
.programma-kosten p:last-child {
    margin-bottom: 0;
}
.programma-kosten strong {
    color: #283673;
}
.programma-tarieven {
    list-style: none;
    margin: -4px 0 14px;
    padding: 0;
}
.programma-tarieven li {
    position: relative;
    margin: 0;
    padding: 6px 0 6px 18px;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a2e;
    border-bottom: 1px solid #eef1f6;
}
.programma-tarieven li:last-child {
    border-bottom: none;
}
.programma-tarieven li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4af37;
}

/* AFDRUKKEN */
@media print {
    body { background: white; }
    .site-header, .top-bar, .nav-menu, .print-btn-container, .scenario-tabs { display: none !important; }
    body.has-site-header { padding-top: 0 !important; }
    .tree-page .opt-page-header,
    .tree-page .tree-page-panel,
    .tree-page-body,
    .tree-wrapper { box-shadow: none; border: none; margin: 0; padding: 0; max-width: 100%; }
    .tree-scale-inner { transform: none !important; }
    .tree-scale-viewport { width: auto !important; height: auto !important; overflow: visible !important; }
    .tree-page { overflow: visible !important; }
}
/* VERMOGEN */
.scenario-subtitle {
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 0.4px;
    margin-top: 10px;
    font-weight: 500;
    text-transform: none;
    opacity: 1;
    font-family: inherit;
}
.vermogen-page {
    max-width: min(1920px, calc(100vw - 28px));
    margin: 8px auto 16px;
    padding: 0 10px;
    box-sizing: border-box;
}
.vermogen-page .opt-page-header {
    margin-bottom: 10px;
}
.vermogen-page .opt-page-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #283673;
    line-height: 1.3;
}
.vermogen-page .opt-page-meta {
    display: inline;
    font-size: 14px;
    font-weight: 400;
    color: #5a6485;
    margin-left: 6px;
}
.vermogen-page .vermogen-alert {
    margin: 0 0 10px;
}
.vermogen-page .opt-panel {
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: 4px;
    padding: 10px 12px 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    min-width: 0;
}
.vermogen-page .opt-panel h2 {
    margin: 0 0 8px;
    padding-bottom: 4px;
    font-size: 14px;
    border-bottom-width: 1px;
}
.vermogen-page .vermogen-table-wrap {
    margin: 0 0 10px;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}
.vermogen-page .cta-row {
    margin-top: 0;
    padding-top: 4px;
    border-top: 1px dashed #e3e6ec;
}
.vermogen-table-wrap {
    border: 1px solid #e3e6ec;
    border-radius: 4px;
    overflow-x: auto;
    overflow-y: visible;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 24px;
}
.vermogen-page .vermogen-table,
.vermogen-table {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    table-layout: fixed;
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
}
.vermogen-page .vermogen-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #283673;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    padding: 8px 10px;
    border-bottom: 1px solid #1d2754;
    font-family: inherit;
    font-weight: 600;
    box-sizing: border-box;
    vertical-align: middle;
}
.vermogen-page .vermogen-table tbody td {
    padding: 5px 8px;
    font-size: 13px;
}
.vermogen-page .vermogen-post-label {
    font-size: 13px;
    font-weight: 500;
}
.vermogen-page .money-input {
    padding: 6px 8px !important;
    font-size: 13px;
}
.vermogen-page .totaal-row td {
    padding: 8px 10px !important;
    font-size: 13px;
    font-weight: 500;
}
.vermogen-page .totaal-label {
    font-weight: 600;
}
.vermogen-page .vermogen-table th.col-w-label { width: 22%; }
.vermogen-page .vermogen-table th.col-w-geld { width: 13%; }
.vermogen-page .vermogen-table th.col-w-opmerking { width: 39%; }
.vermogen-page .vermogen-opmerking-cell {
    vertical-align: top;
}
.vermogen-page .vermogen-opmerking-input {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 6px 8px;
    border: 1px solid #d8deea;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    font-size: 13px;
    font-family: inherit;
    font-weight: normal;
    line-height: 1.4;
    resize: vertical;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.vermogen-page .vermogen-opmerking-input:focus {
    outline: none;
    border-color: #283673;
    box-shadow: 0 0 0 3px rgba(40, 54, 115, 0.12);
}

/* GEZINSSAMENSTELLING — compact werkscherm */
.gezin-page {
    max-width: min(1360px, calc(100vw - 28px));
    margin: 8px auto 16px;
    padding: 0 10px;
    box-sizing: border-box;
}
.gezin-page .opt-page-header {
    margin-bottom: 10px;
}
.gezin-page .opt-page-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #283673;
    line-height: 1.3;
}
.gezin-page .opt-page-meta {
    display: inline;
    font-size: 14px;
    font-weight: 400;
    color: #5a6485;
    margin-left: 6px;
}
.gezin-page .gezin-alert {
    margin: 0 0 10px;
}
.gezin-page .gezin-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gezin-page .opt-panel {
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: 4px;
    padding: 10px 12px 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    min-width: 0;
}
.gezin-page .opt-panel h2 {
    margin: 0 0 10px;
    padding-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #283673;
    border-bottom: 1px solid #e3e6ec;
}
.gezin-page .gezin-panel-partners {
    padding: 8px 12px;
}
.gezin-page .gezin-familienaam-row {
    max-width: calc((100% - 10px) / 2);
    margin-bottom: 10px;
}
.gezin-page .gezin-familienaam-row input {
    margin-bottom: 0;
}
.gezin-page .gezin-main-grid,
.gezin-page .gezin-kind-grid {
    display: grid;
    gap: 10px;
}
.gezin-page .gezin-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.gezin-page .gezin-kind-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.gezin-page .gezin-partner2-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e8ebf0;
}
.gezin-page .gezin-partner2-block.is-hidden {
    display: none;
}
.gezin-page .gezin-schoonkind-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e8ebf0;
}
.gezin-page .gezin-schoonkind-block.is-hidden {
    display: none;
}
.gezin-page .gezin-relatie-heading {
    visibility: hidden;
    margin: 0 0 8px;
    min-height: 13px;
    line-height: 1.3;
}
.gezin-page .gezin-relatie-panel .samenwonend-fiscaal-block {
    margin-top: 0;
    margin-bottom: 0;
}
.gezin-page .gezin-relatie-panel #gemeenschap_div.is-hidden {
    display: none;
}
.gezin-page .gezin-grid-panel .row {
    margin-bottom: 0;
}
.gezin-page .gezin-grid-panel {
    background: #f8f9fc;
    border: 1px solid #e8ebf0;
    border-radius: 4px;
    padding: 8px 10px;
    min-width: 0;
}
.gezin-page .gezin-grid-panel.is-hidden {
    display: none;
}
.gezin-page .gezin-kinderen-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.gezin-page .gezin-section-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #283673;
    line-height: 1.3;
}
.gezin-page label.gezin-section-title {
    display: block;
    margin: 0 0 4px;
}
.gezin-page .gezin-kind-header-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px;
    align-items: center;
}
.gezin-page .gezin-kind-header-title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}
.gezin-page .gezin-kk-header-title {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    justify-self: start;
}
.gezin-page .gezin-kind-remove-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    flex-shrink: 0;
}
.gezin-page .gezin-kk-list .kk-row {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e3e6ec;
}
.gezin-page .gezin-kk-list .kk-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.gezin-page label {
    display: block;
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 500;
    color: #5a6485;
}
.gezin-page input:not([type="checkbox"]):not([type="radio"]),
.gezin-page select {
    margin-bottom: 10px;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #d8deea;
    border-radius: 4px;
    height: 36px;
    min-height: 36px;
    box-sizing: border-box;
    line-height: 1.25;
}
.gezin-page textarea {
    margin-bottom: 10px;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #d8deea;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 1.25;
}
.gezin-page input:focus,
.gezin-page select:focus,
.gezin-page textarea:focus {
    outline: none;
    border-color: #283673;
    box-shadow: 0 0 0 3px rgba(40, 54, 115, 0.12);
}
.gezin-page .row {
    gap: 10px;
}
.gezin-page .checkbox-group {
    margin-bottom: 8px;
}
.gezin-page .checkbox-group label {
    margin: 0;
    font-size: 13px;
    color: #333;
    font-weight: 400;
}
.gezin-page .child-block {
    background: #fff;
    padding: 10px 12px;
    border: 1px solid #e3e6ec;
    border-radius: 4px;
    margin-bottom: 0;
}
.gezin-page .child-block h3,
.gezin-page .gezin-subheading {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #283673;
}
.gezin-page .child-block-header h3 {
    margin: 0;
}
.gezin-page .child-block h4 {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #283673;
}
.gezin-page .gezin-add-kind-btn {
    margin-top: 4px;
    margin-bottom: 0;
    padding: 7px 12px;
    font-size: 13px;
    color: #fff;
    font-weight: 600;
}
.gezin-page .gezin-add-kind-btn:hover {
    color: #fff;
}
.gezin-page .gezin-cta-row {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e3e6ec;
}
.gezin-page .gezin-cta-row .save-button {
    width: auto;
    min-width: 220px;
    padding: 9px 18px;
    font-size: 14px;
}
.gezin-page .btn-danger-sm,
.gezin-page .btn-gray,
.gezin-page .btn-danger-xs {
    width: auto;
    font-size: 13px;
    padding: 7px 12px;
    margin-top: 8px;
}
.gezin-page .samenwonend-fiscaal-block {
    margin-bottom: 10px;
}
.gezin-page .samenwonend-fiscaal-btn {
    font-size: 13px;
    padding: 8px 14px;
}
@media (max-width: 900px) {
    .gezin-page .gezin-main-grid,
    .gezin-page .gezin-kind-grid,
    .gezin-page .gezin-kind-header-grid {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
    .gezin-page .gezin-kind-header-title {
        grid-column: 1;
        grid-row: 1;
    }
    .gezin-page .gezin-kind-remove-btn {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    .gezin-page .gezin-kk-header-title {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }
    .gezin-page .gezin-familienaam-row {
        max-width: 100%;
    }
    .gezin-page .gezin-relatie-heading {
        display: none;
        margin: 0;
        min-height: 0;
    }
}

.vermogen-table tbody td {
    vertical-align: middle;
    padding: 10px 12px;
    border-bottom: 1px solid #eceff4;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
}
.vermogen-table tbody tr:nth-child(even) td { background: #fbfcfe; }
.vermogen-table tbody tr:hover td { background: #f5f8fc; }
.vermogen-post-label {
    font-weight: 600;
    color: #283673;
    line-height: 1.4;
    font-family: inherit;
    font-size: 14px;
}
.money-input {
    width: 100%;
    margin-bottom: 0 !important;
    padding: 10px 12px !important;
    text-align: right;
    border: 1px solid #d8deea;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    font-weight: normal;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.money-input:focus {
    outline: none;
    border-color: #283673;
    box-shadow: 0 0 0 3px rgba(40,54,115,0.12);
    background: #fff;
}
.money-input:disabled {
    background: #f2f4f7;
    color: #8a8f99;
    cursor: not-allowed;
}
.totaal-row td {
    padding: 14px 12px !important;
    font-size: 16px;
    font-weight: bold;
    background: #f8f9fa !important;
    border-top: 3px solid #283673;
    font-family: inherit;
}
.totaal-label { color: #283673; }
.cta-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}
/* BEREKENING */
.scenario-tabs {
    display: flex;
    gap: 10px;
    margin: 0 0 20px 0;
    flex-wrap: wrap;
}
.scenario-tabs a,
.scenario-tab-form button,
.strategy-btn {
    text-decoration: none;
    padding: 10px 20px;
    background: #e4e6eb !important;
    color: #333 !important;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    border-radius: 4px;
    border: 1px solid #ccc !important;
    cursor: pointer;
    width: auto;
    margin: 0;
    box-shadow: none !important;
    box-sizing: border-box;
}
.scenario-tabs a.active-tab,
.scenario-tab-form button.active-tab,
.strategy-btn.active-strategy {
    background: #283673 !important;
    color: #fff !important;
    border-color: #283673 !important;
}
.scenario-tab-form {
    display: inline;
    margin: 0;
    padding: 0;
}
.scenario-tab-form button:hover,
.scenario-tab-form button:focus,
.strategy-btn:hover,
.strategy-btn:focus,
.strategy-btn:active {
    background: #e4e6eb !important;
    color: #333 !important;
    border-color: #ccc !important;
    outline: none;
}
.scenario-tab-form button.active-tab:hover,
.scenario-tab-form button.active-tab:focus,
.strategy-btn.active-strategy:hover,
.strategy-btn.active-strategy:focus,
.strategy-btn.active-strategy:active {
    background: #283673 !important;
    color: #fff !important;
    border-color: #283673 !important;
}
.tax-box {
    background: #fff;
    padding: 25px;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 30px;
    border-top: 3px solid #d4af37;
}
.legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px;
}
.calculation-breakdown {
    font-size: 11px;
    color: #555;
    margin-top: 15px;
    border-top: 1px dashed #ccc;
    padding-top: 15px;
}
.calculation-breakdown h4 {
    font-size: 12px;
    color: #283673;
    margin: 0 0 5px 0;
}
.breakdown-step {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    gap: 10px;
}
.chart-wrapper {
    width: 350px;
    margin: 20px auto;
}
.chart-legend {
    text-align: left;
    max-width: 310px;
    margin: 15px auto 0;
    font-size: 13px;
    line-height: 1.7;
    color: #333;
}
.chart-note {
    text-align: left;
    max-width: 310px;
    margin: 10px auto 0;
    font-size: 12px;
    line-height: 1.55;
    color: #555;
    background: #fafafa;
    border: 1px solid #e7e7e7;
    padding: 10px 12px;
    border-radius: 4px;
}
/* Bedragen: zelfde tinten als de wettelijke-verdeling-grafiek */
.amount-gemeenschap-overledene { color: #B9C9F2; font-weight: bold; }
.amount-prive-overledene       { color: #6F9FE8; font-weight: bold; }
.amount-prive-overledene-negatief { color: #C9302C; font-weight: bold; }
.amount-gold                   { color: #C8A646; font-weight: bold; }
.amount-gold-light             { color: #E0C878; font-weight: bold; }
.amount-partner                { color: #A28B35; font-weight: bold; }
.amount-kind                   { color: #5C9CE6; font-weight: bold; }
.amount-kleinkind              { color: #5084cc; font-weight: bold; }
.amount-totaal-nalatenschap    { color: #6F9FE8; font-weight: bold; }
.amount-saldo                  { color: #C8A646; font-weight: bold; }
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4mm;
    align-items: stretch;
    padding: 24px 22px 18px 22px;
}
.breakdown-card {
    background: #fafafa;
    border: 1px solid #e1e1e1;
    padding: 12px;
    border-radius: 4px;
    box-sizing: border-box;
}
/* FISCALE OPTIMALISATIE + WETTELIJKE VERDELING — compact werkscherm */
.optimalisatie-page,
.wettelijke-verdeling-page {
    --opt-kleur-partner: #2d58a0;
    --opt-kleur-kind: #5084cc;
    max-width: min(1920px, calc(100vw - 28px));
    margin: 8px auto 16px;
    padding: 0 10px;
    box-sizing: border-box;
}
.optimalisatie-page .opt-page-header,
.wettelijke-verdeling-page .opt-page-header {
    margin-bottom: 10px;
}
.optimalisatie-page .opt-page-title,
.wettelijke-verdeling-page .opt-page-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #283673;
    line-height: 1.3;
}
.optimalisatie-page .opt-page-meta,
.wettelijke-verdeling-page .opt-page-meta {
    display: inline;
    font-size: 14px;
    font-weight: 400;
    color: #5a6485;
    margin-left: 6px;
}
.optimalisatie-page .opt-toolbar,
.wettelijke-verdeling-page .opt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}
.optimalisatie-page .opt-toolbar .scenario-tabs,
.optimalisatie-page .opt-toolbar .strategy-tabs,
.wettelijke-verdeling-page .opt-toolbar .scenario-tabs,
.wettelijke-verdeling-page .opt-toolbar .strategy-tabs {
    margin: 0;
}
.optimalisatie-page .opt-toolbar-spacer,
.wettelijke-verdeling-page .opt-toolbar-spacer {
    flex: 1;
}
.optimalisatie-page .scenario-tab-form button,
.optimalisatie-page .strategy-btn,
.wettelijke-verdeling-page .scenario-tab-form button,
.wettelijke-verdeling-page .strategy-btn {
    padding: 7px 14px;
    font-size: 13px;
}
.optimalisatie-page .opt-main-grid,
.wettelijke-verdeling-page .opt-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 400px;
    grid-template-rows: auto auto;
    gap: 8px;
    align-items: stretch;
}
.optimalisatie-page .opt-panel-vermogen,
.wettelijke-verdeling-page .opt-panel-vermogen {
    grid-column: 1;
    grid-row: 1;
}
.optimalisatie-page .opt-panel-verdeling,
.wettelijke-verdeling-page .opt-panel-verdeling {
    grid-column: 2;
    grid-row: 1;
}
.optimalisatie-page .opt-panel-chart,
.wettelijke-verdeling-page .opt-panel-chart {
    grid-column: 3;
    grid-row: 1 / -1;
    align-self: start;
}
.optimalisatie-page .opt-tax-section,
.wettelijke-verdeling-page .opt-tax-section {
    grid-column: 1 / 3;
    grid-row: 2;
}
.optimalisatie-page .opt-panel,
.optimalisatie-page .opt-tax-section,
.wettelijke-verdeling-page .opt-panel,
.wettelijke-verdeling-page .opt-tax-section {
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: 4px;
    padding: 10px 12px 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    min-width: 0;
}
.optimalisatie-page .opt-panel h2,
.wettelijke-verdeling-page .opt-panel h2 {
    margin: 0 0 6px;
    padding-bottom: 4px;
    font-size: 14px;
    border-bottom-width: 1px;
}
.optimalisatie-page .opt-panel-chart,
.wettelijke-verdeling-page .opt-panel-chart {
    text-align: center;
    padding-bottom: 8px;
}
.optimalisatie-page .opt-panel-chart .chart-wrap,
.wettelijke-verdeling-page .opt-panel-chart .chart-wrap {
    margin-top: 4px;
}
.optimalisatie-page .opt-panel-chart .chart-legend-wrap,
.wettelijke-verdeling-page .opt-panel-chart .chart-legend-wrap {
    max-width: 376px;
    margin: 6px auto 0;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
}
.optimalisatie-page .opt-compact-table,
.wettelijke-verdeling-page .opt-compact-table {
    margin-top: 0;
    font-size: 13px;
}
.optimalisatie-page .opt-compact-table th,
.optimalisatie-page .opt-compact-table td,
.wettelijke-verdeling-page .opt-compact-table th,
.wettelijke-verdeling-page .opt-compact-table td {
    padding: 5px 8px;
}
.optimalisatie-page .opt-compact-table th,
.wettelijke-verdeling-page .opt-compact-table th {
    font-size: 12px;
}
.optimalisatie-page .rente-veld {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0;
}
.optimalisatie-page .rente-input {
    width: 1ch;
    min-width: 1ch;
    max-width: 1ch;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    color: var(--opt-kleur-kind);
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.optimalisatie-page .rente-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
    background: transparent;
}
.optimalisatie-page .rente-input[readonly] {
    background: transparent;
    color: var(--opt-kleur-kind);
    border: none;
}
.optimalisatie-page .rente-suffix {
    font-size: 13px;
    font-weight: 500;
    color: var(--opt-kleur-kind);
}
.optimalisatie-page .erfdeel-veld {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
}
.optimalisatie-page .erfdeel-euro,
.optimalisatie-page .erfdeel-input {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--opt-kleur-partner);
    border: none;
    background: transparent;
    box-shadow: none;
}
.optimalisatie-page .erfdeel-input {
    width: 11ch;
    text-align: right;
}
.optimalisatie-page .erfdeel-input:focus {
    outline: none;
    border: none;
    border-bottom: 1px solid var(--opt-kleur-partner);
    box-shadow: none;
    background: transparent;
}
.optimalisatie-page .opt-group-row td,
.wettelijke-verdeling-page .opt-group-row td {
    background: #f0f2f7;
    color: #283673;
    font-weight: 600;
    font-size: 12px;
    padding-top: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #d8dde8;
}
.optimalisatie-page .opt-group-row + tr td,
.wettelijke-verdeling-page .opt-group-row + tr td {
    border-top: none;
}
.optimalisatie-page .tr-summation,
.wettelijke-verdeling-page .tr-summation {
    font-size: 13px;
}
.optimalisatie-page .opt-compact-table td.text-right,
.optimalisatie-page .td-tax-total-amount,
.optimalisatie-page .breakdown-step span:last-child,
.wettelijke-verdeling-page .opt-compact-table td.text-right,
.wettelijke-verdeling-page .td-tax-total-amount,
.wettelijke-verdeling-page .breakdown-step span:last-child {
    font-weight: 500;
}
.optimalisatie-page [class*="amount-"],
.wettelijke-verdeling-page [class*="amount-"] {
    font-weight: 500;
}
.optimalisatie-page .breakdown-container .breakdown-card h4[class*="amount-"],
.wettelijke-verdeling-page .breakdown-container .breakdown-card h4[class*="amount-"] {
    font-weight: normal;
}
.optimalisatie-page .amount-partner,
.wettelijke-verdeling-page .amount-partner {
    color: var(--opt-kleur-partner);
}
.optimalisatie-page .amount-gemeenschap-overledene,
.wettelijke-verdeling-page .amount-gemeenschap-overledene {
    color: var(--opt-kleur-kind);
}
.optimalisatie-page .amount-prive-overledene,
.optimalisatie-page .amount-totaal-nalatenschap,
.wettelijke-verdeling-page .amount-prive-overledene,
.wettelijke-verdeling-page .amount-totaal-nalatenschap {
    color: var(--opt-kleur-kind);
}
.optimalisatie-page .amount-kind,
.optimalisatie-page .amount-kleinkind,
.wettelijke-verdeling-page .amount-kind,
.wettelijke-verdeling-page .amount-kleinkind {
    color: var(--opt-kleur-kind);
}
.optimalisatie-page .breakdown-step span:first-child,
.wettelijke-verdeling-page .breakdown-step span:first-child {
    color: #555;
}
.optimalisatie-page .breakdown-step.breakdown-step-deduct,
.optimalisatie-page .breakdown-step.breakdown-step-deduct span,
.optimalisatie-page .breakdown-step.breakdown-step-exempt,
.optimalisatie-page .breakdown-step.breakdown-step-exempt span,
.wettelijke-verdeling-page .breakdown-step.breakdown-step-deduct,
.wettelijke-verdeling-page .breakdown-step.breakdown-step-deduct span,
.wettelijke-verdeling-page .breakdown-step.breakdown-step-exempt,
.wettelijke-verdeling-page .breakdown-step.breakdown-step-exempt span {
    color: green;
}
.optimalisatie-page .breakdown-step.breakdown-step-exempt,
.wettelijke-verdeling-page .breakdown-step.breakdown-step-exempt {
    font-style: italic;
}
.optimalisatie-page .opt-vrijstelling-regel,
.optimalisatie-page .opt-vrijstelling-regel span,
.wettelijke-verdeling-page .opt-vrijstelling-regel,
.wettelijke-verdeling-page .opt-vrijstelling-regel span {
    color: green;
}
.optimalisatie-page .breakdown-step-due span.amount-danger,
.wettelijke-verdeling-page .breakdown-step-due span.amount-danger {
    color: #c9302c;
    font-weight: 500;
}
.optimalisatie-page .amount-danger,
.wettelijke-verdeling-page .amount-danger {
    color: #c9302c;
    font-weight: 500;
}
.optimalisatie-page .text-green,
.wettelijke-verdeling-page .text-green {
    color: green;
    font-weight: 500;
}
.optimalisatie-page .opt-tax-section,
.wettelijke-verdeling-page .opt-tax-section {
    margin-top: 0;
}
.optimalisatie-page .opt-tax-section > h2,
.wettelijke-verdeling-page .opt-tax-section > h2 {
    margin: 0 0 6px;
    padding-bottom: 4px;
    font-size: 14px;
    border-bottom-width: 1px;
}
.optimalisatie-page .table-tax th.th-tax-due,
.wettelijke-verdeling-page .table-tax th.th-tax-due {
    width: 200px;
    min-width: 200px;
    white-space: normal;
    line-height: 1.25;
    padding: 5px 8px;
    font-size: 12px;
    vertical-align: middle;
}
.optimalisatie-page .table-tax td.amount-danger,
.optimalisatie-page .table-tax td.td-tax-total-amount,
.wettelijke-verdeling-page .table-tax td.amount-danger,
.wettelijke-verdeling-page .table-tax td.td-tax-total-amount {
    width: 200px;
    min-width: 200px;
    white-space: nowrap;
    padding-left: 8px;
    padding-right: 8px;
}
.optimalisatie-page .table-tax,
.wettelijke-verdeling-page .table-tax {
    margin-top: 0;
}
.grafiek-page .grafiek-panel {
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: 4px;
    padding: 14px 16px 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 14px;
}
.grafiek-page .grafiek-panel h2 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #283673;
}
.grafiek-table-wrap {
    overflow-x: auto;
}
.grafiek-table th,
.grafiek-table td {
    white-space: nowrap;
}
.grafiek-page .grafiek-row-1e td {
    background: #eef3fb;
    font-weight: 700;
    color: #283673;
}
.grafiek-page .grafiek-row-balk td {
    background: #283673;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.grafiek-page .grafiek-table .rente-kies {
    width: auto;
    margin: 0;
    padding: 1px 4px;
    border: none;
    border-radius: 2px;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: 600;
    line-height: inherit;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
.grafiek-page .grafiek-table .rente-kies.is-gekozen {
    background: #283673;
    color: #fff;
}
.grafiek-page .grafiek-table td.is-gekozen-kolom {
    background: #f4f7fc;
}
.grafiek-page .grafiek-row-1e td.is-gekozen-kolom {
    background: #d9e4f5;
}
.grafiek-chart-wrap {
    width: 100%;
    max-width: 860px;
    margin: 0 auto 16px;
}
.grafiek-svg {
    width: 100%;
    height: auto;
}
.grafiek-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 13px;
    color: #283673;
}
.grafiek-legend .legend-box {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    vertical-align: middle;
}
.optimalisatie-page .calculation-breakdown,
.wettelijke-verdeling-page .calculation-breakdown {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ccc;
}
.optimalisatie-page .calculation-breakdown h3,
.wettelijke-verdeling-page .calculation-breakdown h3 {
    margin: 0 0 8px;
    font-size: 13px;
}
.optimalisatie-page .breakdown-container,
.wettelijke-verdeling-page .breakdown-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 0;
}
.optimalisatie-page .breakdown-container .breakdown-card,
.wettelijke-verdeling-page .breakdown-container .breakdown-card {
    min-width: 0;
    padding: 8px 10px;
    font-size: 11px;
}
.optimalisatie-page .breakdown-container .breakdown-card h4,
.wettelijke-verdeling-page .breakdown-container .breakdown-card h4 {
    font-size: 12px;
    margin: 0 0 6px;
}
.optimalisatie-page .breakdown-step,
.wettelijke-verdeling-page .breakdown-step {
    padding: 2px 0;
}
.optimalisatie-page .opt-panel-chart .legend-box,
.wettelijke-verdeling-page .opt-panel-chart .legend-box {
    width: 12px;
    height: 12px;
    margin-right: 6px;
}
.optimalisatie-page .opt-panel-chart .chart-note,
.wettelijke-verdeling-page .opt-panel-chart .chart-note {
    max-width: 376px;
    margin: 8px auto 0;
    font-size: 11px;
    line-height: 1.45;
}
@media (max-width: 1200px) {
    .optimalisatie-page .opt-main-grid,
    .wettelijke-verdeling-page .opt-main-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .optimalisatie-page .opt-panel-vermogen,
    .optimalisatie-page .opt-panel-verdeling,
    .optimalisatie-page .opt-panel-chart,
    .optimalisatie-page .opt-tax-section,
    .wettelijke-verdeling-page .opt-panel-vermogen,
    .wettelijke-verdeling-page .opt-panel-verdeling,
    .wettelijke-verdeling-page .opt-panel-chart,
    .wettelijke-verdeling-page .opt-tax-section {
        grid-column: auto;
        grid-row: auto;
    }
    .optimalisatie-page .opt-panel-chart,
    .wettelijke-verdeling-page .opt-panel-chart {
        grid-column: 1 / -1;
    }
    .optimalisatie-page .opt-tax-section,
    .wettelijke-verdeling-page .opt-tax-section {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .optimalisatie-page,
    .wettelijke-verdeling-page,
    .vermogen-page,
    .gezin-page {
        max-width: 100%;
        padding: 0 8px;
    }
    .optimalisatie-page .opt-main-grid,
    .wettelijke-verdeling-page .opt-main-grid {
        grid-template-columns: 1fr;
    }
    .optimalisatie-page .opt-page-meta,
    .wettelijke-verdeling-page .opt-page-meta,
    .vermogen-page .opt-page-meta,
    .gezin-page .opt-page-meta {
        display: block;
        margin: 4px 0 0;
    }
    .optimalisatie-page .opt-toolbar,
    .wettelijke-verdeling-page .opt-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

/* OPTIMALISATIE */
.strategy-tabs {
    display: flex;
    gap: 10px;
    margin: 0 0 20px 0;
    flex-wrap: wrap;
}
.samenwonend-fiscaal-block {
    margin-bottom: 18px;
}
.samenwonend-fiscaal-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.samenwonend-fiscaal-btn {
    background: #e4e6eb !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    width: auto;
    margin: 0;
    box-shadow: none !important;
    font-size: 14px;
}
.samenwonend-fiscaal-btn.active-samenwonend-fiscaal {
    background: #283673 !important;
    color: #fff !important;
    border-color: #283673 !important;
}
.chart-wrap {
    width: 376px;
    height: 376px;
    margin: 10px auto 8px auto;
    position: relative;
}
.chart-legend-wrap {
    text-align: left;
    max-width: 376px;
    margin: 12px auto 0 auto;
    font-size: 13px;
    line-height: 1.6;
}

/* RESPONSIVE VERMOGEN */
@media (max-width: 900px) {
    .form-box { padding-left: 14px; padding-right: 14px; }
    .save-button.btn-primary-action { width: 100%; min-width: 0; }
    .cta-row { display: block; }
}

/* =============================================
   UTILITIES (gedeelde layout & tabellen)
   ============================================= */
.col-narrow { flex: 0.3; }
.col-narrow-xs { flex: 0.15; }
.col-flex-115 { flex: 1.15; }
.col-flex-12 { flex: 1.2; }
.col-flex-10 { flex: 1.0; }
.col-chart-side { flex: 0.85; text-align: center; padding-left: 20px; }
.col-chart-side-wide { flex: 1.0; text-align: center; padding-left: 32px; }
.row-section-top { margin-top: 30px; align-items: flex-start; }
.text-right { text-align: right; }
.text-center-muted { text-align: center; color: #777; }
.table-mb { margin-bottom: 20px; }
.table-tax { width: 100%; margin-top: 15px; }
.font-bold { font-weight: bold; }
.text-green { color: green; }
.amount-danger { color: #c9302c; font-weight: bold; }
.amount-summation { color: #b39335; font-weight: bold; }
.amount-navy { color: #283673; font-weight: bold; }
.tr-summation { background: #f0f2f7; font-size: 16px; font-weight: bold; }
.tr-summation td:first-child { color: #283673; }
.tr-tax-total { background: #f9f9f9; font-weight: bold; font-size: 16px; border-top: 2px solid #283673; }
.tr-tax-total td:first-child { color: #283673; }
.td-tax-total-amount { text-align: right; color: #c9302c; font-size: 18px; }
th.th-danger { background: #c9302c; }
h2.no-border { border-bottom: none; margin-bottom: 10px; }
.svg-pie-chart { width: 100%; height: auto; filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.10)); }
.svg-pie-chart-fill { width: 100%; height: 100%; filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.10)); }
.breakdown-grid-mt { margin-top: 10px; }
.breakdown-container { flex-wrap: wrap; gap: 20px; margin-top: 10px; }
.breakdown-container .breakdown-card { flex: 1; min-width: 280px; }
.breakdown-step-deduct { color: green; }
.breakdown-step-total { font-weight: bold; border-bottom: 1px dashed #ccc; padding-bottom: 4px; }
.breakdown-step-due { font-weight: bold; color: #c9302c; border-top: 1px solid #ccc; margin-top: 4px; padding-top: 4px; }
.breakdown-step-exempt { color: green; font-style: italic; margin-top: 4px; }
.totaal-row .text-right { text-align: right; }
.vermogen-table th.col-w-34 { width: 34%; }
.vermogen-table th.col-w-22 { width: 22%; }
.btn-gold {
    background: #d4af37;
    color: #000;
    margin-bottom: 20px;
    width: auto;
    border: none;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
}
.btn-gold:hover { background: #bfa032; }
.btn-gray { background: #555; padding: 8px 12px; font-size: 13px; width: auto; }
.btn-danger-sm { background: #d9534f; padding: 8px 12px; font-size: 13px; width: auto; margin-top: 15px; }
.btn-danger-xs { background: #d9534f; padding: 12px 5px; width: 100%; }
.kleinkinderen-sectie { margin-left: 20px; background: #fff; padding: 15px; border: 1px solid #ddd; border-radius: 4px; margin-top: 15px; }
.kk-row { margin-bottom: 10px; align-items: flex-end; border-bottom: 1px dashed #ccc; padding-bottom: 10px; }
.is-hidden { display: none !important; }
.empty-state { text-align: center; font-style: italic; color: #777; margin-top: 30px; }
.dossier-table-row { height: 45px; max-height: 45px; }
.dossier-table td.cell-middle { vertical-align: middle; padding: 0 12px; }
.dossier-table td.cell-meta { font-size: 13px; color: #666; }
.dossier-table td.cell-action { text-align: center; white-space: nowrap; }
.dossier-table th.th-center { text-align: center; }
.dossier-table th.th-action,
.dossier-table td.cell-action { min-width: 180px; width: 1%; }
.cell-capitalize { text-transform: capitalize; }
.kind-afstamming-col { margin-bottom: 15px; }
.total-positive { color: #2e7d32; }
.total-negative { color: #c9302c; }
.money-input.is-negative { color: #c9302c; font-weight: bold; }
.login-box input { text-align: center; }
/* STAMBOOM — paginaschil in lijn met overige werkschermen; boom zelf ongewijzigd */
.tree-page {
    --tree-partner-gap: 10px;
    --tree-partner-connect: 20px;
    /* Zelfde ruimte als tussen kind + schoonkind (gap + streep + gap), zonder streep */
    --tree-sibling-gap: calc(var(--tree-partner-gap) * 2 + var(--tree-partner-connect));
    max-width: min(1920px, calc(100vw - 28px));
    margin: 8px auto 16px;
    padding: 0 10px 48px;
    box-sizing: border-box;
    overflow-x: auto;
    background: transparent;
}
html:has(.tree-page),
body:has(.tree-page) {
    background: #f4f6f9;
}
.tree-page .opt-page-header {
    margin-bottom: 10px;
}
.tree-page .opt-page-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #283673;
    line-height: 1.3;
}
.tree-page .opt-page-meta {
    display: inline;
    font-size: 14px;
    font-weight: 400;
    color: #5a6485;
    margin-left: 6px;
}
.tree-page .tree-page-panel {
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: 4px;
    padding: 12px 14px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    min-width: min(1180px, calc(100vw - 48px));
    box-sizing: border-box;
    overflow-x: auto;
}
.tree-page-body {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
}
.tree-page .tree-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
    box-sizing: border-box;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    border-top: none;
    min-height: 0;
}
.tree-scale-viewport {
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    flex-shrink: 0;
}
.tree-scale-canvas {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 120px;
    overflow: visible;
}
.tree-page .tree-wrapper.tree-dense .tree-level { gap: 28px; }
.tree-page .tree-wrapper.tree-dense .tree-node,
.tree-page .tree-wrapper.tree-dense .tree-node-grandchild {
    padding: 12px 20px;
}
.tree-page .tree-wrapper.tree-dense .children-branch { padding: 14px; gap: 14px; }
.tree-page .tree-wrapper.tree-dense .grandkids-group {
    gap: var(--tree-sibling-gap);
    margin-top: 28px;
}
.tree-page .tree-wrapper.tree-dense .partner-group .tree-node {
    min-height: var(--tree-node-h, 70px);
    height: var(--tree-node-h, auto);
}
.tree-scale-inner {
    width: max-content;
    margin: 0 auto;
}
.tree-page .tree-scale-viewport {
    margin-left: auto;
    margin-right: auto;
}
.tree-container { width: fit-content; max-width: none; overflow: visible; padding: 20px 10px 32px; margin: 0 auto; }
.tree-page .tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: max-content;
    margin: 0 auto;
}
.tree-level {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    position: relative;
    width: max-content;
    max-width: none;
}
.tree-page .tree-level-children {
    align-items: flex-start;
}
.tree-page.tree-measuring .tree-node {
    width: auto !important;
    min-width: 150px !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
}
.tree-page.tree-measuring-h .tree-node {
    height: auto !important;
    min-height: 0 !important;
}
.tree-page .tree-node {
    --tree-node-w: 150px;
    --tree-node-h: 82px;
    width: var(--tree-node-w);
    min-width: var(--tree-node-w);
    max-width: var(--tree-node-w);
    min-height: var(--tree-node-h);
    height: var(--tree-node-h);
    overflow: visible;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 16px 26px;
}
.tree-node {
    background: #f1f3f8;
    border: 2px solid #283673;
    padding: 16px 26px;
    border-radius: 4px;
    min-width: 150px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}
.tree-node.partner-node { border-color: #d4af37; background: #fffdf5; }
.tree-page .tree-level-parents .tree-node.partner-node {
    border-color: #283673;
    background: #f1f3f8;
}
.tree-node.dead { border-color: #7a86b0; background: #f8f9fa; }
.tree-node.dead .node-name { color: #5c6482; text-decoration: none; }
.tree-node-grandchild {
    border-color: #283673;
    background: #f1f3f8;
    padding: 16px 26px;
}
.tree-page .node-name-row {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.4em;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
}
.tree-page .node-name-voornaam,
.tree-page .node-name-achternaam,
.tree-page .tree-wrapper.tree-dense .node-name-voornaam,
.tree-page .tree-wrapper.tree-dense .node-name-achternaam {
    font-weight: 500;
    color: #283673;
    font-size: 16px;
    line-height: 1.35;
    white-space: nowrap;
}
.tree-page .tree-node.dead .node-name-voornaam,
.tree-page .tree-node.dead .node-name-achternaam {
    color: #5c6482;
}
.tree-page .tree-node.partner-node .node-name-voornaam,
.tree-page .tree-node.partner-node .node-name-achternaam {
    color: #283673;
}
.tree-page .tree-node .node-name,
.tree-page .tree-node .node-name-primary,
.tree-page .tree-wrapper.tree-dense .tree-node .node-name,
.tree-page .tree-wrapper.tree-dense .tree-node .node-name-primary {
    font-weight: 500;
    color: #283673;
    font-size: 16px;
    line-height: 1.35;
}
.tree-page .tree-node.dead .node-name,
.tree-page .tree-node.dead .node-name-primary {
    color: #5c6482;
}
.tree-page .tree-node.partner-node .node-name,
.tree-page .tree-node.partner-node .node-name-primary {
    color: #283673;
}
.tree-page .tree-node .node-meta,
.tree-page .tree-wrapper.tree-dense .tree-node .node-meta {
    font-size: 14px;
    color: #5c6482;
    font-weight: normal;
    line-height: 1.35;
    white-space: nowrap;
}
.tree-page .tree-node .afstamming-label,
.tree-page .tree-wrapper.tree-dense .tree-node .afstamming-label {
    font-size: 14px;
    color: #5c6482;
    font-weight: normal;
    text-transform: none;
    margin-top: 0;
    line-height: 1.35;
    flex-shrink: 0;
    white-space: nowrap;
}
.tree-page .tree-level-children .afstamming-label,
.tree-page .tree-wrapper.tree-dense .tree-level-children .afstamming-label {
    white-space: nowrap;
}
.tree-page .tree-node .node-meta {
    flex-shrink: 0;
}
.tree-page .tree-level-children .afstamming-label,
.tree-page .tree-wrapper.tree-dense .tree-level-children .afstamming-label {
    font-size: 12px;
}
.partner-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tree-partner-gap, 10px);
    position: relative;
}
.partner-group .tree-node {
    flex: 0 0 auto;
}
.partner-connect {
    width: var(--tree-partner-connect, 20px);
    height: 2px;
    background: #283673;
    flex-shrink: 0;
}
.children-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    width: fit-content;
    max-width: 100%;
    flex: 0 0 auto;
    box-sizing: border-box;
}
.children-branch--parents {
    align-self: center;
    height: auto;
}
.tree-page .tree-level-children .children-branch {
    align-self: flex-start;
    height: auto;
}
.children-branch:has(.grandkids-group) .partner-group {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
}
.tree-page .tree-level-children .children-branch .partner-connect {
    width: var(--tree-partner-connect, 20px);
    height: 2px;
    background: #283673;
    flex-shrink: 0;
}
.children-branch--no-descendants {
    width: fit-content;
    min-width: 0;
}
.children-branch--solo {
    padding: 14px 16px;
    gap: 0;
}
.children-branch--solo .partner-group {
    width: fit-content;
}
.children-branch--solo .partner-group .tree-node {
    flex: 0 0 auto;
}
.children-branch--no-descendants:not(.children-branch--solo) {
    padding: 16px 18px;
}
.tree-page .grandkids-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--tree-sibling-gap, 40px);
    width: fit-content;
    max-width: 100%;
    margin-top: 36px;
    padding-top: 0;
    box-sizing: border-box;
    align-self: center;
}
.tree-page .grandkids-group > .tree-node {
    margin: 0;
}
.tree-page .children-branch--parents .tree-samenlevingsvorm {
    margin-top: 10px;
    font-size: 12px;
    color: #5c6482;
    text-align: center;
    line-height: 1.35;
}

/* TESTAMENT — compact werkscherm */
.testament-page {
    max-width: min(1920px, calc(100vw - 28px));
    margin: 8px auto 16px;
    padding: 0 10px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-anchor: none;
}
.testament-page .opt-page-header {
    margin-bottom: 10px;
}
.testament-page .opt-page-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #283673;
    line-height: 1.3;
}
.testament-page .opt-page-meta {
    display: inline;
    font-size: 14px;
    font-weight: 400;
    color: #5a6485;
    margin-left: 6px;
}
.testament-flash-messages {
    margin-bottom: 10px;
}
.testament-flash-messages .error,
.testament-flash-messages .success,
.testament-page .testament-alert {
    margin-bottom: 8px;
}
.testament-page .opt-panel.testament-panel {
    background: #fff;
    border: 1px solid #e3e6ec;
    border-radius: 4px;
    padding: 14px 16px 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}
.testament-page .testament-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    min-width: 0;
    width: 100%;
}
.testament-progress {
    margin-bottom: 24px;
    padding: 14px 18px;
    background: #f8f9fc;
    border: 1px solid #e2e6ef;
    border-radius: 4px;
}
.testament-progress-label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #283673;
}
.testament-progress-label strong {
    font-size: 16px;
}
.testament-progress-pct {
    color: #5c6482;
    font-weight: normal;
}
.testament-progress-track {
    height: 8px;
    background: #e8ecf4;
    border-radius: 4px;
    overflow: hidden;
}
.testament-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #283673, #3d4f9a);
    border-radius: 4px;
    transition: width 0.25s ease;
}
.testament-sidebar {
    background: #f8f9fc;
    border: 1px solid #e2e6ef;
    border-radius: 4px;
    padding: 12px;
    align-self: start;
    min-width: 0;
}
.testament-overzicht-form,
.testament-vraag-form {
    margin: 0;
    padding: 0;
}
.testament-start-titel {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: 24px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-bottom: none;
    padding-bottom: 0;
}
.testament-start-titel::after {
    content: '';
    display: block;
    width: 78%;
    max-width: 100%;
    height: 2px;
    background: #283673;
}
.testament-hoofdstuk {
    margin-top: 0;
}
.testament-vraag-btn {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
    scroll-margin: 0;
    border: 2px solid #e2e6ef;
    background: #f8f9fc;
    color: #283673;
    font: inherit;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 6px;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.testament-vraag-btn:hover {
    background: #eef1f8;
    border-color: #c5cde0;
}
.testament-vraag-btn.is-active {
    background: #283673;
    border-color: #283673;
    color: #fff;
    box-shadow: none;
}
.testament-vraag-btn.is-done:not(.is-active) {
    background: #f0f7f2;
    border-color: #b8dcc4;
    color: #2d5a3d;
}
.testament-vraag-btn.is-done:not(.is-active) .testament-vraag-check {
    color: #2d8a4e;
}

.testament-vraag-check {
    flex-shrink: 0;
    width: 1.1em;
    font-size: 15px;
    line-height: 1.35;
}
.testament-vraag-titel {
    flex: 1;
    line-height: 1.35;
}
.testament-main {
    background: #f8f9fc;
    border: 1px solid #e2e6ef;
    border-radius: 4px;
    padding: 24px 28px;
    min-height: 280px;
    min-width: 0;
    align-self: start;
}
.testament-main.testament-main--start {
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.testament-main-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5c6482;
    font-weight: bold;
}
.testament-main-titel {
    margin: 0 0 12px;
    font-size: 22px;
    color: #283673;
}
.testament-main-help {
    margin: 0 0 20px;
    color: #5c6482;
    line-height: 1.5;
    font-size: 14px;
}

.testament-antwoord-form > label:not(.testament-nvt-label),
.testament-antwoord-form label[for="testament_antwoord"],
.testament-antwoord-form label[for="testament_opmerking"] {
    display: block;
    font-weight: bold;
    color: #283673;
    margin-bottom: 6px;
    font-size: 14px;
}
.testament-antwoord-form textarea,
.testament-antwoord-form input[type="text"],
.testament-antwoord-form select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
    font-size: 14px;
    margin-bottom: 14px;
}
.testament-antwoord-form textarea:focus,
.testament-antwoord-form input[type="text"]:focus,
.testament-antwoord-form select:focus {
    border-color: #283673;
    outline: none;
}
.testament-antwoord-form label.testament-nvt-label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0 18px;
    padding: 12px 16px;
    min-height: 48px;
    border: 1px solid #dce2ee;
    border-radius: 6px;
    background: #fff;
    font-weight: normal;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.testament-nvt-label:hover {
    background: #f7f9fc;
    border-color: #c5cde0;
}
.testament-nvt-label:has(input:checked) {
    background: #eef2fa;
    border-color: #283673;
}
.testament-antwoord-form label.testament-nvt-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    align-self: center;
    border: none;
    border-radius: 0;
    accent-color: #283673;
    cursor: pointer;
}
.testament-antwoord-form label.testament-nvt-label span {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    padding-top: 1px;
}
.testament-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding-top: 4px;
}
.testament-form-actions .btn-primary-action,
.testament-form-actions .btn-secondary-action {
    width: auto;
    min-width: 180px;
    margin: 0;
}
.testament-opmerking {
    min-height: 0;
    resize: vertical;
}
.testament-antwoord-form--opvullegaat .testament-opmerking {
    margin-bottom: 0;
}
.testament-antwoord-form input[type="radio"],
.testament-antwoord-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    border: none;
    accent-color: #283673;
    cursor: pointer;
}
.testament-keuze-groep {
    border: 0;
    margin: 0 0 22px;
    padding: 0;
    min-width: 0;
    background: transparent;
}
.testament-keuze-groep.is-hidden {
    display: none;
}
.testament-keuze-groep legend.testament-keuze-titel {
    display: block;
    float: none;
    width: 100%;
    font-size: 15px;
    font-weight: bold;
    color: #283673;
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.45;
}
.testament-keuze-opties {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #dce2ee;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.testament-keuze-opties--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    border: none;
    background: transparent;
    overflow: visible;
}
.testament-radio-optie {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    font-weight: normal;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid #eef1f6;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
    transition: background 0.12s ease;
}
.testament-keuze-opties--inline .testament-radio-optie {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid #dce2ee;
    border-radius: 6px;
    min-width: 88px;
    justify-content: flex-start;
}
.testament-radio-optie:last-child {
    border-bottom: none;
}
.testament-keuze-opties--inline .testament-radio-optie:last-child {
    border-bottom: 1px solid #dce2ee;
}
.testament-radio-optie:hover {
    background: #f7f9fc;
}
.testament-radio-optie:has(input:checked) {
    background: #eef2fa;
    box-shadow: inset 3px 0 0 #283673;
}
.testament-keuze-opties--inline .testament-radio-optie:has(input:checked) {
    box-shadow: none;
    border-color: #283673;
    background: #eef2fa;
}
.testament-radio-optie input {
    margin: 0;
    justify-self: center;
}
.testament-radio-optie span {
    min-width: 0;
}
.testament-partner-blokken {
    margin-bottom: 8px;
}
.testament-partner-wrap.is-hidden {
    display: none;
}
.testament-partner-blok {
    margin-bottom: 22px;
    padding-bottom: 6px;
}
.testament-partner-blok + .testament-partner-blok {
    border-top: 1px solid #e8ecf4;
    padding-top: 18px;
}
.testament-partner-titel {
    margin: 0 0 14px;
    font-size: 16px;
    color: #283673;
    font-weight: bold;
}
.testament-opeis-intro {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a2e;
}
.testament-opeis-lijst {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0 0 18px;
}
.testament-opeis-lijst .testament-opeis-regel {
    margin: 0;
    width: 100%;
}
.testament-antwoord-form--opeismomenten .testament-opmerking {
    margin-top: 4px;
}
@media (max-width: 900px) {
    .testament-page .testament-layout {
        grid-template-columns: 1fr;
    }
}