﻿
@font-face {
    font-family: 'ivypresto';
    src: url('../fonts/ivyprestoheadline-light.otf') format('opentype');
    font-style:normal;
}
@font-face {
    font-family: 'ivypresto';
    src: url('../fonts/ivyprestoheadline-lightitalic.otf') format('opentype');
    font-style: italic;
}
@font-face {
    font-family: 'instrumentsans';
    src: url('../fonts/instrumentsans-regular.ttf') format('truetype');
    font-style: normal;
}
@font-face {
    font-family: 'instrumentsans-bold';
    src: url('../fonts/instrumentsans-bold.ttf') format('truetype');
}
    body {
        background-color: #F5F2EA;
    }

/* Leesbare waarschuwingsmeldingen (admin).
   De amberkleur die MudBlazor aan Severity.Warning-tekst geeft haalt op de crème achtergrond
   maar ~2,9:1 contrast. De ernst blijft zichtbaar via icoon en rand; de tekst zelf krijgt de
   gewone tekstkleur van het thema. Toepassen op elke warning-alert in de admin-schermen. */
.admin-alert-readable .mud-alert-message {
    color: var(--mud-palette-text-primary);
}

/* Nieuwe bestandsrijen na een herrender komen rustig in beeld (alleen opacity). */
@keyframes admin-file-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.admin-file-new {
    animation: admin-file-fade-in 200ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .admin-file-new {
        animation: none;
    }
}

/* ── Logistieke sectie ─────────────────────────────────────────────────────────────
   Korte ease-out-overgangen (150–250 ms) voor verschijnen en verplaatsen. */

.logistics-recalc {
    animation: logistics-fade-in 150ms ease-out;
}

.logistics-stop-row {
    transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.logistics-stop-row:hover {
    background-color: rgba(34, 49, 59, 0.04);
}

@keyframes logistics-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* De kaartcontainer heeft een vaste hoogte zodat de CC-BY-bronvermelding nooit door een
   overlay of z-index bedekt raakt. */
.logistics-map {
    min-height: 280px;
}

@media (prefers-reduced-motion: reduce) {
    .logistics-recalc {
        animation: none;
    }

    .logistics-stop-row {
        transition: none;
    }
}

/* Focusring voor een uitgeschakelde actie als focusbare <span role="button"
   aria-disabled="true">, in de primaire themakleur zoals bij de MudBlazor-knoppen. */
[role="button"][aria-disabled="true"]:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
    border-radius: var(--mud-default-borderradius);
}

/* ── Publiek aanvraagformulier /partner-worden (D188, handoff Scherm 1 + 2) ─────────
   Klassen met prefix pw- ("partner worden"; niet pa-, dat is MudBlazors padding-utility).
   Kleuren komen als CSS-variabelen uit Gedenk.Core.Constants.Colors (gezet in PublicLayout),
   hier staan geen losse hex-waarden (de rgba-schaduwen zijn NIGHTBLUE met alfa). Contrast (interactiespec §D-2/§D-3): kleine tekst nooit
   onder opacity .72; de foutkleur --pw-error alleen als tekst op wit (kaarten), niet op crème. */

