/* DJ A-k — huisstijl. Zwart + goud. Mobiel eerst. */
@font-face { font-family: 'Big Shoulders'; font-weight: 700; font-display: swap; src: url('/static/fonts/big-shoulders-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders'; font-weight: 800; font-display: swap; src: url('/static/fonts/big-shoulders-display-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Big Shoulders'; font-weight: 900; font-display: swap; src: url('/static/fonts/big-shoulders-display-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url('/static/fonts/figtree-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 500; font-display: swap; src: url('/static/fonts/figtree-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url('/static/fonts/figtree-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url('/static/fonts/figtree-latin-700-normal.woff2') format('woff2'); }
/* Hindi (Devanagari): alleen geladen als er Devanagari op de pagina staat (unicode-range). */
@font-face { font-family: 'Noto Sans Devanagari'; font-weight: 100 500; font-display: swap; src: url('/static/fonts/noto-sans-devanagari-devanagari-400-normal.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Noto Sans Devanagari'; font-weight: 600 900; font-display: swap; src: url('/static/fonts/noto-sans-devanagari-devanagari-700-normal.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
  --black: #0B0B0B; --surface: #1A1A1A; --surface-2: #242424; --line: #333;
  --gold: #FFD21F; --gold-dark: #C99A00; --gold-ink: #7A5E00;
  --white: #FFFFFF; --paper: #F6F6F4; --ink: #0B0B0B; --muted: #6B6B6B; --muted-dark: #A8A8A8;
  --ok: #1E7A3C; --warn: #A15C00; --bad: #B3261E; --info: #1F5FA8;
  --r: 12px; --r-sm: 8px;
  --display: 'Big Shoulders', 'Noto Sans Devanagari', Impact, 'Arial Narrow', sans-serif;
  --body: 'Figtree', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tap: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
:is(.site-header, .app-top, .app-nav, .hero, .section-dark, .card-dark, .site-footer) :focus-visible { outline-color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--black); padding: 10px 14px; border-radius: var(--r-sm); z-index: 99; }
.skip:focus { left: 8px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(640px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 24px; } .mb { margin-bottom: 24px; }

/* ---------- Kop en voet (website, donker) ---------- */
.site-header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #222; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.8rem; }
.brand img { width: 44px; height: 44px; }
.brand b { color: var(--gold); font-weight: 900; }
.nav { display: none; gap: 4px; align-items: center; }
.nav a { color: var(--white); text-decoration: none; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.menu-toggle { background: none; border: 1px solid #444; color: var(--white); border-radius: var(--r-sm); min-height: 44px; padding: 0 14px; font: inherit; font-weight: 600; }
.mobile-nav { display: none; background: var(--black); padding: 8px 16px 16px; }
.mobile-nav.open { display: grid; }
.mobile-nav a { color: var(--white); padding: 12px 4px; text-decoration: none; border-bottom: 1px solid #222; font-weight: 600; }
@media (min-width: 900px) { .nav { display: flex; } .menu-toggle, .mobile-nav { display: none !important; } }

.site-footer { background: var(--black); color: var(--muted-dark); padding: 40px 0 28px; margin-top: 64px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer h2, .site-footer h3 { color: var(--gold); font-size: 1.1rem; text-transform: none; }

/* ---------- Hero / banner / slideshow ---------- */
.banner { background: var(--gold); color: var(--black); text-align: center; padding: 10px 16px; font-weight: 700; }
.hero { background: radial-gradient(1200px 400px at 70% 0, #2a2300 0, var(--black) 60%); color: var(--white); padding: 56px 0 64px; }
.hero h1 { color: var(--white); }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead { font-size: 1.2rem; color: #DDD; max-width: 40ch; }
.slides { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 16/9; background: var(--surface); }
.slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s; }
.slides figure.on { opacity: 1; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.slides figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: var(--white); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .slides figure { transition: none; } }

/* ---------- Knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: var(--r-sm); border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--black); color: var(--gold); }
.btn:hover { filter: brightness(1.15); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #CFCFCF; }
.dark .btn-ghost, .hero .btn-ghost { color: var(--white); border-color: #555; }
.btn-danger { background: var(--bad); color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 12px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--gold-ink); text-decoration: underline; cursor: pointer; }

/* ---------- Kaarten ---------- */
.card { background: var(--white); border-radius: var(--r); padding: 20px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 2px 10px rgba(0,0,0,.05); }
.card h2, .card h3 { margin-top: 0; }
.card-dark { background: var(--surface); color: var(--white); }
.card-link { display: block; text-decoration: none; color: inherit; transition: transform .15s; }
.card-link:hover { transform: translateY(-2px); }
.service-card img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 12px; background: var(--surface-2); }
.price { font-weight: 800; font-size: 1.15rem; }
.todo { border-left: 6px solid var(--gold); }
.tip { background: #FFF8D6; border: 1px solid #F2D873; border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }

/* ---------- Formulieren ---------- */
form .field { margin-bottom: 16px; }
label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { font-size: .9rem; color: var(--muted); margin-top: 4px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=month], input[type=time], input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 12px; border: 1.5px solid #BDBDBD; border-radius: var(--r-sm); font: inherit; background: var(--white); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--black); outline: 3px solid var(--gold); outline-offset: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--black); }
.error-text { color: var(--bad); font-weight: 600; font-size: .95rem; }
fieldset { border: 1px solid #DDD; border-radius: var(--r); padding: 16px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; }

/* ---------- Meldingen en labels ---------- */
.flash { padding: 14px 16px; border-radius: var(--r-sm); margin: 16px 0; font-weight: 600; }
.flash-ok { background: #E6F4EA; color: var(--ok); }
.flash-error { background: #FDECEA; color: var(--bad); }
.flash-info { background: #E8F0FB; color: var(--info); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: #EEE; color: #333; white-space: nowrap; }
.b-request { background: #E8F0FB; color: var(--info); }
.b-option, .b-partial, .b-pending { background: #FFF3D1; color: var(--warn); }
.b-quoted, .b-sent { background: #F3E8FF; color: #6A2BB0; }
.b-confirmed, .b-paid, .b-signed { background: #E6F4EA; color: var(--ok); }
.b-cancelled, .b-expired, .b-void { background: #FDECEA; color: var(--bad); }
.b-done, .b-draft, .b-superseded { background: #EEE; color: #555; }
.b-open { background: #FFF3D1; color: var(--warn); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #ECECEC; vertical-align: top; }
th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
td.num, th.num { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 700; }
@media (max-width: 640px) {
  table.cards thead { display: none; }
  table.cards tr { display: block; border-bottom: 1px solid #E0E0E0; padding: 8px 0; }
  table.cards td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 12px; }
  table.cards td::before { content: attr(data-label); font-weight: 600; color: var(--muted); }
}

/* ---------- Portaal / beheer schil ---------- */
.app-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.app-top { background: var(--black); color: var(--white); }
.app-top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.app-top a { color: var(--white); }
.app-nav { background: var(--surface); overflow-x: auto; white-space: nowrap; }
.app-nav a { display: inline-block; color: #DDD; text-decoration: none; padding: 14px 14px; font-weight: 600; border-bottom: 3px solid transparent; }
.app-nav a[aria-current="page"], .app-nav a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.app-user { flex-wrap: nowrap; min-width: 0; }
.app-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
@media (max-width: 480px) { .app-user-name { display: none; } }
.app-main { padding: 24px 0 64px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 0; }
.kpi { background: var(--white); border-radius: var(--r); padding: 16px; }
.kpi b { display: block; font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.kpi span { color: var(--muted); font-size: .92rem; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: #E9E9E9; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.tabs a[aria-current="page"] { background: var(--black); color: var(--gold); }
.switch-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #EEE; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar .d { text-align: center; padding: 10px 0; border-radius: var(--r-sm); background: var(--white); border: 1px solid #E3E3E3; font-weight: 600; }
.calendar .d.busy { background: #F1F1F1; color: #AAA; text-decoration: line-through; }
.calendar .d.free { border-color: #9AD3A8; }
.calendar .d.sel { background: var(--black); color: var(--gold); }
.calendar .h { text-align: center; font-size: .8rem; color: var(--muted); font-weight: 700; }
.sigpad { width: 100%; height: 180px; border: 2px dashed #BDBDBD; border-radius: var(--r-sm); background: var(--white); touch-action: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.doc { background: var(--white); padding: 24px; border-radius: var(--r); }
.doc h1 { font-size: 1.8rem; text-transform: none; }
.prose h2 { font-size: 1.4rem; text-transform: none; margin-top: 1.2em; }
.steps { display: flex; gap: 8px; margin-bottom: 20px; }
.steps span { flex: 1; height: 6px; border-radius: 3px; background: #DDD; }
.steps span.on { background: var(--gold-dark); }
@media print { .site-header, .site-footer, .app-top, .app-nav, .no-print { display: none !important; } body { background: #fff; } }

/* --- website/portaal --- */
.mt-s { margin-top: 12px; }
.h3 { font-size: 1.35rem; text-transform: none; }
.kicker { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } }
.hero-home h1 { font-size: clamp(2.6rem, 8vw, 5rem); line-height: .95; }
.hero-sm { padding: 40px 0 36px; }
.hero-sm h1 { margin-bottom: .2em; }
.hero .lead { margin-bottom: 0; }
.crumbs, .crumbs a { color: #BBB; }
.eq { display: flex; align-items: flex-end; gap: 6px; height: 220px; padding: 20px; border-radius: var(--r); background: linear-gradient(180deg, #151515, #0B0B0B); border: 1px solid #2a2a2a; }
.eq span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(0deg, var(--gold-dark), var(--gold)); animation: eq 1.6s ease-in-out calc(var(--i) * -.13s) infinite alternate; transform-origin: bottom; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .eq span { animation: none; } }
.section { padding: 48px 0 8px; }
.section-dark { background: var(--black); color: var(--white); padding: 40px 0; margin-top: 48px; }
.section-dark h2 { color: var(--white); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head a { font-weight: 700; }
.section-dark .section-head a { color: var(--gold); }
.service-card { display: flex; flex-direction: column; }
.service-card :is(h2, h3) { margin-bottom: 6px; }
.service-card .more { margin-top: auto; font-weight: 700; color: var(--gold-ink); }
.service-card .ph { aspect-ratio: 5/2; border-radius: var(--r-sm); margin-bottom: 12px; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #2a2300, var(--black) 70%); }
.service-card .ph span { font-family: var(--display); font-weight: 900; font-size: 4.5rem; color: var(--gold); }
@media (min-width: 720px) { .service-card .ph { aspect-ratio: 16/9; } }
.price { margin: 4px 0 10px; }
.price-sub { display: block; font-weight: 500; font-size: .9rem; color: var(--muted); }
.card-dark .price-sub { color: #BBB; }
.price-muted { font-weight: 600; font-size: 1rem; color: var(--muted); }
.card-dark .price-muted, .card-dark .price-muted a { color: var(--gold); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 18px; border-radius: 999px; border: 1.5px solid #444; color: var(--white); text-decoration: none; font-weight: 600; }
.chips a:hover { border-color: var(--gold); color: var(--gold); }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: how; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { background: var(--white); border-radius: var(--r); padding: 20px; position: relative; }
.how b { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--black); color: var(--gold); font-family: var(--display); font-size: 1.5rem; margin-bottom: 10px; }
.cta { background: var(--gold); color: var(--black); padding: 36px 0; margin-top: 56px; }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; }
.cta .btn-gold { background: var(--black); color: var(--gold); }
.detail { display: grid; gap: 24px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.6fr 1fr; align-items: start; } .detail-side { position: sticky; top: 84px; } }
.detail-main { margin: 0; }
.detail-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); background: var(--surface); }
.detail-side .btn-ghost { color: var(--white); border-color: #555; }
.notice { background: #2a2300; border: 1px solid #5c4a00; color: #FFE680; border-radius: var(--r-sm); padding: 10px 12px; font-size: .95rem; }
.notice-inline { color: var(--warn); font-weight: 600; margin: 2px 0; }
.ok-text { color: var(--ok); font-weight: 600; font-size: .95rem; }
.list-steps { padding-left: 1.2em; }
.list-steps li { margin-bottom: 6px; }
.tel { font-size: 1.3rem; font-weight: 800; color: var(--gold) !important; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 4px; }
.prose h3 { font-size: 1.15rem; margin-top: 1em; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 4px 0; }

/* Portaal */
.narrow-wide { width: min(820px, 100%); margin-inline: auto; }
.empty { text-align: center; padding: 32px 20px; }
.res-card h3 a { color: var(--ink); text-decoration: none; }
.res-card h3 a:hover { text-decoration: underline; }
.todo-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 6px; font-family: var(--body); }
.todo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.todo-list a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); background: #F3F3F1; color: var(--ink); text-decoration: none; font-weight: 600; }
.todo-list li.urgent a { background: #E8F0FB; color: var(--info); }
.todo-list a:hover { filter: brightness(.97); }
.timeline-status { list-style: none; padding: 0; margin: 0; }
.timeline-status li { padding: 6px 0 6px 28px; position: relative; color: var(--muted); }
.timeline-status li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #BDBDBD; }
.timeline-status li.done { color: var(--ink); font-weight: 600; }
.timeline-status li.done::before { background: var(--ok); border-color: var(--ok); }
.dl { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 6px 16px; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }
.plainset { border: 0; padding: 0; margin: 0; }
.needs { border-color: var(--warn); background: #FFF8EC; }

/* Aanvraag */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-month { font-family: var(--display); font-size: 1.4rem; text-transform: capitalize; }
.calendar button.d { font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; color: var(--ink); }
.calendar button.d:hover { border-color: var(--black); }
.calendar .d { min-height: 44px; padding: 8px 0; }
.key { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin: 0 4px 0 8px; }
.key-free { border: 2px solid #9AD3A8; background: var(--white); }
.key-busy { background: #E3E3E3; }
.pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #EEE; }
.pick-main { flex: 1; min-width: 0; }
.pick-main label { margin: 0; }
.pick-qty { display: flex; align-items: center; gap: 8px; flex: none; }
.pick-qty input { width: 84px; text-align: center; }
.pick-out { opacity: .6; }
.nowrap-row { flex-wrap: nowrap; }
form.is-sending button { opacity: .7; cursor: progress; }

/* Draaiboek, muziek, berichten */
.tl { list-style: none; padding: 0; margin: 12px 0 0; }
.tl > li { display: grid; grid-template-columns: 64px 1fr; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid #EEE; }
.tl-time { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--gold-ink); }
.tl-actions { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.tl-edit { grid-column: 1 / -1; }
@media (min-width: 720px) { .tl > li { grid-template-columns: 80px 1fr auto; } .tl-actions { grid-column: auto; } }
.tl-grid { grid-template-columns: 130px 1fr; }
.songs { list-style: none; padding: 0; margin: 0; }
.songs li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EEE; }
.chat { display: grid; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: var(--r); background: #F3F3F1; }
.msg-staff { background: var(--black); color: var(--white); }
.msg-staff .muted { color: #BBB; }
.msg-me { justify-self: end; background: #FFF3B8; }

/* Offerte, contract, tekenen */
.doc-card .lines td, .doc-card .lines th { font-size: .95rem; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; max-width: 420px; margin: 12px 0 16px auto; }
.totals dt { text-align: right; color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals .grand { color: var(--ink); font-weight: 800; font-size: 1.1rem; border-top: 2px solid var(--ink); padding-top: 6px; }
.contract { background: var(--paper); border-radius: var(--r-sm); padding: 16px 18px; max-height: 480px; overflow: auto; margin: 12px 0; }
.sign { border-top: 2px solid var(--gold-dark); margin-top: 20px; padding-top: 16px; }
.signed { background: #E6F4EA; color: var(--ok); border-radius: var(--r-sm); padding: 10px 12px; margin: 12px 0; }
.hash { word-break: break-all; font-size: .8rem; }

/* --- beheer --- */
.mb0 { margin-bottom: 0; }
.mb-s { margin-bottom: 8px; }
.grow { flex: 1 1 220px; }
.app-main .card + .card { margin-top: 16px; }
.app-main .grid > .card + .card { margin-top: 0; }
a.kpi { display: block; color: inherit; text-decoration: none; border: 2px solid transparent; }
a.kpi:hover { border-color: var(--gold-dark); }
.kpi-bad b { color: var(--bad); }
.admin-todo { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.admin-todo a { font-weight: 600; }
.todo-bad { border-left-color: var(--bad); }
.filters { padding: 16px; }
.filter-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .filter-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; } }
.filter-grid .field { margin-bottom: 0; }
.filter-actions { display: flex; gap: 8px; }
.inline-form { align-items: flex-end; }
.inline-form .field { margin-bottom: 0; }
select.select-sm, input.input-sm, input.input-num { min-height: 40px; padding: 6px 10px; font-size: .95rem; }
input.input-num { width: 100%; min-width: 72px; max-width: 120px; }
.quote-lines td { vertical-align: middle; }
.quote-lines input, .quote-lines select { min-width: 0; }
@media (min-width: 900px) { .quote-lines td:nth-child(2) { min-width: 220px; } }
.note-internal { background: #FFF8D6; border-radius: var(--r-sm); padding: 10px 12px; }
.contract-row { border-bottom: 1px solid #EEE; padding: 10px 0; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.thread li { padding: 10px 14px; border-radius: var(--r); max-width: 85%; }
.thread .from-customer { background: #F1F1EF; justify-self: start; }
.thread .from-staff { background: #FFF3D1; justify-self: end; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: #E4E4E4; display: block; }
.media-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.media-item { margin: 0; background: #FAFAF8; border: 1px solid #E6E6E6; border-radius: var(--r); padding: 10px; }
.media-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 8px; }
.media-item label { margin: 6px 0 2px; }
.mono, .terms-pre, .log-pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; }
.terms-pre, .log-pre { white-space: pre-wrap; word-break: break-word; background: #F6F6F4; padding: 10px; border-radius: var(--r-sm); max-height: 360px; overflow: auto; margin: 6px 0 0; }
.log-table td { font-size: .95rem; }
input.switch { width: 26px; height: 26px; flex: none; accent-color: var(--black); }
.switch-row label { margin-bottom: 2px; }
.month-name { font-family: var(--display); font-size: 1.4rem; text-transform: capitalize; min-width: 10ch; text-align: center; }
.plan-grid { display: grid; gap: 6px; }
.plan-dow { display: none; }
.plan-day { background: var(--white); border-radius: var(--r-sm); padding: 8px; border: 1px solid #E3E3E3; min-height: 64px; }
.plan-empty { display: none; }
.plan-pad { display: none; }
.plan-today { border: 2px solid var(--gold-dark); }
.plan-date { font-size: .9rem; margin-bottom: 4px; }
.plan-item { display: block; border-radius: 6px; padding: 4px 6px; margin-bottom: 4px; text-decoration: none; color: var(--ink); background: #F1F1EF; font-size: .9rem; line-height: 1.3; }
.plan-item.plan-confirmed, .plan-item.plan-done { background: #E6F4EA; }
.plan-item.plan-option { background: #FFF3D1; }
.plan-item.plan-quoted { background: #F3E8FF; }
.plan-item.plan-request { background: #E8F0FB; }
.plan-mat summary { cursor: pointer; }
.plan-over summary { color: var(--bad); font-weight: 700; }
@media (min-width: 900px) {
  .plan-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .plan-dow { display: block; text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
  .plan-empty, .plan-pad { display: block; }
  .plan-pad { background: transparent; border: 0; }
  .plan-wd { display: none; }
  .plan-day { min-height: 110px; }
}
.pager { justify-content: center; }

/* --- review UI (toegankelijkheid en mobiel) --- */
/* Grid-kinderen mogen smaller worden dan hun inhoud: anders duwt de scrollende navigatie de hele pagina breder dan het scherm. */
.app-shell > * { min-width: 0; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; }
.linkbtn { min-height: 44px; display: inline-flex; align-items: center; }
.app-top .row > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.card h2.mt, .card h3.mt { margin-top: 24px; }
/* Dienstkaart: hele kaart klikbaar via de kop-link, zonder geneste links */
.service-card { position: relative; }
.service-card :is(h2, h3) a.stretch { color: inherit; text-decoration: none; }
.service-card :is(h2, h3) a.stretch::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); }
.service-card :is(h2, h3) a.stretch:focus-visible { outline: none; }
.service-card:focus-within { outline: 3px solid var(--black); outline-offset: 2px; }
.service-card .price a { position: relative; z-index: 1; }
.service-card:hover h3 a.stretch { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .card-link, .card-link:hover { transition: none; transform: none; } }
/* Taken: 'nu doen' niet alleen met kleur aangeven */
.todo-tag { margin-left: auto; margin-right: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
/* Foutmelding bij een veld */
.field-error { color: var(--bad); font-weight: 600; font-size: .95rem; margin: 6px 0 0; }
[aria-invalid="true"] { border-color: var(--bad) !important; }
/* Beheer: kerncijfers compact op mobiel */
.admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .admin-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.admin-kpis .kpi b { font-size: clamp(1.6rem, 6vw, 2.2rem); overflow-wrap: anywhere; }
.app-top .brand { white-space: nowrap; flex: none; }
.brand-sub { font-family: var(--body); color: #BBB; font-weight: 600; }
@media (max-width: 480px) { .app-top .brand { font-size: 1.5rem; } .brand-sub { display: none; } .app-top .wrap { gap: 8px; } }
.quote-lines td:first-child select { min-width: 140px; }
@media (max-width: 640px) {
  /* Kaartweergave: geen dubbele totaalregels, en invoervelden op volle breedte onder hun label */
  table.cards tfoot td:not([data-label]) { display: none; }
  table.cards.quote-lines td { flex-wrap: wrap; }
  table.cards.quote-lines td::before { flex: 0 0 100%; }
  table.cards.quote-lines td > input, table.cards.quote-lines td > select { flex: 1 1 100%; max-width: none; }
}
.slides-pause { position: absolute; top: 10px; right: 10px; z-index: 2; min-height: 44px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid #555; background: rgba(11,11,11,.8); color: var(--white); font: inherit; font-weight: 600; cursor: pointer; }
.slides-pause:focus-visible { outline: 3px solid var(--gold); }
.todo-tag { white-space: nowrap; }
@media (max-width: 640px) { table.cards.quote-lines td.num { flex-wrap: nowrap; } table.cards.quote-lines td.num::before { flex: 1 1 auto; text-align: left; } }

/* --- i18n --- */
/* Taalwisselaar: smalle balk boven de kop (website en portaal). */
.lang-bar { background: #050505; border-bottom: 1px solid #1d1d1d; font-size: .82rem; }
.site-header .lang-bar .wrap, .app-top .lang-bar .wrap { min-height: 0; display: block; }
.lang-switch ul { list-style: none; margin: 0; padding: 4px 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 4px; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; border-radius: 6px; color: var(--muted-dark); text-decoration: none; font-weight: 600; }
.lang-switch a:hover { color: var(--white); }
.lang-switch a[aria-current="true"] { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.lang-bar-app { border-top: 1px solid #1d1d1d; }
/* Lange Franse/Spaanse woorden: knoppen en tabs mogen afbreken in plaats van over de rand te lopen. */
.btn { max-width: 100%; text-align: center; line-height: 1.2; white-space: normal; overflow-wrap: break-word; }
.btn-sm, .tip .btn { white-space: nowrap; flex: none; }
.btn-sm { padding-top: 6px; padding-bottom: 6px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.tabs a { white-space: nowrap; }
/* Hindi: Big Shoulders heeft geen Devanagari, hoofdletters bestaan niet; ruimere regelhoogte voor matra's. */
:lang(hi) body, body:lang(hi) { line-height: 1.75; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(hi) .kicker, :lang(hi) .h3 { text-transform: none; letter-spacing: 0; line-height: 1.35; font-weight: 700; }
:lang(hi) h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); }
:lang(hi) .hero-home h1 { font-size: clamp(2.1rem, 6.5vw, 3.8rem); line-height: 1.3; }
:lang(hi) th, :lang(hi) .todo-tag, :lang(hi) .todo-title { text-transform: none; letter-spacing: 0; }
:lang(hi) .btn { line-height: 1.4; }
.offline section { margin-bottom: 28px; }
/* Langere menuwoorden (fr/es): portaalmenu op smalle schermen iets compacter (blijft scrollbaar). */
@media (max-width: 480px) { .app-nav a { padding: 14px 9px; font-size: .95rem; } }

/* --- pwa --- */
/* Melding "Zet DJ A-k op je beginscherm" (alleen portaal). Neemt geen focus; gewone region. */
.install { position: sticky; bottom: 0; z-index: 15; background: var(--black); color: var(--white); border-top: 2px solid var(--gold); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(0,0,0,.25); }
.install[hidden], .install [hidden] { display: none !important; }
.install-inner { display: grid; grid-template-columns: 48px 1fr; gap: 10px 14px; align-items: center; }
.install-icon { border-radius: 10px; }
.install-text h2 { color: var(--gold); margin: 0 0 2px; font-size: 1.15rem; text-transform: none; }
.install-text p { margin: 0; color: #DDD; }
.install-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.install-actions .btn-ghost { color: var(--white); border-color: #555; }
.share-icon { display: inline-flex; vertical-align: -3px; color: var(--gold); }
@media (min-width: 700px) { .install-inner { grid-template-columns: 48px 1fr auto; } .install-actions { grid-column: auto; } }

/* --- beheer: vertalingen --- */
.tr-block { border: 1px dashed #CFCFCB; border-radius: var(--r-sm); padding: 8px 12px; background: #FBFBF9; }
.tr-block summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tr-lang { margin-top: 10px; }

/* --- hulp --- */
/* Veelgestelde vragen in het portaal: uitklapbaar per vraag, grote tikvlakken. */
.help-q { padding: 0; }
.help-q summary { cursor: pointer; font-weight: 700; min-height: 48px; padding: 14px 18px; display: flex; align-items: center; }
.help-q[open] summary { border-bottom: 1px solid #E5E5E0; }
.help-q p { margin: 0; padding: 14px 18px 18px; }

/* --- review2: taalwisselaar als formulier (portaal), installmelding --- */
.lang-switch button { display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--muted-dark); font: inherit; font-weight: 600; cursor: pointer; }
.lang-switch button:hover { color: var(--white); }
.lang-switch button[aria-current="true"] { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
/* Vaste installmelding onderaan mag een element met focus niet bedekken (WCAG 2.4.11). */
html:has(.install:not([hidden])) { scroll-padding-bottom: 160px; }
/* --- knoppentest (2026-11-25): tikdoelen minimaal 44 px op telefoons --- */
.lang-switch a, .lang-switch button { min-height: 44px; }
.check { min-height: 44px; align-items: center; }
.check input { margin-top: 0; }
select.select-sm, input.input-sm, input.input-num { min-height: 44px; }
.btn-sm { min-width: 44px; }
summary { min-height: 44px; padding: 10px 0; box-sizing: border-box; cursor: pointer; }
.tr-block summary { min-height: 44px; }
.lang-switch a, .lang-switch button { min-width: 44px; justify-content: center; }
@media (max-width: 420px) { .calendar { gap: 2px; margin-inline: -6px; } }
.app-top .app-user { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }

/* --- tweestaps (2FA) --- */
.mfa-code { font-size: 1.4rem; letter-spacing: .2em; font-variant-numeric: tabular-nums; max-width: 16rem; }
.mfa-steps { padding-left: 1.4em; margin: 0; }
.mfa-steps li + li { margin-top: 24px; }
.mfa-qr { display: block; background: #fff; padding: 8px; border-radius: var(--r-sm); max-width: 100%; height: auto; }
.mfa-secret, .mfa-codes code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; word-break: break-all; }
.mfa-codes { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
@media print { .mfa-codes { grid-template-columns: repeat(2, auto); } }

/* --- crew --- */
.b-planned, .b-submitted { background: #FFF3D1; color: var(--warn); }
.b-declined, .b-rejected { background: #FDECEA; color: var(--bad); }
.b-approved, .b-noted { background: #E6F4EA; color: var(--ok); }
.b-new { background: var(--gold); color: var(--black); }
.crew-main h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.crew-list { list-style: none; padding: 0; margin: 0 0 12px; }
.crew-job + .crew-job, .crew-av + .crew-av { border-top: 1px solid #E4E4E4; }
.crew-job-link { display: grid; gap: 4px; padding: 14px 4px; min-height: var(--tap); color: var(--ink); text-decoration: none; }
.crew-job-link:hover .crew-job-date, .crew-job-link:focus-visible .crew-job-date { text-decoration: underline; }
.crew-job-what { color: #333; }
.crew-job-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crew-av { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; }
.crew-big { font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1.1; margin: 0 0 6px; }
.crew-today { border-left: 6px solid var(--gold); }
.crew-today-job + .crew-today-job { border-top: 1px solid #E4E4E4; margin-top: 12px; padding-top: 12px; }
.crew-actions { display: grid; gap: 10px; margin-top: 12px; }
.crew-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crew-dl { margin: 0; display: grid; gap: 10px; }
.crew-dl > div { display: grid; gap: 2px; }
.crew-dl dt { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.crew-dl dd { margin: 0; font-size: 1.05rem; }
.crew-respond { display: grid; gap: 10px; margin-top: 16px; }
.crew-decline summary { list-style: none; }
.crew-decline summary::-webkit-details-marker { display: none; }
.crew-decline[open] summary { margin-bottom: 10px; }
.crew-tel { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; font-size: 1.1rem; }
.crew-people, .crew-music { list-style: none; padding: 0; margin: 0; }
.crew-people li, .crew-music li { padding: 8px 0; border-bottom: 1px solid #EEE; }
.crew-choice { align-items: flex-start; padding: 10px 0; }
.crew-kpis .kpi { border: 1px solid #E4E4E4; }
.crew-qr { text-align: center; }
.crew-qr-img svg { width: min(72vw, 320px); height: auto; background: #fff; border-radius: var(--r-sm); }
.crew-qr-name { margin: 8px 0 0; }
.crew-qr-full { position: fixed; inset: 0; z-index: 1000; background: #FFFFFF; color: var(--black); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
.crew-qr-full .crew-qr-img svg { width: min(92vw, 92vh - 140px); }
.crew-qr-full .crew-qr-name { font-size: 1.3rem; }
.crew-qr-close { margin-top: 16px; }
.crew-url { word-break: break-all; }
/* Beheer */
.crew-missing { background: #FDECEA; }
.crew-assign { padding: 12px 0; border-bottom: 1px solid #EEE; }
.crew-assign-declined { opacity: .75; }
.crew-assign-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 8px 0 4px; }
.crew-assign-form .grow { flex: 1 1 200px; }
.crew-cand { display: flex; gap: 10px; align-items: flex-start; padding: 10px 8px; border-radius: var(--r-sm); }
.crew-cand-busy { background: #FFF6F5; }
.crew-leave + .crew-leave { border-top: 1px solid #EEE; margin-top: 10px; padding-top: 10px; }
.crew-balance { width: 100%; border-collapse: collapse; }
.crew-balance th, .crew-balance td { padding: 6px 4px; border-bottom: 1px solid #EEE; text-align: left; }
.crew-bar-cell { width: 40%; }
.crew-bar { display: block; height: 10px; border-radius: 5px; background: var(--gold-dark); min-width: 2px; }
.crew-hours-row p { margin: 0 0 4px; }
/* Publiek visitekaartje */
.crew-card-page { background: var(--black); color: var(--white); min-height: 100vh; display: flex; align-items: center; justify-content: center; margin: 0; }
.crew-vcard { width: min(92vw, 420px); background: var(--surface); border-radius: var(--r); padding: 28px 22px; text-align: center; display: grid; gap: 12px; }
.crew-vcard-brand { font-family: var(--display); font-size: 2rem; font-weight: 900; margin: 0; }
.crew-vcard-brand b { color: var(--gold); }
.crew-vcard-name { font-size: 2rem; margin: 0; color: var(--white); }
.crew-vcard-role { color: var(--gold); font-weight: 700; margin: 0; }
.crew-vcard-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.crew-vcard-lines a { color: var(--white); display: inline-flex; align-items: center; min-height: var(--tap); font-size: 1.1rem; }
.crew-vcard .btn-ghost { color: var(--white); border-color: #555; }
.crew-vcard-org { color: var(--muted-dark); margin: 0; }

/* --- materiaal --- */
/* Tagnummer, voortgangsbalk, foto (beheer) */
.mat-tag { display: inline-block; font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .04em; background: var(--black); color: var(--gold); border-radius: 6px; padding: 1px 8px; }
.mat-tag-lg { font-size: .8em; padding: 2px 10px; vertical-align: .15em; }
.mat-progress { height: 14px; border-radius: 999px; background: #DCDCD8; overflow: hidden; margin: 8px 0; }
.mat-progress span { display: block; height: 100%; background: var(--ok); transition: width .25s; }
.mat-photo { max-width: 320px; border-radius: var(--r-sm); margin-bottom: 8px; }
.mat-assign li { gap: 6px 10px; padding: 6px 0; border-bottom: 1px solid #EEE; }
.mat-phase { border: 1px solid #E5E5E0; border-radius: var(--r-sm); padding: 12px; }
.mat-report form { margin-top: 4px; }
/* Scanpagina's (telefoon, één hand, fel licht: groot en hoog contrast) */
.scan-box .scan-camera { position: relative; margin-bottom: 12px; border-radius: var(--r); overflow: hidden; background: #000; }
.scan-video { width: 100%; max-height: 50vh; object-fit: cover; display: block; }
.scan-input { font-size: 1.4rem; min-height: var(--tap); letter-spacing: .08em; }
.scan-msg { min-height: 1.6em; margin: 12px 0 0; font-weight: 700; font-size: 1.1rem; }
.scan-msg[data-kind="ok"] { color: var(--ok); }
.scan-msg[data-kind="info"] { color: var(--warn); }
.scan-msg[data-kind="error"] { color: var(--bad); }
.scan-progress p { font-size: 1.15rem; }
.scan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scan-item form { margin: 0; }
.scan-tick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border: 2px solid #CFCFCB; border-radius: var(--r-sm); background: var(--white); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.scan-item.in-case .scan-tick { margin-left: 22px; width: calc(100% - 22px); }
.scan-item.is-case .scan-tick { border-color: var(--black); background: #F1F1EE; }
.scan-check { flex: 0 0 30px; height: 30px; border: 3px solid #8A8A85; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.scan-item.is-done .scan-tick { border-color: var(--ok); background: #E6F4EA; }
.scan-item.is-done .scan-check { background: var(--ok); border-color: var(--ok); color: var(--white); }
.scan-item.is-done .scan-check::after { content: '✓'; }
.scan-item.is-pending .scan-tick { border-style: dashed; border-color: var(--warn); }
.scan-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.scan-sub { flex-basis: 100%; color: var(--muted); }
.scan-sep { margin-top: 10px; font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; color: var(--muted); }
.scan-reason { border: 1px solid #E5E5E0; border-radius: var(--r-sm); padding: 8px 12px; margin: 0 0 8px; }
.scan-reason select { min-height: var(--tap); }
.scan-dl { display: grid; gap: 6px; margin: 0; }
.scan-dl div { display: flex; gap: 10px; flex-wrap: wrap; }
.scan-dl dt { font-weight: 700; min-width: 9em; }
.scan-dl dd { margin: 0; }
.scan-job { border-top: 1px solid #E5E5E0; padding-top: 10px; margin-top: 10px; }
/* QR-labels printen: A4 3×8 (70×37 mm) of labelprinter 62 mm */
.mat-print { background: #fff; }
.mat-print-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; background: var(--paper); border-bottom: 1px solid #DDD; }
.mat-label { display: flex; gap: 3mm; align-items: center; overflow: hidden; color: #000; box-sizing: border-box; }
.mat-qr { flex: 0 0 auto; }
.mat-qr svg { width: 100%; height: 100%; display: block; }
.mat-label-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.mat-label-tag { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 22pt; font-weight: 800; letter-spacing: .04em; }
.mat-label-name { font-size: 9pt; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-label-type, .mat-label-brand { font-size: 7.5pt; }
.mat-print-a4 .mat-sheet { display: grid; grid-template-columns: repeat(3, 70mm); grid-auto-rows: 37mm; width: 210mm; margin: 0 auto; }
.mat-print-a4 .mat-label { width: 70mm; height: 37mm; padding: 3mm 4mm; outline: 1px dashed #CCC; }
.mat-print-a4 .mat-qr { width: 29mm; height: 29mm; }
.mat-print-62mm .mat-sheet { display: grid; gap: 4mm; justify-content: center; }
.mat-print-62mm .mat-label { width: 62mm; height: 29mm; padding: 2mm 3mm; outline: 1px dashed #CCC; }
.mat-print-62mm .mat-qr { width: 25mm; height: 25mm; }
.mat-print-62mm .mat-label-tag { font-size: 20pt; }
@media print {
  .mat-print-a4 { margin: 0; }
  .mat-print .mat-label { outline: 0; break-inside: avoid; }
  .mat-print-62mm .mat-sheet { display: block; }
  .mat-print-62mm .mat-label { break-after: page; }
}
/* Eigen paginanaam: marges 0 alleen voor labelvellen, niet voor andere afdrukken. */
.mat-print .mat-sheet { page: matlabels; }
@page matlabels { margin: 0; }

/* --- integratie 1.1 --- */
/* Gridkolommen mogen smaller worden dan hun langste woord/code (geen horizontale overloop op 390 px). */
.grid > * { min-width: 0; }
code { overflow-wrap: anywhere; }
/* Bestandskiezers: tikdoel minimaal 44 px hoog. */
input[type="file"] { min-height: 44px; padding: 8px 0; max-width: 100%; }
/* Melding bij een formulierveld (portaal/crew: invoer blijft staan na een fout). */
.field-error { color: var(--bad); font-weight: 600; margin: 4px 0 0; }
/* Schakelaars (Instellingen): tikdoel 44 px, ook los van het label. */
input.switch { width: 44px; height: 44px; }
/* --- snelheid (review SEO/snelheid) --- */
/* Het woord "हिन्दी" in de taalkeuze laadt anders op élke pagina het Devanagari-lettertype (~54 kB).
   Buiten de Hindi-pagina's: systeemlettertype voor dat ene woord. */
html:not([lang="hi"]) .lang-switch [lang="hi"] { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
/* Vragenblok homepage (FAQ) */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid #ddd; padding: 4px 0; }
.faq summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; }
.faq details p { margin: 0 0 14px; }

/* --- eindreview UI --- */
/* Gouden knop in de kop: tekst zwart (was wit op goud, contrast 1,4:1), ook bij hover/actief. */
.nav a.btn-gold, .nav a.btn-gold:hover, .nav a.btn-gold[aria-current="page"],
.app-top a.btn-gold, .app-top a.btn-gold:hover { color: var(--black); }
.nav a.btn-gold:hover, .app-top a.btn-gold:hover { background: var(--gold-dark); }
/* Navigatiebalk portaal/crew/beheer: niets meer onzichtbaar buiten beeld (Hulp, Mijn kaartje, Logboek); breekt af naar een tweede regel. */
.app-nav { white-space: normal; overflow-x: visible; }
.app-nav .wrap { display: flex; flex-wrap: wrap; column-gap: 2px; }
.app-nav a { min-height: 48px; display: inline-flex; align-items: center; }
@media (max-width: 480px) { .app-nav a { padding: 10px 9px; } }
@media (min-width: 481px) { .app-nav a { padding: 12px 8px; font-size: .95rem; } }
/* Minder beweging voor wie dat in het systeem heeft ingesteld (alle animaties en overgangen). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Aanvraag: "niet meer beschikbaar" blijft volledig leesbaar; alleen naam/prijs/aantal worden gedimd. */
.pick-out { opacity: 1; }
.pick-out .pick-main > :not(.error-text), .pick-out .pick-qty { opacity: .6; }
/* Kalender: vrije dag duidelijker omrand (3:1), voorbije/bezette dag beter leesbaar maar duidelijk inactief. */
.calendar .d.free, .key-free { border-color: #2E8B4E; }
.calendar .d.busy { color: #636363; }
/* Losse schakelaar met tekst (crew-kaartje): tekst direct naast het vinkje. */
label.check.switch-row { justify-content: flex-start; }
/* Gegevenslijsten: lange waarden (e-mail) breken af en schuiven niet meer over het label heen. */
.dl { grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); }
.dl dd { min-width: 0; overflow-wrap: anywhere; }
/* Offerte-editor en betalingen: verwijderen rustiger (omlijnd rood) zodat Opslaan de hoofdactie blijft. */
.quote-lines .btn-danger, #betalingen .btn-danger { background: var(--white); color: var(--bad); border: 2px solid var(--bad); }
.quote-lines .btn-danger:hover, #betalingen .btn-danger:hover { background: #FDECEA; }
/* Materiaal: tekort per type op een eigen regel (scanbaar). */
.short-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.short-list .badge { margin-left: 4px; }
.workload-name, table.cards td[data-label="Naam"] a { white-space: nowrap; }
/* Crew-app: buiten bij fel licht — grijze hulpteksten donkerder (≥ 7:1 op wit). */
.crew-app { --muted: #4A4A4A; }
/* Scanpagina: uitleg over cameratoestemming. */
.scan-why { margin: 8px 0 0; }
/* Labels printen: vaste papiermaten zodat de etiketten op het vel/de rol passen. */
@page matlabels { size: A4 portrait; margin: 0; }
.mat-print-62mm .mat-sheet { page: matlabel62; }
@page matlabel62 { size: 62mm 29mm; margin: 0; }
@media print { .mat-print-62mm .mat-label { outline: 0; margin: 0; } }
/* Scrollbare tabel/offerte bereikbaar met het toetsenbord. */
[data-scroll-region]:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
/* Bedragen en aantallen in tabellen en cijferblokken: cijfers even breed (D1, scanbaar in beheer). */
.num, td.num, th.num, .kpi b, .scan-progress { font-variant-numeric: tabular-nums; }
/* Crew-app: labels in gewone hoofdletters (sneller te lezen dan kapitalen, ook buiten). */
.crew-dl dt { text-transform: none; letter-spacing: 0; font-size: .9rem; }
