/* Veldhuisbouw – Opname (veldwerk) – mobiel & iPad-first */
:root {
  --ink: #16120b;
  --paper: #eef1ee;
  --paper-2: #faf8f4;
  --line: #e0dbd0;
  --gold: #c9a96e;
  --gold-2: #c69a59;
  --gold-soft: #efe2ca;
  --muted: #6b6460;
  --green: #376d45;
  --blue: #315f7d;
  --steel: #52656f;
  --mint: #dfeade;
  --red: #a83d32;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(22, 18, 11, 0.12);
  --shadow-sm: 0 6px 20px rgba(22, 18, 11, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  font-family: "DM Sans", Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 100% -10%, #fbf6ec 0%, rgba(251, 246, 236, 0) 60%),
    var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}
h1, h2, h3, .brandmark { font-family: "Jost", "DM Sans", sans-serif; }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
button { cursor: pointer; }
a { color: var(--blue); }

/* ---------- Layout ---------- */
.wrap { max-width: 940px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 14px 120px; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(238, 241, 238, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 940px; margin: 0 auto; padding: 10px 14px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 34px; width: auto; display: block; }
.brand strong { font-size: 15px; letter-spacing: .2px; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.topbar .spacer { flex: 1; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--ink); background: var(--white); border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-sm);
}

/* ---------- Hero / klantkeuze ---------- */
.hero {
  margin: 16px 0; padding: 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, #201a12 0%, #2c241a 60%, #3a2f20 100%);
  color: #f5efe6; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,169,110,.35), transparent 70%);
}
.hero .eyebrow { color: var(--gold); letter-spacing: 3px; text-transform: uppercase; font-size: 11px; font-weight: 700; }
.hero h1 { margin: 6px 0 2px; font-size: 26px; line-height: 1.1; }
.hero p { margin: 4px 0 0; color: #d9d0c2; font-size: 14px; }

.customer-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.customer-picker select, .customer-picker input {
  flex: 1 1 220px; min-width: 0; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff;
}
.customer-picker select option { color: var(--ink); }

/* ---------- Progress ---------- */
.progress-card {
  display: flex; align-items: center; gap: 16px; margin: 14px 0; padding: 14px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.ring { --p: 0; width: 62px; height: 62px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--gold-soft) 0);
  display: grid; place-items: center; }
.ring::before { content: ""; width: 46px; height: 46px; border-radius: 50%; background: var(--white); grid-area: 1/1; }
.ring b { grid-area: 1/1; font-size: 15px; font-family: "Jost", sans-serif; }
.progress-card .meta { flex: 1; }
.progress-card .meta strong { display: block; font-size: 15px; }
.progress-card .meta span { color: var(--muted); font-size: 13px; }

/* ---------- Section navigatie (chips) ---------- */
.section-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; margin: 0 -2px; scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 13px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--shadow-sm);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.chip.done .dot { background: var(--green); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .cat { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: .6; }

/* ---------- Cards / secties ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin: 14px 0; overflow: hidden;
}
.card > header {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-2), var(--white));
}
.card > header .ic {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: var(--gold-soft); color: #7a5a24;
}
.card > header h2 { margin: 0; font-size: 18px; }
.card > header .sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.card > header .badge {
  margin-left: auto; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 10px; border-radius: 999px; background: var(--mint); color: var(--green);
}
.card .body { padding: 16px 18px; }
.card .cat-tag { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-2); font-weight: 800; }

/* ---------- Formulier-velden ---------- */
.field { margin-bottom: 14px; }
.field > label, .field-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 12px; margin: 2px 0 6px; }
.field input[type=text], .field input[type=number], .field input[type=date], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-2); color: var(--ink);
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); background: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

/* segmented / keuze-knoppen */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  border: 1px solid var(--line); background: var(--paper-2); border-radius: 999px; padding: 9px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px;
}
.choice.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice.selected.yes { background: var(--green); border-color: var(--green); }
.choice.selected.no { background: var(--red); border-color: var(--red); }
.choice.selected.na { background: var(--steel); border-color: var(--steel); }