.pw-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--pw-creme);
    color: var(--pw-nightblue);
    font-family: instrumentsans, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.pw-page a {
    color: var(--pw-nightblue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pw-page a:hover {
    text-decoration-color: var(--pw-green);
}

.pw-header {
    background-color: var(--pw-creme);
    box-shadow: 0 1px 3px rgba(34, 49, 59, .14);
    padding: 0 20px;
    min-height: 64px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.pw-header-logo {
    height: 20px;
    width: auto;
    display: block;
}

.pw-header-spacer {
    flex: 1 1 auto;
}

.pw-header-login {
    font-size: 15px;
    white-space: nowrap;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Twee kolommen met 40px gap; vallen onder elkaar op smalle schermen. */
.pw-body {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    max-width: 1140px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 44px 20px 80px;
}

.pw-aside {
    flex: 1 1 280px;
    max-width: 400px;
}

.pw-main {
    flex: 999 1 460px;
    min-width: 0;
    max-width: 660px;
}

.pw-overline {
    font-size: 12px;
    font-family: 'instrumentsans-bold', instrumentsans, Arial, sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .72;
    margin-bottom: 12px;
}

.pw-h1 {
    font-family: ivypresto, Georgia, serif;
    font-weight: 300;
    font-size: clamp(34px, 5vw, 46px);
    line-height: 1.1;
    margin: 0 0 14px;
    text-wrap: pretty;
}

.pw-h2 {
    font-family: ivypresto, Georgia, serif;
    font-weight: 300;
    font-size: 22px;
    line-height: 1.2;
    margin: 0;
}

/* FocusOnNavigate zet bij het laden de focus op de h1 (voor schermlezers); geen zichtbare ring
   op een kop die de gebruiker niet zelf heeft gefocust. */
.pw-h1:focus {
    outline: none;
}

.pw-intro {
    margin: 0 0 26px;
    max-width: 44ch;
}

.pw-perks,
.pw-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pw-perk,
.pw-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pw-perk-number {
    font-family: ivypresto, Georgia, serif;
    font-weight: 300;
    font-size: 28px;
    line-height: 1;
    width: 26px;
    flex: none;
}

.pw-perk-text,
.pw-step-text {
    min-width: 0;
}

.pw-perk-title {
    display: block;
    font-family: 'instrumentsans-bold', instrumentsans, Arial, sans-serif;
}

.pw-perk-body {
    display: block;
    font-size: 15px;
    opacity: .8;
}

/* Witte kaarten (MudPaper Elevation=0 + eigen schaduw). */
.pw-form {
    /* MudBlazor kleurt label, rand en hulptekst van een fout via deze variabele; binnen het
       formulier is dat de Administration-foutkleur (op witte kaarten, §D-3). */
    --mud-palette-error: var(--pw-error);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pw-card.mud-paper {
    background-color: var(--pw-white);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(34, 49, 59, .12);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pw-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

/* MudStatic-velden: rand FIELD_BORDER, radius 10px, min. 48px hoog; fout in --pw-error. */
.pw-form .mud-input-control {
    margin-top: 0;
}

.pw-form .mud-input.mud-input-outlined {
    min-height: 48px;
    background-color: var(--pw-white);
}

.pw-form .mud-input.mud-input-outlined .mud-input-outlined-border {
    border-color: var(--pw-field-border);
    border-radius: 10px;
}

.pw-form .mud-input-helper-text {
    font-size: 13px;
}

.pw-label {
    font-size: 14px;
    font-family: 'instrumentsans-bold', instrumentsans, Arial, sans-serif;
    margin-bottom: 8px;
    padding: 0;
}

/* Pill-keuze: native radio's, visueel verborgen; het label is de pill. */
.pw-volume {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.pw-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pw-pill-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.pw-pill {
    border: 1px solid var(--pw-nightblue);
    border-radius: 999px;
    padding: 9px 16px;
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    cursor: pointer;
    font-size: 15px;
    background-color: transparent;
    color: var(--pw-nightblue);
    transition: background-color 150ms ease-out, color 150ms ease-out;
}

.pw-pill:hover {
    background-color: rgba(34, 49, 59, .07);
}

.pw-pill-input:checked + .pw-pill {
    background-color: var(--pw-nightblue);
    color: var(--pw-white);
    font-family: 'instrumentsans-bold', instrumentsans, Arial, sans-serif;
}

.pw-pill-input:focus-visible + .pw-pill {
    outline: 2px solid var(--pw-nightblue);
    outline-offset: 2px;
}

.pw-volume-error .pw-pill {
    border-color: var(--pw-error);
}

.pw-field-error {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--pw-error);
}

.pw-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
}

.pw-consent-input {
    width: 22px;
    height: 22px;
    flex: none;
    margin: 1px 0 0;
    accent-color: var(--pw-nightblue);
    cursor: pointer;
}

.pw-consent-input:focus-visible {
    outline: 2px solid var(--pw-nightblue);
    outline-offset: 2px;
}

.pw-consent-label {
    cursor: pointer;
}

.pw-consent-error .pw-consent-input {
    outline: 2px solid var(--pw-error);
    outline-offset: 1px;
}

/* Honeypot: buiten beeld, niet display:none. */
.pw-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pw-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: flex-end;
}

.pw-summary {
    font-size: 14px;
    opacity: .8;
}

.pw-submit.mud-button-root {
    min-height: 50px;
    padding: 14px 26px;
    font-family: 'instrumentsans-bold', instrumentsans, Arial, sans-serif;
    text-transform: none;
    font-size: 16px;
    border-radius: 10px;
}

/* ── Bevestiging /partner-worden/ontvangen ─────────────────────────────────────── */

.pw-received-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 80px;
}

.pw-received {
    width: 100%;
    max-width: 580px;
    animation: pw-fade-in 300ms ease-out;
}

.pw-received-intro {
    margin: 0 0 28px;
    max-width: 50ch;
    overflow-wrap: break-word;
}

.pw-steps {
    gap: 14px;
}

.pw-step-text {
    padding-top: 3px;
}

.pw-step-mark {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: 'instrumentsans-bold', instrumentsans, Arial, sans-serif;
    border: 2px solid var(--pw-nightblue);
    box-sizing: border-box;
    background-color: transparent;
    color: var(--pw-nightblue);
}

.pw-step-mark-1 {
    background-color: var(--pw-nightblue);
    color: var(--pw-creme);
}

.pw-step-mark-2 {
    background-color: var(--pw-green);
}

.pw-received-footer {
    margin: 18px 0 0;
    font-size: 14px;
    opacity: .75;
}

@keyframes pw-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pw-received {
        animation: none;
    }

    .pw-pill {
        transition: none;
    }
}

/* ── Beheer partneraanvragen /admin/partner-applications (D188, handoff Scherm 3 + 4) ──
   Klassen met prefix aanv- ("aanvragen"). Kleuren komen als CSS-variabelen uit
   Gedenk.Core.Constants.Colors (PartnerApplicationScreen.CssVariables op .aanv-page); de
   rgba-waarden zijn NIGHTBLUE (#22313B) met alfa. Terracotta alleen als tekst/rand op wit. */

.aanv-page {
    color: var(--aanv-nightblue);
}

.aanv-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.aanv-intro {
    max-width: 70ch;
    opacity: .8;
    margin: 0 0 20px;
}

.aanv-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.aanv-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.aanv-pill {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--aanv-nightblue);
    border-radius: 999px;
    background: transparent;
    color: var(--aanv-nightblue);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.aanv-pill:hover {
    background-color: var(--aanv-green);
}

.aanv-pill-active,
.aanv-pill-active:hover {
    background-color: var(--aanv-nightblue);
    color: var(--aanv-white);
}

.aanv-pill:focus-visible {
    outline: 2px solid var(--aanv-nightblue);
    outline-offset: 2px;
}

.aanv-pill-count {
    margin-left: 6px;
    opacity: .7;
}

.aanv-search {
    width: 100%;
    max-width: 320px;
}

.aanv-card {
    background-color: var(--aanv-white);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(34, 49, 59, .12);
}

.aanv-card-padded {
    padding: 22px;
    margin-bottom: 24px;
}

.aanv-grid .aanv-grid-head th,
.aanv-grid .aanv-grid-head .mud-table-cell {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .6;
}

.aanv-cell-main {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.aanv-row-link {
    color: inherit;
    text-decoration: none;
}

.aanv-row-link:hover,
.aanv-row-link:focus-visible {
    text-decoration: underline;
}

.aanv-cell-sub {
    font-size: 14px;
    opacity: .72;
}

.aanv-ellipsis {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aanv-nowrap {
    white-space: nowrap;
}

.aanv-unread-dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--aanv-nightblue-light);
}

.aanv-empty {
    margin: 24px 0;
    text-align: center;
    opacity: .75;
}

/* Detail */

.aanv-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.aanv-breadcrumb a {
    color: inherit;
}

.aanv-breadcrumb-current {
    opacity: .6;
}

.aanv-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin-bottom: 24px;
}

.aanv-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.aanv-main {
    flex: 1 1 460px;
    min-width: 0;
}

.aanv-side {
    flex: 1 1 300px;
    max-width: 400px;
    min-width: 0;
}

@media (max-width: 800px) {
    .aanv-side {
        max-width: none;
    }
}

.aanv-kvk-warning {
    background-color: var(--aanv-white);
    border: 1px solid var(--aanv-terracotta);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    margin-bottom: 24px;
}

.aanv-kvk-warning a {
    color: inherit;
}

.aanv-card-title {
    font-family: ivypresto, Roboto, serif;
    font-weight: 400;
    font-size: 22px;
    margin: 0 0 16px;
}

.aanv-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 20px;
    margin: 0;
}

