/* BizCore V271.5.29.1 — correct semantic CSS precedence: remove phantom ID selector.
   This allows later [data-tone] declarations for full card backgrounds and icons
   to override the navy default, while leaving Pricing and business logic intact.
   Original: BizCore V271.5.27 — Global Dark Premium monitor trial.
   Approved Pricing V271.5.26.1 is the visual reference. Desktop monitors only.
   One shared palette and typography; no metric, status, bar-width or click logic changes. */
:root {
 --bc-premium-title-size:15px;
 --bc-premium-count-size:23px;
 --bc-premium-detail-size:13px;
 --bc-premium-navy-start:#16345b; --bc-premium-navy-end:#0b1f39;
 --bc-premium-purple-start:#442550; --bc-premium-purple-end:#281636;
 --bc-premium-teal-start:#16494d; --bc-premium-teal-end:#0b2836;
 --bc-premium-burgundy-start:#562835; --bc-premium-burgundy-end:#301723;
 --bc-premium-neutral-start:#293d53; --bc-premium-neutral-end:#15283a;
}
@media(min-width:1101px){
 /* Apply filled surfaces to the shared phase-5 monitor component outside Pricing.
    The first card retains its theme-derived lead background. */
 html body .bc5-strip>.bc5-other>.bc5-card {
  --pm-start:var(--bc-premium-navy-start);--pm-end:var(--bc-premium-navy-end);
  --pm-icon-bg:rgba(64,157,255,.19);--pm-icon-fg:#8dcaff;
  background:linear-gradient(150deg,var(--pm-start),var(--pm-end))!important;
  color:#f6f8ff!important;border-color:rgba(255,255,255,.12)!important;
  box-shadow:0 3px 9px rgba(16,35,56,.15),inset 0 1px 0 rgba(255,255,255,.09)!important;
 }
 html body .bc5-strip>.bc5-other>.bc5-card:nth-child(2){--pm-start:var(--bc-premium-purple-start);--pm-end:var(--bc-premium-purple-end);--pm-icon-bg:rgba(208,133,255,.19);--pm-icon-fg:#e1bcff;}
 html body .bc5-strip>.bc5-other>.bc5-card:nth-child(3){--pm-start:var(--bc-premium-teal-start);--pm-end:var(--bc-premium-teal-end);--pm-icon-bg:rgba(91,231,181,.16);--pm-icon-fg:#9af5cc;}
 html body .bc5-strip>.bc5-other>.bc5-card:nth-child(4){--pm-start:var(--bc-premium-burgundy-start);--pm-end:var(--bc-premium-burgundy-end);--pm-icon-bg:rgba(255,129,147,.18);--pm-icon-fg:#ffb3bd;}
 html body .bc5-strip>.bc5-other>.bc5-card:nth-child(n+5){--pm-start:var(--bc-premium-neutral-start);--pm-end:var(--bc-premium-neutral-end);--pm-icon-bg:rgba(168,191,216,.18);--pm-icon-fg:#c9d8ea;}
 html body .bc5-strip>.bc5-other>.bc5-card :is(.bc5-label,.bc5-number,.bc5-description,.bc5-sar-amount){color:#f6f8ff!important;}
 html body .bc5-strip>.bc5-other>.bc5-card .bc5-description{opacity:.87!important;}
 html body .bc5-strip>.bc5-other>.bc5-card::before{background:var(--pm-icon-bg)!important;}
 html body .bc5-strip>.bc5-other>.bc5-card::after{background:var(--pm-icon-fg)!important;}
 html body .bc5-strip>.bc5-other>.bc5-card .bc5-bar{background:rgba(255,255,255,.20)!important;}
 html body .bc5-strip>.bc5-other>.bc5-card:hover:not(:disabled){background:linear-gradient(150deg,var(--pm-start),var(--pm-end))!important;filter:brightness(1.08);}
 html body .bc5-strip>.bc5-other>.bc5-card[aria-pressed="true"]{background:linear-gradient(150deg,var(--pm-start),var(--pm-end))!important;border-color:#a8d6ff!important;box-shadow:0 0 0 2px rgba(147,197,253,.5),0 3px 10px rgba(16,35,56,.16)!important;}
 /* Central typography tokens apply to Pricing as well as other shared monitors. */
 html body .bc5-strip>.bc5-lead>.bc5-label,
 html body .bc5-strip>.bc5-other>.bc5-card :is(.bc5-card-header,.bc5-label){font-size:var(--bc-premium-title-size)!important;}
 html body .bc5-strip :is(.bc5-lead,.bc5-card) .bc5-number{font-size:var(--bc-premium-count-size)!important;}
 html body .bc5-strip :is(.bc5-lead,.bc5-card) :is(.bc5-description,.bc5-sar-amount){font-size:var(--bc-premium-detail-size)!important;}
 /* Jobs has a separate monitor DOM; use the same palette, spacing and typography. */
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile {
  --pm-start:var(--bc-premium-navy-start);--pm-end:var(--bc-premium-navy-end);
  --pm-icon-bg:rgba(64,157,255,.19);--pm-icon-fg:#8dcaff;
  background:linear-gradient(150deg,var(--pm-start),var(--pm-end))!important;
  border-color:rgba(255,255,255,.12)!important;color:#f6f8ff!important;
  box-shadow:0 3px 9px rgba(16,35,56,.15),inset 0 1px 0 rgba(255,255,255,.09)!important;
 }
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile:nth-child(3){--pm-start:var(--bc-premium-purple-start);--pm-end:var(--bc-premium-purple-end);--pm-icon-bg:rgba(208,133,255,.19);--pm-icon-fg:#e1bcff;}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile:nth-child(4){--pm-start:var(--bc-premium-teal-start);--pm-end:var(--bc-premium-teal-end);--pm-icon-bg:rgba(91,231,181,.16);--pm-icon-fg:#9af5cc;}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile:nth-child(5){--pm-start:var(--bc-premium-burgundy-start);--pm-end:var(--bc-premium-burgundy-end);--pm-icon-bg:rgba(255,129,147,.18);--pm-icon-fg:#ffb3bd;}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile:nth-child(n+6){--pm-start:var(--bc-premium-neutral-start);--pm-end:var(--bc-premium-neutral-end);--pm-icon-bg:rgba(168,191,216,.18);--pm-icon-fg:#c9d8ea;}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile :is(span,strong,small,.jb-monitor-amount){color:#f6f8ff!important;}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile::before{background:var(--pm-icon-bg)!important;}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile::after{background:var(--pm-icon-fg)!important;}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile .jb-monitor-track{background:rgba(255,255,255,.20)!important;}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile:hover{background:linear-gradient(150deg,var(--pm-start),var(--pm-end))!important;filter:brightness(1.08);}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile.is-active{background:linear-gradient(150deg,var(--pm-start),var(--pm-end))!important;outline:2px solid #a8d6ff;outline-offset:-2px;}
 html body #page-jobs.active .jb-monitor :is(.jb-monitor-main span,.jb-monitor-tile>span){font-size:var(--bc-premium-title-size)!important;}
 html body #page-jobs.active .jb-monitor :is(.jb-monitor-main strong,.jb-monitor-tile>strong){font-size:var(--bc-premium-count-size)!important;}
 html body #page-jobs.active .jb-monitor :is(.jb-monitor-main small,.jb-monitor-amount){font-size:var(--bc-premium-detail-size)!important;}
 /* Sales Orders tiles are a third implementation. Preserve the leading theme tile. */
 html body #page-salesorders.active .so-tile-grid>.so-tile{
  --pm-start:var(--bc-premium-navy-start);--pm-end:var(--bc-premium-navy-end);
  background:linear-gradient(150deg,var(--pm-start),var(--pm-end))!important;
  color:#f6f8ff!important;border-color:rgba(255,255,255,.12)!important;
  box-shadow:0 3px 9px rgba(16,35,56,.15),inset 0 1px 0 rgba(255,255,255,.09)!important;
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile:nth-child(2){--pm-start:var(--bc-premium-purple-start);--pm-end:var(--bc-premium-purple-end);}
 html body #page-salesorders.active .so-tile-grid>.so-tile:nth-child(3){--pm-start:var(--bc-premium-teal-start);--pm-end:var(--bc-premium-teal-end);}
 html body #page-salesorders.active .so-tile-grid>.so-tile:nth-child(4){--pm-start:var(--bc-premium-burgundy-start);--pm-end:var(--bc-premium-burgundy-end);}
 html body #page-salesorders.active .so-tile-grid>.so-tile :is(.so-tile-t,.so-tile-t span,.so-tile-t b,.so-tile-val,.so-tile-s){color:#f6f8ff!important;}
 html body #page-salesorders.active .so-tile-grid>.so-tile .so-tile-bar{background:rgba(255,255,255,.20)!important;}
 html body #page-salesorders.active .so-tile-grid>.so-tile:hover{background:linear-gradient(150deg,var(--pm-start),var(--pm-end))!important;filter:brightness(1.08);}
 html body #page-salesorders.active .so-tile-grid>.so-tile.active{background:linear-gradient(150deg,var(--pm-start),var(--pm-end))!important;border-color:#a8d6ff!important;box-shadow:0 0 0 2px rgba(147,197,253,.5)!important;}
 html body #page-salesorders.active .so-tiles :is(.so-tile-lead small,.so-tile-t){font-size:var(--bc-premium-title-size)!important;}
 html body #page-salesorders.active .so-tiles :is(.so-tile-lead>b,.so-tile-t>b){font-size:var(--bc-premium-count-size)!important;}
 html body #page-salesorders.active .so-tiles :is(.so-tile-val,.so-tile-s,.so-tile-l2){font-size:var(--bc-premium-detail-size)!important;}
}

/* V271.5.28 — semantic icon badges on Dark Premium monitor cards.
   IMPORTANT: keep card fills, label typography, DOM and progress percentages unchanged.
   The card data-tone/data-filter, not its screen position, defines icon colors.
   Update these central palette tokens to change all equivalent icon badges. */
:root {
 --bc-monitor-icon-blue-bg:rgba(52,139,245,.22); --bc-monitor-icon-blue:#8dcaff;
 --bc-monitor-icon-amber-bg:rgba(245,158,11,.23); --bc-monitor-icon-amber:#ffd17a;
 --bc-monitor-icon-purple-bg:rgba(168,85,247,.22); --bc-monitor-icon-purple:#d6adff;
 --bc-monitor-icon-green-bg:rgba(34,197,94,.19); --bc-monitor-icon-green:#80efb4;
 --bc-monitor-icon-red-bg:rgba(239,68,68,.23); --bc-monitor-icon-red:#ffaaa9;
 --bc-monitor-icon-slate-bg:rgba(174,191,209,.18); --bc-monitor-icon-slate:#d3deed;
 --bc-monitor-icon-lightgreen-bg:rgba(74,222,128,.18); --bc-monitor-icon-lightgreen:#a2f4b5;
}
@media(min-width:1101px){
 /* Override the old position-based icon variables for the shared monitor. */
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="blue"]{--pm-icon-bg:var(--bc-monitor-icon-blue-bg);--pm-icon-fg:var(--bc-monitor-icon-blue);}
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="amber"]{--pm-icon-bg:var(--bc-monitor-icon-amber-bg);--pm-icon-fg:var(--bc-monitor-icon-amber);}
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="purple"]{--pm-icon-bg:var(--bc-monitor-icon-purple-bg);--pm-icon-fg:var(--bc-monitor-icon-purple);}
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="green"]{--pm-icon-bg:var(--bc-monitor-icon-green-bg);--pm-icon-fg:var(--bc-monitor-icon-green);}
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="red"]{--pm-icon-bg:var(--bc-monitor-icon-red-bg);--pm-icon-fg:var(--bc-monitor-icon-red);}
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="slate"]{--pm-icon-bg:var(--bc-monitor-icon-slate-bg);--pm-icon-fg:var(--bc-monitor-icon-slate);}
 /* Business semantics take precedence where a page's existing data-tone is generic. */
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="pay-unpaid"],
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="payment"]{--pm-icon-bg:var(--bc-monitor-icon-blue-bg);--pm-icon-fg:var(--bc-monitor-icon-blue);}
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="pay-partial"]{--pm-icon-bg:var(--bc-monitor-icon-lightgreen-bg);--pm-icon-fg:var(--bc-monitor-icon-lightgreen);}
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="pay-paid"]{--pm-icon-bg:var(--bc-monitor-icon-green-bg);--pm-icon-fg:var(--bc-monitor-icon-green);}
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="partially-allocated"],
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="partially-applied"]{--pm-icon-bg:var(--bc-monitor-icon-purple-bg);--pm-icon-fg:var(--bc-monitor-icon-purple);}
 html body #st-visual-strip>.bc5-other>.bc5-card[data-stock-filter="in"]{--pm-icon-bg:var(--bc-monitor-icon-green-bg);--pm-icon-fg:var(--bc-monitor-icon-green);}
 /* Stock's available metric was originally assigned blue; its visual accent is green. */
 html body #st-visual-strip>.bc5-other>.bc5-card[data-stock-filter="in"] .bc5-bar i{background:#22c55e;}
 /* Jobs has separate markup; apply the approved color vocabulary by the named card. */
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile:nth-child(2){--pm-icon-bg:var(--bc-monitor-icon-blue-bg);--pm-icon-fg:var(--bc-monitor-icon-blue);}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile:nth-child(3){--pm-icon-bg:var(--bc-monitor-icon-purple-bg);--pm-icon-fg:var(--bc-monitor-icon-purple);}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile:nth-child(4){--pm-icon-bg:var(--bc-monitor-icon-green-bg);--pm-icon-fg:var(--bc-monitor-icon-green);}
 html body #page-jobs.active .jb-monitor>.jb-monitor-tile:nth-child(5){--pm-icon-bg:var(--bc-monitor-icon-amber-bg);--pm-icon-fg:var(--bc-monitor-icon-amber);}
}


