/* ==========================================================================
   Prevádzka and Záznamy (views/prevadzka.js – prefix .pd-, views/zaznamy.js – prefix .zz-;
   docs/design-v2/Prevadzka.dc.html, Zaznamy.dc.html)
   Colours only through tokens (Nova 2 from v2.css, classic + dark from app.css): green = farm / regenerative,
   brown = money / tax, amber (--warning-*) = legal deadlines, red (--critical-*) = past a deadline, grey = other.
   Phone first: nothing wider than the phone, ≥ 44 px targets on touch, inputs 16 px (app.css), long texts wrap;
   the record sheets are bottom sheets on a phone.
   ========================================================================== */

.pd, .zz { gap: 14px; }
.pd-head .v2-head-actions, .zz-head .v2-head-actions { align-self: flex-start; padding-top: 2px; }

/* ---- mode badge (R13: „Prevádzka od …“ / „Simulácia“ – css/operation.css .op-badge; no switch back) ---- */
.pd-mode-badge { margin-top: 2px; }
.pd-mode-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pd-mode-text { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.pd-mode-start { flex: none; white-space: normal; }
.pd-mode-start[hidden] { display: none; }

.pd-ro, .pd-mode-note {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--grey-soft, var(--surface-2));
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.4;
}
.pd-ro[hidden], .pd-mode-note[hidden] { display: none; }

/* ---- cards ---- */
.pd-card, .zz-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.pd-card[hidden], .zz-card[hidden] { display: none; }
.pd-card-flush { gap: 0; padding: 0; overflow: hidden; }
.pd-card-title, .zz-card-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.pd-card-sub { margin: 2px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.35; }
.pd-card-sub[hidden] { display: none; }
.pd-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.pd-card-head > div { min-width: 0; }
.pd-card-link { flex: none; font-size: 13.5px; font-weight: 600; text-decoration: none; }

/* ---- the eight buttons (4 × 2, design) ---- */
.pd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pd-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 64px;
  padding: 10px 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pd-btn:hover { border-color: var(--border-strong); }
.pd-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-btn:disabled { opacity: 0.55; cursor: default; }
.pd-btn .pd-ico { color: var(--green-text); }
.pd-btn[data-tone="brown"] .pd-ico { color: var(--brown-text, var(--brown)); }
.pd-btn[data-tone="grey"] .pd-ico { color: var(--grey-text, var(--text-2)); }
.pd-btn-label { overflow-wrap: anywhere; }
.pd-today { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }

/* ---- tips (design: white card with a coloured left border; legal amber) ---- */
.pd-tips, .pd-history { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pd-tipgroups { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pd-tipgroup { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-tipgroup-title {
  margin: 0;
  padding: 0 4px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pd-tiplist { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pd-tip {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brown);
  border-radius: 12px;
  background: var(--surface);
}
.pd-tip[data-kind="regen"] { border-left-color: var(--green); }
.pd-tip[data-kind="legal"] { border-color: var(--warning-soft); border-left-color: var(--warning); background: var(--warning-soft); }
.pd-tip[data-level="alert"] { border-color: var(--critical-soft); border-left-color: var(--critical); background: var(--critical-soft); }
.pd-tip-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }
.pd-tip-label { color: var(--brown-text, var(--text-2)); font-size: 12px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pd-tip[data-kind="regen"] .pd-tip-label { color: var(--green-text); }
.pd-tip[data-kind="legal"] .pd-tip-label { color: var(--warning-text); }
.pd-tip[data-level="alert"] .pd-tip-label { color: var(--critical-text); }
.pd-tip-title { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pd-tip-text { color: var(--text-2); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.pd-tip-links { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin-top: 2px; }
.pd-tip-links[hidden] { display: none; }
.pd-tip-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.pd-tip-link:hover { text-decoration: underline; }
.pd-tip-done, .pd-tip-due { color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.pd-tip-done { color: var(--green-text); }
.pd-tip-docs[hidden] { display: none; }
.pd-tip-docs { margin-top: 6px; }
.pd-tip-btn {
  display: grid;
  flex: none;
  place-items: center;
  align-self: flex-start;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--green-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pd-tip-btn[hidden] { display: none; }
.pd-tip[data-kind="legal"] .pd-tip-btn { color: var(--warning-text); }
.pd-tip-btn:hover { background: var(--surface-2); }
.pd-tip-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-tips-empty { margin: 0 4px; color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.pd-tips-empty[hidden] { display: none; }
.pd-link-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 36px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pd-link-btn[hidden] { display: none; }
.pd-link-btn:hover { text-decoration: underline; }

/* ---- month: actual vs. plan ---- */
.pd-avp { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.pd-avp-row {
  display: grid;
  grid-template-columns: minmax(0, 5.5em) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--grid);
  font-size: 14px;
}
.pd-avp-row:last-child { border-bottom: 0; }
.pd-avp-label { font-weight: 600; }
.pd-avp-text { min-width: 0; color: var(--text-2); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pd-avp-status { font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--green-text); }
.pd-avp-status[hidden] { display: none; }
.pd-avp-row[data-status="low"] .pd-avp-status { color: var(--warning-text); }
.pd-avp-row[data-status="high"] .pd-avp-status { color: var(--brown-text, var(--text-2)); }

/* ---- usage warning ---- */
.pd-usage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warning-soft);
  color: var(--warning-text);
}
.pd-usage[hidden] { display: none; }
.pd-usage-text { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.pd-usage-btn[hidden] { display: none; }

/* ---- history ---- */
.pd-hist { margin: 0; padding: 0; list-style: none; }
.pd-hday {
  padding: 10px 14px 4px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pd-hrow { border-bottom: 1px solid var(--grid); }
.pd-hrow:last-child { border-bottom: 0; }
.pd-hrow-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pd-hrow-btn:hover { background: var(--surface-2); }
.pd-hrow-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pd-hrow-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-text);
}
.pd-hrow-ico[data-tone="brown"] { background: var(--brown-soft, var(--surface-2)); color: var(--brown-text, var(--text-2)); }
.pd-hrow-ico[data-tone="grey"] { background: var(--grey-soft, var(--surface-2)); color: var(--grey-text, var(--text-2)); }
.pd-hrow-text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1px; min-width: 0; }
.pd-hrow-title { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pd-hrow-meta { color: var(--text-2); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.pd-hrow-meta[hidden] { display: none; }

.pd-links { margin-top: 2px; }
.pd-disclaimer { margin: 0 4px; color: var(--text-2); font-size: 12px; line-height: 1.45; }

/* ---- sheets (record form, chooser, „Uložené“) ---- */
.modal.pd-sheet .modal-body { display: flex; flex-direction: column; gap: 12px; }
.pd-sheet-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pd-sheet-lead { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.pd-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; outline: none; }
.pd-form .field { margin: 0; min-width: 0; }
.pd-row2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.pd-form .segmented { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; }
.pd-form .segmented-item { flex: 1 1 auto; min-height: 40px; }
.pd-form-error { margin: 0; color: var(--critical-text); font-size: 13.5px; font-weight: 600; }
.pd-form-error[hidden] { display: none; }
.pd-sheet-docs { padding-top: 4px; border-top: 1px solid var(--grid); }
.pd-chooser-grid { gap: 10px; }
.pd-chooser-grid .pd-btn { min-height: 76px; font-size: 13px; }
.pd-saved-head { display: flex; align-items: center; gap: 10px; font-weight: 700; line-height: 1.3; outline: none; }
.pd-saved-ico {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-text);
}
.pd-saved-title { min-width: 0; overflow-wrap: anywhere; }
.modal.pd-sheet .modal-footer { flex-wrap: wrap; }
.modal.pd-sheet .modal-footer .pd-delete { margin-right: auto; }

/* ---- Domov (operation mode): the card „Záznamy dňa“ with „+ Záznam“ (views/domov.js .dm-records) ---- */
.dm-records .dm-rec-add { width: 100%; min-height: 48px; font-size: 16px; font-weight: 700; }
.dm-records .dm-rec-add[hidden] { display: none; }
.dm-rec-today { overflow-wrap: anywhere; }

/* ==========================================================================
   Záznamy (.zz-)
   ========================================================================== */

.zz-tabs.tabs { display: flex; gap: 6px; overflow: visible; }
.zz-tabs .tab {
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.zz .zz-tabs.tabs--pills .tab.is-active,
.zz .zz-tabs.tabs--pills .tab.is-active:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.zz-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.zz-panel[hidden] { display: none; }

/* chips of groups / plots (one row, scrolls sideways inside itself) */
.zz-chips {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 2px 0 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.zz-chips::-webkit-scrollbar { display: none; }
.zz-chips[hidden] { display: none; }
.zz-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.zz-chip[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green-text); }
.zz-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zz-chip-count { color: var(--text-2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

.zz-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.zz-sec[hidden] { display: none; }
.zz-sec .v2-group-head { margin-top: 2px; }
.zz-empty { margin: 0 4px; color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.zz-empty[hidden] { display: none; }
.zz-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.zz-actions[hidden] { display: none; }
.zz-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.zz-pill:hover { background: var(--surface-2); }
.zz-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zz-pill[hidden] { display: none; }
.zz-pill.is-primary { border-color: var(--primary); background: var(--primary); color: #fff; }

/* the animal card (design: header, health chip, 3 stats, timeline, actions) */
.zz-animal { border-left: 4px solid var(--green); }
.zz-animal[data-health="treatment"], .zz-animal[data-health="withdrawal"] { border-left-color: var(--warning); }
.zz-animal[data-status]:not([data-status="active"]) { border-left-color: var(--grey, var(--border-strong)); }
.zz-a-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; }
.zz-a-titles { min-width: 0; }
.zz-a-title { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.zz-a-sub { color: var(--text-2); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.zz-health {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.zz-health[data-tone="warn"] { background: var(--warning-soft); color: var(--warning-text); }
.zz-health[data-tone="grey"] { background: var(--grey-soft, var(--surface-2)); color: var(--text-2); }
.zz-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zz-stat { display: flex; flex-direction: column; min-width: 0; }
.zz-stat-label { color: var(--text-2); font-size: 12px; }
.zz-stat-value { font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.zz-timeline { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.zz-ev {
  display: flex;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.zz-ev:disabled { cursor: default; }
.zz-ev:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.zz-ev-date { flex: none; min-width: 52px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.zz-ev-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.zz-due { font-weight: 600; color: var(--warning-text); }
.zz-due[data-status="overdue"] { color: var(--critical-text); }
.zz-due[data-status="done"] { color: var(--green-text); }
.zz-a-docs { padding-top: 6px; border-top: 1px solid var(--grid); }

/* list of animals (one white card with hairline rows – design) */
.zz-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.zz-list[hidden] { display: none; }
.zz-row { border-bottom: 1px solid var(--grid); }
.zz-row:last-child { border-bottom: 0; }
.zz-row-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.zz-row-btn:hover { background: var(--surface-2); }
.zz-row-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.zz-row.is-open .zz-row-btn { background: var(--green-tint, var(--surface-2)); }
.zz-row > .zz-animal { margin: 0 10px 10px; }
.zz-row-text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 1px; min-width: 0; }
.zz-row-title { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.zz-row-sub { color: var(--text-2); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.zz-row-status { flex: none; max-width: 40%; color: var(--green-text); font-size: 12px; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.zz-row-status[data-tone="warn"] { color: var(--warning-text); }
.zz-row-status[data-tone="grey"] { color: var(--text-2); }

/* group records and field journal (design: card with a coloured left border, date + text lines) */
.zz-journal { border-left: 4px solid var(--brown); gap: 4px; }
.zz-journal[data-kind="group"] { border-left-color: var(--green); }
.zz-jlist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.zz-jnote { margin: 4px 0 0; color: var(--text-2); font-size: 12.5px; line-height: 1.4; }
.zz-hint { display: block; color: var(--warning-text); font-size: 12.5px; font-weight: 600; }
.zz-soil-btn {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.zz-soil-ok { color: var(--green-text); font-size: 12.5px; font-weight: 600; }

/* ---- phone ---- */
@media (max-width: 420px) {
  .pd-head .v2-head-row { flex-wrap: wrap; }
  .pd-grid { gap: 6px; }
  .pd-btn { padding: 10px 2px; font-size: 11.5px; }
  /* „Nový záznam“ (Domov + Záznam): four tiles in a sheet – „Narodenie“ stays one word (phone review 14 Oct 2026) */
  .pd-chooser-grid { gap: 6px; }
  .pd-chooser-grid .pd-btn { padding: 10px 2px; font-size: 11.5px; }
  .pd-avp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pd-avp-text { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 340px) {
  .pd-btn, .pd-chooser-grid .pd-btn { font-size: 10.5px; letter-spacing: -0.01em; }
}
@media (pointer: coarse) {
  .pd-tip-link, .zz-soil-btn { min-height: 44px; }
  .pd-tip-btn { width: 44px; height: 44px; }
  .pd-mode-start { min-height: 44px; }
  .pd-link-btn { min-height: 44px; }
  .zz-pill, .zz-chip { min-height: 44px; }
  .zz-ev { min-height: 44px; }
  .modal.pd-sheet .modal-footer .btn, .pd-form .segmented-item { min-height: 44px; }
  .modal.pd-sheet .input, .modal.pd-sheet .select { min-height: 44px; }
  .modal.pd-sheet .modal-close { min-width: 44px; min-height: 44px; }
  .pd-card-link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* R17 „Odobrať zo záznamu“ (round 9 QA): the animal or group picked in a record by mistake – a line in the edit sheet */
.pd-ref-remove {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; min-width: 0;
  padding-top: 8px; border-top: 1px solid var(--grid);
}
.pd-ref-text { min-width: 0; overflow-wrap: anywhere; color: var(--text-2); font-size: 13.5px; }
.pd-ref-x { white-space: normal; }
@media (pointer: coarse), (max-width: 720px) {
  .pd-ref-x { min-height: 44px; }
}

/* ---- round 13: the member's record sheets (views/prevadzka.js „Member mode“, R9 d) ---- */
.pd-member-ro, .pd-member-preview { font-size: 13px; }
.pd-member-none { padding: 6px 0; }

/* ---- v5 R24: the members' records on the owner's Prevádzka (possible duplicates, records to complete) and provenance ---- */
.pd-review-box { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-review-box[hidden] { display: none; }
.pd-review-h { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.pd-review-list { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; list-style: none; }
.pd-review-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; padding: 8px 0; border-bottom: 1px solid var(--grid); }
.pd-review-row:last-child { border-bottom: 0; }
.pd-review-text { flex: 1 1 220px; min-width: 0; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.pd-review-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pd-review-actions .btn { min-height: 44px; max-width: 100%; height: auto; white-space: normal; }
.pd-review-actions .btn[hidden] { display: none; }
.pd-todo-more { align-self: flex-start; }
.pd-member-marks { margin: 6px 0 0; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.pd-sheet .pd-member-docs { padding-top: 0; }
.pd-member-docs[hidden] { display: none; }
/* the shared sheets in member mode (v5 R24): „Vymazať · Zavrieť · Upraviť“ wrap, every button ≥ 44 px */
.pd-member .modal-footer { flex-wrap: wrap; }
.pd-member .modal-footer .btn { min-height: 44px; }
/* „Odobrať doklad“ of the member's own record (a receipt sent from this device) */
.pd-member-withdraw-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; margin-top: 8px; }
.pd-member-withdraw-text { flex: 1 1 180px; min-width: 0; margin: 0; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.pd-member-withdraw.btn { min-height: 44px; max-width: 100%; height: auto; white-space: normal; }
