@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');

:root {
    --app-bg: #f8fafc;
    --app-surface: #ffffff;
    --app-surface-muted: #f8fafc;
    --app-border: #e2e8f0;
    --app-input-border: #cbd5e1;
    --app-input-bg: #ffffff;
    --app-muted: #64748b;
    --app-text: #0f172a;
    --app-primary: #0d9488;
    --app-primary-dark: #0f766e;
    --app-primary-soft: #ccfbf1;
    --app-primary-ghost: #f0fdfa;
    --app-sidebar: #ffffff;
    --app-sidebar-border: #e2e8f0;
    --app-sidebar-text: #334155;
    --app-sidebar-hover: #f0fdfa;
    --app-success: #10b981;
    --app-warning: #f59e0b;
    --app-danger: #ef4444;
    --app-info: #3b82f6;
    --app-radius-sm: 0.375rem;
    --app-radius-md: 0.5rem;
    --app-radius-lg: 0.75rem;
    --app-radius-xl: 1rem;
    --app-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --app-shadow-md: 0 10px 20px rgba(15, 23, 42, 0.1);
    --app-shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
    --rz-primary: oklch(60% 0.118 184.704);
    --rz-dropdown-item-selected-background-color: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    --rz-dropdown-item-selected-hover-background-color: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
}

body {
    font-family: "Figtree", "Segoe UI", sans-serif;
    background: var(--app-bg);
    color: var(--app-text);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.app-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--app-bg);
}

.auth-loading {
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: var(--app-muted);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.auth-splash {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 45%, #115e59 100%);
    z-index: 1000;
    overflow: hidden;
    color: #ffffff;
}

.auth-splash__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.9) 1px, transparent 0);
    background-size: 40px 40px;
}

.auth-splash__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 420px;
}

.auth-splash__logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-splash__pulse {
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    animation: auth-splash-pulse 1.8s ease-in-out infinite;
}

.auth-splash__logo-core {
    position: relative;
    background: #ffffff;
    border-radius: 999px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.25);
}

.auth-splash__logo-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-splash__icon-main {
    font-size: 2.4rem;
    color: #0d9488;
}

.auth-splash__icon-heart {
    font-size: 2rem;
    color: #14b8a6;
    animation: auth-splash-heart 1.6s ease-in-out infinite;
}

.auth-splash__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #14b8a6;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.35rem;
    box-shadow: var(--app-shadow-sm);
    animation: auth-splash-bounce 1.8s ease-in-out infinite;
}

.auth-splash__title {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-splash__subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #ccfbf1;
    margin-top: 0.4rem;
}

.auth-splash__bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
    margin: 2rem auto 0.6rem;
    max-width: 240px;
}

.auth-splash__bar span {
    display: block;
    height: 100%;
    background: #ffffff;
    border-radius: 999px;
    animation: auth-splash-loading 1.6s ease-in-out infinite;
}

.auth-splash__status {
    font-size: 0.9rem;
    color: #ccfbf1;
    font-weight: 600;
}

.auth-splash__footer {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    color: rgba(204, 251, 241, 0.7);
}

.auth-splash__footer-version {
    margin-top: 0.25rem;
}

@keyframes auth-splash-loading {
    0% {
        width: 0%;
        margin-left: 0%;
    }

    50% {
        width: 70%;
        margin-left: 15%;
    }

    100% {
        width: 0%;
        margin-left: 100%;
    }
}

@keyframes auth-splash-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.2;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.35;
    }
}

@keyframes auth-splash-heart {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

@keyframes auth-splash-bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.app-sidebar {
    background: var(--app-sidebar);
    border-right: 1px solid var(--app-sidebar-border);
    color: var(--app-sidebar-text);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--app-sidebar-border);
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.sidebar-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.35rem;
}

.sidebar-footer {
    border-top: 1px solid var(--app-sidebar-border);
    padding: 1rem 1.25rem;
    color: var(--app-sidebar-text);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.85rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    background: var(--app-primary-dark);
    box-shadow: var(--app-shadow-sm);
}

.avatar-link {
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .avatar-link:hover {
        transform: translateY(-1px);
        box-shadow: var(--app-shadow-md);
    }

    .avatar-link:focus-visible {
        outline: 2px solid #99f6e4;
        outline-offset: 2px;
    }

.sidebar-user-meta {
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    margin-top: 0.1rem;
    font-size: 0.78rem;
    color: #64748b;
}

.sidebar-logout {
    width: 100%;
    justify-content: flex-start;
}

.app-sidebar .sidebar-logout.rz-button.rz-button-light {
    background: transparent;
    border-color: #e2e8f0;
    color: #475569;
}

    .app-sidebar .sidebar-logout.rz-button.rz-button-light:hover {
        background: var(--app-sidebar-hover);
        border-color: var(--app-sidebar-hover);
        color: #0f172a;
    }

.sidebar-version {
    border-top: 1px solid var(--app-sidebar-border);
    padding-top: 0.75rem;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-version-muted {
    color: #94a3b8;
}

.rz-header {
    padding: 0;
    min-height: 0;
    height: auto;
}

.app-topbar {
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    padding: 1rem 1.5rem;
    display: block;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.portal-topbar-inner {
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
}

.portal-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
    max-width: 100%;
}

.topbar-welcome {
    text-align: right;
    line-height: 1.15;
}

.topbar-welcome-title {
    font-size: 0.9rem;
    color: #0f172a;
}

.topbar-welcome-role {
    margin-top: 0.1rem;
    font-size: 0.78rem;
    color: #64748b;
}

.topbar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    background: var(--app-primary-dark);
    box-shadow: var(--app-shadow-sm);
}

.rz-button.topbar-toggle {
    min-height: auto;
    padding: 0.4rem;
    border-radius: 0.65rem;
}

.app-topbar .topbar-toggle.rz-button.rz-button-light {
    background: transparent;
    border-color: transparent;
    color: #475569;
}

    .app-topbar .topbar-toggle.rz-button.rz-button-light:hover {
        background: #f1f5f9;
        border-color: #e2e8f0;
        color: #0f172a;
    }

@media (max-width: 1024px) {
    html,
    body {
        overflow-x: hidden;
    }

    .rz-layout,
    .rz-body,
    .rz-content,
    .page-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    .app-topbar {
        padding: 0.75rem 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }

    .topbar-inner {
        width: 100%;
        min-width: 0;
        gap: 0.5rem;
    }

    .topbar-user {
        gap: 0.5rem;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .topbar-welcome {
        display: none;
    }

    .topbar-avatar {
        width: 38px;
        height: 38px;
    }

    .page-content {
        padding: 1rem;
    }

    .portal-topbar-inner {
        align-items: flex-start;
    }

    .portal-topbar-actions {
        width: auto;
        justify-content: flex-end;
    }
}

@media (max-width: 680px) {
    .portal-topbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-topbar-actions {
        justify-content: flex-start;
    }
}

.rz-content {
    padding: 0;
}

.page-content {
    padding: 1.5rem;
}

.medical-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 0;
}

.medical-spinner__orb {
    position: relative;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.medical-spinner__ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 3px solid #99f6e4;
    border-top-color: #0f766e;
    border-right-color: #0d9488;
    animation: medical-spinner-rotate 1.05s linear infinite;
}

.medical-spinner__pulse {
    position: absolute;
    inset: 9px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.25) 0%, rgba(45, 212, 191, 0) 72%);
    animation: medical-spinner-pulse 1.6s ease-in-out infinite;
}

