/* MB Dashboard – stijl (huisstijl MB Web & Hosting) */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
	--navy: #0a1633; --navy-2: #12224a; --blue: #0b5ed7; --blue-600: #094db3; --blue-50: #eff5ff; --blue-100: #dce8ff;
	--ink: #16203a; --muted: #5b6780; --line: #e3e8f1; --bg: #f4f6fb; --card: #fff;
	--green: #15803d; --green-50: #ecfdf3; --amber: #a16207; --amber-50: #fffbeb; --red: #b91c1c; --red-50: #fef2f2;
	--radius: 12px; --shadow: 0 1px 2px rgba(10,22,51,.05), 0 4px 16px -8px rgba(10,22,51,.12);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --head: "Montserrat", "Inter", system-ui, sans-serif;
	--side: 248px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.1rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 .9em; }
code, pre.code { font-size: .85em; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }
pre.code { padding: 12px 14px; overflow-x: auto; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; border-radius: 4px; }
.icon { flex: none; vertical-align: middle; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .center { text-align: center; } .strong { font-weight: 600; color: var(--navy); }
.text-green { color: var(--green) !important; } .text-red { color: var(--red) !important; } .text-amber { color: var(--amber) !important; } .text-blue { color: var(--blue) !important; }
.big { font: 800 1.8rem var(--head); color: var(--navy); margin: 0 0 6px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
.select-all { user-select: all; }

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 .9rem var(--font); padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; line-height: 1.2; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); color: #fff; }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--danger-link { background: none; color: var(--red); padding-left: 0; }
.btn--sm { padding: 6px 11px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.iconbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--bg); color: var(--navy); }
.iconbtn--sm { width: 24px; height: 24px; }
form.inline { display: inline; }

