/* Gardeners Verlof: huisstijl van gardeners.nl (crème, geel voor de hoofdactie, roest voor aandacht) */
:root {
  --creme: #FDF8E6;
  --zand: #FBF1CE;
  --zand2: #F4EFDC;
  --geel: #FFFF82;
  --roest: #B9412B;
  --roest-tekst: #9A3423;
  --bos: #262B23;
  --groen: #DCE6C6;
  --gras: #7BA05B;
  --inkt: #191919;
  --zwart: #0C0C0C;
  --wit: #FFFFFF;
  --lijn: rgba(25, 25, 25, 0.1);
  --rand: rgba(25, 25, 25, 0.25);
  --zacht: rgba(25, 25, 25, 0.68);
  --sans: 'Host Grotesk', Helvetica, Arial, sans-serif;
  --serif: 'Libre Baskerville', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--creme); color: var(--inkt); font: 400 16px/1.45 var(--sans); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--inkt); outline-offset: 2px; }
[hidden] { display: none !important; }

#app { min-height: 100vh; min-height: 100dvh; padding: 12px 16px 48px; }
.wrap { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.wrap.wide { max-width: 1400px; }

/* ---------- type ---------- */
.label { font: italic 400 15px/1.4 var(--serif); }
.label-s { font: italic 400 13px/1.4 var(--serif); }
.h1 { margin: 0; font-size: 38px; line-height: 1.05; font-weight: 400; letter-spacing: -0.02em; }
.h1.l { font-size: 44px; }
.h2 { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; }
.h3 { margin: 0; font-size: 17px; font-weight: 600; }
.small { font-size: 13px; color: var(--zacht); }
.muted { color: var(--zacht); }
.warn { color: var(--roest-tekst); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }
.quote { margin: 0; font: italic 400 15px/1.5 var(--serif); }
.head { display: flex; flex-direction: column; gap: 6px; padding: 8px 4px 0; }
.p { margin: 0; line-height: 1.5; }

/* ---------- nav ---------- */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; background: var(--zwart); border-radius: 28px; padding: 5px 5px 5px 20px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--creme); text-decoration: none; min-height: 44px; }
.brand .logo { display: block; height: 19px; width: auto; }
.brand .app { font: italic 400 13px var(--serif); color: var(--geel); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 9999px; color: var(--creme); text-decoration: none; font-size: 15px; }
.nav-link[aria-current="page"] { background: var(--geel); color: var(--inkt); font-weight: 500; }
.badge { background: var(--roest); color: var(--creme); border-radius: 9999px; padding: 1px 8px; font-size: 13px; font-weight: 600; }
.nav-link[aria-current="page"] .badge { background: var(--inkt); color: var(--geel); }
.avatar { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 9999px; background: var(--creme); color: var(--inkt); font-size: 15px; font-weight: 600; text-decoration: none; border: 0; }
@media (max-width: 560px) {
  .nav { padding: 5px 5px 5px 16px; }
  .nav-link { padding: 0 10px; font-size: 14px; }
  .nav-link .long { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 9999px; font-size: 16px; font-weight: 500; text-decoration: none; text-align: center; }
.btn.l { min-height: 56px; font-size: 17px; width: 100%; }
.btn.s { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.btn.geel { background: var(--geel); color: var(--inkt); }
.btn.zwart { background: var(--zwart); color: var(--creme); }
.btn.rand { background: var(--wit); color: var(--inkt); border: 1px solid var(--rand); }
.btn.roest { background: var(--roest); color: var(--creme); }
.btn.link { min-height: 44px; padding: 6px 4px; background: transparent; color: var(--inkt); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.btn:disabled { background: rgba(25, 25, 25, 0.12); color: rgba(25, 25, 25, 0.5); border-color: transparent; }
.icon-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; border: 0; background: transparent; color: var(--inkt); text-decoration: none; }
.icon-btn:disabled { opacity: .3; }
.pill { text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9999px; font-size: 14px; font-weight: 500; border: 1px solid rgba(25, 25, 25, 0.2); background: var(--wit); color: var(--inkt); }
.pill[aria-pressed="true"], .pill[aria-selected="true"] { background: var(--zwart); color: var(--creme); border-color: var(--zwart); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--zand); border-radius: 9999px; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 9999px; background: transparent; font-size: 14px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--zwart); color: var(--creme); }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; border-radius: 9999px; padding: 4px 12px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.st-aangevraagd { background: var(--geel); }
.st-goedgekeurd { background: var(--groen); color: var(--bos); }
.st-opgenomen { background: var(--bos); color: var(--creme); }
.st-afgewezen { background: var(--roest); color: var(--creme); }
.st-annuleren { background: var(--wit); border: 1px solid var(--roest); color: var(--roest-tekst); }
.st-ingetrokken, .st-geannuleerd { border: 1px solid var(--rand); color: var(--zacht); }
.dot { width: 12px; height: 12px; flex: none; border-radius: 9999px; display: inline-block; }