.medical-spinner__icon {
    position: relative;
    z-index: 1;
    color: #0f766e;
    font-size: 1.45rem;
}

.medical-spinner__text {
    font-size: 0.88rem;
    color: #475569;
    font-weight: 600;
    letter-spacing: 0.01em;
}

@keyframes medical-spinner-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes medical-spinner-pulse {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.55;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header-main {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.page-header-title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    color: #0f172a;
}

.page-subtitle {
    color: #475569;
    margin-top: 0.25rem;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-header + .rz-mt-4 {
    margin-top: 0 !important;
}

.event-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none !important;
    line-height: 1;
}

    .event-back-link .rzi {
        display: inline-flex;
        align-items: center;
        line-height: 1;
        font-size: 1rem;
    }

    .event-back-link .event-back-link-text {
        display: inline-flex;
        align-items: center;
        line-height: 1;
        border-bottom: 1px solid transparent;
        padding-bottom: 1px;
    }

    .event-back-link:hover {
        color: #1d4ed8;
        text-decoration: none;
    }

    .event-back-link:hover .event-back-link-text {
        border-bottom-color: currentColor;
    }

    .event-back-link:focus-visible {
        outline: 2px solid #93c5fd;
        outline-offset: 2px;
        border-radius: 4px;
    }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.dashboard-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 1.5rem;
    background: var(--app-surface);
    box-shadow: var(--app-shadow-sm);
}

.stat-title {
    color: var(--app-muted);
    font-size: 0.85rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.stat-card-icon {
    grid-area: icon;
    align-self: self-start;
    margin-left: auto;
}

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.35rem;
    color: var(--app-primary);
    background: var(--app-primary-ghost);
}

.section-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--app-shadow-sm);
}

.card-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

    .card-header-inline h2 {
        margin: 0;
    }

.patient-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
}

.patient-signature {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-left: 1px dashed var(--app-border);
    padding-left: 1.5rem;
}

.signature-title {
    font-weight: 600;
    color: var(--app-text);
}

.signature-pad {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: #ffffff;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    overscroll-behavior: contain;
}

.signature-canvas {
    width: 100%;
    height: 180px;
    display: block;
    cursor: crosshair;
    touch-action: none;
    -ms-touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.signature-actions {
    display: flex;
    justify-content: flex-end;
}

.hulp-dialog {
    display: flex;
    flex-direction: column;
}

.hulp-dialog-intro {
    color: var(--app-muted);
    font-size: 0.92rem;
    max-width: 64ch;
}

.hulp-tabs .rz-tabview-nav li a {
    font-weight: 600;
}

.hulp-section {
    padding: 1.35rem;
}

.hulp-section-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.hulp-hint {
    margin-top: 0.35rem;
    color: var(--app-muted);
    font-size: 0.82rem;
}

.hulp-meetmoment-card {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
    border-color: #bfdbfe;
}

.hulp-meetmoment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hulp-meetmoment-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hulp-meetmoment-nav {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hulp-meetmoment-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .hulp-meetmoment-title .rz-icon {
        color: #2563eb;
    }

.hulp-abcde-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.abcde-card {
    padding: 1.2rem;
}

.abcde-card-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
}

.abcde-badge {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--app-shadow-sm);
}

.abcde-title {
    font-weight: 600;
    font-size: 1rem;
}

.abcde-card-a {
    background: #fef2f2;
    border-color: #fecaca;
}

    .abcde-card-a .abcde-badge {
        background: #dc2626;
    }

.abcde-card-b {
    background: #fff7ed;
    border-color: #fdba74;
}

    .abcde-card-b .abcde-badge {
        background: #ea580c;
    }

.abcde-card-c {
    background: #eff6ff;
    border-color: #bfdbfe;
}

    .abcde-card-c .abcde-badge {
        background: #2563eb;
    }

.abcde-card-d {
    background: #eef2ff;
    border-color: #c7d2fe;
}

    .abcde-card-d .abcde-badge {
        background: #4f46e5;
    }

