/* /Authentication/AuthSettingsPanel.razor.rz.scp.css */
.auth-settings[b-yrprxuyvce] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.auth-settings-section[b-yrprxuyvce] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--malfi-border);
    border-radius: 14px;
    background: var(--malfi-surface-subtle);
}

    .auth-settings-section > header[b-yrprxuyvce] {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9375rem;
        font-weight: 700;
        color: var(--malfi-text);
    }

        .auth-settings-section > header[b-yrprxuyvce]  .mud-icon-root {
            color: var(--malfi-accent);
        }
/* /Companies/Components/CompanyFilterBar.razor.rz.scp.css */
.company-filter-panel[malfi-page] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px 20px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    background: var(--malfi-surface-subtle);
}

    .company-filter-group[malfi-page] {
        display: grid;
        gap: 8px;
        align-content: start;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .company-filter-group > legend[malfi-page] {
        margin-bottom: 4px;
        padding: 0;
        color: var(--malfi-text-muted);
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

[malfi-page] .company-filter-select {
    margin: 0;
    min-width: 0;
}

/* A long label wraps instead of pushing the column wider than the panel. */
.company-filter-group[malfi-page]  .mud-checkbox,
.company-filter-group[malfi-page]  .mud-checkbox p {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.company-filter-chips[malfi-page] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.company-filter-chip[malfi-page] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 30px;
    padding: 4px 8px 4px 12px;
    text-align: left;
    border: 1px solid var(--malfi-accent);
    border-radius: 999px;
    background: var(--malfi-surface-accent);
    color: var(--malfi-accent);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

    .company-filter-chip:focus-visible[malfi-page],
    .company-filter-clear:focus-visible[malfi-page] {
        outline: none;
        box-shadow: var(--malfi-ring);
    }

    [malfi-page] .company-filter-chip .mud-icon-root {
        font-size: 16px;
    }

.company-filter-clear[malfi-page] {
    padding: 0 4px;
    border: 0;
    background: none;
    color: var(--malfi-text-secondary);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* Phone: one column, the panel scrolls with the page. */
@media (max-width: 600px) {
    .company-filter-panel[malfi-page] {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}
/* /Companies/Components/CompanyMap.razor.rz.scp.css */
.company-map-chips[malfi-page] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.company-map-chip[malfi-page] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--malfi-border);
    border-radius: 999px;
    background: var(--malfi-surface);
    color: var(--malfi-text-secondary);
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

    .company-map-chip:hover[malfi-page],
    .company-map-chip:focus-visible[malfi-page] {
        border-color: var(--malfi-border-strong);
        outline: none;
        box-shadow: var(--malfi-ring);
    }

    .company-map-chip.is-off[malfi-page] {
        color: var(--malfi-text-faint);
        text-decoration: line-through;
    }

        .company-map-chip.is-off .company-map-swatch[malfi-page] {
            opacity: 0.35;
        }

.company-map-chip-count[malfi-page] {
    color: var(--malfi-text-muted);
    font-variant-numeric: tabular-nums;
}

.company-map-swatch[malfi-page] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.company-map[malfi-page] {
    border-radius: 12px;
    border: 1px solid var(--malfi-border);
    z-index: 0;
}

/* ---------- Phone and tablet (US 657): the states in a dropdown instead of the chips ---------- */
.company-map-states[malfi-page] {
    position: relative;
    margin-bottom: 12px;
}

.company-map-states-button[malfi-page] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 40px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--malfi-input-border);
    border-radius: 10px;
    background: var(--malfi-surface);
    color: var(--malfi-text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

    .company-map-states-button[aria-expanded="true"][malfi-page] {
        border-color: var(--malfi-accent);
    }

    .company-map-states-button:focus-visible[malfi-page] {
        outline: none;
        box-shadow: var(--malfi-ring);
    }

.company-map-states-swatches[malfi-page] {
    display: inline-flex;
    gap: 3px;
}

.company-map-states-text[malfi-page] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* A tap next to the list closes it. */
.company-map-states-backdrop[malfi-page] {
    position: fixed;
    inset: 0;
    z-index: 2;
}

/* Above the map: Leaflet's panes sit inside .company-map (z-index 0), so 3 is enough. */
.company-map-states-list[malfi-page] {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    z-index: 3;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    background: var(--malfi-surface);
    box-shadow: var(--malfi-shadow-md, 0 8px 24px rgba(16, 24, 40, 0.12));
    list-style: none;
}

.company-map-state-option[malfi-page] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--malfi-text);
    font: inherit;
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
}

    .company-map-state-option:hover[malfi-page],
    .company-map-state-option:focus-visible[malfi-page] {
        outline: none;
        background: var(--malfi-surface-subtle);
    }

    [malfi-page] .company-map-state-check {
        color: var(--malfi-accent);
        font-size: 20px;
    }

.company-map-state-name[malfi-page] {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

    .company-map-state-option > :not(.company-map-state-name)[malfi-page] {
        flex: none;
    }
/* /Companies/Detail.razor.rz.scp.css */
/* Company detail: its styles come from Admin.razor.css (shared CSS scope, see Rise.Client.csproj). */

/* Phone (US 657): the summary, sections and action bar come from Inspections/Detail.razor.css (same scope).
   While editing, the label goes above the field so the field gets the full width. */
.phone-sections .edit-row[malfi-page] {
    flex-wrap: wrap;
    row-gap: 4px !important;
}

    .phone-sections .edit-row > .edit-label[malfi-page] {
        flex: 0 0 100%;
        min-width: 0 !important;
    }

    .phone-sections .edit-row > :not(.edit-label)[malfi-page] {
        flex: 1 1 100%;
        min-width: 0;
    }

/* The toolbar of a section keeps its buttons, but may wrap on a narrow screen. */
.phone-sections .admin-toolbar[malfi-page] {
    flex-wrap: wrap;
    gap: 8px;
}

/* These two are in the action bar on the phone: not a second time in the section. */
.phone-sections[malfi-page]  .edit-company,
.phone-sections[malfi-page]  .create-inspection {
    display: none;
}

/* A long label ("Vennootschap aanpassen") goes to two lines instead of being cut off. */
.phone-action-bar[malfi-page]  .mud-button-root {
    white-space: normal;
    line-height: 1.2;
}
/* /Companies/Index.razor.rz.scp.css */
/* Company overview: its styles come from Admin.razor.css (shared CSS scope, see Rise.Client.csproj). */

/* "(vestiging)" after an address that is not the head office, and "+2" for the other zones of a company. */
.site-label[malfi-page] {
    color: var(--mud-palette-text-secondary);
    font-size: 0.8rem;
    margin-left: 4px;
}

.zone-more[malfi-page] {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--mud-palette-action-default-hover);
    color: var(--mud-palette-text-secondary);
    font-size: 0.75rem;
    cursor: default;
}

/* Title with the switch between list and map (US 140). */
.company-toolbar-start[malfi-page] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.company-view-toggle[malfi-page] {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--malfi-border);
    border-radius: 10px;
    background: var(--malfi-surface-subtle);
}

    .company-view-toggle button[malfi-page] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        height: 30px;
        padding: 0 12px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--malfi-text-muted);
        font: inherit;
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
    }

        .company-view-toggle button.is-on[malfi-page] {
            background: var(--malfi-surface);
            color: var(--malfi-accent);
            box-shadow: var(--malfi-shadow-sm);
        }

        .company-view-toggle button:focus-visible[malfi-page] {
            outline: none;
            box-shadow: var(--malfi-ring);
        }

    [malfi-page] .company-view-toggle .mud-icon-root {
        font-size: 18px;
    }

/* Button that opens the filter panel (US 652), same height as the search box. */
.company-filter-toggle[malfi-page] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 10px 0 12px;
    border: 1px solid var(--malfi-input-border);
    border-radius: 10px;
    background: var(--malfi-surface);
    color: var(--malfi-text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

    .company-filter-toggle.is-open[malfi-page] {
        border-color: var(--malfi-accent);
        color: var(--malfi-accent);
    }

    .company-filter-toggle:focus-visible[malfi-page] {
        outline: none;
        box-shadow: var(--malfi-ring);
    }

    [malfi-page] .company-filter-toggle .mud-icon-root {
        font-size: 18px;
    }

.company-filter-count[malfi-page] {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--malfi-accent-solid);
    color: var(--malfi-on-accent-solid);
    font-size: 0.75rem;
    line-height: 20px;
    text-align: center;
}

.company-map-count[malfi-page] {
    margin: 0 0 8px;
    color: var(--malfi-text-muted);
    font-size: 0.875rem;
}

.company-map-missing-link[malfi-page] {
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Phone and tablet (US 657) ----------
   The toolbar sticks under the app bar like on Controles (.inspection-toolbar in Overview.razor.css, same scope). */
.company-phone-toolbar[malfi-page] {
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* nothing in the toolbar may be wider than the screen */
    gap: 8px;
}

    .company-phone-toolbar .admin-search-box[malfi-page] {
        width: auto;
        min-width: 0;
    }

.company-phone-buttons[malfi-page] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
}

    .company-phone-buttons .company-filter-toggle[malfi-page] {
        justify-content: center;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
    }

/* A long panel scrolls inside the toolbar, so the toolbar never becomes higher than the screen. */
.company-phone-filters[malfi-page] {
    max-height: calc(100dvh - var(--malfi-sticky-top, 56px) - 140px);
    overflow-y: auto;
}

    .company-phone-filters:empty[malfi-page] {
        display: none;
    }