/* ---------- Badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: #eef1f6; color: #4b5568; }
.badge--green { background: var(--green-50); color: var(--green); } .badge--blue { background: var(--blue-50); color: var(--blue-600); }
.badge--red { background: var(--red-50); color: var(--red); } .badge--amber { background: var(--amber-50); color: var(--amber); }
.badge--lg { font-size: .9rem; padding: 6px 14px; }
.chip { display: inline-flex; gap: 4px; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font-size: .8rem; font-weight: 600; margin: 0 4px 4px 0; }
.chip em { font-style: normal; opacity: .7; }
.chips { display: flex; flex-wrap: wrap; }

/* ---------- Inloggen ---------- */
.auth-body { min-height: 100vh; background: radial-gradient(800px 400px at 80% -10%, rgba(11,94,215,.35), transparent 60%), linear-gradient(180deg, var(--navy), #0e1d44); display: grid; place-items: center; padding: 24px 16px; }
.auth { width: 100%; max-width: 440px; }
.auth__brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 20px; justify-content: center; }
.auth__brand img { border-radius: 10px; background: #fff; }
.auth__brand strong { display: block; font: 800 1.1rem var(--head); }
.auth__brand span { font-size: .85rem; opacity: .7; }
.auth__card { padding: 30px; }
.auth__card--wide { max-width: 720px; }
.auth:has(.auth__card--wide) { max-width: 720px; }
.auth__card h1 { font-size: 1.4rem; }
.auth__card h2 { margin-top: 1.2em; }
.auth__foot { text-align: center; color: rgba(255,255,255,.6); font-size: .8rem; margin-top: 18px; display: flex; gap: 6px; justify-content: center; align-items: center; }
.input-code { font: 700 1.6rem var(--head); letter-spacing: .3em; text-align: center; }
.error-code { font: 800 3rem var(--head); color: var(--blue); margin: 0; }

/* ---------- App-indeling ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--navy) var(--side), transparent var(--side)); }
.sidebar { background: var(--navy); color: rgba(255,255,255,.75); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar__brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; text-decoration: none !important; }
.sidebar__brand img { border-radius: 8px; background: #fff; }
.sidebar__brand strong { display: block; font: 800 .95rem var(--head); line-height: 1.2; }
.sidebar__brand small { font-size: .75rem; opacity: .6; }
.sidebar__nav { padding: 6px 10px; flex: 1; }
.sidebar__group { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; opacity: .45; margin: 16px 10px 6px; font-weight: 700; }
.sidebar__nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: rgba(255,255,255,.78); font-weight: 500; font-size: .92rem; text-decoration: none; }
.sidebar__nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar__nav a.is-active { background: var(--blue); color: #fff; }
.sidebar__nav .count { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; background: #f59e0b; color: #1f1300; border-radius: 999px; padding: 1px 7px; }
.sidebar__foot { display: flex; align-items: center; gap: 6px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar__foot .iconbtn { color: rgba(255,255,255,.6); } .sidebar__foot .iconbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar__user { display: flex; align-items: center; gap: 10px; flex: 1; color: #fff; text-decoration: none !important; min-width: 0; }
.sidebar__user strong { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__user small { font-size: .74rem; opacity: .6; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font: 700 .8rem var(--head); }
.avatar--sm { width: 28px; height: 28px; font-size: .7rem; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(244,246,251,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__menu { display: none; }
.topbar__search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.topbar__search input { flex: 1; border: 0; outline: 0; padding: 9px 0; font: inherit; background: transparent; min-width: 0; }
.topbar__search:focus-within { border-color: var(--blue); }
.topbar__actions { margin-left: auto; display: flex; gap: 8px; }
.content { padding: 24px 28px 60px; max-width: 1480px; width: 100%; }
.content:focus { outline: none; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; } .dropdown > summary::-webkit-details-marker { display: none; }
.dropdown__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(10,22,51,.3); padding: 6px; z-index: 40; display: grid; }
.dropdown__menu a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.dropdown__menu a:hover { background: var(--bg); }

/* ---------- Paginakop, tabs, filters ---------- */
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.pagehead h1 { margin: 0; }
.pagehead .muted { margin: 6px 0 0; }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pagehead__actions form { margin: 0; }
.crumbs { font-size: .82rem; margin-bottom: 4px; display: flex; gap: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 12px; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--navy); }
.tabs a.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.tabs em { font-style: normal; font-size: .75rem; background: #e7ebf3; border-radius: 999px; padding: 1px 7px; margin-left: 4px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters input[type=search] { flex: 1; min-width: 220px; }
.filters select { width: auto; max-width: 260px; }

/* ---------- Kaarten & KPI's ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.card--flush { padding: 0; overflow: hidden; }
.card--flush > .card__title { padding: 16px 20px 0; }
.card__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 1rem; margin-bottom: 12px; }
.card__more { font: 600 .8rem var(--font); }
.empty { color: var(--muted); text-align: center; padding: 28px 16px !important; }
.kpis { display: grid; gap: 14px; margin-bottom: 18px; }
.kpis--4 { grid-template-columns: repeat(4, 1fr); } .kpis--6 { grid-template-columns: repeat(6, 1fr); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 2px; color: inherit; text-decoration: none !important; }
a.kpi:hover { border-color: var(--blue-100); }
.kpi small { color: var(--muted); font-size: .8rem; font-weight: 500; }
.kpi b { font: 800 1.45rem var(--head); color: var(--navy); }
.kpi em { font-style: normal; font-size: .78rem; color: var(--muted); }
.kpi em.up { color: var(--green); } .kpi em.down { color: var(--red); }
@media (max-width: 1300px) { .kpis--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .kpis--4, .kpis--6 { grid-template-columns: repeat(2, 1fr); } }

.cols { display: grid; gap: 18px; align-items: start; }
.cols--side { grid-template-columns: minmax(0, 1fr) 340px; }
.cols--main { grid-template-columns: minmax(0, 1fr) 360px; }
.cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols > * { min-width: 0; }
.cols .cols { gap: 18px; }
@media (max-width: 1100px) { .cols--side, .cols--main, .cols--2 { grid-template-columns: minmax(0, 1fr); } }

.mini-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none !important; font-size: .9rem; }
.mini-row:last-child { border-bottom: 0; }
a.mini-row:hover { color: var(--blue); }
.mini-row > span:last-child, .mini-row > b { text-align: right; flex: none; white-space: nowrap; }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0 0 14px; font-size: .9rem; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; word-break: break-word; }
.dl--compact { grid-template-columns: 130px 1fr; }
.note { background: var(--amber-50); border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin-bottom: 12px; }

/* ---------- Tabellen ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: #fafbfd; white-space: nowrap; }
.table tbody tr[data-href] { cursor: pointer; }
.table tbody tr:hover { background: #fafcff; }
.table tfoot td { font-weight: 700; background: #fafbfd; }
.table .num { text-align: right; white-space: nowrap; }
.table tr.is-muted { opacity: .55; }
.table tr.is-unread td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.table--compact th, .table--compact td { padding: 7px 12px; }
.table__group th { background: #f6f8fc; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table__sum td { font-weight: 600; border-top: 1px solid var(--line); }
.table__total td { font: 800 1.05rem var(--head); color: var(--navy); border-top: 2px solid var(--navy); }
.table-scroll { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 8px; }
.card--flush .table { margin: 0; }
@media (max-width: 800px) {
	.card--flush { overflow-x: auto; }
	.table { min-width: 640px; }
}

/* ---------- Formulieren ---------- */
.form { display: grid; gap: 4px; }
.form--tight { gap: 0; }
.form__section + .form__section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.form__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.field { display: grid; gap: 5px; margin-bottom: 12px; font-size: .88rem; }
.field > span { font-weight: 600; color: var(--navy); }
.field small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=date], input[type=search], input:not([type]), select, textarea {
	width: 100%; font: inherit; font-size: .92rem; padding: 9px 11px; border: 1px solid #cfd7e4; border-radius: 8px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
input[type=color] { width: 60px; height: 38px; padding: 2px; border: 1px solid #cfd7e4; border-radius: 8px; }
input[type=file] { font-size: .86rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11,94,215,.12); }
input[disabled], select[disabled] { background: #f3f5f9; color: var(--muted); }
.input-sm { padding: 6px 8px !important; font-size: .85rem !important; }
.is-warning { border-color: #f0b44c !important; background: var(--amber-50) !important; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; margin: 6px 0 10px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 0 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field--span2 { grid-column: span 2; } .field--full { grid-column: 1 / -1; }
@media (max-width: 800px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .field--span2 { grid-column: auto; } }
.segmented { display: inline-flex; background: var(--bg); padding: 4px; border-radius: 10px; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.segmented label { padding: 6px 12px; border-radius: 7px; cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--muted); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.segmented--big label { padding: 9px 16px; }
.danger-zone { margin: 4px 0 20px; }
.copyfield { display: flex; gap: 4px; margin-top: 10px; }
.copyfield input { font-size: .8rem !important; color: var(--muted); }
.actions-stack { display: grid; gap: 8px; }
.actions-stack form { margin: 0; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--blue); font-size: .9rem; margin: 6px 0; }
.stickybar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 8px; align-items: center; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: 0 -8px 24px -16px rgba(10,22,51,.35); }
.spacer { flex: 1; }
.steps { padding-left: 1.2em; color: var(--muted); font-size: .92rem; }
.steps li { margin-bottom: 6px; }

/* ---------- Meldingen ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-size: .92rem; border: 1px solid; }
.alert--success { background: var(--green-50); border-color: #bbf7d0; color: #14532d; }
.alert--error { background: var(--red-50); border-color: #fecaca; color: #7f1d1d; }
.alert--info { background: var(--blue-50); border-color: var(--blue-100); color: #1e3a8a; }
.alert--warning { background: var(--amber-50); border-color: #fde68a; color: #713f12; }

/* ---------- Tijdlijn, taken ---------- */
.composer { display: grid; gap: 8px; margin-bottom: 14px; }
.composer__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.composer__row select, .composer__row input { width: auto; }
.composer--inline { grid-template-columns: 1fr 220px 160px auto; align-items: center; }
.composer--mini { display: flex; margin: 10px 0 0; }
@media (max-width: 800px) { .composer--inline { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.timeline__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.timeline__item.kind-taak .timeline__icon { background: var(--amber-50); color: var(--amber); }
.timeline__item.kind-taak.is-open { background: linear-gradient(90deg, var(--amber-50), transparent 60%); }
.timeline__item.kind-email .timeline__icon, .timeline__item.kind-telefoon .timeline__icon { background: var(--blue-50); color: var(--blue); }
.timeline__body { flex: 1; min-width: 0; }
.timeline__body p { margin: 2px 0 0; font-size: .9rem; white-space: pre-line; word-break: break-word; }
.timeline__meta { font-size: .78rem; color: var(--muted); }
.timeline__actions { display: flex; gap: 2px; }
.timeline--compact .timeline__item { padding: 8px 0; }
.tasklist { list-style: none; margin: 0; padding: 0; }
.tasklist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.tasklist--compact li { padding: 9px 0; }
.tasklist li p { margin: 0; }
.tasklist li.is-done p { text-decoration: line-through; color: var(--muted); }
.taskcheck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b6c2d6; background: #fff; display: grid; place-items: center; color: transparent; cursor: pointer; padding: 0; margin-top: 1px; }
.taskcheck:hover, .is-done .taskcheck { border-color: var(--green); color: var(--green); }
.is-done .taskcheck { background: var(--green-50); }

/* ---------- Pipeline ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.kanban__col { background: #eaeef6; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; min-height: 300px; }
.kanban__col header { padding: 4px 4px 10px; }
.kanban__col h2 { font-size: .9rem; margin: 0; }
.kanban__col header span { font-size: .78rem; color: var(--muted); }
.kanban__col--gewonnen { background: #e3f6ea; } .kanban__col--verloren { background: #f6e8e8; }
.kanban__list { flex: 1; display: grid; gap: 8px; align-content: start; min-height: 60px; border-radius: 8px; transition: background .15s; }
.kanban__list.is-over { background: rgba(11,94,215,.08); }
.deal { display: grid; gap: 4px; background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(10,22,51,.08); color: var(--ink); text-decoration: none !important; cursor: grab; font-size: .88rem; border: 1px solid transparent; }
.deal:hover { border-color: var(--blue-100); }
.deal.is-dragging { opacity: .5; }
.deal strong { color: var(--navy); }
.deal__foot { display: flex; justify-content: space-between; font-size: .82rem; }
.kanban__add { font-size: .82rem; padding: 8px 4px 0; color: var(--muted); }

/* ---------- Documenten ---------- */
.lines td { vertical-align: top; }
.lines .line__product { margin-bottom: 6px; font-size: .82rem; color: var(--muted); }
.lines textarea { min-height: 42px; }
.lines input.input-sm { width: 90px; }
.lines__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 16px; flex-wrap: wrap; }
.totals-mini { min-width: 260px; font-size: .92rem; }
.totals-mini td { padding: 3px 0; } .totals-mini td:last-child { text-align: right; }
.totals-mini .grand td { font: 800 1.1rem var(--head); color: var(--navy); border-top: 2px solid var(--navy); padding-top: 6px; }
.docpreview iframe { width: 100%; height: 1100px; border: 1px solid var(--line); border-radius: var(--radius); background: #e9edf4; }
.docsum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.docsum small { display: block; color: var(--muted); font-size: .78rem; }
.docsum b { font: 800 1.3rem var(--head); color: var(--navy); }

/* ---------- Tickets ---------- */
.thread { display: grid; gap: 12px; margin-bottom: 16px; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.msg header { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.msg--medewerker { border-left: 3px solid var(--blue); }
.msg--notitie { background: var(--amber-50); border-color: #fde68a; }
.msg__body p:last-child { margin: 0; }
.msg__body { word-break: break-word; }

/* ---------- Grafieken ---------- */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart__grid { stroke: #e7ebf3; stroke-width: 1; }
.chart__axis { fill: #8a94a8; font: 11px var(--font); }
.chart__rev { fill: var(--blue); } .chart__cost { fill: #f59e0b; }
.chart figcaption { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot--rev { background: var(--blue); } .dot--cost { background: #f59e0b; margin-left: 12px; }
.minibars { display: flex; align-items: flex-end; gap: 8px; height: 170px; }
.minibars__col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; position: relative; }
.minibars__col span { width: 100%; background: linear-gradient(180deg, #60a5fa, var(--blue)); border-radius: 5px 5px 2px 2px; min-height: 2px; }
.minibars__col small { font-size: .7rem; color: var(--muted); }
.minibars__col em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--navy); order: -1; }
.funnel__row { display: grid; grid-template-columns: 150px 1fr 50px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: .88rem; }
.funnel__bar { background: var(--bg); border-radius: 6px; height: 22px; overflow: hidden; }
.funnel__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #60a5fa); border-radius: 6px; }
.funnel__row b { text-align: right; }
.setup__list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; font-size: .9rem; }
.setup__list li { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.setup__list li.is-done { color: var(--green); text-decoration: line-through; }
@media (max-width: 800px) { .setup__list { grid-template-columns: 1fr; } }
.mail-preview { border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-size: .88rem; max-height: 420px; overflow: auto; }
.qr svg { width: 200px; height: 200px; display: block; margin: 8px 0; }

/* ---------- Dialoog & paginering ---------- */
.dialog { border: 0; border-radius: 14px; padding: 24px; max-width: 520px; width: calc(100% - 32px); box-shadow: 0 30px 80px -20px rgba(10,22,51,.5); }
.dialog::backdrop { background: rgba(10,22,51,.45); }
.dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.pager { display: flex; gap: 4px; justify-content: center; margin: 14px 0; }
.pager a, .pager span { min-width: 34px; text-align: center; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: .86rem; }
.pager .is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.inline-cat { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 2px 0; }
.inline-cat select { width: auto; max-width: 220px; }

/* ---------- Openbare pagina's & portaal ---------- */
.public-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.public-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.public-head__brand { display: flex; gap: 10px; align-items: center; color: var(--navy); font-family: var(--head); text-decoration: none !important; }
.public-head__brand img { border-radius: 8px; }
.public-main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 28px 16px 60px; }
.public-foot { text-align: center; color: var(--muted); font-size: .82rem; padding: 20px; }
.portal-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.portal-nav a { padding: 7px 12px; border-radius: 8px; color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none; }
.portal-nav a:hover { background: var(--bg); }
.portal-nav form { margin: 0 0 0 8px; }
.portal-login { max-width: 460px; margin: 40px auto; padding: 30px; }
.public-doc__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.public-doc__bar h1 { margin: 0; }
.public-doc__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.public-doc__actions form { margin: 0; }
.public-doc__paper iframe { width: 100%; height: 1150px; border: 0; border-radius: 12px; background: #e9edf4; }
.accept { margin-top: 18px; }

/* ---------- Mobiel ---------- */
@media (max-width: 960px) {
	.app { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 60px -20px rgba(0,0,0,.5); }
	.sidebar.is-open { transform: none; }
	.topbar__menu { display: inline-grid; }
	.topbar { padding: 10px 14px; }
	.content { padding: 18px 14px 60px; }
	.docpreview iframe { height: 700px; }
	.kanban { grid-template-columns: repeat(6, 250px); }
}
@media (max-width: 600px) {
	.topbar__actions .btn { padding: 8px 10px; }
	h1 { font-size: 1.35rem; }
	.stickybar { flex-wrap: wrap; }
	.stickybar .spacer { display: none; }
}
@media print {
	.sidebar, .topbar, .pagehead__actions, .stickybar { display: none !important; }
	.app { display: block; }
}

/* ---------- Bestellen ---------- */
.order { max-width: 760px; margin: 0 auto; }
.order h2 { font-size: 1.05rem; }
.plans { display: grid; gap: 10px; }
.plan { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; background: #fff; }
.plan:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.plan input { margin-top: 4px; accent-color: var(--blue); }
.plan__body { display: grid; gap: 2px; }
.plan__price { font: 800 1.15rem var(--head); color: var(--navy); }
.plan__price small { font: 500 .8rem var(--font); color: var(--muted); }
.choice { margin-bottom: 8px; }
.hp { position: absolute; left: -9999px; }
.btn--lg { padding: 14px 20px; font-size: 1.05rem; }
.progress { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.progress li { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.progress li.is-done { color: var(--green); border-color: #bbf7d0; background: var(--green-50); }
.progress li.is-current { color: var(--blue); border-color: var(--blue-100); background: var(--blue-50); font-weight: 600; }
.domcheck { display: flex; gap: 8px; } .domcheck input { flex: 1; min-width: 0; }
.margin-low { color: var(--amber); } .margin-ok { color: var(--green); }
.btn--danger { background: var(--red); color: #fff; border-color: var(--red); } .btn--danger:hover { filter: brightness(.95); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
/* Beheer: monitoring, snelheid, updates, back-ups */
.care-grid { gap: 16px; align-items: start; } .care-grid > .card { margin: 0; }
.care-big { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.mini-list { list-style: none; margin: 6px 0 10px; padding: 0; font-size: 13px; } .mini-list li { padding: 5px 0; border-bottom: 1px solid var(--line, #e6e9f0); } .mini-list li:last-child { border-bottom: 0; }
.btn-row form { display: inline-block; }
.server-health .grid-4 { gap: 12px 16px; }
.meter { display: inline-block; width: 90px; height: 8px; border-radius: 6px; background: var(--line, #e6e9f0); vertical-align: middle; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--green, #16a34a); } .meter > .is-amber { background: var(--amber, #d97706); } .meter > .is-red { background: var(--red, #dc2626); }
@media (max-width: 800px) { .care-grid, .server-health .grid-4 { grid-template-columns: 1fr; } }
/* Openbare statuspagina */
.status-page { max-width: 760px; margin: 0 auto; }
.status-banner { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 12px; font-weight: 600; font-size: 18px; color: #fff; margin-bottom: 20px; }
.status-banner--ok { background: #16a34a; } .status-banner--deels { background: #d97706; } .status-banner--storing { background: #dc2626; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line, #e6e9f0); } .status-row:last-child { border-bottom: 0; }
.uptime-bars { display: flex; gap: 3px; height: 34px; align-items: stretch; margin: 10px 0 4px; }
.uptime-bars span { flex: 1; border-radius: 3px; background: #16a34a; } .uptime-bars .is-warn { background: #f59e0b; } .uptime-bars .is-bad { background: #dc2626; }
.status-note { border-left: 4px solid #0b5ed7; padding: 10px 14px; margin-bottom: 12px; background: #f5f8ff; border-radius: 6px; }
.status-note--onderhoud { border-color: #d97706; background: #fffbeb; } .status-note--storing { border-color: #dc2626; background: #fef2f2; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.server-health .card__title { display: flex; align-items: center; gap: 8px; justify-content: flex-start; } .server-health .card__title small { margin-left: auto; font-weight: 400; }
.table td small.muted { word-break: break-all; }