.abcde-card-e {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

    .abcde-card-e .abcde-badge {
        background: #059669;
    }

.hulp-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

    .hulp-checkbox-row label {
        margin: 0;
        font-size: 0.92rem;
        color: var(--app-text);
    }

.listbox-compact {
    min-height: 96px;
    max-height: 156px;
}

@media (min-width: 1200px) {
    .listbox-compact {
        max-height: 190px;
    }
}

@media (max-width: 960px) {
    .hulp-abcde-grid {
        grid-template-columns: 1fr;
    }
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.personal-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.personal-item-wide {
    grid-column: 1 / -1;
}

.personal-label {
    font-size: 0.9rem;
    color: #64748b;
}

.personal-value {
    color: #0f172a;
    font-size: 0.98rem;
}

.personal-value-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.personal-icon {
    color: #94a3b8;
    font-size: 1.05rem;
}

.profile-photo-editor {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-photo-preview {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--app-border);
    background: var(--app-surface-muted);
    flex-shrink: 0;
}

.profile-photo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.35rem;
    color: #ffffff;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

.profile-photo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: min(320px, 100%);
}

.portal-profile-summary {
    gap: 0.75rem;
}

.portal-profile-main {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.portal-profile-avatar {
    width: 72px;
    height: 72px;
}

.volunteer-list-name-cell {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.volunteer-list-avatar {
    width: 38px;
    height: 38px;
}

.volunteer-list-avatar .profile-photo-placeholder {
    font-size: 0.82rem;
}

.volunteer-list-text {
    min-width: 0;
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .vrijwilligers-grid table th:nth-child(4),
    .vrijwilligers-grid table td:nth-child(4),
    .vrijwilligers-grid table th:nth-child(5),
    .vrijwilligers-grid table td:nth-child(5) {
        display: none;
    }
}

.portal-profile-dialog-footer {
    padding-top: 0.75rem;
    border-top: 1px solid var(--app-border);
}

@media (max-width: 900px) {
    .personal-grid {
        grid-template-columns: 1fr;
    }

    .portal-profile-summary {
        align-items: flex-start !important;
        flex-direction: column;
    }
}

.cert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cert-empty {
    margin-top: 0.75rem;
    color: var(--app-muted);
    font-size: 0.9rem;
}

.cert-item {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    padding: 1rem;
    background: var(--app-surface-muted);
}

.cert-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.certificering-card .cert-item-header {
    margin-bottom: 0;
}

.cert-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.document-section {
    padding: 1.5rem;
    container-type: inline-size;
}

.document-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.document-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
    max-width: 100%;
    min-width: 0;
}

.document-header-actions .rz-button {
    flex: 0 1 auto;
    max-width: 100%;
}

.document-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    min-width: 9rem;
    flex: 1 1 180px;
}

@container (max-width: 420px) {
    .document-header-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .document-header-actions .rz-button {
        flex: 1 1 100%;
        justify-content: center;
    }
}

.document-title-icon {
    color: #64748b;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: var(--app-surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .document-item:hover {
        border-color: #bfdbfe;
        box-shadow: var(--app-shadow-sm);
    }

.document-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.document-icon {
    color: var(--app-primary);
    background: var(--app-primary-ghost);
    border-radius: 0.65rem;
    padding: 0.4rem;
}

.document-name {
    font-weight: 600;
}

.document-meta {
    color: var(--app-muted);
    font-size: 0.85rem;
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
}

.document-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.document-item:hover .document-actions {
    opacity: 1;
}

@media (max-width: 1024px) {
    .document-header-actions {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .document-item {
        align-items: flex-start;
    }

    .document-actions {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        opacity: 1;
    }
}

.document-delete .rz-button-text,
.document-delete .rzi {
    color: var(--app-danger);
}

.document-empty {
    text-align: center;
    color: var(--app-muted);
    padding: 1.5rem 1rem;
    border: 1px dashed var(--app-border);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-muted);
}

.document-empty-icon {
    font-size: 2rem;
    color: #cbd5f5;
    margin-bottom: 0.5rem;
}

.document-empty-sub {
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.document-section-readonly .document-actions {
    opacity: 1;
}

.document-section-readonly .document-item {
    justify-content: flex-start;
}

/* ID scan dialog */
.id-scan-modal {
    position: relative;
    min-height: 480px;
}

.id-scan-dialog .rz-dialog-titlebar {
    display: none;
}

.id-scan-dialog .rz-dialog-content {
    padding: 0;
    background: transparent;
}

.id-scan-dialog .rz-dialog {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.id-scan-dialog-wrapper .rz-dialog-wrapper {
    padding: 0;
    align-items: center;
    justify-content: center;
}

.id-scan-dialog-content {
    padding: 0;
}

.id-scan-card {
    width: 100%;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.id-scan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--app-border);
}

.id-scan-header-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.id-scan-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.id-scan-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(14, 148, 136, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.id-scan-title {
    font-weight: 700;
    font-size: 18px;
}

.id-scan-subtitle {
    color: var(--text-muted);
    font-size: 13px;
}

.id-scan-close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.id-scan-body {
    padding: 20px 24px 12px;
    overflow-y: auto;
}

.id-scan-section {
    margin-bottom: 16px;
}

.id-scan-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.id-scan-type-grid,
.id-scan-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.id-scan-type-btn,
.id-scan-choice {
    border: 1px solid var(--app-border);
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.id-scan-type-btn.active {
    border-color: #0d9488;
    background: rgba(14, 148, 136, 0.08);
    box-shadow: inset 0 0 0 1px rgba(14, 148, 136, 0.4);
}

.id-scan-choice:hover,
.id-scan-type-btn:hover {
    border-color: #94a3b8;
}

.id-scan-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(14, 148, 136, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.id-scan-type-title {
    font-weight: 600;
}

.id-scan-type-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.id-scan-choice-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.id-scan-choice-sub {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.id-scan-choice {
    padding: 20px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.id-scan-choice-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(14, 148, 136, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.id-scan-choice-title-text {
    font-weight: 600;
}

.id-scan-choice-subtext {
    font-size: 12px;
    color: var(--text-muted);
}

.id-scan-info {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    font-size: 13px;
    color: #1e3a8a;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.id-scan-video-wrap,
.id-scan-editor-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    min-height: 320px;
}

.id-scan-processed-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.id-scan-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.id-scan-scanline {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(14, 148, 136, 0.35);
}

.id-scan-upload-box {
    padding: 28px;
    border: 2px dashed #cbd5f5;
    border-radius: 16px;
    text-align: center;
    background: #f8fafc;
}

.id-scan-upload-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.id-scan-upload-btn {
    border: none;
    background: #0d9488;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
}

.id-scan-file {
    display: none;
}

.id-scan-image,
.id-scan-image-processed {
    width: 100%;
    height: auto;
    display: block;
}

.id-scan-overlay {
    position: absolute;
    inset: 0;
}

.id-scan-box {
    position: absolute;
    border: 3px solid rgba(220, 38, 38, 0.9);
    background: rgba(220, 38, 38, 0.15);
    cursor: move;
}

.id-scan-box.active {
    border-color: rgba(239, 68, 68, 0.95);
    background: rgba(239, 68, 68, 0.25);
}

.id-scan-box-label {
    position: absolute;
    top: -1px;
    left: -1px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-bottom-right-radius: 6px;
}

.id-scan-box-handle {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    background: rgba(239, 68, 68, 0.9);
    cursor: nwse-resize;
}

.id-scan-hint {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.id-scan-success {
    margin-top: 12px;
    background: rgba(16, 185, 129, 0.12);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
}

.id-scan-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--app-border);
    flex-wrap: wrap;
    background: #fff;
}

.id-scan-btn {
    border: 1px solid var(--app-border);
    background: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.id-scan-btn-ghost {
    width: min(520px, 100%);
}

.id-scan-btn-primary {
    background: #0d9488;
    color: #fff;
    border-color: transparent;
}

.id-scan-btn-success {
    background: #16a34a;
    color: #fff;
    border-color: transparent;
}

.id-scan-btn-warning {
    background: #f59e0b;
    color: #fff;
    border-color: transparent;
}

.id-scan-error {
    background: #fff7e6;
    border: 1px solid #facc15;
    border-radius: 14px;
    padding: 16px;
}

.id-scan-error-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.id-scan-error-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.id-scan-error-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.portal-overview-tabs .rz-tabview-nav {
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.portal-overview-tabs .rz-tabview-nav li a {
    font-weight: 600;
}

.portal-overview-tabs .rz-tabview-panels {
    padding-top: 0.75rem;
}

.portal-tab-card {
    box-shadow: none;
}

.portal-event-description {
    margin-top: 0.35rem;
}

.portal-documents {
    margin-top: 0.75rem;
    border-top: 1px dashed var(--app-border);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
    min-width: 0;
    margin-left: 1.4rem;
    padding-left: 1.2rem;
}

    .portal-actions .rz-button {
        width: auto;
        min-width: 130px;
        justify-content: center;
    }

.portal-document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: var(--app-surface-muted);
}

.portal-document-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portal-document-icon {
    color: var(--app-primary);
    background: var(--app-primary-ghost);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

@media (max-width: 960px) {
    .portal-actions {
        min-width: 0;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        width: 100%;
        justify-content: flex-start;
    }

        .portal-actions .rz-button {
            width: auto;
            min-width: 128px;
        }
}

.document-upload {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px dashed var(--app-border);
    border-radius: var(--app-radius-md);
    padding: 0.5rem 0.75rem;
    background: var(--app-surface-muted);
}

.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--app-primary-ghost);
    color: var(--app-primary);
    font-weight: 600;
    cursor: pointer;
}

.upload-input {
    display: none;
}

.upload-filename {
    color: var(--app-muted);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo-preview {
    max-width: 240px;
    max-height: 120px;
    object-fit: contain;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: var(--app-surface);
    padding: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.event-detail {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.event-detail-wide {
    grid-column: 1 / -1;
}

.event-detail-label {
    font-size: 0.85rem;
    color: var(--app-muted);
}

.event-detail-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--app-text);
}

.event-detail-value-multi {
    align-items: flex-start;
}

.event-detail-icon {
    color: #94a3b8;
    font-size: 1rem;
}

.event-detail-description {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--app-border);
}

.event-detail-text {
    margin-top: 0.35rem;
    color: var(--app-text);
    line-height: 1.5;
}

.care-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.care-summary-card {
    border-radius: var(--app-radius-md);
    padding: 1rem;
    border: 1px solid var(--app-border);
}

.care-summary-label {
    font-size: 0.85rem;
    color: var(--app-muted);
}

.care-summary-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.care-summary-primary {
    background: #eff6ff;
    color: #2563eb;
}

.care-summary-success {
    background: #ecfdf5;
    color: #16a34a;
}

.care-summary-warning {
    background: #fff7ed;
    color: #ea580c;
}

.care-level-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.care-level-card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    padding: 1rem;
    background: var(--app-surface);
}

.care-level-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.care-level-title {
    font-weight: 600;
}

.care-level-status {
    font-size: 1.2rem;
}

.care-icon-success {
    color: #16a34a;
}

.care-icon-warning {
    color: #f97316;
}

.care-level-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--app-muted);
    margin-bottom: 0.5rem;
}

.care-level-shortage {
    color: #f97316;
}

.care-progress {
    width: 100%;
    height: 0.5rem;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.care-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.2s ease;
}

.care-progress-success {
    background: #16a34a;
}

.care-progress-warning {
    background: #f97316;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-field-wide {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--app-muted);
}

.detail-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--app-text);
}

.detail-text {
    margin-top: 0.15rem;
    color: var(--app-text);
    line-height: 1.5;
}

.detail-icon {
    color: #94a3b8;
    font-size: 1rem;
}

.detail-item {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    padding: 1rem;
    background: var(--app-surface);
}

.detail-item-title {
    font-weight: 600;
}

.detail-item-subtitle {
    color: var(--app-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.detail-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--app-muted);
}

    .detail-item-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

.markdown-body {
    color: var(--app-text);
    line-height: 1.6;
}

    .markdown-body p {
        margin: 0 0 0.75rem;
    }

    .markdown-body ul,
    .markdown-body ol {
        margin: 0 0 0.75rem;
        padding-left: 1.25rem;
    }

    .markdown-body li + li {
        margin-top: 0.35rem;
    }

    .markdown-body h1,
    .markdown-body h2,
    .markdown-body h3,
    .markdown-body h4 {
        margin: 1rem 0 0.5rem;
        font-weight: 600;
    }

.markdown-editor {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.markdown-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.markdown-tool {
    min-height: 32px;
    padding: 0.25rem 0.4rem;
}

.markdown-input textarea {
    min-height: 120px;
}

.markdown-hint {
    font-size: 0.8rem;
    color: var(--app-muted);
}

.filter-card {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    padding: 1rem 1.25rem;
}

.mail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}

.mail-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto;
    gap: 1rem;
    align-items: end;
}

.mail-filter-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.mail-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--app-border);
    border-radius: 0.6rem;
    background: #ffffff;
    padding: 0.4rem 0.55rem;
}