.company-cards ul[malfi-page] {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.company-cards-count[malfi-page] {
    margin: 4px 0 10px;
    color: var(--malfi-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
}

.company-card[malfi-page] {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    background: var(--malfi-surface);
}

    .company-card:has(.company-card-name:focus-visible)[malfi-page] {
        box-shadow: var(--malfi-ring);
    }

.company-card-name[malfi-page] {
    color: var(--malfi-text);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

    /* The whole card opens the company. */
    .company-card-name[malfi-page]::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 12px;
    }

    .company-card-name:focus-visible[malfi-page] {
        outline: none;
    }

.company-card-meta[malfi-page] {
    color: var(--malfi-text-muted);
    font-size: 0.8125rem;
}

.company-card-address[malfi-page] {
    display: flex;
    gap: 4px;
    align-items: flex-start;
}

    [malfi-page] .company-card-address .mud-icon-root {
        flex: none;
        font-size: 16px;
        margin-top: 1px;
    }

.company-card-status[malfi-page] {
    margin-top: 4px;
}

    /* Above the link of the card, so a tap starts the inspection instead of opening the company. */
    [malfi-page] .company-card-start {
        position: relative;
        z-index: 1;
        margin-left: -6px;
    }
/* /Components/FilterMenu.razor.rz.scp.css */
/* Zelfde hoogte en hoeken als het zoekveld van de toolbar (Admin.razor.css .admin-search-box). */
.filter-pill[b-213109j14m] {
    display: inline-flex;
    align-items: center;
    height: 38px;
    border: 1px solid var(--malfi-border-strong);
    border-radius: 10px;
    background: var(--malfi-surface);
    color: var(--malfi-text-secondary);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

    .filter-pill:hover[b-213109j14m] {
        border-color: var(--malfi-accent);
    }

    .filter-pill:focus-within[b-213109j14m] {
        box-shadow: var(--malfi-ring);
    }

    .filter-pill.is-set[b-213109j14m] {
        border-color: var(--malfi-accent);
        background: var(--malfi-surface-accent);
        color: var(--malfi-accent);
    }

.filter-pill-main[b-213109j14m] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 10px 0 14px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

    .filter-pill-main:focus-visible[b-213109j14m] {
        outline: none;
    }

.is-set .filter-pill-main[b-213109j14m] {
    padding-right: 4px;
}

.is-set .filter-pill-label[b-213109j14m] {
    color: var(--malfi-text-muted);
}

    /* "Status · Actief" */
    .is-set .filter-pill-label[b-213109j14m]::after {
        content: "·";
        margin-left: 6px;
    }

.filter-pill-value[b-213109j14m] {
    font-weight: 700;
}

[b-213109j14m] .filter-pill-arrow {
    font-size: 18px;
    color: var(--malfi-text-muted);
}

.filter-pill-clear[b-213109j14m] {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

    .filter-pill-clear:hover[b-213109j14m],
    .filter-pill-clear:focus-visible[b-213109j14m] {
        background: color-mix(in srgb, currentColor 14%, transparent);
        outline: none;
    }

    [b-213109j14m] .filter-pill-clear .mud-icon-root {
        font-size: 15px;
    }

.filter-option[b-213109j14m] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

    .filter-option.is-selected[b-213109j14m] {
        font-weight: 600;
    }

[b-213109j14m] .filter-option-check {
    margin-left: auto;
}
/* /Dashboard/CoordinatorDashboard.razor.rz.scp.css */
/* Dashboard of the MALFI-coördinator. Cards, key figures and the legend come from Admin.razor.css and
   DepartmentManagerDashboard.razor.css (shared CSS scope). */

/* ---------- Per politiezone ---------- */

.zone-row[malfi-page] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid var(--malfi-border-subtle);
    font-size: 0.875rem;
}

.zone-head[malfi-page] {
    padding-top: 0;
    border-bottom-color: var(--malfi-border);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--malfi-text-muted);
}

.zone-head span:not(:first-child)[malfi-page],
.zone-count[malfi-page] {
    text-align: right;
}

.zone-row.has-overdue[malfi-page] {
    border-left: 3px solid var(--malfi-danger);
}

.zone-name b[malfi-page],
.zone-name small[malfi-page] {
    display: block;
}

.zone-name small[malfi-page] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8125rem;
    color: var(--malfi-text-muted);
}

.zone-count[malfi-page] {
    font-variant-numeric: tabular-nums;
}

.zone-overdue.is-late[malfi-page] {
    font-weight: 700;
    color: var(--malfi-danger);
}

/* ---------- Resultaat gevalideerde controles ---------- */

.advice-bar[malfi-page] {
    display: flex;
    height: 20px;
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--malfi-border-subtle);
}

.advice-bar i[malfi-page] {
    display: block;
    height: 100%;
}

.advice-percent[malfi-page] {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--malfi-text-muted);
}

.advice-legend .legend-count[malfi-page] {
    min-width: 32px;
    margin-left: 12px;
    text-align: right;
}

/* ---------- Phone: every zone becomes a small card with labelled numbers ---------- */

@media (max-width: 600px) {
    .zone-head[malfi-page] {
        display: none;
    }

    .zone-row[malfi-page] {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px 8px;
        padding: 12px 0 12px 10px;
    }

    .zone-name[malfi-page] {
        grid-column: 1 / -1;
    }

    .zone-count[malfi-page] {
        text-align: left;
    }

    .zone-count[malfi-page]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.6875rem;
        color: var(--malfi-text-muted);
    }
}
/* /Dashboard/DepartmentManagerDashboard.razor.rz.scp.css */
/* Dashboard of the dienstverantwoordelijke. Cards, labels and key figures come from Admin.razor.css (shared CSS scope). */

[malfi-page] .dashboard-stat {
    display: flex;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

[malfi-page] .dashboard-stat.is-alert {
    border-color: var(--malfi-danger-border);
    background: var(--malfi-danger-bg);
}

.dashboard-info[malfi-page] {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 20px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--malfi-text-muted);
}

.dashboard-info b[malfi-page] {
    color: var(--malfi-text);
}

.dashboard-row[malfi-page] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 16px;
    margin-bottom: 16px;
}

[malfi-page] .dashboard-card {
    padding: 22px;
}

.dashboard-card-title[malfi-page] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--malfi-text);
}

.dashboard-card-subtitle[malfi-page] {
    margin: 4px 0 16px;
    font-size: 0.8125rem;
    color: var(--malfi-text-muted);
}

.dashboard-empty[malfi-page] {
    margin: 8px 0 0;
    font-size: 0.875rem;
    color: var(--malfi-text-muted);
}

/* ---------- Per status: donut + legend ---------- */

.status-chart[malfi-page] {
    display: flex;
    align-items: center;
    gap: 28px;
}

.status-donut[malfi-page] {
    flex-shrink: 0;
}

.donut-track[malfi-page] {
    fill: none;
    stroke: var(--malfi-border-subtle);
    stroke-width: 24;
}

.donut-slice[malfi-page] {
    fill: none;
    stroke-width: 24;
}

.donut-total[malfi-page] {
    text-anchor: middle;
    font-size: 32px;
    font-weight: 700;
    fill: var(--malfi-text);
}

.donut-label[malfi-page] {
    text-anchor: middle;
    font-size: 13px;
    fill: var(--malfi-text-muted);
}

.status-legend[malfi-page] {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.status-link[malfi-page] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--malfi-text);
    font-size: 0.875rem;
    text-decoration: none;
}

.status-link:hover[malfi-page],
.status-link:focus-visible[malfi-page] {
    background: var(--malfi-surface-hover);
    outline: none;
}

.legend-dot[malfi-page] {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-count[malfi-page] {
    margin-left: auto;
}

/* ---------- Workload: stacked bar per person ---------- */

.workload-list[malfi-page] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.workload-row[malfi-page] {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 56px;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--malfi-text);
    font-size: 0.875rem;
    text-decoration: none;
}

.workload-row:hover[malfi-page],
.workload-row:focus-visible[malfi-page] {
    background: var(--malfi-surface-hover);
    outline: none;
}

.workload-name[malfi-page] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workload-bar[malfi-page] {
    display: flex;
    height: 20px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--malfi-border-subtle);
}

.workload-bar i[malfi-page],
.workload-legend i[malfi-page] {
    display: block;
    height: 100%;
}

.on-time[malfi-page] {
    background: var(--malfi-accent-solid);
}

.late[malfi-page] {
    background: #F04438;
}

.workload-late[malfi-page] {
    margin-left: 2px;
    font-size: 0.75rem;
    color: var(--malfi-danger);
}

.workload-legend[malfi-page] {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    padding-left: 8px;
    font-size: 0.75rem;
    color: var(--malfi-text-muted);
}

.workload-legend span[malfi-page] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.workload-legend i[malfi-page] {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* ---------- Toe te wijzen ---------- */

.to-assign-header[malfi-page] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.to-assign-count[malfi-page] {
    padding: 1px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--malfi-warning-dot) 15%, transparent);
    color: var(--malfi-warning);
    font-size: 0.8125rem;
}

.to-assign-all[malfi-page] {
    font-size: 0.8125rem;
    color: var(--malfi-text-muted);
    text-decoration: none;
    white-space: nowrap;
}

.to-assign-all:hover[malfi-page] {
    color: var(--malfi-accent);
}

.to-assign-row[malfi-page] {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) 120px;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--malfi-border-subtle);
    font-size: 0.875rem;
}

.to-assign-head[malfi-page] {
    padding-top: 0;
    border-bottom-color: var(--malfi-border);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    color: var(--malfi-text-muted);
}

.to-assign-company b[malfi-page],
.to-assign-company small[malfi-page] {
    display: block;
}

.to-assign-company small[malfi-page] {
    font-size: 0.8125rem;
    color: var(--malfi-text-muted);
}

.to-assign-action[malfi-page] {
    text-align: right;
}

.visually-hidden[malfi-page] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

[malfi-page] .assign-button {
    text-transform: none;
    font-weight: 600;
    border-radius: 10px;
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 960px) {
    .dashboard-row[malfi-page] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .status-chart[malfi-page] {
        flex-direction: column;
        gap: 16px;
    }

    .status-legend[malfi-page] {
        width: 100%;
    }

    .workload-row[malfi-page] {
        grid-template-columns: 96px minmax(0, 1fr) 48px;
        gap: 8px;
    }

    /* The list becomes cards: company, address and reason on the left, the button on the right. */
    .to-assign-head[malfi-page] {
        display: none;
    }

    .to-assign-row[malfi-page] {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 12px;
        padding: 12px 0;
    }

    .to-assign-company[malfi-page] {
        grid-column: 1;
    }

    .to-assign-reason[malfi-page] {
        grid-column: 1;
        font-size: 0.8125rem;
        color: var(--malfi-text-muted);
    }

    .to-assign-wijk[malfi-page] {
        display: none;
    }

    .to-assign-deadline[malfi-page] {
        grid-column: 1;
    }

    .to-assign-action[malfi-page] {
        grid-column: 2;
        grid-row: 1 / span 3;
    }
}
/* /Dashboard/ExecutorDashboard.razor.rz.scp.css */
/* Dashboard of the wijkinspecteur and the onderzoeker (RI2627G04-665, 669). Cards, key figures, the info line,
   the list rows and the advice bar come from Admin.razor.css and the other dashboards (shared CSS scope). */

/* ---------- Teruggestuurd / Naar mij doorverwezen ---------- */

[malfi-page] .dashboard-card.returned,
[malfi-page] .dashboard-card.referred {
    margin-bottom: 24px;
    
}

[malfi-page] .dashboard-card.returned {
    border-left: 4px solid var(--malfi-warning);
    margin-bottom: 20px;

}

[malfi-page] .dashboard-card.returned .dashboard-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-row[malfi-page] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--malfi-border-subtle);
    font-size: 0.875rem;
}

.note-row:last-child[malfi-page] {
    border-bottom: none;
}

.note-body[malfi-page] {
    min-width: 0;
}

.note-body b[malfi-page],
.note-body small[malfi-page] {
    display: block;
}

.note-body small[malfi-page] {
    font-size: 0.8125rem;
    color: var(--malfi-text-muted);
}

.note-text[malfi-page] {
    margin: 6px 0 0;
    padding: 6px 10px;
    border-left: 3px solid var(--malfi-border);
    font-style: italic;
    white-space: pre-line;
    color: var(--malfi-text);
}

