.editor-oppervlak { letter-spacing: 0; }
.excel-navigatie { background: #f7f7f7; }
.excel-navigatie header { min-height: 64px; border-bottom: 1px solid #d2d2d2; background: #fff; }
.excel-navigatie header div { min-width: 0; }
.excel-navigatie header h2 { margin: 0; font-size: 16px; }
.excel-navigatie header small { color: #616161; }
.excel-navigatie header > span { color: #424242; font-size: 12px; white-space: nowrap; }
.werkblad-keuze { padding: 6px 0; border-bottom: 1px solid #d2d2d2; }
.excel-navigatie .nav-regel { width: 100%; min-height: 38px; border: 0; border-left: 3px solid transparent; border-radius: 0; color: #242424; background: transparent; text-decoration: none; text-align: left; }
.excel-navigatie .nav-regel.sectie { display: grid; align-items: center; grid-template-columns: 28px 1fr; gap: 7px; padding: 6px 12px; }
.excel-navigatie .nav-regel:hover { background: #ededed; }
.excel-navigatie .nav-regel.actief { border-left-color: #217346; background: #e4f2e9; }
.blad-icoon { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #217346; color: #185c37; background: #fff; font-size: 11px; font-weight: 700; }
.post-navigatie h3 { margin: 0; padding: 12px 12px 6px; color: #424242; font-size: 12px; text-transform: uppercase; }
.post-navigatie .nav-regel.post { display: grid; min-height: 44px; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 6px; padding: 6px 10px; }
.post-navigatie .postnummer { color: #185c37; font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.post-navigatie strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.navigatie-leeg { margin: 8px 12px; color: #616161; font-size: 12px; }
.post-structuur { padding-bottom: 12px; }
.boom-groep { border-bottom: 1px solid #dedede; }
.boom-groep h3 { position: sticky; z-index: 2; top: 0; padding: 9px 12px; background: #f7f7f7; }
.boom-tak, .boom-blad { width: 100%; border: 0; color: #242424; background: transparent; }
.boom-tak > summary { list-style: none; cursor: pointer; }
.boom-samenvatting { width: calc(100% - 22px); border: 0; padding: 0; color: inherit; background: transparent; text-align: left; }
.boom-tak > summary::-webkit-details-marker { display: none; }
.boom-tak > summary::before { float: left; width: 16px; margin-top: 9px; margin-left: 6px; color: #616161; content: ">"; font-size: 10px; transform: rotate(0); transform-origin: center; }
.boom-tak[open] > summary::before { transform: rotate(90deg); }
.boom-blad { display: block; padding: 0 0 0 22px; text-align: left; }
.boom-kinderen { margin-left: 13px; border-left: 1px solid #d2d2d2; }
.boom-regel { display: grid; min-height: 36px; grid-template-columns: 17px 44px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 5px 8px 5px 2px; border-left: 3px solid transparent; }
.boom-regel:hover { background: #ededed; }
.boom-regel.actief { border-left-color: #217346; background: #e4f2e9; }
.boom-map-icoon { position: relative; width: 15px; height: 11px; border: 1px solid #8a6d2f; background: #f3d47a; }
.boom-map-icoon::before { position: absolute; top: -4px; left: -1px; width: 7px; height: 3px; border: 1px solid #8a6d2f; border-bottom: 0; background: #f3d47a; content: ""; }
.boom-nummer { color: #185c37; font-family: "Cascadia Mono", Consolas, monospace; font-size: 11px; }
.boom-regel strong { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.boom-regel small { color: #616161; font-size: 10px; white-space: nowrap; }
.boom-kinderen .boom-regel small { display: none; }

.excel-werkblad { display: flex; overflow: hidden; flex-direction: column; padding: 0; background: #f3f3f3; }
.excel-werkblad > header { min-height: 68px; margin: 0; padding: 10px 16px; border-bottom: 1px solid #c8c8c8; background: #fff; }
.excel-werkblad > header h1 { max-width: min(62vw, 720px); overflow: hidden; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.excel-sectie { min-height: 0; flex: 1 1 auto; margin: 0; overflow: auto; padding: 0; border: 0; border-bottom: 1px solid #c8c8c8; background: #fff; }
.postenblad, .generiek-werkblad { display: flex; flex-direction: column; overflow: hidden; }
.excel-sectie > header { display: flex; min-height: 38px; align-items: center; justify-content: space-between; padding: 6px 12px; border-bottom: 1px solid #d9d9d9; background: #f8f8f8; }
.excel-sectie > header h2 { margin: 0; font-size: 14px; }
.excel-sectie > header span { color: #616161; font-size: 12px; }
.documentblad table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.documentblad th { width: 190px; border-right: 1px solid #d9d9d9; padding: 0 10px; color: #424242; background: #f5f5f5; font-size: 12px; text-align: left; }
.documentblad td, .documentblad th { height: 34px; border-bottom: 1px solid #e2e2e2; }
.documentblad tr.geselecteerd th { border-left: 3px solid #217346; padding-left: 7px; background: #e4f2e9; }
.excel-raster-omhulsel { max-width: 100%; min-height: 0; flex: 1 1 auto; overflow: auto; background: #fff; }
.excel-raster-omhulsel table { min-width: 960px; border-spacing: 0; table-layout: fixed; }
.excel-raster-omhulsel thead th { position: sticky; z-index: 2; top: 0; height: 46px; border-right: 1px solid #c8c8c8; border-bottom: 1px solid #a6a6a6; padding: 4px 7px; color: #242424; background: #f3f3f3; font-size: 11px; text-align: left; vertical-align: bottom; }
.excel-raster-omhulsel thead th small { display: block; margin-bottom: 2px; color: #707070; font-size: 10px; font-weight: 400; }
.excel-raster-omhulsel thead th span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.excel-raster-omhulsel .rij-kop { position: sticky; z-index: 1; left: 0; width: 38px; color: #616161; background: #f3f3f3; text-align: center; }
.excel-raster-omhulsel .hoek-cel { z-index: 3; }
.excel-raster-omhulsel tbody .rij-kop { border-right: 1px solid #a6a6a6; border-bottom: 1px solid #d9d9d9; font-size: 11px; font-weight: 400; }
.werkblad-cel { height: 35px; border-right: 1px solid #d9d9d9; border-bottom: 1px solid #d9d9d9; padding: 0 !important; background: #fff; }
.post-geselecteerd .rij-kop { color: #fff; background: #217346; }
.post-geselecteerd .werkblad-cel { background: #f5fbf7; }
.werkblad-cel.kolom-deficode, .virtueel-raster-kop > .kolom-deficode { text-align: center; }
.werkblad-cel.kolom-klein, .virtueel-raster-kop > .kolom-klein { text-align: center; }
.werkblad-cel.kolom-getal, .virtueel-raster-kop > .kolom-getal { text-align: right; }
.werkblad-cel.kolom-getal .cel-input, .werkblad-cel.kolom-getal .cel-alleen-lezen { text-align: right; }
.cel-input, .cel-select { width: 100%; height: 34px; min-height: 34px; border: 0; border-radius: 0; padding: 5px 7px; color: #242424; background: transparent; font: inherit; }
.cel-input:hover, .cel-select:hover { background: #f2f8f4; }
.cel-input:focus, .cel-select:focus { position: relative; z-index: 1; outline: 2px solid #217346; outline-offset: -2px; background: #fff; }
.cel-input:invalid { background: #fff4f4; box-shadow: inset 0 -2px #b42318; }
.cel-input:disabled, .cel-select:disabled { color: #616161; background: #f5f5f5; }
.cel-bewerker { position: relative; min-height: 34px; }
.cel-bewerker.ongeldig { background: #fff4f4; box-shadow: inset 0 -2px #b42318; }
.cel-bewerker.ongeldig .cel-input, .cel-bewerker.ongeldig .cel-select { padding-right: 24px; }
.cel-fout-indicator { position: absolute; top: 8px; right: 6px; color: #b42318; font-size: 12px; font-weight: 700; pointer-events: none; }
.cel-alleen-lezen, .cel-niet-beschikbaar { min-height: 34px; padding: 7px; overflow: hidden; color: #525252; background: transparent; text-overflow: ellipsis; white-space: nowrap; }
.leeg-werkblad { height: 96px; color: #616161; background: #fff; text-align: center; }
.werkblad-tabs { display: flex; position: sticky; z-index: 4; bottom: 0; min-height: 34px; align-items: stretch; gap: 2px; border-top: 1px solid #bdbdbd; background: #f3f3f3; }
.werkblad-tabs button { display: flex; align-items: center; border: 0; border-bottom: 3px solid transparent; padding: 6px 14px 3px; color: #242424; background: transparent; }
.werkblad-tabs button:hover { background: #e6e6e6; }
.werkblad-tabs button.actief { border-bottom-color: #217346; color: #185c37; background: #fff; font-weight: 600; }

.detail-kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.detail-kop h2 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.bewerkstatus { flex: 0 0 auto; padding: 3px 5px; border-radius: 2px; font-size: 11px; }
.bewerkstatus.bewerkbaar { color: #0f5c2e; background: #dff6dd; }
.bewerkstatus.alleen-lezen { color: #4f4f4f; background: #e6e6e6; }
.veld-betekenis { margin: 0; color: #525252; line-height: 1.45; }
.detail-invoer { min-height: 36px; border: 1px solid #8a8886; background: #fff; }
.detail-invoer .cel-input, .detail-invoer .cel-select { min-height: 35px; }
.technische-details { border-top: 1px solid #d9d9d9; padding-top: 9px; }
.technische-details summary { color: #185c37; cursor: pointer; font-size: 12px; font-weight: 600; }
.technische-details.compact { padding-top: 6px; }
.technische-details code { display: block; max-width: 100%; margin-top: 6px; overflow-wrap: anywhere; white-space: normal; }

@media (max-width: 900px) {
    .excel-navigatie { max-height: 190px; }
    .post-navigatie { display: none; }
    .excel-werkblad > header h1 { max-width: 62vw; font-size: 18px; }
    .documentblad th { width: 145px; }
    .detailpaneel { border-top: 1px solid #c8c8c8; }
    .excel-werkblad { padding: 0; }
}

@media (max-width: 600px) {
    .editor-documenttitel .documenttype { display: none; }
    .editor-documenttitel .validatiekop { padding-inline: 5px; }
}