.mail-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mail-editor-actions {
    display: flex;
    justify-content: flex-end;
}

.mail-preview-card {
    border-style: dashed;
    background: var(--app-surface-muted);
}

.mail-html-editor {
    min-height: 360px;
}

.merge-token {
    display: inline-block;
    padding: 1px 6px;
    background-color: var(--rz-secondary-lighter);
    color: var(--rz-secondary-darker);
    border: 1px solid var(--rz-secondary-light);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
    white-space: nowrap;
}

.mail-html-preview {
    color: var(--app-text);
    line-height: 1.5;
}

@media (max-width: 1280px) {
    .mail-filter-grid {
        grid-template-columns: 1fr;
    }

    .mail-filter-actions {
        justify-content: flex-start;
    }
}

.clickable-card {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .clickable-card:hover {
        border-color: #93c5fd;
        box-shadow: var(--app-shadow-md);
        transform: translateY(-1px);
    }

.ml-1 {
    margin-left: 0.25rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #047857;
}

.badge-warning {
    background: #fef3c7;
    color: #b45309;
}

.badge-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-neutral {
    background: #f1f5f9;
    color: #64748b;
}

.badge-opleiding-basis-ehbo {
    background: #e0f2fe;
    color: #075985;
}

.badge-opleiding-evenementen-zorgverlener {
    background: #dcfce7;
    color: #166534;
}

.badge-opleiding-medisch-hulpverlener {
    background: #fef3c7;
    color: #92400e;
}

.badge-opleiding-specialist-spoedzorg {
    background: #ffedd5;
    color: #9a3412;
}

.badge-opleiding-basis-zorgverlener {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-opleiding-spoed-zorgverlener {
    background: #ccfbf1;
    color: #115e59;
}

.badge-opleiding-medische-zorgverlener {
    background: #ffe4e6;
    color: #9f1239;
}

.badge-opleiding-artsen-specialistische-zorg {
    background: #e2e8f0;
    color: #0f172a;
}

.grid-two-column {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .grid-two-column {
        grid-template-columns: 1fr;
    }
}

.grid-two-column-reverse {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .grid-two-column {
        grid-template-columns: 1fr;
    }
}

.hulpverlening-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hulpverlening-card {
    padding: 1.25rem;
}

.hulpverlening-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.hulpverlening-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #dc2626;
    font-size: 1.4rem;
}

.hulpverlening-card-main {
    flex: 1;
    min-width: 0;
}

.hulpverlening-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--app-text);
}

