/* Admission batch primitives lifted from teams-routing-ownership-my-work/handoff/threshold-ops.css. */
.th-grid-bulkbar .th-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 11px; border-radius: var(--th-radius-3); font: inherit; font-size: 12.5px; font-weight: 500; border: 1px solid var(--th-line-2); background: var(--th-paper-sunk); color: var(--th-ink); cursor: pointer; white-space: nowrap; }
.th-grid-bulkbar .th-btn:hover { background: var(--th-paper-2); border-color: var(--th-ink-4); }
.th-grid-bulkbar .th-btn--primary, .th-batch-modal .th-modal__confirm { border-color: var(--th-advant-deep); background: var(--th-advant-deep); color: var(--th-advant-fg); }
.th-grid-bulkbar .th-btn--primary:hover, .th-batch-modal .th-modal__confirm:hover { background: var(--th-advant-deep); filter: brightness(1.08); }
/* Queue canon's narrow shell: scoped to the queue and durable batch destinations. */
@media (max-width: 1000px) {
  .cc-shell:has(.th-wq-page, .th-batch-page) .cc-topbar-search { display: none; }
}
@media (max-width: 720px) {
  .cc-shell:has(.th-wq-page, .th-batch-page) { grid-template-columns: minmax(0,1fr); }
  .cc-shell:has(.th-wq-page, .th-batch-page) .cc-sidenav,
  .cc-shell:has(.th-wq-page, .th-batch-page) .cc-topbar-actions { display: none; }
  .cc-shell:has(.th-wq-page, .th-batch-page) .cc-footer { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .cc-shell:has(.th-wq-page, .th-batch-page) .cc-breadcrumb > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.th-wq-grid .th-col-select { width: 32px; padding-inline: 9px; }
.th-batch-strip, .th-grid-bulkbar, .th-sel-kept, .th-grid-bulkbar__refused { margin: 10px 24px 0; }
.th-batch-run { margin: 10px 24px 24px; padding: 16px; }
.th-batch-run__header, .th-batch-run__actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.th-batch-run__header h2 { margin: 0 0 4px; font: 600 17px var(--th-font-serif); }
.th-batch-run__actions { justify-content: flex-start; }
.th-batch-tally { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.th-batch-file { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.th-batch-modal .th-modal__kicker { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; color: var(--th-ink-2); }
.th-batch-modal .th-modal__body > .th-wq-btn { align-self: flex-start; }
.th-batch-list__row > .th-batch-file:first-child > .th-batch-list__note, .th-batch-results__row > .th-batch-file:first-child > .th-batch-list__note { font: 11px var(--th-font-mono); }
.th-batch-file a { font-size: 11.5px; color: var(--th-advant-deep); }
.th-modal.th-batch-modal { width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.th-batch-modal .th-modal__body { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.th-batch-modal .th-modal__head, .th-batch-modal .th-modal__foot { flex: none; }
.th-batch-results + .th-batch-results { margin-top: 12px; }
.th-grid-cb { width: 14px; height: 14px; margin: 0; accent-color: var(--th-advant); cursor: pointer; } .th-grid-cb:disabled { cursor: not-allowed; opacity: .45; }
.th-grid tr.is-selected, .th-wq-grid tr.is-selected { background: var(--th-advant-soft); } .th-grid tr.is-selected > td:first-child, .th-wq-grid tr.is-selected > td:first-child { box-shadow: inset 2px 0 0 var(--th-advant); }
.th-grid-bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 14px; font-size: 12.5px; color: var(--th-ink); background: var(--th-advant-soft); border: 1px solid var(--th-line); border-radius: var(--th-radius-5); }
.th-grid-bulkbar__count { font: 600 12.5px var(--th-font-mono); } .th-grid-bulkbar__sep { width: 1px; height: 18px; background: var(--th-line-2); margin: 0 4px; }
.th-grid-bulkbar__note { font-size: 11.5px; color: var(--th-ink-2); flex: 1 1 220px; min-width: 0; line-height: 1.4; }
.th-grid-bulkbar .th-btn:disabled { opacity: .45; cursor: not-allowed; }
.th-batch-restricted { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper-2); padding: 9px 14px; display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 10px; font-size: 12.5px; color: var(--th-ink-2); line-height: 1.5; }
/* durable return strip: running / interrupted / finished */
.th-batch-resume { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--th-advant); background: var(--th-advant-soft); color: var(--th-advant-deep); font: 600 12px var(--th-font-sans); cursor: pointer; text-align: left; }
.th-batch-resume.is-interrupted { border-color: var(--th-warn); background: var(--th-warn-soft); color: var(--th-warn-ink); }
/* batch modal: preview list (file  /  what  /  outcome), reviewer chooser, confirm summary */
.th-batch-modal { width: 680px; }
.th-batch-list { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper); }
.th-batch-list__row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.4fr) minmax(0,1.4fr); gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--th-line-soft); font-size: 12.5px; align-items: start; }
.th-batch-list__note { font-size: 11.5px; color: var(--th-ink-2); line-height: 1.4; }
.th-batch-reviewers { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper); }
.th-batch-reviewers__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: transparent; font: inherit; font-size: 12.5px; color: var(--th-ink); cursor: pointer; text-align: left; flex-wrap: wrap; }
.th-batch-reviewers__dot { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1px solid var(--th-line-2); background: var(--th-paper); }
.th-batch-reviewers__opt[aria-checked="true"] .th-batch-reviewers__dot { border: 4px solid var(--th-advant); }
.th-batch-reviewers__people { padding: 0 12px 8px 36px; display: flex; flex-direction: column; }
.th-batch-reviewers__person { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12.5px; flex-wrap: wrap; } .th-batch-reviewers__person.is-ineligible { opacity: .75; } .th-batch-reviewers__person.is-ineligible .th-batch-list__note { color: var(--th-risk-ink); }
.th-batch-confirm { border: 1px solid var(--th-line-2); border-radius: var(--th-radius-5); background: var(--th-paper-2); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.5; }
/* batch run / results: progress, tally, per-file rows, withheld fold, retry  /  new preview  /  cancel remaining */
.th-batch-run { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper-sunk); }
.th-batch-run__bar { height: 6px; border-radius: 999px; background: var(--th-paper-2); border: 1px solid var(--th-line-soft); overflow: hidden; } .th-batch-run__bar > span { display: block; height: 100%; background: var(--th-advant); }
.th-batch-results { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper); }
.th-batch-results__row { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.3fr) minmax(0,1.6fr); gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--th-line-soft); font-size: 12.5px; align-items: start; }
.th-batch-results__row.is-attention { background: var(--th-warn-soft); }
.th-batch-withheld { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 10px; padding: 9px 12px; font-size: 12.5px; color: var(--th-ink-2); background: var(--th-paper-2); line-height: 1.5; }
@media (max-width: 720px) { .th-batch-list__row, .th-batch-results__row { grid-template-columns: minmax(0,1fr); gap: 4px; } .th-adm-health { grid-template-columns: 16px minmax(0,1fr); } .th-adm-health > a { grid-column: 2; } }
.th-grid-bulkbar__scope { font-size: 11px; color: var(--th-ink-2); }
.th-grid-bulkbar__refused { display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 8px; padding: 8px 12px; border: 1px solid var(--th-risk); border-radius: var(--th-radius-5); background: var(--th-risk-soft); color: var(--th-risk-ink); font-size: 12.5px; line-height: 1.45; }
.th-sel-kept { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper-sunk); padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--th-ink-2); }
.th-sel-kept__head { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--th-ink-2); }
.th-sel-kept__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.4; }
/* one polite line on return to the queue or to a result (row kept  /  row left  /  page expired  /  batch finished) */
.th-return-line { border: 1px solid var(--th-line-2); border-radius: var(--th-radius-5); background: var(--th-paper-2); padding: 8px 14px; display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 10px; font-size: 12.5px; color: var(--th-ink-2); line-height: 1.5; }
/* step 1  /  cohort facts, then term (only when the selection spans terms) and decision code; nothing preselected */
.th-batch-scope { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper); display: grid; grid-template-columns: minmax(88px,140px) minmax(0,1fr); }
.th-batch-scope > dt, .th-batch-scope > dd { margin: 0; padding: 7px 12px; border-bottom: 1px solid var(--th-line-soft); } .th-batch-scope > dt { font-size: 12px; color: var(--th-ink-2); } .th-batch-scope > dd { font-size: 12.5px; color: var(--th-ink); line-height: 1.45; min-width: 0; }
.th-batch-choice { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper); } .th-batch-choice.is-required { border-color: var(--th-warn); }
.th-batch-choice__head { padding: 9px 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.th-batch-choice__opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-top: 1px solid var(--th-line-soft); background: transparent; font: inherit; font-size: 12.5px; color: var(--th-ink); cursor: pointer; text-align: left; }
.th-batch-choice__opt:focus-visible { outline: 2px solid var(--th-advant); outline-offset: -2px; }
.th-batch-choice__dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 2px; border: 1px solid var(--th-line-2); background: var(--th-paper); }
.th-batch-choice__opt[aria-checked="true"] .th-batch-choice__dot { border: 4px solid var(--th-advant); }
.th-batch-choice__code { font: 600 12px var(--th-font-mono); color: var(--th-ink); }
/* preview / results groups: Included  /  Not included  /  What this batch did  /  Done by someone else  /  Not included at the preview */
.th-batch-group { padding: 7px 12px; border-bottom: 1px solid var(--th-line); background: var(--th-paper-2); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--th-ink-2); }
.th-batch-group__note { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--th-ink-2); }
/* outcome pills that may run to two lines in a narrow column use the existing .th-pill--wrap */
/* confirm  /  Scheduled release time: policy default, or date + time + zone with the absolute instant */
.th-batch-sched { border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.th-batch-sched.is-passed { border-color: var(--th-warn); } .th-batch-sched__note { font-size: 11.5px; color: var(--th-ink-2); line-height: 1.45; } .th-batch-sched.is-passed .th-batch-sched__note { color: var(--th-warn-ink); }
.th-batch-sched__fields { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; } .th-batch-sched__fields label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--th-ink-2); }
.th-batch-sched__instant { font: 11.5px var(--th-font-mono); color: var(--th-ink-2); line-height: 1.45; } .th-batch-sched__instant.is-past { color: var(--th-risk-ink); }
/* lost start  /  checking  /  found  /  not started (a second confirm cannot start the batch twice) */
.th-batch-lost { border: 1px solid var(--th-line-2); border-radius: var(--th-radius-5); background: var(--th-paper-2); padding: 12px 14px; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 10px; font-size: 12.5px; color: var(--th-ink); line-height: 1.5; }
.th-batch-lost.is-not-started { border-color: var(--th-warn); background: var(--th-warn-soft); }
/* a result row is a focus target on return from the file's Decision view */
.th-batch-results__row[tabindex="-1"]:focus { outline: 2px solid var(--th-advant); outline-offset: -2px; }
@media (max-width: 720px) { .th-batch-scope { grid-template-columns: minmax(0,1fr); } .th-batch-scope > dt { border-bottom: 0; padding-bottom: 0; } .th-auth-row { grid-template-columns: 16px minmax(0,1fr); } .th-auth-row > :last-child { grid-column: 2; } }
