/* CTR SUITE V127 — visual tokens for workspace KPI/summary cards.
   Scope only to existing summary components. No business logic or hidden-state changes. */
html body .main {
  --v127-surface:#fff; --v127-ink:#18243b; --v127-muted:#475569; --v127-line:#dce4ef;
  --v127-blue:#2449a7; --v127-teal:#08766a; --v127-violet:#6343ad; --v127-amber:#925013; --v127-red:#b42336;
  --v127-tint:#edf3ff; --v127-accent:var(--theme-primary,var(--blue,#2f6fea));
  --v127-hero:linear-gradient(118deg,#10264e 0%,#1c4389 62%,#2454a3 100%);
  --v127-hero:linear-gradient(118deg,#10264e 0%,color-mix(in srgb,#18376b 84%,var(--v127-accent)) 62%,color-mix(in srgb,#18376b 78%,var(--v127-accent)) 100%);
}
html[data-theme="dark"] body .main {
  --v127-surface:#172236; --v127-ink:#edf3fc; --v127-muted:#b8c5d7; --v127-line:#33435a;
  --v127-blue:#b4ceff; --v127-teal:#83e3cf; --v127-violet:#d5c4ff; --v127-amber:#ffd09a; --v127-red:#ffb2bd;
  --v127-tint:#20314e;
}
/* Every solid/gradient hero has white text, regardless of user-selected accent.
   Decorative rings are background layers, so they cannot intercept clicks or cover text. */
html body .main :is(#ctrOwnerHome94 .ctr93-sales,#ctr96MobileReport .ctr96-sales,.ctr97-hero,.ctr98-hero,.ctr99-hero,.ctr100-hero) {
  background:#183b77!important;
  background-image:radial-gradient(circle at 96% 5%,transparent 0 38px,rgba(255,255,255,.10) 39px 40px,transparent 41px 61px,rgba(255,255,255,.08) 62px 63px,transparent 64px 85px,rgba(255,255,255,.055) 86px 87px,transparent 88px),var(--v127-hero)!important;
  color:#fff!important;border:1px solid #345b94!important;border-radius:18px!important;
  box-shadow:0 9px 22px rgba(15,35,75,.16)!important;
  text-shadow:none!important;font-variant-numeric:tabular-nums;
}
html body .main :is(#ctrOwnerHome94 .ctr93-sales,#ctr96MobileReport .ctr96-sales,.ctr97-hero,.ctr98-hero,.ctr99-hero,.ctr100-hero) :is(span,strong,small,p,b,i,svg) {
  color:#fff!important;opacity:1!important;text-shadow:none!important;
}
/* Shared secondary KPI cards: subtle tonal wash, semantic accent and readable type.
   Keep semantic value colours and active filter borders from the original modules. */
html body .main :is(.owner-kpi,.report-kpi,.finance-kpi,.detail-mini-card,.m-kpi,.att-kpi,.pay-kpi,.team-kpi,.pmx-stat-card,.ao-kpi:not(.active),.pb-stat,.cr-kpi-card,.rh-dr-kpi) {
  --v127-tone:var(--v127-blue);
  border-radius:16px!important;
  background-image:linear-gradient(142deg,color-mix(in srgb,var(--v127-tone) 6%,var(--v127-surface)),var(--v127-surface) 75%)!important;
  box-shadow:inset 0 3px 0 color-mix(in srgb,var(--v127-tone) 70%,var(--v127-surface)),0 4px 14px rgba(15,23,42,.065)!important;
  font-variant-numeric:tabular-nums;
}
html body .main :is(.owner-kpi.success,.report-kpi.good,.m-kpi.good){--v127-tone:var(--v127-teal)}
html body .main :is(.owner-kpi.danger,.report-kpi.bad,.m-kpi.bad,.owner-kpi.target.bad){--v127-tone:var(--v127-red)}
html body .main :is(.owner-kpi.target.warn,.m-kpi.warn){--v127-tone:var(--v127-amber)}
html body .main :is(.owner-kpi.target:not(.warn):not(.bad),.team-kpi){--v127-tone:var(--v127-violet)}
html body .main :is(.owner-kpi,.report-kpi,.finance-kpi,.detail-mini-card,.m-kpi,.att-kpi,.pay-kpi,.team-kpi,.pmx-stat-card,.ao-kpi:not(.active),.pb-stat,.cr-kpi-card,.rh-dr-kpi) :is(.label,.k-label,.k-note,.owner-kpi-label,.owner-kpi-foot,.ao-kpi-label,.pb-stat-label) {color:var(--v127-muted)!important;}
html body .main :is(.owner-kpi,.report-kpi,.finance-kpi,.detail-mini-card,.m-kpi,.att-kpi,.pay-kpi,.team-kpi)>:is(span,small):not([class]){color:var(--v127-muted)!important}
html body .main :is(.owner-kpi:not(.primary),.report-kpi,.m-kpi,.att-kpi,.pay-kpi,.team-kpi) > :is(strong,.k-value):not(.m-success-text):not(.m-danger-text):not(.up):not(.down){color:var(--v127-ink)!important;letter-spacing:-.025em;}
html body .main .owner-kpi .owner-kpi-label i {color:var(--v127-tone)!important;background:color-mix(in srgb,var(--v127-tone) 12%,var(--v127-surface))!important;}
html body .main .owner-kpi .owner-trend b{color:var(--v127-teal)!important}
html body .main .owner-kpi .owner-trend.down b{color:var(--v127-red)!important}
html body .main .owner-kpi .owner-kpi-foot>a{color:var(--v127-blue)!important}
/* Dashboard primary analytic KPI matches the mobile hero. */
html body .main .owner-kpi.primary {
  background:#183b77!important;background-image:var(--v127-hero)!important;border-color:#345b94!important;box-shadow:0 7px 20px rgba(15,35,75,.16)!important;
}
html body .main .owner-kpi.primary :is(.owner-kpi-label,.owner-kpi-foot,strong,.owner-trend,.owner-kpi-foot a){color:#fff!important}
html body .main .owner-kpi.primary .owner-kpi-label i{color:#fff!important;background:rgba(255,255,255,.14)!important}
html body .main .owner-kpi.primary .owner-trend b{color:#a8f5d6!important}
html body .main .owner-kpi.primary .owner-trend.down b{color:#ffd2d7!important}
/* Owner dashboard: four distinct but coordinated action cards. */
html body .main #ctrOwnerHome94 .ctr93-sales {padding:19px 18px!important;min-height:0!important;}
html body .main #ctrOwnerHome94 .ctr93-sales>div{width:100%;gap:7px;}
html body .main #ctrOwnerHome94 .ctr93-sales .ctr127-hero-label{display:flex;align-items:center;justify-content:space-between;gap:10px;}
html body .main #ctrOwnerHome94 .ctr93-sales .ctr127-hero-icon{width:36px;height:36px;border-radius:11px;background:rgba(255,255,255,.13);display:grid;place-items:center;flex:none;}
html body .main #ctrOwnerHome94 .ctr93-sales .ctr127-hero-icon svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
html body .main #ctrOwnerHome94 .ctr93-sales #ctr93Revenue{font-size:clamp(26px,7vw,36px)!important;line-height:1.15!important;letter-spacing:-.035em;font-weight:800;}
html body .main #ctrOwnerHome94 .ctr93-sales #ctr93Transactions{display:flex;align-items:center;gap:8px;font-size:12px!important;line-height:1.5;}
html body .main #ctrOwnerHome94 .ctr93-sales #ctr93Transactions::before{content:"";width:7px;height:7px;border-radius:50%;background:#9cf2d8;flex:none;}
html body .main #ctrOwnerHome94 a.ctr93-tile {--tile-tone:var(--v127-blue);background:var(--v127-surface)!important;background-image:linear-gradient(150deg,color-mix(in srgb,var(--tile-tone) 7%,var(--v127-surface)),var(--v127-surface) 78%)!important;border-color:var(--v127-line)!important;border-radius:16px!important;box-shadow:0 4px 12px rgba(15,23,42,.055)!important;}
html body .main #ctrOwnerHome94 a.ctr93-tile[data-ctr127="stock"]{--tile-tone:var(--v127-teal)}
html body .main #ctrOwnerHome94 a.ctr93-tile[data-ctr127="orders"]{--tile-tone:var(--v127-violet)}
html body .main #ctrOwnerHome94 a.ctr93-tile[data-ctr127="reports"]{--tile-tone:var(--v127-amber)}
html body .main #ctrOwnerHome94 a.ctr93-tile>.ctr94-icon{background:color-mix(in srgb,var(--tile-tone) 12%,var(--v127-surface))!important;color:var(--tile-tone)!important;border-radius:12px!important;}
html body .main #ctrOwnerHome94 a.ctr93-tile strong{color:var(--v127-ink)!important;letter-spacing:-.015em;}
html body .main #ctrOwnerHome94 a.ctr93-tile span:not(.ctr94-icon){color:var(--v127-muted)!important;}
html body .main #ctrOwnerHome94 a.ctr93-tile small{color:var(--tile-tone)!important;font-weight:650;}
html body .main #ctrOwnerHome94 a.ctr93-tile small b{color:var(--tile-tone)!important;}
html body .main #ctrOwnerHome94 a.ctr93-tile:is(:hover,:focus-visible){border-color:var(--tile-tone)!important;}
html body.ctr-dashboard-v127 .main :is(#ctr102TopProductsCard,#ctr93Advanced>summary){background:var(--v127-surface)!important;border:1px solid var(--v127-line)!important;border-radius:16px!important;box-shadow:0 4px 14px rgba(15,23,42,.045)!important;color:var(--v127-ink)!important;}
html body.ctr-dashboard-v127 .main #ctr102TopProductsCard :is(h2,.list-main strong,.list-amount){color:var(--v127-ink)!important;}
html body.ctr-dashboard-v127 .main #ctr102TopProductsCard .list-main span,html body.ctr-dashboard-v127 .main #ctr93Advanced>summary span{color:var(--v127-muted)!important;}
html body.ctr-dashboard-v127 .main #topProductsList>.list-row{background:var(--v127-surface)!important;border-color:var(--v127-line)!important;border-radius:12px!important;box-shadow:none!important;}
html body.ctr-dashboard-v127 .main #topProductsList .list-amount{font-family:inherit!important;font-weight:750!important;font-variant-numeric:tabular-nums;}
html body.ctr-dashboard-v127 .main #ctr102TopProductsCard .top-products-actions a{color:var(--v127-blue)!important;background:color-mix(in srgb,var(--v127-blue) 7%,var(--v127-surface))!important;border-color:var(--v127-line)!important;}
@media screen and (max-width:767px){
 html body .main #ctrOwnerHome94{gap:12px!important;}
 html body .main #ctrOwnerHome94 .ctr93-grid{gap:10px!important;}
 html body .main #ctrOwnerHome94 a.ctr93-tile{padding:13px 12px!important;min-height:146px!important;gap:6px!important;}
 html body .main #ctrOwnerHome94 .ctr93-tile strong{font-size:14px!important;line-height:1.35!important;}
 html body .main #ctrOwnerHome94 .ctr93-tile span:not(.ctr94-icon){font-size:12px!important;line-height:1.45!important;}
 html body .main #ctrOwnerHome94 .ctr93-tile small{font-size:11px!important;line-height:1.4!important;}
 html body .main #ctrOwnerHome94 .ctr93-tile>.ctr94-icon{width:38px;height:38px;}
 html body.ctr-dashboard-v127 .main #topProductsList>.list-row{grid-template-columns:34px minmax(0,1fr) minmax(0,max-content)!important;gap:8px!important;padding:10px!important;}
 html body.ctr-dashboard-v127 .main #topProductsList .list-main strong{font-size:13px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;}
 html body.ctr-dashboard-v127 .main #topProductsList .list-main span{font-size:11px!important;line-height:1.4!important;}
 html body.ctr-dashboard-v127 .main #topProductsList .list-amount{font-size:12px!important;}
}
@media screen and (max-width:360px){
 html body.ctr-dashboard-v127 .main #topProductsList>.list-row{grid-template-columns:32px minmax(0,1fr)!important;}
 html body.ctr-dashboard-v127 .main #topProductsList .list-side{grid-area:2/2!important;justify-self:start!important;}
}
@media print{
 html body .main :is(#ctrOwnerHome94 .ctr93-sales,#ctr96MobileReport .ctr96-sales,.ctr97-hero,.ctr98-hero,.ctr99-hero,.ctr100-hero){background:#fff!important;box-shadow:none!important;border-color:#bbb!important;color:#111!important;}
 html body .main :is(#ctrOwnerHome94 .ctr93-sales,#ctr96MobileReport .ctr96-sales,.ctr97-hero,.ctr98-hero,.ctr99-hero,.ctr100-hero) :is(span,strong,small,p,b,i,svg){color:#111!important;}
 html body .main :is(.owner-kpi,.report-kpi,.finance-kpi,.detail-mini-card,.m-kpi,.att-kpi,.pay-kpi,.team-kpi,.pmx-stat-card,.ao-kpi,.pb-stat,.cr-kpi-card,.rh-dr-kpi){box-shadow:none!important;background:#fff!important;color:#111!important;border-color:#bbb!important;}
 html body .main .owner-kpi.primary :is(strong,.owner-kpi-label,.owner-kpi-foot,.owner-trend,b,i){color:#111!important;background:none!important;}
}