.hulpverlening-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--app-muted);
}

    .hulpverlening-card-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

.hulpverlening-card-notes {
    margin-top: 0.6rem;
    color: #475569;
    font-size: 0.9rem;
}

.hulpverlening-card-status {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.letsel-card h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
}

.letsel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.letsel-toggle {
    display: flex;
    gap: 0.5rem;
}

.letsel-toggle-button {
    min-height: 34px;
    padding: 0.35rem 0.75rem;
}

.letsel-hint {
    margin-top: 0.35rem;
    color: var(--app-muted);
    font-size: 0.85rem;
}

.letsel-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.letsel-diagram {
    position: relative;
    width: 240px;
    height: 420px;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    background-color: #f8fafc;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

    .letsel-diagram.front {
        background-image: url('/images/body-front.svg');
    }

    .letsel-diagram.back {
        background-image: url('/images/body-back.svg');
    }

    .letsel-diagram.editable {
        cursor: crosshair;
    }

.letsel-marker-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.letsel-marker-dot {
    stroke: #ffffff;
    stroke-width: 0.6;
}

    .letsel-marker-dot.letsel-severity-licht {
        fill: #fbbf24;
    }

    .letsel-marker-dot.letsel-severity-matig {
        fill: #f97316;
    }

    .letsel-marker-dot.letsel-severity-ernstig {
        fill: #dc2626;
    }

.letsel-marker-text {
    fill: #ffffff;
    font-size: 3.2px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}

.letsel-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.letsel-marker-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    border: 2px solid #ffffff;
    box-shadow: var(--app-shadow-sm);
}

.letsel-list-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.letsel-list-title {
    font-weight: 600;
    color: var(--app-text);
}

.letsel-empty {
    color: var(--app-muted);
    font-size: 0.85rem;
}

.letsel-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.letsel-item {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    padding: 0.75rem 1rem;
    background: var(--app-surface-muted);
}

.letsel-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.letsel-item-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.letsel-type-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
}

.letsel-severity {
    padding: 0.15rem 0.45rem;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
}

.letsel-severity-licht {
    background: #fbbf24;
}

.letsel-severity-matig {
    background: #f97316;
}

.letsel-severity-ernstig {
    background: #dc2626;
}

.letsel-item-location {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--app-muted);
}

.letsel-item-description {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #475569;
}

.letsel-remove.rz-button.rz-button-light {
    border-color: transparent;
    background: transparent;
    min-height: auto;
    padding: 0.25rem;
}

.letsel-legend {
    border: 1px dashed var(--app-border);
    border-radius: var(--app-radius-md);
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
}

.letsel-legend-title {
    font-size: 0.75rem;
    color: var(--app-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.letsel-legend-items {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #475569;
}

.letsel-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.letsel-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.letsel-dialog-modal {
    top: 15vh !important;
}

.meetmoment-timeline {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.meetmoment-track {
    display: flex;
    gap: 1rem;
    min-width: max-content;
}

.meetmoment-column {
    width: 300px;
    border-right: 1px solid var(--app-border);
    padding-right: 1rem;
}

    .meetmoment-column:last-child {
        border-right: none;
        padding-right: 0;
    }

.meetmoment-column-header {
    border-bottom: 1px solid var(--app-border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.meetmoment-column-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--app-text);
}

.meetmoment-delta {
    font-size: 0.7rem;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
}

.meetmoment-column-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--app-muted);
    margin-top: 0.35rem;
}

    .meetmoment-column-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

.meetmoment-section {
    border-radius: var(--app-radius-md);
    padding: 0.6rem;
    border: 1px solid transparent;
    margin-bottom: 0.75rem;
}

.meetmoment-section-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.meetmoment-badge {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.meetmoment-section-body {
    font-size: 0.75rem;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meetmoment-note {
    font-size: 0.7rem;
    color: #475569;
}

.meetmoment-warning {
    font-size: 0.7rem;
    color: #dc2626;
    font-weight: 600;
}

.meetmoment-footer-note {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: var(--app-surface-muted);
    font-size: 0.7rem;
    color: #475569;
}

.trend-value {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.trend-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.trend-up {
    color: #16a34a;
}

.trend-down {
    color: #dc2626;
}

.trend-same {
    color: #64748b;
}

.meetmoment-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--app-border);
    font-size: 0.75rem;
    color: #475569;
}

.meetmoment-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.meetmoment-section-a {
    background: #fef2f2;
    border-color: #fecaca;
}

.meetmoment-section-b {
    background: #fff7ed;
    border-color: #fed7aa;
}

.meetmoment-section-c {
    background: #fef9c3;
    border-color: #fde68a;
}

.meetmoment-section-d {
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.meetmoment-section-e {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.meetmoment-badge-a {
    background: #dc2626;
}

.meetmoment-badge-b {
    background: #f97316;
}

.meetmoment-badge-c {
    background: #f59e0b;
}

.meetmoment-badge-d {
    background: #16a34a;
}

.meetmoment-badge-e {
    background: #2563eb;
}

@media (max-width: 900px) {
    .hulpverlening-card-content {
        flex-direction: column;
    }

    .hulpverlening-card-status {
        margin-left: 0;
    }

    .letsel-content {
        grid-template-columns: 1fr;
    }

    .meetmoment-column {
        width: 260px;
    }

    .patient-info-grid {
        grid-template-columns: 1fr;
    }

    .patient-signature {
        border-left: none;
        padding-left: 0;
        border-top: 1px dashed var(--app-border);
        padding-top: 1rem;
    }
}

.signature-pad-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.signature-pad-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--app-text);
}

.signature-pad-canvas-wrapper {
    position: relative;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-md);
    background: #ffffff;
}

.signature-pad-canvas {
    width: 100%;
    height: 160px;
    display: block;
    cursor: crosshair;
    touch-action: none;
    -ms-touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.signature-pad-clear {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.78rem;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-sm, 4px);
    background: var(--app-surface, #fff);
    color: var(--app-muted);
    cursor: pointer;
}

.signature-pad-clear:hover {
    background: var(--app-hover, #f5f5f5);
}

.signature-pad-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--app-muted);
}

.full-width {
    width: 100%;
}

.listbox-tall {
    height: 150px;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #f5f3ff 100%);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    border-radius: var(--app-radius-xl);
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow-lg);
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--app-primary);
    color: #ffffff;
    font-weight: 700;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.login-demo {
    background: #f8fafc;
    border-radius: 12px;
    padding: 0.75rem;
    border: 1px solid var(--app-border);
}

