/*
 * Opmaak Hangar CRM. Basis overgenomen uit The Hive Inschrijvingen, in de huisstijl van Hangar (plan v2):
 * het logo-rood (brand, #982730) als accent, het huisrood (#7C2529, Pantone 1815 C) bij hover, zwart en wit,
 * Montserrat voor koppen en Open Sans voor tekst. Interne schermen blijven neutraal en rustig.
 */
@font-face { font-family: "Montserrat"; src: url("/static/fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/static/fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/static/fonts/montserrat-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/static/fonts/open-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/static/fonts/open-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/static/fonts/open-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* Uit het designsysteem "Hangar Meeting Center": brand (logo-rood), house-red, ink, ink-muted, surface-raised */
  --accent: #982730;
  --accent-hover: #7c2529;
  --on-accent: #ffffff;
  --accent-tint: #f7f1f1;
  --ink: #231f20;
  --hive-yellow: #F5AE00; /* geel van The Hive: eigen gebruik in de bezetting (Tom, 29/11/2026) */
  --ink-muted: #5f5758;
  --surface: #ffffff;
  --band: #202020;
  --on-band: #ffffff;
  --line: #dddddd;
  --error: #b42318;
  --error-soft: #fdecea;

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px; --space-5: 32px; --space-6: 48px;
  --radius-sm: 8px; --radius-pill: 999px; --border-focus: 3px;
  --font-display: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/1.6 var(--font-body);
  min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; width: 100%; } /* band blijft onderaan, ook bij een korte pagina */
:focus-visible { outline: var(--border-focus) solid var(--ink); outline-offset: 2px; }

/* Kopbalk: logo altijd op wit */
header.top { background: var(--surface); border-bottom: 1px solid var(--line); }
header.top .inner { max-width: 1100px; margin: 0 auto; padding: var(--space-3); display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
header.top .brand { display: block; line-height: 0; }
header.top .brand { display: block; line-height: 0; }
/* Vrije rand rond het logo: minstens de hoogte van de band (designsysteem) */
header.top .brand img { width: 150px; height: auto; margin: 6px 0; }
header.top .inner { gap: var(--space-2) var(--space-4); }
header.top .logout { margin: 0 0 0 auto; }
header.top nav { display: flex; gap: var(--space-1); flex-basis: 100%; order: 3; }
header.top nav a { font: 700 15px/1.2 var(--font-display); color: var(--ink); text-decoration: none; padding: 10px 18px; border-radius: var(--radius-pill); border: 2px solid transparent; }
header.top nav a:hover { border-color: var(--accent); }
header.top nav a.active { background: var(--accent); color: var(--on-accent); }

main { max-width: 1100px; margin: 0 auto; padding: var(--space-5) var(--space-3) var(--space-6); }
main.narrow, header.top .inner.narrow { max-width: 760px; }

/* Titels: Montserrat, grote titel eindigt op een rode punt */
h1 { font: 800 clamp(30px, 5vw, 42px)/1.1 var(--font-display); margin: 0 0 var(--space-2); }
h1 .dot, .dot { display: inline-block; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--accent); margin-left: 0.08em; }
h2 { font: 700 22px/1.3 var(--font-display); margin: 0 0 var(--space-3); }
h2.section { padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.kicker { font: 700 14px/1.3 var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 0 0 var(--space-2); }
.sub { font: 400 18px/1.45 var(--font-body); color: var(--ink-muted); margin: 0 0 var(--space-4); }
.muted { color: var(--ink-muted); }
.hint { font-weight: 400; color: var(--ink-muted); font-size: 14px; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

.bar { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-4); margin-bottom: var(--space-4); }
.card.highlight { background: var(--accent-tint); border-color: var(--accent); border-width: 2px; font: 600 17px/1.55 var(--font-body); color: var(--ink); }
.card.highlight strong { font-family: var(--font-display); font-weight: 700; }
.empty { padding: var(--space-5); text-align: center; color: var(--ink-muted); }

/* Tabellen */
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 13px/1.3 var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--ink); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Knoppen: volledig afgeronde pill zoals bij The Hive, in Hangar-rood met witte tekst */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); font: 700 16px/1.2 var(--font-display); padding: 14px var(--space-4);
  border-radius: var(--radius-pill); border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn.secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: var(--surface); }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn .arrow { color: inherit; }

