/* Stalplanner, eigen wereld (10 nov 2026): de halve staldeur. Een gekalkte stalmuur, de planner als groene staldeur met
   een witte omlijsting en planken, de titel als naambord met twee nagels, tabs als bordjes op de boxen, en per beurt een
   hoefijzer dat kleurt: groen op ritme, hooigeel binnenkort, halsterrood te laat.
   Palet: staldeurgroen #1e4a37, mos #2f6a50, kalk #eef0ea, omlijsting #ece3cb, hooi #d8b24a, halsterrood #a93427, smeedijzer #2b2b29.
   Bouwt verder op de k-klassen uit plannerke.css; geen themeer() en geen app-thema.css. */
:root { --st-groen: #1e4a37; --st-mos: #2f6a50; --st-kalk: #eef0ea; --st-lijst: #ece3cb; --st-hooi: #d8b24a; --st-rood: #a93427; --st-ijzer: #2b2b29; --st-inkt: #1f2a24; --st-zacht: #56625b;
  --st-bord: Rockwell, "Rockwell Nova", "Roboto Slab", "DejaVu Serif", Georgia, serif; }

/* de gekalkte muur */
.st-muur { background-color: #e7e9e2; background-image: radial-gradient(120% 60% at 20% 0%, rgba(255,255,255,.7), transparent 60%), radial-gradient(80% 50% at 90% 100%, rgba(190,196,184,.35), transparent 70%); }
.st-kop { margin-bottom: 18px; }
.st-kop .terug { color: var(--st-groen); font-weight: 700; }
/* het naambord boven de deur */
.st-kop .st-titel { position: relative; display: inline-block; margin: 14px 0 10px; padding: 12px 34px 13px; font: 700 clamp(1.8rem, 4vw, 2.6rem)/1 var(--st-bord); color: var(--st-groen); letter-spacing: .01em;
  background: linear-gradient(180deg, #f6f0de, var(--st-lijst)); border-radius: 4px; box-shadow: inset 0 0 0 3px var(--st-groen), 0 4px 0 #bfb59a, 0 10px 16px rgba(30, 40, 34, .16); }
.st-kop .st-titel::before, .st-kop .st-titel::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--st-ijzer); box-shadow: inset -1px -1px 0 rgba(255,255,255,.35); }
.st-kop .st-titel::before { left: 12px; } .st-kop .st-titel::after { right: 12px; }
.st-kop .st-betalabel { vertical-align: middle; font-family: var(--f-tekst); font-size: .8rem; margin-left: 8px; }
.st-kop .k-noot { color: var(--st-zacht); max-width: 40rem; }

#stalapp { color: var(--st-inkt); }
#stalapp .knop { background: var(--st-groen); color: #fff; border: 0; cursor: pointer; }
#stalapp .knop:hover { background: var(--st-mos); }
#stalapp .knop.rustig { background: #fff; color: var(--st-groen); box-shadow: inset 0 0 0 1.5px var(--st-groen); }
#stalapp .knop.rustig:hover { background: #eef4ef; }
#stalapp .knop:focus-visible, #stalapp button:focus-visible, #stalapp a:focus-visible, #stalapp input:focus-visible, #stalapp select:focus-visible, #stalapp textarea:focus-visible { outline: 3px solid var(--st-hooi); outline-offset: 2px; }
#stalapp .st-wis { background: #fff; color: var(--st-rood); box-shadow: inset 0 0 0 1.5px var(--st-rood); }
#stalapp .k-weg { color: var(--st-rood); }
#stalapp .k-melding { background: #fff8e2; border-left: 0; box-shadow: inset 4px 0 0 var(--st-hooi); padding: 10px 14px; border-radius: 6px; }

/* tabs als bordjes op de boxen */
.st-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 -6px; position: relative; z-index: 1; padding-left: 10px; }
.st-tabs button { font: 700 .98rem var(--st-bord); color: var(--st-groen); background: var(--st-lijst); border: 0; border-radius: 4px 4px 0 0; padding: 10px 16px 14px; cursor: pointer; box-shadow: inset 0 0 0 2px var(--st-groen); }
.st-tabs button.aan { background: var(--st-groen); color: var(--st-lijst); }
.st-teller { display: inline-block; min-width: 1.4em; padding: 0 5px; border-radius: 999px; background: var(--st-rood); color: #fff; font: 700 .78rem/1.45em var(--f-tekst); text-align: center; }

/* de deur: groene planken in een witte omlijsting, binnenin een gekalkt bord */
.st-deur { position: relative; padding: 14px; border-radius: 6px; background-color: var(--st-groen);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 2px, transparent 2px 58px), linear-gradient(180deg, var(--st-mos), var(--st-groen));
  box-shadow: inset 0 0 0 6px var(--st-lijst), inset 0 0 0 8px #b9ae90, 0 14px 30px rgba(25, 38, 30, .18); }
.st-plank { position: relative; z-index: 1; background: var(--st-kalk); border-radius: 3px; padding: 22px 24px 26px; margin: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.st-plank h2 { font: 700 1.55rem/1.15 var(--st-bord); color: var(--st-groen); margin: 0 0 8px; }
.st-plank h3 { font-size: 1.05rem; margin: 0; }
.st-tussen { font: 700 1.02rem var(--st-bord); color: var(--st-groen); margin: 22px 0 8px; }
.st-uitleg { color: var(--st-zacht); max-width: 44rem; margin: 0 0 14px; }
.st-leeg { background: #fff; border-radius: 6px; padding: 16px; color: var(--st-zacht); }
.st-datum { color: var(--st-zacht); margin: 0 0 2px; text-transform: none; }

/* formulieren */
.st-form { display: grid; gap: 12px; }
.st-twee { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; }
.st-twee > .st-veld { flex: 1 1 180px; }
.st-twee > .st-mini { flex: 0 1 120px; }
.st-veld { display: grid; gap: 4px; font-size: .86rem; font-weight: 700; color: var(--st-inkt); }
.st-veld input, .st-veld select, .st-veld textarea { font: 1rem var(--f-tekst); color: var(--st-inkt); background: #fff; border: 1.5px solid #c7cdc4; border-radius: 6px; padding: 9px 10px; width: 100%; }
.st-veld textarea { resize: vertical; }
.st-vink { display: flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 600; padding-bottom: 8px; }
.st-vink input { width: 18px; height: 18px; accent-color: var(--st-groen); }
.st-kies { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-kies legend { font-size: .86rem; font-weight: 700; margin-bottom: 8px; }
.st-kies label { display: inline-flex; align-items: center; gap: 7px; background: #fff; border-radius: 6px; padding: 8px 12px; box-shadow: inset 0 0 0 1.5px #c7cdc4; font-weight: 600; cursor: pointer; }
.st-kies input { accent-color: var(--st-groen); width: 17px; height: 17px; }
.st-rijform { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 10px; }
.st-rijform .st-veld { flex: 1 1 160px; }
.st-rijform .st-mini { flex: 0 1 100px; }
.st-rijform .st-veld:has(select) { flex: 0 1 190px; }
.st-mensen li > .k-noot, .st-mensen li > .k-weg { flex: 0 0 4.5rem; }
.st-bestand { position: relative; overflow: hidden; }
.st-bestand input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.st-verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.st-balk { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; background: #fff8e2; border-radius: 6px; padding: 12px 14px; margin: 10px 0 14px; }
.st-balk p { margin: 0; flex: 1 1 260px; }

/* hoefijzers */
.st-ijzer { width: 34px; height: 34px; flex: none; }
.st-ijzer path { fill: var(--st-mos); stroke: rgba(0,0,0,.2); stroke-width: .8; }
.st-ijzer .gat circle { fill: var(--st-kalk); }
.st-ijzer.binnenkort path { fill: var(--st-hooi); }
.st-ijzer.laat path { fill: var(--st-rood); }
.st-ijzer.geen path { fill: none; stroke: #9aa39c; stroke-width: 1.6; stroke-dasharray: 3 2; }
.st-ijzer.geen .gat circle { fill: #9aa39c; }

/* wat komt eraan */
.st-kop2 h2 { margin-top: 2px; }
.st-lijst { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.st-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; background: #fff; border-radius: 6px; padding: 14px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.st-wat p { margin: 3px 0 0; color: var(--st-zacht); font-size: .93rem; }
.st-wanneer { color: var(--st-groen); }
.st-item.laat .st-wanneer { color: var(--st-rood); }
.st-item.binnenkort .st-wanneer { color: #8a6a12; }
.st-doe { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.st-doe .knop { padding: 9px 14px; font-size: .92rem; }

/* paarden en stalkaart */
.st-paard { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 2px dashed #c9cfc6; }
.st-kaart { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.08); max-width: 40rem; }
.st-naambord { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; background: var(--st-groen); color: var(--st-lijst); padding: 12px 16px; }
.st-naambord h3 { font: 700 1.5rem/1.1 var(--st-bord); color: #fff; }
.st-naambord span { font-size: .9rem; }
.st-gegevens { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 18px; margin: 0; padding: 14px 16px; }
.st-gegevens dt { font-size: .78rem; font-weight: 700; color: var(--st-zacht); }
.st-gegevens dd { margin: 0; white-space: pre-line; }
.st-straks { margin: 0; padding: 10px 16px 14px; border-top: 1px solid #e3e6df; font-size: .93rem; }
.st-kaartknoppen { margin-top: 10px; align-items: center; }
.st-zorglijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-zorg { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 6px; padding: 10px 12px; }
.st-zorgform { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; flex: 1; }
.st-zorgform .st-veld { flex: 0 1 160px; }
.st-zorgform .st-mini { flex: 0 1 100px; }
.st-zorgnaam { flex: 1 1 160px; align-self: center; }
.st-nieuw { margin-top: 6px; }
.st-nieuw h3 { font: 700 1.1rem var(--st-bord); color: var(--st-groen); margin-bottom: 10px; }

/* logboek */
.st-logform { background: #fff; border-radius: 6px; padding: 14px; margin-bottom: 16px; }
.st-log { list-style: none; margin: 0; padding: 0; }
.st-log li { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 10px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid #d9ddd5; }
.st-log time { font-weight: 700; color: var(--st-groen); font-size: .92rem; }
.st-bedrag { display: block; color: var(--st-zacht); font-size: .9rem; }

/* kosten delen */
.st-mensen { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 30rem; }
.st-mensen li { display: flex; gap: 12px; align-items: center; }
.st-mensen .st-veld { flex: 1; }
.st-deelvak { background: #fff; border-radius: 6px; padding: 2px 14px 14px; margin-top: 14px; }
.st-delen { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.st-delen .st-mini { flex: 0 1 120px; }
.st-vastlijst { list-style: none; margin: 12px 0 0; padding: 0; }
.st-vastlijst li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #e3e6df; }
.st-afrekening { margin-top: 22px; background: var(--st-lijst); border-radius: 6px; padding: 16px; }
.st-afrekening h3 { font: 700 1.2rem var(--st-bord); color: var(--st-groen); margin: 12px 0 10px; }
.st-maandkeuze { display: inline-flex; gap: 0; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--st-groen); }
.st-maandkeuze button { font: 700 .9rem var(--f-tekst); background: transparent; color: var(--st-groen); border: 0; padding: 8px 14px; cursor: pointer; }
.st-maandkeuze button.aan { background: var(--st-groen); color: #fff; }
.st-tabel { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; font-variant-numeric: tabular-nums; }
.st-tabel th, .st-tabel td { padding: 8px 10px; text-align: right; border-bottom: 1px solid #e3e6df; }
.st-tabel th[scope=row], .st-tabel thead th:first-child { text-align: left; }
.st-tabel thead th { font-size: .82rem; color: var(--st-zacht); }
.st-tabel td.min { color: var(--st-rood); font-weight: 700; }
.st-stortingen { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.st-stortingen li { background: #fff; border-radius: 6px; padding: 9px 12px; }
.st-slot { background: #fff; }
.st-regel { background: #fff; border-radius: 6px; padding: 4px 16px 14px; margin: 16px 0 10px; }
.st-regel h4 { font: 700 1.02rem var(--st-bord); color: var(--st-groen); margin: 12px 0 6px; }
.st-regel p { margin: 0 0 8px; }

/* start: de deur met de voorkant */
.st-start .st-plank { max-width: 44rem; }

@media (max-width: 640px) {
  .st-deur { padding: 8px; }
  .st-plank { padding: 16px 14px 20px; margin: 4px; }
  .st-tabs { padding-left: 0; gap: 5px; }
  .st-tabs button { font-size: .86rem; padding: 8px 10px 12px; }
  .st-item { grid-template-columns: auto 1fr; padding: 12px; }
  .st-doe { grid-column: 1 / -1; }
  .st-log li { grid-template-columns: 1fr auto; }
  .st-log time { grid-column: 1 / -1; }
  .st-zorg { align-items: flex-start; }
  .st-tabel th, .st-tabel td { padding: 7px 6px; font-size: .9rem; }
}

@media print {
  .st-muur { background: #fff; }
  .kop, .voet, .st-kop, .st-tabs, .k-acties, .st-rijform, .st-logform, .k-melding, .st-balk, .k-noot, .st-nieuw, .k-weg, .st-doe, .cookiebalk { display: none !important; }
  .st-deur { background: none; box-shadow: none; padding: 0; }
  .st-plank { background: #fff; box-shadow: none; margin: 0; padding: 0; }
  .st-item, .st-kaart, .st-deelvak, .st-afrekening { box-shadow: none; border: 1px solid #999; }
  /* alleen de gekozen stalkaart afdrukken */
  body.st-print-kaart .st-plank > :not(.st-paard), body.st-print-kaart .st-paard > :not(.st-kaart), body.st-print-kaart .st-kaart:not(.afdruk) { display: none !important; }
  body.st-print-kaart .st-paard:not(:has(.afdruk)) { display: none !important; }
  body.st-print-kaart .st-paard { border: 0; }
  body.st-print-kaart .st-kaart.afdruk { max-width: none; font-size: 14pt; border: 3px solid #1e4a37; }
  body.st-print-kaart .st-naambord { background: #fff; border-bottom: 3px solid #1e4a37; }
  body.st-print-kaart .st-naambord h3 { color: #1e4a37; font-size: 30pt; }
  body.st-print-kaart .st-naambord span { color: #1e4a37; }
}
@media (prefers-reduced-motion: reduce) { #stalapp * { transition: none !important; } }