.login-form-actions {
    margin-top: 1.1rem;
    display: grid;
    row-gap: 0.85rem;
}

.login-form-actions--stacked {
    grid-template-columns: 1fr;
}

.login-form-actions .rz-button {
    justify-content: center;
}

.login-submit-button.rz-button {
    width: 100%;
    min-height: 44px;
    letter-spacing: 0.04em;
}

.login-secondary-button.rz-button {
    width: auto;
    min-height: 38px;
    padding-inline: 1rem;
    justify-self: start;
}

.login-secondary-button.rz-button.rz-button-light {
    background: #f1f5f9;
    border-color: #dbe4ef;
    color: #334155;
}

.login-secondary-button.rz-button.rz-button-light:hover {
    background: #e8eff7;
    border-color: #d0dceb;
    color: #0f172a;
}

.login-2fa-setup {
    border: 1px solid var(--app-border);
    border-radius: 12px;
    padding: 0.75rem;
    background: #f8fafc;
}

.login-2fa-secret {
    margin-top: 0.4rem;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    word-break: break-all;
}

.two-factor-qr {
    width: 200px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 1px solid var(--app-border);
    background: #ffffff;
    padding: 0.5rem;
}

.two-factor-panel {
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: #f8fafc;
    padding: 1rem;
}

.two-factor-status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    margin-top: 0.2rem;
}

