/* SheaOlein ERP v212 — Premium real-time analytics dashboard */
.content.dashboard-content{width:100%;max-width:none;padding:0;background:#f8f8f0;position:relative;overflow:hidden}
.dashboard-page{--dash-paper:#f8f8f0;--dash-forest:#284c35;--dash-sage:#92ac86;--dash-yellow:#f4da79;--dash-ivory:#fffdf5;--dash-glass:rgba(255,255,249,.78);--dash-line:rgba(40,76,53,.13);--dash-shadow:0 18px 45px rgba(40,76,53,.09);position:relative;isolation:isolate;min-height:calc(100vh - var(--topbar));padding:30px 28px 60px;background:radial-gradient(circle at 12% 10%,rgba(146,172,134,.12),transparent 27%),radial-gradient(circle at 86% 18%,rgba(244,218,121,.18),transparent 24%),linear-gradient(180deg,#fafaf3 0%,#f8f8f0 48%,#f5f7ef 100%);overflow:hidden}
.dashboard-page:before{content:"";position:absolute;inset:0;z-index:-3;pointer-events:none;opacity:.24;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E")}
@media (prefers-reduced-motion:reduce){.dashboard-page *{scroll-behavior:auto!important}}
.dashboard-hero{position:relative;z-index:1;display:flex;align-items:flex-start;gap:28px;margin:0 auto 22px;max-width:1700px;padding:22px 24px;border:1px solid rgba(255,255,255,.75);border-radius:26px;background:linear-gradient(135deg,rgba(255,255,250,.86),rgba(248,250,241,.72));backdrop-filter:blur(22px) saturate(.82);box-shadow:var(--dash-shadow)}
.dashboard-title{min-width:0;flex:1}.dashboard-title .eyebrow{color:#3d7250}.dashboard-title h1{font-size:clamp(28px,3vw,39px);color:#1e3024;margin-bottom:7px}.dashboard-title>p{max-width:830px;color:#68766c;margin-bottom:10px;font-size:14px}.dashboard-freshness{display:flex;align-items:center;gap:6px;color:#6f7d73;font-size:11px;flex-wrap:wrap}.dashboard-freshness strong{color:#33483a}.live-dot{width:8px;height:8px;border-radius:50%;background:#2d9b59;box-shadow:0 0 0 4px rgba(45,155,89,.11)}
.dashboard-controls{display:flex;align-items:flex-end;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:650px}.dash-date-filter,.dash-custom-date{display:grid;gap:5px}.dash-date-filter span,.dash-custom-date span{font-size:9px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#6d7d72}.dash-date-filter select,.dash-custom-date input{height:40px;border:1px solid rgba(40,76,53,.16);border-radius:11px;background:rgba(255,255,251,.88);padding:0 11px;color:#263d2e;outline:none}.dash-date-filter select{min-width:150px}.dash-custom-date input{width:142px}.dash-date-filter select:focus,.dash-custom-date input:focus{border-color:#7da18a;box-shadow:0 0 0 3px rgba(146,172,134,.16)}.dash-custom-date.hidden{display:none}
.dash-source-warning{max-width:1700px;margin:0 auto 18px;display:flex;gap:12px;padding:13px 15px;border:1px solid rgba(188,135,25,.2);border-radius:15px;background:rgba(255,247,218,.72);backdrop-filter:blur(12px);color:#6d531a}.dash-source-warning>span{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:rgba(244,218,121,.38);flex:0 0 auto}.dash-source-warning svg{width:17px}.dash-source-warning strong{display:block;color:#5e4818}.dash-source-warning p{margin:2px 0 0;font-size:12px}
.dash-kpi-grid{max-width:1700px;margin:0 auto 18px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.dash-kpi{min-width:0;min-height:164px;padding:17px;border:1px solid var(--dash-line);border-radius:22px;text-align:left;background:var(--dash-glass);backdrop-filter:blur(20px) saturate(.78);box-shadow:0 10px 28px rgba(40,76,53,.06);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.dash-kpi:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 17px 36px rgba(40,76,53,.1);border-color:rgba(40,76,53,.2)}.dash-kpi:disabled{cursor:default}.dash-kpi.forest{background:linear-gradient(145deg,rgba(230,240,230,.88),rgba(255,255,249,.78))}.dash-kpi.yellow{background:linear-gradient(145deg,rgba(255,248,218,.88),rgba(255,255,249,.8))}.dash-kpi.sage{background:linear-gradient(145deg,rgba(237,244,233,.91),rgba(255,255,249,.78))}.dash-kpi.ivory{background:linear-gradient(145deg,rgba(255,253,245,.95),rgba(249,250,242,.8))}.dash-kpi.amber{background:linear-gradient(145deg,rgba(251,244,216,.78),rgba(255,255,249,.82))}.dash-kpi.unavailable{opacity:.63}.dash-kpi-top{display:flex;align-items:center;gap:8px;min-height:32px}.dash-kpi-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:#316d48;background:rgba(255,255,255,.65);border:1px solid rgba(40,76,53,.08)}.dash-kpi-icon svg{width:17px}.dash-kpi-label{min-width:0;flex:1;font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#607267}.dash-growth{padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800;white-space:nowrap}.dash-growth.up{color:#1e7140;background:#e3f3e8}.dash-growth.down{color:#a83c36;background:#fcebea}.dash-growth.neutral{color:#6d776f;background:#eef1ed}.dash-kpi-value{display:block;margin-top:13px;color:#203328;font-size:28px;line-height:1;letter-spacing:-.04em}.dash-kpi-note,.dash-kpi-detail{display:block;margin-top:7px;color:#66756b;font-size:11px;line-height:1.35}.dash-kpi-detail{margin-top:5px;color:#839087;font-size:10px}
.dash-main-grid{max-width:1700px;margin:0 auto 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.dash-main-grid.sales-grid{grid-template-columns:minmax(0,1.75fr) minmax(310px,.65fr)}.dash-panel{min-width:0;border:1px solid var(--dash-line);border-radius:24px;background:rgba(255,255,250,.79);backdrop-filter:blur(20px) saturate(.8);box-shadow:0 10px 30px rgba(40,76,53,.055);overflow:hidden}.dash-panel-header{min-height:82px;padding:17px 19px;display:flex;align-items:flex-start;gap:16px;border-bottom:1px solid rgba(40,76,53,.09)}.dash-panel-header>div:first-child{min-width:0;flex:1}.dash-panel-header .eyebrow{margin-bottom:5px;color:#4b8060}.dash-panel-header h2{margin-bottom:3px;color:#24392c;font-size:18px}.dash-panel-header p{margin:0;color:#77847a;font-size:11px}.dash-panel-body{padding:16px 18px}.dash-panel-body.no-pad{padding:0}.dash-panel-body.alert-panel{padding:10px}.dash-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#66766b;font-size:10px}.dash-legend.vertical{display:grid;gap:8px;width:100%;margin-top:16px}.dash-legend.vertical span{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px}.dash-legend.vertical em{font-style:normal;color:#7b887f}.dash-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:3px}.dash-legend .bc,.dash-legend i.bc{background:#2f6e49}.dash-legend .dealer,.dash-legend i.dealer{background:#d6ad35}.dash-legend i.finished{background:#376f4e}.dash-legend i.ingredients{background:#8cab80}.dash-legend i.packing{background:#d5b34b}
.dash-chart-scroll{overflow-x:auto;overflow-y:hidden}.dash-sales-svg{width:100%;min-width:690px;height:auto}.dash-sales-svg .chart-grid line{stroke:rgba(40,76,53,.09);stroke-width:1}.dash-sales-svg .chart-grid text,.dash-sales-svg .chart-labels text{fill:#7d887f;font-size:10px}.sales-line{fill:none;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}.sales-line.bigcommerce{stroke:#2f6e49}.sales-line.dealer{stroke:#d6ad35}.series-dot{stroke:white;stroke-width:2;transition:r .15s}.series-dot:hover{r:6}.series-dot.bigcommerce{fill:#2f6e49}.series-dot.dealer{fill:#d6ad35}.donut-panel{display:grid;place-items:center}.dash-donut-wrap{width:200px;height:200px;position:relative}.dash-donut{width:100%;height:100%;transform:rotate(-90deg)}.dash-donut circle{fill:none;stroke-width:14}.donut-track{stroke:#ecf0e8}.donut-bc{stroke:#2f6e49;stroke-linecap:round}.donut-dealer{stroke:#d6ad35;stroke-linecap:round}.donut-center{position:absolute;inset:0;display:grid;place-content:center;text-align:center}.donut-center strong{font-size:20px;color:#263b2e}.donut-center span{color:#839087;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.snapshot-badge{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid rgba(40,76,53,.1);border-radius:999px;color:#51705c;background:rgba(236,245,236,.65);font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}.snapshot-badge i{width:6px;height:6px;border-radius:50%;background:#3a955d}.dash-health-list{display:grid;gap:12px}.health-row{width:100%;border:1px solid rgba(40,76,53,.09);border-radius:15px;padding:13px;background:rgba(255,255,255,.5);text-align:left;cursor:pointer;transition:background .15s,border-color .15s}.health-row:hover{background:rgba(255,255,255,.82);border-color:rgba(40,76,53,.17)}.health-row-head{display:flex;justify-content:space-between;gap:10px}.health-row-head strong{color:#2c4233}.health-row-head span{font-size:10px;color:#7b887f}.health-bar{height:8px;margin:10px 0 8px;border-radius:999px;overflow:hidden;background:#edf1eb;display:flex}.health-bar span.ok{background:#5a936b}.health-bar span.low{background:#e0bb51}.health-bar span.out{background:#d96a61}.health-counts{display:flex;gap:14px;flex-wrap:wrap;color:#6d7b71;font-size:9px}.health-counts i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px}.health-counts i.ok{background:#5a936b}.health-counts i.low{background:#e0bb51}.health-counts i.out{background:#d96a61}
.metric-toggle{display:inline-flex;padding:3px;border:1px solid rgba(40,76,53,.1);border-radius:10px;background:#f3f5ef}.metric-toggle button{border:0;border-radius:7px;padding:6px 9px;background:transparent;color:#6c786f;font-size:10px;font-weight:750;cursor:pointer}.metric-toggle button.active{color:#315f42;background:#fff;box-shadow:0 1px 4px rgba(40,76,53,.08)}.dash-top-products{display:grid;gap:10px}.top-product-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;align-items:center}.rank{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:#eef3ea;color:#587061;font-size:9px;font-weight:800}.top-product-copy{min-width:0}.top-product-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#304536}.top-product-copy small{display:block;color:#89938c;font-size:9px}.top-product-track,.dealer-track{height:5px;margin-top:5px;border-radius:999px;overflow:hidden;background:#edf0e9}.top-product-track i,.dealer-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4f8560,#9eb78e)}.top-product-value{text-align:right}.top-product-value strong{display:block;font-size:11px;color:#2a4031}.top-product-value small{display:block;color:#89938c;font-size:8px;text-transform:uppercase}
.activity-chart{height:190px;display:flex;align-items:stretch;gap:5px;padding:12px 4px 0;border-bottom:1px solid rgba(40,76,53,.08)}.activity-group{min-width:18px;flex:1;display:grid;grid-template-rows:1fr 22px;gap:5px}.activity-bars{display:flex;align-items:flex-end;justify-content:center;gap:2px}.activity-bars span{width:28%;min-width:3px;border-radius:4px 4px 1px 1px}.activity-bars .finished{background:#376f4e}.activity-bars .ingredients{background:#8cab80}.activity-bars .packing{background:#d5b34b}.activity-group small{font-size:7px;color:#8c968f;transform:rotate(-45deg);transform-origin:center;text-align:center;white-space:nowrap}.dash-alert-list{display:grid;gap:6px;max-height:330px;overflow:auto}.dash-alert{width:100%;display:grid;grid-template-columns:32px minmax(0,1fr) 16px;gap:9px;align-items:center;border:1px solid rgba(40,76,53,.08);border-radius:13px;padding:9px;background:rgba(255,255,255,.52);text-align:left;cursor:pointer}.dash-alert:hover{background:#fff}.alert-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#edf4ec;color:#55785f}.dash-alert.out .alert-icon{color:#ad413b;background:#fceceb}.dash-alert.low .alert-icon{color:#966a12;background:#fff4d7}.dash-alert.shortage .alert-icon,.dash-alert.sync .alert-icon{color:#8d5f08;background:#fff0c8}.alert-icon svg{width:15px}.alert-copy{min-width:0}.alert-copy small,.alert-copy strong,.alert-copy em{display:block}.alert-copy small{color:#89938c;font-size:8px;text-transform:uppercase;letter-spacing:.06em}.alert-copy strong{color:#2e4334;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alert-copy em{color:#748178;font-size:9px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.alert-chevron{width:14px;color:#9aa39c}
.dash-compact-table{display:grid}.dash-compact-head,.dash-compact-row{display:grid;grid-template-columns:.8fr 1.25fr .8fr .75fr;gap:12px;align-items:center;padding:10px 15px}.dash-compact-head{color:#7c8980;background:rgba(245,247,240,.65);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}.dash-compact-row{border-top:1px solid rgba(40,76,53,.07);font-size:10px}.dash-compact-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.dash-compact-row b{display:block;color:#2d4234}.dash-compact-row small{display:block;color:#8a948d;font-size:8px}.dash-chip{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eef1ed;color:#5f6c63;font-size:8px;font-weight:800;white-space:nowrap;text-transform:capitalize}.dash-chip.green,.dash-chip.ok{color:#34704a;background:#e6f3e8}.dash-chip.amber,.dash-chip.low{color:#8b6415;background:#fff3d4}.dash-chip.red,.dash-chip.out{color:#a7423c;background:#fcebea}.dash-dealer-list{display:grid;gap:11px}.dealer-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;align-items:center}.dealer-row strong{display:block;color:#2d4234;font-size:11px}.dealer-row small{display:block;color:#88938c;font-size:8px}.dealer-row>span:last-child{text-align:right}.dealer-row>span:last-child b{display:block;font-size:11px}.status-breakdown{display:grid;gap:7px}.status-breakdown>div{display:grid;grid-template-columns:minmax(0,1fr) 42px 90px;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid rgba(40,76,53,.07)}.status-breakdown>div:last-child{border-bottom:0}.status-breakdown strong{text-align:right;color:#33483a}.status-breakdown em{text-align:right;color:#77847a;font-size:10px;font-style:normal}
.text-link{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;color:#39734f;font-size:10px;font-weight:750;cursor:pointer}.text-link svg{width:13px}.dash-quick-actions{max-width:1700px;margin:0 auto 18px;border:1px solid var(--dash-line);border-radius:24px;padding:18px;background:rgba(255,255,250,.75);backdrop-filter:blur(18px);box-shadow:0 10px 28px rgba(40,76,53,.045)}.dash-quick-actions header h2{margin-bottom:0;font-size:17px}.dash-quick-actions>div{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-top:12px}.dash-quick-actions button{min-height:68px;display:grid;grid-template-columns:32px minmax(0,1fr) 14px;align-items:center;gap:8px;border:1px solid rgba(40,76,53,.09);border-radius:14px;padding:10px;background:rgba(255,255,255,.54);text-align:left;cursor:pointer;transition:transform .15s,background .15s}.dash-quick-actions button:hover{transform:translateY(-1px);background:#fff}.dash-quick-actions button>span{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:#3f7352;background:#ecf4e9}.dash-quick-actions button>span svg{width:15px}.dash-quick-actions button>svg{width:13px;color:#9aa39c}.dash-quick-actions button strong{font-size:10px;color:#344b3a}
.dash-data-panel{max-width:1700px;margin:0 auto 18px;border:1px solid var(--dash-line);border-radius:24px;background:rgba(255,255,250,.79);backdrop-filter:blur(20px);box-shadow:0 10px 30px rgba(40,76,53,.05);overflow:hidden}.dash-table-header{display:flex;align-items:center;gap:18px;padding:17px 19px;border-bottom:1px solid rgba(40,76,53,.08)}.dash-section-title{min-width:0;flex:1;display:flex;align-items:center;gap:11px}.dash-section-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#edf4e9;color:#3e7652}.dash-section-icon svg{width:18px}.dash-section-title h2{margin-bottom:2px;font-size:17px;color:#2c4233}.dash-section-title p{margin:0;color:#7d8981;font-size:10px}.dash-search{width:min(350px,42vw);height:40px;display:flex;align-items:center;gap:7px;border:1px solid rgba(40,76,53,.13);border-radius:11px;padding:0 11px;background:rgba(255,255,255,.72)}.dash-search svg{width:15px;color:#879289}.dash-search input{width:100%;border:0;outline:0;background:transparent;color:#2c4233}.dash-table-meta{display:flex;align-items:center;gap:10px;padding:9px 17px;background:rgba(247,249,242,.62);border-bottom:1px solid rgba(40,76,53,.07);color:#78857c;font-size:9px}.dash-table-scroll{overflow:auto;max-height:490px}.dash-table{width:100%;min-width:980px;border-collapse:collapse}.dash-table th{position:sticky;top:0;z-index:2;padding:10px 13px;border-bottom:1px solid rgba(40,76,53,.09);background:rgba(250,251,246,.97);color:#68766c;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;text-align:left}.dash-table td{padding:11px 13px;border-bottom:1px solid rgba(40,76,53,.065);color:#425348;font-size:10px}.dash-table tr[data-dashboard-route]{cursor:pointer}.dash-table tr[data-dashboard-route]:hover{background:rgba(238,245,235,.6)}.dash-table td strong,.dash-table td b{display:block;color:#2d4234}.dash-table td small{display:block;margin-top:2px;color:#8a958e;font-size:8px}.pack-list{display:flex;gap:4px;flex-wrap:wrap}.pack-list i{padding:3px 5px;border-radius:6px;background:#eef3e9;color:#5d7163;font-size:7px;font-style:normal}.pack-list em{color:#9aa39d;font-style:normal}.dash-no-results{padding:26px;text-align:center;color:#7c8880;font-size:11px}.dash-accounting-note{max-width:1700px;margin:0 auto}.dash-accounting-note details{border:1px solid rgba(40,76,53,.1);border-radius:15px;background:rgba(255,255,250,.65);padding:11px 14px;color:#647268}.dash-accounting-note summary{cursor:pointer;color:#395443;font-weight:750;font-size:11px}.dash-accounting-note p{margin:8px 0 0;font-size:10px;line-height:1.5}
.dash-empty{min-height:240px;display:grid;place-content:center;text-align:center;color:#819087}.dash-empty.compact{min-height:150px}.dash-empty strong{display:block;color:#43564a;font-size:12px}.dash-empty span{display:block;margin-top:4px;font-size:10px}.dash-fatal{max-width:900px;margin:50px auto;display:flex;gap:14px;border:1px solid #efceca;border-radius:20px;padding:20px;background:rgba(255,248,247,.9)}.dash-fatal>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;color:#b64943;background:#fcebea}.dash-fatal svg{width:20px}.dash-fatal p{color:#785c58}.dash-skeleton-header{max-width:1700px;margin:0 auto 18px;display:flex;justify-content:space-between;gap:20px}.dash-skeleton-header .skeleton:first-child{height:70px;width:45%}.dash-skeleton-header .skeleton:last-child{height:42px;width:360px}
@media(max-width:1380px){.dash-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-kpi-grid .dash-kpi:nth-child(4),.dash-kpi-grid .dash-kpi:nth-child(5){grid-column:auto}.dash-quick-actions>div{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1050px){.dashboard-hero{flex-direction:column}.dashboard-controls{max-width:none;justify-content:flex-start}.dash-main-grid,.dash-main-grid.sales-grid{grid-template-columns:1fr}.dash-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.transactions-grid{grid-template-columns:1fr}.dash-table-header{align-items:flex-start;flex-direction:column}.dash-search{width:100%}}
@media(max-width:720px){.dashboard-page{padding:18px 13px 40px}.dashboard-hero{padding:18px;border-radius:20px}.dashboard-title h1{font-size:28px}.dashboard-controls{width:100%;display:grid;grid-template-columns:1fr 1fr}.dash-date-filter{grid-column:1/-1}.dash-date-filter select,.dash-custom-date input{width:100%}.dashboard-controls .button{width:100%}.dash-kpi-grid{grid-template-columns:1fr}.dash-kpi{min-height:145px}.dash-main-grid{gap:12px}.dash-panel{border-radius:19px}.dash-panel-header{padding:15px;min-height:auto}.dash-panel-body{padding:14px}.dash-quick-actions{border-radius:19px;padding:14px}.dash-quick-actions>div{grid-template-columns:1fr 1fr}.dash-compact-head{display:none}.dash-compact-row{grid-template-columns:1fr 1fr}.dash-compact-row>span:nth-child(2){text-align:right}.dash-compact-row>span:nth-child(3),.dash-compact-row>span:nth-child(4){margin-top:5px}.dash-compact-row>span:nth-child(4){text-align:right}.dash-data-panel{border-radius:19px}.dash-table-header{padding:14px}.dash-section-title{align-items:flex-start}.activity-chart{gap:3px}.activity-group:nth-child(n+15){display:none}}
@media(max-width:480px){.dashboard-controls{grid-template-columns:1fr}.dash-date-filter{grid-column:auto}.dash-quick-actions>div{grid-template-columns:1fr}.dash-kpi-value{font-size:25px}.dash-panel-header{flex-direction:column}.metric-toggle{align-self:flex-start}}


/* v212 production readiness */
.dash-readiness-panel{margin-top:18px}
.dash-ready-state{display:flex;align-items:flex-start;gap:14px;padding:20px;border:1px solid rgba(40,76,53,.12);border-radius:20px;background:rgba(237,247,239,.72)}
.dash-ready-state>span{display:grid;place-items:center;width:36px;height:36px;border-radius:13px;background:rgba(40,76,53,.12);color:var(--dash-forest);font-weight:900;font-size:18px}
.dash-ready-state strong,.dash-ready-state p{display:block;margin:0}.dash-ready-state p{margin-top:5px;color:var(--dash-muted);font-size:13px;line-height:1.5}
.dash-readiness-list{display:grid;gap:10px}
.readiness-row{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;text-align:left;border:1px solid rgba(177,84,50,.14);background:rgba(255,247,238,.72);border-radius:18px;padding:13px 14px;color:inherit;cursor:pointer;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.readiness-row:hover{transform:translateY(-1px);border-color:rgba(177,84,50,.30);background:rgba(255,244,229,.9)}
.readiness-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:12px;background:rgba(211,105,60,.12);color:#a54328;font-weight:900}
.readiness-row strong,.readiness-row small,.readiness-row b{display:block}.readiness-row small{margin-top:3px;color:var(--dash-muted);font-size:11px}.readiness-row>span:last-child{text-align:right}.readiness-row>span:last-child b{color:#a54328;font-size:16px}
@media(max-width:620px){.readiness-row{grid-template-columns:auto minmax(0,1fr)}.readiness-row>span:last-child{grid-column:2;text-align:left}}

/* v217 product profitability analytics */
.profitability-panel{max-width:1700px;margin:0 auto 18px}.profitability-heading{align-items:center}.profit-method-pill{white-space:nowrap;padding:7px 10px;border-radius:999px;background:rgba(244,218,121,.28);border:1px solid rgba(174,138,35,.14);color:#765d18;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.profit-loading,.profit-error{min-height:120px;display:flex;align-items:center;justify-content:center;gap:12px;color:#66776c}.profit-error{justify-content:flex-start;padding:20px;color:#8a443d}.profit-toolbar{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(170px,.55fr) minmax(190px,.65fr);gap:10px;padding:14px 18px;background:rgba(247,249,242,.58);border-bottom:1px solid rgba(40,76,53,.08)}.profit-toolbar label{display:grid;gap:5px}.profit-toolbar label>span{font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6e7c72}.profit-toolbar input,.profit-toolbar select,.profit-modal-filters input,.profit-modal-filters select{height:40px;border:1px solid rgba(40,76,53,.14);border-radius:11px;background:rgba(255,255,252,.9);padding:0 11px;color:#294032;outline:none}.profit-toolbar input:focus,.profit-toolbar select:focus,.profit-modal-filters input:focus,.profit-modal-filters select:focus{border-color:#7da18a;box-shadow:0 0 0 3px rgba(146,172,134,.14)}.profit-summary-strip{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid rgba(40,76,53,.08);background:rgba(255,255,255,.34)}.profit-summary-strip>span{padding:10px 15px;border-right:1px solid rgba(40,76,53,.07);color:#7a887f;font-size:9px}.profit-summary-strip>span:last-child{border-right:0}.profit-summary-strip strong{display:block;color:#304a39;font-size:15px;margin-bottom:2px}.profit-table-scroll{overflow:auto;max-height:540px}.profit-table-scroll.compact{max-height:420px}.profit-table{width:100%;min-width:1120px;border-collapse:collapse}.profit-table th{position:sticky;top:0;z-index:2;padding:10px 12px;background:rgba(250,251,246,.98);border-bottom:1px solid rgba(40,76,53,.09);color:#68766c;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;text-align:left}.profit-table td{padding:11px 12px;border-bottom:1px solid rgba(40,76,53,.065);font-size:10px;color:#45564b;vertical-align:middle}.profit-table tbody tr[data-profitability-product]{cursor:pointer;transition:background .14s}.profit-table tbody tr[data-profitability-product]:hover,.dash-table tr[data-profitability-product]:hover{background:rgba(235,245,234,.7)}.profit-table td strong,.profit-table td small{display:block}.profit-table td strong{color:#2b4233}.profit-table td small{margin-top:2px;color:#89948d;font-size:8px}.profit-product-cell{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center}.profit-product-cell>img,.profit-product-cell>span{width:42px;height:42px;border-radius:12px;object-fit:contain;background:#eef4e9;border:1px solid rgba(40,76,53,.08);display:grid;place-items:center;color:#34704a;font-weight:900}.profit-flags{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.profit-flags span{padding:3px 5px;border-radius:999px;background:#fff1d7;color:#8a651c;font-size:7px;font-weight:800}.profit-chip{display:inline-flex;margin-top:4px;padding:3px 6px;border-radius:999px;font-size:7px;font-weight:800}.profit-chip.green{background:#e7f4e9;color:#36724b}.profit-chip.amber{background:#fff1cf;color:#8b6517}.profit-margin{display:inline-flex;padding:5px 8px;border-radius:999px;font-weight:850}.profit-margin.green{background:#e5f3e7;color:#2d7247}.profit-margin.amber{background:#fff0d0;color:#916714}.profit-margin.red{background:#fce9e7;color:#ac453d}.profit-margin.neutral{background:#eef1ed;color:#65716a}.profit-partial{color:#926719;font-weight:800}.profit-open{width:30px;height:30px;border:1px solid rgba(40,76,53,.1);border-radius:10px;background:#fff;color:#447356;display:grid;place-items:center}.profit-open svg{width:13px}.profit-empty{padding:24px;text-align:center;color:#7d8981}
body.profit-modal-open{overflow:hidden}.profit-modal-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:18px;background:rgba(27,45,34,.36);backdrop-filter:blur(12px);overflow:auto}.profit-modal-shell{position:relative;width:min(1500px,96vw);max-height:94vh;overflow:auto;border:1px solid rgba(255,255,255,.74);border-radius:28px;background:linear-gradient(180deg,rgba(250,250,243,.98),rgba(246,248,240,.97));box-shadow:0 32px 90px rgba(28,50,36,.24);z-index:2}.profitability-bubble-layer{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:1}.profitability-bubble-layer i{position:absolute;border-radius:50%;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.55),rgba(146,172,134,.16));filter:blur(.2px);animation:profitFloat 18s ease-in-out infinite alternate}.profitability-bubble-layer i:nth-child(1){width:160px;height:160px;left:4%;top:18%}.profitability-bubble-layer i:nth-child(2){width:230px;height:230px;right:4%;top:8%;background:radial-gradient(circle at 30% 25%,rgba(255,255,255,.55),rgba(244,218,121,.18));animation-duration:24s}.profitability-bubble-layer i:nth-child(3){width:120px;height:120px;right:16%;bottom:7%;animation-duration:20s}@keyframes profitFloat{to{transform:translate3d(18px,-28px,0) scale(1.05)}}@media(prefers-reduced-motion:reduce){.profitability-bubble-layer i{animation:none}}
.profit-detail-loading,.profit-detail-error{min-height:340px;display:grid;place-content:center;text-align:center;gap:8px;color:#69776e}.profit-detail-error{display:flex;align-items:flex-start;text-align:left;padding:40px}.profit-modal-card{min-height:600px}.profit-modal-header{position:sticky;top:0;z-index:8;display:flex;align-items:center;gap:16px;padding:16px 18px;border-bottom:1px solid rgba(40,76,53,.09);background:rgba(250,250,244,.92);backdrop-filter:blur(18px)}.profit-product-hero{display:flex;align-items:center;gap:13px;min-width:0;flex:1}.profit-product-hero>img,.profit-product-hero>span{width:58px;height:58px;border-radius:16px;object-fit:contain;background:#eef4e9;border:1px solid rgba(40,76,53,.08);display:grid;place-items:center;color:#34704a;font-weight:900}.profit-product-hero small{display:block;color:#4a7d5a;font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.profit-product-hero h2{margin:3px 0 2px;color:#23392c;font-size:24px}.profit-product-hero p{margin:0;color:#77847b;font-size:10px}.profit-modal-close{width:38px;height:38px;border:1px solid rgba(40,76,53,.12);border-radius:12px;background:rgba(255,255,255,.82);color:#415b49;display:grid;place-items:center;cursor:pointer}.profit-modal-close svg{width:16px}.profit-modal-close.floating{position:absolute;right:16px;top:16px;z-index:6}.profit-modal-filters{display:grid;grid-template-columns:1.35fr 1fr .8fr .8fr .8fr .8fr .7fr auto;gap:8px;padding:12px 18px;border-bottom:1px solid rgba(40,76,53,.08);background:rgba(245,248,240,.7);position:sticky;top:91px;z-index:7;backdrop-filter:blur(16px)}.profit-modal-filters label{display:grid;gap:4px}.profit-modal-filters label>span{font-size:7px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:#68786e}.profit-modal-filters .hidden{display:none}.profit-modal-body{padding:16px 18px 28px}.profit-warnings{display:grid;gap:7px;margin-bottom:12px}.profit-warnings>div{display:flex;align-items:flex-start;gap:8px;padding:9px 11px;border:1px solid rgba(181,139,41,.16);border-radius:11px;background:rgba(255,247,218,.65);color:#755b1c;font-size:9px;line-height:1.45}.profit-warnings svg{width:14px;flex:0 0 auto}.profit-metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:13px}.profit-metric{min-height:106px;padding:13px;border:1px solid rgba(40,76,53,.1);border-radius:17px;background:rgba(255,255,252,.74);box-shadow:0 8px 22px rgba(40,76,53,.04)}.profit-metric.green{background:linear-gradient(145deg,rgba(229,242,230,.8),rgba(255,255,252,.78))}.profit-metric.yellow{background:linear-gradient(145deg,rgba(255,246,213,.78),rgba(255,255,252,.78))}.profit-metric.sage{background:linear-gradient(145deg,rgba(235,243,231,.84),rgba(255,255,252,.78))}.profit-metric.ivory{background:linear-gradient(145deg,rgba(255,253,245,.96),rgba(248,249,243,.8))}.profit-metric>span{display:block;color:#6a796f;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.profit-metric strong{display:block;margin-top:9px;color:#263e2f;font-size:22px;letter-spacing:-.03em}.profit-metric small{display:block;margin-top:5px;color:#7e8b82;font-size:9px}.profit-detail-grid{display:grid;grid-template-columns:1.6fr .8fr;gap:12px;margin-bottom:12px}.profit-section{border:1px solid rgba(40,76,53,.1);border-radius:19px;background:rgba(255,255,252,.72);overflow:hidden;margin-bottom:12px}.profit-section>header{padding:13px 15px;border-bottom:1px solid rgba(40,76,53,.08)}.profit-section>header h3{margin:3px 0 0;color:#2a4232;font-size:16px}.profit-section>header p{margin:4px 0 0;color:#7c8980;font-size:9px}.profit-section.wide{min-width:0}.profit-section>:not(header){margin:14px}.profit-bars{height:270px;display:flex;align-items:flex-end;gap:7px;overflow-x:auto;padding:12px 4px 0}.profit-bar-group{height:100%;min-width:44px;flex:1;display:grid;grid-template-rows:1fr auto;gap:7px}.profit-bar-columns{display:flex;align-items:flex-end;justify-content:center;gap:3px;height:100%;border-bottom:1px solid rgba(40,76,53,.09)}.profit-bar-columns span{width:22%;min-width:7px;border-radius:5px 5px 2px 2px;transition:filter .15s}.profit-bar-columns span:hover{filter:brightness(.9)}.profit-bar-columns .sales{background:#39754f}.profit-bar-columns .cogs{background:#d4ac3c}.profit-bar-columns .profit{background:#8eae82}.profit-bar-group small{text-align:center;color:#7f8b83;font-size:7px;white-space:nowrap}.profit-chart-legend{display:flex;gap:14px;flex-wrap:wrap;color:#66766c;font-size:8px}.profit-chart-legend span{display:flex;align-items:center;gap:5px}.profit-chart-legend i{width:9px;height:9px;border-radius:3px}.profit-chart-legend i.sales{background:#39754f}.profit-chart-legend i.cogs{background:#d4ac3c}.profit-chart-legend i.profit{background:#8eae82}.profit-chart-empty{min-height:180px;display:grid;place-items:center;color:#839087;font-size:10px}.cost-stack{height:22px;display:flex;overflow:hidden;border-radius:8px;background:#edf1eb}.cost-stack span{display:block;min-width:2px}.cost-stack .ingredients,.cost-legend i.ingredients{background:#6c9b72}.cost-stack .packing,.cost-legend i.packing{background:#d8b443}.cost-stack .labor,.cost-legend i.labor{background:#7c91ae}.cost-stack .other,.cost-legend i.other{background:#b88a68}.cost-stack .overhead,.cost-legend i.overhead{background:#927aa7}.cost-legend{display:grid;gap:7px;margin-top:13px}.cost-legend span{display:grid;grid-template-columns:9px 1fr auto;gap:7px;align-items:center;color:#65746a;font-size:9px}.cost-legend i{width:9px;height:9px;border-radius:3px}.cost-legend b{font-weight:700}.cost-legend em{font-style:normal;color:#354b3d;font-weight:800}.cost-total{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding-top:11px;border-top:1px solid rgba(40,76,53,.08);font-size:9px;color:#6a776e}.cost-total strong{font-size:18px;color:#294031}.profit-line-scroll{overflow:auto}.profit-cost-svg{min-width:760px;width:100%;height:auto}.profit-cost-svg line{stroke:rgba(40,76,53,.08)}.profit-cost-svg text{fill:#7e8a82;font-size:9px}.profit-cost-line{fill:none;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round}.profit-cost-line.average_selling_price{stroke:#2f6e49}.profit-cost-line.ingredient_cost_per_unit{stroke:#6c9b72}.profit-cost-line.packing_cost_per_unit{stroke:#d8b443}.profit-cost-line.labor_cost_per_unit{stroke:#7c91ae}.profit-cost-line.total_manufacturing_cost_per_unit{stroke:#a66d4d}.profit-cost-dot{stroke:#fff;stroke-width:1.5}.profit-cost-dot.average_selling_price{fill:#2f6e49}.profit-cost-dot.ingredient_cost_per_unit{fill:#6c9b72}.profit-cost-dot.packing_cost_per_unit{fill:#d8b443}.profit-cost-dot.labor_cost_per_unit{fill:#7c91ae}.profit-cost-dot.total_manufacturing_cost_per_unit{fill:#a66d4d}.cost-lines i.average_selling_price{background:#2f6e49}.cost-lines i.ingredient_cost_per_unit{background:#6c9b72}.cost-lines i.packing_cost_per_unit{background:#d8b443}.cost-lines i.labor_cost_per_unit{background:#7c91ae}.cost-lines i.total_manufacturing_cost_per_unit{background:#a66d4d}.profit-channel{padding:13px}.profit-channel header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.profit-channel header strong{color:#294131}.profit-channel>div{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.profit-channel>div span{padding:8px;border-radius:10px;background:#f4f7f1;color:#7b877f;font-size:8px}.profit-channel>div b{display:block;margin-top:3px;color:#344b3a;font-size:11px}.batch-table{min-width:1160px}.profit-insights-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.profit-insights-grid article{padding:12px;border:1px solid rgba(40,76,53,.09);border-radius:13px;background:#f8faf5}.profit-insights-grid article>span{color:#6e7d72;font-size:8px}.profit-insights-grid article>strong{display:block;margin-top:5px;color:#2d4434;font-size:18px}.profit-insights-grid article>small{display:block;margin-top:3px;color:#859189;font-size:8px}.profit-insights-grid article.flag{grid-column:span 2}.profit-insights-grid article.flag>span{float:left;width:26px;height:26px;display:grid;place-items:center;margin-right:8px;border-radius:9px}.profit-insights-grid article.flag svg{width:13px}.profit-insights-grid article.flag strong{font-size:11px}.profit-insights-grid article.flag.amber{background:#fff8e6}.profit-insights-grid article.flag.red{background:#fdf0ee}.profit-insights-grid article.flag.green{background:#eef7ef}
@media(max-width:1200px){.profit-modal-filters{grid-template-columns:repeat(4,minmax(0,1fr));top:91px}.profit-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profit-detail-grid{grid-template-columns:1fr}.profit-insights-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profit-toolbar{grid-template-columns:1fr 1fr}.profit-toolbar label:first-child{grid-column:1/-1}}
@media(max-width:720px){.profit-summary-strip{grid-template-columns:1fr 1fr}.profit-toolbar{grid-template-columns:1fr}.profit-toolbar label:first-child{grid-column:auto}.profit-modal-backdrop{padding:0}.profit-modal-shell{width:100vw;max-height:100vh;height:100vh;border-radius:0}.profit-modal-header{padding:12px}.profit-product-hero>img,.profit-product-hero>span{width:46px;height:46px}.profit-product-hero h2{font-size:18px}.profit-modal-filters{position:static;grid-template-columns:1fr 1fr;padding:10px 12px}.profit-modal-filters .button{width:100%}.profit-modal-body{padding:12px}.profit-metrics-grid{grid-template-columns:1fr 1fr}.profit-metric{min-height:92px}.profit-metric strong{font-size:18px}.profit-channel>div{grid-template-columns:1fr 1fr}.profit-insights-grid{grid-template-columns:1fr}.profit-insights-grid article.flag{grid-column:auto}}
@media(max-width:480px){.profit-summary-strip{grid-template-columns:1fr}.profit-metrics-grid{grid-template-columns:1fr}.profit-modal-filters{grid-template-columns:1fr}.profit-channel>div{grid-template-columns:1fr}}

/* v217: mapped Top 10 products open the same profitability detail surface. */
.top-product-row.clickable{cursor:pointer;transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.top-product-row.clickable:hover,.top-product-row.clickable:focus-visible{background:rgba(246,250,244,.92);box-shadow:0 9px 24px rgba(40,76,53,.08);transform:translateY(-1px);outline:none}
.profit-channel-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.profit-channel-comparison>span{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid rgba(40,76,53,.12);border-radius:16px;background:rgba(255,255,249,.74)}.profit-channel-comparison small{color:#6c786f}.profit-channel-comparison strong{color:#284c35}.batch-table td small{display:block;max-width:220px;margin-top:4px;color:#76837a;white-space:normal;line-height:1.35}.profit-cost-line.gross_profit_per_unit{stroke:#b38b12;stroke-dasharray:7 5}.profit-cost-dot.gross_profit_per_unit{fill:#b38b12}.profit-chart-legend.cost-lines i.gross_profit_per_unit{background:#b38b12}@media(max-width:760px){.profit-channel-comparison{grid-template-columns:1fr}}

/* v218: dashboard bubble UI and animation permanently removed. */
.dashboard-bubbles,.dash-bubble-toggle,[data-dashboard-bubbles],.profitability-bubble-layer{display:none!important;visibility:hidden!important;pointer-events:none!important}
/* v218 module marker helps confirm the profitability surface is from the current build. */
[data-profitability-host][data-profitability-version="v218"]{display:block;min-height:120px}
