/* PRISMA 4.2 — pagina-opmaak */

.locked-panel { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid #D0D0BF; background: #FBFAF4; border-radius: 4px; margin: 6px 0; }
.locked-panel.big { max-width: 560px; margin: 30px auto; padding: 22px; box-shadow: 2px 2px 0 #E3E1D6; }
.locked-panel h2 { margin-bottom: 6px; }
.locked-note { margin-top: 6px; padding: 4px 8px; background: #F6F5EE; border: 1px dashed #B8B49A; color: #555; font-size: 11px; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- RecordCard ---------- */
.record { border: 1px solid #C9D3E3; background: #fff; margin-bottom: 12px; border-radius: 4px; overflow: hidden; }
.rec-head { display: flex; gap: 10px; align-items: center; padding: 8px 10px; background: linear-gradient(180deg, #EEF3FB, #DCE6F5); border-bottom: 1px solid #C9D3E3; flex-wrap: wrap; }
.rec-title { flex: 1; min-width: 200px; }
.rec-title h1 { margin: 0; font-size: 16px; }
.rec-sub { color: #444; margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rec-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rec-body { display: flex; gap: 14px; padding: 10px; flex-wrap: wrap; align-items: flex-start; }
.rec-photo img { width: 120px; height: 150px; object-fit: cover; border: 1px solid #7F9DB9; padding: 2px; background: #fff; box-shadow: 1px 1px 3px rgba(0,0,0,.2); }
table.rec-fields { border-collapse: collapse; flex: 1; min-width: 280px; }
table.rec-fields th { text-align: left; font-weight: normal; color: #555; padding: 3px 12px 3px 0; white-space: nowrap; vertical-align: top; width: 150px; }
table.rec-fields td { padding: 3px 0; vertical-align: top; }
table.rec-fields tr + tr th, table.rec-fields tr + tr td { border-top: 1px dotted #E0E0D6; }
.bijz { flex-basis: 260px; flex-grow: .4; background: #FFFBEA; border: 1px solid #F0D27A; border-left: 4px solid var(--geel); padding: 6px 10px; border-radius: 2px; }
.bijz-h { font-weight: bold; color: #7A5A00; display: flex; gap: 6px; align-items: center; margin-bottom: 3px; }
.bijz ul { margin: 0; padding-left: 16px; }
.oordeel { display: inline-flex; gap: 4px; align-items: center; }
.mini-map { flex-basis: 300px; flex-grow: .5; }
.mini-map .mapview { max-width: 420px; }
.mini-map .map-legend { display: none; }

.link-ul { list-style: none; padding: 0; margin: 0; }
.link-ul li { padding: 2px 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.prose { max-width: 820px; line-height: 1.55; }
.antec li { margin-bottom: 3px; }
img.thumb { width: 24px; height: 30px; object-fit: cover; border: 1px solid #ACA899; display: block; }
table.grid tr.hoofd td { font-weight: normal; background: #FFFBEA !important; }

/* ---------- Startpagina ---------- */
.welcome { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 8px; background: linear-gradient(90deg, var(--navy), #2A4BA8); color: #fff; border-radius: 3px; border-bottom: 3px solid var(--geel); }
.welcome b { font-size: 14px; display: block; }
.welcome .muted { color: #C3CDEB; font-size: 11px; }
.welcome-lvl { margin-left: auto; font-size: 11px; color: #C3CDEB; }
.welcome-lvl b { color: var(--geel); font-size: 14px; }
.ticker { display: flex; align-items: stretch; border: 1px solid #ACA899; background: #fff; margin-bottom: 10px; height: 24px; overflow: hidden; }
.ticker-lbl { background: #C0392B; color: #fff; font-weight: bold; font-size: 11px; padding: 0 8px; display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-move { position: absolute; white-space: nowrap; line-height: 22px; animation: tick 45s linear infinite; padding-left: 100%; }
.ticker-move span { margin: 0 10px; }
.ticker-move .dot { color: #C0392B; font-size: 8px; }
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-100%); } }
.hoofdzaak { display: flex; gap: 14px; align-items: center; padding: 12px 14px; margin-bottom: 12px; border: 2px solid var(--navy); background: linear-gradient(180deg, #FFFDF2, #FFF5CC); border-radius: 4px; box-shadow: 2px 2px 0 rgba(22,40,102,.15); flex-wrap: wrap; }
.hz-label { font-size: 10px; letter-spacing: 2px; font-weight: bold; color: #C0392B; }
.hz-body { flex: 1; min-width: 260px; }
.hz-body h1 { font-size: 17px; margin: 2px 0 4px; }
.hz-meta { font-size: 11px; color: #444; margin-bottom: 6px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.hz-body p { margin: 0; max-width: 760px; }
.btn.big { height: 34px; font-size: 13px; font-weight: bold; padding: 0 18px; }
.start-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 12px; }
.news { padding: 6px 0 8px; border-bottom: 1px dotted #D0D0BF; }
.news:last-child { border-bottom: 0; }
.news.focus { background: #FFFBEA; outline: 2px solid var(--geel); }
.news h3 { margin: 2px 0 3px; font-family: Georgia, "Times New Roman", serif; font-size: 15px; color: #111; }
.news-src { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #8B0000; font-weight: bold; }
.news-text { max-height: 3.1em; overflow: hidden; color: #333; position: relative; }
.news-text.open { max-height: none; }
.news-more { font-size: 11px; }
ul.intern, ul.tasks, ul.sysmsg { list-style: none; padding: 0; margin: 0; }
ul.intern li, ul.sysmsg li { padding: 4px 0; border-bottom: 1px dotted #E0DCC8; }
ul.tasks li { padding: 3px 0; }
ul.tasks li a.elink { white-space: normal; display: inline; }
ul.sysmsg li { display: flex; gap: 6px; align-items: flex-start; }

/* ---------- Zaakdossier / journaal ---------- */
.journaal .j-item { padding: 6px 8px; border-left: 3px solid #7F9DB9; margin-bottom: 6px; background: #F7F9FC; }
.journaal .j-head { font-size: 11px; color: #444; margin-bottom: 2px; }

/* ---------- Documenten ---------- */
.soort-filter { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.soort-filter .btn.active { background: linear-gradient(#E3E9F5, #CBD8EE); border-color: #1D3F8E; font-weight: bold; }
.paper-wrap { background: #8E8E86; padding: 16px; min-height: 100%; }
.paper-wrap.inline { background: #D8D6CC; border: 1px solid #ACA899; margin-top: 4px; }
.paper { background: #fff; max-width: 720px; margin: 0 auto; padding: 26px 34px 34px; box-shadow: 2px 3px 8px rgba(0,0,0,.35); font-family: "Courier New", Courier, monospace; font-size: 13px; line-height: 1.55; }
.paper-head { display: flex; gap: 10px; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 14px; font-family: var(--font); font-size: 11px; }
.paper-head img { width: 44px; height: 44px; }
.paper-head b { color: var(--navy); font-size: 12px; }
.paper-nr { margin-left: auto; text-align: right; font-family: "Courier New", monospace; }
.paper-text a.elink { font-family: inherit; }
.img-view { text-align: center; background: #222; padding: 10px; overflow: auto; }
.img-view img { width: 100%; max-width: none; display: inline-block; image-rendering: auto; box-shadow: 0 0 0 1px #000; }
.doc-caption { background: #FFFFF4; border: 1px solid #ACA899; padding: 10px 14px; margin: 10px auto 0; max-width: 760px; font-size: 12px; }
.pdf-view { width: 100%; height: 100%; min-height: 480px; border: 0; background: #fff; }
.doc-inline { margin-top: 4px; }

/* ---------- Kenteken ---------- */
.plate { display: inline-flex; align-items: center; background: #F7C600; border: 1px solid #222; border-radius: 3px; font: bold 13px/18px "Arial Narrow", Arial, sans-serif; letter-spacing: 1px; padding: 0 6px 0 0; color: #111; white-space: nowrap; box-shadow: inset 0 0 0 1px #FFE16B; }
.plate .nl { background: #1F3EA0; color: #fff; font-size: 8px; padding: 0 3px; margin-right: 5px; align-self: stretch; display: flex; align-items: flex-end; letter-spacing: 0; }

/* ---------- Zoeken ---------- */
.big-search { display: flex; gap: 6px; }
.big-search input { flex: 1; height: 28px; font-size: 14px; }
.big-search .btn { height: 28px; }
.recent { margin: 6px 0 10px; font-size: 11px; color: #555; }
.res-summary { margin: 4px 0 10px; padding: 6px 8px; background: #F1F5FB; border: 1px solid #C9D3E3; }
.res-item { padding: 4px 0 6px; border-bottom: 1px dotted #E0E0D6; }
.res-item:last-child { border-bottom: 0; }
.res-sub { font-size: 11px; color: #555; margin-top: 1px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.res-snip { font-size: 11px; color: #333; margin-top: 2px; font-style: italic; }
.no-results { display: flex; gap: 12px; align-items: center; padding: 16px; border: 1px solid #E6C76A; background: #FFF8E1; margin-top: 8px; }
.adv-type { margin-bottom: 10px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.adv-form { max-width: 560px; }

/* ---------- Tijdlijn ---------- */
.tl-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding: 6px 8px; background: #F6F5EE; border: 1px solid #D6D3C2; margin-bottom: 10px; }
.tl-filters select { max-width: 220px; }
.tl-list { position: relative; padding-left: 26px; }
.tl-list::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--navy), #6C82C8); }
.tl-day { margin: 10px 0 6px -26px; font-weight: bold; color: #fff; background: var(--navy); display: inline-flex; gap: 6px; align-items: center; padding: 2px 10px 2px 6px; border-radius: 0 10px 10px 0; position: relative; z-index: 1; }
.tl-row { position: relative; margin-bottom: 8px; }
.tl-dot { position: absolute; left: -23px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid #A0A9C0; }
.tl-dot.ok { border-color: var(--groen); }
.tl-dot.contra { border-color: #C0392B; background: #FDECEA; }
.tl-card { background: #fff; border: 1px solid #C9D3E3; border-radius: 3px; padding: 6px 9px; box-shadow: 1px 1px 0 #E6EAF2; }
.tl-card.focus { outline: 3px solid var(--geel); }
.tl-card.contra { border-color: #E5A39B; background: #FFF8F7; }
.tl-time { font-weight: bold; color: var(--navy); display: flex; gap: 6px; align-items: center; font-size: 13px; }
.tl-what { margin: 2px 0 3px; }
.tl-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; }
.tl-src { font-size: 11px; color: #666; margin-top: 2px; }
.tl-card a.elink, .tip-text a.elink, .res-snip a.elink, .prose a.elink, .paper-text a.elink, .news-text a.elink { white-space: normal; display: inline; }
.tl-contra { border: 2px solid #C0392B; border-radius: 4px; padding: 6px; background: #FFF2F0; }
.tl-contra-head { font-weight: bold; color: #8B1A10; display: flex; gap: 5px; align-items: center; margin-bottom: 5px; }
.tl-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px; }

/* ---------- Verbanden ---------- */
.net-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.network { border: 1px solid #7F9DB9; background: #FCFCFE radial-gradient(#E3E8F2 1px, transparent 1px) 0 0 / 18px 18px; }
.network svg { width: 100%; height: auto; max-height: 72vh; display: block; font-family: var(--font); }
.network .edge line { stroke: #8D9AB5; stroke-width: 1.6; }
.network .edge line.stippel { stroke-dasharray: 5 4; }
.network .elabel { font-size: 10px; fill: #555; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.network .node { cursor: pointer; }
.network .node.locked { cursor: help; opacity: .7; }
.network .nlabel { font-size: 11px; text-anchor: middle; fill: #111; paint-order: stroke; stroke: #fff; stroke-width: 3px; font-weight: bold; }
.network svg.hovering .edge, .network svg.hovering .node { opacity: .15; transition: opacity .15s; }
.network svg.hovering .edge.hl, .network svg.hovering .node.hl { opacity: 1; }
.network .edge.hl line { stroke: #E0A800; stroke-width: 3; }
.network .node:hover circle { fill: #FFF5CC; }

/* ---------- Plattegrond ---------- */
.mapview { max-width: 900px; }
.map-inner { position: relative; border: 1px solid #7F9DB9; background: #EEF0E2; line-height: 0; }
.map-inner > img { width: 100%; height: auto; display: block; user-select: none; }
.marker { position: absolute; transform: translate(-50%, -100%); text-decoration: none; line-height: 1.2; z-index: 1; }
.marker .pin { display: block; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); border: 2px solid #fff; box-shadow: 1px 1px 3px rgba(0,0,0,.5); margin: 0 auto; }
.marker .mlabel { display: none; position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); background: #FFFFE1; color: #000; border: 1px solid #000; padding: 1px 5px; font-size: 11px; white-space: nowrap; }
.marker:hover { z-index: 5; }
.marker:hover .mlabel, .marker.hl .mlabel { display: block; }
.marker.hl .pin { width: 20px; height: 20px; animation: bounce 1s infinite; }
@keyframes bounce { 50% { transform: rotate(-45deg) translate(3px, -3px); } }
.map-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; margin-top: 4px; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }

/* ---------- Meldkamer / systeemlog ---------- */
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.unit { border: 1px solid #C9D3E3; padding: 6px 8px; background: #F7F9FC; border-radius: 3px; }
.lamp { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; background: #999; box-shadow: inset 0 -2px 2px rgba(0,0,0,.3); }
.lamp.ok { background: #3BB54A; box-shadow: 0 0 4px #3BB54A; }
.lamp.busy, .lamp.traag { background: #F0A30A; box-shadow: 0 0 4px #F0A30A; }
.lamp.fout { background: #E53624; box-shadow: 0 0 4px #E53624; animation: blinkl 1s steps(1) infinite; }
.lamp.off { background: #888; }
@keyframes blinkl { 50% { opacity: .3; } }
.server-status { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.srv { border: 1px solid #ACA899; background: linear-gradient(#FFF, #F1EFE6); padding: 5px 9px; border-radius: 3px; min-width: 150px; }

/* ---------- Notities ---------- */
.notes-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr); gap: 12px; }
.notepad-frame { border: 1px solid #7F9DB9; }
.np-menu { display: flex; gap: 12px; padding: 1px 6px; background: var(--panel); font-size: 11px; border-bottom: 1px solid #ACA899; }
textarea.notepad { width: 100%; height: 100%; min-height: 200px; border: 0; font: 13px/1.4 "Lucida Console", "Courier New", monospace; padding: 4px 6px; resize: none; display: block; }
textarea.notepad.big { min-height: 280px; resize: vertical; }
.float-win textarea.notepad { height: 100%; }
.vl-sum { margin-bottom: 6px; display: flex; gap: 6px; }
table.vl tr.vl-Verdacht td { background: #FDECEA !important; }
table.vl tr.vl-Onschuldig td { background: #EEF7EE !important; color: #555; }
.tip-text { max-width: 520px; }

/* ---------- Zaak afronden ---------- */
.pv-form { max-width: 720px; background: #fff; border: 1px solid #ACA899; padding: 16px 18px; box-shadow: 2px 3px 6px rgba(0,0,0,.15); margin-bottom: 12px; }
.pv-head { display: flex; gap: 10px; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-bottom: 12px; }
.pv-head img { width: 48px; }
.pv-nr { margin-left: auto; text-align: right; font-family: "Courier New", monospace; font-size: 11px; }
.solved { max-width: 620px; margin: 20px auto; text-align: center; padding: 30px; background: #fff; border: 2px solid var(--navy); position: relative; box-shadow: 3px 3px 0 var(--geel); }
.solved-logo { width: 260px; margin-bottom: 10px; }
.stamp { position: absolute; top: 24px; right: -10px; transform: rotate(12deg); color: #C0392B; border: 4px double #C0392B; font: bold 22px "Courier New", monospace; padding: 4px 12px; opacity: .85; letter-spacing: 2px; }
.solved-t { margin: 14px auto 0; max-width: 380px; text-align: left; }

/* ---------- Spelleider / dev ---------- */
.codeblad { background: #0C0C0C; color: #7CFC7C; padding: 10px; font: 12px/1.5 "Courier New", monospace; overflow: auto; max-height: 360px; white-space: pre-wrap; }
.big-clock { font: bold 22px "Courier New", monospace; color: var(--navy); margin: 4px 0; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px; }

@media (max-width: 980px) {
  .start-grid, .notes-grid { grid-template-columns: 1fr; }
}
