/* Mijn DMCL — huisstijl van diermedischcentrumlimburg.nl (Elementor-kit):
   primair #2E403C (donkergroen), secundair #E2F2EF (mint), accent #F28191 (roze),
   tekst #7A7A7A, koppen Roboto Slab, tekst Roboto. */
@font-face { font-family: "Roboto"; src: url(/fonts/roboto.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url(/fonts/robotoslab.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --groen: #2E403C;
  --groen-2: #44605a;
  --mint: #E2F2EF;
  --mint-2: #c9e6e0;
  --roze: #F28191;
  --roze-donker: #c94a5e;
  --tekst: #2E403C;
  --tekst-2: #5f6b69;
  --rand: #d7e4e1;
  --wit: #fff;
  --achter: #f5faf9;
  --goed: #2f7d5b;
  --let-op: #a8620a;
  --fout: #b3261e;
  --r: 14px;
  --schaduw: 0 1px 2px rgba(46, 64, 60, .06), 0 4px 16px rgba(46, 64, 60, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--tekst); background: var(--achter); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Roboto Slab", Georgia, serif; font-weight: 500; line-height: 1.25; margin: 0 0 .5em; color: var(--groen); }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
a { color: var(--groen); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.demoband { background: var(--roze); color: #fff; text-align: center; font-size: .78rem; font-weight: 500; padding: 3px 8px; letter-spacing: .02em; }

/* ---- kop */
.kop { position: sticky; top: 0; z-index: 10; background: var(--wit); border-bottom: 1px solid var(--rand);
  display: flex; align-items: center; gap: 24px; padding: 8px 20px; }
.kop-logo img { height: 46px; display: block; }
.hoofdnav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.hoofdnav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--groen); }
.hoofdnav a:hover { background: var(--mint); }
.hoofdnav a.actief { background: var(--groen); color: #fff; }

.app { max-width: 1040px; margin: 0 auto; padding: 24px 20px 110px; }

/* ---- onderbalk (mobiel) */
.onderbalk { display: none; }
@media (max-width: 760px) {
  .hoofdnav { display: none; }
  .kop { justify-content: center; padding: 6px 12px; }
  .kop-logo img { height: 38px; }
  .app { padding: 16px 14px 100px; }
  .onderbalk { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: var(--wit); border-top: 1px solid var(--rand); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .onderbalk a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--tekst-2);
    font-size: .7rem; padding: 6px 0; border-radius: 10px; position: relative; }
  .onderbalk a svg { width: 24px; height: 24px; }
  .onderbalk a.actief { color: var(--groen); background: var(--mint); font-weight: 600; }
  h1 { font-size: 1.35rem; }
}
.stip { position: absolute; top: 4px; right: calc(50% - 18px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--roze-donker);
  color: #fff; font-size: .65rem; line-height: 16px; text-align: center; padding: 0 4px; font-weight: 700; }
.hoofdnav .stip { position: static; display: inline-block; margin-left: 6px; }

/* ---- bouwstenen */
.kaart { background: var(--wit); border: 1px solid var(--rand); border-radius: var(--r); padding: 18px; box-shadow: var(--schaduw); }
.kaart + .kaart { margin-top: 14px; }
.raster { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sectie { margin-top: 28px; }
.sectie-kop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sectie-kop a { font-size: .9rem; font-weight: 500; }
.klein { font-size: .86rem; color: var(--tekst-2); }
.leeg { color: var(--tekst-2); padding: 18px; text-align: center; background: var(--wit); border: 1px dashed var(--rand); border-radius: var(--r); }

.knop { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--groen); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; min-height: 44px; }
.knop:hover { background: var(--groen-2); }
.knop.roze { background: var(--roze); color: #fff; }
.knop.roze:hover { background: var(--roze-donker); }
.knop.licht { background: var(--mint); color: var(--groen); }
.knop.licht:hover { background: var(--mint-2); }
.knop.rand { background: transparent; color: var(--groen); box-shadow: inset 0 0 0 1.5px var(--groen); }
.knop.klein { padding: 6px 14px; min-height: 36px; font-size: .9rem; }
.knop:disabled { opacity: .5; cursor: default; }
.knoppen { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.label { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--mint); color: var(--groen); white-space: nowrap; }
.label.goed { background: #dff1e8; color: var(--goed); }
.label.let-op { background: #fbecd5; color: var(--let-op); }
.label.fout { background: #fbe1df; color: var(--fout); }
.label.grijs { background: #eef1f0; color: var(--tekst-2); }

.terug { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; margin-bottom: 12px; }

/* ---- welkom */
.welkom { background: var(--groen); color: #fff; border-radius: var(--r); padding: 22px; position: relative; overflow: hidden; }
.welkom h1 { color: #fff; margin-bottom: 4px; }
.welkom p { margin: 0; opacity: .9; }
.welkom::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: var(--roze); opacity: .16; }

/* ---- dierkaart */
.dier { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.dier:hover .dier-naam { text-decoration: underline; }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: 28px; }
.avatar.groot { width: 76px; height: 76px; font-size: 40px; }
.dier-naam { font-family: "Roboto Slab", serif; font-size: 1.15rem; font-weight: 500; }

/* ---- lijsten */
.lijst { list-style: none; margin: 0; padding: 0; }
.lijst > li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rand); }
.lijst > li:first-child { border-top: 0; }
.lijst .groei { flex: 1; min-width: 0; }
.lijst a.rij { display: flex; gap: 12px; align-items: center; flex: 1; text-decoration: none; color: inherit; min-width: 0; }
.datumblok { flex: none; width: 52px; text-align: center; border-radius: 10px; background: var(--mint); padding: 6px 0; line-height: 1.1; }
.datumblok b { display: block; font-size: 1.25rem; font-family: "Roboto Slab", serif; }
.datumblok span { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.titel { font-weight: 500; }
.ongelezen .titel { font-weight: 700; }
.ongelezen .titel::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--roze-donker); margin-right: 8px; vertical-align: middle; }

/* ---- preventietijdlijn */
.prev-rij { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rand); }
.prev-rij:first-child { border-top: 0; }
.prev-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); font-size: 18px; }

/* ---- kalender */
.maand { margin-top: 18px; }
.maand h3 { text-transform: capitalize; }

/* ---- grafiek */
.grafiek { position: relative; }
.grafiek svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.grafiek .as { font-size: 11px; fill: var(--tekst-2); }
.grafiek .rooster { stroke: #e7eeec; stroke-width: 1; }
.grafiek .lijn { fill: none; stroke: var(--groen); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.grafiek .vlak { fill: var(--mint); opacity: .7; }
.grafiek .punt { fill: var(--groen); stroke: #fff; stroke-width: 2; }
.grafiek .kruis { stroke: var(--tekst-2); stroke-width: 1; stroke-dasharray: 3 3; }
.grafiek .actief-punt { fill: var(--roze); stroke: #fff; stroke-width: 2; }
.tip { position: absolute; pointer-events: none; background: var(--groen); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: .82rem;
  white-space: nowrap; transform: translate(-50%, -115%); box-shadow: var(--schaduw); }
.tip b { font-size: .95rem; }
.kpi { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 8px; }
.kpi div { line-height: 1.2; }
.kpi b { display: block; font-family: "Roboto Slab", serif; font-size: 1.5rem; font-weight: 500; }
details.tabel summary { cursor: pointer; font-size: .88rem; color: var(--tekst-2); margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rand); }
th { font-weight: 600; color: var(--tekst-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
td.getal, th.getal { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 600; border-bottom: 0; }

/* ---- facturen en brieven */
.factuur-kop { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.factuur-kop img { height: 54px; }
.brief { white-space: pre-line; font-size: 1rem; }
.brief-kop { border-bottom: 1px solid var(--rand); padding-bottom: 12px; margin-bottom: 16px; }

/* ---- formulieren */
.veld { display: block; margin-bottom: 14px; }
.veld span { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 4px; }
.veld input, .veld select, .veld textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--rand); border-radius: 10px; background: #fff; min-height: 44px; }
.veld input:focus, .veld select:focus, .veld textarea:focus { outline: none; border-color: var(--groen); box-shadow: 0 0 0 3px var(--mint); }
.vinkje { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 16px; }
.vinkje input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--groen); flex: none; }
.melding { padding: 10px 12px; border-radius: 10px; font-size: .92rem; margin-bottom: 14px; }
.melding.fout { background: #fbe1df; color: var(--fout); }
.melding.goed { background: #dff1e8; color: var(--goed); }
:focus-visible { outline: 3px solid var(--roze); outline-offset: 2px; }

/* ---- inlogscherm */
.inlog { min-height: calc(100vh - 30px); display: grid; grid-template-columns: 1.1fr 1fr; }
.inlog-beeld { background: var(--groen); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 48px; gap: 18px; }
.inlog-beeld h1 { color: #fff; }
.inlog-beeld p { margin: 0; opacity: .9; }
.inlog-beeld img { width: min(420px, 100%); }
.inlog-beeld ul { margin: 0; padding-left: 0; list-style: none; color: #fff; }
.inlog-beeld li { padding: 6px 0 6px 30px; position: relative; }
.inlog-beeld li::before { content: ""; position: absolute; left: 0; top: 11px; width: 16px; height: 16px; border-radius: 50%; background: var(--roze); }
.inlog-vorm { display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: #fff; }
.inlog-vorm form { width: min(380px, 100%); }
.tabs { display: flex; background: var(--mint); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 999px; cursor: pointer; font-weight: 500; color: var(--groen); }
.tabs button.actief { background: var(--groen); color: #fff; }
.demo-hint { margin-top: 18px; padding: 12px; border-radius: 10px; background: var(--achter); border: 1px dashed var(--rand); font-size: .86rem; }
body.uitgelogd .app { max-width: none; padding: 0; }
@media (max-width: 760px) {
  .inlog { grid-template-columns: 1fr; }
  .inlog-beeld { padding: 24px 20px; }
  .inlog-beeld ul { display: none; }
}

/* ---- afdrukken (factuur/brief als pdf) */
@media print {
  .demoband, .kop, .onderbalk, .knoppen, .terug, .geen-print { display: none !important; }
  body { background: #fff; }
  .app { padding: 0; max-width: none; }
  .kaart { box-shadow: none; border: 0; padding: 0; }
}
