/* =========================================================================
   NOVÝ OBJEDNÁVACÍ FORMULÁR (v14.08) – vzhľad schválený 21. 11. 2026 na lokálnej ukážke
   Order details (Client name, Program length, New/Saved recipe, Billing, Delivery), Recipe (tabuľka), Summary.
   Biele pole s okrajom = dá sa vyplniť, sivé = nedá sa zmeniť. Iba počítač (html:not(.app-phone-zoom)),
   telefón má vlastný vzhľad v index.css. Štruktúru stránky skladá web/js/ordering/17_novy_formular.js.
   Platí aj mimo formulára: správy vpravo hore, okno po odoslaní objednávky, okno Review order, okno klienta.
   ========================================================================= */

/* farby */
html:not(.app-phone-zoom) body {
  --ink: #1d1d1f; --lab: #86868b; --gray: #f5f5f7; --track: #e8e8ed; --rule: #d2d2d7; --card: #ffffff;
  --cell: #ffffff; --cell-bd: #d2d2d7; --cell-bd-h: #a1a1a6; --accent: #0071e3; --thumb: #ffffff; --thumb-sh: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04);
}
html:not(.app-phone-zoom) body.dark-theme {
  --ink: #f2f2f4; --lab: #98989d; --gray: #2a2d35; --track: #383c46; --rule: #454955; --card: #32353e;
  --cell: #383c46; --cell-bd: #505563; --cell-bd-h: #6c7383; --accent: #60a5fa; --thumb: #5a606c; --thumb-sh: none;
}
html #orderingFormSection .nf-keep { display: none; }
html:not(.app-phone-zoom) #orderingFormSection { background: var(--card) !important; color: var(--ink); }
html:not(.app-phone-zoom) #orderingFormSection .info-section,
html:not(.app-phone-zoom) #orderingFormSection .table-container,
html:not(.app-phone-zoom) #orderingFormSection .footer-section,
html:not(.app-phone-zoom) #recipeEditor .table-container { background: transparent !important; border: 0 !important; box-shadow: none !important; }

/* nadpis New order a dátum */
html:not(.app-phone-zoom) #orderingFormSection .nf-head { display: flex; align-items: baseline; justify-content: space-between; padding: 30px 32px 0; background: none !important; text-align: left; text-transform: none; letter-spacing: 0; }
html:not(.app-phone-zoom) #orderingFormSection .nf-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
html:not(.app-phone-zoom) #orderingFormSection .nf-date { font-size: 15px; font-weight: 600; color: var(--lab); font-variant-numeric: tabular-nums; }

/* tri sivé karty (ako v zhrnutí objednávky) */
html:not(.app-phone-zoom) #orderingFormSection .info-section { display: block; padding: 36px 32px 52px; }
html:not(.app-phone-zoom) #orderingFormSection .nf-top { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 20px; align-items: stretch; }
html:not(.app-phone-zoom) #orderingFormSection .nf-sec { display: flex; flex-direction: column; min-width: 0; }
html:not(.app-phone-zoom) #orderingFormSection .nf-title { margin: 0 0 9px 18px; font-size: 14px; font-weight: 600; color: var(--lab); letter-spacing: 0; }
html:not(.app-phone-zoom) #orderingFormSection .nf-card { flex: 1; background: var(--gray); border-radius: 16px; overflow: hidden; }
html:not(.app-phone-zoom) #orderingFormSection .nf-row { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 15px 18px; font-size: 14px; line-height: 18px; }
html:not(.app-phone-zoom) #orderingFormSection .nf-row::before { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; border-bottom: 1px solid var(--rule); }
html:not(.app-phone-zoom) #orderingFormSection .nf-row:last-child::before { display: none; }
html:not(.app-phone-zoom) #orderingFormSection .nf-row-l { color: var(--lab); font-weight: 500; white-space: nowrap; flex-shrink: 0; }
html:not(.app-phone-zoom) #orderingFormSection .nf-row-v { color: var(--ink); font-weight: 700; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
  html:not(.app-phone-zoom) body:not(.dark-theme) #orderingFormSection .nf-row::before { border-bottom-width: .5px; border-bottom-color: #c6c6c8; }
}

/* ľavá karta: popis nad bunkou, biela bunka + tlačidlo s ikonou; výška ako 5 riadkov vedľa */
html:not(.app-phone-zoom) #orderingFormSection .nf-order { display: flex; flex-direction: column; justify-content: space-between; padding: 15px 18px 16px; }
html:not(.app-phone-zoom) #orderingFormSection .nf-l { display: block; margin-bottom: 7px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--lab); }
html:not(.app-phone-zoom) #orderingFormSection .nf-line { display: flex; align-items: center; gap: 8px; }
html:not(.app-phone-zoom) #orderingFormSection .nf-line > :first-child { flex: 1; min-width: 0; }
html:not(.app-phone-zoom) #orderingFormSection .client-field,
html:not(.app-phone-zoom) #orderingFormSection .nf-recipe { position: relative; display: block; }

/* biele bunky ako v tabuľke receptu */
html:not(.app-phone-zoom) #orderingFormSection #clientName,
html:not(.app-phone-zoom) #orderingFormSection #recipeName,
html:not(.app-phone-zoom) #orderingFormSection #recipeSaved, html:not(.app-phone-zoom) #orderingFormSection #recipeSavedInput {
  width: 100%; height: 40px; box-sizing: border-box; padding: 0 40px 0 12px; border: 1px solid var(--cell-bd) !important; border-radius: 10px; outline: none;
  background: var(--cell) !important; color: var(--ink) !important; box-shadow: none !important; -webkit-appearance: none; appearance: none;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; transition: border-color .2s ease, box-shadow .2s ease; }
html:not(.app-phone-zoom) #orderingFormSection #recipeName { padding-right: 12px; }
html:not(.app-phone-zoom) #orderingFormSection #clientName:hover, html:not(.app-phone-zoom) #orderingFormSection #recipeName:hover, html:not(.app-phone-zoom) #orderingFormSection #recipeSaved:hover, html:not(.app-phone-zoom) #orderingFormSection #recipeSavedInput:hover { border-color: var(--cell-bd-h) !important; }
html:not(.app-phone-zoom) #orderingFormSection #clientName:focus, html:not(.app-phone-zoom) #orderingFormSection #recipeName:focus, html:not(.app-phone-zoom) #orderingFormSection #recipeSaved:focus, html:not(.app-phone-zoom) #orderingFormSection #recipeSavedInput:focus { border-color: var(--accent) !important; box-shadow: inset 0 0 0 .5px var(--accent) !important; }
html:not(.app-phone-zoom) #orderingFormSection .client-chev-in, html:not(.app-phone-zoom) #orderingFormSection .client-edit-in { color: var(--lab); }

/* tlačidlá s ikonou */
html:not(.app-phone-zoom) #orderingFormSection .nf-ibtn,
html:not(.app-phone-zoom) #recipeEditor .nf-ibtn { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--cell-bd); border-radius: 10px;
  background: var(--cell); color: var(--ink); cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
html:not(.app-phone-zoom) #orderingFormSection .nf-ibtn:hover,
html:not(.app-phone-zoom) #recipeEditor .nf-ibtn:hover { border-color: var(--cell-bd-h); }
html:not(.app-phone-zoom) #orderingFormSection .nf-ibtn:active,
html:not(.app-phone-zoom) #recipeEditor .nf-ibtn:active { transform: scale(.95); transition-duration: .08s; }
html:not(.app-phone-zoom) #orderingFormSection .nf-ibtn.on,
html:not(.app-phone-zoom) #recipeEditor .nf-ibtn.on { border-color: var(--accent); color: var(--accent); }