/* ---------- Mijn volgende controles ---------- */

.next-row[malfi-page] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--malfi-border-subtle);
    font-size: 0.875rem;
}

.next-row:last-child[malfi-page] {
    border-bottom: none;
}

.next-deadline[malfi-page] {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .note-row[malfi-page] {
        flex-direction: column;
    }

    .next-row[malfi-page] {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .next-deadline[malfi-page] {
        grid-column: 1;
    }

    .next-row[malfi-page]  .open-next {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}
/* /Dashboard/MalfiManagerDashboard.razor.rz.scp.css */
/* Dashboard of the MALFI-verantwoordelijke: its styles come from DepartmentManagerDashboard.razor.css and Admin.razor.css (shared CSS scope, see Rise.Client.csproj). */
/* /Districts/Detail.razor.rz.scp.css */
/* Wijk detail: its styles come from Admin.razor.css (shared CSS scope, see Rise.Client.csproj). */

/* ---------- Phone (US 657): a small map, the team in sight ---------- */

/* The name and e-mail may shrink: a long e-mail ends in "…" instead of pushing the buttons out of the row. */
.team-person[malfi-page] {
    min-width: 0;
}

    [malfi-page] .team-email {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.team-default[malfi-page] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--mud-palette-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

    [malfi-page] .team-default .mud-icon-root {
        font-size: 14px;
    }

@media (max-width: 959.98px) {
    /* Set before Leaflet starts, so the map is drawn at this height (the inline 420 px is for a large screen). */
    [malfi-page] .district-detail-map .district-map {
        height: 220px !important;
    }
}
/* /Districts/Index.razor.rz.scp.css */
/* Wijkindeling: its styles come from Admin.razor.css (shared CSS scope, see Rise.Client.csproj). */

/* ---------- Phone (US 657): list or map in one card ---------- */

.districts-phone-toolbar[malfi-page] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.districts-view-toggle[malfi-page] {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--malfi-border);
    border-radius: 10px;
    background: var(--malfi-surface-subtle);
}

    .districts-view-toggle button[malfi-page] {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 36px;
        padding: 0 12px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: var(--malfi-text-muted);
        font: inherit;
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
    }

        .districts-view-toggle button.is-on[malfi-page] {
            background: var(--malfi-surface);
            color: var(--malfi-accent);
            box-shadow: var(--malfi-shadow-sm);
        }

        .districts-view-toggle button:focus-visible[malfi-page] {
            outline: none;
            box-shadow: var(--malfi-ring);
        }

    [malfi-page] .districts-view-toggle .mud-icon-root {
        font-size: 18px;
    }

.districts-rename[malfi-page] {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    background: var(--malfi-surface-subtle);
}

.districts-rename-actions[malfi-page] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* The map shows at least this much on a small or landscape phone. */
[malfi-page] .districts-phone .district-map {
    min-height: 360px;
}
/* /Identity/SessionExpired.razor.rz.scp.css */
/* Kader, titel, beschrijving en in-animatie komen uit wwwroot/css/auth.css (AuthShell). */

.session-expired-icon[b-rc3zzaw8wz] {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--malfi-surface-accent);
    color: var(--malfi-accent);
}

.session-expired-button[b-rc3zzaw8wz] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--malfi-accent-solid);
    color: var(--malfi-on-accent-solid);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

    .session-expired-button:hover[b-rc3zzaw8wz] {
        background: var(--malfi-accent-strong);
    }

    .session-expired-button:focus-visible[b-rc3zzaw8wz] {
        outline: none;
        box-shadow: var(--malfi-ring);
    }

.session-expired-hint[b-rc3zzaw8wz] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--malfi-text-muted);
}
/* /Indicators/IndicatorsPanel.razor.rz.scp.css */
/* Indicatoren on Beheer: its styles come from Admin.razor.css (shared CSS scope, see Rise.Client.csproj). */
/* /Inspections/Components/AdviceBadge.razor.rz.scp.css */
/* Same look as the user status on the admin page (.admin-status). */
.advice-badge[b-nvlb9g6830] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid color-mix(in srgb, var(--advice) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--advice) 12%, transparent);
    color: color-mix(in srgb, var(--advice) 70%, var(--malfi-text));
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.advice-badge-dot[b-nvlb9g6830] {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--advice);
}
/* /Inspections/Components/AdviceDonut.razor.rz.scp.css */
.advice-donut[b-pcbst7kzbo] {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

    .advice-donut svg[b-pcbst7kzbo] {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

.advice-donut-track[b-pcbst7kzbo],
.advice-donut-value[b-pcbst7kzbo] {
    fill: none;
    stroke-width: 10;
}

.advice-donut-track[b-pcbst7kzbo] {
    stroke: var(--malfi-border);
}

.advice-donut-value[b-pcbst7kzbo] {
    stroke: var(--advice);
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.advice-donut-text[b-pcbst7kzbo] {
    position: relative;
    font-weight: 700;
    color: var(--malfi-text);
}

@media (prefers-reduced-motion: reduce) {
    .advice-donut-value[b-pcbst7kzbo] {
        transition: none;
    }
}
/* /Inspections/Components/AdvicePanel.razor.rz.scp.css */
/* Result of the advice: ring on the left, explanation and scale on the right. */
.advice-result[b-4ibqdovkw8] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 40px;
}

.advice-summary[b-4ibqdovkw8] {
    flex: 1 1 320px;
    min-width: 0;
}

.advice-explanation[b-4ibqdovkw8] {
    margin: 12px 0 0;
    font-size: 0.9375rem;
    color: var(--malfi-text-secondary);
}

.advice-ko[b-4ibqdovkw8] {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--malfi-danger-bg);
    border: 1px solid var(--malfi-danger-border);
    color: var(--malfi-danger);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.advice-stats[b-4ibqdovkw8] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.advice-stat[b-4ibqdovkw8] {
    display: flex;
    flex-direction: column;
    min-width: 110px;
    padding: 8px 14px;
    border: 1px solid var(--malfi-border);
    border-radius: 10px;
    background: var(--malfi-surface-subtle);
}

.advice-stat-label[b-4ibqdovkw8] {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--malfi-text-muted);
}

.advice-stat-value[b-4ibqdovkw8] {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--malfi-text);
}

/* Scale 0-20 / 21-79 / 80-100 */
.advice-scale[b-4ibqdovkw8] {
    margin-top: 20px;
    max-width: 520px;
}

.advice-scale-bar[b-4ibqdovkw8] {
    position: relative;
    display: flex;
    gap: 3px;
    height: 8px;
}

    .advice-scale-bar > span:not(.advice-scale-marker)[b-4ibqdovkw8] {
        border-radius: 999px;
        opacity: 0.35;
    }

.advice-scale-marker[b-4ibqdovkw8] {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 3px solid var(--malfi-surface);
    border-radius: 50%;
    background: var(--advice);
    box-shadow: 0 0 0 1px var(--advice);
    transform: translate(-50%, -50%);
}

.advice-scale-labels[b-4ibqdovkw8] {
    display: flex;
    gap: 3px;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--malfi-text-muted);
}

/* Contribution per indicator */
.advice-subtitle[b-4ibqdovkw8] {
    margin: 28px 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--malfi-text);
}

.advice-rows[b-4ibqdovkw8] {
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    overflow: hidden;
}