/* ---------- cards ---------- */
.card { background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; }
.card.pad { padding: 18px 20px; }
.list { display: flex; flex-direction: column; background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; overflow: hidden; }
.list > * + * { border-top: 1px solid var(--lijn); }
.item { display: flex; flex-direction: column; gap: 8px; padding: 15px 18px; text-decoration: none; color: inherit; }
a.item:hover { background: #FFFDF5; }
.item .top, .item .bottom, .between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.item strong { font-size: 16px; font-weight: 600; }
.row { display: flex; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 4px 8px; }
.empty { padding: 18px; color: var(--zacht); font-size: 15px; }
.note { display: flex; gap: 12px; align-items: flex-start; background: var(--zand); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.45; }
.note.roest { background: var(--roest); color: var(--creme); }
.note.geel { background: var(--geel); }
.note svg { flex: none; margin-top: 1px; }

/* balance */
.balance { display: flex; flex-direction: column; gap: 16px; background: var(--zwart); color: var(--creme); border-radius: 12px; padding: 20px; }
.balance .big { white-space: nowrap; font-size: clamp(36px, 11vw, 48px); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.balance .eq { font: italic 400 15px var(--serif); color: var(--geel); padding-bottom: 4px; }
.meter { display: flex; height: 10px; border-radius: 9999px; overflow: hidden; background: rgba(253, 248, 230, 0.18); }
.meter span { display: block; height: 100%; }
.legend3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.legend3 strong { font-size: 16px; font-weight: 600; }
.legend3 .lg { display: flex; align-items: center; gap: 6px; }
.parts { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(253, 248, 230, 0.18); padding-top: 14px; font-size: 13px; }
.parts > div { display: flex; justify-content: space-between; gap: 12px; }
.parts .k { opacity: .8; }
.parts .num { white-space: nowrap; }

details.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 18px; font-size: 15px; font-weight: 600; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: '+'; font-size: 22px; font-weight: 400; line-height: 1; }
details.more[open] > summary::after { content: '–'; }

/* checklist */
.checklist { border: 2px solid var(--zwart); }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 18px; font-size: 15px; }
.check-row input[type="checkbox"] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--zwart); }
.check-row label { flex: 1; cursor: pointer; }
.check-row.done label { text-decoration: line-through; color: var(--zacht); }
.howto { padding: 0 18px 14px 52px; font-size: 14px; line-height: 1.55; }
.howto ol { margin: 0; padding-left: 18px; }
.howto .ooo { margin-top: 8px; background: var(--zand); border-radius: 10px; padding: 10px 12px; font: italic 400 13px/1.55 var(--serif); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field .hint { font-weight: 400; color: var(--zacht); }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--rand); border-radius: 12px; background: var(--wit); font-size: 15px; font-weight: 400; }
textarea.input { resize: vertical; min-height: 80px; }
.input:focus { outline: 2px solid var(--inkt); outline-offset: 0; border-color: var(--inkt); }
.input.s { min-height: 40px; padding: 6px 10px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--zwart); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hours5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.hours5 label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 500; text-align: center; }
.hours5 input { text-align: center; padding: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 40px; height: 40px; border-radius: 9999px; border: 3px solid var(--wit); outline: 1px solid rgba(25, 25, 25, 0.15); }
.swatch[aria-pressed="true"] { border-color: var(--geel); outline: 2px solid var(--zwart); }

