.report-shortcuts{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.report-summary{background:#f4f7fb;border:1px solid #dce5ef;border-radius:12px;padding:24px;margin:20px 0}.report-summary strong{display:block;font-size:32px;color:#276bd1;margin:16px 0}.report-table{width:100%;border-collapse:collapse}.report-table th,.report-table td{padding:14px;text-align:left;border-bottom:1px solid #e0e7f0}.report-table th{background:#eaf0f8}#reportError{color:#b42318}#reportYearLabel select{width:auto;min-width:140px}

.report-salespeople{border:1px solid #dce5ef;border-radius:10px;padding:14px 18px;margin:14px 0;}#reportSalespeople{display:flex;flex-wrap:wrap;gap:14px 24px;}#reportSalespeople label{display:flex;align-items:center;gap:8px;cursor:pointer;}#reportSalespeople input{width:18px;height:18px;margin:0;accent-color:#276bd1;}

.invoice-report-group{border:1px solid #dce5ef;border-radius:10px;padding:12px;margin:12px 0}.invoice-report-group>button{width:100%;text-align:left;justify-content:flex-start;background:#f4f7fb}.invoice-report-children{padding:0 10px}.invoice-report-orders{width:100%;table-layout:fixed}.invoice-report-orders td,.invoice-report-orders th{overflow-wrap:anywhere;padding:8px}.invoice-report-pager{display:flex;align-items:center;gap:12px;margin:12px 0}

#reportYearLabel{display:inline-flex;align-items:center;gap:12px;background:#f4f7fb;border:1px solid #dce5ef;border-radius:10px;padding:12px 16px;margin:8px 0;color:#26364a;max-width:100%;box-sizing:border-box}#reportYearLabel[hidden]{display:none}#reportYearLabel select{min-height:40px;max-width:100%;padding:8px 12px;background:#fff;border:1px solid #cbd8e8;border-radius:8px;color:#26364a;font:inherit}#reportYearLabel select:hover{border-color:#8eacd2}#reportYearLabel select:focus-visible{outline:2px solid #276bd1;outline-offset:2px}

.report-shortcuts button,#reportSalespeople button{background:#f4f7fb;color:#26364a;border:1px solid #dce5ef;border-radius:8px;padding:10px 16px;font:inherit;cursor:pointer}.report-shortcuts button:hover,#reportSalespeople button:hover{background:#e4edf9;border-color:#abc2e1}.report-shortcuts button[aria-pressed="true"],#reportSalespeople button[aria-pressed="true"]{background:#cddff7;color:#174d98;border-color:#8aafe0;font-weight:600}.report-shortcuts button:focus-visible,#reportSalespeople button:focus-visible{outline:2px solid #276bd1;outline-offset:2px}

.invoice-report-clickable{cursor:pointer}.invoice-report-clickable:hover{background:#f4f7fb}.invoice-report-detail-link{display:inline-block;padding:8px 12px;border:1px solid #cbd8e8;border-radius:8px;color:#26364a;text-decoration:none;background:#fff}.invoice-report-detail-link:hover{background:#e4edf9;border-color:#8eacd2}.invoice-report-detail-link:focus-visible{outline:2px solid #276bd1;outline-offset:2px}

@media(max-width:700px){body.profit-report-page aside{position:static;width:100%;height:auto;padding:10px 12px;overflow:visible;touch-action:auto}body.profit-report-page aside .brand{padding:4px 0 10px}body.profit-report-page aside nav{flex-direction:row;overflow-x:auto;white-space:nowrap;gap:4px;touch-action:pan-x}body.profit-report-page aside nav a{flex:0 0 auto;padding:9px 12px}body.profit-report-page aside .foot{display:none}body.profit-report-page main{margin-left:0;width:100%;min-width:0}body.profit-report-page header{height:auto;min-height:78px;padding:16px;gap:12px}body.profit-report-page .content{padding:12px}body.profit-report-page section{padding:14px}body.profit-report-page .subnav{display:flex;overflow:auto;white-space:nowrap}body.profit-report-page .subnav a{flex-shrink:0}body.profit-report-page .report-summary{padding:16px}body.profit-report-page .report-summary strong{font-size:27px}body.profit-report-page #reportPeriods{overflow:auto}body.profit-report-page .report-table{min-width:340px}}
/* Sales analysis page: scoped to preserve all other report layouts. */
body.erp-commercial.sales-report-polished .sales-report-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
body.erp-commercial.sales-report-polished .sales-report-eyebrow{font-size:11px;color:#7a8ba4;letter-spacing:2px}
body.erp-commercial.sales-report-polished .sales-report-heading h2{font-size:23px;margin:6px 0 0;color:#183451}
body.erp-commercial.sales-report-polished .sales-report-badge{padding:7px 12px;border:1px solid #dce8f6;border-radius:20px;background:#f3f7fd;color:#527296;font-size:12px;white-space:nowrap}
body.erp-commercial.sales-report-polished section>p:first-of-type{font-size:13px;line-height:1.8;margin-bottom:24px;max-width:900px}
body.erp-commercial.sales-report-polished .sales-report-filters{padding:20px 22px;background:#f8fafd;border:1px solid #e4ebf4;border-radius:12px}
body.erp-commercial.sales-report-polished .sales-filter-label{font-size:12px;font-weight:600;color:#60758e;margin-bottom:10px}
body.erp-commercial.sales-report-polished .report-shortcuts{gap:8px;margin:0 0 12px}
body.erp-commercial.sales-report-polished .report-shortcuts button,body.erp-commercial.sales-report-polished #reportSalespeople button{padding:9px 15px;font-size:13px;background:#fff;border-color:#dce5f0;color:#4e647e;box-shadow:none}
body.erp-commercial.sales-report-polished .report-shortcuts button[aria-pressed=true],body.erp-commercial.sales-report-polished #reportSalespeople button[aria-pressed=true]{background:#2869cf;border-color:#2869cf;color:#fff;box-shadow:0 3px 8px #2869cf20}
body.erp-commercial.sales-report-polished .report-shortcuts button:hover,body.erp-commercial.sales-report-polished #reportSalespeople button:hover{border-color:#6595db;transform:translateY(-1px)}
body.erp-commercial.sales-report-polished .sales-filter-note{font-size:12px;color:#8393a8;line-height:1.7;margin:0 0 20px}
body.erp-commercial.sales-report-polished .report-salespeople{border:0;border-top:1px solid #e4ebf4;border-radius:0;padding:14px 0 0;margin:18px 0 0;min-width:0}
body.erp-commercial.sales-report-polished .report-salespeople legend{font-size:12px;font-weight:600;color:#60758e;padding:0 10px 0 0}
body.erp-commercial.sales-report-polished #reportSalespeople{gap:8px}
body.erp-commercial.sales-report-polished .report-summary{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:18px;background:transparent;border:0;padding:0;margin:24px 0 0}
body.erp-commercial.sales-report-polished .sales-amount-panel{position:relative;overflow:hidden;border-radius:12px;background:linear-gradient(115deg,#18395f,#245793);padding:28px 30px;color:#fff;min-height:180px;box-sizing:border-box}
body.erp-commercial.sales-report-polished .sales-amount-panel:after{content:'';position:absolute;width:190px;height:190px;right:-65px;top:-65px;border:32px solid #ffffff05;border-radius:50%;pointer-events:none}
body.erp-commercial.sales-report-polished .sales-result-label{display:block;font-size:12px;color:#8194ad;letter-spacing:.4px}
body.erp-commercial.sales-report-polished .sales-amount-panel .sales-result-label{color:#b8d1ed}
body.erp-commercial.sales-report-polished #reportTitle{font-size:14px;font-weight:500;color:#d8e6f6;margin:18px 0 8px;position:relative;z-index:1}
body.erp-commercial.sales-report-polished #reportAmount{font-size:clamp(28px,3vw,42px);line-height:1.3;font-weight:700;letter-spacing:-1px;color:#fff;margin:0;position:relative;z-index:1;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
body.erp-commercial.sales-report-polished .sales-result-meta{display:grid;grid-template-rows:1fr 1fr;gap:12px}
body.erp-commercial.sales-report-polished .sales-result-meta>div{padding:18px 22px;border:1px solid #e3ebf5;border-radius:12px;background:#f8fafd}
body.erp-commercial.sales-report-polished #reportCount{font-size:20px;color:#244a74;font-weight:650;margin:8px 0 0}
body.erp-commercial.sales-report-polished #reportStatus{font-size:13px;color:#4c6787;line-height:1.7;margin:8px 0 0;overflow-wrap:anywhere}
body.erp-commercial.sales-report-polished #reportError:empty{display:none}
body.erp-commercial.sales-report-polished #reportError:not(:empty){padding:12px 16px;background:#fff3f2;border:1px solid #f1d5d2;border-radius:8px}
body.erp-commercial.sales-report-polished #reportPeriods{margin-top:24px;border:1px solid #e4ebf4;border-radius:12px;overflow:auto}
body.erp-commercial.sales-report-polished .sales-period-title{font-size:15px;padding:18px;margin:0;color:#244567}
body.erp-commercial.sales-report-polished .report-table td:last-child,body.erp-commercial.sales-report-polished .report-table th:last-child{text-align:right;font-variant-numeric:tabular-nums}
body.erp-commercial.sales-report-polished .report-table td:last-child{font-weight:600;color:#2869cf}
@media(max-width:800px){body.erp-commercial.sales-report-polished .report-summary{grid-template-columns:1fr}body.erp-commercial.sales-report-polished .sales-result-meta{grid-template-columns:1fr 1fr;grid-template-rows:auto}body.erp-commercial.sales-report-polished .sales-report-filters{padding:16px}body.erp-commercial.sales-report-polished .sales-amount-panel{padding:24px;min-height:170px}}
@media(max-width:480px){body.erp-commercial.sales-report-polished .sales-report-badge{display:none}body.erp-commercial.sales-report-polished .sales-result-meta{grid-template-columns:1fr}body.erp-commercial.sales-report-polished .report-shortcuts button{flex:1 1 42%;padding:9px 8px}body.erp-commercial.sales-report-polished .report-table{min-width:300px}}
/* 2026-10-26 发票报表 in the order lists' style. */
body.erp-commercial[data-page=reports] #invoiceReportSummary{display:inline-flex;margin:4px 0 14px;padding:8px 14px;background:#fff8f1;border:1px solid #f0dcc4;border-radius:10px;color:#8a4b22;font-size:13px;font-weight:600}
body.erp-commercial[data-page=reports] .invoice-report-group{margin:0 0 10px;padding:0;border:0;background:none}
body.erp-commercial[data-page=reports] .invoice-report-group>button{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:10px 18px;border:1px solid #d6e2f3;border-left:4px solid #2a62ad;border-radius:12px;background:#edf3fc;color:#1d3657;font-size:14px;text-align:left;box-shadow:none;transition:background-color .15s,border-color .15s}
body.erp-commercial[data-page=reports] .invoice-report-group>button:hover{background:#e3edfa;border-color:#b9cfe9;color:#1d3657}
body.erp-commercial[data-page=reports] .invoice-report-group>button:focus-visible{outline:3px solid #adc9f1;outline-offset:2px}
body.erp-commercial[data-page=reports] .invoice-report-caret{width:14px;color:#6a7f99;font-size:12px}
body.erp-commercial[data-page=reports] .invoice-report-name{font-weight:700}
body.erp-commercial[data-page=reports] .invoice-report-year>button .invoice-report-name{font-size:20px}
body.erp-commercial[data-page=reports] .invoice-report-customer>button{min-height:46px;border-color:#e1e8f2;border-left-color:#8fb2e0;background:#f6f9fd}
body.erp-commercial[data-page=reports] .invoice-report-customer>button:hover{background:#eef4fd}
body.erp-commercial[data-page=reports] .invoice-report-customer>button .invoice-report-name{font-size:15px}
body.erp-commercial[data-page=reports] .invoice-report-stats{display:flex;flex-wrap:wrap;gap:6px 18px;margin-left:auto;color:#6a7f99;font-size:12.5px;font-weight:400}
body.erp-commercial[data-page=reports] .invoice-report-stats b{margin:0 2px 0 4px;color:#1f3a5c;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
body.erp-commercial[data-page=reports] .invoice-report-stats span:last-child b{color:#b4531f}
body.erp-commercial[data-page=reports] .invoice-report-children{margin:10px 0 4px 18px}
body.erp-commercial[data-page=reports] .invoice-report-children:has(>table){margin-left:22px}
body.erp-commercial[data-page=reports] table.invoice-report-orders{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid #e1e8f2;border-radius:12px;overflow:hidden;font-size:13.5px}
body.erp-commercial[data-page=reports] table.invoice-report-orders th{padding:11px 14px;background:#edf3fc;color:#3f6591;font-size:12.5px;font-weight:600;text-align:left;border-bottom:1px solid #dde6f2}
body.erp-commercial[data-page=reports] table.invoice-report-orders td{padding:12px 14px;border-bottom:1px solid #edf1f7;color:#2b4564;vertical-align:middle}
body.erp-commercial[data-page=reports] table.invoice-report-orders tbody tr:last-child td{border-bottom:0}
body.erp-commercial[data-page=reports] table.invoice-report-orders tbody tr:hover td{background:#f6f9ff}
body.erp-commercial[data-page=reports] table.invoice-report-orders :is(th,td).num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
body.erp-commercial[data-page=reports] table.invoice-report-orders td.invoice-report-left{color:#b4531f;font-weight:700}
body.erp-commercial[data-page=reports] .invoice-report-kind{display:inline-block;padding:2px 9px;border-radius:10px;background:#eaf1fc;color:#2f5f93;font-size:12px;font-weight:600;white-space:nowrap}
body.erp-commercial[data-page=reports] .invoice-report-status{display:inline-block;padding:2px 9px;border-radius:10px;background:#fff3e2;color:#a5671a;font-size:12px;font-weight:600;white-space:nowrap}
body.erp-commercial[data-page=reports] .invoice-report-status.is-check{background:#fdecee;color:#b55c69}
body.erp-commercial[data-page=reports] a.invoice-report-detail-link{display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;border:1px solid #cfdcee;border-radius:8px;background:#fff;color:#1f4f86;font-weight:700;text-decoration:none;transition:background-color .15s,border-color .15s}
body.erp-commercial[data-page=reports] a.invoice-report-detail-link:is(:visited,:hover){color:#1f4f86;text-decoration:none}
body.erp-commercial[data-page=reports] a.invoice-report-detail-link:hover{background:#eef4fd;border-color:#a9c3e6}
body.erp-commercial[data-page=reports] a.invoice-report-detail-link:focus-visible{outline:3px solid #adc9f1;outline-offset:2px}
body.erp-commercial[data-page=reports] .invoice-report-pager{display:flex;align-items:center;gap:10px;margin:10px 0 0;font-size:13px;color:#4f6c8f}
@media(max-width:900px){body.erp-commercial[data-page=reports] .invoice-report-stats{margin-left:0;width:100%}body.erp-commercial[data-page=reports] .invoice-report-children:has(>table){overflow-x:auto}body.erp-commercial[data-page=reports] table.invoice-report-orders{min-width:820px}}
/* 2026-10-26 利润率报表 entry button and page. */
body.erp-commercial[data-page=reports] a.profit-rate-entry{margin-left:auto;display:inline-flex;align-items:center;min-height:40px;padding:8px 18px;border:1px solid #efd3b8;border-radius:10px;background:#fdf3ea;color:#9a5520;font-weight:600;text-decoration:none;transition:background-color .15s,border-color .15s}
body.erp-commercial[data-page=reports] a.profit-rate-entry:is(:visited,:hover){color:#9a5520;text-decoration:none}
body.erp-commercial[data-page=reports] a.profit-rate-entry:hover{background:#fae6d3;border-color:#e2b78f}
body.erp-commercial[data-page=reports] a.profit-rate-entry:focus-visible{outline:3px solid #f2c8a0;outline-offset:2px}
body.erp-commercial[data-page=reports] .profit-rate-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.erp-commercial[data-page=reports] .profit-rate-title h2{margin:0}
body.erp-commercial[data-page=reports] a.profit-rate-back{display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;border:1px solid #cfdcee;border-radius:8px;background:#fff;color:#2f5f93;font-size:13px;text-decoration:none}
body.erp-commercial[data-page=reports] a.profit-rate-back:is(:visited,:hover){color:#2f5f93;text-decoration:none}
body.erp-commercial[data-page=reports] a.profit-rate-back:hover{background:#eef4fd;border-color:#a9c3e6}
body.erp-commercial[data-page=reports] .profit-rate-note{margin:10px 0 16px;padding:9px 14px;background:#f8fafd;border:1px dashed #d7e1ee;border-radius:9px;color:#5d7290;font-size:12.5px;line-height:1.6}
body.erp-commercial[data-page=reports] .profit-rate-filters{display:grid;gap:12px;padding:16px 18px;background:#f8fafd;border:1px solid #e1e8f2;border-radius:12px}
body.erp-commercial[data-page=reports] .profit-rate-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
body.erp-commercial[data-page=reports] .profit-rate-label{min-width:64px;color:#3f6591;font-size:13px;font-weight:700}
body.erp-commercial[data-page=reports] .profit-rate-row label{display:inline-flex;align-items:center;gap:6px;color:#5d7290;font-size:13px}
body.erp-commercial[data-page=reports] .profit-rate-row select{min-height:36px;padding:6px 10px;border:1px solid #d4deea;border-radius:8px;background:#fff;color:#1f3a5c}
body.erp-commercial[data-page=reports] .profit-rate-row select:disabled{background:#f1f4f8;color:#9aa8ba}
body.erp-commercial[data-page=reports] .profit-rate-buttons{display:flex;flex-wrap:wrap;gap:8px}
body.erp-commercial[data-page=reports] .profit-rate-buttons button{min-height:34px;padding:5px 13px;border:1px solid #cfdcee;border-radius:8px;background:#fff;color:#2f5f93;font-size:13px}
body.erp-commercial[data-page=reports] .profit-rate-buttons button:hover{background:#eef4fd;border-color:#a9c3e6;color:#2f5f93}
body.erp-commercial[data-page=reports] .profit-rate-buttons button[aria-pressed=true]{background:#2a62ad;border-color:#2a62ad;color:#fff}
body.erp-commercial[data-page=reports] .profit-rate-bands button[data-rate-band=neg]{border-color:#f0d0d4;color:#b55c69}
body.erp-commercial[data-page=reports] .profit-rate-bands button[data-rate-band=neg]:hover{background:#fdf0f2;color:#b55c69}
body.erp-commercial[data-page=reports] .profit-rate-bands button[data-rate-band=neg][aria-pressed=true]{background:#b55c69;border-color:#b55c69;color:#fff}
body.erp-commercial[data-page=reports] .profit-rate-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0}
body.erp-commercial[data-page=reports] .profit-rate-summary>div{padding:14px 16px;background:#fff;border:1px solid #e1e8f2;border-radius:12px}
body.erp-commercial[data-page=reports] .profit-rate-summary span{display:block;color:#6a7f99;font-size:12px}
body.erp-commercial[data-page=reports] .profit-rate-summary strong{display:block;margin-top:4px;color:#1d3657;font-size:19px;font-variant-numeric:tabular-nums}
body.erp-commercial[data-page=reports] .profit-rate-summary .is-profit strong{color:#2f7d6f}
body.erp-commercial[data-page=reports] .profit-rate-summary .is-loss strong{color:#b55c69}
body.erp-commercial[data-page=reports] .profit-rate-table{background:#fff;border:1px solid #e1e8f2;border-radius:12px;overflow-x:auto}
body.erp-commercial[data-page=reports] .profit-rate-table table{width:100%;min-width:1100px;border-collapse:collapse;font-size:13.5px}
body.erp-commercial[data-page=reports] .profit-rate-table th{padding:11px 12px;background:#edf3fc;color:#3f6591;font-size:12.5px;font-weight:600;text-align:left;white-space:nowrap}
body.erp-commercial[data-page=reports] .profit-rate-table td{padding:12px;border-bottom:1px solid #edf1f7;color:#2b4564;vertical-align:middle}
body.erp-commercial[data-page=reports] .profit-rate-table tbody tr:hover td{background:#f6f9ff}
body.erp-commercial[data-page=reports] .profit-rate-table :is(th,td).num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
body.erp-commercial[data-page=reports] .profit-rate-table td.is-loss{color:#b55c69;font-weight:700}
body.erp-commercial[data-page=reports] .profit-rate-table td.empty{padding:28px;text-align:center;color:#7a8ca4}
body.erp-commercial[data-page=reports] .profit-rate-kind{display:inline-block;padding:2px 9px;border-radius:10px;background:#eaf1fc;color:#2f5f93;font-size:12px;font-weight:600;white-space:nowrap}
body.erp-commercial[data-page=reports] .profit-rate-no{font-weight:700;color:#1f3a5c;white-space:nowrap}
body.erp-commercial[data-page=reports] .profit-rate-chip{display:inline-block;min-width:64px;padding:2px 9px;border-radius:10px;font-size:12px;font-weight:700;text-align:center}
body.erp-commercial[data-page=reports] .profit-rate-chip.is-loss{background:#fdecee;color:#b55c69}
body.erp-commercial[data-page=reports] .profit-rate-chip.is-low{background:#fff3e2;color:#a5671a}
body.erp-commercial[data-page=reports] .profit-rate-chip.is-mid{background:#eaf1fc;color:#2f5f93}
body.erp-commercial[data-page=reports] .profit-rate-chip.is-high{background:#e9f6f0;color:#2f7d6f}
body.erp-commercial[data-page=reports] .profit-rate-chip.is-none{background:#f0f2f5;color:#7d8797}
body.erp-commercial[data-page=reports] a.profit-rate-open{display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;border:1px solid #cfdcee;border-radius:8px;background:#fff;color:#2f5f93;font-size:12.5px;text-decoration:none;white-space:nowrap}
body.erp-commercial[data-page=reports] a.profit-rate-open:is(:visited,:hover){color:#2f5f93;text-decoration:none}
body.erp-commercial[data-page=reports] a.profit-rate-open:hover{background:#eef4fd;border-color:#a9c3e6}
body.erp-commercial[data-page=reports] a.profit-rate-open:focus-visible{outline:3px solid #adc9f1;outline-offset:2px}
@media(max-width:900px){body.erp-commercial[data-page=reports] .profit-rate-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 2026-10-27 利润报表：客户选择. */
/* 2026-10-27 利润率报表入口放在标题右边. */
body.erp-commercial[data-page=reports] .profit-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px}
body.erp-commercial[data-page=reports] .profit-title-row h2{margin:0}
body.erp-commercial[data-page=reports] .profit-title-row a.profit-rate-entry{margin-left:0;min-height:36px;padding:6px 16px}
/* 2026-10-27 客户利润表. */
body.erp-commercial[data-page=reports] .customer-profit-panel .profit-rate-summary{grid-template-columns:repeat(6,minmax(0,1fr))}
body.erp-commercial[data-page=reports] .customer-profit-panel .customer-profit-table table{min-width:1500px}
body.erp-commercial[data-page=reports] .customer-profit-panel .customer-profit-table :is(th,td){white-space:nowrap}
body.erp-commercial[data-page=reports] .customer-profit-panel .customer-profit-table th.is-sorted{background:#2a62ad;color:#fff}
body.erp-commercial[data-page=reports] .customer-profit-panel .customer-profit-table td small{display:block;color:#8a9bb0;font-size:11.5px;font-weight:400}
body.erp-commercial[data-page=reports] .customer-profit-panel .customer-profit-table td.cp-customer b{display:block;color:#1f3a5c}
body.erp-commercial[data-page=reports] .customer-profit-panel .customer-profit-table td.cp-rank{color:#6a7f99;font-weight:700}
body.erp-commercial[data-page=reports] .customer-profit-panel .customer-profit-table tbody tr:nth-child(-n+3) td.cp-rank{color:#b4531f}
body.erp-commercial[data-page=reports] .customer-profit-panel .customer-profit-table .cp-none{color:#b6c2d1}
body.erp-commercial[data-page=reports] .customer-profit-panel .customer-profit-table td.is-profit{color:#2d6f5f;font-weight:700}body.erp-commercial[data-page=reports] .customer-profit-panel .customer-profit-table td.is-loss{color:#b42318;font-weight:700}
body.erp-commercial[data-page=reports] .profit-title-row a.customer-profit-entry{border-color:#cfdcee;background:#eef4fd;color:#1f4f86}
body.erp-commercial[data-page=reports] .profit-title-row a.customer-profit-entry:is(:visited,:hover){color:#1f4f86}
body.erp-commercial[data-page=reports] .profit-title-row a.customer-profit-entry:hover{background:#e1ecfb;border-color:#a9c3e6}
@media(max-width:900px){body.erp-commercial[data-page=reports] .customer-profit-panel .profit-rate-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 采购页和采购报表页共用的标题按钮（11-05），同进票页 */
.purchase-title-row{display:flex;align-items:center;gap:8px}
html body.erp-commercial main header .purchase-title-row a{display:inline-block;min-height:0;margin:0;padding:0 10px 4px;border:0;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;background:none;box-shadow:none;color:inherit;font:inherit;letter-spacing:inherit;text-decoration:none;white-space:nowrap}
html body.erp-commercial main header .purchase-title-row a:first-child{margin-left:-10px}
html body.erp-commercial main header .purchase-title-row a:hover{background:#eef4fc;color:inherit;transform:none;box-shadow:none}
html body.erp-commercial main header .purchase-title-row a:focus-visible{outline:2px solid #2a62ad;outline-offset:2px}
html body.erp-commercial main header .purchase-title-row a[aria-current=page]{border-bottom-color:#2a62ad}
html body.erp-commercial main header .purchase-title-row a[hidden]{display:none}
/* 成本报表 */
body.erp-commercial[data-page=reports] .cost-report-period{display:grid;gap:12px}
body.erp-commercial[data-page=reports] .cost-report-period[hidden]{display:none}
body.erp-commercial[data-page=reports] .cost-report-summary{grid-template-columns:repeat(6,minmax(0,1fr))}
body.erp-commercial[data-page=reports] .cost-report-summary strong{font-size:17px}
body.erp-commercial[data-page=reports] .cost-report-table table{min-width:1760px}
body.erp-commercial[data-page=reports] .cost-report-text{white-space:nowrap}
body.erp-commercial[data-page=reports] .cost-report-total td{background:#eef4fc;font-weight:700}
@media(max-width:1100px){body.erp-commercial[data-page=reports] .cost-report-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){body.erp-commercial[data-page=reports] .cost-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 报表统一新版美工（11-06）：以销售报表为准 */
body.erp-commercial.sales-report-polished .sales-report-heading .profit-title-row{margin-top:6px}
body.erp-commercial.sales-report-polished .sales-report-heading .profit-title-row h2{margin:0}
body.erp-commercial.sales-report-polished #reportBasis{position:relative;z-index:1;margin:8px 0 0;color:#c7d9ee;font-size:13px}
body.erp-commercial.sales-report-polished .profit-rate-title.sales-report-heading{align-items:center}
body.erp-commercial.sales-report-polished .profit-rate-panel>.profit-rate-note{max-width:none;margin:0 0 18px;font-size:12.5px}
body.erp-commercial.sales-report-polished .profit-rate-filters{padding:20px 22px}
body.erp-commercial.sales-report-polished .profit-rate-label{font-weight:600;color:#60758e}
body.erp-commercial.sales-report-polished .profit-rate-buttons button{padding:7px 14px}
body.erp-commercial.sales-report-polished .profit-rate-buttons button[aria-pressed=true]{background:#2869cf;border-color:#2869cf;font-weight:600}
body.erp-commercial.sales-report-polished .profit-rate-summary>div:first-child{border:0;background:linear-gradient(115deg,#18395f,#245b92)}
body.erp-commercial.sales-report-polished .profit-rate-summary>div:first-child span{color:#b8d1ed}
body.erp-commercial.sales-report-polished .profit-rate-summary>div:first-child strong,body.erp-commercial.sales-report-polished .profit-rate-summary>div:first-child.is-profit strong,body.erp-commercial.sales-report-polished .profit-rate-summary>div:first-child.is-loss strong{color:#fff}
body.erp-commercial.sales-report-polished .invoice-report-tools{margin:0 0 16px}
body.erp-commercial.sales-report-polished #invoiceReportGroups{margin-top:22px}
body.erp-commercial.sales-report-polished .expense-report-heading>p{margin:0}
body.erp-commercial.sales-report-polished .expense-report-summary>div:first-child{border:0;background:linear-gradient(115deg,#18395f,#245b92)}
body.erp-commercial.sales-report-polished .expense-report-summary>div:first-child span{color:#b8d1ed}
body.erp-commercial.sales-report-polished .expense-report-summary>div:first-child strong{color:#fff}
body.erp-commercial.sales-report-polished .report-shortcuts button[aria-pressed=true]:disabled{opacity:1}
/* 利润、成本报表的客户筛选（11-06）：分类、地区、首字母、客户四行选项按钮 */
body.erp-commercial[data-page=reports] .report-customer-rows{display:grid;gap:8px;width:100%}
body.erp-commercial[data-page=reports] .report-customer-row{display:flex;align-items:flex-start;gap:12px}
body.erp-commercial[data-page=reports] .report-customer-row>span{flex:0 0 48px;padding-top:6px;font-size:12px;font-weight:600;color:#60758e}
body.erp-commercial[data-page=reports] .report-customer-row>div{display:flex;flex-wrap:wrap;gap:6px;flex:1;min-width:0}
body.erp-commercial[data-page=reports] .report-customer-row.is-customers>div{max-height:32px;overflow:hidden;padding:1px}
body.erp-commercial[data-page=reports] .report-customer-row.is-customers>div.is-open{max-height:160px;overflow-y:auto}
body.erp-commercial[data-page=reports] .report-customer-row button.report-customer-more{flex:none;margin-top:1px;background:#f3f7fd}
body.erp-commercial[data-page=reports] .report-customer-row button.report-customer-more[hidden]{display:none}
body.erp-commercial[data-page=reports] .report-customer-row button{min-height:30px;padding:3px 11px;border:1px solid #cfdcee;border-radius:8px;background:#fff;color:#2f5f93;font-size:13px}
body.erp-commercial[data-page=reports] .report-customer-row button:hover:not(:disabled){background:#eef4fd;color:#2f5f93}
body.erp-commercial[data-page=reports] .report-customer-row button[aria-pressed=true],body.erp-commercial[data-page=reports] .report-customer-row button[aria-pressed=true]:hover{background:#2869cf;border-color:#2869cf;color:#fff;font-weight:600}
body.erp-commercial[data-page=reports] .report-customer-row button:disabled{opacity:.4;cursor:not-allowed}
body.erp-commercial[data-page=reports] .report-customer-row button:focus-visible{outline:2px solid #2869cf;outline-offset:2px}
body.erp-commercial[data-page=reports] .profit-rate-filters>.report-customer-rows{padding-top:4px;border-top:1px solid #e4ebf4}
/* 采购记录 */
.purchase-record-search{display:flex;gap:10px;flex-wrap:wrap}.purchase-record-search input{width:220px;max-width:100%;min-height:36px}body.erp-commercial[data-page=reports] .purchase-record-table table{min-width:1300px}.purchase-record-table td{white-space:nowrap}.purchase-record-link{color:#2463c7;font-weight:600;text-decoration:none;border-radius:4px}.purchase-record-link:hover{background:#e6effc}.purchase-record-link:focus-visible{outline:2px solid #2869cf;outline-offset:2px}
.purchase-record-year{width:160px;min-height:36px}
body.erp-commercial[data-page=reports] .purchase-record-names>div{max-height:160px;overflow-y:auto;padding:1px}

/* 客户暂存表（11-08） */
.storage-report-photos{display:flex;align-items:center;gap:4px}.storage-report-photos a{display:block;width:34px;height:34px;border:1px solid #d8e2ef;border-radius:6px;overflow:hidden;background:#f5f8fc}.storage-report-photos a:hover{border-color:#2869cf}.storage-report-photos a:focus-visible{outline:2px solid #2869cf;outline-offset:2px}.storage-report-photos img{width:100%;height:100%;object-fit:cover;display:block}.storage-report-photos span{color:#6a7f99;font-size:12px;margin-left:2px}
/* 还有结余整行红色，发完（结余 0）整行浅灰（11-08 用户定） */
.customer-storage-table .storage-left{font-weight:700}
body.erp-commercial[data-page=reports] .customer-storage-table tr.storage-row-open td,body.erp-commercial[data-page=reports] .customer-storage-table tr.storage-row-open td .purchase-record-link{color:#c62828}
body.erp-commercial[data-page=reports] .customer-storage-table tr.storage-row-done td,body.erp-commercial[data-page=reports] .customer-storage-table tr.storage-row-done td .purchase-record-link,body.erp-commercial[data-page=reports] .customer-storage-table tr.storage-row-done .storage-report-photos span{color:#a8b3c2}
body.erp-commercial[data-page=reports] .customer-storage-table tr.storage-row-done img{opacity:.6}

/* 客户暂存表可排序表头（11-08） */
body.erp-commercial[data-page=reports] .customer-storage-table th[data-sort]{padding:4px 6px;background:#e3edfb}
.customer-storage-table .storage-sort{min-height:30px;padding:4px 10px;border:1px solid #9dbbe8;border-radius:8px;background:#fff;color:#1f5bb8;font-weight:700;white-space:nowrap;cursor:pointer}
.customer-storage-table .storage-sort:hover{background:#eef4fe}
.customer-storage-table .storage-sort:focus-visible{outline:2px solid #2869cf;outline-offset:2px}
.customer-storage-table .storage-sort.is-on{background:#2869cf;border-color:#2869cf;color:#fff}
.customer-storage-table .storage-sort.is-on:hover{background:#1f5bb8}
.customer-storage-table .storage-sort::after{content:' ↕';opacity:.55}.customer-storage-table .storage-sort[data-dir=down]::after{content:' ↓';opacity:1}.customer-storage-table .storage-sort[data-dir=up]::after{content:' ↑';opacity:1}

/* 采购记录名称分类（11-09）：分类按钮行、未分类提醒数字、右键菜单、批量归类 */
.pn-cat-row button .pn-num{margin-left:6px;padding:0 6px;border-radius:9px;background:#e6f0fd;color:#2a62ad;font-size:12px;font-weight:700}
.pn-cat-row button[aria-pressed=true] .pn-num{background:rgba(255,255,255,.25);color:#fff}
.pn-cat-row button.pn-uncat{border-style:dashed}
.pn-cat-row button .pn-count{margin-left:6px;min-width:20px;padding:0 6px;border-radius:10px;background:#d93025;color:#fff;font-size:12px;font-weight:800;display:inline-block;text-align:center}
body.erp-commercial main .pn-cat-row button.pn-tool,body.erp-commercial main .purchase-record-names button.pn-tool{border-color:#9dbbe8;color:#1f5bb8;background:#f3f7fe;font-weight:700}
body.erp-commercial main .pn-cat-row button.pn-tool:hover,body.erp-commercial main .purchase-record-names button.pn-tool:hover{background:#e3edfd;color:#1f5bb8}
.purchase-record-names button.pn-new:not([aria-pressed=true]){border-color:#f0c48a;background:#fffaf1}
.purchase-record-names button.pn-pick[aria-pressed=true]::before{content:"✓ "}
.pn-batch{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 8px 88px;padding:10px 14px;border:1px solid #c6d8f5;border-radius:12px;background:#f2f7ff;color:#1f3d66;font-weight:700}
.pn-batch[hidden]{display:none}
.pn-menu{position:fixed;z-index:9999;min-width:200px;max-width:320px;max-height:70vh;overflow:auto;padding:6px;background:#fff;border:1px solid #d6e0ee;border-radius:12px;box-shadow:0 18px 44px rgba(16,42,86,.25)}
.pn-menu-title{padding:8px 10px 6px;color:#6a7f99;font-size:12px;font-weight:700;border-bottom:1px solid #eef2f8;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pn-menu button{display:block;width:100%;min-height:34px;padding:6px 10px;border:0;border-radius:8px;background:none;color:#1f3d66;text-align:left;font-size:14px;cursor:pointer}
.pn-menu button:hover,.pn-menu button:focus-visible{background:#eef4fe;outline:none}
.pn-menu button.pn-danger{color:#c0392b}
.pn-menu button.pn-danger:hover{background:#fdeeee}
.pn-menu hr{border:0;border-top:1px solid #eef2f8;margin:4px 0}
@media(max-width:800px){.pn-batch{margin-left:0}}

/* 押金表（11-09）：还有余额整行紫色，退完浅灰 */
body.erp-commercial[data-page=reports] .deposit-table tr.deposit-row-open td,body.erp-commercial[data-page=reports] .deposit-table tr.deposit-row-open td .purchase-record-link{color:#5b34a8}
body.erp-commercial[data-page=reports] .deposit-table tr.deposit-row-open td.deposit-left{font-weight:800}
body.erp-commercial[data-page=reports] .deposit-table tr.deposit-row-done td,body.erp-commercial[data-page=reports] .deposit-table tr.deposit-row-done td .purchase-record-link{color:#a8b3c2}

/* 成本报表「第一行名称」表头按钮（11-09）：点一下按拼音首字母排序，再点恢复 */
body.erp-commercial[data-page=reports] .cost-report-table th.cost-name-head{padding:4px 6px;background:#e3edfb}
.cost-report-table .cost-name-sort{min-height:30px;padding:4px 10px;border:1px solid #9dbbe8;border-radius:8px;background:#fff;color:#1f5bb8;font-weight:700;white-space:nowrap;cursor:pointer}
.cost-report-table .cost-name-sort::after{content:' ↕';opacity:.55}
.cost-report-table .cost-name-sort[aria-pressed=true]{background:#2869cf;border-color:#2869cf;color:#fff}
.cost-report-table .cost-name-sort[aria-pressed=true]::after{content:' A→Z';opacity:1}
.cost-report-table .cost-name-sort:hover{background:#eef4fe;color:#1f5bb8}
.cost-report-table .cost-name-sort[aria-pressed=true]:hover{background:#1f5bb8;color:#fff}
.cost-report-table .cost-name-sort:focus-visible{outline:2px solid #2869cf;outline-offset:2px}
.cost-report-table td.cost-first-name{color:#1d3657;font-weight:700;white-space:nowrap}

/* 成本报表明细表：显示约 10 行，其余上下滚动；表头固定在上面，合计行固定在下面（11-09 用户定） */
body.erp-commercial[data-page=reports] .profit-rate-table.cost-report-table{max-height:720px;overflow:auto}
body.erp-commercial[data-page=reports] .cost-report-table thead th{position:sticky;top:0;z-index:2;background:#f1f5fb;box-shadow:0 1px 0 #d6e0ee}
body.erp-commercial[data-page=reports] .cost-report-table tr.cost-report-total td{position:sticky;bottom:0;z-index:1;background:#eef3fa;box-shadow:0 -1px 0 #d6e0ee}
