/* Klassieke Windows 2000-stijl, gedeeld door bureaublad en portaal */
:root {
  --face: #d4d0c8; --hi: #fff; --light: #e8e6e1; --sh: #808080; --dk: #404040;
  --sel: #0a246a; --title-a: #0a246a; --title-b: #a6caf0; --info: #ffffe1;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--face); color: #000; font: 11px Tahoma, Verdana, "Segoe UI", Geneva, sans-serif; }
img.i { width: 16px; height: 16px; vertical-align: -3px; image-rendering: pixelated; }
img.i32 { width: 32px; height: 32px; image-rendering: pixelated; }
a { color: #0000ee; }
a:visited { color: #0000ee; }
:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }

.raised { border: 1px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); box-shadow: inset -1px -1px 0 var(--sh), inset 1px 1px 0 var(--light); }
.sunken { border: 1px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh); box-shadow: inset 1px 1px 0 var(--dk), inset -1px -1px 0 var(--light); }
.etched { border: 1px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh); }

.titelbalk { height: 18px; display: flex; align-items: center; gap: 3px; padding: 0 2px 0 3px; background: linear-gradient(to right, var(--title-a), var(--title-b)); color: #fff; font-weight: bold; white-space: nowrap; user-select: none; }
.titelbalk .t { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.tknop { width: 16px; height: 14px; padding: 0; background: var(--face); border: 1px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); box-shadow: inset -1px -1px 0 var(--sh); font: bold 9px/1 Tahoma, sans-serif; color: #000; display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.tknop:active { border-color: var(--dk) var(--hi) var(--hi) var(--dk); box-shadow: inset 1px 1px 0 var(--sh); }
.tknop + .tknop.sluit { margin-left: 2px; }

.werkbalk { display: flex; align-items: center; gap: 1px; padding: 2px; border-bottom: 1px solid var(--sh); box-shadow: 0 1px 0 var(--hi); flex-wrap: wrap; }
.werkbalk .sep { width: 2px; height: 20px; margin: 0 3px; border-left: 1px solid var(--sh); border-right: 1px solid var(--hi); }
.wk { display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px; border: 1px solid transparent; background: none; font: inherit; color: #000; white-space: nowrap; text-decoration: none; cursor: default; }
a.wk:visited { color: #000; }
.wk:hover { border-color: var(--hi) var(--sh) var(--sh) var(--hi); }
.wk:active, .wk.aan { border-color: var(--sh) var(--hi) var(--hi) var(--sh); background: var(--light); }
.wk[disabled], .wk.uit { color: var(--sh); text-shadow: 1px 1px 0 var(--hi); pointer-events: none; }
.wk[disabled] img, .wk.uit img { filter: grayscale(1) opacity(.5); }

.knop { font: inherit; color: #000; background: var(--face); min-width: 75px; height: 23px; padding: 0 8px; border: 1px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); box-shadow: inset -1px -1px 0 var(--sh), inset 1px 1px 0 var(--light); display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: default; text-decoration: none; }
a.knop, a.knop:visited { color: #000; }
.knop:active { border-color: var(--dk) var(--hi) var(--hi) var(--dk); box-shadow: inset 1px 1px 0 var(--sh); padding: 1px 7px 0 9px; }
.knop.standaard { outline: 1px solid #000; outline-offset: -1px; }
.knop.gevaar { color: #a00000; }
.knop[disabled] { color: var(--sh); text-shadow: 1px 1px 0 var(--hi); }

input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], input[type=url], select, textarea {
  font: inherit; color: #000; background: #fff; height: 21px; padding: 2px 3px; border-radius: 0; max-width: 100%;
  border: 1px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh); box-shadow: inset 1px 1px 0 var(--dk), inset -1px -1px 0 var(--light);
}
textarea { height: auto; resize: vertical; }
input[type=color] { width: 60px; height: 21px; padding: 1px; border: 1px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh); background: var(--face); }
input:focus, select:focus, textarea:focus { outline: none; }
input[type=checkbox], input[type=radio] { margin: 0 4px 0 0; vertical-align: -2px; accent-color: #000; }
fieldset { border: 1px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh); box-shadow: inset 1px 1px 0 var(--hi), inset -1px -1px 0 var(--sh); padding: 6px 10px 10px; margin: 0 0 10px; min-width: 0; }
legend { padding: 0 3px; }
label { cursor: default; }

.formulier { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.formulier > label { align-self: center; }
.formulier .veld { min-width: 0; }
.formulier .veld input[type=text], .formulier .veld input[type=email], .formulier .veld input[type=password], .formulier .veld input[type=number], .formulier .veld select, .formulier .veld textarea { width: 100%; max-width: 360px; }
.formulier .vinkje { grid-column: 2; }
.formulier ul { list-style: none; margin: 0; padding: 0; }
.fout { color: #a00000; }
ul.errorlist { list-style: none; margin: 2px 0 0; padding: 0; color: #a00000; }

.tabs { display: flex; padding-left: 2px; position: relative; z-index: 1; flex-wrap: wrap; }
.tabs > .tab { padding: 3px 9px 2px; margin-right: -1px; margin-top: 2px; background: var(--face); color: #000; text-decoration: none; border: 1px solid; border-bottom: none; border-color: var(--hi) var(--dk) transparent var(--hi); box-shadow: inset -1px 0 0 var(--sh); border-radius: 3px 3px 0 0; cursor: default; }
.tabs > .tab:visited { color: #000; }
.tabs > .tab.aan { margin-top: 0; padding: 4px 11px; margin-bottom: -1px; position: relative; z-index: 2; }
.tabvak { border: 1px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); box-shadow: inset -1px -1px 0 var(--sh); padding: 10px; background: var(--face); }

.lijst { background: #fff; overflow: auto; }
table.raster { border-collapse: collapse; width: 100%; white-space: nowrap; }
table.raster th { position: sticky; top: 0; background: var(--face); font-weight: normal; text-align: left; padding: 2px 6px; border: 1px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); box-shadow: inset -1px -1px 0 var(--sh); user-select: none; }
table.raster td { padding: 2px 6px; height: 19px; }
table.raster.lijnen td { border-right: 1px solid #ece9d8; border-bottom: 1px solid #ece9d8; }
table.raster.zebra tbody tr:nth-child(even):not(.sel) td { background: #f3f2ee; }
table.raster tbody tr.sel td { background: var(--sel); color: #fff; }
table.raster tbody tr.sel td a { color: #fff; }
table.raster td.leeg { color: var(--sh); text-align: center; padding: 12px; }

.statusbalk { display: flex; gap: 2px; padding-top: 2px; }
.statusbalk > div { padding: 1px 4px; border: 1px solid; border-color: var(--sh) var(--hi) var(--hi) var(--sh); white-space: nowrap; display: flex; align-items: center; gap: 4px; overflow: hidden; }
.statusbalk > .groei { flex: 1; }

.lijn { height: 2px; border-top: 1px solid var(--sh); border-bottom: 1px solid var(--hi); margin: 8px 0; }
.tip { background: var(--info); border: 1px solid #000; padding: 3px 6px; }
.melding { display: flex; align-items: center; gap: 6px; padding: 4px 6px; margin-bottom: 8px; background: var(--info); border: 1px solid var(--sh); }
.melding.error { background: #ffe8e8; }
.knoppen { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.status-actief { color: #006400; }
.status-onderhoud { color: #7a5f00; }
.status-gearchiveerd { color: #595959; }
.grijs { color: #595959; }
.vet { font-weight: bold; }
.rood { background: #c00000; color: #fff; font-weight: bold; padding: 0 4px; }

/* Dialoog op een effen achtergrond: installatie en inloggen */
.dialoogscherm { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialoog { width: 100%; max-width: 470px; background: var(--face); padding: 3px; box-shadow: inset -1px -1px 0 var(--sh), inset 1px 1px 0 var(--light), 3px 3px 0 rgba(0,0,0,.3); border: 1px solid; border-color: var(--hi) var(--dk) var(--dk) var(--hi); }
.dialoog .kop { background: linear-gradient(to right, #0a246a, #3a6ea5); color: #fff; padding: 14px 14px; display: flex; align-items: center; gap: 10px; }
.dialoog .kop .groot { font: bold 16px Tahoma, sans-serif; }
.dialoog .inhoud { padding: 14px; }
@media (max-width: 520px) {
  .formulier { grid-template-columns: 1fr; }
  .formulier .vinkje { grid-column: 1; }
}

/* Handleiding */
.handleiding-lijst { list-style: none; margin: 0; padding: 0; }
.handleiding-lijst ul { list-style: none; margin: 0; padding-left: 14px; }
.handleiding-lijst li { padding: 2px 0; }
.handleiding-lijst a.aan { background: var(--sel); color: #fff; text-decoration: none; padding: 0 2px; }
.handleidingtekst { line-height: 1.55; max-width: 72ch; user-select: text; }
.handleidingtekst h2 { font-size: 15px; margin: 2px 0 10px; }
.handleidingtekst h3 { font-size: 12px; margin: 14px 0 4px; }
.handleidingtekst p { margin: 0 0 8px; }
.handleidingtekst ul, .handleidingtekst ol { margin: 0 0 8px; padding-left: 20px; }
.handleidingtekst code, .handleidingtekst pre { font: 12px "Lucida Console", "Courier New", monospace; background: #f3f2ee; }
.handleidingtekst pre { padding: 6px 8px; border: 1px solid #c0c0c0; overflow-x: auto; white-space: pre; }
.handleidingtekst table.raster { white-space: normal; margin-bottom: 8px; }
.handleidingtekst table.raster td { vertical-align: top; border-bottom: 1px solid #ece9d8; }

/* Status van leden */
.lid-aangemeld { color: #7a5f00; font-weight: bold; }
.lid-actief { color: #006400; }
.lid-afgewezen { color: #a00000; }
.lid-beeindigd { color: #595959; }
