/* Indeling en processymbolen. Centrale styles verzorgen bediening en themakleuren. */
.destillatie,
.destillatie-dialog {
    --ds-achtergrond: var(--venster-achtergrond, var(--kleur-achtergrond, #f5f5f5));
    --ds-tekst: var(--tekst-venster, var(--vlak-tekst, #222));
    --ds-accent: var(--kleur-icoon, #387b98);
    --ds-lijn: color-mix(in srgb, var(--ds-tekst) 25%, transparent);
    --ds-vlak: color-mix(in srgb, var(--ds-achtergrond) 97%, var(--ds-tekst));
    --ds-selectie: color-mix(in srgb, var(--ds-accent) 13%, var(--ds-achtergrond));
    --ds-hoog: var(--kleur-fout, #a12222);
    --ds-waarschuwing: var(--kleur-waarschuwing, #945600);
    box-sizing: border-box;
    color: var(--ds-tekst);
    background: var(--ds-achtergrond);
    font-variant-numeric: tabular-nums;
}
.destillatie { min-width: 0; min-height: 0; height: 100%; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.browser-tool.destillatie { width: 100%; max-width: none; margin: 0; }
.ds-inhoud { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; overflow: hidden; }
.ds-fit-stage { position: absolute; inset: 0 auto auto 0; width: var(--ds-stage-width, 1180px); min-width: 0; padding: .65rem; display: flow-root; transform-origin: top left; }
.destillatie *, .destillatie-dialog * { box-sizing: border-box; }
.destillatie [hidden], .destillatie-dialog [hidden], .ds-titelbediening [hidden], .destillatie-menubalk [hidden] { display: none !important; }
.destillatie h2, .destillatie h3, .destillatie-dialog h2 { margin: 0; font-size: 1.08em; line-height: 1.35; }
.destillatie button, .destillatie input, .destillatie select, .destillatie-dialog input, .destillatie-dialog select { max-width: 100%; font: inherit; }
.destillatie .standaard-knop, .destillatie-dialog .standaard-knop { margin: 0; white-space: normal; }
.destillatie-menubalk.site-editor-menu { flex: 1 1 auto; min-width: 0; margin: 0; padding: .15rem .3rem; flex-wrap: wrap; }
body .destillatie-menubalk.site-editor-menu.windows-menu { background: transparent; background-image: none; }
body .destillatie-menubalk.site-editor-menu > .menu-item > a { background: transparent !important; background-image: none !important; }
.destillatie-menubalk > .menu-item { position: relative; }
.destillatie-menulijst { position: absolute; inset-inline-start: 0; top: 100%; list-style: none; margin: 0; min-width: 17rem; max-width: min(90vw, 24rem); z-index: 50; }
.destillatie-menulijst[hidden] { display: none !important; }
body .destillatie-menubalk.site-editor-menu .destillatie-menulijst .menu-item > a { position: relative; display: grid; grid-template-columns: 1rem minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .6rem .7rem; color: inherit; text-decoration: none; }
.destillatie-menulijst .menu-item > a:is(:hover, :focus-visible) { background: var(--kleur-menukeuze, color-mix(in srgb, currentColor 10%, transparent)); color: var(--kleur-menukeuzetekst, inherit); }
body .destillatie-menubalk.site-editor-menu .destillatie-menulijst .menu-item > a::before { content: none; display: none; }
.ds-menuvink { grid-column: 1; width: 1rem; text-align: center; visibility: hidden; }
.ds-menutekst { grid-column: 2; min-width: 0; }
[aria-checked="true"] > .ds-menuvink { visibility: visible; }
.destillatie-menulijst [aria-disabled="true"] { opacity: .5; cursor: default; }
body .destillatie-menubalk.site-editor-menu .destillatie-menulijst:has(> .heeft-submenu) { overflow: visible; }
.destillatie-submenulijst { inset-inline-start: 100%; top: 0; }
.destillatie-menulijst .heeft-submenu.is-open > .destillatie-submenulijst:not([hidden]) { display: block; }
.ds-submenupijl { grid-column: 3; margin-inline-start: auto; font-size: 1.3em; line-height: 1; }
.destillatie-venster > .applicatie-inhoud { padding: 0; min-height: 0; overflow: hidden; }
.destillatie-venster > .applicatie-titelbalk { height: auto; flex-basis: auto; flex-wrap: wrap; padding: 0; gap: 0; }
.destillatie-venster > .applicatie-titelbalk > :is(.window-titel, h1, .window-navigatie) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.destillatie-venster > .applicatie-titelbalk > .destillatie-menubalk { width: auto; flex: 0 1 auto; }
.destillatie-venster > .applicatie-titelbalk > .window-knoppen { flex: 0 0 auto; margin-inline-start: auto; }
.ds-titelbediening, .ds-schermkeuze, .ds-titelstatus { display: flex; align-items: center; gap: .35rem; }
.ds-titelbediening { flex: 1 1 auto; min-width: 0; max-width: 100%; justify-content: space-between; flex-wrap: wrap; padding: .15rem .35rem; color: inherit; }
.ds-schermkeuze { justify-content: center; flex: 1 0 auto; }
.ds-titelstatus { flex: 0 0 auto; margin-inline-start: auto; }
.ds-titelbediening .standaard-knop { position: relative; flex: 0 0 auto; margin: 0; }
.ds-bedieningsicoon { display: block; width: 1.5em; height: 1.5em; flex: 0 0 auto; overflow: visible; }
.ds-klok { font: inherit; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ds-titelbediening[dir="rtl"] { direction: ltr; }
.destillatie output,
.destillatie input[type="number"],
.destillatie [data-ds-controller-output],
.destillatie [data-ds-controller-unit],
.destillatie [data-ds-kp-unit],
.destillatie .ds-waardenlijst dd,
.ds-titelbediening .ds-klok { direction: ltr; unicode-bidi: isolate; }
.ds-titelstatus select { box-sizing: border-box; font: inherit; line-height: 1.3; min-height: var(--titelbalk-hoogte, 44px); padding: 9px 36px 9px 12px; max-width: 100%; }
.ds-alarmbadge { position: absolute; inset-inline-end: .1rem; top: .05rem; min-width: 1.1em; padding-inline: .15em; border-radius: 1em; background: var(--kleur-fout, #a12222); color: #fff; font-size: .65em; line-height: 1.2; text-align: center; }
.ds-alarmbadge:empty { display: none; }
.ds-toolbar, .ds-acties, .ds-paneelkop, .ds-paneelacties { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.ds-alarmknop { gap: .35rem; }
.ds-alarmknop[data-has-alarm="true"] { outline: 2px solid var(--ds-hoog); outline-offset: 2px; }
.ds-melding { padding: .7rem .8rem; border: 1px solid var(--ds-accent); border-radius: var(--kader-hoek, 7px); background: var(--ds-selectie); overflow-wrap: anywhere; }
.ds-melding[data-error="true"] { border-color: var(--ds-hoog); }
.ds-overzicht { display: grid; grid-template-columns: minmax(0, 1fr) 18.5rem; gap: .65rem; align-items: start; }
.ds-paneel { min-width: 0; border: 1px solid var(--ds-lijn); border-radius: var(--kader-hoek, 7px); overflow: hidden; background: var(--ds-achtergrond); }
.ds-paneelkop { justify-content: space-between; padding: .6rem .75rem; border-bottom: 1px solid var(--ds-lijn); background: var(--ds-vlak); }
.ds-paneelkop > span { font-size: .85em; }
.ds-proceskop { justify-content: center; text-align: center; }
.ds-proceskop h2 { font-size: 1em; }
.ds-schema-scroll { width: 100%; min-width: 0; overflow: hidden; }
.ds-schema { display: block; width: 100%; min-width: 0; height: auto; color: var(--ds-tekst); }
.ds-procesleidingen, .ds-binnenwerk, .ds-stroompijlen, .ds-meetverbinding, .ds-signaalleiding { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ds-procesleidingen { stroke-width: 3; }
.ds-stroompijlen { stroke-width: 2.2; }
.ds-pijlpunt { fill: var(--ds-tekst); stroke: none; }
.ds-koelleiding { stroke: var(--ds-accent); }
.ds-utility-leiding { stroke-dasharray: 8 5; }
.ds-vaten { fill: var(--ds-vlak); stroke: currentColor; stroke-width: 2.5; }
.ds-binnenwerk { opacity: .65; stroke-width: 1.7; }
.ds-vloeistof { fill: var(--ds-accent); opacity: .25; transform-origin: bottom; transform-box: fill-box; }
.ds-pomp, .ds-klep { cursor: pointer; fill: var(--ds-achtergrond); stroke: currentColor; stroke-width: 2.2; pointer-events: none; }
.ds-selectie-vlak { fill: transparent; stroke: transparent; pointer-events: all; }
.ds-pomp > .ds-selectie-vlak, .ds-klep > .ds-selectie-vlak { fill: transparent; stroke: transparent; }
.ds-pomp:is(:hover, :focus-visible, [aria-pressed="true"]) > .ds-selectie-vlak,
.ds-klep:is(:hover, :focus-visible, [aria-pressed="true"]) > .ds-selectie-vlak { fill: var(--ds-selectie); stroke: var(--ds-accent); }
.ds-pomp > path:not(.ds-pompvoet) { fill: var(--ds-accent); stroke: var(--ds-accent); }
.ds-pompvoet { fill: var(--ds-vlak); }
.ds-klep:hover, .ds-pomp:hover { stroke: var(--ds-accent); }
.ds-schemalabels { fill: currentColor; font-size: 19px; font-weight: 600; }
.ds-tag { font-size: 17px; font-weight: 700; }
.ds-meetvak { cursor: pointer; pointer-events: none; }
.ds-meetvak > rect { fill: var(--ds-achtergrond); stroke: currentColor; stroke-width: 1.5; pointer-events: all; }
.ds-meetvak > text { fill: currentColor; font-size: 22px; font-weight: 700; }
.ds-meetvak > .ds-tag { font-size: 16px; }
.ds-meetvak:is(:hover, :focus-visible, [aria-pressed="true"]) > rect { fill: var(--ds-selectie); stroke: var(--ds-accent); stroke-width: 3; }
.ds-schema [role="button"]:focus-visible { outline: none; }
.ds-meetverbinding { stroke-width: 1.5; }
.ds-signaalleiding { stroke-dasharray: 5 4; stroke-width: 1.5; }
.ds-productwaarden { font-size: 17px; fill: currentColor; }
.ds-regelaar form { padding: .4rem .6rem; }
.ds-regelaar .ds-paneelkop { padding: .4rem .6rem; }
.ds-veld { display: grid; gap: .3rem; min-width: 0; margin: 0 0 .65rem; font-size: .9em; }
.ds-veld > span { font-weight: 600; }
.ds-veld > :is(input, select, textarea) { width: 100%; min-width: 0; margin: 0; min-height: 2.45rem; padding: .35rem .45rem; }
.ds-veld small { margin-inline-start: .25rem; font-weight: 400; }
.ds-velden-twee, .ds-velden-drie { display: grid; gap: .6rem; }
.ds-velden-twee { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-velden-drie { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-regelaar .ds-veld { margin-bottom: .4rem; }
.ds-meetwaarde { border: 1px solid var(--ds-lijn); border-radius: var(--kader-hoek, 6px); padding: .2rem .55rem; margin: .4rem 0; }
.ds-meetwaarde output { display: block; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.1; font-weight: 700; text-align: end; }
.ds-uitgang { display: grid; grid-template-columns: 1fr auto; gap: .25rem; margin: .4rem 0; font-size: .9em; }
.ds-uitgang meter { grid-column: 1 / -1; width: 100%; height: 1.1rem; accent-color: var(--ds-accent); }
.ds-regelaar .ds-pid-velden { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; position: relative; min-width: 0; padding: .4rem .45rem .2rem; margin: .5rem 0 .2rem; border: 1px solid var(--ds-lijn); border-radius: var(--kader-hoek, 6px); background: var(--ds-vlak); }
.ds-pid-velden legend { font-weight: 600; padding-inline: .25rem; }
.ds-pid-velden > .ds-pid-opslaan { position: static; justify-self: end; }
.ds-pid-opslaan svg { display: block; }
.ds-pid-velden .ds-velden-drie { column-gap: .35rem; }
.ds-pid-velden .ds-veld > span { min-height: 1.2em; font-size: .88em; }
.ds-pid-velden [data-ds-kp-unit] { display: inline; font-size: .75em; white-space: nowrap; }
.ds-regelaar .ds-veldtoelichting { margin-top: .35rem; }
.ds-veldtoelichting, .ds-paneelhint { font-size: .83em; line-height: 1.5; margin: .65rem 0 0; }
.ds-opdrachtbalk { margin-top: .7rem; padding: .75rem; border: 1px solid var(--ds-accent); border-radius: var(--kader-hoek, 7px); background: var(--ds-selectie); line-height: 1.5; }
.ds-opdrachtbalk h2 { margin-bottom: .4rem; }
.ds-toolbar { justify-content: flex-start; margin: .4rem 0 .75rem; padding: .55rem .65rem; border: 1px solid var(--ds-lijn); border-radius: var(--kader-hoek, 7px); background: var(--ds-vlak); }
.ds-toolbar > .ds-veld { min-width: 12rem; margin: 0; }
.ds-toolbar > .ds-veld:first-child { flex: 0 1 23rem; }
.ds-trendtoolbar { align-items: flex-end; }
.ds-trendtoolbar > .ds-aanvink { min-height: 2.45rem; margin: 0; padding-block: .35rem; }
.ds-aanvink { display: flex; align-items: center; gap: .5rem; min-height: 2rem; margin: .4rem 0; cursor: pointer; }
.ds-aanvink input { flex: 0 0 auto; }
.ds-trendlayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem); gap: .7rem; align-items: start; }
.ds-grafieken, .ds-trendzijbalk { display: grid; gap: .7rem; min-width: 0; }
.ds-canvasvak { position: relative; width: 100%; height: 20rem; min-width: 0; padding: .3rem; }
.ds-canvasvak-laag { height: 15rem; }
.ds-canvasvak canvas { display: block; width: 100%; height: 100%; min-width: 0; touch-action: pan-y; }
.ds-canvasvak canvas:focus-visible { outline: 2px solid var(--ds-accent); outline-offset: -3px; }
.ds-paneelinhoud { padding: .4rem .75rem .65rem; }
.ds-lijnvoorbeeld { display: inline-block; flex: 0 0 2.1rem; width: 2.1rem; border-top: 3px solid var(--ds-accent); }
.ds-lijn-instelwaarde { border-color: var(--ds-tekst); border-top-style: dashed; }
.ds-lijn-alarm { border-color: var(--ds-waarschuwing); border-top-style: dotted; }
.ds-lijn-uitgang { border-top-width: 4px; }
.ds-waardenlijst { margin: 0; padding: .4rem .75rem; }
.ds-waardenlijst > div { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--ds-lijn); }
.ds-waardenlijst > div:last-child { border: 0; }
.ds-waardenlijst dt { min-width: 0; }
.ds-waardenlijst dd { margin: 0; font-size: 1.1em; font-weight: 700; text-align: end; white-space: nowrap; }
.ds-aanwijzerpaneel { background: var(--ds-selectie); }
.ds-paneelhint { padding: 0 .75rem .75rem; }
.ds-alarmkop { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .35rem 0; }
.ds-alarmfilter { margin: 0 0 .75rem; padding: 0 .75rem .3rem; border: 1px solid var(--ds-lijn); border-radius: var(--kader-hoek, 7px); background: var(--ds-vlak); }
.ds-alarmfilter .tabel-filtervelden > label { flex-basis: 260px; }
.ds-alarmtellers { display: flex; gap: 1rem; flex-wrap: wrap; }
.ds-alarmtellers strong { font-size: 1.35em; }
.ds-alarmtellers > span:first-child { color: var(--ds-hoog); }
.ds-alarmtellers > span:last-child { color: var(--ds-waarschuwing); }
.ds-tabelscroll { overflow-x: auto; width: 100%; min-width: 0; overscroll-behavior-x: contain; }
.destillatie table { width: 100%; border-collapse: collapse; margin: 0; font-size: .88em; line-height: 1.4; }
.destillatie th, .destillatie td { padding: .65rem .7rem; text-align: start; vertical-align: middle; border: 1px solid var(--ds-lijn); }
.ds-alarmtabel { min-width: 790px; }
.ds-historietabel { min-width: 580px; }
.destillatie td small { display: block; }
.destillatie .ds-lege-tabel { padding: 1.6rem 1rem; text-align: center; }
.ds-paneelacties { justify-content: space-between; padding: .65rem .75rem; }
.ds-paneelacties p { margin: 0; max-width: 31rem; font-size: .85em; }
.ds-priority-high, .ds-alarm-high, [data-priority="high"] .ds-priority { color: var(--ds-hoog); font-weight: 700; }
.ds-priority-warning, .ds-alarm-warning, [data-priority="warning"] .ds-priority { color: var(--ds-waarschuwing); font-weight: 700; }
.ds-status-active, .ds-status-unack { font-weight: 700; }
.ds-status-restored { opacity: .78; }
.destillatie tr:has(input:checked) { outline: 2px solid var(--ds-accent); outline-offset: -2px; background: var(--ds-selectie); }
.destillatie-dialog { position: fixed; inset: 0; width: min(42rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; margin: auto; padding: 1rem; border: 1px solid var(--ds-lijn); border-radius: var(--kader-hoek, 9px); box-shadow: 0 .8rem 2.5rem #0005; }
.destillatie-dialog::backdrop { background: #0006; }
.destillatie-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; padding-bottom: .65rem; border-bottom: 1px solid var(--ds-lijn); }
.destillatie-dialog p, .destillatie-dialog li { line-height: 1.55; }
.destillatie-dialog form { display: grid; gap: .55rem; }
.destillatie-dialog .ds-acties { margin-top: .7rem; }
.destillatie-dialog fieldset { min-width: 0; border: 1px solid var(--ds-lijn); margin: .3rem 0; padding: .65rem; }
.destillatie-dialog textarea { width: 100%; min-height: 7rem; padding: .6rem; font: inherit; }
.destillatie-dialog input[type="file"] { max-width: 100%; }
@media (max-width: 480px) {
    .destillatie-dialog { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); padding: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
    .destillatie *, .destillatie-dialog * { scroll-behavior: auto; }
}