.aanv-facts dt,
.aanv-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .6;
    margin-bottom: 4px;
}

.aanv-facts dd {
    margin: 0;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.aanv-facts a,
.aanv-note a {
    color: inherit;
}

.aanv-note {
    background-color: var(--aanv-creme);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 20px;
}

.aanv-note-text {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.aanv-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aanv-actions .aanv-card-title {
    margin-bottom: 4px;
}

.aanv-action-explanation {
    font-size: 15px;
    opacity: .85;
    margin: 0;
}

.aanv-action-root,
.aanv-action-wrapper {
    display: block;
    width: 100%;
}

.aanv-action {
    text-transform: none;
    border-radius: 10px;
}

.aanv-action-primary {
    min-height: 50px;
}

.aanv-action-outlined {
    min-height: 48px;
}

.aanv-action-destructive.mud-button-root {
    color: var(--aanv-terracotta);
    text-decoration: underline;
    min-height: 44px;
}

.aanv-action-reason {
    font-size: 14px;
    opacity: .72;
    margin: 0;
}

.aanv-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aanv-timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
}

.aanv-timeline-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background-color: rgba(34, 49, 59, .18);
}

.aanv-timeline-last {
    padding-bottom: 0;
}

.aanv-timeline-last::before {
    display: none;
}