/* Keep 2FA security code input neutral (no bright green focus ring). */
.rz-security-code {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.rz-security-code:focus-within {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.rz-security-code .rz-security-code-input {
    border: 1px solid var(--app-input-border) !important;
    box-shadow: none !important;
    outline: none !important;
}

.rz-security-code .rz-security-code-input:focus,
.rz-security-code .rz-security-code-input.rz-state-focus,
.rz-security-code .rz-security-code-input.rz-state-focused {
    border-color: var(--app-input-border) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Radzen overrides */
.rz-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--app-radius-md);
    font-weight: 600;
    box-shadow: none;
    padding: 0.5rem 1rem;
    min-height: 42px;
}

.rz-numeric-button {
    min-height: unset;
    min-width: unset;
    padding: 0;
    gap: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rz-button.rz-button-primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: #ffffff;
}

    .rz-button.rz-button-primary:hover {
        background: var(--app-primary-dark);
        border-color: var(--app-primary-dark);
    }

.rz-button.rz-button-secondary {
    background: var(--app-primary-soft);
    border-color: var(--app-primary-soft);
    color: #1e40af;
}

    .rz-button.rz-button-secondary:hover {
        background: #bfdbfe;
        border-color: #bfdbfe;
        color: #1e3a8a;
    }

.rz-button.rz-button-light {
    background: #ffffff;
    border-color: var(--app-border);
    color: #0f172a;
}

    .rz-button.rz-button-light:hover {
        background: #f8fafc;
        border-color: var(--app-border);
    }

.rz-button.details-link-button {
    background: transparent;
    border: none;
    padding: 0;
    min-height: auto;
    color: #2563eb;
    box-shadow: none;
}

    .rz-button.details-link-button:hover {
        background: transparent;
        color: #1d4ed8;
    }

    .rz-button.details-link-button:focus-visible {
        outline: 2px solid #93c5fd;
        outline-offset: 2px;
    }

.rz-button.rz-button-danger {
    background: var(--app-danger);
    border-color: var(--app-danger);
    color: #ffffff;
}

    .rz-button.rz-button-danger:hover {
        background: #dc2626;
        border-color: #dc2626;
    }

.rz-card,
.rz-panel,
.rz-dialog,
.rz-notification,
.rz-overlaypanel,
.rz-accordion,
.rz-tabview,
.rz-datatable {
    border-radius: var(--app-radius-lg);
    border-color: var(--app-border);
    box-shadow: var(--app-shadow-sm);
}

.rz-dialog {
    border-radius: var(--app-radius-xl);
    box-shadow: var(--app-shadow-lg);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.rz-dialog-titlebar {
    border-bottom: 1px solid var(--app-border);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.rz-dialog-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.rz-dialog-content .dialog-footer {
    position: sticky;
    bottom: -1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: -1.5rem;
    padding: 0.85rem 1.5rem 1.15rem;
    background: var(--app-surface);
    border-top: 1px solid var(--app-border);
    z-index: 3;
}

.rz-dialog-mask {
    background: rgba(15, 23, 42, 0.5);
}

.rz-inputtext,
.rz-textbox,
.rz-textarea,
.rz-dropdown,
.rz-numeric,
.rz-datepicker,
.rz-password,
.rz-autocomplete,
.rz-listbox {
    background: var(--app-input-bg);
    border-color: var(--app-input-border);
    border-radius: var(--app-radius-md);
    color: #0f172a;
    box-shadow: none;
}

    .rz-inputtext:focus,
    .rz-textbox:focus-within,
    .rz-textarea:focus-within,
    .rz-dropdown:focus-within,
    .rz-numeric:focus-within,
    .rz-datepicker:focus-within,
    .rz-password:focus-within,
    .rz-autocomplete:focus-within,
    .rz-listbox:focus-within {
        border-color: var(--app-primary);
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
    }

    .rz-textbox input,
    .rz-textarea textarea,
    .rz-dropdown-label,
    .rz-numeric input,
    .rz-datepicker input,
    .rz-password input,
    .rz-autocomplete input {
        padding: 0px;
        color: #0f172a;
    }

    .rz-textbox input,
    .rz-dropdown-label,
    .rz-numeric input,
    .rz-datepicker input,
    .rz-password input,
    .rz-autocomplete input,
    .rz-inputtext {
        min-height: 42px;
    }

    .rz-textarea textarea {
        min-height: 120px;
    }

.rz-dropdown-trigger {
    color: #64748b;
}

.rz-dropdown-panel,
.rz-listbox {
    border: 1px solid var(--app-border);
    box-shadow: var(--app-shadow-md);
}

.rz-dropdown-item,
.rz-listbox-item {
    padding: 0.55rem 0.85rem;
    border-radius: var(--app-radius-sm);
    color: #0f172a;
}

    .rz-dropdown-item:hover,
    .rz-listbox-item:hover {
        background: #f8fafc;
    }

    .rz-dropdown-item.rz-state-highlight,
    .rz-listbox-item.rz-state-highlight {
        background: var(--app-primary-ghost);
        color: var(--app-primary-dark);
    }

.rz-datatable-table {
    border-color: var(--app-border);
}

.rz-datatable-thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-color: var(--app-border);
}

.rz-datatable-tbody > tr {
    border-color: #f1f5f9;
}

    .rz-datatable-tbody > tr:hover {
        background: #f8fafc;
    }

.rz-paginator {
    border-top: 1px solid var(--app-border);
    background: #ffffff;
}

.rz-paginator-element {
    border-radius: var(--app-radius-sm);
    color: #475569;
}

    .rz-paginator-element.rz-state-active {
        background: var(--app-primary);
        color: #ffffff;
    }

.rz-datalist .rz-datalist-item {
    background: transparent;
    border: none;
    padding: 0.75rem 0;
}

.rz-panelmenu {
    border: none;
    background: transparent;
}

.app-sidebar .rz-panelmenu {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-block: 0.5rem;
}

.app-sidebar .rz-panelmenu .rz-navigation-item-link {
    color: var(--app-sidebar-text);
    border-radius: 0.5rem;
    margin: 0.1rem 0.5rem;
}

    .app-sidebar .rz-panelmenu .rz-navigation-item-link:hover {
        background: var(--app-sidebar-hover);
        color: #0f766e;
    }

    .app-sidebar .rz-panelmenu .rz-navigation-item-link.rz-state-active {
        background: var(--app-primary);
        color: #ffffff;
    }

.rz-progressbar {
    background: #e2e8f0;
}

.rz-progressbar-value {
    background: var(--app-primary);
}

.rz-notification-item {
    border-radius: var(--app-radius-lg);
    border: 1px solid var(--app-border);
    background: #ffffff;
    box-shadow: var(--app-shadow-md);
}

.rz-alert {
    border-radius: var(--app-radius-lg);
    border: 1px solid var(--app-border);
    padding: 0.75rem 1rem;
}

.rz-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

.rz-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.rz-alert-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

.rz-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}



.rz-panel-menu .rz-navigation-item {
    border-block-end: 0px;
}

.rz-panel-menu .rz-navigation-item-wrapper:hover {
    background-color: var(--app-primary-dark);
    color: rgb(248, 250, 252);
}

.rz-panel-menu .rz-navigation-item-active, .rz-panel-menu .rz-navigation-item-wrapper-active {
    background-color: var(--app-primary-dark);
    color: rgb(248, 250, 252);
}

.letselbeeld-select {
    min-width: 280px;
}

.letselbeeld-version {
    width: 130px;
}

.letselbeeld-preview {
    display: grid;
    gap: 1rem;
}

.letselbeeld-section h2 {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.letselbeeld-section h3 {
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.letselbeeld-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.letselbeeld-callout {
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
}

.letselbeeld-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.25rem;
    table-layout: fixed;
}

.letselbeeld-col-verdeling-label {
    width: 60%;
}

.letselbeeld-col-verdeling-aantal {
    width: 20%;
}

.letselbeeld-col-verdeling-percentage {
    width: 20%;
}

.letselbeeld-col-tijd-uurblok {
    width: 30%;
}

.letselbeeld-col-tijd-dagdeel {
    width: 30%;
}

.letselbeeld-col-tijd-aantal {
    width: 20%;
}

.letselbeeld-col-tijd-percentage {
    width: 20%;
}

.letselbeeld-table th,
.letselbeeld-table td {
    border: 1px solid #dbe4ef;
    padding: 0.45rem 0.6rem;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.letselbeeld-table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
}

.letselbeeld-table--verdeling th:nth-child(2),
.letselbeeld-table--verdeling td:nth-child(2),
.letselbeeld-table--verdeling th:nth-child(3),
.letselbeeld-table--verdeling td:nth-child(3),
.letselbeeld-table--tijdspatroon th:nth-child(3),
.letselbeeld-table--tijdspatroon td:nth-child(3),
.letselbeeld-table--tijdspatroon th:nth-child(4),
.letselbeeld-table--tijdspatroon td:nth-child(4) {
    text-align: right;
}

@media (max-width: 920px) {
    .letselbeeld-select {
        min-width: 220px;
    }
}

.rz-panel-menu .rz-navigation-menu .rz-navigation-item-wrapper {
    margin-block: var(--rz-panel-menu-item-2nd-level-margin-block);
    margin-inline: var(--rz-panel-menu-item-2nd-level-margin-inline);
    border-radius: var(--rz-panel-menu-item-2nd-level-border-radius);
    overflow: hidden;
}

    .rz-panel-menu .rz-navigation-menu .rz-navigation-item-wrapper:hover {
        background-color: #0d9488;
        color: rgb(248, 250, 252);
    }

.rz-panel-menu .rz-navigation-item-active .rz-navigation-item-icon,
.rz-panel-menu .rz-navigation-item-wrapper-active .rz-navigation-item-icon {
    color: rgb(248, 250, 252);
}

.blue-stat-card {
    color: var(--color-blue-500);
    background-color: var(--color-blue-50);
    border: 1px solid var(--color-blue-500);
}

.blue-stat-card-icon {
    background-color: var(--color-blue-500);
    color: white;
}

.orange-stat-card {
    color: var(--color-orange-500);
    background-color: var(--color-orange-50);
    border: 1px solid var(--color-orange-500);
}

.orange-stat-card-icon {
    background-color: var(--color-orange-500);
    color: white;
}


.purple-stat-card {
    color: var(--color-purple-500);
    background-color: var(--color-purple-50);
    border: 1px solid var(--color-purple-500);
}

.purple-stat-card-icon {
    background-color: var(--color-purple-500);
    color: white;
}

.green-stat-card {
    color: var(--color-green-500);
    background-color: var(--color-green-50);
    border: 1px solid var(--color-green-500);
}

.green-stat-card-icon {
    background-color: var(--color-green-500);
    color: white;
}


.indigo-stat-card {
    color: var(--color-indigo-500);
    background-color: var(--color-indigo-50);
    border: 1px solid var(--color-indigo-500);
}

.indigo-stat-card-icon {
    background-color: var(--color-indigo-500);
    color: white;
}

.red-stat-card {
    color: var(--color-red-500);
    background-color: var(--color-red-50);
    border: 1px solid var(--color-red-500);
}

.red-stat-card-icon {
    background-color: var(--color-red-500);
    color: white;
}

.cyan-stat-card {
    color: var(--color-cyan-500);
    background-color: var(--color-cyan-50);
    border: 1px solid var(--color-cyan-500);
}

.cyan-stat-card-icon {
    background-color: var(--color-cyan-500);
    color: white;
}

.slate-stat-card {
    color: var(--color-slate-500);
    background-color: var(--color-slate-50);
    border: 1px solid var(--color-slate-500);
}

.slate-stat-card-icon {
    background-color: var(--color-slate-500);
    color: white;
}



.risico-title {
    background-color: var(--color-blue-50);
    border: 1px solid var(--color-blue-500);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.rz-text-bold {
    font-weight: bold;
}

.rz-text-secondary {
    font-weight: 600;
}

.rz-gap-2 {
    margin-top: 2rem;
}

.horizontal-gap {
    display: flex;
    gap: 0.5rem;
}

/* Chatbot */
.chatbot-root {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.chatbot-fab {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.chatbot-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 22px 36px rgba(15, 23, 42, 0.28);
}

.chatbot-fab__icon {
    font-size: 1.6rem;
}

.chatbot-fab__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    animation: chatbot-pulse 1.8s infinite;
}

.chatbot-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.75rem;
    background: #0f172a;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    pointer-events: none;
}

.chatbot-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 18px;
    border-width: 6px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.chatbot-fab:hover .chatbot-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.chatbot-window {
    width: 380px;
    height: 600px;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: height 0.3s ease, width 0.3s ease;
}

.chatbot-window.is-minimized {
    height: 64px;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
}

.chatbot-header__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-header__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.chatbot-header__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.chatbot-header__title {
    font-weight: 600;
    font-size: 0.95rem;
}

.chatbot-header__status {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

.chatbot-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.chatbot-icon-button {
    width: 34px;
    height: 34px;
    border-radius: 0.65rem;
    border: none;
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    cursor: pointer;
}

.chatbot-icon-button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chatbot-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.chatbot-message.from-user {
    flex-direction: row-reverse;
}

.chatbot-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
    font-size: 1rem;
}

.chatbot-message.from-user .chatbot-avatar {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.chatbot-bubble {
    max-width: 75%;
    background: #ffffff;
    color: #0f172a;
    border-radius: 1rem;
    padding: 0.75rem 0.9rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.chatbot-message.from-bot .chatbot-bubble {
    border-top-left-radius: 0.3rem;
}

.chatbot-message.from-user .chatbot-bubble {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
    border-top-right-radius: 0.3rem;
}

.chatbot-bubble p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: pre-line;
}

.chatbot-meta {
    font-size: 0.68rem;
    color: #64748b;
}

.chatbot-message.from-user .chatbot-meta {
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.chatbot-citations {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #475569;
}

.chatbot-message.from-user .chatbot-citations {
    color: rgba(255, 255, 255, 0.8);
}

.chatbot-citations__label {
    font-weight: 600;
    color: inherit;
}

.chatbot-citations a {
    color: inherit;
    text-decoration: underline;
}

.chatbot-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.chatbot-typing span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #94a3b8;
    animation: chatbot-bounce 1s infinite;
}

.chatbot-typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.chatbot-typing span:nth-child(3) {
    animation-delay: 0.3s;
}

.chatbot-quick-actions {
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1rem 0.9rem;
    background: #ffffff;
}

.chatbot-quick-actions__label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.chatbot-quick-actions__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chatbot-quick-action {
    border: none;
    background: #ecfeff;
    color: #0f766e;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chatbot-quick-action:hover {
    background: #cffafe;
}

.chatbot-input {
    border-top: 1px solid #e2e8f0;
    padding: 0.85rem 1rem 1rem;
    background: #ffffff;
}

.chatbot-input form {
    display: flex;
    gap: 0.5rem;
}

.chatbot-input__field {
    flex: 1;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    outline: none;
}

.chatbot-input__field:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.chatbot-input__send {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.chatbot-input__send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chatbot-note {
    margin-top: 0.5rem;
    font-size: 0.68rem;
    color: #64748b;
}

@keyframes chatbot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes chatbot-bounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 640px) {
    .chatbot-root {
        bottom: 1rem;
        right: 1rem;
    }

    .chatbot-window {
        width: calc(100vw - 2rem);
        height: min(70vh, 560px);
    }

    .chatbot-window.is-minimized {
        height: 64px;
    }
}


.rz-state-highlight.rz-menuitem, .rz-state-highlight.rz-autocomplete-list-item, .rz-state-highlight.rz-multiselect-item, .rz-autocomplete-items li.rz-state-highlight, .rz-dropdown-items li.rz-state-highlight, .rz-multiselect-items li.rz-state-highlight, .rz-dropdown-item.rz-state-highlight {
    background-color: transparent;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    color: var(--app-text);
}


    .rz-state-highlight.rz-menuitem:hover, .rz-state-highlight.rz-autocomplete-list-item:hover, .rz-state-highlight.rz-multiselect-item:hover, .rz-autocomplete-items li.rz-state-highlight:hover, .rz-dropdown-items li.rz-state-highlight:hover, .rz-multiselect-items li.rz-state-highlight:hover, .rz-dropdown-item.rz-state-highlight:hover {
        background-color: transparent;
        background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
        color: var(--app-text);
    }


.rz-pager-page.rz-state-active {
    background-color: transparent;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    color: var(--app-text);
    border: var(--rz-pager-numeric-button-selected-border);
    padding: var(--rz-pager-numeric-button-selected-padding);
}

.notfound-medical-card {
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff 0%, #f8fffe 45%, #f0fdfa 100%);
}

.notfound-medical-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.notfound-medical-illustration {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    background: linear-gradient(160deg, #ecfeff 0%, #ccfbf1 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    position: relative;
}

.notfound-medical-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--app-primary);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.16);
}

.notfound-medical-icon {
    font-size: 2rem;
}

.notfound-medical-code {
    font-size: 3rem;
    font-weight: 700;
    color: #0f766e;
    letter-spacing: 0.04em;
    line-height: 1;
}

.notfound-medical-pulse {
    width: 100%;
    height: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
}

.notfound-medical-pulse::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 15%,
        #14b8a6 24%,
        transparent 28%,
        transparent 35%,
        #14b8a6 40%,
        transparent 44%,
        transparent 100%);
    animation: notfound-pulse 2.4s linear infinite;
}

.notfound-medical-content h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.3rem;
}

.notfound-medical-content p {
    margin: 0.65rem 0 0;
    color: #334155;
}

.notfound-medical-list {
    margin: 1rem 0 0;
    padding-left: 1.15rem;
    color: #334155;
    display: grid;
    gap: 0.45rem;
}

.notfound-medical-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

@keyframes notfound-pulse {
    from {
        transform: translateX(-35%);
    }

    to {
        transform: translateX(35%);
    }
}

@media (max-width: 900px) {
    .notfound-medical-layout {
        grid-template-columns: 1fr;
    }

    .notfound-medical-code {
        font-size: 2.5rem;
    }
}
