/* The nurse record's Onboarding and Credentials tabs (#408, the approved #401
   prototype) and other shared record components. Loaded by the page shells.
   Colours come from the tokens
   in app.css (each already has its dark twins), so nothing here needs its own
   dark-mode rule. Phone layouts begin at 760px. */

/* ---------- stepper ---------- */
.stepper { list-style:none; margin:0; padding:0; display:flex; }
.stepper li { flex:1 1 0; min-width:0; }
.stepper .st-line { display:flex; align-items:center; }
.stepper .st-dot { width:30px; height:30px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; font-size:.8rem; font-weight:700; border:2px solid var(--mut-line);
  background:var(--surface); color:var(--muted); flex-shrink:0; }
.stepper .done .st-dot { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }
.stepper .current .st-dot { border-color:var(--accent); color:var(--accent);
  box-shadow:0 0 0 4px var(--ok-bg); }
.stepper .passed .st-dot { border-style:dashed; color:var(--muted); }
.stepper .passed .st-label { color:var(--muted); }
.stepper .st-bar { flex:1; height:2px; background:var(--rule); margin:0 10px; }
.stepper .done .st-bar { background:var(--accent); }
.stepper li:last-child .st-bar { visibility:hidden; }
.stepper .st-label { margin-top:8px; font-size:.86rem; font-weight:600; padding-right:8px; }
.stepper .st-sub { font-size:.8rem; color:var(--muted); }
.stepper .current .st-sub { color:var(--accent); font-weight:600; }
.card.stepcard { padding:20px 24px 16px; margin-bottom:16px; }

/* ---------- two-column work area ---------- */
.rec-grid { display:grid; grid-template-columns:minmax(0, 1.7fr) minmax(0, 1fr); gap:16px;
  align-items:start; margin-bottom:16px; }
.rec-grid3 { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:16px;
  align-items:start; margin-bottom:16px; }
.rec-grid > .card, .rec-grid3 > .card { margin:0; }
.record-change-actions { font-size:.85em; margin-top:.2rem; }
.contact-card__practice-label { max-width:6.5rem; }

/* ---------- needlist rows ---------- */
.needlist { list-style:none; margin:0; padding:0; }
.needlist > li { display:flex; gap:12px; align-items:flex-start; padding:12px 20px;
  border-top:1px solid var(--rule-soft); }
.need-owed { margin:0; padding:12px 20px; font-size:.86rem; border-top:1px solid var(--rule); }
.needlist > li:first-child { border-top:0; }
.needlist .ck-body { flex:1 1 0; min-width:0; overflow-wrap:break-word; }
.needlist .ck-t { font-weight:600; min-width:0; overflow-wrap:break-word; }
.needlist .ck-d { font-size:.84rem; color:var(--muted); }
.needlist .ck-act { flex:none; display:flex; gap:6px; align-items:flex-start; flex-wrap:wrap; }
.needlist form { margin:0; }
/* #1411: on a phone a row's actions go under its text and wrap, never past the edge. */
@media (max-width: 760px) {
  .needlist > li { flex-wrap:wrap; }
  .needlist .ck-act { flex:1 1 100%; min-width:0; padding-left:32px; }
  .needlist .ck-act > * { min-width:0; max-width:100%; }
  .needlist .ck-act input { max-width:100%; }
}
.tick { width:20px; height:20px; border-radius:50%; display:inline-flex; align-items:center;
  justify-content:center; flex-shrink:0; margin-top:1px; border:2px solid var(--mut-line);
  background:var(--surface); color:#fff; font-size:.7rem; line-height:1; }
.tick.on { background:var(--accent); border-color:var(--accent); color:var(--on-accent); }

/* ---------- sign-off card ---------- */
.signoff-row { display:flex; gap:12px; align-items:flex-start; margin-bottom:12px; }
.signoff-row .ck-body { flex:1 1 auto; min-width:0; }
.rec-divider { height:1px; background:var(--rule-soft); margin:14px 0; }
/* A full-width button may wrap: its width is its column's, so a long label ("Move to Documents
   completed") would otherwise run past a narrow card's edge under #1621's nowrap buttons. */
.btn-wide, button.btn-wide { width:100%; justify-content:center; margin:0; white-space:normal; text-align:center; }
.why-not { margin:8px 0 0; font-size:.82rem; color:var(--ink-2); }
details.disclose > summary { cursor:pointer; font-size:.86rem; color:var(--muted); }
details.disclose[open] > summary { margin-bottom:8px; }
.danger-box { border:1px solid var(--bad-line); border-radius:8px; padding:14px; margin-top:8px; }
.rec-banner { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:12px 16px; margin:0 0 16px;
  border-radius:8px; background:var(--surface); border:1px solid var(--bad-line); border-left:4px solid var(--sev-high); }
.rec-banner > div { flex:1 1 18rem; min-width:0; }
.rec-banner form { display:flex; gap:8px; align-items:end; flex-wrap:wrap; margin:0; }
.rec-banner.leave { border-color:var(--warn-line); border-left-color:var(--leave-line); }

/* ---------- licences: rows edited in place ---------- */
/* The last track holds Verify…, Edit and Remove… on one line (no stacked buttons); the
   minimums add up to the 790px stack point, so the grid never runs past its card. */
.lic-head, .lic-row > [data-view] { display:grid; align-items:center; gap:10px;
  grid-template-columns:minmax(90px,100px) minmax(80px,1fr) minmax(84px,.9fr) minmax(76px,92px) minmax(112px,1.5fr) 256px; padding:11px 20px; }
.lic-row > [data-view] > span { min-width:0; overflow-wrap:break-word; }
/* The licence grid stacks by the card's own width (the rail makes 721-1100px narrower than it looks). */
.lic-box { container:lic / inline-size; }
.lic-row > [data-view] > [data-label]::before { content:attr(data-label); display:none; font-size:.7rem; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink-2); font-weight:600; margin-bottom:2px; }
.lic-head { font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2); font-weight:600;
  background:var(--head-bg); border-bottom:1px solid var(--rule); padding-top:9px; padding-bottom:9px; }