/* V271.5.29 — full-card semantic palette, Sales Order icons and Quotation alignment.
   Pricing's approved monitor palette remains untouched. Keep the shared monitor
   counts, amounts, click behavior and progress widths unchanged. */
:root {
 --bc-premium-amber-start:#594126; --bc-premium-amber-end:#30231c;
 --bc-premium-slate-start:#38334f; --bc-premium-slate-end:#222037;
}
@media (min-width:1101px) {
 /* These colors represent business statuses rather than the card's ordinal position.
    This is shared by RFQ, Quotations, Delivery Notes, Invoice and Payment registers and Stock. */
 html body #page-rfq.active .bc5-other>.bc5-card[data-tone="amber"],
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="amber"] {
   --pm-start:var(--bc-premium-amber-start);--pm-end:var(--bc-premium-amber-end);
 }
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="blue"] {
   --pm-start:var(--bc-premium-navy-start);--pm-end:var(--bc-premium-navy-end);
 }
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="slate"] {
   --pm-start:var(--bc-premium-slate-start);--pm-end:var(--bc-premium-slate-end);
 }
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="purple"] {
   --pm-start:var(--bc-premium-purple-start);--pm-end:var(--bc-premium-purple-end);
 }
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="green"] {
   --pm-start:var(--bc-premium-teal-start);--pm-end:var(--bc-premium-teal-end);
 }
 html body .bc5-strip>.bc5-other>.bc5-card[data-tone="red"] {
   --pm-start:var(--bc-premium-burgundy-start);--pm-end:var(--bc-premium-burgundy-end);
 }
 /* Keep existing business status distinctions when the data-tone is generic. */
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="pay-unpaid"],
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="payment"] {
   --pm-start:var(--bc-premium-navy-start);--pm-end:var(--bc-premium-navy-end);
 }
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="pay-partial"],
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="partially-allocated"],
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="partially-applied"] {
   --pm-start:var(--bc-premium-purple-start);--pm-end:var(--bc-premium-purple-end);
 }
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="pay-paid"],
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="fully-allocated"],
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="fully-applied"] {
   --pm-start:var(--bc-premium-teal-start);--pm-end:var(--bc-premium-teal-end);
 }
 html body #st-visual-strip>.bc5-other>.bc5-card[data-stock-filter="in"] {
   --pm-start:var(--bc-premium-teal-start);--pm-end:var(--bc-premium-teal-end);
 }
 /* Financial partial payment uses the approved light-green icon, not a purple icon. */
 html body .bc5-strip>.bc5-other>.bc5-card[data-filter="pay-partial"] {
   --pm-icon-bg:var(--bc-monitor-icon-lightgreen-bg);--pm-icon-fg:var(--bc-monitor-icon-lightgreen);
 }
 /* Quotation: title, explanation and SAR amount form one left-aligned content column.
    Keep the count at the far right, as on Pricing. */
 html body #page-quotations.active .bc5-strip>.bc5-other>.bc5-card {
   text-align:left!important;align-items:stretch!important;
 }
 html body #page-quotations.active .bc5-strip>.bc5-other>.bc5-card .bc5-card-header {
   display:flex!important;align-items:center!important;justify-content:space-between!important;
   min-height:36px!important;gap:8px!important;
 }
 html body #page-quotations.active .bc5-strip>.bc5-other>.bc5-card .bc5-card-header .bc5-label {
   flex:1 1 auto!important;min-width:0!important;text-align:left!important;
   padding-left:42px!important;
 }
 html body #page-quotations.active .bc5-strip>.bc5-other>.bc5-card .bc5-card-header .bc5-number {
   margin-left:auto!important;flex:0 0 auto!important;text-align:right!important;
 }
 html body #page-quotations.active .bc5-strip>.bc5-other>.bc5-card .bc5-description,
 html body #page-quotations.active .bc5-strip>.bc5-other>.bc5-card .bc5-sar-amount {
   box-sizing:border-box!important;padding-left:42px!important;margin-left:0!important;
   text-align:left!important;max-width:100%!important;white-space:nowrap!important;
   overflow:hidden!important;text-overflow:ellipsis!important;
 }
 /* Sales Orders uses a separate monitor. Icons are real accessible-hidden SVG markup.
    Arrange the title/amount/detail column beside the icon without increasing card height. */
 html body #page-salesorders.active .so-tile-grid>.so-tile {
   display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;
   grid-template-rows:auto auto auto 1fr auto!important;
   column-gap:10px!important;align-content:start!important;
   --so-badge-bg:var(--bc-monitor-icon-blue-bg);
   --so-badge-color:var(--bc-monitor-icon-blue);
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile[data-tone="amber"] {
   --so-badge-bg:var(--bc-monitor-icon-amber-bg);--so-badge-color:var(--bc-monitor-icon-amber);
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile[data-tone="purple"] {
   --so-badge-bg:var(--bc-monitor-icon-purple-bg);--so-badge-color:var(--bc-monitor-icon-purple);
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile[data-tone="orange"] {
   --so-badge-bg:var(--bc-monitor-icon-red-bg);--so-badge-color:var(--bc-monitor-icon-red);
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile .so-tile-icon {
   display:flex!important;grid-column:1!important;grid-row:1 / span 3!important;
   width:34px!important;height:34px!important;border-radius:9px!important;
   justify-content:center!important;align-items:center!important;
   background:var(--so-badge-bg)!important;color:var(--so-badge-color)!important;
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile .so-tile-icon svg {
   width:20px!important;height:20px!important;display:block!important;
   fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile .so-tile-t {
   grid-column:2!important;grid-row:1!important;min-width:0!important;
   display:flex!important;align-items:center!important;gap:6px!important;
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile .so-tile-t>span {
   min-width:0!important;flex:1 1 auto!important;
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile .so-tile-t>b {
   margin-left:auto!important;flex:0 0 auto!important;
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile .so-tile-val {
   grid-column:2!important;grid-row:2!important;min-width:0!important;
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile .so-tile-s {
   grid-column:2!important;grid-row:3!important;min-width:0!important;
 }
 html body #page-salesorders.active .so-tile-grid>.so-tile .so-tile-bar {
   grid-column:1 / -1!important;grid-row:5!important;width:100%!important;
   align-self:end!important;margin-top:8px!important;
 }
}
