/* SELLMAS Finance Command — dashboard-only visual layer. Real data remains in existing app.js. */
body.fc-ready {
  --fc-bg:#f3f6fc;--fc-card:#ffffff;--fc-text:#172440;--fc-muted:#667894;
  --fc-border:#dfe6f1;--fc-accent:#2c63e9;--fc-ok:#13865e;--fc-warn:#bc684a;
  --fc-sidebar:#131f35;--fc-side-text:#d9e5f9;--fc-side-muted:#8597b4;
  --fc-hero:#142e56;--fc-hero-light:#1b4b7a;
  background:var(--fc-bg);
}
html.black body.fc-ready {
  --fc-bg:#0e1623;--fc-card:#192537;--fc-text:#e9effc;--fc-muted:#a3b1c6;
  --fc-border:#304055;--fc-accent:#7eabff;--fc-ok:#48c9a0;--fc-warn:#efac83;
  --fc-sidebar:#0b1320;--fc-side-text:#e4edff;--fc-side-muted:#94a4c0;
  --fc-hero:#192e51;--fc-hero-light:#21416d;
}
body.fc-ready .finx-main {
  width:calc(100% - 232px)!important;max-width:none!important;
  margin:0 0 0 232px!important;padding:20px 28px 48px!important;
  box-sizing:border-box;background:var(--fc-bg)!important;color:var(--fc-text);
  min-height:100vh;
}
body.fc-ready .finx-main > header {
  min-height:54px!important;margin:0 0 16px!important;padding:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  border-radius:0!important;justify-content:flex-end;
}
body.fc-ready .finx-main > header .brand {
  display:flex;align-items:center;gap:8px;order:2;
  padding:11px 15px;border:1px solid var(--fc-border);border-radius:12px;
  background:var(--fc-card);box-shadow:0 2px 9px color-mix(in srgb,var(--fc-text) 7%,transparent);
}
body.fc-ready .finx-main > header .brand-logo{display:none!important}
body.fc-ready .finx-main > header .cabinet-name {font-size:14px!important;font-weight:750;color:var(--fc-text)!important}
body.fc-ready .finx-main > header .badge{display:none!important}
body.fc-ready .finx-main > header .spacer{display:none!important}
body.fc-ready .finx-main > header #navToggleBtn{display:none}
body.fc-ready #dashboardShell{gap:15px!important;margin-top:-70px;padding-top:0;position:relative}
body.fc-ready #mainActions {background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 260px 10px 0!important;min-height:65px}
body.fc-ready #mainActions .dashboard-toolbar-title {font-weight:850;font-size:29px;letter-spacing:-.035em;color:var(--fc-text)}
body.fc-ready #mainActions .dashboard-toolbar-subtitle {font-size:13px;line-height:1.35;color:var(--fc-muted);margin-top:4px;max-width:680px}
body.fc-ready #mainActions .dashboard-toolbar-actions{display:none!important}
body.fc-ready #dashboardHiddenBar{display:none!important}
body.fc-ready #dashboardShell .dashboard-widget-eyebrow{display:none!important}
body.fc-ready #dashboardShell .dashboard-widget-titles h3{font-size:17px;letter-spacing:-.02em;font-weight:800;color:var(--fc-text);line-height:1.3}
body.fc-ready #dashboardShell .dashboard-widget-head{padding:0 0 11px!important;margin:0!important;border-bottom:1px solid var(--fc-border)!important}
body.fc-ready #dashboardShell .dashboard-widget-tools .widget-editor-btn{display:none!important}
body.fc-ready #dashboardShell .hint{color:var(--fc-muted);font-size:12px}
body.fc-ready #dashboardShell .dashboard-note{color:var(--fc-muted)}
body.fc-ready #dashboardShell .dashboard-widget{
  background:var(--fc-card)!important;border:1px solid var(--fc-border)!important;
  border-radius:17px!important;padding:16px!important;gap:12px!important;
  box-shadow:0 3px 12px color-mix(in srgb,var(--fc-text) 5%,transparent)!important;
  backdrop-filter:none!important;
  height:auto!important;max-height:none!important;min-height:0!important;
  grid-row:auto!important;grid-column:span 12!important;
  overflow:hidden;
}
body.fc-ready #dashboardGrid {
  grid-template-columns:repeat(24,minmax(0,1fr))!important;
  grid-auto-rows:auto!important;grid-auto-flow:row!important;
  gap:16px!important;align-items:stretch!important;
}
body.fc-ready #dashboardGrid > [data-widget-id="kpis"]{order:1;grid-column:1 / -1!important}
body.fc-ready #dashboardGrid > [data-widget-id="revenue"]{order:2;grid-column:span 12!important;min-height:370px!important}
body.fc-ready #dashboardGrid > [data-widget-id="top"]{order:3;grid-column:span 12!important;min-height:370px!important}
body.fc-ready #dashboardGrid > [data-widget-id="fbs"]{order:4;grid-column:span 12!important;min-height:315px!important}
body.fc-ready #dashboardGrid > [data-widget-id="warehouse"]{order:5;grid-column:span 12!important;min-height:315px!important}
body.fc-ready #dashboardGrid > [data-widget-id="attention"]{order:6;grid-column:span 12!important;height:230px!important;min-height:230px!important}
body.fc-ready #dashboardGrid > [data-widget-id="reviews"]{order:7;grid-column:span 12!important;height:230px!important;min-height:230px!important}
body.fc-ready #dashboardGrid > [data-widget-id="orders"]{order:8;grid-column:1 / -1!important;height:320px!important;min-height:320px!important}
body.fc-ready #dashboardGrid > [data-widget-id="kpis"] > .dashboard-widget-head{display:none}
body.fc-ready #dashboardGrid > [data-widget-id="kpis"]{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;gap:6px!important}
body.fc-ready #kpiRow {
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:12px!important;margin:0!important;
}
body.fc-ready #kpiRow > .kpi{
  display:flex;align-items:flex-start;text-align:left;justify-content:space-between;
  min-height:106px!important;padding:15px 16px!important;
  background:var(--fc-card)!important;color:var(--fc-text);
  border:1px solid var(--fc-border)!important;border-radius:15px!important;
  box-shadow:0 2px 9px color-mix(in srgb,var(--fc-text) 5%,transparent)!important;
}
body.fc-ready #kpiRow > .kpi:not(.fc-primary-kpi){display:none!important}
body.fc-ready #kpiRow.fc-expanded > .kpi:not([style*="display: none"]){display:flex!important}
body.fc-ready #kpiRow .kpi .lbl {font-size:12px!important;font-weight:650;color:var(--fc-muted)!important;line-height:1.4;text-align:left}
body.fc-ready #kpiRow .kpi .val {font-size:clamp(18px,2vw,26px)!important;font-weight:850;color:var(--fc-text)!important;white-space:normal;overflow-wrap:anywhere;text-align:left;letter-spacing:-.035em}
body.fc-ready #kpi-report-note{font-size:11px}
body.fc-ready #fcMoreKpis{display:inline-flex;margin:1px 0 0 auto;padding:5px 0;border:0;background:none;color:var(--fc-accent);cursor:pointer;font-size:12px;font-weight:750}
body.fc-ready #revenueCard canvas{width:100%!important;height:240px!important;max-height:240px!important}
body.fc-ready #topCard .dashboard-leader-tabs{display:flex;background:var(--fc-bg);border:1px solid var(--fc-border);padding:4px;border-radius:11px}
body.fc-ready #topCard .dashboard-leader-tabs button{border-radius:8px;color:var(--fc-muted);font-size:12px}
body.fc-ready #topCard .dashboard-leader-tabs .is-active{background:var(--fc-accent)!important;color:var(--fc-card)!important}
body.fc-ready #topCard #topRankingList{min-height:220px;max-height:320px;overflow:auto!important}
body.fc-ready #dashboardShell .dashboard-widget-footer{padding-top:9px!important;border-top:1px solid var(--fc-border)!important}
body.fc-ready #dashboardShell .dashboard-widget-footer .btn,
body.fc-ready #dashboardShell #dashboardFbsDetailOpen,
body.fc-ready #dashboardShell #dashboardWarehouseDetailOpen{
  border-radius:10px;background:transparent!important;border:1px solid var(--fc-border)!important;
  color:var(--fc-accent)!important;box-shadow:none!important;font-size:12px;
}
body.fc-ready #fbsCard .fbs-flow-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
body.fc-ready #fbsCard .fbs-flow-summary-card,
body.fc-ready #warehouseInsightCard .dashboard-summary-card{
  background:var(--fc-bg)!important;border:1px solid var(--fc-border)!important;
  border-radius:11px!important;box-shadow:none!important;min-height:96px!important;padding:10px!important;
}
body.fc-ready #warehouseInsightCard .dashboard-summary-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
body.fc-ready #fbsCard .dashboard-summary-label,
body.fc-ready #warehouseInsightCard .dashboard-summary-label{font-size:10px;line-height:1.2;color:var(--fc-muted)!important}
body.fc-ready #fbsCard .dashboard-summary-value,
body.fc-ready #warehouseInsightCard .dashboard-summary-value{font-size:clamp(16px,1.5vw,23px);color:var(--fc-text)!important}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(5) .dashboard-summary-value{font-size:clamp(12px,1.05vw,16px)}
body.fc-ready #fbsCard .dashboard-summary-meta,
body.fc-ready #warehouseInsightCard .dashboard-summary-meta{font-size:10px;line-height:1.3;color:var(--fc-muted)!important}
body.fc-ready #dashboardWarehouseRiskLine{background:color-mix(in srgb,var(--fc-warn) 8%,var(--fc-card))!important;color:var(--fc-text)!important;border-color:color-mix(in srgb,var(--fc-warn) 30%,var(--fc-border))!important}
body.fc-ready #dashboardShell .dashboard-widget.is-hidden{display:none!important}
body.fc-ready .fc-sidebar {
  position:fixed;inset:0 auto 0 0;width:232px;z-index:31;
  padding:26px 12px 20px;box-sizing:border-box;display:flex;flex-direction:column;
  color:var(--fc-side-text);background:var(--fc-sidebar);border:0;
}
body.fc-ready .fc-logo{display:flex;gap:10px;align-items:center;padding:7px 13px 30px;font-size:20px;font-weight:850;letter-spacing:-.02em;color:var(--fc-side-text)}
body.fc-ready .fc-logo-mark{display:flex;gap:3px;align-items:flex-end;height:23px}
body.fc-ready .fc-logo-mark i{width:6px;border-radius:3px;background:var(--fc-accent)}
body.fc-ready .fc-logo-mark i:nth-child(1){height:10px}
body.fc-ready .fc-logo-mark i:nth-child(2){height:17px}
body.fc-ready .fc-logo-mark i:nth-child(3){height:23px;background:var(--fc-side-text)}
body.fc-ready .fc-nav{display:flex;flex-direction:column;gap:4px}
body.fc-ready .fc-nav button{
  display:flex;align-items:center;gap:12px;border:0;border-radius:11px;padding:11px 14px;
  color:var(--fc-side-text);background:none;font:inherit;font-size:14px;font-weight:580;
  text-align:left;cursor:pointer;min-height:42px;
}
body.fc-ready .fc-nav button:hover{background:color-mix(in srgb,var(--fc-side-text) 10%,transparent)}
body.fc-ready .fc-nav .fc-nav-selected{background:var(--fc-accent);color:#fff;font-weight:750}
body.fc-ready .fc-nav-icon{width:20px;text-align:center;font-size:18px;line-height:1}
body.fc-ready .fc-sidebar-bottom{margin-top:auto;padding:14px 12px 0;border-top:1px solid color-mix(in srgb,var(--fc-side-text) 16%,transparent);font-size:12px;color:var(--fc-side-muted)}
body.fc-ready .fc-sidebar-bottom strong{display:block;font-size:13px;color:var(--fc-side-text);margin-bottom:4px}
body.fc-ready .fc-hero {
  position:relative;overflow:hidden;min-height:164px;
  display:flex;align-items:center;justify-content:space-between;gap:22px;
  border-radius:17px;padding:28px 32px;box-sizing:border-box;
  color:#fff;background:linear-gradient(105deg,var(--fc-hero),var(--fc-hero-light));
  box-shadow:0 10px 25px color-mix(in srgb,var(--fc-hero) 16%,transparent);
}
body.fc-ready .fc-hero::after{
  content:"";position:absolute;right:-2%;bottom:-52%;width:43%;height:200%;
  background:radial-gradient(ellipse,color-mix(in srgb,var(--fc-ok) 40%,transparent),transparent 62%);
  pointer-events:none;
}
body.fc-ready .fc-hero-details{position:relative;z-index:2;flex:1 1 60%}
body.fc-ready .fc-hero-label{font-size:17px;font-weight:750;color:#eef5ff}
body.fc-ready .fc-hero-slot{margin:7px 0 4px}
body.fc-ready .fc-hero-slot .kpi{
  background:none!important;border:0!important;box-shadow:none!important;
  padding:0!important;margin:0;min-height:0!important;align-items:flex-start;gap:0;
}
body.fc-ready .fc-hero-slot .kpi .lbl{display:none!important}
body.fc-ready .fc-hero-slot .kpi .val{color:#fff!important;font-size:clamp(34px,4.7vw,61px)!important;line-height:1.06;font-weight:900;letter-spacing:-.05em;text-align:left;white-space:normal}
body.fc-ready .fc-hero-note{font-size:12px;color:#c1d4ef;line-height:1.3}
body.fc-ready .fc-hero-art{position:relative;z-index:1;flex:0 1 40%;max-width:430px;min-width:190px}
body.fc-ready .fc-hero-art svg{display:block;width:100%;height:auto}
body.fc-ready .fc-hero-art .fc-swoosh{fill:none;stroke:color-mix(in srgb,var(--fc-ok) 70%,#bfffe0);stroke-width:2.5;stroke-linecap:round;opacity:.7}
body.fc-ready .fc-hero-art .fc-gridline{stroke:#fff;stroke-opacity:.1;stroke-width:1}
body.fc-ready .fc-hero-art-caption{position:absolute;right:10px;bottom:3px;color:#c5d7ee;font-size:10px}
body.fc-ready.fc-ozon #fcProfitHero{display:none}
@media(max-width:1190px){
  body.fc-ready .finx-main{width:calc(100% - 190px)!important;margin-left:190px!important;padding:18px 18px 38px!important}
  body.fc-ready .fc-sidebar{width:190px}
  body.fc-ready #fbsCard .fbs-flow-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.fc-ready #warehouseInsightCard .dashboard-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:940px){
  body.fc-ready .finx-main{width:100%!important;margin:0!important;padding:16px!important}
  body.fc-ready .fc-sidebar{display:none}
  body.fc-ready .finx-main > header #navToggleBtn{display:inline-flex}
  body.fc-ready #mainActions{margin-right:180px!important}
  body.fc-ready #dashboardGrid > [data-widget-id]{grid-column:1 / -1!important}
}
@media(max-width:680px){
  body.fc-ready .finx-main{padding:12px!important}
  body.fc-ready .finx-main > header{min-height:52px}
  body.fc-ready #mainActions{margin-right:0!important;margin-top:72px!important}
  body.fc-ready #mainActions .dashboard-toolbar-title{font-size:25px}
  body.fc-ready .fc-hero{padding:22px 20px;min-height:145px}
  body.fc-ready .fc-hero-art{display:none}
  body.fc-ready #kpiRow{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.fc-ready #dashboardGrid{gap:12px!important}
  body.fc-ready #fbsCard .fbs-flow-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.fc-ready #warehouseInsightCard .dashboard-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

body.fc-ready .finx-main > header .fc-period{
  order:1;display:inline-flex;align-items:center;min-height:42px;padding:0 13px;
  margin-right:12px;background:var(--fc-card);border:1px solid var(--fc-border);
  border-radius:12px;color:var(--fc-muted);font-size:13px;font-weight:650;
}
body.fc-ready .finx-main > header #navToggleBtn{order:3}
@media(max-width:680px){
  body.fc-ready .finx-main > header .fc-period{display:none}
  body.fc-ready .finx-main > header .brand{margin-left:auto}
}

/* Finance Command KPI accents: restrained tints, never invented financial states. */
body.fc-ready #kpiRow>.fc-kpi-orders{background:color-mix(in srgb,var(--fc-accent) 9%,var(--fc-card))!important}
body.fc-ready #kpiRow>.fc-kpi-sales{background:color-mix(in srgb,var(--fc-hero-light) 8%,var(--fc-card))!important}
body.fc-ready #kpiRow>.fc-kpi-payout{background:color-mix(in srgb,var(--fc-ok) 9%,var(--fc-card))!important}
body.fc-ready #kpiRow>.fc-kpi-ad{background:color-mix(in srgb,var(--fc-warn) 9%,var(--fc-card))!important}
body.fc-ready #kpiRow>.fc-kpi-cost{background:color-mix(in srgb,var(--fc-accent) 5%,var(--fc-card))!important}
body.fc-ready #dashboardShell #revenueCard .dashboard-widget-titles h3::before{content:"◈";color:var(--fc-accent);margin-right:8px}
body.fc-ready #dashboardShell #topCard .dashboard-widget-titles h3::before{content:"★";color:var(--fc-warn);margin-right:8px}
body.fc-ready #dashboardShell #fbsCard .dashboard-widget-titles h3::before{content:"⇄";color:var(--fc-accent);margin-right:8px}
body.fc-ready #dashboardShell #warehouseInsightCard .dashboard-widget-titles h3::before{content:"▥";color:var(--fc-accent);margin-right:8px}

/* Finance Command V2 — screenshot-aligned dashboard, scoped to the home surface. */
body.fc-ready {
  --fc-blue:#2e67e8;--fc-blue-soft:#e4f0ff;--fc-green:#078c56;
  --fc-green-soft:#e1f6ee;--fc-purple:#7553e7;--fc-purple-soft:#ede8ff;
  --fc-orange:#ec961e;--fc-orange-soft:#fff2df;
  --fc-navy:#132849;--fc-navy-2:#195379;--fc-hair:#dde5ef;
  --fc-positive:#087d45;
  --fc-sidebar:#152239;--fc-bg:#f5f8ff;--fc-card:#fff;
  --fc-text:#111d32;--fc-muted:#687992;--fc-border:#dce5f0;--fc-accent:#2864e9;
  --fc-hero:#162c51;--fc-hero-light:#124b73;--fc-side-text:#e7eefb;--fc-side-muted:#acbcd6;
}
body.fc-ready .finx-main{
  padding:15px 20px 40px!important;
  background:linear-gradient(140deg,color-mix(in srgb,var(--fc-bg) 87%,var(--fc-blue-soft)),var(--fc-bg) 68%)!important;
}
body.fc-ready .fc-sidebar{width:232px;padding:16px 12px 18px}
body.fc-ready .fc-logo{font-size:22px;padding:7px 13px 30px}
body.fc-ready .fc-nav{gap:3px}
body.fc-ready .fc-nav button{min-height:45px;padding:10px 15px;font-size:14px;border-radius:12px}
body.fc-ready .fc-nav button.fc-nav-selected{background:linear-gradient(110deg,var(--fc-blue),color-mix(in srgb,var(--fc-blue) 83%,#8ca9ff));box-shadow:0 5px 13px color-mix(in srgb,var(--fc-blue) 18%,transparent)}
body.fc-ready .fc-nav-icon{display:flex;width:24px;height:23px;align-items:center;justify-content:center}
body.fc-ready .fc-nav-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.fc-ready .fc-sidebar-bottom{padding:0;border:0}
body.fc-ready .fc-bottom-store{border:1px solid color-mix(in srgb,var(--fc-side-text) 19%,transparent);background:color-mix(in srgb,var(--fc-side-text) 6%,transparent);padding:12px 14px;border-radius:14px;margin-bottom:22px}
body.fc-ready .fc-bottom-store-label{color:var(--fc-side-muted);font-size:11px}
body.fc-ready .fc-bottom-store-value{color:var(--fc-side-text);display:flex;gap:8px;align-items:center;font-weight:750;font-size:13px;margin-top:6px}
body.fc-ready .fc-bottom-store-value::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--fc-green)}
body.fc-ready .fc-bottom-meta{font-size:11px;color:var(--fc-side-muted);border-top:1px solid color-mix(in srgb,var(--fc-side-text) 14%,transparent);padding:17px 7px 0}
body.fc-ready .fc-logo-mark i:nth-child(1){height:12px}
body.fc-ready .fc-logo-mark i:nth-child(2){height:19px}
body.fc-ready .fc-logo-mark i:nth-child(3){height:25px}
body.fc-ready .finx-main > header{height:51px!important;min-height:51px!important;margin:0 0 11px!important;gap:8px}
body.fc-ready .finx-main > header .brand{order:1;min-height:45px;padding:0 14px;border-radius:12px}
body.fc-ready .finx-main > header .brand::before{content:"";display:inline-block;width:23px;height:23px;border-radius:8px;background:linear-gradient(135deg,var(--fc-blue-soft),var(--fc-green-soft));border:1px solid var(--fc-border);flex:none}
body.fc-ready .finx-main > header .fc-period{order:2;margin:0;min-height:45px;font-weight:650;color:var(--fc-text);padding:0 16px}
body.fc-ready .finx-main > header .fc-refresh{order:3;display:inline-flex;align-items:center;justify-content:center;width:46px;height:45px;border:1px solid var(--fc-border);border-radius:12px;background:var(--fc-card);color:var(--fc-text);cursor:pointer;box-shadow:0 2px 8px color-mix(in srgb,var(--fc-text) 5%,transparent)}
body.fc-ready .finx-main > header .fc-refresh svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
body.fc-ready .finx-main > header #navToggleBtn{order:4}
body.fc-ready #dashboardShell{margin-top:-63px;gap:13px!important;padding-bottom:22px}
body.fc-ready #mainActions{min-height:57px!important;height:57px;margin:0 500px 2px 0!important}
body.fc-ready #mainActions .dashboard-toolbar-title{font-size:30px;font-weight:900;letter-spacing:-.045em;line-height:1.1}
body.fc-ready #mainActions .dashboard-toolbar-subtitle{font-size:13px;margin-top:3px;line-height:1.25}
body.fc-ready .fc-hero{height:145px!important;min-height:145px!important;padding:18px 27px;gap:0;border-radius:16px;background:linear-gradient(110deg,var(--fc-hero),var(--fc-hero-light))!important}
body.fc-ready .fc-hero-icon{position:relative;z-index:2;flex:0 0 72px;width:72px;height:72px;border-radius:17px;display:flex;align-items:center;justify-content:center;margin-right:24px;background:linear-gradient(135deg,color-mix(in srgb,var(--fc-blue) 85%,transparent),color-mix(in srgb,var(--fc-green) 58%,transparent));border:1px solid color-mix(in srgb,#fff 18%,transparent);color:#fff}
body.fc-ready .fc-hero-icon svg{width:49px;height:49px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
body.fc-ready .fc-hero-details{flex:1 1 58%;min-width:0}
body.fc-ready .fc-hero-label{font-size:17px;font-weight:800}
body.fc-ready .fc-hero-label::after{content:"ⓘ";font-size:15px;opacity:.8;margin-left:12px}
body.fc-ready .fc-hero-slot{margin:2px 0}
body.fc-ready .fc-hero-slot .kpi .val{font-size:clamp(30px,3.7vw,55px)!important;letter-spacing:-.035em!important}
body.fc-ready .fc-hero-note{font-size:11px;color:#d2e1f5}
body.fc-ready .fc-hero-art{flex:0 1 42%;min-width:160px;max-width:425px}
body.fc-ready .fc-hero-art svg{height:126px}
body.fc-ready .fc-hero-art .fc-swoosh{stroke:#4ce0b0;stroke-width:3;opacity:1}
body.fc-ready .fc-hero-art .fc-area{fill:url(#fc-hero-fill)}
body.fc-ready .fc-hero-art-caption{font-size:10px;color:#d4e4fa;bottom:-1px}
body.fc-ready #dashboardGrid{gap:13px!important;align-items:start!important}
body.fc-ready #dashboardGrid>[data-widget-id="kpis"]{position:relative;padding:0 0 19px!important;gap:0!important}
body.fc-ready #kpiRow{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
body.fc-ready #kpiRow>.kpi{
 min-height:111px!important;height:111px!important;box-sizing:border-box;
 border-radius:16px!important;padding:13px 14px!important;display:flex;flex-direction:column;
 align-items:flex-start;justify-content:flex-start;gap:5px;
}
body.fc-ready #kpiRow>.kpi:not(.fc-primary-kpi):not(.fc-derived-kpi){display:none!important}
body.fc-ready #kpiRow.fc-expanded>.kpi:not([style*="display: none"]){display:flex!important}
body.fc-ready #kpiRow>.fc-kpi-sales{order:1;background:var(--fc-blue-soft)!important}
body.fc-ready #kpiRow>.fc-kpi-orders{order:2;background:color-mix(in srgb,var(--fc-blue) 13%,var(--fc-card))!important}
body.fc-ready #kpiRow>.fc-kpi-drr{order:3;background:var(--fc-green-soft)!important}
body.fc-ready #kpiRow>.fc-kpi-ad{order:4;background:var(--fc-orange-soft)!important}
body.fc-ready #kpiRow>.fc-kpi-margin{order:5;background:var(--fc-purple-soft)!important}
body.fc-ready #kpiRow .kpi .lbl{font-size:12px!important;color:var(--fc-text)!important;font-weight:730!important;line-height:1.15;text-align:left;padding-left:34px;min-height:26px}
body.fc-ready #kpiRow .kpi .val{font-size:clamp(17px,1.65vw,26px)!important;font-weight:900!important;line-height:1.1!important;max-width:100%;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
body.fc-ready #kpiRow .fc-kpi-caption{margin-top:auto;display:block;font-size:10px;color:var(--fc-muted);line-height:1.1}
body.fc-ready #kpiRow .fc-kpi-icon{position:absolute;top:11px;left:12px;width:24px;height:25px;display:flex;align-items:center;justify-content:center;color:var(--fc-blue)}
body.fc-ready #kpiRow .fc-kpi-drr .fc-kpi-icon{color:var(--fc-green)}
body.fc-ready #kpiRow .fc-kpi-ad .fc-kpi-icon{color:var(--fc-orange)}
body.fc-ready #kpiRow .fc-kpi-margin .fc-kpi-icon{color:var(--fc-purple)}
body.fc-ready #kpiRow .fc-kpi-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
body.fc-ready #kpiRow .kpi{position:relative}
body.fc-ready #kpi-report-note{position:absolute;bottom:1px;left:2px;margin:0!important;padding:0!important;font-size:10px!important;line-height:1.2!important;max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.fc-ready #fcMoreKpis{position:absolute;right:2px;bottom:0;min-height:16px;padding:0!important;margin:0!important;font-size:11px}
body.fc-ready #dashboardShell .dashboard-widget{border-radius:16px!important;padding:13px 15px!important;gap:8px!important;box-shadow:0 2px 8px color-mix(in srgb,var(--fc-text) 6%,transparent)!important}
body.fc-ready #dashboardShell .dashboard-widget-head{padding:0 0 9px!important;border-bottom:1px solid var(--fc-border)!important;min-height:32px}
body.fc-ready #dashboardShell .dashboard-widget-titles h3{font-size:16px!important;font-weight:850!important;line-height:1.25!important}
body.fc-ready #dashboardGrid>[data-widget-id="revenue"],
body.fc-ready #dashboardGrid>[data-widget-id="top"]{height:309px!important;min-height:309px!important;max-height:none!important}
body.fc-ready #revenueCard canvas{height:205px!important;max-height:205px!important}
body.fc-ready .fc-chart-modes{display:flex;gap:3px;align-items:center;background:var(--fc-bg);padding:3px;border:1px solid var(--fc-border);border-radius:11px;margin-left:auto}
body.fc-ready .fc-chart-modes button{border:0;background:none;color:var(--fc-muted);padding:6px 10px;border-radius:8px;font-size:11px;font-weight:650;cursor:pointer}
body.fc-ready .fc-chart-modes button.is-active{background:var(--fc-blue);color:#fff}
body.fc-ready #revenueCard .dashboard-widget-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
body.fc-ready #topCard .dashboard-leader-tabs{border:0;background:transparent;padding:0;gap:4px;min-height:22px}
body.fc-ready #topCard .dashboard-leader-tabs button{flex:1 1 0;min-width:0;padding:4px 10px;font-size:10px;border-radius:7px}
body.fc-ready #topCard .dashboard-leader-tabs .is-active{background:var(--fc-blue)!important;color:#fff!important}
body.fc-ready #topCard #topRankingList{min-height:0!important;max-height:203px!important;overflow:hidden!important}
body.fc-ready #topCard .dashboard-leader-table{font-size:12px!important;table-layout:fixed}
body.fc-ready #topCard .dashboard-leader-table th{background:var(--fc-card);font-size:11px}
body.fc-ready #topCard .dashboard-leader-table th:first-child,
body.fc-ready #topCard .dashboard-leader-table td:first-child{width:70%}
body.fc-ready #topCard .dashboard-leader-table th:last-child,
body.fc-ready #topCard .dashboard-leader-table td:last-child{width:30%}
body.fc-ready #topCard .dashboard-leader-table tr:nth-child(n+4){display:none}
body.fc-ready #topCard .dashboard-leader-table td{height:49px!important;padding:4px 6px!important}
body.fc-ready #topCard .dashboard-leader-title{font-weight:750}
body.fc-ready #topCard .dashboard-leader-number{color:var(--fc-green);font-weight:850!important;font-size:13px!important}
body.fc-ready #topCard .dashboard-widget-footer{margin-top:auto;padding-top:5px!important}
body.fc-ready #topCard .dashboard-widget-footer button{border:0!important;padding:0!important;font-weight:750}
body.fc-ready #dashboardGrid>[data-widget-id="fbs"],
body.fc-ready #dashboardGrid>[data-widget-id="warehouse"]{min-height:203px!important;height:auto!important}
body.fc-ready #fbsCard .fbs-flow-summary,
body.fc-ready #warehouseInsightCard .dashboard-summary-grid{margin-top:2px!important;gap:7px!important}
body.fc-ready #fbsCard .fbs-flow-summary-card,
body.fc-ready #warehouseInsightCard .dashboard-summary-card{min-height:101px!important;padding:9px!important;max-width:100%;background:var(--fc-blue-soft)!important}
body.fc-ready #fbsCard .fbs-flow-summary-card:nth-child(2),
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(3){background:color-mix(in srgb,var(--fc-blue) 5%,var(--fc-card))!important}
body.fc-ready #fbsCard .fbs-flow-summary-card:nth-child(4),
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(5){background:var(--fc-purple-soft)!important}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(2){background:var(--fc-green-soft)!important}
body.fc-ready #fbsCard .dashboard-summary-value,
body.fc-ready #warehouseInsightCard .dashboard-summary-value{font-size:clamp(17px,1.7vw,24px)!important;font-weight:900}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(5) .dashboard-summary-value{font-size:clamp(11px,1.05vw,15px)!important}
body.fc-ready #fbsCard .dashboard-summary-label,
body.fc-ready #warehouseInsightCard .dashboard-summary-label{font-weight:800!important;color:var(--fc-text)!important;font-size:10px!important}
body.fc-ready #fbsCard .dashboard-summary-meta,
body.fc-ready #warehouseInsightCard .dashboard-summary-meta{font-size:9px!important;line-height:1.25!important}
body.fc-ready #dashboardShell #fbsCard .dashboard-widget-footer,
body.fc-ready #dashboardShell #warehouseInsightCard .dashboard-widget-footer{margin-top:auto}
body.fc-ready #dashboardShell .fc-extras-toggle{display:flex;align-items:center;justify-content:center;gap:8px;margin:1px 0 0;width:100%;border:1px solid var(--fc-border);border-radius:12px;min-height:37px;background:var(--fc-card);color:var(--fc-accent);font-size:12px;font-weight:750;cursor:pointer}
body.fc-ready:not(.fc-extras-open) #dashboardGrid>[data-widget-id="attention"],
body.fc-ready:not(.fc-extras-open) #dashboardGrid>[data-widget-id="reviews"],
body.fc-ready:not(.fc-extras-open) #dashboardGrid>[data-widget-id="orders"]{display:none!important}
body.fc-ready #dashboardGrid>[data-widget-id="attention"]{order:6}
body.fc-ready #dashboardGrid>[data-widget-id="reviews"]{order:7}
body.fc-ready #dashboardGrid>[data-widget-id="orders"]{order:8}
body.fc-ready #dashboardShell .fc-header-link{border:0;background:none;color:var(--fc-accent);font-weight:750;font-size:12px;cursor:pointer;padding:0 2px}
body.fc-ready #dashboardShell .dashboard-widget-tools{display:none!important}
@media(max-width:1240px){
  body.fc-ready #mainActions{margin-right:460px!important}
  body.fc-ready #kpiRow{gap:7px!important}
  body.fc-ready #kpiRow>.kpi{padding:11px!important}
  body.fc-ready #fbsCard .fbs-flow-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.fc-ready #warehouseInsightCard .dashboard-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:940px){
  body.fc-ready #mainActions{margin-right:0!important;padding-top:0}
  body.fc-ready .finx-main > header{margin-top:58px!important}
  body.fc-ready #dashboardShell{margin-top:-118px}
  body.fc-ready .fc-hero{height:145px!important}
  body.fc-ready #dashboardGrid>[data-widget-id="revenue"],body.fc-ready #dashboardGrid>[data-widget-id="top"]{height:auto!important;min-height:315px!important}
  body.fc-ready #kpiRow{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:680px){
  body.fc-ready #dashboardShell{margin-top:-113px}
  body.fc-ready .finx-main > header{margin-top:62px!important}
  body.fc-ready .fc-hero{padding:16px!important;min-height:140px!important}
  body.fc-ready .fc-hero-icon{width:47px;height:47px;flex-basis:47px;margin-right:12px;border-radius:12px}
  body.fc-ready .fc-hero-icon svg{width:32px;height:32px}
  body.fc-ready .fc-hero-label{font-size:13px}
  body.fc-ready .fc-hero-slot .kpi .val{font-size:clamp(27px,7vw,39px)!important}
  body.fc-ready #kpiRow{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.fc-ready #topCard .dashboard-leader-title{padding-left:42px!important}
  body.fc-ready .fc-chart-modes button{padding:5px 7px;font-size:10px}
  body.fc-ready #revenueCard .dashboard-widget-head{flex-wrap:wrap}
  body.fc-ready #dashboardGrid>[data-widget-id="fbs"],body.fc-ready #dashboardGrid>[data-widget-id="warehouse"]{min-height:220px!important}
  body.fc-ready .finx-main > header .fc-refresh{display:none}
}

/* V2 grid correction: prevent legacy card padding from inflating the KPI band. */
body.fc-ready #dashboardShell #dashboardGrid>[data-widget-id="kpis"]{
  padding:0 0 18px!important;min-height:0!important;height:auto!important;
  max-height:none!important;gap:0!important;
}
body.fc-ready #topCard .dashboard-leader-table.fc-top-extended th:first-child,
body.fc-ready #topCard .dashboard-leader-table.fc-top-extended td:first-child{width:46%!important}
body.fc-ready #topCard .dashboard-leader-table.fc-top-extended th:nth-child(2),
body.fc-ready #topCard .dashboard-leader-table.fc-top-extended td:nth-child(2){width:27%!important}
body.fc-ready #topCard .dashboard-leader-table.fc-top-extended th:nth-child(3),
body.fc-ready #topCard .dashboard-leader-table.fc-top-extended td:nth-child(3){width:14%!important}
body.fc-ready #topCard .dashboard-leader-table.fc-top-extended th:nth-child(4),
body.fc-ready #topCard .dashboard-leader-table.fc-top-extended td:nth-child(4){width:13%!important}
body.fc-ready #topCard .dashboard-leader-table.fc-top-extended .fc-top-sold,
body.fc-ready #topCard .dashboard-leader-table.fc-top-extended .fc-top-rating{font-size:11px;white-space:nowrap;text-align:right}
body.fc-ready #topCard .dashboard-leader-table.fc-top-extended .fc-top-rating{color:var(--fc-orange);font-weight:800}

@media(min-width:941px){
  body.fc-ready #dashboardShell #dashboardGrid>[data-widget-id="kpis"]:not(:has(#kpiRow.fc-expanded)){
    height:129px!important;max-height:129px!important;
  }
}

body.fc-ready .fc-side-alert{
  display:block;width:100%;border:1px solid color-mix(in srgb,var(--fc-orange) 35%,transparent);
  color:var(--fc-side-text);background:color-mix(in srgb,var(--fc-orange) 10%,transparent);
  font-size:12px;font-weight:700;text-align:left;border-radius:10px;padding:9px 11px;
  cursor:pointer;margin:-9px 0 16px;
}
body.fc-ready .fc-side-alert:hover{background:color-mix(in srgb,var(--fc-orange) 18%,transparent)}
html.black body.fc-ready,html[data-theme="dark"] body.fc-ready{
  --fc-bg:#101b2c;--fc-card:#1a2b43;--fc-text:#eff5ff;--fc-muted:#b2c3da;
  --fc-border:#344862;--fc-blue-soft:#233e65;--fc-green-soft:#21463f;
  --fc-orange-soft:#483b30;--fc-purple-soft:#352b58;--fc-positive:#62d6a0;
}

/* Finance Command V2 — focused KPI and lower-section polish, no data logic. */
body.fc-ready #kpiRow>.fc-primary-kpi .val{
  flex-shrink:0!important;min-height:26px!important;line-height:1.14!important;
}
body.fc-ready #kpiRow>.fc-kpi-ad .pct:not(:empty){
  position:absolute!important;right:13px;bottom:10px;top:auto!important;
  flex:none!important;margin:0!important;padding:0!important;
  font-size:11px!important;line-height:1.15!important;font-weight:800!important;
  color:var(--fc-orange)!important;max-width:39%;text-align:right;
}
body.fc-ready #kpiRow>.fc-kpi-ad .fc-kpi-caption{max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.fc-ready #dashboardGrid>[data-widget-id="fbs"],
body.fc-ready #dashboardGrid>[data-widget-id="warehouse"]{
  position:relative;align-self:stretch!important;
  min-height:345px!important;height:auto!important;max-height:none!important;
  border:1px solid var(--fc-border)!important;
  border-top:3px solid var(--fc-blue)!important;
  background:radial-gradient(ellipse at 96% 0%,color-mix(in srgb,var(--fc-blue) 9%,transparent),transparent 54%),var(--fc-card)!important;
  box-shadow:0 6px 18px color-mix(in srgb,var(--fc-text) 7%,transparent)!important;
  padding:15px!important;gap:10px!important;
}
body.fc-ready #dashboardGrid>[data-widget-id="warehouse"]{
  border-top-color:var(--fc-green)!important;
  background:radial-gradient(ellipse at 96% 0%,color-mix(in srgb,var(--fc-green) 9%,transparent),transparent 54%),var(--fc-card)!important;
}
body.fc-ready #fbsCard .dashboard-widget-head,
body.fc-ready #warehouseInsightCard .dashboard-widget-head{
  border-bottom:0!important;min-height:44px;flex-shrink:0;
}
body.fc-ready #fbsCard .dashboard-widget-titles,
body.fc-ready #warehouseInsightCard .dashboard-widget-titles{
  position:relative;display:flex;align-items:center;min-height:42px;padding-left:52px;
}
body.fc-ready #fbsCard .dashboard-widget-titles::before,
body.fc-ready #warehouseInsightCard .dashboard-widget-titles::before{
  content:"⇄";position:absolute;left:0;top:1px;
  display:grid;place-items:center;width:40px;height:40px;border-radius:12px;
  color:var(--fc-blue);background:var(--fc-blue-soft);
  font-size:23px;font-weight:750;
}
body.fc-ready #warehouseInsightCard .dashboard-widget-titles::before{
  content:"▥";color:var(--fc-green);background:var(--fc-green-soft);
}
body.fc-ready #dashboardShell #fbsCard .dashboard-widget-titles h3::before,
body.fc-ready #dashboardShell #warehouseInsightCard .dashboard-widget-titles h3::before{display:none!important}
body.fc-ready #fbsCard .fbs-flow-summary{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:minmax(94px,auto);gap:8px!important;margin:0!important;align-items:stretch;
}
body.fc-ready #warehouseInsightCard .dashboard-summary-grid{
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
  grid-auto-rows:minmax(94px,auto);gap:8px!important;margin:0!important;align-items:stretch;
}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(-n+3){grid-column:span 2}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(n+4){grid-column:span 3}
body.fc-ready #fbsCard .fbs-flow-summary-card,
body.fc-ready #warehouseInsightCard .dashboard-summary-card{
  position:relative;overflow:hidden;min-height:94px!important;height:auto!important;
  display:flex;flex-direction:column;gap:6px!important;
  padding:12px 10px 10px 48px!important;
  border:1px solid var(--fc-border)!important;
  border-radius:12px!important;
  background:var(--fc-card)!important;
  box-shadow:0 2px 5px color-mix(in srgb,var(--fc-text) 5%,transparent)!important;
}
body.fc-ready #fbsCard .fbs-flow-summary-card:first-child{
  background:linear-gradient(130deg,var(--fc-blue-soft),color-mix(in srgb,var(--fc-blue-soft) 54%,var(--fc-card)))!important;
  border-color:color-mix(in srgb,var(--fc-blue) 21%,var(--fc-border))!important;
}
body.fc-ready #fbsCard .fbs-flow-summary-card:nth-child(2){background:color-mix(in srgb,var(--fc-blue) 5%,var(--fc-card))!important}
body.fc-ready #fbsCard .fbs-flow-summary-card:nth-child(3){background:color-mix(in srgb,var(--fc-purple) 6%,var(--fc-card))!important}
body.fc-ready #fbsCard .fbs-flow-summary-card:nth-child(4){background:color-mix(in srgb,var(--fc-green) 6%,var(--fc-card))!important}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(2){
  background:linear-gradient(140deg,var(--fc-green-soft),color-mix(in srgb,var(--fc-green-soft) 45%,var(--fc-card)))!important;
}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(5){
  background:linear-gradient(135deg,var(--fc-blue-soft),color-mix(in srgb,var(--fc-blue-soft) 38%,var(--fc-card)))!important;
}
body.fc-ready #fbsCard .fbs-flow-summary-card::before,
body.fc-ready #warehouseInsightCard .dashboard-summary-card::before{
  content:"▣";position:absolute;left:11px;top:12px;width:28px;height:28px;border-radius:8px;
  display:grid;place-items:center;font-size:17px;font-weight:800;line-height:1;
  color:var(--fc-blue);background:color-mix(in srgb,var(--fc-blue) 11%,var(--fc-card));
}
body.fc-ready #fbsCard .fbs-flow-summary-card:nth-child(2)::before{content:"◆"}
body.fc-ready #fbsCard .fbs-flow-summary-card:nth-child(3)::before{content:"⌁";color:var(--fc-purple);background:color-mix(in srgb,var(--fc-purple) 11%,var(--fc-card))}
body.fc-ready #fbsCard .fbs-flow-summary-card:nth-child(4)::before{content:"⇢";color:var(--fc-green);background:color-mix(in srgb,var(--fc-green) 11%,var(--fc-card))}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(1)::before{content:"▦"}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(2)::before{content:"◆";color:var(--fc-green);background:color-mix(in srgb,var(--fc-green) 12%,var(--fc-card))}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(3)::before{content:"⇄"}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(4)::before{content:"↑";color:var(--fc-orange);background:color-mix(in srgb,var(--fc-orange) 12%,var(--fc-card))}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(5)::before{content:"₽";font-size:18px}
body.fc-ready #fbsCard .dashboard-summary-label,
body.fc-ready #warehouseInsightCard .dashboard-summary-label{
  font-size:10px!important;line-height:1.2!important;font-weight:800!important;
  color:var(--fc-muted)!important;letter-spacing:.015em!important;min-height:0;
}
body.fc-ready #fbsCard .dashboard-summary-value,
body.fc-ready #warehouseInsightCard .dashboard-summary-value{
  font-size:clamp(21px,2vw,29px)!important;font-weight:900!important;line-height:1.08!important;
  color:var(--fc-text)!important;letter-spacing:-.035em!important;
  overflow-wrap:anywhere;white-space:normal!important;
}
body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(5) .dashboard-summary-value{
  font-size:clamp(20px,1.9vw,28px)!important;white-space:normal!important;
}
body.fc-ready #fbsCard .dashboard-summary-meta,
body.fc-ready #warehouseInsightCard .dashboard-summary-meta{
  margin-top:auto;font-size:10px!important;line-height:1.25!important;color:var(--fc-muted)!important;
  white-space:normal;overflow-wrap:anywhere;
}
body.fc-ready #fbsCard #dashboardFbsPreview{
  margin-top:2px;padding:8px 11px;border-radius:9px;
  border:1px solid var(--fc-border);background:color-mix(in srgb,var(--fc-blue) 4%,var(--fc-card));
  color:var(--fc-muted);font-size:11px;line-height:1.4;
}
body.fc-ready #warehouseInsightCard #dashboardWarehouseRiskLine:not([hidden]){
  display:flex;align-items:center;gap:8px;justify-content:flex-start;
  min-height:34px;height:auto!important;padding:8px 12px!important;
  font-size:11px!important;line-height:1.3!important;font-weight:700;
  border-radius:10px!important;white-space:normal!important;text-align:left!important;
  background:color-mix(in srgb,var(--fc-orange) 9%,var(--fc-card))!important;
  color:var(--fc-text)!important;
  border-color:color-mix(in srgb,var(--fc-orange) 29%,var(--fc-border))!important;
}
body.fc-ready #warehouseInsightCard #dashboardWarehouseRiskLine:not([hidden])::before{
  content:"!";display:grid;place-items:center;flex:none;width:19px;height:19px;
  background:color-mix(in srgb,var(--fc-orange) 18%,var(--fc-card));
  color:var(--fc-orange);border-radius:50%;font-weight:900;
}
body.fc-ready #dashboardShell #fbsCard .dashboard-widget-footer,
body.fc-ready #dashboardShell #warehouseInsightCard .dashboard-widget-footer{
  display:flex;flex-wrap:wrap;gap:8px;padding-top:12px!important;margin-top:auto!important;
}
body.fc-ready #dashboardShell #fbsCard .dashboard-widget-footer .btn,
body.fc-ready #dashboardShell #warehouseInsightCard .dashboard-widget-footer .btn{
  border-radius:9px!important;min-height:33px;
  padding:6px 12px!important;font-size:11px!important;font-weight:750!important;
}
body.fc-ready #dashboardShell #fbsCard .dashboard-widget-footer .btn:first-child{
  background:var(--fc-blue)!important;color:var(--fc-side-text)!important;border-color:var(--fc-blue)!important;
}
body.fc-ready #dashboardShell #warehouseInsightCard .dashboard-widget-footer .btn:first-child{
  background:var(--fc-green)!important;color:var(--fc-side-text)!important;border-color:var(--fc-green)!important;
}
body.fc-ready.fc-extras-open #dashboardGrid>[data-widget-id="attention"],
body.fc-ready.fc-extras-open #dashboardGrid>[data-widget-id="reviews"],
body.fc-ready.fc-extras-open #dashboardGrid>[data-widget-id="orders"]{
  border:1px solid var(--fc-border)!important;
  border-top:3px solid var(--fc-orange)!important;
  min-height:230px!important;height:auto!important;max-height:none!important;
  background:var(--fc-card)!important;
}
body.fc-ready.fc-extras-open #dashboardGrid>[data-widget-id="reviews"]{border-top-color:var(--fc-purple)!important}
body.fc-ready.fc-extras-open #dashboardGrid>[data-widget-id="orders"]{border-top-color:var(--fc-blue)!important}
body.fc-ready.fc-extras-open #attentionList>*,
body.fc-ready.fc-extras-open #dashboardReviewsList>*{
  border-radius:10px!important;border:1px solid var(--fc-border)!important;
  background:color-mix(in srgb,var(--fc-blue) 4%,var(--fc-card))!important;
  margin:0 0 7px!important;padding:10px 12px!important;
}
body.fc-ready #fcExtrasToggle{background:linear-gradient(110deg,var(--fc-card),var(--fc-blue-soft))!important;font-weight:800!important}
@media(max-width:680px){
  body.fc-ready #fbsCard .fbs-flow-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.fc-ready #warehouseInsightCard .dashboard-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.fc-ready #warehouseInsightCard .dashboard-summary-card{grid-column:span 1!important}
  body.fc-ready #warehouseInsightCard .dashboard-summary-card:nth-child(5){grid-column:1/-1!important}
  body.fc-ready #fbsCard .fbs-flow-summary-card,
  body.fc-ready #warehouseInsightCard .dashboard-summary-card{padding:10px 8px 10px 42px!important}
  body.fc-ready #fbsCard .fbs-flow-summary-card::before,
  body.fc-ready #warehouseInsightCard .dashboard-summary-card::before{left:8px;width:26px;height:26px}
  body.fc-ready #fbsCard .dashboard-summary-value,
  body.fc-ready #warehouseInsightCard .dashboard-summary-value{font-size:clamp(19px,5.2vw,27px)!important}
}