.aanv-timeline-dot {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border: 2px solid var(--aanv-nightblue);
    border-radius: 50%;
    background-color: var(--aanv-white);
    box-sizing: border-box;
}

.aanv-timeline-last .aanv-timeline-dot {
    background-color: var(--aanv-nightblue);
}

.aanv-timeline-label {
    font-weight: 700;
    font-size: 15px;
}

.aanv-timeline-time {
    font-size: 14px;
    opacity: .72;
}

/* Menubadge "Partneraanvragen" (NavMenu). GREEN met NIGHTBLUE-tekst: 12px bold, pill. */
.aanv-nav-badge {
    display: inline-block;
    min-width: 22px;
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    background-color: var(--aanv-green);
    color: var(--aanv-nightblue);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* ── Leadbeheer /admin/leads ───────────────────────────────────────────────────────
   Klassen met prefix lead-. Kleuren komen als CSS-variabelen uit Colors (LeadScreen.CssVariables
   op .lead-page en op elke leaddialoog); de rgba-waarden zijn NIGHTBLUE (#22313B) met alfa.
   Terracotta alleen als tekst of rand op wit, nooit op creme. */

.lead-page,
.lead-dialog {
    color: var(--lead-nightblue);
}

.lead-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lead-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.lead-head-actions,
.lead-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.lead-intro {
    max-width: 70ch;
    opacity: .8;
    margin: 0 0 20px;
}

.lead-button.mud-button-root {
    min-height: 44px;
    text-transform: none;
    border-radius: 10px;
}

.lead-button-destructive.mud-button-root,
.lead-button-destructive.mud-button-root:hover {
    background-color: var(--lead-terracotta);
    color: var(--lead-white);
}

.lead-button-destructive.mud-button-root.mud-button-disabled {
    background-color: rgba(34, 49, 59, .12);
    color: rgba(34, 49, 59, .5);
}

.lead-menu-destructive {
    color: var(--lead-terracotta);
}

.lead-blocked-root,
.lead-blocked {
    display: inline-block;
}

.lead-blocked:focus-visible {
    outline: 2px solid var(--lead-nightblue);
    outline-offset: 2px;
    border-radius: 10px;
}

.lead-reason {
    margin: 8px 0 0;
}

.lead-card {
    background-color: var(--lead-white);
    border-radius: 10px;
}

.lead-card-padded {
    padding: 22px;
    margin-bottom: 24px;
}

.lead-card-title {
    font-family: ivypresto, Roboto, serif;
    font-weight: 400;
    font-size: 22px;
    margin: 0 0 16px;
}

.lead-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.lead-card-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.lead-sub {
    font-size: 14px;
    opacity: .72;
}

.lead-block {
    display: block;
}

.lead-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .72;
    margin-bottom: 4px;
}

.lead-empty {
    margin: 24px 0;
    text-align: center;
    opacity: .75;
}

.lead-empty-card {
    text-align: center;
}

.lead-empty-card .lead-actions-row {
    justify-content: center;
}

/* Statuschip: pill, 13px bold. Kleuren per status uit LeadScreen.StatusChipStyle. */
.lead-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    padding: 5px 12px;
    white-space: nowrap;
}