.lic-row { border-top:1px solid var(--rule-soft); }
.lic-row:first-of-type { border-top:0; }
.lic-row .lic-acts { display:flex; gap:6px; justify-content:flex-end; flex-wrap:wrap; align-items:center; }
/* The hiring licence table: a row's hidden Edit form takes no height (no blank band under each row). */
.hr-lic tr.lic-edit-row:has(> td > form[data-edit][hidden]) { display:none; }
/* The licence note: field, Save note and its (i) on one row; the one help line under them. */
#licence-note .lic-note-f { flex:1 1 16rem; }
#licence-note .lic-note-h { flex-basis:100%; margin:0; }
.lic-row .lic-acts form { margin:0; }
.lic-row form[data-edit] { padding:12px 20px 14px; background:var(--hover-bg); }
.lic-fields { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.lic-fields label { margin:0; }
.lic-f { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; margin-top:10px; align-items:end; }
.lic-row .err-note { color:var(--bad-ink); font-size:.85rem; margin:0 0 .6rem; }
.lic-add > [data-view] { display:block; padding:10px 20px; }   /* one button, no columns: the six-track grid squeezed it into 90px */

/* ---------- skills ---------- */
.skills { display:flex; flex-wrap:wrap; gap:8px; }
.skill, button.skill { display:inline-flex; align-items:center; gap:5px; min-height:28px; padding:0 12px; margin:0;
  border-radius:14px; font-size:.84rem; font-weight:500; background:var(--ground); color:var(--ink);
  border:1px solid var(--rule); }
button.skill { cursor:pointer; background:var(--surface); border-style:dashed; color:var(--ink-2); }
button.skill[aria-pressed="true"] { background:var(--accent); color:var(--on-accent); border:1px solid var(--accent); }
.skill small { font-size:.7rem; color:var(--muted); }
button.skill.verify { border-style:solid; font-size:.76rem; min-height:24px; }
/* The record's Skills card (capability.html): held skills as chips, verified solid with a tick,
   unverified dashed and saying so (as a licence's state pill); Verify and Remove sit inside the
   chip; the + chips add. Long names wrap inside the chip, never past the card. */
.rec-grid3 > .skills-area > .card { margin:0; }
ul.skills { list-style:none; margin:0; padding:0; }
.skills .skill { max-width:100%; }
button.skill { text-align:left; }
.skills.held .skill { padding:3px 4px 3px 12px; flex-wrap:wrap; column-gap:5px; row-gap:0; }
.skill.unv { background:var(--surface); border-style:dashed; color:var(--ink-2); }
.skill-n { overflow-wrap:anywhere; min-width:0; }
.skill-v { color:var(--ok-ink); font-size:.8rem; font-weight:700; }
.skill-st { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.skill-acts { display:inline-flex; align-items:center; gap:2px; margin:0; }
.skill-a, .skill-x { display:inline-flex; align-items:center; min-height:24px; margin:0; padding:0 7px;
  border:0; border-radius:12px; background:none; font:inherit; cursor:pointer; }
.skill-a { color:var(--accent); font-size:.76rem; font-weight:600; }
.skill-x { color:var(--muted); font-size:1.05rem; line-height:1; }
.skill-a:hover, .skill-x:hover, .skill-a:focus-visible, .skill-x:focus-visible { background:var(--ground); }
.skill-x:hover { color:var(--bad-ink); }
.skills-add { margin:12px 0 0; }
.skills-add.first { margin:0; }
.skills-add label.skills-tick { margin:0 0 8px; font-size:.84rem; }
.skills-note { margin:10px 0 0; font-size:.84rem; }
.skills-area[aria-busy="true"] .card-b { opacity:.6; transition:opacity .15s .15s; }

@media (max-width: 900px) {
  .rec-grid, .rec-grid3 { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .stepper { flex-direction:column; gap:10px; }
  .stepper li { display:flex; gap:12px; align-items:center; }
  .stepper .st-bar { display:none; }
  .stepper .st-label { margin:0; }
  .lic-fields { grid-template-columns:1fr 1fr; }
}
/* The same stacking for the stepper and the licence grid, by container width. */
.stepper-box { container:stepper / inline-size; }
@container stepper (max-width:760px) {
  .stepper { flex-direction:column; gap:10px; }
  .stepper li { display:flex; gap:12px; align-items:center; }
  .stepper .st-bar { display:none; }
  .stepper .st-label { margin:0; }
}
@container lic (max-width:790px) {
  .lic-head { display:none; }
  .lic-row > [data-view] { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px 12px; align-items:start; }
  .lic-row > [data-view] > [data-label]::before { display:block; }
  .lic-row > [data-view] > [data-label="How checked"] { grid-column:1 / -1; }
  .lic-row .lic-acts { grid-column:1 / -1; justify-content:flex-start; }
  .lic-fields { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
@container lic (max-width:480px) {
  .lic-fields { grid-template-columns:minmax(0,1fr); }
}
/* A date-and-time input (the invite's six times) is wider than half a phone: one column. */
@media (max-width: 760px) {
  .lic-fields { grid-template-columns:minmax(0, 1fr); }
}

/* A button that cannot be pressed yet looks it (the Move and Sign off buttons). */
.rec-body button:disabled, .rec-body button:disabled:hover { background:var(--rule-soft); border-color:var(--rule-soft);
  color:var(--muted); cursor:not-allowed; }
.lic-row > [data-view][hidden], .lic-row > form[hidden] { display:none; }
/* .btn-edit[hidden] lives in app.css beside the edit card's other [hidden] rules. */

/* A button or link that cannot be used right now (a pager Previous on page one): dimmed and inert. */
.btn[aria-disabled] { opacity:.5; pointer-events:none; }

/* The supporting record on the Mark-as-left form (#982): offered only for Terminated or Contract not renewed. */
.depart-support { display:none; flex:1 1 100%; border:1px solid var(--rule); border-radius:6px; padding:.6rem .8rem; }
form:has(input[name=end_kind][value=terminated]:checked, input[name=end_kind][value=non_renewal]:checked) .depart-support { display:block; }

/* A pending photo ID beside its verify form (John, 7 Oct 2026): read it while typing the facts.
   Desktop side by side, phone image above. Enlarge zooms inside the frame; the form stays put. */
.id-verify-wrap.has-photo { display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr); gap:16px;
  align-items:start; margin-top:.4rem; }
/* A dialog drawn inside a right-aligned table cell must not inherit its alignment (#1409). */
.rec-body dialog.dlg { text-align:left; }
.dlg.drawer .id-photo { position:static; }
.dlg.drawer .id-photo-frame { max-height:40vh; }
.dlg.drawer iframe.id-photo-frame { height:40vh; }
.id-photo { margin:0; position:sticky; top:8px; display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.id-photo-frame { display:block; width:100%; max-height:70vh; overflow:auto; border:1px solid var(--rule);
  border-radius:6px; background:var(--ground); }
.id-photo-frame img { display:block; width:100%; height:auto; }
iframe.id-photo-frame { height:70vh; }
.id-zoom { position:absolute; opacity:0; width:1px; height:1px; margin:0; }
.id-zoom:focus-visible + label { outline:2px solid var(--accent); outline-offset:2px; }
.id-zoom + label { margin:0; cursor:pointer; }
.id-zoom + label .z-out, .id-zoom:checked + label .z-in { display:none; }
.id-zoom:checked + label .z-out { display:inline; }
.id-zoom:checked ~ .id-photo-frame img { width:220%; max-width:none; }
@media (max-width: 760px) {
  .id-verify-wrap.has-photo { grid-template-columns:minmax(0, 1fr); }
  .id-photo { position:static; }
  .id-photo-frame { max-height:45vh; }
  iframe.id-photo-frame { height:45vh; }
}
/* From a verify queue: back to the list and how many are left, above the record. */
.verify-queue { display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin:0 0 .4rem; }
.verify-queue .backlink { margin:0; font-weight:600; }
/* Licence applications on the Credentials tab (#1368). */
.lapp { padding:14px 20px; border-top:1px solid var(--rule); }
.lapp:first-of-type { border-top:0; }
.lapp-h { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; margin:0 0 10px; }
.lapp-h .lapp-state { font-weight:700; font-size:1.05rem; }
.lapp-meta { color:var(--muted); font-size:.86rem; }
.lapp .stepper { margin:6px 0 12px; }
.lapp-steps { list-style:none; margin:0 0 10px; padding:0; display:flex; flex-wrap:wrap; gap:6px 14px; }
.lapp-steps form { display:inline; }
.lapp-steps button { background:none; border:0; margin:0; padding:2px 0; color:inherit; font:inherit; cursor:pointer; text-align:left; }
.lapp-steps .is-done button { color:var(--muted); text-decoration:line-through; }
.lapp-acts { display:flex; gap:8px; flex-wrap:wrap; align-items:flex-start; margin-top:10px; }
.lapp-acts details { border:1px solid var(--rule); border-radius:6px; padding:6px 10px; }
.lapp-acts details[open] { flex:1 1 100%; }
.lapp-acts summary { cursor:pointer; font-weight:600; font-size:.88rem; }
.lapp-fields { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:10px; margin:10px 0; }
.lapp-fields label { display:block; font-size:.82rem; }
.lapp-past { padding:0 20px 14px; }
.lapp-past summary { cursor:pointer; font-weight:600; padding:10px 0; }

/* ---------- Employment tab: the Leadership positions and Employment cards (14 Oct 2026) ----------
   Scoped to `.emp` (people/_record/positions.html, tabs/employment.html, employment_periods.html):
   no other card changes. One section rhythm (12px 20px, a soft rule between sections), one size
   for Edit and every row action (the Edit button's 28px), the add form on one baseline. */
.emp .btn.sec.sm, .emp button.sec.sm, .emp summary.btn.sec.sm { display:inline-flex; align-items:center;
  height:28px; padding:0 10px; margin:0; border-radius:6px; border:1px solid var(--rule);
  background:var(--surface); color:var(--ink-2); font-size:.8rem; font-weight:600; white-space:nowrap; }
.emp .btn.sec.sm:hover, .emp button.sec.sm:hover, .emp summary.btn.sec.sm:hover { border-color:var(--accent); color:var(--accent); }
.emp .emp-sec { padding:12px 20px; border-top:1px solid var(--rule-soft); }
.emp > .card-h + .emp-sec { border-top:0; }
.emp .emp-sec > * { margin-top:0; margin-bottom:0; }
.emp .emp-sec > * + * { margin-top:8px; }
/* A row: what it is on the left, its actions on the right; under the text on a phone. */
.emp .itemlist li { align-items:center; flex-wrap:wrap; gap:8px 12px; padding:10px 20px; }
.emp .itemlist li > .emp-row-t { flex:1 1 14rem; }
.emp .itemlist li > .emp-acts { flex:0 0 auto; display:flex; gap:6px; align-items:center; margin-left:auto; }
.emp details .itemlist li { padding:8px 0; }
.emp-inline { display:flex; gap:6px; align-items:center; margin:0; }
.emp-inline input[type=date] { width:auto; height:28px; margin:0; padding:0 6px; font-size:.8rem; }
/* The add form: label over control, every control and the one primary button 36px tall. */
.emp form.inline-fields { margin:0; padding:12px 20px; border-top:1px solid var(--rule-soft); gap:10px; align-items:flex-end; }
.emp .inline-fields label { margin:0; flex:1 1 8rem; min-width:0; max-width:16rem; gap:4px;
  font-size:.84rem; font-weight:600; letter-spacing:0; text-transform:none; color:var(--ink); }
.emp .inline-fields label > span { display:flex; gap:6px; align-items:baseline; }
.emp .inline-fields select, .emp .inline-fields input { height:36px; margin:0; padding:0 .6rem; }
.emp .inline-fields button { height:36px; margin:0; padding:0 1rem; flex:0 0 auto; }
/* Employment history: a section of the Employment card, like Type and Start date above it. */
.emp .emp-hist { border-top:1px solid var(--rule-soft); }
.emp .emp-hist-h { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 12px; padding:12px 20px 6px; }
.emp .emp-hist-h .card-t { margin:0; font:700 .88rem/1.3 var(--sans); color:var(--ink-2); }
.emp .emp-hist-h [data-tenure] { font-size:.82rem; }
.emp .emp-hist > .emp-sec:not(:last-child), .emp .emp-hist-h + .emp-sec { border-top:0; padding-top:0; }
.emp .emp-hist [data-edit-card] .card-h { flex-wrap:wrap; row-gap:6px; }
.emp .emp-hist [data-edit-card] .card-h .card-t { font:600 .88rem/1.3 var(--sans); letter-spacing:0; text-transform:none; color:var(--ink); }
.emp .card-acts { display:flex; gap:6px; align-items:center; flex-shrink:0; margin-left:auto; }
.emp .emp-add-period > summary { list-style:none; }
.emp .emp-add-period > summary::-webkit-details-marker { display:none; }
.emp .emp-add-period[open] > summary { margin-bottom:4px; }
.emp .emp-form-f { display:flex; justify-content:flex-end; margin-top:12px; }
.emp .emp-form-f button { margin:0; }
@media (max-width: 760px) {
  .emp .itemlist li > .emp-acts { margin-left:0; }
}

/* ---------- record header: the name and the actions on one row (#1621, D8) ---------- */
/* header.ic-top is the first child of the info card and spans every column; the stage pills and
   the rest stay in the first column under it. app.css's container rules count the columns with
   :first-of-type / :nth-of-type, so the header does not shift them. */
.infocard > .ic-top { grid-column:1 / -1; display:flex; align-items:flex-start; justify-content:space-between;
  flex-wrap:wrap; gap:12px; padding:20px 24px 0; min-width:0; }
/* The name keeps at least 14rem: when the actions would squeeze it below that (four buttons at
   1024, #2815), the action group drops under the name, still at the right edge, instead of the
   name breaking mid-word. */
.infocard > .ic-top h1 { flex:1 1 14rem; min-width:min(14rem, 100%); overflow-wrap:break-word; }
.infocard > .ic-top .ic-actions { flex:none; margin-left:auto; padding-top:4px; }
/* The actions sit at the card's right edge at every width, so a menu opens leftward. */
.infocard > .ic-top .ic-actions details.menu .menu-list { left:auto; right:0; max-width:calc(100vw - 32px); }
@container infocard (max-width: 560px) {
  .infocard > .ic-top { padding:16px 16px 0; flex-wrap:wrap; }
  /* Only when the card is narrow do the actions wrap, as a group, under the name. */
  .infocard > .ic-top .ic-actions { flex:1 1 100%; min-width:0; flex-wrap:wrap; padding-top:0; }
  /* The group is the card's width, so the menu opens from its button's left edge and stays on screen. */
  .infocard > .ic-top .ic-actions { position:relative; }
  .infocard > .ic-top .ic-actions details.menu { position:static; }
  .infocard > .ic-top .ic-actions details.menu .menu-list { left:0; right:auto; max-width:100%; }
}
/* An action's hint stays behind it in the header at every width (as in the bulk bar, D4): on a
   phone it would otherwise drop under its button and split the actions into stacked rows. It is
   still the button's description. */
.infocard > .ic-top .ic-actions .ah-hint { position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* An empty On file cell says so on a phone, where the card layout would hide a bare dash (m1fix). */
@media (max-width:760px) {
  .rtable.vault-table td[data-empty][data-label="On file"] { display:block; }
  .rtable.vault-table td[data-empty] .nof { font-size:0; }
  .rtable.vault-table td[data-empty] .nof::after { content:"Nothing on file"; font-size:.9rem; }
}

/* ---------- Details fold on a phone: CSS only, works without script ---------- */
.ic-more-t, .ic-more-l { display:none; }
@media (max-width:760px) {
  .ic-more-t { display:block; position:absolute; width:1px; height:1px; margin:0; opacity:0; pointer-events:none; }
  /* Drawn as a button, not as a form label (app.css 'label' is small caps with a top margin). */
  .ic-more-l { display:inline-flex; align-items:center; justify-content:center; margin:12px 0 0; cursor:pointer;
    text-transform:none; letter-spacing:0; color:var(--accent); }
  .ic-more-t:focus-visible + .ic-more-l { outline:2px solid var(--accent); outline-offset:2px; }
  .ic-more-t:checked + .ic-more-l { background:var(--ground); }
  /* Folded, a card whose Details button sits in its first column (the candidate record, the frames)
     shows that column only. */
  .infocard:has(> div .ic-more-t:not(:checked)) > div:not(:first-of-type) { display:none; }
  /* The nurse record's button follows the columns (m1fix): folded, the contact column goes and the
     third keeps only the Next step, so it shows above the Details button. */
  .infocard:has(> .ic-more-t:not(:checked)) > div:nth-of-type(2) { display:none; }
  .infocard:has(> .ic-more-t:not(:checked)) > div:nth-of-type(3) > :not(.nextstep) { display:none; }
  .infocard > .ic-more-l { margin:4px 16px 16px; justify-self:start; }
}
/* The frame is sized like the filled card under the new header (measured 21 Oct 2026 with a typical
   record: nurse 293 / 517 / 997 px, candidate 336 / 526 / 947 px at 1280 / 1024 / 768; folded behind
   Details on a phone, 573 and 379; the nurse fold keeps its Next step since m1fix, 640 measured 27 Oct
   2026 with a two-line Next step), so the tabs under it hardly move when the card fills. */
.infocard.sk-frame:has(> .ic-top) { min-height:293px; }
.infocard.sk-frame.sk-hire:has(> .ic-top) { min-height:336px; }
@media (max-width:1199px) {
  .infocard.sk-frame:has(> .ic-top) { min-height:517px; }
  .infocard.sk-frame.sk-hire:has(> .ic-top) { min-height:526px; }
}
@media (max-width:850px) {
  .infocard.sk-frame:has(> .ic-top) { min-height:997px; }
  .infocard.sk-frame.sk-hire:has(> .ic-top) { min-height:947px; }
}
@media (max-width:760px) {
  .infocard.sk-frame:has(> .ic-top) { min-height:640px; }
  .infocard.sk-frame.sk-hire:has(> .ic-top) { min-height:379px; }
}

/* ux-flows-1622 docs-tab */
/* The Next cell: one primary and the More ▾ menu on one line. Its column is never narrower than
   both (the th's data-min, which ui.js fit keeps), and the cell does not clip, so the menu opens
   over the rows below, as on the Accounts card. */
.docs-table td.act { white-space:nowrap; text-align:right; overflow:visible; }
.docs-table .doc-line { display:inline-block; margin-top:2px; }
/* Two fixed slots (22 Oct 2026): the primary, then the More ▾ menu in a column of its own width, so
   every row's primary ends on the same line whether or not the row has a menu. No (i) sits in the
   cell: its hint stays on the button. */
#documents .docs-table td.act .acct-acts { display:grid; grid-template-columns:max-content 2.25rem;
  justify-content:end; align-items:center; gap:6px; }
#documents .docs-table td.act .acct-acts > :not(details.acct-more) { grid-column:1; justify-self:end; }
#documents .docs-table td.act .acct-acts > details.acct-more { grid-column:2; justify-self:stretch; }
/* The ⋯ menu (#1709, S4) is a square-ish icon button, not a word: its slot is only as wide as it. */
#documents .docs-table td.act details.acct-more > summary { box-sizing:border-box; min-width:2.25rem; width:100%;
  padding-left:0; padding-right:0; justify-content:center; text-align:center; }
.docs-table td.act button:disabled { background:var(--surface); color:var(--muted); border-color:var(--rule);
  cursor:not-allowed; }
/* What a row's action did, said once in that row's status line (22 Oct 2026, #1709). */
.docs-table .doc-line.row-note { display:inline-block; margin:2px 0 0; font-size:.82rem; }
.docs-table .doc-line.err-note { color:var(--bad-ink); }
.docs-table .doc-line.ok-note { color:var(--ok-ink); }
/* A device packet's four kinds of evidence, in its Verify drawer. */
.device-verify-evidence { list-style:none; margin:0 0 12px; padding:0; display:grid; gap:8px; }
.device-verify-evidence li { min-width:0; overflow-wrap:anywhere; }
.device-verify-evidence ul { list-style:none; margin:2px 0 0; padding:0; }
.device-verify-evidence .muted { display:block; }
/* The row menus open over the rows below: the box lets a menu out only while one is open, so a
   table wider than its card (no script to fit it, a narrow window) still scrolls inside the card
   instead of pushing the page sideways. */
#documents .scroll:has(> .docs-table details.menu[open]) { overflow:visible; }
#documents .card-acts { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; align-items:center; min-width:0; margin-left:auto; }
#documents .card-acts form { margin:0; }
/* The phone's card layout starts at 760px (app.css), so the Next cell's phone rules start there too. */
@media (max-width:760px) {
  .docs-table td.act { text-align:left; white-space:normal; }
  /* A card per row on a phone: the controls start at the left, the menu straight after the primary. */
  #documents .docs-table td.act .acct-acts { display:flex; justify-content:flex-start; }
  #documents .docs-table td.act details.acct-more > summary { width:2.75rem; min-width:2.75rem; }
  #documents > .card-h { flex-wrap:wrap; }   /* the header's buttons go under the title, never off the page */
  #documents .card-acts { margin-left:0; justify-content:flex-start; }
  /* The More ▾ menu opens from the cell's left edge, not from the button beside the primary,
     so it stays on the screen. */
  .docs-table td.act { position:relative; }
  .docs-table td.act details.menu.acct-more { position:static; }
  .docs-table td.act details.menu.acct-more .menu-list { left:12px; right:auto; }
}

/* ---------- Worklist bar (#1623) ----------
   A record opened from a list that feeds a queue: '‹ Back to list · Name · 3 of 17 · Next ›'.
   One line at every width (the name is ellipsed), sticky under the app header. 46 px = the
   row's 44 px taps plus its border, so the placeholder holding the backlink is the bar's height
   and nothing below moves when the bar arrives. */
.wl-bar { position:sticky; top:0; z-index:15; min-height:46px; display:flex; align-items:center;
  background:var(--ground); margin:0 0 .5rem; }
@media (max-width: 760px) { .wl-bar { top:52px; } }
/* An anchor (#lic-12, #vault) or a focused control lands below the bar, not under it. */
html:has(.wl-bar) { scroll-padding-top:58px; }
@media (max-width: 760px) { html:has(.wl-bar) { scroll-padding-top:110px; } }
.wl-row { display:flex; align-items:center; gap:.4rem .9rem; width:100%; min-width:0; flex-wrap:nowrap;
  padding:0 .6rem; background:var(--surface); border:1px solid var(--rule); border-radius:10px; }
.wl-back, .wl-next { display:inline-flex; align-items:center; gap:.3rem; min-height:44px; flex:0 0 auto;
  font-size:.88rem; font-weight:600; text-decoration:none; white-space:nowrap; }
.wl-next { margin-left:auto; min-width:44px; justify-content:flex-end; }
.wl-name { flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.wl-pos { flex:0 0 auto; color:var(--muted); font-size:.86rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
.wl-hourly { flex:0 0 auto; color:var(--muted); font-size:.8rem; white-space:nowrap; }
.wl-next-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.wl-back:focus-visible, .wl-next:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:6px; }
.wl-clear { background:var(--ok-bg); border-color:var(--ok-line); }
.wl-clear .wl-name { color:var(--ok-ink); flex:0 0 auto; }
.wl-clear .wl-next { flex:1 1 auto; justify-content:flex-end; }
@media (max-width: 760px) { .wl-hourly { display:none; } }
/* A bar that failed to load keeps its backlink; the 'Couldn't load' line sits beside it. */
.wl-err:empty { display:none; }
.wl-err .defer-err { margin:0 0 0 .9rem; }
.wl-err .sk { display:none; }   /* Try again's grey card would make the one-line bar tall */

/* OnCall Hub's notes on the practice and provider pages (#2265). Each note's bar is its colour in
   OnCall Hub (`--och-bg`, with the text colour that reads on it); a note with no colour is plain.
   The status line keeps its room so the live read does not move the notes under it. */
.och-notes .och-status { margin:0 0 .6rem; min-height:1.5em; color:var(--ink-2); font-size:.9rem; }
.och-notes .och-status.warn { color:var(--bad-ink); }
.och-notes .och-list { display:flex; flex-direction:column; gap:8px; }
.och-note { border:1px solid var(--rule-soft); border-radius:8px; overflow:hidden; background:var(--surface); }
.och-notes details.och-note > summary { font-size:.95rem; display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; padding:8px 12px; cursor:pointer;
  background:var(--och-bg, var(--rule-soft)); color:var(--och-ink, var(--ink)); font-weight:600; }
.och-notes details.och-note > summary:focus-visible { outline:2px solid var(--och-ink, var(--ink)); outline-offset:-3px; }
.och-note .och-tag { font-size:.75rem; font-weight:500; border:1px solid currentColor; border-radius:999px; padding:0 .5rem; opacity:.85; }
.och-note .och-text { padding:10px 12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.och-note .och-label { min-width:0; overflow-wrap:anywhere; }
.och-notes .och-empty { margin:0; }
@media (max-width:760px) { .och-notes .och-status { min-height:3em; } }
