/* Big Time Tech dashboard styles-v2.css - BTT Design System v1.0
   Loaded AFTER styles.css. Maps the old dashboard tokens to the v1.0 tokens
   (see INTEGRATION-OWNER-STEPS.md step 3). Colours here are the locked palette
   plus the UI-extension tokens approved by Andre (D14, 3 Dec 2026 05:42).
   Department colours (management, sales, accounts, operations) are category
   accents with a word label; they never carry status meaning.
   3 Dec 06:03 SAST: Luca LUCA-VISUAL must-changes (operations contrast,
   DEMO/MANUAL banner, chip.error / chip.blocked, dark copper header rule).
   Rollback: restore styles-v2.css.bak-20261203-0603 and app.js.bak-20261203-0603,
   or remove the styles-v2.css link from index.html. */
:root{
  --bg:#F6F4F1;--surface:#F6F4F1;--raised:#F6F4F1;--sunken:#E2E8F0;
  --text:#0F223D;--muted:#3E4C61;--border:#B9C3D1;--strong:#66748A;
  --focus:#1B4F9C;--link:#1B4F9C;--idle:#3E4C61;
  --overdue:#8F1D17;--waiting:#6B4A00;--working:#0B5A3F;
  --header:#0F223D;--headertext:#F6F4F1;
  --operations:#8A3D00; /* 6.96:1 with cream; previous operations orange failed 4.5:1 */
}
:root[data-theme=dark]{
  --bg:#0A1729;--surface:#0F223D;--raised:#1B2E4A;--sunken:#081323;
  --text:#F6F4F1;--muted:#B4C0D0;--border:#3B5782;--strong:#7D93B3;
  --focus:#F2C38F;--link:#E2E8F0;--idle:#B4C0D0;
  --overdue:#FFB4AD;--waiting:#F2CD72;--working:#8FDDB8;
  --header:#0F223D;--headertext:#F6F4F1;
  --operations:#F4AE6A; /* unchanged; 8.44:1 on navy */
}
/* logo sits on a cream plate (approved logo on cream) */
.logo-wrap{background:#F6F4F1}
/* white is print only: light text on filled controls is cream */
.btn.primary{background:#0F223D;border-color:#0F223D;color:#F6F4F1}
:root[data-theme=dark] .btn.primary{background:#E2E8F0;border-color:#E2E8F0;color:#0F223D}
.filter-bar .tab[aria-selected=true]{background:#0F223D;border-color:#0F223D;color:#F6F4F1}
:root[data-theme=dark] .filter-bar .tab[aria-selected=true]{background:#E2E8F0;border-color:#E2E8F0;color:#0F223D}
[data-theme=light] .dept-chip:not(.accounts){color:#F6F4F1}
/* visible focus ring, 3px (design system section 7) */
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--focus);outline-offset:3px}

/* Dark-mode header rule uses the dark copper token (Luca nice-to-have 7) */
:root[data-theme=dark] .header{border-bottom-color:#D9965C}

/* ERROR uses overdue colour + diamond; BLOCKED uses muted + dashed outline (not navy) */
.chip.error{color:var(--overdue)}
.chip.blocked{color:var(--muted);border-style:dashed}
.shape.diamond{background:currentColor;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}

/* CMP-02 / DR-04 DEMO ONLY / MANUAL banner (tokens inlined; btt-design-v1.0.css is not linked) */
.btt-banner{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#E2E8F0;color:#0F223D;border:2px dashed #B87333;border-radius:10px;padding:12px 16px;font-weight:600}
:root[data-theme=dark] .btt-banner{background:#1B2E4A;color:#E2E8F0;border-color:#D9965C}
.btt-banner .when{font-weight:400;margin-left:auto}
.btt-chip{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:2px 10px;border-radius:999px;font-size:.8125rem;font-weight:600;border:1px solid currentColor;white-space:nowrap}
.btt-chip::before{content:"";width:8px;height:8px;background:currentColor;border-radius:50%}
.btt-chip.demo{color:#0F223D;background:#E2E8F0;border-style:dashed}
:root[data-theme=dark] .btt-chip.demo{color:#E2E8F0;background:#1B2E4A}
.btt-chip.demo::before{border-radius:0;background:transparent;border:2px dashed currentColor;box-sizing:border-box}
