.calculatie-raster-rij.staat-aanvulling-rastereditor,
.deelopdracht-raster-rij.staat-aanvulling-rastereditor,
.inschrijving-raster-rij.staat-aanvulling-rastereditor {
    height: auto;
    min-height: 44px;
    align-items: stretch;
    background: #f7f8f7;
}

.staat-aanvulling-rastereditor-inhoud {
    min-width: 0;
    grid-column: 1 / -1;
}

.staat-aanvulling-rastereditor .staat-aanvulling-editor { min-width: 100%; }

/* Houd de laatste werkrij vrij van de vaste totaalbalk. De negatieve marge laat
   de balk de gereserveerde ruimte gebruiken zonder een lege strook toe te voegen. */
.staat-hoofdscroll {
    --staat-totaalruimte: 52px;
    --staat-totaalcompensatie: -52px;
    scroll-padding-block-end: calc(var(--staat-totaalruimte) + 8px);
}

.inschrijving-raster-rijen,
.calculatie-raster-rijen,
.deelopdracht-raster-rijen,
.inschrijving-mobiele-scroll,
.calculatie-mobiele-scroll,
.deelopdracht-mobiele-scroll {
    box-sizing: border-box;
    padding-bottom: var(--staat-totaalruimte, 52px);
    margin-bottom: var(--staat-totaalcompensatie, -52px);
}

.staat-aanvulling-rasterrij { scroll-margin-block-end: calc(var(--staat-totaalruimte, 52px) + 8px); }

.inschrijving-raster-totaal,
.calculatie-raster-totaal,
.deelopdracht-raster-totaal,
.inschrijving-mobiele-lijst > footer,
.calculatie-mobiele-lijst > footer,
.deelopdracht-mobiele-lijst > footer {
    position: sticky;
    z-index: 2;
    bottom: 0;
    pointer-events: none;
}
