html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.config-foutbalk {
    background: #9b1c1c;
    color: #fff;
    padding: 12px 20px 14px 20px;
    border-bottom: 4px solid #7f1d1d;
    font-size: 0.95rem;
    line-height: 1.4;
}

.config-foutbalk__kop {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.config-foutbalk__lijst {
    margin: 0 0 8px 1.2rem;
    padding: 0;
}

.config-foutbalk__lijst li {
    margin-bottom: 8px;
}

.config-foutbalk__sleutel {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.85em;
    opacity: 0.9;
}

.config-foutbalk__uitleg {
    font-weight: 400;
    margin-top: 2px;
}

.config-foutbalk__actie {
    font-size: 0.85rem;
    opacity: 0.95;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

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+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT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YxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

.table-hover > tbody > tr.activiteit-klikbaar {
    cursor: pointer;
}

.table-hover > tbody > tr.activiteit-klikbaar:hover {
    --bs-table-hover-bg: #e3f2fd;
    background-color: #e3f2fd;
}

.inspecteur-edit-cel {
    width: 2.2rem;
    white-space: nowrap;
    vertical-align: middle;
}

.inspecteur-edit-knop {
    display: inline-flex;
    align-items: center;
    color: #5e35b1;
    text-decoration: none;
}

.inspecteur-edit-knop:hover,
.inspecteur-tabel tbody tr:hover .inspecteur-edit-knop {
    color: #4527a0;
}

.inspecteur-naam {
    font-weight: 700;
    color: #212529;
    text-decoration: none;
}

.inspecteur-naam:hover,
.inspecteur-tabel tbody tr:hover .inspecteur-naam {
    color: #4527a0;
    text-decoration: underline;
}

/* Vaste omgevingenbalk onderaan (staging/test/demo) */
.omgeving-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    min-height: 3.25rem;
    padding: 0.65rem 1rem;
    background: #c62828;
    color: #fff;
    border-top: 4px solid #8e0000;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.28);
    font-size: clamp(1.15rem, 2.2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    pointer-events: none;
}

.omgeving-banner__label {
    background: #fff;
    color: #c62828;
    padding: 0.15rem 0.55rem;
    border-radius: 0.2rem;
}

.omgeving-banner__tekst {
    font-weight: 700;
    letter-spacing: 0.02em;
}

body:has(.omgeving-banner),
.heeft-omgeving-banner {
    padding-bottom: 4rem;
}

/* Tijdelijke meldingsbox bovenaan: alleen platformbeheerder */
.platform-functie-melding {
    position: fixed;
    top: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20050;
    width: min(40rem, calc(100vw - 1.5rem));
    padding: 1.15rem 1.4rem 1.25rem;
    background: #fff;
    color: #212121;
    border: 4px solid #c62828;
    border-radius: 0.45rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
    text-align: center;
    pointer-events: none;
    animation: platform-melding-in 0.25s ease-out;
}

.platform-functie-melding__kop {
    display: inline-block;
    background: #c62828;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 0.7rem;
}

.platform-functie-melding__tekst {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
}

.platform-functie-melding__tekst strong {
    font-weight: 800;
}

@keyframes platform-melding-in {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.platform-functie-melding.is-weg {
    animation: platform-melding-uit 0.4s ease-in forwards;
}

@keyframes platform-melding-uit {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(-12px); }
}

/* Menu-iconen: unieke kleur per rol */
.mud-nav-link.nav-icon-platform .mud-nav-link-icon,
.mud-nav-link.nav-icon-platform .mud-icon-root {
    color: #c62828 !important;
}

.mud-nav-link.nav-icon-beheerder .mud-nav-link-icon,
.mud-nav-link.nav-icon-beheerder .mud-icon-root {
    color: #4527a0 !important;
}

/* Identity (inloggen / wachtwoord herstellen) — zelfde blauw als Beheer */
.identity-body {
    min-height: 100vh;
    margin: 0;
    box-sizing: border-box;
    font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(66, 165, 245, 0.35), transparent 55%),
        linear-gradient(165deg, #0d47a1 0%, #1565c0 42%, #1976d2 70%, #42a5f5 100%);
    color: #212529;
}

.identity-body.heeft-omgeving-banner .identity-shell {
    min-height: calc(100vh - 4rem);
}

.identity-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
}

.identity-card {
    width: 100%;
    max-width: 26.5rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 18px 50px rgba(13, 71, 161, 0.28);
    overflow: hidden;
}

.identity-card__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.4rem;
    background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
    color: #fff;
}

.identity-card__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.identity-card__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.2;
}

.identity-card__subtitle {
    margin: 0.1rem 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.92;
}

.identity-card__body {
    padding: 1.5rem 1.5rem 1.65rem;
}

.identity-heading {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0d47a1;
}

.identity-lead {
    color: #5f6b7a;
    margin-bottom: 1.15rem;
    font-size: 0.95rem;
}

.identity-card__body .form-label {
    font-weight: 500;
    color: #37474f;
}

.identity-card__body .form-control-lg {
    min-height: 2.85rem;
    font-size: 1rem;
}

.identity-submit {
    background-color: #1976d2;
    border-color: #1565c0;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.identity-submit:hover,
.identity-submit:focus {
    background-color: #1565c0;
    border-color: #0d47a1;
}

.identity-extra {
    margin: 1rem 0 0;
    text-align: center;
}

.identity-extra a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}

.identity-extra a:hover {
    text-decoration: underline;
}

.identity-alert {
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
}

.identity-alert.validation-summary-valid {
    display: none;
}

.identity-alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

@media (max-width: 480px) {
    .identity-card__body {
        padding: 1.2rem 1.1rem 1.35rem;
    }

    .identity-card__header {
        padding: 1rem 1.1rem;
    }
}