/* Editor section "Produkty" (views/editor/products.js, docs/SPEC_PRODUCTS.md §5). Prefix .pr-.
   Phone first: everything fits 360 px without horizontal page scroll; tap targets ≥ 40 px on touch. */

.pr, .pr-body, .pr-panel { min-width: 0; }
.pr-body { display: flex; flex-direction: column; gap: 16px; }
.pr-panel { display: flex; flex-direction: column; gap: 16px; }
.pr-panel[hidden] { display: none; }
/* The tab bar stays in reach on phones; on wide screens the editor's summary strip is sticky there. */
.pr-tabs { padding: 6px 0; }
@media (max-width: 899px) {
  .pr-tabs { position: sticky; top: var(--header-h); z-index: 2; background: var(--bg); }
  /* Below the sticky year bar (editor2.css .ys-bar, fixed height). */
  .pr-body.has-ys > .pr-tabs { top: calc(var(--header-h) + 52px); }
  /* Scroll targets land below both sticky bars (year bar 52 px + tabs). */
  .ed-section .pr-body.has-ys :is(input, select, textarea, button, a, summary):not(.ys *):not(.pr-tabs *),
  .ed-section .pr-body.has-ys :is(.pr-chain, .pr-card, .rt-row, .card) { scroll-margin-top: calc(var(--header-h) + 116px); }
}
.pr-year { margin-bottom: -8px; }
.pr-lead, .pr-hint, .pr-note, .pr-empty { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.pr-note { font-size: 12.5px; }
.pr-empty { padding: 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.pr-h3 { margin: 0; font-size: 15px; font-weight: 650; line-height: 1.3; }
.pr-h4 { margin: 0; font-size: 13.5px; font-weight: 650; }
.pr-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pr-sec[hidden] { display: none; }
.pr-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-width: 0; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pr-actions > .btn { max-width: 100%; }
.pr-actions > .btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pr-list:empty { display: none; }
.pr-warnings { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pr-warnings[hidden] { display: none; }
.pr-kpis { min-width: 0; }

/* ---- intro (module off) --------------------------------------------------- */
.pr-intro {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 28px 20px; text-align: center;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface);
}
.pr-intro-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); }
.pr-intro-title { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.3; }
.pr-intro-text, .pr-intro-note { max-width: 620px; margin: 0; color: var(--text-2); line-height: 1.5; }
.pr-intro-note { font-size: 12.5px; }
.pr-intro-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---- double counting ------------------------------------------------------ */
.pr-double-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.pr-double-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.pr-double-name { font-weight: 600; overflow-wrap: anywhere; }