.advice-row[b-4ibqdovkw8] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--malfi-border-subtle);
    font-size: 0.875rem;
    color: var(--malfi-text);
}

    .advice-row:last-child[b-4ibqdovkw8] {
        border-bottom: 0;
    }

    .advice-row.is-scoring[b-4ibqdovkw8] { --row: #F04438; }
    .advice-row.is-clean[b-4ibqdovkw8] { --row: #12B76A; }
    .advice-row.is-na[b-4ibqdovkw8] { --row: #98A2B3; }
    .advice-row.is-missing[b-4ibqdovkw8] { --row: #F79009; }

    .advice-row.is-scoring[b-4ibqdovkw8] {
        background: color-mix(in srgb, var(--row) 6%, transparent);
    }

    [b-4ibqdovkw8] .advice-row-icon {
        flex-shrink: 0;
        color: var(--row);
    }

.advice-row-number[b-4ibqdovkw8] {
    flex-shrink: 0;
    width: 1.5rem;
    font-weight: 600;
    color: var(--malfi-text-muted);
}

.advice-row-text[b-4ibqdovkw8] {
    flex: 1 1 auto;
    min-width: 0;
}

.advice-row-answer[b-4ibqdovkw8] {
    flex-shrink: 0;
    width: 3.5rem;
    font-weight: 600;
}

.advice-row-state[b-4ibqdovkw8] {
    flex-shrink: 0;
    width: 8rem;
    font-size: 0.75rem;
    color: color-mix(in srgb, var(--row) 70%, var(--malfi-text));
}

.advice-row-points[b-4ibqdovkw8] {
    flex-shrink: 0;
    width: 2.5rem;
    text-align: right;
    font-weight: 700;
}

/* Explanation of the calculation */
[b-4ibqdovkw8] .advice-help {
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    overflow: hidden;
}

    [b-4ibqdovkw8] .advice-help .mud-expand-panel-header {
        font-weight: 700;
    }

.advice-help-intro[b-4ibqdovkw8] {
    margin: 0 0 8px;
    color: var(--malfi-text-secondary);
}

.advice-help-rules[b-4ibqdovkw8] {
    margin: 0 0 12px;
    padding-left: 20px;
    color: var(--malfi-text-secondary);
    line-height: 1.7;
}

.advice-help-levels[b-4ibqdovkw8] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.advice-help-level[b-4ibqdovkw8] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 10px 14px;
    border: 1px solid var(--malfi-border-subtle);
    border-radius: 10px;
}

.advice-help-range[b-4ibqdovkw8] {
    width: 4.5rem;
    font-weight: 700;
    color: var(--malfi-text);
}

.advice-help-text[b-4ibqdovkw8] {
    flex: 1 1 240px;
    font-size: 0.875rem;
    color: var(--malfi-text-secondary);
}

/* Phone: state and answer under the question */
@media (max-width: 600px) {
    .advice-row[b-4ibqdovkw8] {
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .advice-row-text[b-4ibqdovkw8] {
        flex-basis: calc(100% - 4rem);
    }

    .advice-row-answer[b-4ibqdovkw8] {
        margin-left: 3.5rem;
    }
}
/* /Inspections/Components/FollowUpsPanel.razor.rz.scp.css */
/* Verder gevolg (RI2627G04-683): a table like the old FIGARO screen. */

.follow-up-table-wrapper[b-uqcov8vcil] {
    overflow-x: auto;
}

.follow-up-table[b-uqcov8vcil] {
    width: 100%;
    border-collapse: collapse;
}

.follow-up-table th[b-uqcov8vcil] {
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 8px 12px;
    background: var(--mud-palette-background-gray);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.follow-up-table td[b-uqcov8vcil] {
    padding: 8px 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.follow-up-table .actions[b-uqcov8vcil] {
    width: 1%;
    white-space: nowrap;
    text-align: right;
}

.follow-up-registered[b-uqcov8vcil] {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.follow-up.is-editing td[b-uqcov8vcil] {
    background: var(--mud-palette-background-gray);
}

.follow-up-confirm[b-uqcov8vcil] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.875rem;
}

.edit-type[b-uqcov8vcil] {
    min-width: 200px;
}
/* /Inspections/Components/InspectionDate.razor.rz.scp.css */
/* Date column of an inspection table: never wrap "3 dagen te laat" over two lines. */
.inspection-date[b-8ocq2g1pas] {
    white-space: nowrap;
}
/* /Inspections/Components/InspectionDocuments.razor.rz.scp.css */
/* Documents with the questionnaire (RI2627G04-676). */

.document-list[b-iw647a6j6t] {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.document[b-iw647a6j6t] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.document-info[b-iw647a6j6t] {
    flex: 1 1 auto;
    min-width: 0;
}

/* Looks like a link; a button so it works with the keyboard. */
.document-name[b-iw647a6j6t] {
    display: block;
    max-width: 100%;
    padding: 0;
    border: none;
    background: none;
    color: var(--mud-palette-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-name:hover[b-iw647a6j6t] {
    text-decoration: underline;
}

.document-name:disabled[b-iw647a6j6t] {
    cursor: default;
    opacity: 0.6;
}

.document-meta[b-iw647a6j6t] {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.document-confirm[b-iw647a6j6t] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.875rem;
}

@media (max-width: 600px) {
    .document[b-iw647a6j6t] {
        flex-wrap: wrap;
    }

    .document-confirm[b-iw647a6j6t] {
        width: 100%;
    }
}
/* /Inspections/Components/InspectionHistory.razor.rz.scp.css */
/* One colour per kind of step, for the dot and the title. Dark variants below. */
.kind-assignment[b-pblf9wyok7] { --history-kind: var(--malfi-accent, #12307A); }
.kind-deadline[b-pblf9wyok7] { --history-kind: #6941C6; }
.kind-recall[b-pblf9wyok7] { --history-kind: #B26A00; }
.kind-decision[b-pblf9wyok7] { --history-kind: #067647; }
.kind-stop[b-pblf9wyok7] { --history-kind: #B42318; }
.kind-other[b-pblf9wyok7] { --history-kind: #667085; }

[data-theme="dark"] .kind-assignment[b-pblf9wyok7] { --history-kind: #8FA9FF; }
[data-theme="dark"] .kind-deadline[b-pblf9wyok7] { --history-kind: #B692F6; }
[data-theme="dark"] .kind-recall[b-pblf9wyok7] { --history-kind: #FDB022; }
[data-theme="dark"] .kind-decision[b-pblf9wyok7] { --history-kind: #32D583; }
[data-theme="dark"] .kind-stop[b-pblf9wyok7] { --history-kind: #F97066; }
[data-theme="dark"] .kind-other[b-pblf9wyok7] { --history-kind: #98A2B3; }

.history-filters[b-pblf9wyok7] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.history-chip[b-pblf9wyok7] {
    padding: 6px 12px;
    min-height: 32px;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: 999px;
    background: transparent;
    color: var(--mud-palette-text-primary);
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
}

.history-chip:hover[b-pblf9wyok7] {
    border-color: var(--mud-palette-primary);
}

.history-chip:focus-visible[b-pblf9wyok7] {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.history-chip.is-on[b-pblf9wyok7] {
    background: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
}

/* The vertical line of the timeline, with a dot per step. */
.history-list[b-pblf9wyok7] {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 28px;
}

.history-list[b-pblf9wyok7]::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--mud-palette-lines-default);
}

.history-item[b-pblf9wyok7] {
    position: relative;
    margin-bottom: 14px;
}

.history-dot[b-pblf9wyok7] {
    position: absolute;
    left: -26px;
    top: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--history-kind);
    box-shadow: 0 0 0 3px var(--mud-palette-surface);
}

.history-card[b-pblf9wyok7] {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 0;
}

.history-head[b-pblf9wyok7] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 2px 12px;
}

.history-type[b-pblf9wyok7] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--history-kind);
}

.history-meta[b-pblf9wyok7] {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.history-details[b-pblf9wyok7] {
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.history-old[b-pblf9wyok7] {
    color: var(--mud-palette-text-secondary);
}

.history-arrow[b-pblf9wyok7] {
    margin: 0 6px;
    color: var(--mud-palette-text-secondary);
}

.history-motivation[b-pblf9wyok7] {
    margin-top: 8px;
    padding: 8px 12px;
    border-left: 3px solid var(--mud-palette-lines-inputs);
    border-radius: 0 6px 6px 0;
    background: var(--mud-palette-background-gray);
    font-size: 0.875rem;
}

.history-motivation-label[b-pblf9wyok7] {
    display: block;
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
}

.history-motivation-text[b-pblf9wyok7] {
    white-space: pre-line; /* keep the line breaks the user typed */
    overflow-wrap: anywhere;
}

.history-status[b-pblf9wyok7] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 10px;
}

.history-status[b-pblf9wyok7]  .inspection-status-badge {
    margin: 0;
}
/* /Inspections/Detail.razor.rz.scp.css */
/* Inspection detail: the page styles come from Admin.razor.css (shared CSS scope, see Rise.Client.csproj).
   Below: the boxes on the overview tab. */

.detail-box[malfi-page] {
    height: 100%;
    padding: 20px;
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    background: var(--malfi-surface);
}

/* RI2627G04-359: remarks and decisions on the "Opmerkingen en motivering" tab. */
.notes[malfi-page],
.question-remark-text[malfi-page],
.decision-motivation[malfi-page] {
    white-space: pre-line; /* keep the line breaks the user typed */
}

.remarks-subtitle[malfi-page] {
    margin: 20px 0 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.question-remark-row[malfi-page] {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.question-remark-number[malfi-page] {
    min-width: 1.75rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
}

.question-remark-question[malfi-page] {
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.decision-list[malfi-page] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.decision-item[malfi-page] {
    padding: 10px 0 10px 14px;
    border-left: 3px solid var(--mud-palette-primary);
    margin-bottom: 8px;
}

.decision-head[malfi-page] {
    font-size: 0.8125rem;
    margin-bottom: 2px;
}

.decision-type[malfi-page] {
    font-weight: 600;
}

/* ---------- Phone (US 657): summary, sections and the action bar ---------- */

.phone-summary[malfi-page] {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid var(--malfi-border);
    border-radius: 16px;
    background: var(--malfi-surface);
}

.phone-summary-title[malfi-page] {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.phone-summary-subtitle[malfi-page],
.phone-summary-meta[malfi-page] {
    margin: 4px 0 0;
    color: var(--malfi-text-muted);
    font-size: 0.875rem;
}

.phone-summary-badges[malfi-page] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.phone-summary-late[malfi-page] {
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--mud-palette-error-hover);
    color: var(--mud-palette-error);
    font-size: 0.8125rem;
    font-weight: 600;
}

.phone-sections[malfi-page] {
    display: grid;
    grid-template-columns: minmax(0, 1fr); /* nothing inside may make the page wider than the screen */
    gap: 10px;
    /* room for the action bar, so it never covers the last section */
    padding-bottom: 88px;
}

/* The sections are wider than the boxes inside them: no box in a box, the content uses the full width. */
.phone-sections .detail-box[malfi-page] {
    height: auto;
    padding: 0;
    border: 0;
}

/* The section already shows the title: the same title inside it is left out. */
.phone-sections .detail-box > h2.admin-section-title[malfi-page],
.phone-sections .detail-box > div:first-child > h2.admin-section-title[malfi-page],
.phone-sections .mobile-section-body > .admin-toolbar h2.admin-section-title[malfi-page] {
    display: none;
}

/* Label above the value: the value gets the full width instead of a squeezed column. */
.phone-sections .info-row[malfi-page] {
    flex-wrap: wrap;
    row-gap: 2px !important;
}

    .phone-sections .info-row[malfi-page]  .info-label {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 0.75rem;
    }

    .phone-sections .info-row[malfi-page]  .info-value {
        flex: 0 0 100%;
        padding-left: 32px; /* in line with the label, after the icon */
    }

.phone-action-bar[malfi-page] {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--malfi-border);
    background: var(--malfi-surface);
}

/* The questionnaire on the phone: number, question, and the answer under it. */
.phone-questions[malfi-page] {
    margin: 0;
    padding: 0;
    list-style: none;
}

.phone-question[malfi-page] {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

    .phone-question:last-child[malfi-page] {
        border-bottom: 0;
    }

.phone-question-number[malfi-page] {
    min-width: 1.5rem;
    color: var(--malfi-text-muted);
    font-weight: 600;
}

.phone-question-body[malfi-page] {
    display: grid;
    flex: 1;
    gap: 4px;
    min-width: 0;
}

.phone-question-text[malfi-page] {
    overflow-wrap: anywhere;
}

.phone-question-ko[malfi-page] {
    margin-left: 6px;
    padding: 0 6px;
    border: 1px solid var(--mud-palette-error);
    border-radius: 8px;
    color: var(--mud-palette-error);
    font-size: 0.75rem;
    font-weight: 600;
}

.phone-question-answer[malfi-page] {
    font-weight: 600;
}

    .phone-question-answer.is-open[malfi-page] {
        color: var(--malfi-text-muted);
        font-weight: 400;
    }

.phone-question-remark[malfi-page] {
    color: var(--malfi-text-muted);
    font-size: 0.875rem;
    white-space: pre-line;
}
/* /Inspections/Index.razor.rz.scp.css */
/* My inspections: its styles come from Admin.razor.css (shared CSS scope, see Rise.Client.csproj).
   The table fills the window via fit-height (js/fit-height.js), like Controles and Vennootschappen. */
/* /Inspections/InspectionRulesPanel.razor.rz.scp.css */
.inspection-rules[b-fzhl5du9ot] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.inspection-rules-section[b-fzhl5du9ot] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--malfi-border);
    border-radius: 14px;
    background: var(--malfi-surface-subtle);
}

    .inspection-rules-section > header[b-fzhl5du9ot] {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9375rem;
        font-weight: 700;
        color: var(--malfi-text);
    }

        .inspection-rules-section > header[b-fzhl5du9ot]  .mud-icon-root {
            color: var(--malfi-accent);
        }

.advice-ranges[b-fzhl5du9ot] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

    .advice-ranges li[b-fzhl5du9ot] {
        display: flex;
        align-items: center;
        gap: 10px;
    }

.advice-dot[b-fzhl5du9ot] {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
}

.advice-name[b-fzhl5du9ot] {
    flex: 1;
    color: var(--malfi-text);
}

.advice-range[b-fzhl5du9ot] {
    font-variant-numeric: tabular-nums;
    color: var(--malfi-text-muted);
}
/* /Inspections/Overview.razor.rz.scp.css */
/* Inspections overview: its styles come from Admin.razor.css (shared CSS scope, see Rise.Client.csproj).
   The table fills the window via fit-height (js/fit-height.js), like Beheer and Vennootschappen. */

/* RI2627G04-342: the executor reported that the inspection could not be carried out. */
.not-executable-flag[malfi-page] {
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--mud-palette-warning-darken);
}

/* US 657, phone and tablet: the toolbar (title, dropdown, status, search) sticks right under the app bar and the
   inspections scroll below it. The app bar of MudBlazor is 7/8 of --mud-appbar-height on a phone, 3/4 in landscape
   and the full height from 600 px; .malfi-appbar adds a 1 px border. --malfi-sticky-top follows the same rules; Beheer uses it too (shared CSS scope). */
@media (max-width: 959.98px) {
    .admin[malfi-page] {
        --malfi-sticky-top: calc(var(--mud-appbar-height) - var(--mud-appbar-height) / 8 + 1px);
    }

    /* Without the page title the card can start close under the app bar. */
    [malfi-page] .inspection-page {
        padding-top: 12px !important;
    }

    /* .admin-card clips (overflow: hidden); that would make the card the scroll box of the sticky toolbar. */
    [malfi-page] .admin-card.inspection-list-card {
        overflow: visible;
    }

    .inspection-toolbar[malfi-page] {
        position: sticky;
        top: var(--malfi-sticky-top);
        z-index: 2;
        margin: -24px -24px 8px;
        padding: 16px 24px 12px;
        border-radius: 16px 16px 0 0;
        border-bottom: 1px solid var(--malfi-border);
        background: var(--malfi-surface);
    }

        /* The app bar is see-through: this strip behind it, in the colour of the page, hides the inspections
           that scroll past above the toolbar. 16 px wider on each side: the padding of the page on a phone. */
        .inspection-toolbar[malfi-page]::before {
            content: "";
            position: absolute;
            right: -16px;
            bottom: calc(100% + 1px);
            left: -16px;
            height: var(--malfi-sticky-top);
            background: var(--mud-palette-background);
        }

    /* A load error above the card stays above that strip. */
    [malfi-page] .load-error {
        position: relative;
        z-index: 3;
    }
}

@media (max-width: 959.98px) and (orientation: landscape) {
    .admin[malfi-page] {
        --malfi-sticky-top: calc(var(--mud-appbar-height) - var(--mud-appbar-height) / 4 + 1px);
    }
}

@media (min-width: 600px) and (max-width: 959.98px) {
    .admin[malfi-page] {
        --malfi-sticky-top: calc(var(--mud-appbar-height) + 1px);
    }
}
/* /Inspections/Questionnaire.razor.rz.scp.css */
/* Questionnaire: one block per question, unanswered questions get an accent on the left. */

.questions[b-hpcpioj758] {
    border-top: 1px solid var(--mud-palette-lines-default);
}

.question[b-hpcpioj758] {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 12px;
    border-bottom: 1px solid var(--mud-palette-lines-default);
    border-left: 4px solid transparent;
}

.question.is-open[b-hpcpioj758] {
    border-left-color: var(--mud-palette-warning);
}

.question-number[b-hpcpioj758] {
    min-width: 2rem;
    font-weight: 600;
    color: var(--mud-palette-text-secondary);
}

.question-body[b-hpcpioj758] {
    flex: 1 1 auto;
    min-width: 0;
}

.question-text[b-hpcpioj758] {
    font-size: 0.95rem;
}

.question-hint[b-hpcpioj758],
.question-remark[b-hpcpioj758] {
    margin-top: 4px;
    font-size: 0.8125rem;
    color: var(--mud-palette-text-secondary);
}

.question-answer[b-hpcpioj758] {
    min-width: 9rem;
    text-align: right;
}

.not-answered[b-hpcpioj758] {
    font-style: italic;
    color: var(--mud-palette-text-secondary);
}

/* Phone: the answer goes under the question. */
@media (max-width: 600px) {
    .question[b-hpcpioj758] {
        flex-wrap: wrap;
    }

    .question-answer[b-hpcpioj758] {
        text-align: left;
        min-width: 0;
    }
}

/* The answer buttons next to each other, also on a phone. */
.answer-buttons[b-hpcpioj758] {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

@media (max-width: 600px) {
    .answer-buttons[b-hpcpioj758] {
        justify-content: flex-start;
    }
}

/* RI2627G04-348: save status and answers that aren't saved yet. */
.save-status[b-hpcpioj758] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 1.75rem;
}

.question.is-unsaved[b-hpcpioj758] {
    border-left-color: var(--mud-palette-error);
}

.question-unsaved[b-hpcpioj758] {
    margin-top: 4px;
    font-size: 0.8125rem;
    color: var(--mud-palette-error);
}

/* Remarks: per question under the question text, general ones under the list. */
.question-remark-field[b-hpcpioj758],
.add-remark[b-hpcpioj758] {
    margin-top: 8px;
}

/* ---------- RI2627G04-692: one question per screen on a phone ---------- */

.q-stepper[b-hpcpioj758] {
    display: none;
}

@media (max-width: 600px) {
    .q-desktop[b-hpcpioj758] {
        display: none;
    }

    .q-stepper[b-hpcpioj758] {
        display: flex;
        flex-direction: column;
        min-height: calc(100dvh - 180px);
    }
}

.q-step-company[b-hpcpioj758] {
    display: block;
    font-size: 1.0625rem;
    color: var(--malfi-text);
}

.q-step-meta[b-hpcpioj758] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin-top: 2px;
    font-size: 0.875rem;
    color: var(--malfi-text-muted);
}

.q-step-save[b-hpcpioj758] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
}

.q-step-save .is-saved[b-hpcpioj758] {
    color: var(--mud-palette-success);
}

.q-step-save .is-failed[b-hpcpioj758] {
    color: var(--mud-palette-error);
}

.q-retry[b-hpcpioj758] {
    padding: 2px 8px;
    border: 1px solid var(--mud-palette-error);
    border-radius: 8px;
    background: none;
    color: var(--mud-palette-error);
    font: inherit;
}

[b-hpcpioj758] .q-step-progress {
    margin: 12px 0 22px;
}

.q-step-label[b-hpcpioj758] {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--malfi-text-muted);
}

.q-step-text[b-hpcpioj758] {
    margin: 6px 0 16px;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--malfi-text);
}

.q-step-hint[b-hpcpioj758] {
    margin: -6px 0 12px;
    font-size: 0.8125rem;
    color: var(--malfi-text-muted);
}

.q-options[b-hpcpioj758] {
    display: grid;
    gap: 10px;
}

.q-option[b-hpcpioj758] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    border: 1.5px solid var(--malfi-border);
    border-radius: 14px;
    background: var(--malfi-surface);
    color: var(--malfi-text);
    font: inherit;
    font-size: 1.0625rem;
    text-align: left;
    cursor: pointer;
}

.q-option:focus-visible[b-hpcpioj758] {
    outline: none;
    box-shadow: var(--malfi-ring);
}

.q-option.is-selected[b-hpcpioj758] {
    border-color: var(--malfi-accent);
    background: var(--malfi-surface-accent);
}

.q-radio[b-hpcpioj758] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--malfi-text-faint);
    border-radius: 50%;
    transition: border-width 0.15s;
}

.q-option.is-selected .q-radio[b-hpcpioj758] {
    border: 6px solid var(--malfi-accent);
}

.q-add-remark[b-hpcpioj758] {
    align-self: flex-start;
    margin-top: 14px;
    padding: 8px 0;
    border: none;
    background: none;
    color: var(--malfi-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

[b-hpcpioj758] .q-step-remark,
[b-hpcpioj758] .q-step-general {
    margin-top: 14px;
}

.q-overview[b-hpcpioj758] {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--malfi-border);
    border-radius: 14px;
    background: var(--malfi-surface);
    overflow: hidden;
}

.q-overview li + li[b-hpcpioj758] {
    border-top: 1px solid var(--malfi-border-subtle);
}

.q-overview-row[b-hpcpioj758] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    background: none;
    color: var(--malfi-text-secondary);
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
}

.q-overview-number[b-hpcpioj758] {
    width: 16px;
    color: var(--malfi-text-faint);
}

.q-overview-text[b-hpcpioj758] {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.q-overview-answer[b-hpcpioj758] {
    color: var(--malfi-text);
    white-space: nowrap;
}

.q-overview-answer.is-open[b-hpcpioj758] {
    color: var(--malfi-warning);
    font-weight: 600;
}

/* The buttons stay under the thumb, also when the keyboard is open. */
.q-step-bar[b-hpcpioj758] {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 10px;
    margin: auto -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--malfi-border);
    background: var(--malfi-surface);
}

.q-bar-button[b-hpcpioj758] {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 6px 10px;
    line-height: 1.2;
    border: 1.5px solid var(--malfi-accent);
    border-radius: 10px;
    background: var(--malfi-surface);
    color: var(--malfi-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.q-bar-button.is-primary[b-hpcpioj758] {
    background: var(--malfi-accent-solid);
    border-color: var(--malfi-accent-solid);
    color: var(--malfi-on-accent-solid);
}

.q-bar-button:disabled[b-hpcpioj758] {
    opacity: 0.45;
    cursor: default;
}

@media (prefers-reduced-motion: reduce) {
    .q-radio[b-hpcpioj758] {
        transition: none;
    }
}
/* /Layout/AccessDenied.razor.rz.scp.css */
.access-denied[b-2723tdry4q] {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 160px);
    padding: 24px 0;
}

.access-denied-card[b-2723tdry4q] {
    width: 100%;
    max-width: 460px;
    padding: 40px 32px;
    border: 1px solid var(--malfi-border);
    border-radius: 20px;
    background: var(--malfi-surface);
    box-shadow: var(--malfi-shadow-sm);
    text-align: center;
    animation: auth-fade-up 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.access-denied-icon[b-2723tdry4q] {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: var(--malfi-surface-accent);
    color: var(--malfi-accent);
}

.access-denied-title[b-2723tdry4q] {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--malfi-text);
}

.access-denied-text[b-2723tdry4q] {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--malfi-text-muted);
}

.access-denied-label[b-2723tdry4q] {
    margin: 28px 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--malfi-text-muted);
}

.access-denied-roles[b-2723tdry4q] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.access-denied-role[b-2723tdry4q] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    background: var(--malfi-surface);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--malfi-accent);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

    .access-denied-role:hover[b-2723tdry4q] {
        border-color: var(--malfi-border-strong);
        background: var(--malfi-surface-hover);
        box-shadow: var(--malfi-shadow-hover);
    }

    .access-denied-role:focus-visible[b-2723tdry4q] {
        outline: none;
        box-shadow: var(--malfi-ring);
    }

.access-denied-home[b-2723tdry4q] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--malfi-text-muted);
    text-decoration: none;
}

    .access-denied-home:hover[b-2723tdry4q] {
        color: var(--malfi-accent);
    }
/* /Layout/Flag.razor.rz.scp.css */
.flag[b-4ntk2badg5] {
    position: relative;
    display: inline-block;
    flex: none;
    width: var(--flag-size, 22px);
    height: var(--flag-size, 22px);
    border-radius: 50%;
    overflow: hidden;
}

    .flag svg[b-4ntk2badg5] {
        display: block;
        width: 100%;
        height: 100%;
    }

    /* Thin ring, so white parts of a flag stay visible on a white background. */
    .flag[b-4ntk2badg5]::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.18);
    }
/* /Layout/LanguageToggle.razor.rz.scp.css */
.language-toggle[b-z8klb9hlch] {
    --flag-size: 22px;
}

    .language-toggle:hover[b-z8klb9hlch] {
        box-shadow: 0 0 0 4px rgba(42, 82, 190, 0.12);
    }

/* The new flag turns in like a coin and settles with a small bounce. */
.language-toggle-flag[b-z8klb9hlch] {
    display: grid;
    place-items: center;
    animation: language-flag-in-b-z8klb9hlch 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.language-toggle:hover .language-toggle-flag[b-z8klb9hlch] {
    transform: scale(1.08);
    transition: transform 0.2s ease;
}

@keyframes language-flag-in-b-z8klb9hlch {
    from {
        opacity: 0;
        transform: perspective(80px) rotateY(-90deg) scale(0.6);
    }
}

.language-option[b-z8klb9hlch] {
    --flag-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
}

    .language-option.is-active[b-z8klb9hlch] {
        font-weight: 600;
    }

[b-z8klb9hlch] .language-option-check {
    margin-left: auto;
}

@media (prefers-reduced-motion: reduce) {
    .language-toggle-flag[b-z8klb9hlch] {
        animation: none;
    }
}
/* /Layout/RoleSwitcher.razor.rz.scp.css */
/* Zelfde vak als de taal- en themaknop, maar breed genoeg voor de rolnaam. */
.role-switcher[b-nlxa7vmpf1] {
    display: inline-flex;
    gap: 4px;
    width: auto;
    max-width: 220px;
    padding: 0 8px 0 14px;
    color: var(--malfi-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

    .role-switcher.is-static[b-nlxa7vmpf1] {
        padding-right: 14px;
        cursor: default;
    }

        .role-switcher.is-static:hover[b-nlxa7vmpf1] {
            border-color: var(--malfi-border);
            background: var(--malfi-surface);
        }

        .role-switcher.is-static:active[b-nlxa7vmpf1] {
            transform: none;
        }

.role-switcher-name[b-nlxa7vmpf1] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-nlxa7vmpf1] .role-switcher-arrow {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--malfi-text-muted);
}

.role-option[b-nlxa7vmpf1] {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

    .role-option.is-active[b-nlxa7vmpf1] {
        font-weight: 600;
    }

[b-nlxa7vmpf1] .role-option-check {
    margin-left: auto;
}

/* Op een gsm is de app bar te smal; de rol staat dan in de zijbalk en wisselen kan via Account. */
@media (max-width: 599.98px) {
    .role-switcher[b-nlxa7vmpf1] {
        display: none;
    }
}
/* /Layout/ThemeModePicker.razor.rz.scp.css */
.theme-picker[b-ng75iwhhlp] {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 4px;
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    background: var(--malfi-surface-subtle);
}

/* Markering die naar de gekozen optie schuift */
.theme-picker-indicator[b-ng75iwhhlp] {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 8px) / 3);
    border-radius: 9px;
    background: var(--malfi-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08), 0 0 0 1px var(--malfi-border);
    transform: translateX(calc(var(--index, 0) * 100%));
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.theme-picker-option[b-ng75iwhhlp] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 8px 10px;
    border: none;
    border-radius: 9px;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--malfi-text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

    .theme-picker-option:hover[b-ng75iwhhlp] {
        color: var(--malfi-text);
    }

    .theme-picker-option.is-active[b-ng75iwhhlp] {
        color: var(--malfi-accent);
    }

    .theme-picker-option:focus-visible[b-ng75iwhhlp] {
        outline: none;
        box-shadow: var(--malfi-ring);
    }

    .theme-picker-option span[b-ng75iwhhlp] {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

@media (prefers-reduced-motion: reduce) {
    .theme-picker-indicator[b-ng75iwhhlp] {
        transition: none;
    }
}
/* /Layout/ThemeToggle.razor.rz.scp.css */
/* Size, border and hover come from .appbar-toggle (wwwroot/css/app.css). */
.theme-toggle[b-h7tbdrh23d] {
    color: #F5A524;
}

    .theme-toggle:hover[b-h7tbdrh23d] {
        box-shadow: 0 0 0 4px rgba(245, 165, 36, 0.12);
    }

    .theme-toggle.is-dark[b-h7tbdrh23d] {
        color: #B4C6FF;
    }

        .theme-toggle.is-dark:hover[b-h7tbdrh23d] {
            box-shadow: 0 0 0 4px rgba(143, 169, 255, 0.14), 0 0 18px rgba(143, 169, 255, 0.25);
        }

.theme-toggle-icon[b-h7tbdrh23d] {
    width: 20px;
    height: 20px;
    overflow: visible;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-core[b-h7tbdrh23d] {
    transition: r 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.theme-toggle-cut[b-h7tbdrh23d] {
    transition: cx 0.5s cubic-bezier(0.65, 0, 0.35, 1), cy 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.theme-toggle-rays[b-h7tbdrh23d] {
    transform-origin: 12px 12px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

/* Maan: grotere kern met een hap eruit, stralen weg, icoon draait iets */
.theme-toggle.is-dark .theme-toggle-icon[b-h7tbdrh23d] {
    transform: rotate(-30deg);
}

.theme-toggle.is-dark .theme-toggle-core[b-h7tbdrh23d] {
    r: 9px;
}

.theme-toggle.is-dark .theme-toggle-cut[b-h7tbdrh23d] {
    cx: 17px;
    cy: 7px;
}

.theme-toggle.is-dark .theme-toggle-rays[b-h7tbdrh23d] {
    opacity: 0;
    transform: rotate(-90deg) scale(0.4);
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle-icon[b-h7tbdrh23d],
    .theme-toggle-core[b-h7tbdrh23d],
    .theme-toggle-cut[b-h7tbdrh23d],
    .theme-toggle-rays[b-h7tbdrh23d] {
        transition: none;
    }
}
/* /Notifications/Index.razor.rz.scp.css */
.notification-unread[b-6kx9w4hd6c] {
    border-left: 3px solid var(--mud-palette-primary);
}

.notification-message[b-6kx9w4hd6c] {
    white-space: pre-line;
}
/* /Notifications/NotificationMenu.razor.rz.scp.css */
.notification-menu[b-9syj3om8ca] {
    width: min(360px, calc(100vw - 32px));
}

.notification-unread[b-9syj3om8ca] {
    border-left: 3px solid var(--mud-palette-primary);
}

.notification-body[b-9syj3om8ca] {
    white-space: pre-line;
}
/* /Pages/Account.razor.rz.scp.css */
/* Profielkop: compacte navy kop, zelfde merkstijl als de zijbalk en de aanmeldflow */
.account-hero[b-bq2012w5nt] {
    overflow: hidden;
    border-radius: 16px;
    color: #fff;
    background:
        radial-gradient(60% 120% at 0% 0%, rgba(42, 82, 190, 0.45), transparent 70%),
        radial-gradient(40% 120% at 100% 100%, rgba(153, 204, 204, 0.18), transparent 70%),
        linear-gradient(135deg, #0B1F55 0%, #12307A 60%, #173A8C 100%);
    box-shadow: var(--malfi-shadow-md);
}

:root[data-theme="dark"] .account-hero[b-bq2012w5nt] {
    border: 1px solid var(--malfi-border);
    background:
        radial-gradient(60% 120% at 0% 0%, rgba(42, 82, 190, 0.35), transparent 70%),
        radial-gradient(40% 120% at 100% 100%, rgba(153, 204, 204, 0.12), transparent 70%),
        linear-gradient(135deg, #081430 0%, #0D1F4F 60%, #122A66 100%);
}

.account-hero-body[b-bq2012w5nt] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px 28px;
}

.account-avatar[b-bq2012w5nt] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #fff;
    color: #12307A;
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 24px rgba(5, 12, 35, 0.35);
}

.account-hero-text[b-bq2012w5nt] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
}

.account-name[b-bq2012w5nt] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.account-username[b-bq2012w5nt] {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
}

.account-active-role[b-bq2012w5nt] {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.account-label[b-bq2012w5nt] {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.account-role-pill[b-bq2012w5nt] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Kaarten */
.account-card[b-bq2012w5nt] {
    padding: 24px;
    border: 1px solid var(--malfi-border);
    border-radius: 16px;
    background: var(--malfi-surface);
    box-shadow: var(--malfi-shadow-sm);
}

.account-card-header[b-bq2012w5nt] {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.account-card-icon[b-bq2012w5nt] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--malfi-surface-accent);
    color: var(--malfi-accent);
}

.account-card-title[b-bq2012w5nt] {
    margin: 0;
    padding-top: 8px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--malfi-text);
}

.account-card-subtitle[b-bq2012w5nt] {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: var(--malfi-text-muted);
}

/* Rollen: klikbare tegels in twee kolommen, zodat zes rollen passen zonder te scrollen */
.account-roles[b-bq2012w5nt] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-rows: 1fr; /* alle tegels even hoog, ook als een beschrijving op twee regels loopt */
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-role[b-bq2012w5nt] {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 14px;
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    background: var(--malfi-surface);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

    .account-role:hover[b-bq2012w5nt] {
        border-color: var(--malfi-border-strong);
        background: var(--malfi-surface-hover);
    }

    .account-role:focus-visible[b-bq2012w5nt] {
        outline: none;
        box-shadow: var(--malfi-ring);
    }

    .account-role.is-active[b-bq2012w5nt] {
        border-color: var(--malfi-accent);
        background: var(--malfi-surface-hover);
        box-shadow: 0 0 0 1px var(--malfi-accent);
        cursor: default;
    }

.account-role-text[b-bq2012w5nt] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
    padding-right: 20px;
}

.account-role-name[b-bq2012w5nt] {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--malfi-text);
}

.account-role-description[b-bq2012w5nt] {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--malfi-text-muted);
}

.account-role-badge[b-bq2012w5nt] {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--malfi-accent-solid);
    color: var(--malfi-on-accent-solid);
}

.account-empty[b-bq2012w5nt] {
    margin: 0;
    color: var(--malfi-danger);
    font-size: 0.9375rem;
}

/* Persoonlijke gegevens */
.account-details[b-bq2012w5nt] {
    margin: 0;
}

    .account-details > div[b-bq2012w5nt] {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 0;
        border-top: 1px solid var(--malfi-border-subtle);
    }

        .account-details > div:first-child[b-bq2012w5nt] {
            border-top: none;
            padding-top: 0;
        }

    .account-details dt[b-bq2012w5nt] {
        font-size: 0.875rem;
        color: var(--malfi-text-muted);
    }

    .account-details dd[b-bq2012w5nt] {
        margin: 0;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--malfi-text);
        text-align: right;
        overflow-wrap: anywhere;
    }

@media (max-width: 600px) {
    .account-hero-body[b-bq2012w5nt] {
        padding: 20px;
    }

    .account-active-role[b-bq2012w5nt] {
        align-items: flex-start;
    }
}
/* /Pages/Admin.razor.rz.scp.css */
/* Paginakop: zelfde stijl als Instellingen en Account, zonder verloop */
.admin-header[malfi-page] {
    margin-bottom: 24px;
}

.admin-title[malfi-page] {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--malfi-text);
}

.admin-subtitle[malfi-page] {
    margin: 4px 0 0;
    font-size: 0.9375rem;
    color: var(--malfi-text-muted);
}

/* Cards */
[malfi-page] .admin-card,
[malfi-page] .admin-stat {
    border-radius: 16px;
    border: 1px solid var(--malfi-border);
    background: var(--malfi-surface);
    box-shadow: var(--malfi-shadow-sm);
}

[malfi-page] .admin-card {
    overflow: hidden;
}

[malfi-page] .admin-stat {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Alle kerncijfers in het navy accent, zoals de kaarticonen op Instellingen en Account */
.admin-stat-icon[malfi-page] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--malfi-surface-accent);
    color: var(--malfi-accent);
}

.admin-stat-value[malfi-page] {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--malfi-text);
}

[malfi-page] .admin-label {
    color: var(--malfi-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Tabs */
[malfi-page] .admin-tabs {
    padding: 0 16px;
    border-bottom: 1px solid var(--malfi-border);
    background: var(--malfi-surface-subtle);
}

    [malfi-page] .admin-tabs .mud-tab {
        text-transform: none;
        font-weight: 600;
        letter-spacing: 0;
        min-height: 56px;
        color: var(--malfi-text-muted);
    }

[malfi-page] .admin-tab-active {
    color: var(--malfi-accent) !important;
}

/* Users table */
[malfi-page] .admin-search {
    max-width: 320px;
    min-width: 220px;
}

/* Toolbar boven de gebruikers: zoeken en filters even hoog en dicht bij elkaar */
.admin-toolbar[malfi-page] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 20px;
}

.admin-section-title[malfi-page] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--malfi-text);
}

.admin-count[malfi-page] {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--malfi-surface-accent);
    color: var(--malfi-accent);
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-section-subtitle[malfi-page] {
    margin: 2px 0 0;
    font-size: 0.875rem;
    color: var(--malfi-text-muted);
}

.admin-filters[malfi-page] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Zoekveld in dezelfde stijl als de filterknoppen (Components/FilterMenu.razor.css) */
.admin-search-box[malfi-page] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 260px;
    height: 38px;
    padding: 0 8px 0 12px;
    border: 1px solid var(--malfi-border-strong);
    border-radius: 10px;
    background: var(--malfi-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .admin-search-box:hover[malfi-page] {
        border-color: var(--malfi-accent);
    }

    .admin-search-box:focus-within[malfi-page] {
        border-color: var(--malfi-accent);
        box-shadow: var(--malfi-ring);
    }

    .admin-search-box input[malfi-page] {
        flex-grow: 1;
        min-width: 0;
        height: 100%;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--malfi-text);
        font: inherit;
        font-size: 0.875rem;
        outline: none;
    }

        .admin-search-box input[malfi-page]::placeholder {
            color: var(--malfi-text-faint);
        }

[malfi-page] .admin-search-icon {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--malfi-text-muted);
}

.admin-search-clear[malfi-page] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--malfi-text-muted);
    cursor: pointer;
}

    .admin-search-clear:hover[malfi-page],
    .admin-search-clear:focus-visible[malfi-page] {
        background: var(--malfi-surface-hover);
        color: var(--malfi-text);
        outline: none;
    }

    [malfi-page] .admin-search-clear .mud-icon-root {
        font-size: 15px;
    }

