/* Screen-only repairs for the current web workspace. Receipt and document print styles stay separate. */
@media screen {
  html body {
    --muted: #52627a;
    --moota-muted: #52627a;
    --pos-muted: #52627a;
  }

  html body #root .sidebar .nav-group-label { color: #52627a !important; }
  html body #root .sidebar .nav-link { --web-nav-ink: #6355b8; }
  html body #root .sidebar .nav-link:is([data-page=pos],[data-page=stock],[data-page=purchases]) { --web-nav-ink:#087b68; }
  html body #root .sidebar .nav-link:is([data-page=customers],[data-page=member-management],[data-page=reports]) { --web-nav-ink:#08764f; }
  html body #root .sidebar .nav-link:is([data-page=products],[data-page=categories],[data-page=bulk-prices],[data-page=registrations]) { --web-nav-ink:#9b650d; }
  html body #root .sidebar .nav-link:is([data-page=branches],[data-page=team],[data-page=support-chat]) { --web-nav-ink:#2453b5; }
  html body #root .sidebar .nav-link:is([data-page=transactions],[data-page=pro-reminders]) { --web-nav-ink:#ae3972; }
  html body #root .sidebar .nav-link:is([data-page=attendance],[data-page=expiry-monitor],[data-page=license-billing]) { --web-nav-ink:#b53a45; }
  html body #root .sidebar .nav-link:is([data-page=settings],[data-page=order-types]) { --web-nav-ink:#7446bd; }
  html body #root .sidebar .nav-link > svg.oys-icon { color: var(--web-nav-ink) !important; opacity:1 !important; }

  /* Stroke artwork must never inherit the old solid-icon fill convention. */
  html body #root svg.oys-icon:not(.oys-solid-icon),
  html body dialog svg.oys-icon:not(.oys-solid-icon) {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8;
    flex-shrink: 0;
    overflow: visible;
  }
  html body #root svg.oys-icon:not(.oys-solid-icon) :is(path,rect,circle,ellipse,line,polyline,polygon):not(.icon-tone),
  html body dialog svg.oys-icon:not(.oys-solid-icon) :is(path,rect,circle,ellipse,line,polyline,polygon):not(.icon-tone) {
    fill: none !important;
    stroke: currentColor !important;
  }
  html body #root svg.oys-icon .icon-tone,
  html body dialog svg.oys-icon .icon-tone {
    display: initial !important;
    fill: currentColor !important;
    fill-opacity: .12 !important;
    stroke: none !important;
  }
  html body #root svg.oys-solid-icon,
  html body dialog svg.oys-solid-icon {
    fill: currentColor !important;
    stroke: none !important;
  }

  /* Put a readable colored symbol on a pale tile, including old dashboard slots. */
  html body #root :is(.stat-icon,.round-icon,.feature-icon,.directory-heading-icon,.sales-pro-icon,.profit-modern-page-icon,.report-period-icon,.reminder-hero-icon,.fresh-catalog-icon,.ms-stat-icon,.milk-tile-icon,.smooth-setting-icon) {
    --visual-icon-ink: #2854b3;
    --visual-icon-soft: #edf3ff;
    color: var(--visual-icon-ink) !important;
    background: var(--visual-icon-soft) !important;
    background-image: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  html body #root :is(.stat-icon,.round-icon,.feature-icon,.directory-heading-icon,.sales-pro-icon,.profit-modern-page-icon,.report-period-icon,.reminder-hero-icon,.fresh-catalog-icon,.ms-stat-icon,.milk-tile-icon,.smooth-setting-icon) > svg.oys-icon {
    color: var(--visual-icon-ink) !important;
    opacity: 1 !important;
    width: 23px !important;
    height: 23px !important;
    min-width: 23px !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
  }
  html body #root :is(.dashboard-stats>.stat:nth-child(2),.ms-stats>div:nth-child(2),.tone-mint) :is(.stat-icon,.ms-stat-icon,.milk-tile-icon) {
    --visual-icon-ink: #087b68;
    --visual-icon-soft: #e7f6f0;
  }
  html body #root :is(.dashboard-stats>.stat:nth-child(3),.ms-stats>div:nth-child(3),.tone-peach) :is(.stat-icon,.ms-stat-icon,.milk-tile-icon) {
    --visual-icon-ink: #a9561f;
    --visual-icon-soft: #fff1e7;
  }
  html body #root :is(.dashboard-stats>.stat:nth-child(4),.ms-stats>div:nth-child(4)) :is(.stat-icon,.ms-stat-icon) {
    --visual-icon-ink: #7446bd;
    --visual-icon-soft: #f2ecfc;
  }

  html body #root :is(.btn.primary,.pay-btn,.pos-search-submit,.profit-modern-primary,.support-send):not(:disabled):not([aria-disabled=true]),
  html body dialog .btn.primary:not(:disabled):not([aria-disabled=true]) {
    color: #fff !important;
    background: #245bea !important;
    background-image: none !important;
    border-color: #245bea !important;
  }
  html body #root .support-send { background: #245bea !important; background-image: none !important; border-color: #245bea !important; }
  html body #root :is(.btn.primary,.pay-btn,.pos-search-submit,.profit-modern-primary,.support-send) :is(span,strong,b,small,svg.oys-icon),
  html body dialog .btn.primary :is(span,strong,b,small,svg.oys-icon) {
    color: inherit !important;
  }

  html body #root .parity-workspace,
  html body .parity-dialog { --parity-muted: #52627a; }
  html body #root .parity-tabs { gap: 6px; border-radius: 17px; background: #eef2fa; }
  html body #root .parity-tabs button { color: #435570 !important; font-size: 13px; gap: 9px; }
  html body #root .parity-tabs button:is(.active,[aria-pressed=true]) {
    color: #fff !important;
    background: #245bea !important;
    box-shadow: 0 3px 9px #245bea20;
  }
  html body #root .parity-tabs button :is(span,svg.oys-icon) { color: inherit !important; }
  html body #root .parity-tabs button svg.oys-icon { width: 19px; height: 19px; }

  html body #root [data-business-reports] .parity-head {
    background: linear-gradient(115deg,#f2f6ff,#fff 75%);
    border-color: #e2e9f4;
  }
  html body #root [data-business-reports] .parity-eyebrow { color: #2854b3; }
  html body #root [data-business-reports] .parity-head p { color: #52627a; font-size: 13px; }
  html body #root .parity-report-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
  html body #root .parity-report-link {
    --report-ink: #2453b5;
    --report-soft: #eaf1ff;
    min-height: 112px;
    padding: 19px;
    border: 1px solid #e1e8f2;
    background: #fff;
    color: #18263d;
    box-shadow: 0 2px 5px #263a5a03;
    transition: border-color .16s ease,box-shadow .16s ease;
  }
  html body #root .parity-report-link:is([data-type=summary],[data-type=stock_value],[data-type=receivables],[data-type=ledger]) { --report-ink:#087b68; --report-soft:#e7f6f0; }
  html body #root .parity-report-link:is([data-type=invoice_profit],[data-type=stock_card],[data-type=journal]) { --report-ink:#7446bd; --report-soft:#f2ecfc; }
  html body #root .parity-report-link:is([data-type=product_profit],[data-type=materials],[data-type=balance_sheet]) { --report-ink:#147394; --report-soft:#e7f5fa; }
  html body #root .parity-report-link:is([data-type=busy_hours],[data-type=payables],[data-type=expenses]) { --report-ink:#a9561f; --report-soft:#fff1e7; }
  html body #root .parity-report-link:is([data-type=price_lab],[data-type=stock_low],[data-type=accounts]) { --report-ink:#9b650d; --report-soft:#fff5de; }
  html body #root .parity-report-link:is([data-type=cash_control],[data-type=stock_loss]) { --report-ink:#ae3972; --report-soft:#fcecf3; }
  html body #root .parity-report-link:hover { border-color: var(--report-ink); box-shadow: 0 5px 15px #263a5a09; }
  html body #root .parity-report-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    background: var(--report-soft) !important;
    color: var(--report-ink) !important;
  }
  html body #root .parity-report-icon > svg.oys-icon { width: 23px; height: 23px; color: inherit !important; opacity: 1 !important; }
  html body #root .parity-report-link strong { color: #18263d; font-size: 14px; line-height: 1.5; margin-bottom: 5px; }
  html body #root .parity-report-link small { color: #52627a; font-size: 11px; line-height: 1.65; }
  html body #root .parity-report-link > svg.oys-icon { color: #5f718d !important; width: 15px; height: 15px; }
  html body #root .parity-note { color: #52627a; }

  /* Audited shared controls, table labels and subtle hints across the other workspaces. */
  html body #root :is(th,.sub,.spec-btn,.cart-details summary,.support-inbox-foot,.reminder-frequency,.reminder-empty),
  html body #root .pro-reminder-page label > small,
  html body #root .support-filters button:not(.active),
  html body #root .profit-modern-presets button:not(.active) { color: #52627a !important; }
  html body #root .dashboard-head {
    background: linear-gradient(115deg,#1947ad,#245bea) !important;
    border-color: #245bea !important;
  }
  html body #root .dashboard-heading-copy :is(h2,p.sub) { color: #fff !important; opacity: 1 !important; }
  html body #root .dashboard-head .btn.primary:not(:disabled) {
    background: #fff !important;
    background-image: none !important;
    border-color: #fff !important;
    color: #1d4ed8 !important;
  }
  html body #root :is(.search,.activation-search,.fresh-barcode-mark,.product-search-camera-button) > svg.oys-icon,
  html body #root .support-empty > svg.oys-icon,
  html body #root .smooth-history-empty > svg.oys-icon { color: #52627a !important; }
  html body #root .btn.amber { color: #8a5b0f !important; }
  html body #root .btn.amber svg.oys-icon { color: inherit !important; }
  html body #root .cart-header > svg.oys-icon { color: #2453b5 !important; }
  html body #root .milk-filter-tab.active { background: #eaf1ff !important; color: #2453b5 !important; border-color: #cbdcfc !important; }
  html body #root .milk-filter-tab.active > b { color: inherit !important; }
  html body #root .milk-attention h3 svg.oys-icon { color: #a9561f !important; }
  html body #root .pro-reminder-page .reminder-eyebrow { color: #4c50a1 !important; }
  html body #root .pro-reminder-page .reminder-hero-icon { background: #edf3ff !important; background-image: none !important; }
  html body #root .pro-reminder-page .reminder-hero-icon > svg.oys-icon { color: #2854b3 !important; }
  html body #root .pro-reminder-page .reminder-category-icon.supplier { color: #9b650d !important; }
  html body #root .pro-reminder-page .reminder-category-icon.expiry { color: #ad4a2f !important; }
  html body #root .pro-reminder-page .reminder-category-icon.receivable { color: #2854b3 !important; }
  html body #root .pro-reminder-page .reminder-category-icon.attendance { color: #087b68 !important; }
  html body #root .pro-reminder-page .reminder-category-icon.shift { color: #7446bd !important; }
  html body #root .pro-reminder-page .reminder-note > svg.oys-icon { color: #52627a !important; }
  html body #root main .pro-reminder-page :is(.reminder-frequency,.reminder-empty,.reminder-fields label small) { color: #52627a !important; }
  html body #root main .smooth-subscription a.smooth-subscription-help { color: #087058 !important; }
  html body #root :is(.parity-workspace,.smooth-settings-workspace,.smooth-subscription) :is(button,a,input,select,textarea):focus-visible,
  html body .parity-dialog :is(button,a,input,select,textarea):focus-visible {
    outline: 3px solid #245bea;
    outline-offset: 3px;
  }
  @media(max-width:1280px) { html body #root .parity-report-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
  @media(max-width:1000px) { html body #root .parity-report-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
  @media(max-width:680px) {
    html body #root .parity-report-grid { grid-template-columns:1fr; }
    html body #root .parity-tabs button { font-size:11px; padding:10px 9px; gap:6px; }
    html body #root .parity-tabs button svg.oys-icon { width:16px; height:16px; }
    html body #root .parity-report-link { min-height:98px; padding:16px; }
  }
  @media(prefers-reduced-motion:reduce) {
    html body #root .parity-report-link,html body #root .parity-tabs button { transition:none; }
  }
}
