/* SpotKlok — werkgever-dashboard. Bouwt voort op base.css (tokens & componenten).
   Mobiel eerst; ≥ 960px: navy sidebar + topbar met gebruiker. */

:root {
  --amber-border: #f3d29b;
  --topbar-h: 60px;
  --imp-h: 0px;          /* hoogte van de oranje meekijkbalk (alleen als de beheerder meekijkt) */
  --imp-bg: #f59e0b;
  --imp-text: #1a1406;
}
@media (prefers-color-scheme: dark) {
  :root { --amber-border: #5a4718; --imp-bg: #f6b73c; --imp-text: #1a1406; }
}

/* ---------- Algemeen ---------- */
html { scroll-padding-top: 80px; }
body { min-height: 100vh; overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--primary); }
.noscript { max-width: 420px; margin: 40px auto; padding: 16px; text-align: center; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 14px; }
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 300; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 600; }
.skip-link:focus { top: 8px; }

@media (min-width: 960px) { .m-only { display: none !important; } }
@media (max-width: 959.98px) { .d-only { display: none !important; } }
@media (max-width: 379.98px) { .hide-xs { display: none !important; } }
@media (max-width: 479.98px) { .hide-sm { display: none !important; } }

.btn .icon { flex: none; }
.btn[aria-disabled="true"] { pointer-events: none; }
.btn-wa { background: var(--green); border-color: var(--green); color: #fff; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-wa-soft { color: var(--green); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent;
  color: var(--text); cursor: pointer; text-decoration: none !important;
}
.icon-btn:hover { background: var(--gray-soft); }
.badge {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff; border: 2px solid var(--surface);
  font-size: 11px; font-weight: 700; line-height: 15px; text-align: center; font-variant-numeric: tabular-nums;
}

/* Tonen (icoontegels, bolletjes) */
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-amber { background: var(--amber-soft); color: var(--amber); }
.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-red { background: var(--red-soft); color: var(--red); }
.tone-gray { background: var(--gray-soft); color: var(--gray); }
.tone-primary { background: var(--primary-soft); color: var(--primary); }

/* Avatars met naam-kleur */
.av-blue { background: var(--blue-soft); color: var(--blue); }
.av-green { background: var(--green-soft); color: var(--green); }
.av-amber { background: var(--amber-soft); color: var(--amber); }
.av-gray { background: var(--gray-soft); color: var(--text-2); }

/* ---------- Shell: topbar / main / tabbar ---------- */
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  height: var(--topbar-h); display: flex; align-items: center; gap: 2px;
  padding: 0 max(6px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.topbar .brand { font-size: 21px; gap: 8px; text-decoration: none !important; }
.topbar .brand img { width: 30px; height: 30px; }
.topbar-greet { font-weight: 600; color: var(--text-2); }
.conn-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 12px; font-size: 13px; font-weight: 600;
  background: var(--amber-soft); color: var(--amber); border-top: 1px solid var(--amber-border);
}

.user-block { display: flex; align-items: center; gap: 12px; }
.user-link {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 10px 4px 4px; border-radius: 12px;
  color: var(--text); text-decoration: none !important; transition: background .15s;
}
.user-link:hover { background: var(--gray-soft); }
.user-link.active { background: var(--primary-soft); }
.user-txt { line-height: 1.25; min-width: 0; }
.user-name { display: block; font-weight: 700; font-size: 14.5px; }
.user-co { display: block; color: var(--muted); font-size: 13px; }
.user-block .btn { margin-left: 6px; }

.main {
  display: block; width: 100%; max-width: 1200px; margin: 0 auto; outline: none;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(var(--tabbar-h) + var(--safe-bottom) + 28px) max(16px, env(safe-area-inset-left, 0px));
}

.tabbar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 0 max(4px, env(safe-area-inset-right, 0px)) var(--safe-bottom) max(4px, env(safe-area-inset-left, 0px));
}
.tab {
  height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: none !important;
}
.tab-ico { display: grid; place-items: center; width: 60px; height: 30px; border-radius: 999px; transition: background .15s, color .15s; }
.tab > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tab.active { color: var(--primary); }
.tab.active .tab-ico { background: var(--primary-soft); }
@media (max-width: 379.98px) { .tab { font-size: 11.5px; } .tab-ico { width: 52px; } }

/* Toasts: boven de tabbar; op desktop rechtsonder */
body.in-app .toast-host { bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px); }