/* ---------- request flow ---------- */
.flowbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.types { display: flex; flex-direction: column; gap: 10px; }
.type { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 72px; padding: 14px 18px; border-radius: 12px; background: var(--wit); border: 1px solid rgba(25, 25, 25, 0.12); text-align: left; }
.type[aria-pressed="true"] { background: var(--geel); border: 2px solid var(--zwart); }
.type .t { font-size: 17px; font-weight: 600; }
.type .s { font-size: 14px; opacity: .75; }
.month { display: flex; flex-direction: column; gap: 10px; background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; padding: 14px 10px; }
.month-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.wdays, .mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wdays { text-align: center; font-size: 12px; color: var(--zacht); }
.mday { position: relative; height: 46px; border: 0; border-radius: 8px; background: var(--wit); font-size: 15px; display: flex; align-items: center; justify-content: center; }
.mday.work { background: #FFFDF6; outline: 1px solid rgba(25, 25, 25, 0.08); }
.mday.off { background: transparent; color: rgba(25, 25, 25, 0.35); }
.mday.hol { background: var(--zand); color: var(--roest-tekst); }
.mday.taken { background: var(--groen); color: var(--bos); }
.mday.taken.pending { background: var(--geel); color: var(--inkt); }
.mday.on { background: var(--zwart); color: var(--creme); font-weight: 600; outline: 0; }
.mday.today::after { content: ''; position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 9999px; background: var(--roest); }
.mday .sb { position: absolute; left: 8px; right: 8px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--gras); }
.mday .ev { position: absolute; top: 4px; left: 5px; width: 8px; height: 8px; border-radius: 9999px; background: var(--geel); border: 1.5px solid var(--zwart); }
.mlegend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--zacht); }
.mlegend span { display: flex; align-items: center; gap: 6px; }
.mlegend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.dayparts { display: flex; flex-direction: column; }
.daypart { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.daypart .opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.daypart .opts button { min-height: 44px; border-radius: 9999px; font-size: 13px; font-weight: 500; border: 1px solid rgba(25, 25, 25, 0.2); background: var(--wit); padding: 0 4px; }
.daypart .opts button[aria-pressed="true"] { background: var(--zwart); color: var(--creme); border-color: var(--zwart); }
.sum { display: flex; flex-direction: column; gap: 8px; background: var(--zwart); color: var(--creme); border-radius: 12px; padding: 16px 18px; font-size: 15px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sum .k { opacity: .8; }
.kv { display: flex; flex-direction: column; background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; font-size: 15px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; }
.kv > div + div { border-top: 1px solid var(--lijn); }
.kv .k { color: var(--zacht); }
.kv strong { font-weight: 600; text-align: right; }
.done-mark { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 9999px; background: var(--geel); }
.timeline { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.timeline > div { display: flex; gap: 12px; }
.timeline .when { width: 90px; flex: none; color: var(--zacht); }

/* ---------- team calendar ---------- */
.cal-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.monthnav { display: inline-flex; align-items: center; gap: 4px; background: var(--wit); border: 1px solid rgba(25, 25, 25, 0.12); border-radius: 9999px; padding: 0 4px; }
.monthnav strong { min-width: 140px; text-align: center; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 22px; height: 14px; border-radius: 3px; }
.calbox { overflow-x: auto; background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; }
.cal { display: grid; min-width: max-content; font-size: 13px; }
.cal > div { min-width: 0; }
.cal .nm { position: sticky; left: 0; z-index: 1; background: var(--wit); display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 40px; border-top: 1px solid var(--lijn); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .nm.me { font-weight: 600; background: #FFFDF0; }
.cal .hd { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 10px 0 8px; }
.cal .hd small { font-size: 11px; color: var(--zacht); }
.cal .hd.today strong { background: var(--roest); color: var(--creme); border-radius: 9999px; padding: 0 6px; }
.cal .c { position: relative; padding: 6px 2px; border-top: 1px solid var(--lijn); border-left: 1px solid rgba(25, 25, 25, 0.05); min-height: 40px; }
.cal .c.mon { border-left: 1px solid rgba(25, 25, 25, 0.2); }
.cal .c.hol, .cal .hd.hol { background: var(--zand); }
.cal .c.mine { background: #FFFDF0; }
.cal .blk { display: block; height: 26px; border-radius: 4px; border: 0; width: 100%; padding: 0; }
.cal button.blk { cursor: pointer; }
.cal .blk.pt { background: repeating-linear-gradient(135deg, rgba(25, 25, 25, 0.16) 0 2px, transparent 2px 6px); }
.cal .blk.asked { background: var(--geel); border: 1.5px dashed var(--inkt); }
.cal .sp { position: relative; height: 28px; border-top: 1px solid var(--lijn); }
.cal .sp .sb { position: absolute; left: 0; right: 0; bottom: 4px; height: 4px; background: var(--gras); }
.cal .sp .sb.some { opacity: .45; }
.cal .sp .ev, .cal .sp .hd2 { position: absolute; left: 50%; top: 5px; width: 12px; height: 12px; margin-left: -6px; border-radius: 9999px; }
.cal .sp .ev { background: var(--geel); border: 2px solid var(--zwart); }
.cal .sp .hd2 { background: var(--roest); }
.cal .sp .fx { position: absolute; left: 50%; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 3px; background: var(--zwart); }
.cal .tm { background: var(--zand2); border-top: 2px solid rgba(25, 25, 25, 0.15); }
.cal .tm.nm { font-weight: 600; flex-wrap: wrap; gap: 4px 8px; padding: 8px 14px; }
.cal .tm.cnt { display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; color: var(--zacht); }
.cal .tm.cnt.hi { color: var(--roest-tekst); }
.cal .tot { background: var(--zand); text-align: center; padding: 10px 0; font-variant-numeric: tabular-nums; }
.cal .tot.nm { text-align: left; font-weight: 600; justify-content: flex-start; }
.cal .tot.first { border-top: 2px solid rgba(25, 25, 25, 0.15); }
.cal .tot.hi { color: var(--roest-tekst); font-weight: 700; }
.cal .bal { display: flex; align-items: center; justify-content: flex-end; padding: 0 10px; border-top: 1px solid var(--lijn); font-variant-numeric: tabular-nums; }
.cal .bal.first { border-left: 1px solid rgba(25, 25, 25, 0.12); }
.cal .bal.neg { color: var(--roest-tekst); font-weight: 600; }
.mine-tag { font: italic 400 12px var(--serif); background: var(--geel); border-radius: 9999px; padding: 1px 8px; font-weight: 400; }

/* ---------- beheer ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.req { display: flex; flex-wrap: wrap; gap: 18px 32px; padding: 20px 22px; }
.req .main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.req .acts { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; }
.facts .k { color: var(--zacht); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--groen); color: var(--bos); border-radius: 9999px; padding: 5px 12px; font-size: 13px; }
.chip.kind { background: var(--geel); color: var(--inkt); font-weight: 500; }
.chip.kind.cancel { background: var(--wit); border: 1px solid var(--roest); color: var(--roest-tekst); }
.tablebox { overflow-x: auto; background: var(--wit); border: 1px solid var(--lijn); border-radius: 12px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.t th, table.t td { padding: 11px 10px; text-align: right; white-space: nowrap; }
table.t th:first-child, table.t td:first-child { padding-left: 18px; }
table.t th:last-child, table.t td:last-child { padding-right: 18px; }
table.t thead th { font-size: 12px; font-weight: 500; color: var(--zacht); }
table.t tbody tr { border-top: 1px solid var(--lijn); }
table.t .l { text-align: left; }
table.t tr.off { color: var(--zacht); }
table.t tr.group td { background: var(--zand2); font-weight: 600; text-align: left; }
.tag { font: italic 400 12px var(--serif); background: var(--geel); border-radius: 9999px; padding: 2px 8px; margin-left: 6px; }
.tag.grey { background: var(--zand); }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.box-head { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 12px; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 6px 18px; border-top: 1px solid var(--lijn); font-size: 14px; }
.line .muted { font-size: 13px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px; border: 2px dashed var(--rand); border-radius: 12px; background: var(--wit); text-align: center; }

/* ---------- modal, toast, loading ---------- */
#modal:empty { display: none; }
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(12, 12, 12, 0.45); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
@media (min-width: 640px) { .backdrop { align-items: center; } }
.dialog { width: 100%; max-width: 560px; max-height: calc(100dvh - 24px); overflow: auto; background: var(--creme); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.dialog .acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; pointer-events: none; }
#toast .t { background: var(--zwart); color: var(--creme); border-radius: 9999px; padding: 12px 20px; font-size: 15px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2); }
#toast .t.err { background: var(--roest); }
.loading { display: flex; justify-content: center; padding: 80px 0; }
.spin { width: 28px; height: 28px; border-radius: 9999px; border: 3px solid rgba(25, 25, 25, 0.15); border-top-color: var(--inkt); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }
