/* public/oncall-ui.css
 *
 * The Saturday on-call: the ON CALL strip beside the Off strip and the windows behind it (the menu, the
 * swap, the rotation, the confirm). Loaded by the web board pages and the phone schedule next to
 * public/oncall-ui.js; one look for both (Richard 2026-11-13, the mockups he approved).
 *
 * Design tokens only (both themes), no literal colors except the white on a solid badge. The menu reuses
 * the board's own quick-menu classes (.st-qm-*, schedule-tile.css). No em or en dashes in this file.
 */

/* ── the strip: the Off pill's size and shape, tinted info ─────────────────── */
.st-oc-row { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 11.5px; margin-right: 8px; }
.st-oc-lbl { color: var(--ink-3); font-weight: 800; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.st-oc-item {
  appearance: none; -webkit-appearance: none; border: 0; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  background: var(--info-soft); color: var(--ink); border-radius: 999px; padding: 2px 9px 2px 5px; font-weight: 700; white-space: nowrap;
}
.st-oc-item:hover { box-shadow: 0 0 0 1px var(--info); }
.st-oc-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-oc-item.is-open { box-shadow: 0 0 0 2px var(--accent); }
.st-oc-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28); }
.st-oc-name { overflow: hidden; text-overflow: ellipsis; }
.st-oc-trade { font-weight: 800; font-size: 10px; letter-spacing: 0.03em; color: var(--ink-3); text-transform: uppercase; }
.st-oc-for { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.st-oc-set {
  appearance: none; -webkit-appearance: none; font: inherit; font-weight: 700; font-size: 11.5px; cursor: pointer;
  background: transparent; color: var(--accent-ink); border: 1px dashed var(--border); border-radius: 999px; padding: 2px 10px;
}
.st-oc-set:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* a week day header, and the phone Flex header: first names, stacked */
.st-oc-day { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 2px 0; }
.st-oc-day .st-oc-row { margin-right: 0; }
@media (pointer: coarse) { .st-oc-item, .st-oc-set { min-height: 32px; } }

/* ── ONE ROW (Richard 2026-11-14) ─────────────────────────────────────────────
   On the phone, and on a board that shows one day at a narrow width, the ON CALL chips and the Off chips share ONE
   row that never wraps: short chips ("Alejandro · AC", "Jandiel off"), small prefixes, and a row that does not fit
   scrolls sideways (the right edge fades while there is more). No second line, so the calendar keeps its space.
   public/oncall-ui.js stripHtml({ strip: true }), offLabel and scrollCue; the host adds the .st-strip class. */
.st-strip {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; white-space: nowrap;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
}
.st-strip::-webkit-scrollbar { display: none; }
.st-strip > * { flex: none; }
.st-strip .st-oc-row { flex-wrap: nowrap; gap: 5px; margin-right: 0; }
.st-strip .st-oc-lbl, .st-strip .st-off-lbl { text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 700; }
.st-strip .st-oc-item { gap: 4px; padding: 2px 9px 2px 6px; box-sizing: border-box; }
.st-strip .st-oc-dot { width: 10px; height: 10px; margin-right: 1px; }
.st-strip .st-oc-sep { color: var(--ink-3); font-weight: 800; }
.st-strip .st-oc-trade { text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 600; }
.st-strip .st-off-item { display: inline-flex; align-items: center; box-sizing: border-box; max-width: 15em; overflow: hidden; text-overflow: ellipsis; padding: 2px 9px; }
.st-strip .st-oc-row + .st-off-item, .st-strip .st-oc-row + .st-off-lbl { margin-left: 2px; }
.st-strip.has-more { -webkit-mask-image: linear-gradient(to right, var(--ink) calc(100% - 28px), transparent); mask-image: linear-gradient(to right, var(--ink) calc(100% - 28px), transparent); }
@media (pointer: coarse) { .st-strip .st-oc-item, .st-strip .st-oc-set, .st-strip .st-off-item { min-height: 32px; } }

/* ── THE OFF ROW: ONE line however many people are off (Richard 2026-11-14) ───────────────────────────────────
   A board with several day columns draws each day's Off cell as ONE line of short chips (first name, the hours when
   it is not all day); what does not fit is "+N" and opens the list (public/oncall-ui.js fillOffCell, fitOff,
   openOffList). The ON CALL chips move to the board's status line. On the phone a day with two or more people
   off is one "N off" chip that opens the same list as a sheet. */
.st-offrow { flex-wrap: nowrap; overflow: hidden; height: 26px; box-sizing: border-box; align-content: center; }
.st-offrow > * { flex: none; }
.st-off-chip { font-size: 11px; line-height: 16px; padding: 2px 8px; }
.st-off-chip[hidden] { display: none; }
.st-off-chip i { font-style: normal; font-weight: 600; opacity: 0.8; margin-left: 3px; }
.st-off-more, .st-off-count {
  appearance: none; -webkit-appearance: none; font: inherit; cursor: pointer; white-space: nowrap;
  font-size: 11px; font-weight: 800; line-height: 16px; border-radius: 999px; padding: 1px 7px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border);
}
.st-off-more:hover { box-shadow: 0 0 0 1px var(--info); }
.st-off-more:focus-visible, .st-off-count:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the phone's "3 off": the amber chip itself, with the count */
.st-strip .st-off-count { background: var(--warn-soft); color: var(--warn-ink); border: 0; font-weight: 700; font-size: 11.5px; padding: 2px 9px; display: inline-flex; align-items: center; box-sizing: border-box; }
@media (pointer: coarse) { .st-strip .st-off-count { min-height: 32px; } }
/* a person on call who is also off that day: the rotation needs a swap */
.st-oc-isoff { box-shadow: 0 0 0 1.5px var(--warn-ink); }
.st-oc-offflag { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; background: var(--warn-soft); color: var(--warn-ink); border-radius: 999px; padding: 0 5px; margin-left: 2px; }
/* the web board: the word "Off" once, in the hour gutter; the on-call chips at the right end of the status line */
.st-off-gutter { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.ht-dc-status-oc { margin-left: auto; display: inline-flex; align-items: center; min-width: 0; }
.ht-dc-status-oc .st-oc-row { margin-right: 0; flex-wrap: nowrap; gap: 5px; }
.ht-dc-status-oc .st-oc-lbl { text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 700; }
.ht-dc-status-oc .st-oc-item { gap: 4px; padding: 2px 9px 2px 6px; }
.ht-dc-status-oc .st-oc-dot { width: 10px; height: 10px; margin-right: 1px; }
.ht-dc-status-oc .st-oc-sep { color: var(--ink-3); font-weight: 800; }
.ht-dc-status-oc .st-oc-trade { text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 600; }

/* ── the web window ──────────────────────────────────────────────────────────── */
.oc-dlg-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); }
.oc-dlg {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(96vw, 560px); max-height: 92vh;
  display: flex; flex-direction: column; box-sizing: border-box;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--sh-lg, 0 20px 32px -10px rgba(14, 27, 51, 0.18)); font-size: 0.88rem;
}
.oc-dlg-head { display: flex; align-items: center; gap: 0.6rem; padding: 1rem 1.1rem 0.75rem; border-bottom: 1px solid var(--border-subtle); flex: none; }
.oc-dlg-ic { width: 20px; height: 20px; display: inline-flex; color: var(--accent); }
.oc-dlg-title { margin: 0; font-weight: 700; font-size: 1rem; color: var(--ink); flex: 1; min-width: 0; }
.oc-dlg-x { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--ink-3); width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.oc-dlg-x:hover { background: var(--surface-2); color: var(--ink); }
.oc-dlg-body { padding: 1rem 1.1rem; overflow: auto; min-height: 0; flex: 1 1 auto; }
.oc-dlg-foot { display: flex; justify-content: flex-end; gap: 0.6rem; padding: 0.75rem 1.1rem 1rem; flex: none; }
.oc-dlg-foot .ds-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── the content, web and phone ─────────────────────────────────────────────── */
.oc-pad { display: flex; flex-direction: column; gap: 14px; }
.oc-note { font-size: 12px; color: var(--ink-3); }
.oc-h { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px; }
.oc-people { display: flex; flex-direction: column; gap: 6px; }
.oc-pick {
  appearance: none; -webkit-appearance: none; font: inherit; text-align: left; width: 100%; box-sizing: border-box; color: var(--ink);
  position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-height: 46px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer;
}
.oc-pick.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.oc-pick.is-off { opacity: 0.55; cursor: not-allowed; }
.oc-pick b, .oc-mem b { font-weight: 700; font-size: 14px; color: var(--ink); }
.oc-pick small, .oc-mem small { display: block; font-size: 12px; color: var(--ink-3); }
.oc-radio-in { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.oc-radio-in:focus-visible + .oc-radio { outline: 2px solid var(--accent); outline-offset: 2px; }
.oc-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex: none; display: grid; place-items: center; background: var(--surface); }
.oc-check { border-radius: 5px; }
.oc-pick.is-on > .oc-radio { border-color: var(--accent); }
.oc-pick.is-on > .oc-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.oc-pick.is-on > .oc-check::after { border-radius: 2px; }
.oc-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28); display: inline-block; }
.oc-rec { font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: var(--surface); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
.oc-payline { display: block; margin-top: 4px; font-size: 13px; color: var(--ink); }
.oc-sel { font: inherit; font-size: 13px; padding: 5px 26px 5px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); min-height: 34px; }
.oc-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.oc-tbl th { text-align: left; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 5px 8px; border-bottom: 1px solid var(--border); }
.oc-tbl td { padding: 7px 8px; border-bottom: 1px solid var(--border-subtle, var(--border)); vertical-align: middle; }
.oc-tbl tr.is-swap td { background: var(--info-soft); }
.oc-tbl td .oc-dot { width: 11px; height: 11px; vertical-align: -2px; margin-right: 6px; }
.oc-tbl td.oc-cell { padding: 0; }
.oc-tbl td.oc-cell-ro { padding: 7px 8px; }
.oc-cellbtn { appearance: none; -webkit-appearance: none; font: inherit; color: var(--ink); background: transparent; border: 0; width: 100%; text-align: left; padding: 7px 8px; cursor: pointer; display: flex; align-items: center; gap: 0; }
.oc-cellbtn:hover, .oc-cellbtn:focus-visible { background: var(--surface-2); outline: none; }
.oc-cellin { flex: 1; min-width: 0; }
.oc-go { color: var(--ink-3); margin-left: auto; padding-left: 8px; display: inline-flex; }
.oc-chg { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.oc-swap { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--info); border-radius: 999px; padding: 0 6px; margin-left: 6px; vertical-align: 1px; }
.oc-for { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.oc-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.oc-card-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oc-card-h b { font-size: 15px; color: var(--ink); }
.oc-rate { font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); border-radius: 999px; padding: 2px 9px; }
.oc-mem { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); min-height: 46px; }
.oc-mem.is-drag { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); background: var(--surface); }
.oc-grip { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink-3); font-size: 15px; letter-spacing: -3px; cursor: grab; width: 24px; min-height: 36px; flex: none; touch-action: none; padding: 0; }
.oc-grip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 6px; }
.oc-x { margin-left: auto; appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--ink-3); width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; flex: none; }
.oc-x:hover { background: var(--surface); color: var(--danger); }
.oc-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.oc-ghost { appearance: none; -webkit-appearance: none; font: inherit; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px dashed var(--border); background: transparent; color: var(--accent-ink); cursor: pointer; min-height: 40px; align-self: flex-start; }
.oc-link { appearance: none; -webkit-appearance: none; font: inherit; background: transparent; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; cursor: pointer; text-decoration: underline; }
.oc-staged { background: var(--warn-soft); color: var(--warn-ink); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.oc-setup-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; font-size: 12px; color: var(--ink-3); }
.oc-setup-row label { display: flex; flex-direction: column; gap: 3px; }
.oc-sm { min-height: 36px; padding: 0 14px; border-radius: 8px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.oc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.oc-warn { background: var(--warn-soft); color: var(--warn-ink); border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.oc-err { background: var(--danger-soft, var(--warn-soft)); color: var(--danger-ink, var(--danger)); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.oc-sheet-rows { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 640px) { .oc-grid2 { grid-template-columns: 1fr; } }
@media (pointer: coarse) { .oc-ghost, .oc-pick { min-height: 48px; } .oc-grip { width: 32px; } }
@media (pointer: coarse) { .oc-x { width: 44px; height: 44px; } .oc-grip { width: 44px; min-height: 44px; } .st-oc-item, .st-oc-set { min-height: 36px; } }

/* Hope and online booking follow this rotation: the owner's card (part 4) */
.oc-hope-row { display: flex; align-items: center; gap: 12px; }
.oc-hope b { font-size: 14px; color: var(--ink); }
.oc-hope small { display: block; font-size: 12px; color: var(--ink-3); margin: 2px 0 6px; }
.oc-chip { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; margin-right: 4px; }
.oc-chip-ok { background: var(--ok-soft); color: var(--ok-ink); }
.oc-chip-warn { background: var(--warn-soft); color: var(--warn-ink); }
.oc-chip-btn { appearance: none; -webkit-appearance: none; border: 0; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; text-align: left; }
.oc-chip-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.oc-tog { appearance: none; -webkit-appearance: none; border: 0; padding: 0; width: 44px; height: 26px; border-radius: 999px; background: var(--border); position: relative; flex: none; cursor: pointer; }
.oc-tog::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: left 0.15s; }
.oc-tog.is-on { background: var(--accent); }
.oc-tog.is-on::after { left: 21px; }
.oc-tog:disabled { opacity: 0.5; cursor: not-allowed; }
.oc-tog:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