/* Sidebar (desktop) */
.sidebar { display: none; }
.side-brand {
  display: flex; align-items: center; gap: 10px; padding: 2px 10px 26px;
  color: #fff; font-weight: 800; font-size: 23px; letter-spacing: -.02em; text-decoration: none !important;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 46px; padding: 0 14px; border-radius: 10px;
  color: var(--sidebar-text); font-weight: 600; font-size: 15.5px; text-decoration: none !important;
  transition: background .15s, color .15s;
}
.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-link.active { background: var(--sidebar-active); color: #fff; }
.side-link .badge { position: static; margin-left: auto; border: 0; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
.live { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--sidebar-text); padding: 0 6px; opacity: .9; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #8a94a6; flex: none; }
.live.is-on .live-dot { background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: sk-pulse 2.4s infinite; }
.live.is-off .live-dot { background: #fbbf24; }
@keyframes sk-pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

@media (min-width: 960px) {
  :root { --topbar-h: 64px; }
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .sidebar {
    display: flex; flex-direction: column; grid-column: 1; grid-row: 1 / span 2;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--sidebar); color: var(--sidebar-text); padding: 24px 14px 18px;
  }
  .topbar { grid-column: 2; grid-row: 1; }
  .topbar-inner { padding: 0 28px 0 36px; gap: 10px; }
  .main { grid-column: 2; grid-row: 2; padding: 28px 36px 56px; }
  .tabbar { display: none; }
  body.in-app .toast-host { left: auto; right: 24px; transform: none; bottom: 24px; }
}
@media (prefers-color-scheme: dark) {
  .side-link.active { box-shadow: inset 3px 0 0 var(--primary); color: var(--text); }
  .badge { background: var(--amber); color: #1a1406; }
  .side-link .badge { background: var(--amber); }
  .avatar-green { color: #13180e; }
  .btn-wa { color: #13180e; }
  .live-dot { background: #6b7266; }
}

/* ---------- Paginakop ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 2px 0 16px; }
.page-head-text { min-width: 0; }
.page-head h1 { font-size: 28px; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.page-sub { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.page-date { color: var(--text-2); font-size: 15px; white-space: nowrap; padding-bottom: 4px; }
.page-head-today { align-items: flex-end; }
@media (max-width: 959.98px) {
  .page-head .btn { min-height: 44px; }
}
@media (max-width: 420px) {
  .page-head .btn-primary > span { display: none; }
  .page-head .btn-primary { width: 48px; padding: 0; }
  .page-head-today { align-items: baseline; }
}
@media (min-width: 960px) {
  .page-head { margin-bottom: 22px; }
  .page-head h1 { font-size: 38px; }
  .page-sub { font-size: 19px; }
}

.back-link {
  display: inline-flex; align-items: center; gap: 2px; min-height: 40px; margin: -6px 0 2px -6px; padding: 0 6px;
  font-weight: 600; font-size: 15px; color: var(--text-2); border-radius: 8px; text-decoration: none !important;
}
.back-link:hover { color: var(--primary); }

/* ---------- Stat-tegels ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 14px; min-width: 0; }
.stat-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.stat-txt { min-width: 0; }
.stat-val { font-size: 26px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-lbl { color: var(--text-2); font-size: 14px; line-height: 1.25; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; } }
@media (min-width: 960px) { .stat { padding: 18px; gap: 16px; } .stat-ico { width: 52px; height: 52px; } .stat-val { font-size: 30px; } }
@media (max-width: 379.98px) { .stat { padding: 12px 10px; gap: 10px; } .stat-ico { width: 38px; height: 38px; } .stat-val { font-size: 23px; } .stat-lbl { font-size: 13px; } }

/* ---------- Banner laatste aankomst ---------- */
.latest {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px;
  border-radius: var(--radius-lg); background: var(--green-soft); border: 1px solid var(--green-border);
  color: var(--text); text-decoration: none !important;
}
.latest-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.latest-title { font-weight: 700; font-size: 16px; }
.latest-sub { color: var(--text-2); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.latest-cta { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.latest:hover .latest-cta { text-decoration: underline; }

.warn-banner { margin-bottom: 14px; }
.warn-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
.warn-list a { font-weight: 600; }

/* ---------- Secties & kaarten ---------- */
.section { margin-top: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-head h2 { font-size: 19px; display: flex; align-items: center; }
.count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; margin-left: 8px;
  border-radius: 999px; background: var(--gray-soft); color: var(--text-2); font-size: 13px; font-weight: 700;
}
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h2 { font-size: 18px; display: flex; align-items: center; gap: 9px; }
.card-h h2 .icon { color: var(--text-2); }
.grid-2 { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; } }
.new-under { margin-top: 12px; }
.list-count { margin: 0 0 8px 2px; }

/* ---------- Klus-kaarten (mobiel) ---------- */
.job-list { display: grid; gap: 10px; }
@media (min-width: 640px) { .job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Klussenlijst: kaarten tot 1200px, daarboven tabel (past dan zonder horizontaal scrollen) */
@media (min-width: 1200px) { .list-cards { display: none !important; } }
@media (max-width: 1199.98px) { .list-table { display: none !important; } }
@media (max-width: 1365.98px) { .tbl-share .tbl-lbl { display: none; } .tbl-share { width: 36px; padding: 0; } }
.job-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.job-card:hover { border-color: var(--primary); }
.job-thumb { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; }
.job-main { min-width: 0; }
.job-title { display: flex; align-items: flex-start; gap: 6px; font-size: 16.5px; font-weight: 700; line-height: 1.25; margin: 1px 0 5px; }
.job-title a { color: var(--text); word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; text-decoration: none; }
.job-title a:hover { color: var(--primary); }
.job-title .warn-ico { margin-top: 1px; }
.job-meta { display: flex; align-items: center; gap: 7px; min-width: 0; margin-top: 4px; color: var(--text-2); font-size: 14px; }
.job-meta .icon { color: var(--muted); }
.job-progress { font-size: 13px; font-weight: 600; color: var(--text); }
.job-progress.is-muted { color: var(--muted); font-weight: 500; }
.job-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.share-btn { white-space: nowrap; min-height: 40px; }
@media (max-width: 399.98px) {
  .job-card { grid-template-columns: minmax(0, 1fr) auto; }
  .job-thumb { display: none; }
}
/* 2 kolommen kaarten (640–1199px: tablet, liggende telefoon, kleine laptop): status + deelknop onder de tekst,
   anders blijft er maar 55–140px over voor titel, naam en tijden. */
@media (min-width: 640px) and (max-width: 1199.98px) {
  .job-card { grid-template-columns: auto minmax(0, 1fr); }
  .job-side {
    grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center;
    padding-top: 10px; border-top: 1px solid var(--border);
  }
}

.warn-ico { display: inline-grid; place-items: center; flex: none; }
.warn-ico.sev-red { color: var(--red); }
.warn-ico.sev-amber { color: var(--amber); }
.warn-ico.sev-gray { color: var(--gray); }

/* ---------- Tabellen (desktop) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th {
  text-align: left; padding: 11px 16px; background: var(--surface-2);
  color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.table td { padding: 13px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
@media (max-width: 1279.98px) { .table th, .table td { padding-left: 12px; padding-right: 12px; } }
.table tr[data-href] { cursor: pointer; }
.table tr[data-href]:hover td { background: var(--surface-2); }
.table-compact td, .table-compact th { padding: 10px 12px; font-size: 14px; }
.card .table-wrap .table-compact th:first-child { border-top-left-radius: 8px; }
.cell-title-wrap { display: flex; align-items: center; gap: 6px; min-width: 150px; }
.cell-title { color: var(--text); font-weight: 700; }
.cell-person { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.td-actions { text-align: right; white-space: nowrap; width: 1%; }
.td-actions .btn + .btn { margin-left: 6px; }
.group-row th { background: var(--bg); color: var(--text); font-size: 14px; font-weight: 700; padding-top: 14px; border-top: 1px solid var(--border); }
.group-sum { float: right; color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- Feed (meldingen) ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); cursor: pointer; min-width: 0; }
.feed > .feed-item:first-child { border-top: 0; padding-top: 2px; }
.ev-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.feed-body { flex: 1 1 auto; min-width: 0; }
.feed-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.feed-title { font-weight: 700; color: var(--text); min-width: 0; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
a.feed-title { text-decoration: none; }
.feed-time { color: var(--muted); font-size: 13px; white-space: nowrap; flex: none; }
.feed-sub { color: var(--text-2); font-size: 14px; margin-top: 1px; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.feed-meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.feed-full .feed-item { padding: 14px 16px; }
.feed-full .feed-item:hover { background: var(--surface-2); }
.feed-full .feed-item.is-new { background: var(--primary-soft); }
.feed-day {
  padding: 10px 16px 8px; background: var(--surface-2); border-top: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--text-2); position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px)); z-index: 1;
}
body.is-imp .feed-day { top: calc(var(--topbar-h) + var(--imp-h)); }
.feed-full > .feed-day:first-child { border-top: 0; }
.feed-sk { padding: 16px; }
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); vertical-align: 2px; margin-left: 4px; }
.more-wrap { margin-top: 12px; }
/* geen overflow:hidden, anders plakken de dag-kopjes (sticky) niet aan de viewport */
.card-flush.feed-card { overflow: visible; }
.feed-full > li:first-child { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.feed-full > li:last-child { border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); }

.notif-card { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.notif-state { display: flex; gap: 12px; align-items: flex-start; }
.notif-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.notif-btn { align-self: stretch; min-height: 48px; }
.sound-switch { padding-top: 12px; border-top: 1px solid var(--border); min-height: 44px; }
@media (min-width: 640px) { .notif-btn { align-self: flex-start; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ---------- Lege staat ---------- */
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 12px; }
.empty-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 4px; }
.empty-title { font-weight: 700; font-size: 17px; max-width: 34ch; }
.empty-text { color: var(--text-2); font-size: 14.5px; max-width: 46ch; }
.empty-state .btn { margin-top: 8px; }
.sk-card { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Toolbar: filter-chips + zoeken ---------- */
.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s, border-color .15s;
}
.seg-btn:hover { border-color: var(--primary); color: var(--primary); }
.seg-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
@media (max-width: 399.98px) { .seg-btn { padding: 0 13px; font-size: 14px; } .seg { gap: 6px; } }
.search { position: relative; display: block; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 44px; -webkit-appearance: none; appearance: none; }
@media (min-width: 760px) {
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .toolbar .search { width: 340px; flex: none; }
}

/* ---------- Menu (popover) & sheets ---------- */
.menu-pop {
  position: fixed; z-index: 950; min-width: 230px; max-width: calc(100vw - 16px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 6px; animation: sk-fade .12s ease-out;
}
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: var(--text);
  font-size: 15px; font-weight: 500; text-align: left; cursor: pointer; text-decoration: none !important;
}
.menu-item .icon { color: var(--text-2); }
.menu-item:hover, .menu-item:focus-visible { background: var(--gray-soft); outline: none; }
.menu-item.danger, .menu-item.danger .icon { color: var(--red); }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.dialog.sheet { gap: 2px; padding: 10px 10px calc(10px + var(--safe-bottom)); }
.sheet .menu-item { min-height: 52px; font-size: 16px; }
.sheet-title { padding: 8px 12px 10px; font-weight: 700; color: var(--text-2); font-size: 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.sheet-cancel { margin-top: 8px; min-height: 50px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -8px -4px 0; }
.dialog { max-height: calc(100vh - 24px); overflow-y: auto; }

/* ---------- Delen ---------- */
.link-box {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--border);
  color: var(--text); font-family: var(--mono); font-size: 14px; line-height: 1.4;
}
.link-box .icon { color: var(--primary); margin-top: 1px; }
.link-text { word-break: break-all; user-select: all; -webkit-user-select: all; cursor: text; }
.share-job { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--radius); background: var(--primary-soft); }
.share-job .small { display: flex; align-items: center; gap: 6px; }
.share-job .small .icon { color: var(--muted); }
.share-dialog { gap: 12px; }
.share-page { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.share-hero { text-align: center; padding: 8px 4px 2px; }
.share-hero h1 { font-size: 28px; margin-bottom: 6px; }
.hero-ico { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.share-title { font-size: 17px; }
.share-card { gap: 10px; }
.share-preview summary { cursor: pointer; font-weight: 600; min-height: 28px; }
.share-preview p { margin-top: 8px; }
.share-foot { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Klusdetail ---------- */
.detail-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.detail-pills { gap: 8px; }
.detail-title { font-size: 26px; margin: 10px 0 4px; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.detail-actions { display: flex; gap: 8px; }
.detail-actions .btn-primary { flex: 1 1 auto; }
.detail-actions .btn { min-height: 48px; }
.detail-actions .btn-icon { width: 48px; }
.detail-banner { margin-bottom: 14px; align-items: center; }
@media (min-width: 720px) {
  .detail-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .detail-actions .btn-primary { flex: none; }
}
@media (min-width: 960px) { .detail-title { font-size: 32px; } }

.detail-grid { display: flex; flex-direction: column; gap: 16px; }
.detail-grid > .col { display: contents; }
.area-info { order: 1; }
.area-timeline { order: 2; }
.area-map { order: 3; }
.area-devices { order: 4; }
@media (min-width: 960px) {
  .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
  .detail-grid > .col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .col-main .area-map { order: 1; }
  .col-main .area-timeline { order: 2; }
  .col-main .area-devices { order: 3; }
  .col-side { position: sticky; top: calc(var(--topbar-h) + var(--imp-h) + 18px); }
}
@media (min-width: 1280px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 390px; } }

/* Fraude-/waarschuwingsblok */
.alert-block { margin-bottom: 16px; padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--red-border); background: var(--red-soft); }
.alert-block.sev-amber { border-color: var(--amber-border); background: var(--amber-soft); }
.alert-block.sev-gray { border-color: var(--border); background: var(--surface-2); }
.alert-head { display: flex; gap: 12px; align-items: flex-start; }
.alert-head > .icon { color: var(--red); margin-top: 1px; }
.alert-block.sev-amber .alert-head > .icon { color: var(--amber); }
.alert-block.sev-gray .alert-head > .icon { color: var(--gray); }
.alert-head h2 { font-size: 18px; }
.alert-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.alert-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.alert-item.sev-red { border-left: 4px solid var(--red); }
.alert-item.sev-amber { border-left: 4px solid var(--amber); }
.alert-item.sev-gray { border-left: 4px solid var(--gray); }
.alert-item-title { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.alert-item-title .icon { margin-top: 2px; }
.alert-item.sev-red .alert-item-title .icon { color: var(--red); }
.alert-item.sev-amber .alert-item-title .icon { color: var(--amber); }
.alert-item.sev-gray .alert-item-title .icon { color: var(--gray); }
.alert-expl { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.alert-sub { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.alert-sub li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.alert-tip { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--red-border); }
.alert-tip .btn { align-self: flex-start; min-height: 44px; }
@media (min-width: 720px) { .alert-tip { flex-direction: row; align-items: center; justify-content: space-between; } .alert-tip .btn { align-self: center; flex: none; } }

/* Apparaat-labels */
.dev { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 13px; color: var(--text-2); vertical-align: middle; }
.dev-id {
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .05em;
  padding: 2px 6px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); flex: none;
}
.dev-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-alt .dev-id { background: var(--red-soft); color: var(--red); }

/* Info */
.info-row { align-items: flex-start; }
.info-row .grow { min-width: 0; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.info-row .grow strong { display: block; }
.info-actions { display: flex; gap: 6px; flex: none; }
.info-block { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.info-block h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 6px; }
.info-block h3 .icon { color: var(--muted); }
.created { margin-top: 14px; }

/* Kaart */
.map { isolation: isolate; }
.map-msg { height: 100%; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; color: var(--muted); font-size: 14px; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; }
.legend-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.legend-site { background: var(--primary); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.legend-ring { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 6px; border: 1.5px dashed var(--primary); }
.map-note { margin-top: 6px; }
.leaflet-popup-content { font-size: 13.5px; line-height: 1.45; margin: 10px 14px; }
.leaflet-container a.leaflet-popup-close-button { width: 28px; height: 28px; font-size: 20px; }
@media (prefers-color-scheme: dark) {
  .leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
  .leaflet-bar a, .leaflet-bar a:hover { background: var(--surface-2); color: var(--text); border-bottom-color: var(--border); }
  .leaflet-bar { border-color: var(--border) !important; }
  .leaflet-container .leaflet-control-attribution { background: rgba(26, 29, 24, .8); color: var(--muted); }
  .leaflet-container .leaflet-control-attribution a { color: var(--text-2); }
}

/* Tijdlijn */
.tl-accept { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--radius); background: var(--surface-2); }
.tl-accept.is-pending { color: var(--text-2); }
.tl-day { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.tl-day + .tl-day { margin-top: 12px; }
.tl-day.is-today { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary-soft); }
.tl-day-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
.tl-day-name { font-weight: 700; font-size: 16px; }
.tl-sum { font-size: 14px; color: var(--text-2); }
.tl-sum strong { color: var(--text); font-variant-numeric: tabular-nums; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl-step { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--border); }
.tl-step:last-child::before { display: none; }
.tl-dot {
  position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--gray-soft); color: var(--muted);
}
.tl-step.is-pending .tl-dot, .tl-accept.is-pending .tl-dot { background: var(--surface); border: 2px dashed var(--border); }
.tl-dot.tone-green { background: var(--green-soft); color: var(--green); }
.tl-dot.tone-amber { background: var(--amber-soft); color: var(--amber); }
.tl-dot.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tl-dot.tone-red { background: var(--red-soft); color: var(--red); }
.tl-dot.tone-gray { background: var(--gray-soft); color: var(--gray); }
.tl-body { flex: 1 1 auto; min-width: 0; padding-top: 3px; }
.tl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tl-time { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.tl-time-sm { font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.tl-step.is-pending strong { color: var(--muted); font-weight: 600; }
.tl-info { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.tl-dev { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 5px; }
.tl-maplink { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; }
.tl-none { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.tl-extra { margin-top: 14px; padding: 12px; border-radius: var(--radius); background: var(--red-soft); border: 1px solid var(--red-border); }
.tl-extra-h { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--red); margin-bottom: 6px; }
.tl-extra ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.tl-extra li + li { padding-top: 8px; border-top: 1px dashed var(--red-border); }
.tl-future { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px dashed var(--border); color: var(--text-2); font-size: 14px; }

/* Apparaten (volle breedte onder de detail-grid) */
.area-devices { margin-top: 16px; }
@media (min-width: 960px) { .area-devices { margin-top: 18px; } }
.dev-note { margin: -4px 0 12px; }
.dev-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .dev-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Tabel pas als hij past: vanaf 1280px is de inhoud (zonder sidebar) ≥ 960px breed */
.dev-table { display: none; }
@media (min-width: 1280px) { .dev-table { display: block; } .dev-cards { display: none; } }
.dev-card { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.dev-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 10px 0 0; font-size: 14px; }
.dev-dl dt { color: var(--muted); }
.dev-dl dd { margin: 0; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }

/* ---------- Formulier ---------- */
.form-page { max-width: 780px; margin: 0 auto; }
.form-card { margin-bottom: 14px; }
.form-card > h2 { display: flex; align-items: center; gap: 9px; font-size: 17px; margin-bottom: 14px; }
.form-card > h2 .icon { color: var(--primary); }
.req { color: var(--red); }
.hint.hint-warn { color: var(--amber); font-weight: 600; }
.form-err { margin-bottom: 14px; }
.addr-row { display: flex; gap: 8px; }
.addr-row .input { flex: 1 1 auto; min-width: 0; }
.addr-btn { min-height: 48px; flex: none; }
.geo-results { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.geo-results:empty { display: none; }
.geo-result {
  width: 100%; min-height: 48px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font-size: 14.5px; text-align: left; cursor: pointer; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere;
}
.geo-result .icon { color: var(--muted); margin-top: 1px; }
.geo-result:hover { border-color: var(--primary); }
.geo-result[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.geo-result[aria-pressed="true"] .icon { color: var(--primary); }
.geo-empty { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-2); padding: 8px 2px; }
.geo-label { padding: 0 2px; }
.form-map-wrap { margin-top: 12px; }
.form-map { height: 260px; }
.map-hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; }
.map-hint .icon { margin-top: 2px; }
[data-geo-hint] { margin-top: 10px; }
.multi-switch { margin-bottom: 14px; min-height: 44px; }
.plan-sum { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text-2); font-size: 14.5px; }
.plan-sum:empty { display: none; }
.plan-sum .icon { color: var(--primary); }
.form-actions {
  position: sticky; z-index: 30; bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 0;
  background: linear-gradient(to top, var(--bg) 72%, transparent);
}
.form-actions .btn-primary { flex: 1 1 auto; }
@media (max-width: 379.98px) { .form-actions .btn-ghost { padding: 0 12px; } }
@media (min-width: 960px) { .form-actions { bottom: 0; justify-content: flex-end; } .form-actions .btn-primary { flex: none; min-width: 240px; } }
input[type="date"].input, input[type="time"].input { -webkit-appearance: none; appearance: none; min-width: 0; display: block; }
input[type="date"].input::-webkit-date-and-time-value, input[type="time"].input::-webkit-date-and-time-value { text-align: left; }

/* ---------- Uren ---------- */
.period-card { display: flex; flex-direction: column; gap: 12px; }
.seg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .seg-grid { display: flex; } }
.period-custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.period-label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14.5px; font-weight: 600; }
.period-label .icon { color: var(--muted); }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.total { padding: 14px; min-width: 0; }
.total-lbl { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.total-lbl .icon { color: var(--muted); }
.total-val { font-size: 26px; font-weight: 800; line-height: 1.15; margin-top: 4px; }
.total-sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 419.98px) {
  .total { padding: 12px 10px; }
  .total-val { font-size: 21px; }
  .total-lbl { font-size: 12.5px; }
  .total-lbl .icon { display: none; }
}
@media (min-width: 960px) { .total { padding: 18px; } .total-val { font-size: 30px; } }
.per-worker { margin-bottom: 14px; }
.pw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pw-list li { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--border); }
.pw-list li:first-child { border-top: 0; }
.pw-val { font-weight: 800; font-size: 17px; min-width: 52px; text-align: right; }
@media (max-width: 419.98px) { .pw-list .muted.small { display: none; } }
.day-group + .day-group { margin-top: 18px; }
.day-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 2px 8px; }
.day-group-head h3 { font-size: 16px; }
.hours-card { cursor: pointer; padding: 14px; }
.hours-card + .hours-card { margin-top: 8px; }
.hours-top { display: flex; align-items: flex-start; gap: 12px; }
.hours-val { font-size: 22px; font-weight: 800; flex: none; }
.hours-times { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.hours-times span { display: inline-flex; align-items: center; gap: 5px; }
.hours-times .icon { color: var(--muted); }

/* ---------- Auth ---------- */
.auth-wrap {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: max(24px, env(safe-area-inset-top, 0px)) 16px max(24px, env(safe-area-inset-bottom, 0px));
}
.auth-card { width: 100%; max-width: 420px; padding: 26px 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.auth-title { font-size: 26px; margin-bottom: 6px; }
.auth-lead { font-size: 15px; }
.auth-foot { color: var(--muted); font-size: 13px; text-align: center; max-width: 360px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 84px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  min-height: 40px; min-width: 70px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--primary); font-weight: 600; font-size: 14px; cursor: pointer;
}
.pw-toggle:hover { background: var(--primary-soft); }
@media (max-width: 480px) { .auth-card { padding: 22px 18px; } }

.auth-forgot { display: flex; justify-content: flex-end; margin-top: -6px; }
.auth-forgot a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; font-weight: 600; }
.auth-title:focus { outline: none; }
.auth-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.auth-state .auth-title { margin-bottom: 0; }
.auth-state-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px; }
.auth-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; color: var(--text-2); }
.auth-loading .spinner { color: var(--primary); }

/* ---------- Abonnement: pakketbadge, Pro-chip, vergrendelde functies ---------- */
.plan-pill {
  display: inline-flex; align-items: center; max-width: 100%; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--gray-soft); color: var(--text-2);
}
.plan-pill.is-pro { background: var(--primary-soft); color: var(--primary); }
.plan-pill.is-trial { background: var(--amber-soft); color: var(--amber); }
.pro-chip {
  display: inline-flex; align-items: center; gap: 3px; flex: none; padding: 2px 7px; border-radius: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.35;
  background: var(--primary); color: var(--on-primary); vertical-align: middle;
}
.pro-chip .icon { width: 12px; height: 12px; }
.menu-item .menu-badge { margin-left: auto; font-size: 12px; padding: 3px 8px; min-width: 0; }

/* Sidebar (desktop): pakket boven "Nieuwe klus" */
.side-plan {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); color: var(--sidebar-text); text-decoration: none !important; transition: background .15s;
}
.side-plan:hover { background: rgba(255, 255, 255, .1); }
.side-plan.active { background: var(--sidebar-active); }
.side-plan-lbl { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }

/* Upgrade-dialoog */
.upgrade-hero { display: flex; align-items: center; gap: 12px; }
.upgrade-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.upgrade-tags { gap: 8px; margin-bottom: 2px; }

/* Formulier: vergrendelde schakelaar + limietmelding */
.switch.is-locked { color: var(--text-2); }
.switch.is-locked .track { opacity: .5; }
.switch.is-locked .pro-chip { margin-left: 2px; }
.multi-switch.is-locked { margin-bottom: 6px; }
.lock-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; font-size: 14px; color: var(--text-2); }
.lock-note .icon { color: var(--muted); margin-top: 2px; }
.limit-banner { margin-bottom: 14px; }
.limit-banner p { margin-top: 2px; }
.limit-actions { gap: 8px; margin-top: 10px; }
.limit-hint { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; }
.limit-hint .icon { color: var(--muted); }

/* Uren: vergrendelde export, historie-melding */
.btn-locked { color: var(--text-2); }
.btn-locked > .icon { color: var(--muted); }
.history-note { margin-top: 14px; align-items: center; }
.history-note > .icon { color: var(--blue); }
[data-results] > .history-note:first-child { margin-top: 14px; margin-bottom: -2px; }

/* Klusdetail: vergrendelde apparaten */
.locked-body {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px;
  border-radius: var(--radius); border: 1px dashed var(--border); background: var(--surface-2);
}
.locked-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
@media (max-width: 479.98px) { .locked-body { flex-direction: column; } }
.alert-lock { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.alert-lock .icon { margin-top: 2px; color: var(--muted); }
.dev-locked .dev-label { color: var(--muted); font-style: italic; }

/* Vandaag: proefbanner */
.trial-banner { margin-bottom: 14px; align-items: center; }
.trial-banner .grow a { white-space: nowrap; }
/* v1.17.2 (na review): melding nieuwe voorwaarden + verwerkersovereenkomst (Vandaag) */
.terms-banner { margin-bottom: 14px; }
.terms-banner .grow a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.terms-actions { margin-top: 10px; }
.banner-x { width: 36px; height: 36px; margin: -6px -8px -6px 0; border-radius: 10px; color: var(--text-2); }

/* ---------- #/abonnement ---------- */
.plan-page { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.plan-page > .page-head { margin-bottom: 2px; }
.cur-plan { display: flex; flex-direction: column; gap: 12px; }
.cur-plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cur-plan-name { font-size: 26px; font-weight: 800; margin-top: 2px; }
.usage { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.usage-top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; }
.meter { height: 8px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.meter.is-full > span { background: var(--amber); }
.plans { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.plan-card { display: flex; flex-direction: column; gap: 14px; }
.plan-card.is-current { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.plan-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-name { font-size: 21px; font-weight: 800; }
.plan-price { margin-top: 2px; color: var(--text-2); font-weight: 600; font-size: 15px; }
.feat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.feat-list li { display: flex; align-items: flex-start; gap: 10px; }
.feat-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: -1px; }
.feat-list .is-on .feat-ico { background: var(--green-soft); color: var(--green); }
.feat-list .is-limited .feat-ico { background: var(--amber-soft); color: var(--amber); }
.feat-list .is-off { color: var(--muted); }
.feat-list .is-off .feat-ico { background: var(--gray-soft); color: var(--muted); }
.plan-cta { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }

/* ---------- #/account ---------- */
.account-page { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.account-page > .page-head { margin-bottom: 2px; }
.acc-card > h2 { display: flex; align-items: center; gap: 9px; font-size: 17px; margin-bottom: 14px; }
.acc-card > h2 .icon { color: var(--primary); }
.acc-id { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-width: 0; }
.acc-email { word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.acc-actions { display: flex; justify-content: flex-end; }
.acc-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.readonly-val {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px dashed var(--border); color: var(--text-2);
  word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere;
}
.readonly-val .icon { color: var(--muted); }
.acc-logout { display: flex; align-items: center; gap: 12px; }
@media (max-width: 639.98px) {
  .acc-actions .btn { width: 100%; }
  .acc-logout { flex-direction: column; align-items: stretch; }
}

.history-lock-actions { justify-content: center; gap: 8px; }

/* ---------- Meekijken door beheerder: vaste oranje balk bovenaan ---------- */
body.is-imp { --imp-h: calc(44px + env(safe-area-inset-top, 0px)); }
.imp-bar {
  position: fixed; z-index: 80; top: 0; left: 0; right: 0; height: var(--imp-h);
  display: flex; align-items: center; gap: 10px;
  padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
  background: var(--imp-bg); color: var(--imp-text); font-size: 14px; font-weight: 700; line-height: 1.25;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}
.imp-txt { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 6px; }
.imp-lbl { flex: none; font-weight: 600; }
.imp-lbl::after { content: ':'; }
.imp-short { display: none; }
.imp-co { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
@media (max-width: 639.98px) {
  /* telefoon: twee regels, de klantnaam groot en altijd zichtbaar */
  .imp-txt { flex-direction: column; align-items: stretch; gap: 1px; }
  .imp-lbl { font-size: 12px; line-height: 1.2; opacity: .92; }
  .imp-lbl::after { content: none; }
  .imp-long { display: none; }
  .imp-short { display: inline; }
  .imp-co { display: block; flex: none; max-width: 100%; font-size: 14px; line-height: 1.25; }
}
.imp-stop {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--imp-text); color: var(--imp-bg); font-weight: 700; font-size: 14px; cursor: pointer;
}
.imp-stop:hover { filter: brightness(1.2); }
.imp-stop .spinner { width: 14px; height: 14px; }
body.is-imp .shell { padding-top: var(--imp-h); }
body.is-imp .topbar { top: var(--imp-h); padding-top: 0; }
@media (max-width: 479.98px) {
  body.is-imp { --imp-h: calc(52px + env(safe-area-inset-top, 0px)); }
  .imp-bar { font-size: 13px; }
}
@media (min-width: 960px) {
  body.is-imp .sidebar { top: var(--imp-h); height: calc(100vh - var(--imp-h)); }
}

/* =====================================================================
   v1.2 — medewerkers & meerdere medewerkers per klus (SPEC-MEDEWERKERS.md §5)
   ===================================================================== */
.btn .truncate { min-width: 0; }

/* Avatars: extra klein, statusbolletje per medewerker, gestapeld */
.avatar-xs { width: 24px; height: 24px; font-size: 9.5px; letter-spacing: 0; }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.sdot {
  position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--surface); background: var(--gray);
}
.avatar-xs + .sdot { width: 10px; height: 10px; right: -3px; bottom: -3px; }
.sdot-green { background: var(--green); }
.sdot-amber { background: var(--amber); }
.sdot-blue { background: var(--blue); }
.sdot-gray { background: var(--gray); }
.sdot-red { background: var(--red); }
.sdot-none { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--muted); }
.av-stack { display: inline-flex; align-items: center; flex: none; padding-right: 3px; }
.av-stack > * + * { margin-left: -5px; }
/* eerste avatar bovenop, zodat elk statusbolletje (rechtsonder) zichtbaar blijft */
.av-stack > :nth-child(1) { z-index: 4; }
.av-stack > :nth-child(2) { z-index: 3; }
.av-stack > :nth-child(3) { z-index: 2; }
.job-progress .wrap-txt { min-width: 0; }
.av-stack .avatar { box-shadow: 0 0 0 2px var(--surface); }
.av-more { background: var(--gray-soft); color: var(--text-2); font-size: 10px; }
.job-workers { gap: 8px; }
.td-workers { min-width: 160px; }
.td-workers .job-meta { margin-top: 0; color: var(--text); font-size: 15px; }

/* Klusdetail: sectie Medewerkers */
.area-workers { order: 0; }
@media (min-width: 960px) { .col-main .area-workers { order: 0; } }
.wk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wk-item { display: flex; flex-direction: column; gap: 7px; padding: 12px 0; border-top: 1px solid var(--border); min-width: 0; }
.wk-item:first-child { border-top: 0; padding-top: 2px; }
.wk-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wk-name { font-weight: 700; font-size: 16px; line-height: 1.3; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.wk-name a { color: var(--text); }
.wk-name a:hover { color: var(--primary); }
.wk-name .chip { vertical-align: 1px; margin-left: 2px; }
.wk-actions { display: flex; gap: 6px; flex: none; }
.wk-sub, .wk-times, .wk-item > .small, .wk-item > .chips { padding-left: 52px; }
.wk-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.wk-times { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.wk-times > span { display: inline-flex; align-items: center; gap: 5px; }
.wk-times .icon { color: var(--muted); }
.wk-worked { color: var(--text); font-weight: 700; }
.wk-item > .chips { margin-top: 0; }
@media (max-width: 379.98px) { .wk-sub, .wk-times, .wk-item > .small, .wk-item > .chips { padding-left: 0; } }
.wk-empty { display: flex; gap: 12px; align-items: flex-start; }
.wk-empty-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.wk-gone, .wk-help { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; }
.wk-gone .icon, .wk-help .icon { margin-top: 2px; color: var(--muted); }
.wk-erase { margin-top: 8px; }
.dialog fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.dialog fieldset.field .check-row { font-weight: 500; }
.alert-who { color: var(--text); }

/* Tijdlijn: acceptatie per medewerker, per dag een blok per medewerker */
.acc-list { list-style: none; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); display: flex; flex-direction: column; gap: 12px; }
.acc-list li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.acc-name { font-weight: 700; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.acc-list .chips { margin-top: 4px; }
.tl-worker + .tl-worker { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.tl-worker-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-width: 0; }
.tl-worker-sum { margin: -2px 0 10px 32px; }
.tl-worker + .tl-none, .tl-none + .tl-none { margin-top: 10px; }

/* Kaart: marker met initialen (kleur = soort melding) */
.wk-marker {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 2.5px solid #fff; color: #fff; font: 700 10.5px/1 var(--font); letter-spacing: .02em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.legend-initials {
  display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%;
  background: var(--gray); color: #fff; font-style: normal; font-size: 7.5px; font-weight: 700;
}
@media (prefers-color-scheme: dark) { .wk-marker, .legend-initials { color: #13180e; } }

/* Delen: knop per medewerker; vinkje na versturen */
@media (max-width: 479.98px) { .share-wa.btn-lg { font-size: 16px; padding: 0 14px; } }
.sent-mark { display: none; }
.share-wa.is-sent .sent-mark { display: inline-grid; }
.share-one { display: flex; align-items: flex-start; gap: 6px; }
.share-one .icon { margin-top: 2px; color: var(--primary); }

/* Klusformulier: medewerkers kiezen */
.wf-search { margin-bottom: 10px; }
.wf-list { display: flex; flex-direction: column; gap: 8px; }
.wf-sk { height: 58px; border-radius: var(--radius); }
.wf-opt {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  transition: border-color .15s, background .15s; -webkit-user-select: none; user-select: none;
}
.wf-opt:hover { border-color: var(--primary); }
.wf-opt.is-on { border-color: var(--primary); background: var(--primary-soft); }
.wf-cb { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.wf-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wf-name { font-weight: 600; line-height: 1.3; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.wf-name .chip { vertical-align: 1px; margin-left: 2px; }
.wf-sub { color: var(--text-2); font-size: 13.5px; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.wf-box {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--border); flex: none;
  display: grid; place-items: center; color: transparent; background: var(--surface); transition: background .15s, border-color .15s;
}
.wf-opt.is-on .wf-box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.wf-cb:focus-visible ~ .wf-box { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.wf-msg { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; padding: 2px; }
.wf-msg .icon { color: var(--muted); flex: none; }
.wf-open { margin-top: 10px; }
@media (max-width: 639.98px) { .wf-open { width: 100%; } }
.wf-new {
  margin-top: 12px; padding: 14px; border-radius: var(--radius); border: 1px dashed var(--border); background: var(--surface-2);
  display: flex; flex-direction: column; gap: 12px;
}
.wf-new-title { font-weight: 700; }
.wf-new-actions { gap: 8px; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 15px; cursor: pointer; }
.check-row input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--primary); }
.wf-help {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--primary-soft); color: var(--text); font-size: 14px;
}
.wf-help .icon { color: var(--primary); margin-top: 2px; flex: none; }
.wf-help.is-open { background: var(--blue-soft); }
.wf-help.is-open .icon { color: var(--blue); }

/* #/medewerkers */
.emp-page { max-width: 900px; margin: 0 auto; }
.emp-list { list-style: none; margin: 0; padding: 0; }
.emp-row { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 16px; border-top: 1px solid var(--border); cursor: pointer; min-width: 0; }
.emp-row:first-child { border-top: 0; }
.emp-row:hover { background: var(--surface-2); }
.emp-name { font-weight: 700; font-size: 16px; line-height: 1.3; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.emp-name a { color: var(--text); text-decoration: none; }
.emp-name a:hover { color: var(--primary); }
.emp-sub { color: var(--text-2); font-size: 14px; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.emp-seen { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.emp-chev { color: var(--muted); }

/* #/medewerker/{id} */
.emp-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; min-width: 0; }
.emp-head .avatar-lg { width: 56px; height: 56px; font-size: 19px; }
.emp-title { font-size: 26px; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.emp-phone { margin-top: 2px; }
.emp-chips { margin-top: 6px; }
.emp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.emp-actions .btn { min-height: 48px; flex: 1 1 auto; }
.emp-actions .btn-icon { flex: none; width: 48px; }
@media (min-width: 720px) { .emp-actions .btn { flex: none; } }
@media (min-width: 960px) { .emp-title { font-size: 32px; } }
.emp-banner { margin-bottom: 16px; align-items: center; }
.emp-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .emp-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.emp-sub-h { font-size: 14px; font-weight: 700; color: var(--text-2); margin: 4px 0 4px; }
.emp-job-list { list-style: none; margin: 0 0 12px; padding: 0; }
.emp-job { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 0; border-top: 1px solid var(--border); cursor: pointer; min-width: 0; }
.emp-job:first-child { border-top: 0; }
.emp-job-title { color: var(--text); font-weight: 600; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.emp-newjob { margin-top: 4px; }
.emp-hours-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.emp-big { font-size: 30px; font-weight: 800; line-height: 1.1; }

/* Uren: filter op medewerker */
.worker-filter { max-width: 420px; }
.select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a869e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px;
}

/* =====================================================================
   v1.3 — foto's door medewerkers (SPEC-FOTOS.md §5)
   ===================================================================== */
/* Camera-badge met aantal (kluskaarten/-rijen, uren, medewerker op de klus) */
.ph-badge {
  display: inline-flex; align-items: center; gap: 3px; flex: none; padding: 2px 7px; border-radius: 999px; border: 0;
  background: var(--primary-soft); color: var(--primary); font: 700 12.5px/1.45 var(--font); font-variant-numeric: tabular-nums;
  white-space: nowrap; vertical-align: middle; cursor: pointer; text-decoration: none !important;
}
a.ph-badge:hover, button.ph-badge:hover { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.ph-badge .icon { width: 14px; height: 14px; }
.job-title .ph-badge { margin-top: 1px; }
.cell-title-wrap .ph-badge, .emp-job .ph-badge { margin-left: 2px; }
/* Uren (tabel): eigen kolom "Foto's" pas als hij zonder horizontaal scrollen past; daaronder een badge bij de klus */
.table .td-photos, .table .th-photos { white-space: nowrap; }
.cell-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
@media (max-width: 1279.98px) { .table .td-photos, .table .th-photos { display: none; } }
@media (min-width: 1280px) { .ph-inline { display: none; } }

/* Meldingen: thumbnail i.p.v. icoon, aantal bij een bundel, bijschrift */
.ev-ico.ev-photo { position: relative; border-radius: 10px; }
.ev-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.ev-n {
  position: absolute; right: -5px; bottom: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: var(--primary); color: var(--on-primary); border: 2px solid var(--surface);
  font-size: 11px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
.feed-cap {
  margin-top: 3px; color: var(--text-2); font-size: 14px; font-style: italic;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere;
}

/* Klusdetail: sectie Foto's (na Medewerkers) */
.area-photos { order: 0; outline: none; }
body.is-imp .area-photos { scroll-margin-top: var(--imp-h); }
.ph-filters { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ph-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.ph-chip:hover { border-color: var(--primary); color: var(--primary); }
.ph-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ph-n {
  min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--gray-soft); color: var(--text-2);
  font-size: 12px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums;
}
.ph-chip[aria-pressed="true"] .ph-n { background: rgba(255, 255, 255, .22); color: inherit; }
.ph-sel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ph-sel-lbl { flex: none; font-size: 14px; font-weight: 600; color: var(--text-2); }
.ph-sel .select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; flex: 1 1 auto; min-width: 0; width: auto; max-width: 340px; }
.ph-day-h { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 8px; font-size: 14.5px; font-weight: 700; }
.ph-filters + .ph-day-h, [data-ph-body] > .ph-day-h:first-child { margin-top: 2px; }
.ph-day-n { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ph-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; }
@media (min-width: 480px) { .ph-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* breder: zoveel kolommen als er passen (smalle hoofdkolom naast de klusgegevens: 3; breed scherm: 6) */
@media (min-width: 720px) { .ph-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); } }
.ph-grid > li { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ph-thumb {
  display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.ph-media {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
@supports not (aspect-ratio: 1 / 1) { .ph-media { height: 0; padding-top: 100%; } .ph-media > .icon { position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -12px; } }
.ph-media.skeleton { border: 0; background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; }
.ph-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.ph-thumb:hover .ph-media { border-color: var(--primary); }
.ph-thumb:hover .ph-img { transform: scale(1.03); }
.ph-capmark {
  position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff;
}
.ph-capmark .icon { width: 12px; height: 12px; }
.ph-label { display: flex; min-width: 0; padding: 0 2px; color: var(--text-2); font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
.ph-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ph-time { flex: none; font-variant-numeric: tabular-nums; }
.ph-sk-label { height: 12px; width: 70%; border-radius: 6px; }
.ph-more { margin-top: 12px; }
.ph-empty { display: flex; align-items: center; gap: 12px; }
.ph-empty-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.ph-empty-ico.tone-amber { background: var(--amber-soft); color: var(--amber); }
.ph-empty .btn { margin-top: 8px; }
.ph-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; }
.ph-note .icon { margin-top: 2px; color: var(--muted); flex: none; }
.tl-photos {
  display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0; border: 0; background: transparent;
  color: var(--primary); font: 600 14px/1.2 var(--font); cursor: pointer; vertical-align: middle;
}
.tl-photos:hover { text-decoration: underline; }

/* Abonnement: foto's per dag in het huidige pakket */
.plan-photos { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.plan-photos .icon { color: var(--primary); }
.plan-photos strong { color: var(--text); }

/* Lightbox: grote foto + gegevens + acties */
.lightbox {
  position: fixed; inset: 0; z-index: 890; display: flex; flex-direction: column;
  background: #0b0d0a; color: #eef1ea; overscroll-behavior: contain; animation: sk-fade .15s ease-out;
}
.lb-bar {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px));
}
.lb-title { font-size: 15px; font-weight: 700; color: #dfe5d9; font-variant-numeric: tabular-nums; }
.lb-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.lb-stage { position: relative; flex: 1 1 auto; min-height: 160px; overflow: hidden; touch-action: pan-y pinch-zoom; }
.lb-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 4px 8px 12px; object-fit: contain;
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: default;
}
.lb-state {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; color: #cfd6c9; font-size: 14px; text-align: center; pointer-events: none;
}
.lb-state .spinner { width: 30px; height: 30px; color: #fff; opacity: .85; }
.lb-state.is-error { color: #ffb4ad; }
.lb-nav {
  position: absolute; z-index: 1; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer;
}
.lb-nav:hover { background: rgba(0, 0, 0, .72); }
.lb-prev { left: max(8px, env(safe-area-inset-left, 0px)); }
.lb-next { right: max(8px, env(safe-area-inset-right, 0px)); }
.lb-panel {
  flex: none; max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); color: var(--text); border-radius: 18px 18px 0 0;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(16px + var(--safe-bottom)) max(16px, env(safe-area-inset-left, 0px));
}
.lb-cap p { font-size: 15.5px; line-height: 1.45; }
.lb-cap .pre { max-height: 9.5em; overflow-y: auto; }
.lb-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.lb-meta li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-meta li > .icon { flex: none; margin: 0 6px; color: var(--muted); }
.lb-meta li > span { min-width: 0; word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.lb-who { color: var(--text); }
.lb-sub { display: block; font-size: 13px; color: var(--muted); }
.lb-meta li.is-far, .lb-meta li.is-far > .icon { color: var(--amber); }
.lb-meta li.is-none > span { color: var(--muted); }
.lb-maplink { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.lb-meta .dev-id { margin-left: 2px; }
.lb-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lb-actions .btn { flex-direction: column; gap: 5px; min-height: 64px; padding: 8px 4px; font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; }
.lb-edit { display: flex; flex-direction: column; gap: 8px; }
.lb-edit .textarea { min-height: 88px; }
.lb-edit-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lb-edit-foot .row { gap: 8px; margin-left: auto; }
@media (min-width: 960px) {
  .lb-body { flex-direction: row; }
  .lb-panel { width: 380px; max-height: none; border-radius: 0; padding: 22px 22px calc(22px + var(--safe-bottom)); }
  .lb-nav { width: 52px; height: 52px; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-img { padding: 8px 16px 20px; }
}
/* telefoon liggend: gegevens naast de foto */
@media (max-width: 959.98px) and (max-height: 520px) and (orientation: landscape) {
  .lb-bar { min-height: 48px; padding-top: calc(2px + env(safe-area-inset-top, 0px)); padding-bottom: 2px; }
  .lb-body { flex-direction: row; }
  .lb-panel { width: min(340px, 45vw); max-height: none; border-radius: 16px 0 0 0; padding-bottom: calc(12px + var(--safe-bottom)); }
}
@media (prefers-color-scheme: dark) {
  .lb-panel { border-top: 1px solid var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  .live.is-on .live-dot { animation: none; }
  .ph-thumb:hover .ph-img { transform: none; }
}

/* ---------- v1.4 Registratie & privacy (SPEC-PRIVACY-REGISTRATIE.md) ---------- */
/* Juridische links onder het inlogscherm */
.auth-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin-top: -8px; font-size: 13px; color: var(--muted); }
.auth-legal a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; color: var(--text-2); font-weight: 600; }
/* Botval: buiten beeld (bewust niet display:none), niet bereikbaar met Tab, verborgen voor schermlezers */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.auth-card { position: relative; }
/* Akkoord met de voorwaarden */
.terms-field { gap: 4px; }
.check-row.terms-row { align-items: flex-start; font-weight: 500; font-size: 14.5px; line-height: 1.45; min-height: 0; padding: 4px 0; }
.check-row.terms-row input { margin-top: 1px; }
.terms-row a, .terms-field .hint a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* Cloudflare Turnstile */
.captcha-field { display: flex; flex-direction: column; gap: 6px; }
.captcha-box { min-height: 65px; display: flex; justify-content: center; }
.captcha-box:empty { min-height: 0; }
.captcha-box iframe { max-width: 100%; }
.captcha-loading { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.captcha-loading .spinner { width: 16px; height: 16px; color: var(--primary); }
.auth-state + .stack-sm, .auth-state + .btn { margin-top: 2px; }
.auth-state p strong { color: var(--text); word-break: break-word; overflow-wrap: anywhere; }

/* #/account: support-toegang, bewaartermijnen, export, verwijderen */
.acc-intro { margin: -6px 0 14px; }
.acc-sub-h { font-size: 14px; font-weight: 700; color: var(--text-2); margin: 16px 0 8px; }
.sup-status { margin-bottom: 14px; align-items: center; }
.sup-status > .icon { color: var(--muted); }
.banner-green.sup-status > .icon { color: var(--green); }
.sup-controls { display: flex; flex-direction: column; gap: 14px; }
.sup-controls.is-busy { opacity: .6; pointer-events: none; }
.sup-switch { min-height: 44px; }
.sup-dur { display: flex; flex-direction: column; gap: 8px; }
.sup-dur .label { font-size: 13.5px; color: var(--text-2); }
.sup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.sup-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sec-list li { flex-direction: column; justify-content: flex-start; gap: 2px; }
.ret-list { list-style: none; margin: 14px 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.ret-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.ret-list li .icon { color: var(--primary); margin-top: 1px; }
.ret-list strong { color: var(--text); }
.account-page .select { max-width: 360px; }
.acc-imp-note { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.acc-imp-note .icon { color: var(--muted); }
.acc-hint-end { margin-top: 10px; }
.acc-danger { border-color: var(--red-border); }
.acc-danger > h2 .icon { color: var(--red); }
.danger-dialog .erase-list, .erase-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.erase-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.erase-list li .icon { color: var(--text-2); margin-top: 1px; }
.danger-dialog .field .label strong { color: var(--red); letter-spacing: .03em; }

/* #/medewerker/{id}: rechterkolom (uren + privacy) */
.emp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.emp-privacy .card-h h2 .icon { color: var(--primary); }
.emp-privacy .btn { margin-top: 12px; white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
.btn-wrap { white-space: normal; line-height: 1.25; text-align: center; padding-top: 8px; padding-bottom: 8px; }
.auth-state .auth-note { text-align: left; margin-top: 4px; }

/* =====================================================================
   v1.5 — ronde A (SPEC-RONDE-A.md)
   ===================================================================== */
/* A5: "Spotklok is een product van BibkoStudios" onder inloggen/registreren */
.auth-maker { margin-top: -10px; color: var(--muted); font-size: 13px; text-align: center; max-width: 360px; line-height: 1.5; }
.auth-maker strong { color: var(--text-2); }
.auth-maker a { color: var(--text-2); font-weight: 600; white-space: nowrap; }

/* A3/A6: sidebar — scheidingslijn, "Installeer als app"; uitleg-dialoog */
.side-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 8px 10px; }
.side-install {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, .22); background: transparent; color: var(--sidebar-text);
  font: 600 14px/1.2 var(--font); text-align: left; cursor: pointer; transition: background .15s, color .15s;
}
.side-install:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.install-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.install-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.install-steps .icon { color: var(--primary); margin-top: 1px; flex: none; }

/* A2: opmerking bij een melding (feed), in de tijdlijn en foto's per stap */
.feed-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; color: var(--text-2); font-size: 14px; min-width: 0; }
.feed-note .icon { color: var(--muted); margin-top: 2px; flex: none; }
.feed-note span {
  min-width: 0; font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere;
}
.hours-note { margin-top: 8px; font-size: 13.5px; }
.table .hours-note { margin-top: 3px; font-size: 12.5px; max-width: 320px; }
.table .hours-note .icon { width: 13px; height: 13px; margin-top: 1px; }
.tl-note {
  display: flex; gap: 7px; align-items: flex-start; margin-top: 7px; padding: 8px 10px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 14.5px; line-height: 1.4;
}
.tl-note .icon { color: var(--muted); margin-top: 2px; flex: none; }
.tl-note .pre { min-width: 0; }
.tl-ph { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tl-ph-btn { width: 60px; flex: none; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.tl-ph-btn .ph-media { width: 60px; }
.tl-ph-btn .ph-media > .icon { width: 18px; height: 18px; }
.tl-ph-btn:hover .ph-media { border-color: var(--primary); }
.tl-ph-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .52); color: #fff; font-weight: 800; font-size: 16px; }
.tl-accept .tl-note, .acc-list .tl-note { background: var(--surface); }
.ph-stepmark {
  position: absolute; left: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff;
}
.ph-stepmark .icon { width: 12px; height: 12px; }
.lb-step strong { color: var(--text); }
.lb-note { font-style: italic; color: var(--text-2); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; margin-top: 2px; }

/* A2: "Verplicht bij elke stap" (klusformulier en Instellingen) */
.req-card > h2 .pro-chip { margin-left: 2px; }
.req-intro { margin: -6px 0 12px; }
.req-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.req-table th, .req-table td { padding: 2px 4px; border-bottom: 1px solid var(--border); text-align: left; font-weight: 600; }
.req-table thead th { padding: 0 4px 8px; font-size: 12.5px; color: var(--muted); }
.req-table tbody tr:last-child th, .req-table tbody tr:last-child td { border-bottom: 0; }
.req-table .icon { display: inline-block; vertical-align: -3px; }
.req-th { width: 25%; text-align: center !important; white-space: nowrap; }
.req-th .icon { margin-right: 4px; width: 15px; height: 15px; }
.req-step { color: var(--text); }
.req-step .icon { margin-right: 8px; color: var(--muted); }
.req-td { text-align: center !important; }
.req-cell { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; cursor: pointer; }
.req-cell input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.req-box {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--border); background: var(--surface);
  display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s;
}
.req-box .icon { display: block; }
.req-cell:hover .req-box { border-color: var(--primary); }
.req-cell input:checked + .req-box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.req-cell input:focus-visible + .req-box { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.req-table.is-locked { opacity: .55; }
.req-table.is-locked .req-cell { cursor: not-allowed; }
.req-table.is-locked .req-cell:hover .req-box { border-color: var(--border); }
.req-table.is-locked .req-cell input:checked + .req-box { background: var(--gray); border-color: var(--gray); }
.req-card .req-note { margin: 12px 0 0; }
.req-actions { flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.req-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; color: var(--text-2); }
.req-info-list li { display: flex; align-items: flex-start; gap: 8px; }
.req-info-list .icon { color: var(--muted); margin-top: 2px; flex: none; }
.req-info-list strong { color: var(--text); font-weight: 600; }
.req-info.is-off .req-info-list { opacity: .6; }
.req-info.is-off p { margin-top: 6px; }
@media (max-width: 379.98px) { .req-step .icon { display: none; } .req-cell { width: 44px; } }

/* A1: sectie Wijzigingen op het klusdetail */
.area-changes > summary { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; cursor: pointer; }
.area-changes > summary::-webkit-details-marker { display: none; }
.chg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 32px; }
.area-changes > summary h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.area-changes > summary h2 .icon { color: var(--text-2); }
.area-changes > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 4px; border-radius: 8px; }
.chg-chev { color: var(--muted); transition: transform .15s; }
.area-changes[open] .chg-chev { transform: rotate(180deg); }
.chg-unseen { white-space: normal; }
.chg-intro { margin: 10px 0 12px; }
.chg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.chg { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.chg-when { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.chg-when .icon { color: var(--amber); }
.chg-items { margin: 6px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--text); }
.chg-items li { word-break: break-word; overflow-wrap: break-word; overflow-wrap: anywhere; }
.chg-items li + li { margin-top: 3px; }
.chg-seen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chg-seen .chip { white-space: normal; }
/* Na opslaan: "Medewerker(s) op de hoogte brengen?" */
.chg-box { padding: 12px 14px; border-radius: var(--radius); background: var(--amber-soft); border: 1px solid var(--amber-border); }
.chg-box .bold { word-break: break-word; overflow-wrap: anywhere; }
.chg-fresh { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }

/* A4: prijs op actieve werkers (#/abonnement) */
.bill { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius); background: var(--primary-soft); }
.bill-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.bill-top a { font-weight: 600; white-space: nowrap; }
.bill-line { font-size: 16px; line-height: 1.4; }
.bill-amt { color: var(--primary); white-space: nowrap; }
.tariff-card { display: flex; flex-direction: column; gap: 12px; }
.tariff-card > h2 { display: flex; align-items: center; gap: 9px; font-size: 19px; }
.tariff-card > h2 .icon { color: var(--primary); }
.tariff-card .table-wrap { border: 1px solid var(--border); border-radius: var(--radius); }
.tariff th { white-space: normal; }
.tariff tr:first-child td { border-top: 0; }
.tariff th:last-child, .tariff td:last-child { text-align: right; }
.tariff tr.is-cur td { background: var(--primary-soft); font-weight: 700; }
.tariff-you { margin-left: 4px; vertical-align: 1px; }
.tariff-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.tariff-facts li { display: flex; gap: 8px; align-items: flex-start; }
.tariff-facts .icon { color: var(--green); margin-top: 2px; flex: none; }
/* v1.19.2 (SPEC-PRIJZEN-2.md): tarieven met naam (Solo / Klein team / Team / Groot team / Bedrijf), "jij nu", de zin
   "nooit meer dan € 11,50 per werker", uitbreidingen als aparte regels en de waarschuwing vóór een duurdere trede */
.tariff td { vertical-align: top; }
.tariff-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tariff-name strong { font-weight: 800; }
.tariff-name .tariff-you { margin-left: 0; }
.tariff-who, .tariff-ex { margin-top: 2px; font-weight: 400; line-height: 1.35; }
.tariff-price { font-weight: 700; }
.tariff tr.is-cur .tariff-who, .tariff tr.is-cur .tariff-ex { font-weight: 500; }
.tariff-promise {
  display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius);
  background: var(--green-soft); color: var(--text); font-size: 14.5px; font-weight: 600; line-height: 1.4;
}
.tariff-promise .icon { flex: none; margin-top: 1px; color: var(--green); }
.plan-price-sub { margin-top: 4px; line-height: 1.4; }
.plan-mod-name { display: block; }
.plan-mod-price { display: block; line-height: 1.35; padding-bottom: 6px; }
.plan-mods-list li { padding-top: 6px; }
.bill-tier { white-space: nowrap; }
.bill-ext { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bill-ext li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.bill-ext .bill-ext-tot { margin-top: 2px; padding-top: 4px; border-top: 1px solid var(--border); color: var(--text); font-weight: 700; }
.tier-warn {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--amber-soft); border: 1px solid var(--amber-border); color: var(--text); font-size: 14px; line-height: 1.4;
}
.tier-warn .icon { flex: none; margin-top: 2px; color: var(--amber); }
.tier-warn-sub { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; }
.price-banner { margin-bottom: 14px; }
.price-banner .grow a { white-space: nowrap; }
.share-dialog .tier-warn, .share-card .tier-warn { margin-top: 0; }
.emp-dialog [data-emp-tier]:empty, .wf-tier:empty, [data-share-tier]:empty { display: none; }
.acc-tier strong { color: var(--text); }
.aw { padding-top: 14px; border-top: 1px solid var(--border); outline: none; scroll-margin-top: calc(var(--topbar-h) + var(--imp-h) + 16px); }
.aw-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.aw-head h3 { font-size: 16px; }
.aw-seg .seg-btn { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.aw-sum { margin-bottom: 8px; font-size: 15px; }
.aw-list { list-style: none; margin: 0 0 8px; padding: 0; }
.aw-list li { display: flex; align-items: center; gap: 10px; min-height: 46px; border-top: 1px solid var(--border); min-width: 0; }
.aw-list li:first-child { border-top: 0; }
.aw-sk { height: 40px; margin-bottom: 8px; }
.aw-err { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aw-err .icon { color: var(--amber); }
.plan-foot { margin-top: -2px; }

/* A6: #/instellingen — "Spotklok-beheer mag meekijken" */
.sup-box {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; padding: 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2); transition: background .2s, border-color .2s;
}
.sup-box.is-on { border-color: var(--green-border); background: var(--green-soft); }
.sup-box.is-busy { opacity: .6; pointer-events: none; }
.sup-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.sup-card .sup-switch { font-size: 16.5px; font-weight: 700; min-height: 44px; }
.sup-state { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.sup-state.is-on { background: var(--surface); color: var(--green); }
.sup-state.is-off { background: var(--gray-soft); color: var(--text-2); }
.sup-expl { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.sup-expl .icon { margin-top: 2px; color: var(--muted); flex: none; }
.sup-expl strong { color: var(--text); }
.sup-box .hint { margin-top: -4px; }
.sup-what { margin-bottom: 2px; }
.set-sum { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.set-sum li { display: flex; gap: 10px; align-items: flex-start; }
.set-sum .icon { color: var(--primary); margin-top: 1px; flex: none; }
.set-sum strong { color: var(--text); }
.set-more { margin-top: 12px; }

/* v1.6 (SPEC-NAMEN-VERBERGEN.md): "Namen niet tonen op de link" — klusformulier, Instellingen, klusdetail, kaarten */
.hn-opt { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.hn-card .hn-opt { margin-top: 0; padding-top: 0; border-top: 0; }
.hn-row {
  position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 4px 0;
  cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.hn-cb { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.hn-box {
  width: 26px; height: 26px; flex: none; margin-top: 1px; border-radius: 8px; border: 2px solid var(--border);
  background: var(--surface); display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s;
}
.hn-row:hover .hn-box { border-color: var(--primary); }
.hn-cb:checked + .hn-box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.hn-cb:focus-visible + .hn-box { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.hn-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.hn-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.hn-sub { font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.hn-opt.is-locked .hn-title > span:first-child { color: var(--text-2); }
.hn-opt.is-locked .hn-box { opacity: .55; }
.hn-opt.is-locked .hn-row:hover .hn-box { border-color: var(--border); }
.hn-opt.is-busy { opacity: .6; }
.hn-opt.is-busy .hn-row { cursor: progress; }
.hn-ctx { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 0 38px; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }
.hn-ctx .icon { color: var(--blue); margin-top: 1px; flex: none; }
.hn-opt .hn-note { margin: 8px 0 0 38px; font-size: 13.5px; }
@media (max-width: 379.98px) { .hn-ctx, .hn-opt .hn-note { margin-left: 0; } }
/* oog-icoon op klus-kaart/rij en badge op het klusdetail */
.hn-mark {
  display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue); vertical-align: middle;
}
.hn-mark .icon { width: 14px; height: 14px; }
.cell-title-wrap .hn-mark { margin-left: 2px; }
.hn-chip.is-active { background: var(--blue-soft); color: var(--blue); }
.hn-help .icon { color: var(--blue); }
/* medewerkers die op de link op elkaar lijken (namen verborgen) */
.hn-ctx.hn-warn { color: var(--text); }
.hn-warn .icon, .hn-help.hn-warn .icon { color: var(--amber); }
.hn-warn.is-blocked .icon, .hn-help.hn-warn.is-blocked .icon { color: var(--red); }
.hn-warn strong { font-weight: 600; }

/* =====================================================================
   v1.7 (SPEC-AFRONDEN.md): klus afronden — statussen, Vandaag-kaart, Klussen-groepen, klusdetail, dialoog
   ===================================================================== */
:root { --done: #2f7a4f; --done-soft: #e9f2ec; }
@media (prefers-color-scheme: dark) { :root { --done: #a9cf92; --done-soft: #232b1f; } }
/* "Iedereen klaar" (grijs-groen) */
.pill-done { background: var(--done-soft); color: var(--done); }
.tone-done { background: var(--done-soft); color: var(--done); }

/* Vandaag: "N klussen klaar om af te ronden" */
.ready-card {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px;
  border-radius: var(--radius-lg); background: var(--amber-soft); border: 1px solid var(--amber-border);
  color: var(--text); text-decoration: none !important; min-height: 64px;
}
.ready-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--amber); }
.ready-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ready-title { font-weight: 700; font-size: 16px; }
.ready-sub { color: var(--text-2); font-size: 14px; line-height: 1.35; }
.ready-cta { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 600; font-size: 14.5px; white-space: nowrap; flex: none; }
.ready-card:hover .ready-cta { text-decoration: underline; }
.ready-card:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }

/* Klussen, tab Actief: groep "Klaar om af te ronden" bovenaan, daaronder "Lopend" */
.list-group + .list-group { margin-top: 20px; }
.list-group-head { margin: 0 2px 10px; }
.list-group-head h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.list-group-head h2 .icon { color: var(--text-2); }
.list-group.is-ready .list-group-head h2 .icon { color: var(--amber); }
.list-group-head h2 .count { margin-left: 0; }
.list-group-head p { margin-top: 3px; }
.job-card.is-ready { border-left: 4px solid var(--amber); }
/* smal scherm: de lange pil "Klaar om af te ronden" + "Afronden" onder de tekst, anders blijft er te weinig over voor titel en namen */
@media (max-width: 639.98px) {
  .job-card.is-ready { grid-template-columns: auto minmax(0, 1fr); }
  .job-card.is-ready .job-side {
    grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center;
    padding-top: 10px; border-top: 1px solid var(--border);
  }
}
@media (max-width: 399.98px) { .job-card.is-ready { grid-template-columns: minmax(0, 1fr); } }
.complete-btn { white-space: nowrap; min-height: 40px; }
.tbl-complete { white-space: nowrap; color: var(--primary); }
.cell-done { margin-top: 4px; }

/* Klusdetail */
@media (max-width: 479.98px) { .btn-edit-compact { width: 48px; padding: 0; flex: none; } }
.done-banner { flex-wrap: wrap; }
.done-banner > .grow { flex-basis: 220px; }
.done-banner > .btn { flex: none; white-space: nowrap; }
@media (max-width: 639.98px) { .done-banner > .btn { margin-left: 32px; } }
.done-imp { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.done-imp .icon { color: var(--muted); flex: none; }
.complete-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: start; margin-top: 16px; }
.complete-card h2 { font-size: 18px; }
.complete-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.complete-cta { grid-column: 1 / -1; min-height: 52px; width: 100%; }
@media (min-width: 640px) {
  .complete-card { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; }
  .complete-cta { grid-column: auto; width: auto; }
}
@media (min-width: 960px) { .complete-card { margin-top: 18px; } }
.wk-nso { display: flex; align-items: flex-start; gap: 6px; color: var(--text); }
.wk-nso .icon { flex: none; margin-top: 2px; color: var(--amber); }
.tl-sum .tl-nso { vertical-align: 1px; }

/* Dialoog "Klus afronden?" */
.cmp-note { display: flex; align-items: flex-start; gap: 8px; color: var(--text-2); }
.cmp-note .icon { flex: none; margin-top: 1px; color: var(--muted); }
.cmp-nso { padding: 12px 14px; border-radius: var(--radius); background: var(--amber-soft); border: 1px solid var(--amber-border); display: flex; flex-direction: column; gap: 6px; }
.cmp-nso-h { display: flex; align-items: center; gap: 8px; }
.cmp-nso-h .icon { color: var(--amber); flex: none; }
.cmp-nso-list { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 3px; font-size: 15px; word-break: break-word; overflow-wrap: anywhere; }
.complete-dialog .btn-lg { white-space: normal; line-height: 1.2; }

/* Bewerken van een afgeronde klus */
.form-done-actions { justify-content: center; gap: 10px; margin-top: 8px; }
.form-done-actions .btn { margin-top: 0; }

/* =====================================================================
   v1.8 (SPEC-RONDE-B1.md §3): klant, werkbon (PDF), zoeken + filters, selecteren & exporteren, Instellingen → Werkbon
   ===================================================================== */
/* Klant (en werkbonnummer) klein op kaarten en rijen */
.job-client { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.job-client .icon { color: var(--muted); }
/* width 0 + min-width 100%: de (niet-afbrekende) klantregel maakt de kolom niet breder, hij krijgt de breedte van de titel */
.cell-client { margin-top: 3px; font-size: 12.5px; width: 0; min-width: 100%; max-width: 280px; }
.cell-client .icon { width: 13px; height: 13px; }
.wb-no { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.detail-client { display: flex; align-items: center; gap: 6px; margin: -2px 0 4px; font-weight: 600; color: var(--text); word-break: break-word; overflow-wrap: anywhere; }
.detail-client .icon { color: var(--muted); flex: none; }

/* Werkbon (PDF): knop op een afgeronde kaart/rij, kaart in het klusdetail, keuze bij een meerdaagse klus */
.werkbon-btn { white-space: nowrap; min-height: 40px; }
/* smal scherm: status + "Werkbon (PDF)" onder de tekst (zoals bij "Klaar om af te ronden"), dan past de rest */
@media (max-width: 639.98px) {
  .job-card.has-wb { grid-template-columns: auto minmax(0, 1fr); }
  .job-card.has-wb .job-side {
    grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center;
    padding-top: 10px; border-top: 1px solid var(--border);
  }
}
@media (max-width: 399.98px) { .job-card.has-wb { grid-template-columns: minmax(0, 1fr); } }
.tbl-werkbon { white-space: nowrap; color: var(--primary); }
@media (max-width: 1365.98px) { .tbl-werkbon .tbl-lbl { display: none; } .tbl-werkbon { width: 36px; padding: 0; } }
.area-werkbon { order: 1; display: flex; flex-direction: column; gap: 12px; }
.area-werkbon .card-h { margin-bottom: 0; }
.wb-chip { font-variant-numeric: tabular-nums; }
.wb-hint { margin-top: -4px; }
.wb-set-link { margin-top: 10px; display: inline-flex; gap: 6px; }
.wb-dialog { gap: 12px; }
.wb-opts { display: flex; flex-direction: column; gap: 6px; }
.wb-opts-h { margin: 8px 2px 0; font-size: 13px; font-weight: 700; color: var(--text-2); }
.wb-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s;
}
.wb-opt > .icon { color: var(--primary); flex: none; }
.wb-opt:hover { border-color: var(--primary); background: var(--primary-soft); }
.wb-opt.is-main { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); background: var(--primary-soft); }
.wb-opt.is-quiet > .icon { color: var(--muted); }
.wb-opt-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.wb-opt-txt strong { font-weight: 700; font-size: 15px; }
.wb-opt-txt span { font-size: 13px; color: var(--text-2); }
.wb-opt.is-quiet .wb-opt-txt strong { font-weight: 600; color: var(--text-2); }
.wb-opt-go { color: var(--muted); flex: none; }

/* Downloaden op iPhone (als app): "Bestand is klaar" */
.dl-dialog { gap: 12px; }
.dl-file { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.dl-file .icon { color: var(--primary); flex: none; }
.dl-name { font-weight: 600; font-size: 14.5px; min-width: 0; word-break: break-word; overflow-wrap: anywhere; }

/* Klussen: zoekbalk + "Filters", actieve-filterchips */
.search-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.search-row .search { flex: 1 1 auto; min-width: 0; }
.search .input { text-overflow: ellipsis; }
@media (max-width: 479.98px) { .search-row .search .input::placeholder { font-size: 14px; } }
.filter-btn { flex: none; min-height: 48px; padding: 0 14px; gap: 6px; }
.filter-btn.is-on { background: var(--primary-soft); border-color: var(--primary); }
.filter-n {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
@media (min-width: 760px) {
  /* naast de tabbladen (rechts uitgelijnd), of — als dat niet past — op een eigen regel eronder */
  .toolbar { flex-wrap: wrap; }
  .toolbar .search-row { flex: 1 1 360px; justify-content: flex-end; }
  .toolbar .search-row .search { width: auto; flex: 1 1 auto; max-width: 380px; }
}
.fchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 14px; }
.fchip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 0 10px 0 12px;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); background: var(--primary-soft);
  color: var(--text); font: 600 13.5px/1.2 var(--font); cursor: pointer;
}
.fchip .icon { color: var(--text-2); flex: none; }
.fchip:hover { border-color: var(--primary); }
.fchip:hover .icon { color: var(--red); }
.fchip-clear { min-height: 36px; padding: 0 8px; border: 0; background: transparent; color: var(--primary); font: 600 13.5px/1.2 var(--font); cursor: pointer; }
.fchip-clear:hover { text-decoration: underline; }
.k-searching { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.k-searching .spinner { width: 16px; height: 16px; color: var(--primary); }
.kf-dialog { gap: 12px; }
.kf-form .period-custom .field { gap: 4px; }
.kf-note { display: flex; align-items: flex-start; gap: 6px; }
.kf-note .icon { color: var(--muted); flex: none; margin-top: 2px; }

/* Klant: suggesties onder het veld (klusformulier en filters) */
.cs-list {
  list-style: none; margin: 4px 0 0; padding: 4px; max-height: 260px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.cs-head { padding: 6px 10px 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cs-opt {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 8px;
  cursor: pointer; font-size: 15px; word-break: break-word; overflow-wrap: anywhere;
}
.cs-opt .icon { color: var(--muted); flex: none; }
.cs-opt:hover, .cs-opt.is-active { background: var(--primary-soft); }
.cs-opt.is-active .icon { color: var(--primary); }

/* Selecteren: kop boven de lijst, vinkjes op kaarten/rijen, balk onderaan */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; margin: 0 0 8px; }
.list-head .list-count { margin: 0 0 0 2px; }
.list-head .btn { flex: none; }
.sel-toggle .icon { color: var(--primary); }
.sel-cell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin: 4px 0 0 -2px; cursor: pointer; }
.sel-cb { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.sel-box {
  width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--border); background: var(--surface);
  display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s;
}
.sel-box .icon { display: block; }
.sel-cell:hover .sel-box, .sel-all:hover .sel-box { border-color: var(--primary); }
.sel-cb:checked + .sel-box { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.sel-cb:indeterminate + .sel-box { background: var(--primary-soft); border-color: var(--primary); }
.sel-cb:indeterminate + .sel-box::after { content: ""; width: 12px; height: 2.5px; border-radius: 2px; background: var(--primary); }
.sel-cb:indeterminate + .sel-box .icon { display: none; }
.sel-cb:focus-visible + .sel-box { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.sel-all { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.sel-all-txt { min-width: 0; }
.sel-all-txt .text-2 { font-weight: 500; }
.job-card.is-selectable { grid-template-columns: auto minmax(0, 1fr) auto; -webkit-user-select: none; user-select: none; }
.job-card.is-selectable .job-title a { pointer-events: none; }
.job-card.is-selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); box-shadow: 0 0 0 1px var(--primary); }
@media (min-width: 640px) and (max-width: 1199.98px) { .job-card.is-selectable { grid-template-columns: auto minmax(0, 1fr); } }
@media (max-width: 639.98px) { .job-card.is-ready.is-selectable { grid-template-columns: auto minmax(0, 1fr); } }
.table .th-sel, .table .td-sel { width: 1%; padding-right: 0; }
.table .td-sel .sel-cell { margin: -8px 0; }
.table.is-selecting tr[data-sel-id] { -webkit-user-select: none; user-select: none; }
.table.is-selecting .cell-title { pointer-events: none; }
.table tr.is-selected td { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
/* Centreren met 'translate' (los van 'transform'): de inschuif-animatie (transform) springt dan niet opzij (review). */
.sel-bar {
  position: fixed; z-index: 44; left: 50%; translate: -50% 0;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 10px); width: min(560px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 6px;
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  animation: sk-toast-in .2s ease-out;
}
@supports not (translate: 0) {
  .sel-bar { transform: translateX(-50%); animation: sk-selbar-in .2s ease-out; }
  @keyframes sk-selbar-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translateX(-50%); } }
}
.sel-bar .sel-close { flex: none; }
/* Smalle telefoon: sluitknop + "N geselecteerd" + Exporteren passen niet naast "Wissen" (dat kan ook via "Alles selecteren") */
@media (max-width: 399.98px) { .sel-bar [data-ksel-clear] { display: none; } }
.sel-n { flex: 1 1 auto; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-n strong { font-variant-numeric: tabular-nums; }
.sel-bar .btn-primary { flex: none; }
@media (min-width: 960px) { .sel-bar { left: calc(248px + (100vw - 248px) / 2); bottom: 24px; } }
.main:has(.sel-bar:not([hidden])) { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 96px); }
@media (min-width: 960px) { .main:has(.sel-bar:not([hidden])) { padding-bottom: 110px; } }
body:has(.sel-bar:not([hidden])) .toast-host { bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 84px); }
@media (min-width: 960px) { body:has(.sel-bar:not([hidden])) .toast-host { bottom: 96px; } }
@media (prefers-color-scheme: dark) { .sel-bar { border-color: var(--primary); } }

/* Sheet "Exporteren" */
.xp-dialog { gap: 12px; }
.xp-group { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.xp-h { display: flex; align-items: flex-start; gap: 10px; }
.xp-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.xp-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.xp-btn { min-height: 44px; padding: 0 10px; gap: 6px; font-size: 14.5px; white-space: nowrap; }
.xp-btn > span:not(.pro-chip) { overflow: hidden; text-overflow: ellipsis; }
.xp-btn .pro-chip { margin-left: 2px; }
.xp-note { margin: 0; }

/* Uren: "Exporteer CSV" + "Exporteer PDF" — passen ze niet naast de titel, dan eronder */
.head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; }
.page-head-wrap { flex-wrap: wrap; }
.page-head-wrap > .page-head-text { flex: 1 1 260px; }
@media (max-width: 639.98px) {
  .page-head-wrap > .head-actions { flex: 1 1 100%; justify-content: flex-start; }
  .page-head-wrap > .head-actions .btn { flex: 1 1 0; min-width: 0; }
}

/* Instellingen → Werkbon */
.wb-card > h2 { display: flex; align-items: center; gap: 9px; }
.wb-card > h2 .pro-chip { margin-left: 2px; }
.acc-card > h2 .pro-chip .icon { color: inherit; }      /* slotje in de Pro-chip niet in de kopkleur (onzichtbaar) */
.wb-sec + .wb-sec { margin-top: 18px; }
.wb-sec .acc-sub-h { margin-top: 0; }
.wb-sub { margin: -4px 0 10px; }
.wb-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.wb-logo-box {
  flex: 1 1 240px; min-width: 0; max-width: 340px; min-height: 92px; padding: 10px; display: grid; place-items: center;
  border-radius: var(--radius); border: 1px dashed var(--border); background: #fff;
}
.wb-logo-img { display: block; max-width: 100%; max-height: 110px; width: auto; height: auto; object-fit: contain; }
.wb-logo-off { display: grid; justify-items: center; gap: 8px; }
.wb-logo-off .wb-logo-img { opacity: .45; filter: grayscale(1); max-height: 80px; }
.wb-logo-off p { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: #4a5874; text-align: left; }
.wb-logo-off p .icon { flex: none; margin-top: 2px; }
.wb-logo-empty { display: flex; align-items: center; gap: 10px; color: #4a5874; font-size: 14px; line-height: 1.4; }
.wb-logo-empty strong { color: #0b1b3f; }
.wb-logo-empty .icon { color: #7a869e; flex: none; }
.wb-logo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wb-logo-row + .hint { margin-top: 8px; }
.wb-lines { display: flex; flex-direction: column; gap: 8px; }
.wb-prefix .input { max-width: 200px; text-transform: uppercase; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.wb-secs { display: flex; flex-direction: column; gap: 4px; }
.wb-switch { align-items: flex-start; min-height: 48px; padding: 6px 0; }
.wb-switch .track { margin-top: 1px; }
.wb-sw-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wb-sw-sub { font-size: 13px; font-weight: 400; line-height: 1.35; color: var(--text-2); }
.wb-card.is-locked .input, .wb-card.is-locked .textarea { background: var(--surface-2); color: var(--text-2); cursor: not-allowed; }
.wb-card.is-locked .wb-switch { cursor: not-allowed; }
.wb-lock { margin: 16px 0 0; }
.wb-actions { flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; }
.wb-state { margin-right: auto; }
.wb-prev-hint { margin-top: 8px; text-align: right; }
@media (max-width: 479.98px) {
  .wb-actions .btn { flex: 1 1 auto; }
  .wb-state { flex-basis: 100%; }
  .wb-prev-hint { text-align: left; }
}

/* =====================================================================
   v1.9 (SPEC-EXPORTS.md §3): grote exports op de achtergrond — balk op Klussen/Vandaag, pagina #/exports,
   "Export starten" in de sheet Exporteren, melding bij "Alles selecteren" boven 2.000 klussen
   ===================================================================== */
/* Compacte balk "Je export is bezig (240/800)" / "Je export staat klaar · Downloaden" */
.xbar {
  position: relative; display: flex; align-items: center; gap: 8px; margin: 0 0 14px; min-height: 54px;
  padding: 6px 8px 6px 6px; border-radius: var(--radius); overflow: hidden;
  background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 30%, transparent);
}
.xbar-done { background: var(--green-soft); border-color: var(--green-border); }
.xbar-main {
  display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; min-height: 42px; padding: 0 2px;
  color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none !important;
}
.xbar-main:hover .xbar-txt { text-decoration: underline; }
.xbar-main:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.xbar-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--blue); }
.xbar-done .xbar-ico { color: var(--green); }
.xbar-txt { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.xbar-go { display: inline-flex; flex: none; color: var(--muted); }
.xbar-btn { flex: none; min-height: 40px; }
.xbar-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--blue) 18%, transparent); }
.xbar-fill { display: block; height: 100%; background: var(--blue); transition: width .5s ease; }
@media (max-width: 379.98px) { .xbar-main { font-size: 14px; gap: 8px; } .xbar-ico { width: 30px; height: 30px; } .xbar-btn { padding: 0 10px; } }

/* Pagina #/exports */
.view-exports [data-bgx-body] { max-width: 760px; }
.bgx-card { display: flex; flex-direction: column; gap: 12px; }
.bgx-head { display: flex; align-items: flex-start; gap: 12px; }
.bgx-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.bgx-card.is-compact { gap: 8px; }
.bgx-card.is-compact .bgx-ico { width: 36px; height: 36px; }
.bgx-title { margin: 0; font-size: 19px; line-height: 1.25; word-break: break-word; overflow-wrap: anywhere; }
h3.bgx-title { font-size: 16px; }
.bgx-sub { margin: 3px 0 0; color: var(--text-2); font-size: 14px; }
.bgx-text { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.45; }
.bgx-file { font-weight: 600; color: var(--text); word-break: break-word; overflow-wrap: anywhere; }
.bgx-prog { position: relative; height: 12px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; }
.bgx-fill { display: block; height: 100%; border-radius: inherit; background: var(--primary); transition: width .5s ease; }
/* net begonnen (nog 0 klaar): bewegend streepje, zodat het niet stil lijkt te staan */
.bgx-prog.is-start .bgx-fill { width: 28% !important; opacity: .55; animation: sk-bgx-slide 1.5s ease-in-out infinite; }
@keyframes sk-bgx-slide { from { transform: translateX(-110%); } to { transform: translateX(370%); } }
.bgx-count { margin: -4px 0 0; font-weight: 700; font-size: 15.5px; }
.bgx-until { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 15px; }
.bgx-until .icon { color: var(--muted); flex: none; margin-top: 3px; }
.bgx-dl { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--green); font-weight: 600; }
.bgx-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bgx-actions .btn { min-height: 48px; }
.bgx-del { color: var(--red); }
.bgx-del:hover { background: var(--red-soft); }
@media (max-width: 479.98px) { .bgx-actions .btn { flex: 1 1 100%; } }
.bgx-imp { margin-bottom: 14px; }
.bgx-imp > .icon { color: var(--amber); }
.bgx-older { margin-top: 22px; }
.bgx-older .section-head h2 { font-size: 17px; }
.bgx-about { display: flex; align-items: flex-start; gap: 8px; margin: 18px 2px 0; }
.bgx-about .icon { color: var(--muted); flex: none; margin-top: 2px; }
@media (prefers-reduced-motion: reduce) {
  .xbar-fill, .bgx-fill { transition: none; }
  .bgx-prog.is-start .bgx-fill { animation: none; width: 6% !important; }
}

/* Sheet "Exporteren" met meer dan 30 werkbonnen: uitleg, ZIP, "Export starten"; "Eén PDF" niet beschikbaar */
.xp-n { font-weight: 600; color: var(--text-2); }
.xp-zip {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--primary-soft); font-size: 14px; line-height: 1.4; color: var(--text);
}
.xp-zip .icon { color: var(--primary); flex: none; margin-top: 1px; }
.xp-note-line { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 14px; color: var(--text-2); }
.xp-note-line .icon { flex: none; margin-top: 2px; color: var(--blue); }
.xp-note-line.is-busy .icon { color: var(--amber); }
.xp-off { display: flex; align-items: flex-start; gap: 6px; margin: -2px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.xp-off .icon { flex: none; margin-top: 2px; }

/* Klussen → Selecteren: meer klussen dan in één export passen */
.sel-max {
  display: flex; align-items: flex-start; gap: 8px; margin: -2px 0 10px; padding: 8px 12px; font-size: 14px;
  border-radius: var(--radius-sm); background: var(--amber-soft); border: 1px solid var(--amber-border); color: var(--text);
}
.sel-max .icon { color: var(--amber); flex: none; margin-top: 2px; }

/* =====================================================================
   v1.10 — Mijn klussen (SPEC-MIJN-KLUSSEN.md §4) en unieke namen (§5b)
   ===================================================================== */
/* Klusformulier: "Komt ook in je medewerkerslijst" (vervangt het vinkje) */
.wf-new-note { display: flex; align-items: flex-start; gap: 6px; margin: -4px 0 0; }
.wf-new-note .icon { flex: none; margin-top: 2px; }

/* Delen: wie Mijn klussen gekoppeld heeft, ziet de klus daar al */
.mine-hint { display: flex; align-items: flex-start; gap: 6px; margin: 0; line-height: 1.4; }
.mine-hint .icon { flex: none; margin-top: 2px; color: var(--primary); }
.share-dialog .mine-hint, .share-card .mine-hint { justify-content: center; text-align: left; }

/* Medewerker → kaart "Mijn klussen" */
.emp-mine .card-h { flex-wrap: wrap; }
.emp-mine .card-h .pill { flex: none; }
.emp-mine > p { margin: 0 0 10px; }
.emp-mine > p:last-child { margin-bottom: 0; }
.mine-dev { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.mine-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mine-dev-name { word-break: break-word; overflow-wrap: anywhere; }
/* v1.15 (na review): telefoon bevestigen voor objectinstructies van controlerondes */
.mine-conf { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.mine-conf > p { margin: 0; }
p.mine-conf.is-ok { flex-direction: row; align-items: flex-start; gap: 6px; }
.mine-conf.is-ok .icon { color: var(--green); flex: none; margin-top: 1px; }

/* Meldingen: Mijn klussen geweigerd; zelfaanmelding koppelen */
.feed-item.is-mine .feed-sub a { color: inherit; font-weight: 600; }
.mine-tip { margin: 6px 0 0; line-height: 1.4; }
.sg-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sg-acts .btn { min-height: 40px; max-width: 100%; }
.sg-acts .chip { min-height: 28px; }
.sg-acts .sg-note { flex: 1 1 100%; margin: 0; line-height: 1.4; }   /* na review: "Ja, dit is <naam>" */
.wk-item > .sg-acts { padding-left: 52px; margin-top: 2px; }
@media (max-width: 379.98px) { .wk-item > .sg-acts { padding-left: 0; } }
@media (max-width: 479.98px) { .feed-item .sg-acts .btn { flex: 1 1 100%; } }

/* Dialoog "Er staat al een Sam in je medewerkerslijst." */
.dup-dialog h3 { word-break: break-word; overflow-wrap: anywhere; }
.dup-who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); min-width: 0; }
.dup-who-name { word-break: break-word; overflow-wrap: anywhere; }
.dup-dialog > p { margin: 0; }

/* "Nee, een andere Sam": beide naast elkaar hernoemen */
.dialog.dup-rename { width: min(600px, 100%); }
.dup-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dup-col {
  min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-2); display: flex; flex-direction: column; gap: 8px;
}
.dup-col.is-new { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--primary-soft); }
.dup-leg { display: flex; align-items: center; gap: 6px; padding: 0 4px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.dup-col.is-new .dup-leg { color: var(--primary); }
.dup-col .field { gap: 4px; }
.dup-col .input { min-width: 0; width: 100%; }
.dup-meta { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; color: var(--text-2); min-width: 0; word-break: break-word; overflow-wrap: anywhere; }
.dup-meta .icon { flex: none; margin-top: 2px; color: var(--muted); }
.dup-col .hint { margin: 0; line-height: 1.35; }
.dup-state { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--amber-soft); color: var(--text); font-size: 14px; line-height: 1.4; }
.dup-state .icon { flex: none; margin-top: 2px; color: var(--amber); }
.dup-state.is-ok { background: var(--green-soft); }
.dup-state.is-ok .icon { color: var(--green); }
.dup-state:empty { display: none; }
@media (max-width: 339.98px) { .dup-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 419.98px) { .dialog.dup-rename { padding-left: 14px; padding-right: 14px; } .dup-col { padding: 8px; } }

/* Kies een medewerker (koppelen) */
.pk-list { display: flex; flex-direction: column; gap: 8px; max-height: min(52vh, 420px); overflow-y: auto; padding: 2px; }
.pk-opt .wf-box { border-radius: 50%; }
.pk-opt .wf-name .chip { white-space: nowrap; }

/* Medewerkers → "Losse namen" */
.loose-card { margin-top: 16px; }
.loose-card > p { margin: 0 0 6px; }
.loose-list { list-style: none; margin: 0; padding: 0; }
.loose-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--border); min-width: 0; }
.loose-row:first-child { border-top: 0; }
.loose-txt { min-width: 0; flex: 1 1 140px; }
.loose-name { font-weight: 700; word-break: break-word; overflow-wrap: anywhere; }
.loose-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.loose-acts .btn { min-height: 40px; }
@media (max-width: 559.98px) { .loose-acts { flex: 1 1 100%; } .loose-acts .btn { flex: 1 1 auto; } }
.sg-acts .btn-outline, .loose-acts .btn-outline { background: var(--surface); }

/* =====================================================================
   v1.11 — urenregistratie (SPEC-RONDE-B2A.md): pauze, gepland vs. werkelijk, corrigeren, weekweergave, Pro-instellingen
   ===================================================================== */
.text-red { color: var(--red); }
/* Kleur van een verschil: groen (binnen 5 min), amber (minder gewerkt), blauw (langer) */
.hc-diff {
  display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 3px 9px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums;
  background: var(--gray-soft); color: var(--text-2);
}
.hc-diff .icon { width: 14px; height: 14px; }
.hc-diff.is-ok { background: var(--green-soft); color: var(--green); }
.hc-diff.is-less, .hc-diff.is-nso { background: var(--amber-soft); color: var(--amber); }
.hc-diff.is-more { background: var(--blue-soft); color: var(--blue); }
.hc-diff.is-run { background: var(--primary-soft); color: var(--primary); }
.hc-txt.is-ok { color: var(--green); font-weight: 700; }
.hc-txt.is-less { color: var(--amber); font-weight: 700; }
.hc-txt.is-more { color: var(--blue); font-weight: 700; }

/* Vandaag: pauze en labels op de klus-kaart/rij */
.job-progress.is-pause .icon { color: var(--amber); }
.chips.hc-live { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips.hc-live.is-compact { margin-top: 4px; }
.hc-live .chip { max-width: 100%; white-space: normal; text-align: left; line-height: 1.3; }
.hc-live .chip .icon { flex: none; }

/* Klusdetail: medewerker met pauze */
.wk-times .wk-pause { color: var(--amber); font-weight: 700; }
.wk-times .wk-pause .icon { color: var(--amber); }
.wk-labels { display: flex; flex-wrap: wrap; gap: 6px; }

/* Tijdlijn: pauze tussen aankomst en einde dienst */
.tl-pause .tl-time { font-size: 16px; }
.tl-time-to { font-weight: 800; }
.tl-fix { vertical-align: 1px; }

/* Klusdetail: kaart "Uren" (gepland tegenover gewerkt) */
.area-hours { order: 0; }
@media (min-width: 960px) { .col-main .area-hours { order: 0; } }
.hc-intro { margin: -4px 0 12px; }
.area-hours .done-imp { margin: -4px 0 12px; }
.hc-day + .hc-day { margin-top: 14px; }
.hc-day-h { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.hc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hc-row {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 12px 12px 14px;
  border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: var(--radius);
}
.hc-row.tone-ok { border-left-color: var(--green); }
.hc-row.tone-less, .hc-row.is-nso { border-left-color: var(--amber); }
.hc-row.tone-more { border-left-color: var(--blue); }
.hc-row.is-run { border-left-color: var(--primary); }
.hc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.hc-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.hc-who .chip { flex: none; }
.pva { margin: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; }
.pva-line { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.pva dt { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.pva dd { margin: 0; color: var(--text); min-width: 0; word-break: break-word; overflow-wrap: anywhere; }
.pva dd .tabular { font-weight: 700; }
.pva-d { color: var(--text-2); }
.hc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hc-reason { display: flex; align-items: flex-start; gap: 6px; margin: 0; word-break: break-word; overflow-wrap: anywhere; }
.hc-reason .icon { flex: none; margin-top: 2px; color: var(--muted); }
.hc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hc-acts .btn { min-height: 40px; }
.hc-hist { flex: 1 1 100%; min-width: 0; }
.hc-hist > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text-2); list-style: none;
}
.hc-hist > summary::-webkit-details-marker { display: none; }
.hc-hist[open] > summary { color: var(--text); }
.hc-hist-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hc-hist-list li { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.hc-hist-list li.is-old { opacity: .72; }
.hc-h-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin-bottom: 2px; }
.hc-h-reason { word-break: break-word; overflow-wrap: anywhere; }
.hc-more { margin-top: 10px; }
.hc-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2);
}
.hc-foot strong { color: var(--text); }

/* Dialogen: corrigeren, uren toevoegen, dag in de weekweergave, dagrapport */
.dialog.hc-dialog, .dialog.wkd-dialog { width: min(480px, 100%); }
.hc-dlg-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hc-rep { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.hc-rep .icon { flex: none; margin-top: 2px; color: var(--muted); }
.hc-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 480px) { .hc-times { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .85fr); } }
.hc-times .input { min-width: 0; }
.input-unit { position: relative; display: flex; align-items: center; min-width: 0; }
.input-unit > span { position: absolute; right: 12px; color: var(--muted); font-size: 14px; pointer-events: none; }
.input-unit > .input { padding-right: 46px; }
.input-unit.is-pre > span:first-child { right: auto; left: 13px; }
.input-unit.is-pre > .input { padding-left: 30px; padding-right: 76px; }
.hc-calc { display: flex; align-items: center; gap: 6px; margin: -2px 0 0; color: var(--text-2); }
.hc-calc .icon { color: var(--muted); flex: none; }
.hc-calc[hidden] { display: none; }
.hc-reason-in { min-height: 64px; }
.hc-dup { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--amber-soft); }
.hc-dup .icon { flex: none; margin-top: 2px; color: var(--amber); }
.hc-dup[hidden] { display: none; }
.hc-dlg-hist { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.hc-dlg-hist-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; }
.hc-dlg-hist-h .icon { color: var(--muted); }
.hc-dlg-hist .btn { align-self: flex-start; }
.dr-other > summary { cursor: pointer; font-weight: 600; font-size: 14.5px; min-height: 40px; display: flex; align-items: center; }
.dr-other[open] > summary { margin-bottom: 8px; }
.wkd-list { display: flex; flex-direction: column; gap: 10px; }
.wkd-job { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.wkd-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.wkd-top a { min-width: 0; word-break: break-word; overflow-wrap: anywhere; }

/* Uren: totalen (meer dan 3 tegels: 2 per rij op de telefoon), regel gepland/verschil, weergave-keuze */
.totals.is-many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .totals.is-many { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.total-eur { font-size: 22px; }
@media (min-width: 960px) { .total-eur { font-size: 26px; } }
.hours-pva { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.hours-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.table .hours-chips { margin-top: 6px; }
.u-view { display: inline-flex; align-self: flex-start; padding: 3px; gap: 2px; border-radius: 12px; background: var(--gray-soft); }
.u-view-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2); font-weight: 600; font-size: 14.5px; cursor: pointer;
}
.u-view-btn[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.u-view-btn .icon { color: var(--muted); }
.u-view-btn[aria-pressed="true"] .icon { color: var(--primary); }

/* Uren: weekweergave per medewerker (ma–zo) */
.wkv-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 2px 10px; }
.wkv-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.lg-dot.tone-ok { background: var(--green); }
.lg-dot.tone-less { background: var(--amber); }
.lg-dot.tone-more { background: var(--blue); }
.wkv + .wkv { margin-top: 22px; }
.wkv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 2px 10px; }
.wkv-head h2 { font-size: 19px; }
.wkv-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wkv-acts .btn { min-height: 40px; }
.wkv-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 1100px) { .wkv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wkc { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wkc.is-approved { border-color: var(--green-border); }
.wkc-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wkc-name { font-weight: 700; font-size: 16px; line-height: 1.3; word-break: break-word; overflow-wrap: anywhere; }
.wkc-name a { color: var(--text); }
.wkc-tot { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.wkc-sum { font-size: 22px; font-weight: 800; line-height: 1.1; }
.wkc-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wkc-day {
  position: relative; width: 100%; min-height: 76px; padding: 6px 1px 5px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; text-align: center;
}
button.wkc-day { cursor: pointer; }
button.wkc-day:hover { border-color: var(--primary); }
.wkc-day.is-empty { background: var(--surface-2); color: var(--muted); border-style: dashed; }
.wkc-day.is-out { opacity: .5; }
.wkc-day.is-today { box-shadow: inset 0 0 0 1.5px var(--primary); }
.wkc-dn { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); line-height: 1.2; }
.wkc-dd { font-size: 12px; color: var(--text-2); line-height: 1.2; }
.wkc-w { font-size: 13.5px; font-weight: 800; line-height: 1.35; margin-top: 2px; white-space: nowrap; }
.wkc-df { font-size: 11.5px; font-weight: 700; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.wkc-day.tone-ok { background: var(--green-soft); border-color: var(--green-border); }
.wkc-day.tone-ok .wkc-df { color: var(--green); }
.wkc-day.tone-less, .wkc-day.tone-nso { background: var(--amber-soft); border-color: var(--amber-border); }
.wkc-day.tone-less .wkc-df, .wkc-day.tone-nso .wkc-w { color: var(--amber); }
.wkc-day.tone-more { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 35%, var(--border)); }
.wkc-day.tone-more .wkc-df { color: var(--blue); }
.wkc-day.tone-run .wkc-w { font-size: 11.5px; color: var(--primary); }
.wkc-pros { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--text-2); }
.wkc-pro { display: inline-flex; align-items: center; gap: 5px; }
.wkc-pro .icon { color: var(--muted); }
.wkc-pro strong { color: var(--text); }
.wkc-pro.is-ot strong, .wkc-pro.is-ot .icon { color: var(--blue); }
.wkc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wkc-acts .btn { min-height: 40px; }
@media (max-width: 379.98px) {
  .wkc { padding: 12px 10px; }
  .wkc-days { gap: 3px; }
  .wkc-w { font-size: 12.5px; }
  .wkc-sum { font-size: 20px; }
}

/* Instellingen → Uren */
.hs-form { display: flex; flex-direction: column; gap: 14px; }
.hs-sec { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--border); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hs-sec:first-child { padding-top: 0; border-top: 0; }
.hs-h { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: 15.5px; }
.hs-h .icon { color: var(--primary); }
.hs-sec .select { max-width: 320px; }
.hs-radios { display: flex; flex-wrap: wrap; gap: 0 18px; }
.hs-radios .check-row { font-weight: 500; }
.hs-radios.is-off, .hs-inline.is-off { opacity: .55; }
.hs-switch { min-height: 44px; }
.hs-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--text-2); }
.hs-inline .input { width: 84px; min-height: 44px; padding: 8px 10px; text-align: center; }
.hs-inline .hs-num { width: 76px; }
.hs-sec .hint { margin: -2px 0 0; }
.hs-more { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.hs-more .icon { flex: none; margin-top: 2px; color: var(--muted); }
.hs-card.is-locked .hs-form { cursor: pointer; }
.hs-card .lock-note { margin: 0; }

/* Medewerker: uurtarief, kosten */
.emp-rate .card-h .pill { font-size: 13px; }
.rate-form { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.rate-row { display: flex; gap: 8px; align-items: stretch; }
.rate-row .input-unit { flex: 1 1 auto; }
.rate-row .btn { flex: none; }
.emp-rate.is-locked .rate-form { cursor: pointer; }
.emp-rate .lock-note { margin: 10px 0 0; }
.emp-cost { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; }
.emp-cost .icon { color: var(--muted); }
.hc-when { flex: 1 1 auto; min-width: 0; font-size: 15px; }
.hc-diff.is-pause { background: var(--amber-soft); color: var(--amber); }
.wkc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.wkc-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 700; }
.wkc-day.is-fixed::after {
  content: ""; position: absolute; top: -1px; left: -1px; width: 0; height: 0;
  border-top: 10px solid var(--blue); border-right: 10px solid transparent; border-top-left-radius: 10px;
}
.lg-fix { display: inline-block; width: 0; height: 0; border-top: 10px solid var(--blue); border-right: 10px solid transparent; }
/* dag buiten de gekozen periode (week valt deels buiten "Deze maand" e.d.): gestreept, zonder '–' */
.wkc-day.is-empty.is-out, .lg-out {
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 4px, transparent 4px 8px); border-style: dotted;
}
.lg-out { display: inline-block; width: 10px; height: 10px; border-radius: 3px; border: 1px dotted var(--border-strong, var(--border)); }
.wkc-day.tone-pause { background: var(--amber-soft); border-color: var(--amber-border); }
.wkc-day.tone-pause .wkc-w { font-size: 11.5px; color: var(--amber); }
.wkc-ok-at { font-weight: 600; color: var(--text-2); }
.hs-card.is-locked .hs-sec, .emp-rate.is-locked .rate-row { opacity: .6; }
.table .hours-chips .chip { font-size: 12px; padding: 2px 6px; }
/* v1.11: extra kolom Pauze in Uren — de kolom Foto's pas vanaf 1440px (daaronder de badge bij de klus) */
@media (max-width: 1439.98px) { .table .td-photos, .table .th-photos { display: none; } }
@media (min-width: 1280px) and (max-width: 1439.98px) { .ph-inline { display: inline; } }

/* =====================================================================
   v1.12 (SPEC-RONDE-B2B.md): Zelf klokken, "Ik" in de medewerkerslijst, modus "alleen Ik", ritten
   ===================================================================== */
.min0 { min-width: 0; }

/* Vandaag: kaart "Zelf klokken" (bovenaan) */
.self-card { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.self-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.self-ico, .self-live {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--primary-soft); color: var(--primary);
}
.self-title { font-size: 18px; line-height: 1.2; }
.self-sub { color: var(--text-2); font-size: 14px; line-height: 1.35; margin-top: 2px; }
.self-rit {
  display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 36px; padding: 0 2px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
/* compacte kaart: "Ritten" staat in de ondertitel. Na review toch een raakvlak van 44 px hoog (de negatieve marge houdt
   de regel even hoog als de tekst) */
.self-sub .self-rit { min-height: 44px; padding: 0 8px; margin: -14px -8px; vertical-align: middle; border-radius: 8px; }
.self-card.is-solo { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.self-card.is-compact { padding: 12px 14px; }
.self-card.is-compact .self-title { font-size: 16.5px; }
.self-card.is-compact .self-start { flex: none; }
.self-imp { display: flex; align-items: flex-start; gap: 6px; margin: -4px 0 0; }
/* na review: "Stop vergeten?" - een eerdere sessie zonder Stop (dag zonder einde) */
.self-forgot { display: flex; flex-direction: column; gap: 8px; }
.self-forgot-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px;
  background: var(--amber-soft); border: 1px solid var(--amber-border);
}
.self-forgot-row > .icon { color: var(--amber); flex: none; }
.self-forgot-row .grow { flex: 1 1 160px; }
.self-forgot-row .btn { flex: none; margin-left: auto; }
.self-imp .icon { flex: none; margin-top: 2px; color: var(--muted); }
/* (feedback eigenaar 3 okt) "Ik" accepteert zelf: klussen voor jou die nog niet geaccepteerd zijn */
.self-accept { display: flex; flex-direction: column; gap: 8px; }
.self-accept-h { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; }
.self-accept-h .icon { flex: none; color: var(--primary); }
.self-accept-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px;
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
}
.self-accept-row .grow { flex: 1 1 160px; }
.self-accept-row .grow > a { display: block; color: var(--text); }
.self-accept-row .btn { flex: none; margin-left: auto; }
/* klusdetail: regel van "Ik" - Accepteren / Start hier */
.wk-self-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wk-self-hint { margin-top: 6px; }
/* bezig / pauze */
.self-card.is-running { border-color: var(--green-border); background: linear-gradient(180deg, var(--green-soft), var(--surface) 75%); }
.self-card.is-paused { border-color: var(--amber-border); background: linear-gradient(180deg, var(--amber-soft), var(--surface) 75%); }
.self-card.is-running .self-live { background: var(--green); color: var(--surface); }
.self-card.is-paused .self-live { background: var(--amber); color: var(--surface); animation: none; }
.self-card.is-running:not(.is-paused) .self-live { animation: sk-self-pulse 1.8s ease-out infinite; }
@keyframes sk-self-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 45%, transparent); }
  100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--green) 0%, transparent); }
}
.self-status { display: flex; flex-wrap: wrap; align-items: baseline; font-size: 16px; font-weight: 700; line-height: 1.3; }
.self-client { word-break: break-word; overflow-wrap: anywhere; }
.self-sep { color: var(--muted); white-space: pre; }
.self-job {
  display: inline-block; max-width: 100%; margin-top: 2px; font-size: 14px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top;
}
.self-timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.self-clock { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.self-timer.is-paused .self-clock { color: var(--text-2); }
.self-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.self-actions .btn { min-width: 0; }
.self-more { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px; }
.self-session { display: grid; gap: 6px; }
.self-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.self-notes li { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.self-notes li svg, .self-photos svg { flex: none; margin-top: 2px; }
.self-photos { display: inline-flex; gap: 6px; align-items: center; color: var(--text-2); }
.self-photo-btn { cursor: pointer; position: relative; }
.self-photo-btn:focus-within { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
@media (min-width: 960px) { .self-clock { font-size: 52px; } .self-actions { max-width: 460px; } }
@media (max-width: 359.98px) { .self-clock { font-size: 38px; } }

/* Sheet "Waar werk je aan?", Stop, Opmerking, Foto, Rit */
.dialog.self-dialog { width: min(480px, 100%); }
.ss-group { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ss-leg { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--text-2); }
.ss-list { display: flex; flex-direction: column; gap: 8px; }
.ss-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--primary-soft); color: var(--primary);
}
.ss-opt .wf-box { border-radius: 50%; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ss-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 40px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.ss-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-chip .icon { color: var(--muted); flex: none; }
.ss-chip:hover { border-color: var(--primary); }
.ss-chip[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.ss-chip[aria-pressed="true"] .icon { color: var(--primary); }
.ss-loc { display: flex; align-items: flex-start; gap: 6px; }
.ss-loc .icon { flex: none; margin-top: 2px; }
.self-stop-sum { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.self-stop-sum .bold { font-size: 18px; }
.self-trip-q { align-items: flex-start; padding: 4px 0; }
.self-trip-q input { margin-top: 1px; }
.self-trip-q .normal { display: block; font-weight: 500; }
.self-ph-prev img { display: block; width: 100%; max-height: 260px; object-fit: contain; border-radius: var(--radius); background: var(--surface-2); }

/* "Zelf geklokt" (klussen, klusdetail, medewerker) */
.chip-self { background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: -1px 0 3px; }
.cell-title-wrap .chip-self { flex: none; margin-left: 2px; }
.emp-job .chip-self { margin-left: 6px; vertical-align: 1px; }

/* Alleen "Ik" / eigen klus: fraude- en apparatenblokken ingeklapt */
.quiet-block { margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.quiet-block > summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 14.5px; color: var(--text-2); border-radius: var(--radius-lg);
}
.quiet-block > summary::-webkit-details-marker { display: none; }
.quiet-block > summary .icon { color: var(--muted); flex: none; }
.quiet-block > summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.quiet-block .qb-chev { transition: transform .15s; }
.quiet-block[open] > summary .qb-chev { transform: rotate(180deg); }
.quiet-body { padding: 0 10px 10px; }
.quiet-body > .card, .quiet-body > .alert-block { margin: 0; box-shadow: none; }
.quiet-body > .warn-list { margin: 0 4px 4px; }
.detail-grid + .quiet-block { margin-top: 16px; }
@media (min-width: 960px) { .detail-grid + .quiet-block { margin-top: 18px; } }

/* #/medewerkers: "Ik (Naam)" bovenaan; uitleg als alleen jij erin staat */
.emp-row.is-self { background: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); }
.emp-row.is-self:hover { background: var(--primary-soft); }
.solo-hint { margin-top: 14px; }

/* #/ritten */
.trips-page { max-width: 900px; margin: 0 auto; }
.trips-page > .self-imp { margin: -6px 0 12px; }
.trips-sum { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; }
.trips-sum-ico {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--primary-soft); color: var(--primary);
}
.trips-sum-val { font-size: 26px; font-weight: 800; line-height: 1.1; }
.trips-sum .trip-add { flex: none; }
@media (max-width: 519.98px) {
  .trips-sum { flex-wrap: wrap; }
  .trips-sum .trip-add { flex: 1 1 100%; min-height: 50px; }
}
.trips-page .history-note { margin-top: 14px; }
.trips-page [data-results] > .card:not(.trips-sum) { margin-top: 14px; }
.trip-month { margin-top: 20px; }
.trip-month-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 8px; }
.trip-month-head h2 { font-size: 18px; }
.trip-month-sum { color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.trip-list { list-style: none; margin: 0; padding: 0; }
.trip-li + .trip-li { border-top: 1px solid var(--border); }
.trip-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px;
  border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.trip-row:hover { background: var(--surface-2); }
.trip-row:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: -3px; }
.trip-date {
  width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 5px 0;
  border-radius: 10px; background: var(--surface-2); line-height: 1.1;
}
.trip-dow { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.trip-day { font-size: 18px; font-weight: 800; }
.trip-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trip-route { font-weight: 600; line-height: 1.3; word-break: break-word; overflow-wrap: anywhere; }
.trip-sub { color: var(--text-2); font-size: 13.5px; line-height: 1.3; word-break: break-word; overflow-wrap: anywhere; }
.trip-stand { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.trip-km { flex: none; font-weight: 800; font-size: 16px; white-space: nowrap; }
.trip-mode { margin-bottom: 6px; }
.trip-kmset > legend { margin-bottom: 8px; }
.trip-calc { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--text-2); font-size: 14px; }
.trip-calc:empty { display: none; }
.trip-calc .icon { color: var(--primary); flex: none; }

/* =====================================================================
   v1.13 (SPEC-RITTEN-LOCATIE.md §4): ritten met locatie — Vertrokken / Aangekomen, "Klopt … km?", Rit starten/stoppen,
   "Rit nog bezig?", vaste plekken. Onderweg = blauw (pauze is al oranje).
   ===================================================================== */
:root { --trip: var(--blue); --trip-soft: var(--blue-soft); --trip-border: #bcd2ff; }
@media (prefers-color-scheme: dark) { :root { --trip-border: #2c4470; } }

/* Zelf klokken: Start + Vertrokken naast elkaar */
.self-btns { display: flex; gap: 8px; flex: none; margin-left: auto; }
.self-btns .btn { min-width: 0; }
.self-head.self-head-wrap { flex-wrap: wrap; }
.self-head.self-head-wrap > .grow { flex: 1 1 180px; }
@media (max-width: 519.98px) {
  .self-card.is-compact .self-btns.has-2 { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* onderweg (rit loopt, nog geen werk) */
.self-card.is-trip { border-color: var(--trip-border); background: linear-gradient(180deg, var(--trip-soft), var(--surface) 75%); }
.self-card.is-trip .self-live { background: var(--trip); color: var(--surface); animation: sk-trip-pulse 1.8s ease-out infinite; }
.self-card.is-trip .self-status { display: block; }      /* gewoon doorlopende tekst: geen losse "·" op een eigen regel */
.self-card.is-trip .self-sep { white-space: normal; }
@keyframes sk-trip-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--trip) 45%, transparent); }
  100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--trip) 0%, transparent); }
}
.self-trip-hint { margin: -4px 0 0; }
/* telefoon: "Aangekomen" groot, "Rit stoppen" eronder (twee kolommen werd te krap) */
@media (max-width: 459.98px) { .self-card.is-trip .self-actions { grid-template-columns: minmax(0, 1fr); } }
/* rit tijdens het werk */
.self-trip-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px;
  background: var(--trip-soft); border: 1px solid var(--trip-border);
}
.self-trip-strip > .icon { color: var(--trip); flex: none; }
.self-trip-strip .grow { flex: 1 1 160px; }
.self-trip-strip .bold { overflow-wrap: anywhere; }
.self-trip-strip .btn { flex: none; margin-left: auto; background: var(--surface); }
/* "Rit nog bezig?" (zelfde vorm als "Stop vergeten?") */
.trip-forgot .min0 { overflow-wrap: anywhere; }
.trip-forgot-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.self-forgot-row .trip-forgot-acts .btn { margin-left: 0; }
/* kader met de rit in een onderblad */
.trip-sum-box .bold, .km-q-sum .bold { overflow-wrap: anywhere; }
.self-ico.trip-ico { background: var(--trip-soft); color: var(--trip); }

/* "Klopt 23,4 km?" */
.dialog.km-dialog .dialog-head h3 { font-size: 22px; line-height: 1.25; }
.km-q-btns { display: grid; gap: 10px; }
.km-q-input .input { height: 56px; font-size: 22px; font-weight: 700; }
.km-q-input > span { font-size: 16px; }

/* #/ritten: blok bovenaan */
.trip-now { display: flex; flex-direction: column; gap: 12px; margin: 0 0 14px; }
.trip-now-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.trip-now-ico {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--primary-soft); color: var(--primary);
}
.trip-now-title { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.trip-now-head p { margin-top: 2px; }
.trip-now-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.trip-now-acts .count { margin-left: 2px; }
.trip-now.is-running { border-color: var(--trip-border); background: linear-gradient(180deg, var(--trip-soft), var(--surface) 80%); }
.trip-now.is-running .trip-now-ico { background: var(--trip); color: var(--surface); animation: sk-trip-pulse 1.8s ease-out infinite; }
.trip-now.is-forgot .self-forgot { gap: 0; }
@media (max-width: 519.98px) {
  .trip-now-acts > .btn { flex: 1 1 100%; min-height: 48px; }
  .trip-now-acts > .btn-ghost { flex: 0 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .self-card.is-trip .self-live, .trip-now.is-running .trip-now-ico { animation: none; }
}

/* rijen: tijden en km-bron */
.trip-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 1px; }
.trip-time { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; }
.trip-tag {
  display: inline-flex; align-items: center; min-height: 20px; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text); background: var(--gray-soft); overflow-wrap: anywhere;
}
.trip-tag.is-odo { background: var(--green-soft); }
.trip-tag.is-route { background: var(--trip-soft); }
.trip-tag.is-adj { background: var(--amber-soft); }
.trip-tag.is-missing { background: var(--red-soft); }

/* Rit bewerken: tijden, vaste plek, km-bron */
.trip-times { display: flex; align-items: center; gap: 6px; margin: -4px 0 0; }
.trip-times .icon { flex: none; color: var(--muted); }
.trip-pl-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.trip-pl-row .btn { white-space: normal; text-align: left; }
.trip-kmsrc { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 10px; color: var(--text-2); font-size: 14px; }
.trip-kmsrc .icon { flex: none; color: var(--muted); }
.btn-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--primary); text-decoration: underline; text-underline-offset: 3px;
}
.btn-link:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.btn-link:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* Vaste plekken */
.pl-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); }
.pl-li { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 6px 8px 12px; }
.pl-li + .pl-li { border-top: 1px solid var(--border); }
.pl-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--primary-soft); color: var(--primary);
}
.pl-name, .pl-addr { overflow-wrap: anywhere; }
.pl-li .btn { flex: none; }
.pl-empty, .pl-src {
  display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--surface-2); color: var(--text-2); overflow-wrap: anywhere;
}
.pl-empty .icon, .pl-src .icon { flex: none; margin-top: 2px; }
.pl-name-chips { margin-top: 8px; }
@media (max-width: 379.98px) { .pl-li .btn span { display: none; } }

/* ---------- Eigen tijdkiezer (App.timePicker) — altijd binnen beeld, ook met grote letters ---------- */
.tp-backdrop {
  position: fixed; inset: 0; z-index: 1000; background: rgba(5, 10, 25, .5);
  display: flex; align-items: center; justify-content: center;
  padding: max(12px, var(--safe-top, 0px)) 12px max(12px, var(--safe-bottom, 0px));
}
.tp-sheet {
  box-sizing: border-box; width: min(380px, 100%); max-height: 100%; overflow-y: auto;
  background: var(--surface); color: var(--text); border-radius: var(--radius-lg, 16px); box-shadow: var(--shadow-lg);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.tp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tp-label { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.tp-show { width: 6.2em; flex: none; text-align: center; font-size: 1.5rem; font-weight: 700; padding: 6px 8px; }
.tp-title { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.tp-grid { display: grid; gap: 6px; }
.tp-hours { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tp-mins { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tp-cell {
  min-height: 40px; min-width: 0; padding: 0; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2, transparent); color: var(--text); font: inherit; font-variant-numeric: tabular-nums;
  font-size: 1rem; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tp-cell.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary, #fff); font-weight: 700; }
.tp-cell:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.tp-err { color: var(--danger, #c0392b); }
.tp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tp-actions .grow { flex: 1 1 auto; }
@media (max-width: 340px) { .tp-hours, .tp-mins { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* =====================================================================
   v1.14 (SPEC-RONDE-B2C.md): werkwijzen op maat, doorlopende klussen, tussenstops + ingevulde velden (handtekening),
   ritten van medewerkers, werktelefoon (gedeeld), pincode en prikklok — werkgeverskant
   ===================================================================== */
/* Instellingen → Werkwijzen */
.wkw-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wkw-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); min-width: 0;
}
.wkw-row[data-href] { cursor: pointer; }
.wkw-row[data-href]:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--surface-2); }
.wkw-row.is-std { background: var(--surface-2); }
.wkw-row.is-locked { opacity: .75; cursor: pointer; }
.wkw-ico, .wkw-tpl-ico {
  width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.wkw-row.is-std .wkw-ico { background: var(--gray-soft); color: var(--text-2); }
.wkw-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 700; overflow-wrap: anywhere; }
.wkw-name a { color: var(--text); }
.wkw-sub { font-size: 14px; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.wkw-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.wkw-def { white-space: nowrap; }
.wkw-lock { color: var(--muted); padding-top: 10px; }
.wkw-mkdef { flex: none; }
.wkw-arch { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; }
.wkw-archived { box-shadow: none; border-radius: var(--radius); }
.wkw-arch-list { list-style: none; margin: 0 0 8px; padding: 0 4px; display: flex; flex-direction: column; gap: 4px; }
.wkw-arch-list li { display: flex; align-items: center; gap: 8px; min-height: 40px; overflow-wrap: anywhere; }
.wkw-arch-list .btn { flex: none; }
.wkw-archived .hint { padding: 0 4px; }
.wkw-tpl-prev { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wkw-tpl-prev li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.wkw-tpl-prev li .icon { color: var(--muted); flex: none; margin-top: 2px; }
@media (max-width: 479.98px) { .wkw-mkdef span { display: none; } .wkw-mkdef { width: 36px; padding: 0; } }

/* "Nieuwe werkwijze": sjabloon kiezen */
.wkw-tpls { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wkw-tpl {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.wkw-tpl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wkw-tpl-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wkw-tpl-txt > span { font-size: 13.5px; color: var(--text-2); line-height: 1.35; }
.wkw-tpl-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--border); margin-top: 10px; }
.wkw-tpl:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.wkw-tpl input:checked ~ .wkw-tpl-dot { border-color: var(--primary); background: radial-gradient(var(--primary) 0 45%, transparent 50%); }
.wkw-tpl input:focus-visible ~ .wkw-tpl-dot { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }

/* #/werkwijze/{id}: bewerken */
.wkw-page { max-width: 760px; }
.wkw-intro { margin: -6px 0 14px; }
.wkw-prev-box { margin-top: 14px; padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.wkw-prev-box > .label { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.wkw-prev { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wkw-pbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px;
  background: var(--cta); color: var(--on-cta); font-weight: 700; font-size: 14px; overflow-wrap: anywhere;
}
.wkw-parr { color: var(--muted); display: inline-flex; }
.wkw-steps { display: flex; flex-direction: column; gap: 14px; }
.wkw-step { display: flex; flex-direction: column; gap: 8px; }
.wkw-step + .wkw-step { padding-top: 14px; border-top: 1px solid var(--border); }
.wkw-stops, .wkw-fields { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wkw-stop { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wkw-stop .input { flex: 1 1 auto; min-width: 0; }
.wkw-stop-ico { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.wkw-acts { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.wkw-acts .btn { color: var(--text-2); }
.wkw-acts .wkw-del:not(:disabled):hover { color: var(--red); }
.wkw-empty { padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); }
.wkw-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.wkw-quick:empty { display: none; }
.wkw-q { border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--surface); color: var(--primary); cursor: pointer; min-height: 32px; font-size: 13.5px; }
.wkw-q:hover { background: var(--primary-soft); }
.wkw-add { display: flex; gap: 8px; }
.wkw-add .input { flex: 1 1 auto; min-width: 0; }
.wkw-add .btn { flex: none; }
.wkw-field { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wkw-f-head { display: flex; align-items: flex-end; gap: 10px; min-width: 0; }
.wkw-f-ico { width: 40px; height: 48px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.wkw-f-grid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .wkw-f-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.wkw-f-unit .input { max-width: 220px; }
.wkw-f-opts { min-height: 88px; }
.wkw-f-note { display: flex; gap: 6px; align-items: flex-start; }
.wkw-f-note .icon { flex: none; margin-top: 2px; }
.wkw-f-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wkw-req { min-height: 40px; font-size: 14.5px; }
.wkw-opts { display: flex; flex-direction: column; gap: 4px; }
.wkw-opt.is-off { color: var(--text-2); }
.wkw-opt.is-off .track { opacity: .5; }

/* Klusformulier: werkwijze + doorlopend */
.wkw-pick > .label { display: flex; align-items: center; gap: 8px; }
.wkw-pick.is-locked .select { color: var(--text-2); }
.wkw-pick-chg { color: var(--amber); font-weight: 600; }
.wkw-pick-note { margin: 2px 0 0; }
.rec-switch { margin-top: -4px; }
.rec-box { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rec-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 420px; }
.rec-day {
  min-height: 44px; min-width: 0; padding: 0; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.rec-day[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.rec-day:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.rec-hint { display: flex; gap: 6px; align-items: flex-start; }
.rec-hint .icon { flex: none; margin-top: 2px; }

/* Klusdetail / kaarten: doorlopend, werkwijze, tussenstops, gegevens, gereden km, rit */
.rec-chip, .wkw-chip { white-space: nowrap; }
.wkw-chip { background: var(--primary-soft); color: var(--primary); }
.tl-stop .tl-row strong { overflow-wrap: anywhere; }
.wk-times .wk-stop { color: var(--blue); font-weight: 600; }
.wk-times .wk-stop .icon { color: var(--blue); }
.wk-times .wk-km { color: var(--text); font-weight: 600; }
.tl-trip {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 10px;
  background: var(--trip-soft); font-size: 14px; line-height: 1.4;
}
.tl-trip > .icon { color: var(--trip); flex: none; margin-top: 2px; }
.tl-fields { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); }
.tl-fields-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; }
.tl-fields-h .icon { color: var(--muted); }
.fv-list { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fv-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2px 12px; font-size: 14.5px; }
.fv-row dt { color: var(--text-2); overflow-wrap: anywhere; }
.fv-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.fv-row dd .pre { white-space: pre-wrap; font-weight: 500; }
.fv-at { display: block; font-size: 12.5px; color: var(--muted); }
.fv-row.is-sig { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 419.98px) { .fv-row { grid-template-columns: minmax(0, 1fr); } }
.fv-sig {
  display: block; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: zoom-in;
  max-width: 260px; width: 100%;
}
.fv-sig img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: contain; }
.fv-sub { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.fv-ph { width: 72px; padding: 0; border: 0; background: transparent; border-radius: 10px; cursor: zoom-in; }
.fv-ph .ph-media { width: 72px; }
.fv-ph:hover .ph-media { border-color: var(--primary); }

/* Afronden van een doorlopende klus: einddatum */
.cmp-date .input { max-width: 260px; }

/* Werktelefoon (gedeeld) */
.wp-chip { background: var(--gray-soft); color: var(--text-2); white-space: nowrap; }
.dev-wp { margin-top: 6px; }
.dev-card .wp-btn { margin-left: auto; }
.wp-btn[aria-pressed="true"] { font-weight: 700; }
.wp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wp-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.wp-list li .icon { color: var(--primary); flex: none; margin-top: 1px; }

/* #/medewerkers → Apparaten */
.dvs-intro { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.dvs-intro > .icon { color: var(--blue); flex: none; margin-top: 2px; }
.dvs-h { margin: 18px 2px 8px; font-size: 15px; }
.dvs-note { margin: -4px 2px 8px; }
.dvs-list { list-style: none; margin: 0; padding: 0; }
.dvs-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; padding: 12px 14px; }
.dvs-row + .dvs-row { border-top: 1px solid var(--border); }
.dvs-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gray-soft); color: var(--text-2); }
.dvs-ico.is-on { background: var(--primary-soft); color: var(--primary); }
.dvs-name { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.dvs-sub { font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
@media (max-width: 479.98px) {
  .dvs-row { grid-template-columns: 40px minmax(0, 1fr); align-items: start; }
  .dvs-row .btn { grid-column: 2; justify-self: start; }
}

/* Medewerker → Pincode */
.emp-pin .card-h { flex-wrap: wrap; }
.emp-pin .card-h .pill { flex: none; }
.emp-pin > p { margin: 0 0 10px; }
.emp-pin > p:last-child { margin-bottom: 0; }
.pin-locked { display: flex; align-items: flex-start; gap: 6px; color: var(--amber); font-weight: 600; }
.pin-locked .icon { flex: none; margin-top: 2px; }

/* Instellingen → Werktelefoons en Prikklok */
.wt-switch { margin-bottom: 10px; }
.kio-steps { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.kio-name { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; margin-bottom: 10px; }
.kio-link { margin-bottom: 10px; }
.kio-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kio-acts .btn { flex: 1 1 auto; }
.kio-loc {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px 10px;
  padding: 12px; border-radius: var(--radius); background: var(--surface-2); margin-bottom: 10px;
}
.kio-loc > .icon { color: var(--primary); }
.kio-loc.is-missing { background: var(--amber-soft); }
.kio-loc.is-missing > .icon { color: var(--amber); }
.kio-loc .small { overflow-wrap: anywhere; }
.kio-tip { display: flex; gap: 6px; align-items: flex-start; margin-bottom: 10px; }
.kio-tip .icon { flex: none; margin-top: 2px; }
.kio-more { gap: 6px; flex-wrap: wrap; }
.kio-off { color: var(--red); }
.kl-coords { overflow-wrap: anywhere; }
@media (max-width: 419.98px) {
  .kio-loc { grid-template-columns: 18px minmax(0, 1fr); align-items: start; }
  .kio-loc .btn { grid-column: 2; justify-self: start; }
}
.wkw-page > .banner { margin-bottom: 14px; }

/* #/ritten: Mijn ritten / Medewerkers, filter en totalen per medewerker */
.rt-who { margin-bottom: 14px; }
.rt-who .seg-btn { display: inline-flex; align-items: center; gap: 7px; }
.rt-pick { margin-top: 14px; max-width: 360px; }
.rt-privacy { display: flex; align-items: flex-start; gap: 6px; margin: 12px 2px 0; }
.rt-privacy .icon { flex: none; margin-top: 2px; color: var(--muted); }
.rt-people-wrap { margin-top: 18px; }
.rt-people { list-style: none; margin: 0; padding: 0; }
.rt-people li + li { border-top: 1px solid var(--border); }
.rt-person {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 14px; border: 0;
  background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.rt-person:hover { background: var(--surface-2); }
.rt-person:disabled { cursor: default; }
a.trip-row, div.trip-row { text-decoration: none !important; color: var(--text); }
div.trip-row { cursor: default; }
div.trip-row:hover { background: transparent; }

/* =====================================================================
   v1.15 (SPEC-RONDE-D.md §12): controlerondes — Rondes, ronde-editor, live-weergave, objecten, incidenten.
   Alles via de bestaande tokens (licht/donker); mobiel eerst (375 px), vanaf 960 px twee kolommen.
   ===================================================================== */
:root { --inc-bg: #b91c1c; --inc-text: #ffffff; }
@media (prefers-color-scheme: dark) { :root { --inc-bg: #7f1d1d; --inc-text: #fff1f0; } }

/* Zijbalk: slot "Pro" bij Rondes (Basic) */
.side-pro {
  margin-left: auto; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .1); color: var(--sidebar-text);
}
.side-pro .icon { width: 12px; height: 12px; }

/* Rode balk "Open incident" (onder de topbar, op elk scherm tot Afgehandeld) */
.inc-bar { background: var(--inc-bg); color: var(--inc-text); }
.inc-bar-in {
  display: flex; align-items: center; gap: 10px; min-height: 46px;
  padding: 6px max(10px, env(safe-area-inset-right, 0px)) 6px max(14px, env(safe-area-inset-left, 0px));
}
.inc-bar-in > .icon { flex: none; animation: rd-blink 1.6s ease-in-out infinite; }
@keyframes rd-blink { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .inc-bar-in > .icon { animation: none; } }
.inc-bar-txt {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; color: inherit; text-decoration: none !important; line-height: 1.25;
}
.inc-bar-txt strong { font-size: 14px; }
.inc-bar-what { font-size: 13px; opacity: .92; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inc-bar-btn {
  flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: inherit; font: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.inc-bar-btn:hover { background: rgba(255, 255, 255, .22); }
@media (min-width: 960px) {
  .inc-bar-in { padding: 6px 28px 6px 36px; }
  .inc-bar-txt { flex-direction: row; align-items: baseline; gap: 10px; }
}
.toast.toast-incident { background: var(--inc-bg); color: var(--inc-text); }
.toast.toast-incident .icon { color: var(--inc-text); }

/* Chips, tabs, kop */
.chip-round { background: var(--primary-soft); color: var(--primary); }
.rd-pro { margin-bottom: 14px; }
.rd-tabs {
  display: flex; gap: 6px; margin: -4px -16px 16px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rd-tabs::-webkit-scrollbar { display: none; }
.rd-tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: 14.5px;
  text-decoration: none !important; white-space: nowrap;
}
.rd-tab:hover { border-color: var(--primary); color: var(--primary); }
.rd-tab[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.rd-tab-n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}
@media (prefers-color-scheme: dark) { .rd-tab-n { color: #1f0d0b; } }
@media (min-width: 960px) { .rd-tabs { margin: -6px 0 20px; padding: 2px 0 6px; flex-wrap: wrap; overflow: visible; } }
.rd-body { min-width: 0; }
.rd-sec + .rd-sec { margin-top: 18px; }
.rd-h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 10px; }
.rd-h2 .icon { color: var(--text-2); }
.rd-h3 { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 0 0 8px; }
.rd-count-red { background: var(--red-soft); color: var(--red); }
.rd-intro { margin: -4px 0 12px; }
.rd-none { padding: 4px 0; }
.rd-empty-acts { justify-content: center; gap: 8px; margin-top: 4px; }
.rd-dlg-acts { gap: 8px; }
.rd-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.rd-tools-row { gap: 8px; }
.rd-select { width: auto; min-width: 0; max-width: 100%; flex: 1 1 160px; }
.rd-stk-btn { flex: 1 1 auto; }
@media (min-width: 720px) {
  .rd-toolbar.rd-site-tools { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .rd-search { flex: 0 1 340px; }
  .rd-select { flex: 0 1 220px; }
  .rd-stk-btn { flex: none; margin-left: auto; }
}

/* Voortgangsbalk */
.rd-bar { display: flex; height: 8px; margin: 8px 0 6px; border-radius: 999px; overflow: hidden; background: var(--gray-soft); }
.rd-bar > span { display: block; height: 100%; }
.rd-bar-done { background: var(--green); }
.rd-bar-on { background: var(--blue); }
.rd-bar-missed { background: var(--red); }
.rd-inc-n { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-weight: 700; }
.rd-inc-n .icon { width: 14px; height: 14px; }

/* Rondes vandaag (kaart op Vandaag + tab Vandaag) */
.rd-today { margin-bottom: 14px; }
.rd-tlist { list-style: none; margin: 0; padding: 0; }
.rd-trow { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); cursor: pointer; min-width: 0; }
.rd-tlist > .rd-trow:first-child { border-top: 0; padding-top: 0; }
.rd-tlist-big > .rd-trow { padding: 14px 16px; }
.rd-tlist-big > .rd-trow:first-child { padding-top: 14px; }
.rd-trow:hover .rd-trow-title { color: var(--primary); }
.rd-trow.has-inc { box-shadow: inset 3px 0 0 var(--red); }
.rd-tlist:not(.rd-tlist-big) > .rd-trow.has-inc { padding-left: 10px; }
.rd-trow-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.rd-trow.has-inc .rd-trow-ico { background: var(--red-soft); color: var(--red); }
.rd-trow-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rd-trow-title { font-weight: 700; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.rd-trow-sub { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.rd-trow-prog { color: var(--text-2); }

/* Uitleg als er nog niets is */
.rd-hero { display: flex; flex-direction: column; gap: 14px; }
.rd-hero-top { display: flex; gap: 14px; align-items: flex-start; }
.rd-hero-top h2 { font-size: 19px; margin-bottom: 4px; }
.rd-hero-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.rd-hero-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.rd-hero-list li { display: flex; gap: 10px; align-items: flex-start; }
.rd-hero-list .icon { color: var(--primary); flex: none; margin-top: 2px; }
.rd-hero-acts { gap: 8px; }

/* Planning */
.rd-plan-list { display: grid; gap: 12px; }
@media (min-width: 900px) { .rd-plan-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rd-plan { display: flex; flex-direction: column; gap: 6px; cursor: pointer; min-width: 0; }
.rd-plan:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.rd-plan-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.rd-plan-top .small { display: flex; align-items: center; gap: 5px; }
.rd-plan-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.rd-plan-title { font-size: 16.5px; overflow-wrap: anywhere; }
.rd-plan-title a { color: var(--text); }
.rd-plan-today { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-2); margin-top: 2px; }
.rd-plan-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Objecten */
.rd-sites { list-style: none; margin: 0; padding: 0; }
.rd-site { display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; min-width: 0; }
.rd-site + .rd-site { border-top: 1px solid var(--border); }
.rd-site:hover { background: var(--surface-2); }
.rd-site-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--text-2); }
.rd-site-name { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.rd-site-sub { color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.rd-site-side { display: none; flex: none; text-align: right; flex-direction: column; }
@media (min-width: 640px) { .rd-site-side { display: flex; } }

/* Incidenten */
.rd-inc-list { display: grid; gap: 12px; }
.rd-live-inc { margin-bottom: 16px; }
.rd-inc { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rd-inc.is-open { border-color: var(--red-border); box-shadow: inset 4px 0 0 var(--red); }
.rd-inc-head { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.rd-inc-title { font-weight: 700; font-size: 16px; }
.rd-inc-note { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); font-size: 14.5px; }
.rd-inc-done { display: flex; align-items: flex-start; gap: 6px; }
.rd-inc-done .icon { flex: none; margin-top: 3px; color: var(--green); }
.rd-inc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-inc-sum { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius); background: var(--red-soft); }
.rd-inc-sum > .icon { color: var(--red); flex: none; margin-top: 2px; }

/* Foto's bij bezoeken/incidenten */
.rd-ph { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; max-width: 420px; margin-top: 8px; }
.rd-ph-btn { padding: 0; border: 0; background: transparent; border-radius: 10px; cursor: pointer; min-width: 0; }
.rd-ph-btn:hover .ph-media { border-color: var(--primary); }

/* Meldingenfeed: rondemeldingen */
.feed-item.is-quiet .feed-title { font-weight: 500; color: var(--text-2); }
.feed-item.is-quiet .ev-ico { opacity: .75; }
.feed-item.is-incident .feed-title { color: var(--red); font-weight: 700; }

/* Inzage-log */
.rd-views { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.rd-views li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.rd-views li > .icon { flex: none; margin-top: 3px; color: var(--muted); }

/* Stickers printen */
.rd-stk-dialog { width: min(520px, 100%); }
.rd-stk-list { max-height: 42vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 12px; }
.rd-stk-group + .rd-stk-group { border-top: 1px solid var(--border); }
.rd-stk-site { font-weight: 700; }
.rd-stk-cp { font-weight: 500; }
.rd-stk-cp.is-sub { padding-left: 30px; }
.rd-stk-all { gap: 4px; margin-top: -6px; }
.rd-stk-size .seg-btn { flex: 1 1 0; }
.rd-stk-sum { margin: 0; }

/* Instructies: bekijken (watermerk) en bewerken */
.rd-instr-dialog, .rd-instr-edit { width: min(560px, 100%); }
.rd-instr-dialog h3, .rd-instr-edit h3, .rd-stk-dialog h3 { display: flex; align-items: center; gap: 8px; }
.rd-instr-box {
  position: relative; overflow: hidden; min-height: 140px; max-height: 52vh; overflow-y: auto; padding: 16px;
  border-radius: var(--radius); border: 1px solid var(--amber-border); background: var(--amber-soft);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.rd-instr-text { position: relative; z-index: 1; font-size: 16.5px; line-height: 1.55; }
.rd-wm {
  position: absolute; inset: -40% -40%; z-index: 2; pointer-events: none; display: flex; flex-wrap: wrap; align-content: flex-start;
  gap: 34px 46px; transform: rotate(-24deg); opacity: .16; color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap;
}
.rd-instr-hint { display: flex; align-items: flex-start; gap: 6px; }
.rd-instr-hint .icon { flex: none; margin-top: 2px; }
.rd-instr-ta { min-height: 200px; font-family: var(--font); }
.rd-instr-cnt { margin-left: auto; }
.rd-instr-expl { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius); background: var(--primary-soft); }
.rd-instr-expl .icon { color: var(--primary); flex: none; margin-top: 1px; }
.btn-danger-text { color: var(--red); }
.rd-instr-card .card-h .chip { flex: none; }
.rd-instr-why { margin-top: 6px; }
.rd-instr-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rd-imp-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; color: var(--text-2); }
.rd-imp-note .icon { flex: none; margin-top: 3px; }

/* Live-weergave */
.rd-live-head .detail-actions { flex-wrap: wrap; }
.rd-datebar { display: flex; align-items: center; gap: 8px; margin: -4px 0 16px; }
.rd-datebar .btn-icon { flex: none; }
.rd-date-in { flex: 1 1 auto; min-width: 0; max-width: 220px; min-height: 44px; padding: 8px 12px; }
.rd-alert { margin-bottom: 10px; }
.rd-grid { display: flex; flex-direction: column; gap: 16px; }
.rd-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 960px) {
  .rd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
  .rd-col { gap: 18px; }
}
@media (min-width: 1280px) { .rd-grid { grid-template-columns: minmax(0, 1fr) 400px; } }
.rd-prog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rd-prog-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rd-prog-big strong { font-size: 34px; font-weight: 800; line-height: 1; }
.rd-prog-big span { color: var(--text-2); }
.rd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.rd-stat { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: var(--surface-2); text-align: center; min-width: 0; }
.rd-stat strong { font-size: 20px; line-height: 1.1; }
.rd-stat span { font-size: 12px; color: var(--text-2); line-height: 1.2; }
.rd-stat.tone-txt-red strong { color: var(--red); }
.rd-stat.tone-txt-amber strong { color: var(--amber); }
.rd-stat.tone-txt-blue strong { color: var(--blue); }
.rd-wks { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.rd-wk { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rd-wk .grow { display: flex; flex-direction: column; }
.rd-stops { list-style: none; margin: 0; padding: 0; }
.rd-stop { position: relative; display: flex; gap: 12px; padding-bottom: 18px; min-width: 0; }
.rd-stop:last-child { padding-bottom: 0; }
.rd-stop::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--border); }
.rd-stop:last-child::before { display: none; }
.rd-stop-nr {
  position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums;
}
.rd-stop.is-pending .rd-stop-nr { background: var(--surface); border: 2px dashed var(--border); color: var(--muted); }
.rd-stop-body { flex: 1 1 auto; min-width: 0; padding-top: 4px; }
.rd-stop-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rd-stop-name { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.rd-stop-sub { color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; }
.rd-stop-chips:empty { display: none; }
.rd-visits { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-visit { padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); min-width: 0; font-size: 14.5px; }
.rd-visit.is-on_site { border-color: color-mix(in srgb, var(--blue) 45%, var(--border)); background: var(--blue-soft); }
.rd-visit.is-missed { background: var(--red-soft); border-color: var(--red-border); color: var(--red); }
.rd-visit[data-href] { cursor: pointer; }
.rd-v-day { margin-bottom: 4px; }
.rd-v-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rd-v-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.rd-v-time { font-weight: 700; white-space: nowrap; }
.rd-v-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; color: var(--text-2); }
.rd-v-meta > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.rd-v-meta .icon { flex: none; color: var(--muted); }
.rd-v-min.is-short { color: var(--amber); font-weight: 700; }
.rd-v-min.is-short .icon { color: var(--amber); }
.rd-v-proof span { overflow-wrap: anywhere; }
.rd-v-out { display: flex; align-items: flex-start; gap: 5px; margin-top: 3px; }
.rd-v-out .icon { flex: none; margin-top: 3px; }
.rd-visit .tl-note { margin-top: 6px; }
.rd-visit .rd-fv { margin-top: 8px; }
.rd-extra { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.rd-pin {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35); font-weight: 800; font-size: 13px; color: #fff; background: var(--primary);
}
.tone-pin-green { background: var(--green); }
.tone-pin-blue { background: var(--blue); }
.tone-pin-red { background: var(--red); }
.tone-pin-gray { background: var(--gray); }
@media (prefers-color-scheme: dark) { .rd-pin { color: #13180e; border-color: #1a1d18; } }
.rd-about-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Object-detail */
.rd-cps { list-style: none; margin: 0 0 12px; padding: 0; }
.rd-cp { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-width: 0; }
.rd-cp + .rd-cp { border-top: 1px solid var(--border); }
.rd-cp-qr {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.rd-cp-qr:hover { border-color: var(--primary); color: var(--primary); }
.rd-cp-qr.is-hidden { cursor: default; color: var(--muted); }
.rd-cp-name { font-weight: 700; overflow-wrap: anywhere; }
.rd-cp-add { display: flex; gap: 8px; }
.rd-cp-add .input { flex: 1 1 auto; min-width: 0; }
.rd-cp-acts { margin-top: 12px; }
.rd-info { margin-top: 12px; }
.rd-qr-dialog { width: min(380px, 100%); }
.rd-qr-box { display: grid; place-items: center; padding: 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.rd-qr-img { width: min(240px, 70vw); height: auto; image-rendering: pixelated; }
.rd-qr-code { font-size: 22px; letter-spacing: .06em; }

/* Ronde-editor: objecten in volgorde */
.rd-es-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-es {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "nr main acts" "nr min min";
  gap: 6px 10px; align-items: center; padding: 10px 10px 10px 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.rd-es.is-gone { border-color: var(--amber-border); background: var(--amber-soft); }
.rd-es-nr {
  grid-area: nr; align-self: start; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 14px;
}
.rd-es-main { grid-area: main; min-width: 0; }
.rd-es-name { font-weight: 700; overflow-wrap: anywhere; }
.rd-es-sub { color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.rd-es-min { grid-area: min; display: flex; align-items: center; gap: 8px; }
.rd-es-min-l { font-size: 13px; color: var(--text-2); font-weight: 600; }
.rd-es-min .input { width: 78px; min-height: 40px; padding: 6px 10px; text-align: right; }
.rd-es-unit { font-size: 13px; color: var(--text-2); }
.rd-es-acts { grid-area: acts; display: inline-flex; gap: 2px; }
.rd-es-acts .btn { color: var(--text-2); }
.rd-es-rm:hover { color: var(--red) !important; }
.rd-es-empty { padding: 12px; border: 1px dashed var(--border); border-radius: var(--radius); }
.rd-es-tools { gap: 8px; }
@media (min-width: 640px) {
  .rd-es { grid-template-columns: 30px minmax(0, 1fr) auto auto; grid-template-areas: "nr main min acts"; }
  .rd-es-nr { align-self: center; }
}
.rd-mode { margin-bottom: 4px; }
.rd-mode .seg-btn { flex: 1 1 0; }
.wf-help.is-warn { background: var(--amber-soft); }
.wf-help.is-warn .icon { color: var(--amber); }
.rd-pk-dialog { width: min(520px, 100%); }
.rd-pk-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; padding: 2px; }
.rd-pk-n {
  width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--surface-2); color: var(--primary);
}
.wf-opt.is-on .rd-pk-n { background: var(--primary); color: var(--on-primary); }
.rd-pk-n:empty { background: transparent; }
.rd-rep-acts { gap: 8px; }

/* =====================================================================
   v1.16 (SPEC-UITBREIDINGEN.md) — Uitbreidingen, tijden per object, interne notities, extra opties bij objecten
   ===================================================================== */
:root { --intern: #6d3fd1; --intern-soft: #f1ebfd; --intern-border: #d9cbf7; }
@media (prefers-color-scheme: dark) {
  :root { --intern: #c3a6ff; --intern-soft: #2a2238; --intern-border: #4a3b66; }
}

/* Label "Intern" + badge "1 interne notitie" (kaarten, klusdetail, ronde) */
.chip-intern { background: var(--intern-soft); color: var(--intern); }
.chip-intern .icon { width: 12px; height: 12px; }
.tone-intern { background: var(--intern-soft); color: var(--intern); }
.tl-dot.tone-intern { background: var(--intern-soft); color: var(--intern); }
.int-badge {
  display: inline-flex; align-items: center; gap: 4px; flex: none; max-width: 100%; min-height: 26px; padding: 2px 9px;
  border-radius: 999px; border: 1px solid var(--intern-border); background: var(--intern-soft); color: var(--intern);
  font: 700 12.5px/1.3 var(--font); white-space: nowrap; cursor: pointer; text-decoration: none !important; vertical-align: middle;
}
.int-badge .icon { width: 14px; height: 14px; }
a.int-badge:hover, button.int-badge:hover { background: color-mix(in srgb, var(--intern) 16%, var(--surface)); }
.int-badge:focus-visible { outline: 3px solid color-mix(in srgb, var(--intern) 55%, transparent); outline-offset: 2px; }
.cell-title-wrap .int-badge { margin-left: 2px; }
.card-h .int-badge { margin-left: auto; }
.rd-trow-int, .rd-plan-int { margin-top: 6px; }
.rd-v-int { margin-top: 6px; }

/* Interne notitie als stap in de tijdlijn (klusdetail, ronde) */
.tl-step.tl-intern { scroll-margin-top: 96px; outline: none; }
.tl-int-h { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tl-step.tl-intern .tl-time { font-size: 15px; font-weight: 700; }
.tl-step.tl-intern .tl-note { background: var(--intern-soft); border-color: var(--intern-border); }
.tl-step.tl-intern .tl-note .icon { color: var(--intern); }
.int-ph { display: flex; gap: 6px; margin-top: 8px; }
.tl-int-rest { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.tl-int-rest .rd-h3 .chip { margin-left: 2px; }
.tl-step.tl-intern.is-flash > .tl-body, .tl-step.tl-intern:focus-visible > .tl-body {
  border-radius: 10px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--intern) 45%, transparent); background: var(--intern-soft);
}
.tl-step.tl-intern.is-flash > .tl-body { animation: int-flash 3s ease-out 1; }
@keyframes int-flash {
  0%, 60% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--intern) 55%, transparent); background: var(--intern-soft); }
  100% { box-shadow: 0 0 0 0 transparent; background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .tl-step.tl-intern.is-flash > .tl-body { animation: none; } }
.rd-int-card .tl-step { padding-bottom: 14px; }
.feed-item.is-intern .feed-sub .chip { vertical-align: 1px; }

/* Interne foto in de foto-sectie */
.ph-intmark {
  position: absolute; left: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px;
  border-radius: 999px; background: var(--intern); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2;
}
@media (prefers-color-scheme: dark) { .ph-intmark { color: #1b1426; } }
.ph-intmark .icon { width: 11px; height: 11px; }
.ph-thumb.is-intern .ph-media { border-color: var(--intern-border); }

/* Uitleg als de uitbreiding uit staat + Instellingen → Uitbreidingen */
.rd-mod-off .empty-ico { background: var(--intern-soft); color: var(--intern); }
.mod-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mod-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); min-width: 0; }
.mod-item.is-on { border-color: var(--green-border); }
.mod-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.mod-item.is-off .mod-ico { background: var(--gray-soft); color: var(--gray); }
.mod-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.mod-name { font-size: 16px; }
.mod-text { margin-top: 4px; }
.mod-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; }
.mod-meta > div { display: flex; gap: 6px; }
.mod-meta dt { color: var(--text-2); }
.mod-meta dd { margin: 0; font-weight: 700; }
.mod-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 10px; }
.mod-note .icon { flex: none; margin-top: 3px; color: var(--muted); }
.mod-ask { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--border); }
.mod-acts { margin-top: 10px; }

/* Ronde-editor: tijd per object (Geen tijd / Om / Tussen) */
.rd-es { grid-template-areas: "nr main acts" "nr min min" "time time time"; }
@media (min-width: 640px) {
  .rd-es { grid-template-areas: "nr main min acts" "nr time time time"; }
  .rd-es-nr { align-self: start; margin-top: 4px; }
}
.rd-es-time { grid-area: time; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rd-es-tm { gap: 6px; }
.rd-es-tm .seg-btn { min-height: 38px; padding: 0 12px; font-size: 13.5px; }
.rd-es-tin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rd-es-tf { display: inline-flex; align-items: center; gap: 2px; }
.rd-es-time-in { width: 74px; min-height: 40px; padding: 6px 8px; text-align: center; }
.rd-es-mg { width: 56px; min-height: 40px; padding: 6px 8px; text-align: right; }
.rd-es-tp { color: var(--text-2); width: 36px; min-width: 36px; padding: 0; }
.rd-es-pm { font-size: 16px; font-weight: 700; margin-left: 2px; }
.rd-es-dash { color: var(--text-2); font-weight: 700; }
.rd-es-warn { display: flex; align-items: flex-start; gap: 6px; color: var(--amber); margin: 0; }
.rd-es-warn .icon { flex: none; margin-top: 2px; }
.rd-es.is-timed { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.rd-es-acts .btn:disabled { opacity: .35; }
.rd-es.is-moved { animation: es-moved 1.6s ease-out 1; }
@keyframes es-moved { 0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 50%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .rd-es.is-moved { animation: none; } }

/* Live-weergave: gepland tegenover werkelijk */
.rd-tchip { font-variant-numeric: tabular-nums; }
.rd-v-plan { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.rd-v-plan.is-off { color: var(--amber); font-weight: 700; }
.rd-v-plan.is-off .icon { color: var(--amber); }
.rd-v-plan.is-ok .icon { color: var(--green); }
div.rd-v-plan { display: flex; margin-top: 4px; }
.rd-vals { margin-top: 8px; }

/* Extra opties bij een object */
.rd-opts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rd-opt {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); min-width: 0;
}
.rd-opt-grip {
  flex: none; width: 32px; height: 40px; margin: -4px -4px -4px -6px; display: grid; place-items: center; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none;
}
.rd-opt-grip:hover { background: var(--gray-soft); color: var(--text-2); }
.rd-opt > .btn-icon { flex: none; margin: -4px -4px 0 0; }
.rd-opt.is-dragging { box-shadow: var(--shadow-lg); border-color: var(--primary); position: relative; z-index: 2; opacity: .96; }
.rd-opt.is-dragging .rd-opt-grip { cursor: grabbing; }
.rd-opts.is-sorting { -webkit-user-select: none; user-select: none; }
.rd-opt-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.rd-opt-ico.is-info { background: var(--blue-soft); color: var(--blue); }
.rd-opt-label { font-weight: 700; overflow-wrap: anywhere; }
.rd-opt-label .chip { vertical-align: 1px; margin-left: 2px; }
.rd-opt-sub { overflow-wrap: anywhere; }
.rd-opt-file { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; color: var(--text-2); min-width: 0; }
.rd-opt-file .icon { flex: none; }
.rd-opt-file > .truncate { flex: 1 1 120px; min-width: 0; }
.rd-opt-open { min-height: 32px; padding: 0 8px; }
.rd-opt-bad { color: var(--amber); font-weight: 600; }
.rd-opt-prog, .rd-up-bar { height: 6px; margin-top: 6px; border-radius: 999px; background: var(--gray-soft); overflow: hidden; }
.rd-opt-prog > span, .rd-up-bar > span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.rd-up { display: flex; align-items: center; gap: 8px; }
.rd-up-bar { flex: 1 1 auto; margin-top: 0; }
.rd-opt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rd-opt-hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; }
.rd-opt-hint .icon { flex: none; margin-top: 2px; }
.rd-opt-dialog { width: min(520px, 100%); }
.rd-opt-dialog h3 { display: flex; align-items: center; gap: 8px; }
.rd-kind-h { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 4px 0 8px; }
.rd-kinds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
@media (min-width: 520px) { .rd-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rd-kind {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
.rd-kind:hover:not(:disabled):not(.is-static) { border-color: var(--primary); }
.rd-kind:disabled { opacity: .55; cursor: not-allowed; }
.rd-kind.is-static { cursor: default; background: var(--surface-2); }
.rd-kind-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.rd-kind-ico.is-info { background: var(--blue-soft); color: var(--blue); }
.rd-kind-txt { display: flex; flex-direction: column; min-width: 0; }
.rd-kind-l { font-weight: 700; }
.rd-kind-s { font-size: 13px; color: var(--text-2); line-height: 1.3; }
.rd-opt-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; }
.rd-opt-cur { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; overflow-wrap: anywhere; }
.rd-file-btn { cursor: pointer; max-width: 100%; }
.rd-file-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-file-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.rd-file-btn:focus-within { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; }
.switch-sub { display: block; font-size: 13px; font-weight: 400; line-height: 1.35; color: var(--text-2); margin-top: 1px; }
.rd-opt-dialog .switch { align-items: flex-start; }
.rd-opt-dialog .switch .track { margin-top: 1px; }

/* ====================================================================
   v1.17 (SPEC-RONDE-E.md): Help & support — Help-knop (?) met rood bolletje, Help-paneel (telefoon schermvullend,
   computer rechts), vragen (FAQ), Probleem melden, Mijn meldingen, meldingen van medewerkers; bevestigingscode
   ==================================================================== */
.help-top { position: relative; gap: 6px; }
.help-top .help-top-badge { position: static; border: 0; margin-left: 2px; }
.plan-pill.is-new { background: var(--red); color: #fff; }
.help-dot {
  display: inline-grid; place-items: center; flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) {
  .plan-pill.is-new, .help-dot { background: var(--amber); color: #1a1406; }
}

/* Paneel (App.openDialog met cls 'help-panel'; de backdrop krijgt 'help-backdrop') */
.dialog-backdrop.help-backdrop { padding: 0; align-items: stretch; justify-content: flex-end; }
.dialog.help-panel {
  width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; padding: 0; gap: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 640px) {
  .dialog.help-panel { width: min(500px, 100%); border-left: 1px solid var(--border); animation: sk-help-in .18s ease-out; }
}
@keyframes sk-help-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.help-panel .help-wrap { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.help-head {
  display: flex; align-items: center; gap: 4px; flex: none;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 2px max(16px, env(safe-area-inset-left, 0px));
}
.help-head .help-back { margin-left: -10px; }
.help-title { flex: 1 1 auto; min-width: 0; font-size: 20px; overflow-wrap: anywhere; }
.help-title:focus, .help-pagehead h1:focus { outline: none; }
.help-tabs {
  display: flex; gap: 2px; flex: none; padding: 0 max(10px, env(safe-area-inset-right, 0px)) 0 max(10px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
}
.help-tabs::-webkit-scrollbar { display: none; }
.help-tab {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 46px; padding: 0 10px; margin-bottom: -1px;
  border: 0; border-bottom: 3px solid transparent; background: none; color: var(--text-2);
  font: inherit; font-weight: 600; font-size: 14.5px; white-space: nowrap; cursor: pointer;
}
.help-tab:hover { color: var(--text); }
.help-tab.is-on { color: var(--primary); border-bottom-color: var(--primary); }
.help-panel .help-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(24px + var(--safe-bottom)) max(16px, env(safe-area-inset-left, 0px));
}
@media (max-width: 379.98px) { .help-tab { padding: 0 7px; font-size: 14px; } }
/* Als pagina (#/help) */
.help-page { max-width: 760px; margin: 0 auto; }
.help-pagehead { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 10px; }
.help-pagehead .help-back { margin: -4px 0 0 -10px; }
.help-pagehead h1 { font-size: 28px; overflow-wrap: anywhere; }
.help-page .help-tabs { padding: 0; }
.help-page .help-body { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; }
.help-loading, .help-err { padding: 6px 0; }

/* Vragen */
.help-search { position: relative; }
.help-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.help-search .input { padding-left: 42px; -webkit-appearance: none; appearance: none; }
.help-topics { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px 2px; scrollbar-width: none; }
.help-topics::-webkit-scrollbar { display: none; }
.help-topic {
  flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font: inherit; font-weight: 600; font-size: 13.5px; white-space: nowrap; cursor: pointer;
}
.help-topic:hover { border-color: var(--primary); color: var(--primary); }
.help-topic.is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.help-group + .help-group { margin-top: 14px; }
.help-group-h { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 6px 2px 8px; }
.help-qs { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.help-q + .help-q { border-top: 1px solid var(--border); }
.help-q > summary {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px 10px 14px;
  list-style: none; cursor: pointer; font-weight: 600; line-height: 1.35;
}
.help-q > summary::-webkit-details-marker, .help-techbox > summary::-webkit-details-marker { display: none; }
.help-q > summary:hover { background: var(--surface-2); }
.help-q[open] > summary { color: var(--primary); }
.help-q-t { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.help-chev { color: var(--muted); transition: transform .15s; }
details[open] > summary .help-chev { transform: rotate(180deg); }
.help-a { padding: 0 14px 14px; color: var(--text-2); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.help-a > * + * { margin-top: 8px; }
.help-a ul, .help-a ol { margin-bottom: 0; padding-left: 22px; }
.help-a li + li { margin-top: 4px; }
.help-a a, .help-msg-b a, .help-rep-b a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.help-a strong { color: var(--text); }
.help-a-topic { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.help-a .help-route {
  display: inline-flex; align-items: center; gap: 1px; padding: 1px 6px 1px 9px; border-radius: 999px; vertical-align: 1px;
  background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; line-height: 1.5;
  text-decoration: none; white-space: nowrap;
}
.help-a .help-route:hover { background: color-mix(in srgb, var(--primary) 18%, var(--primary-soft)); text-decoration: none; }
.help-count { margin: 0 2px 8px; }
.help-cta {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; margin-top: 4px; border-radius: var(--radius);
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.help-cta-h { display: flex; align-items: flex-start; gap: 10px; }
.help-cta-h > .icon { color: var(--primary); margin-top: 2px; }
.help-cta-btns { display: grid; gap: 8px; }
@media (min-width: 420px) { .help-cta-btns { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.help-cta .btn-outline { background: var(--surface); }
.help-mail { text-align: center; }
.help-mail a { font-weight: 600; }

/* Formulieren, schermafbeeldingen en technische info */
.help-kind { border: 0; padding: 0; margin: 0; min-width: 0; }
.help-kind .seg-btn { display: inline-flex; align-items: center; gap: 6px; }
.help-ta { min-height: 128px; }
.help-reply .help-ta { min-height: 88px; }
.help-ta-foot { align-items: flex-start; }
/* (na review) "Doorsturen naar Spotklok": de tekst van de medewerker als citaat (gaat alleen mee na "overnemen") */
.help-fwd-src { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.help-fwd-src-h { display: flex; align-items: center; gap: 6px; }
.help-fwd-quote {
  margin: 0; align-self: stretch; padding: 10px 12px; border-left: 3px solid var(--border-strong, var(--border));
  background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.5; color: var(--text-2);
  overflow-wrap: anywhere; word-break: break-word; max-height: 220px; overflow: auto;
}
.help-fwd-warn { margin-top: 8px; }
/* (na review) Meldingen / Vandaag: nieuwe meldingen van medewerkers (staan bij Help, niet in het overzicht) */
.wr-note { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.wr-note > .icon { flex: none; }
.wr-note .wr-note-t { flex: 1 1 auto; min-width: 0; }
.wr-note .btn { flex: none; }
.help-shots { display: flex; flex-wrap: wrap; gap: 10px; }
.help-shot, .help-shot-add { position: relative; flex: none; width: 88px; height: 88px; border-radius: 12px; }
.help-shot { overflow: hidden; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface-2); }
.help-shot img { width: 100%; height: 100%; object-fit: cover; }
.help-shot.is-busy .spinner { color: var(--primary); }
.help-shot-x {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(5, 10, 25, .66); color: #fff; cursor: pointer;
}
.help-shot-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1.5px dashed var(--border); background: var(--surface); color: var(--primary); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
}
.help-shot-add:hover { border-color: var(--primary); background: var(--primary-soft); }
.help-techbox { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.help-techbox > summary {
  display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; list-style: none; cursor: pointer;
  font-weight: 600; font-size: 14.5px;
}
.help-techbox > summary > span { flex: 1 1 auto; min-width: 0; }
.help-techbox > summary > .icon:first-child { color: var(--blue); }
.help-techbox > :not(summary) { padding: 0 12px 12px; }
.help-tech { margin: 0; display: grid; gap: 6px; }
.help-tech > div { display: grid; grid-template-columns: minmax(92px, 32%) minmax(0, 1fr); gap: 10px; font-size: 14px; }
.help-tech dt { color: var(--text-2); font-weight: 600; }
.help-tech dd { margin: 0; overflow-wrap: anywhere; }

/* Mijn meldingen */
.help-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.help-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.help-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 10px 12px 14px;
  border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.help-row + .help-row { border-top: 1px solid var(--border); }
.help-row:hover { background: var(--surface-2); }
.help-row.is-unread { background: color-mix(in srgb, var(--red-soft) 55%, var(--surface)); }
.help-row-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.help-row-main { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; min-width: 0; }
.help-row-t { font-weight: 700; overflow-wrap: anywhere; }
.help-row-m { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.help-row-go { flex: none; color: var(--muted); }
.help-new { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--red); }
.help-tk-head { display: flex; flex-direction: column; gap: 8px; }
.help-tk-t { font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.help-tk-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.help-msgs { display: flex; flex-direction: column; gap: 10px; }
.help-msg { max-width: 92%; min-width: 0; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.help-msg.is-mine { align-self: flex-end; background: var(--primary-soft); border-color: transparent; border-bottom-right-radius: 4px; }
.help-msg.is-them { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.help-msg-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 13px; margin-bottom: 4px; }
.help-msg-b { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
.help-wait, .help-solved { display: flex; align-items: flex-start; gap: 8px; }
.help-wait .icon, .help-solved .icon { flex: none; margin-top: 2px; }
.help-solved .icon { color: var(--green); }
.help-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.help-att-img { display: block; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.help-att-img img { width: 100%; height: 100%; object-fit: cover; }
.help-att-file {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 14px;
}

/* Meldingen van medewerkers */
.help-reps { display: flex; flex-direction: column; gap: 10px; }
.help-rep {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.help-rep.is-unread { border-color: color-mix(in srgb, var(--amber) 45%, var(--border)); box-shadow: inset 3px 0 0 var(--amber); }
.help-rep-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.help-rep-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.help-dot.help-dot-txt { height: 18px; padding: 0 7px; font-size: 11.5px; }
.help-rep-b { line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
.help-rep-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.help-rep-a .help-rep-del { margin-left: auto; color: var(--muted); }
.help-rep-a .help-rep-del:hover { color: var(--red); }
.help-rep-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.help-rep-chips:empty { display: none; }
.help-rep.is-handled { background: var(--surface-2); }
.help-rep.is-handled .help-rep-b { color: var(--text-2); }

/* #/account: kaart Help & meldingen */
.acc-help-actions { flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 12px; }

/* Aanmelden: bevestigingscode (6 tekens, één veld — plakken werkt) */
.code-input {
  min-height: 60px; padding-left: calc(14px + .32em); text-align: center; text-transform: uppercase;
  font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: .32em;
}
.code-input::placeholder { color: var(--border); }
.code-resend .btn:disabled { opacity: .6; }

/* v1.17 (SPEC-RONDE-E.md §5): de prikklok is een uitbreiding — label in de kop, uitleg als hij uit staat, en het
   overzicht "Uitbreidingen" op #/abonnement (los van de vaste Pro-functies) */
.kio-card > h2 { flex-wrap: wrap; }
.acc-card > h2 .kio-mod-chip { background: var(--intern-soft); color: var(--intern); font-weight: 700; }
.acc-card > h2 .kio-mod-chip .icon { color: inherit; width: 13px; height: 13px; }
.kio-card.is-mod-off { background: var(--surface-2); }
.kio-off-text { margin-bottom: 12px; overflow-wrap: anywhere; }
.mod-sub { margin-top: 6px; }
.plan-mods { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.plan-mods-h { display: flex; align-items: center; gap: 9px; font-size: 17px; }
.plan-mods-h .icon { color: var(--intern); }
.plan-mods-list { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; }
.plan-mods-list li { display: flex; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--border); min-width: 0; }
.plan-mods-list li:first-child { border-top: 0; }
.plan-mods-list li > .icon { flex: none; color: var(--text-2); }

/* =====================================================================
   v1.17.3 (SPEC-RONDE-G.md §B): meldingen over het account (eigen vak tussen de kopbalk en het scherm, in de flow —
   nooit over iets heen): bedenktijd na "Account verwijderen" (alleen-lezen), noodknop van Spotklok, inactief gratis
   account en mededelingen van Spotklok (onderhoud/storing/info, per mededeling weg te klikken).
   Daarnaast: Instellingen → "Uitleg voor je medewerkers" (+ versie van de voorwaarden) en de Help-link.
   ===================================================================== */
.acct-slot {
  display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
.acct-slot[hidden] { display: none; }
@media (min-width: 960px) {
  .shell { grid-template-rows: auto auto 1fr; }
  .sidebar { grid-row: 1 / span 3; }
  .acct-slot { grid-column: 2; grid-row: 2; padding: 22px 36px 0; }
  .main { grid-row: 3; }
}

/* groot (Vandaag, of uitgeklapt) */
.acct-card {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--radius-lg);
  border: 1px solid var(--red-border); background: var(--red-soft); color: var(--text);
}
.acct-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.acct-head > .grow { min-width: 0; }
.acct-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--red); }
.acct-title { font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.acct-left { color: var(--red); white-space: nowrap; }
.acct-sub { margin-top: 4px; font-size: 14.5px; color: var(--text-2); overflow-wrap: anywhere; }
.acct-sub strong { color: var(--text); }
.acct-toggle { width: 40px; height: 40px; margin: -4px -6px 0 0; color: var(--text-2); }
.acct-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.acct-facts li { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.acct-facts li > span { min-width: 0; overflow-wrap: anywhere; }
.acct-facts .icon { flex: none; margin-top: 2px; color: var(--text-2); }
.acct-sec { padding-top: 10px; border-top: 1px solid var(--red-border); }
.acct-sec-h { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin-bottom: 8px; }
.acct-sec a { font-weight: 600; }
.acct-exp { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-exp .btn-outline { background: var(--surface); }
.acct-exp .btn-ghost { color: var(--text); }
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-actions .btn-danger-outline { background: var(--surface); }
.acct-imp { display: flex; align-items: center; gap: 6px; color: var(--text-2); }
@media (max-width: 639.98px) {
  .acct-actions .btn, .acct-exp .btn-outline { width: 100%; }
  .acct-exp .btn-ghost { flex: 1 1 0; min-width: 0; padding: 0 8px; }
}
/* noodknop: zelfde opbouw, oranje accent */
.acct-emergency { border-color: color-mix(in srgb, var(--amber) 40%, transparent); background: var(--amber-soft); }
.acct-emergency .acct-ico { color: var(--amber); }
.acct-emergency .acct-sec { border-top-color: color-mix(in srgb, var(--amber) 35%, transparent); }

/* smal (andere schermen): één regel + "Meer" */
.acct-bar {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 6px 6px 6px 12px; border-radius: var(--radius); border: 1px solid var(--red-border);
  background: var(--red-soft); font-size: 14px; line-height: 1.35;
}
.acct-bar > .icon { flex: none; color: var(--red); }
.acct-bar-txt { min-width: 0; overflow-wrap: anywhere; }
.acct-bar[data-acct="emergency"] { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.acct-bar[data-acct="emergency"] > .icon { color: var(--amber); }
.acct-more { flex: none; min-height: 36px; color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.acct-note { align-items: flex-start; }
.acct-note a { font-weight: 600; }
.acct-note-act { margin-top: 8px; }
.acct-note-act .btn-outline { background: var(--surface); }

/* mededelingen van Spotklok */
.ann-list { display: flex; flex-direction: column; gap: 8px; }
.ann {
  display: flex; align-items: flex-start; gap: 10px; min-width: 0;
  padding: 10px 8px 10px 12px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); font-size: 14.5px; line-height: 1.45;
}
.ann-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.ann-body { min-width: 0; }
.ann-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ann-kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.ann-when { font-size: 13px; font-weight: 700; color: var(--text); }
.ann-title { font-weight: 700; margin-top: 1px; overflow-wrap: anywhere; }
.ann-text { margin-top: 1px; white-space: pre-line; overflow-wrap: anywhere; word-break: break-word; }
.ann-x { margin: -6px -2px -6px 0; }
/* (na review) dezelfde kleuren als het voorbeeld in /beheer en de werknemerspagina's: onderhoud oranje, storing rood,
   info blauw */
.ann.is-onderhoud { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.ann.is-onderhoud .ann-ico { background: var(--surface); color: var(--amber); }
.ann.is-storing { background: var(--red-soft); border-color: var(--red-border, color-mix(in srgb, var(--red) 35%, transparent)); }
.ann.is-storing .ann-ico { background: var(--surface); color: var(--red); }
.ann.is-info { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 30%, transparent); }
.ann.is-info .ann-ico { background: var(--surface); color: var(--blue); }

/* alleen-lezen (bedenktijd): knoppen om iets nieuws te maken grijs; een tik geeft uitleg (app.js) */
body.is-ro a[href="#/nieuw"], body.is-ro a[href^="#/nieuw?"], body.is-ro a[href="#/ronde/nieuw"], body.is-ro a[href="#/object/nieuw"],
body.is-ro [data-act="emp-add"], body.is-ro [data-act="emp-new-job"], body.is-ro [data-act="self-start"],
body.is-ro [data-act="self-start-job"], body.is-ro [data-act="trip-add"], body.is-ro [data-act="trip-depart"],
body.is-ro [data-act="trip-start-place"], body.is-ro [data-act="new-link"], body.is-ro [data-act="share"],
body.is-ro [data-act="rd-share"], body.is-ro [data-act="hc-manual"], body.is-ro [data-act="hc-correct"],
body.is-ro [data-act="job-complete"], body.is-ro [data-act="complete"], body.is-ro [data-act="job-reopen"],
body.is-ro [data-act="wk-approve"], body.is-ro [data-act="wk-revoke"], body.is-ro [data-act="emp-pin-reset"],
body.is-ro [data-act="emp-mine-unbind"], body.is-ro [data-ro-off] {
  opacity: .45; filter: grayscale(.6); cursor: not-allowed;
}

/* #/account: bedenktijd loopt */
.acc-grace { background: var(--red-soft); }
.acc-grace > h2 .icon { color: var(--red); }
.acc-grace .acc-intro { margin-bottom: 8px; }
.acc-grace-actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.acc-grace-actions .btn-danger-outline { background: var(--surface); }

/* Instellingen → Uitleg voor je medewerkers + Voorwaarden en privacy (met versie) */
.staff-actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.legal-list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; }
.legal-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--border); }
.legal-list li:first-child { border-top: 0; }
.legal-list li > .icon { flex: none; color: var(--text-2); }
.legal-list a { font-weight: 600; }
.legal-v { margin-left: auto; }
@media (max-width: 479.98px) { .legal-v { margin-left: 26px; flex-basis: 100%; } }

/* Help: uitleg voor medewerkers en de voorwaarden */
.help-legal { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.help-staff {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none !important;
}
.help-staff:hover { border-color: var(--primary); }
.help-staff > span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.help-staff > .icon:first-child { color: var(--primary); flex: none; }
.help-staff > .icon:last-child { color: var(--muted); flex: none; }
.help-legal-links { text-align: center; line-height: 1.6; }
.help-legal-links a { font-weight: 600; }

/* =====================================================================
   v1.19 (SPEC-RONDE-H.md): Promoties — actiecode op de aanmeldpagina (samenvatting van de actie, "Heb je een
   actiecode?", melding bij een ongeldige code) en op #/abonnement de kaart "Acties en voordelen" (lopende voordelen
   met einddatum, "Actiecode invoeren") + de prijs na korting.
   ===================================================================== */
.promo-code {
  display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--mono); font-size: .92em; font-weight: 700; letter-spacing: .04em; color: var(--text);
  overflow-wrap: anywhere; word-break: break-all;
}
.promo-linkbtn {
  border: 0; background: none; padding: 0 2px; min-height: 32px; color: var(--primary); font-weight: 600; font-size: inherit;
  cursor: pointer;
}
.promo-linkbtn:hover { text-decoration: underline; }
.promo-ask {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; padding: 0 2px;
  border: 0; background: none; color: var(--primary); font-weight: 600; font-size: 15px; cursor: pointer;
}
.promo-ask:hover span { text-decoration: underline; }
.promo-slot:empty { display: none; }
.promo-entry-box { display: flex; flex-direction: column; gap: 6px; }
.promo-entry { display: flex; gap: 8px; align-items: stretch; }
.promo-entry .input { flex: 1 1 auto; min-width: 0; }
.promo-entry .btn { flex: none; }
.promo-input { text-transform: uppercase; font-family: var(--mono); font-weight: 700; letter-spacing: .06em; }
.promo-input::placeholder { text-transform: none; font-family: var(--font); font-weight: 400; letter-spacing: 0; }
.promo-checking { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--text-2); font-size: 14px; }
.promo-checking .spinner { color: var(--primary); }
.promo-card {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 14px;
  border-radius: var(--radius); border: 1px solid var(--green-border); background: var(--green-soft);
}
.promo-ico {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--green); border: 1px solid var(--green-border);
}
.promo-kicker { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--text-2); }
.promo-kicker > .icon { color: var(--green); }
.promo-title { margin-top: 2px; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.promo-card .promo-title, .promo-card .promo-kicker { padding-right: 28px; }
.promo-card.is-preview .promo-title, .promo-card.is-preview .promo-kicker { padding-right: 0; }
.promo-text { margin-top: 6px; font-size: 14.5px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.promo-when { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.promo-effect { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.promo-effect li { display: flex; gap: 6px; align-items: flex-start; }
.promo-effect .icon { flex: none; margin-top: 3px; color: var(--green); }
.promo-terms { margin-top: 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.promo-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 10px; color: var(--text-2); }
.promo-bad .promo-code { background: var(--surface); }
.promo-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.promo-card .field-error { margin-top: 8px; }
.promo-note .icon { flex: none; }
.auth-card .promo-card, .auth-card .promo-bad { text-align: left; }
/* (na review) code voor bestaande klanten op de aanmeldpagina */
.promo-existing .icon:first-child { color: var(--blue); }
.promo-existing-sum { font-weight: 700; color: var(--text); overflow-wrap: anywhere; }

/* #/abonnement: Acties en voordelen */
.promo-acc { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 80px; }
.promo-acc:focus { outline: none; }
.promo-acc-h { display: flex; align-items: center; gap: 9px; font-size: 19px; }
.promo-acc-h .icon { color: var(--green); }
.ben-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ben { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); min-width: 0; }
.ben:first-child { border-top: 0; padding-top: 2px; }
.ben-ico {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green);
}
.ben.is-ending .ben-ico { background: var(--amber-soft); color: var(--amber); }
.ben-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ben-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.ben-name { font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.ben-top .chip { flex: none; }
.ben-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; color: var(--text-2); }
.ben-note .icon { flex: none; margin-top: 2px; }
.ben-note.is-ending { color: var(--text); }
.ben-note.is-ending .icon { color: var(--amber); }
.ben-ended { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.ben-ended-h { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.ben-ended-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--text-2); }
.ben-ended-list li { display: flex; gap: 6px; align-items: flex-start; }
.ben-ended-list .icon { flex: none; margin-top: 3px; }
.promo-redeem { display: flex; flex-direction: column; gap: 8px; }
.promo-redeem > .btn { align-self: flex-start; }
.promo-blocked { display: flex; gap: 8px; align-items: flex-start; }
.promo-blocked .icon { flex: none; margin-top: 2px; }
.bill-was { color: var(--text-2); font-weight: 600; text-decoration-thickness: 2px; white-space: nowrap; }
.bill-promo { display: flex; gap: 6px; align-items: flex-start; color: var(--text); }
.bill-promo .icon { flex: none; margin-top: 2px; color: var(--green); }
.bill-promo a { font-weight: 600; white-space: nowrap; }
.acc-bens { display: flex; gap: 6px; align-items: flex-start; }
.acc-plan-acts { flex-wrap: wrap; gap: 8px; }
.acc-bens .icon { flex: none; margin-top: 2px; color: var(--green); }
.ben-banner .grow a { white-space: nowrap; }
@media (max-width: 420px) {
  .promo-card { padding: 12px; }
  .promo-ico { display: none; }
}
@media (max-width: 380px) {
  .promo-entry { flex-wrap: wrap; }
  .promo-entry .btn { flex: 1 1 100%; }
}

/* ---------- v1.19.2 deel 2 (SPEC-PRIJZEN-2.md §6/§7): Basic max. 3 actieve werkers + proef duidelijk ---------- */
/* "Basic: 2/3 actieve werkers deze maand" — Vandaag (kaart) en Abonnement (in "Je pakket") */
.basic-use { display: flex; flex-direction: column; gap: 6px; }
.basic-use.card { margin-bottom: 14px; padding: 12px 14px; }
.cur-plan .basic-use { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.basic-use .usage-top { align-items: center; }
.basic-use-t { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.basic-use-t .icon { flex: none; color: var(--primary); }
.basic-use.is-full .basic-use-t .icon { color: var(--amber); }
.basic-use p a { white-space: nowrap; }
.basic-use p { margin: 0; line-height: 1.4; }
/* "Sam kon niet melden" (Vandaag) en de knoppen in de proefmelding */
.refused-banner { margin-bottom: 14px; }
.trial-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.trial-acts [data-pro-act] { display: inline-flex; }
.trial-acts .icon { vertical-align: -3px; }
.trial-banner.is-soon { align-items: flex-start; }
.trial-banner .trial-acts a { white-space: nowrap; }
/* Abonnement: de laatste 3 dagen van de proef */
.trial-soon {
  display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius);
  background: var(--amber-soft); border: 1px solid var(--amber-border); font-size: 14px; line-height: 1.4;
}
.trial-soon > .icon { flex: none; margin-top: 2px; color: var(--amber); }
/* melding 'basic_limit' in de meldingen (knop naar Abonnement) */
.feed-item.is-refused .feed-acts { margin-top: 8px; }
.feed .feed-item.is-refused .feed-acts .btn { min-height: 36px; }
/* aanmelden: de proef en daarna (SPEC-PRIJZEN-2.md §7) */
.reg-trial { display: flex; gap: 8px; align-items: flex-start; margin: -6px 0 0; padding: 10px 12px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); line-height: 1.45; }
.reg-trial .icon { flex: none; margin-top: 2px; color: var(--primary); }