/* Program length: sivá bunka s bielym posúvačom */
html:not(.app-phone-zoom) #orderingFormSection .days-seg,
html:not(.app-phone-zoom) #recipeEditor .days-seg { position: relative; display: flex; gap: 0; height: 40px; padding: 3px; box-sizing: border-box; border-radius: 10px; background: var(--track) !important; box-shadow: none !important; }
html:not(.app-phone-zoom) #orderingFormSection .days-seg > button,
html:not(.app-phone-zoom) #orderingFormSection .days-custom,
html:not(.app-phone-zoom) #recipeEditor .days-seg > button,
html:not(.app-phone-zoom) #recipeEditor .days-custom { position: relative; z-index: 1; flex: 1; border-radius: 8px; background: transparent !important; box-shadow: none !important; color: var(--ink) !important; font-size: 14px; font-weight: 600; }
html:not(.app-phone-zoom) #orderingFormSection .days-custom:not(.on),
html:not(.app-phone-zoom) #recipeEditor .days-custom:not(.on) { display: none; }
html:not(.app-phone-zoom) #orderingFormSection .nf-thumb,
html:not(.app-phone-zoom) #recipeEditor .nf-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; border-radius: 8px; background: var(--thumb); box-shadow: var(--thumb-sh); pointer-events: none;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), width .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
@media (prefers-reduced-motion: reduce) { html #orderingFormSection .nf-thumb,
html #recipeEditor .nf-thumb { transition: opacity .2s ease; } }

/* tabuľka: bez pása, tučné nadpisy nad čiarou, sivé bunky ako karty hore, preklad vľavo */
html:not(.app-phone-zoom) #orderingFormSection .table-container,
html:not(.app-phone-zoom) #recipeEditor .table-container { padding: 0 28px 34px; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section th,
html:not(.app-phone-zoom) #recipeEditor .table-section th,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section th { background: transparent !important; color: var(--ink) !important; font-size: 13px !important; font-weight: 700 !important; text-transform: none !important;
  padding: 0 6px 10px; border-radius: 0 !important; box-shadow: inset 0 -1px 0 var(--rule) !important; vertical-align: bottom; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:first-child,
html:not(.app-phone-zoom) #recipeEditor .table-section th:first-child { text-align: left; padding-left: 16px; }
html:not(.app-phone-zoom) #orderingFormSection .table-section thead tr:after,
html:not(.app-phone-zoom) #recipeEditor .table-section thead tr:after { content: none; }
html:not(.app-phone-zoom) #orderingFormSection .table-section tbody tr:first-child td,
html:not(.app-phone-zoom) #recipeEditor .table-section tbody tr:first-child td { padding-top: 10px; }
html:not(.app-phone-zoom) #orderingFormSection .table-section input[readonly],
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section input[readonly],
html:not(.app-phone-zoom) #recipeEditor .table-section input[readonly],
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section input[readonly] { background-color: var(--gray) !important; border-color: transparent !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-trans,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-trans { text-align: left; padding-left: 12px; }

/* súhrn: deliaca čiara, súčty ako text, Total order price vľavo nad sumou */
html:not(.app-phone-zoom) #orderingFormSection .footer-section { display: flex; align-items: center; justify-content: space-between; margin: 0 32px; padding: 22px 0 28px; box-shadow: inset 0 1px 0 var(--rule) !important; }
html:not(.app-phone-zoom) #orderingFormSection .nf-sum-list { display: flex; gap: 52px; }
html:not(.app-phone-zoom) #orderingFormSection .nf-sum-l { margin-bottom: 4px; font-size: 13.5px; font-weight: 500; color: var(--lab); }
html:not(.app-phone-zoom) #orderingFormSection .footer-val,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .footer-val,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .footer-val.highlight { display: block; height: auto !important; min-width: 0; padding: 0; margin: 0; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important;
  color: var(--ink) !important; font-size: 17px; font-weight: 600; line-height: 1.25 !important; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: left; }
html:not(.app-phone-zoom) #orderingFormSection .nf-total { display: flex; align-items: center; gap: 30px; }
html:not(.app-phone-zoom) #orderingFormSection .is-total { text-align: left; }
html:not(.app-phone-zoom) #orderingFormSection .is-total .footer-val { font-size: 28px !important; font-weight: 700 !important; letter-spacing: -0.025em !important; }
html:not(.app-phone-zoom) #orderingFormSection .footer-section .btn-send { height: 50px; padding: 0 32px; font-size: 16px; }

/* úpravy 21. 11.: ľavá časť bez sivej karty, na bielom; zarovnaná s výškou kariet vedľa */
html:not(.app-phone-zoom) #orderingFormSection .nf-order { background: transparent; border-radius: 0; overflow: visible; padding: 15px 0; }
html:not(.app-phone-zoom) #orderingFormSection .nf-sec:first-child .nf-title { margin-left: 0; }
html:not(.app-phone-zoom) #orderingFormSection .nf-l { margin-bottom: 8px; }
/* hlavička tabuľky: v jednom riadku, Herb name vľavo ako údaje pod ním */
html:not(.app-phone-zoom) #orderingFormSection .table-section th,
html:not(.app-phone-zoom) #recipeEditor .table-section th { white-space: nowrap !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(2),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(2) { text-align: left; padding-left: 20px; }
/* úpravy 21. 11. (2): bez nadpisu Order; ľavá časť na celú výšku (od nadpisov kariet po spodok kariet), väčšie medzery */
html:not(.app-phone-zoom) #orderingFormSection .nf-sec:first-child .nf-title { display: none; }
html:not(.app-phone-zoom) #orderingFormSection .nf-order { padding: 0 !important; }
html:not(.app-phone-zoom) #orderingFormSection .nf-l { margin-bottom: 10px; }
/* úpravy 21. 11. (3): viac miesta vodorovne medzi stĺpcami */
html:not(.app-phone-zoom) #orderingFormSection .nf-top { column-gap: 44px; }
html:not(.app-phone-zoom) #orderingFormSection .nf-line { gap: 10px; }
/* úpravy 21. 11. (4): všetky tri stĺpce rovnako široké (ľavý vrátane tlačidiel) */
html:not(.app-phone-zoom) #orderingFormSection .nf-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* úpravy 21. 11. (5): medzera medzi stĺpcami = okraj bielej karty (32 px) */
html:not(.app-phone-zoom) #orderingFormSection .nf-top { column-gap: 32px; }
/* úpravy 21. 11. (6): popisy buniek rovnaké ako nadpis sivej karty */
html:not(.app-phone-zoom) #orderingFormSection .nf-l { font-size: 14px; font-weight: 600; color: var(--lab); letter-spacing: 0; }
/* úpravy 21. 11. (7): Herb name presne nad textom v bunke (4 px bunka + 1 px okraj + 10 px odsadenie) */
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(2),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(2) { text-align: left !important; padding-left: 15px !important; }
/* úpravy 21. 11. (8): stĺpce od Daily dose po Code number rovnako široké */
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(1),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(1) { width: 22% !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(2),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(2) { width: 17% !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(n+3),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(n+3) { width: 10.166% !important; }
/* úpravy 21. 11. (9): viac miesta medzi časťami, čiara pod New order, nadpisy stĺpcov = nadpisy kariet (menšie, aby sa zmestili) */
html:not(.app-phone-zoom) #orderingFormSection .nf-head { margin: 0 32px; padding: 32px 0 26px; box-shadow: inset 0 -1px 0 var(--rule); }
html:not(.app-phone-zoom) #orderingFormSection .info-section { padding-top: 44px; padding-bottom: 64px; }
html:not(.app-phone-zoom) #orderingFormSection .table-container,
html:not(.app-phone-zoom) #recipeEditor .table-container { padding-bottom: 52px; }
html:not(.app-phone-zoom) #orderingFormSection .footer-section { padding-top: 28px; padding-bottom: 32px; }
html:not(.app-phone-zoom) #orderingFormSection .nf-title,
html:not(.app-phone-zoom) #orderingFormSection .nf-l,
html:not(.app-phone-zoom) #orderingFormSection .table-section th,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section th,
html:not(.app-phone-zoom) #recipeEditor .table-section th,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section th { font-size: 12.5px !important; font-weight: 600 !important; color: var(--lab) !important; letter-spacing: 0 !important; line-height: 18px; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(n+3),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(n+3) { padding-left: 0 !important; padding-right: 0 !important; }
/* úpravy 21. 11. (10): čiara nie pod nadpismi stĺpcov, ale nad nimi ako deliaca čiara časti (ako pod New order a nad súhrnom) */
html:not(.app-phone-zoom) #orderingFormSection .table-section th,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section th,
html:not(.app-phone-zoom) #recipeEditor .table-section th,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section th { box-shadow: none !important; }
html:not(.app-phone-zoom) #orderingFormSection .info-section { padding-bottom: 52px; }
html:not(.app-phone-zoom) #orderingFormSection .table-container,
html:not(.app-phone-zoom) #recipeEditor .table-container { position: relative; padding-top: 44px; }
html:not(.app-phone-zoom) #orderingFormSection .table-container::before,
html:not(.app-phone-zoom) #recipeEditor .table-container::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 1px; background: var(--rule); }
html:not(.app-phone-zoom) #orderingFormSection .table-section tbody tr:first-child td,
html:not(.app-phone-zoom) #recipeEditor .table-section tbody tr:first-child td { padding-top: 4px; }
/* úpravy 21. 11. (11): čiara nad tabuľkou cez celú šírku bielej karty */
html:not(.app-phone-zoom) #orderingFormSection .table-container::before,
html:not(.app-phone-zoom) #recipeEditor .table-container::before { left: 0; right: 0; }
/* úpravy 21. 11. (12): nadpisy stĺpcov bližšie k tabuľke (9 px ako nadpis karty ku karte) */
html:not(.app-phone-zoom) #orderingFormSection .table-section th,
html:not(.app-phone-zoom) #recipeEditor .table-section th { padding-bottom: 0 !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section tbody tr:first-child td,
html:not(.app-phone-zoom) #recipeEditor .table-section tbody tr:first-child td { padding-top: 1px; }
html:not(.app-phone-zoom) #orderingFormSection .table-section tbody tr:first-child td,
html:not(.app-phone-zoom) #recipeEditor .table-section tbody tr:first-child td { padding-top: 3px; }
/* úpravy 21. 11. (13): všetky deliace čiary cez celú šírku bielej karty */
html:not(.app-phone-zoom) #orderingFormSection .nf-head { margin: 0; padding-left: 32px; padding-right: 32px; }
html:not(.app-phone-zoom) #orderingFormSection .footer-section { margin: 0; padding-left: 32px; padding-right: 32px; }
/* úpravy 21. 11. (14): Herb name o 20 % užší (17 → 13,6 %), uvoľnené miesto rovnako do 6 stĺpcov vpravo */
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(2),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(2) { width: 13.6% !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(n+3),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(n+3) { width: 10.733% !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th,
html:not(.app-phone-zoom) #recipeEditor .table-section th { box-sizing: border-box; }
/* úpravy 21. 11. (15): deliace čiary ako v Order history pod nadpismi stĺpcov (1 px #e2e8f0, tmavý #3b3f49) */
html:not(.app-phone-zoom) body { --div: #e2e8f0; }
html:not(.app-phone-zoom) body.dark-theme { --div: #3b3f49; }
html:not(.app-phone-zoom) #orderingFormSection .nf-head { box-shadow: none !important; border-bottom: 1px solid var(--div); }
html:not(.app-phone-zoom) #orderingFormSection .table-container::before,
html:not(.app-phone-zoom) #recipeEditor .table-container::before { background: var(--div); }
html:not(.app-phone-zoom) #orderingFormSection .footer-section { box-shadow: none !important; border-top: 1px solid var(--div) !important; }
/* tlačidlo Send order čierne (v tmavom režime biele) */
html:not(.app-phone-zoom) #orderingFormSection .footer-section .btn-send { background: #1d1d1f !important; border-color: #1d1d1f !important; color: #fff !important; }
html:not(.app-phone-zoom) #orderingFormSection .footer-section .btn-send:hover { background: #3a3a3c !important; border-color: #3a3a3c !important; }
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .footer-section .btn-send { background: #f2f2f4 !important; border-color: #f2f2f4 !important; color: #1d1d1f !important; }
/* úpravy 21. 11. (17): Clear úplne vľavo v súhrne (vedľajšie tlačidlo: biele s okrajom, rovnako vysoké ako Send order) */
html:not(.app-phone-zoom) #orderingFormSection .nf-left { display: flex; align-items: center; gap: 44px; }
html:not(.app-phone-zoom) #orderingFormSection .footer-section .btn-clear { height: 50px; min-width: 0; padding: 0 28px; font-size: 16px; }
/* úpravy 21. 11. (18): text v bielych bunkách a v posúvači dní rovnaký ako údaje v kartách (14 px, 700, #1d1d1f) */
html:not(.app-phone-zoom) #orderingFormSection #clientName,
html:not(.app-phone-zoom) #orderingFormSection #recipeName,
html:not(.app-phone-zoom) #orderingFormSection #recipeSaved,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-dose,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-dose,
html:not(.app-phone-zoom) #orderingFormSection .days-seg > button,
html:not(.app-phone-zoom) #orderingFormSection .days-custom,
html:not(.app-phone-zoom) #orderingFormSection #numDaysCustom,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-dose,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-dose,
html:not(.app-phone-zoom) #recipeEditor .days-seg > button,
html:not(.app-phone-zoom) #recipeEditor .days-custom,
html:not(.app-phone-zoom) #recipeEditor #rxDaysCustom, html:not(.app-phone-zoom) #orderingFormSection #recipeSavedInput { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif !important; font-size: 14px !important; font-weight: 700 !important; color: var(--ink) !important; letter-spacing: 0 !important; }
/* úpravy 21. 11. (19): nadpisy Recipe a Summary rovnaké ako New order, deliaca čiara pod nimi; rovnaké odstupy pri každej časti */
html:not(.app-phone-zoom) #orderingFormSection .nf-head-sec { padding-top: 0; }
html:not(.app-phone-zoom) #orderingFormSection .table-container::before,
html:not(.app-phone-zoom) #recipeEditor .table-container::before { display: none; }
html:not(.app-phone-zoom) #orderingFormSection .footer-section { border-top: 0 !important; padding-top: 44px; padding-bottom: 40px; }
html:not(.app-phone-zoom) #orderingFormSection .footer-section { padding-top: 41px; }
/* úpravy 21. 11. (20): nadpisy časti bližšie k čiare */
html:not(.app-phone-zoom) #orderingFormSection .nf-head { padding-bottom: 14px; }
/* úpravy 21. 11. (21): popisy buniek odsadené ako nadpisy kariet – začínajú tam, kde text v bunke (1 px okraj + 12 px) */
html:not(.app-phone-zoom) #orderingFormSection .nf-l { padding-left: 13px; }
/* úpravy 21. 11. (22): veľké nadpisy Details, Recipe, Summary odsadené rovnako ako popisy (32 + 13 px) */
html:not(.app-phone-zoom) #orderingFormSection .nf-head { padding-left: 45px; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:first-child,
html:not(.app-phone-zoom) #recipeEditor .table-section th:first-child { padding-left: 17px !important; }

/* ===== text sivých buniek čierny a ľahší, čísla vpravo ===== */
/* 2: údaje v sivých bunkách tabuľky rovnako čierne ako v kartách, len ľahšie (500) */
html:not(.app-phone-zoom) #orderingFormSection .table-section input[readonly],
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section input[readonly],
html:not(.app-phone-zoom) #recipeEditor .table-section input[readonly],
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section input[readonly] { color: var(--ink) !important; font-weight: 500 !important; font-size: 14px !important; -webkit-text-fill-color: var(--ink); }
/* 4: čísla (dávka, množstvo, sklad, cena za g, cena) vpravo a s číslicami rovnakej šírky; nadpisy nad nimi tiež vpravo */
html:not(.app-phone-zoom) #orderingFormSection .table-section td:nth-child(n+3):nth-child(-n+7) input,
html:not(.app-phone-zoom) #recipeEditor .table-section td:nth-child(n+3):nth-child(-n+7) input { text-align: right !important; padding-right: 12px !important; font-variant-numeric: tabular-nums; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(n+3):nth-child(-n+7),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(n+3):nth-child(-n+7) { text-align: right !important; padding-right: 17px !important; }
html:not(.app-phone-zoom) #orderingFormSection .footer-val { font-variant-numeric: tabular-nums; }
/* 5: hláška po vymazaní s tlačidlom Undo */
.nf-undo { position: fixed; left: 50%; bottom: 76px; z-index: 99998; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 18px; border-radius: 14px;
  background: #1d1d1f; color: #fff; font: 600 14px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; box-shadow: 0 12px 32px -10px rgba(0,0,0,.45);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.nf-undo.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.nf-undo button { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: rgba(255,255,255,.16); color: #fff; font: inherit; cursor: pointer; transition: background-color .15s ease; }
.nf-undo button:hover { background: rgba(255,255,255,.26); }
.nf-undo button:active { transform: scale(.97); }
body.dark-theme .nf-undo { background: #f2f2f4; color: #1d1d1f; }
body.dark-theme .nf-undo button { background: rgba(0,0,0,.08); color: #1d1d1f; }
@media (prefers-reduced-motion: reduce) { .nf-undo { transition: opacity .2s ease; transform: translate(-50%, 0); } }

/* ===== jednotky za číslami v tabuľke (A aj B) ===== */
html:not(.app-phone-zoom) #orderingFormSection .table-section td,
html:not(.app-phone-zoom) #recipeEditor .table-section td { position: relative; }
html:not(.app-phone-zoom) #orderingFormSection .nf-unit,
html:not(.app-phone-zoom) #recipeEditor .nf-unit { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1; }
html:not(.app-phone-zoom) #orderingFormSection .nf-unit,
html:not(.app-phone-zoom) #recipeEditor .nf-unit { left: auto !important; right: 17px; font-weight: 500; }
html:not(.app-phone-zoom) #orderingFormSection .table-section td:nth-child(3) .nf-unit,
html:not(.app-phone-zoom) #recipeEditor .table-section td:nth-child(3) .nf-unit { font-weight: 700; }
html:not(.app-phone-zoom) #orderingFormSection .table-section td:nth-child(n+3):nth-child(-n+7) input,
html:not(.app-phone-zoom) #recipeEditor .table-section td:nth-child(n+3):nth-child(-n+7) input { padding-right: 30px !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section input[type=number]::-webkit-inner-spin-button,
html:not(.app-phone-zoom) #orderingFormSection .table-section input[type=number]::-webkit-outer-spin-button,
html:not(.app-phone-zoom) #recipeEditor .table-section input[type=number]::-webkit-inner-spin-button,
html:not(.app-phone-zoom) #recipeEditor .table-section input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
html.app-phone-zoom #orderingFormSection .nf-unit,
html.app-phone-zoom #recipeEditor .nf-unit { display: none !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section td:nth-child(n+3):nth-child(-n+7) input,
html:not(.app-phone-zoom) #recipeEditor .table-section td:nth-child(n+3):nth-child(-n+7) input { padding-right: 25px !important; }

/* ===== nadpisy stĺpcov vždy presne nad údajmi, aj keď je stĺpec užší ako nadpis (text môže presahovať do voľného miesta vedľa) ===== */
html:not(.app-phone-zoom) #orderingFormSection .table-section th,
html:not(.app-phone-zoom) #recipeEditor .table-section th { position: relative; height: 18px; padding-top: 0 !important; padding-bottom: 0 !important; overflow: visible !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th .nf-th,
html:not(.app-phone-zoom) #recipeEditor .table-section th .nf-th { position: absolute; bottom: 0; white-space: nowrap; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(1) .nf-th,
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(1) .nf-th { left: 17px; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(2) .nf-th,
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(2) .nf-th { left: 15px; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(n+3) .nf-th,
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(n+3) .nf-th { left: 50%; transform: translateX(-50%); }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(n+3):nth-child(-n+7) .nf-th,
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(n+3):nth-child(-n+7) .nf-th { left: auto; right: 17px; transform: none; }
html:not(.app-phone-zoom) #orderingFormSection .table-section tbody tr:first-child td,
html:not(.app-phone-zoom) #recipeEditor .table-section tbody tr:first-child td { padding-top: 5px; }

/* ===== 21. 11. (23): stĺpec Code number skrytý (údaj ostáva v pozadí); šírky: preklad 26 %, Herb name 17,33 %, 5 číselných po 11,33 % ===== */
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(8),
html:not(.app-phone-zoom) #orderingFormSection .table-section td:nth-child(8),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(8),
html:not(.app-phone-zoom) #recipeEditor .table-section td:nth-child(8) { display: none; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(1),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(1) { width: 26% !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(2),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(2) { width: 17.333% !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section th:nth-child(n+3),
html:not(.app-phone-zoom) #recipeEditor .table-section th:nth-child(n+3) { width: 11.333% !important; }

/* ===== okno kontroly objednávky: tlačidlá rovnaké ako vo formulári (Send order čierne, Back to edit ako Clear) ===== */
html #confirmModal .ro-foot .btn { height: 50px; border-radius: 999px; font-size: 16px; }
html #confirmModal .ro-foot .btn-send { background: #1d1d1f !important; border-color: #1d1d1f !important; color: #fff !important; }
html #confirmModal .ro-foot .btn-send:hover { background: #3a3a3c !important; border-color: #3a3a3c !important; }
html body.dark-theme #confirmModal .ro-foot .btn-send { background: #f2f2f4 !important; border-color: #f2f2f4 !important; color: #1d1d1f !important; }
html body.dark-theme #confirmModal .ro-foot .btn-send:hover { background: #ffffff !important; }
html #confirmModal .ro-foot .btn-clear { background: var(--ds-surface) !important; border-color: var(--ds-line) !important; color: var(--ds-ink) !important; }
html #confirmModal .ro-foot .btn-clear:hover { background: var(--ds-surface-2) !important; }
/* Undo: zaoblené tlačidlo (ako ostatné tlačidlá) */
.nf-undo button { border-radius: 999px; padding: 0 16px; }

/* ===== 21. 11. animácie ===== */
/* tlačidlá s ikonou: pri zapnutí sa ikona premení na X (otočenie + zmenšenie + prelínanie, 240 ms), bez modrého okraja */
html:not(.app-phone-zoom) #orderingFormSection .nf-ibtn.nf-morph,
html:not(.app-phone-zoom) #recipeEditor .nf-ibtn.nf-morph { position: relative; }
html:not(.app-phone-zoom) #orderingFormSection .nf-ibtn.nf-morph.on,
html:not(.app-phone-zoom) #recipeEditor .nf-ibtn.nf-morph.on { border-color: var(--cell-bd); color: var(--ink); }
html:not(.app-phone-zoom) #orderingFormSection .nf-ico,
html:not(.app-phone-zoom) #recipeEditor .nf-ico { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: opacity .18s ease, transform .24s cubic-bezier(.2,.8,.2,1); }
html:not(.app-phone-zoom) #orderingFormSection .nf-ico-x,
html:not(.app-phone-zoom) #recipeEditor .nf-ico-x { opacity: 0; transform: rotate(-90deg) scale(.5); }
html:not(.app-phone-zoom) #orderingFormSection .nf-ibtn.on .nf-ico-a,
html:not(.app-phone-zoom) #recipeEditor .nf-ibtn.on .nf-ico-a { opacity: 0; transform: rotate(90deg) scale(.5); }
html:not(.app-phone-zoom) #orderingFormSection .nf-ibtn.on .nf-ico-x,
html:not(.app-phone-zoom) #recipeEditor .nf-ibtn.on .nf-ico-x { opacity: 1; transform: none; }
/* vlastný počet dní: piaty dielik sa plynulo rozbalí aj zbalí (posúvač ide za ním) */
html:not(.app-phone-zoom) #orderingFormSection .days-seg > button,
html:not(.app-phone-zoom) #recipeEditor .days-seg > button { flex: 1 1 0; }
html:not(.app-phone-zoom) #orderingFormSection .days-custom,
html:not(.app-phone-zoom) #orderingFormSection .days-custom:not(.on),
html:not(.app-phone-zoom) #recipeEditor .days-custom,
html:not(.app-phone-zoom) #recipeEditor .days-custom:not(.on) { display: flex !important; flex: 0 1 0; min-width: 0; padding: 0; overflow: hidden; opacity: 0; pointer-events: none;
  transition: flex-grow .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
html:not(.app-phone-zoom) #orderingFormSection .days-custom.on,
html:not(.app-phone-zoom) #recipeEditor .days-custom.on { flex-grow: 1; opacity: 1; pointer-events: auto; }
html:not(.app-phone-zoom) #orderingFormSection .days-custom .days-own,
html:not(.app-phone-zoom) #recipeEditor .days-custom .days-own { display: none; }
html:not(.app-phone-zoom) #orderingFormSection .nf-thumb,
html:not(.app-phone-zoom) #recipeEditor .nf-thumb { transition: transform .32s cubic-bezier(.2,.8,.2,1), width .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
/* recept: nadpis a pole sa pri prepnutí New / Saved jemne prelnú */
@keyframes nfIn { from { opacity: 0; transform: translateY(3px); } }
html:not(.app-phone-zoom) #orderingFormSection .nf-recipe > #recipeName,
html:not(.app-phone-zoom) #orderingFormSection .nf-recipe > #recipeSavedWrap { animation: nfIn .22s cubic-bezier(.2,.8,.2,1); }
html:not(.app-phone-zoom) #orderingFormSection .nf-l.nf-swap { animation: nfIn .22s cubic-bezier(.2,.8,.2,1); }
/* jednotka g / € sa objaví jemne */
html:not(.app-phone-zoom) #orderingFormSection .nf-unit,
html:not(.app-phone-zoom) #recipeEditor .nf-unit { transition: opacity .15s ease; }
html:not(.app-phone-zoom) #orderingFormSection .nf-unit.is-hidden,
html:not(.app-phone-zoom) #recipeEditor .nf-unit.is-hidden { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html #orderingFormSection .nf-ico,
html #recipeEditor .nf-ico { transition: opacity .15s ease; transform: none !important; }
  html #orderingFormSection .days-custom, html #orderingFormSection .nf-thumb,
html #recipeEditor .days-custom,
html #recipeEditor .nf-thumb { transition: opacity .15s ease; }
  html #orderingFormSection .nf-recipe > *, html #orderingFormSection .nf-l.nf-swap { animation: none; }
}

/* ===== 21. 11. (24) animácie 1–3 ===== */
/* 1: hlásenia vpravo hore – rýchly nábeh s mäkkým dobehom a prelínanie */
html .toast { opacity: 0; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
html .toast.show { opacity: 1; }
/* 2: nový údaj klienta v kartách Billing a Delivery sa jemne prelnie */
@keyframes nfFade { from { opacity: 0; } }
html:not(.app-phone-zoom) #orderingFormSection .nf-row-v.nf-fade { animation: nfFade .18s ease-out; }
/* 3: odozva pri stlačení dielikov 3 · 7 · 10 · 14 */
html:not(.app-phone-zoom) #orderingFormSection .days-seg > button,
html:not(.app-phone-zoom) #recipeEditor .days-seg > button { transition: transform .12s ease-out, color .2s ease; }
html:not(.app-phone-zoom) #orderingFormSection .days-seg > button:active,
html:not(.app-phone-zoom) #recipeEditor .days-seg > button:active { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) {
  html .toast { transition: opacity .2s ease; }
  html #orderingFormSection .nf-row-v.nf-fade { animation: none; }
  html #orderingFormSection .days-seg > button:active,
html #recipeEditor .days-seg > button:active { transform: none; }
}

/* ===== orámovanie: zapnuté tlačidlo s ikonou ostáva sivé; Herb name a Daily dose ako New recipe ===== */
html:not(.app-phone-zoom) #orderingFormSection .nf-ibtn.on,
html:not(.app-phone-zoom) #orderingFormSection .nf-ibtn.nf-morph.on,
html:not(.app-phone-zoom) #recipeEditor .nf-ibtn.on,
html:not(.app-phone-zoom) #recipeEditor .nf-ibtn.nf-morph.on { border-color: var(--cell-bd); box-shadow: none; color: var(--ink); }
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-dose,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-dose,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-dose,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-dose { border: 1px solid var(--cell-bd) !important; border-radius: 10px !important; background: var(--cell) !important; box-shadow: none !important; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name:hover,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-dose:hover,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name:hover,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-dose:hover,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name:hover,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-dose:hover,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name:hover,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-dose:hover { border-color: var(--cell-bd-h) !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name:focus,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-dose:focus,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name:focus,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-dose:focus,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name:focus,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-dose:focus,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name:focus,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-dose:focus { border-color: var(--accent) !important; box-shadow: inset 0 0 0 .5px var(--accent) !important; }

/* ===== okno New / Edit client: súhlas iba po anglicky (bežné písmo), hlavné tlačidlo čierne ===== */
html #newClientConsentWrap label { font-style: normal; }
html #addClientModal .cm-btn-primary { background: #1d1d1f !important; border-color: #1d1d1f !important; color: #fff !important; }
html #addClientModal .cm-btn-primary:hover { background: #3a3a3c !important; border-color: #3a3a3c !important; }
html body.dark-theme #addClientModal .cm-btn-primary { background: #f2f2f4 !important; border-color: #f2f2f4 !important; color: #1d1d1f !important; }

/* ===== 21. 11. (25) animácie 4–5 ===== */
/* 4: zoznam rastie z bunky (origin-aware): nadol zhora, nahor zdola */
@keyframes nfPopDown { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes nfPopUp { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
html .oc-pop.nf-pop-down { animation: nfPopDown .18s cubic-bezier(.2,.8,.2,1); }
html .oc-pop.nf-pop-up { animation: nfPopUp .18s cubic-bezier(.2,.8,.2,1); }
/* 5: nový riadok tabuľky – fade in */
@keyframes nfRowIn { from { opacity: 0; transform: translateY(-4px); } }
html:not(.app-phone-zoom) #herbsBody tr.nf-row-in > td,
html:not(.app-phone-zoom) #rxBody tr.nf-row-in > td { animation: nfRowIn .24s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) {
  html .oc-pop.nf-pop-down, html .oc-pop.nf-pop-up { animation: nfFade .15s ease-out; }
  html #herbsBody tr.nf-row-in > td,
html #rxBody tr.nf-row-in > td { animation: none; }
}

/* ===== 21. 11. (27) odoslanie objednávky: pôvodný vzhľad (tmavé priehľadné pozadie), doladená iba animácia =====
   kruh sa pri úspechu nezastaví zväčšený (predtým ostal na 115 %), jemne dosadne; fajka sa nakreslí zľava doprava namiesto vyskočenia z nuly */
@keyframes nfOkPop { 0% { transform: scale(.88); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes nfOkDraw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
html #overlay-loading .spinner.success { transform: none; animation: nfOkPop .42s cubic-bezier(.2,.8,.2,1); }
html #overlay-loading .spinner.success::after { transform: translate(-50%, -50%); clip-path: inset(0 100% 0 0); animation: nfOkDraw .32s cubic-bezier(.4,0,.2,1) .14s forwards; }
html #loading-text { transition: opacity .18s ease; }
@media (prefers-reduced-motion: reduce) {
  html #overlay-loading .spinner.success { animation: none; }
  html #overlay-loading .spinner.success::after { animation: none; clip-path: none; }
}

/* ===== 21. 11. (28) jednotné objavenie údajov (klient v kartách, bylina v tabuľke, jednotky g / €):
   text sa vynorí z jemného rozmazania – rovnaká dĺžka 0,32 s a krivka pre všetko ===== */
@keyframes nfValIn { from { color: transparent; -webkit-text-fill-color: transparent; text-shadow: 0 0 7px rgba(120,120,128,.55); } }
html:not(.app-phone-zoom) #orderingFormSection .nf-in { animation: nfValIn .24s cubic-bezier(.2,.8,.2,1); }
html:not(.app-phone-zoom) #orderingFormSection .nf-row-v.nf-fade { animation: none; }
html:not(.app-phone-zoom) #orderingFormSection .nf-unit,
html:not(.app-phone-zoom) #recipeEditor .nf-unit { transition: none; }
html:not(.app-phone-zoom) #orderingFormSection .nf-unit.is-hidden,
html:not(.app-phone-zoom) #recipeEditor .nf-unit.is-hidden { opacity: 0; }
@media (prefers-reduced-motion: reduce) { html #orderingFormSection .nf-in { animation: nfFade .15s ease-out; } }

/* ===== 21. 11. (29) načítavanie po odoslaní: rovnaký vzhľad, plynulejší pohyb =====
   závoj sa objaví rýchlo (0,2 s ease-out) a odíde ešte rýchlejšie (0,18 s); krúžok s textom pri príchode jemne dosadnú (96 % → 100 %),
   pri odchode sa mierne zmenšia; scale je samostatná vlastnosť, takže neruší otáčanie krúžku */
html #overlay-loading { transition: opacity .18s ease-out, visibility .18s; }
html #overlay-loading.active { transition: opacity .2s ease-out, visibility 0s; }
html #overlay-loading > .spinner, html #overlay-loading > #loading-text { scale: .96; transition-property: scale, opacity, background-color, border-color; transition-duration: .28s, .16s, .3s, .3s; transition-timing-function: cubic-bezier(.2,.8,.2,1), ease, ease, ease; }
html #overlay-loading.active > .spinner, html #overlay-loading.active > #loading-text { scale: 1; }
html #overlay-loading > #loading-text { transition-duration: .28s, .16s, 0s, 0s; }
@media (prefers-reduced-motion: reduce) { html #overlay-loading > .spinner, html #overlay-loading > #loading-text { scale: 1; transition: opacity .15s ease; } }

/* ===== 21. 11. (30) doplnené hodnoty (klient, bylina, jednotky) sa zobrazia okamžite, bez animácie ===== */
html #orderingFormSection .nf-in, html #orderingFormSection .nf-row-v.nf-fade { animation: none !important; }

/* ===== 21. 11. (31) fajka po odoslaní: skutočné kreslenie čiary (line drawing) – najprv krátke rameno nadol, potom dlhé nahor,
   ako perom; pero na začiatku zrýchli a na konci spomalí. Tvar, farba a hrúbka sú pôvodné. ===== */
html #overlay-loading .spinner.success::after { content: none; }
html #overlay-loading .nf-check { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); opacity: 0; overflow: visible; }
html #overlay-loading .nf-check polyline { stroke-dasharray: 24; stroke-dashoffset: 24; }
html #overlay-loading .spinner.success .nf-check { opacity: 1; }
html #overlay-loading .spinner.success .nf-check polyline { animation: nfCkDraw .42s cubic-bezier(.45,0,.2,1) .16s forwards; }
@keyframes nfCkDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { html #overlay-loading .spinner.success .nf-check polyline { animation: none; stroke-dashoffset: 0; } }

/* ===== 21. 11. (32) správy vpravo hore – návrh 3 (biela karta s ikonou a časovou čiarou) ===== */
html .toast.nf-toast { position: relative; overflow: hidden; display: flex; align-items: center; gap: 11px; width: auto; min-width: 280px; max-width: 380px; margin: 0 0 8px auto;
  padding: 13px 16px 15px 13px; border: 0 !important; border-left: 0 !important; border-radius: 14px; background: #fff !important; color: #1d1d1f !important;
  box-shadow: 0 0 0 1px #e2e8f0, 0 12px 28px -12px rgba(0,0,0,.25) !important; font: 600 14px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; letter-spacing: -0.005em;
  transform: translateY(-8px) scale(.98); opacity: 0; transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
html .toast.nf-toast.show { transform: none; opacity: 1; }
html .toast.nf-toast.nt-out { transform: translateY(-6px) scale(.98); opacity: 0; transition-duration: .22s, .18s; }
html body.dark-theme .toast.nf-toast { background: #2c2f37 !important; color: #f2f2f4 !important; box-shadow: 0 0 0 1px #3b3f49, 0 12px 28px -12px rgba(0,0,0,.6) !important; }
html .nf-toast .nt-ico { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
html .nf-toast .nt-ico svg { width: 13px; height: 13px; }
html .nf-toast .nt-tx { min-width: 0; }
html .nf-toast .nt-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; }
html .nf-toast.show .nt-bar { animation: ntBar var(--dur) linear forwards; }
@keyframes ntBar { to { transform: scaleX(0); } }
html .nt-ok .nt-ico, html .nt-ok .nt-bar { background: #34c759; }
html .nt-bad .nt-ico, html .nt-bad .nt-bar { background: #ff3b30; }
html .nt-warn .nt-ico, html .nt-warn .nt-bar { background: #ff9500; }
html .nt-info .nt-ico, html .nt-info .nt-bar { background: #0071e3; }
@media (prefers-reduced-motion: reduce) { html .toast.nf-toast, html .toast.nf-toast.nt-out { transform: none; transition: opacity .2s ease; } }

/* ===== 21. 11. (33) ===== */
/* fajka po odoslaní: presne v strede kruhu (obrys fajky je vycentrovaný na stred 24 × 24) */
html #overlay-loading .nf-check polyline { stroke-dasharray: 23; stroke-dashoffset: 23; }
/* správy vpravo hore: zmiznú ako na Macu – jemne sa rozmažú, zmenšia a stratia (blur out) */
html .toast.nf-toast.nt-out { opacity: 0; filter: blur(8px); transform: scale(.96); transform-origin: top right;
  transition: opacity .38s ease, filter .38s ease, transform .4s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) { html .toast.nf-toast.nt-out { filter: none; transform: none; transition: opacity .2s ease; } }
/* horná lišta: nápis Ordering System čierny (v tmavom režime biely) */
html .app-nav .product { color: #1d1d1f !important; }
html body.dark-theme .app-nav .product { color: #f2f2f4 !important; }
/* odchod správy: časová čiara ostane prázdna (nevráti sa celá) */
html .toast.nf-toast.show.nt-out { opacity: 0; filter: blur(8px); transform: scale(.96); }

/* ===== v14.09 + v14.32: nadpisy častí ako Order history – bez deliacej čiary, pod nadpisom bližšie k obsahu
   (rovnako nízko nad sekciou ako New order nad okrajom karty), nad nadpisom väčšia medzera; písmo 24 px / 700 ===== */
html:not(.app-phone-zoom) #orderingFormSection .nf-head { border-bottom: 0 !important; box-shadow: none !important; padding: 25px 32px 0 32px; }
html:not(.app-phone-zoom) #orderingFormSection .nf-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 28px; }
html:not(.app-phone-zoom) #orderingFormSection .nf-head-sec { padding-top: 72px; }
html:not(.app-phone-zoom) #orderingFormSection .table-container + .nf-head-sec,
html:not(.app-phone-zoom) #recipeEditor .table-container + .nf-head-sec { padding-top: 62px; } /* tabuľka má pod posledným riadkom 10 px (6 px border-spacing + 4 px td padding) */
/* v14.88: medzera nad Recipe a Summary 44 px (z 72/68, vybrané z porovnania); pod posledným riadkom tabuľky je 6 px skrytý okraj, preto 38 px */
html:not(.app-phone-zoom) #orderingFormSection .nf-head-sec { padding-top: 44px; }
html:not(.app-phone-zoom) #orderingFormSection .table-container + .nf-head-sec { padding-top: 38px; }
html:not(.app-phone-zoom) #orderingFormSection .info-section { padding-top: 15px; padding-bottom: 0; }
html:not(.app-phone-zoom) #orderingFormSection .table-container,
html:not(.app-phone-zoom) #recipeEditor .table-container { padding-top: 9px; padding-bottom: 0; }
html:not(.app-phone-zoom) #orderingFormSection .footer-section { border-top: 0 !important; padding-top: 14px; padding-bottom: 36px; }
/* Order history: nadpis rovnako tučný ako nové nadpisy */
#historyContainer .hist-title { font-weight: 700 !important; letter-spacing: -0.02em; }

/* ===== v14.10: okraje – nadpisy častí na hrane polí (32 px od okraja karty); Order history súmerné, zľava aj sprava 32 px
   (nadpis, stĺpce, riadky, „Showing…“; vyhľadávanie, tri bodky a stránkovanie končia na hrane Send order). Telefón bez zmeny. ===== */
html:not(.app-phone-zoom) #historyContainer .header-with-search { padding-left: 32px !important; padding-right: 32px !important; }
html:not(.app-phone-zoom) #historyContainer .history-table th:first-child,
html:not(.app-phone-zoom) #historyContainer .history-row td:first-child { padding-left: 32px; }
html:not(.app-phone-zoom) #historyContainer .history-row td.hist-more-cell { padding-right: 32px; }
html:not(.app-phone-zoom) #historyContainer .history-pagination-footer { padding-left: 32px; padding-right: 32px; }

/* ===== v14.12: všetky tmavomodré tlačidlá čierne ako Send order (New recipe, New client, Save recipe, Import; tmavý režim: svetlé s čiernym textom).
   Hlavné tlačidlá btn-send a Add Client menia farbu cez --ds-pri v index.css. ===== */
html .dx-btn.primary { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
html .dx-btn.primary:hover { background: #3a3a3c; border-color: #3a3a3c; }
html body.dark-theme .dx-btn.primary { background: #f2f2f4; border-color: #f2f2f4; color: #1d1d1f; }
html body.dark-theme .dx-btn.primary:hover { background: #ffffff; border-color: #ffffff; }

/* ===== v14.13: prepínač New / Saved recipes – vybraná voľba (New) čiernym textom namiesto tmavomodrého (tmavý režim bez zmeny) ===== */
html body:not(.dark-theme) .recipe-mode button.on { color: #1d1d1f; }

/* v14.16: Delivery details – bez poznámky sivé „None“ (ako názvy riadkov) */
html:not(.app-phone-zoom) #orderingFormSection .nf-row-v.nf-none { color: var(--lab); font-weight: 600; }
/* v14.16 (variant 1B): Program length ako ostatné polia – biele s rámčekom; zvolený deň svetlomodrý s modrým číslom ako New order v lište */
html:not(.app-phone-zoom) #orderingFormSection .days-seg,
html:not(.app-phone-zoom) #recipeEditor .days-seg { background: var(--cell) !important; border: 1px solid var(--cell-bd) !important; }
html:not(.app-phone-zoom) #orderingFormSection .nf-thumb,
html:not(.app-phone-zoom) #recipeEditor .nf-thumb { border-radius: 7px; background: var(--sel-bg, #e8f1fd); box-shadow: none; }
html:not(.app-phone-zoom) #orderingFormSection .days-seg > button.on,
html:not(.app-phone-zoom) #orderingFormSection .days-custom.on #numDaysCustom,
html:not(.app-phone-zoom) #recipeEditor .days-seg > button.on,
html:not(.app-phone-zoom) #recipeEditor .days-custom.on #rxDaysCustom { color: var(--sel-fg, #0071e3) !important; -webkit-text-fill-color: var(--sel-fg, #0071e3); }

/* Send order: kým nie je zvolený klient a aspoň jedna bylina s dávkou, je sivé (neaktívne); po vyplnení plynulo stmavne */
html:not(.app-phone-zoom) #orderingFormSection .footer-section .btn-send { transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .1s ease; }
html:not(.app-phone-zoom) #orderingFormSection .footer-section .btn-send.nf-idle,
html:not(.app-phone-zoom) #orderingFormSection .footer-section .btn-send.nf-idle:hover { background: #e8e8ed !important; border-color: #e8e8ed !important; color: #8e8e93 !important; cursor: default; }
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .footer-section .btn-send.nf-idle,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .footer-section .btn-send.nf-idle:hover { background: #3a3a3c !important; border-color: #3a3a3c !important; color: #8e8e93 !important; }

/* ===== v14.33–v14.34: poistka duplicitných bylín (Apple System Red #FF3B30) + čierny text + mäkký focus ring + inline ikona s tooltipom „Duplicate herb“ + vypnutie Send order ===== */
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name.duplicate-error,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name.invalid-error,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-dose.duplicate-error,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-stock.duplicate-error,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name.duplicate-error,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name.invalid-error,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-dose.duplicate-error,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-stock.duplicate-error {
  border: 1px solid rgba(255, 59, 48, 0.65) !important;
  background: rgba(255, 59, 48, 0.05) !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
  box-shadow: none !important;
}
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name.duplicate-error,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name.duplicate-error { padding-right: 32px !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name.duplicate-error:hover,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name.invalid-error:hover,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-dose.duplicate-error:hover,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name.duplicate-error:hover,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name.invalid-error:hover,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-dose.duplicate-error:hover { border-color: rgba(255, 59, 48, 0.85) !important; }
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name.duplicate-error:focus,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name.duplicate-error[aria-expanded="true"],
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name.invalid-error:focus,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name.invalid-error[aria-expanded="true"],
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-dose.duplicate-error:focus,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name.duplicate-error:focus,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name.duplicate-error[aria-expanded="true"],
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name.invalid-error:focus,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name.invalid-error[aria-expanded="true"],
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-dose.duplicate-error:focus {
  border-color: #ff3b30 !important;
  box-shadow: inset 0 0 0 .5px #ff3b30 !important;
}
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name.duplicate-error,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name.invalid-error,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-dose.duplicate-error,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-stock.duplicate-error,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name.duplicate-error,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name.invalid-error,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-dose.duplicate-error,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-stock.duplicate-error {
  border: 1px solid rgba(255, 69, 58, 0.72) !important;
  background: rgba(255, 69, 58, 0.10) !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
  box-shadow: none !important;
}
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name.duplicate-error:hover,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name.invalid-error:hover,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-dose.duplicate-error:hover,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name.duplicate-error:hover,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name.invalid-error:hover,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-dose.duplicate-error:hover { border-color: rgba(255, 69, 58, 0.9) !important; }
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name.duplicate-error:focus,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name.duplicate-error[aria-expanded="true"],
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name.invalid-error:focus,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-name.invalid-error[aria-expanded="true"],
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .table-section .h-dose.duplicate-error:focus,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name.duplicate-error:focus,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name.duplicate-error[aria-expanded="true"],
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name.invalid-error:focus,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-name.invalid-error[aria-expanded="true"],
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .table-section .rx-dose.duplicate-error:focus {
  border-color: #ff453a !important;
  box-shadow: inset 0 0 0 .5px #ff453a !important;
}
html:not(.app-phone-zoom) #orderingFormSection .nf-dup-ico,
html:not(.app-phone-zoom) #recipeEditor .nf-dup-ico {
  position: absolute; top: 50%; right: 13px; transform: translateY(-50%);
  width: 16px; height: 16px; display: none; align-items: center; justify-content: center;
  color: #ff3b30; z-index: 5; cursor: default;
}
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .nf-dup-ico,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .nf-dup-ico { color: #ff453a; }
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name.duplicate-error ~ .nf-dup-ico,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name.duplicate-error ~ .nf-dup-ico { display: inline-flex; }
html.app-phone-zoom #orderingFormSection .nf-dup-ico,
html.app-phone-zoom #recipeEditor .nf-dup-ico { display: none !important; }
html:not(.app-phone-zoom) #orderingFormSection .nf-dup-ico::after,
html:not(.app-phone-zoom) #recipeEditor .nf-dup-ico::after {
  content: attr(data-tip); position: absolute; right: -4px; bottom: calc(100% + 7px);
  padding: 5px 9px; border-radius: 7px; background: #1d1d1f; color: #fff;
  font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0; transform: translateY(3px);
  transition: opacity .15s ease, transform .15s ease;
}
html:not(.app-phone-zoom) #orderingFormSection .nf-dup-ico:hover::after,
html:not(.app-phone-zoom) #recipeEditor .nf-dup-ico:hover::after { opacity: 1; transform: translateY(0); }
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .nf-dup-ico::after,
html:not(.app-phone-zoom) body.dark-theme #recipeEditor .nf-dup-ico::after {
  background: #f2f2f4; color: #1d1d1f; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
@media (prefers-reduced-motion: reduce) {
  html #orderingFormSection .nf-dup-ico::after,
html #recipeEditor .nf-dup-ico::after { transition: opacity .12s ease; transform: none !important; }
}
html:not(.app-phone-zoom) #orderingFormSection .footer-section .btn-send:disabled,
html:not(.app-phone-zoom) #orderingFormSection .footer-section .btn-send:disabled:hover,
html:not(.app-phone-zoom) #orderingFormSection .footer-section .btn-send:disabled:active {
  background: #e8e8ed !important; border-color: #e8e8ed !important; color: #8e8e93 !important;
  cursor: not-allowed !important; transform: none !important;
}
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .footer-section .btn-send:disabled,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .footer-section .btn-send:disabled:hover,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection .footer-section .btn-send:disabled:active {
  background: #3a3a3c !important; border-color: #3a3a3c !important; color: #8e8e93 !important;
  cursor: not-allowed !important; transform: none !important;
}

/* ===== v14.37: jemná šípka v poli Herb name po prejdení myšou (rovnaká ako v Client name; pri duplicite sa skryje) ===== */
html:not(.app-phone-zoom) #orderingFormSection .nf-chev-ico,
html:not(.app-phone-zoom) #recipeEditor .nf-chev-ico {
  position: absolute; top: 50%; right: 13px; transform: translateY(-50%);
  width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--lab); pointer-events: none; opacity: 0; transition: opacity .15s ease;
}
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name:not(.duplicate-error):hover ~ .nf-chev-ico,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name:not(.duplicate-error)[aria-expanded="true"] ~ .nf-chev-ico,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name:not(.duplicate-error):hover ~ .nf-chev-ico,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name:not(.duplicate-error)[aria-expanded="true"] ~ .nf-chev-ico { opacity: 1; }
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name:not(.duplicate-error):hover,
html:not(.app-phone-zoom) #orderingFormSection .table-section .h-name:not(.duplicate-error)[aria-expanded="true"],
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name:not(.duplicate-error):hover,
html:not(.app-phone-zoom) #recipeEditor .table-section .rx-name:not(.duplicate-error)[aria-expanded="true"] { padding-right: 32px !important; }
html.app-phone-zoom #orderingFormSection .nf-chev-ico,
html.app-phone-zoom #recipeEditor .nf-chev-ico { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html #orderingFormSection .nf-chev-ico,
html #recipeEditor .nf-chev-ico { transition: none; }
}

/* ===== Daily dose: šípky ±0,1 g (v14.54, variant A4) – iba pri písaní, na mieste jednotky g ===== */
html:not(.app-phone-zoom) #orderingFormSection .nf-step,
html:not(.app-phone-zoom) #recipeEditor .nf-step { position: absolute; top: 50%; right: var(--nf-step-r, 10px); height: 30px; width: 18px; margin-top: -15px; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
html:not(.app-phone-zoom) #orderingFormSection td:focus-within > .nf-step,
html:not(.app-phone-zoom) #orderingFormSection td:hover > .nf-step,
html:not(.app-phone-zoom) #recipeEditor td:focus-within > .nf-step,
html:not(.app-phone-zoom) #recipeEditor td:hover > .nf-step { opacity: 1; pointer-events: auto; }
html:not(.app-phone-zoom) #orderingFormSection td:hover > .nf-step ~ .nf-unit, html:not(.app-phone-zoom) #orderingFormSection td:hover > .nf-unit:has(~ .nf-step),
html:not(.app-phone-zoom) #recipeEditor td:hover > .nf-step ~ .nf-unit,
html:not(.app-phone-zoom) #recipeEditor td:hover > .nf-unit:has(~ .nf-step) { opacity: 0; } /* pri prejdení myšou šípky namiesto g (v14.55) */
html:not(.app-phone-zoom) #orderingFormSection .nf-step button,
html:not(.app-phone-zoom) #recipeEditor .nf-step button { flex: 1; width: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--lab); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .12s ease, color .12s ease, transform .1s ease; }
html:not(.app-phone-zoom) #orderingFormSection .nf-step button:hover,
html:not(.app-phone-zoom) #recipeEditor .nf-step button:hover { color: var(--ink); background: var(--gray); }
html:not(.app-phone-zoom) #orderingFormSection .nf-step button:active,
html:not(.app-phone-zoom) #recipeEditor .nf-step button:active { transform: scale(.9); background: var(--track); }
html:not(.app-phone-zoom) #orderingFormSection .h-dose.nf-bump-up,
html:not(.app-phone-zoom) #recipeEditor .rx-dose.nf-bump-up { animation: nfBumpUp .18s ease-out; }
html:not(.app-phone-zoom) #orderingFormSection .h-dose.nf-bump-dn,
html:not(.app-phone-zoom) #recipeEditor .rx-dose.nf-bump-dn { animation: nfBumpDn .18s ease-out; }
@keyframes nfBumpUp { 40% { transform: translateY(-2px); } }
@keyframes nfBumpDn { 40% { transform: translateY(2px); } }
html.app-phone-zoom #orderingFormSection .nf-step,
html.app-phone-zoom #recipeEditor .nf-step { display: none !important; }
@media (prefers-reduced-motion: reduce) { html:not(.app-phone-zoom) #orderingFormSection .h-dose.nf-bump-up, html:not(.app-phone-zoom) #orderingFormSection .h-dose.nf-bump-dn,
html:not(.app-phone-zoom) #recipeEditor .rx-dose.nf-bump-up,
html:not(.app-phone-zoom) #recipeEditor .rx-dose.nf-bump-dn { animation: none; } }

/* ===== Clear / Send order: hodnoty v riadkoch sa najprv vytratia (v14.57, animácia 4) ===== */
html:not(.app-phone-zoom) #orderingFormSection #herbsBody.nf-erasing input,
html:not(.app-phone-zoom) #recipeEditor #rxBody.nf-erasing input { transition: color .16s ease, -webkit-text-fill-color .16s ease !important; color: transparent !important; -webkit-text-fill-color: transparent !important; }
html:not(.app-phone-zoom) #orderingFormSection #herbsBody.nf-erasing .nf-unit,
html:not(.app-phone-zoom) #orderingFormSection #herbsBody.nf-erasing .nf-dup-ico,
html:not(.app-phone-zoom) #orderingFormSection #herbsBody.nf-erasing .nf-step,
html:not(.app-phone-zoom) #recipeEditor #rxBody.nf-erasing .nf-unit,
html:not(.app-phone-zoom) #recipeEditor #rxBody.nf-erasing .nf-dup-ico,
html:not(.app-phone-zoom) #recipeEditor #rxBody.nf-erasing .nf-step { opacity: 0 !important; transition: opacity .16s ease !important; }
html:not(.app-phone-zoom) #orderingFormSection #herbsBody tr.nf-ghost,
html:not(.app-phone-zoom) #recipeEditor #rxBody tr.nf-ghost { pointer-events: none; }
/* v14.89: výzvy v prázdnych poliach sivé a bežnou hrúbkou (ako popisy v kartách), nie čierne tučné ako vyplnená hodnota.
   Client name: výzva ostane aj s kurzorom, zmizne až pri písaní. Saved recipe (výberový zoznam): sivá, kým sa nevyberie recept. */
html:not(.app-phone-zoom) #orderingFormSection #clientName::placeholder { color: var(--lab); font-weight: 500; opacity: 1; }
/* v14.90: Saved recipe je pole na písanie s vyhľadávaním (ako Client name); pôvodný <select> ostáva skrytý ako nosič hodnoty.
   Sivé výzvy v prázdnych poliach Client name, Saved recipe aj New recipe – ostanú aj s kurzorom, zmiznú až pri písaní. */
#recipeSaved { display: none !important; }
html:not(.app-phone-zoom) #orderingFormSection #recipeSavedInput::placeholder,
html:not(.app-phone-zoom) #orderingFormSection #recipeName::placeholder { color: var(--lab); font-weight: 500; opacity: 1; }
/* v14.92: výzvy v poliach svetlejšie ako popisy nad poľami (Apple: tretí stupeň sivej), bežná hrúbka */
html:not(.app-phone-zoom) #orderingFormSection #clientName::placeholder,
html:not(.app-phone-zoom) #orderingFormSection #recipeSavedInput::placeholder,
html:not(.app-phone-zoom) #orderingFormSection #recipeName::placeholder { color: #aeaeb2; font-weight: 400; opacity: 1; }
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection #clientName::placeholder,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection #recipeSavedInput::placeholder,
html:not(.app-phone-zoom) body.dark-theme #orderingFormSection #recipeName::placeholder { color: #6e6e73; }
/* v14.96: tlačidlo Clear sa po kliknutí zmení na Undo s modrým rámom ako odpočet (namiesto bubliny Form cleared) */
#orderingFormSection .btn-clear.nf-cbtn { position: relative; overflow: visible; }
#orderingFormSection .nf-cl { display: inline-block; transition: opacity .18s ease, transform .28s cubic-bezier(.2,.8,.2,1); }
#orderingFormSection .nf-cl-u { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--accent, #0071e3); opacity: 0; transform: translateY(8px); pointer-events: none; }
#orderingFormSection .nf-undo-on .nf-cl-c { opacity: 0; transform: translateY(-8px); }
#orderingFormSection .nf-undo-on .nf-cl-u { opacity: 1; transform: none; }
#orderingFormSection .nf-cring { position: absolute; left: -1px; top: -1px; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
#orderingFormSection .nf-cring path { fill: none; stroke: var(--accent, #0071e3); stroke-width: 2; stroke-linecap: round; }
#orderingFormSection .nf-undo-on .nf-cring { opacity: 1; transition: none; }
body.dark-theme #orderingFormSection .nf-cl-u, body.dark-theme #orderingFormSection .nf-cring path { color: #0a84ff; stroke: #0a84ff; }
@media (prefers-reduced-motion: reduce) { #orderingFormSection .nf-cl { transition: opacity .2s ease; transform: none !important; } }
/* sivý okraj tlačidla ostáva aj počas odpočtu, modrý rám ubúda po ňom */

/* úprava objednávky na mieste (v15.87, vzhľad v15.96): sivá karta ako karty Billing a Delivery (bez modrej, tá je iba pre označené),
   vľavo ceruzka v sivom kruhu, nadpis a vysvetlenie pod ním, vpravo Discard changes ako vedľajšie tlačidlo dizajnového systému */
#orderingFormSection .oe-bar { display: flex; align-items: center; gap: 14px; margin: 24px 32px 0; padding: 14px 14px 14px 16px;
  border-radius: 16px; background: var(--gray, #f5f5f7); color: var(--ink, #1d1d1f); animation: oe-in .26s cubic-bezier(.2,.8,.2,1) both; }
#orderingFormSection .oe-bar[hidden] { display: none; }
#orderingFormSection .oe-ico { flex: 0 0 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--track, #e8e8ed); color: var(--ink, #1d1d1f); }
#orderingFormSection .oe-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#orderingFormSection .oe-txt b { font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
#orderingFormSection .oe-txt span { font-size: 13.5px; line-height: 1.4; color: var(--lab, #86868b); }
#orderingFormSection .oe-bar .oe-discard { flex-shrink: 0; margin: 0; }
html.order-editing #clientName[readonly] { cursor: default; }
@keyframes oe-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #orderingFormSection .oe-bar { animation: none; } }
