.staat-totalenbalk {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    border-block: 1px solid #a7c9b5;
    background: #f3f8f5;
    font-variant-numeric: tabular-nums;
}

.staat-totalenbalk > div {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-right: 1px solid #b8c8be;
}

.staat-totalenbalk > div:last-child { border-right: 0; }
.staat-totalenbalk span { min-width: 0; color: #4a4a4a; overflow-wrap: anywhere; }
.staat-totalenbalk strong { color: #202020; white-space: nowrap; }
.staat-totalenbalk .staat-eindtotaal { box-shadow: inset 3px 0 0 var(--primair); }
.staat-totalenbalk .staat-eindtotaal strong { color: #0b5a28; }
.staat-totaal-onbekend { color: #735c0f !important; font-weight: 600; }
.prijsstaat-totalen { display: grid; gap: 6px; }

.inschrijving-raster-totaalrij {
    display: grid;
    min-height: 38px;
    grid-template-columns: 46px 88px minmax(280px, 1fr) 76px 108px 176px 130px 128px;
    border: 1px solid #aeb7b2;
    border-top: 0;
    background: #f5f6f5;
    font-weight: 700;
}
.inschrijving-raster-totaalrij > div { display: flex; align-items: center; padding: 6px 8px; }
.inschrijving-raster-totaalrij > div:first-child { grid-column: 1 / 8; justify-content: flex-end; }
.inschrijving-raster-totaalrij > div:last-child {
    grid-column: 8;
    justify-content: flex-end;
    border-left: 1px solid #b8b8b8;
    white-space: nowrap;
}
.inschrijving-raster-totaalrij.staat-eindtotaal {
    border-top: 2px solid var(--primair);
    background: #eaf4ee;
    color: #0b5a28;
}
.inschrijving-mobiele-totalen { display: grid; gap: 6px; padding-top: 8px; background: #fff; }
.inschrijving-mobiele-totalen > strong { padding-inline: 10px; }

@media (max-width: 599px) {
    .staat-totalenbalk { grid-template-columns: 1fr; }
    .staat-totalenbalk > div {
        min-height: 38px;
        border-right: 0;
        border-bottom: 1px solid #d4dfd8;
    }
    .staat-totalenbalk > div:last-child { border-bottom: 0; }
    .prijsstaat-totalen .staat-totalenbalk { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prijsstaat-totalen .staat-totalenbalk > div {
        min-height: 48px;
        grid-template-columns: minmax(0, 1fr);
        align-content: center;
        gap: 2px;
        padding: 5px 7px;
        border-right: 1px solid #b8c8be;
        border-bottom: 0;
    }
    .prijsstaat-totalen .staat-totalenbalk > div:last-child { border-right: 0; }
    .prijsstaat-totalen .staat-totalenbalk span { font-size: 9px; }
    .prijsstaat-totalen .staat-totalenbalk strong {
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
    }
}
