:root {
    /* Hoogte van .sv-header; wordt gebruikt door de signaleringsbeeld-viewer
       om de SVG-overlay te positioneren onder de header. */
    --sv-header-height: 63px;
}

html,
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    overflow-x: auto;
}

a {
    color: #0b5ed7;
}

.login-wrapper {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
}

.login-card h1 {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea,
.users-table input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
}

.checkbox-field {
    margin-top: 0.15rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    border: none;
    border-radius: 8px;
    color: white;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary {
    background: #0b5ed7;
}

.btn-primary:hover {
    background: #0a53be;
}

.btn-secondary {
    background: #475569;
}

.btn-secondary:hover {
    background: #334155;
}

.btn-danger {
    background: #dc2626;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-full {
    width: 100%;
}

.page-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    padding: 1rem;
}

.card-panel h2 {
    margin-top: 0;
}

.page-intro {
    margin: 0.75rem 0 1rem;
    color: #334155;
    max-width: 72rem;
}

.page-intro p {
    margin: 0;
    line-height: 1.55;
}

.page-intro p + p {
    margin-top: 0.6rem;
}

.grid-form {
    display: grid;
    gap: 0.8rem;
}

.form-actions {
    margin-top: 0.25rem;
}

.feedback-success {
    margin: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid #86efac;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
}

.feedback-error-list {
    margin: 0;
    padding: 0.75rem 1.4rem;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
}

.feedback-info {
    margin: 0.5rem 0 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    background: #f0f9ff;
    color: #0369a1;
}

.feedback-waarschuwing {
    margin: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
}

/* Tabel met volledig zichtbaar grid (omlijning alle cellen) */
.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th,
.result-table td {
    text-align: left;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cbd5e1;
    vertical-align: middle;
}

.result-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
}

.result-table .row--onvolledig td {
    background: #fef2f2;
    color: #991b1b;
}

.table-wrap {
    overflow-x: auto;
}

.table-wrap--wide {
    width: 100%;
}

.page-stack--gebruikersbeheer {
    width: min(1500px, calc(100vw - 2rem));
    margin-left: 50%;
    transform: translateX(-50%);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrap--wide .users-table {
    min-width: 1350px;
}

.users-table th,
.users-table td {
    text-align: left;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.users-table th {
    color: #334155;
    font-weight: 600;
}

.row-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.vergl-label {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}

.vergl-label--nieuwer {
    background: #dcfce7;
    color: #166534;
}

.vergl-label--ouder {
    background: #fef9c3;
    color: #854d0e;
}

.vergl-label--nieuw {
    background: #dbeafe;
    color: #1e40af;
}

.vergl-label--gelijk {
    background: #f1f5f9;
    color: #475569;
}

/* ── Zoekmodule ───────────────────────────────────────────────────────── */

.tab-bar {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin: 0.75rem 0 1.25rem;
    gap: 0;
}

.tab-btn {
    border: none;
    background: none;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    color: #475569;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 6px 6px 0 0;
}

.tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.tab-btn--actief {
    color: #0b5ed7;
    border-bottom-color: #0b5ed7;
    font-weight: 600;
}

.zoek-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.zoek-filterbar .form-field {
    flex: 1 1 150px;
    min-width: 150px;
}

.zoek-filterbar__zoekknop {
    flex: 0 0 auto !important;
    min-width: auto !important;
}

.zoek-resultaat-telling {
    color: #475569;
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
}

.row--selected td {
    background: #dbeafe;
    color: #1e40af;
}

.td-mono {
    font-family: "Courier New", monospace;
    font-size: 0.8rem;
}

.detail-panel {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.detail-panel h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #334155;
}

.detail-table {
    width: auto;
    min-width: 320px;
}

.detail-table th {
    width: 200px;
    white-space: nowrap;
}

.detail-table__subrow {
    padding-left: 1.5rem !important;
    font-weight: normal;
    color: #475569;
}

/* ── Signaleringsbeeld: highlight-markering ─────────────────────────────── */

.sb-element-highlight {
    animation: sb-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes sb-pulse {
    from { filter: drop-shadow(0 0 2px #fbbf24); }
    to   { filter: drop-shadow(0 0 8px #fbbf24) drop-shadow(0 0 3px #f59e0b); }
}

/* ── Zoeken: "Toon op SB" actiebalk + SB-keuzelijst ────────────────────── */

.detail-panel__acties {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sb-keuze-lijst {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.875rem;
}

.sb-keuze-lijst span {
    color: #1e40af;
    font-weight: 500;
}

.sb-keuze-knop {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
}

/* ── Configuratiebeheer: inline IAUF upload in actiekolom ─────────────── */

.config-acties {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.iauf-upload-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.35rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.85rem;
}

.iauf-upload-inline--aanwezig {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
    font-weight: 600;
}

.iauf-upload-inline input[type="file"] {
    font-size: 0.85rem;
}
