:root {
    --navy: #0b1f5e;
    --blue: #2478ff;
    --blue-soft: #eaf2ff;
    --text: #17233f;
    --muted: #6d7890;
    --border: #dfe6f1;
    --surface: #ffffff;
    --background: #f4f7fc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

/* Blazor focust de paginatitel na navigatie voor schermlezers. Verberg alleen de standaard browserrand. */
h1[tabindex="-1"]:focus { outline: none; box-shadow: none; }

.portal-shell { min-height: 100vh; padding-bottom: 72px; }
.portal-header {
    height: 76px; padding: 0 max(24px, calc((100% - 1120px) / 2)); background: #fff;
    border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between;
}
.portal-brand img { display: block; width: 190px; height: 54px; object-fit: contain; }
.profile-menu { position: relative; color: var(--text); }
.profile-menu > summary {
    min-width: 220px; padding: 7px 10px 7px 7px; border: 1px solid transparent; border-radius: 14px;
    display: flex; align-items: center; gap: 11px; cursor: pointer; list-style: none; transition: background .15s, border-color .15s;
}
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-menu > summary:hover, .profile-menu[open] > summary { background: var(--blue-soft); border-color: #cfe0ff; }
.profile-menu > summary:focus-visible { outline: 3px solid #cfe0ff; border-color: var(--blue); }
.profile-avatar {
    width: 40px; height: 40px; flex: 0 0 40px; color: #fff;
    background: linear-gradient(145deg, var(--navy), var(--blue)); border-radius: 50%;
    box-shadow: 0 5px 14px rgba(36, 120, 255, .22); display: grid; place-items: center;
    font-size: .8rem; font-weight: 800; letter-spacing: .03em;
}
.profile-trigger-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.profile-trigger-copy strong { overflow: hidden; color: var(--navy); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-trigger-copy small { color: var(--muted); font-size: .72rem; }
.profile-chevron { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .15s; }
.profile-menu[open] .profile-chevron { transform: rotate(180deg); }
.profile-menu-panel {
    position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: min(340px, calc(100vw - 28px));
    background: #fff; border: 1px solid var(--border); border-radius: 17px; box-shadow: 0 20px 55px rgba(11, 31, 94, .16); overflow: hidden;
}
.profile-menu-header { padding: 18px; background: linear-gradient(145deg, #f7faff, var(--blue-soft)); display: flex; align-items: center; gap: 13px; }
.profile-avatar-large { width: 48px; height: 48px; flex-basis: 48px; font-size: .9rem; }
.profile-menu-header > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.profile-menu-header strong, .profile-menu-header small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-header strong { color: var(--navy); }
.profile-menu-header small { color: var(--muted); font-size: .78rem; }
.profile-menu-links { padding: 8px; border-top: 1px solid #edf1f7; border-bottom: 1px solid #edf1f7; display: grid; gap: 2px; }
.profile-menu-links a { padding: 11px; border-radius: 10px; display: flex; align-items: center; gap: 12px; }
.profile-menu-links a:hover { background: var(--blue-soft); }
.profile-menu-links svg, .profile-logout svg { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.profile-menu-links a > span { display: flex; flex-direction: column; gap: 2px; }
.profile-menu-links strong { color: var(--navy); font-size: .88rem; }
.profile-menu-links small { color: var(--muted); font-size: .75rem; }
.profile-logout { padding: 8px; }
.profile-logout button { width: 100%; padding: 11px; color: #a52738; background: transparent; border: 0; border-radius: 10px; display: flex; align-items: center; gap: 12px; font-weight: 700; cursor: pointer; }
.profile-logout button:hover { background: #fff0f2; }
.portal-content { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0; }
.mobile-navigation {
    position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; height: 66px; padding: 0 8px env(safe-area-inset-bottom);
    background: #fff; border-top: 1px solid var(--border); display: flex; justify-content: center;
}
/* Icoon boven een korte tekst; de items verdelen de breedte, zodat er ook op een smalle telefoon zes passen. */
.mobile-navigation a {
    flex: 0 1 140px; min-width: 0; padding: 9px 4px 8px; color: var(--muted); border-top: 3px solid transparent;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: .74rem; font-weight: 700; line-height: 1.1; text-align: center;
}
.mobile-navigation a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-navigation svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.mobile-navigation a:hover { color: var(--navy); }
.mobile-navigation a.active { color: var(--blue); border-top-color: var(--blue); }
@media (max-width: 400px) {
    .mobile-navigation { padding-right: 2px; padding-left: 2px; }
    .mobile-navigation a { padding-right: 1px; padding-left: 1px; font-size: .66rem; letter-spacing: -.01em; }
}

.welcome-heading, .page-heading { margin-bottom: 30px; }
.welcome-heading h1, .page-heading h1 { margin: 4px 0 7px; color: var(--navy); font-size: clamp(2rem, 5vw, 3rem); }
.welcome-heading p, .page-heading p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.feature-card {
    min-height: 190px; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: 20px;
    box-shadow: 0 10px 35px rgba(11, 31, 94, .05); display: flex; flex-direction: column; justify-content: flex-end;
}
.feature-card:hover { border-color: #a9c8ff; transform: translateY(-2px); }
.feature-card strong { margin: 12px 0 4px; color: var(--navy); font-size: 1.7rem; }
.feature-card span:last-child { color: var(--muted); font-size: .9rem; }
.primary-card { color: #fff; background: linear-gradient(135deg, var(--navy), #1257cd); border: 0; }
.primary-card strong, .primary-card span:last-child { color: #fff; }
.card-label { color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.primary-card .card-label { color: #9fc4ff; }

.document-list { display: grid; gap: 13px; }
.document-card { padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: 15px; display: flex; align-items: center; gap: 18px; }
.document-card:hover { border-color: #9fc4ff; box-shadow: 0 8px 25px rgba(11, 31, 94, .06); }
.document-period { width: 56px; height: 56px; color: #fff; background: var(--navy); border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.document-period strong { font-size: 1.15rem; }
.document-period span { font-size: .68rem; }
.document-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.document-info strong { color: var(--navy); }
.document-info span { color: var(--muted); font-size: .88rem; }
.document-action, .back-link { color: var(--blue); font-weight: 700; }

.actions-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.payslip-document { padding: 36px; background: #fff; border: 1px solid var(--border); border-radius: 18px; }
.payslip-header { padding-bottom: 24px; border-bottom: 2px solid var(--navy); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.payslip-header div { display: flex; flex-direction: column; gap: 5px; }
.payslip-header span, .payslip-header small { color: var(--muted); }
.payslip-header strong { color: var(--navy); font-size: 1.15rem; }
.payslip-meta { margin: 0; padding: 24px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.payslip-meta div { display: flex; flex-direction: column; gap: 5px; }
.payslip-meta dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.payslip-meta dd { margin: 0; font-weight: 700; }
.payslip-lines { padding-top: 18px; }
.payslip-lines > div { padding: 10px 0; display: flex; justify-content: space-between; }
.payslip-total { margin-top: 12px; padding: 20px !important; color: #fff; background: var(--navy); border-radius: 12px; font-size: 1.12rem; }
.payslip-section { padding-top: 24px; }
.payslip-section h2, .payslip-summary-card h2 { margin: 0 0 14px; color: var(--navy); font-size: 1rem; }
.payslip-table-wrap { overflow-x: auto; }
.payslip-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.payslip-table th { padding: 10px; color: var(--muted); background: #f3f6fb; text-align: left; }
.payslip-table td { padding: 10px; border-bottom: 1px solid var(--border); }
.payslip-table th:nth-child(n+3), .payslip-table td:nth-child(n+3) { text-align: right; }
.payslip-summary-grid { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.payslip-summary-card { padding: 20px; border: 1px solid var(--border); border-radius: 12px; }
.payslip-summary-card > div { padding: 5px 0; display: flex; justify-content: space-between; gap: 20px; }
.payslip-footer { margin-top: 28px; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--border); font-size: .8rem; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 42%) 1fr; }
.auth-brand { padding: 54px; color: #fff; background: linear-gradient(145deg, #071a4e, #0b2d7a 65%, #176dff 140%); display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand img { width: min(100%, 390px); padding: 18px; background: #fff; border-radius: 16px; }
.auth-brand h1 { max-width: 450px; margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.2rem); }
.auth-brand p { max-width: 450px; color: #d8e5ff; }
.auth-content { padding: 36px; display: flex; align-items: center; justify-content: center; }
.auth-card { width: min(100%, 460px); padding: 38px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 55px rgba(7, 26, 78, .09); }
.auth-icon { width: 58px; height: 58px; border-radius: 14px; }
.auth-card h2 { margin: 20px 0 8px; color: var(--navy); }
.auth-card > p { margin: 0 0 26px; color: var(--muted); line-height: 1.55; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 7px; color: var(--navy); font-weight: 700; }
.form-field input, .form-field select { width: 100%; padding: 12px 13px; border: 1px solid #cbd5e4; border-radius: 9px; }
.form-field input:focus, .form-field select:focus { outline: 3px solid #d7e6ff; border-color: var(--blue); }
.form-field small { display: block; margin-top: 6px; color: var(--muted); }
.checkbox-field { margin-bottom: 22px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.primary-button, .secondary-button { padding: 12px 18px; border-radius: 9px; font-weight: 800; cursor: pointer; }
.primary-button { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.secondary-button { color: var(--blue); background: #fff; border: 1px solid #a9c8ff; }
.full-width { width: 100%; }
.onboarding-card { padding: 32px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 10px 35px rgba(11, 31, 94, .05); }
.onboarding-section { margin-bottom: 32px; }
.onboarding-section h2 { margin: 0 0 20px; color: var(--navy); font-size: 1.2rem; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.form-field-wide { grid-column: span 2; }
.validation-summary { margin-bottom: 24px; color: #8f1d2c; }
.alert, .empty-card, .loading-card { margin: 20px 0; padding: 20px; border-radius: 12px; }
.alert.error { color: #8f1d2c; background: #fff0f2; border: 1px solid #f3c8cf; }
.alert.success { color: #146c43; background: #eaf8f0; border: 1px solid #b9e3ca; }
.empty-card, .loading-card { background: #fff; border: 1px solid var(--border); text-align: center; }
.empty-card { padding: 50px 24px; }
.empty-card h2 { color: var(--navy); }
.empty-card p { max-width: 570px; margin: 0 auto; color: var(--muted); }
.empty-icon { width: 70px; border-radius: 16px; }

.payslip-company-logo {
    display: block;
    width: 150px;
    height: 70px;
    margin-bottom: 14px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 800px) {
    .portal-header { height: 66px; padding: 0 18px; }
    .portal-brand img { width: 145px; }
    .profile-menu > summary { min-width: 0; padding: 5px; }
    .profile-trigger-copy, .profile-chevron { display: none; }
    .profile-menu-panel { top: calc(100% + 8px); }
    .portal-content { width: min(100% - 28px, 1120px); padding: 28px 0; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: 155px; }
    .mobile-navigation a { flex: 1 1 0; }
    .document-action { display: none; }
    .actions-heading { align-items: flex-start; flex-direction: column; }
    .payslip-document { padding: 22px 18px; }
    .payslip-header, .payslip-meta, .payslip-summary-grid { grid-template-columns: 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-content { padding: 22px; }
    .auth-card { padding: 28px 24px; }
    .onboarding-card { padding: 24px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field-wide { grid-column: auto; }
}

@media print {
    .portal-header, .mobile-navigation, .print-hidden, .back-link { display: none !important; }
    .portal-content { width: 100%; padding: 0; }
    .page-heading { margin-bottom: 20px; }
    .payslip-document { border: 0; }
}
.payslip-table .payslip-table-heading th { padding-top: 18px; background: transparent; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.payslip-table .payslip-table-subtotal th { color: var(--navy); background: #f3f6fb; border-top: 1px solid var(--border); }
.payslip-table .payslip-table-subtotal th:last-child { text-align: right; }

/* Verlof */
.year-select { padding: 9px 12px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 10px; font: inherit; }
.alert.info { color: #0b4a8f; background: var(--blue-soft); border: 1px solid #c7dcff; }

/* Toast: korte bevestiging rechtsonder, boven de menubalk (zelfde stijl als het beheer van minneloon) */
.app-toast { position: fixed; z-index: 30; right: 24px; bottom: 86px; max-width: calc(100vw - 32px); }
.app-toast-card {
    min-width: 260px; max-width: 420px; padding: 12px 10px 12px 14px; color: #fff; background: var(--navy);
    border-radius: 10px; box-shadow: 0 12px 32px rgba(11, 31, 94, .3);
    display: flex; align-items: center; gap: 10px; font-weight: 600; animation: app-toast-in .18s ease-out;
}
.app-toast-text { flex: 1; }
.app-toast-check {
    width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #22a06b;
    display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800;
}
.app-toast-close {
    width: 28px; height: 28px; padding: 0; color: rgba(255, 255, 255, .75); background: transparent; border: 0;
    border-radius: 6px; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.app-toast-close:hover { color: #fff; background: rgba(255, 255, 255, .12); }
@keyframes app-toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 600px) {
    .app-toast { right: 16px; left: 16px; }
    .app-toast-card { min-width: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .app-toast-card { animation: none; } }
@media print { .app-toast { display: none !important; } }
.muted { color: var(--muted); }
.mt-section { margin-top: 28px !important; }
.leave-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.leave-card { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.leave-card span, .leave-card strong { display: block; }
.leave-card span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.leave-card strong { margin-top: 8px; color: var(--navy); font-size: 1.6rem; }
.leave-card-balance { color: #fff; background: linear-gradient(135deg, var(--navy), #1257cd); border: 0; }
.leave-card-balance span { color: #9fc4ff; }
.leave-card-balance strong { color: #fff; }

/* Salarisgrafiek op het dashboard */
.salary-chart { margin-top: 20px; padding: 22px 24px 14px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.salary-chart-header { margin-bottom: 14px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.salary-chart .card-label { color: var(--muted); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.salary-chart-totals { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .9rem; }
.salary-chart-totals strong { margin-left: 4px; color: var(--navy); }
.salary-chart .legend { width: 10px; height: 10px; margin-right: 6px; display: inline-block; border-radius: 3px; }
.salary-chart .legend.gross, .salary-chart .bar.gross { fill: #cfe0ff; background: #cfe0ff; }
.salary-chart .legend.net, .salary-chart .bar.net { fill: var(--blue); background: var(--blue); }
.salary-chart svg { width: 100%; height: auto; display: block; }
.salary-chart .grid-line { stroke: var(--border); stroke-dasharray: 3 4; }
.salary-chart .month-label { fill: var(--muted); font-size: 12px; text-anchor: middle; }

/* Rooster */
.week-picker { display: flex; align-items: center; gap: 10px; }
.week-picker strong { min-width: 5.5rem; color: var(--navy); text-align: center; }
.week-picker-button { width: 38px; height: 38px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 1.1rem; }
.week-picker-button:hover { border-color: var(--blue); }
.schedule-days { margin-top: 24px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.schedule-day { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--border); }
.schedule-day:first-child { border-top: 0; }
.schedule-day.is-today { background: var(--blue-soft); }
.schedule-date strong, .schedule-date span { display: block; }
.schedule-date strong { color: var(--navy); text-transform: capitalize; }
.schedule-date span { color: var(--muted); font-size: .88rem; }
.schedule-day.is-free .schedule-date strong { color: var(--muted); }
.schedule-shifts { display: grid; gap: 8px; align-content: center; }
.schedule-shift { padding-left: 12px; border-left: 3px solid var(--blue); }
.schedule-shift strong, .schedule-shift span, .schedule-shift small { display: block; }
.schedule-shift strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.schedule-shift span, .schedule-shift small { color: var(--muted); font-size: .88rem; }
.schedule-tabs { display: inline-flex; margin-bottom: 20px; padding: 4px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.schedule-tabs button { padding: 8px 16px; color: var(--muted); background: none; border: 0; border-radius: 9px; cursor: pointer; font-weight: 700; }
.schedule-tabs button.is-active { color: #fff; background: var(--navy); }
.schedule-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.schedule-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: .9rem; table-layout: fixed; }
.schedule-table th, .schedule-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.schedule-table thead th { color: var(--muted); background: #f3f6fb; font-weight: 700; }
.schedule-table thead th span, .schedule-table thead th small { display: block; }
.schedule-table thead th span { color: var(--navy); text-transform: capitalize; }
.schedule-table thead th small { font-weight: 500; }
.schedule-table th:first-child { position: sticky; left: 0; z-index: 1; width: 150px; background: #fff; }
.schedule-table thead th:first-child { background: #f3f6fb; }
.schedule-table tbody th { color: var(--text); font-weight: 600; }
.schedule-table .is-today { background: var(--blue-soft); }
.schedule-table tbody tr.is-own th, .schedule-table tbody tr.is-own td { background: #f5f9ff; }
.schedule-table tbody tr.is-own th { color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.schedule-table tfoot th, .schedule-table tfoot td { color: var(--muted); background: #fafbfd; border-bottom: 0; font-size: .82rem; }
.schedule-tasks { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.schedule-tasks label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.schedule-tasks input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--blue); }
.schedule-tasks li span { color: var(--text) !important; font-size: .95rem !important; }
.schedule-tasks li.is-done span { color: var(--muted) !important; text-decoration: line-through; }
.schedule-tasks small { display: block; text-decoration: none; }
.schedule-function { display: inline-block; margin-bottom: 3px; padding: 0 7px; color: var(--navy); background: var(--blue-soft); border-radius: 5px; font-size: .75rem; font-weight: 800; }
.schedule-table-shift + .schedule-table-shift { margin-top: 6px; }
.schedule-table-shift strong, .schedule-table-shift small { display: block; }
.schedule-table-shift strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule-table-shift small { overflow: hidden; color: var(--muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 800px) {
    .schedule-table th:first-child { width: 110px; }
    .schedule-day { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; }
}

/* Ziek melden en verlof aanvragen */
.absence-banner { margin-bottom: 20px; padding: 18px 22px; background: #fff; border: 1px solid var(--border); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.absence-banner strong, .absence-banner span { display: block; }
.absence-banner strong { color: var(--navy); }
.absence-banner span { color: var(--muted); font-size: .9rem; }
.absence-banner.is-sick { background: #fff7e8; border-color: #f3d9a4; }
.absence-banner.is-sick strong { color: #8a5300; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.absence-list { margin-bottom: 28px; }
.absence-list h2 { margin: 0 0 14px; color: var(--navy); font-size: 1rem; }
.absence-item { padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; display: flex; align-items: center; gap: 14px; }
.absence-item + .absence-item { margin-top: 8px; }
.absence-item > div { flex: 1; min-width: 0; }
.absence-item strong, .absence-item div span { display: block; }
.absence-item strong { color: var(--navy); }
.absence-item div span { color: var(--muted); font-size: .85rem; }
.status-pill { padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.status-requested { color: #8a5300; background: #fff1d6; }
.status-approved { color: #146c43; background: #e2f6ea; }
.status-rejected { color: #8f1d2c; background: #ffe5e9; }
.status-withdrawn { color: var(--muted); background: #eef1f6; }
.text-button { padding: 6px 4px; color: var(--blue); background: none; border: 0; font-weight: 700; cursor: pointer; }
.text-button:disabled, .primary-button:disabled { opacity: .6; cursor: default; }
.choice-row { display: flex; gap: 10px; }
.choice { padding: 10px 14px; border: 1px solid #cbd5e4; border-radius: 9px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.choice input { width: auto !important; accent-color: var(--blue); }
.mb-field { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.portal-modal-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(11, 31, 94, .35); }
.portal-modal {
    position: fixed; z-index: 41; top: 50%; left: 50%; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto;
    padding: 22px 24px 24px; background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(11, 31, 94, .25); transform: translate(-50%, -50%);
}
.portal-modal-header { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portal-modal-header h2 { margin: 0; color: var(--navy); font-size: 1.2rem; }
.portal-modal-close { width: 36px; height: 36px; color: var(--muted); background: none; border: 0; border-radius: 9px; font-size: 1.5rem; cursor: pointer; }
.portal-modal-close:hover { background: var(--blue-soft); }
.portal-modal .alert { margin: 0 0 16px; padding: 12px 14px; }
.portal-modal-actions { margin-top: 8px; display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 600px) {
    .portal-modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 90vh; padding-bottom: calc(24px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; transform: none; }
    .absence-banner { flex-direction: column; align-items: stretch; }
    .actions-heading { flex-wrap: wrap; }
}
/* Mijn uren */
.month-label { min-width: 9rem !important; text-transform: capitalize; }
.week-picker-button:disabled { opacity: .4; cursor: default; }
.hours-shift .hours-shift-total { display: inline; margin-left: 8px; color: var(--navy); font-size: .9rem; }
.hours-shift .status-pill { display: inline-block; margin-top: 4px; }
.leave-estimate { margin-bottom: 18px; padding: 12px 14px; background: var(--blue-soft); border-radius: 10px; }
.leave-estimate strong { color: var(--navy); font-size: 1.05rem; }
.leave-estimate span { margin-left: 6px; color: var(--muted); font-size: .88rem; }
