/* options.css: the option row, the option group and the jump chips (options redesign, UnitVO, 16 Nov 2026).
   Copied from the point-of-sale products' options.css (same family look), mapped to UnitVO's emerald and gold tokens.
   Logical properties only: the same rules serve left-to-right and right-to-left. Prefix o- keeps it clear of every older class.
   The tokens fall back to the public sign-in page's own variables, so the row also works there. */
:root{
  --o-card:var(--surface,var(--paper,#fff));
  --o-bg:var(--bg,var(--wash,#f5f7f6));
  --o-ink:var(--text,var(--ink,#101828));
  --o-muted:var(--text-3,var(--muted,#667085));
  --o-line:var(--border,var(--line,#e4e7ec));
  --o-field:var(--border-2,#d0d5dd);
  --o-accent:var(--emerald-text,var(--primary-dark,#047857));
  --o-on:var(--emerald,var(--primary,#059669));
  --o-soft:var(--emerald-50,#ecfdf5);
  --o-gold:var(--gold,var(--accent,#d97706));
  --o-gold-soft:var(--gold-50,#fffbeb);
}
.oi{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.oi.sm{width:18px;height:18px}.oi.xs{width:14px;height:14px;vertical-align:-2px}
/* 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(--o-line);background:var(--o-card);color:var(--o-ink);text-decoration:none;font-size:13.5px;font-weight:700}
.o-chip:hover,.o-chip:focus-visible{border-color:var(--o-on)}
/* group card: icon tile in the header, big quiet title */
.uv-card.o-grp,.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(--o-line);background:linear-gradient(var(--o-card),var(--o-bg))}
.o-gh h2{margin:0;font-size:20px;line-height:1.25}.o-gh p{margin:2px 0 0;font-size:14px;color:var(--o-muted);line-height:1.45}
.o-gic{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:16px;background:linear-gradient(135deg,var(--o-soft),var(--o-gold-soft));color:var(--o-accent);flex:none;border:1px solid var(--o-line)}
.o-gic .oi{width:28px;height:28px}
.o-grp>.o-row,.o-grp>.o-extra,.o-grp>form>.o-row,.o-grp>form>.o-extra,.o-grp>.o-pad,.o-grp>form>.o-pad{margin-inline:20px}
.o-grp>:last-child,.o-grp>form>:last-child{margin-bottom:16px}
.o-grp>.uv-form-actions,.o-grp>form>.uv-form-actions{margin-inline:20px}
.o-grp .o-row:first-of-type{border-top:0}
.o-gh+.o-row,.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(--o-line)}
.o-row[hidden]{display:none}
.o-row.wide .o-ctl,.o-row.stack .o-ctl{grid-column:1/-1;justify-content:stretch;margin-top:8px}
.o-row.wide .o-ctl>*,.o-row.stack .o-ctl>*{flex:1 1 auto;min-width:0}
.o-row.wide .o-num,.o-row.stack .o-num{width:100%}.o-row.wide .o-num input,.o-row.stack .o-num input{width:100%;text-align:start;direction:inherit;padding-inline-end:12px}
.o-row.wide .o-ctl select,.o-row.stack .o-ctl select{width:100%}
.o-row.wide .o-ctl textarea,.o-row.stack .o-ctl textarea{width:100%}
.o-num input[type=date],.o-num input[type=time],.o-num input[type=email],.o-num input[type=tel]{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(--o-soft);color:var(--o-accent);flex:none}
.o-txt{min-width:0;display:flex;flex-direction:column;gap:3px}
.o-name{font-size:16px;font-weight:700;line-height:1.35;display:block;margin:0;color:var(--o-ink)}
.o-why{font-size:14px;line-height:1.5;color:var(--o-muted);max-width:62ch}
.o-ex{font-size:13px;line-height:1.45;color:var(--o-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(--o-muted)}
.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(--o-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(--o-card);box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s}
.o-tg input:checked+.o-tgk{background:var(--o-on)}
.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(--o-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:200px;max-width:100%;margin:0}
.o-num.has-unit input{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(--o-muted);font-weight:700;pointer-events:none}
.o-ctl select{min-height:42px;min-width:130px;max-width:100%;margin:0}
.o-ctl textarea{margin:0}
/* 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(--o-line);border-radius:12px;padding:12px 14px;background:var(--o-card);cursor:pointer;margin:0}
.o-card input{width:20px;height:20px;margin-top:3px;accent-color:var(--o-on);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(--o-muted);font-size:13px;line-height:1.4}
.o-card:has(input:checked){border-color:var(--o-on);background:var(--o-soft)}
.o-card:has(input:focus-visible){outline:2px solid var(--o-gold);outline-offset:2px}
/* a block of the page's own markup kept inside a group (a table, a list), aligned with the rows */
.o-extra{padding:12px 0 6px;border-top:1px solid var(--o-line)}
/* compact select in a list row or table cell */
.o-inl{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;color:var(--o-accent)}
.o-inl select{margin:0;min-width:0;max-width:200px}
.o-inlc{gap:8px;min-height:44px;color:var(--o-ink);font-size:14px}.o-inlc input{width:20px;height:20px;margin:0;accent-color:var(--o-on)}.o-inlc label{margin:0;font-weight:600}
/* a titled block inside a card (no card chrome) */
.o-sec{margin:18px 0 8px}.o-sec:first-child{margin-top:0}
.o-sh{display:flex;align-items:center;gap:10px;margin-bottom:2px}
.o-sh h2{margin:0;font-size:16px;line-height:1.3}.o-sh p{margin:1px 0 0;font-size:13px;color:var(--o-muted);line-height:1.4}
.o-sic{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,var(--o-soft),var(--o-gold-soft));color:var(--o-accent);flex:none;border:1px solid var(--o-line)}
/* "?" link to the page's help article */
.o-help{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1.5px solid var(--o-field);color:var(--o-accent);font-weight:800;font-size:15px;line-height:1;text-decoration:none;background:var(--o-card);flex:none}
.o-help:hover,.o-help:focus-visible{border-color:var(--o-on);background:var(--o-soft)}
/* in a narrow card (sign-up): the control always goes under the text */
.o-narrow .o-row{grid-template-columns:36px minmax(0,1fr)}
.o-narrow .o-row.no-ic{grid-template-columns:minmax(0,1fr)}
.o-narrow .o-row .o-ctl{grid-column:1/-1;justify-content:flex-start;margin-top:8px}
.o-narrow .o-row .o-ctl select,.o-narrow .o-row .o-num,.o-narrow .o-row .o-num input{width:100%}
.o-narrow .o-ic{width:36px;height:36px;border-radius:10px}
/* 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 h2{font-size:18px}.o-gic{width:44px;height:44px;border-radius:13px}.o-gic .oi{width:24px;height:24px}
  .o-grp>.o-row,.o-grp>.o-extra,.o-grp>form>.o-row,.o-grp>form>.o-extra,.o-grp>.o-pad,.o-grp>form>.o-pad,.o-grp>.uv-form-actions,.o-grp>form>.uv-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,.o-num.has-unit input{width:100%}.o-num{width:100%}
  .o-ctl select{width:100%}
}
/* the weekly rota's time boxes (team member page) must not push the phone page sideways, also in Arabic */
@media (max-width:640px){.uv-table td input[type=time]{width:112px!important;min-width:0;max-width:100%}.uv-table td [dir=ltr]{max-width:100%;flex-wrap:wrap}}