/* risico-vlaggen */
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 620px) { .risk-grid { grid-template-columns: repeat(3, 1fr); } }
.risk {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; background: var(--paper-2); font-size: 13.5px; font-weight: 600;
}
.risk.on { background: #fbe9e6; border-color: var(--red); color: var(--red); }

/* checklist-vraag rij */
.q { padding: 12px 0; border-top: 1px dashed var(--line); }
.q:first-child { border-top: 0; }
.q .q-text { font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.q .q-note { margin-top: 8px; }

/* ---------- Maten (afmetingen) ---------- */
.meas-add { background: var(--paper-2); border: 1px dashed var(--gold); border-radius: var(--radius-sm); padding: 14px; }
.meas-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.meas-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white);
}
.meas-row .m-room { font-weight: 700; }
.meas-row .m-dims { color: var(--muted); font-size: 13px; }
.meas-row .m-area { margin-left: auto; font-weight: 700; color: var(--green); }
.meas-row .del { border: none; background: transparent; color: var(--red); font-size: 20px; line-height: 1; padding: 4px; }

/* ---------- Foto's ---------- */
.photo-drop {
  border: 1.5px dashed var(--gold); border-radius: var(--radius-sm); padding: 20px; text-align: center;
  background: var(--paper-2); color: var(--muted);
}
.photo-drop label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink);
  background: var(--gold); padding: 12px 18px; border-radius: 999px; margin-top: 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.photo-grid figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--paper); border: 1px solid var(--line); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; padding: 3px 5px;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; }
.photo-checklist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.photo-checklist .pc { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--muted); }
.photo-checklist .pc.have { background: var(--mint); color: var(--green); border-color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; padding: 13px 20px; font-weight: 700; font-size: 15px;
}
.btn.primary { background: var(--gold); color: #2a1f0c; box-shadow: 0 8px 22px rgba(201,169,110,.4); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.btn.full { width: 100%; }
.btn.sm { padding: 9px 14px; font-size: 13.5px; }

.save-row { display: flex; gap: 10px; margin-top: 8px; }

/* ---------- Sticky opslaan-balk ---------- */
.savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: none; gap: 10px; align-items: center;
}
.savebar.show { display: flex; }
.savebar .info { flex: 1; font-size: 13px; color: var(--muted); }
.savebar .info b { color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 60; box-shadow: var(--shadow); max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--red); }

/* ---------- Empty / login ---------- */
.notice { text-align: center; padding: 48px 20px; color: var(--muted); }
.notice h2 { color: var(--ink); }
.hidden { display: none !important; }

/* Toegankelijk groot op iPad */
@media (min-width: 768px) {
  .hero h1 { font-size: 32px; }
  .card > header h2 { font-size: 20px; }
}

/* Rekenhulp */
.calc-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.calc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; background: var(--paper-2); }
.calc-row:nth-child(even) { background: var(--white); }
.calc-row span { color: var(--muted); font-size: 13.5px; }
.calc-row b { font-family: "Jost", sans-serif; font-size: 15px; color: var(--ink); white-space: nowrap; }
.calc-row.strong { background: var(--gold-soft); }
.calc-row.strong span { color: #7a5a24; font-weight: 600; }
.calc-row.strong b { font-size: 17px; color: #6b4e1e; }

/* ============================================================================
   Login-scherm (opname-portaal)
   ========================================================================== */
body.login-mode { background: linear-gradient(160deg, #201a12, #2c241a 55%, #16120b); }
.login-screen { min-height: 88vh; display: grid; place-items: center; padding: 24px 16px; }
.login-box {
  width: 100%; max-width: 380px; background: var(--white); border-radius: 24px; padding: 28px 24px 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.4); text-align: center;
}
.login-logo { height: 54px; width: auto; margin-bottom: 10px; }
.login-box .eyebrow { color: var(--gold-2); letter-spacing: 3px; text-transform: uppercase; font-size: 11px; font-weight: 800; margin: 0; }
.login-box h1 { margin: 4px 0 2px; font-size: 26px; }
.login-sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.login-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.login-form label { font-weight: 600; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.login-form input { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); font-size: 16px; }
.login-form input:focus { outline: 2px solid var(--gold); border-color: var(--gold); background: #fff; }
.login-error { color: var(--red); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; margin: 0; }
.login-error svg { width: 16px; height: 16px; }
.login-link { display: inline-block; margin-top: 16px; color: var(--muted); text-decoration: none; font-size: 13px; }

/* ============================================================================
   Opnemer-dashboard
   ========================================================================== */
.od-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 4px; }
.od-user { display: flex; align-items: center; gap: 10px; }
.od-user > i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--gold-soft); color: #7a5a24; }
.od-user strong { display: block; font-size: 15px; }
.od-user span { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px; }
.od-topbar-actions { display: flex; gap: 8px; }
.od-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; text-decoration: none; }
.od-icon-btn svg { width: 20px; height: 20px; }

.od-hero {
  margin: 8px 0 14px; padding: 20px; border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #201a12, #2c241a 60%, #3a2f20); color: #f5efe6; box-shadow: var(--shadow);
}
.od-hero::after { content: ""; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(201,169,110,.4), transparent 70%); }
.od-hero .eyebrow { color: var(--gold); text-transform: capitalize; letter-spacing: .5px; font-size: 12px; font-weight: 700; margin: 0; }
.od-hero h1 { margin: 4px 0 4px; font-size: 24px; }
.od-hero > p { color: #d9d0c2; font-size: 13.5px; margin: 0 0 14px; }
.od-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
.od-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 8px; text-align: center; }
.od-stat i { width: 20px; height: 20px; color: var(--gold); }
.od-stat strong { display: block; font-family: "Jost", sans-serif; font-size: 24px; line-height: 1.1; margin-top: 2px; }
.od-stat span { color: #cfc6b8; font-size: 10.5px; }

.od-search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; margin: 12px 0; box-shadow: var(--shadow-sm); }
.od-search i { width: 18px; height: 18px; color: var(--muted); }
.od-search input { flex: 1; border: none; background: transparent; padding: 14px 0; font-size: 15px; outline: none; }