.lead-flag,
.lead-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.lead-flag,
.lead-tag-outline {
    border: 1px solid var(--lead-nightblue);
    background: transparent;
}

.lead-tag {
    background-color: var(--lead-creme-dark);
}

.lead-tag-green {
    background-color: var(--lead-green);
}

.lead-tag-lavender {
    background-color: var(--lead-lavender);
}

.lead-overdue {
    color: var(--lead-terracotta);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Filterbalk */
.lead-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.lead-filter {
    flex: 0 1 200px;
    min-width: 170px;
}

.lead-filter-search {
    flex: 1 1 320px;
}

.lead-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

/* Tabel: per ondernemingsgroep, vestigingen ingesprongen. Scrollt binnen de kaart. */
.lead-grid-card {
    position: relative;
    margin-bottom: 24px;
}

.lead-grid-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.lead-grid-scroll {
    overflow-x: auto;
}

.lead-grid {
    width: 100%;
    border-collapse: collapse;
}

.lead-grid th,
.lead-grid td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(34, 49, 59, .1);
}

.lead-grid thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.lead-sort {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    opacity: .72;
    cursor: pointer;
    padding: 0;
}

.lead-sort:focus-visible {
    outline: 2px solid var(--lead-nightblue);
    outline-offset: 2px;
}

.lead-row {
    cursor: pointer;
}

.lead-row:hover,
.lead-row:focus-within {
    background-color: var(--lead-creme);
}

.lead-row-context {
    opacity: .72;
}

.lead-row-more td {
    padding-top: 0;
}

.lead-cell-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}

.lead-indent {
    padding-left: 24px;
}

.lead-indent-sub {
    padding-left: 48px;
}

.lead-row-link {
    color: inherit;
    text-decoration: none;
}

.lead-row-link:hover,
.lead-row-link:focus-visible,
.lead-row:hover .lead-row-link {
    text-decoration: underline;
}

.lead-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.lead-grid th.lead-num {
    text-align: right;
}

