/* Reference palette: white report canvas, blue tabs, fine outlines, teal/purple charts.
   Presentation only: no metric, permission, query or delivery behavior changes. */
body.ui-v2 {
  --ui-bg: #fff;
  --ui-subtle: #fafcfc;
  --ui-text: #3d464b;
  --ui-muted: #67757b;
  --ui-line: #dce3e5;
  --ui-accent: #387bcc;
  --ui-accent-soft: #eef5fc;
  --ui-positive: #22856c;
  --ui-danger: #bd5258;
  --ui-radius: 3px;
  background: #fff;
  color: var(--ui-text);
}
body.ui-v2 .dashboard-nav { background: #fff; border-right-color: #e3e8eb; }
body.ui-v2 .nav-brand > span { border-radius: 2px; color: #fff; background: #438ad5; font-weight: 500; }
body.ui-v2 .nav-brand strong { color: #495860; font-weight: 550; }
body.ui-v2 .dashboard-nav a:not(.nav-brand) { border-radius: 2px; color: #64747b; }
body.ui-v2 .dashboard-nav a[aria-current=page] { color: #2b70b5; background: #f0f7fb; box-shadow: inset 3px 0 #4e97dc; }
body.ui-v2 :is(.brand-lockup h1,.admin-header h1,.domain-dashboard-header h1,.ecommerce-topbar h1) {
  color: #455258; font-size: 24px; font-weight: 550; letter-spacing: 0;
}
body.ui-v2 :is(.topbar,.domain-dashboard-header,.ecommerce-topbar) { border-bottom-color: #e2e8eb; }
body.ui-v2 .secure-chip { border-radius: 3px; }
body.ui-v2 .view-tabs { gap: 6px; border-bottom: 1px solid #d6e2ed; }
body.ui-v2 .view-tabs button { padding: 7px 19px; border-radius: 0; font-size: 12px; }
body.ui-v2 .view-tabs button.active { background: #478fda; color: #fff; border-bottom-color: #478fda; }
body.ui-v2 :is(.filters,.finance-query-bar,.hr-query-bar,.mcn-query,.risk-query,.ecommerce-query) {
  background: #fff; border-color: #dce5e8; border-radius: 3px; padding: 9px 12px;
}
body.ui-v2 :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { border-radius: 3px; }
body.ui-v2 :is(.segments,.progress-switch) { background: #f7fafa; border: 1px solid #dce5e8; border-radius: 3px; }
body.ui-v2 :is(.segments,.progress-switch) button.active { color: #2d77b9; background: #edf6fd; box-shadow: none; }
body.ui-v2 #query-range-help { font-size: 11px; color: #69777d; margin: 9px 0; }
body.ui-v2 .query-scope-bar { margin: 9px 0 17px; }
body.ui-v2 .period-shortcuts button { border-color: #d4dfe5; border-radius: 2px; }

/* Individual outlined scorecards, like the reference's DTC metric rows. */
body.ui-v2 :is(.executive-kpis,.domain-kpis,.mcn-kpis,.finance-kpis,.risk-kpis,.ecommerce-kpis,.overseas-kpis) {
  border: 0; border-radius: 0; background: transparent; gap: 9px; overflow: visible;
}
body.ui-v2 :is(.executive-kpis .kpi,.domain-kpi,.mcn-kpis article,.risk-kpis article,.ecommerce-kpis article,.overseas-kpis article) {
  border: 1px solid #9eacb8; border-radius: 4px; box-shadow: none;
  background: #fff; padding: 14px 12px; min-height: 115px; gap: 6px; text-align: center;
}
body.ui-v2 :is(.executive-kpis .kpi,.domain-kpi,.mcn-kpis article,.risk-kpis article,.ecommerce-kpis article,.overseas-kpis article) > span {
  color: #61727a; font-size: 12px; font-weight: 500;
}
body.ui-v2 :is(.executive-kpis .kpi,.domain-kpi,.mcn-kpis article,.risk-kpis article,.ecommerce-kpis article,.overseas-kpis article) > strong {
  color: #394b51; font-size: 24px; font-weight: 500; letter-spacing: -.025em;
}
body.ui-v2 :is(.executive-kpis .kpi,.domain-kpi,.mcn-kpis article,.risk-kpis article,.ecommerce-kpis article,.overseas-kpis article) > small {
  color: #69777d; font-size: 11px; line-height: 1.65;
}
body.ui-v2 .executive-kpis .kpi.primary { background: #fff; border: 1px solid #68a5d8; padding-top: 14px; }
body.ui-v2 .executive-kpis .kpi.primary > strong { color: #394b51; }
body.ui-v2 .executive-kpis .kpi.primary > span { color: #4d7fa2; }
body.ui-v2 .executive-kpis .kpi.primary > small { color: #69777d; }
body.ui-v2 .result-strip { border: 1px solid #d4dfe2; border-radius: 3px; background: #fff; margin: 12px 0 18px; }
body.ui-v2 .result-strip > div { background: #fff; padding: 12px 15px; border-color: #dce5e7; }
body.ui-v2 .result-strip strong { color: #485e64; font-size: 21px; font-weight: 500; }
body.ui-v2 .result-strip :is(span,small) { color: #68787e; }

/* Solid blue section tabs are the strongest visual signature of the reference. */
body.ui-v2 :is(.panel,.ecommerce-card) { border: 1px solid #d8e2e5; border-radius: 2px; background: #fff; box-shadow: 0 1px 3px #24405008; padding: 18px; }
body.ui-v2 .panel-title { margin-bottom: 15px; }
body.ui-v2 .panel-title > div > small {
  background: #4c96db; color: #fff; border-radius: 0; padding: 3px 12px;
  font-size: 10px; font-weight: 500; letter-spacing: .08em;
}
body.ui-v2 .panel-title h2 { color: #45585f; font-size: 16px; font-weight: 550; margin-top: 10px; }
body.ui-v2 .panel-title > span { color: #718086; }
body.ui-v2 .action-panel { border-top: 1px solid #d8e2e5; padding-top: 18px; }
body.ui-v2 .action-item strong { color: #486069; font-weight: 550; }
body.ui-v2 .action-item small { color: #65777e; }
body.ui-v2 :is(.insight,.trend-detail) { background: #fafdfd; border-left: 2px solid #68bfb6; color: #5c7579; }
body.ui-v2 .trend-svg .trend-bar { fill: #74c8c2; }
body.ui-v2 .chart-bar { background: #74c8c2; }
/* Keep yellow selection: the existing legend explicitly promises yellow. */
body.ui-v2 .trend-svg .trend-bar.selected { fill: #d8b443; }
body.ui-v2 .chart-bar.selected { background: #d8b443; }
body.ui-v2 .trend-svg .trend-average { stroke: #9578c5; }
body.ui-v2 .trend-svg .trend-grid { stroke: #e9efef; }
body.ui-v2 .trend-svg .trend-amount { fill: #52706f; font-weight: 500; }
body.ui-v2 .mix-list i { background: #f1edf8; border-radius: 0; }
body.ui-v2 .mix-list b { background: #9a7ad2; border-radius: 0; }
body.ui-v2 .mix-list > :nth-child(2n) b { background: #76c6c0; }
body.ui-v2 .mix-list > :nth-child(3n) b { background: #83b4dc; }
body.ui-v2 .radar-value { fill: #75c8c21f; stroke: #61afa9; }
body.ui-v2 .radar-dot { stroke: #61afa9; }
body.ui-v2 .radar-score { fill: #568e8a; }
body.ui-v2 :is(.structure-kpi,.comparison-cards > div,.profit-components > div,.asset-facts > div) {
  background: #fff; border: 1px solid #bac9cc; border-radius: 3px;
}
body.ui-v2 :is(.structure-kpis strong,.comparison-cards strong,.profit-components strong,.asset-facts strong) { color: #4e6369; font-weight: 500; }
body.ui-v2 .attention-card { background: #fff; border-color: #b8cccf; border-radius: 3px; min-height: 112px; }
body.ui-v2 .attention-card strong { color: #486069; font-weight: 500; font-size: 20px; }
body.ui-v2 .attention-card:hover:not(:disabled) { background: #f2fbfa; border-color: #6bb7b0; }
body.ui-v2 table th { background: #eef8f6; color: #52736d; border-bottom: 1px solid #c8dfda; font-weight: 550; }
body.ui-v2 table :is(th,td) { border-bottom-color: #e3ebea; }
body.ui-v2 table .team-subtotal td { background: #f3f9f8; color: #4d7069; border-top-color: #cce0dc; }
body.ui-v2 table tbody tr:hover > td { background-color: #f0f9f7; }
body.ui-v2 :is(.table-wrap,.domain-trend-table-wrap,.hr-team-table-wrap,.mcn-table-wrap,.ecommerce-table-wrap) { border-radius: 2px; }
body.ui-v2 .export-controls { background: #fafdfc; border-color: #d4e4e0; border-radius: 3px; }
body.ui-v2 .drilldown-drawer { background: #fff; }
body.ui-v2 .drilldown-customer-card { border-radius: 3px; }
body.ui-v2 .auth-page { background: #fff; }
body.ui-v2 .auth-card { border-radius: 4px; border-top-color: #559adb; }
/* Do not recolor warnings as decorative series. */
body.ui-v2 :is(.negative,.negative-text,.domain-kpi.negative) > strong { color: var(--ui-danger); }
@media(min-width:1200px) {
  body.ui-v2 .executive-kpis { grid-template-columns: repeat(6,minmax(0,1fr)); }
  body.ui-v2 .executive-kpis .kpi { padding: 14px 10px; }
  body.ui-v2 .executive-kpis .kpi > strong { font-size: 23px; }
}
@media(max-width:1199px) and (min-width:601px) {
  body.ui-v2 .executive-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:600px) {
  body.ui-v2 .executive-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body.ui-v2 .executive-kpis .kpi { min-height: 118px; padding: 12px 10px; }
  body.ui-v2 .executive-kpis .kpi > strong { font-size: 23px; }
  body.ui-v2 .executive-kpis .kpi > small { font-size: 11px; }
  body.ui-v2 .attention-card { min-height: 0; }
  body.ui-v2 :is(.panel,.ecommerce-card) { padding: 15px; }
}
