/* options.css: the option row, the option group and the jump chips (options redesign stage 2, 16 Nov 2026; own sheet because app.css is at its byte budget).
   Tokens only (--card --bg --ink --muted --line --field --navy-3 --navy-soft --gold --gold-2 --gold-soft --bad), so PosMasr, CreekPOS, the quiet look and the dark look follow with no colour of their own.
   Logical properties only: the same rules serve left-to-right and right-to-left. Prefix o- keeps it clear of every older class. */
.oi{width:22px;height:22px;flex:none}.oi.sm{width:18px;height:18px}.oi.xs{width:14px;height:14px;vertical-align:-2px}
.oi{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* jump chips */
.o-chips{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 18px}
.o-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--ink);text-decoration:none;font-size:13.5px;font-weight:700}
.o-chip:hover,.o-chip:focus-visible{border-color:var(--gold-2,var(--navy-3))}
/* group card: sticker (or icon) in the header, big quiet title */
.card.o-grp{padding:0;overflow:hidden;scroll-margin-top:72px}
.o-gh{display:flex;align-items:center;gap:16px;padding:14px 20px 12px;border-bottom:1px solid var(--line);background:linear-gradient(var(--card),var(--bg))}
.o-gh h2{margin:0;font-size:21px;line-height:1.25}.o-gh p{margin:2px 0 0;font-size:14px}
.o-gh .art{width:72px;height:72px;object-fit:contain;flex:none;margin:-4px 0}
.o-gic{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:16px;background:var(--navy-soft);color:var(--navy-3);flex:none}
.card.o-grp>.o-row,.card.o-grp>.o-extra,.card.o-grp>form>.o-row,.card.o-grp>form>.o-extra{margin-inline:20px}
.card.o-grp>:last-child,.card.o-grp>form>:last-child{margin-bottom:16px}
.card.o-grp>.actions,.card.o-grp>form>.actions{margin-inline:20px}
.o-gh+form>.o-row:first-child{border-top:0}
/* option row: icon | text | control; the control always in one column at the end */
.o-row{display:grid;grid-template-columns:42px minmax(0,1fr) auto;column-gap:16px;align-items:center;padding:16px 0;border-top:1px solid var(--line)}
.o-gh+.o-row{border-top:0}
.o-row[hidden]{display:none}
/* a wide field (a name, a barcode, a description): the control goes under the text across the row */
.o-row.wide .o-ctl{grid-column:1/-1;justify-content:stretch;margin-top:8px}
.o-row.wide .o-ctl>*{flex:1 1 auto;min-width:0}
.o-row.wide .o-num{width:100%}.o-row.wide .o-num input{width:100%;text-align:start;direction:inherit;padding-inline-end:12px}
.o-row.wide .o-ctl .row{width:100%}.o-row.wide .o-ctl .row input{flex:1 1 120px;min-width:0}
@media (min-width:761px){.pgrid{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:start}}
.o-num input[type=date]{width:auto;text-align:start;direction:inherit;padding-inline-end:12px}
.o-row.no-ic{grid-template-columns:minmax(0,1fr) auto}
.o-ic{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--navy-soft);color:var(--navy-3);flex:none}
.o-txt{min-width:0;display:flex;flex-direction:column;gap:3px}
.o-name{font-size:16px;font-weight:800;line-height:1.35;display:block;margin:0}
.o-txt{position:relative}.o-txt .o-name{padding-inline-end:30px}
.o-help{position:absolute;inset-block-start:0;inset-inline-end:0;display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;border:1px solid var(--line);background:var(--card);color:var(--navy-3);font-size:13px;font-weight:800;line-height:1;text-decoration:none}
.o-help:hover,.o-help:focus-visible{border-color:var(--gold-2,var(--navy-3));color:var(--ink,var(--navy-3))}
.o-why{font-size:14px;line-height:1.5;color:var(--muted);max-width:62ch}
.o-ex{font-size:13px;line-height:1.45;color:var(--muted);font-style:italic;max-width:62ch}
.o-ctl{display:flex;justify-content:flex-end;align-items:center;min-width:64px}
.o-row.locked .o-ic{opacity:.55}.o-row.locked .o-name{color:var(--muted)}
.o-lockline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px;font-size:13px}
.o-lockline .badge{display:inline-flex;align-items:center;gap:5px;text-decoration:none}
.o-row.block{grid-template-columns:42px minmax(0,1fr);padding-bottom:6px}
.o-row.block.no-ic{grid-template-columns:minmax(0,1fr)}
.o-blk{grid-column:1/-1;padding:10px 0 8px;min-width:0}
.o-row.block:not(.no-ic) .o-blk{margin-inline-start:58px}
/* switch: a real checkbox, so every form posts as before */
.o-tg{position:relative;display:inline-block;width:52px;height:30px;flex:none;margin:0}
.o-tg input{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;cursor:pointer;z-index:2}
.o-tgk{position:absolute;inset:0;border-radius:999px;background:var(--field);transition:background .15s}
.o-tgk::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:24px;height:24px;border-radius:50%;background:var(--card);box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s}
.o-tg input:checked+.o-tgk{background:var(--gold-2,var(--navy-3))}
.o-tg input:checked+.o-tgk::after{transform:translateX(22px)}
[dir=rtl] .o-tg input:checked+.o-tgk::after{transform:translateX(-22px)}
.o-tg input:disabled+.o-tgk{opacity:.45}.o-tg input:disabled{cursor:not-allowed}
.o-tg input:focus-visible+.o-tgk{outline:2px solid var(--gold);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.o-tgk,.o-tgk::after{transition:none}}
/* number or text input with a unit */
.o-num{display:flex;align-items:center;position:relative}
.o-num input{min-height:42px;width:120px;padding-inline-end:30px;text-align:end;direction:ltr}
.o-num i{position:absolute;inset-inline-end:10px;font-style:normal;color:var(--muted);font-weight:700;pointer-events:none}
.o-ctl select{min-height:42px;min-width:130px;max-width:100%}
/* choice cards (radio groups) */
fieldset.o-cards{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;min-width:0}
.o-card{display:flex;align-items:flex-start;gap:10px;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--card);cursor:pointer;margin:0}
.o-card input{width:20px;height:20px;margin-top:3px;accent-color:var(--navy-3);flex:none}
.o-card span{display:flex;flex-direction:column;gap:2px;min-width:0}.o-card b{font-size:15px}.o-card small{color:var(--muted);font-size:13px;line-height:1.4}
.o-card:has(input:checked){border-color:var(--gold-2,var(--navy-3));background:var(--gold-soft,var(--navy-soft))}
.o-card:has(input:focus-visible){outline:2px solid var(--gold);outline-offset:2px}
/* a block of the page's own markup kept inside a group (the named charges, a table), aligned with the rows */
.o-extra{padding:12px 0 6px;border-top:1px solid var(--line)}
.o-extra>fieldset{margin-inline:0}
/* phone: icon smaller; a typed value goes under the text, a switch stays at the end */
@media (max-width:640px){
  .o-gh{padding:12px 16px 10px;gap:12px}.o-gh .art{width:56px;height:56px}.o-gh h2{font-size:18px}.o-gic{width:44px;height:44px}
  .card.o-grp>.o-row,.card.o-grp>.o-extra,.card.o-grp>.actions,.card.o-grp>form>.o-row,.card.o-grp>form>.o-extra,.card.o-grp>form>.actions{margin-inline:16px}
  .o-row{grid-template-columns:36px minmax(0,1fr) auto;column-gap:12px;padding:14px 0}
  .o-row.no-ic{grid-template-columns:minmax(0,1fr) auto}
  .o-ic{width:36px;height:36px;border-radius:10px}
  .o-row.has-in .o-ctl,.o-row.has-sel .o-ctl{grid-column:1/-1;justify-content:flex-start;margin-top:8px}
  .o-row.block:not(.no-ic) .o-blk{margin-inline-start:0}
  .o-num input{width:100%}.o-num{width:100%}
  .o-ctl select{width:100%}
}
/* A-devices-shop part 2 */
.o-num input[type=time],.o-num input[type=email],.o-num input[type=url],.o-num input[type=tel]{width:auto;min-width:150px;text-align:start;padding-inline-end:12px}
.o-num input[type=email],.o-num input[type=url],.o-num input[type=tel]{width:260px;max-width:100%}
/* A-devices-shop (part 1): a status banner kept as a direct child of an option card (Connect this computer) gets the rows' side gutters; the till-name box and its button share one line */
.card.o-grp>.banner{margin-inline:20px}
.o-row.wide .o-ctl .row.wrap>input{flex:1 1 160px;min-width:0}
@media (max-width:640px){.card.o-grp>.banner{margin-inline:16px}}
/* --- stage 3, group C-online-marketing: the unit beside the box, never on the value (integration-c REVIEW 4); the kept textareas and lists full width --- */
.o-num i{position:static;margin-inline-start:8px;white-space:nowrap}
.o-num input{padding-inline-end:12px;min-width:0}
.o-blk textarea,.o-blk select[multiple]{width:100%;max-width:100%;box-sizing:border-box}
.o-blk textarea{min-height:72px}
.o-blk .grid2 label.check,.o-blk .row.wrap label.check{margin:0}
@media (max-width:640px){.o-num input{flex:1 1 auto;width:auto}}
/* D2 money-assets (stage 3): on a phone a number box with a unit keeps its own width, so the unit stays inside the box beside the value (it drifted to the far edge of the row) */
@media (max-width:640px){.o-num:has(>i){width:auto}}
.o-checks{display:flex;flex-direction:column;gap:6px}
.o-num input[type=month],.o-num input[type=time]{width:auto;min-width:120px;text-align:start;direction:inherit;padding-inline-end:12px}
.o-blk .chips{flex-wrap:wrap;overflow:visible}
/* --- stage 3, group E-setup-people-other: the unit beside the box, never on the value (same rule as group C; keep one copy on merge) --- */
.o-num i{position:static;margin-inline-start:8px;white-space:nowrap}
.o-num input{padding-inline-end:12px;min-width:0}
@media (max-width:640px){.o-num input{flex:1 1 auto;width:auto}}
.o-row .o-num input:has(+i){padding-inline-end:12px}
@media (max-width:640px){.grid2:has(.o-grp),.card.o-grp{clear:both}} /* a phone: option cards start under a floated side sticker, not squeezed beside it */
.o-row.wide .o-num input:has(+i){width:auto;flex:1 1 auto}
/* B-restaurant (stage 3): two time boxes side by side, a full-width text box in a wide row, a small sub-heading inside a group, a person's row on the team board, a station's name + categories, the QR studio's two cards */
.o-num.o-two{gap:8px}.o-num.o-two input{width:110px;padding-inline-end:12px;text-align:start}
.o-row.wide .o-ctl textarea{width:100%;min-width:0}
.o-sub{margin-block:0;font-size:16px}
.o-team-ctl{gap:12px;align-items:center;flex-wrap:wrap}.o-team-ctl input[type=text]{flex:1 1 180px;min-width:0}
.o-station .grid3{margin-top:8px}
.o-studio{align-items:start}
@media (max-width:640px){.o-num.o-two input{width:auto;flex:1 1 0;min-width:0}}

