/* ── premier-wizard-skin.css ──────────────────────────────────────────────────
   The Reconciliation step's look, applied to every wizard step (2026-09-10).

   The skin is scoped to `.tt-wiz`, which _Layout puts on <main> for every PremierWizard
   page. It restyles the Bootstrap primitives the steps are already built from (card,
   card-header, badge, table, alert, btn, list-group, form controls) so no view has to be
   rewritten and no behaviour changes: every selector below is presentation only.

   The rules of the look, in one place (see .claude/rules/wizard-ui-style.md):
     the brand green (#00d639, ink text) for primary buttons, black only for the one big run action (btn-dark)
     and the panel bar, soft tinted chips for state (never solid),
     light zebra rows, muted uppercase table headers, rounded 0.7rem surfaces with a hairline
     border and no hover lift, a step header that reads eyebrow / title / lede / actions,
     the palette is black, white and that green; light greens carry state as on Reconciliation.
   ───────────────────────────────────────────────────────────────────────────── */

.tt-wiz {
    --ttp-elev-1: 0 1px 1px rgba(16,24,40,.04),0 2px 6px -1px rgba(16,24,40,.05);
    --ttp-elev-2: 0 1px 2px rgba(16,24,40,.06),0 6px 14px -3px rgba(16,24,40,.08);
    --ttp-elev-4: 0 3px 6px rgba(16,24,40,.07),0 28px 48px -16px rgba(16,24,40,.16);
    --ttp-edge-lit: #f1f3f5;
    --tt-graphite: #374151;
    --tt-slate: #d1d5db;
    --rc-unv-bg: #fff7e6; --rc-unv-fg: #7c4a03; --rc-unv-bd: #f5d79a;
    --tt-line: #e5e7eb;
    --tt-line-soft: #eceff3;
    --tt-ink: #1a1a1a;
    --tt-muted: #6b7280;
    --tt-surface: #ffffff;
    --tt-surface-2: #f9fafb;
    --tt-zebra: #fbfcfd;
    --tt-hover: #eef6ff;
    --tt-accent: #00d639;
    --tt-green: #00d639;
    --tt-green-dk: #00b32f;
    --tt-primary: #047857;
    --rc-ties-bg: #dff5e8; --rc-ties-fg: #0b6b3a; --rc-ties-bd: #b9e6c9;
    --rc-expl-bg: #e3eefb; --rc-expl-fg: #1c4e9c; --rc-expl-bd: #bfd6f5;
    --rc-mis-bg: #fde8e8; --rc-mis-fg: #a61b1b; --rc-mis-bd: #f5bcbc;
    --rc-drift-bg: #fff1db; --rc-drift-fg: #8a5300; --rc-drift-bd: #f5d79a;
    --rc-pend-bg: #eef0f3; --rc-pend-fg: #5b6470; --rc-pend-bd: #d9dee5;
    color: var(--tt-ink);
}

/* ── Surfaces ── */
.tt-wiz .card { background: var(--tt-surface); border: 1px solid var(--tt-line); border-top-color: var(--ttp-edge-lit); border-radius: .75rem; box-shadow: var(--ttp-elev-1); transition: none; }
.tt-wiz .card:hover { border-color: var(--tt-line); border-top-color: var(--ttp-edge-lit); box-shadow: var(--ttp-elev-1); transform: none; }
.tt-wiz .card-header { background: var(--tt-surface); border-bottom: 1px solid var(--tt-line); padding: 1rem 1.25rem; min-height: 3.25rem; font-size: .9rem; font-weight: 600; color: var(--tt-ink); border-radius: .75rem .75rem 0 0; }
.tt-wiz .card-header strong { font-weight: 600; }
.tt-wiz .card-body { padding: 1.25rem; }
.tt-wiz .card-footer { background: var(--tt-surface-2); border-top: 1px solid var(--tt-line); padding: .75rem 1.25rem; }
.tt-wiz .card > .list-group:last-child { border-bottom-left-radius: 0.7rem; border-bottom-right-radius: 0.7rem; }

/* ── The step header: the card whose header carries the "Step n of 12" eyebrow ── */
.tt-wiz .card:has(> .card-header > .eyebrow) { background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%); }
.tt-wiz .card:has(> .card-header > .eyebrow) > .card-header { background: transparent; border-bottom: 0; padding: 0.95rem 1.2rem 0; }
.tt-wiz .card:has(> .card-header > .eyebrow) > .card-body { padding: 0.35rem 1.2rem 1.05rem; }
.tt-wiz .card:has(> .card-header > .eyebrow) h4, .tt-wiz .card:has(> .card-header > .eyebrow) h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; color: var(--tt-ink); }
.tt-wiz .card:has(> .card-header > .eyebrow) p { max-width: 80ch; color: var(--tt-ink); font-size: 0.9rem; }
.tt-wiz .card:has(> .card-header > .eyebrow) p.text-secondary { color: var(--tt-ink) !important; }
.tt-wiz .eyebrow { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--tt-muted); }