.lead-ellipsis {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-nowrap {
    white-space: nowrap;
}

.lead-followup {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lead-pager {
    display: flex;
    justify-content: center;
    padding: 12px;
}

@media (max-width: 959px) {
    .lead-col-wide {
        display: none;
    }
}

/* Detail */
.lead-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.lead-breadcrumb a,
.lead-heading a,
.lead-facts a,
.lead-banner a,
.lead-link-list a,
.lead-review-list a,
.lead-facts-line a {
    color: inherit;
}

.lead-breadcrumb-current {
    opacity: .72;
}

.lead-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.lead-facts-line {
    margin: 6px 0 16px;
}

.lead-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    background-color: var(--lead-white);
    border: 1px solid var(--lead-nightblue-light);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.lead-banner--warning {
    border-color: var(--lead-terracotta);
}

.lead-banner--success {
    border: 2px solid var(--lead-green);
}

.lead-banner-body {
    flex: 1 1 320px;
    min-width: 0;
}

.lead-review-list {
    list-style: none;
    margin: 8px 0;
    padding: 0;
}

.lead-review-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lead-tabs {
    margin-top: 16px;
}

.lead-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.lead-main {
    flex: 2 1 560px;
    min-width: 0;
}

.lead-side {
    flex: 1 1 280px;
    min-width: 0;
}

.lead-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 20px;
    margin: 0;
}

.lead-facts-single {
    grid-template-columns: 1fr;
}

.lead-facts dt {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    opacity: .72;
    margin-bottom: 4px;
}

.lead-facts dd {
    margin: 0;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.lead-location {
    margin: 16px 0 4px;
}

.lead-link-list,
.lead-mini-list,
.lead-option-list {
    list-style: none;
    margin: 8px 0;
    padding: 0;
}

.lead-link-list li,
.lead-option-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(34, 49, 59, .08);
}

.lead-mini-list li {
    padding: 4px 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.lead-tab-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.lead-panels .mud-expand-panel {
    border-radius: 10px;
    margin-bottom: 12px;
}

.lead-panel-left .lead-panel-title {
    opacity: .72;
}

.lead-panel-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.lead-person-name {
    font-size: 16px;
    font-weight: 700;
}

.lead-panel-icons .mud-icon-button {
    width: 44px;
    height: 44px;
}

.lead-copy-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lead-person-lists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.lead-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lead-item {
    margin-bottom: 12px;
}

.lead-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lead-item-head-right {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lead-text {
    margin: 8px 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.lead-text-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lead-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 6px 0;
}

.lead-tags .lead-tag {
    margin-left: 0;
}

.lead-subject {
    font-size: 16px;
    font-weight: 700;
    margin-top: 6px;
}

.lead-quote {
    background-color: var(--lead-creme);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 8px 0;
}

.lead-followup-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.lead-followup-body {
    flex: 1 1 auto;
    min-width: 0;
}

.lead-muted {
    opacity: .72;
}

.lead-flash {
    animation: lead-flash 200ms ease-out;
}

@keyframes lead-flash {
    from {
        background-color: var(--lead-green);
    }

    to {
        background-color: var(--lead-white);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lead-flash {
        animation: none;
    }
}

.lead-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lead-timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
}

.lead-timeline-item::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 16px;
    bottom: 0;
    width: 2px;
    background-color: rgba(34, 49, 59, .18);
}

.lead-timeline-last {
    padding-bottom: 0;
}

.lead-timeline-last::before {
    display: none;
}

.lead-timeline-dot {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border: 2px solid var(--lead-nightblue);
    border-radius: 50%;
    background-color: var(--lead-white);
    box-sizing: border-box;
}

.lead-timeline-label {
    font-weight: 700;
    font-size: 15px;
}

.lead-timeline-label a {
    color: inherit;
}

.lead-timeline-time {
    font-size: 14px;
    opacity: .72;
}

/* Formulieren en dialogen */
.lead-form-section {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 8px;
}

.lead-form-section:first-child {
    margin-top: 0;
}

.lead-field-error {
    color: var(--lead-terracotta);
    font-size: 14px;
    margin: 4px 0 0;
}

.lead-warning-line {
    margin: 4px 0 0;
}

.lead-quick-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.lead-status-options .mud-radio,
.lead-suggestions .mud-radio {
    align-items: flex-start;
    margin-bottom: 6px;
}

.lead-erase-block {
    border-top: 1px solid rgba(34, 49, 59, .12);
    padding-top: 12px;
    margin-top: 12px;
}

.lead-compare {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.lead-compare th,
.lead-compare td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(34, 49, 59, .1);
    vertical-align: middle;
}

.lead-compare thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .72;
}

.lead-compare-differs {
    background-color: var(--lead-creme);
}

/* Wizard */
.lead-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.lead-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.lead-step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--lead-nightblue);
    background-color: var(--lead-white);
    font-weight: 700;
}

.lead-step-current .lead-step-dot {
    background-color: var(--lead-nightblue);
    color: var(--lead-creme);
}

.lead-step-done .lead-step-dot {
    background-color: var(--lead-green);
    border-color: var(--lead-green);
}

.lead-step-current .lead-step-label {
    font-weight: 700;
}

.lead-step-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

.lead-step-title:focus {
    outline: none;
}

.lead-step-title:focus-visible {
    outline: 2px solid var(--lead-nightblue);
    outline-offset: 2px;
}

.lead-choice-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lead-choice-card {
    min-height: 44px;
    border: 1px solid var(--lead-field-border);
    border-radius: 10px;
    padding: 10px 12px;
}

.lead-results {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.lead-result {
    display: block;
    width: 100%;
    min-height: 44px;
    text-align: left;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--lead-field-border);
    border-radius: 10px;
    background-color: var(--lead-white);
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.lead-result:hover {
    background-color: var(--lead-creme);
}

.lead-result:focus-visible {
    outline: 2px solid var(--lead-nightblue);
    outline-offset: 2px;
}

/* Kaartje op het partneraanvraagdetail (staat binnen .aanv-page, dus met de aanv-variabelen). */
.lead-app-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    border: 1px solid var(--aanv-nightblue-light);
}

.lead-app-card--linked {
    border: 2px solid var(--aanv-green);
}

.lead-app-card a {
    color: inherit;
}

.lead-app-card-text {
    flex: 1 1 320px;
    min-width: 0;
}

.lead-app-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Leadbeheer — import ──────────────────────────────────────────────────────────────── */

.lead-import-upload {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: flex-start;
}

.lead-import-upload-main {
    flex: 2 1 360px;
    min-width: 0;
}

.lead-import-upload-side {
    flex: 1 1 240px;
    min-width: 0;
}

.lead-dropzone {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 160px;
    padding: 16px;
    border: 2px dashed var(--lead-nightblue-light);
    border-radius: 10px;
    background-color: var(--lead-creme);
    text-align: center;
}

.lead-dropzone:hover,
.lead-dropzone--active {
    border-style: solid;
    border-color: var(--lead-nightblue);
    background-color: var(--lead-creme-dark);
}

.lead-dropzone:focus-within {
    outline: 2px solid var(--lead-nightblue);
    outline-offset: 2px;
}

/* Het bestandsveld bedekt de hele zone: klikken en slepen werken overal, en het blijft focusbaar. */
.lead-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.lead-dropzone-button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--lead-nightblue);
    border-radius: 4px;
    background-color: var(--lead-white);
    font-weight: 500;
}

.lead-import-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.lead-import-progress.mud-progress-linear {
    height: 8px;
    border-radius: 4px;
}

.lead-import-progress-text {
    margin: 8px 0;
}

.lead-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.lead-stat {
    display: flex;
    flex-direction: column;
    min-width: 120px;
    padding: 12px 16px;
    border: 1px solid var(--lead-field-border);
    border-radius: 10px;
    background-color: var(--lead-white);
}

.lead-stat:has(.lead-stat-button) {
    padding: 0;
}

.lead-stat-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.lead-stat-button:hover,
.lead-stat-active {
    background-color: var(--lead-creme);
}

