/* Business intelligence stays within the existing light portal surface. */
#erpAnalyticsPanel{--biz-ink:#242443;--biz-teal:#268b80;--biz-border:#e2e4ee;--biz-muted:#68738a;min-width:0;background:#f8f9fc}
#erpAnalyticsPanel [hidden]{display:none!important}
#erpAnalyticsPanel .erp-panel-heading p:not(.eyebrow){font-size:14px;line-height:1.5}
#businessDashboard{padding:0 20px 20px;color:var(--biz-ink);font-size:15px;line-height:1.5}
#businessDashboard *{box-sizing:border-box;min-width:0}
#businessDashboard h4,#businessDashboard h5,#businessDashboard p{margin:0}
#businessDashboard h4{font-size:18px;letter-spacing:-.025em;line-height:1.35}
#businessDashboard h5{font-size:15px;line-height:1.4}
#businessDashboard button{font:inherit;cursor:pointer}
#businessDashboard button:focus-visible,#businessDashboard summary:focus-visible{outline:3px solid #2e6f73;outline-offset:3px}
.biz-period{display:flex;flex-wrap:wrap;gap:6px 20px;align-items:baseline;justify-content:space-between;padding:0 0 18px}
.biz-period strong{font-size:16px}.biz-period span{font-size:13px;color:var(--biz-muted)}
.biz-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.biz-kpi{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;background:#fff;border:1px solid var(--biz-border);border-radius:14px}
.biz-kpi>span{font-size:14px;color:var(--biz-muted)}
.biz-kpi>strong{font-size:clamp(19px,1.75vw,28px);line-height:1.25;letter-spacing:-.035em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.biz-kpi>small{margin-top:auto;font-size:12px;line-height:1.4;color:var(--biz-muted)}
.biz-kpi.biz-primary{background:#f1eeff;border-color:#d8d1f6;color:#5141bd}.biz-primary>span,.biz-primary>small{color:#675f89}
.biz-section-head{display:flex;flex-direction:column;gap:5px;margin-bottom:18px}.biz-section-head p{font-size:14px;color:var(--biz-muted)}
.biz-briefing{padding:22px;border:1px solid #bdd4d5;border-radius:18px;background:linear-gradient(130deg,#f1f8f8,#f8fafc);margin-bottom:20px}
.biz-focus{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.biz-focus button{border:1px solid #c6d4da;background:#fff;color:var(--biz-ink);border-radius:999px;padding:8px 13px;font-size:14px!important;line-height:1.4;min-height:38px}
.biz-focus button[aria-pressed=true]{background:var(--biz-ink);color:#fff;border-color:var(--biz-ink)}
.biz-priorities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.biz-priority{display:flex;align-items:flex-start;gap:13px;background:#fff;padding:17px;border-radius:12px;border:1px solid #d8e5e7}.biz-priority.is-attention{border-left:4px solid #b77821}
.biz-priority-number{font-size:13px;font-weight:750;color:#52747b;flex:0 0 22px;line-height:22px}
.biz-priority p{font-size:14px;line-height:1.55;margin-top:7px!important;color:#445865}
.biz-priority .biz-action{padding-top:9px;border-top:1px solid #edf0f2}.biz-action strong{display:block;font-size:12px;letter-spacing:.02em;color:var(--biz-ink);margin-bottom:3px}
.biz-two-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.biz-card{padding:22px;border:1px solid var(--biz-border);border-radius:16px;background:#fff;margin-bottom:20px}
.biz-chart-key{display:flex;flex-wrap:wrap;gap:15px;font-size:13px;color:var(--biz-muted);margin-bottom:12px}.biz-chart-key span:before{content:'';display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:2px}.biz-key-invoice:before{background:#18384f}.biz-key-voucher:before{background:#54a8a7}
.biz-trend-list{max-height:470px;overflow:auto;padding-right:4px}.biz-trend-row{display:grid;grid-template-columns:75px minmax(40px,1fr) minmax(98px,auto);gap:12px;align-items:center;padding:10px 0;border-top:1px solid #edf0f2;font-size:13px}
.biz-trend-row>span small{display:block;color:var(--biz-muted);font-size:12px}.biz-bars{display:grid;gap:3px}.biz-bars svg{display:block;width:100%;height:14px}.biz-invoice{fill:#18384f}.biz-voucher{fill:#54a8a7}.biz-zero{stroke:#c4d2db;stroke-width:.5}
.biz-bar-values{text-align:right;font-variant-numeric:tabular-nums}.biz-bar-values strong,.biz-bar-values span{display:block}.biz-bar-values span{color:#2e7271}
.biz-footnote{font-size:12px!important;line-height:1.55!important;color:var(--biz-muted);margin-top:14px!important}
.biz-aging{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.biz-aging>div{border-radius:10px;background:#f3f6f8;padding:12px;display:grid;gap:4px}.biz-aging span{font-size:13px;color:var(--biz-muted)}.biz-aging strong{font-size:16px}.biz-aging small{font-size:12px}
.biz-table-wrap{overflow-x:auto;margin-top:18px}.biz-table-wrap table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}.biz-table-wrap th{font-weight:600;font-size:12px;color:var(--biz-muted);padding:9px 10px;border-bottom:1px solid var(--biz-border)}.biz-table-wrap td{padding:12px 10px;border-bottom:1px solid #ecf0f2;vertical-align:top;font-variant-numeric:tabular-nums}.biz-table-wrap td:last-child{text-align:right;white-space:nowrap}.biz-table-wrap td small{display:block;color:var(--biz-muted);font-size:12px;margin-top:4px}.biz-table-wrap th:first-child,.biz-table-wrap td:first-child{padding-left:0}
.biz-link{background:none;border:0;color:#245e77;font-weight:650!important;text-align:left;padding:0;text-decoration:underline;text-underline-offset:3px}
.biz-positive{color:#176963}.biz-negative{color:#a14630}
.biz-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.biz-facts .biz-kpi{background:#f7f9fa;border:0}
.biz-pipeline-group+.biz-pipeline-group{margin-top:22px}.biz-status-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:12px}.biz-status-grid>div{display:flex;flex-direction:column;gap:7px;background:#f4f7f8;border-radius:10px;padding:13px}.biz-status-grid span{font-size:13px;color:var(--biz-muted)}.biz-status-grid strong{font-size:23px}.biz-status-grid small{font-size:12px}
.biz-quality{border:1px solid var(--biz-border);border-radius:14px;background:#f5f8f9;padding:18px}.biz-quality summary{cursor:pointer;font-size:15px;font-weight:650}.biz-quality summary span{font-size:12px;color:var(--biz-muted);float:right;font-weight:400}.biz-source-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.biz-source-grid article{display:grid;gap:6px;background:#fff;border-radius:9px;padding:13px}.biz-source-grid strong{font-size:13px}.biz-source-grid small{font-size:12px;color:var(--biz-muted)}.biz-method{padding-left:20px;font-size:13px;line-height:1.6;color:#445865}.biz-method li+li{margin-top:10px}
.biz-ai{background:#f7f9fc}.biz-ai>p{font-size:14px;color:#445865}.biz-empty{padding:15px 0;color:var(--biz-muted);font-size:14px;line-height:1.6}
.biz-scenario-label{display:flex;justify-content:space-between;gap:15px;font-size:14px;margin-top:18px}.biz-scenario-label output{font-weight:700}#bizScenarioRate{display:block;width:100%;margin:14px 0;accent-color:#2e6f73}.biz-scenario-result{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:10px;padding:14px;background:#f1f7f7;border-radius:10px;font-size:14px}.biz-scenario-result strong{font-size:24px}
.biz-card{box-shadow:0 3px 15px #26274805;border-radius:16px;padding:24px}
.biz-kpis .biz-kpi:nth-child(4){background:#fff9ed;border-color:#f0ddb5}.biz-kpis .biz-kpi:nth-child(7){background:#fff1ef;border-color:#f1d7d1;color:#a54e46}
.biz-volume-card{border-top:3px solid #6254d9}.biz-volume-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:8px}.biz-volume-header .biz-section-head{flex:1}
.biz-volume-totals{display:flex;gap:10px;flex-wrap:wrap}.biz-volume-totals>div{background:#f5f3fe;padding:10px 14px;border-radius:9px;display:grid;gap:3px;text-align:right}.biz-volume-totals>div+div{background:#fff2ef}.biz-volume-totals span{font-size:12px;color:#686580}.biz-volume-totals strong{font-size:18px;color:#5846c5;font-variant-numeric:tabular-nums}.biz-volume-totals>div+div strong{color:#b3544c}
.biz-chart-controls{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:8px 0 16px;flex-wrap:wrap}.biz-chart-legend{display:flex;gap:7px;flex-wrap:wrap;flex:1}
#businessDashboard .biz-chart-legend button{display:inline-flex;align-items:center;gap:7px;text-align:left;padding:7px 10px;border:1px solid #dedfeb;background:#fff;color:#424660;border-radius:7px;min-height:34px;font-size:13px;line-height:1.35;max-width:100%}.biz-chart-legend button svg{flex:0 0 12px}.biz-chart-legend button span{overflow-wrap:anywhere}
#businessDashboard .biz-chart-legend button[aria-pressed=false]{color:#757985;background:#f1f2f6;border-style:dashed;text-decoration:line-through}.biz-chart-legend button[aria-pressed=false] svg{opacity:.3}
#businessDashboard .biz-legend-toggle{border:0;background:transparent;color:#696680;font-size:12px;min-height:34px;padding:7px 3px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.biz-chart-scroll{overflow-x:auto;overscroll-behavior-inline:contain;margin:0 -5px;padding-bottom:4px}#businessDashboard .biz-column-chart{display:block;width:100%;min-width:900px;height:auto;max-height:385px;font-family:inherit;overflow:visible}
.biz-chart-gridline{stroke:#edf0f6;stroke-width:1}.biz-chart-zero{stroke:#b6c0d4;stroke-width:1}.biz-axis-label{fill:#667189;font-size:13px;font-weight:500;font-variant-numeric:tabular-nums}
.biz-point{cursor:pointer;outline:none}.biz-point-hit{fill:transparent;stroke:transparent;stroke-width:1}.biz-point:hover .biz-point-hit{fill:#6354da06}.biz-point.is-selected .biz-point-hit{fill:#6354da08;stroke:#c4b9f0}.biz-point:focus-visible .biz-point-hit{stroke:#6254d9;stroke-width:2}
.biz-column{transition:opacity .12s ease}.biz-point:hover .biz-column{opacity:.86}.biz-column.is-partial{fill-opacity:.6;stroke-dasharray:3 2}
.biz-chart-detail{display:flex;flex-wrap:wrap;gap:7px 18px;background:#f7f8fc;padding:12px 15px;border-radius:10px;margin-top:8px;min-height:42px;font-size:13px;color:#58647b}.biz-chart-detail strong{color:#3d375e}.biz-chart-detail b{color:#34344c;font-weight:650;font-variant-numeric:tabular-nums}
.biz-chart-modes{display:inline-flex;background:#f0f1f7;border:1px solid #e1e3ef;padding:3px;border-radius:8px;gap:3px;margin-bottom:6px}.biz-chart-modes button{border:0;background:transparent;color:#6e728a;padding:5px 12px;border-radius:5px;font-size:13px!important}.biz-chart-modes button[aria-pressed=true]{color:#5343b8;background:white;box-shadow:0 1px 4px #383b4710}
.biz-chart-pager{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:10px 0;font-size:12px;color:#68738a}.biz-chart-pager button{background:#fff;border:1px solid #dddfea;border-radius:6px;width:34px;height:32px;color:#5446b8}.biz-chart-pager button:disabled{opacity:.3;cursor:default!important}
.biz-chart-data{margin-top:14px;font-size:12px;color:#5e6380}.biz-chart-data summary{cursor:pointer;width:fit-content}.biz-chart-data summary:focus-visible{outline:2px solid #6254d9;outline-offset:3px}
.biz-chart-empty{display:grid;place-content:center;text-align:center;min-height:170px;padding:30px;color:#6a7086;font-size:14px;background:#f8f9fc;border:1px dashed #d9dbea;border-radius:10px}
.biz-rank-chart{display:grid;gap:16px;margin-top:16px}.biz-rank-row{padding-bottom:14px;border-bottom:1px solid #eff0f6}.biz-rank-row:last-child{border-bottom:0}.biz-rank-name{display:flex;align-items:baseline;gap:12px;margin-bottom:8px}.biz-rank-name>span{font-size:12px;font-weight:600;color:#9b9db2;width:18px;flex:0 0 18px}.biz-rank-name strong{font-size:14px;color:#44445e;font-weight:600;overflow-wrap:anywhere}
.biz-rank-measure{display:grid;grid-template-columns:minmax(50px,1fr) auto;gap:15px;align-items:center;margin-left:30px}.biz-rank-measure+.biz-rank-measure{margin-top:6px}.biz-rank-measure svg{height:10px;width:100%;background:#f4f4f9;border-radius:3px}.biz-rank-measure span{font-size:13px;font-weight:650;font-variant-numeric:tabular-nums;text-align:right;min-width:90px;color:#4d4e66}
.biz-ranking-total{font-size:27px;font-weight:750;letter-spacing:-.035em;color:#5748bd;margin-bottom:20px!important}.biz-ranking-total span{display:block;font-size:12px;letter-spacing:0;font-weight:400;color:#777991;margin-top:4px}.biz-rankings>.biz-card+ .biz-card .biz-ranking-total{color:#b9574e}.biz-rankings>.biz-card{height:100%}
.biz-expanded-data{margin-top:16px;border-top:1px solid #e8e9f1;padding-top:14px}.biz-expanded-data>summary{font-size:13px;font-weight:600;color:#5c5880;cursor:pointer}.biz-expanded-data[open]>summary{margin-bottom:16px}
.biz-briefing{background:#f3f5fc;border-color:#e1e3f2}.biz-ai{border-left:3px solid #269887}
@media(prefers-reduced-motion:reduce){.biz-column{transition:none}}
@media(max-width:1000px){.biz-volume-header{flex-direction:column;gap:0}.biz-volume-totals{margin-bottom:12px}.biz-volume-totals>div{text-align:left}.biz-chart-controls{gap:5px}.biz-card{padding:18px}}
@media(max-width:700px){.biz-volume-totals{width:100%}.biz-volume-totals>div{flex:1}.biz-volume-totals strong{font-size:16px}.biz-chart-scroll{margin-right:-5px}.biz-rank-measure{margin-left:0}.biz-chart-legend{flex-basis:100%}.biz-chart-legend button{font-size:12px!important}.biz-card{padding:16px}}
#erpAnalyticsPanel .erp-chart-grid{padding:0 20px 20px;margin:0;gap:20px}#erpAnalyticsPanel .erp-chart-card{min-width:0}#erpAnalyticsPanel .erp-donut-layout ol{min-width:0}#erpAnalyticsPanel .erp-donut-layout li{font-size:13px;grid-template-columns:10px minmax(0,1fr) auto}#erpAnalyticsPanel .erp-donut-layout li span{overflow-wrap:anywhere}
@media(max-width:1200px){.biz-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.biz-two-columns{grid-template-columns:1fr}.biz-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.biz-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#businessDashboard{padding:0 12px 12px}.biz-priorities,.biz-facts{grid-template-columns:1fr}.biz-card,.biz-briefing{padding:16px}.biz-kpi{padding:14px}.biz-kpi>strong{font-size:21px}.biz-quality summary span{float:none;display:block;margin-top:5px}.biz-trend-row{grid-template-columns:64px minmax(20px,1fr) auto;gap:7px}.biz-focus button{font-size:13px!important}#erpAnalyticsPanel .erp-chart-grid{padding:0 12px 12px;grid-template-columns:1fr}}
@media(max-width:420px){.biz-kpis,.biz-source-grid{grid-template-columns:1fr}.biz-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
