/* Werkbon Gadron — mobile-first */
:root {
  --blue: #0a7ac9; --blue-dark: #075f9c; --ink: #1c1c1c; --muted: #666; --line: #d9dee3;
  --bg: #f4f6f8; --card: #fff; --ok: #1a7f37; --err: #b42318; --field: #f0fbff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
body.bare { background: #fff; }
a { color: var(--blue); }
h1 { font-size: 1.5rem; margin: 0 0 .75rem; }
h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .num { text-align: right; white-space: nowrap; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner, .subnav-inner { max-width: 1040px; margin: 0 auto; padding: 0 1rem; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-1 { font-weight: 800; font-size: 1.35rem; letter-spacing: .28em; color: var(--blue); }
.brand-2 { font-weight: 700; font-size: .62rem; letter-spacing: .2em; color: var(--blue); margin-top: .15rem; }
.brand.big { margin: 1.5rem 0 1.5rem; } .brand.big .brand-1 { font-size: 2.2rem; } .brand.big .brand-2 { font-size: 1rem; }
.topnav { display: flex; gap: 1rem; align-items: center; font-size: .95rem; } .topnav .who { color: var(--muted); }
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; overflow: visible; padding: .4rem 1rem; }
.subnav a { white-space: nowrap; padding: .45rem .8rem; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 500; }
.subnav a.active { background: var(--blue); color: #fff; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 1.25rem 1rem 2rem; } .wrap.narrow { max-width: 480px; } .wrap.wide { max-width: 1280px; }
.top-inner, .subnav-inner { max-width: 1280px; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 2rem 1rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; margin-bottom: 1.25rem; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h2 { margin: 0; } .card-head p { margin: .2rem 0 0; }
label { display: block; font-weight: 600; margin: 0 0 .35rem; font-size: .95rem; }
.field { margin-bottom: 1rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.fields-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 700px) { .fields-2, .fields-3 { grid-template-columns: 1fr; } }
label.inline { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; margin: .3rem 1rem .3rem 0; }
input:not([type]), input[type=text], input[type=password], input[type=email], input[type=tel], input[type=url], input[type=search], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; height: 44px; padding: 0 .8rem; border: 1px solid #9aa4ad; border-radius: 8px; background: var(--field); color: var(--ink);
}
textarea { height: auto; padding: .6rem .8rem; }
.check { display: flex; align-items: center; gap: .5rem; height: 44px; font-weight: 400; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
input.short { width: 7rem; } input.medium { width: 14rem; }
textarea { min-height: 6rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; height: 44px; padding: 0 1.25rem; border-radius: 8px; border: 1px solid var(--blue); background: #fff; color: var(--blue); text-decoration: none; cursor: pointer; white-space: nowrap; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.btn.primary { background: var(--blue); color: #fff; } .btn.primary:hover { background: var(--blue-dark); }
.btn.small { height: 36px; padding: 0 .9rem; font-size: .875rem; min-width: 7rem; }
.btn.danger { border-color: var(--err); color: var(--err); }
button:disabled { opacity: .6; cursor: wait; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; } @media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid; }
.flash-ok { background: #e8f5ec; border-color: #9fd3ae; color: var(--ok); }
.flash-error { background: #fdecea; border-color: #f3b4ae; color: var(--err); }
.flash-info { background: #e9f4fc; border-color: #b6d9f2; color: var(--blue-dark); }

.menu { list-style: none; padding: 0; margin: 1rem 0; }
.menu a { display: block; padding: 1.1rem 1rem; margin-bottom: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.menu a:active { background: var(--field); }
ul.plain { padding-left: 1.2rem; }

.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tbl th, .tbl td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #f0f3f6; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .inactive td { color: var(--muted); text-decoration: line-through; }
.tbl-wrap { overflow-x: auto; }
.tbl input, .tbl select { height: 36px; padding: 0 .55rem; }
.tbl .row { gap: .4rem; }
.tag { display: inline-block; font-size: .75rem; padding: .1rem .45rem; border-radius: 999px; background: #eef2f5; color: #444; margin-right: .25rem; }
.tag.blue { background: #e1effa; color: var(--blue-dark); }
.input-euro { display: flex; align-items: center; gap: .5rem; } .input-euro input { width: 9rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .9rem; } .stat b { display: block; font-size: 1.6rem; color: var(--blue); }

/* Handtekening */
.sig { position: relative; border: 2px dashed #9aa4ad; border-radius: 10px; background: #fafcff; touch-action: none; -webkit-user-select: none; user-select: none; overflow: hidden; }
.sig.has-ink { border-style: solid; border-color: var(--blue); }
.sig.sig-error { border-color: var(--err); background: #fff5f5; }
.sig-canvas { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; }
.sig-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9aa4ad; font-size: 1.2rem; pointer-events: none; }
.sig-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.sig-list figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; }
.sig-list img { width: 100%; height: auto; background: #fff; } .sig-list figcaption { font-size: .75rem; color: var(--muted); }

/* Logo + beheer v2 */
.brand .logo { height: 44px; width: auto; display: block; }
.brand.big .logo { height: 72px; margin: 0 auto; }
.help { background: #e9f4fc; border-left: 4px solid var(--blue); padding: .7rem 1rem; border-radius: 6px; margin: 0 0 1.25rem; color: #123; }
.price-list { list-style: none; padding: 0; margin: 0 0 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.price-list li { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list .name { flex: 1; } .price-list .price { font-weight: 600; white-space: nowrap; min-width: 6.5rem; text-align: right; }
.price-list li.off .name, .price-list li.off .price { color: var(--muted); text-decoration: line-through; }
.price-list a.edit { text-decoration: none; height: 36px; display: inline-flex; align-items: center; padding: 0 .9rem; border: 1px solid var(--blue); border-radius: 8px; color: var(--blue); font-size: .875rem; font-weight: 600; }
h2.section { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1.5rem 0 .5rem; }
.switch { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.switch input { width: 2.6rem; height: 1.5rem; appearance: none; background: #c9d1d9; border-radius: 999px; position: relative; margin: 0; transition: .15s; }
.switch input::after { content: ""; position: absolute; top: .15rem; left: .15rem; width: 1.2rem; height: 1.2rem; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked { background: var(--ok); } .switch input:checked::after { left: 1.25rem; }
.jobs { list-style: none; padding: 0; margin: .5rem 0; }
.jobs li { display: grid; grid-template-columns: 1fr 8rem 8rem; gap: .5rem; align-items: center; padding: .3rem 0; }
.jobs li.add { grid-template-columns: 1fr 16.5rem; margin-top: .4rem; }
.jobs li input[type=text] { height: 40px; }
.jobs li .btn.small { width: 100%; min-width: 0; }
.jobs li.off input[type=text] { color: var(--muted); text-decoration: line-through; }
details.adv { margin-top: 1rem; } details.adv summary { cursor: pointer; color: var(--muted); }
.card h2:first-child { margin-top: 0; }
.field-inline { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.field-inline input.short { margin: 0; }

/* ---------- Wizard ---------- */
.wizard h1 { margin-bottom: .5rem; }
.progress { position: relative; height: 22px; background: #d9dee3; border-radius: 999px; overflow: hidden; margin: .5rem 0 .5rem; }
.progress-bar { height: 100%; background: var(--blue); width: 20%; transition: width .25s; }
.progress-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; color: #fff; mix-blend-mode: difference; }
.steps-nav { list-style: none; display: flex; gap: .25rem; padding: 0; margin: 0 0 1rem; overflow-x: auto; }
.steps-nav li { font-size: .8rem; padding: .3rem .6rem; border-radius: 999px; background: #eef2f5; color: var(--muted); white-space: nowrap; cursor: pointer; }
.steps-nav li.active { background: var(--blue); color: #fff; } .steps-nav li.done { background: #e1effa; color: var(--blue-dark); }
.step h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.req { color: var(--err); font-weight: 700; }
.readonly { background: #f0f3f6 !important; color: var(--muted); }
.radios { display: flex; flex-wrap: wrap; gap: 0 1.5rem; min-height: 44px; align-items: center; }
.radios .check { height: auto; } .radios input[type=radio] { width: 1.15rem; height: 1.15rem; margin: 0; }
.invalid { border-color: var(--err) !important; background: #fff5f5 !important; } .invalid-group { outline: 2px solid var(--err); outline-offset: 4px; border-radius: 6px; }
.field-error { color: var(--err); font-size: .875rem; margin-top: .3rem; }
.lines { width: 100%; border-collapse: collapse; }
.lines th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: .3rem .4rem; border-bottom: 1px solid var(--line); }
.lines td { padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lines td .hint { display: block; font-size: .8rem; color: var(--muted); }
.lines .qty { width: 6rem; } .lines .qty input { text-align: center; } .lines .unit { width: 5rem; }
.lines input { height: 40px; }
.lines.materials .num input { width: 7rem; }
.btn.icon { min-width: 0; width: 36px; padding: 0; }
.totals-line { display: flex; justify-content: space-between; padding: .5rem .4rem; border-top: 1px solid var(--line); }
.totals-line.grand { font-size: 1.15rem; border-top: 2px solid var(--ink); }
.totals { margin: 1rem 0; }
.wizard-nav { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--bg); padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom)); }
.wizard-nav .btn { min-width: 9rem; } .wizard-nav .autosave { margin-left: auto; }
@media (max-width: 600px) { .lines th.num:nth-child(2), .lines td.num:nth-child(2) { display: none; } .lines.materials .unit, .lines.materials th.unit { display: none; } }
.confirm-box { text-align: center; padding: 2rem 1rem; }
.confirm-box .big { font-size: 3rem; color: var(--ok); }

/* Correcties mobiel */
[hidden] { display: none !important; }
.progress { height: 8px; margin: .75rem 0 .35rem; }
.progress-label { position: static; display: block; color: var(--muted); font-size: .8rem; font-weight: 500; mix-blend-mode: normal; margin-bottom: .5rem; }
@media (max-width: 600px) {
  .card { padding: .9rem; }
  .topnav .who { display: none; }
  .lines .qty { width: 4.5rem; } .lines td, .lines th { padding: .45rem .25rem; }
  .lines td.num { font-size: .95rem; }
  .wizard-nav .btn { min-width: 0; flex: 1; }
}
.wizard-nav { flex-wrap: wrap; } .wizard-nav .autosave { flex-basis: 100%; margin-left: 0; text-align: right; }
@media (max-width: 600px) {
  .lines.materials th.num:nth-child(5), .lines.materials td[data-mat-total] { display: none; }
  .lines.materials .qty { width: 3.6rem; } .lines.materials .num input { width: 4.8rem; }
  .lines.materials td:last-child { padding-left: 0; } .btn.icon { width: 32px; height: 32px; }
}

/* Compacte lijsten (beheer) */
.tbl.compact { font-size: .875rem; }
.tbl.compact th, .tbl.compact td { padding: .4rem .55rem; white-space: nowrap; vertical-align: middle; line-height: 1.3; }
.tbl.compact td.cut { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; }
.tbl.compact .tag { font-size: .7rem; padding: 0 .4rem; margin-right: .2rem; }
.tbl.compact a.pdf { font-weight: 600; text-decoration: none; }
.tbl.compact .btn.small { height: 30px; padding: 0 .7rem; min-width: 0; font-size: .8rem; }
.list-head { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.list-head input { max-width: 24rem; height: 38px; } .list-head .btn { height: 38px; }

/* Lijsten v2: vaste kolommen, klikbare rijen */
.tbl.fixed { table-layout: fixed; width: 100%; }
.tbl.fixed td, .tbl.fixed th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl tr.link { cursor: pointer; } .tbl tr.link:hover td { background: #f4f9fd; }
.tbl td a.stop { position: relative; z-index: 1; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: .5rem; align-items: end; margin-bottom: .75rem; }
.filters .field { margin: 0; } .filters input, .filters select { height: 38px; } .filters .btn { height: 38px; }
@media (max-width: 800px) { .filters { grid-template-columns: 1fr 1fr; } }
.kv { width: 100%; border-collapse: collapse; } .kv td { padding: .35rem .5rem .35rem 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.kv td.k { width: 32%; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } @media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }
.sig-preview { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: .5rem; max-width: 320px; }

/* Filters: pills, één regel, letterindex */
.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.pills a { display: inline-flex; align-items: center; height: 34px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9rem; }
.pills a.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.filters input { height: 38px; width: auto; flex: 1 1 18rem; } .filters input.date { flex: 0 0 8.5rem; } .filters .btn { height: 38px; }
.alpha { display: flex; flex-wrap: wrap; gap: .15rem; margin: 0 0 .75rem; font-size: .85rem; }
.alpha a, .alpha span { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .35rem; border-radius: 6px; text-decoration: none; }
.alpha a { color: var(--blue); font-weight: 600; } .alpha a:hover { background: #e1effa; } .alpha a.active { background: var(--blue); color: #fff; }
.alpha span { color: #b9c2cb; }

/* Statuslabels */
.st { display: inline-flex; align-items: center; height: 22px; padding: 0 .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; margin-right: .25rem; white-space: nowrap; }
.st-amber { background: #fff4d6; color: #8a5a00; } .st-blue { background: #e1effa; color: #075f9c; }
.st-green { background: #e3f5e8; color: #1a7f37; } .st-red { background: #fdecea; color: #b42318; } .st-grey { background: #eef2f5; color: #555; }
.pills a.st-amber.active { background: #b26a00; border-color: #b26a00; color: #fff; } .pills a.st-blue.active { background: #075f9c; border-color: #075f9c; color: #fff; }
.pills a.st-green.active { background: #1a7f37; border-color: #1a7f37; color: #fff; } .pills a.st-red.active { background: #b42318; border-color: #b42318; color: #fff; }
.pills .sep { width: 1px; background: var(--line); margin: 0 .3rem; }

/* Datumkiezer (native) */
input[type=date] { cursor: pointer; -webkit-appearance: none; appearance: none; min-width: 0; font-family: inherit; }
input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; width: 1.25rem; height: 1.25rem; opacity: .75; }
input[type=date]::-webkit-date-and-time-value { text-align: left; }
.filters input.date { flex: 0 0 10.5rem; }

/* Rapportage: compacte filterbalk */
.rf { margin-bottom: 1rem; }
.rf .pills { margin-bottom: .6rem; }
.pills label { position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; font-size: .9rem; cursor: pointer; user-select: none; }
.pills label.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pills label input { position: absolute; opacity: 0; width: 0; height: 0; }
.rf-row { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: end; margin-bottom: .5rem; }
.rf-f { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 9rem; min-width: 0; }
.rf-f.rf-w { flex: 2 1 16rem; }
.rf-f label { font-size: .75rem; color: var(--muted); font-weight: 500; }
.rf-f input, .rf-f select { height: 38px; font-size: .9rem; padding: 0 .55rem; }
.rf-btns { flex: 0 0 auto; flex-direction: row; gap: .4rem; } .rf-btns .btn { height: 38px; }
.rf-help { margin: .25rem 0 0; }
@media (max-width: 700px) { .rf-f { flex: 1 1 calc(50% - .6rem); } .rf-f.rf-w { flex: 1 1 100%; } }

/* Versienummer naast het logo */
.brand-wrap { display: flex; align-items: flex-end; gap: .5rem; }
.version { font-size: .72rem; color: #9aa4ad; margin: 0 0 .2rem; letter-spacing: .02em; }
.brand.big .version { display: block; text-align: center; margin: .4rem 0 0; }

/* Annuleren / crediteren (v0.10) */
.tbl tr.cancelled td { color: var(--muted); text-decoration: line-through; } .tbl tr.cancelled td .st { text-decoration: none; }
.st-purple { background: #efe6fa; color: #5b2d91; } .pills a.st-purple.active, .pills label.st-purple.active { background: #5b2d91; border-color: #5b2d91; color: #fff; }
.btn.danger { border-color: #b42318; color: #b42318; } .btn.danger:hover { background: #fdecea; }
.notice-cancel { background: #fdecea; border-color: #f5b7b1; }
dialog.dlg { border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.5rem; max-width: 34rem; width: calc(100% - 2rem); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
dialog.dlg::backdrop { background: rgba(20,30,40,.45); }
dialog.dlg h2 { margin: 0 0 .5rem; font-size: 1.15rem; } dialog.dlg p { margin: 0 0 1rem; color: #333; }
dialog.dlg .actions { margin-top: 1rem; display: flex; gap: .5rem; }

/* Handleiding */
.man { display: grid; grid-template-columns: 15rem 1fr; gap: 2rem; align-items: start; }
.man-toc { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: .1rem; font-size: .85rem; }
.man-toc-title { font-weight: 700; margin-bottom: .4rem; font-size: .95rem; }
.man-toc a { color: var(--ink); text-decoration: none; padding: .25rem .5rem; border-radius: 6px; line-height: 1.3; }
.man-toc a:hover { background: #e9f4fc; color: var(--blue); } .man-toc a.man-top { margin-top: .6rem; color: var(--muted); }
.man-body { max-width: 52rem; min-width: 0; }
.man-body .lead { font-size: 1.05rem; color: #333; }
.man-body section { padding: .25rem 0 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; scroll-margin-top: 1rem; }
.man-body h2 { font-size: 1.25rem; margin: 1rem 0 .5rem; } .man-body h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
.man-body p, .man-body li, .man-body dd { line-height: 1.55; }
.man-body ol.steps { padding-left: 1.4rem; } .man-body ol.steps li { margin: .35rem 0; }
.man-body ul { padding-left: 1.2rem; } .man-body ul li { margin: .3rem 0; }
.man-dl dt { font-weight: 600; margin-top: .6rem; } .man-dl dd { margin: .15rem 0 0; }
.man-body .tip { background: #e9f4fc; border-left: 4px solid var(--blue); padding: .6rem .9rem; border-radius: 0 8px 8px 0; margin: .75rem 0; }
.man-body code { background: #f0f3f6; padding: .05rem .35rem; border-radius: 4px; font-size: .9em; }
.man-roles td:not(:first-child), .man-roles th:not(:first-child) { text-align: center; width: 7rem; }
.man-status td { vertical-align: middle; }
.man-badge { display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: #f0f3f6; color: var(--muted); padding: .1rem .5rem; border-radius: 999px; vertical-align: middle; margin-left: .4rem; }
@media (max-width: 800px) { .man { grid-template-columns: 1fr; } .man-toc { position: static; } }

/* Foto's bij een bon */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .6rem; }
.photo-item { position: relative; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: .35rem; }
.photo-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: #eee; }
.photo-item .photo-x { position: absolute; top: .5rem; right: .5rem; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.photo-item .photo-cap { height: 32px; font-size: .8rem; margin-top: .35rem; padding: 0 .4rem; }
.photo-strip { display: flex; flex-wrap: wrap; gap: .6rem; } .photo-strip a { display: block; width: 9rem; } .photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.photo-strip .cap { font-size: .75rem; color: var(--muted); margin-top: .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Administratie v2: navigatie met instellingenmenu, pill-groepen, overzichtstegels */
.subnav-spacer { flex: 1 1 auto; }
.subnav-dd { position: relative; } .subnav-dd summary { list-style: none; cursor: pointer; white-space: nowrap; padding: .45rem .8rem; border-radius: 6px; font-weight: 500; color: var(--ink); }
.subnav-dd summary::-webkit-details-marker { display: none; } .subnav-dd summary.active, .subnav-dd[open] summary { background: #e9f4fc; color: var(--blue); }
.subnav-dd-menu { position: absolute; right: 0; top: calc(100% + .3rem); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: .4rem; min-width: 13rem; z-index: 50; display: flex; flex-direction: column; }
.subnav-dd-menu a { padding: .5rem .8rem; border-radius: 6px; } .subnav-dd-menu a.active { background: var(--blue); color: #fff; }
.pills .pill-label { align-self: center; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 .1rem 0 .2rem; }
.pills .pill-label:first-child { margin-left: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0 0 1.25rem; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(10,122,201,.12); }
.tile b { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--blue); } .tile span { display: block; font-size: .85rem; color: #333; margin-top: .2rem; }
.tile.warn b { color: #b26a00; } .tile.alert b { color: #b42318; } .tile.ok b { color: #1a7f37; } .tile.zero b { color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
@media (max-width: 700px) { .subnav-dd-menu { right: auto; left: 0; } }

/* v2.0.1: navigatie mag niet scrollen/afknippen (anders valt het Instellingen-menu buiten beeld) */
.subnav { overflow: visible; position: relative; z-index: 20; }
.subnav-dd summary { display: inline-block; }

/* Adresboek: zoekveld in stap 1 */

/* Sorteerbare kolomkoppen */
.tbl th a { color: inherit; text-decoration: none; display: block; } .tbl th a:hover { color: var(--blue); } .tbl th.sorted a { color: var(--blue); }