/* --- stage 3, group D1-people: units beside the box, not over it (as group C) --- */
.o-num i{position:static;margin-inline-start:8px;white-space:nowrap}
.o-num input{padding-inline-end:12px;min-width:0}
@media (max-width:640px){.o-num input{flex:1 1 auto;width:auto}}
.o-row.dep-off{opacity:.6}.o-row.dep-off .o-name{color:var(--muted)}#rights-dep-msg:not(:empty){margin:8px 0;padding:8px 12px;border-radius:8px;background:var(--card-alt,rgba(127,127,127,.12))}
.st-note{display:none;margin:4px 0 8px}
form:has(select[name=store_type] option[value="grocery"]:checked) .st-note[data-t="grocery"]{display:block}
form:has(select[name=store_type] option[value="cafe"]:checked) .st-note[data-t="cafe"]{display:block}
form:has(select[name=store_type] option[value="restaurant"]:checked) .st-note[data-t="restaurant"]{display:block}
form:has(select[name=store_type] option[value="canteen"]:checked) .st-note[data-t="canteen"]{display:block}
form:has(select[name=store_type] option[value="pharmacy"]:checked) .st-note[data-t="pharmacy"]{display:block}
form:has(select[name=store_type] option[value="boutique"]:checked) .st-note[data-t="boutique"]{display:block}
form:has(select[name=store_type] option[value="electronics"]:checked) .st-note[data-t="electronics"]{display:block}
form:has(select[name=store_type] option[value="bakery"]:checked) .st-note[data-t="bakery"]{display:block}
form:has(select[name=store_type] option[value="butcher"]:checked) .st-note[data-t="butcher"]{display:block}
form:has(select[name=store_type] option[value="warehouse"]:checked) .st-note[data-t="warehouse"]{display:block}
form:has(select[name=store_type] option[value="mobile-shop"]:checked) .st-note[data-t="mobile-shop"]{display:block}
form:has(select[name=store_type] option[value="laundry"]:checked) .st-note[data-t="laundry"]{display:block}
form:has(select[name=store_type] option[value="tailor"]:checked) .st-note[data-t="tailor"]{display:block}
form:has(select[name=store_type] option[value="repair"]:checked) .st-note[data-t="repair"]{display:block}
form:has(select[name=store_type] option[value="roastery"]:checked) .st-note[data-t="roastery"]{display:block}
form:has(select[name=store_type] option[value="spices"]:checked) .st-note[data-t="spices"]{display:block}
form:has(select[name=store_type] option[value="sweets"]:checked) .st-note[data-t="sweets"]{display:block}
form:has(select[name=store_type] option[value="perfume"]:checked) .st-note[data-t="perfume"]{display:block}
form:has(select[name=store_type] option[value="general"]:checked) .st-note[data-t="general"]{display:block}
form:has(select[name=store_type] option[value="supplier"]:checked) .st-note[data-t="supplier"]{display:block}
