.staat-aanvullingen {
    min-width: 0;
    flex: 0 0 auto;
    border-bottom: 1px solid #8f9692;
    background: #fff;
    font-variant-numeric: tabular-nums;
}
.staat-aanvullingen > header {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 12px;
    border-bottom: 1px solid #c8c8c8;
    background: #f2f3f2;
}
.staat-aanvullingen > header > div { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.staat-aanvullingen > header strong { font-size: 12px; }
.staat-aanvullingen > header small,
.staat-aanvullingen > header output { color: #525252; font-size: 10px; }
.staat-aanvullingen > header output { flex: 0 0 auto; white-space: nowrap; }
.staat-inline-commandobalk {
    display: flex;
    min-height: 52px;
    align-items: stretch;
    gap: 12px;
    padding: 4px 10px 5px 12px;
    border-bottom: 1px solid #c8c8c8;
    background: #fafafa;
}
.staat-inline-commandokop {
    display: grid;
    width: 148px;
    min-width: 0;
    align-content: center;
    border-right: 1px solid #d0d0d0;
    padding-right: 10px;
}
.staat-inline-commandolabel { color: #242424; font-size: 11px; font-weight: 700; }
.staat-inline-commandokop small { overflow: hidden; color: #616161; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.staat-inline-commandos { display: flex; min-width: 0; align-items: center; gap: 2px; overflow-x: auto; }
.staat-inline-commando { display: inline-flex; flex: 0 0 auto; }
.staat-inline-commando fluent-button.lint-knop { min-width: 104px; min-height: 38px; }
.staat-inline-commando fluent-button.lint-knop::part(control) { min-height: 38px; border-radius: 2px; padding: 3px 8px; }
.staat-inline-commando fluent-button.lint-knop:hover::part(control) { background: #e8f2ec; }
.staat-aanvulling-kolomkop,
.staat-aanvulling-rij {
    display: grid;
    min-width: 1090px;
    grid-template-columns: 112px minmax(260px, 1fr) 72px 104px 104px 118px 112px 208px;
}

.staat-aanvulling-kolomkop {
    height: 30px;
    border-bottom: 1px solid #898989;
    color: #525252;
    background: #f5f5f5;
    font-size: 10px;
    font-weight: 600;
}

.staat-aanvulling-kolomkop > span,
.staat-aanvulling-rij > * {
    display: flex;
    min-width: 0;
    align-items: center;
    border-right: 1px solid #aeb3b0;
    padding: 4px 7px;
}

.staat-aanvulling-kolomkop > span:nth-child(n+3):nth-child(-n+6) { justify-content: flex-end; text-align: right; }
.staat-aanvulling-lijst { overflow-x: auto; overflow-y: visible; scrollbar-gutter: stable; }
.staat-aanvulling-mobiele-virtualisatie { display: none; }
.staat-aanvulling-rij { height: 44px; border-bottom: 1px solid #d2d2d2; background: #fff; }
.staat-aanvulling-rij:hover { background: #f1f7f4; }
.staat-aanvulling-rij.actief { box-shadow: inset 3px 0 #107c41, inset 0 1px #8fc8aa, inset 0 -1px #8fc8aa; background: #e7f3ec; }
.staat-aanvulling-rij.tussenhoofd { box-shadow: inset 3px 0 #476f59; background: #e8f0eb; }
.staat-aanvulling-rij.ongeldig { box-shadow: inset 3px 0 #c42b1c; background: #fff7f7; }
.staat-aanvulling-rij.bezig { background: #f4f9fd; }

.staat-aanvulling-nummer { gap: 2px; color: #0b5a28; font-family: "Cascadia Mono", Consolas, monospace; font-weight: 700; }
.staat-aanvulling-rij.onder-tussenhoofd .staat-aanvulling-nummer,
.staat-aanvulling-editor.onder-tussenhoofd > header { border-left: 3px solid #6e9a7e; }
.staat-aanvulling-rij.niveau-1 .staat-aanvulling-nummer,
.staat-aanvulling-editor.niveau-1 > header { padding-left: 18px; }
.staat-aanvulling-rij.niveau-2 .staat-aanvulling-nummer,
.staat-aanvulling-editor.niveau-2 > header { padding-left: 28px; }
.staat-aanvulling-rij.niveau-3 .staat-aanvulling-nummer,
.staat-aanvulling-editor.niveau-3 > header { padding-left: 38px; }
.staat-aanvulling-rij.niveau-4 .staat-aanvulling-nummer,
.staat-aanvulling-editor.niveau-4 > header { padding-left: 48px; }
.staat-aanvulling-nummer sup { color: #0f6cbd; font: 700 10px Arial, sans-serif; }
.staat-aanvulling-omschrijving { align-items: flex-start !important; flex-direction: column; justify-content: center; }
.staat-aanvulling-omschrijving strong,
.staat-aanvulling-omschrijving small { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staat-aanvulling-omschrijving strong { font-size: 12px; }
.staat-aanvulling-omschrijving small { color: #616161; font-size: 9px; }
.staat-aanvulling-eenheid { justify-content: center; color: #525252; }
.staat-aanvulling-getal { overflow: hidden; justify-content: flex-end; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.staat-aanvulling-getal.bedrag { font-weight: 700; }
.staat-aanvulling-fase { justify-content: center; color: #424242; font-size: 10px; white-space: nowrap; }
.staat-aanvulling-fase.goedgekeurd { color: #0b5a28; background: #e4f4e8; }
.staat-aanvulling-fase.afgewezen { color: #8a1c12; background: #fde7e9; }
.staat-aanvulling-fase.voorgesteld { color: #075985; background: #e6f4fb; }
.staat-aanvulling-acties { justify-content: flex-end; gap: 2px; padding: 0 3px !important; }
.staat-aanvulling-rasterrij { position: relative; }
.staat-aanvulling-rasteromschrijving {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.staat-aanvulling-rasteromschrijving > div:first-child { display: grid; min-width: 0; }
.staat-aanvulling-rasteromschrijving strong,
.staat-aanvulling-rasteromschrijving small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staat-aanvulling-rasteromschrijving small { color: #616161; font-size: 9px; }
.staat-aanvulling-rasteromschrijving .staat-aanvulling-acties { display: flex; flex: 0 0 auto; align-items: center; border: 0; }
.staat-aanvulling-rastermarkering { color: #0f6cbd; font-weight: 700; }
.staat-aanvulling-rasterrubriek { box-shadow: inset 3px 0 #476f59; background: #e8f0eb; }
.staat-aanvulling-rasterrubriekinhoud {
    display: grid;
    min-width: 0;
    height: 100%;
    grid-column: 1 / -1;
    grid-template-columns: 84px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    border-right: 1px solid #9f9f9f;
    padding: 0 8px 0 12px;
}
.staat-aanvulling-rasterrubriekinhoud > span { color: #0b5a28; font-family: "Cascadia Mono", Consolas, monospace; font-weight: 700; }
.staat-aanvulling-rasterrubriekinhoud > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staat-aanvulling-rasterrubriekinhoud > small { color: #525252; font-size: 9px; }
.staat-aanvulling-statusacties,
.staat-inline-rijacties { display: flex; min-width: 0; align-items: center; justify-content: flex-end; }
.staat-inline-rijacties { flex: 1 1 auto; }
.staat-inline-rijacties fluent-button.icoon-knop,
.staat-aanvulling-statusacties fluent-button.icoon-knop { width: 30px; min-width: 30px; height: 34px; }
.staat-inline-rijacties fluent-button.icoon-knop::part(control),
.staat-aanvulling-statusacties fluent-button.icoon-knop::part(control) { min-width: 30px; min-height: 34px; border-radius: 2px; padding: 0; }
.staat-inline-rijstatus { overflow: hidden; color: #525252; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.staat-inline-rijstatus.fout { max-width: 72px; color: #a4262c; font-weight: 700; }
.staat-aanvulling-editor .staat-inline-rijstatus.fout { max-width: min(420px, 48vw); white-space: normal; }
.staat-inline-rijstatus.leeg,
.staat-inline-intrekvraag.leeg { display: none; }
.staat-inline-intrekvraag { color: #a4262c; font-size: 9px; font-weight: 700; }
.staat-aanvulling-leeg { display: grid; min-height: 54px; place-items: center; margin: 0; color: #616161; font-size: 11px; }

.staat-aanvulling-editor {
    border-bottom: 1px solid #767676;
    box-shadow: inset 3px 0 #107c41;
    background: #f7f8f7;
}

.staat-aanvulling-editor > header,
.staat-aanvulling-editor > footer {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 10px 5px 14px;
    background: #fff;
}

.staat-aanvulling-editor > header { border-bottom: 1px solid #c8c8c8; }
.staat-aanvulling-editor > footer { border-top: 1px solid #c8c8c8; }
.staat-aanvulling-editor > header > div { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.staat-aanvulling-editor > header strong { font-size: 12px; }
.staat-aanvulling-editor > header small,
.staat-aanvulling-editor > header > span,
.staat-aanvulling-editor > footer > span { color: #616161; font-size: 10px; }
.staat-aanvulling-editor > .staat-inline-editor { border: 0; box-shadow: none; background: transparent; }
.staat-aanvulling-editor .staat-inline-velden { background: #f7f8f7; }
.staat-inline-veld.alleen-lezen output {
    display: flex;
    height: 34px;
    align-items: center;
    border: 1px solid #b8b8b8;
    padding: 5px 7px;
    color: #525252;
    background: #f1f1f1;
}

.staat-aanvullingen.laden { min-height: 74px; }
.staat-aanvulling-laadmelding { display: flex; min-height: 36px; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; color: #525252; font-size: 11px; }
.staat-aanvulling-opnieuw { min-height: 30px; border: 1px solid #8a8a8a; border-radius: 2px; padding: 3px 10px; color: #242424; background: #fff; }
.staat-aanvulling-opnieuw:hover { border-color: #107c41; background: #e8f2ec; }
.staat-aanvulling-opnieuw:focus-visible { outline: 2px solid #0f6cbd; outline-offset: 1px; }

@media (max-width: 599px) {
    .staat-aanvullingen > header { align-items: flex-start; padding-inline: 10px; }
    .staat-aanvullingen > header > div { display: grid; gap: 0; }
    .staat-aanvullingen > header small { max-width: 68vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .staat-inline-commandobalk { min-height: 94px; flex-direction: column; gap: 4px; padding: 6px 8px; }
    .staat-inline-commandokop { width: 100%; min-height: 28px; border-right: 0; border-bottom: 1px solid #d0d0d0; padding: 0 2px 4px; }
    .staat-inline-commandos { width: 100%; padding-bottom: 2px; }
    .staat-inline-commando fluent-button.lint-knop { min-width: 108px; min-height: 42px; }
    .staat-aanvulling-kolomkop { display: none; }
    .staat-aanvulling-lijst { overflow-x: hidden; }
    .staat-aanvulling-desktop-virtualisatie { display: none; }
    .staat-aanvulling-mobiele-virtualisatie { display: block; }
    .staat-aanvulling-rij { min-width: 0; height: 116px; grid-template-columns: 78px repeat(3, minmax(0, 1fr)); grid-template-rows: 42px 34px 40px; }
    .staat-aanvulling-rij > * { border-right: 1px solid #c1c1c1; }
    .staat-aanvulling-omschrijving { grid-column: 2 / 5; }
    .staat-aanvulling-eenheid { grid-column: 1; grid-row: 2; }
    .staat-aanvulling-rij > .staat-aanvulling-getal:nth-child(4) { grid-column: 2; grid-row: 2; }
    .staat-aanvulling-rij > .staat-aanvulling-getal:nth-child(5) { grid-column: 3; grid-row: 2; }
    .staat-aanvulling-getal.bedrag { grid-column: 4; grid-row: 2; }
    .staat-aanvulling-fase { grid-column: 1; grid-row: 3; }
    .staat-aanvulling-acties { grid-column: 2 / 5; grid-row: 3; }
    .staat-aanvulling-editor > header,
    .staat-aanvulling-editor > footer { align-items: flex-start; padding-inline: 10px; }
    .staat-aanvulling-editor > header > div { display: grid; gap: 0; }
    .staat-aanvulling-editor > footer { flex-direction: column; }
    .staat-aanvulling-editor .staat-inline-velden { grid-template-columns: repeat(2, minmax(138px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .staat-aanvulling-rij { scroll-behavior: auto; }
}

@media (max-width: 599px) {
    .calculatie-mobiele-scroll .staat-aanvulling-rij {
        height: 142px;
        grid-template-rows: 46px 40px 56px;
    }

    .inschrijving-mobiele-scroll .staat-aanvulling-rij {
        height: 156px;
        grid-template-rows: 48px 42px 66px;
    }

    .deelopdracht-mobiele-scroll .staat-aanvulling-rij {
        height: 176px;
        grid-template-rows: 54px 46px 76px;
    }
}
