/* Weegronde, snelknoppen en verkooptekst (23-11-2026, sessie P; views/weegronde.js, verkooptekst.js). Ronde 14-stijl:
   één groene hoofdknop (Bewaren), de rest rustig. Een daling van meer dan 10% is de alarmvorm van de app (.waarsch.rood).
   Kleuren uit de tokens van thema.css, zodat Donker en Licht vanzelf kloppen. */

.wr { min-height: 100%; background: var(--bg); color: var(--text); }
.wr-tel { min-height: 100dvh; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); }
.wr-pc { max-width: 1120px; margin: 0 auto; padding: 8px 32px 40px; }

/* kop: terug, titel met teller, camera */
.wr-kop { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  min-height: 56px; padding-top: env(safe-area-inset-top); background: var(--bg); }
.wr-pc .wr-kop { position: static; min-height: 72px; }
.wr-terug { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px 0 0; background: none; border: 0; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.wr-terug svg { width: 22px; height: 22px; }
.wr-titel { text-align: center; min-width: 0; }
.wr-titel h1 { margin: 0; font-size: 18px; line-height: 22px; font-weight: 700; }
.wr-pc .wr-titel { text-align: left; }
.wr-pc .wr-titel h1 { font-size: 28px; line-height: 34px; }
.wr-titel small { display: block; font-size: 13px; line-height: 17px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.wr-cam { width: 44px; height: 44px; }
.wr-cam[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-radius: 50%; }

.wr-camvak { position: relative; margin: 4px 0 10px; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; max-height: 30vh; }
.wr-pc .wr-camvak { max-width: 460px; }
.wr-camvak video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wr-camtx { position: absolute; left: 10px; right: 10px; bottom: 8px; font-size: 13px; color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.wr-raak .wr-dier { box-shadow: inset 0 0 0 2px var(--accent); }

/* indeling: telefoon onder elkaar, computer werkvak links en de rondelijst rechts */
.wr-pc .wr-lijf { display: grid; grid-template-columns: minmax(360px, 440px) minmax(0, 1fr); gap: 28px; align-items: start; }
.wr-pc .wr-lijst { position: sticky; top: 16px; max-height: calc(100vh - 120px); overflow: auto; background: var(--surface); border-radius: 16px; padding: 4px 0 8px; box-shadow: inset 0 0 0 1px var(--separator); }
.wr-pc .wr-werk { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: inset 0 0 0 1px var(--separator); }

/* het dier dat aan de beurt is */
.wr-dier { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.wr-foto { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--surface); color: var(--text-3); }
.wr-foto img { width: 100%; height: 100%; object-fit: cover; }
.wr-foto svg { width: 26px; height: 26px; }
.wr-dier-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wr-dier-titel { font-size: 17px; line-height: 22px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-dier-id { font-size: 13px; line-height: 17px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.wr-dier-wat { font-size: 13px; line-height: 17px; color: var(--text-2); }
.wr-sekse { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--text-2); }

/* cijferblok: dezelfde .weegscherm en .numpad als het weegblad, iets compacter zodat alles op een telefoon past */
.wr-weeg { padding: 6px 0 0; }
.wr-weeg .getal { font-size: 52px; min-height: 60px; line-height: 60px; font-variant-numeric: tabular-nums; }
.wr-verschil { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; min-height: 28px; }
.wr-tarra-som { font-size: 13.5px; color: var(--text-2); }
.wr-tarra-som b { color: var(--text); font-weight: 700; }
.wr-pct { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 14px; line-height: 20px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--text); }
.wr-pct-op { color: var(--accent); }
.wr-pct-daling { background: var(--text); color: var(--bg); }
.wr-weeg .wr-alarm { text-align: left; margin: 8px 0 0; }
.wr-tarra { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 10px; padding: 6px 12px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; text-align: left; box-shadow: inset 0 0 0 1px var(--separator); }
.wr-tarra svg { width: 20px; height: 20px; flex: none; color: var(--text-2); }
.wr-tarra span { flex: 1; min-width: 0; }
.wr-tarra small { font-size: 13px; color: var(--text-2); }
.wr-tarra-aan { box-shadow: inset 0 0 0 2px var(--accent); }
.wr-tarra-aan svg { color: var(--accent); }
.wr-tarra:disabled { cursor: default; color: var(--text-3); }
.wr-weeg .numpad { margin-top: 10px; gap: 8px; }
.wr-tel .wr-weeg .numpad button { height: 52px; }
.wr-knoppen { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 10px; }
.wr-knoppen .knop { min-height: 52px; justify-content: center; margin: 0 !important; }
.wr-toetsen { margin: 10px 0 0; font-size: 12.5px; color: var(--text-3); text-align: center; }
/* het weegblad heeft op de computer een eigen uitlegregel onder het cijferblok; hier staat hij als .wr-toetsen */
.wr .weegscherm::after { content: none !important; }

/* rondelijst */
.wr-tel .wr-lijst { margin-top: 14px; }
.wr-lijstregel { width: 100%; }
.wr-lijstkop { display: flex; align-items: center; gap: 8px; padding: 12px 16px 6px; }
.wr-lijstkop h2 { margin: 0; font-size: 17px; }
.wr-rijen { display: flex; flex-direction: column; }
.wr-tel .wr-rijen { margin-top: 6px; background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--separator); }
.wr-rij { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 6px 14px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.wr-rij + .wr-rij { border-top: 1px solid var(--separator); }
.wr-rij:hover { background: var(--surface-2); }
.wr-rij-nu { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.wr-rij-st { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--separator); }
.wr-rij-klaar .wr-rij-st { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.wr-rij-st svg { width: 14px; height: 14px; }
.wr-rij-tx { display: flex; flex-direction: column; min-width: 0; }
.wr-rij-tx b { font-weight: 600; font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-rij-tx small { font-size: 13px; line-height: 17px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-rij-w { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wr-rij-w i { font-style: normal; font-weight: 700; margin-left: 4px; }
.wr-rij-w i.wr-pct-daling { padding: 1px 6px; border-radius: 99px; }

/* start: welk rek */
.wr-start h2 { margin: 8px 0 4px; font-size: 20px; }
.wr-startlijst { display: flex; flex-direction: column; margin-top: 12px; background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--separator); overflow: hidden; }
.wr-startrij { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; min-height: 56px; padding: 6px 14px; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.wr-startrij + .wr-startrij { border-top: 1px solid var(--separator); }
.wr-startrij:hover { background: var(--surface-2); }
.wr-startrij-ik svg, .wr-startrij .pijl svg { width: 20px; height: 20px; color: var(--text-2); }
.wr-n { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* klaar */
.wr-klaar { text-align: center; padding: 28px 8px 8px; }
.wr-klaar-ik { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.wr-klaar-ik svg { width: 30px; height: 30px; }
.wr-klaar h2 { margin: 12px 0 4px; font-size: 22px; }
.wr-klaar p { margin: 0; color: var(--text-2); }
.wr-klaar .wr-alarm { text-align: left; margin-top: 14px; }
.wr-klaar .acties { justify-content: center; margin-top: 18px; }

/* bakgewicht */
.wr-tarrablad .wr-tarra-veld { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; font-weight: 600; }
.wr-tarrablad .dk-prijsveld input { width: 110px; text-align: right; }

/* rekblad: Weegronde onder Water gegeven en Verschoond, over de hele breedte */
.rkb-blad .rkb-zorg.rkb-zorg-weeg { grid-column: 1 / -1; text-decoration: none; }

/* legsel: Deel verkooptekst onder de jongen */
.cl-verkoop { margin-top: 10px; gap: 8px; }
.cl-verkoop svg { width: 20px; height: 20px; }
.cl-verkoop .aantal { margin-left: 2px; padding: 1px 8px; border-radius: 99px; background: var(--bg); color: var(--text); font-size: 12px; font-weight: 800; }

/* dierkaart (A5): vaste standaard Voeren, Gewogen, Vervelling, Foto op één rij; de rest achter Meer rechtsboven */
.dk14-snel .snel { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.dk14-snel .snel > button[data-a="vervel"] { order: 3; }
.dk14-snel .snel > button[data-a="foto"] { order: 4; }
