.administratie-navregel.deelopdracht { padding-left: 22px; }
.administratie-navregel.deelopdracht .blad-icoon { width: 20px; height: 23px; }
.blad-icoon.deelopdracht { color: #7a3e00; border-color: #9b754e; }

.deelopdracht-overzicht,
.deelopdracht-werkblad {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.deelopdracht-overzicht > header,
.deelopdracht-werkblad > header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--lijn);
}
.deelopdracht-overzicht > header small,
.deelopdracht-werkblad > header small { color: var(--primair); font-size: 11px; font-weight: 700; }
.deelopdracht-overzicht > header h1,
.deelopdracht-werkblad > header h1 { margin: 2px 0 1px; }
.deelopdracht-overzicht > header p,
.deelopdracht-werkblad > header p { margin: 0; color: var(--subtiel); }

.deelopdracht-status { display: inline-flex; min-height: 24px; align-items: center; border: 1px solid transparent; border-radius: 3px; padding: 2px 7px; white-space: nowrap; font-size: 11px; font-weight: 650; }
.deelopdracht-status.samenstellen { color: #704b00; border-color: #e8cc83; background: #fff4ce; }
.deelopdracht-status.wachten { color: #075985; border-color: #a6d5ed; background: #e6f4fb; }
.deelopdracht-status.akkoord { color: #0b5a28; border-color: #a7d8b9; background: #dff6dd; }
.deelopdracht-status.actief { color: #3b2e68; border-color: #c9bfe8; background: #eeeafd; }
.deelopdracht-status.afgewezen { color: #8a1c12; border-color: #e8aaa4; background: #fde7e9; }
.deelopdracht-status.gesloten { color: #525252; border-color: #c8c8c8; background: #f3f3f3; }

.deelopdracht-lijstkop,
.deelopdracht-lijstrij { display: grid; min-width: 820px; grid-template-columns: minmax(260px,1fr) 160px 70px minmax(220px,.7fr) 150px; align-items: center; gap: 12px; }
.deelopdracht-lijstkop { min-height: 36px; padding: 0 14px; border-bottom: 1px solid #8a8a8a; color: var(--subtiel); background: #f3f3f3; font-size: 11px; font-weight: 600; }
.deelopdracht-lijst { min-width: 0; min-height: 0; flex: 1 1 auto; overflow: auto; }
.deelopdracht-lijstrij { width: 100%; min-height: 60px; border: 0; border-bottom: 1px solid var(--lijn); padding: 7px 14px; color: inherit; background: #fff; text-align: left; }
.deelopdracht-lijstrij:hover { background: #edf5f0; box-shadow: inset 3px 0 var(--primair); }
.deelopdracht-lijstrij > div { min-width: 0; }
.deelopdracht-lijstrij > div strong,
.deelopdracht-lijstrij > div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deelopdracht-lijstrij small,
.deelopdracht-lijstrij > span { overflow: hidden; color: var(--subtiel); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.deelopdracht-lijstrij > strong { text-align: right; font-variant-numeric: tabular-nums; }
.deelopdracht-leeg { display: grid; min-height: 180px; place-content: center; gap: 5px; margin: 0; color: var(--subtiel); text-align: center; }
.deelopdracht-leeg strong { color: var(--inkt); }

.deelopdracht-samenvatting { display: grid; flex: 0 0 auto; grid-template-columns: repeat(6,minmax(90px,1fr)); border-bottom: 1px solid #b8b8b8; background: #f7f7f7; }
.deelopdracht-samenvatting > div { min-width: 0; padding: 7px 10px; border-right: 1px solid var(--lijn); }
.deelopdracht-samenvatting span,
.deelopdracht-samenvatting strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deelopdracht-samenvatting span { color: var(--subtiel); font-size: 10px; }

.deelopdracht-metadata { flex: 0 0 auto; border-bottom: 1px solid var(--lijn); background: #fafafa; }
.deelopdracht-metadata > header { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 12px 0; }
.deelopdracht-metadata h2 { margin: 0; font-size: 13px; }
.deelopdracht-metadata header small { color: var(--subtiel); }
.deelopdracht-metadata > div { display: grid; grid-template-columns: minmax(220px,1.5fr) repeat(3,minmax(145px,1fr)); gap: 8px; padding: 6px 12px 8px; }
.deelopdracht-metadata label,
.deelopdracht-bewerkbalk label { display: grid; min-width: 0; gap: 3px; color: var(--subtiel); font-size: 10px; font-weight: 600; }
.deelopdracht-metadata input,
.deelopdracht-bewerkbalk input { width: 100%; min-height: 30px; border: 1px solid #8a8a8a; border-radius: 2px; padding: 4px 7px; background: #fff; }
.deelopdracht-metadata input:focus,
.deelopdracht-bewerkbalk input:focus { border-color: #0f6cbd; box-shadow: inset 0 -2px #0f6cbd; outline: 0; }
.deelopdracht-metadata input:disabled { color: #555; background: #f3f3f3; }
.deelopdracht-bewerkbalk { display: grid; flex: 0 0 auto; grid-template-columns: minmax(260px,420px) 1fr; align-items: end; gap: 12px; padding: 6px 12px; border-bottom: 1px solid var(--lijn); }
.deelopdracht-werkmelding { margin: 0 0 5px; color: var(--subtiel); font-size: 11px; }
.deelopdracht-werkmelding.fout { color: var(--fout); font-weight: 600; }

.deelopdracht-werkgebied { display: grid; min-width: 0; min-height: 0; flex: 1 1 auto; grid-template-columns: minmax(0,1fr) 292px; overflow: hidden; }
.deelopdracht-staat { display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; }
.deelopdracht-desktop-raster { min-width: 0; min-height: 0; flex: 1 1 auto; overflow: auto; scrollbar-gutter: stable; font-variant-numeric: tabular-nums; }
.deelopdracht-raster-inhoud { min-width: 1240px; min-height: 100%; }
.deelopdracht-raster-kop,
.deelopdracht-raster-rij { display: grid; grid-template-columns: 42px 92px minmax(300px,1fr) 145px 70px 120px 132px 132px 142px; }
.deelopdracht-raster-kop { position: sticky; z-index: 3; top: 0; height: 42px; border-bottom: 1px solid #737373; color: var(--subtiel); background: #f3f3f3; font-size: 11px; font-weight: 600; }
.deelopdracht-raster-kop > div,
.deelopdracht-cel { display: flex; min-width: 0; align-items: center; border-right: 1px solid #9f9f9f; padding: 5px 7px; }
.deelopdracht-raster-kop .getal { justify-content: flex-end; text-align: right; }
.deelopdracht-raster-rij { height: 46px; border-bottom: 1px solid #d2d2d2; background: #fff; }
.deelopdracht-raster-rij:hover { background: #f1f7f4; }
.deelopdracht-raster-rij.actief { background: #e1f0e7; box-shadow: inset 3px 0 var(--primair),inset 0 1px #70a98b,inset 0 -1px #70a98b; }
.deelopdracht-cel.rijhoofd { justify-content: flex-end; color: var(--subtiel); background: #fafafa; }
.deelopdracht-cel.postnummer { color: #0b5a28; font-family: "Cascadia Mono",Consolas,monospace; font-weight: 650; }
.deelopdracht-cel.omschrijving,
.deelopdracht-cel.bron { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deelopdracht-cel.bron { color: #4e4e4e; font-size: 11px; }
.deelopdracht-cel.getal { justify-content: flex-end; text-align: right; white-space: nowrap; }
.deelopdracht-cel.totaal { font-weight: 650; }
.deelopdracht-cel.invoer { padding: 3px 5px; }
.deelopdracht-cel.fout { color: var(--fout); background: #fff1f2; }
.deelopdracht-getal,
.deelopdracht-kenmerk { width: 100%; min-height: 31px; border: 1px solid transparent; border-radius: 2px; padding: 4px 7px; background: #fff; }
.deelopdracht-getal { text-align: right; font-variant-numeric: tabular-nums; }
.deelopdracht-getal:hover:not(:disabled),
.deelopdracht-kenmerk:hover:not(:disabled) { border-color: #737373; }
.deelopdracht-getal:focus,
.deelopdracht-kenmerk:focus { border-color: #0f6cbd; box-shadow: inset 0 -2px #0f6cbd; outline: 0; }
.deelopdracht-getal:disabled,
.deelopdracht-kenmerk:disabled { color: #454545; background: transparent; opacity: 1; }
.deelopdracht-getal.ongeldig { border-color: var(--fout); color: #8a1c12; background: #fff1f2; }
.deelopdracht-invoer-omhulsel { position: relative; min-width: 0; height: 100%; }
.deelopdracht-invoer-omhulsel .deelopdracht-getal { width: 100%; height: 100%; }
.deelopdracht-celfout { position: absolute; z-index: 4; top: calc(100% + 2px); right: 0; min-width: 180px; max-width: 280px; padding: 5px 7px; border: 1px solid #c42b1c; background: #fff; color: #8a1c12; box-shadow: 0 2px 8px #0002; font-size: 10px; font-weight: 600; white-space: normal; }
.deelopdracht-rubriek-rij { background: #e6eeea; box-shadow: inset 3px 0 #47705a; }
.deelopdracht-rubriek-inhoud { display: flex; min-width: 0; grid-column: 1/-1; align-items: center; gap: 12px; padding: 5px 12px; }
.deelopdracht-rubriek-inhoud span { color: #315642; font-family: "Cascadia Mono",Consolas,monospace; font-weight: 700; }
.deelopdracht-rubriek-inhoud strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deelopdracht-rubriek-inhoud small { margin-left: auto; font-weight: 650; }
.deelopdracht-rubriek-rij.rubriek-niveau-2 .deelopdracht-rubriek-inhoud { padding-left: 24px; }
.deelopdracht-rubriek-rij.rubriek-niveau-3 .deelopdracht-rubriek-inhoud { padding-left: 36px; }
.deelopdracht-rubriek-rij.rubriek-niveau-4 .deelopdracht-rubriek-inhoud { padding-left: 48px; }
.deelopdracht-rubriek-rij.rubriek-niveau-5 .deelopdracht-rubriek-inhoud { padding-left: 60px; }
.deelopdracht-rubriek-rij.rubriek-niveau-6 .deelopdracht-rubriek-inhoud { padding-left: 72px; }
.rubriek-totaalfout { color: #8a1c12; }
.deelopdracht-raster-leeg { display: grid; min-height: 160px; place-items: center; color: var(--subtiel); }
.deelopdracht-raster-totaal { position: sticky; z-index: 2; bottom: 0; display: grid; min-height: 42px; grid-template-columns: 1fr 142px; align-items: center; border-top: 2px solid var(--primair); background: #f3f8f5; }
.deelopdracht-raster-totaal span { padding: 7px 12px; text-align: right; }
.deelopdracht-raster-totaal strong { height: 100%; padding: 11px 8px; border-left: 1px solid #9f9f9f; text-align: right; }

.deelopdracht-zijpaneel { min-height: 0; overflow-y: auto; border-left: 1px solid #9f9f9f; background: #fafafa; }
.deelopdracht-zijsectie { padding: 13px 14px; border-bottom: 1px solid var(--lijn); }
.deelopdracht-zijsectie h2 { margin: 0 0 8px; font-size: 14px; }
.deelopdracht-zijsectie > p { margin: 0 0 11px; color: var(--subtiel); font-size: 11px; }
.akkoord-partij { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 8px; margin-top: 7px; padding: 7px; border-left: 3px solid #a0a0a0; background: #fff; }
.akkoord-partij.gegeven { border-left-color: #107c41; background: #edf7f1; }
.akkoord-teken { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #a0a0a0; border-radius: 50%; font-size: 9px; font-weight: 700; }
.akkoord-partij.gegeven .akkoord-teken { color: #0b5a28; border-color: #66a881; }
.akkoord-partij strong,
.akkoord-partij small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akkoord-partij small { color: var(--subtiel); font-size: 10px; }
.deelopdracht-totalen dl { margin: 0; }
.deelopdracht-totalen dl > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 5px 0; border-bottom: 1px solid #e4e4e4; }
.deelopdracht-totalen dt,
.deelopdracht-totalen dd { margin: 0; }
.deelopdracht-totalen dt { overflow: hidden; color: var(--subtiel); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.deelopdracht-totalen dd { text-align: right; font-variant-numeric: tabular-nums; }
.deelopdracht-totalen .eindtotaal { border-top: 2px solid var(--primair); border-bottom: 0; margin-top: 3px; padding-top: 8px; font-weight: 700; }
.deelopdracht-historie ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.deelopdracht-historie strong,
.deelopdracht-historie small { display: block; }
.deelopdracht-historie small { color: var(--subtiel); font-size: 10px; }
.deelopdracht-mobiele-lijst { display: none; min-width: 0; min-height: 0; flex: 1 1 auto; flex-direction: column; }

@media (max-width: 1400px) {
    .deelopdracht-werkgebied { grid-template-columns: minmax(0,1fr) 260px; }
    .deelopdracht-metadata > div { grid-template-columns: repeat(2,minmax(180px,1fr)); }
}

@media (max-width: 900px) {
    .deelopdracht-werkgebied { grid-template-columns: minmax(0,1fr) 250px; }
    .deelopdracht-lijstkop,
    .deelopdracht-lijstrij { min-width: 720px; grid-template-columns: minmax(230px,1fr) 145px 60px 180px 130px; }
    .deelopdracht-samenvatting { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .deelopdracht-samenvatting > div:nth-child(-n+3) { border-bottom: 1px solid var(--lijn); }
}

@media (max-width: 599px) {
    .deelopdracht-overzicht,
    .deelopdracht-werkblad { min-height: 0; flex: 1 1 auto; }
    .deelopdracht-overzicht > header,
    .deelopdracht-werkblad > header { align-items: flex-start; padding: 9px 11px; }
    .deelopdracht-overzicht > header p,
    .deelopdracht-werkblad > header p { display: none; }
    .deelopdracht-overzicht > header h1,
    .deelopdracht-werkblad > header h1 { max-width: calc(100vw - 130px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .deelopdracht-lijstkop { display: none; }
    .deelopdracht-lijstrij { min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 5px 8px; }
    .deelopdracht-lijstrij > span:not(.deelopdracht-status) { display: none; }
    .deelopdracht-lijstrij > strong { grid-column: 2; }
    .deelopdracht-samenvatting { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .deelopdracht-samenvatting > div { padding: 5px 7px; }
    .deelopdracht-metadata > header { display: none; }
    .deelopdracht-metadata > div { display: flex; gap: 7px; overflow-x: auto; padding: 5px 8px; scrollbar-width: thin; }
    .deelopdracht-metadata label { min-width: 190px; }
    .deelopdracht-bewerkbalk { grid-template-columns: 1fr; gap: 3px; padding: 5px 8px; }
    .deelopdracht-werkmelding { margin: 0; line-height: 15px; white-space: normal; }
    .deelopdracht-werkgebied { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
    .deelopdracht-staat { order: 0; min-height: 320px; flex: 0 0 clamp(320px,52vh,420px); overflow: hidden; }
    .deelopdracht-desktop-raster { display: none; }
    .deelopdracht-mobiele-lijst { display: flex; min-height: 0; overflow: hidden; }
    .deelopdracht-mobiele-scroll { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
    .deelopdracht-mobiele-rij { display: grid; height: 176px; grid-template-rows: 20px 34px 66px 24px; gap: 4px; padding: 7px 10px; border-bottom: 1px solid var(--lijn); background: #fff; }
    .deelopdracht-mobiele-rij.actief { background: #e1f0e7; box-shadow: inset 3px 0 var(--primair); }
    .deelopdracht-mobiele-rij > header { display: grid; grid-template-columns: 82px 45px 1fr; align-items: center; gap: 7px; }
    .deelopdracht-mobiele-rij header strong { color: #0b5a28; font-family: "Cascadia Mono",Consolas,monospace; }
    .deelopdracht-mobiele-rij header span,
    .deelopdracht-mobiele-rij header small { overflow: hidden; color: var(--subtiel); text-overflow: ellipsis; white-space: nowrap; }
    .deelopdracht-mobiele-rij header small { text-align: right; }
    .deelopdracht-mobiele-rij > p { display: -webkit-box; margin: 0; overflow: hidden; line-height: 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .deelopdracht-mobiele-rij > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .deelopdracht-mobiele-rij label { display: grid; min-width: 0; grid-template-rows: 14px 31px 20px; color: var(--subtiel); font-size: 10px; }
    .deelopdracht-mobiele-rij select { width: 100%; min-height: 31px; border: 1px solid #8a8a8a; border-radius: 2px; background: #fff; }
    .deelopdracht-mobiele-invoerfout { display: -webkit-box; overflow: hidden; color: #8a1c12; line-height: 10px; font-size: 9px; font-weight: 600; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .deelopdracht-mobiele-rij > footer { display: flex; align-items: center; justify-content: space-between; color: var(--subtiel); font-size: 11px; }
    .deelopdracht-mobiele-rij > footer strong { color: var(--inkt); font-size: 13px; }
    .deelopdracht-mobiele-rubriek { display: grid; height: 176px; align-content: center; grid-template-rows: 18px 1fr 30px; gap: 7px; padding: 14px; border-bottom: 1px solid #9fb5a8; background: #e6eeea; box-shadow: inset 3px 0 #47705a; }
    .deelopdracht-mobiele-rubriek > small { color: var(--subtiel); font-size: 10px; font-weight: 700; }
    .deelopdracht-mobiele-rubriek > div { display: grid; min-width: 0; grid-template-columns: 70px minmax(0,1fr); align-items: start; gap: 9px; }
    .deelopdracht-mobiele-rubriek > div span { color: #315642; font-family: "Cascadia Mono",Consolas,monospace; font-weight: 700; }
    .deelopdracht-mobiele-rubriek > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .deelopdracht-mobiele-rubriek > footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #b7c8bf; padding-top: 6px; }
    .deelopdracht-mobiele-lijst > footer { display: flex; min-height: 44px; align-items: center; justify-content: space-between; padding: 6px 10px; border-top: 2px solid var(--primair); background: #f3f8f5; }
    .deelopdracht-zijpaneel { order: 1; max-height: none; flex: none; overflow: visible; border-top: 1px solid #8a8a8a; border-left: 0; }
    .deelopdracht-zijsectie { padding: 9px 10px; }
}
