:root{--blue:#1890ff;--blue-dark:#0958d9;--blue-soft:#e6f7ff;--ink:#293b46;--muted:#75838d;--line:#e5eaf0;--paper:#f0f2f5;--white:#fff;--green:#28735c;--red:#b83c3c}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;color:var(--ink);font:14px/1.6 "Microsoft YaHei","PingFang SC",Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--blue-dark);text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #89c7ff;outline-offset:3px}[hidden]{display:none!important}.muted{color:var(--muted);font-size:13px}.button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 15px;gap:6px;border:1px solid #d9e1e7;border-radius:4px;background:#fff;color:var(--ink);white-space:nowrap;text-decoration:none}.button:hover{border-color:var(--blue);color:var(--blue-dark)}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.primary:hover{background:#087fe6}.button.small{min-height:30px;padding:3px 11px;font-size:12px}.button:disabled{color:#a8b1b8;background:#fafbfc;border-color:var(--line);cursor:default}.text-button{border:0;padding:0;background:transparent;color:var(--blue-dark);font-size:13px;line-height:1.6;text-align:left}.text-button:hover{text-decoration:underline}.negative{color:var(--red)!important}.money{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.report-home{background:var(--paper);padding:28px 24px}.home-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.home-action{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:24px 0}.home-action .button{min-height:42px;padding:9px 22px}.feature-list{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden}.feature-list article{padding:25px 28px}.feature-list article:nth-child(odd){border-right:1px solid var(--line)}.feature-list article:nth-child(-n+2){border-bottom:1px solid var(--line)}.feature-title{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px}.feature-title h2{font-size:18px;margin:0}.feature-title span{font-size:12px;color:var(--blue-dark)}.feature-list p{margin:12px 0 0;max-width:48em}.home-rules{background:#fff;border:1px solid var(--line);border-radius:7px;padding:20px 28px;margin-top:20px}.home-rules h2{font-size:17px;margin:0 0 12px}.home-rules dl{margin:0}.home-rules dl>div{display:grid;grid-template-columns:170px 1fr;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.home-rules dl>div:last-child{border:0}.home-rules dt{font-weight:600}.home-rules dd{margin:0;color:#5e707a}.home-bottom{margin:16px 0}
.report-app{background:var(--paper)}.sidebar{position:fixed;left:0;top:0;bottom:0;width:206px;background:#fff;border-right:1px solid #e1e7eb;z-index:5;display:flex;flex-direction:column}.app-brand{display:flex;align-items:center;gap:10px;height:62px;padding:0 20px;color:#263f50;font-size:16px;font-weight:600;border-bottom:1px solid var(--line)}.brand-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:5px;background:var(--blue);color:#fff}.sidebar nav{padding-top:14px}.menu-item{display:block;padding:12px 23px;font-size:14px;color:#56697a}.menu-child{padding-left:42px;font-size:13px}.menu-parent{color:var(--blue)}.menu-item.active{color:var(--blue);background:var(--blue-soft);border-right:3px solid var(--blue)}.sidebar-foot{margin-top:auto;padding:18px 23px;color:#98a2aa;font-size:12px}.app-main{margin-left:206px;min-width:0}.topbar{height:62px;display:flex;justify-content:space-between;gap:15px;align-items:center;background:#fff;border-bottom:1px solid var(--line);padding:0 25px}.topbar-right{display:flex;align-items:center;gap:20px;font-size:12px}.demo-tag{background:#fff7e6;color:#94600e;padding:3px 9px;border-radius:4px}.back-button{display:inline-flex;align-items:center;justify-content:center;background:#ff8a00;color:#fff;border:1px solid #ff8a00;border-radius:4px;padding:6px 16px;font-size:13px}.back-button:hover{background:#e87800}.admin-tabs{display:flex;gap:4px;padding:10px 24px 0;background:#f0f2f5;border-bottom:1px solid #e0e5ea}.admin-tabs span{display:block;padding:7px 17px;color:#7e8a96;font-size:12px;background:#e9edf1;border:1px solid #e5e9ed;border-bottom:0;border-radius:3px 3px 0 0}.admin-tabs .selected{background:#fff;color:var(--blue)}.report-content{padding:22px 24px 32px;max-width:1840px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.breadcrumb{color:#94a0ac;font-size:12px;margin:0 0 9px}.page-heading h1{font-size:24px;line-height:1.4;margin:0;color:#253e4c;font-weight:600}.page-heading p.muted{margin:7px 0 0}.heading-actions{display:flex;gap:10px;flex:0 0 auto}.range-panel{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;background:#fff;padding:18px 20px;border:1px solid var(--line);border-radius:5px;margin:0}.period-buttons{display:flex;align-self:flex-end;margin-right:10px}.period{padding:6px 16px;min-height:34px;border:1px solid #d9e1e7;background:#fff;color:#526572}.period+.period{border-left:0}.period:first-child{border-radius:4px 0 0 4px}.period:last-child{border-radius:0 4px 4px 0}.period.active{background:var(--blue);border-color:var(--blue);color:#fff}.date-field{display:flex;flex-direction:column;gap:5px;color:#7b8893;font-size:12px}.date-field input{display:block;height:34px;padding:5px 9px;border:1px solid #d9e1e7;border-radius:4px;color:var(--ink);background:#fff;font-size:13px;max-width:100%}.date-divider{color:#99a3ac;padding-bottom:6px}.form-error{flex-basis:100%;margin:0;color:var(--red);font-size:12px}.period-status{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:#74848e;margin:14px 1px 10px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border:1px solid var(--line);border-radius:5px;margin-bottom:12px}.metric{padding:10px 16px;min-width:0}.metric+.metric{border-left:1px solid var(--line)}.metric-name{display:block;color:#627581;font-size:12px;line-height:1.4}.metric strong{display:block;font-size:24px;line-height:1.2;margin:4px 0;font-weight:600;letter-spacing:-.4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metric-description{display:block;color:#8b98a1;font-size:12px;line-height:1.4}.metric .text-button{margin-top:2px;font-size:12px;line-height:1.4}.section-nav{display:flex;gap:22px;margin:0 0 13px;padding:0 2px;font-size:13px}.section-nav a{color:#527087}.section-nav a:hover{color:var(--blue)}.report-section{background:#fff;border:1px solid var(--line);border-radius:5px;padding:19px 20px;margin-bottom:18px;scroll-margin-top:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.section-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}.section-heading h2{margin:0;font-size:17px;line-height:1.4;font-weight:600}.section-heading p{font-size:12px;color:#85929c;margin:5px 0 0}.section-total{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}.table-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;margin-bottom:11px}.search-field,.select-field{display:flex;align-items:center;gap:9px;color:#6d7e89;font-size:13px}.search-field input{width:225px;min-width:0;max-width:100%;padding:6px 10px;border:1px solid #d9e1e7;border-radius:4px;color:var(--ink);background:#fff}.select-field select,.pagination select{padding:5px 9px;border:1px solid #d9e1e7;border-radius:4px;color:var(--ink);background:#fff}.toolbar-note{font-size:12px;color:#99a3ac;align-self:center}.table-hint{font-size:12px;color:#8b98a3;margin:0 0 12px}.table-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:3px}table{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}th,td{padding:11px 13px;vertical-align:middle;text-align:left;border-right:1px solid #edf0f3;border-bottom:1px solid #edf0f3;white-space:nowrap}th:last-child,td:last-child{border-right:0}th{background:#fafbfc;color:#000;font-size:14px;font-weight:500}tbody tr:hover td{background:#fafcfe}tfoot td{background:#edf7ff;font-weight:600;border-bottom:0;color:#304c60}tfoot .total-label{white-space:normal;min-width:204px}.sales-table{min-width:1530px}.sales-table th,.sales-table td{padding:6px 10px;line-height:1.4}.sales-table .text-button{line-height:1.4}.sales-table .fixed-date{position:sticky;left:0;z-index:2;width:112px;min-width:112px;background:#fff}.sales-table .fixed-customer{position:sticky;left:112px;z-index:2;width:100px;min-width:100px;background:#fff}.sales-table th.fixed-date,.sales-table th.fixed-customer{background:#fafbfc;z-index:3}.sales-table .customer-name{font-weight:600}.receipt-date{font-size:12px;color:#5b7180;display:block}.order-link{font-variant-numeric:tabular-nums}.empty-row{text-align:center;color:#96a0aa;padding:35px}.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:13px;font-size:12px;color:#81909b}.pagination-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.pagination-actions label{display:flex;gap:7px;align-items:center}.section-footnote{font-size:12px;color:#8e9ba4;margin:12px 0 0}.receipt-summary-table{min-width:1050px;table-layout:fixed}.receipt-summary-table th,.receipt-summary-table td{padding:8px 12px;line-height:1.4}.receipt-summary-table tbody tr:last-child td{border-bottom:0}.receipt-summary-table td:first-child{background:#f0f7fc;font-weight:600}.receipt-note{margin-top:12px;padding-top:8px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:#85959f}.receipt-note>span:first-child{color:#456b83}.payment-table{min-width:760px}.payment-number{color:var(--blue-dark)}#payment-section .pagination{justify-content:flex-end}.page-footer{text-align:center;font-size:12px;color:#a3adb4;margin-top:22px}dialog{border:0;border-radius:7px;box-shadow:0 18px 80px #172c3e38;padding:0;width:min(1080px,calc(100% - 40px));max-width:1080px;max-height:85vh;color:var(--ink);background:#fff}dialog::backdrop{background:#14273966}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:20px;margin:4px 0 0}.dialog-header .muted{font-size:12px}.dialog-content{padding:22px 24px;overflow:auto}.dialog-note{font-size:13px;color:#6f8490;margin:0 0 18px;line-height:1.8}.detail-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:19px;background:#f6f9fc;border:1px solid #e6edf3;border-radius:4px;padding:14px 17px}.detail-summary div{display:flex;flex-direction:column;gap:5px}.detail-summary span{font-size:12px;color:#7c8f9d}.detail-summary strong{font-size:21px;font-weight:500;font-variant-numeric:tabular-nums}.detail-heading{font-size:15px;margin:22px 0 10px}.detail-footnote{font-size:12px;line-height:1.8;color:#8b9ba6;margin:12px 0 0}.rule-list{margin:0;padding:0;list-style:none}.rule-list li{padding:14px 0;border-bottom:1px solid var(--line)}.rule-list li:last-child{border:0}.rule-list b{display:block;margin-bottom:6px;font-size:14px;font-weight:600}.rule-list p{margin:0;font-size:13px;color:#748795}.toast{position:fixed;left:50%;top:22px;transform:translateX(-50%);border:1px solid #c7e0d4;background:#f0faf5;color:#23644b;padding:10px 20px;border-radius:4px;box-shadow:0 3px 15px #253a4b16;z-index:20}
@media(min-width:1700px){.report-content{padding-right:34px;padding-left:34px}.metrics .metric{padding:10px 18px}.metric strong{font-size:26px}.sales-table{min-width:1510px}}
@media(max-width:1180px){.sidebar{width:178px}.app-brand{font-size:14px;padding:0 15px}.menu-item{padding-left:18px}.menu-child{padding-left:30px}.app-main{margin-left:178px}.report-content{padding:18px}.metric{padding:10px 12px}.metric strong{font-size:22px}}
@media(max-width:900px){.sidebar{display:none}.app-main{margin-left:0}.report-content{padding:16px}.topbar{padding:0 16px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric:nth-child(3){border-left:0}.metric:nth-child(n+3){border-top:1px solid var(--line)}.page-heading{align-items:flex-start}.feature-list{grid-template-columns:1fr}.feature-list article{border-right:0!important;border-bottom:1px solid var(--line)}.feature-list article:last-child{border-bottom:0}.home-rules dl>div{grid-template-columns:1fr;gap:5px}}
@media(max-width:600px){.report-home{padding:18px 14px}.home-top .brand{font-size:12px}.home-top .return-btn{height:34px;padding:0 12px}.report-home h1{font-size:24px}.feature-list article{padding:20px}.home-rules{padding:18px 20px}.page-heading{flex-direction:column;gap:13px}.page-heading h1{font-size:21px}.heading-actions{align-self:stretch}.heading-actions .button{flex:1}.topbar-right{gap:12px}.topbar-right>a{display:none}.admin-tabs{padding-left:14px}.range-panel{padding:14px;gap:10px}.period-buttons{flex-basis:100%;margin:0 0 3px}.period{flex:1}.date-field{width:calc(50% - 16px)}.date-field input{width:100%;min-width:0}.date-divider{align-self:flex-end}.range-panel>button{width:100%;margin-top:3px}.date-divider{display:none}.metrics .metric{padding:9px 12px}.metric strong{font-size:21px}.metric-description{font-size:11px}.metric .text-button{font-size:11px}.report-section{padding:15px 12px}.section-heading{align-items:flex-start}.section-total{font-size:12px}.table-toolbar{gap:10px}.search-field{width:100%}.search-field input{flex:1;width:auto}.pagination-actions{gap:7px}.section-nav{gap:20px}.detail-summary{grid-template-columns:1fr;gap:12px}dialog{width:calc(100% - 20px);max-height:90vh}.dialog-header{padding:16px}.dialog-content{padding:18px 16px}.dialog-header h2{font-size:18px}.receipt-note{font-size:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