.od-section { margin: 16px 0; }
.od-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.od-head .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); color: #7a5a24; flex: none; }
.od-head h2 { margin: 0; font-size: 18px; }
.od-head span { color: var(--muted); font-size: 12.5px; }
.od-count { margin-left: auto; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.od-list { display: grid; gap: 10px; }
.od-empty { color: var(--muted); font-size: 14px; padding: 16px; background: var(--paper-2); border: 1px dashed var(--line); border-radius: 14px; text-align: center; }

.od-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--paper-2), var(--white)); box-shadow: var(--shadow-sm); cursor: pointer; }
.od-card:active { transform: scale(.99); }
.od-ring { --p: 0; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--gold-soft) 0); }
.od-ring::before { content: ""; grid-area: 1/1; width: 40px; height: 40px; border-radius: 50%; background: var(--white); }
.od-ring b { grid-area: 1/1; font-size: 12px; font-family: "Jost", sans-serif; }
.od-card-body { flex: 1; min-width: 0; }
.od-card-body strong { display: block; font-size: 16px; }
.od-card-body > span { display: block; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-card-body small { color: var(--steel); font-size: 12px; }
.od-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.od-meta span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.od-meta i { width: 14px; height: 14px; }
.od-meta .od-done { color: var(--green); }
.od-chevron { width: 20px; height: 20px; color: var(--muted); flex: none; }

.od-footer { text-align: center; color: var(--muted); font-size: 12.5px; margin: 22px 0 8px; }
.od-footer a { color: var(--blue); font-weight: 600; text-decoration: none; }

@media (min-width: 768px) {
  .od-list { grid-template-columns: 1fr 1fr; }
  .od-hero h1 { font-size: 28px; }
}

/* Filter-tabs */
.od-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 4px 0; scrollbar-width: none; }
.od-tabs::-webkit-scrollbar { display: none; }
.od-tab {
  flex: none; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: 13.5px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.od-tab span { background: var(--gold-soft); color: #7a5a24; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.od-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.od-tab.active span { background: var(--gold); color: #2a1f0c; }

/* Statuslabels op de kaarten */
.od-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 2px; }
.od-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; }
.od-badge.blue { background: #e3edf4; color: var(--blue); }
.od-badge.gold { background: var(--gold-soft); color: #7a5a24; }
.od-badge.ink { background: #e7e3da; color: var(--ink); }
.od-badge.green { background: var(--mint); color: var(--green); }
.od-badge.steel { background: #e7ebed; color: var(--steel); }

/* ============================================================================
   Opnamerapport (scherm + print/PDF)
   ========================================================================== */
.rep-actions { display: flex; gap: 10px; justify-content: space-between; margin: 8px 0 14px; }
.report { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); color: var(--ink); }
.rep-head { display: flex; align-items: center; gap: 14px; border-bottom: 3px solid var(--gold); padding-bottom: 14px; margin-bottom: 16px; }
.rep-head img { height: 46px; width: auto; }
.rep-head h1 { margin: 0; font-size: 24px; }
.rep-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.rep-client h2 { margin: 0 0 4px; font-size: 20px; }
.rep-client p { margin: 2px 0; font-size: 14px; }
.rep-services { margin-top: 8px !important; }
.rep-chip { display: inline-block; background: var(--gold-soft); color: #7a5a24; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0 4px 4px 0; }
.report section { margin-top: 20px; }
.report h2 { font-size: 17px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 10px; }
.report h3 { font-size: 15px; margin: 14px 0 6px; color: #6b4e1e; }
.report h4 { font-size: 13px; margin: 10px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.rep-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 8px; }
.rep-table th, .rep-table td { text-align: left; padding: 7px 10px; border: 1px solid var(--line); vertical-align: top; }
.rep-table th { background: var(--paper-2); width: 42%; font-weight: 600; }
.rep-meas th { width: auto; }
.rep-meas thead th { background: var(--gold-soft); }
.rep-service { border-left: 3px solid var(--gold); padding-left: 12px; margin: 14px 0; page-break-inside: avoid; }
.rep-risk { display: inline-block; background: #fbe9e6; color: var(--red); font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin: 0 4px 4px 0; }
.rep-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.rep-photos figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; page-break-inside: avoid; }
.rep-photos img { width: 100%; height: 130px; object-fit: cover; display: block; }
.rep-photos figcaption { font-size: 11px; padding: 4px 6px; color: var(--muted); }
.rep-foot { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }

@media print {
  :root { --shadow: none; --shadow-sm: none; }
  body { background: #fff !important; }
  .topbar, .savebar, .toast, .no-print { display: none !important; }
  .wrap { max-width: 100%; padding: 0; }
  .report { border: none; border-radius: 0; box-shadow: none; padding: 0; }
  .report section, .rep-service, .rep-photos figure, .rep-table tr { page-break-inside: avoid; }
  .report h2 { page-break-after: avoid; }
  a[href]::after { content: ""; }
}

/* Offline-indicatie */
.offline-banner {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 84px; z-index: 55;
  display: inline-flex; align-items: center; gap: 8px; max-width: 92vw;
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--red); color: #fff; box-shadow: var(--shadow);
}
.offline-banner.syncing { background: var(--gold); color: #2a1f0c; }
.offline-banner svg { width: 16px; height: 16px; }
@media print { .offline-banner { display: none !important; } }

/* Snelacties op de klantkaart (bellen / route) */
.od-card { cursor: pointer; }
.od-card-side { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.od-quick { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; }
.od-quick svg { width: 18px; height: 18px; }
.od-quick:active { background: var(--paper); }
.od-quick.go { border: none; background: transparent; color: var(--muted); width: 22px; height: 22px; }

/* ============================================================================
   Compacte telefoon-indeling — dichter, minder scrollen, grote tikvlakken
   ========================================================================== */
@media (max-width: 560px) {
  .wrap { padding: calc(10px + env(safe-area-inset-top)) 10px 110px; }

  /* Dashboard */
  .od-topbar { margin: 4px 0 2px; }
  .od-user > i { width: 36px; height: 36px; padding: 8px; }
  .od-icon-btn { width: 38px; height: 38px; }
  .od-hero { padding: 15px; border-radius: 18px; margin: 6px 0 12px; }
  .od-hero h1 { font-size: 21px; }
  .od-hero > p { font-size: 12.5px; margin-bottom: 12px; }
  .od-stats { gap: 6px; }
  .od-stat { padding: 9px 5px; border-radius: 12px; }
  .od-stat i { width: 18px; height: 18px; }
  .od-stat strong { font-size: 20px; }
  .od-stat span { font-size: 9.5px; }
  .od-search { margin: 10px 0; border-radius: 12px; }
  .od-search input { padding: 12px 0; font-size: 14px; }
  .od-tabs { gap: 6px; padding-bottom: 8px; }
  .od-tab { padding: 8px 13px; font-size: 12.5px; }
  .od-section { margin: 12px 0; }
  .od-head { gap: 10px; margin-bottom: 8px; }
  .od-head .ic { width: 32px; height: 32px; border-radius: 9px; }
  .od-head h2 { font-size: 16px; }
  .od-head span { font-size: 11px; }
  .od-list { gap: 8px; }
  .od-card { padding: 11px; gap: 11px; border-radius: 15px; }
  .od-ring { width: 44px; height: 44px; }
  .od-ring::before { width: 33px; height: 33px; }
  .od-ring b { font-size: 11px; }
  .od-card-body strong { font-size: 15px; }
  .od-card-body > span { font-size: 12px; }
  .od-card-body small { font-size: 11.5px; }
  .od-badges { margin: 5px 0 1px; gap: 5px; }
  .od-badge { font-size: 9.5px; padding: 2px 7px; }
  .od-meta { gap: 8px; margin-top: 4px; }
  .od-meta span { font-size: 11px; }
  .od-quick { width: 36px; height: 36px; border-radius: 10px; }
  .od-footer { margin: 16px 0 6px; }

  /* Opname-detail */
  .hero { padding: 15px; border-radius: 16px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13px; }
  .progress-card { padding: 11px 13px; gap: 12px; margin: 10px 0; }
  .ring { width: 50px; height: 50px; }
  .ring::before { width: 37px; height: 37px; }
  .section-nav { gap: 6px; padding-bottom: 8px; }
  .chip { padding: 8px 12px; font-size: 12.5px; }
  .card { margin: 10px 0; border-radius: 15px; }
  .card > header { padding: 12px 14px; gap: 10px; }
  .card > header .ic { width: 34px; height: 34px; }
  .card > header h2 { font-size: 16px; }
  .card .body { padding: 13px 14px; }
  .field { margin-bottom: 11px; }
  .field > label, .field-label { font-size: 13.5px; margin-bottom: 5px; }
  .field input[type=text], .field input[type=number], .field input[type=date], .field select, .field textarea { padding: 11px 12px; }
  .choices { gap: 7px; }
  .choice { padding: 8px 12px; font-size: 13px; }
  .q { padding: 10px 0; }
  .calc-row { padding: 9px 12px; }
  .meas-add { padding: 12px; }

  /* Rapport */
  .report { padding: 15px; }
  .rep-head img { height: 38px; }
  .rep-head h1 { font-size: 20px; }
  .rep-table th, .rep-table td { padding: 6px 8px; font-size: 12.5px; }
  .rep-photos { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

  /* Login */
  .login-box { padding: 22px 18px 18px; }
}

/* ============================================================================
   Agenda-weergave (afspraken per dag, gekoppeld aan de planning)
   ========================================================================== */
.ag-gcal { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin: 2px 0 12px; border-radius: 12px; background: var(--mint); color: var(--green); font-size: 13px; font-weight: 600; }
.ag-gcal svg { width: 16px; height: 16px; flex: none; }
.ag-gcal span { flex: 1; }
.ag-gcal a { color: var(--green); font-weight: 700; }
.ag-day { margin: 14px 0; }
.ag-day-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--gold-soft); }
.ag-day-head i { width: 18px; height: 18px; color: var(--gold-2); flex: none; }
.ag-day-head h2 { margin: 0; font-size: 16px; text-transform: capitalize; flex: 1; }
.ag-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); box-shadow: var(--shadow-sm); cursor: pointer; }
.ag-card:active { transform: scale(0.99); }
.ag-time { text-align: center; min-width: 56px; padding-right: 12px; border-right: 1px solid var(--line); flex: none; }
.ag-time strong { display: block; font-family: "Jost", sans-serif; font-size: 19px; color: var(--ink); line-height: 1.1; }
.ag-time small { color: var(--gold-2); font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; font-weight: 700; }
.ag-info { flex: 1; min-width: 0; }
.ag-info strong { display: block; font-size: 15.5px; }
.ag-info span { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-info small { color: var(--steel); font-size: 12px; }
@media (max-width: 560px) {
  .ag-card { padding: 10px 12px; gap: 10px; border-radius: 13px; }
  .ag-time { min-width: 46px; padding-right: 10px; }
  .ag-time strong { font-size: 17px; }
  .ag-day-head h2 { font-size: 15px; }
}

/* ============================================================================
   Offerte-opvolging — "Actie ondernemen"
   ========================================================================== */
.od-badge.call { background: #fbe9e6; color: var(--red); display: inline-flex; align-items: center; gap: 3px; }
.od-badge.call svg { width: 11px; height: 11px; }
.ic.alert { background: #fbe9e6 !important; color: var(--red) !important; }
.od-count.alert { background: var(--red); }
.od-actions .od-head h2 { color: var(--red); }
.action-card { border-color: #f0c9c2; background: linear-gradient(180deg, #fdf1ef, var(--white)); }
.od-action-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; }
.od-action-icon svg { width: 22px; height: 22px; }
.od-quick.call { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 560px) { .od-action-icon { width: 40px; height: 40px; } }