/* Links van de filters */
.admin-clear[malfi-page] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--malfi-accent);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

    .admin-clear:hover[malfi-page],
    .admin-clear:focus-visible[malfi-page] {
        background: var(--malfi-surface-hover);
        outline: none;
    }

    [malfi-page] .admin-clear .mud-icon-root {
        font-size: 18px;
    }

.admin-row-actions[malfi-page] {
    display: flex;
}

    [malfi-page] .admin-row-actions .admin-delete:hover {
        color: var(--malfi-danger);
        background: var(--malfi-danger-bg);
    }

[malfi-page] .admin-table {
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    overflow: hidden;
}

    [malfi-page] .admin-table .mud-table-head .mud-table-cell {
        background: var(--malfi-surface-subtle);
        color: var(--malfi-text-secondary);
        font-size: 0.6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        white-space: nowrap;
    }

    /* Smalle cellen: met de status en de bewerkknoppen past de gebruikerstabel zo zonder horizontaal scrollen. */
    [malfi-page] .admin-table .mud-table-cell {
        padding-left: 8px;
        padding-right: 8px;
    }

    [malfi-page] .admin-table .mud-table-body .mud-table-row:hover {
        background: var(--malfi-surface-hover) !important;
    }

[malfi-page] .admin-avatar {
    background: var(--malfi-surface-accent);
    color: var(--malfi-accent);
    font-weight: 700;
    font-size: 0.75rem;
}

.admin-code[malfi-page] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--malfi-surface-subtle);
    color: var(--malfi-text-secondary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8125rem;
}

.admin-role[malfi-page] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px 2px 8px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.admin-empty[malfi-page] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 40px 16px;
    color: var(--malfi-text-faint);
}

@media (max-width: 600px) {
    [malfi-page] .admin-search {
        max-width: none;
        width: 100%;
    }

    .admin-filters[malfi-page] {
        width: 100%;
    }

    .admin-search-box[malfi-page] {
        width: 100%;
    }
}

/* Inline bewerken: de tekst wordt op dezelfde plek een invoerveld (geen popup). */
[malfi-page] .admin-table .mud-table-body .mud-table-row {
    transition: background-color 0.2s ease;
}

    [malfi-page] .admin-table .mud-table-body .mud-table-row.is-editing {
        background: var(--malfi-surface-accent) !important;
    }

    /* Verwijderd (soft delete): gedempt, de status blijft leesbaar */
    [malfi-page] .admin-table .mud-table-body .mud-table-row.is-deleted .mud-table-cell {
        color: var(--malfi-text-muted);
    }

    [malfi-page] .admin-table .mud-table-body .mud-table-row.is-deleted .admin-avatar {
        filter: grayscale(1);
        opacity: 0.55;
    }

.admin-field[malfi-page] {
    display: flex;
    flex-direction: column;
}

/* Negatieve marge: de tekst blijft staan waar hij stond, alleen het kader verschijnt eromheen. */
.admin-input[malfi-page] {
    box-sizing: border-box;
    width: calc(100% + 18px);
    min-width: 96px;
    margin: -5px -9px;
    padding: 4px 8px;
    border: 1px solid var(--malfi-input-border);
    border-radius: 8px;
    background: var(--malfi-surface);
    color: var(--malfi-text);
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    animation: admin-input-in-malfi-page 0.28s ease both;
}

    .admin-input[type="email"][malfi-page] {
        min-width: 170px;
    }

    .admin-input[inputmode="numeric"][malfi-page] {
        min-width: 72px;
    }

    .admin-input:focus[malfi-page] {
        outline: none;
        border-color: var(--malfi-accent);
        box-shadow: var(--malfi-ring);
    }

    .admin-input[aria-invalid="true"][malfi-page] {
        border-color: var(--malfi-danger);
    }

.admin-input-error[malfi-page] {
    margin-top: 8px;
    color: var(--malfi-danger);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

@keyframes admin-input-in-malfi-page {
    from {
        border-color: transparent;
        background: transparent;
    }
}

.admin-edit-actions[malfi-page] {
    display: flex;
    animation: admin-pop-in-malfi-page 0.2s ease both;
}

@keyframes admin-pop-in-malfi-page {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
}

/* Rollen: kruisje verschijnt bij hover (of focus), plusje voor een extra rol */
.admin-roles[malfi-page] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.admin-role-more[malfi-page] {
    border-color: var(--malfi-border);
    background: var(--malfi-surface-subtle);
    color: var(--malfi-text-muted);
    cursor: default;
}

.admin-role.is-editable[malfi-page] {
    transition: padding 0.15s ease;
}

.admin-role-remove[malfi-page] {
    display: grid;
    place-items: center;
    width: 0;
    height: 16px;
    margin-left: -4px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    opacity: 0;
    cursor: pointer;
    transition: width 0.15s ease, margin 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

    [malfi-page] .admin-role-remove .mud-icon-root {
        font-size: 13px;
    }

    .admin-role-remove:hover[malfi-page] {
        background: color-mix(in srgb, currentColor 16%, transparent);
    }

    .admin-role-remove:focus-visible[malfi-page] {
        outline: 2px solid currentColor;
    }

.admin-role.is-editable:hover[malfi-page],
.admin-role.is-editable:focus-within[malfi-page] {
    padding-right: 4px;
}

    .admin-role.is-editable:hover .admin-role-remove[malfi-page],
    .admin-role.is-editable:focus-within .admin-role-remove[malfi-page] {
        width: 16px;
        margin-left: 0;
        opacity: 1;
    }

/* Touchscherm: geen hover, dus het kruisje altijd tonen */
@media (hover: none) {
    .admin-role.is-editable[malfi-page] {
        padding-right: 4px;
    }

        .admin-role.is-editable .admin-role-remove[malfi-page] {
            width: 16px;
            margin-left: 0;
            opacity: 1;
        }
}

.admin-role-add[malfi-page] {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px dashed var(--malfi-border-strong);
    border-radius: 50%;
    background: transparent;
    color: var(--malfi-accent);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    animation: admin-pop-in-malfi-page 0.2s ease both;
}

    [malfi-page] .admin-role-add .mud-icon-root {
        font-size: 16px;
    }

    .admin-role-add:hover[malfi-page],
    .admin-role-add:focus-visible[malfi-page] {
        border-style: solid;
        border-color: var(--malfi-accent);
        background: var(--malfi-surface-hover);
        outline: none;
    }

/* Status: een bolletje in de kleur van de status; voor de admin klikbaar met een keuzelijst */
.is-active[malfi-page] { --status: #12B76A; }
.is-blocked[malfi-page] { --status: #F04438; }
.is-inactive[malfi-page] { --status: #F79009; }
.is-deleted[malfi-page] { --status: #98A2B3; }

.admin-status[malfi-page] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid color-mix(in srgb, var(--status) 35%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--status) 12%, transparent);
    color: color-mix(in srgb, var(--status) 70%, var(--malfi-text));
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

    .admin-status.is-clickable[malfi-page] {
        padding-right: 4px;
        cursor: pointer;
        transition: box-shadow 0.15s ease;
    }

        .admin-status.is-clickable:hover[malfi-page] {
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--status) 18%, transparent);
        }

        .admin-status.is-clickable:focus-visible[malfi-page] {
            outline: none;
            box-shadow: var(--malfi-ring);
        }

.admin-status-dot[malfi-page] {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status);
}

[malfi-page] .admin-status-arrow {
    font-size: 16px;
    opacity: 0.7;
}

.admin-status-option[malfi-page] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

[malfi-page] .admin-status-check {
    margin-left: auto;
}

.admin-locked[malfi-page] {
    margin-left: 6px;
}

[malfi-page] .admin-locked-icon {
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .admin-input[malfi-page],
    .admin-edit-actions[malfi-page],
    .admin-role-add[malfi-page] {
        animation: none;
    }
}

/* Key figures that filter the list below them (Controles, Mijn controles). */
[malfi-page] .stat-filter {
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

[malfi-page] .stat-filter:hover {
    border-color: var(--malfi-accent);
    box-shadow: var(--malfi-shadow-hover);
    transform: translateY(-2px);
}

[malfi-page] .stat-filter:focus-visible {
    outline: none;
    border-color: var(--malfi-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--malfi-accent) 30%, transparent);
}

[malfi-page] .stat-filter.is-active {
    border-color: var(--malfi-accent);
    background: var(--malfi-surface-accent);
}

@media (prefers-reduced-motion: reduce) {
    [malfi-page] .stat-filter {
        transition: none;
    }

    [malfi-page] .stat-filter:hover {
        transform: none;
    }
}

/* ---------- Phone (US 657): sticky filters, user list and edit sheet ---------- */

/* On a large screen the pills behave as if this wrapper was not there. */
.admin-filter-pills[malfi-page] {
    display: contents;
}

.admin-filter-toggle[malfi-page] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--malfi-input-border);
    border-radius: 10px;
    background: var(--malfi-surface);
    color: var(--malfi-text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

    .admin-filter-toggle.is-open[malfi-page] {
        border-color: var(--malfi-accent);
        color: var(--malfi-accent);
    }

    [malfi-page] .admin-filter-toggle .mud-icon-root {
        font-size: 18px;
    }

.admin-filter-count[malfi-page] {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--malfi-accent-solid);
    color: var(--malfi-on-accent-solid);
    font-size: 0.75rem;
    line-height: 20px;
    text-align: center;
}

.admin-filter-panel[malfi-page] {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--malfi-border);
    border-radius: 12px;
    background: var(--malfi-surface-subtle);
}

/* The tab bar with one tab only takes room on a phone. */
@media (max-width: 959.98px) {
    [malfi-page] .admin-single-tab .admin-tabs {
        display: none;
    }

    /* Search and the Filters button share the row. */
    .admin-search-box[malfi-page] {
        flex: 1 1 160px;
    }

    /* The title, Filters, search and the open filter panel stick under the app bar; the users scroll below.
       The card may not clip (overflow: hidden), or it would become the scroll box of the sticky part. */
    [malfi-page] .admin-card.admin-main-card {
        overflow: visible;
    }

    .admin-users-sticky[malfi-page] {
        position: sticky;
        top: var(--malfi-sticky-top);
        z-index: 2;
        margin: -24px -24px 8px;
        padding: 16px 24px 4px;
        border-bottom: 1px solid var(--malfi-border);
        border-radius: 16px 16px 0 0;
        background: var(--malfi-surface);
    }

        /* The app bar is see-through: this strip behind it hides the users that scroll past above. */
        .admin-users-sticky[malfi-page]::before {
            content: "";
            position: absolute;
            right: -16px;
            bottom: calc(100% + 1px);
            left: -16px;
            height: var(--malfi-sticky-top);
            background: var(--mud-palette-background);
        }

        .admin-users-sticky .admin-toolbar[malfi-page] {
            margin-bottom: 12px;
        }
}

[malfi-page] .admin-avatar {
    flex: none;
    align-self: center;
}

.admin-sheet-layer[malfi-page] {
    position: fixed;
    inset: 0;
    z-index: 1400; /* above the app bar, below MudBlazor popovers (menus in the sheet) */
}

.admin-sheet-backdrop[malfi-page] {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.45);
}

.admin-sheet[malfi-page] {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 12px;
    max-height: 88dvh;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    background: var(--malfi-surface);
}

.admin-sheet-field[malfi-page] {
    display: grid;
    gap: 4px;
}

    .admin-sheet-field .admin-field[malfi-page],
    .admin-sheet-field .admin-input[malfi-page] {
        width: 100%;
    }

.admin-sheet-actions[malfi-page] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}
/* /Pages/ChooseRole.razor.rz.scp.css */
/* Kader, stapindicator, titel en in-animatie komen uit wwwroot/css/auth.css (AuthShell). */

.choose-role.is-leaving[b-e8d6swr3kn] {
    animation: choose-role-leave-b-e8d6swr3kn 0.2s ease-in 0.25s forwards;
}

@keyframes choose-role-leave-b-e8d6swr3kn {
    to { opacity: 0; transform: translateY(-6px); }
}

/* Rollen */
.choose-role-list[b-e8d6swr3kn] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choose-role-option[b-e8d6swr3kn] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 18px 14px 14px;
    border: 1px solid var(--malfi-border);
    border-radius: 14px;
    background: var(--malfi-surface);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

    .choose-role-option:hover:not(:disabled)[b-e8d6swr3kn] {
        border-color: var(--malfi-border-strong);
        box-shadow: var(--malfi-shadow-hover);
        transform: translateY(-1px);
    }

    .choose-role-option:focus-visible[b-e8d6swr3kn] {
        outline: none;
        border-color: var(--malfi-accent);
        box-shadow: var(--malfi-ring);
    }

    .choose-role-option:disabled[b-e8d6swr3kn] {
        cursor: default;
    }

    .choose-role-option.is-selected[b-e8d6swr3kn] {
        border-color: var(--malfi-accent);
        background: var(--malfi-surface-hover);
        box-shadow: 0 0 0 4px rgba(18, 48, 122, 0.1);
    }

    .choose-role-option.is-dimmed[b-e8d6swr3kn] {
        opacity: 0.45;
    }

.choose-role-option-text[b-e8d6swr3kn] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
}

.choose-role-option-name[b-e8d6swr3kn] {
    font-size: 15px;
    font-weight: 600;
    color: var(--malfi-text);
}

.choose-role-option-description[b-e8d6swr3kn] {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--malfi-text-muted);
}

[b-e8d6swr3kn] .choose-role-option-arrow {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--malfi-text-faint);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.choose-role-option:hover:not(:disabled)[b-e8d6swr3kn]  .choose-role-option-arrow,
.choose-role-option:focus-visible[b-e8d6swr3kn]  .choose-role-option-arrow {
    opacity: 1;
    color: var(--malfi-accent);
    transform: none;
}

.choose-role-spinner[b-e8d6swr3kn] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(18, 48, 122, 0.15);
    border-top-color: var(--malfi-accent);
    border-radius: 50%;
    animation: choose-role-spin-b-e8d6swr3kn 0.7s linear infinite;
}

@keyframes choose-role-spin-b-e8d6swr3kn {
    to { transform: rotate(360deg); }
}

/* Reden van aanmelding */
.login-reason-actions[b-e8d6swr3kn] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

/* Overige */
.choose-role-hint[b-e8d6swr3kn] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--malfi-text-muted);
}

.choose-role-message[b-e8d6swr3kn] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--malfi-danger-border);
    border-radius: 12px;
    background: var(--malfi-danger-bg);
    color: var(--malfi-danger);
    font-size: 15px;
}

/* Aangemelde gebruiker */
.choose-role-account[b-e8d6swr3kn] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--malfi-border);
}

.choose-role-avatar[b-e8d6swr3kn] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #12307A, #2A52BE);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
}

.choose-role-account-text[b-e8d6swr3kn] {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.choose-role-account-label[b-e8d6swr3kn] {
    font-size: 12px;
    color: var(--malfi-text-muted);
}

.choose-role-account-name[b-e8d6swr3kn] {
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    color: var(--malfi-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.choose-role-logout[b-e8d6swr3kn] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid var(--malfi-border);
    border-radius: 10px;
    background: var(--malfi-surface);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--malfi-text-secondary);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

    .choose-role-logout:hover[b-e8d6swr3kn] {
        border-color: var(--malfi-input-border);
        background: var(--malfi-surface-subtle);
        color: var(--malfi-accent);
    }

    .choose-role-logout:focus-visible[b-e8d6swr3kn] {
        outline: none;
        box-shadow: var(--malfi-ring);
    }

@media (prefers-reduced-motion: reduce) {
    .choose-role.is-leaving[b-e8d6swr3kn] {
        animation-duration: 0.01s;
    }

    .choose-role-spinner[b-e8d6swr3kn] {
        animation-duration: 1.5s;
    }
}
/* /Pages/Settings.razor.rz.scp.css */
.settings-header[b-168k5c0rb0] {
    margin-bottom: 24px;
}

.settings-title[b-168k5c0rb0] {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--malfi-text);
}

.settings-subtitle[b-168k5c0rb0] {
    margin: 4px 0 0;
    font-size: 0.9375rem;
    color: var(--malfi-text-muted);
}

.settings-card[b-168k5c0rb0] {
    height: 100%;
    padding: 24px;
    border: 1px solid var(--malfi-border);
    border-radius: 16px;
    background: var(--malfi-surface);
    box-shadow: var(--malfi-shadow-sm);
}

.settings-card-header[b-168k5c0rb0] {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.settings-card-icon[b-168k5c0rb0] {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--malfi-surface-accent);
    color: var(--malfi-accent);
}

.settings-card-title[b-168k5c0rb0] {
    margin: 0;
    padding-top: 2px;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--malfi-text);
}

.settings-card-subtitle[b-168k5c0rb0] {
    margin: 2px 0 0;
    font-size: 0.875rem;
    color: var(--malfi-text-muted);
}
/* /Users/ResponsiblesPanel.razor.rz.scp.css */
/* Verantwoordelijken per zone on Beheer: its styles come from Admin.razor.css (shared CSS scope, see Rise.Client.csproj). */
/* /Zones/ZonesPanel.razor.rz.scp.css */
/* Politiezones on Beheer: its styles come from Admin.razor.css (shared CSS scope, see Rise.Client.csproj). */
