/* Team WIP page (wip.html) — named classes for what used to be inline styles (29/10/2026).
   Same pattern as pay-office.css (po-*), finance.css (fn-*) and exco.css (ex-*): written `html body .wp-…`;
   spacing and alignment carry !important (they replace inline styles, so they must beat component
   padding/margins); colour and display do not, so JS that toggles .hidden still wins.
   Tokens only. Loaded just before /css/theme.css, which stays last.
   Target results use the VQTarget classes (.vqt-MET/ON_PACE/BEHIND/MISSED/NONE, js/target-words.js),
   always shown with the word. */

/* ── Team banks (Team Performance → "The team — by bank") ─────────────── */
html body .wp-bank-chip { margin: 2px 4px 2px 0 !important; }
/* "Change banks" editor (JS toggles .hidden) */
html body .wp-editor { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px !important; margin-bottom: 10px !important; }
html body .wp-editor-list { max-height: 260px; overflow: auto; }
html body .wp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px !important; }
html body .wp-bank-row { display: flex; align-items: center !important; gap: 8px; padding: 4px 0 !important; font-size: 13px; cursor: pointer; }
html body .wp-grow { flex: 1; min-width: 0; }

/* ── Team Targets: "Each person's targets" ───────────────────────────── */
html body .wp-head-row { flex-wrap: wrap; gap: 10px; }
html body .wp-tools { display: flex; gap: 8px; align-items: center !important; flex-wrap: wrap; }
html body .wp-month { padding: 6px 8px !important; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
html body .wp-summary { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); margin: 6px 0 10px !important; }
html body .wp-summary b { color: var(--text); font-family: var(--vq-mono, monospace); font-variant-numeric: tabular-nums; }
html body .wp-summary .u-c-success b { color: var(--success); }
html body .wp-summary .u-c-danger b { color: var(--danger); }
html body .wp-scroll-x { overflow-x: auto; }
html body .wp-pt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 760px; }
/* One cell per target leg: the VQTarget class gives the fill and text colour */
html body .wp-pt-cell { text-align: center !important; white-space: nowrap; }
html body .wp-pt-cell b { font-family: var(--vq-mono, monospace); font-variant-numeric: tabular-nums; }
html body .wp-pt-cell.vqt-NONE { background: transparent; color: var(--text-muted); }
html body .wp-pt-cell.vqt-NONE b { color: var(--text); }
/* Captured, waiting for the bank's OK to Pay: informational, not a result */
html body .wp-prov { color: var(--info); }
html body .wp-would-meet { color: var(--vqt-met, var(--success)); font-weight: 700; }
html body .wp-wrap { white-space: normal !important; }

/* ── Modals ───────────────────────────────────────────────────────────── */
html body .wp-modal-lead { margin: 0 0 8px !important; font-size: 12px; }

/* ── Number columns in the team tables: right-aligned (theme.css gives td.n/th.n mono digits) ── */
html body :is(td.n, th.n) { text-align: right !important; white-space: nowrap; }

/* ── Work Orders / daily cash-up on the design system (Phase 5, screen 6) — ds- tokens only ── */
.wp-ds.active { display: flex; flex-direction: column; gap: var(--ds-space-4); background: transparent; }
.wp-ds .ds-card-head { align-items: flex-start; }
.wp-cash { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.wp-cash-tile { all: unset; display: block; cursor: pointer; border-radius: var(--ds-radius); }
.wp-cash-tile:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }
.wp-cash-tile:hover .ds-kpi { border-color: var(--ds-accent); }
.wp-cash-tile[aria-pressed="true"] .ds-kpi { border-color: var(--ds-accent); box-shadow: inset 0 0 0 1px var(--ds-accent); }
.wp-people { margin-top: var(--ds-space-4); }
.wp-people .ds-btn[aria-pressed="true"] { background: var(--ds-primary); color: var(--ds-on-primary); border-color: var(--ds-primary); }
.wp-people .ds-btn[aria-pressed="true"] .ds-badge { background: var(--ds-surface); }
.wp-filter { align-items: flex-end; margin-bottom: var(--ds-space-3); }
.wp-filter .ds-field { margin: 0; min-width: 150px; flex: 1 1 150px; }
.wp-bulk { position: sticky; top: 0; z-index: 5; }
.wp-ds .ds-table td small { display: block; }
.wp-ds .chk { width: 20px; height: 20px; }
.wp-ds th { font-family: var(--ds-font); }
@media (max-width: 640px) { .wp-filter .ds-field { flex: 1 1 100%; } }
/* Approvals: one card per Team Leader's confirmed day (Phase 5, screen 7) */
.wp-ap-group { border: 1px solid var(--ds-divider); border-radius: var(--ds-radius); padding: var(--ds-space-4); margin-top: var(--ds-space-3); background: var(--ds-surface); }
.wp-ap-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--ds-space-3); }
.wp-ap-title { margin: 0 0 2px; font-size: var(--ds-text-md); font-weight: var(--ds-weight-semibold); color: var(--ds-text); }
.wp-ap-head .ds-hint { margin: 0; }
.wp-ap-note { margin: var(--ds-space-2) 0 0; font-size: var(--ds-text-sm); color: var(--ds-text-2); }
.wp-ap-jobs { margin-top: var(--ds-space-3); }
.wp-ap-jobs > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--ds-accent-text); font-weight: var(--ds-weight-semibold); font-size: var(--ds-text-sm); }
.wp-ap-jobs > summary:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 2px; }
@media (min-width: 641px) { .wp-filter .ds-field { flex: 0 1 220px; } }
