:root {
  --bg: #f6f6f4; --panel: #fff; --ink: #16161a; --muted: #6b6b73; --line: #e6e5e1;
  --accent: #FB5A17; --accent-soft: #fde8ec; --ok: #1f8a4c; --ok-soft: #e4f4ea; --warn: #b26b00; --warn-soft: #fdf1dc;
  --side: #16161a; --radius: 10px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

#offline-banner { position: sticky; top: 0; z-index: 50; background: var(--warn); color: #fff; padding: 8px 16px; font-size: 13px; text-align: center; }

.layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--side); color: #d9d9de; padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; padding: 4px 8px 18px; }
.brand img { width: 28px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: #c9c9d0; margin-bottom: 2px; }
.side nav a:hover { background: #26262c; color: #fff; }
.side nav a.active { background: #2c2c33; color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side .who { margin-top: auto; font-size: 12px; color: #9a9aa3; padding: 8px; border-top: 1px solid #2c2c33; }
.side .who button { background: none; border: 0; color: #c9c9d0; padding: 0; cursor: pointer; text-decoration: underline; }
.sync-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; }
.sync-dot.off { background: var(--warn); }

main { padding: 24px 32px 60px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; padding: 7px 13px; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #c8c7c2; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(0.95); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 4px 9px; font-size: 12.5px; }
.btn.danger { color: var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h2 { font-size: 15px; margin: 0 0 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.side-main { grid-template-columns: 320px 1fr; align-items: start; }
@media (max-width: 1000px) { .g2, .g3, .g4, .side-main { grid-template-columns: 1fr; } .layout { grid-template-columns: 1fr; } .side { position: static; height: auto; } }

.kpi .label { color: var(--muted); font-size: 12.5px; }
.kpi .value { font-size: 26px; font-weight: 700; margin-top: 4px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

table.list { width: 100%; border-collapse: collapse; background: #fff; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; }
table.list th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfbfa; white-space: nowrap; }
table.list td { padding: 10px 12px; border-bottom: 1px solid #f0efec; vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; } table.list tr.click:hover td { background: #fafaf8; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: #efefec; color: #4b4b52; text-transform: capitalize; }
.badge.concept { background: #efefec; } .badge.verzonden { background: #e6effc; color: #1f57b3; }
.badge.aanvaard, .badge.betaald { background: var(--ok-soft); color: var(--ok); }
.badge.geweigerd, .badge.vervallen, .badge.overdue { background: var(--accent-soft); color: var(--accent); }
.badge.gefactureerd { background: #efe7fb; color: #6a3fb5; }

input[type=text], input[type=time], input:not([type]), input[type=email], input[type=number], input[type=date], input[type=password], input[type=url], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #f6b9c5; border-color: var(--accent); }
textarea { min-height: 70px; resize: vertical; }
label.f { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
label.f > input, label.f > select, label.f > textarea { margin-top: 4px; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.search { max-width: 320px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { background: none; border: 0; padding: 9px 12px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0efec; }
.timeline .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f1f0ed; font-size: 14px; }
.timeline .meta { font-size: 12px; color: var(--muted); }
.timeline .body { font-size: 13px; color: #3a3a40; white-space: pre-wrap; margin-top: 3px; }
.timeline li.done .subj { text-decoration: line-through; color: var(--muted); }

dl.info { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 0; font-size: 13px; }
dl.info dt { color: var(--muted); } dl.info dd { margin: 0; word-break: break-word; }

/* Offerte-editor */
table.lines { width: 100%; border-collapse: collapse; }
table.lines th { font-size: 11.5px; color: var(--muted); text-align: left; padding: 6px; border-bottom: 1px solid var(--line); font-weight: 600; }
table.lines td { padding: 4px 6px; border-bottom: 1px solid #f2f1ee; vertical-align: top; }
table.lines input, table.lines textarea { padding: 5px 7px; border-color: transparent; background: transparent; }
table.lines input:hover, table.lines textarea:hover { border-color: var(--line); }
table.lines textarea { min-height: 32px; height: 32px; resize: none; overflow: hidden; }
table.lines tr.section td { background: #fbfaf8; }
table.lines tr.section textarea { font-weight: 700; font-size: 14.5px; color: var(--accent); }
table.lines tr.text textarea { font-style: italic; color: var(--muted); }
table.lines tr.optional { opacity: .6; }
table.lines tr.invoiced td:first-child { box-shadow: inset 3px 0 0 #6a3fb5; }
table.lines tr.dragging { opacity: .35; }
table.lines tr.drop-above td { box-shadow: inset 0 2px 0 var(--accent); }
.handle { cursor: grab; color: #aaa; font-size: 16px; user-select: none; padding: 6px 2px; text-align: center; }
.handle:active { cursor: grabbing; }
.totals { margin-left: auto; width: 320px; margin-top: 12px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; font-variant-numeric: tabular-nums; }
.totals .grand { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.progress { height: 8px; background: #efefec; border-radius: 99px; overflow: hidden; margin: 8px 0; }
.progress > span { display: block; height: 100%; background: #6a3fb5; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(20,20,24,.45); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 620px; max-height: 90vh; overflow: auto; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 900px; }
.modal h2 { margin: 0 0 14px; font-size: 18px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: #fff8f9; }
.choice input { margin-top: 3px; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 200; max-width: 90vw; }
#toast.show { opacity: 1; } #toast.err { background: var(--accent); }

.login { min-height: 100vh; display: grid; place-items: center; }
.login .card { width: 360px; padding: 28px; }
.login h1 { margin: 0 0 4px; font-size: 22px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: #f1f0ed; border-radius: 6px; padding: 1px 7px; font-size: 12px; margin-right: 4px; }
iframe.preview { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.callout { background: var(--warn-soft); color: #6b4300; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.callout.info { background: #eef3fb; color: #1f3f73; }

/* ---------- projecten, notities, uren ---------- */
.badge.lopend { background: #e6effc; color: #1f57b3; } .badge.afgerond { background: var(--ok-soft); color: var(--ok); }
.badge.klaar { background: var(--ok-soft); color: var(--ok); } .badge.fout { background: var(--accent-soft); color: var(--accent); }
.badge.wachten, .badge.transcriberen, .badge.samenvatten { background: var(--warn-soft); color: var(--warn); }
.progress.over > span { background: var(--accent); }
.warn-txt { color: var(--accent); font-weight: 600; }
.notes-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 18px; min-height: 520px; }
@media (max-width: 1000px) { .notes-wrap { grid-template-columns: 1fr; } }
.notes-list { border-right: 1px solid var(--line); padding-right: 14px; max-height: 75vh; overflow: auto; }
.note-item { padding: 9px 10px; border-radius: 8px; cursor: pointer; margin-bottom: 2px; }
.note-item:hover { background: #f6f6f3; } .note-item.on { background: #f1f0ed; }
.note-item .nt { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-head { display: flex; gap: 10px; align-items: center; }
.note-title { border: 0 !important; font-size: 26px; font-weight: 700; padding: 4px 0 !important; outline: none !important; letter-spacing: -0.01em; flex: 1; background: transparent; }
.toolbar { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 6px 0; margin-bottom: 10px; position: sticky; top: 0; background: #fff; z-index: 2; }
.toolbar button { border: 0; background: none; padding: 5px 9px; border-radius: 6px; cursor: pointer; font-size: 13px; color: #444; }
.toolbar button:hover { background: #f1f0ed; }
.note-body { min-height: 400px; outline: none; font-size: 15px; line-height: 1.65; color: #26262b; }
.note-body h1 { font-size: 24px; margin: 18px 0 6px; } .note-body h2 { font-size: 19px; margin: 16px 0 4px; } .note-body h3 { font-size: 16px; margin: 12px 0 4px; }
.note-body p { margin: 4px 0; } .note-body blockquote { border-left: 3px solid var(--ink); margin: 8px 0; padding: 2px 12px; color: #444; }
.note-body ul[data-checklist] { list-style: none; padding-left: 4px; }
.note-body ul[data-checklist] > li { position: relative; padding-left: 26px; }
.note-body ul[data-checklist] > li::before { content: ''; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border: 1.5px solid #9a9aa3; border-radius: 4px; cursor: pointer; }
.note-body ul[data-checklist] > li[data-checked="true"] { color: var(--muted); text-decoration: line-through; }
.note-body ul[data-checklist] > li[data-checked="true"]::before { background: var(--accent) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 8l3 3 7-7" stroke="white" stroke-width="2.2" fill="none"/></svg>') center/12px no-repeat; border-color: var(--accent); }
.slash-menu { position: absolute; z-index: 300; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.15); padding: 4px; min-width: 190px; }
.slash-menu div { padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13.5px; } .slash-menu div.on, .slash-menu div:hover { background: #f1f0ed; }
.transcript { max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.transcript > div { padding: 5px 0; border-bottom: 1px solid #f3f2ef; } .transcript .spk { font-weight: 700; }
.rec { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; margin-right: 4px; vertical-align: middle; }
@keyframes blink { 50% { opacity: .25; } }
.rec-box { text-align: center; padding: 20px; background: #fafaf8; border-radius: 10px; margin-top: 8px; } .rec-time { font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer-pill { margin: 0 4px 10px; background: #2c2c33; color: #fff; border-radius: 8px; padding: 8px 10px; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.timer-pill a { color: #fff; } .timer-pill button { margin-left: auto; background: var(--accent); color: #fff; border: 0; border-radius: 5px; padding: 2px 8px; cursor: pointer; }
.time-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; } .time-form select { width: auto; max-width: 340px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 16px; }
.week > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; } .week > div.on { border-color: var(--accent); }
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); margin-bottom: 14px; } .drop.on { border-color: var(--accent); background: #fff8f9; }
.alloc { display: flex; gap: 6px; margin-bottom: 6px; } .alloc select { flex: 1; min-width: 0; }

/* ================= v2 ================= */
:root { --brand: #FB5A17; }
.brand img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #fff1; }
.brand .bell { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; position: relative; font-size: 15px; }
.brand .bell #bell-n { position: absolute; top: -6px; right: -8px; background: var(--brand); color: #fff; border-radius: 99px; font-size: 10px; padding: 1px 5px; }
.nav-sep { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #77777f; padding: 14px 10px 4px; }
.g5 { grid-template-columns: repeat(5, 1fr); } @media (max-width: 1200px) { .g5 { grid-template-columns: repeat(3, 1fr); } }
.hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--side); color: #fff; border-radius: 14px; padding: 26px 28px; margin-bottom: 16px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: var(--brand); opacity: .9; }
.hero > * { position: relative; z-index: 1; } .hero-hi { font-size: 26px; font-weight: 700; letter-spacing: -.02em; } .hero-sub { color: #c9c9d0; margin-top: 4px; }
.hero .btn:not(.primary) { background: #ffffff14; color: #fff; border-color: #ffffff30; }
.kpi .value .mbadge { font-size: 22px; } .kpi-warn { border-color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); }
.mbadge { display: inline-block; font-weight: 700; padding: 1px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.mbadge.ok { background: var(--ok-soft); color: var(--ok); } .mbadge.mid { background: var(--warn-soft); color: var(--warn); } .mbadge.low { background: var(--accent-soft); color: var(--accent); }
.badge.s-offerte { background: #efefec; } .badge.s-inproduction { background: #e6effc; color: #1f57b3; } .badge.s-onhold { background: var(--warn-soft); color: var(--warn); } .badge.s-closeddef { background: var(--ok-soft); color: var(--ok); } .badge.s-lost { background: #eee; color: #888; text-decoration: line-through; }
.badge.s-concept { background: #efefec; } .badge.s-verzonden { background: #e6effc; color: #1f57b3; } .badge.s-goedgekeurd, .badge.s-gefactureerd, .badge.s-betaald { background: var(--ok-soft); color: var(--ok); } .badge.s-afgekeurd { background: var(--accent-soft); color: var(--accent); } .badge.s-tekeuren { background: var(--warn-soft); color: var(--warn); }
.tag.partner { background: #e4f4ea; color: var(--ok); }
.action-list { list-style: none; margin: 0; padding: 0; } .action-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid #f0efec; }
.action-list li.prio1 .ai { background: var(--accent-soft); color: var(--accent); } .action-list .ai { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #f1f0ed; font-size: 13px; flex: none; }
.action-list a { text-decoration: none; font-weight: 600; } .action-list a:hover { text-decoration: underline; }
.notif-list { display: flex; flex-direction: column; } .notif { display: flex; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; font-size: 13px; } .notif:hover { background: #f6f6f3; } .notif.unread { background: #fff6f8; } .notif .ni { width: 24px; height: 24px; border-radius: 50%; background: #f1f0ed; display: grid; place-items: center; flex: none; font-size: 12px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; } .link-card { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; text-decoration: none; font-size: 13px; } .link-card:hover { border-color: var(--brand); }
.kb { padding-left: 0; list-style: none; margin: 0 0 8px; } .kb li { padding: 4px 0; } .kb a { text-decoration: none; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; font-size: 12px; text-decoration: none; background: #fff; cursor: pointer; white-space: nowrap; margin: 1px 0; } .chip.warn { border-color: #f3c27a; background: var(--warn-soft); color: #7a4a00; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--side); color: #fff; font-weight: 700; object-fit: cover; vertical-align: middle; flex: none; }
.person { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0efec; text-decoration: none; } .person-head { display: flex; gap: 16px; align-items: center; }
.assistant { background: linear-gradient(180deg, #fffdf7, #fff); border-color: #f0e4c4; } .sugg { padding: 8px 10px; border-radius: 8px; background: #f7f7f4; margin-bottom: 6px; font-size: 13px; } .sugg.warn, .sugg.danger { background: var(--accent-soft); } .sugg.ok { background: var(--ok-soft); }
.flow { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding-bottom: 6px; } .flow-arrow { align-self: center; color: var(--muted); font-size: 20px; }
.flow-card { min-width: 210px; max-width: 260px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; background: #fff; display: flex; flex-direction: column; gap: 3px; } .flow-card:hover { border-color: var(--brand); } .flow-card.done { background: #f7fbf8; } .flow-card.current { border: 2px solid var(--brand); }
.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; } .project-head h1 { font-size: 26px; margin: 4px 0 8px; letter-spacing: -.02em; }
.pcode { background: var(--side); color: #fff; border-radius: 8px; padding: 2px 10px; font-variant-numeric: tabular-nums; margin-right: 6px; } .pmeta { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.status-select { width: auto !important; padding: 3px 8px !important; font-weight: 600; }
.tabs.scroll { overflow-x: auto; flex-wrap: nowrap; } .tabs.scroll button { white-space: nowrap; }
.team { display: flex; flex-direction: column; gap: 6px; } .tm { display: flex; gap: 10px; align-items: center; }
.supplier-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; } .supplier-card.none { border-style: dashed; } .sc-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.supplier-card select { width: auto; padding: 3px 6px; font-size: 12px; }
.mine-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .mine-kpis { display: flex; gap: 22px; } .mine-kpis > div { display: flex; flex-direction: column; align-items: flex-end; }
.matrix td, .matrix th { padding: 6px 8px; } .matrix th.today { color: var(--brand); } .matrix .cell { width: 64px; text-align: right; padding: 4px 6px; border-color: #eee; } .matrix .cell.saved { background: var(--ok-soft); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; } .cal-h { font-size: 12px; color: var(--muted); text-align: center; }
.cal-d { min-height: 92px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; cursor: pointer; position: relative; } .cal-d:hover { border-color: var(--brand); } .cal-d.empty { background: transparent; border: 0; cursor: default; } .cal-d.today { border-color: var(--brand); }
.cal-n { font-size: 12px; font-weight: 700; } .cal-e { font-size: 11px; background: #eef3fb; border-radius: 4px; padding: 1px 4px; margin-top: 2px; white-space: nowrap; overflow: hidden; } .cal-e.pending { background: var(--warn-soft); } .cal-t { position: absolute; right: 6px; top: 6px; font-size: 11px; color: var(--muted); }
.booth-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; } .booth-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; }
.psearch { position: relative; } .ps-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.12); max-height: 260px; overflow: auto; }
.ps-list > div { padding: 7px 10px; cursor: pointer; } .ps-list > div:hover { background: #f6f6f3; }
.toggle-f { display: flex !important; flex-direction: column; } .switch { position: relative; width: 42px; height: 24px; display: inline-block; margin-top: 6px; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #ccc; border-radius: 99px; transition: .2s; cursor: pointer; } .switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--ok); } .switch input:checked + span::before { transform: translateX(18px); }
.comments { margin-top: 14px; } .cm { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid #f0efec; } .cm .cm { border-top: 0; padding-left: 0; } .cm-b { flex: 1; } .mention { background: #fde8ec; color: var(--accent); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.mention-wrap { position: relative; } .mention-menu { position: absolute; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.12); min-width: 220px; top: 100%; } .mention-menu > div { padding: 6px 10px; cursor: pointer; display: flex; gap: 6px; align-items: center; } .mention-menu > div:hover { background: #f6f6f3; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; } .video { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; } .video img, .vph { width: 120px; height: 68px; object-fit: cover; border-radius: 6px; background: #eee; display: grid; place-items: center; }
.note-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; } .note-meta select, .note-meta input { width: auto; padding: 4px 8px; font-size: 12.5px; }
.lp-quote { margin-bottom: 14px; } .nowrap { white-space: nowrap; } .legend { font-size: 12px; color: var(--muted); display: flex; gap: 12px; align-items: center; margin-top: 4px; } .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 4px; }
.progress.ok > span { background: var(--ok); }
/* datatabel */
.dt-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; } .dt-q { max-width: 320px; }
.dt-table th[data-k] { cursor: pointer; user-select: none; } .dt-sort { color: var(--brand); font-size: 10px; } .dt-filters th { padding: 4px 6px !important; background: #fff !important; }
.dt-filters input, .dt-filters select { padding: 4px 6px; font-size: 12px; font-weight: 400; } .dt-more { text-align: center; padding: 8px; } .dt tfoot td { background: #fbfbfa; border-top: 1px solid var(--line); }
/* grafieken */
svg.chart { width: 100%; height: auto; display: block; } svg.chart .ax { font-size: 11px; fill: #6b6b73; } svg.chart .grid { stroke: #efefec; } svg.chart .target { stroke: var(--brand); stroke-dasharray: 4 3; stroke-width: 1.5; }
/* Claude */
#claude-fab { position: fixed; right: 22px; bottom: 22px; z-index: 150; background: var(--side); color: #fff; border: 0; border-radius: 99px; padding: 11px 18px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.25); cursor: pointer; }
#claude-fab:hover { background: var(--brand); }
#claude-panel { position: fixed; right: 22px; bottom: 76px; z-index: 160; width: 420px; max-width: calc(100vw - 30px); height: 560px; max-height: calc(100vh - 110px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; }
#claude-panel[hidden] { display: none; } .cp-head { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cp-msgs { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; } .cp-msg { padding: 8px 11px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; max-width: 90%; }
.cp-msg.user { align-self: flex-end; background: var(--side); color: #fff; } .cp-msg.assistant { align-self: flex-start; background: #f4f4f1; }
.cp-sugg { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 8px; } #cp-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); } #cp-form textarea { min-height: 42px; }
.lines input.need { border-color: #f3c27a; background: var(--warn-soft); }
#upd-bar { position: fixed; left: 50%; transform: translateX(-50%); top: 12px; z-index: 300; background: var(--side); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.3); display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
#stg-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 290; background: repeating-linear-gradient(45deg,#ffd54a,#ffd54a 12px,#ffcc1a 12px,#ffcc1a 24px); color: #3a2c00; text-align: center; font-weight: 700; font-size: 12px; padding: 4px; }
.quote-lines { min-width: 1080px; } .quote-lines td:nth-child(2) textarea { min-width: 240px; } .quote-lines select { min-width: 56px; }
.po-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; } .po-box.missing { border-color: #f3c27a; background: var(--warn-soft); } .po-box.ok { background: #f7fbf8; }
.choice-inline { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; font-size: 13.5px; } .choice-inline input { width: auto; }
.po-callout { background: var(--warn-soft); border-color: #f3c27a; }
.sflow { display: flex; gap: 4px; margin: -4px 0 14px; overflow-x: auto; }
.sf { flex: 1; min-width: 120px; background: #efefec; color: #6b6b73; padding: 6px 10px 6px 16px; font-size: 12px; font-weight: 600; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); display: flex; flex-direction: column; }
.sf:first-child { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); padding-left: 10px; }
.sf small { font-weight: 400; font-size: 10.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf.done { background: #dcefe3; color: var(--ok); } .sf.cur { background: var(--side); color: #fff; }
.badge.s-newdeal { background: #efefec; } .badge.s-quotesent { background: #e6effc; color: #1f57b3; } .badge.s-dealapproved { background: #e9e4fb; color: #5a3fb3; } .badge.s-delivered { background: #fff1d6; color: #8a5a00; } .badge.s-closedcheck { background: #e4f4ea; color: var(--ok); }
.delivered-card { border-color: #f3c27a; }
.matrix tr.row-closed td { color: #8a8a90; } .matrix tr.row-closed .cell { background: #f6f6f3; }
/* zoekbare keuzelijsten */
.ss { position: relative; display: block; } .ss-native { display: none !important; }
.ss-input { width: 100%; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px !important; text-overflow: ellipsis; }
.ss-list { position: absolute; z-index: 400; left: 0; min-width: 100%; width: max-content; max-width: min(560px, 90vw); top: calc(100% + 2px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.16); max-height: 300px; overflow: auto; }
.ss-opt { padding: 7px 10px; cursor: pointer; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ss-opt.act { background: #f1f0ed; } .ss-opt.sel { font-weight: 600; } .ss-opt.muted { color: var(--muted); }
.ss-more { padding: 7px 10px; font-size: 12px; color: var(--muted); }
.lines .ss-input, .supplier-card .ss-input { padding: 4px 24px 4px 6px; font-size: 12.5px; }
/* contracten */
.card.conf { border-color: #d9d2f0; background: linear-gradient(180deg, #faf8ff, #fff); } .card.conf.locked { background: #fafafa; border-color: var(--line); }
.contract { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: #fff; } .contract.warn { border-color: #f3c27a; background: var(--warn-soft); }
.ct-head { display: flex; gap: 6px; align-items: center; justify-content: space-between; } .kt { margin: 4px 0; padding-left: 18px; } label.link { text-decoration: underline; cursor: pointer; }
#ct-viewers { width: 100%; }
.ref-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; } .ref-box.missing { border-color: #f3c27a; background: var(--warn-soft); } .ref-box.ok { background: #f7fbf8; } .ref-box.asked { background: #f5f3ff; }
.pcode-sm { background: var(--side); color: #fff; border-radius: 5px; padding: 0 6px; font-weight: 700; }
.bank-head { display: flex; gap: 10px; align-items: center; } .bank-head h2 { margin: 0; flex: 1; } .card.bank { border-color: #cfe3d6; }
td.pos b { color: var(--ok); } a.kpi-link { text-decoration: none; color: inherit; display: block; } a.kpi-link .kpi:hover { border-color: var(--brand); }

/* ===================== Huisstijl Video Factory (Brand Guide 2026) =====================
   Shadow Dark #3A4054 · Night Dark #2A313D · Warm Silence Grey #D5D5D5 · Warm White #FFF9F6
   Soft Ember #FF968D · Original VF #FB5A17 · Yves Klein Blue #211DC3
   Titels: Helvetica Neue, hoofdletters, regular · subtitels: Helvetica Now Display XBold, kleine letters, -4% · labels: Helvetica Now Micro, hoofdletters */
:root {
  --vf-shadow: #3A4054; --vf-night: #2A313D; --vf-silence: #D5D5D5; --vf-white: #FFF9F6; --vf-light: #EDEDED;
  --vf-ember: #FF968D; --vf-blush: #F8CAC1; --vf-orange: #FB5A17; --vf-blue: #211DC3;
  --bg: var(--vf-white); --ink: var(--vf-night); --muted: #6E7484; --line: #E4E2DF; --side: var(--vf-night);
  --brand: var(--vf-orange); --accent: #D9481A; --accent-soft: #FFE7DE;
  font-family: "Helvetica Neue", Helvetica, "Helvetica Now Text", Arial, sans-serif;
}
h1, h2, h3, .hero-hi, .kpi .value { font-family: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.page-head h1, .project-head h1 { text-transform: uppercase; font-weight: 400; letter-spacing: .01em; line-height: .95; color: var(--vf-shadow); }
.page-head h1 { font-size: 30px; } .project-head h1 { font-size: 30px; }
.card h2, .hero-hi { font-weight: 800; letter-spacing: -0.04em; text-transform: lowercase; color: var(--vf-shadow); }
.card h2::first-letter { text-transform: lowercase; }
.hero-hi { font-size: 32px; color: #fff; text-transform: none; }
.nav-sep, .kpi .label, .dt-table th, table.list th, .tabs button, .sub a, .small.label, .f > span:first-child { font-family: "Helvetica Now Micro", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.nav-sep, .kpi .label, .dt-table thead th, table.list th { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.tabs button { text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.tabs button.on { color: var(--vf-shadow); box-shadow: inset 0 -2px 0 var(--vf-orange); }
.side { background: var(--vf-night); } .side nav a:hover { background: #343c4b; } .side nav a.active { background: var(--vf-shadow); box-shadow: inset 3px 0 0 var(--vf-orange); }
.side .who { border-top-color: #3d4656; }
.side .who::after { content: 'VIDEOFACTORY · THE CREATIVE SOCIETY'; display: block; margin-top: 10px; font-size: 9.5px; letter-spacing: .14em; color: #8d93a3; font-family: "Helvetica Now Micro", "Helvetica Neue", Arial, sans-serif; }
.hero { background: var(--vf-shadow); } .hero::after { background: var(--vf-orange); }
.btn.primary { background: var(--vf-orange); border-color: var(--vf-orange); color: #fff; } .btn.primary:hover { background: #E24C0E; border-color: #E24C0E; }
.btn.dark { background: var(--vf-shadow); border-color: var(--vf-shadow); }
.card, .kpi { border-color: #ECE9E6; } .kpi { background: #fff; }
a:not(.btn):not(.chip):not(.tag):not(.person):not(.link-card):not(.flow-card):not(.notif):not(.kpi-link) { color: inherit; text-decoration-color: rgba(33, 29, 195, .45); }
.pcode, .pcode-sm { background: var(--vf-shadow); } .avatar { background: var(--vf-shadow); }
.sf.cur { background: var(--vf-shadow); } .sf.done { background: #FFE7DE; color: #B4410F; }
.mention { background: #E6E5FA; color: var(--vf-blue); }
.badge.s-inproduction, .badge.s-verzonden, .badge.s-quotesent { background: #E6E5FA; color: var(--vf-blue); }
.mbadge.low { background: #FFE7DE; color: #B4410F; }
#claude-fab { background: var(--vf-shadow); } #claude-fab:hover { background: var(--vf-orange); }
.cp-msg.user { background: var(--vf-shadow); }
.assistant { background: linear-gradient(180deg, #FFF4EF, #fff); border-color: #F8CAC1; }
.card.conf { border-color: #D3D2F3; background: linear-gradient(180deg, #F6F5FF, #fff); }
.login { background: var(--vf-shadow); } .login .card h1 { text-transform: uppercase; font-weight: 400; color: var(--vf-shadow); }
button.sf { border: 0; text-align: left; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; } button.sf:not(.cur):hover { background: var(--vf-blush); color: var(--vf-night); } button.sf.cur { cursor: default; } button.sf.locked { cursor: not-allowed; opacity: .6; }
.inv-pill { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; } .inv-pill b { color: var(--vf-orange); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; } .chip.on { background: var(--vf-shadow); color: #fff; border-color: var(--vf-shadow); }
.appr-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin: 8px 0; } .appr-box.te.keuren, .appr-box[class*="te keuren"] { background: var(--warn-soft); } .appr-box.goedgekeurd { background: #f7fbf8; } .appr-box.afgekeurd { background: #FFE7DE; }
.inv-pill.ok b { color: var(--ok); } .inv-pill.mid b { color: var(--warn); } .inv-pill.low b { color: #C2410C; } .inv-pill { margin-right: 4px; }
.cs-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .cs-head h2 { flex: 1; margin: 0; } .cs-head select { width: auto; }
.cs-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; } .cs-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px; } .cs-table td { padding: 2px 3px; } .cs-table input { padding: 5px 7px; font-size: 13px; }
.cs-form h3 { margin: 16px 0 6px; }
.cs-table { table-layout: fixed; } .cs-table th:last-child, .cs-table td:last-child { width: 36px; } .modal { max-height: calc(100vh - 40px); overflow-y: auto; }

/* ---- Account management (Conquering Castles) ---- */
.am-tabs{margin-bottom:14px}
.am-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#d5d5d5;vertical-align:middle}
.am-dot.groen{background:#2d7a48}.am-dot.oranje{background:#d08a1a}.am-dot.rood{background:#c0392b}.am-dot.nieuw{background:transparent;border:1.5px solid #9aa0a6}
.am-pill{display:inline-block;font-size:11.5px;font-weight:600;padding:1px 8px;border-radius:99px;background:#eee;color:#555;white-space:nowrap}
.am-pill.groen{background:#e1f1e6;color:#2d7a48}.am-pill.oranje{background:#f8ecd6;color:#a86d12}.am-pill.rood{background:#f7e0dd;color:#b0352d}
.am-task{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:10px;align-items:start;padding:8px 4px;border-bottom:1px solid var(--line,#e5e5e5)}
.am-task:last-child{border-bottom:0}.am-task .t{cursor:pointer;min-width:0}.am-task input{margin-top:3px;width:16px;height:16px}
.am-task.overdue .num{font-weight:600}
.am-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:7px 2px;border-bottom:1px solid var(--line,#eee)}.am-row:last-child{border-bottom:0}
.am-row.click,.am-hist{cursor:default}.am-row.click{cursor:pointer}.am-row.click:hover{background:rgba(0,0,0,.03)}
.am-hist{padding:6px 0;border-bottom:1px solid var(--line,#eee)}
.am-notes{white-space:pre-wrap;font-size:13px;margin-top:6px;max-height:320px;overflow:auto}
.am-grp{margin-bottom:12px;background:var(--card,#fff);border:1px solid var(--line,#e5e5e5);border-radius:8px;padding:8px 12px}
.am-grp summary{cursor:pointer;font-weight:600;padding:4px 0}
.am-kanban{display:grid;grid-template-columns:repeat(5,minmax(190px,1fr));gap:10px;overflow-x:auto}
.am-col{background:var(--card,#fff);border:1px solid var(--line,#e5e5e5);border-radius:8px;padding:8px;min-height:120px}.am-col.over{outline:2px dashed var(--brand)}
.am-col h4{margin:0 0 8px;display:flex;justify-content:space-between;font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.am-card{border:1px solid var(--line,#e5e5e5);border-radius:6px;padding:7px 9px;margin-bottom:7px;cursor:pointer;background:#fffdfb}.am-card:hover{border-color:var(--brand)}
.am-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;background:#eee;margin:10px 0}.am-bar span{display:block;height:100%}
.am-hook{font-size:12.5px;background:#fbf2e3;border-radius:6px;padding:5px 8px;margin-top:4px}
.am-chips{display:flex;flex-wrap:wrap;gap:6px}.am-chips label{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line,#ddd);border-radius:99px;padding:3px 10px;font-size:12.5px;cursor:pointer}
.am-chips label.on{background:var(--brand);color:#fff;border-color:var(--brand)}.am-chips input{display:none}
.am-pmnote{border-left:3px solid var(--brand);padding:4px 10px;margin:6px 0;font-size:13px}
.am-add{display:flex;gap:6px;margin:8px 0}.am-add input{flex:1}
.am-ag{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;padding:7px 0;border-bottom:1px solid var(--line,#eee)}.am-ag.done{opacity:.6}
.am-agn{width:100%;margin-top:4px;min-height:30px;font-size:12.5px;border:1px solid transparent;background:rgba(0,0,0,.03);border-radius:6px;padding:4px 7px}
.am-agn:focus{background:#fff;border-color:var(--brand)}.am-ord{display:flex;flex-direction:column;gap:2px}
.am-matrix td,.am-matrix th{text-align:center}.am-matrix td:first-child,.am-matrix th:first-child{text-align:left}
.am-matrix tr.overlap td:first-child{color:#a86d12;font-weight:600}.am-cell{display:inline-block;min-width:20px;padding:1px 6px;border-radius:4px;background:#fde6da;color:var(--brand)}
@media (max-width:700px){.am-kanban{grid-template-columns:repeat(5,80vw)}}
.tabs a { padding: 9px 12px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
.tabs a.active { color: var(--vf-shadow); box-shadow: inset 0 -2px 0 var(--vf-orange); font-weight: 600; }
.am-tabs { overflow-x: auto; flex-wrap: nowrap; }

.am-sig{padding:8px 0;border-bottom:1px solid var(--line,#eee)}.am-sig:last-child{border-bottom:0}.am-sig.seen{opacity:.65}.am-sig .btn{margin-top:4px}

/* ================= Notities (Notion-stijl) ================= */
.notes3 { display: grid; grid-template-columns: 260px 1fr; gap: 0; margin: -24px -32px -60px; min-height: calc(100vh - 0px); }
@media (max-width: 1000px) { .notes3 { grid-template-columns: 1fr; margin: 0; } .tree { position: static !important; height: auto !important; border-right: 0 !important; } }
.tree { background: #fbfbfa; border-right: 1px solid var(--line); padding: 14px 8px; position: sticky; top: 0; height: 100vh; overflow: auto; font-size: 13.5px; }
.tree input[type=search] { width: 100%; padding: 6px 9px; font-size: 13px; }
.tr-h { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 12px 8px 4px; border-radius: 6px; }
.tr-h.drop { background: var(--accent-soft); }
.tr-row { display: flex; align-items: center; gap: 2px; border-radius: 6px; padding: 2px 6px; min-height: 28px; color: #37352f; text-decoration: none; }
.tr-row:hover { background: #efefed; } .tr-row.on { background: #e9e8e5; font-weight: 600; } .tr-row.drop { box-shadow: inset 0 0 0 2px var(--accent); }
.tr-link { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; color: inherit; padding: 3px 2px; }
.tr-tog { width: 20px; height: 20px; border: 0; background: none; color: #9a9aa3; cursor: pointer; border-radius: 4px; font-size: 11px; padding: 0; flex: none; }
.tr-tog:hover { background: #e3e2df; } .tr-tog.none { cursor: default; } .tr-tog.none:hover { background: none; }
.tr-add { visibility: hidden; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 4px; width: 22px; height: 22px; padding: 0; flex: none; }
.tr-row:hover .tr-add { visibility: visible; } .tr-add:hover { background: #e3e2df; color: var(--ink); }
.notes3-main { padding: 22px 40px 80px; min-width: 0; }
.recent { display: grid; gap: 2px; } .recent-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; text-decoration: none; } .recent-row:hover { background: #f6f6f3; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.tpl { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 16px 12px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 6px; }
.tpl:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(0,0,0,.05); } .tpl-ic { font-size: 22px; }
.pick-list { max-height: 50vh; overflow: auto; margin-top: 8px; display: grid; gap: 2px; }
.pick-row { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; } .pick-row:hover { background: #f3f2ef; }

.np { max-width: 900px; margin: 0 auto; } .np.with-side { max-width: 1240px; } .np.compact { max-width: none; }
.np-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; flex-wrap: wrap; }
.np-crumbs { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; } .np-crumbs a { text-decoration: none; } .np-crumbs a:hover { text-decoration: underline; }
.np-tools { display: flex; align-items: center; gap: 4px; } #np-save { margin: 0 6px; }
.np-presence { display: inline-flex; margin-right: 6px; } .np-presence .av { margin-left: -6px; border: 2px solid #fff; }
.av { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; flex: none; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 5px; vertical-align: 1px; } .live-dot.off { background: var(--warn); }
.np-body { display: grid; grid-template-columns: 1fr; gap: 24px; } .np.with-side .np-body { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 1100px) { .np.with-side .np-body { grid-template-columns: 1fr; } }
.np-head { display: flex; flex-direction: column; align-items: flex-start; margin-top: 28px; } .np.compact .np-head { margin-top: 8px; }
.np-icon { border: 0; background: none; font-size: 44px; line-height: 1.1; cursor: pointer; border-radius: 8px; padding: 2px 4px; margin-left: -4px; }
.np-icon:hover { background: #f1f0ed; } .np-icon.empty { font-size: 13px; color: var(--muted); padding: 4px 6px; opacity: 0; } .np:hover .np-icon.empty { opacity: 1; }
.np-title { border: 0 !important; outline: none !important; resize: none; overflow: hidden; width: 100%; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; padding: 4px 0 !important; background: none; box-shadow: none !important; }
.np.compact .np-title { font-size: 26px; }
.np-meta { margin: 4px 0 14px; }
.np-children { margin-top: 10px; } .np-child { display: block; padding: 6px 8px; border-radius: 6px; text-decoration: none; border-bottom: 1px solid var(--line); } .np-child:hover { background: #f6f6f3; }
.np-menu, .emoji-pop { position: absolute; z-index: 300; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; }
.np-menu { width: 240px; display: grid; } .np-menu button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; cursor: pointer; } .np-menu button:hover { background: #f3f2ef; } .np-menu .danger { color: #c92a2a; }
.emoji-pop { display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; } .emoji-pop button { border: 0; background: none; font-size: 20px; width: 34px; height: 34px; border-radius: 6px; cursor: pointer; } .emoji-pop button:hover { background: #f1f0ed; } .emoji-none { font-size: 13px !important; color: var(--muted); }
.hist { display: grid; grid-template-columns: 200px 1fr; gap: 14px; min-height: 50vh; } .hist-list { display: grid; align-content: start; gap: 2px; max-height: 60vh; overflow: auto; border-right: 1px solid var(--line); padding-right: 8px; }
.hist-list button { text-align: left; border: 0; background: none; padding: 8px; border-radius: 6px; cursor: pointer; } .hist-list button:hover, .hist-list button.on { background: #f1f0ed; }
.hist-view { max-height: 60vh; overflow: auto; }
.np-side { border-left: 1px solid var(--line); padding-left: 16px; position: sticky; top: 12px; align-self: start; max-height: calc(100vh - 24px); overflow: auto; }
.cm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cm-thread { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; background: #fff; } .cm-thread.focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); } .cm-thread.resolved { opacity: .7; }
.cm-quote { border-left: 3px solid #f0c36d; padding: 2px 8px; color: var(--muted); font-size: 12.5px; margin-bottom: 8px; cursor: pointer; }
.cm { display: flex; gap: 8px; margin-bottom: 8px; } .cm-body { white-space: pre-wrap; margin-top: 2px; }
.cm-reply { display: flex; gap: 4px; align-items: flex-end; } .cm-reply textarea { flex: 1; min-height: 32px; resize: vertical; }
.cm-thread.new textarea { width: 100%; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* --- editor --- */
.tt-wrap { position: relative; }
.tt-editor { outline: none; min-height: 300px; font-size: 15.5px; line-height: 1.65; color: #2b2b30; padding: 2px 0 60px 0; }
.np.compact .tt-editor { min-height: 360px; }
.tt-editor > * + * { margin-top: 3px; }
.tt-editor p { margin: 2px 0; } .tt-editor h1 { font-size: 28px; margin: 26px 0 4px; letter-spacing: -0.01em; } .tt-editor h2 { font-size: 22px; margin: 20px 0 2px; } .tt-editor h3 { font-size: 18px; margin: 16px 0 2px; }
.tt-editor a { color: #1c64c8; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tt-editor blockquote { border-left: 3px solid var(--ink); margin: 6px 0; padding: 2px 14px; }
.tt-editor code { background: #f1f0ed; border-radius: 4px; padding: 1px 5px; font-size: .9em; color: #c0392b; }
.tt-editor pre { background: #f7f6f3; border-radius: 8px; padding: 12px 14px; overflow: auto; } .tt-editor pre code { background: none; color: inherit; padding: 0; }
.tt-editor hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.tt-editor mark { background: #fff3bf; border-radius: 3px; padding: 0 2px; }
.tt-editor ul, .tt-editor ol { padding-left: 24px; margin: 2px 0; }
.tt-editor ul[data-type="taskList"] { list-style: none; padding-left: 2px; }
.tt-editor ul[data-type="taskList"] li { display: flex; gap: 8px; align-items: flex-start; }
.tt-editor ul[data-type="taskList"] li > label { flex: none; margin-top: 4px; user-select: none; }
.tt-editor ul[data-type="taskList"] li > label input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.tt-editor ul[data-type="taskList"] li > div { flex: 1; min-width: 0; }
.tt-editor ul[data-type="taskList"] li[data-checked="true"] > div { color: var(--muted); text-decoration: line-through; }
.tt-editor img { max-width: 100%; border-radius: 8px; display: block; margin: 8px 0; } .tt-editor img.ProseMirror-selectednode { outline: 3px solid var(--accent-soft); }
.tt-editor table { border-collapse: collapse; width: 100%; margin: 10px 0; table-layout: fixed; overflow: hidden; }
.tt-editor td, .tt-editor th { border: 1px solid var(--line); padding: 6px 9px; vertical-align: top; position: relative; min-width: 60px; }
.tt-editor th { background: #f7f6f3; font-weight: 600; text-align: left; }
.tt-editor .selectedCell::after { content: ''; position: absolute; inset: 0; background: rgba(251, 90, 23, .08); pointer-events: none; }
.tt-editor .column-resize-handle { position: absolute; right: -2px; top: 0; bottom: 0; width: 4px; background: var(--accent); pointer-events: none; }
.tt-editor.resize-cursor { cursor: col-resize; }
.tt-editor .tableWrapper { overflow-x: auto; }
.tt-callout { display: flex; gap: 10px; background: #f7f6f3; border-radius: 8px; padding: 12px 14px; margin: 8px 0; }
.tt-callout[data-callout="⚠️"], .tt-callout[data-callout="❗"] { background: #fff4e6; } .tt-callout[data-callout="✅"] { background: #ebfbee; } .tt-callout[data-callout="ℹ️"] { background: #e7f5ff; }
.tt-callout-ic { border: 0; background: none; font-size: 18px; cursor: pointer; padding: 0; line-height: 1.5; height: fit-content; border-radius: 4px; } .tt-callout-ic:hover { background: rgba(0,0,0,.06); }
.tt-callout-body { flex: 1; min-width: 0; } .tt-callout-body > p:first-child { margin-top: 0; }
.tt-details { display: flex; gap: 4px; margin: 4px 0; }
.tt-details > button { border: 0; background: none; cursor: pointer; width: 22px; height: 24px; border-radius: 4px; flex: none; padding: 0; display: flex; align-items: center; justify-content: center; }
.tt-details > button::before { content: '▸'; color: #6b6b73; transition: transform .15s; display: inline-block; }
.tt-details.is-open > button::before { transform: rotate(90deg); }
.tt-details > div { flex: 1; min-width: 0; } .tt-details summary { font-weight: 600; list-style: none; } .tt-details summary::-webkit-details-marker { display: none; }
.tt-details:not(.is-open) > div > [data-type="detailsContent"] { display: none; }
.tt-file { display: inline-flex !important; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 4px 0; text-decoration: none !important; color: var(--ink) !important; background: #fff; }
.tt-file:hover { background: #f7f6f3; }
.tt-pagelink { text-decoration: none !important; color: var(--ink) !important; border-bottom: 1px solid #c9c8c4; font-weight: 500; padding: 0 1px; }
.tt-pagelink:hover { background: #f1f0ed; }
.tt-mention { background: #fde8dc; color: #b8400d; border-radius: 4px; padding: 0 3px; font-weight: 500; white-space: nowrap; }
.tt-comment { background: #fff3bf; border-bottom: 2px solid #f0c36d; cursor: pointer; }
.tt-editor p.is-empty::before, .tt-editor h1.is-empty::before, .tt-editor h2.is-empty::before, .tt-editor h3.is-empty::before { content: attr(data-placeholder); color: #b4b4b0; float: left; height: 0; pointer-events: none; }
.tt-editor:not(:focus) p.is-empty:not(:only-child)::before { content: none; }
.tt-caret { position: relative; margin: 0 -1px; border-left: 2px solid; border-right: 0; word-break: normal; pointer-events: none; }
.tt-caret-label { position: absolute; top: -1.35em; left: -2px; font-size: 11px; font-weight: 600; color: #fff; padding: 1px 5px; border-radius: 4px 4px 4px 0; white-space: nowrap; user-select: none; line-height: 1.3; }
.tt-bubble { display: flex; gap: 2px; background: #1f1f23; border-radius: 8px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 200; visibility: hidden; }
.tt-bubble[style*="visibility: visible"], .tt-bubble[data-show] { visibility: visible; }
.tt-bubble button { border: 0; background: none; color: #f1f1f3; min-width: 30px; height: 28px; border-radius: 5px; cursor: pointer; font-size: 13.5px; padding: 0 6px; } .tt-bubble button:hover { background: #3a3a40; }
.tt-drag { cursor: grab; color: #b4b4b0; font-size: 13px; letter-spacing: -3px; padding: 2px 4px; border-radius: 4px; user-select: none; line-height: 1.4; } .tt-drag:hover { background: #efefed; color: #6b6b73; }
.tt-menu { position: fixed; z-index: 400; width: 290px; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; }
.tt-menu-item { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.tt-menu-item.on, .tt-menu-item:hover { background: #f1f0ed; } .tt-menu-item small { display: block; color: var(--muted); font-size: 11.5px; }
.tt-menu-ic { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; background: #fff; }
.tt-menu-mention .tt-menu-ic { border-radius: 50%; background: #fde8dc; color: #b8400d; border: 0; }
.tt-menu-empty { padding: 8px; color: var(--muted); font-size: 13px; }
.ProseMirror-gapcursor:after { border-top-color: var(--ink); }
.np-private { background: #f3f0ff; color: #5f3dc4; border-radius: 8px; padding: 6px 10px; margin: 6px 0; display: inline-block; }
.tr-h-priv { display: flex; align-items: center; justify-content: space-between; }
.tr-add-h { visibility: visible !important; font-size: 13px; }

/* ================= Rustiger, duidelijker layout ================= */
:root { --bg: #f4f2ef; --line: #e2dfda; --shadow-card: 0 1px 2px rgba(42,49,61,.04), 0 4px 14px rgba(42,49,61,.04); }
.card { border-color: var(--line); box-shadow: var(--shadow-card); border-radius: 12px; padding: 20px 22px; }
main > .card + .card, main > .grid + .card, main > .card + .grid, main > .grid + .grid, #ins > .card + .card, #ins > .grid + .card, #ins > .card + .grid { margin-top: 18px; }
.card h2 { font-size: 16px; margin-bottom: 14px; }
.grid { gap: 18px; }
.kpis { margin-bottom: 18px; } .kpi { padding: 16px 18px; } .kpi.neg .value { color: #c92a2a; } .kpi.warn { box-shadow: inset 3px 0 0 var(--brand), var(--shadow-card); }
.page-head { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs { margin-bottom: 18px; } .tabs a.on { color: var(--vf-shadow); box-shadow: inset 0 -2px 0 var(--vf-orange); font-weight: 600; }
.tabs.big a { padding: 11px 16px; font-size: 12.5px; }
.blk { display: flex; flex-direction: column; } .blk-grid { margin-bottom: 18px; align-items: stretch; }
.blk-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: -2px 0 14px; padding-bottom: 10px; border-bottom: 1px solid #efece8; }
.blk-h h2 { margin: 0 !important; }
.sub-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 6px; }
table.list.compact td, table.list.compact th { padding: 7px 8px; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: #faf8f5; }
.gr { font-weight: 600; font-size: 12.5px; white-space: nowrap; } .gr.up { color: #2f9e44; } .gr.down { color: #c92a2a; }
.mini-bar { display: inline-block; width: 60px; height: 6px; background: #efece8; border-radius: 3px; vertical-align: middle; margin-left: 6px; overflow: hidden; } .mini-bar i { display: block; height: 100%; border-radius: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { display: inline-block; background: #f1efeb; border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.chip.warn { background: #fff0e6; color: #b8400d; } .chip.ok { background: #ebfbee; color: #2b8a3e; }
.warn-txt { color: #c2410c; }
/* inzicht-strip op Home */
.ins-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 20px; }
.ins-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 3px; transition: border-color .15s, transform .15s; }
.ins-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.ins-card small { text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; color: var(--muted); } .ins-card b { font-size: 20px; letter-spacing: -0.02em; } .ins-card span { font-size: 12.5px; color: var(--muted); }
/* live */
.funnel { display: grid; gap: 8px; } .fn-row { display: grid; grid-template-columns: 130px 1fr 130px; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.fn-l { font-size: 13px; } .fn-bar { height: 22px; background: #f3f1ed; border-radius: 6px; overflow: hidden; } .fn-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--vf-orange), #ff8a4d); border-radius: 6px; }
.fn-v { text-align: right; } .fn-v small { display: block; color: var(--muted); font-size: 11.5px; }
.rows { display: grid; } .rows .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 4px; border-bottom: 1px solid #f0ede9; text-decoration: none; color: var(--ink); } .rows .row:hover { background: #faf8f5; }
.rows .row small { display: block; color: var(--muted); font-size: 12px; } .rows .row .when { white-space: nowrap; font-size: 13px; } .rows .row.late .when { color: #c92a2a; font-weight: 600; }
.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tmc { border: 1px solid #ece9e4; border-radius: 10px; padding: 12px 14px; background: #fcfbf9; } .tmc.on { border-color: #b2f2bb; background: #f4fdf5; }
.tmc-h { display: flex; gap: 10px; align-items: center; } .tmc-h small { display: block; color: var(--muted); font-size: 12px; }
.tmc-now { font-size: 13px; margin: 8px 0; min-height: 18px; } .tmc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 12px; color: var(--muted); } .tmc-stats b { color: var(--ink); }
.feed { display: grid; } .fd { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #f0ede9; text-decoration: none; color: var(--ink); font-size: 13.5px; align-items: center; }
.fd-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f1efeb; border-radius: 4px; padding: 2px 6px; text-align: center; }
/* finance */
.age { display: flex; justify-content: space-between; }
/* hero clients */
.hcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.hc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-card); border-left: 4px solid #2f9e44; }
.hc.oranje { border-left-color: #f08c00; } .hc.rood { border-left-color: #e03131; }
.hc-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .hc-h a { text-decoration: none; color: var(--ink); font-size: 15px; } .hc-act { margin-left: auto; display: flex; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2f9e44; display: inline-block; } .dot.oranje { background: #f08c00; } .dot.rood { background: #e03131; }
.hc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; margin: 12px 0 10px; } .hc-stats small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.hc-todo { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
/* klant: omzet per type + contactpersonen */
.type-split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: 12px; background: #f1efeb; } .type-split i { display: block; height: 100%; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.people { display: grid; gap: 10px; } .pp { border: 1px solid #ece9e4; border-radius: 10px; padding: 10px 12px; background: #fcfbf9; }
.pp-h { display: flex; align-items: center; gap: 10px; } .pp-n { flex: 1; min-width: 0; } .pp-n small, .pp-v small { display: block; color: var(--muted); font-size: 12px; } .pp-v { text-align: right; }
.rank { width: 24px; height: 24px; border-radius: 50%; background: var(--vf-shadow); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pp-types { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.psum { background: #fff; border: 1px dashed #ddd8d0; border-radius: 8px; padding: 7px 10px; margin-top: 8px; font-size: 13px; max-width: 640px; }
.psum-a { display: flex; gap: 12px; margin-top: 4px; }
.person-head .psum { margin-top: 10px; }
/* persoonlijke kolommen */
.dt-colpop { position: absolute; z-index: 300; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 10px; }
.dt-colpop-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; } .dt-colpop-l { max-height: 50vh; overflow: auto; }
.dt-ci { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; border-radius: 6px; font-size: 13px; } .dt-ci:hover { background: #f6f4f1; } .dt-ci label { display: flex; gap: 8px; align-items: center; cursor: pointer; } .dt-ci input { width: auto; }
.dt-ci button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 4px; } .dt-ci button:disabled { opacity: .3; cursor: default; }
.dt-colpop-s { margin: 10px 6px 4px; text-transform: uppercase; letter-spacing: .05em; font-size: 10.5px; }
.dt-colpop-f { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid #efece8; }
/* instellingen-tabs */
.set-pane { display: grid; gap: 18px; } .set-pane > .card { margin: 0 !important; } .set-pane form.form-grid, .set-pane .form-grid { gap: 12px 16px; }
.set-pane .card h2 { padding-bottom: 10px; border-bottom: 1px solid #efece8; }
.set-pane[hidden] { display: none !important; }
.blk-grid > *, .blk { min-width: 0; } .blk table.list { width: 100%; } .blk .table-wrap, .blk > table { overflow-x: auto; }
#oy { width: auto; min-width: 110px; }
.tag.tier { background: #f1efeb; color: var(--vf-shadow); font-size: 11px; vertical-align: middle; } .tag.tier.t1 { background: #fff0e6; color: #b8400d; }
.hero-sec { margin-bottom: 26px; } .hero-sec-h h2 { font-size: 17px; margin: 0 0 12px; } .hc-stats small + small { display: block; }

/* ===== v17 ===== */
/* Statusbalk project: verloop in de Videofactory-kleuren — zacht roze (blush) → ember → oranje; huidige fase licht op */
.sflow { gap: 3px; }
button.sf, .sf { background: #FBEDE9; color: #9C8E8A; transition: background .15s, transform .15s; }
.sf.done { color: var(--vf-night); }
.sflow .sf.done:nth-child(1) { background: #FBE3DD; } .sflow .sf.done:nth-child(2) { background: #F8CAC1; }
.sflow .sf.done:nth-child(3) { background: #FBB4A8; } .sflow .sf.done:nth-child(4) { background: #FF968D; }
.sflow .sf.done:nth-child(5) { background: #FD7F5E; color: #fff; } .sflow .sf.done:nth-child(6) { background: #FB6A35; color: #fff; }
.sf.done small { opacity: .75; }
.sf.cur, button.sf.cur { background: linear-gradient(90deg, #FF968D 0%, #FB5A17 100%); color: #fff; box-shadow: 0 2px 10px rgba(251, 90, 23, .28); }
.sf.cur small { opacity: .9; }
button.sf:not(.cur):hover { background: var(--vf-blush); color: var(--vf-night); }
.sflow .sf.cur:nth-child(7), .sflow .sf.done:nth-child(7) { background: linear-gradient(90deg, #FB5A17, #D9481A); color: #fff; }

/* signalen (PO, deliverables) */
.sig { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.sig-bad { background: #FFE3DD; color: #B3261E; } .sig-warn { background: #FFF1D6; color: #8A5300; } .sig-ok { background: #E3F4EA; color: #1E7A44; }
.sig-chance { background: #EDE9FF; color: #3B2FB0; } .sig-neutral { background: #EFEDEA; color: #5E636F; }
.callout.chance { background: #EDE9FF; color: #2D2490; }

/* PO-blok in het project */
.po-budget, .po-wait, .po-docs { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; background: #fff; }
.po-budget-h, .po-docs-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.po-docs-h .small { flex-basis: 100%; }
.po-nums { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; } .po-nums b { display: block; font-size: 15px; }
.pobar { height: 10px; border-radius: 99px; background: #F1EFEB; overflow: hidden; display: flex; }
.pobar i { display: block; height: 100%; } .pobar .inv { background: var(--vf-orange); }
.pobar .plan { background: repeating-linear-gradient(45deg, #FF968D, #FF968D 4px, #F8CAC1 4px, #F8CAC1 8px); }
.pobar.over { box-shadow: 0 0 0 2px #E03131 inset; }
.pobar-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; color: var(--muted); } .pobar-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.pobar-legend .lg.inv { background: var(--vf-orange); } .pobar-legend .lg.plan { background: #FF968D; }
.po-wait { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; } .po-wait .f input { width: 160px; } .po-wait-info { flex: 1; min-width: 180px; padding-bottom: 6px; }
.po-hist { margin: 6px 2px 0; line-height: 1.6; } .po-doclist { margin-top: 8px; } .po-docs label.btn { cursor: pointer; }

/* Deliverables */
.dl-table input[type=date] { width: 140px; padding: 3px 6px; } .dl-table tr.row-done td { opacity: .55; } .dl-table tr.row-done b { text-decoration: line-through; }
.dl-deps { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-top: 4px; }
.empty-state { text-align: center; padding: 30px 10px; }
.gantt { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 26px 10px 8px; background: #fff; overflow: hidden; }
.gantt-head { position: absolute; left: 230px; right: 10px; top: 6px; height: 16px; } .gantt-head span { position: absolute; font-size: 10.5px; color: var(--muted); transform: translateX(-2px); border-left: 1px solid #EEE; padding-left: 3px; }
.gantt-today { position: absolute; top: 22px; bottom: 6px; width: 2px; background: var(--vf-orange); opacity: .6; z-index: 1; margin-left: 10px; }
.gantt-row { display: flex; align-items: center; min-height: 34px; border-top: 1px solid #F3F1EE; }
.gantt-label { width: 220px; flex: none; padding-right: 10px; overflow: hidden; } .gantt-label b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gantt-label small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.gantt-track { position: relative; flex: 1; height: 22px; }
.gantt-bar { position: absolute; top: 2px; height: 18px; border-radius: 6px; background: #F8CAC1; display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; min-width: 8px; }
.gantt-bar span { font-size: 10.5px; font-weight: 600; color: var(--vf-night); white-space: nowrap; }
.gantt-bar.st-bad { background: #FF968D; } .gantt-bar.st-warn { background: #FFD8A8; } .gantt-bar.st-ok { background: #CDEBD8; } .gantt-bar.st-neutral { background: #F8CAC1; }

/* Projecten: Mijn / Alle */
.proj-scope { align-items: center; }
.seg { display: inline-flex; background: #F1EFEB; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button span { font-weight: 400; opacity: .7; margin-left: 4px; } .seg button.on { background: #fff; color: var(--vf-night); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
#pgrp { margin: 10px 0; }

/* Overige rekeningen */
.other-acc .acc-in { width: 130px; text-align: right; padding: 4px 6px; } .other-acc .ccy { color: var(--muted); } .other-acc tr.tot td { border-top: 2px solid var(--line); }
.tag.manual { background: #FFF1D6; color: #8A5300; }

/* uren: werksoort uit de offerte */
.ws-auto { padding: 7px 0; }

/* ===== v18 ===== */
/* statusbalk groter */
.sflow { gap: 4px; margin: 6px 0 14px; }
button.sf, .sf { padding: 14px 18px 12px !important; font-size: 15px !important; min-height: 62px; }
.sf b, .sf strong { font-size: 15px; } .sf small { font-size: 11.5px !important; margin-top: 3px; display: block; }

/* procesflow */
.proc-card { margin-bottom: 16px; padding: 16px 18px; }
.proc-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; } .proc-h h3 { margin: 0; }
.proc-steps { display: flex; gap: 4px; margin: 12px 0; }
.proc-step { flex: 1; padding: 8px 10px; border-radius: 8px; background: #F3F1EE; color: #8a8f99; min-width: 0; }
.proc-step b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .proc-step small { font-size: 11px; }
.proc-step.done { background: #F8CAC1; color: var(--vf-night); } .proc-step.current { background: linear-gradient(90deg, #FF968D, #FB5A17); color: #fff; box-shadow: 0 2px 10px rgba(251,90,23,.25); }
.proc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .proc-cols h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.proc-item { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 13.5px; border-bottom: 1px dashed #EEE; cursor: pointer; }
.proc-item.done span { color: #8a8f99; text-decoration: line-through; } .proc-item input:disabled { opacity: .7; }
@media (max-width: 800px) { .proc-cols { grid-template-columns: 1fr; } .proc-steps { flex-wrap: wrap; } .proc-step { flex-basis: 30%; } }
.proc-home { margin-bottom: 16px; }

/* PO compact */
.po2 { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.po2-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 10px; align-items: end; } .po2-row .f { margin: 0; }
.po2-act { display: flex; gap: 6px; padding-bottom: 2px; flex-wrap: wrap; }
.po2-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; } .po2-hist summary { cursor: pointer; color: var(--muted); } .po2-hist div { color: var(--muted); }
.po2-tabs { display: flex; gap: 4px; margin: 10px 0 0; border-bottom: 1px solid var(--line); }
.po2-tabs button { border: 0; background: none; padding: 7px 12px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.po2-tabs button.on { color: var(--vf-night); border-bottom-color: var(--vf-orange); font-weight: 600; }
.po2-body { padding: 10px 2px 2px; } .po-nums small { display: block; font-size: 11px; }
@media (max-width: 900px) { .po2-row { grid-template-columns: 1fr 1fr; } }

/* taken */
.tasks .ttl { color: inherit; text-decoration: none; } .tasks .subrow td { background: #FBFAF8; font-size: 13px; padding-top: 4px; padding-bottom: 4px; }
.tasks .subrow td:nth-child(2) { padding-left: 28px; } .tasks .tsel { padding: 3px 6px; font-size: 12.5px; max-width: 150px; }
.subprog { display: inline-block; width: 60px; height: 6px; background: #EEE; border-radius: 99px; vertical-align: middle; overflow: hidden; } .subprog i { display: block; height: 100%; background: var(--vf-orange); }
.addsub { display: flex; gap: 6px; } .addsub input { flex: 1; padding: 4px 8px; }
.tag.klant { background: #EDE9FF; color: #3B2FB0; }

/* Dropbox */
.crumbs { margin: 0 0 8px; font-size: 13px; } .crumbs a { text-decoration: none; }

/* uren 4 weken */
.u4w { display: flex; gap: 24px; align-items: stretch; padding: 14px 18px; margin-bottom: 14px; flex-wrap: wrap; }
.u4w-tot { display: flex; flex-direction: column; gap: 4px; min-width: 170px; } .u4w-tot b { font-size: 28px; line-height: 1.1; } .u4w-tot .mbadge { align-self: flex-start; }
.u4w-bars { display: flex; gap: 18px; flex: 1; align-items: flex-end; min-width: 280px; }
.u4w-w { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; flex: 1; } .u4w-w.cur b { color: var(--vf-orange); }
.u4w-col { position: relative; width: 34px; height: 90px; display: flex; flex-direction: column-reverse; background: #F3F1EE; border-radius: 6px; overflow: hidden; }
.u4w-col .b { background: var(--vf-orange); display: block; } .u4w-col .nb { background: #F8CAC1; display: block; }
.u4w-col em { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed var(--vf-night); opacity: .35; }
.u4w-w small { color: var(--muted); } .ok-txt { color: #1E7A44; }
.u4w-leg { flex-basis: 100%; display: flex; gap: 14px; } .u4w-leg .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; } .u4w-leg .lg.b { background: var(--vf-orange); } .u4w-leg .lg.nb { background: #F8CAC1; }

/* cashflow */
.cf-sum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 8px; } .cf-sum div { background: #FBFAF8; border-radius: 8px; padding: 8px 10px; } .cf-sum small { display: block; color: var(--muted); font-size: 11px; } .cf-sum b { font-size: 15px; }
.cf-svg { width: 100%; height: auto; } .cf-grid { stroke: #EEE; } .cf-zero { stroke: #BBB; } .cf-ax { font-size: 10.5px; fill: #8a8f99; }
.cf-in { fill: #2f9e44; opacity: .8; } .cf-out { fill: #e03131; opacity: .75; } .cf-line { fill: none; stroke: var(--vf-night); stroke-width: 2.5; } .cf-dot { fill: #fff; stroke: var(--vf-night); stroke-width: 2; } .cf-dot.neg { stroke: #e03131; fill: #FFE3DD; }
.legend .lg.line { width: 16px; height: 0; border-top: 3px solid var(--vf-night); border-radius: 0; background: none; }
@media (max-width: 700px) { .cf-sum { grid-template-columns: repeat(2, 1fr); } }
tr[data-oi] { cursor: pointer; } tr[data-oi]:hover td { background: #FBF3F0; }

/* home: notities als links */
.link-card.add { border: 1px dashed var(--line); background: none; cursor: pointer; font: inherit; color: var(--muted); }
.np-list { max-height: 260px; overflow: auto; display: flex; flex-direction: column; margin: 8px 0; } .np-list a { padding: 6px 8px; border-radius: 6px; text-decoration: none; color: inherit; } .np-list a.on, .np-list a:hover { background: #FBEDE9; }

/* marketing */
.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; } .tpl { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; } .tpl small { color: var(--muted); } .tpl input { width: auto; }
.mail-prev { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 10px; background: #F6F4F1; }
.pg-frame { border: 1px solid var(--line); border-radius: 10px; padding: 14px; max-height: 360px; overflow: auto; background: #fff; }
.mono { font-family: ui-monospace, Menlo, monospace; }
.cf-area { fill: #FB5A17; opacity: .08; } .cf-val { font-size: 10px; fill: var(--vf-night); font-weight: 600; } .cf-val.in { fill: #2f9e44; } .cf-val.out { fill: #e03131; } .cf-dot.start { fill: var(--vf-orange); stroke: var(--vf-orange); } .cf-lbl { margin: 6px 0 0; }

/* ================= v19 ================= */
/* offerte: past zich aan het venster aan, facturatiekolom smaller, leverancierskolom vast (geen verspringen) */
.q-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; align-items: start; }
.q-main { min-width: 0; } .q-side { position: sticky; top: 12px; }
@media (max-width: 1250px) { .q-grid { grid-template-columns: minmax(0, 1fr); } .q-side { position: static; } }
.q-lines-wrap { overflow-x: auto; margin: 0 -4px; }
.quote-lines.v19 { min-width: 1120px; table-layout: fixed; width: 100%; }
.quote-lines.v19 .c-h { width: 22px; } .quote-lines.v19 .c-d { width: auto; } .quote-lines.v19 .c-n { width: 66px; } .quote-lines.v19 .c-u { width: 58px; } .quote-lines.v19 .c-p { width: 92px; }
.quote-lines.v19 .c-v { width: 64px; } .quote-lines.v19 .c-o { width: 36px; } .quote-lines.v19 .c-t { width: 92px; } .quote-lines.v19 .c-k { width: 86px; } .quote-lines.v19 .c-s { width: 170px; } .quote-lines.v19 .c-x { width: 30px; }
.quote-lines.v19 td { overflow: hidden; } .quote-lines.v19 td:nth-child(2) textarea { min-width: 0; width: 100%; }
.quote-lines.v19 input, .quote-lines.v19 select { width: 100%; min-width: 0; }
.prod-pick { width: min(420px, 100%); }
.back-btn { margin-bottom: 6px; font-weight: 600; }
.q-head h1 { margin-top: 4px; }
.save-state { min-width: 120px; text-align: right; } .ok-txt { color: var(--ok); }
.sup-btn { display: flex; flex-wrap: wrap; gap: 3px; width: 100%; min-height: 30px; text-align: left; background: transparent; border: 1px dashed transparent; border-radius: 6px; padding: 3px 4px; cursor: pointer; font-size: 12px; color: var(--ink); }
.sup-btn:hover { border-color: var(--line); background: var(--panel); } .sup-btn.need { color: #b26b00; border-color: #f3c27a; background: var(--warn-soft); } .sup-btn.muted { color: var(--muted); }
.sup-chip { display: block; max-width: 100%; background: #f1efeb; border-radius: 6px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-chip i { font-style: normal; color: var(--ok); } .sup-chip.over { background: var(--warn-soft); } .sup-chip.over i { color: var(--accent); }
.sup-search { position: relative; } .sup-list { position: absolute; z-index: 500; left: 0; top: calc(100% + 2px); width: max(100%, 280px); max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.16); }
.sup-tbl input { width: 100%; }
/* meetings te koppelen */
.ml-card { margin-bottom: 16px; border-left: 3px solid var(--brand); }
.ml-h { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; } .ml-h h3 { margin: 0; } .ml-h input { width: 280px; max-width: 100%; }
.ml-row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.3fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); align-items: center; }
.ml-s { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .ml-search { position: relative; } .ml-search input { width: 190px; }
@media (max-width: 800px) { .ml-row { grid-template-columns: 1fr; } }
/* procesflow: klikbare fases */
button.proc-step { border: 0; text-align: left; cursor: pointer; font: inherit; } button.proc-step:hover { outline: 2px solid rgba(251,90,23,.35); }
.proc-step.sel { outline: 2px solid var(--vf-night, #1D1D2C); outline-offset: 1px; }
.proc-sel { border-top: 1px solid var(--line); padding-top: 10px; } .proc-goal { margin-bottom: 8px; }
.proc-cols3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 18px; } .proc-cols3 h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .proc-cols3 h4 a { text-transform: none; letter-spacing: 0; float: right; }
@media (max-width: 1000px) { .proc-cols3 { grid-template-columns: 1fr; } }
.pd-row { display: flex; align-items: center; gap: 6px; padding: 3px 0; flex-wrap: wrap; } .pd-row.done .pd-t { text-decoration: line-through; color: var(--muted); } .pd-t { flex: 1; min-width: 120px; } .pd-row select { width: auto; font-size: 11px; padding: 2px 4px; }
.pd-add { display: flex; gap: 6px; margin-top: 6px; } .pd-add input[name=title] { flex: 1; min-width: 0; } .pd-add input[type=date] { width: 140px; }
.tag.mlr { background: #ede9ff; } .tag.mlr.ok { background: var(--ok-soft); } .tag.mlr.bad { background: var(--warn-soft); color: #b8400d; }
.mlr-btn.set { color: #211DC3; } .mlr-btn.ok { color: var(--ok); }
/* planning */
.cap-grid td.cap { cursor: pointer; text-align: right; position: relative; min-width: 82px; vertical-align: top; } .cap-grid td.cap:hover { outline: 2px solid var(--brand); outline-offset: -2px; }
.cap-grid td.cap b { font-size: 15px; } .cap-grid td.cap small { color: var(--muted); }
.cap-grid td.free { background: #fbfbfa; } .cap-grid td.ok { background: #eef8f1; } .cap-grid td.full { background: #fdf3df; } .cap-grid td.over { background: #fde4dc; }
.cap-bar { height: 4px; background: rgba(0,0,0,.06); border-radius: 3px; margin-top: 3px; } .cap-bar span { display: block; height: 100%; border-radius: 3px; background: var(--ok); } td.full .cap-bar span { background: #e0a100; } td.over .cap-bar span { background: var(--accent); }
.cap-grid i.abs, .cap-grid i.dl { font-style: normal; font-size: 11px; margin-left: 4px; color: #6b6b73; } .cap-grid i.dl { color: #211DC3; } .cap-grid small.lg { display: block; font-size: 10.5px; }
.cap-who { white-space: nowrap; }
/* organigram */
.orgchart, .orgchart ul { list-style: none; margin: 0; padding-left: 18px; } .orgchart { padding-left: 0; } .orgchart li { position: relative; padding: 3px 0; }
.orgchart ul li::before { content: ''; position: absolute; left: -12px; top: 0; bottom: 50%; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); width: 10px; }
.oc-node { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: var(--panel); } .oc-node small { display: block; color: var(--muted); font-size: 11.5px; }
.oc-node.r-beslisser { border-left: 3px solid var(--brand); } .oc-node.r-budgethouder { border-left: 3px solid #211DC3; } .oc-node.r-procurement { border-left: 3px solid #9AA0A6; } .oc-node.r-medical { border-left: 3px solid #1f8a4c; }
.org-row { padding: 6px 0; border-top: 1px solid var(--line); position: relative; } .org-row .btn { position: absolute; right: 0; top: 4px; }
/* dubbels */
.dup-pair { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); } .dup-why { grid-column: 1 / -1; }
.dup-a, .dup-b { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; } .dup-a a, .dup-b a { text-decoration: none; }
@media (max-width: 800px) { .dup-pair { grid-template-columns: 1fr; } }
/* home, herinneringen */
.v19-home { margin-bottom: 16px; } .home-alert { text-decoration: none; display: flex; flex-direction: column; gap: 4px; border-left: 3px solid var(--brand); }
.rem-row { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-top: 1px solid var(--line); } .rem-row a { flex: 1; } .rem-row.due a { font-weight: 700; color: var(--accent); }
/* inzicht */
.period-bar { margin-bottom: 12px; align-items: center; } .period-lbl { padding: 6px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.targets td.tg { min-width: 130px; vertical-align: top; } .targets td.tg.ok b { color: var(--ok); } .targets td.tg.behind b { color: var(--accent); } .targets tr.team-row td { background: #faf8f5; }
.diag { border-left: 3px solid var(--brand); margin-bottom: 16px; } .diag ol { padding-left: 18px; } .diag li { margin: 4px 0; }
.v19-empty { text-align: center; padding: 30px 20px; } .v19-empty .es-ico { font-size: 28px; color: var(--line); }
/* briefing */
.brief-ai { margin-bottom: 16px; } .brief-pts { font-size: 15px; line-height: 1.6; }
/* vimeo-feedback */
.vimeo-fb { margin-top: 18px; } .fb-row { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); align-items: center; } .fb-row .tc { font-family: ui-monospace, monospace; text-decoration: none; }
/* wat is er nieuw */
.wn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; } .wn p { margin: 2px 0 0; color: var(--muted); } @media (max-width: 700px) { .wn-list { grid-template-columns: 1fr; } }
/* bekijk als */
#viewas-banner { position: sticky; top: 0; z-index: 60; background: #211DC3; color: #fff; padding: 8px 16px; font-size: 13px; text-align: center; } #viewas-banner .btn { margin-left: 10px; }
.sec-check > div { padding: 4px 0; } .sec-check .ok { color: var(--ok); } .sec-check .warn { color: #b26b00; } .sec-check .bad { color: var(--accent); }
.theme-btn { display: block; margin-top: 6px; background: none; border: 0; color: #c9c9d0; cursor: pointer; padding: 0; font-size: 12px; text-decoration: underline; }
.te-tbl textarea { min-height: 40px; width: 100%; } .te-tbl input[type=text] { width: 100%; }
/* responsive algemeen: smalle vensters */
@media (max-width: 1100px) { main { padding: 18px 16px 50px; } .project-head { flex-wrap: wrap; } }

/* ================= donkere modus ================= */
/* De hele interface wordt omgekeerd (behalve foto's, video's en kaarten), zodat ook vaste kleuren meegaan. */
html[data-theme="dark"] { background: #111; }
html[data-theme="dark"] body { background: #161616; }
html[data-theme="dark"] #app, html[data-theme="dark"] #modal-root, html[data-theme="dark"] #toast { filter: invert(.92) hue-rotate(180deg); }
html[data-theme="dark"] #app { background: #f6f6f4; min-height: 100vh; }
html[data-theme="dark"] img, html[data-theme="dark"] video, html[data-theme="dark"] iframe, html[data-theme="dark"] .avatar:not(:empty):is(img), html[data-theme="dark"] [style*="background-image"] { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .side { filter: invert(1) hue-rotate(180deg); }
html[data-theme="dark"] .side img { filter: none; }
.blk { overflow-x: auto; } .blk table.list.compact { min-width: 520px; } .blk table.list.compact th, .blk table.list.compact td { white-space: nowrap; }
.layout > main { min-width: 0; } .project-head { flex-wrap: wrap; gap: 10px; } .project-head .actions { flex-wrap: wrap; } .sflow { overflow-x: auto; max-width: 100%; }

/* ===================== v20 ===================== */
/* Sectietitels met een gekleurde balk over de volle breedte (3 varianten — Instellingen → Voorkeuren) */
body.hs-a .card > h2, body.hs-a .card > .card-h h2, body.hs-a .set-pane > .card > h2 { margin: -20px -22px 16px; padding: 11px 22px; background: color-mix(in srgb, var(--brand, #FB5A17) 10%, #fff); border-left: 4px solid var(--brand, #FB5A17); border-bottom: 1px solid color-mix(in srgb, var(--brand, #FB5A17) 22%, #fff); border-radius: 12px 12px 0 0; color: var(--vf-night, #16161a); }
body.hs-a .card > h3, body.hs-a .blk > h3, body.hs-a .modal h3, body.hs-a #ptab h3 { padding: 6px 10px; margin: 14px 0 10px; background: color-mix(in srgb, var(--brand, #FB5A17) 6%, #fff); border-left: 3px solid var(--brand, #FB5A17); border-radius: 4px; }
body.hs-b .card > h2, body.hs-b .set-pane > .card > h2 { margin: -20px -22px 16px; padding: 12px 22px 10px; border-bottom: 3px solid var(--brand, #FB5A17); background: #fafaf8; border-radius: 12px 12px 0 0; }
body.hs-b .card > h3, body.hs-b .blk > h3, body.hs-b .modal h3, body.hs-b #ptab h3 { padding-bottom: 5px; border-bottom: 2px solid color-mix(in srgb, var(--brand, #FB5A17) 40%, #fff); margin: 14px 0 10px; }
body.hs-c .card > h2, body.hs-c .set-pane > .card > h2 { margin: -20px -22px 16px; padding: 11px 22px; background: var(--brand, #FB5A17); color: #fff !important; border-radius: 12px 12px 0 0; }
body.hs-c .card > h3, body.hs-c .blk > h3, body.hs-c .modal h3, body.hs-c #ptab h3 { padding: 6px 10px; margin: 14px 0 10px; background: var(--vf-night, #2A313D); color: #fff; border-radius: 4px; }
body.hs-a .modal > h2, body.hs-b .modal > h2, body.hs-c .modal > h2 { margin: -22px -22px 16px; padding: 14px 22px; border-radius: 14px 14px 0 0; background: color-mix(in srgb, var(--brand, #FB5A17) 10%, #fff); border-left: 4px solid var(--brand, #FB5A17); }
body.hs-c .modal > h2 { background: var(--brand, #FB5A17); color: #fff; border-left: 0; }
.card > h2 .actions, .card > h2 .btn { float: right; }

/* Kolommen: breedte slepen, verbergen, passend, compact */
.dt-table th[data-k] { position: relative; }
.dt-rz { position: absolute; top: 0; right: -3px; width: 7px; height: 100%; cursor: col-resize; z-index: 2; }
.dt-rz:hover, body.dt-resizing .dt-rz { background: color-mix(in srgb, var(--brand, #FB5A17) 35%, transparent); }
body.dt-resizing { cursor: col-resize !important; user-select: none; }
.dt-hm { visibility: hidden; border: 0; background: transparent; cursor: pointer; color: var(--muted); padding: 0 3px; font-size: 13px; line-height: 1; }
.dt-table th[data-k]:hover .dt-hm { visibility: visible; }
.dt-hmpop { width: 220px; display: grid; gap: 2px; padding: 6px; }
.dt-hmpop button { text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 6px; cursor: pointer; font: inherit; }
.dt-hmpop button:hover { background: #f3f2ef; }
.dt-table.dt-fixed, .dt-table.dt-fit { table-layout: fixed; width: 100%; }
.dt-table.dt-fixed td, .dt-table.dt-fit td, .dt-table.dt-fit th, .dt-table.dt-fixed th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-table.dt-fit td > div, .dt-table.dt-fixed td > div { overflow: hidden; text-overflow: ellipsis; }
.dt-table.dt-compact td, .dt-table.dt-compact th { padding-top: 3px !important; padding-bottom: 3px !important; font-size: 12.5px; }
.dt-bar .btn.on { background: color-mix(in srgb, var(--brand, #FB5A17) 14%, #fff); border-color: var(--brand, #FB5A17); }
.dt-active { margin: -2px 0 8px; padding: 7px 10px; background: #fff6d6; border: 1px solid #f1d27a; border-radius: 8px; font-size: 13px; }

/* Facturatie per fase */
.bill-ph { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.bill-ph > header { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: color-mix(in srgb, var(--brand, #FB5A17) 8%, #fff); font-weight: 700; }
.bill-ph > header .sum { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.bill-ph table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bill-ph td, .bill-ph th { padding: 6px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.bill-ph th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; }
.bill-ph tr.done td { color: #999; }
.bill-ph input.qty { width: 70px; text-align: right; }
.bill-bar { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; min-width: 70px; }
.bill-bar > i { display: block; height: 100%; background: var(--brand, #FB5A17); }
.bill-sum { position: static; background: #fafaf8; border-radius: 0 0 10px 10px; border-top: 2px solid var(--brand, #FB5A17); padding: 10px 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.bill-modes { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; }
.bill-modes button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; }
.bill-modes button.on { background: var(--brand, #FB5A17); color: #fff; border-color: var(--brand, #FB5A17); }
.src-badge { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: #eef; color: #335; } .src-badge.afas { background: #e8f3ff; color: #0b5cad; }

/* PDF-viewer */
.pdf-modal { max-width: min(1100px, 96vw) !important; width: 96vw; padding: 0 !important; overflow: hidden !important; }
.pdf-modal .pdf-h { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pdf-modal iframe, .pdf-modal pre { width: 100%; height: calc(90vh - 60px); border: 0; display: block; margin: 0; overflow: auto; background: #f4f4f4; }

/* Plan meeting / vergaderingnotitie / dempen */
.pm-people { max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.pm-people label { display: flex; gap: 8px; align-items: center; padding: 3px 0; }
.rec-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #fff0eb; border: 1px solid #ffc7b3; margin-bottom: 10px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e03131; animation: recblink 1s infinite; } @keyframes recblink { 50% { opacity: .2; } }
.mute-btn.on { background: #fff3e0; border-color: #f0b46b; }
.hs-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hs-preview .card { padding: 20px 22px; } .hs-preview label { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; font-weight: 600; }

#i20 td:first-child b { white-space: nowrap; } #i20 table, #ptab .card table.list { width: 100%; } #ptab .card { overflow-x: auto; min-width: 0; }
.f input[type=datetime-local] { width: 100%; display: block; }

/* v21 — Plan meeting met agenda */
.modal.pm-modal { max-width: min(1280px, 97vw); }
.pm-grid { display: grid; grid-template-columns: minmax(340px, 430px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .pm-grid { grid-template-columns: 1fr; } }
.pm-h { margin: 10px 0 4px; }
.pm-people { max-height: 170px; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #f3f0ec; border: 1px solid var(--line); font-size: 13px; }
.pm-chip.int { background: #eef1ff; border-color: #c9d1ff; }
.pm-chip button { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; color: #777; }
.pm-search { position: relative; } .pm-search input { width: 100%; }
.pm-sugg { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 260px; overflow: auto; }
.pm-s { padding: 6px 10px; cursor: pointer; } .pm-s.on, .pm-s:hover { background: #fff0eb; } .pm-s.dis { cursor: default; opacity: .6; background: none; }
.pm-noemail { display: flex; gap: 6px; align-items: center; padding: 3px 0; flex-wrap: wrap; } .pm-noemail > span { flex: 1 1 100%; } .pm-noemail input { flex: 1; min-width: 140px; padding: 4px 8px; }
.pm-more summary { cursor: pointer; margin: 10px 0 4px; color: #666; }
.pm-right { position: sticky; top: 0; min-width: 0; }
.ag-head { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; } .ag-head b { margin-left: 6px; }
.ag-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; color: #555; } .ag-legend span { display: inline-flex; gap: 5px; align-items: center; }
.ag-k { display: inline-block; width: 12px; height: 12px; border-radius: 3px; } .ag-k.me { background: #dfe5ff; border: 1px solid #002fa7; } .ag-k.busy { background: #f6b38f; } .ag-k.sel { border: 2px solid #ff5a1f; }
.ag { display: grid; grid-template-columns: 40px repeat(5, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: auto; max-height: 62vh; position: relative; background: #fff; }
.ag-times { position: relative; margin-top: 46px; font-size: 11px; color: #888; } .ag-times div { position: absolute; right: 4px; transform: translateY(-6px); }
.ag-col { border-left: 1px solid var(--line); min-width: 0; } .ag-col.today .ag-dh { color: #ff5a1f; }
.ag-dh { height: 46px; padding: 4px 6px; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); overflow: hidden; position: sticky; top: 0; background: #fff; z-index: 3; text-transform: capitalize; }
.ag-ad { font-weight: 400; font-size: 11px; background: #dfe5ff; border-radius: 3px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; text-transform: none; }
.ag-body { position: relative; cursor: crosshair; }
.ag-line { position: absolute; left: 0; right: 0; border-top: 1px dotted #eee; } .ag-line.hr { border-top: 1px solid #e6e6e6; }
.ag-ev { position: absolute; background: #dfe5ff; border-left: 3px solid #002fa7; border-radius: 3px; font-size: 11px; line-height: 13px; padding: 1px 3px; overflow: hidden; color: #1b2550; z-index: 1; }
.ag-ev.free { background: #f4f6ff; border-left-style: dashed; opacity: .75; } .ag-ev.tent { background: repeating-linear-gradient(45deg, #dfe5ff, #dfe5ff 4px, #fff 4px, #fff 8px); }
.ag-busy { position: absolute; right: 2px; width: 28%; background: #f6b38f; border-radius: 2px; font-size: 10px; color: #7a2c00; text-align: center; line-height: 22px; }
.ag-sel { position: absolute; left: 1px; right: 1px; border: 2px solid #ff5a1f; background: rgba(255,90,31,.12); border-radius: 4px; font-size: 11px; font-weight: 700; color: #c23e0c; padding: 1px 4px; z-index: 2; pointer-events: none; }
.ag-sel.clash { border-style: dashed; }
/* v21 — leveranciers per offertelijn: intern/extern + pijltjes */
.ss-opt.on { background: #fff0eb; outline: 1px solid #ffc7b3; }
.sup-mode { margin: 4px 0 12px; }
.quote-lines td.vat-lock { white-space: nowrap; color: var(--muted); font-size: 13px; text-align: center; cursor: help; }
/* v21 — e-mailhandtekening */
.sig-tools { display: flex; gap: 4px; margin-bottom: 4px; } .sig-tools button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 3px 9px; cursor: pointer; font-size: 13px; }
.sig-edit { min-height: 110px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; overflow: auto; font-family: Arial, sans-serif; font-size: 13px; }
.sig-edit:focus { outline: 2px solid #ffc7b3; } .sig-edit.big { max-height: 60vh; min-height: 260px; } .sig-edit img { max-width: 100%; }
.sig-preview { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; background: #fff; font-family: Arial, sans-serif; font-size: 13px; overflow: auto; } .sig-preview img { max-width: 100%; }
.sig-tpl { margin-top: 16px; } .sig-tpl summary { cursor: pointer; }
.afas-fields td { padding: 4px 8px; font-size: 13px; } .afas-fields td:first-child { width: 42%; white-space: nowrap; }
/* v21 — beheerconsole */
.bh-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; background: #2f9e44; } .bh-dot.bad { background: #e03131; } .bh-dot.off { background: #ced4da; }
.callout.ok { background: #ebfbee; border-color: #b2f2bb; }
.bh-users th.c, .bh-users td.c { text-align: center; } .bh-users th { font-size: 11.5px; white-space: nowrap; } .bh-users tr.inactive td { opacity: .5; }
.bh-users input:not([type=checkbox]) { padding: 4px 6px; font-size: 13px; }
.pre { white-space: pre-wrap; } .count-badge { background: #e03131; color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
.bh-users select { min-width: 115px; padding: 4px 6px; font-size: 13px; }
/* v21 — Dropbox: voorbeeld rechts */
.fx-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.fx-split:has(.fx-preview:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(340px, 46%); }
@media (max-width: 1000px) { .fx-split:has(.fx-preview:not([hidden])) { grid-template-columns: 1fr; } }
.fx-list { min-width: 0; } .fx-file.sel td { background: #fff0eb; } .fx-file:focus { outline: none; }
.fx-preview { position: sticky; top: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px; max-height: calc(100vh - 40px); overflow: auto; }
.fx-h { display: flex; gap: 8px; align-items: center; } .fx-h b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-body { margin: 10px 0; background: #f4f3f1; border-radius: 8px; display: flex; justify-content: center; align-items: center; min-height: 160px; overflow: hidden; flex-direction: column; }
.fx-body img { max-width: 100%; max-height: 65vh; object-fit: contain; display: block; }
.fx-body video { width: 100%; max-height: 65vh; background: #000; display: block; } .fx-body audio { width: 100%; margin: 20px 0; }
.fx-body iframe { width: 100%; height: 65vh; border: 0; background: #fff; display: block; } .fx-body iframe.txt { height: 50vh; }
.fx-none { text-align: center; padding: 30px; font-size: 40px; } .fx-none p { font-size: 13px; color: var(--muted); }
/* v21 — pagina's in tabellen */
.dt-pager { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-top: 10px; } .dt-pager .btn { min-width: 32px; } .dt-pager select { width: auto; display: inline-block; margin-left: 6px; padding: 3px 6px; }
/* v22 — werkwijze projectleiders */
.urg { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: middle; } .urg-urgent { background: #ff5a1f; } .urg-normaal { background: #1d1d2c; } .urg-wacht { background: #c4c4c4; }
.urg-sel { font-weight: 600; padding: 3px 6px; background: #fff !important; color: #1d1d2c !important; border: 1px solid var(--line); border-radius: 6px; width: auto; } .urg-sel.urg-urgent { color: #c23e0c !important; background: #fff0eb !important; } .urg-sel.urg-wacht { color: #777 !important; }
.pbar { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 14px; margin: 10px 0 14px; }
.pbar-row { display: flex; gap: 22px; flex-wrap: wrap; padding: 6px 0; } .pbar-row + .pbar-row { border-top: 1px dashed var(--line); }
.pbar-cell { display: flex; flex-direction: column; gap: 2px; min-width: 120px; } .pbar-cell.wide { min-width: 260px; flex: 1; } .pbar-cell.wide2 { min-width: 320px; flex: 2; }
.pbar-cell .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .pbar-cell b.soon { color: #c23e0c; }
.lnk { border: 0; background: none; color: #ff5a1f; cursor: pointer; font-size: 12px; padding: 0; text-align: left; }
.hbar { height: 8px; background: #eee; border-radius: 99px; overflow: hidden; margin: 3px 0; } .hbar i { display: block; height: 100%; background: #2f9e44; } .hbar.near i { background: #f59f00; } .hbar.over i { background: #e03131; }
ol.prio { margin: 2px 0 0; padding-left: 18px; font-size: 13px; } ol.prio li.late a { color: #e03131; font-weight: 600; }
.pbar-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
tr.late td { color: #e03131; }
.chk-prog { display: flex; gap: 10px; align-items: center; max-width: 420px; } .chk-prog .hbar { flex: 1; }
ul.chk { list-style: none; padding: 0; margin: 10px 0; } ul.chk li { display: flex; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid #f1f1f1; flex-wrap: wrap; }
ul.chk li > label { flex: 1 1 300px; display: flex; gap: 8px; align-items: center; } ul.chk li.done > label span { text-decoration: line-through; color: var(--muted); }
.chk-note { max-width: 220px; padding: 3px 6px; font-size: 12px; }
.ho-modal { max-width: min(1200px, 97vw); } .ho-t td { vertical-align: top; } .ho-t textarea, .ho-t input:not([type=checkbox]) { width: 100%; font-size: 12px; } .ho-t .ho-b { margin-top: 3px; } .ho-t td.c { text-align: center; }
.ho-steps { display: flex; gap: 6px; margin: 4px 0 10px; flex-wrap: wrap; } .ho-steps span { background: #f3f0ec; border-radius: 99px; padding: 2px 10px; }
.fc-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 6px; align-items: end; }
.fc-col { cursor: pointer; text-align: center; border-radius: 8px; padding: 4px 2px; } .fc-col.sel { background: #fff0eb; } .fc-col.past { opacity: .75; }
.fc-bars { position: relative; margin: 0 auto; width: 34px; } .fc-bars i { position: absolute; left: 0; right: 0; border-radius: 3px 3px 0 0; }
.fc-inv { bottom: 0; background: #1d1d2c; } .fc-open { background: #ffd3c2; } .fc-w { background: #ff5a1f; } .fc-target { left: -8px !important; right: -8px !important; border-top: 2px dashed #2f9e44; height: 0; z-index: 2; border-radius: 0 !important; }
.fc-lbl { font-size: 12px; margin-top: 4px; text-transform: capitalize; } .fc-val { font-size: 12px; font-weight: 700; } .fc-v { font-size: 11px; }
.fc-col.v-goed .fc-v { color: #2f9e44; } .fc-col.v-krap .fc-v { color: #f08c00; } .fc-col.v-slecht .fc-v { color: #e03131; }
ul.ct-tl { list-style: none; padding: 0; margin: 10px 0 0; max-height: 520px; overflow: auto; } ul.ct-tl li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f1f1f1; } ul.ct-tl li.future { opacity: .6; } .ct-i { width: 22px; text-align: center; }
.fn-bar.fn-w { position: relative; } .fn-bar.fn-w i { opacity: .35; } .fn-bar.fn-w i.w { position: absolute; left: 0; top: 0; bottom: 0; opacity: 1; }
/* v23 — intake en projectdocumenten */
fieldset.ik { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 12px; margin: 0 0 12px; } fieldset.ik legend { font-weight: 700; padding: 0 6px; }
.ik-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; } .ik-f { display: flex; flex-direction: column; gap: 3px; font-size: 13px; } .ik-f.full { grid-column: 1 / -1; }
.ik-f.ik-y { flex-direction: row; justify-content: space-between; align-items: center; border-bottom: 1px dashed #eee; padding: 3px 0; }
.yn { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .yn button { border: 0; background: #fff; padding: 3px 10px; cursor: pointer; font-size: 12px; } .yn button + button { border-left: 1px solid var(--line); }
.yn button.on[data-v="ja"] { background: #2f9e44; color: #fff; } .yn button.on[data-v="neen"] { background: #555; color: #fff; } .yn button.on[data-v=""] { background: #f3f0ec; }
.doc-new { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; } .doc-modal { max-width: min(1150px, 97vw); }
.doc-ppl input { width: 100%; font-size: 12px; padding: 3px 5px; } #doc-sch input, #doc-eq input { width: 100%; font-size: 12px; padding: 3px 5px; }
/* v24 — menu: favorieten + inklapbaar */
.brand-home { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; flex: 1; min-width: 0; }
.side nav a { position: relative; } .nav-star { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: inherit; opacity: 0; cursor: pointer; font-size: 13px; padding: 2px 4px; }
.side nav a:hover .nav-star { opacity: .55; } .nav-star.on { opacity: .35; } .side nav a:hover .nav-star:hover { opacity: 1; }
details.nav-more > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; } details.nav-more > summary::-webkit-details-marker { display: none; }
details.nav-more > summary::after { content: '▸'; margin-left: auto; padding-left: 6px; } details.nav-more[open] > summary::after { content: '▾'; } details.nav-more > summary span { font-size: 11px; opacity: .6; margin-left: 6px; }
/* v24 — statuskleuren: projectcode = kleur van de status */
:root { --st-newdeal: #ffb48f; --st-quotesent: #ffd27a; --st-dealapproved: #b9a6f2; --st-inproduction: #8fb3f0; --st-delivered: #8fd6a6; --st-closedcheck: #b5d9d3; --st-closeddef: #9aa0ab; --st-dealrefused: #f0a8a8; }
.pc { display: inline-block; padding: 1px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; background: #eee; color: #1d1d2c; }
.pc.pc-newdeal { background: var(--st-newdeal); } .pc.pc-quotesent { background: var(--st-quotesent); } .pc.pc-dealapproved { background: var(--st-dealapproved); } .pc.pc-inproduction { background: var(--st-inproduction); }
.pc.pc-delivered { background: var(--st-delivered); } .pc.pc-closedcheck { background: var(--st-closedcheck); } .pc.pc-closeddef { background: var(--st-closeddef); color: #fff; } .pc.pc-dealrefused, .pc.pc-afgemeld { background: var(--st-dealrefused); text-decoration: line-through; }
.sflow .sf.cur.pc-newdeal, .sflow .sf.cur.pc-quotesent, .sflow .sf.cur.pc-dealapproved, .sflow .sf.cur.pc-inproduction, .sflow .sf.cur.pc-delivered, .sflow .sf.cur.pc-closedcheck, .sflow .sf.cur.pc-closeddef { color: #1d1d2c; }
.sflow .sf.cur.pc-newdeal { background: var(--st-newdeal); } .sflow .sf.cur.pc-quotesent { background: var(--st-quotesent); } .sflow .sf.cur.pc-dealapproved { background: var(--st-dealapproved); } .sflow .sf.cur.pc-inproduction { background: var(--st-inproduction); }
.sflow .sf.cur.pc-delivered { background: var(--st-delivered); } .sflow .sf.cur.pc-closedcheck { background: var(--st-closedcheck); } .sflow .sf.cur.pc-closeddef { background: var(--st-closeddef); color: #fff; }
.sflow .sf:not(.cur) { border-bottom: 4px solid transparent; } .sflow .sf.pc-newdeal:not(.cur) { border-bottom-color: var(--st-newdeal); } .sflow .sf.pc-quotesent:not(.cur) { border-bottom-color: var(--st-quotesent); } .sflow .sf.pc-dealapproved:not(.cur) { border-bottom-color: var(--st-dealapproved); }
.sflow .sf.pc-inproduction:not(.cur) { border-bottom-color: var(--st-inproduction); } .sflow .sf.pc-delivered:not(.cur) { border-bottom-color: var(--st-delivered); } .sflow .sf.pc-closedcheck:not(.cur) { border-bottom-color: var(--st-closedcheck); } .sflow .sf.pc-closeddef:not(.cur) { border-bottom-color: var(--st-closeddef); }

/* v24 — prioriteiten, terugplannen */
.prio1 { font-weight: 600; } .prio-subs { margin: 3px 0 0 14px; padding: 0; list-style: none; font-size: 12px; color: var(--muted, #6b6f7a); } .prio-subs li::before { content: '↳ '; }
.rp-t td, .rp-t th { vertical-align: middle; } .rp-t input[data-days] { width: 64px; text-align: right; } .rp-t input[data-date] { width: 150px; }
.field-err { color: #b3261e; display: block; margin-top: 4px; } input.invalid { border-color: #d93025 !important; box-shadow: 0 0 0 2px rgba(217,48,37,.15); }
/* v24 — Vimeo-versies */
.v-latest { background: var(--st-delivered); color: #1d1d2c; } details.v-older { margin: 4px 0 12px 24px; } details.v-older > summary { cursor: pointer; padding: 4px 0; } details.v-older .video { opacity: .75; }
/* v24 — forecast */
.fc-chart { display: flex; gap: 8px; align-items: flex-end; height: 200px; padding: 10px 0 0; position: relative; overflow-x: auto; }
.fc-col { flex: 1; min-width: 56px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative; height: 100%; }
.fc-bar { width: 70%; background: var(--st-inproduction); border-radius: 6px 6px 0 0; min-height: 2px; } .fc-col.cur .fc-bar { background: var(--accent, #FB5A17); }
.fc-col.v-goed .fc-bar { background: #57b97a; } .fc-col.v-krap .fc-bar { background: #f0b44c; } .fc-col.v-slecht .fc-bar { background: #e57373; }
.fc-chart .fc-target { position: absolute; left: 4%; right: 4%; border-top: 2px dashed #9aa0ab; } .fc-v { font-size: 11px; margin-top: 4px; white-space: nowrap; } .fc-l { font-size: 12px; color: var(--muted, #6b6f7a); text-transform: capitalize; }
.fc-filters { flex-wrap: wrap; gap: 6px; } .chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 14px; border: 1px solid #d9d6d0; font-size: 12px; cursor: pointer; opacity: .55; background: #fff; }
.chip.on { opacity: 1; } .chip input { display: none; } .chip.on.pc-newdeal { background: var(--st-newdeal); } .chip.on.pc-quotesent { background: var(--st-quotesent); } .chip.on.pc-dealapproved { background: var(--st-dealapproved); } .chip.on.pc-inproduction { background: var(--st-inproduction); } .chip.on.pc-delivered { background: var(--st-delivered); } .chip.on.pc-closedcheck { background: var(--st-closedcheck); }
.fc-list tr.fc-row { cursor: pointer; } .fc-list tr.fc-row:hover { background: #faf9f6; } .fc-list .fc-tg { width: 18px; color: #9aa0ab; } .fc-list tr.fc-exp > td { background: #faf9f6; }
.fc-prep { padding: 6px 0; } .fc-prep .seg .btn.on, .seg .btn.on { background: #1d1d2c; color: #fff; } .seg { display: inline-flex; gap: 2px; }
.fc-noend { border-left: 4px solid #f0b44c; }
/* v24 — hero-accounts */
.hero24-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hero24 { border: 1px solid #ebe8e3; border-radius: 12px; padding: 12px 14px; background: #fff; border-left: 4px solid #57b97a; } .hero24.warn { border-left-color: #f0b44c; } .hero24.stale { border-left-color: #e57373; }
.hero24 .h-top { display: flex; justify-content: space-between; gap: 6px; } .hero24 .h-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; } .hero24 .h-stats small, .hero24 .h-lc small, .hero24 .h-next small { display: block; color: #6b6f7a; font-size: 11px; }
.hero24 .h-stats b { display: block; } .hero24 .h-lc, .hero24 .h-next { font-size: 13px; margin: 4px 0; } .hero24 .h-ct { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 12px; border-top: 1px solid #f1efeb; padding-top: 6px; }
/* v24 — te bespreken */
.topics24 .tp-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .topics24 .cnt, .bk-tabs .cnt { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent, #FB5A17); color: #fff; font-size: 11px; text-align: center; margin-left: 3px; }
.tp-sep { width: 1px; height: 22px; background: #e2dfda; margin: 0 4px; }
/* v24 — planning */
.pl-heat td.pl-c { text-align: center; min-width: 34px; font-size: 12px; position: relative; } .pl-heat .we { background: #f6f5f2; } .pl-heat th.today { color: var(--accent, #FB5A17); }
.pl-c.ok { background: #e6f6ec; } .pl-c.full { background: #fff1d6; } .pl-c.over { background: #fdecea; color: #b3261e; font-weight: 600; } .pl-c .dl { font-size: 10px; margin-left: 2px; color: #b3261e; }
.pl-person { border-top: 1px solid #f1efeb; padding: 6px 0; } .pl-person summary { cursor: pointer; } .pl-tl { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 4px; overflow-x: auto; padding: 6px 0; }
.pl-day { background: #faf9f6; border-radius: 8px; padding: 4px; min-height: 60px; font-size: 12px; } .pl-day.we { background: #f1efeb; } .pl-day.today { outline: 2px solid var(--accent, #FB5A17); } .pl-dh { font-weight: 600; font-size: 11px; color: #6b6f7a; margin-bottom: 3px; }
.pl-ev { background: #fff; border-left: 3px solid var(--st-inproduction); border-radius: 4px; padding: 3px 5px; margin-bottom: 3px; } .pl-ev.proj { border-left-color: var(--accent, #FB5A17); } .pl-tk { font-size: 11px; color: #b3261e; }
/* v24 — boekhouding */
.bk-sync { font-size: 12px; padding: 4px 10px; border-radius: 12px; background: #e6f6ec; color: #1f7a3f; } .bk-sync.stale { background: #fdecea; color: #b3261e; }
.bk-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 14px; } .bk-tabs a { padding: 6px 10px; border-radius: 8px; text-decoration: none; color: inherit; font-size: 13px; } .bk-tabs a.active { background: #1d1d2c; color: #fff; }
.bk-todo a { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid #f1efeb; text-decoration: none; color: inherit; } .bk-todo a:hover { background: #faf9f6; }
.bk-chk { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; } .bk-chk > span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; flex: none; } .bk-chk.ok > span { background: #e6f6ec; color: #1f7a3f; } .bk-chk.bad > span { background: #fdecea; color: #b3261e; }
.bk-days { display: flex; gap: 3px; margin-top: 10px; } .bk-days span { width: 14px; height: 14px; border-radius: 3px; } .bk-days .ok { background: #8fd6a6; } .bk-days .bad { background: #f0a8a8; }
.bk-tx { border-bottom: 1px solid #f1efeb; padding: 8px 0; } .bk-tx-h .pos { color: #1f7a3f; } .bk-tx-h .neg { color: #b3261e; } .bk-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bk-lines input { width: 100%; } .bk-checks { margin: 8px 0; padding: 8px 10px; background: #faf9f6; border-radius: 8px; } .ok-txt { color: #1f7a3f; }
.rm-prev { border: 1px solid #e2dfda; border-radius: 8px; padding: 10px 14px; max-height: 320px; overflow: auto; background: #fff; }
tr.inactive { opacity: .5; }
.field-err[hidden] { display: none; }
[data-hsort].on, [data-pv].on { background: #1d1d2c; color: #fff; border-color: #1d1d2c; }
.bk-lines select { min-width: 110px; } .bk-lines td:nth-child(5) select { min-width: 70px; }

/* v24 — testgebruikers */
#test24-banner { position: sticky; top: 0; z-index: 9999; background: #fff1d6; color: #5c3b00; padding: 8px 16px; font-size: 13px; text-align: center; border-bottom: 1px solid #f0b44c; }
.test24 { margin-top: 4px; } .badge.test24 { background: #fff1d6; color: #8a5a00; border: 1px solid #f0b44c; }