/* ---- chain cards ---------------------------------------------------------- */
.pr-chains { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pr-chain {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 60px);
}
.pr-chain-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pr-chain-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); }
.pr-chain-titles { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pr-chain-name { font-size: 15px; font-weight: 650; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
a.pr-chain-name { text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.pr-chain-base { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pr-chain-money { margin: 0; font-size: 13px; color: var(--text-2); }
.pr-chain-money strong { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-chain-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-flows { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pr-flow {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 12px;
  border-left: 3px solid var(--brand); border-radius: var(--radius-sm); background: var(--surface-2);
}
.pr-flow-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.pr-arrow { flex: none; color: var(--muted); font-weight: 650; }
.pr-flow-name { min-width: 0; overflow-wrap: anywhere; }
.pr-flow-qty { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-flow-per { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-flow-actions { display: flex; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.pr-dests { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.pr-dest { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 2px 10px; min-width: 0; font-size: 13.5px; }
.pr-dest-label { min-width: 0; color: var(--text-2); overflow-wrap: anywhere; }
.pr-dest-qty { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-dest-money { min-width: 64px; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-dest--sale .pr-dest-label { color: var(--text); }
.pr-dest--none { display: block; color: var(--text-2); }
/* a 320 px phone: the quantity goes under the label, so „spotreba komunity“ keeps its words (phone review 14 Oct 2026) */
@media (max-width: 340px) {
  .pr-dest:not(.pr-dest--none):not(.pr-dest--off) { grid-template-columns: minmax(0, 1fr) auto; }
  .pr-dest:not(.pr-dest--none):not(.pr-dest--off) > .pr-dest-qty { grid-column: 1; grid-row: 2; color: var(--text-2); }
}
.pr-dest--proc > .pr-node { grid-column: 1 / -1; }
.pr-node {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-top: 4px; padding: 8px 0 2px 10px;
  border-left: 2px dashed var(--border-strong);
}
.pr-node-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.pr-node-tools { display: flex; margin-left: auto; }
.pr-node-meta { font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.pr-node .pr-flow { background: var(--surface); border-left-color: var(--accent); }
.pr-node-econ { margin: 0; font-size: 12.5px; color: var(--text-2); }
.pr-node-econ strong { color: var(--text); white-space: nowrap; }
.pr-link {
  appearance: none; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; text-align: left;
  color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; min-width: 0;
}
.pr-totals-card .kv dd { white-space: nowrap; }

/* ---- cancelling a processing step / taking a product off its source ------- */
.pr-proc-cancel, .pr-off-cancel, .pr-rec-del { color: var(--critical-text); }
.pr-dest-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
/* A switched-off (or unfinished) recipe stays findable under its raw material: dimmed, with „Zapnúť“
   (or „Doplniť produkt“) and „Zrušiť“. */
.pr-dest--off {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 4px 8px; margin-top: 2px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-2);
}
.pr-dest--off > .pr-dest-label { flex: 1 1 160px; }
.pr-dest--off .pr-link { color: var(--text-2); }
.pr-dest--off > .pr-dest-tools { margin-left: auto; }
.pr-dest--loose > .pr-dest-tools { grid-column: 1 / -1; }
.pr-dest--loose.is-off > .pr-link { color: var(--text-2); }
.pr-cancel-warn { color: var(--warning-text); }

/* ---- cards (outputs, recipes, products, batches, uses) -------------------- */
.pr-card {
  min-width: 0; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 60px);
}
.pr-card.is-off > .pr-fold-head .pr-fold-title, .pr-card.is-off > .pr-fold-row > .pr-fold-head .pr-fold-title { color: var(--text-2); }
.pr-fold-head {
  appearance: none; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; margin: 0; padding: 8px 12px;
  border: 0; border-radius: var(--radius); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.pr-fold-head:hover { background: var(--surface-3); }
.pr-fold-head:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.pr-fold-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pr-fold-title { font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.pr-fold-sub { font-size: 12.5px; color: var(--text-2); line-height: 1.4; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pr-fold-tags { flex: none; display: flex; gap: 4px; }
.pr-fold-tags:empty { display: none; }
.pr-fold-caret { flex: none; display: grid; place-items: center; color: var(--muted); transition: transform 0.15s ease; }
.pr-card.is-open > .pr-fold-head .pr-fold-caret, .pr-card.is-open > .pr-fold-row > .pr-fold-head .pr-fold-caret { transform: rotate(180deg); }
/* Controls next to a card head (recipe on / off, „Zrušiť recept“), visible while the card is closed. */
.pr-fold-row { display: flex; align-items: center; min-width: 0; }
.pr-fold-row > .pr-fold-head { flex: 1 1 auto; min-width: 0; }
.pr-fold-aside { flex: none; display: flex; align-items: center; gap: 2px; padding-right: 8px; }
.pr-rec-switch { align-items: center; justify-content: center; min-width: 44px; min-height: 36px; }
.pr-rec-switch .toggle-input { width: 100%; height: 100%; }
.pr-fold-body { padding: 4px 12px 12px; border-top: 1px solid var(--border); }
.pr-fold-body[hidden] { display: none; }
.pr-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 8px; }
.pr-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 12px; min-width: 0; align-items: start; }
.pr-fields .input, .pr-fields .input-affix, .pr-dialog .input, .pr-dialog .input-affix { width: 100%; min-width: 0; max-width: 100%; }
.pr-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-width: 0; }
.pr-more { min-width: 0; border-top: 1px solid var(--border); }
.pr-more > summary { display: flex; align-items: center; min-height: 40px; font-size: 13px; color: var(--link); cursor: pointer; }
.pr-more-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 6px; min-width: 0; }
.pr-econ { margin: 0; padding: 0 12px 10px; font-size: 13px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.pr-econ strong { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-econ-warn { color: var(--warning-text); }
.pr-inputs-box { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border-radius: var(--radius-sm); background: var(--surface-2); }
.pr-inputs { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pr-input-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pr-input-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.pr-input-row > .input-affix { flex: 0 0 128px; width: 128px; }
.pr-input-del { flex: none; }
.pr-mode { display: flex; width: 100%; }
.pr-mode .segmented-item { flex: 1 1 0; justify-content: center; min-width: 0; }
.pr-labor { max-width: 360px; }

.pr-batch { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.pr-batch-head { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.pr-batch-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-batch-name { font-weight: 650; overflow-wrap: anywhere; }
.pr-batch-meta { font-size: 12.5px; color: var(--text-2); }
.pr-batch .input-affix { max-width: 148px; }

.pr-use { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.pr-use-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.pr-use-name { min-width: 0; overflow-wrap: anywhere; }
.pr-use-sum { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pr-use-sum:empty { display: none; }
.pr-use-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; min-width: 0; align-items: start; }
.pr-use-fields .input-affix { width: 100%; min-width: 0; }

/* ---- dialogs: choice lists ------------------------------------------------ */
.pr-dialog { min-width: 0; }
.pr-choices { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pr-choice {
  appearance: none; display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 52px; margin: 0; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); font: inherit; color: inherit;
  text-align: left; cursor: pointer;
}
.pr-choice:hover { background: var(--surface-3); border-color: var(--accent); }
.pr-choice:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.pr-choice-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 650; overflow-wrap: anywhere; }
.pr-choice-tag { padding: 1px 8px; border-radius: 999px; background: var(--good-soft); color: var(--good-text); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pr-choice-hint { font-size: 12.5px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.pr-typical { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pr-typical:empty { display: none; }
.pr-typical-title { margin: 0; font-size: 13px; color: var(--text-2); }
.pr-dialog-foot { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- catalogue ------------------------------------------------------------ */
.pr-cat { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pr-cat-search { width: 100%; }
.pr-cat-groups { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-cat-count { margin: 0; font-size: 12.5px; color: var(--text-2); }
.pr-cat-list { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.pr-cat-list:empty { display: none; }
.pr-cat-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-width: 0; padding: 10px 12px; }
.pr-cat-item + .pr-cat-item { border-top: 1px solid var(--border); }
.pr-cat-main { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-cat-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; overflow-wrap: anywhere; }
.pr-cat-meta, .pr-cat-note, .pr-cat-src { font-size: 12.5px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.pr-cat-prices { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--text-2); }
.pr-cat-price strong { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-cat-action { flex: none; }
.pr-cat-details { margin-top: 2px; }
.pr-cat-details > summary { width: fit-content; font-size: 12.5px; color: var(--link); cursor: pointer; }
.pr-cat-details[open] > summary { margin-bottom: 2px; }
.pr-cat-more { align-self: flex-start; }
.pr-ext { overflow-wrap: anywhere; }
.pr-legal-list { display: flex; flex-direction: column; min-width: 0; }
.pr-legal-note { min-width: 0; border-top: 1px solid var(--border); }
.pr-legal-note:first-child { border-top: 0; }
.pr-legal-note > summary { display: flex; align-items: center; min-height: 44px; font-weight: 600; cursor: pointer; }
.pr-legal-note > p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); overflow-wrap: anywhere; }

/* ---- footer --------------------------------------------------------------- */
.pr-foot { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 12px; border-top: 1px solid var(--border); }
.pr-asof { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }

/* ---- linked panels of other sections (Nákup, Pozemky, Príjmy, Číselníky) -- */
.pr-linkline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; line-height: 1.5; min-width: 0; }
.pr-linkline[hidden] { display: none; }
.pr-linkline-label { font-weight: 650; }
.pr-linkline-text { min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pr-linkline a { font-weight: 600; white-space: nowrap; }
.pr-crop { max-width: 420px; }
.pr-codelist { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; min-width: 0; }
.pr-codelist-text { flex: 1 1 240px; min-width: 0; margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }

@media (max-width: 480px) {
  .pr-chain { padding: 12px; }
  .pr-flow { padding: 10px; }
  .pr-dest { gap: 2px 8px; font-size: 13px; }
  .pr-dest-money { min-width: 0; }
  .pr-actions > .btn { flex: 1 1 100%; justify-content: center; }
  .pr-sec-head .pr-actions > .btn { flex: 1 1 auto; }
  .pr-input-row > .input-affix { flex-basis: 112px; width: 112px; }
}
@media (max-width: 560px) {
  /* The cancel sheet on a phone: one full-width button per line, the destructive one on top. */
  .pr-cancel-sheet .modal-footer { flex-direction: column-reverse; align-items: stretch; }
  .pr-cancel-sheet .modal-footer .btn { flex: none; width: 100%; justify-content: center; }
}
@media (max-width: 720px) {
  /* „Zrušiť recept“ in a recipe head: a 40 × 40 trash icon (the aria-label keeps its meaning). */
  .pr-rec-del { width: 40px; min-width: 40px; padding: 0; justify-content: center; }
  .pr-rec-del > span { display: none; }
  /* Catalogue on a phone: name + price on the left, a 40 × 40 "+" on the right, one short row. */
  .pr-cat-item { flex-wrap: nowrap; align-items: flex-start; padding: 8px 10px 8px 12px; }
  .pr-cat-main { flex: 1 1 auto; }
  .pr-cat-add { width: 40px; min-width: 40px; padding: 0; justify-content: center; }
  .pr-cat-add > span { display: none; }
  .pr-cat-pick { min-width: 72px; }
  .pr-cat-details > summary { display: inline-flex; align-items: center; min-height: 40px; }
}
@media (pointer: coarse), (max-width: 720px) {
  .pr .btn, .pr-modal .btn { min-height: 40px; }
  .ed-cat-products-link.btn-sm { min-height: 40px; }
  .ed2-product-link { display: inline-flex; align-items: center; min-height: 40px; }
  .pr .btn-icon.btn-sm { width: 40px; height: 40px; }
  .pr .chip { height: 40px; }
  .pr .segmented-item { height: 40px; }
  .pr .tabs--pills .tab { height: 40px; }
  .pr-link { display: inline-flex; align-items: center; min-height: 40px; }
  .pr-chain-name { display: inline-flex; align-items: center; min-height: 40px; }
  .pr-double-name, .pr-batch-name { display: inline-flex; align-items: center; min-height: 40px; }
  .pr-ext { display: inline-block; padding-block: 11px; }
  .pr-fields .checkbox, .pr-switch, .pr-rec-switch, .pr-cancel-product { min-height: 40px; }
  .pr-linkline a { display: inline-flex; align-items: center; min-height: 40px; }
}
/* ---- v4 round 12: „HACCP“ (R2) – button in the head rows, beside templates, and the modal (prefix .pr-hc-) ---- */
.pr-haccp-btn { flex: none; padding-inline: 10px; font-weight: 650; letter-spacing: 0.02em; }
.pr-haccp-btn[aria-busy="true"] { opacity: 0.6; }
.pr-fold-row > .pr-haccp-btn { margin-right: 4px; }
.pr-fold-row > .pr-haccp-btn:last-child { margin-right: 10px; }
.pr-choice-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pr-choice-row > .pr-choice { flex: 1 1 auto; min-width: 0; }
.pr-choice-row > .pr-haccp-btn { flex: none; }

.pr-hc { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pr-hc-head { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pr-hc-head .badge { max-width: 100%; white-space: normal; text-align: left; }
/* five tabs in one row, every one visible: on a phone a label breaks between its words („Čo / potrebujem“) */
.pr-hc-tabs { gap: 3px; }
.pr-hc-tabs .tab {
  flex: 1 1 0; min-width: min-content; height: auto; min-height: 36px; padding: 3px 6px;
  justify-content: center; white-space: normal; text-align: center; line-height: 1.15; font-size: 13px;
}
@media (max-width: 420px) {
  .pr-hc-tabs { gap: 2px; }
  .pr-hc-tabs .tab { padding-inline: 4px; font-size: 12.5px; }
}
.pr-hc-panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pr-hc-panel[hidden] { display: none; }
.pr-hc-h { margin: 2px 0 0; font-size: 13px; font-weight: 650; color: var(--text-2); }
.pr-hc-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; min-width: 0; }
.pr-hc-list > li + li { border-top: 1px solid var(--border); }
.pr-hc-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 0; color: inherit; text-decoration: none; font-size: 14px; line-height: 1.4; }
/* a registry / guide title: at most two lines (the whole title is the row's tooltip and the sheet it opens) */
.pr-hc-row.is-line { padding: 3px 0; font-size: 13.5px; line-height: 1.3; }
.pr-hc-row.is-line .pr-hc-text { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-hc-row.is-static { color: var(--text-2); }
a.pr-hc-row:hover .pr-hc-text, a.pr-hc-row:focus-visible .pr-hc-text { text-decoration: underline; text-underline-offset: 3px; }
a.pr-hc-row:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.pr-hc-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.pr-hc-go { flex: none; display: grid; place-items: center; color: var(--link); }
.pr-hc-list--small .pr-hc-row { font-size: 13px; }
.pr-hc-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chip.pr-hc-chip {
  height: auto; min-height: 44px; max-width: 100%; padding: 5px 12px; justify-content: flex-start;
  white-space: normal; text-align: left; line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; color: var(--link);
}
.chip.pr-hc-chip.is-static { cursor: default; color: var(--text-2); }
.pr-hc-sq { margin: 0; }
.pr-hc-common .fold-title { font-size: 14px; }
/* the folds of the modal: a 44 px header row (the tab stays one phone screen) */
.pr-hc-common > .fold-head { min-height: 44px; padding: 10px 0 0; }
.pr-hc-common.is-folded > .fold-head { padding-bottom: 0; }
.pr-hc-common > .fold-head .fold-heading { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.pr-hc-common > .fold-head .fold-summary { font-size: 12.5px; }
.pr-hc-common-list { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.pr-hc-common-list dt { margin-top: 6px; font-size: 13px; font-weight: 650; }
.pr-hc-common-list dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.pr-hc-common-list dd > p { margin: 0 0 4px; }
.pr-hc-points { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.pr-hc-point { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.pr-hc-point-fold { min-width: 0; }
.pr-hc-point-head {
  display: flex; align-items: flex-start; gap: 8px; min-height: 44px; padding: 7px 10px; cursor: pointer; list-style: none;
}
.pr-hc-point-head::-webkit-details-marker { display: none; }
.pr-hc-point-head::after { content: '▾'; flex: none; margin-left: auto; color: var(--muted); transition: transform 0.15s ease; }
.pr-hc-point-fold[open] > .pr-hc-point-head::after { transform: rotate(180deg); }
.pr-hc-point-head:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; border-radius: var(--radius-sm); }
.pr-hc-point-head > .badge { flex: none; margin-top: 1px; }
.pr-hc-point-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pr-hc-step { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.pr-hc-limit { font-size: 13px; line-height: 1.4; color: var(--text-2); overflow-wrap: anywhere; }
.pr-hc-point-fold > .pr-hc-kv, .pr-hc-point-fold > .pr-hc-note { margin-inline: 10px; }
.pr-hc-point-fold > .pr-hc-note { margin-bottom: 8px; }
.pr-hc-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
.pr-hc-kv dt { color: var(--text-2); white-space: nowrap; }
.pr-hc-kv dd { margin: 0; overflow-wrap: anywhere; }
.pr-hc-records { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; min-width: 0; }
.pr-hc-rec { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 5px 0; min-width: 0; }
.pr-hc-rec + .pr-hc-rec { border-top: 1px solid var(--border); }
.pr-hc-rec-text { margin: 0; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.pr-hc-freq { color: var(--text-2); white-space: nowrap; }
.pr-hc-rec-act { justify-self: end; }
.pr-hc-oblink { gap: 2px; padding-inline: 8px; color: var(--link); text-decoration: none; }
.pr-hc-intro, .pr-hc-note, .pr-hc-empty, .pr-hc-conf { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.pr-hc-sources { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; line-height: 1.33; min-width: 0; }
.pr-hc-sources li { min-width: 0; overflow-wrap: anywhere; }
/* the source's title is a link inside the line (its date follows it) – not the code list's padded block link */
.pr-hc-sources .pr-ext { display: inline; padding: 0; }
.pr-hc-src-meta { color: var(--text-2); }
.pr-hc-foot { margin: 0; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.45; color: var(--text-2); }
/* Phones: the HACCP modal is a full-screen sheet (docs/SPEC_V4.md §3.0). */
@media (max-width: 767px) {
  .modal-backdrop:has(> .pr-hc-modal) { padding: 0; align-items: stretch; }
  .pr-hc-modal.modal { max-width: none; height: 100vh; max-height: 100vh; border: 0; border-radius: 0; }
  .pr-hc-modal .modal-header { padding: 8px 8px 2px 16px; }
  .pr-hc-modal .modal-body { padding: 4px 14px 10px; }
  .pr-hc-modal .modal-footer { padding: 8px 14px; }
}
@supports (height: 100dvh) {
  @media (max-width: 767px) {
    .pr-hc-modal.modal { height: 100dvh; max-height: 100dvh; }
  }
}

/* ---- v4 round 12: „Kedy sa vyrába“ (R11) in the product card, the inherited line in the recipe card ---------- */
.pr-sched { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.pr-sched .fold-title { font-size: 14px; }
.pr-sched-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0 10px 10px; }
.pr-sched-raw { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.pr-sched-raw strong { color: var(--text); }
.pr-sched-own { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pr-wds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; max-width: 440px; }
.chip.pr-wd { min-width: 0; height: 44px; padding: 0; border-radius: var(--radius-sm); }
/* a phone: „Kedy sa vyrába“ without its own box, so the seven days get ≥ 42 px each in a 360 px card */
@media (max-width: 480px) {
  .pr-sched { border-width: 1px 0 0; border-radius: 0; background: none; }
  .pr-sched-body { padding: 0 0 8px; }
  .pr-wds { gap: 1px; }
  .pr-fold-row > .pr-haccp-btn { padding-inline: 6px; font-size: 12px; letter-spacing: 0; }
}
.pr-every { display: flex; width: 100%; max-width: 440px; }
.pr-every .segmented-item { flex: 1 1 0; justify-content: center; min-width: 0; }
.pr-sched-time { max-width: 160px; }
.pr-sched-preview { min-height: 1.5em; margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); overflow-wrap: anywhere; }
.pr-sched-preview.is-set { font-weight: 650; color: var(--text); }
.pr-sched-hint {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 8px 10px;
  border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning-text); font-size: 13px; line-height: 1.45;
}
.pr-sched-hint-text { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.pr-sched-plan { margin: 0; font-size: 13px; color: var(--text-2); }
.pr-sched-tasks { min-width: 0; }
.pr-sched-tasks:empty { display: none; }
.pr-sched-foot { display: flex; justify-content: flex-end; }
.pr-rec-months { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pr-rec-inherit {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 6px 6px 10px;
  border-radius: var(--radius-sm); background: var(--surface-2); font-size: 13.5px; line-height: 1.45;
}
.pr-rec-inherit-text { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
@media (pointer: coarse), (max-width: 720px) {
  .pr .pr-haccp-btn, .pr-modal .pr-haccp-btn, .pr .pr-sched-unify, .pr .pr-sched-clear, .pr .pr-rec-inherit-edit,
  .pr-hc .pr-hc-inplan { min-height: 44px; }
  .pr-hc .pr-hc-tabs .tab { min-height: 44px; }
  .pr .pr-every .segmented-item { height: 44px; }
  .pr .pr-sched-time { min-height: 44px; font-size: 16px; }
  .pr .chip.pr-wd { height: 44px; }
}

@media print {
  .pr-actions, .pr-flow-actions, .pr-chain-foot, .pr-del, .pr-cat-action, .pr-switch, .pr-tabs,
  .pr-node-tools, .pr-dest-tools, .pr-fold-aside, .pr-haccp-btn, .pr-sched-foot { display: none !important; }
  .pr-chain, .pr-card { break-inside: avoid; }
}