/* ── State chips: soft tints, never solid ── */
.tt-wiz .badge { display: inline-flex; align-items: center; gap: .35rem; background: var(--rc-pend-bg); color: var(--rc-pend-fg); font-weight: 700; font-size: .72rem; line-height: 1.45; padding: .12rem .6rem; border-radius: 50rem; border: 1px solid var(--rc-pend-bd); letter-spacing: 0; }
.tt-wiz .badge.rounded-pill { border-radius: 2rem; }
.tt-wiz .badge.bg-success, .tt-wiz .badge.text-bg-success { background: var(--tt-green) !important; color: var(--tt-ink) !important; border-color: var(--tt-green); }
.tt-wiz .badge.bg-danger, .tt-wiz .badge.text-bg-danger { background: var(--rc-mis-bg) !important; color: var(--rc-mis-fg) !important; border-color: var(--rc-mis-bd); }
.tt-wiz .badge.bg-warning, .tt-wiz .badge.text-bg-warning { background: var(--rc-drift-bg) !important; color: var(--rc-drift-fg) !important; border-color: var(--rc-drift-bd); }
.tt-wiz .badge.bg-info, .tt-wiz .badge.bg-primary, .tt-wiz .badge.text-bg-info, .tt-wiz .badge.text-bg-primary { background: var(--rc-expl-bg) !important; color: var(--rc-expl-fg) !important; border-color: var(--rc-expl-bd); }
.tt-wiz .badge.bg-secondary, .tt-wiz .badge.bg-light, .tt-wiz .badge.bg-dark, .tt-wiz .badge.text-bg-secondary, .tt-wiz .badge.text-bg-light { background: var(--rc-pend-bg) !important; color: var(--rc-pend-fg) !important; border-color: var(--rc-pend-bd); }
.tt-wiz .badge.bg-success.text-dark, .tt-wiz .badge.bg-warning.text-dark, .tt-wiz .badge.bg-light.text-dark, .tt-wiz .badge.bg-info.text-dark { color: inherit; }
.tt-wiz .badge .bi { font-size: 0.85em; }