.lead-stat-button:focus-visible {
    outline: 2px solid var(--lead-nightblue);
    outline-offset: 2px;
}

.lead-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.lead-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.lead-pill {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--lead-nightblue);
    border-radius: 999px;
    background: transparent;
    color: var(--lead-nightblue);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.lead-pill:hover {
    background-color: var(--lead-green);
}

.lead-pill-active,
.lead-pill-active:hover {
    background-color: var(--lead-nightblue);
    color: var(--lead-white);
}

.lead-pill:focus-visible {
    outline: 2px solid var(--lead-nightblue);
    outline-offset: 2px;
}

.lead-pill-count {
    margin-left: 6px;
    opacity: .7;
}

.lead-outcome-new {
    background-color: var(--lead-green);
}

.lead-outcome-supplement {
    background-color: var(--lead-lavender);
}

.lead-outcome-skip {
    border: 1px solid var(--lead-nightblue);
}

.lead-outcome-error {
    border: 1px solid var(--lead-terracotta);
    background-color: var(--lead-white);
    color: var(--lead-terracotta);
}

.lead-import-signals {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lead-signal {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.lead-signal-error {
    color: var(--lead-terracotta);
}

.lead-import-details td {
    background-color: var(--lead-creme);
}

.lead-import-actions {
    justify-content: space-between;
    margin-top: 16px;
}

.lead-import-batches {
    margin-top: 24px;
}

/* ── Leadbeheer — kaart ───────────────────────────────────────────────────────────────── */

.lead-map-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.lead-map-main {
    flex: 1 1 auto;
    min-width: 0;
}

.lead-map-side {
    flex: 0 0 300px;
}

.lead-map-wrap {
    position: relative;
}

.lead-map {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--lead-creme);
}

.lead-map-page {
    height: calc(100vh - 260px);
    min-height: 480px;
}

.lead-map-dialog {
    height: 420px;
}

/* De ondergrond grijs en vervaagd: de cirkels zijn het enige gekleurde in beeld. */
.lead-map .leaflet-tile-pane {
    filter: grayscale(1);
    opacity: .6;
}

.lead-map .leaflet-container,
.lead-map.leaflet-container {
    background-color: var(--lead-creme);
    font: inherit;
}

.lead-map .leaflet-marker-icon:focus-visible {
    outline: 2px solid var(--lead-nightblue);
    outline-offset: 2px;
}

.lead-map--placing .lead-map-marker {
    opacity: .5;
    pointer-events: none;
}

.lead-map-popup {
    color: var(--lead-nightblue);
    line-height: 1.5;
}

.lead-map-popup-name {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.lead-map-popup-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.lead-map-popup-move {
    min-height: 32px;
    padding: 0 8px;
    border: 1px solid var(--lead-nightblue);
    border-radius: 4px;
    background: transparent;
    color: var(--lead-nightblue);
    font: inherit;
    cursor: pointer;
}

.lead-map-popup-move:focus-visible {
    outline: 2px solid var(--lead-nightblue);
    outline-offset: 2px;
}

.lead-map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 500;
    transform: translate(-50%, -50%);
    text-align: center;
}

.lead-map-failed {
    padding: 24px;
    border-radius: 10px;
    background-color: var(--lead-creme-dark);
}

.lead-map-counts {
    margin: 8px 0;
}

.lead-map-coordinates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    width: 100%;
}

.lead-map-coordinates .mud-input-control {
    max-width: 220px;
}

.lead-legend,
.lead-unplaced {
    list-style: none;
    margin: 8px 0;
    padding: 0;
}

.lead-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
}

.lead-unplaced li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--lead-field-border);
}

.lead-unplaced-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lead-unplaced-text a {
    color: inherit;
}

@media (max-width: 959.98px) {
    .lead-map-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .lead-map-side {
        flex-basis: auto;
    }

    .lead-map-page {
        height: 420px;
        min-height: 0;
    }
}