/* Finance Command navigation repair: extra entry points and store switch. */
body.fc-ready .fc-sidebar{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
body.fc-ready .fc-sidebar [hidden]{display:none!important}
body.fc-ready .fc-more-nav{margin:9px 0 16px;border-top:1px solid color-mix(in srgb,var(--fc-side-text) 15%,transparent);padding-top:12px}
body.fc-ready .fc-more-nav summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:38px;padding:8px 14px;border-radius:10px;cursor:pointer;color:var(--fc-side-text);font-size:13px;font-weight:750}
body.fc-ready .fc-more-nav summary::-webkit-details-marker{display:none}
body.fc-ready .fc-more-nav summary::after{content:"⌄";font-size:16px;color:var(--fc-side-muted);transform:rotate(0deg);transition:transform .15s}
body.fc-ready .fc-more-nav[open] summary::after{transform:rotate(180deg)}
body.fc-ready .fc-more-nav summary:hover,body.fc-ready .fc-more-nav summary:focus-visible{background:color-mix(in srgb,var(--fc-side-text) 9%,transparent)}
body.fc-ready .fc-more-nav-list{display:flex;flex-direction:column;gap:2px;padding:5px 0 0 10px}
body.fc-ready .fc-more-nav-list button{display:block;text-align:left;min-height:34px;padding:7px 13px;border:0;background:transparent;color:var(--fc-side-text);border-radius:9px;font:inherit;font-size:12px;cursor:pointer}
body.fc-ready .fc-more-nav-list button:hover,body.fc-ready .fc-more-nav-list button:focus-visible{background:color-mix(in srgb,var(--fc-side-text) 10%,transparent)}
body.fc-ready .fc-more-nav-list button.fc-nav-logout{color:color-mix(in srgb,var(--fc-side-text) 67%,#f99)}
body.fc-ready .fc-bottom-store[role="button"]{cursor:pointer;transition:border-color .15s}
body.fc-ready .fc-bottom-store[role="button"]:hover,body.fc-ready .fc-bottom-store[role="button"]:focus-visible{border-color:var(--fc-blue);outline:none}
body.fc-ready .fc-bottom-store[role="button"] .fc-bottom-store-value::after{content:"⌄";margin-left:auto;font-size:16px;color:var(--fc-side-muted)}
@media(max-height:720px){body.fc-ready .fc-sidebar{padding-top:10px;padding-bottom:10px}body.fc-ready .fc-logo{padding-bottom:12px}}

/* Finance Command: restore header hit targets. */
body.fc-ready .finx-main>header{position:relative!important;z-index:30!important}

/* 2026-11-07 Fix: legacy glass header must not blur the overlapping dashboard title. */
body.fc-ready .finx-main > header {backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}

/* FBS compact home widget: preserve existing API/cache and modal behavior. */
body.fc-ready #fbsCard .fbs-flow-summary.fbs-compact-stats{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;margin:0!important;padding:0!important;overflow:visible!important;min-width:0;
}
body.fc-ready #fbsCard .fbs-compact-tile{
  min-width:0!important;min-height:83px!important;max-width:none!important;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;
  gap:3px!important;padding:10px 11px!important;border:1px solid var(--fc-border)!important;
  border-radius:12px!important;text-align:left;cursor:pointer;
  background:var(--fc-bg)!important;color:var(--fc-text);
  transition:border-color .15s,box-shadow .15s;
}
body.fc-ready #fbsCard .fbs-compact-tile.fbs-compact-new{background:var(--fc-blue-soft)!important}
body.fc-ready #fbsCard .fbs-compact-tile.fbs-compact-assembly{background:var(--fc-purple-soft)!important}
body.fc-ready #fbsCard .fbs-compact-tile.fbs-compact-delivery{background:var(--fc-green-soft)!important}
body.fc-ready #fbsCard .fbs-compact-tile:hover{
  border-color:var(--fc-accent)!important;
  box-shadow:0 3px 12px color-mix(in srgb,var(--fc-accent) 12%,transparent)!important;
}
body.fc-ready #fbsCard .fbs-compact-tile:focus-visible,
body.fc-ready #fbsCard .fbs-compact-product:focus-visible{outline:2px solid var(--fc-blue);outline-offset:2px}
body.fc-ready #fbsCard .fbs-compact-tile-top{
  display:flex;align-items:center;gap:5px;color:var(--fc-muted);
  font-size:10px;font-weight:800;line-height:1.2;white-space:nowrap;
}
body.fc-ready #fbsCard .fbs-compact-tile-top i{
  display:block;flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:var(--fc-blue);
}
body.fc-ready #fbsCard .fbs-compact-assembly i{background:var(--fc-purple)}
body.fc-ready #fbsCard .fbs-compact-delivery i{background:var(--fc-green)}
body.fc-ready #fbsCard .fbs-compact-tile-number{
  font-size:26px;line-height:1.05;font-weight:900;color:var(--fc-text);font-variant-numeric:tabular-nums;
}
body.fc-ready #fbsCard .fbs-compact-tile-sub{
  font-size:10px;font-weight:550;line-height:1.2;color:var(--fc-muted);
}
body.fc-ready #fbsCard .dashboard-fbs-preview:not([hidden]){
  display:block!important;min-width:0;overflow:visible!important;
  white-space:normal!important;color:var(--fc-text);cursor:default;
}
body.fc-ready #fbsCard .fbs-compact-heading{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  font-size:12px;margin:0 0 6px;color:var(--fc-text);
}
body.fc-ready #fbsCard .fbs-compact-heading span{font-size:10px;color:var(--fc-muted);font-weight:500}
body.fc-ready #fbsCard .fbs-compact-products{display:grid;gap:4px}
body.fc-ready #fbsCard .fbs-compact-product{
  display:flex;align-items:center;gap:8px;width:100%;min-width:0;
  border:1px solid var(--fc-border);border-radius:9px;padding:6px 8px;
  background:var(--fc-bg);color:var(--fc-text);text-align:left;cursor:pointer;
}
body.fc-ready #fbsCard .fbs-compact-product:hover{border-color:var(--fc-accent)}
body.fc-ready #fbsCard .fbs-compact-product-icon{
  display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;
  border-radius:7px;background:var(--fc-blue-soft);color:var(--fc-blue);font-size:12px;
}
body.fc-ready #fbsCard .fbs-compact-product-name{
  min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  flex:1;font-size:11px;font-weight:650;
}
body.fc-ready #fbsCard .fbs-compact-qty{
  flex:0 0 auto;white-space:nowrap;font-size:11px;font-weight:800;color:var(--fc-accent);
}
body.fc-ready #fbsCard .fbs-compact-more,
body.fc-ready #fbsCard .fbs-compact-empty{font-size:10px;color:var(--fc-muted)}
body.fc-ready #fbsCard .fbs-compact-more{display:block;margin-top:4px}
#dashboardFbsDetailModal .fbs-compact-focus{
  border-color:var(--accent)!important;box-shadow:inset 0 0 0 1px var(--accent);
}
@media(max-width:600px){
  body.fc-ready #fbsCard .fbs-flow-summary.fbs-compact-stats{gap:5px!important}
  body.fc-ready #fbsCard .fbs-compact-tile{padding:7px!important;min-height:81px!important}
  body.fc-ready #fbsCard .fbs-compact-tile-top{font-size:9px}
  body.fc-ready #fbsCard .fbs-compact-tile-number{font-size:23px}
}


/* FBS status accuracy: no legacy pseudo-icons over numeric data. */
body.fc-ready #fbsCard .fbs-compact-tile::before{
  content:none!important;display:none!important;
}
body.fc-ready #fbsCard .fbs-compact-tile-top i{display:none!important}
body.fc-ready #fbsCard .fbs-compact-tile{
  padding:10px 12px!important;
}
