/* Filippo Studio — app.css (geen externe fonts of bronnen) */
:root {
  --bg: #eef1f5; --panel: #ffffff; --line: #dbe0e8; --text: #1e293b; --muted: #64748b; --accent: #2563eb; --accent-soft: #dbeafe;
  --font: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font: 13px/1.35 var(--font); }
button, input, select, textarea { font: inherit; color: inherit; }
#app { display: grid; height: 100vh; grid-template-columns: 236px minmax(0, 1fr) 280px; grid-template-rows: 34px auto minmax(0, 1fr) auto 30px 24px;
  grid-template-areas: "top top top" "tool tool tool" "lib stage props" "lib table props" "lib pages props" "stat stat stat"; }

/* bovenbalk */
#topbar { grid-area: top; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: #0f172a; color: #e2e8f0; }
.brand { white-space: nowrap; flex-shrink: 0; font-weight: 700; letter-spacing: .3px; margin-right: 10px; color: #bfdbfe; background: transparent; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; padding: 2px 4px; border-radius: 4px; }
.brand:hover { background: rgba(255,255,255,.08); }
.brand small { font-weight: 500; font-size: 11px; color: #94a3b8; }
#menubar { display: flex; gap: 2px; }
.menu-btn { background: none; border: 0; color: #e2e8f0; padding: 6px 10px; border-radius: 4px; cursor: pointer; }
.menu-btn:hover, .menu-btn.open { background: #1e293b; }
#docinfo { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#docName { background: #1e293b; border: 1px solid #334155; color: #f1f5f9; border-radius: 4px; padding: 3px 8px; width: 240px; }
#docName:focus { outline: 2px solid var(--accent); }
#dirty { color: #fbbf24; font-size: 12px; min-width: 120px; }

/* menu's */
#menu-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.menu-dd { position: fixed; pointer-events: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 28px rgba(15,23,42,.25); padding: 4px; min-width: 240px; }
.menu-item { display: flex; width: 100%; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 8px; text-align: left; border-radius: 4px; cursor: pointer; }
.menu-item:hover:not(.disabled) { background: var(--accent-soft); }
.menu-item.disabled { color: #a3acb9; cursor: default; }
.menu-item .chk { width: 14px; color: var(--accent); font-weight: 700; }
.menu-item .lbl { flex: 1; }
.menu-item .sc { color: var(--muted); font-size: 11.5px; }
.menu-item.has-sub[aria-expanded="true"] { background: var(--accent-soft); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 2px; }

/* werkbalk */
#toolbar { grid-area: tool; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 8px; min-height: 40px; box-sizing: border-box; background: var(--panel); border-bottom: 1px solid var(--line); }
.tb-btn { box-sizing: border-box; min-height: 28px; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 4px 9px; cursor: pointer; white-space: nowrap; }
.tb-btn:hover:not(:disabled) { background: #f1f5f9; }
.tb-btn:disabled { color: #aab3c0; cursor: default; background: #f8fafc; }
.tb-btn.active { background: var(--accent-soft); border-color: var(--accent); color: #1e40af; }
.zoom-readout { min-width: 54px; text-align: center; }
.tb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.tb-spacer { flex: 1; }
.tb-input, .tb-select { border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; background: #fff; }
.tb-input { width: 52px; text-align: right; }

/* panelen */
#library, #props { background: var(--panel); border: 0 solid var(--line); overflow: auto; }
#library { overflow: hidden; grid-area: lib; border-right-width: 1px; display: flex; flex-direction: column; }
#props { grid-area: props; border-left-width: 1px; }
.panel-head { padding: 9px 12px; font-weight: 600; border-bottom: 1px solid var(--line); background: #f8fafc; position: sticky; top: 0; z-index: 1; }
.lib-searchbar { padding: 8px; }
.lib-search { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px; }
.lib-list { flex: 1; overflow: auto; padding: 0 8px 8px; }
.lib-cat summary { cursor: pointer; font-weight: 600; padding: 6px 2px; color: #334155; }
.lib-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding-bottom: 8px; }
.lib-item { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 2px 4px; cursor: grab; font-size: 11px; color: var(--muted); }
.lib-item:hover { border-color: var(--accent); background: #f8fbff; }
.lib-item.armed { border-color: var(--accent); background: var(--accent-soft); color: #1e40af; }
.lib-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 3px; }
.lib-hint, .hint { color: var(--muted); font-size: 11.5px; padding: 8px 12px; border-top: 1px solid var(--line); }
.lib-empty { color: var(--muted); padding: 12px 4px; }

.panel-body { padding-bottom: 24px; }
.sel-info { padding: 8px 12px; color: var(--muted); }
.prop-sec { padding: 4px 12px 10px; border-bottom: 1px solid var(--line); }
.prop-sec h3 { margin: 8px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.prop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0; }
.prop-row .plabel { color: #475569; flex: 0 0 auto; }
.prop-row input[type=text], .prop-row input[type=number], .prop-row select { width: 140px; border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; background: #fff; }
.prop-row input.num { text-align: right; }
.prop-row input[type=color] { width: 44px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.prop-row input[type=color].mixed { opacity: .5; }
.prop-row input[type=range] { width: 140px; }
.prop-row input:disabled { background: #f1f5f9; color: #94a3b8; }
.prop-row.stacked { flex-direction: column; align-items: stretch; }
.prop-row textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 5px 6px; resize: vertical; }
.static { color: #334155; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.static.mono { font-family: Consolas, "Courier New", monospace; font-size: 11px; }
.seg { display: flex; }
.seg button { border: 1px solid var(--line); background: #fff; padding: 3px 7px; cursor: pointer; font-size: 12px; margin-left: -1px; }
.seg button:first-child { border-radius: 4px 0 0 4px; margin-left: 0; } .seg button:last-child { border-radius: 0 4px 4px 0; }
.seg button.on { background: var(--accent-soft); border-color: var(--accent); position: relative; z-index: 1; }

/* canvas */
#stage { grid-area: stage; position: relative; overflow: hidden; background: #f8fafc; }
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; outline: none; }
#canvas .handle { cursor: inherit; }
.text-editor { position: absolute; margin: 0; border: 0; outline: 1.5px dashed var(--accent); background: rgba(255,255,255,.88); resize: none; overflow: hidden; transform-origin: center center; z-index: 5; white-space: pre-wrap; overflow-wrap: break-word; }

/* status */
#status { grid-area: stat; display: flex; gap: 18px; align-items: center; padding: 0 12px; background: #f8fafc; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.st-tool { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.st-cur { min-width: 170px; font-variant-numeric: tabular-nums; }

#toasts { position: fixed; right: 16px; bottom: 36px; display: flex; flex-direction: column; gap: 8px; z-index: 100; pointer-events: none; }
.toast { background: #0f172a; color: #f8fafc; padding: 9px 14px; border-radius: 6px; box-shadow: 0 6px 20px rgba(15,23,42,.35); max-width: 420px; transition: opacity .5s; }
.toast.ok { border-left: 4px solid #22c55e; } .toast.warn { border-left: 4px solid #f59e0b; } .toast.error { border-left: 4px solid #ef4444; background: #450a0a; }
.toast.out { opacity: 0; }

@media (max-width: 1000px) { #app { grid-template-columns: 200px minmax(0, 1fr) 240px; } #docName { width: 150px; } }

/* eigen shapes */
.lib-item { position: relative; }
.lib-del { position: absolute; top: 1px; right: 3px; font-size: 10px; color: #94a3b8; cursor: pointer; padding: 0 2px; max-width: none !important; overflow: visible !important; }
.lib-del:hover { color: #dc2626; }

/* tabs, lagen, pagina's */
.tabs { display: flex; border-bottom: 1px solid var(--line); background: #f8fafc; }
.tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 4px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tab.on { color: var(--text); border-bottom-color: var(--accent); }
.pane { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; }
.pane[hidden] { display: none; }
.layer-list { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.layer-row { display: flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; }
.layer-row:hover { background: #f1f5f9; }
.layer-row.active { background: var(--accent-soft); border-color: var(--accent); }
.layer-row .ln { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.layer-row .ic { background: none; border: 0; cursor: pointer; width: 24px; opacity: .45; padding: 0; }
.layer-row .ic.on { opacity: 1; }
.layer-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; }
#pages { grid-area: pages; display: flex; align-items: flex-end; gap: 2px; padding: 0 8px; background: #e2e8f0; border-top: 1px solid var(--line); overflow-x: auto; }
.page-tab { background: #f1f5f9; border: 1px solid var(--line); border-bottom: 0; border-radius: 6px 6px 0 0; padding: 4px 12px; cursor: pointer; white-space: nowrap; color: var(--muted); }
.page-tab.on { background: #fff; color: var(--text); font-weight: 600; }
.page-tab.add { padding: 4px 10px; }

/* shapesheet */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.sheet-dialog { background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35); width: min(780px, 94vw); max-height: 86vh; display: flex; flex-direction: column; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sheet-body { padding: 4px 14px 12px; overflow: auto; }
.sheet-body h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.sheet-tbl { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.sheet-tbl td, .sheet-tbl th { padding: 2px 4px; text-align: left; vertical-align: middle; }
.sheet-tbl th { font-size: 11px; color: var(--muted); font-weight: 600; }
.sheet-tbl .nm { font-family: Consolas, monospace; white-space: nowrap; }
.sheet-tbl .ro, .sheet-tbl .std td { color: var(--muted); font-family: Consolas, monospace; }
.sheet-tbl .hint { color: var(--muted); }
.sheet-tbl .res { font-size: 12px; color: #166534; white-space: nowrap; }
.sheet-tbl .res.err { color: #b91c1c; white-space: normal; }
.sheet-in { width: 100%; box-sizing: border-box; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; }
.sheet-in.fm { font-family: Consolas, monospace; }
.sheet-in.bad { border-color: #dc2626; background: #fef2f2; }
.sheet-help { margin-top: 10px; font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.sheet-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.sheet-msg { flex: 1; font-size: 12px; }
.sheet-msg.err { color: #b91c1c; }
.tb-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.tb-btn:disabled { opacity: .45; cursor: not-allowed; }

.align-grid { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.tb-btn.icon { width: 30px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.seg-actions { flex-wrap: wrap; justify-content: flex-start; } .seg-actions .tb-btn { padding: 2px 8px; min-height: 24px; }
.mm-dialog { width: min(1100px, 96vw); }
.mm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px; }
@media (max-width: 760px) { .mm-split { grid-template-columns: 1fr; } }
.mm-preview { height: 360px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mm-preview svg { width: 100%; height: 100%; display: block; }
.mm-preview-empty { color: #64748b; font-size: 13px; }
.mm-text { white-space: pre; overflow-wrap: normal; overflow-x: auto; width: 100%; height: 360px; box-sizing: border-box; font: 13px/1.4 Consolas, 'Cascadia Mono', monospace; padding: 8px; resize: vertical; border: 1px solid #cbd5e1; border-radius: 4px; }
.mm-opts { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.sheet-msg.warn { color: #b45309; }
.prop-note { font-size: 12px; color: #64748b; padding: 6px 12px 2px; line-height: 1.35; }

/* Shape-editor */
.se-dialog { width: min(720px, 96vw); max-height: 94vh; }
.se-body { display: flex; flex-direction: column; gap: 8px; overflow: auto; }
.se-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.se-row label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.se-name { width: 170px; }
.se-pick { margin-left: auto; max-width: 220px; }
.se-canvas { width: 100%; aspect-ratio: 640 / 440; border: 1px solid #cbd5e1; border-radius: 6px; touch-action: none; outline: none; background: #fff; }
.se-canvas:focus { border-color: #2563eb; }
.se-info, .se-help { font-size: 12px; color: #64748b; }
.se-dialog .tb-btn.active { background: #dbeafe; border-color: #2563eb; }
.se-dialog .sheet-foot .sheet-msg { margin-right: auto; }

/* Objectenlijst (bewerkbare tabel onder het tekenvlak) */
#objtable { grid-area: table; min-width: 0; height: 240px; display: flex; flex-direction: column; background: var(--panel); border-top: 1px solid var(--line); min-height: 0; position: relative; }
#objtable[hidden] { display: none; }
.ot-grip { position: absolute; left: 0; right: 0; top: -3px; height: 6px; cursor: ns-resize; z-index: 2; }
.ot-head { display: flex; gap: 8px; align-items: center; padding: 4px 8px; border-bottom: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; }
.ot-head input[type=search] { width: 220px; }
.ot-count { color: #475569; }
.ot-hint { color: #94a3b8; margin-left: auto; font-size: 11px; }
.ot-scroll { overflow: auto; flex: 1; min-height: 0; }
.ot-table { border-collapse: collapse; font-size: 12px; width: 100%; min-width: 1040px; table-layout: fixed; }
.ot-table th { position: sticky; top: 0; background: #f1f5f9; text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; width: 66px; font-weight: 600; }
.ot-table th.wide, .ot-table td.wide { width: auto; }
.ot-table th[data-col="name"] { width: 130px; }
.ot-table th[data-col="type"], .ot-table th[data-col="group"] { width: 104px; }
.ot-table th[data-col="ext"], .ot-table th[data-col="rot"] { width: 74px; }
.ot-table th[data-col="tags"] { width: 130px; }
.ot-table th.sorted::after { content: " " attr(data-dir); color: #2563eb; }
.ot-table td { border-bottom: 1px solid #eef2f7; padding: 0 2px; height: 22px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ot-table td input { width: 100%; box-sizing: border-box; border: 1px solid transparent; background: transparent; font: inherit; padding: 1px 4px; height: 20px; }
.ot-table td input:focus { border-color: #2563eb; background: #fff; outline: none; }
.ot-table td input.num { text-align: right; }
.ot-table td.na { background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 4px, #f1f5f9 4px, #f1f5f9 8px); color: #94a3b8; }
.ot-table td.na input::placeholder, .ot-table td.na .ot-static { color: #94a3b8; font-style: italic; }
.ot-static { padding: 0 4px; }
.ot-table tr.sel td { background: #dbeafe; }
.ot-table tr.sel td.na { background: repeating-linear-gradient(135deg, #dbeafe, #dbeafe 4px, #cfe0fb 4px, #cfe0fb 8px); }
.ot-table tr:hover td:not(.na) { background-color: #eff6ff; }
.prop-row.na .plabel { color: #94a3b8; }
.prop-row.na { opacity: .7; }
.se-props { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.se-props .se-row { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 4px 6px; }
.se-props .seg { display: inline-flex; }
.se-props .seg button { font-size: 12px; padding: 2px 6px; }
.se-props { min-height: 78px; } /* vaste ruimte: het venster verspringt niet als er eigenschappen bij komen */
.se-body > * { flex-shrink: 0; } /* niets in het venster wordt samengedrukt; het venster schuift als het te hoog wordt */
/* tags (eigenschappenpaneel) */
.prop-row.tags .tag-edit { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 3px; background: #fff; }
.tag-chips { display: contents; }
.tag-chip { display: inline-flex; align-items: center; gap: 2px; background: #e0e7ff; color: #1e3a8a; border-radius: 10px; padding: 1px 2px 1px 8px; font-size: 12px; max-width: 100%; }
.tag-chip.partial { background: #f1f5f9; color: #475569; border: 1px dashed #94a3b8; }
.tag-x { border: 0; background: transparent; cursor: pointer; font-size: 13px; line-height: 1; padding: 0 4px; color: inherit; border-radius: 8px; }
.tag-x:hover { background: rgba(0,0,0,.08); }
.tag-edit input { flex: 1 1 80px; min-width: 70px; border: 0; outline: none; padding: 2px 4px; font: inherit; }
.ot-tags { display: inline-flex; gap: 3px; flex-wrap: nowrap; overflow: hidden; }
.ot-tags .tag-chip { padding: 0 7px; }
/* objectenlijst: filtermenu per kolom (zoals Excel) */
.ot-table th { position: sticky; }
.ot-th-label { pointer-events: none; display: block; overflow: hidden; text-overflow: ellipsis; }
.ot-fbtn { float: right; border: 1px solid transparent; background: transparent; border-radius: 3px; cursor: pointer; font-size: 11px; line-height: 14px; padding: 0 3px; color: #64748b; }
.ot-fbtn:hover { border-color: #cbd5e1; background: #fff; }
.ot-fbtn.active { color: #fff; background: #2563eb; border-color: #2563eb; }
.ot-table th.filtered { background: #e0ecff; }
.ot-filter-pop { position: fixed; z-index: 1000; width: 250px; background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; box-shadow: 0 8px 24px rgba(15,23,42,.18); padding: 6px; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.ot-filter-pop hr { border: 0; border-top: 1px solid #e2e8f0; margin: 3px 0; width: 100%; }
.ot-fl-act { text-align: left; border: 0; background: transparent; padding: 4px 6px; border-radius: 4px; cursor: pointer; font: inherit; }
.ot-fl-act:hover:not(:disabled) { background: #eff6ff; }
.ot-fl-act:disabled { color: #94a3b8; cursor: default; }
.ot-filter-pop input[type=search] { width: 100%; box-sizing: border-box; padding: 3px 6px; border: 1px solid #cbd5e1; border-radius: 4px; }
.ot-fl-list { max-height: 210px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 4px; padding: 2px 0; }
.ot-fl-item { display: flex; align-items: center; gap: 6px; padding: 2px 6px; cursor: pointer; white-space: nowrap; }
.ot-fl-item span { overflow: hidden; text-overflow: ellipsis; flex: 1; }
.ot-fl-item em { color: #94a3b8; font-style: normal; font-size: 11px; }
.ot-fl-item.special span { font-style: italic; color: #64748b; }
.ot-fl-item:hover { background: #f1f5f9; }
.ot-fl-item.all { font-weight: 600; }
.ot-fl-empty { padding: 6px; color: #94a3b8; font-style: italic; }
.ot-fl-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
/* Shape-editor: tekenvlak en 3D-voorbeeld naast elkaar */
.se-dialog { width: min(1040px, 97vw); }
.se-stage { display: flex; gap: 8px; align-items: flex-start; }
.se-stage > .se-canvas { flex: 1 1 auto; min-width: 0; }
.se-3d-wrap { flex: 0 0 300px; display: flex; flex-direction: column; gap: 4px; }
.se-3d-title { font-size: 12px; font-weight: 600; color: #475569; }
.se-3d { width: 300px; height: 300px; border: 1px solid #cbd5e1; border-radius: 6px; background: linear-gradient(#f8fafc, #eef2f7); cursor: grab; touch-action: none; }
.se-3d:active { cursor: grabbing; }
.se-3d-bar { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.se-3d-bar .tb-btn { padding: 2px 7px; }
.se-3d-ang { font-size: 11px; color: #64748b; margin-left: auto; }
@media (max-width: 900px) { .se-stage { flex-direction: column; } .se-3d-wrap { flex-basis: auto; } }
/* infovenster bij link- en toelichting-shapes */
.nav-pop { position: absolute; z-index: 30; width: 300px; max-width: calc(100% - 12px); background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 10px 28px rgba(15,23,42,.18); font-size: 13px; color: #0f172a; display: flex; flex-direction: column; }
.nav-pop.note { border-top: 4px solid #d97706; }
.nav-pop.link { border-top: 4px solid #1d4ed8; }
.nav-pop-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 4px 12px; }
.nav-pop-title { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-pop-x { border: 0; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: #64748b; padding: 2px 6px; border-radius: 4px; }
.nav-pop-x:hover { background: #f1f5f9; }
.nav-pop-text { padding: 2px 12px 8px; max-height: 320px; overflow: auto; line-height: 1.45; }
.nav-pop-text p { margin: 0 0 8px; }
.nav-pop-text a { color: #1d4ed8; word-break: break-all; }
.nav-pop-empty { padding: 2px 12px 8px; color: #94a3b8; font-style: italic; }
.nav-pop-target { padding: 2px 12px 8px; color: #334155; word-break: break-word; }
.nav-pop-edit { margin: 2px 10px 6px; min-height: 120px; resize: vertical; font: inherit; padding: 6px; border: 1px solid #cbd5e1; border-radius: 4px; }
.nav-pop-btns { display: flex; gap: 6px; align-items: center; padding: 0 10px 10px; }
.nav-pop-hint, .prop-row .hint { font-size: 11px; color: #64748b; }
/* taalkeuze en help */
#lang { background: #1e293b; color: #e2e8f0; border: 1px solid #334155; border-radius: 4px; font-size: 12px; padding: 2px 4px; margin-left: 6px; }
.tb-btn.help-btn { font-weight: 700; min-width: 28px; border-radius: 14px; }
.help-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.help-dialog { width: min(980px, 94vw); height: min(680px, 90vh); background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(15,23,42,.35); display: flex; flex-direction: column; overflow: hidden; font-size: 14px; color: #0f172a; }
.help-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.help-head h2 { margin: 0; font-size: 17px; flex: 0 0 auto; }
.help-head input { flex: 1; max-width: 340px; margin-left: auto; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
.help-x { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: #64748b; padding: 2px 8px; border-radius: 6px; }
.help-x:hover { background: #e2e8f0; }
.help-body { flex: 1; display: flex; min-height: 0; }
.help-nav { flex: 0 0 230px; border-right: 1px solid #e2e8f0; overflow: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; background: #f8fafc; }
.help-nav button { text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: 6px; cursor: pointer; font: inherit; color: #1e293b; }
.help-nav button:hover { background: #e2e8f0; }
.help-nav button.on { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.help-none { color: #94a3b8; font-style: italic; padding: 8px; }
.help-main { flex: 1; overflow: auto; padding: 16px 24px 24px; line-height: 1.55; outline: none; }
.help-main h3 { margin: 0 0 10px; font-size: 18px; }
.help-main li { margin: 4px 0; }
.help-main .tip { background: #f0f9ff; border-left: 3px solid #0ea5e9; padding: 8px 12px; border-radius: 4px; }
.help-main code { background: #f1f5f9; padding: 1px 4px; border-radius: 3px; font-size: 13px; }
kbd { display: inline-block; background: #f1f5f9; border: 1px solid #cbd5e1; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font: 12px/1.6 Consolas, monospace; color: #0f172a; white-space: nowrap; }
.help-keys { border-collapse: collapse; width: 100%; font-size: 13px; }
.help-keys th, .help-keys td { text-align: left; padding: 5px 8px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.help-keys th { background: #f8fafc; }
@media (max-width: 700px) { .help-body { flex-direction: column; } .help-nav { flex: 0 0 auto; max-height: 30%; border-right: 0; border-bottom: 1px solid #e2e8f0; } }
.radio-group { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.radio-opt { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; cursor: pointer; }
.radio-opt input:disabled + * , .radio-opt:has(input:disabled) { color: #94a3b8; cursor: default; }
.se-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 0 6px; cursor: pointer; }
.about-dialog { width: min(440px, 92vw); background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(15,23,42,.35); padding: 24px 28px 18px; text-align: center; color: #0f172a; font-size: 14px; }
.about-dialog h2 { margin: 8px 0 2px; font-size: 24px; letter-spacing: .5px; }
.about-dialog h2.about-name { font-size: 28px; letter-spacing: 7px; font-weight: 800; color: #0f172a; margin-bottom: 8px; line-height: 1.15; }
.about-off { color: #94a3b8; }
.about-name2 { display: block; font-size: 15px; font-weight: 500; letter-spacing: 5px; margin-top: 4px; }
.about-subtitle { margin: 2px 0 10px; font-size: 13px; color: #1e40af; letter-spacing: .3px; }
.about-ver { margin: 0 0 12px; color: #2563eb; font-weight: 600; }
.about-info { margin: 12px auto 4px; border-collapse: collapse; font-size: 13px; text-align: left; }
.about-info td { padding: 3px 8px; vertical-align: top; }
.about-info td:first-child { color: #64748b; white-space: nowrap; }
.about-btns { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
/* melding / wens */
.fb-dialog { width: min(760px, 95vw); max-height: 92vh; background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(15,23,42,.35); display: flex; flex-direction: column; overflow: hidden; font-size: 13px; color: #0f172a; }
.fb-dialog [hidden] { display: none !important; }
.fb-body { padding: 12px 16px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.fb-kinds { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-kind { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 10px; cursor: pointer; }
.fb-kind:has(input:checked) { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.fb-field { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.fb-field > span { font-weight: 600; color: #334155; font-size: 12px; }
.fb-field input, .fb-field textarea, .fb-field select { font: inherit; padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 5px; }
.fb-field textarea { resize: vertical; }
.fb-two { display: flex; gap: 12px; }
.fb-ctx summary { cursor: pointer; color: #475569; }
.fb-ctx table { font-size: 11px; color: #475569; margin-top: 4px; }
.fb-ctx td { padding: 1px 8px 1px 0; vertical-align: top; word-break: break-all; }
.fb-msg { min-height: 18px; color: #166534; }
.fb-msg.bad { color: #b91c1c; }
.fb-foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.fb-note { flex: 1; color: #64748b; font-size: 12px; }
@media (max-width: 640px) { .fb-two { flex-direction: column; } }
.fb-dialog .help-x { margin-left: auto; }
#brandLogo { display: inline-flex; }

/* ---------------------------------------------------------------- ArchiMate-module */
.am-picker { position: fixed; z-index: 1500; width: 270px; background: #fff; border: 1px solid #cbd5e1; border-top: 4px solid #7c3aed; border-radius: 8px; box-shadow: 0 10px 28px rgba(15,23,42,.22); font-size: 13px; color: #0f172a; }
.am-picker-head { padding: 8px 10px 4px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-picker-list { max-height: 300px; overflow: auto; padding: 2px 4px; display: flex; flex-direction: column; }
.am-picker-item { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 5px 6px; border-radius: 5px; cursor: pointer; text-align: left; }
.am-picker-item:hover, .am-picker-item:focus { background: #f3e8ff; outline: none; }
.am-picker-item .lbl { flex: 1; }
.am-picker-item .mark { font-weight: 700; color: #16a34a; width: 14px; text-align: center; }
.am-picker-item.bad .mark, .am-picker-item.bad .lbl { color: #b91c1c; }
.am-picker-item[disabled] { opacity: .45; cursor: not-allowed; }
.am-picker-empty { padding: 6px; color: #64748b; font-style: italic; }
.am-picker-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 10px 10px; border-top: 1px solid #eef1f5; }
.am-picker-all { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #475569; width: 100%; }
.am-sec h3 { color: #6d28d9; }
.am-sec .prop-row.am-col { flex-direction: column; align-items: stretch; }
.am-sec textarea { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; }
.am-msg { font-size: 12px; padding: 4px 8px; border-radius: 4px; margin: 2px 0 4px; line-height: 1.35; }
.am-msg.error { background: #fef2f2; color: #991b1b; }
.am-msg.warning { background: #fffbeb; color: #92400e; }
.am-msg.info { background: #eff6ff; color: #1e40af; }
.am-msg.ok { background: #f0fdf4; color: #166534; }
.am-props, .am-rels { display: flex; flex-direction: column; gap: 3px; width: 100%; min-width: 0; }
.am-prop { display: grid; grid-template-columns: 1fr 1.3fr 24px; gap: 4px; align-items: center; }
.am-prop .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: #334155; }
.am-prop a.k { color: #1d4ed8; }
.prop-row .am-prop input[type=text] { min-width: 0; width: 100%; padding: 2px 5px; }
.am-prop input { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 2px 5px; }
.am-x { border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; padding: 1px 0; color: #475569; }
.am-x:hover { background: #f1f5f9; }
.am-rel { display: grid; grid-template-columns: 1fr 24px; gap: 4px; }
.am-rel-go { display: flex; gap: 5px; align-items: center; border: 0; background: #f8fafc; border-radius: 4px; padding: 3px 6px; cursor: pointer; text-align: left; min-width: 0; }
.am-rel-go:hover { background: #ede9fe; }
.am-rel-go .rt { color: #6d28d9; font-size: 11px; white-space: nowrap; }
.am-rel-go .on { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-rel.warning .am-rel-go { background: #fffbeb; }
.am-rel.error .am-rel-go { background: #fef2f2; }
.am-pane { display: flex; flex-direction: column; min-height: 0; }
.am-cat-list { overflow: auto; flex: 1 1 auto; min-height: 80px; padding: 0 6px; }
.am-cat-group { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 6px; }
.am-cat-item { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 3px 6px; border-radius: 4px; cursor: pointer; text-align: left; }
.am-cat-item:hover { background: #ede9fe; }
.am-cat-item .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-cat-item .cnt { font-size: 11px; color: #64748b; }
.am-cat-item.unused .lbl { color: #94a3b8; font-style: italic; }
.am-dot { width: 10px; height: 10px; border-radius: 2px; border: 1px solid #94a3b8; flex: none; }
.am-issues-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 2px; font-weight: 600; border-top: 1px solid var(--line); }
.am-issues { max-height: 34%; overflow: auto; padding: 0 6px 6px; display: flex; flex-direction: column; gap: 2px; }
.am-issues-sum { font-size: 11px; color: #64748b; padding: 2px 2px 4px; }
.am-issue { display: flex; gap: 6px; border: 0; background: #f8fafc; border-radius: 4px; padding: 3px 6px; cursor: pointer; text-align: left; font-size: 12px; }
.am-issue.error { background: #fef2f2; }
.am-issue.warning { background: #fffbeb; }
.am-issue:hover { filter: brightness(.96); }

.help-tagline { font-size: 15px; color: #1e40af; margin: 0 0 10px; }
.help-tagline b { letter-spacing: 3px; color: #0f172a; }

/* ---------------------------------------------------------------- Online (server) */
.on-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.38); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.on-dialog { background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(15,23,42,.35); width: min(420px, 94vw); max-height: 90vh; display: flex; flex-direction: column; color: #0f172a; font-size: 14px; }
.on-dialog.wide { width: min(860px, 96vw); }
.on-dialog.busy { cursor: progress; }
.on-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 6px; }
.on-head h2 { margin: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-x { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: #64748b; }
.on-body { padding: 6px 18px 10px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.on-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 18px 14px; border-top: 1px solid #eef1f5; }
.on-foot .primary, .tb-btn.primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.on-foot .danger, .tb-btn.danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.tb-btn.small { padding: 1px 8px; font-size: 12px; }
.on-msg { margin: 0 18px; padding: 7px 10px; border-radius: 6px; font-size: 13px; }
.on-msg.error { background: #fef2f2; color: #991b1b; }
.on-msg.info { background: #eff6ff; color: #1e40af; }
.on-field { display: flex; flex-direction: column; gap: 4px; }
.on-label { font-size: 12px; color: #475569; font-weight: 600; }
.on-hint { font-size: 12px; color: #64748b; margin: 0; }
.on-input { border: 1px solid #cbd5e1; border-radius: 6px; padding: 7px 9px; font: inherit; width: 100%; box-sizing: border-box; }
.on-input:focus { outline: 2px solid #93c5fd; border-color: #3b82f6; }
textarea.on-input { resize: vertical; }
.on-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.on-link { border: 0; background: transparent; color: #2563eb; cursor: pointer; padding: 0; font: inherit; font-size: 13px; }
.on-link:hover { text-decoration: underline; }
.on-link.danger { color: #dc2626; }
.on-done { font-size: 15px; line-height: 1.5; }
.on-danger-zone { border-top: 1px solid #eef1f5; padding-top: 8px; }
.on-donatebtn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; margin-right: 6px; background: transparent; color: #bfdbfe; border: 1px solid #334155; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.on-muted td { color: #94a3b8; }
.on-donatebtn:hover { background: rgba(255,255,255,.08); }
.on-cup { display: inline-flex; }
a.on-kofi { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; padding: 8px 14px; }
.on-donate-go { justify-content: center; }
.on-wall h3 { margin: 6px 0 4px; font-size: 13px; color: #334155; }
.on-wall ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.on-wall li { font-size: 13px; border-top: 1px solid #eef1f5; padding-top: 6px; }
.on-wall q { display: block; color: #334155; margin-top: 2px; }
.on-section { border-top: 1px solid #eef1f5; padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.on-section h3 { margin: 0; font-size: 13px; color: #334155; }
details.on-section > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #334155; }
.on-section .on-links { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
.on-mfa-state { margin: 0; font-size: 13px; color: #64748b; }
.on-mfa-state.on { color: #15803d; font-weight: 600; }
.on-hint.warn { color: #b45309; }
.on-usage { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.on-usage span { display: block; height: 100%; background: #2563eb; }
.on-usage.full span { background: #dc2626; }
.on-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.on-steps { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.5; }
.on-qrwrap { display: flex; justify-content: center; }
.on-qr { border: 1px solid #e2e8f0; border-radius: 6px; max-width: 100%; height: auto; }
.on-manual summary { cursor: pointer; font-size: 12px; color: #2563eb; }
.on-secret { display: block; margin: 6px 0 2px; font-size: 15px; letter-spacing: .5px; user-select: all; word-break: break-all; }
.on-code { font-size: 18px; letter-spacing: 3px; text-align: center; font-variant-numeric: tabular-nums; }
.on-codes { columns: 2; list-style: none; margin: 0; padding: 10px 14px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 6px; font: 15px/1.8 ui-monospace, Menlo, Consolas, monospace; user-select: all; }
.on-badge.trash { background: #fee2e2; color: #991b1b; }
.on-admin-row { cursor: default; }
.on-admin-row:hover { background: #f8fafc; }
.on-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.on-table.small { font-size: 12px; }
.on-kv { display: grid; grid-template-columns: 210px 1fr; gap: 8px; font-size: 13px; }
.on-kv span { color: #64748b; }
.on-admin-acts { flex-direction: row !important; flex-wrap: wrap; gap: 6px !important; }
.on-limits { display: grid; grid-template-columns: 140px 140px max-content; gap: 8px; align-items: end; }
.on-limits .tb-btn { height: 34px; }
.on-radio { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.on-userbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: inherit; border-radius: 16px; padding: 3px 10px 3px 4px; margin-right: 8px; cursor: pointer; font: inherit; font-size: 13px; }
.on-userbtn:hover { background: rgba(255,255,255,.1); }
.on-avatar { width: 22px; height: 22px; border-radius: 50%; background: #3b82f6; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.on-uname { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-usermenu, .on-pop { position: fixed; z-index: 2100; min-width: 200px; }
.on-menuhead { display: flex; flex-direction: column; padding: 8px 12px 6px; border-bottom: 1px solid #eef1f5; margin-bottom: 4px; }
.on-menuhead span { font-size: 12px; color: #64748b; }
/* verkenner */
.on-bwrap { display: grid; grid-template-columns: 190px 1fr; gap: 12px; min-height: 380px; }
.on-side { display: flex; flex-direction: column; gap: 8px; }
.on-nav { display: flex; flex-direction: column; gap: 2px; }
.on-navitem { display: flex; gap: 8px; align-items: center; border: 0; background: transparent; padding: 6px 8px; border-radius: 6px; cursor: pointer; text-align: left; font: inherit; }
.on-navitem:hover { background: #f1f5f9; }
.on-navitem.on { background: #dbeafe; color: #1e40af; font-weight: 600; }
.on-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.on-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 13px; }
.on-crumb { border: 0; background: transparent; color: #2563eb; cursor: pointer; padding: 2px 4px; border-radius: 4px; font: inherit; }
.on-crumb:hover { background: #eff6ff; }
.on-crumbsep { color: #94a3b8; }
.on-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 28px; }
.on-folderinfo { font-size: 12px; color: #64748b; margin-left: auto; }
.on-list { border: 1px solid #e2e8f0; border-radius: 8px; overflow: auto; flex: 1; max-height: 52vh; min-height: 260px; }
.on-row { display: grid; grid-template-columns: 26px minmax(120px, 1fr) auto 120px 120px 28px; gap: 6px; align-items: center; padding: 6px 8px; border-bottom: 1px solid #f1f5f9; cursor: default; font-size: 13px; }
.on-row:hover { background: #f8fafc; }
.on-row.sel { background: #dbeafe; }
.on-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.on-owner, .on-date { color: #64748b; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-status { display: flex; gap: 3px; }
.on-badge { font-size: 11px; background: #f1f5f9; border-radius: 8px; padding: 0 6px; color: #475569; white-space: nowrap; }
.on-badge.lock { background: #fef3c7; }
.on-more { border: 0; background: transparent; cursor: pointer; font-size: 16px; border-radius: 4px; }
.on-more:hover { background: #e2e8f0; }
.on-empty { padding: 24px; text-align: center; color: #64748b; font-size: 13px; }
.on-savebar { border-top: 1px solid #eef1f5; padding-top: 8px; }
/* delen */
.on-share-add { display: grid; grid-template-columns: minmax(180px, 1fr) 160px auto; gap: 6px; }
.on-share-list { display: flex; flex-direction: column; gap: 4px; }
.on-share-row { display: grid; grid-template-columns: 1fr 170px 26px; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid #f1f5f9; }
.on-share-row .who { display: flex; flex-direction: column; min-width: 0; }
.on-share-row .who small { color: #64748b; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.on-share-row .role { font-size: 13px; color: #475569; }
.on-share-row.inherited { opacity: .75; }
/* versies, beheer */
.on-version { display: grid; grid-template-columns: 80px 190px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.on-vmeta { color: #64748b; font-size: 12px; }
.on-vacts { display: flex; gap: 4px; }
.on-version { grid-template-columns: 70px minmax(160px, 260px) 1fr auto; }
.on-vacts { flex-wrap: wrap; justify-content: flex-end; }
.on-check { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 8px; }
.on-compare h4 { margin: 10px 0 4px; font-size: 13px; }
.on-diff { margin: 0; padding-left: 18px; font-size: 12.5px; max-height: 200px; overflow: auto; }
.on-diff.add li::marker { content: '+ '; color: #16a34a; }
.on-diff.del li::marker { content: '− '; color: #dc2626; }
.on-diff.chg li::marker { content: '~ '; color: #d97706; }
.on-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.on-table th, .on-table td { text-align: left; padding: 5px 6px; border-bottom: 1px solid #f1f5f9; }
.on-row-acts { display: flex; gap: 4px; }
/* statusbalk boven het canvas */
#stage { position: relative; }
.on-bar { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px);
  background: rgba(255,255,255,.96); border: 1px solid #cbd5e1; border-radius: 10px; padding: 5px 8px 5px 12px; box-shadow: 0 4px 16px rgba(15,23,42,.12); font-size: 13px; }
.on-bar-cloud { color: #2563eb; }
.on-bar-name { font-weight: 600; max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-bar-state { color: #16a34a; white-space: nowrap; }
.on-bar-state.ro { color: #b45309; }
.on-bar-acts { display: flex; gap: 4px; flex-wrap: nowrap; }
.on-bar-acts .tb-btn { white-space: nowrap; }
/* alleen-lezen */
body.rx-readonly #library .lib-cat, body.rx-readonly #library .lib-searchbar { opacity: .45; pointer-events: none; }
body.rx-readonly #props .prop-sec input, body.rx-readonly #props .prop-sec select, body.rx-readonly #props .prop-sec textarea, body.rx-readonly #props .prop-sec button { pointer-events: none; opacity: .6; }
/* opmerkingen */
.on-pins { position: absolute; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.on-pin { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; min-width: 24px; height: 24px; border-radius: 12px 12px 12px 2px; border: 2px solid #fff; background: #f59e0b; color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; box-shadow: 0 2px 6px rgba(15,23,42,.3); padding: 0 6px; }
.on-pin.resolved { background: #94a3b8; }
.on-pin.active { background: #dc2626; z-index: 2; }
.on-cpane { display: flex; flex-direction: column; min-height: 0; }
.on-ctools { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-bottom: 1px solid #eef1f5; }
.on-cres { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #475569; }
.on-comments { overflow: auto; flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 8px; }
.on-thread { border: 1px solid #e2e8f0; border-radius: 8px; padding: 6px 8px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.on-thread.active { border-color: #f59e0b; box-shadow: 0 0 0 2px #fde68a; }
.on-thread.resolved { opacity: .7; }
.on-thead { display: flex; align-items: center; gap: 6px; }
.on-pinno { background: #f59e0b; color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; padding: 0 6px; }
.on-thread.resolved .on-pinno { background: #94a3b8; }
.on-where { flex: 1; font-size: 11px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.on-cmeta { display: flex; gap: 6px; align-items: baseline; font-size: 12px; }
.on-cmeta span { color: #94a3b8; font-size: 11px; }
.on-cbody { white-space: pre-wrap; word-break: break-word; font-size: 13px; }
.on-cacts { display: flex; gap: 8px; }
.on-cacts .on-link { font-size: 11px; }
.on-cmsg + .on-cmsg { border-top: 1px dashed #e2e8f0; padding-top: 4px; margin-left: 10px; }
.on-reply { font-size: 12px; padding: 5px 7px; }

/* het hidden-attribuut wint altijd van display-regels */
[hidden] { display: none !important; }
/* PowerPoint-import */
.ppt-dialog { width: min(920px, 96vw); }
.ppt-help { margin: 0 0 8px; color: #475569; font-size: 13px; }
.ppt-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ppt-text { height: 280px; }
.ppt-preview { width: 100%; height: 280px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; }
.ppt-height { width: 64px; }
@media (max-width: 700px) { .ppt-cols { grid-template-columns: 1fr; } .ppt-text, .ppt-preview { height: 180px; } }
/* objectenlijst: kolommen kiezen */
.ot-cols-dialog { width: min(420px, 94vw); }
.ot-cols-help { font-size: 12px; color: #475569; margin: 8px 0; }
.ot-cols-list { display: flex; flex-direction: column; gap: 2px; max-height: 52vh; overflow: auto; }
.ot-cols-row { display: flex; align-items: center; gap: 4px; padding: 2px 4px; border-radius: 4px; }
.ot-cols-row:hover { background: #f1f5f9; }
.ot-cols-row label { flex: 1; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ot-cols-row .tb-btn.icon { width: 26px; height: 24px; min-height: 24px; }
.ot-table th[data-col="id"] { width: 150px; }
.ot-table th[data-col="layer"], .ot-table th[data-col="fill"], .ot-table th[data-col="stroke"] { width: 90px; }
.ot-table th[data-col="links"], .ot-table th[data-col="locked"], .ot-table th[data-col="visible"], .ot-table th[data-col="fontSize"], .ot-table th[data-col="strokeWidth"] { width: 84px; }
/* Enterprise: Policy Designer */
.ent-dialog { width: min(1280px, 97vw); max-height: 92vh; }
.ent-tabs { padding: 0 8px; }
.ent-tabs .tab { flex: 0 0 auto; padding: 8px 14px; }
.ent-body { min-height: 360px; }
.ent-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.ent-bar .sheet-in { width: auto; }
.ent-chk { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text); font-size: 13px; }
.ent-note { font-size: 12px; color: var(--muted); margin: 4px 0; }
.ent-note.warn { color: #b45309; }
.ent-summary { font-weight: 600; margin: 8px 0; }
.ent-rules-wrap { overflow-x: auto; }
.ent-rules { min-width: 1150px; }
.ent-rules td .sheet-in { min-width: 54px; padding: 2px 4px; font-size: 12px; }
.ent-rules td .sheet-in.mono { font-family: Consolas, monospace; min-width: 110px; }
.ent-rules td .sheet-in:disabled { background: #f1f5f9; color: #94a3b8; }
.ent-rules tr.bad td { background: #fef2f2; }
.ent-rules tr.ent-na td { color: #94a3b8; }
.ent-rules .ent-type { color: #94a3b8; font-size: 10.5px; }
.ent-ov td { vertical-align: top; font-size: 12px; border-bottom: 1px solid #eef2f7; }
.ent-ov .ent-notes, .sheet-tbl .ent-notes { white-space: pre-line; color: #475569; }
.ent-ov tr.ent-err td { background: #fef2f2; }
.ent-st { white-space: normal; }
.ent-list { margin: 4px 0 8px 18px; padding: 0; font-size: 12px; }
.ent-sec { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px 8px; margin: 8px 0; }
.sheet-tbl tr.ent-on td { background: var(--accent-soft); }
.mono { font-family: Consolas, monospace; }
.ent-rules .ent-attr { white-space: nowrap; }
.ent-bad { color: #b91c1c; }
.ent-hash { font-size: 11.5px; word-break: break-all; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; }
.ent-errors li, .ent-warnings li { margin: 2px 0; }
.tb-btn.primary:hover:not(:disabled) { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
