: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}