/* Pills voor korte feiten en status */
.badge { display: inline-flex; align-items: center; font: 700 13px/1.2 var(--font-display); padding: 5px 12px; border-radius: var(--radius-pill);
  border: 2px solid var(--accent); background: var(--surface); color: var(--ink); white-space: nowrap; }
.badge.open { background: var(--accent); color: var(--on-accent); }
.badge.draft { border-color: var(--line); color: var(--ink-muted); }
.badge.cancelled { border-color: var(--ink); text-decoration: line-through; }
.badge.completed { background: var(--band); border-color: var(--band); color: var(--on-band); }

/* Formulieren: randen van invoervelden in ink */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 var(--space-3); align-items: end; }
label .hint { display: block; font: 400 13px/1.4 var(--font-body); margin-top: 2px; }
label { display: block; font: 700 15px/1.3 var(--font-display); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); font: 400 16px/1.4 var(--font-body); background: var(--surface); color: var(--ink); }
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: var(--border-focus) solid var(--accent); outline-offset: 0; }
.field { margin-bottom: var(--space-3); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.error { color: var(--error); font-size: 14px; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font: 400 16px/1.5 var(--font-body); }
.check input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm); margin-bottom: var(--space-2); font: 400 16px/1.5 var(--font-body); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); }
.choice input { margin-top: 5px; accent-color: var(--ink); width: 18px; height: 18px; }
.choice strong { font-family: var(--font-display); font-weight: 700; }
.actions { display: flex; gap: var(--space-3); align-items: center; margin-top: var(--space-2); flex-wrap: wrap; }

.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: var(--space-4); }
.flash.ok { background: var(--accent-tint); color: var(--ink); }
.flash.error { background: var(--error-soft); color: var(--error); }

.tabs { display: flex; gap: var(--space-2); margin: var(--space-3) 0; flex-wrap: wrap; }
.tabs a { font: 700 14px/1.2 var(--font-display); padding: 8px 16px; border-radius: var(--radius-pill); text-decoration: none; color: var(--ink); border: 2px solid var(--accent); background: var(--surface); }
.tabs a.active { background: var(--accent); color: var(--on-accent); }

/* Openbare pagina's */
.summary dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--space-3); margin: 0; }
.summary dt { font: 700 14px/1.6 var(--font-display); color: var(--ink); }
.summary dd { margin: 0; }
.price { font: 800 22px/1.2 var(--font-display); }
.pills { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-2) 0 var(--space-3); }
.totals { width: 100%; }
.totals td { border: 0; padding: 4px 0; }
.totals tr.total td { font: 800 18px/1.4 var(--font-display); border-top: 2px solid var(--ink); padding-top: 10px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Donkere band onderaan, met de URL */
footer.band { background: var(--band); color: var(--on-band); }
footer.band .inner { max-width: 760px; margin: 0 auto; padding: var(--space-4) var(--space-3); display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; font: 600 16px/1.3 var(--font-display); }
footer.band a { color: var(--on-band); text-decoration-color: var(--accent); }

@media (max-width: 700px) {
  table.responsive thead { display: none; }
  table.responsive tr { display: block; border-bottom: 1px solid var(--line); padding: var(--space-2) 0; }
  table.responsive td { display: block; border: 0; padding: 4px 12px; }
  table.responsive td.num { text-align: left; }
}
code { font: 400 13px/1.4 ui-monospace, Menlo, monospace; background: #f4f4f4; padding: 2px 6px; border-radius: 4px; }
header.top nav { flex-wrap: wrap; }
pre.code { background: #f6f6f6; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto;
  font: 400 13px/1.5 ui-monospace, Menlo, monospace; white-space: pre; margin: 0; }
.flash ul, .card ul { margin: 8px 0 0; padding-left: 20px; }

/* Inklapbare groep (cursussen per categorie) */
details.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 0 16px; }
details.group > summary { cursor: pointer; list-style: none; padding: 14px 0; font: 700 17px/1.3 var(--font-display); display: flex; align-items: center; gap: 8px; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::before { content: "›"; display: inline-block; width: 1em; transition: transform 0.15s; color: var(--accent); font-size: 22px; line-height: 1; }
details.group[open] > summary::before { transform: rotate(90deg); }
details.group[open] { padding-bottom: 12px; }

/* Startscherm: blokken naast elkaar op een breed scherm */
.dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: var(--space-4); align-items: start; }
.dash .card { margin-bottom: 0; }
.dash h2 .badge { vertical-align: middle; }
@media (max-width: 600px) { .dash { grid-template-columns: 1fr; } }


/* Dichtklapbare blokken op de editiepagina (Tom, 24/11/2026) */
details.fold > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
details.fold > summary h2::before { content: "›"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform 0.15s; display: inline-block; width: 0.6em; }
details.fold[open] > summary h2::before { transform: rotate(90deg); }
details.fold[open] > summary { margin-bottom: var(--space-3); }
textarea.highlight-input { background: var(--accent-tint); border-color: var(--accent); white-space: pre-wrap; }
.btn.disabled { background: var(--line); border-color: var(--line); color: var(--ink); opacity: 0.7; cursor: not-allowed; }
.btn.disabled:hover { background: var(--line); border-color: var(--line); color: var(--ink); }
dl.profile { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--space-3); margin: 0; }
dl.profile dt { font: 700 14px/1.6 var(--font-display); }
dl.profile dd { margin: 0; }

