/* Praktijksoftware – huisstijl via CSS-variabelen (core/theme.py). Geen externe fonts of scripts (AVG). */
/* Zelf gehoste lettertypes (SIL Open Font License, zie static/fonts/OFL-*.txt); alleen geladen in stijl 'elegant'. */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-500-italic.9b8a16c9964e.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("../fonts/cormorant-garamond-600.c47ff12887a3.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Parisienne'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/parisienne-400.b1cae3d43a21.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Latin Extended (Polish and other Central European letters: ą, ę, ł, ś, ż …), loaded only when such a letter appears. */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url("../fonts/cormorant-garamond-500-italic-latin-ext.9ee79c50a32b.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("../fonts/cormorant-garamond-600-latin-ext.d18ea9df8e38.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Parisienne'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/parisienne-400-latin-ext.bdc8eff48d09.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --teal: #0b7383;
  --teal-dark: #085a67;
  --teal-brand: #34b5ca;
  --teal-soft: #e6f5f8;
  --lilac: #e09ff1;
  --lilac-dark: #8e44a8;
  --lilac-soft: #f8eefb;
  --ink: #17363b;
  --muted: #56696e;
  --bg: #f6fafb;
  --surface: #ffffff;
  --line: #d6e5e8;
  --line-strong: #b9d0d5;
  --sidebar: #10343a;
  --ok: #1d7a4c;
  --ok-soft: #e4f4ec;
  --warn: #9a5a00;
  --warn-soft: #fff3df;
  --danger: #b0261c;
  --danger-soft: #fde9e7;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 16px rgba(0, 0, 0, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; }
body.public { font-size: 18px; }
body.staff { font-size: 15px; }
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: 2rem; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* hoofdkolom + zijkolom (formulier, samenvatting); op een telefoon onder elkaar */
.grid-side { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: start; }
.grid-side.wide { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
@media (max-width: 760px) { .grid-side, .grid-side.wide { grid-template-columns: minmax(0, 1fr); } }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Knoppen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .7em 1.25em; border-radius: 999px; border: 2px solid var(--teal);
  background: var(--teal); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--teal); }
.btn.secondary:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn.lilac { background: var(--lilac-dark); border-color: var(--lilac-dark); }
.btn.lilac:hover { filter: brightness(.88); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger.secondary { background: transparent; color: var(--danger); }
.btn.small { padding: .35em .85em; font-size: .9em; }
.btn.big { padding: .9em 1.6em; font-size: 1.1em; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; cursor: pointer;
  text-decoration: underline; }
.link-btn.danger { color: var(--danger); }

/* Kaarten en meldingen */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card.soft { background: var(--teal-soft); border-color: transparent; box-shadow: none; }
.card.lilac { background: var(--lilac-soft); border-color: transparent; box-shadow: none; }
.card h2, .card h3 { margin-top: 0; }
.messages { list-style: none; padding: 0; margin: 1rem 0; }
.alert { padding: .8em 1em; border-radius: var(--radius-sm); margin: 0 0 .6rem; border: 1px solid transparent; }
.alert.success { background: var(--ok-soft); border-color: #b9e0cb; color: #14532f; }
.alert.error { background: var(--danger-soft); border-color: #f2c1bb; color: #7b1912; }
.alert.warning { background: var(--warn-soft); border-color: #f4d7a6; color: #6b3f00; }
.alert.info { background: var(--teal-soft); border-color: var(--line-strong); color: var(--teal-dark); }
.badge { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .8em; font-weight: 600;
  background: var(--teal-soft); color: var(--teal-dark); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.grey { background: #eef1f2; color: var(--muted); }
.badge.lilac { background: var(--lilac-soft); color: var(--lilac-dark); }

/* Formulieren */
form p { margin: 0 0 1rem; }
label { display: block; font-weight: 600; margin-bottom: .3em; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=tel], input[type=search], input[type=url], input:not([type]), select, textarea {
  width: 100%; padding: .6em .75em; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
input[type=checkbox], input[type=radio] { width: 1.15em; height: 1.15em; accent-color: var(--teal); vertical-align: middle; }
.helptext, .help { display: block; color: var(--muted); font-size: .88em; margin-top: .25em; font-weight: normal; }
.errorlist { list-style: none; margin: .3em 0 0; padding: 0; color: var(--danger); font-size: .92em; }
.errorlist.nonfield { background: var(--danger-soft); padding: .7em 1em; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
.field.check label { display: flex; gap: .6em; align-items: flex-start; font-weight: normal; }
.field.check input { margin-top: .25em; }
.fields-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-top: 1.25rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1.25rem; background: #fff; }
legend { font-weight: 700; padding: 0 .4em; color: var(--teal-dark); }
.code-input { font-size: 1.6em !important; letter-spacing: .3em; text-align: center; max-width: 12ch; }
.hp { position: absolute; left: -9999px; }
/* Django's standaard formulieropmaak */
form > div:not([class]) { margin-bottom: 1rem; }
form > div:not([class]) > label:has(+ input[type=checkbox]) { display: inline; margin-right: .4em; }
ul[id$="-list"], div[id^="id_"] > div { list-style: none; padding: 0; }

/* Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) { .hide-narrow { display: none; } }
details.add-line { margin-top: 1rem; }
details.add-line > summary { list-style: none; display: inline-flex; margin-bottom: 1rem; }
details.add-line > summary::-webkit-details-marker { display: none; }
details.add-line[open] > summary { display: none; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: .55em .7em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .82em; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 700; background: var(--bg); }
tbody tr:hover { background: var(--bg); }
tr.clickable { cursor: pointer; }
td.num, th.num { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); }
table.plain th { background: none; text-transform: none; font-size: 1em; letter-spacing: 0; color: var(--muted); width: 35%; }
.total-row td { font-weight: 700; background: var(--teal-soft); }

/* ---------- Publieke website ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.logo img { display: block; height: 66px; width: auto; }
.wordmark { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; color: var(--teal); line-height: 1.1; max-width: 18ch; }
.logo { text-decoration: none; }
.nav { display: flex; align-items: center; gap: .25rem 1.1rem; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: .3em 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--teal); border-bottom-color: var(--teal-brand); }
.nav .btn { color: #fff; border-bottom: 2px solid var(--teal); }
.nav .cart-link { position: relative; }
.cart-count { background: var(--lilac-dark); color: #fff; border-radius: 999px; font-size: .7em; padding: .05em .5em; margin-left: .2em; vertical-align: top; }
.menu-toggle { display: none; background: none; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); padding: .4em .7em; font: inherit; font-weight: 600; color: var(--ink); }

.hero { background: linear-gradient(135deg, var(--teal-soft) 0%, #fff 55%, var(--lilac-soft) 100%); padding: 3.5rem 0 3rem; }
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: .4em; }
.hero .lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.5rem; }
.hero.no-image .container { grid-template-columns: 1fr; max-width: 820px; }
.hero img { border-radius: 24px; box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.section { padding: 3rem 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title p { color: var(--muted); max-width: 640px; margin: 0 auto; }

.treatment-card { display: flex; flex-direction: column; }
.treatment-card .meta { display: flex; gap: .75rem; align-items: baseline; margin-bottom: .75rem; flex-wrap: wrap; }
.treatment-card .price { font-size: 1.5rem; font-weight: 700; color: var(--teal-dark); }
.treatment-card ul { padding-left: 1.2em; margin: 0 0 1rem; }
.treatment-card .btn { margin-top: auto; align-self: flex-start; }
.prose ul { padding-left: 1.2em; }
.prose h2 { margin-top: 1.5em; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: .45em 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.info-list li:last-child { border-bottom: 0; }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .82); padding: 2.5rem 0 1.5rem; margin-top: 3rem; font-size: .95em; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 1.5rem; padding-top: 1rem; font-size: .85em; color: rgba(255, 255, 255, .6); }
body:has(.chat-widget:not([hidden])) .site-footer .bottom { padding-bottom: 76px; }  /* room for the chat button */
main.page { padding: 2rem 0 1rem; min-height: 55vh; }

/* Boeken */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.1rem; margin-bottom: 2rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem;
  border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; }
.step.disabled { opacity: .45; pointer-events: none; }
.choice-list { display: grid; gap: .75rem; }
.choice { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: var(--radius);
  background: #fff; cursor: pointer; font-weight: normal; }
.choice:hover { border-color: var(--teal-brand); }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice input { margin-top: .35em; flex: none; }
.choice .title { font-weight: 700; display: block; }
.choice .sub { color: var(--muted); font-size: .92em; }
.choice .price { margin-left: auto; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.calendar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; max-width: 460px; }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.calendar-head strong { text-transform: capitalize; font-size: 1.1em; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.calendar-grid .dow { font-size: .75em; font-weight: 700; color: var(--muted); padding: .3em 0; text-transform: uppercase; }
.calendar-grid button { aspect-ratio: 1; border: 0; border-radius: 10px; font: inherit; font-weight: 600; background: transparent; color: var(--line-strong); cursor: default; }
.calendar-grid button.available { background: var(--teal-soft); color: var(--teal-dark); cursor: pointer; }
.calendar-grid button.available:hover { background: var(--line); }
.calendar-grid button.selected { background: var(--teal); color: #fff; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .5rem; margin-top: .75rem; }
.times button { padding: .7em 0; border: 2px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.times button:hover { border-color: var(--teal-brand); }
.times button.selected { background: var(--teal); border-color: var(--teal); color: #fff; }
.summary-box { position: sticky; top: 96px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1.5rem; align-items: start; }

/* Webshop */
.product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.product-card .img { aspect-ratio: 4 / 3; background: var(--lilac-soft); display: grid; place-items: center; color: var(--lilac-dark); font-size: 2.5rem; }
.product-card .img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card .price { font-weight: 700; font-size: 1.2em; color: var(--teal-dark); }
.product-card form { margin-top: auto; }
.qty { width: 5em !important; text-align: center; }

/* Portaal */
.portal-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.portal-nav a { padding: .45em 1em; border-radius: 999px; text-decoration: none; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .95em; }
.portal-nav a.active, .portal-nav a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.auth-box { max-width: 460px; margin: 1rem auto; }
.qr { background: #fff; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); display: inline-block; }
.qr svg { display: block; width: 240px; height: 240px; max-width: 100%; }
.codes { font-family: ui-monospace, Consolas, monospace; font-size: 1.15em; display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem 1.5rem; padding: 1rem; background: var(--teal-soft); border-radius: var(--radius-sm); }

/* ---------- Backoffice ---------- */
.staff-layout { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--sidebar) 232px, var(--bg) 232px); }
.sidebar { background: var(--sidebar); color: rgba(255, 255, 255, .8); padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem 1rem; color: #fff; text-decoration: none; font-weight: 700; }
.sidebar .brand img { width: 34px; height: 34px; background: #fff; border-radius: 8px; padding: 2px; }
.sidebar nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5em .75em; border-radius: 8px; color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 500; }
.sidebar nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar nav a.active { background: var(--teal); color: #fff; }
.sidebar .group { font-size: .72em; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .5); margin: 1rem .75rem .3rem; }
.sidebar .count { background: var(--lilac-dark); color: #fff; border-radius: 999px; font-size: .75em; padding: 0 .5em; }
.staff-main { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar form { margin: 0; }
.topbar .search input { width: 260px; padding: .45em .7em; }
.content { padding: 1.5rem; max-width: 1280px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head .sub { color: var(--muted); margin-top: .2rem; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat .label { color: var(--muted); font-size: .85em; font-weight: 600; }
.stat .value { font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat a { text-decoration: none; }
.meter { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: .5rem 0 .3rem; }
.meter span { display: block; height: 100%; background: var(--teal-brand); }
.meter.warn span { background: #e5a23b; }
.meter.over span { background: var(--danger); }
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1.25rem; flex-wrap: wrap; }
.tabs a { padding: .55em 1em; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; }
.filters .field { margin: 0; }
.pill-links { display: flex; gap: .35rem; flex-wrap: wrap; }
.pill-links a { padding: .3em .8em; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9em; }
.pill-links a.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; }
/* Aandacht voor een veld met een fout of een vergeten vinkje (static/js/forms.js): twee rustige roze golfjes */
@keyframes attention-pulse {
  0%, 100% { background-color: rgba(222, 78, 115, 0); box-shadow: 0 0 0 .6rem rgba(222, 78, 115, 0); }
  40% { background-color: rgba(222, 78, 115, .14); box-shadow: 0 0 0 .6rem rgba(222, 78, 115, .14); }
}
.field.attention { border-radius: 6px; animation: attention-pulse 1.6s ease-in-out 2; }
.field.attention input[type="checkbox"] { outline: 2px solid var(--danger); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .field.attention { animation: none; background-color: rgba(222, 78, 115, .12); box-shadow: 0 0 0 .6rem rgba(222, 78, 115, .12); }
}

/* WhatsApp-gesprek */
.wa-chat { display: flex; flex-direction: column; gap: .45rem; max-height: 62vh; overflow-y: auto; padding: .75rem;
  background: #efeae2; border-radius: var(--radius-sm); }
.wa-msg { max-width: 78%; padding: .45rem .7rem .3rem; border-radius: 10px; background: #fff; align-self: flex-start;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08); word-break: break-word; line-height: 1.4; }
.wa-msg.uit { align-self: flex-end; background: #d9fdd3; }
.wa-msg .meta { display: block; font-size: .74em; color: var(--muted); margin-top: .15rem; text-align: right; white-space: normal; }
.wa-msg img { display: block; max-width: min(260px, 100%); border-radius: 6px; margin-bottom: .3rem; }
.wa-day { align-self: center; font-size: .76em; color: var(--muted); background: #fff; padding: .1rem .65rem; border-radius: 999px; }
.wa-read { color: #34b7f1; }
.wa-failed { color: var(--danger); }

/* Adres zoeken (static/js/address.js) */
.fields-2 > .address-search { grid-column: 1 / -1; }
.address-box { position: relative; }
.address-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .3rem 0;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12); max-height: 19rem; overflow-y: auto; }
.address-results li { display: flex; gap: .55rem; align-items: center; padding: .45rem .8rem; cursor: pointer; line-height: 1.3; }
.address-results li[aria-selected="true"] { background: var(--teal-soft); }
.address-results svg { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.compact-choices .choice-list { gap: .4rem; }
.compact-choices .choice { padding: .5rem .75rem; border-width: 1px; }
.dns-table td.val { word-break: break-all; }
.dns-table code { font-size: .85em; }
.dns-zone { font-family: ui-monospace, Consolas, monospace; font-size: .78em; background: var(--teal-soft); padding: .75rem;
  border-radius: var(--radius-sm); overflow-x: auto; white-space: pre; margin: .5rem 0 0; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.15em; letter-spacing: .04em;
  background: #fff; border: 1px dashed var(--line-strong); padding: .35em .6em; border-radius: var(--radius-sm); user-select: all; word-break: break-all; }
.attention { background: var(--warn-soft); border: 1px solid #f1d39d; color: #6b3f00; padding: .6em .9em; border-radius: var(--radius-sm); }
.medical { background: var(--lilac-soft); border: 1px solid var(--lilac); padding: .6em .9em; border-radius: var(--radius-sm); white-space: pre-wrap; }
.note { border-left: 3px solid var(--teal-brand); padding: .4em 0 .4em .9em; margin-bottom: 1rem; }
.note .meta { font-size: .85em; color: var(--muted); }
.note .text { white-space: pre-wrap; }
.formset-table td { padding: .3em; }
.formset-table input, .formset-table select { padding: .4em .5em; }
.formset-table .errorlist { font-size: .8em; }
.inline-form { display: inline; }
.empty { color: var(--muted); padding: 1.5rem; text-align: center; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
#calendar { background: #fff; padding: 1rem; border-radius: var(--radius); border: 1px solid var(--line); }
.fc .fc-button-primary { background: var(--teal); border-color: var(--teal); }
.fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.fc .fc-event.st-voltooid { opacity: .7; }
.fc .fc-event { cursor: pointer; }
.fc .fc-timegrid-event .fc-event-main { font-size: .82em; line-height: 1.25; }
.kpi-list { list-style: none; padding: 0; margin: 0; }
.kpi-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .5em 0; border-bottom: 1px solid var(--line); }
.kpi-list li:last-child { border-bottom: 0; }
.mail-table tr.unread td { font-weight: 700; }
.mail-table tr.unread td small { font-weight: normal; }
.nav-count { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .3em; border-radius: 999px; background: var(--teal); color: #fff; font-size: .75em; text-align: center; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .staff-layout { grid-template-columns: 1fr; background: var(--bg); }
  .sidebar { position: static; height: auto; display: none; }
  .sidebar.open { display: block; }
  .topbar .search input { width: 150px; }
  .menu-toggle { display: inline-block; }
  .site-header .nav { display: none; width: 100%; padding-bottom: 1rem; flex-direction: column; align-items: flex-start; }
  .site-header .nav.open { display: flex; }
  .site-header .container { flex-wrap: wrap; }
  .summary-box { position: static; }
  .booking-layout { grid-template-columns: 1fr; }
}
@media print {
  .sidebar, .topbar, .site-header, .site-footer, .actions, .no-print { display: none !important; }
  .staff-layout { display: block; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* ---------- Stijl 'elegant' (sierlijke koppen, handschrift-motto, vinkjes) ---------- */
.style-elegant { --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; --script: "Parisienne", "Segoe Script", cursive; }
.style-elegant h1, .style-elegant h2, .style-elegant h3, .style-elegant .wordmark { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }
.style-elegant h1 { font-size: 2.9rem; }
.style-elegant h2 { font-size: 2rem; }
.style-elegant h3 { font-size: 1.5rem; }
.style-elegant .hero h1 { text-transform: uppercase; letter-spacing: .06em; color: var(--teal); font-size: 2.6rem; line-height: 1.12; text-wrap: balance; }
.site-footer .keywords { letter-spacing: .14em; font-size: .78rem; }
.style-elegant .hero .lead { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.55rem; line-height: 1.4; color: var(--ink); }
.style-elegant .hero { background: linear-gradient(135deg, var(--teal-soft) 0%, var(--bg) 50%, var(--lilac-soft) 100%); }
.style-elegant .hero img { aspect-ratio: 4 / 5; max-height: 560px; object-fit: cover; border-radius: 28px; }
.style-elegant .treatment-card .price { font-family: var(--serif); font-size: 2rem; color: var(--teal); }
.style-elegant .treatment-card .prose ul, .style-elegant .checklist { list-style: none; padding-left: 0; }
.style-elegant .treatment-card .prose li, .style-elegant .checklist li { position: relative; padding-left: 2.1rem; margin-bottom: .55rem; }
.style-elegant .treatment-card .prose li::before, .style-elegant .checklist li::before {
  content: "✓"; position: absolute; left: 0; top: .1em; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.style-elegant .card { border-color: var(--line); }
.ornament { display: flex; align-items: center; gap: .8rem; color: var(--gold, var(--teal-brand)); margin: .8rem 0 1.2rem; max-width: 420px; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .7; }
.ornament span { font-size: .9rem; line-height: 1; }
.section-title .ornament { margin-left: auto; margin-right: auto; }
.motto-band { text-align: center; padding: 3rem 0 2.5rem; background: linear-gradient(180deg, var(--bg), var(--teal-soft)); }
.motto { font-family: var(--script); font-size: 3rem; line-height: 1.2; color: var(--teal); margin: 0; }
.keywords { text-transform: uppercase; letter-spacing: .28em; font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
.btn.whatsapp::before { content: ""; width: 1.15em; height: 1.15em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.7 15l-1.3 5 5.1-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.7 15l-1.3 5 5.1-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 900px) {
  .style-elegant h1, .style-elegant .hero h1 { font-size: 2.1rem; }
  .motto { font-size: 2.4rem; }
  .keywords { letter-spacing: .16em; }
}

/* Handleiding */
.manual { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2rem; align-items: start; }
.manual-toc { position: sticky; top: 1rem; }
.manual-toc ol { margin: 0; padding-left: 1.2rem; line-height: 1.9; font-size: .95em; }
.manual-body { max-width: 860px; }
.manual-body section { scroll-margin-top: 1rem; margin-bottom: 2.5rem; }
.manual-body h2 { border-bottom: 2px solid var(--line); padding-bottom: .35rem; }
.manual-body h3 { margin-top: 1.4rem; }
.manual-body li { margin-bottom: .35rem; }
.manual-body .tip { background: var(--teal-soft); border-left: 4px solid var(--teal); padding: .7rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0; }
.manual-body .warn { background: var(--warn-soft); border-left: 4px solid var(--warn); padding: .7rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0; }
.manual-body kbd { font-family: inherit; font-weight: 700; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 .35em; background: #fff; font-size: .9em; }
@media (max-width: 900px) { .manual { grid-template-columns: 1fr; } .manual-toc { position: static; } }

/* Chat op de website (webchat/templates/webchat/widget.html, static/js/chat.js) */
.chat-widget { position: fixed; right: 16px; bottom: 16px; z-index: 50; font-size: 16px; }
.chat-toggle { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; padding: 0; border-radius: 50%; border: 0;
  background: var(--teal); color: #fff; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); position: relative; transition: transform .15s; }
.chat-toggle:hover { transform: scale(1.06); }
.chat-toggle .chat-icon-close, .chat-widget.open .chat-toggle .chat-icon-open { display: none; }
.chat-widget.open .chat-toggle .chat-icon-close { display: block; }
.chat-unread { position: absolute; top: -6px; right: -4px; min-width: 1.4em; padding: 0 .35em; border-radius: 999px; background: var(--lilac-dark); color: #fff; font-size: .75em; text-align: center; }
.chat-panel[hidden], .chat-widget[hidden] { display: none; }
.chat-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, .2); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem 1rem; background: var(--teal); color: #fff; line-height: 1.25; }
.chat-head small { color: rgba(255, 255, 255, .85); }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 .2em; }
.chat-messages { flex: 1; overflow-y: auto; padding: .75rem; display: flex; flex-direction: column; gap: .45rem; background: var(--bg); }
.chat-msg { max-width: 85%; padding: .5rem .75rem .35rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: .95em; line-height: 1.4; align-self: flex-start; overflow-wrap: anywhere; }
.chat-msg.mine { align-self: flex-end; background: var(--teal-soft); border-color: transparent; }
.chat-msg .chat-meta { display: block; font-size: .72em; color: var(--muted); margin-top: .2rem; text-align: right; }
.chat-typing { color: var(--muted); font-style: italic; }
.chat-status { margin: 0; padding: .45rem .75rem; font-size: .85em; background: var(--warn-soft); color: var(--warn); border-top: 1px solid var(--line); }
.chat-form { display: flex; gap: .5rem; padding: .6rem .75rem; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; font: inherit; font-size: .95em; padding: .5em .7em; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); max-height: 120px; }
.chat-note { margin: 0; padding: 0 .75rem .5rem; line-height: 1.3; }
@media (max-width: 480px) {
  .chat-widget.open { right: 0; bottom: 0; left: 0; }
  .chat-widget.open .chat-toggle { display: none; }
  .chat-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; }
}
@media print { .chat-widget { display: none; } }

/* Versie: nummer onderin het menu en de eenmalige melding 'nieuwe versie' rechtsboven (templates/backoffice/base.html) */
.app-version { display: block; margin: 1rem 12px .5rem; font-size: .78em; color: rgba(255, 255, 255, .55); text-decoration: none; }
a.app-version:hover { color: #fff; }
.release-toast { position: fixed; top: 72px; right: 16px; z-index: 60; width: min(340px, calc(100vw - 32px)); padding: .9rem 2.2rem .9rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15); animation: release-in .25s ease-out; }
.release-toast p { margin: .25rem 0 .6rem; font-size: .9em; color: var(--muted); }
.release-toast-close { position: absolute; top: .3rem; right: .5rem; background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--muted); cursor: pointer; }
@keyframes release-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .release-toast { animation: none; } }

/* EN | NL switch (templates/includes/language_switch.html) */
.lang-switch { display: inline-flex; align-items: center; gap: .15rem; margin: 0; font-size: .85em; }
.lang-switch button { background: none; border: 0; padding: .2em .35em; cursor: pointer; color: inherit; opacity: .6; font: inherit; font-weight: 600; border-radius: 6px; }
.lang-switch button[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.lang-switch button:hover { opacity: 1; }
.lang-switch span { opacity: .4; }

/* Practice types (settings) and other multiple-choice fields with checkboxes */
.check-list { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.check-list label { display: inline-flex; gap: .4em; align-items: center; font-weight: normal; }
.fields-2 > .field:has(.check-list) { grid-column: 1 / -1; }

/* Foot care: RIAB (footcare/assessment.html) */
.fc-progress { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; }
.fc-progress-bar { flex: 1; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.fc-progress-bar span { display: block; height: 100%; background: var(--danger); border-radius: 999px; transition: width .3s; }
.fc-progress-count { font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fc-tabs .fc-done { color: var(--ok); }
.fc-row { padding: .8rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: .5rem 1.25rem; }
.fc-row:last-of-type { border-bottom: 0; }
.fc-row[hidden] { display: none; }
.fc-label { font-weight: 600; }
.fc-label .req { color: var(--danger); }
.fc-inputs { display: grid; gap: .6rem; }
.fc-row.per-foot .fc-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fc-side-label { font-size: .8em; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.fc-options { display: grid; gap: .3rem; }
.fc-options.inline { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.fc-options.many { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fc-opt { display: flex; gap: .45em; align-items: flex-start; font-weight: normal; cursor: pointer; }
.fc-opt input { margin-top: .25em; accent-color: var(--danger); }
.fc-inputs textarea, .fc-inputs input[type="text"], .fc-inputs input[type="date"] { width: 100%; }
.fc-value { white-space: normal; }
@media (max-width: 760px) { .fc-row { grid-template-columns: 1fr; } }

/* Foot care: foot chart (footcare/chart.html, client card) */
.fc-chart { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.fc-palette { background: #eef1f2; border-radius: var(--radius); padding: .75rem; display: grid; gap: .35rem; max-height: 80vh; overflow: auto; position: sticky; top: 1rem; }
.fc-palette h3 { margin: .4rem 0 .1rem; font-size: .85em; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fc-cond { display: flex; gap: .55rem; align-items: center; text-align: left; background: var(--surface); border: 2px solid transparent; border-radius: 8px; padding: .4rem .55rem; cursor: pointer; font: inherit; color: inherit; }
.fc-cond:hover { border-color: var(--line-strong); }
.fc-cond[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); }
.fc-cond strong { display: block; font-size: .92em; }
.fc-cond small { display: block; color: var(--muted); font-size: .78em; font-style: italic; }
.fc-dot { flex: none; display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; color: #fff; font-size: .72em; font-weight: 700; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .15); }
.fc-view-tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: .5rem; }
.fc-view-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: .5em 1em; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.fc-view-tabs button[aria-selected="true"] { color: var(--danger); border-bottom-color: var(--danger); }
.fc-hint { min-height: 1.4em; margin: .25rem 0 .5rem; }
.fc-hint.warn { color: var(--danger); }
.fc-view { margin: 0; }
.fc-view[hidden] { display: none; }
.fc-svg { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; user-select: none; }
.fc-region { fill: #ecc3a2; stroke: #b98563; stroke-width: 1.5; }
.fc-region.fc-area { fill: #f0caa9; }
.fc-region.fc-nail { fill: #f6d8d0; stroke: #c48f80; }
.fc-chart[data-editable="1"] .fc-region { cursor: crosshair; }
.fc-chart[data-editable="1"] .fc-region:hover { fill: #e6b08a; }
.fc-chart[data-editable="1"] .fc-region.fc-nail:hover { fill: #f0bcae; }
.fc-region.fc-part[data-region^="MTH"], .fc-region.fc-part[data-region="arch"], .fc-region.fc-part[data-region="midfoot_lateral"],
.fc-region.fc-part[data-region="heel"], .fc-region.fc-part[data-region^="ID"] { fill: rgba(185, 133, 99, .14); stroke: rgba(185, 133, 99, .45); stroke-dasharray: 3 3; stroke-width: 1; }
.fc-side { font-size: 13px; font-weight: 700; fill: var(--muted); }
.fc-marker circle { stroke: #fff; stroke-width: 2; }
.fc-marker text { font-size: 8.5px; font-weight: 700; fill: #fff; pointer-events: none; }
.fc-chart[data-editable="1"] .fc-marker { cursor: pointer; }
.fc-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.fc-list li { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.fc-list .fc-item { flex: 1 1 220px; }
.fc-list input { flex: 1 1 180px; }
.fc-readonly { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.fc-readonly figcaption { font-size: .85em; font-weight: 600; color: var(--muted); text-align: center; }
@media (max-width: 760px) {
  .fc-chart { grid-template-columns: 1fr; }
  .fc-palette { position: static; max-height: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .fc-palette h3 { grid-column: 1 / -1; }
}

/* Statistics (analytics): one hue (the practice colour) for magnitude, grey for the previous period */
.stats-kpis .small, .stats-table .small, .stats-funnel .small, p.small, details.small { font-size: .85em; }
.stats-period { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .75rem; }
.stats-period select, .stats-period input { width: auto; }
.stats-period .custom { display: inline-flex; gap: .4rem; align-items: center; }
.stats-period .custom[hidden] { display: none; }
.stats-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.stats-chips .chip { padding: .25em .75em; border-radius: 999px; background: var(--teal-soft); color: var(--ink); text-decoration: none; font-size: .9em; border: 1px solid var(--line); }
.stats-chips .chip:hover { border-color: var(--teal); }
.stats-kpis { margin-bottom: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stats-kpis .stat .value { font-variant-numeric: normal; }
.delta { font-weight: 600; }
.delta.good { color: var(--ok); }
.delta.bad { color: var(--danger); }
.delta.flat { color: var(--muted); }
.stats-chart { margin-bottom: 1.25rem; }
.stats-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); font-size: .85em; }
.stats-legend .key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: .35rem; }
.stats-legend .key.now { background: var(--teal); }
.stats-legend .key.before { background: #a9b6ba; }
.stats-svg { width: 100%; height: auto; display: block; margin: .5rem 0; overflow: visible; }
.stats-svg .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.stats-svg .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.stats-svg .now { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.stats-svg .before { fill: none; stroke: #a9b6ba; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.stats-svg .area { fill: var(--teal); opacity: .1; }
.stats-svg .dot { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.stats-svg .hit rect { fill: transparent; }
.stats-svg .hit circle { fill: var(--teal); stroke: var(--surface); stroke-width: 2; opacity: 0; }
.stats-svg .hit:hover circle { opacity: 1; }
.stats-svg .hit:hover rect { fill: rgba(0, 0, 0, .03); }
.stats-section { margin-bottom: 1.25rem; }
.stats-grid { margin-bottom: 1.25rem; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.stats-table table { width: 100%; }
.stats-table th.num, .stats-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats-label { position: relative; min-width: 9rem; max-width: 22rem; overflow-wrap: anywhere; }
.stats-label > a, .stats-label > span:not(.stats-bar) { position: relative; }
.stats-bar { position: absolute; left: 0; top: 15%; bottom: 15%; background: var(--teal-soft); border-radius: 0 4px 4px 0; pointer-events: none; }
.stats-funnel { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.stats-funnel li { display: flex; align-items: center; gap: .75rem; }
.stats-funnel .stats-label { flex: 1 1 auto; padding: .35rem .5rem; }
.stats-heat { width: auto; border-collapse: separate; border-spacing: 2px; font-size: .75em; }
.stats-heat th { color: var(--muted); font-weight: 600; text-align: right; padding: 0 .3rem; }
.stats-heat thead th { text-align: center; }
.stats-heat th, .stats-heat td { padding: 0; border: 0; background: none; letter-spacing: 0; text-transform: none; }
.stats-heat td { width: 22px; min-width: 14px; height: 18px; border-radius: 3px; background: #eef3f4; }
.stats-heat td.l1 { background: color-mix(in srgb, var(--teal) 18%, #fff); }
.stats-heat td.l2 { background: color-mix(in srgb, var(--teal) 38%, #fff); }
.stats-heat td.l3 { background: color-mix(in srgb, var(--teal) 58%, #fff); }
.stats-heat td.l4 { background: color-mix(in srgb, var(--teal) 78%, #fff); }
.stats-heat td.l5 { background: var(--teal); }
/* Maps of the statistics (analytics/geomap.py): land grey, countries with visits in steps of the practice colour,
   circles in the practice colour with a ring of the surface */
.stats-map { display: block; width: 100%; padding: 0; margin: 0 0 .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: none; cursor: zoom-in; position: relative; overflow: hidden; }
.stats-map:hover, .stats-map:focus-visible { border-color: var(--teal); }
.stats-map-hint { position: absolute; right: .5rem; bottom: .4rem; font-size: .8em; color: var(--muted); background: rgba(255, 255, 255, .85); padding: .1em .5em; border-radius: 999px; }
.stats-map-svg { display: block; width: 100%; height: auto; }
.stats-map-svg .sea { fill: #f3f8f9; }
.stats-map-svg .land path { fill: #e3eaec; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.stats-map-svg .land path.l1, .stats-map-scale .l1 { fill: color-mix(in srgb, var(--teal) 22%, #fff); background: color-mix(in srgb, var(--teal) 22%, #fff); }
.stats-map-svg .land path.l2, .stats-map-scale .l2 { fill: color-mix(in srgb, var(--teal) 40%, #fff); background: color-mix(in srgb, var(--teal) 40%, #fff); }
.stats-map-svg .land path.l3, .stats-map-scale .l3 { fill: color-mix(in srgb, var(--teal) 58%, #fff); background: color-mix(in srgb, var(--teal) 58%, #fff); }
.stats-map-svg .land path.l4, .stats-map-scale .l4 { fill: color-mix(in srgb, var(--teal) 78%, #fff); background: color-mix(in srgb, var(--teal) 78%, #fff); }
.stats-map-svg .land path.l5, .stats-map-scale .l5 { fill: var(--teal); background: var(--teal); }
.stats-map-svg.countries .land path:hover { stroke: var(--ink); }
.stats-map-svg .borders { fill: none; stroke: #c3d1d4; stroke-width: .6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.stats-map-svg .dots circle { fill: var(--teal); fill-opacity: .55; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.stats-map-svg .dots circle:hover { fill-opacity: .9; }
.stats-map-svg .names text { font-size: 11px; font-weight: 600; fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.stats-map-svg.large .names text { font-size: 14px; }
.stats-map-scale { display: inline-flex; align-items: center; gap: 2px; margin-right: .5rem; }
.stats-map-scale i { display: inline-block; width: 18px; height: 10px; border-radius: 2px; }
.stats-dialog { width: min(1240px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.stats-dialog::backdrop { background: rgba(16, 52, 58, .55); }
.stats-dialog-head { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.stats-dialog-head h2 { margin: 0; flex: 1; font-size: 1.15rem; }
.stats-zoom { display: flex; gap: .25rem; }
.stats-dialog-body { padding: .75rem 1rem 1rem; }
.stats-map-large .stats-map-svg { border: 1px solid var(--line); border-radius: var(--radius-sm); max-height: 74vh; cursor: grab; touch-action: none; user-select: none; }
.stats-map-large .stats-map-svg.dragging { cursor: grabbing; }
.stats-map-note { margin: .5rem 0 0; }
.stats-map-missing { margin: -.35rem 0 .75rem; }

/* Findability: status lists (Google link), checklist with score, reviews */
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.status-list li { color: var(--muted); }
.status-list li.ok { color: var(--ok); }
.presence-score { display: flex; align-items: center; gap: 1rem; }
.presence-score .ring { width: 72px; height: 72px; flex: none; }
.presence-score .ring circle { fill: none; stroke-width: 8; }
.presence-score .ring .track { stroke: var(--line); }
.presence-score .ring .fill { stroke: var(--teal); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.presence-score .ring text { font-size: 18px; font-weight: 700; fill: var(--ink); }
.presence-list { list-style: none; padding: 0; margin: 0; }
.presence-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid var(--line); }
.presence-list li:first-child { border-top: 0; }
.presence-list .mark { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .9rem; }
.presence-list .ok .mark { background: var(--ok-soft); color: var(--ok); }
.presence-list .warn .mark { background: var(--warn-soft); color: var(--warn); }
.presence-list .missing .mark { background: var(--danger-soft); color: var(--danger); }
.presence-list .text { flex: 1; min-width: 0; }
.presence-list .text small { display: block; color: var(--muted); }
.stars { color: #e3a008; letter-spacing: .05em; white-space: nowrap; }
.stars .off { color: var(--line-strong); }
.review-item { border-top: 1px solid var(--line); padding: .9rem 0; }
.review-item:first-child { border-top: 0; }
.review-item.unseen { background: linear-gradient(90deg, var(--teal-soft), transparent 60%); margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
.review-item .head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; }
.review-item .text { margin: .4rem 0; white-space: pre-line; }
.review-item form { display: inline; }
.rating-big { font-size: 2.2rem; font-weight: 700; line-height: 1; }
.site-footer .social a { margin-right: .75rem; }
.site-footer .google-rating { display: inline-flex; gap: .4rem; align-items: center; color: inherit; text-decoration: none; }
.site-reviews blockquote { margin: 0; }
.site-reviews .card p { margin: .4rem 0 0; }
