/* Scoped enterprise presentation; hidden state is assigned by the role-aware navigation. */
.nav-item[data-page=chatCatalog][hidden]{display:none!important}.nav-item[data-page=chatCatalog]{display:flex;align-items:center;width:100%;border:0;background:transparent;color:#d8e6ff;text-align:left;padding:12px 16px;font:inherit;cursor:pointer}.nav-item[data-page=chatCatalog]:hover{background:#ffffff14}
.enterprise-chart-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:16px;margin:18px 0}.enterprise-chart,.enterprise-detail{min-width:0;background:#fff;border:1px solid #e0e8f2;border-radius:14px;padding:20px}.enterprise-chart h3,.enterprise-detail h3{margin:0 0 18px;font-size:18px;color:#123256}.enterprise-chart svg{width:100%;height:auto;min-height:160px;display:block}.chart-legend{display:flex;gap:18px;color:#667b95;font-size:12px;margin-bottom:10px;flex-wrap:wrap}.chart-legend span:before{content:'';display:inline-block;width:8px;height:8px;background:var(--series);border-radius:50%;margin-right:6px}.enterprise-chart details{font-size:12px;color:#607694;margin-top:10px;overflow:auto}.enterprise-chart summary{cursor:pointer}.enterprise-chart table{min-width:360px}.enterprise-kpi-primary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.enterprise-kpi-card{position:relative;text-align:left!important;border:1px solid #e0e8f2!important;background:white!important;color:#153252!important;border-radius:14px!important;padding:22px 20px 18px 58px!important;min-height:154px;font:inherit;cursor:pointer}.enterprise-kpi-card>span:not(.kpi-icon),.enterprise-kpi-card strong,.enterprise-kpi-card small{display:block}.enterprise-kpi-card strong{font-size:29px;color:#1769ff;margin:10px 0;line-height:1.25}.enterprise-kpi-card small{font-size:12px;color:#7589a4;font-weight:400}.enterprise-kpi-card .kpi-icon{position:absolute;left:18px;top:23px;color:#1769ff;font-size:25px}.enterprise-kpi-card.attention strong,.enterprise-kpi-card.attention .kpi-icon{color:#f08317}.enterprise-kpi-card[aria-pressed=true]{box-shadow:inset 0 0 0 1px #1769ff}.enterprise-kpi-card progress{width:100%;height:7px;accent-color:#1769ff}.reminder-line{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:0;border-bottom:1px solid #e5ecf5;border-radius:0;padding:19px 0;color:#233c5c;text-align:left}.reminder-line strong{font-size:21px;color:#1769ff}.reminder-line[aria-pressed=true]{color:#1769ff}.enterprise-chart>p,.enterprise-method{font-size:12px;line-height:1.6;color:#7185a0}.enterprise-tabs{display:flex;gap:12px;overflow-x:auto;margin-bottom:16px;border-bottom:1px solid #e4eaf3}.enterprise-tabs button{white-space:nowrap;background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 4px;color:#5f7591}.enterprise-tabs button.active{color:#1769ff;border-color:#1769ff}.enterprise-personal{margin-top:30px!important;padding:0!important}.enterprise-personal>h2{font-size:25px;margin-bottom:16px}.enterprise-personal .enterprise-filter-bar{display:flex;gap:10px;justify-content:flex-end;padding:12px;border:1px solid #e0e8f2;background:white;border-radius:12px}.enterprise-filter-bar select,.enterprise-filter-bar input,.enterprise-filter-bar button{min-height:38px}.enterprise-personal .kpi-sections{display:block}.enterprise-personal table th,.enterprise-chart table th{background:#f0f5fb}.enterprise-detail table{min-width:650px}.enterprise-detail td{overflow-wrap:anywhere}.report-enterprise-controls{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;padding:12px 0!important}.report-enterprise-controls>span{width:100%;font-size:12px;text-align:right}.report-enterprise-controls input,.report-enterprise-controls select{width:130px!important}.report-enterprise-controls button{padding:8px 14px}.report-enterprise-controls .primary,.enterprise-personal .primary{background:#1769ff;color:white;border:1px solid #1769ff}.status-distribution{display:grid;grid-template-columns:90px 1fr 35px;gap:10px;align-items:center;margin:22px 0;font-size:13px}.status-distribution>div{height:8px;background:#edf2f8;border-radius:5px;overflow:hidden}.status-distribution i{height:100%;display:block;border-radius:5px}.status-distribution strong{text-align:right}.currency-line{display:flex;gap:10px;align-items:baseline;justify-content:space-between;font-size:20px;margin:4px 0}.currency-line small{font-size:12px;color:#7589a4;font-weight:500}#dataReport>.page-head h2{margin:0 0 8px;font-size:27px}#dataReport .approved-report-overview{gap:14px}#dataReport .approved-report-overview .metric{padding:20px;border:1px solid #e0e8f2;border-radius:14px;box-shadow:0 3px 14px #18345705;min-height:160px}#dataReport .approved-report-overview .metric-num{font-size:30px!important}#dataReport #rRounds{font-size:20px!important}#dataReport>.panel:has(#reportTable){overflow:auto}#dataReport>.panel:has(#reportTable) table{min-width:850px}#dataReport .business-charts{margin-bottom:20px}.enterprise-supplier-head{display:flex!important;justify-content:space-between!important;align-items:center!important;grid-template-columns:none!important}.enterprise-supplier-head .supplier-chart-year{width:150px!important}.enterprise-supplier-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.enterprise-supplier-metrics>div{background:#f5f8fd;border:1px solid #e4ebf4;border-radius:10px;padding:16px}.enterprise-supplier-metrics strong{display:block;font-size:25px;margin-top:8px;color:#1769ff}.enterprise-supplier>p{font-size:12px;color:#7185a0}
.enterprise-drop{border:1px dashed #aabfdf;border-radius:10px;background:#f8faff;padding:18px;text-align:center;cursor:pointer;margin:12px 0;color:#1c4679}.enterprise-drop strong,.enterprise-drop span{display:block}.enterprise-drop span{font-size:12px;color:#7185a0;margin-top:6px}.enterprise-drop.dragging{border-color:#1769ff;background:#eaf2ff;box-shadow:0 0 0 2px #1769ff22}.enterprise-drop:focus-visible{outline:2px solid #1769ff;outline-offset:2px}.enterprise-drop[aria-busy=true]{opacity:.6}.order-document-group{border:1px solid #e2e9f3;border-radius:12px;margin:14px 0;padding:16px;background:white}.order-document-group h4{margin:0 0 8px}.order-document-group p{font-size:12px;color:#637c9a}.order-document-group textarea{width:100%;min-height:92px;margin:10px 0;padding:10px;border:1px solid #cbd9ed;border-radius:8px;box-sizing:border-box}.order-document-group button,.catalog-row button,.catalog-editor button{padding:8px 12px;border:1px solid #cbd9ed;border-radius:7px;background:white;color:#1c4679;margin:3px;cursor:pointer}.document-line{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:9px 0;border-top:1px solid #edf1f7}.document-line>span{flex:1;min-width:160px;overflow-wrap:anywhere}.catalog-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:white;border:1px solid #e0e8f2;border-radius:10px;padding:16px;margin:10px 0}.catalog-row>strong{min-width:150px}.catalog-row>span{flex:1;color:#7185a0;font-size:12px}.catalog-editor{padding:22px;background:white;border:1px solid #cbd9ed;border-radius:12px}.catalog-editor>label{display:block;margin-bottom:12px;font-size:13px}.catalog-editor>label input,.catalog-editor>label select{display:block;width:100%;margin-top:6px}.catalog-field{display:flex;gap:8px;margin:8px 0;flex-wrap:wrap}.catalog-field input{min-width:140px;flex:1}.enterprise-catalog [hidden]{display:none!important}
.trade-chat-dialog{padding:16px;gap:8px!important;background:#f8fafd}.trade-chat-head h2{font-size:18px}.trade-chat-dialog>.trade-chat-state{font-size:12px}.trade-chat-tabs{border-bottom:1px solid #e1e8f2;padding-bottom:7px}.trade-chat-tabs button{background:transparent;border:0;color:#66809f}.trade-chat-tabs button.active{background:#eaf2ff;color:#1769ff}.trade-chat-message{border:1px solid #e4eaf3;border-radius:10px;padding:10px 12px;margin:7px 0;font-size:13px;box-shadow:0 1px 2px #10294f03}.trade-chat-message.system{font-size:11px;background:#f0f4f9;border:0;padding:8px}.trade-chat-message details{font-size:10px;color:#7e8fa7;margin-top:5px}.trade-chat-message summary{cursor:pointer}.trade-chat-composer{padding:10px;border-radius:11px}.trade-chat-picker>summary{cursor:pointer;list-style:none;padding:10px 12px;border:1px solid #d5e1f1;border-radius:8px;color:#245180;background:#f8faff;font-size:13px}.trade-chat-picker>summary:after{content:'⌄';float:right}.trade-chat-picker[open]>summary:after{content:'⌃'}.trade-chat-fields{margin:8px 0}.trade-chat-footer{margin-top:5px}.trade-chat-info{border:0;background:none;color:#1769ff;font-size:17px}.trade-chat-badge{border-radius:50%;background:#ef4444!important;color:#fff!important;font-weight:700}
@media(max-width:1100px){.enterprise-kpi-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.enterprise-chart-grid{grid-template-columns:1fr}.currency-line{font-size:18px}}
@media(max-width:767px){.enterprise-chart,.enterprise-detail{padding:14px;border-radius:11px}.enterprise-kpi-primary{gap:10px}.enterprise-kpi-card{padding:16px 12px!important;min-height:142px}.enterprise-kpi-card .kpi-icon{position:static;display:block;font-size:21px;margin-bottom:8px}.enterprise-kpi-card strong{font-size:25px}.enterprise-kpi-card>span:not(.kpi-icon){font-size:12px}.enterprise-personal .enterprise-filter-bar{flex-wrap:wrap;justify-content:flex-start}.enterprise-personal .enterprise-filter-bar select{flex:1;min-width:90px}.enterprise-supplier-metrics{gap:7px}.enterprise-supplier-metrics>div{padding:10px}.enterprise-supplier-metrics strong{font-size:18px}.enterprise-supplier-metrics span{font-size:12px}.report-enterprise-controls{justify-content:flex-start}.report-enterprise-controls>span{text-align:left}.enterprise-drop{padding:16px 12px}.trade-chat-dialog{padding:12px}.catalog-row>span{flex-basis:100%}.catalog-editor{padding:14px}.catalog-field{border-bottom:1px solid #e4eaf3;padding-bottom:10px}.catalog-field input,.catalog-field select{max-width:100%;min-width:100px}.order-document-group{padding:12px}}

@media(max-width:767px){.enterprise-chart svg text{font-size:18px}.enterprise-chart svg{min-height:140px}.enterprise-personal .enterprise-filter-bar select{padding-left:10px;padding-right:24px;min-width:108px}}

/* Compact statistics headers shared by business and administrator KPI pages. */
#dataReport>.compact-report-head{display:grid;grid-template-columns:minmax(200px,1fr) auto;align-items:center;column-gap:20px;row-gap:10px;margin:4px 0 20px!important}
#dataReport>.compact-report-head h2{margin:0;font-size:26px;line-height:1.3}
#dataReport .compact-report-head>.report-enterprise-controls{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;width:auto;min-width:0;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0}
#dataReport .report-enterprise-controls>select{width:132px!important;min-width:0!important;height:40px!important;margin:0}
#dataReport .report-enterprise-controls>button{height:40px!important;min-height:40px;padding:0 16px!important;white-space:nowrap;margin:0}
.compact-report-notes{grid-column:1/-1;display:flex;align-items:baseline;gap:6px 16px;flex-wrap:wrap;min-width:0;font-size:12px;color:#7185a0;line-height:1.5}
.compact-report-notes>.subtle{font-size:12px;margin:0!important}
.compact-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:8px 0 10px}
.compact-kpi-head>h2{margin:0!important;font-size:24px;line-height:1.4;flex:1}
#app .live-kpi-panel .compact-kpi-head>.enterprise-filter-bar{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
#app .compact-kpi-head .enterprise-filter-bar>select{width:132px;min-width:0;max-width:180px;height:40px}
#app .compact-kpi-head .enterprise-filter-bar>button{height:40px;min-height:40px;padding:0 16px;white-space:nowrap}
#app .compact-kpi-head .enterprise-filter-bar>button.primary{color:white;background:#1769ff;border-color:#1769ff}
#dataReport .approved-report-overview .metric{min-height:176px}
#dataReport #rRounds{height:auto!important;max-height:none!important;overflow:visible}
#dataReport #rRounds .currency-line{font-size:20px;line-height:1.4;margin:2px 0}
@media(max-width:1200px){
 #dataReport>.compact-report-head{grid-template-columns:1fr;row-gap:12px}
 #dataReport .compact-report-head>.report-enterprise-controls{justify-content:flex-start}
 .compact-kpi-head{align-items:flex-start;flex-direction:column}
}
@media(max-width:1000px){
 #dataReport .compact-report-head>.report-enterprise-controls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:100%;gap:8px}
 #dataReport .report-enterprise-controls>:nth-child(1),#dataReport .report-enterprise-controls>:nth-child(2){grid-column:span 3}
 #dataReport .report-enterprise-controls>:nth-child(n+3){grid-column:span 2}
 #dataReport .report-enterprise-controls>select,#dataReport .report-enterprise-controls>button{width:100%!important;min-width:0!important;padding:0 10px!important}
 #app .live-kpi-panel .compact-kpi-head>.enterprise-filter-bar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:100%;gap:8px}
 #app .compact-kpi-head .enterprise-filter-bar>:nth-child(1),#app .compact-kpi-head .enterprise-filter-bar>:nth-child(2){grid-column:span 3}
 #app .compact-kpi-head .enterprise-filter-bar>:nth-child(n+3){grid-column:span 2}
 #app .enterprise-personal .compact-kpi-head .enterprise-filter-bar>:nth-child(n+3){grid-column:span 3}
 #app .compact-kpi-head .enterprise-filter-bar>select,#app .compact-kpi-head .enterprise-filter-bar>button{width:100%;max-width:none;min-width:0!important;padding:0 10px!important}
 #dataReport>.compact-report-head h2{font-size:24px}
}

/* Supplier period controls and currency-separated purchase amounts. */
.supplier-period-controls{display:flex;gap:10px;align-items:center;flex-shrink:0}.supplier-period-controls select{width:150px;height:40px;padding:0 12px;border:1px solid #cbd9ed;border-radius:8px;background:white;color:#173e68;font:inherit}.enterprise-supplier-head .supplier-chart-legend[hidden]{display:none!important}.enterprise-supplier-metrics [data-supplier-metric=amount] strong{font-size:23px;line-height:1.4;overflow-wrap:anywhere}.enterprise-supplier-metrics small{display:block;color:#9a601a;font-size:12px;margin-top:6px}
@media(max-width:767px){.enterprise-supplier-head{flex-wrap:wrap;gap:12px}.supplier-period-controls{width:100%}.supplier-period-controls select,.enterprise-supplier-head .supplier-chart-year{flex:1;min-width:0;width:50%!important}.enterprise-supplier-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.enterprise-supplier-metrics [data-supplier-metric=amount]{grid-column:1/-1}.enterprise-supplier-metrics [data-supplier-metric=amount] strong{font-size:21px}}

/* Sales business overview only: compact cards and responsive visual summaries. */
#dataReport.sales-business-view .approved-report-overview{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px}
#dataReport.sales-business-view .approved-report-overview .metric{position:relative;min-width:0;min-height:154px!important;height:auto!important;padding:18px!important;text-align:left}
#dataReport.sales-business-view .metric-label{padding-right:30px;min-height:24px;font-weight:600}
#dataReport.sales-business-view .metric-sub{margin-top:12px;line-height:1.5}
#dataReport.sales-business-view .sales-metric-icon{position:absolute;right:16px;top:17px;width:23px;height:23px;fill:none;stroke:#1769ff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#dataReport.sales-business-view [data-sales-metric=rDone] .sales-metric-icon,#dataReport.sales-business-view [data-sales-metric=rRate] .sales-metric-icon{stroke:#13a86c}
#dataReport.sales-business-view .sales-rate-meter{display:block;width:100%;height:6px;margin-top:10px;accent-color:#13a86c;border:0;border-radius:5px;overflow:hidden}
#dataReport.sales-business-view .sales-rate-meter::-webkit-progress-bar{background:#edf2f8}#dataReport.sales-business-view .sales-rate-meter::-webkit-progress-value{background:#13a86c;border-radius:5px}
#dataReport.sales-business-view .status-distribution{grid-template-columns:90px minmax(20px,1fr) 28px 48px;gap:10px;margin:24px 0}
#dataReport.sales-business-view .status-distribution small{text-align:right;color:#7185a0;font-size:12px}
#dataReport.sales-business-view .currency-line{flex-wrap:wrap;overflow-wrap:anywhere}
#dataReport.sales-business-view .business-charts{grid-template-columns:minmax(0,1.5fr) minmax(340px,1fr)}
@media(max-width:1200px){#dataReport.sales-business-view .approved-report-overview{grid-template-columns:repeat(3,minmax(0,1fr))!important}#dataReport.sales-business-view .business-charts{grid-template-columns:1fr}}
@media(max-width:767px){#dataReport.sales-business-view .approved-report-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}#dataReport.sales-business-view .approved-report-overview .metric{padding:14px!important;min-height:138px!important}#dataReport.sales-business-view [data-sales-metric=rRounds]{grid-column:1/-1;order:5}#dataReport.sales-business-view .sales-metric-icon{right:12px;top:14px;width:20px;height:20px}#dataReport.sales-business-view .status-distribution{grid-template-columns:84px minmax(20px,1fr) 24px 44px;gap:6px}#dataReport.sales-business-view .metric-label{font-size:13px}}

/* Supplier visual hierarchy; limited to supplier management. */
#supplierManagement .supplier-overview-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
#supplierManagement .supplier-overview-cards .metric{position:relative;min-width:0;height:auto;min-height:122px;padding:18px;border-top:3px solid var(--supplier-color);background:var(--supplier-bg)}
#supplierManagement [data-supplier-color=blue]{--supplier-color:#1769ff;--supplier-bg:#f5f8ff}#supplierManagement [data-supplier-color=orange]{--supplier-color:#c86a08;--supplier-bg:#fff8ef}#supplierManagement [data-supplier-color=purple]{--supplier-color:#8055d9;--supplier-bg:#f8f5ff}#supplierManagement [data-supplier-color=green]{--supplier-color:#11865b;--supplier-bg:#f1fbf6}#supplierManagement [data-supplier-color=teal]{--supplier-color:#087e91;--supplier-bg:#effafb}
#supplierManagement .supplier-overview-cards .metric-num{color:var(--supplier-color);height:auto;overflow:visible}#supplierManagement .supplier-overview-cards .metric-label{padding-right:22px}#supplierManagement .supplier-metric-icon{position:absolute;right:14px;top:14px;color:var(--supplier-color);font-size:22px}#supplierManagement .supplier-overview-cards [role=button]{cursor:pointer}#supplierManagement .supplier-overview-cards [role=button]:focus-visible{outline:2px solid var(--supplier-color);outline-offset:3px}
#supplierManagement .metric-sub{font-size:12px;color:#6b7f96;line-height:1.5;margin-top:10px}#supplierManagement .currency-line{flex-wrap:wrap;overflow-wrap:anywhere;font-size:18px}
#supplierManagement .enterprise-supplier .enterprise-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#supplierManagement .enterprise-supplier-metrics [data-supplier-metric=supplierCounts]{background:#f2f6ff}#supplierManagement .enterprise-supplier-metrics [data-supplier-metric=goodsQty]{background:#f8f5ff}#supplierManagement [data-supplier-metric=goodsQty] strong{color:#8055d9}#supplierManagement .enterprise-supplier-metrics [data-supplier-metric=amount]{background:#f1fbf6}#supplierManagement [data-supplier-metric=amount] strong{color:#11865b}
.supplier-summary-dialog{width:min(780px,calc(100% - 32px));max-height:80vh;overflow:auto;border:1px solid #d9e3f0;border-radius:14px;padding:20px;box-sizing:border-box;color:#173e68}.supplier-summary-dialog::backdrop{background:#102c4c55}.supplier-summary-dialog>button{float:right}.supplier-summary-dialog table{width:100%;margin-top:18px;font-size:13px}.supplier-summary-dialog td{overflow-wrap:anywhere;padding:10px}
@media(max-width:1100px){#supplierManagement .supplier-overview-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){#supplierManagement .supplier-overview-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#supplierManagement .supplier-overview-cards .metric{padding:14px;min-height:112px}#supplierManagement [data-supplier-color=teal]{grid-column:1/-1}#supplierManagement .enterprise-supplier .enterprise-chart-grid{grid-template-columns:1fr}.supplier-summary-dialog{padding:14px}.supplier-summary-dialog th{font-size:12px}}
/* Keep the supplier overview grid above the shared mobile card defaults. */
#supplierManagement .supplier-overview-cards{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}
#supplierManagement .supplier-overview-cards .metric{border-top:3px solid var(--supplier-color)!important;background:var(--supplier-bg)!important;width:auto!important;flex:none!important}
@media(max-width:1100px){#supplierManagement .supplier-overview-cards{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:767px){#supplierManagement .supplier-overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}#supplierManagement .supplier-overview-cards .metric{grid-column:auto!important}#supplierManagement .supplier-overview-cards [data-supplier-color=teal]{grid-column:1/-1!important}}