/* Menu Financiën: uitklapbaar zonder JavaScript */
header.top details.navmenu { position: relative; }
header.top details.navmenu > summary { font: 700 15px/1.2 var(--font-display); color: var(--ink); padding: 10px 18px; border-radius: var(--radius-pill); border: 2px solid transparent; cursor: pointer; list-style: none; }
header.top details.navmenu > summary::-webkit-details-marker { display: none; }
header.top details.navmenu > summary::after { content: " \25BE"; }
header.top details.navmenu > summary:hover, header.top details.navmenu[open] > summary { border-color: var(--accent); }
header.top details.navmenu > summary.active { background: var(--accent); color: var(--on-accent); }
header.top .navmenu-list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
header.top .navmenu-list a { border-radius: var(--radius-sm); }

/* Afdrukken: lijst per uitbetaling op papier. Menu, knoppen en de melding op het scherm verdwijnen. */
@media print {
  @page { size: A4; margin: 15mm; }
  header.top, nav, .no-print, footer { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main, main.narrow { max-width: none; margin: 0; padding: 0; }
  .card { border: none; box-shadow: none; padding: 0; background: #fff; }
  .kicker, .sub, .muted { color: #000; }
  h1 { font-size: 18pt; margin: 0 0 4pt; }
  table { width: 100%; border-collapse: collapse; font-size: 10pt; }
  th, td { border-bottom: 1px solid #999; padding: 4pt 6pt; text-align: left; vertical-align: top; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  a[href]::after { content: none; }
}

/* Status van een aanvraag */
.badge.status-NEW { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.badge.status-LOST { border-color: var(--line); color: var(--ink-muted); }
.badge.status-EXECUTED { background: var(--band); border-color: var(--band); color: var(--on-band); }

/* Twee blokken naast elkaar, even breed en even hoog (klantfiche: gegevens en factuurgegevens) */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: stretch; margin-bottom: var(--space-4); }
.pair > .card { margin-bottom: 0; }
@media (max-width: 800px) { .pair { grid-template-columns: 1fr; } }

/* Bezetting per dagdeel: vrij wit, optie lichtrood met rode rand, bevestigd in het logo-rood, eigen gebruik in zwart */
table.calendar { table-layout: fixed; }
table.calendar th, table.calendar td { padding: 8px 10px; }
table.calendar tr.weekend td:first-child { color: var(--accent); }
table.calendar tr.today td:first-child { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.slot { font-size: 13px; line-height: 1.35; border-left: 1px solid var(--line); }
.slot-free { color: var(--ink-muted); }
.slot-OPTION { background: var(--accent-tint); box-shadow: inset 4px 0 0 var(--accent); }
.slot-CONFIRMED { background: var(--accent); color: var(--on-accent); }
.slot-CONFIRMED a { color: var(--on-accent); }
.slot-OWN_USE { background: var(--hive-yellow); color: var(--ink); }
.slot-OWN_USE a { color: var(--ink); }
.slot-note { font-size: 12px; opacity: 0.8; }

/* Maandkalender bezetting: raster maandag tot zondag, per dag drie balkjes (ochtend, middag, avond) */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mhead { font: 700 13px/1.3 var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; text-align: center; padding: 4px 0; }
.mday { border: 1px solid var(--line); border-radius: 6px; padding: 6px; min-height: 96px; background: var(--surface); display: flex; flex-direction: column; gap: 3px; }
.mday.out { border-color: transparent; background: transparent; }
.mday.we .mnum { color: var(--accent); }
.mday.today { border: 2px solid var(--accent); }
.mnum { font: 700 14px/1.2 var(--font-display); text-decoration: none; color: var(--ink); margin-bottom: 2px; }
.mnum:hover { text-decoration: underline; }
.mweekday { display: none; }
.cbar { display: block; height: 20px; border-radius: 3px; font-size: 12px; line-height: 20px; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }
.cbar.whole { height: 66px; white-space: normal; line-height: 1.3; padding-top: 4px; }
.cbar-free { background: #f1efef; }
.cbar-OPTION { background: var(--accent-tint); color: var(--accent-hover); box-shadow: inset 3px 0 0 var(--accent); border-radius: 0 3px 3px 0; }
.cbar-CONFIRMED { background: var(--accent); color: var(--on-accent); }
.cbar-OWN_USE { background: var(--hive-yellow); color: var(--ink); }
a.cbar:hover { filter: brightness(0.92); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; margin: 12px 0 0; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { display: inline-block; width: 16px; height: 12px; border-radius: 2px; }
/* Op een gsm: een lijst van dagen, de lege vakjes en de kop met weekdagen verdwijnen */
@media (max-width: 700px) {
  .month { grid-template-columns: 1fr; }
  .mhead, .mday.out { display: none; }
  /* Eén regel per dag: dag links, de drie dagdelen naast elkaar */
  .month { gap: 4px; }
  .mday { min-height: 0; display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); align-items: center; gap: 4px; padding: 4px 6px; }
  .mnum { margin: 0; font-size: 13px; }
  .mweekday { display: inline; }
  .cbar { height: 30px; line-height: 30px; font-size: 11px; padding: 0 4px; }
  .cbar.whole { grid-column: span 3; height: 30px; line-height: 30px; padding-top: 0; white-space: nowrap; }
  a.cbar-free span { opacity: 0.55; }
}
/* Gsm: menu op één regel die je opzij schuift, dichter bij de duim */
@media (max-width: 700px) {
  header.top nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  header.top nav::-webkit-scrollbar { display: none; }
  header.top nav a { white-space: nowrap; flex: none; }
  .sub { font-size: 15px; }
}
/* Klikbare kalender: een vrij dagdeel toont "+ ochtend" bij aanwijzen, de gekozen dag krijgt een rand */
a.cbar-free span { visibility: hidden; color: var(--ink-muted); }
a.cbar-free:hover span, a.cbar-free:focus span { visibility: visible; }
.mday.picked { box-shadow: 0 0 0 2px var(--ink); }
@media (hover: none) { a.cbar-free span { visibility: visible; opacity: 0.55; } }
/* Teller naast een titel, bv. het aantal nieuwe aanvragen */
h2 .count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.6em; height: 1.6em; padding: 0 0.4em; margin-left: 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.6em; vertical-align: middle; }
/* Pijplijn op het overzicht: vijf tegels als pijlen, het getal groot */
.pipeline { margin: var(--space-4) 0 var(--space-4); }
.pipeline .steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.pipeline .step { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 12px 14px 12px 26px; min-height: 78px; background: var(--surface-raised, #F7F1F1); color: var(--ink); text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.pipeline .step:first-child { padding-left: 16px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 6px 0 0 6px; }
.pipeline .step .n { font: 800 30px/1 var(--font-display); }
.pipeline .step .l { font: 700 13px/1.25 var(--font-display); margin-top: 4px; }
.pipeline .step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%); border-radius: 0 6px 6px 0; }
.pipeline .step .l.short { display: none; }
.pipeline .step:hover { background: #efe3e3; }
.pipeline .step.status-NEW:not(.zero) { background: var(--accent); color: var(--on-accent); }
.pipeline .step.zero .n { color: var(--ink-muted); opacity: 0.6; }
.pipeline .closed { display: flex; justify-content: flex-end; gap: 18px; margin-top: 8px; font-size: 14px; }
.pipeline .closed a { color: var(--ink-muted); text-decoration: none; }
.pipeline .closed a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 700px) {
  .pipeline .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .pipeline .step, .pipeline .step:first-child { padding: 8px 4px 8px 14px; min-height: 64px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); }
  .pipeline .step:first-child { padding-left: 8px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
  .pipeline .step .n { font-size: 22px; }
  .pipeline .step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%); padding-right: 2px; }
  .pipeline .step .l { display: none; }
  .pipeline .step .l.short { display: block; font-size: 10px; letter-spacing: -0.01em; }
}
/* Overzicht: periode naast een titel en labels per soort event */
h2 .h2-sub { font: 400 14px/1 var(--font-body); margin-left: 8px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 12px/1.3 var(--font-display); white-space: nowrap; }
.tag-prive { background: var(--accent); color: var(--on-accent); }
.tag-b2b { background: var(--ink); color: #fff; }
.tag-agenda { background: var(--accent-tint); color: var(--accent-hover); }
.tag-hive { background: var(--hive-yellow); color: var(--ink); }
/* Vraag na een actie (bv. mail sturen na een optie) */
.card.ask { border-left: 4px solid var(--accent); }
/* Periodekeuze op het overzicht (1 week, 2 weken, 1 maand, alle) */
.period { display: inline-flex; gap: 4px; margin: -4px 0 12px; flex-wrap: wrap; }
.period a { font: 700 12px/1 var(--font-display); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-muted); text-decoration: none; }
.period a:hover { border-color: var(--ink); color: var(--ink); }
.period a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Catalogus */
.small { font-size: 13px; }
table.catalog tr.inactive td { opacity: 0.55; }
details.group > summary { display: flex; align-items: baseline; gap: 12px; cursor: pointer; list-style: none; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary h2 { margin: 0; }
details.group > summary::before { content: "▸"; color: var(--accent); font-size: 18px; transition: transform .15s; }
details.group[open] > summary::before { transform: rotate(90deg); }
details.group[open] > summary { margin-bottom: 12px; }
/* Offerte opmaken */
table.quote-lines input[type=text], table.quote-lines textarea, table.quote-lines select { width: 100%; margin: 0; }
table.quote-lines textarea { margin-top: 4px; font-size: 13px; min-height: 0; }
table.quote-lines .narrow, input.narrow { width: 90px; text-align: right; }
table.quote-lines tfoot td { border-bottom: 0; padding-top: 6px; padding-bottom: 6px; }
table.quote-lines tr.grand td { border-top: 2px solid var(--ink); font-size: 17px; }
button.linklike { background: none; border: 0; color: var(--ink-muted); cursor: pointer; font-size: 16px; padding: 4px 8px; }
button.linklike:hover { color: var(--accent); }
table.quote-lines select { min-width: 76px; }
table.quote-lines td:first-child { min-width: 260px; }
.period.big { gap: 6px; }
.period.big a { font-size: 15px; padding: 9px 18px; border-width: 2px; }
.period.big a.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.period.big a:hover { border-color: var(--accent); color: var(--accent); }
.period.big a.on:hover { color: var(--on-accent); }
/* Gsm (Tom, 30/11/2026): niets mag breder worden dan het scherm */
.pair > *, .dash > *, .grid > * { min-width: 0; }
dd, td, .card a { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  /* Brede tabellen (offerteregels, logboek) schuiven binnen hun blok */
  .card { overflow-x: auto; }
  table.quote-lines { min-width: 560px; }
  table.quote-lines td:first-child { min-width: 180px; }
  .quote-lines input.narrow, table.quote-lines .narrow { width: 64px; }
}
/* Terugknop bovenaan onderliggende schermen */
a.backlink { display: inline-flex; align-items: center; gap: 4px; font: 700 14px/1 var(--font-display); color: var(--ink); text-decoration: none; padding: 8px 14px 8px 10px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 999px; }
a.backlink:hover { border-color: var(--accent); color: var(--accent); }
/* Blokken onder elkaar over de volle breedte */
.stack { display: grid; gap: var(--space-4); margin-bottom: var(--space-4); }
.stack > .card { margin-bottom: 0; }
/* Nieuw sinds je laatste bezoek */
.card.news { border-left: 4px solid var(--accent); }
.ndot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--line); }
.ndot.n-QUOTE_SIGNED { background: var(--accent); }
.ndot.n-OPTION_BOOK { background: var(--hive-yellow); }
.ndot.n-QUOTE_VIEWED { background: var(--ink-muted); }
.ndot.n-OPTION_RELEASE { background: var(--line); border: 2px solid var(--ink-muted); }
/* Instellingen: tegels */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-3); }
a.card.tile { display: block; color: inherit; text-decoration: none; margin: 0; }
a.card.tile:hover { border-color: var(--accent); }
a.card.tile h2 { margin-top: 0; }