/* ── Tables: muted headers, light zebra, tinted state rows, hover ── */
.tt-wiz .table { font-size: 0.86rem; --bs-table-striped-bg: var(--tt-zebra); --bs-table-hover-bg: var(--tt-hover); }
.tt-wiz .table > thead > tr > th, .tt-wiz .table > thead.table-light > tr > th { background: var(--tt-surface-2); color: var(--tt-muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--tt-line); white-space: nowrap; }
.tt-wiz .table > tbody > tr > td { border-bottom: 1px solid var(--tt-line-soft); vertical-align: middle; }
.tt-wiz .table > tbody > tr:nth-child(even):not(.table-danger):not(.table-warning):not(.table-success):not(.table-info) > td { background-color: var(--tt-zebra); }
.tt-wiz .table > tbody > tr:hover > td { background-color: var(--tt-hover); }
.tt-wiz .table-danger { --bs-table-bg: #fff5f5; --bs-table-color: var(--tt-ink); }
.tt-wiz .table-warning { --bs-table-bg: #fffaf0; --bs-table-color: var(--tt-ink); }
.tt-wiz .table-success { --bs-table-bg: #f0faf4; --bs-table-color: var(--tt-ink); }
.tt-wiz .table-info { --bs-table-bg: #eef4fc; --bs-table-color: var(--tt-ink); }
.tt-wiz .table > tfoot > tr > td { font-weight: 700; background: var(--tt-surface-2); }
.tt-wiz .table-responsive { border-radius: 0.5rem; }
.tt-wiz .font-monospace { font-size: 0.82em; }

/* ── Alerts: tinted, quiet ── */
.tt-wiz .alert { background: var(--tt-surface); color: var(--tt-graphite); border: 2px solid var(--tt-line); border-radius: .75rem; font-size: .86rem; padding: .75rem 1rem; box-shadow: var(--ttp-elev-1); }
.tt-wiz .alert-success { border-color: var(--tt-green); }
.tt-wiz .alert-danger { border-color: #fecaca; }
.tt-wiz .alert-warning { border-color: #fcd34d; }
.tt-wiz .alert-info, .tt-wiz .alert-primary { border-color: var(--rc-expl-bd); }
.tt-wiz .alert-secondary, .tt-wiz .alert-light { border-color: var(--tt-line); }
.tt-wiz .alert strong { color: inherit; }

/* ── Buttons: brand green with ink text for primary, black only for btn-dark, quiet outlines ── */
.tt-wiz .btn { border-radius: .5rem; font-weight: 600; transition: transform 90ms cubic-bezier(.16,1,.3,1); }
.tt-wiz .btn-primary, .tt-wiz .btn-success:not(.btn-outline-success) { background: var(--tt-green); border-color: var(--tt-green); color: var(--tt-ink); box-shadow: none; }
.tt-wiz .btn-dark { background: var(--tt-ink); border-color: var(--tt-ink); color: #fff; }
.tt-wiz .btn-dark:hover, .tt-wiz .btn-dark:focus { background: #000; border-color: #000; color: #fff; }
.tt-wiz .btn-primary:hover, .tt-wiz .btn-primary:focus, .tt-wiz .btn-success:hover, .tt-wiz .btn-success:focus { background: var(--tt-green-dk); border-color: var(--tt-green-dk); color: var(--tt-ink); }
.tt-wiz .btn-primary.disabled, .tt-wiz .btn-primary:disabled { background: #cfd4db; border-color: #cfd4db; color: #5b6470; }
.tt-wiz .btn-outline-primary, .tt-wiz .btn-outline-success { color: var(--tt-graphite); border-color: var(--tt-slate); background: #fff; }
.tt-wiz .btn-outline-primary:hover, .tt-wiz .btn-outline-success:hover { background: var(--rc-ties-bg); border-color: var(--tt-green-dk); color: var(--tt-ink); }
.tt-wiz .btn-outline-secondary { color: var(--tt-graphite); border-color: var(--tt-slate); background: #fff; }
.tt-wiz .btn-outline-secondary:hover { background: var(--tt-surface-2); border-color: #aab2bd; color: var(--tt-ink); }
.tt-wiz .btn-danger, .tt-wiz .btn-outline-danger { color: var(--rc-mis-fg); border-color: var(--rc-mis-bd); background: #fff; }
.tt-wiz .btn-danger:is(:hover, :focus, :active), .tt-wiz .btn-outline-danger:hover { background: var(--rc-mis-bg); color: var(--rc-mis-fg); border-color: var(--rc-mis-bd); }
.tt-wiz .btn-danger.tes-btn-final { background: #dc3545; color: #fff; border-color: #dc3545; }
.tt-wiz .btn-link { color: var(--tt-ink); text-decoration: none; }
.tt-wiz .btn-link:hover { text-decoration: underline; }
.tt-wiz .btn:focus-visible { box-shadow: 0 0 0 3px rgba(0, 214, 57, 0.28) !important; }

/* ── Lists, forms, progress, misc ── */
.tt-wiz .list-group-item { border-color: var(--tt-line-soft); font-size: 0.88rem; padding: 0.65rem 1.1rem; }
.tt-wiz .list-group-item:nth-child(even) { background: var(--tt-zebra); }
.tt-wiz .form-control, .tt-wiz .form-select { border-radius: .5rem; border-color: var(--tt-slate); font-size: .9rem; }
.tt-wiz .form-control:focus, .tt-wiz .form-select:focus { border-color: var(--tt-slate); outline: 2px solid var(--tt-green); outline-offset: 2px; box-shadow: none; }
.tt-wiz .form-label { font-size: .8rem; font-weight: 600; color: var(--tt-graphite); }
.tt-wiz .form-text { color: var(--tt-muted); }
.tt-wiz .form-check-input:checked { background-color: var(--tt-ink); border-color: var(--tt-ink); }
.tt-wiz .progress { height: 0.45rem; border-radius: 1rem; background: var(--tt-line); }
.tt-wiz .progress-bar { background: var(--tt-accent); }
.tt-wiz .text-secondary { color: var(--tt-muted) !important; }
.tt-wiz hr { border-color: var(--tt-line); opacity: 1; }
.tt-wiz .accordion-button { font-size: 0.9rem; font-weight: 600; }
.tt-wiz .accordion-button:not(.collapsed) { background: var(--tt-surface-2); color: var(--tt-ink); box-shadow: none; }
.tt-wiz .accordion-button:focus { box-shadow: 0 0 0 3px rgba(0, 214, 57, 0.2); }
.tt-wiz .nav-tabs .nav-link { color: var(--tt-muted); font-size: .86rem; font-weight: 600; padding: .6rem 1rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.tt-wiz .nav-tabs .nav-link.active { color: var(--tt-ink); border-bottom-color: var(--tt-green); background: transparent; }
.tt-wiz .nav-pills .nav-link.active { background: transparent; color: var(--tt-ink); border-bottom-color: var(--tt-green); }
.tt-wiz .dropdown-menu { z-index: 1025; border-radius: .5rem; border-color: var(--tt-line); box-shadow: var(--ttp-elev-2); font-size: .88rem; }
.tt-wiz .tooltip-inner { border-radius: 0.4rem; }

/* ── The step bar and the wizard footer ── */
.tt-wiz .wizard-step-circle.bg-primary { background: var(--tt-green) !important; color: var(--tt-ink) !important; }
.tt-wiz .wizard-step-circle.bg-success { background: var(--rc-ties-bg) !important; color: var(--rc-ties-fg) !important; border: 1px solid var(--rc-ties-bd); }
.tt-wiz .wizard-step-circle.bg-light { background: #fff !important; color: var(--tt-muted) !important; border: 1px solid var(--tt-line) !important; }

/* ── Numbered level dots and small helpers any page may use ── */
.tt-wiz .tt-dot { display: inline-flex; width: 1.4rem; height: 1.4rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--rc-ties-bg); color: var(--tt-primary); border: 1px solid var(--rc-ties-bd); font-size: 0.75rem; font-weight: 700; flex: none; }
.tt-wiz .tt-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem; }
.tt-wiz .tt-kpis > div { padding: 0.55rem 0.7rem; border-radius: 0.5rem; background: var(--tt-surface-2); border: 1px solid #e3e7ec; }
.tt-wiz .tt-kpis small { display: block; font-size: 0.7rem; color: var(--tt-muted); }
.tt-wiz .tt-kpis span { font-size: 0.98rem; font-weight: 600; color: var(--tt-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt-wiz .tt-empty { text-align: center; padding: 2.5rem 1.5rem 2rem; border: 1px solid var(--rc-ties-bd); border-radius: 0.8rem; background: linear-gradient(180deg, #f2fbf5 0, #fff 55%); color: var(--tt-muted); }
.tt-wiz .tt-empty__icon { width: 3.6rem; height: 3.6rem; margin: 0 auto 0.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--tt-ink); color: var(--tt-green); font-size: 1.6rem; }
.tt-wiz .tt-empty h2 { font-size: 1.15rem; font-weight: 600; color: var(--tt-ink); margin: 0 0 0.35rem; }
.tt-wiz .tt-empty p { margin: 0 auto 1rem; max-width: 62ch; color: var(--tt-ink); font-size: 0.9rem; }



/* ── The source upload dropzone and its file list ── */
.tt-wiz #premier-dropzone { border: 2px dashed #cfd4db !important; background: var(--tt-surface-2) !important; transition: border-color 0.15s ease-out, background 0.15s ease-out; }
.tt-wiz #premier-dropzone.is-over { border-color: var(--tt-green-dk) !important; background: var(--rc-ties-bg) !important; }
.tt-wiz #premier-dropzone.is-filled { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.tt-wiz #premier-dropzone.is-filled .display-5 { font-size: 1.6rem; }
.tt-wiz #premier-dropzone .bi { color: var(--tt-primary) !important; }
.tt-wiz .tt-upload__item { padding: 0.55rem 0.9rem; }
.tt-wiz .tt-upload__icon { color: var(--tt-primary); font-size: 1.05rem; }
.tt-wiz .tt-upload__name { font-size: 0.88rem; font-weight: 500; max-width: 42rem; }
.tt-wiz .tt-upload__remove { width: 0.6rem; height: 0.6rem; opacity: 0.55; }
.tt-wiz .tt-upload__remove:hover { opacity: 1; }
.tt-wiz .tt-upload__foot { background: var(--tt-surface-2); font-size: 0.84rem; }

/* ── The step bar (Hennie, 2026-09-24; DESIGN.md section 6) ─────────────────────────────────────
   Every step's main header is a black bar: opt in with .tt-stepbar on the header card (or a bespoke
   header such as .tt-recon__head / .tt-batch__head). Title and lede white (17.4:1), the eyebrow and the
   live counts (a <strong> with an id) brand green (8.85:1), and EVERY button on it a green fill with
   ink text: an outline or grey button disappears on charcoal. A state (is-ready / is-open) never
   repaints the bar. Discovery keeps its own header by choice. :is() gives every selector below the
   specificity of its strongest argument, so the card form beats the step-header rules above. */
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) { background: var(--tt-ink); border-color: var(--tt-ink); color: #fff; }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) > :is(.card-header, .card-body) { background: transparent; }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) :is(.eyebrow, .tt-recon__step, .tt-foundation__eyebrow) { color: var(--tt-green); }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) :is(h1, h2, h3, h4, h5, h6, p, .text-secondary, .tt-recon__lede, .tt-foundation__lede) { color: #fff !important; }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) :is(.text-muted, .tt-recon__when) { color: #c4c9d1 !important; }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) strong { color: #fff; }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) strong[id] { color: var(--tt-green); }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) code { color: var(--tt-green); background: transparent; }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) a:not(.btn) { color: var(--tt-green); }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) .btn { background: var(--tt-green); border-color: var(--tt-green); color: var(--tt-ink); box-shadow: none; }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) .btn:is(:hover, :focus-visible, :active) { background: var(--tt-green-dk); border-color: var(--tt-green-dk); color: var(--tt-ink); }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) .btn:is(:disabled, .disabled) { background: #cfd4db; border-color: #cfd4db; color: #5b6470; }
.tt-wiz .tt-batch__head.tt-stepbar { padding: 1rem 1.2rem; border: 1px solid var(--tt-ink); border-radius: 0.7rem; }

/* ── Full width on every step, one padding, roomier steps (Hennie, 2026-09-24) ───────────────────────
   Every step used to sit in its own column (col-lg-9, col-lg-10, an 880 / 980 / 1000px shell, full width for
   the wide grids), so the steps above and the header grew and shrank from page to page and the narrow pages
   felt cramped. Every step now takes the full width of the page with the same responsive side padding, so
   the progress steps, the header and the content line up on every page and use the space the screen has.
   Only the page's OUTER wrapper is widened (a direct child of <main>); inner grids keep their own columns. */
main.tt-wiz { padding-left: clamp(1.25rem, 6vw, 10rem) !important; padding-right: clamp(1.25rem, 6vw, 10rem) !important; padding-bottom: 0 !important; }
.tt-wiz > .row > [class*="col-"] { flex: 0 0 100%; width: 100%; max-width: 100%; }
.tt-wiz > .row > [class*="col-"] > :is(.tt-foundation, .tt-fnd, .tt-batch) { max-width: none; }

/* Snapshot batch list: one company row. The status text takes the free width and wraps INSIDE its own block; the green
   check and the accordion chevron never shrink and never drop under the text (a flex row, not a wrapping line). */
.tt-wiz .tt-snap-row { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 auto; min-width: 0; padding-right: 0.5rem; }
.tt-wiz .tt-snap-row__main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; flex: 0 1 auto; min-width: 0; }
.tt-wiz .tt-snap-row__status { flex: 1 1 auto; min-width: 0; text-align: right; font-size: 0.8rem; font-weight: 400; color: var(--tt-muted); overflow-wrap: anywhere; }
.tt-wiz .tt-snap-row__tick { flex: 0 0 auto; align-self: center; line-height: 1; }
.tt-wiz .accordion-button.tt-snap-button::after { flex: 0 0 auto; margin-left: 0.25rem; }
@media (max-width: 575.98px) {
    /* Phone: the row dissolves (display: contents) so the name block, status, check and the chevron are all items of the
       button's own wrapping flex line. The name block fills row one; row two is status, check and chevron, centred together,
       so the chevron sits level with the status whether it runs to one line or two. */
    .tt-wiz .accordion-button.tt-snap-button { flex-wrap: wrap; align-items: center; row-gap: 0.25rem; }
    .tt-wiz .tt-snap-row { display: contents; }
    .tt-wiz .tt-snap-row__main { flex: 0 0 100%; }
    .tt-wiz .tt-snap-row__status { text-align: left; flex: 1 1 0; }
    .tt-wiz .accordion-button.tt-snap-button::after { margin-left: 0.25rem; }
}
/* The "capture a company first" hint sits on the black step bar: the on-dark muted ink, not the card-header's ink. */
.tt-wiz .tt-stepbar .tt-pack-hint { color: #c4c9d1; }

/* Shared canvas rhythm, including the existing per-page outer wrappers. */
.tt-wiz > :is(.row, .tt-batch, .tt-recon),
.tt-wiz > .row > [class*="col-"],
.tt-wiz :is(.premier-shell-main, .tt-batch, .tt-foundation, .tt-fnd) { min-width: 0; }
.tt-wiz > :is(.card, .alert, .wizard-progress, .row, .tt-batch, .tt-recon),
.tt-wiz > .row > [class*="col-"] > :is(.card, .alert, .wizard-progress, .premier-shell, .tt-stepbar),
.tt-wiz :is(.tt-batch, .tt-foundation, .tt-fnd, .tt-recon) > :is(.card, .alert, section, .tt-stepbar),
.tt-wiz .premier-shell-main > :is(.card, .alert, section) { margin-top: 0 !important; margin-bottom: .875rem !important; }
.tt-wiz > :last-child { margin-bottom: 0 !important; }
/* Comfortable targets, but never on inline link-style buttons inside running text. */
.tt-wiz .btn:not(.btn-link) { min-height: 2.5rem; }
.tt-wiz :is(.btn-sm, .btn-group-sm > .btn):not(.btn-link) { min-height: 2rem; }
.tt-wiz .btn:active:not(:disabled):not(.disabled) { transform: translateY(1px) scale(.985); }
.tt-wiz :is(.btn-outline-dark, .btn-outline-info, .btn-outline-warning) { background: #fff; border-color: var(--tt-slate); color: var(--tt-graphite); }
.tt-wiz .badge:is(.bg-dark, .text-bg-dark) { background: var(--tt-ink) !important; color: #fff !important; border-color: var(--tt-ink); }
.tt-wiz .badge.is-ties { background: var(--rc-ties-bg); color: var(--rc-ties-fg); border-color: var(--rc-ties-bd); }
.tt-wiz .table > :is(thead, tbody, tfoot) > tr > :is(th, td) { padding: .75rem 1rem; }
.tt-wiz .table > :is(thead, tbody, tfoot) > tr > :first-child { padding-left: 1.25rem; }
.tt-wiz .table > :is(thead, tbody, tfoot) > tr > :last-child { padding-right: 1.25rem; }
.tt-wiz .text-end { font-variant-numeric: tabular-nums; }
.tt-wiz .nav-pills { border-bottom: 1px solid var(--tt-line); }
.tt-wiz .nav-pills .nav-link { padding: .6rem 1rem; font-size: .86rem; font-weight: 600; color: var(--tt-graphite); border-radius: 0; border-bottom: 2px solid transparent; }
.tt-wiz .nav-pills .nav-link.active { color: var(--tt-ink); border-bottom-color: var(--tt-green); }

/* One dark header, whether a page uses a Bootstrap card or a bespoke header. */
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) { padding: 1.5rem; border-radius: .75rem; box-shadow: var(--ttp-elev-2); }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) > :is(.card-header, .card-body) { padding: 0; min-height: 0; border: 0; }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) :is(.eyebrow, .tt-recon__step, .tt-foundation__eyebrow) { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) :is(h1, h2, h3, h4, .tt-recon__title) { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) :is(p, .tt-recon__lede, .tt-foundation__lede) { color: #e5e5e5 !important; font-size: .9rem; max-width: 80ch; }

/* A scrollable rail keeps every step reachable without widening the page. */
.tt-wiz .wizard-progress { margin-left: 0; margin-right: 0; padding: .5rem 0; overflow-x: auto; background: var(--tt-surface-2); box-shadow: none; }
.tt-wiz .wizard-progress > .d-flex { min-width: calc(var(--wizard-step-count) * 5.5rem); padding: .25rem 0; }
.tt-wiz .wizard-progress .wizard-step-item { flex: 1 0 5.5rem; }
.tt-wiz .wizard-progress .wizard-progress-line { top: calc(.25rem + .925rem); height: 2px; background: var(--tt-line); }
.tt-wiz .wizard-progress .wizard-progress-line::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(100% * var(--wizard-done, 0)); background: var(--tt-green); }
.tt-wiz .wizard-progress .wizard-step-item .wizard-step-circle { width: 1.85rem; height: 1.85rem; border: 1px solid var(--tt-slate); font-size: .78rem; font-weight: 700; }
.tt-wiz .wizard-progress .wizard-step-item.is-done .wizard-step-circle { background: var(--rc-ties-bg) !important; color: var(--tt-primary) !important; border-color: var(--rc-ties-bd); }
.tt-wiz .wizard-progress .wizard-step-item.is-active .wizard-step-circle { background: linear-gradient(180deg,#2bee5c,#00d639) !important; color: var(--tt-ink) !important; border-color: transparent; box-shadow: 0 0 0 4px rgba(0,214,57,.18); }
.tt-wiz .wizard-progress .wizard-step-item.is-todo .wizard-step-circle { background: #fff !important; color: var(--tt-graphite) !important; border-color: var(--tt-slate) !important; }
.tt-wiz .wizard-progress .wizard-step-label { font-size: .72rem; font-weight: 600; color: var(--tt-muted) !important; margin-top: .3rem; }
.tt-wiz .wizard-progress .is-active .wizard-step-label { color: var(--tt-ink) !important; }
.tt-wiz .wizard-progress a .wizard-step-circle { cursor: pointer; }
.tt-wiz .wizard-progress a:focus-visible { display: block; outline: 2px solid var(--tt-green); outline-offset: -2px; border-radius: .5rem; }
.tt-wiz .tes-step-check { display: none; }

/* Reusable action bar. Individual page bars opt in in later work orders. */
.tes-wfoot { position: sticky; bottom: 0; z-index: 1020; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid #e5e7eb; border-bottom: 0; border-radius: .75rem .75rem 0 0; box-shadow: 0 -1px 2px rgba(16,24,40,.06),0 -10px 24px -8px rgba(16,24,40,.14); }
.tes-wfoot__back { display: flex; flex-wrap: wrap; gap: .5rem; }
.tes-wfoot__next { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; margin-left: auto; min-width: 0; max-width: 100%; }
.tes-wfoot__reason { max-width: 65ch; font-size: .82rem !important; color: #6b7280 !important; overflow-wrap: anywhere; }
.tes-wfoot .btn { white-space: normal; }

/* Compact density (Hennie, 20 Oct 2026: "everything feels a bit too big, harder to scroll; the footer
   must be thinner"). Same look, tighter rhythm: sections 14px apart, cards and tables padded like the
   pre-redesign skin, buttons 2.125rem, the fixed action bar one slim row. Appended last so it wins. */
.tt-wiz .card-header { padding: .65rem 1rem; min-height: 0; }
.tt-wiz .card-body { padding: .9rem 1rem; }
.tt-wiz .card-footer { padding: .5rem 1rem; }
.tt-wiz .premier-shell-main > :is(.card, .alert, section) { margin-bottom: .875rem !important; }
.tt-wiz .btn:not(.btn-link) { min-height: 2.125rem; padding-top: .3rem; padding-bottom: .3rem; }
.tt-wiz :is(.btn-sm, .btn-group-sm > .btn):not(.btn-link) { min-height: 1.75rem; padding-top: .15rem; padding-bottom: .15rem; }
.tt-wiz .table > :is(thead, tbody, tfoot) > tr > :is(th, td) { padding: .45rem .75rem; }
.tt-wiz .table > :is(thead, tbody, tfoot) > tr > :first-child { padding-left: 1rem; }
.tt-wiz .table > :is(thead, tbody, tfoot) > tr > :last-child { padding-right: 1rem; }
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) { padding: .9rem 1.15rem; }
/* Same selector as the 1.45rem heading rule above (specificity 0,6,0) and later in the file, so it wins. */
.tt-wiz :is(.card.tt-stepbar:has(> .card-header > .eyebrow), .tt-stepbar) :is(h1, .h1) { font-size: 1.2rem; margin-bottom: .15rem; }
.tt-wiz .wizard-progress { margin-bottom: .875rem !important; }
.tt-wiz .wizard-progress .wizard-step-item .wizard-step-circle { width: 1.55rem; height: 1.55rem; font-size: .72rem; }
/* The fixed action bar: one slim row. The block reason sits beside Continue, not under it. */
.tes-wfoot { margin-top: .875rem; padding: .4rem .85rem; gap: .5rem; border-radius: .6rem .6rem 0 0; box-shadow: 0 -1px 2px rgba(16,24,40,.05), 0 -6px 14px -8px rgba(16,24,40,.12); }
/* Prefixed with .tt-wiz so it ties (0,4,0) with the shared `.tt-wiz .btn:not(.btn-link)` rule and wins by order. */
.tt-wiz .tes-wfoot .btn:not(.btn-link) { min-height: 1.9rem; padding: .2rem .8rem; font-size: .85rem; }
/* Nothing in the bar may ever scroll sideways. The back group may shrink and wrap its own buttons
   (BatchHub has two long ones). The next group takes the rest of the row, but only when at least 11rem
   is left (flex-basis 11rem, so Back + Dashboard + Continue + a short reason stay on one row from 576px at normal text); with less, the footer wraps and the next group drops to its own row. Inside
   it the reason shrinks and ellipsises first (flex-basis 0), and Continue shrinks its label (it may wrap)
   only when it alone cannot fit. No container query: this file does not use them. */
.tes-wfoot { box-sizing: border-box; max-width: 100%; }
.tes-wfoot__back { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.tes-wfoot__next { flex: 1 1 11rem; min-width: 0; flex-direction: row-reverse; align-items: center; gap: .6rem; }
.tes-wfoot__next > .btn, .tes-wfoot__next > span:has(> .btn) { flex: 0 1 auto; min-width: 0; }
.tes-wfoot__reason { flex: 1 1 0; min-width: 0; margin: 0 !important; font-size: .78rem !important; text-align: right; }
@media (max-width: 575.98px) { .tes-wfoot__next { flex: 1 1 100%; flex-direction: column; align-items: flex-end; gap: .2rem; } }
/* Step rail colours (Hennie, 20 Oct 2026, Ted's rail): done = solid brand green with a charcoal tick,
   current = charcoal with a white number and a soft grey ring, to do = white with a grey outline.
   No pale green or blue tints on the rail. */
.tt-wiz .wizard-progress { background: #fff; }
.tt-wiz .wizard-progress .wizard-progress-line { top: calc(.25rem + .775rem); background: #e5e7eb; }
.tt-wiz .wizard-progress .wizard-progress-line::after { background: #00d639; }
.tt-wiz .wizard-progress .wizard-step-item.is-done .wizard-step-circle { background: #00d639 !important; color: #1a1a1a !important; border-color: #00d639 !important; box-shadow: none; }
.tt-wiz .wizard-progress .wizard-step-item.is-done .wizard-step-circle .tes-step-check { color: #1a1a1a; font-size: .95rem; }
.tt-wiz .wizard-progress .wizard-step-item.is-active .wizard-step-circle { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; box-shadow: 0 0 0 4px rgba(26,26,26,.12); }
.tt-wiz .wizard-progress .wizard-step-item.is-todo .wizard-step-circle { background: #fff !important; color: #374151 !important; border: 1.5px solid #6b7280 !important; }
.tt-wiz .wizard-progress .wizard-step-label { color: #4b5563 !important; font-weight: 500; }
.tt-wiz .wizard-progress .is-active .wizard-step-label { color: #1a1a1a !important; font-weight: 700; }
.tt-wiz .wizard-progress .is-done .tes-step-check { display: inline-block; line-height: 1; }
.tt-wiz .wizard-progress .is-done .wizard-step-circle > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The step bar's lede reads on one or two lines, not a narrow column. */
.tt-wiz .tt-stepbar :is(p, .lede, .tt-recon__lede, .tt-foundation__lede) { max-width: 120ch !important; }
/* Phones: the fixed bar stays two short rows at most; the lock reason is one line (the full reason is
   still on the Continue tooltip and in the page). */
@media (max-width: 575.98px) {
  .tes-wfoot { padding: .3rem .5rem; gap: .3rem; }
  .tes-wfoot__back { gap: .3rem; }
  .tt-wiz .tes-wfoot .btn:not(.btn-link) { min-height: 1.75rem; padding: .15rem .55rem; font-size: .78rem; }
  .tes-wfoot__next { flex: 1 1 100%; width: 100%; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: .4rem; }
  .tes-wfoot__reason { flex: 1 1 0; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .7rem !important; }
}
/* Desktop: the lock reason is one line beside Continue so the bar never grows (full text stays on the
   Continue tooltip). */
@media (min-width: 576px) { .tes-wfoot__reason { max-width: 70ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
/* The reason is focusable (tabindex="0" in the markup): tap or Tab to it and the full text opens as a
   panel above the bar, so keyboard and touch users can read what the one-line version cuts off. The
   panel is absolute so the bar itself never grows. */
.tes-wfoot .tes-wfoot__reason:is(:focus, :focus-visible) {
  position: absolute; left: 0; right: 0; margin-left: auto; bottom: calc(100% + .35rem); z-index: 2; box-sizing: border-box; width: max-content; max-height: 40vh; overflow-y: auto;
  max-width: min(70ch, calc(100vw - 2rem), 100%); white-space: normal; text-align: left;
  padding: .5rem .75rem; background: #fff; color: var(--tt-ink, #1a1a1a) !important; border: 1px solid #d1d5db; border-radius: .5rem;
  box-shadow: 0 6px 18px -6px rgba(16,24,40,.25); outline: 2px solid var(--tt-green, #00d639); outline-offset: 1px;
}

/* "Go to the fix" (Hennie, 22 Oct 2026). A Take-On refusal shows a button to the page where it is fixed, or, for a deployment
   setting or a fix in People, a plain sentence instead (.tt-fix-setting). premier-fix-target.js lands on the element and pulses
   it once with .tt-highlight: the brand green as a focus-style ring and a soft green tint, fading out (DESIGN.md: green is a fill
   or a ring, never a letterform). Reduced motion keeps a still ring for the same time. */
.tt-wiz .tt-fix-go { margin-left: .5rem; white-space: nowrap; vertical-align: baseline; }
.tt-wiz .tt-fix-setting { display: block; margin-top: .25rem; color: var(--tt-muted, #6b7280); font-size: .85em; }
@keyframes tt-highlight-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 214, 57, .55); background-color: rgba(0, 214, 57, .12); }
  40%  { box-shadow: 0 0 0 .5rem rgba(0, 214, 57, 0); background-color: rgba(0, 214, 57, .12); }
  100% { box-shadow: 0 0 0 0 rgba(0, 214, 57, 0); background-color: transparent; }
}
.tt-highlight { outline: 2px solid var(--tt-green, #00d639); outline-offset: 2px; border-radius: .5rem; animation: tt-highlight-pulse 1s ease-out 2; }
@media (prefers-reduced-motion: reduce) {
  @keyframes tt-highlight-still { from { opacity: 1; } to { opacity: 1; } }
  .tt-highlight { animation: tt-highlight-still 2s linear 1; }
}
