:root{color-scheme:light;--bg:#e7eaed;--surface:#f4f5f6;--line:#cbd1d8;--mint:#475569;--text:#202833;--muted:#657180;--amber:#946200;--blue:#356a9a;--danger:#b44747;--hover-bg:#e0e4e8;--line-strong:#aeb7c1;--input-bg:#eef0f2;--placeholder:#7b8794;--on-accent:#ffffff;--accent-hover:#334155;--nav-active:#dce2e8;--step-active:#dde3e9;--step-line:#cbd1d8;--table-head:#e9edf1;--table-heading:#4b5563;--row-hover:#e8ebee;--row-selected:#d8e0e8;--pager-bg:#dce2e8;--notice-bg:#f4f5f6;--notice-line:#aeb7c1;--dialog-bg:#f4f5f6;--dialog-line:#b7c0c9;--row-checked:#dce3ea;--row-context:#d7dfe7;--context-line:#94a0ac;--menu-bg:#f4f5f6;--menu-line:#b7c0c9;--menu-focus:#e1e5e9;--menu-separator:#d3d8dd;--selection-bg:#e0e5ea;--selection-line:#aeb7c1;--warning-bg:#f3ede0;--warning-text:#805600;--closing-color:#805600;--private-color:#6b5b95;--icon-filter:none;--active-icon-filter:none;--primary-icon-filter:invert(1);font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}[hidden]{display:none!important}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{background:transparent;border:1px solid var(--line);border-radius:5px;color:var(--text);padding:8px 13px;cursor:pointer;white-space:nowrap}button:hover{background:var(--hover-bg,#232323);border-color:var(--line-strong,#4d4d4d)}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--mint);outline-offset:3px}button img,.search img,.sidebar img{width:20px;height:20px;filter:var(--icon-filter,invert(92%) sepia(8%) saturate(346%) hue-rotate(94deg));flex-shrink:0}button:has(img){display:inline-flex;align-items:center;justify-content:center;gap:8px}input,select,textarea{border:1px solid var(--line);border-radius:5px;background:var(--input-bg,#121212);color:var(--text);padding:9px 11px;min-width:0}input::placeholder,textarea::placeholder{color:var(--placeholder,#819a8f)}select{cursor:pointer;max-width:100%}textarea{resize:vertical;line-height:1.7;width:100%}.primary{background:var(--mint);color:var(--on-accent,#151515);border-color:var(--mint);font-weight:700}.primary:hover{background:var(--accent-hover,#b7b7b7);border-color:var(--accent-hover,#b7b7b7)}.primary img{filter:var(--primary-icon-filter,none)}.text-button{border:0;padding:5px 8px;color:var(--mint)}.icon-button{border:0;padding:7px}
.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;align-items:center;gap:14px;font-size:20px;font-weight:700;white-space:nowrap}.brand-mark{width:40px;height:40px;display:grid;place-items:center;background:var(--mint);color:var(--on-accent,#151515);border-radius:9px;font-size:22px}.top-meta{display:flex;align-items:center;gap:24px;font-size:13px;color:var(--muted)}#current-user{color:var(--text);padding-left:20px;border-left:1px solid var(--line)}.sync-indicator{color:var(--muted)}.sync-indicator.ok{color:var(--mint)}.sync-indicator.error{color:var(--amber)}
.workspace{display:grid;grid-template-columns:184px minmax(0,1fr);min-height:calc(100vh - 64px)}.sidebar{border-right:1px solid var(--line);padding:22px 10px 20px 0;display:flex;flex-direction:column}.sidebar nav{display:flex;flex-direction:column;gap:6px}.sidebar button{display:flex;justify-content:flex-start;gap:15px;border:0;border-left:4px solid transparent;border-radius:0 4px 4px 0;padding:14px 20px;font-size:15px;text-align:left;width:100%}.sidebar button.active{border-left-color:var(--mint);background:var(--nav-active,#232323);color:var(--mint);font-weight:600}.sidebar button.active img{filter:var(--active-icon-filter,invert(83%) sepia(57%) saturate(659%) hue-rotate(100deg))}.nav-divider{height:1px;background:var(--line);margin:24px 16px}.back-link{font-size:12px;color:var(--muted);padding:20px 24px;margin-top:auto}main{padding:22px 24px 0;min-width:0}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:58px;margin-bottom:20px}.heading-copy{display:flex;align-items:baseline;gap:20px;flex-wrap:wrap}h1,h2,h3,p{margin-top:0}h1{font-size:29px;line-height:1.3;letter-spacing:.02em;margin:0}h2{font-size:22px;margin:0}h3{font-size:16px}.heading-copy p{margin:0;font-size:13px}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.7}.filters{display:flex;align-items:center;gap:10px}.filters select{max-width:170px;height:40px}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:5px;height:40px;padding:0 10px;width:240px}.search input{background:none;border:0;padding:0;width:100%;height:32px;outline-offset:0}.search img{width:18px}.filters .primary{height:40px}
.sync-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;border-left:3px solid var(--amber);background:var(--warning-bg,#28271a);padding:9px 12px;margin:-2px 0 14px;font-size:12px;color:var(--warning-text,#dfc7a2)}.steps{display:flex;align-items:stretch;border:1px solid var(--line);border-radius:5px;min-height:76px;margin-bottom:16px;overflow:auto}.step{flex:1;border:0;border-radius:0;display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 10px;min-width:134px;text-align:left}.step+.step{border-left:1px solid var(--step-line,#242424)}.step.active{background:var(--step-active,#222222);color:var(--mint)}.step .step-number{display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;border-radius:50%;background:#d3d3d3;color:#141414;font-size:15px}.step.active .step-number{background:var(--mint);color:var(--on-accent,#141414)}.step-content{display:flex;flex-direction:column;gap:5px}.step-title{font-weight:600;white-space:nowrap}.step small{color:var(--muted);font-size:11px}.step strong{font-size:19px;font-weight:500;margin-left:7px;color:var(--mint);font-variant-numeric:tabular-nums}.step[data-stage="presales"] strong,.step[data-stage="unclaimed"] strong{color:var(--amber)}.step[data-stage="debugging"] strong{color:var(--blue)}.step[data-stage="closing"] strong{color:var(--closing-color,#ded26a)}.step-all{flex:0 0 104px;min-width:104px}.step-all .step-title{font-size:15px}.list-context{font-size:12px;color:var(--muted);margin:0 0 10px}.list-context:empty{display:none}
.table-scroll{overflow:auto;max-width:100%}.order-table{width:100%;border-collapse:collapse;white-space:nowrap;table-layout:auto;font-size:13px}.order-table th{height:40px;background:var(--table-head,#181818);color:var(--table-heading,#c5c5c5);font-size:12px;font-weight:500;text-align:left;padding:0 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.order-table td{height:37px;padding:0 12px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.order-table tbody tr:hover{background:var(--row-hover,#1a1a1a)}.order-table tbody tr.selected{background:var(--row-selected,#232323)}.order-table th:first-child,.order-table td:first-child{width:36px;padding:0 4px}.order-table .expand{border:0;padding:6px;display:inline-flex}.expand img{width:15px;height:15px}.order-table .number{font-size:12px;letter-spacing:.01em}.order-table .shop-cell{max-width:135px;overflow:hidden;text-overflow:ellipsis}.order-table button:not(.expand){font-size:12px;padding:4px 7px;border:0;color:var(--mint)}.order-table .row-main{border:1px solid var(--line-strong,#565656)!important;min-width:82px}.order-table .row-actions{display:flex;gap:6px;align-items:center;height:37px}.badge{display:inline-block;padding:3px 9px;border-radius:5px;font-size:12px;line-height:1.15;text-align:center;min-width:62px}.badge.presales{background:#493020;color:#efb16e}.badge.queued{background:#172e4b;color:#78bdf1}.badge.debugging{background:#16334b;color:#7cc5f6}.badge.closing{background:#35361a;color:#e6d96d}.badge.closed,.badge.done{background:#2a2a2a;color:#afafaf}.badge.debug-pending{background:#eaf2ff;color:#2563eb}.badge.debug-tested{background:#dcfce7;color:#15803d}.source-status{display:inline-flex;align-items:center;gap:7px;font-size:12px}.source-status::before{content:"";width:7px;height:7px;background:var(--amber);border-radius:50%;flex-shrink:0}.source-status.finished::before{background:var(--mint)}.source-status.manual::before{background:var(--private-color,#b1a4e6)}.source-status.refund{color:var(--danger)}.source-status.refund::before{background:var(--danger)}.flags{display:flex;gap:6px;font-size:11px}.flag{color:var(--muted)}.flag.yes{color:var(--mint)}
.pager{display:flex;align-items:center;justify-content:space-between;padding:26px 4px;color:var(--muted);font-size:13px;gap:16px}.pager>div{display:flex;align-items:center;gap:20px}.pager>div:last-child{gap:12px}.pager select{padding:4px 5px;border:0;background:transparent}.pager button{padding:5px}.pager button img{width:17px;height:17px}#page-label{background:var(--pager-bg,#272727);padding:7px 12px;border-radius:4px;color:var(--mint)}.empty{padding:75px 24px;text-align:center;min-height:350px;border-bottom:1px solid var(--line)}.empty h2{font-size:20px;margin-bottom:12px}.empty p{margin-bottom:20px;line-height:1.8}.notice{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--notice-bg,#2c2c2c);border:1px solid var(--notice-line,#5d5d5d);border-radius:7px;padding:13px 22px;box-shadow:0 8px 30px #0008;z-index:100;max-width:90vw}.error{color:var(--danger);font-size:13px;line-height:1.7;margin:8px 0}.error:empty{display:none}
.login-panel{width:400px;max-width:calc(100vw - 40px);margin:80px auto}.login-panel h1{margin:12px 0}.login-panel p{line-height:1.7}.login-panel form{display:grid;gap:16px;margin-top:26px}.eyebrow{font-size:12px;color:var(--mint);letter-spacing:.08em}label:not(.search):not(.check){display:flex;flex-direction:column;gap:7px}label small{font-size:12px}dialog{color:var(--text);background:var(--dialog-bg,#141414);border:1px solid var(--dialog-line,#424242);border-radius:8px;padding:24px;width:560px;max-width:calc(100vw - 32px);max-height:calc(100vh - 40px);overflow:auto;box-shadow:0 15px 80px #0009}dialog::backdrop{background:#0008}dialog form{display:flex;flex-direction:column;gap:16px}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:6px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.check{display:inline-flex;align-items:center;gap:8px;line-height:1.8}.check input{accent-color:var(--mint);width:16px;height:16px;padding:0}.check-list{display:flex;gap:12px 20px;flex-wrap:wrap}fieldset{border:1px solid var(--line);border-radius:5px;padding:12px 14px;display:flex;gap:20px;flex-wrap:wrap}legend{color:var(--muted);font-size:12px}
.order-drawer{position:fixed;inset:64px 0 0 auto;margin:0;width:430px;max-width:95vw;max-height:calc(100vh - 64px);height:calc(100vh - 64px);border-radius:0;z-index:30;padding:24px;border-right:0;border-bottom:0}.order-id{font-size:17px;font-weight:500;overflow-wrap:anywhere;margin:18px 0 10px}.detail-section{border-top:1px solid var(--line);padding:18px 0}.detail-section h3{margin:0 0 14px;font-size:14px}.detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;font-size:13px}.detail-meta span{color:var(--muted);margin-right:10px}.timeline{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;line-height:1.8}.timeline strong{display:block;color:var(--mint);font-weight:500}.timeline time{color:var(--muted)}details summary{cursor:pointer;list-style-position:outside;margin-left:14px;font-size:14px}details[open] summary{margin-bottom:16px}.product-list{font-size:13px;line-height:1.7;padding-left:20px;color:var(--muted)}.event-list{list-style:none;padding:0;margin:0;font-size:12px}.event-list li{border-bottom:1px solid var(--line);padding:9px 0;line-height:1.8}.event-list time{display:block;color:var(--muted)}.drawer-actions{display:flex;gap:10px;flex-wrap:wrap}.drawer-actions>.primary{flex:1}.detail-section form{gap:12px}.detail-section button{font-size:13px}
.settings-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:12px 0 22px}.settings-toolbar>div{display:flex;align-items:center;gap:10px}.settings-panel h2{font-size:19px}.settings-panel .muted{line-height:1.8}.bindings-table{width:100%;border-collapse:collapse;font-size:13px}.bindings-table th{text-align:left;font-weight:500;color:var(--muted);padding:12px}.bindings-table td{border-top:1px solid var(--line);padding:12px}.bindings-table input,.bindings-table select{width:100%}.bindings-table input[type=checkbox]{width:17px;accent-color:var(--mint)}.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 10px;border-top:1px solid var(--line)}.staff-table td,.staff-table th{padding:12px}.staff-table{width:100%;border-collapse:collapse;text-align:left}.staff-table td{border-top:1px solid var(--line)}.staff-table th{color:var(--muted);font-weight:500;font-size:12px}.staff-table button{padding:5px 10px;font-size:12px}.captcha-row{display:flex;align-items:center;gap:10px}.captcha-row input{width:100px}.captcha-row img{width:120px;max-height:50px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;padding:0!important;border:0!important}
.workspace{height:calc(100dvh - 64px);min-height:0}.sidebar{min-height:0}main{height:100%;min-height:0;display:flex;flex-direction:column}.page-heading,.steps,.sync-banner,.list-context{flex-shrink:0}#ledger{display:flex;flex-direction:column;flex:1;min-height:0}.table-scroll{min-height:0;overflow:auto;flex:1}.order-table th{position:sticky;top:0;z-index:1;font-size:13px}.order-table{font-size:14px}.order-table .number{font-size:13px}.badge{font-size:13px}.sidebar button{font-size:16px}.pager{flex-shrink:0;padding:20px 4px}.pager label{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px!important}.settings-panel{min-height:0;overflow:auto;flex:1}.empty{min-height:150px;flex:1}.empty:not([hidden])+.pager{border-top:1px solid var(--line)}
@media(min-width:1450px){.filters .search{width:300px}.order-table{font-size:14px}.order-table .number{font-size:13px}}
@media(max-width:1250px){.heading-copy{display:block}.heading-copy p{margin-top:7px}.filters{gap:7px}.search{width:190px}.filters select{max-width:135px}.top-meta{gap:14px}.top-meta #clock{display:none}.step{min-width:125px;padding:12px 8px}.step-all{min-width:86px;flex-basis:86px}.step-title{font-size:13px}.step strong{font-size:17px;margin-left:4px}.step .step-number{width:24px;height:24px}.order-table td,.order-table th{padding:0 8px}}
@media(max-width:950px){.workspace{grid-template-columns:150px minmax(0,1fr)}main{padding:18px 16px 0}.sidebar button{padding:13px 13px;gap:10px;font-size:13px}.page-heading{align-items:flex-start;flex-direction:column;gap:16px}.filters{width:100%;flex-wrap:wrap}.search{flex:1;min-width:150px}.step{min-width:135px}.brand{font-size:17px}.order-table{min-width:850px}.topbar{padding:0 16px}.bindings-table{min-width:750px}.staff-table{min-width:650px}}
@media(max-width:640px){.topbar{height:58px;gap:12px}.brand{font-size:14px;gap:9px}.brand-mark{width:32px;height:32px;font-size:19px}.top-meta{gap:8px;font-size:11px}.sync-indicator{display:none}#current-user{padding:0;border:0;max-width:100px;overflow:hidden;text-overflow:ellipsis}.workspace{display:block}.sidebar{padding:7px 10px;border-right:0;border-bottom:1px solid var(--line)}.sidebar nav{flex-direction:row;overflow:auto;gap:4px}.sidebar button{white-space:nowrap;width:auto;padding:9px;border-left:0;border-bottom:2px solid transparent;border-radius:4px}.sidebar button.active{border-bottom-color:var(--mint)}.sidebar button img{display:none}.nav-divider,.back-link{display:none}.sidebar nav .nav-divider{display:none}main{padding:18px 14px 0}h1{font-size:24px}.filters select{height:36px;max-width:150px}.filters #person-filter{max-width:120px}.filters .primary{height:36px;padding:7px 10px}.search{height:36px;order:4;flex-basis:100%}.page-heading{margin-bottom:14px}.steps{min-height:65px}.step{min-width:121px;padding:10px 7px}.step-all{min-width:82px}.step small{font-size:10px}.pager{padding:20px 0;gap:10px}.pager>div{gap:8px;font-size:12px}.pager>div:last-child{gap:6px}.sync-banner{align-items:flex-start}.form-grid{grid-template-columns:1fr}.order-drawer{top:58px;height:calc(100vh - 58px);max-height:calc(100vh - 58px);max-width:100vw;width:100vw}.settings-actions,.settings-toolbar{align-items:flex-start;flex-direction:column}dialog{padding:20px}.login-panel{margin-top:45px}}
@media(max-width:640px){.workspace{display:flex;flex-direction:column;height:calc(100dvh - 58px)}.sidebar{flex-shrink:0}.sidebar button{font-size:13px}main{flex:1;height:auto}.pager{padding:13px 0}.empty{padding:30px 10px}}
@media(min-width:1100px){body:has(#order-dialog[open]) #ledger{margin-right:400px}.order-drawer{top:148px;width:380px;height:calc(100dvh - 148px);max-height:calc(100dvh - 148px)}body:has(#order-dialog[open]) .step{min-width:124px}body:has(#order-dialog[open]) .step-all{min-width:80px;flex-basis:80px}body:has(#order-dialog[open]) .order-table td,body:has(#order-dialog[open]) .order-table th{padding-left:8px;padding-right:8px}body:has(#order-dialog[open]) .order-table td:first-child{padding-left:0;padding-right:0}body:has(#order-dialog[open]) .pager>div{gap:10px}}
#sync-dialog{width:650px}.sync-scope{border:1px solid var(--line);padding:14px;border-radius:5px;font-size:13px}.sync-scope ul{list-style:none;padding:0;margin:10px 0 0;max-height:180px;overflow:auto}.sync-scope li{display:flex;flex-direction:column;gap:5px;padding:8px 0;border-top:1px solid var(--line)}.sync-scope span{color:var(--muted);font-size:12px}.sync-scope li:first-child{border-top:0}#sync-default{margin:0;color:var(--mint)}#sync-form p{margin-bottom:0}
.order-table .sku-cell{min-width:160px}.order-table button.sku-name{display:block;width:clamp(160px,17vw,300px);max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;color:var(--text);font-size:13px;padding:4px 0}.order-table button.sku-name:hover{color:var(--mint)}
.order-table th:first-child,.order-table td:first-child{width:64px;min-width:64px;padding:0 8px}.order-select-cell>input,#select-page{width:14px;height:14px;accent-color:var(--mint);margin:0;vertical-align:middle;cursor:pointer}.order-select-cell .selection-space{display:inline-block;width:14px}.order-select-cell .expand{vertical-align:middle;padding:5px}.order-table .more-button{padding:5px!important;min-width:28px}.more-button img{width:17px;height:17px}.order-table tbody tr.checked-row{background:var(--row-checked,#242424)}.order-table tbody tr.context-row{background:var(--row-context,#2c2c2c);outline:1px solid var(--context-line,#5a5a5a);outline-offset:-1px}
@media(max-width:1400px){.order-table td,.order-table th{padding:0 8px}.order-table button.sku-name{width:clamp(160px,15vw,230px)}}
.order-menu{position:fixed;z-index:80;width:240px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;background:var(--menu-bg,#1c1c1c);border:1px solid var(--menu-line,#4e4e4e);border-radius:7px;padding:5px;box-shadow:0 12px 36px #0009}.menu-caption{font-size:11px;color:var(--muted);padding:8px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-menu button{display:block;width:100%;text-align:left;border:0;padding:8px 10px;border-radius:4px;font-size:13px;line-height:1.4}.order-menu button:focus-visible{outline:1px solid var(--mint);outline-offset:-1px;background:var(--menu-focus,#2e2e2e)}.order-menu .classification-item{color:var(--amber)}.menu-separator{height:1px;background:var(--menu-separator,#404040);margin:5px 4px}.selection-bar{display:flex;align-items:center;gap:14px;flex-shrink:0;background:var(--selection-bg,#262626);border:1px solid var(--selection-line,#464646);padding:7px 12px;margin-bottom:10px;font-size:12px}.selection-bar button{font-size:12px}.selection-bar #clear-selection{margin-left:auto;color:var(--muted)}.brush-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px;flex-shrink:0}.brush-tools #brush-summary{font-size:14px;color:var(--amber)}.brush-dates{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.brush-dates input{font-size:12px;padding:6px;max-width:145px}.brush-detail-banner{padding:13px;background:var(--warning-bg,#322c19);border-left:3px solid var(--amber);margin-bottom:18px}.brush-detail-banner strong{color:var(--amber)}.brush-detail-banner p{font-size:12px;color:var(--muted);margin:8px 0}.batch-orders{list-style:none;margin:0;padding:0;max-height:230px;overflow:auto}.batch-orders li{display:flex;justify-content:space-between;gap:15px;font-size:12px;padding:8px 0;border-bottom:1px solid var(--line)}#copy-dialog textarea{margin-top:10px}.notice .text-button{margin-left:10px}
@media(max-width:950px){.brush-tools{align-items:flex-start;flex-direction:column}.brush-dates{flex-wrap:wrap}.order-table th:first-child,.order-table td:first-child{min-width:64px}.selection-bar{gap:6px;flex-wrap:wrap}}@media(max-width:640px){.brush-dates input{max-width:125px}.order-menu button{padding:10px}.selection-bar #clear-selection{margin-left:0}}

#appearance-open{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;font-size:13px}#appearance-open img{width:18px;height:18px}#appearance-dialog{width:520px}.appearance-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.appearance-presets button{display:flex;align-items:center;gap:8px;font-size:13px;padding:10px;text-align:left}.appearance-presets button[aria-pressed=true]{border-color:var(--mint);outline:1px solid var(--mint);outline-offset:-1px;background:var(--step-active,#222222)}.appearance-swatch{width:22px;height:22px;border:1px solid var(--line-strong,#4d4d4d);border-radius:50%;flex-shrink:0}.appearance-custom{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;align-items:end}#background-color{height:40px;width:100%;padding:4px;cursor:pointer}#background-hex{font-family:Consolas,monospace;text-transform:uppercase}#appearance-default{align-self:flex-start}#appearance-form>p{margin-bottom:0}
.order-status-filters{flex-shrink:0;padding:10px 14px 8px;margin-bottom:14px;background:var(--surface);border:1px solid var(--line);border-radius:5px}.status-filter-line{display:flex;align-items:center;gap:10px;min-width:0}.status-filter-label{color:var(--muted);font-size:13px;white-space:nowrap}.status-chip-scroll{display:flex;align-items:center;gap:8px;overflow-x:auto;min-width:0;flex:1;padding:3px;scrollbar-width:thin}.status-chip{border:1px solid var(--line);border-radius:24px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;font-size:13px;line-height:18px;min-height:36px;flex-shrink:0}.status-chip[aria-pressed=true],.status-chip.has-selection{border-color:var(--mint);background:var(--step-active,#222222);color:var(--mint)}.status-chip .status-check{display:none;width:20px;height:20px;padding:3px;border-radius:50%;background:var(--mint);filter:none}.status-chip[aria-pressed=true] .status-check{display:block}.status-chip .status-check img{display:block;width:14px;height:14px;filter:var(--primary-icon-filter,none)}.status-count{font-variant-numeric:tabular-nums;color:var(--muted)}.status-chip[aria-pressed=true] .status-count{color:var(--mint)}#trade-more-open{gap:5px}.status-chevron{width:14px;height:14px;transform:rotate(90deg)}#refund-filter{font-size:13px;max-width:170px;min-width:128px;height:36px;padding:6px 9px}.status-filter-summary{display:flex;align-items:center;gap:12px;min-height:26px;padding-top:5px;font-size:12px;color:var(--muted);flex-wrap:wrap}.status-filter-summary button{font-size:12px;padding:3px 0}.trade-more-panel{position:fixed;inset:auto;margin:0;width:240px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;padding:14px;background:var(--menu-bg,#1c1c1c);color:var(--text);border:1px solid var(--menu-line,#4e4e4e);border-radius:7px;box-shadow:0 12px 36px #0006}.trade-more-panel p{margin-bottom:10px}.trade-more-panel .status-chip{width:100%;justify-content:flex-start;margin-bottom:7px}.trade-more-panel .status-count{margin-left:auto}#trade-more-done{display:block;margin-left:auto}.source-state-pair{display:inline-flex;align-items:center;gap:6px;max-width:220px;vertical-align:middle}.source-state-pair .source-status{max-width:125px;overflow:hidden;text-overflow:ellipsis}.refund-label{font-size:11px;line-height:18px;max-width:94px;overflow:hidden;text-overflow:ellipsis;color:var(--amber);background:var(--warning-bg,#322c19);border-radius:3px;padding:1px 5px}
@media(max-width:1250px){.order-status-filters{padding:8px 10px}.status-filter-line{gap:7px}.status-chip{padding:7px 10px}.status-chip-scroll{gap:6px}#refund-filter{max-width:145px;min-width:116px}}
@media(max-width:950px){.status-filter-line{flex-wrap:wrap}.status-chip-scroll{flex-basis:calc(100% - 140px)}#refund-filter{max-width:100%;margin-left:auto}.status-filter-summary{padding-top:7px}}
@media(max-width:640px){.order-status-filters{margin-bottom:10px;padding:6px 8px}.status-filter-label{font-size:12px}.status-filter-line{gap:5px}.status-chip-scroll{flex-basis:calc(100% - 134px)}.status-chip{padding:7px 9px;font-size:12px}.status-chip[aria-pressed=true] .status-check{width:20px;height:20px}.status-filter-summary{gap:9px;min-height:24px;font-size:11px}#refund-filter{height:32px;font-size:12px}.status-filter-summary button{font-size:11px}}
@media(max-width:640px){#appearance-open{padding:5px}#appearance-open span{display:none}.top-meta #current-user{max-width:86px;white-space:nowrap}.appearance-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.appearance-custom{grid-template-columns:80px minmax(0,1fr)}}

.order-table button.row-rollback{color:var(--amber)}
.order-table button.row-delete{color:var(--danger)!important;border:1px solid var(--danger)!important}
.order-table td:last-child{position:sticky;right:0;z-index:1;background:var(--bg);box-shadow:-1px 0 var(--line)}.order-table th:last-child{right:0;z-index:2;box-shadow:-1px 0 var(--line)}.order-table tr:hover td:last-child{background:var(--row-hover,#1a1a1a)}.order-table tr.selected td:last-child{background:var(--row-selected,#232323)}.order-table tr.checked-row td:last-child{background:var(--row-checked,#242424)}.order-table tr.context-row td:last-child{background:var(--row-context,#2c2c2c)}

body.simple-mode{--bg:#f6f8fb;--surface:#fff;--line:#e0e6ee;--mint:#2563eb;--text:#1f2937;--muted:#6b7280;--hover-bg:#eef4ff;--line-strong:#b9c5d5;--input-bg:#fff;--placeholder:#94a3b8;--accent-hover:#1d4ed8;--nav-active:#e9f1ff;--step-active:#eef4ff;--table-head:#f6f8fb;--table-heading:#64748b;--row-hover:#f7faff;--row-selected:#edf4ff;--pager-bg:#e9f1ff;--danger:#dc4c55;--warning-bg:#fff7e8;--warning-text:#9a6700}
body.simple-mode .topbar{background:#fff}
body.simple-mode .workspace{grid-template-columns:212px minmax(0,1fr);background:var(--bg)}
body.simple-mode.simple-refund-open .workspace{grid-template-columns:212px minmax(0,1fr) 338px}
body.simple-mode .sidebar{display:none}
body.simple-mode main{padding:22px 22px 0;min-width:0;background:var(--bg)}
.simple-order-sidebar{position:relative;z-index:30;isolation:isolate;min-width:0;border-right:1px solid var(--line);background:#fff;padding:20px 13px;overflow:auto}
.simple-primary-nav{display:grid;gap:5px}.simple-primary-nav a,.simple-primary-nav button{width:100%;height:42px;display:flex;align-items:center;justify-content:flex-start;gap:12px;border:0;border-radius:7px;padding:0 13px;color:#475569;font-weight:500}.simple-primary-nav a:hover,.simple-primary-nav button:hover{background:#f4f7fb}.simple-primary-nav button.active{background:var(--nav-active);color:var(--mint);font-weight:700}.simple-primary-nav img{width:18px;height:18px}.simple-primary-nav button.active img{filter:invert(36%) sepia(90%) saturate(1843%) hue-rotate(212deg) brightness(92%)}
.simple-debug-subnav{display:grid;gap:2px;margin:-1px 0 6px 18px;padding:5px 0 5px 12px;border-left:1px solid #d9e3f0}.simple-debug-subnav[hidden]{display:none}.simple-primary-nav .simple-debug-subnav button{height:34px;padding:0 9px;gap:9px;border-radius:6px;color:#64748b;font-size:12px}.simple-primary-nav .simple-debug-subnav button img{width:15px;height:15px;opacity:.78}.simple-primary-nav .simple-debug-subnav button:hover{color:#2563eb;background:#f2f6fd}.simple-primary-nav .simple-debug-subnav button.active{color:#2563eb;background:#edf4ff;font-weight:700}.simple-primary-nav .simple-debug-subnav button.active img{filter:invert(36%) sepia(90%) saturate(1843%) hue-rotate(212deg) brightness(92%);opacity:1}
.simple-nav-divider{height:1px;background:var(--line);margin:20px 10px}.simple-nav-label{margin:0 12px 10px;color:#94a3b8;font-size:11px;font-weight:700;letter-spacing:.08em}
.simple-module-nav{margin:18px 5px 0;padding:12px 8px 9px;border:1px solid #dbe5f2;border-radius:10px;background:#f8fbff}.simple-module-title{display:flex;align-items:center;gap:9px;margin:0 8px 8px;color:#1e3a5f;font-weight:800}.simple-module-title img{width:18px;height:18px}.simple-module-links{gap:3px}.simple-module-links button{height:38px;padding:0 9px;font-size:13px}.simple-module-number{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#e5eefb;color:#356a9a;font-size:11px;font-weight:800}.simple-module-links button.active .simple-module-number{background:#2563eb;color:#fff}
.simple-category-list{display:grid;gap:3px}.simple-category{width:100%;min-height:49px;border:0;border-radius:7px;padding:7px 11px;display:flex;align-items:center;justify-content:space-between;text-align:left;color:#475569}.simple-category>span{min-width:0}.simple-category strong,.simple-category small{display:block}.simple-category strong{font-size:13px}.simple-category small{margin-top:3px;color:#94a3b8;font-size:9px;overflow:hidden;text-overflow:ellipsis}.simple-category b,.simple-refund-subs b{min-width:24px;text-align:center;font-size:11px;color:#64748b;font-variant-numeric:tabular-nums}.simple-category.active{background:var(--nav-active);color:var(--mint)}.simple-category.active b{color:var(--mint)}
.debug-income-panel{min-height:0;overflow:auto;padding-bottom:28px}.debug-income-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}.debug-income-toolbar fieldset{margin:0}.debug-income-grid{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(540px,1.25fr);gap:14px;margin-top:14px}.debug-income-grid table{width:100%;border-collapse:collapse}.debug-income-grid th,.debug-income-grid td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--line)}.debug-income-grid th{color:var(--muted);font-size:12px;font-weight:600}.debug-income-grid td small{display:block;margin-top:3px;color:var(--muted)}
.debug-home-panel{min-height:0;overflow:auto}.debug-home-intro{padding:22px 24px;margin-bottom:16px;border:1px solid #dce5f0;border-radius:12px;background:linear-gradient(135deg,#f9fbff,#edf4ff)}.debug-home-intro h2{margin:7px 0 5px;font-size:25px}.debug-home-intro p{margin:0;color:var(--muted)}.debug-home-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:14px}.debug-home-grid button{position:relative;min-height:145px;padding:22px;display:grid;grid-template-columns:42px 1fr;grid-template-rows:auto auto;column-gap:15px;text-align:left;background:var(--surface);border-color:var(--line);white-space:normal}.debug-home-grid button>span{position:absolute;right:16px;top:13px;color:#b6c2d1;font-size:12px;font-weight:800}.debug-home-grid button>img{grid-row:1/3;width:36px;height:36px;margin-top:3px}.debug-home-grid button>strong{font-size:18px;align-self:end}.debug-home-grid button>small{color:var(--muted);line-height:1.6;align-self:start}.debug-home-grid button:hover{border-color:#8fb4e8;box-shadow:0 8px 22px rgba(40,80,130,.08)}
.simple-refund-subs{display:grid;gap:1px;margin:0 0 4px 17px;padding-left:11px;border-left:1px solid #dbe3ee}.simple-refund-subs button{height:31px;border:0;border-radius:5px;padding:0 7px;display:flex;align-items:center;justify-content:space-between;color:#64748b;font-size:11px}.simple-refund-subs button.active{background:#fff1f2;color:#c2414e;font-weight:700}.simple-refund-subs button.active b{color:#c2414e}
.filter-submit,.simple-filter-reset{display:none}
body.simple-mode .page-heading{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:flex-start;min-height:0;margin-bottom:14px}.simple-date-filter{height:40px;display:flex;flex-direction:row!important;align-items:center;gap:5px!important;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:0 7px;background:#fff}.simple-date-filter input{width:126px;border:0;padding:0 3px;background:transparent;font-size:12px}.simple-date-filter span:not(.sr-only){font-size:11px}.simple-date-filter input:focus-visible{outline-offset:1px}
body.simple-mode .heading-copy{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}body.simple-mode .heading-copy p{margin:0}body.simple-mode .heading-copy h1{font-size:25px}body.simple-mode .filters{justify-content:flex-start;flex-wrap:nowrap;width:100%}body.simple-mode .filters #shop-filter{width:165px;max-width:165px;flex:0 0 165px}body.simple-mode .filters .search{width:auto;min-width:150px;max-width:280px;flex:1;background:#fff}body.simple-mode .filter-submit,body.simple-mode .simple-filter-reset{display:inline-flex;height:40px;align-items:center;justify-content:center}body.simple-mode .filter-submit{min-width:66px;color:#fff;background:var(--mint);border-color:var(--mint);font-weight:700}body.simple-mode .filter-submit:hover{background:var(--accent-hover);border-color:var(--accent-hover)}body.simple-mode .simple-filter-reset{min-width:58px;background:#fff}body.simple-mode .list-context{display:flex;align-items:center;min-height:26px;margin-bottom:9px;color:#7b8797;font-size:11px}
.order-class{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:600}
.order-class.effective{color:var(--mint);background:color-mix(in srgb,var(--mint) 12%,transparent)}
.order-class.invalid{color:var(--muted);background:var(--step-active,#222)}
.order-class.refund{color:var(--danger);background:color-mix(in srgb,var(--danger) 12%,transparent)}
.usage-time{font-weight:600;color:var(--text)}
.refund-type,.refund-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;line-height:1.2;white-space:nowrap}.refund-type{background:#fff1f2;color:#c2414e}.refund-type.shipped{background:#fff7e8;color:#a16207}.refund-status{background:#fff4ed;color:#c25b24}.refund-note-cell{max-width:130px;overflow:hidden;text-overflow:ellipsis}.simple-radio-cell input{width:14px;height:14px;accent-color:var(--mint)}
.assistant-note-cell{max-width:160px}.assistant-note{display:block;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-table tr.deep-linked{background:#fff5cc;box-shadow:inset 3px 0 #e6a700}
body.simple-mode .table-scroll{border:1px solid var(--line);border-radius:7px;background:#fff}body.simple-mode .order-table{min-width:820px;font-size:11px}body.simple-mode .order-table th{height:38px;font-size:10px}body.simple-mode .order-table td{height:45px;padding:0 8px}body.simple-mode .order-table th:first-child,body.simple-mode .order-table td:first-child{width:34px;min-width:34px;padding:0 8px}body.simple-mode .order-table .sku-cell{min-width:105px;max-width:150px;overflow:hidden;text-overflow:ellipsis}body.simple-mode .order-table button.sku-name{width:130px;font-size:11px}body.simple-mode .order-table td:last-child{position:static;background:transparent;box-shadow:none}body.simple-mode .order-table th:last-child{position:sticky;right:auto;box-shadow:none}body.simple-mode .order-table tr:hover td:last-child,body.simple-mode .order-table tr.selected td:last-child{background:transparent}body.simple-mode .pager{padding:14px 2px 18px;font-size:11px}
.simple-refund-panel{min-width:0;border-left:1px solid var(--line);background:#fff;overflow:auto;padding:21px 20px}.simple-refund-content{min-height:100%;font-size:12px}.simple-refund-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:13px}.simple-refund-heading h2{font-size:15px;margin-top:7px;overflow-wrap:anywhere}.simple-refund-heading .icon-button{padding:3px}.simple-refund-heading .icon-button img{width:17px;height:17px}.simple-refund-section{border-top:1px solid var(--line);padding:15px 0}.simple-refund-section h3{font-size:13px;margin:0 0 12px}.simple-refund-meta{display:grid;gap:10px;margin:0}.simple-refund-meta>div{display:grid;grid-template-columns:74px minmax(0,1fr);gap:10px}.simple-refund-meta dt{color:var(--muted)}.simple-refund-meta dd{margin:0;text-align:right;overflow-wrap:anywhere}.simple-refund-section textarea{min-height:90px;background:#f8fafc}.simple-note-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}.simple-note-actions span{line-height:1.55}.simple-note-actions button{padding:7px 11px;font-size:12px}.simple-refund-history h3{display:flex;justify-content:space-between}.simple-refund-history h3 span{color:var(--muted);font-weight:400}.simple-refund-history ol{list-style:none;margin:0;padding:0}.simple-refund-history li{position:relative;display:grid;grid-template-columns:13px minmax(0,1fr);gap:9px;padding:0 0 15px}.simple-refund-history li:not(:last-child)::before{content:"";position:absolute;left:4px;top:11px;bottom:0;width:1px;background:#dbe3ee}.simple-refund-history li i{position:relative;z-index:1;width:9px;height:9px;margin-top:3px;border:2px solid #fff;border-radius:50%;background:#93a7c4;box-shadow:0 0 0 1px #cdd7e5}.simple-refund-history strong{font-size:11px}.simple-refund-history time{display:block;color:var(--muted);font-size:9px;margin-top:2px}.simple-refund-history p{margin:6px 0 0;padding:8px 9px;background:#f7f9fc;border-radius:5px;line-height:1.6;overflow-wrap:anywhere}.simple-refund-empty,.simple-refund-loading{min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;color:var(--muted)}.simple-refund-empty img{width:28px;height:28px;opacity:.45}.simple-refund-empty strong{color:var(--text)}

@media(max-width:1180px){body.simple-mode .workspace,body.simple-mode.simple-refund-open .workspace{grid-template-columns:190px minmax(0,1fr)}.simple-refund-panel{position:fixed;z-index:25;right:0;top:64px;width:350px;height:calc(100dvh - 64px);box-shadow:-14px 0 35px rgba(36,50,70,.13)}body.simple-mode main{padding-left:16px;padding-right:16px}.simple-date-filter{display:none!important}body.simple-mode .filters{flex-wrap:wrap}body.simple-mode .filters .search{max-width:none}}
@media(max-width:700px){body.simple-mode .workspace,body.simple-mode.simple-refund-open .workspace{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);height:calc(100dvh - 58px)}.simple-order-sidebar{border-right:0;border-bottom:1px solid var(--line);padding:7px 10px;overflow-x:auto}.simple-primary-nav{display:flex}.simple-primary-nav a,.simple-primary-nav button{width:auto;height:34px;padding:0 9px;font-size:12px}.simple-primary-nav img,.simple-nav-divider,.simple-nav-label{display:none}.simple-category-list{display:flex;margin-top:5px}.simple-category{width:auto;min-width:115px;min-height:38px;padding:4px 8px}.simple-category small,.simple-refund-subs{display:none}.simple-refund-panel{top:58px;width:100vw;height:calc(100dvh - 58px)}body.simple-mode main{padding-top:12px}body.simple-mode .page-heading{min-height:0}.simple-refund-heading h2{font-size:14px}}
.rollback-route{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.rollback-route>span{color:var(--muted)}.rollback-route strong{color:var(--mint)}.rollback-impact{line-height:1.8;padding:12px 14px;background:var(--warning-bg,#322c19);border-left:3px solid var(--amber);border-radius:3px}
.review-upload{display:flex;flex-direction:column;gap:7px;margin-top:14px;padding:12px;border:1px dashed var(--line-strong,#4d4d4d);border-radius:6px}.review-upload input{padding:7px}.review-image-link,#review-preview{display:block;margin-top:12px;color:var(--mint)}.review-image-link img,#review-preview img{display:block;width:100%;max-height:280px;object-fit:contain;background:var(--input-bg,#121212);border:1px solid var(--line);border-radius:5px;margin-bottom:7px}#review-preview{padding-top:4px}
.danger-button{color:var(--danger)!important;border-color:var(--danger)!important}.danger-button:hover{background:color-mix(in srgb,var(--danger) 14%,transparent)!important}.delete-impact{line-height:1.8;padding:12px 14px;background:var(--warning-bg,#322c19);border-left:3px solid var(--danger);border-radius:3px}.order-time{font-variant-numeric:tabular-nums;color:var(--muted)}
.order-menu .danger-item{color:var(--danger)}

/* 业绩 BI */
.bi-filters{flex-wrap:wrap;justify-content:flex-end}.bi-date-label{height:40px;display:flex;align-items:center;padding:0 12px;border:1px solid var(--line);border-radius:5px;color:var(--muted);font-variant-numeric:tabular-nums}.bi-filters input[type=date]{height:40px;max-width:150px}.bi-date-separator{color:var(--muted)}#bi-export-open{color:var(--mint);border-color:var(--line-strong,#4d4d4d)}
.bi-panel{min-height:0;overflow:auto;flex:1;padding-bottom:24px}.bi-loading{display:grid;place-items:center;min-height:360px;color:var(--muted)}.bi-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid var(--line);border-radius:6px;margin-bottom:16px}.bi-kpis section{padding:18px 17px;min-width:0}.bi-kpis section+section{border-left:1px solid var(--line)}.bi-kpis span,.bi-kpis small{display:block;color:var(--muted)}.bi-kpis strong{display:block;color:var(--mint);font-size:26px;line-height:1.35;margin:5px 0;font-variant-numeric:tabular-nums}.bi-kpis small{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bi-kpis .bi-kpi-return strong{color:var(--danger)}
.bi-main-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,.8fr);gap:16px;margin-bottom:16px}.bi-block{border:1px solid var(--line);border-radius:6px;background:var(--surface);padding:18px}.bi-block h2{font-size:17px}.bi-block-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.bi-legend{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.mint-dot,.bar-dot,.return-dot{width:8px;height:8px;border-radius:50%;background:var(--mint);display:inline-block}.bar-dot,.return-dot{border-radius:1px;background:#6a6a6a;margin-left:10px}.return-dot{background:var(--danger)}.bi-trend canvas{display:block;max-width:100%}
.bi-funnel h2{margin-bottom:20px}.funnel-row{display:grid;grid-template-columns:28px minmax(0,1fr) 34px;gap:10px;align-items:center;margin:16px 0}.funnel-number{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--step-active,#222222);color:var(--mint);font-size:12px}.funnel-row>div>span{display:block;font-size:12px;margin-bottom:7px}.funnel-row strong{text-align:right;color:var(--mint);font-size:19px;font-weight:500}.funnel-bar{height:6px;background:var(--line);border-radius:6px;overflow:hidden}.funnel-bar i{display:block;height:100%;background:var(--mint);border-radius:6px}.funnel-row:nth-child(3) .funnel-bar i{background:var(--blue)}.funnel-row:nth-child(4) .funnel-bar i{background:var(--amber)}
.bi-ranking{padding:0}.bi-ranking .bi-block-title{padding:14px 18px;margin:0;border-bottom:1px solid var(--line)}.bi-role-tabs{display:flex;border:1px solid var(--line);border-radius:18px;padding:2px}.bi-role-tabs button{border:0;border-radius:15px;padding:5px 16px;font-size:12px}.bi-role-tabs button[aria-pressed=true]{background:var(--mint);color:var(--on-accent,#151515);font-weight:600}.bi-ranking table{width:100%;border-collapse:collapse;font-size:13px}.bi-ranking th{height:38px;text-align:left;color:var(--muted);font-size:12px;font-weight:500;padding:0 16px}.bi-ranking td{height:38px;border-top:1px solid var(--line);padding:0 16px;font-variant-numeric:tabular-nums}.rank{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--line);font-size:11px}.rank-1{background:#d6ad45;color:#1d1604}.rank-2{background:#8da4ad;color:#0e0e0e}.rank-3{background:#b87948;color:#140b05}.completion{display:inline-block;width:70px;height:5px;background:var(--line);margin-right:8px;vertical-align:middle;border-radius:5px;overflow:hidden}.completion span{display:block;height:100%;background:var(--mint)}
.export-dialog{width:560px}.export-dialog fieldset{display:block}.export-dialog fieldset>.check{margin-right:22px}.export-presets{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:14px}.export-presets button{padding:6px 11px;font-size:12px}.export-presets button[aria-pressed=true]{border-color:var(--mint);color:var(--mint);background:var(--step-active,#222222)}.export-dates{margin-top:8px}
.small-payment-cell{width:106px;min-width:106px}.order-table button.small-payment-button{border:1px solid var(--line)!important;border-radius:999px;padding:3px 9px!important;min-width:68px;color:var(--muted)}.order-table button.small-payment-button:hover{border-color:var(--mint)!important;color:var(--mint)}.order-table button.small-payment-button.receipt,.small-payment-readonly.receipt{color:var(--mint)}.order-table button.small-payment-button.payment,.small-payment-readonly.payment{color:var(--amber)}.small-payment-readonly{font-size:12px;white-space:nowrap}.small-payment-detail{display:flex;align-items:center;justify-content:space-between;gap:14px}.small-payment-detail h3{margin-bottom:7px}.small-payment-detail p{font-size:13px;margin:0 0 4px}.small-payment-types{display:grid;grid-template-columns:1fr 1fr;gap:10px}.small-payment-types label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:6px;padding:12px;cursor:pointer}.small-payment-types label:has(input:checked){border-color:var(--mint);background:var(--step-active,#222222)}.small-payment-types input{accent-color:var(--mint)}.small-payment-types span,.small-payment-types small{display:block}.small-payment-types small{color:var(--muted);margin-top:4px}.small-payment-preview{padding:12px 14px;margin:0;background:var(--step-active,#222222);border-left:3px solid var(--mint);font-weight:600}.danger-text{color:var(--danger);margin-right:auto}
@media(max-width:1100px){.bi-kpis{grid-template-columns:repeat(3,1fr)}.bi-kpis section:nth-child(4){border-left:0}.bi-kpis section:nth-child(n+4){border-top:1px solid var(--line)}.bi-main-grid{grid-template-columns:1fr}.bi-funnel{display:none}}
@media(max-width:640px){.bi-filters{justify-content:flex-start}.bi-date-label{height:36px}.bi-filters input[type=date]{height:36px;max-width:137px}.bi-kpis{grid-template-columns:1fr 1fr}.bi-kpis section{padding:12px}.bi-kpis section:nth-child(odd){border-left:0}.bi-kpis section:nth-child(n+3){border-top:1px solid var(--line)}.bi-kpis strong{font-size:20px}.bi-main-grid{display:block}.bi-block{padding:12px}.bi-ranking{margin-top:12px}.bi-ranking table{min-width:760px}.bi-legend{display:none}.export-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.export-presets{gap:5px}}
/* 中转站收益 */
.profit-panel{min-height:0;overflow:auto;flex:1;padding-bottom:28px}.profit-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}.profit-toolbar h2{font-size:22px;margin:5px 0}.profit-toolbar p{margin:0}.profit-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);border-radius:6px;margin-bottom:16px;background:var(--surface)}.profit-kpis section{padding:16px 20px}.profit-kpis section+section{border-left:1px solid var(--line)}.profit-kpis span,.profit-kpis small{display:block;color:var(--muted)}.profit-kpis strong{display:block;color:var(--mint);font-size:24px;margin:5px 0}.profit-work-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}.profit-editor{display:grid;gap:16px}.profit-card,.profit-calc{background:var(--surface);border:1px solid var(--line);border-radius:6px}.profit-card-title{display:flex;align-items:center;gap:12px;padding:15px 18px;border-bottom:1px solid var(--line)}.profit-card-title>div{min-width:0}.profit-card-title h3{margin:0 0 3px}.profit-card-title p{margin:0}.profit-card-title>button,.profit-card-title>.profit-status{margin-left:auto}.profit-step{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--step-active,#222222);color:var(--mint);font-weight:700;flex-shrink:0}.profit-customer-grid{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1.3fr) minmax(160px,.8fr);gap:22px;padding:18px;align-items:center}.profit-customer-grid input{font-size:20px;font-weight:700;color:var(--mint)}.profit-proof{display:grid;gap:8px}.profit-proof>div:last-child{display:flex;align-items:center;gap:8px}.button-like{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:5px;padding:8px 13px;cursor:pointer;color:var(--text)}.profit-image-preview{height:56px;display:flex;align-items:center;justify-content:center;border:1px dashed var(--line-strong,#4d4d4d);border-radius:5px;overflow:hidden}.profit-image-preview img{width:100%;height:100%;object-fit:cover}.profit-image-preview span{padding:7px}.profit-meta{display:flex;flex-direction:column;gap:6px}.profit-meta strong{font-size:13px}.profit-status{display:inline-flex;padding:4px 9px;border-radius:999px;background:var(--warning-bg,#322c19);color:var(--amber);font-size:12px}.profit-status.confirmed{background:var(--step-active,#222222);color:var(--mint)}.profit-station-table,.profit-history-table,.bi-profit table{width:100%;border-collapse:collapse;font-size:13px}.profit-station-table th,.profit-history-table th,.bi-profit th{height:36px;text-align:left;color:var(--muted);font-size:12px;font-weight:500;padding:0 18px}.profit-station-table td,.profit-history-table td,.bi-profit td{height:42px;border-top:1px solid var(--line);padding:0 18px}.profit-station-table button{border:0;padding:5px 7px;color:var(--mint)}.profit-history-table tbody tr{cursor:pointer}.profit-history-table tbody tr:hover{background:var(--row-hover,#1a1a1a)}.negative{color:var(--danger)!important}.profit-calc{position:sticky;top:0;padding:20px}.profit-calc h3{font-size:20px;margin:6px 0 18px}.profit-calc dl{margin:0 0 18px}.profit-calc dl>div{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.profit-calc dt{color:var(--muted)}.profit-calc dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.profit-calc .profit-net{padding:18px 0}.profit-calc .profit-net dt{color:var(--text);font-weight:700}.profit-calc .profit-net dd{font-size:27px;color:var(--mint)}.profit-calc>button{width:100%;margin-top:9px}.profit-calc>p:last-child{margin:12px 0 0;line-height:1.7}.bi-profit{margin-top:16px;padding:0}.bi-profit .bi-block-title{padding:15px 18px;margin:0;border-bottom:1px solid var(--line)}.bi-profit-kpis{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line)}.bi-profit-kpis section{padding:14px 18px}.bi-profit-kpis section+section{border-left:1px solid var(--line)}.bi-profit-kpis span{display:block;color:var(--muted);font-size:12px}.bi-profit-kpis strong{display:block;color:var(--mint);font-size:20px;margin-top:5px}
@media(max-width:1100px){.profit-work-grid{grid-template-columns:1fr}.profit-calc{position:static}.profit-customer-grid{grid-template-columns:1fr 1fr}.profit-meta{grid-column:1/-1}.profit-kpis{grid-template-columns:repeat(2,1fr)}.profit-kpis section:nth-child(3){border-left:0;border-top:1px solid var(--line)}.profit-kpis section:nth-child(4){border-top:1px solid var(--line)}}
@media(max-width:640px){.profit-toolbar{align-items:flex-start;flex-direction:column}.profit-toolbar .filters{display:grid;grid-template-columns:1fr 1fr}.profit-customer-grid{grid-template-columns:1fr}.profit-meta{grid-column:auto}.profit-station-table,.profit-history-table{min-width:680px}.profit-kpis section{padding:12px}.profit-kpis strong{font-size:19px}.bi-profit-kpis{grid-template-columns:1fr 1fr}.bi-profit-kpis section:nth-child(3){border-left:0;border-top:1px solid var(--line)}.bi-profit-kpis section:nth-child(4){border-top:1px solid var(--line)}}

/* 调试看台：柔和灰白底、蓝色调度信息、琥珀超时、红色退货。 */
.debug-filters input[type=date]{height:40px}.debug-refresh{height:40px;color:#315fba;border-color:#98acd1}.debug-refresh img{width:17px}.debug-panel{--debug-blue:#4774d9;--debug-blue-soft:#e4ebfa;--debug-amber:#d28a24;--debug-red:#b95757;min-height:0;overflow:auto;flex:1;padding:0 0 28px}.debug-loading{display:grid;place-items:center;min-height:360px;color:var(--muted)}.debug-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));background:var(--surface);border:1px solid var(--line);border-radius:7px;margin-bottom:15px}.debug-kpis section{padding:15px 18px;min-width:0}.debug-kpis section+section{border-left:1px solid var(--line)}.debug-kpis span,.debug-kpis small{display:block;color:var(--muted)}.debug-kpis span{font-size:12px}.debug-kpis strong{display:block;margin:5px 0 2px;font-size:24px;color:var(--debug-blue);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.debug-kpis small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.debug-kpis .is-return strong{color:var(--debug-red)}.debug-kpis .is-warning strong{color:var(--debug-amber)}
.debug-main-grid{display:grid;grid-template-columns:minmax(620px,2.6fr) minmax(260px,.7fr);gap:15px;margin-bottom:15px}.debug-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:7px;min-width:0}.debug-card-title{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border-bottom:1px solid var(--line)}.debug-card-title h2{font-size:17px;margin:0 0 3px}.debug-card-title p{margin:0}.debug-legend{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;white-space:nowrap}.debug-key{width:10px;height:6px;border-radius:2px;background:var(--debug-blue)}.debug-key.overtime{margin-left:7px;background:var(--debug-amber)}.debug-key.returned{margin-left:7px;background:var(--debug-red)}
.debug-concurrency{height:86px;display:grid;grid-template-columns:94px repeat(14,minmax(24px,1fr));align-items:end;padding:13px 18px 8px;border-bottom:1px solid var(--line)}.debug-concurrency-label{align-self:center;color:var(--muted);font-size:11px}.debug-hour{text-align:center;height:64px;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;color:var(--muted);font-size:9px}.debug-hour-bar{height:45px;display:flex;align-items:flex-end;justify-content:center;position:relative}.debug-hour-bar i{display:block;width:48%;min-height:2px;background:#90a9dc;border-radius:2px 2px 0 0}.debug-hour-bar b{position:absolute;top:-2px;font-size:9px;color:#47639b;font-weight:500}.debug-timeline{padding:0 18px 14px;overflow:auto;min-height:260px}.debug-time-head,.debug-person-line{display:grid;grid-template-columns:94px minmax(600px,1fr)}.debug-time-head{height:32px;align-items:end}.debug-time-head>div{height:100%;position:relative;border-bottom:1px solid var(--line)}.debug-time-head>div span{position:absolute;bottom:6px;transform:translateX(-50%);font-size:9px;color:var(--muted)}.debug-person-line{min-height:54px}.debug-person-label{display:flex;flex-direction:column;justify-content:center;padding-right:12px}.debug-person-label strong{font-size:12px}.debug-person-label small{font-size:9px;color:var(--muted);margin-top:3px}.debug-track{position:relative;border-bottom:1px solid var(--line);background:repeating-linear-gradient(90deg,transparent 0,transparent calc(14.2857% - 1px),rgba(130,140,153,.18) calc(14.2857% - 1px),rgba(130,140,153,.18) 14.2857%)}.debug-task{position:absolute;top:14px;height:25px;min-width:8px;padding:0 6px;border:0;border-radius:3px;background:var(--debug-blue);color:#fff;overflow:hidden;text-overflow:ellipsis;font-size:10px;text-align:left;z-index:2}.debug-task:hover,.debug-task:focus-visible{filter:brightness(.93);background:var(--debug-blue)}.debug-task.overtime{background:var(--debug-amber)}.debug-task.returned{background:var(--debug-red)}.debug-task.active{box-shadow:0 0 0 2px rgba(71,116,217,.2)}.debug-task span{overflow:hidden;text-overflow:ellipsis}.debug-now{position:absolute;top:0;bottom:0;width:1px;background:#26364f;z-index:1}.debug-now span{position:absolute;top:1px;transform:translateX(-50%);font-size:8px;color:#26364f;background:var(--surface);padding:1px 2px}.debug-empty{padding:34px 16px;text-align:center;color:var(--muted);font-size:12px}
.debug-task-detail{position:absolute;z-index:8;right:20px;top:70px;width:270px;padding:17px;background:#f8f9fa;border:1px solid #b8c1cc;border-radius:6px;box-shadow:0 10px 30px rgba(40,52,69,.18)}.debug-task-detail h3{margin:6px 20px 12px 0;line-height:1.5}.debug-task-detail dl{margin:0}.debug-task-detail dl>div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #dfe3e8;padding:7px 0;font-size:11px}.debug-task-detail dt{color:var(--muted)}.debug-task-detail dd{margin:0;text-align:right}.debug-detail-close{position:absolute;right:8px;top:8px;border:0;padding:2px 7px;font-size:18px}.debug-return-note{margin:10px 0 0;color:var(--debug-red);font-size:11px}
.live-pill{border:1px solid #93a8ce;border-radius:12px;color:#315fba;padding:3px 8px;font-size:10px}.debug-status-list{padding:4px 16px 10px}.debug-status-list article{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.debug-status-list article:last-child{border-bottom:0}.debug-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#d9e1ee;color:#354e79;font-weight:700}.debug-status-list article>div{min-width:0}.debug-status-list strong,.debug-status-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.debug-status-list strong{font-size:12px}.debug-status-list small{color:var(--muted);font-size:9px;margin-top:4px}.debug-state{color:var(--muted);font-size:10px}.debug-state.busy{color:var(--debug-blue);font-weight:600}.debug-bottom-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:15px}.debug-table-card .table-scroll{max-height:270px}.debug-table-card table{width:100%;border-collapse:collapse;font-size:12px}.debug-table-card th{height:34px;color:var(--muted);font-size:10px;text-align:left;font-weight:500;padding:0 16px;background:var(--table-head)}.debug-table-card td{height:36px;padding:0 16px;border-top:1px solid var(--line);font-variant-numeric:tabular-nums}.warning-text{color:var(--debug-amber)}.return-text{color:var(--debug-red)}
@media(max-width:1200px){.debug-kpis{grid-template-columns:repeat(3,1fr)}.debug-kpis section:nth-child(4){border-left:0}.debug-kpis section:nth-child(n+4){border-top:1px solid var(--line)}.debug-main-grid{grid-template-columns:1fr}.debug-status-list{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.debug-bottom-grid{grid-template-columns:1fr}}
@media(max-width:640px){.debug-filters input[type=date]{height:36px}.debug-kpis{grid-template-columns:1fr 1fr}.debug-kpis section:nth-child(4){border-left:1px solid var(--line)}.debug-kpis section:nth-child(odd){border-left:0}.debug-kpis section:nth-child(n+3){border-top:1px solid var(--line)}.debug-kpis strong{font-size:19px}.debug-main-grid{display:block}.debug-status-card{margin-top:12px}.debug-status-list{display:block}.debug-card-title{padding:12px}.debug-legend{display:none}.debug-concurrency,.debug-timeline{min-width:760px}.debug-timeline-card{overflow:auto}.debug-bottom-grid{display:block}.debug-table-card+ .debug-table-card{margin-top:12px}.debug-table-card table{min-width:540px}}

.debug-now span{white-space:nowrap}

/* 收款核对仅用于2号实例；金额来自ERP，不改变订单或收款状态。 */
.order-date-presets{display:none}
body.simple-mode .order-date-presets{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 12px;flex-shrink:0;color:#64748b;font-size:12px}
.order-date-presets>span{margin-right:6px}.order-date-presets button{border-color:#dbe3ef;background:#fff;padding:6px 12px;font-size:12px}.order-date-presets button[aria-pressed=true]{background:#e8f0ff;border-color:#b8cef8;color:#2563eb;font-weight:700}
.receipts-panel{flex:1;min-height:0;overflow:auto;padding-bottom:20px}
.receipt-filters{flex-wrap:wrap;align-items:center;gap:10px}.receipt-filters input,.receipt-filters select{background:#fff;border-color:#dbe3ef}.receipt-filters .search{background:#fff;width:210px;border-color:#dbe3ef}.receipt-rule{font-size:12px;line-height:1.8;color:#64748b;margin:14px 0}
.receipt-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 18px}.receipt-kpis section{background:#fff;border:1px solid #dce4ef;border-radius:7px;padding:20px;min-width:0}.receipt-kpis span,.receipt-kpis small{display:block;color:#64748b;font-size:12px}.receipt-kpis strong{display:block;color:#1e3a5f;font-size:27px;margin:9px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.receipt-kpis section:nth-child(2) strong{color:#078576}.receipt-kpis section:nth-child(3) strong{color:#b66b08}.receipt-kpis section:nth-child(4) strong{color:#9d4f34}.receipt-kpis small{font-size:11px;line-height:1.6}
.receipt-list{background:#fff;border:1px solid #dce4ef;border-radius:7px;overflow:hidden}.receipt-status-tabs{display:flex;gap:6px;padding:14px 16px;flex-wrap:wrap;border-bottom:1px solid #e3eaf4}.receipt-status-tabs button{border:0;font-size:13px;color:#64748b;padding:9px 12px;display:flex;align-items:center;gap:9px}.receipt-status-tabs button[aria-pressed=true]{color:#2563eb;background:#eaf2ff;font-weight:700}.receipt-status-tabs b{font-size:11px;font-variant-numeric:tabular-nums}.receipt-quality-note{padding:10px 18px;margin:0;background:#fff9ed;color:#936023;font-size:12px}.receipt-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}.receipt-table th{background:#f7f9fc;color:#64748b;font-weight:500;text-align:left;padding:13px 16px;border-bottom:1px solid #e3eaf4}.receipt-table td{padding:15px 16px;border-bottom:1px solid #edf1f6;vertical-align:middle;line-height:1.7}.receipt-table tr:hover{background:#f8fbff}.receipt-table td>small{display:block;color:#7b899d;font-size:10px}.receipt-order-number{font-weight:600;color:#24334d;font-variant-numeric:tabular-nums}.receipt-times span{display:block;color:#64748b;font-size:11px}.receipt-sku{max-width:180px;white-space:normal;word-break:break-word}.receipt-amount{font-variant-numeric:tabular-nums;font-weight:600}.receipt-negative{color:#a55633}.receipt-badge,.receipt-refund-flag{display:inline-flex;padding:3px 8px;border-radius:4px;font-size:11px;background:#f0f3f7;color:#64748b}.receipt-badge.received{background:#e5f6ee;color:#157450}.receipt-badge.unreceived{background:#fff3dd;color:#a86500}.receipt-badge.partial{background:#ffebe5;color:#b05232}.receipt-refund-flag{color:#c95765;background:#fff0f2;font-size:10px;padding:1px 5px;margin-top:4px}.receipt-table .receipt-empty{text-align:center;height:170px;color:#7b899d;white-space:normal}.receipt-list .pager{padding:14px 18px}
@media(max-width:1100px){.receipt-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-table{min-width:1000px}}
@media(max-width:640px){.receipt-kpis{gap:8px}.receipt-kpis section{padding:13px 11px}.receipt-kpis strong{font-size:21px}.receipt-filters .search{min-width:180px;flex:1}.receipt-status-tabs{padding:9px;gap:2px}.receipt-status-tabs button{padding:8px;font-size:12px}.receipt-list .pager{font-size:11px;padding:12px}.receipt-rule{font-size:11px}}

/* 2号系统经营 BI：用户选定的金额流向方案。 */
body.simple-mode.simple-bi-open main{padding:18px 18px 0}
body.simple-mode.simple-bi-open .page-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;margin-bottom:14px}
body.simple-mode.simple-bi-open .heading-copy{flex:0 0 auto;gap:14px}
body.simple-mode.simple-bi-open .heading-copy h1{font-size:26px;color:#152238}
body.simple-mode.simple-bi-open .bi-filters{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:1 1 620px;min-width:0;flex-wrap:wrap}
.bi-presets{display:flex;gap:0;flex-wrap:nowrap;flex:0 0 auto;min-inline-size:0;border:1px solid #dbe3ef;border-radius:6px;padding:0;margin:0;overflow:hidden;background:#fff}
.bi-presets label{cursor:pointer;position:relative;flex:1;min-width:0}.bi-presets input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.bi-presets span{display:grid;place-items:center;height:40px;width:60px;min-width:0;padding:0 10px;border-right:1px solid #e3e8f0;color:#334155;font-size:12px;white-space:nowrap}.bi-presets label:last-child span{border-right:0}.bi-presets input:checked+span{background:#2563eb;color:#fff;font-weight:700}.bi-presets input:focus-visible+span{outline:2px solid #2563eb;outline-offset:-3px}
body.simple-mode.simple-bi-open .bi-date-label,body.simple-mode.simple-bi-open .bi-filters select{height:40px;background:#fff;border-color:#dbe3ef;color:#334155;font-size:12px}
body.simple-mode.simple-bi-open .bi-date-label{min-width:116px;justify-content:center;color:#334155}
body.simple-mode.simple-bi-open .bi-filters select{min-width:118px}
body.simple-mode.simple-bi-open #bi-export-open{display:none}
body.simple-mode.simple-bi-open .bi-panel{padding-bottom:24px}
body.simple-mode.simple-bi-open .bi-block{background:#fff;border-color:#dce4ef;border-radius:6px;box-shadow:0 1px 2px rgba(28,45,70,.025)}
.bi-kpis{grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border-color:#dce4ef;border-radius:6px;margin-bottom:16px}
.bi-kpis section{display:flex;align-items:center;gap:16px;min-height:132px;padding:18px 22px}.bi-kpis section+section{border-left:1px solid #e0e7f0}.bi-kpis section>div{min-width:0}.bi-kpis section>div>span,.bi-kpis section b,.bi-kpis section small{display:block}.bi-kpis section>div>span{color:#1d2a40;font-weight:700;font-size:13px}.bi-kpis section strong{margin:7px 0 2px;color:#2563eb;font-size:27px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bi-kpis section b{color:#24334d;font-size:13px}.bi-kpis section small{margin-top:6px;color:#8090a6;font-size:10px}.bi-kpis .shipped strong{color:#0891a0}.bi-kpis .refund strong{color:#ef5350}.bi-kpis .post-refund strong{color:#f08a00}
.bi-kpi-icon{display:grid!important;place-items:center;width:50px;height:50px;border-radius:50%;background:#eaf2ff;flex:0 0 50px}.bi-kpi-icon img{width:25px;height:25px;filter:invert(36%) sepia(91%) saturate(2016%) hue-rotate(208deg) brightness(96%)}.bi-kpis .shipped .bi-kpi-icon{background:#e2f7f7}.bi-kpis .shipped .bi-kpi-icon img{filter:invert(46%) sepia(78%) saturate(1000%) hue-rotate(137deg) brightness(85%)}.bi-kpis .refund .bi-kpi-icon{background:#ffe9eb}.bi-kpis .refund .bi-kpi-icon img{filter:invert(47%) sepia(96%) saturate(2743%) hue-rotate(330deg) brightness(102%)}.bi-kpis .post-refund .bi-kpi-icon{background:#fff0df}.bi-kpis .post-refund .bi-kpi-icon img{filter:invert(55%) sepia(95%) saturate(1821%) hue-rotate(3deg) brightness(99%)}
.bi-flow-card{padding:17px 18px 16px;margin-bottom:16px;min-height:318px}.bi-flow-card .bi-block-title{margin-bottom:4px}.bi-flow-card .bi-block-title h2{font-size:20px;color:#142138}.bi-flow-card .bi-block-title p{margin:4px 0 0}.bi-flow-rates{display:flex;align-items:center;gap:20px;color:#64748b;font-size:12px}.bi-flow-rates strong{margin-left:8px;color:#2563eb;font-size:20px}.bi-flow-rates i{display:block;width:1px;height:24px;background:#dfe6ef}
.bi-flow{min-height:230px}.bi-flow-canvas{position:relative;height:220px;margin-top:2px;overflow:hidden}.bi-flow-canvas>svg{position:absolute;inset:0;width:100%;height:100%}.bi-flow-canvas>div{position:absolute;z-index:1}.flow-order{left:0;top:72px;width:16%}.flow-shipped{left:32.5%;top:16px;width:18%}.flow-unshipped{left:32.5%;top:143px;width:18%}.flow-refund{left:59%;top:77px;width:16%}.flow-post{right:0;top:6px;width:18%}.flow-pre{right:0;top:140px;width:18%}
.bi-flow-node{min-height:82px;display:flex;align-items:center;gap:13px;padding:13px 15px;border-radius:6px;background:#e9f2ff;color:#174fbe}.bi-flow-node>img{width:26px;height:26px;filter:invert(37%) sepia(93%) saturate(1810%) hue-rotate(205deg) brightness(94%)}.bi-flow-node>div{min-width:0}.bi-flow-node span,.bi-flow-node small{display:block}.bi-flow-node span{color:#23324b;font-weight:700;font-size:13px}.bi-flow-node strong{display:block;margin:3px 0;color:inherit;font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bi-flow-node small{color:#64748b;font-size:10px}.bi-flow-node.shipped{background:#e3f7f8;color:#0893a3}.bi-flow-node.shipped>img{filter:invert(45%) sepia(77%) saturate(1188%) hue-rotate(140deg) brightness(87%)}.bi-flow-node.unshipped{background:#eaf2ff;color:#2563eb}.bi-flow-node.refund{background:#ffe9eb;color:#ef5350}.bi-flow-node.refund>img,.bi-flow-node.pre-refund>img{filter:invert(50%) sepia(70%) saturate(2052%) hue-rotate(321deg) brightness(102%)}.bi-flow-node.post-refund{background:#fff0df;color:#ed7a00}.bi-flow-node.post-refund>img{filter:invert(51%) sepia(89%) saturate(1958%) hue-rotate(5deg) brightness(100%)}.bi-flow-node.pre-refund{background:#fff0f1;color:#df5d58}.bi-quality-note{margin:0;padding-top:4px;color:#9a6700;font-size:11px}
.bi-bottom-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(390px,.9fr);gap:16px}.bi-bottom-grid .bi-block{padding:0;min-width:0}.bi-bottom-grid .bi-block-title{padding:14px 18px;margin:0}.bi-bottom-grid .bi-block-title h2{font-size:18px;color:#142138}.bi-daily .table-scroll{max-height:310px;border:0;border-radius:0}.bi-daily table{width:100%;border-collapse:collapse;font-size:11px;min-width:650px}.bi-daily th{height:38px;padding:0 16px;text-align:left;color:#64748b;background:#f7f9fc;font-size:10px;font-weight:500}.bi-daily td{height:43px;padding:0 16px;border-top:1px solid #e6ebf2;font-variant-numeric:tabular-nums;color:#27364d}.bi-daily tr.today{background:#eef5ff}.bi-daily tr.today td:first-child,.bi-daily tr.today td:last-child{color:#2563eb}
.bi-shop-legend{display:flex;align-items:center;gap:7px;color:#64748b;font-size:10px}.bi-shop-legend span{display:inline-block;width:10px;height:10px;border-radius:50%;background:#3b82f6}.bi-shop-legend span.shipped{margin-left:10px;background:#8bbcf6}.bi-shop-bars{padding:0 18px 14px}.bi-shop-bars article{display:grid;grid-template-columns:155px minmax(0,1fr);gap:12px;align-items:center;padding:10px 0;border-top:1px solid #e8edf3}.bi-shop-bars article:first-child{border-top:0}.bi-shop-name strong,.bi-shop-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bi-shop-name strong{font-size:12px}.bi-shop-name small{margin-top:3px;color:#8794a7;font-size:9px}.bi-shop-series{display:grid;gap:7px}.bi-shop-series>div{display:grid;grid-template-columns:minmax(40px,1fr) 78px;align-items:center;gap:8px}.bi-shop-series i{display:block;height:13px;min-width:0;border-radius:2px;background:#3b82f6}.bi-shop-series i.shipped{height:11px;background:#8bbcf6}.bi-shop-series span{text-align:right;color:#334155;font-size:10px;font-variant-numeric:tabular-nums}
@media(max-width:1250px){body.simple-mode.simple-bi-open .page-heading{align-items:flex-start;flex-direction:column}body.simple-mode.simple-bi-open .bi-filters{justify-content:flex-start}.bi-kpis section{padding:16px 14px;gap:10px}.bi-kpi-icon{width:42px;height:42px;flex-basis:42px}.bi-flow-canvas{overflow-x:auto;min-width:920px}.bi-flow{overflow-x:auto}.bi-bottom-grid{grid-template-columns:1fr}.bi-shop-bars article{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:760px){body.simple-mode.simple-bi-open main{padding:12px 10px 0}body.simple-mode.simple-bi-open .bi-filters{width:100%;justify-content:flex-start;flex-wrap:wrap}.bi-presets span{min-width:50px;padding:0 9px}.bi-kpis{grid-template-columns:1fr 1fr}.bi-kpis section{min-height:112px;padding:11px 10px;gap:8px}.bi-kpis section:nth-child(3){border-left:0}.bi-kpi-icon{width:34px;height:34px;flex-basis:34px}.bi-kpi-icon img{width:20px;height:20px}.bi-kpis section strong{font-size:19px;overflow:visible;text-overflow:clip}.bi-kpis section>div>span{font-size:11px}.bi-kpis section b{font-size:11px}.bi-kpis section small{font-size:9px}.bi-flow-rates{align-items:flex-start;flex-direction:column;gap:4px}.bi-flow-rates i{display:none}.bi-flow-card{padding:13px}.bi-bottom-grid{display:block}.bi-shops{margin-top:12px}.bi-shop-bars article{grid-template-columns:120px minmax(0,1fr)}.bi-shop-legend{display:none}}
/* Keep all monetary values readable at normal laptop widths. */
.bi-kpis section{padding:18px 14px;gap:10px}.bi-kpi-icon{width:40px;height:40px;flex-basis:40px}.bi-kpis section strong{font-size:clamp(20px,1.7vw,27px)}
.bi-flow{overflow-x:auto}.bi-flow-canvas{min-width:920px;height:235px}.flow-order{width:18%}.flow-refund{width:18%}.bi-flow-node{padding:12px 10px;gap:8px}.bi-flow-node>img{width:20px;height:20px;flex-shrink:0}.bi-flow-node strong{font-size:17px}
@media(max-width:1450px){.bi-bottom-grid{grid-template-columns:1fr}}
@media(max-width:1250px){body.simple-mode.simple-bi-open .bi-filters{flex:none;width:100%}.bi-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.bi-kpis section:nth-child(3){border-left:0}.bi-kpis section:nth-child(n+3){border-top:1px solid #e0e7f0}}
@media(max-width:760px){.bi-kpis section{padding:14px 10px;display:block;position:relative}.bi-kpis section>div>span{padding-right:25px;min-height:28px}.bi-kpi-icon{position:absolute;top:10px;right:8px;width:26px;height:26px;min-height:0}.bi-kpi-icon img{width:16px;height:16px}.bi-kpis section strong{font-size:19px}.bi-kpis section small{font-size:9px}}
/* Approved r45: one order cohort, three sibling states, one shipped subset. */
.bi-flow-card{padding:22px 24px 18px}
.bi-flow-card .bi-block-title{margin-bottom:18px}
.bi-flow-card .bi-block-title h2{font-size:24px}
.bi-flow-card .bi-block-title p{font-size:13px;line-height:1.6;margin-top:7px}
.bi-flow{overflow:visible;min-height:0}
.bi-flow-scroll-hint{display:none;color:#64748b;font-size:12px;margin:0 0 10px}
.bi-flow-scroll{overflow-x:auto;overscroll-behavior-x:contain;border-radius:6px}
.bi-flow-scroll:focus-visible{outline:2px solid #2563eb;outline-offset:4px}
.bi-flow-canvas{--node-height:clamp(98px,7.1vw,142px);position:relative;min-width:920px;height:clamp(330px,24vw,470px);margin:0;overflow:hidden}
.bi-flow-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.simple-mode #ledger[aria-busy=true] .table-scroll{opacity:.72;transition:opacity .12s}.simple-mode #ledger[aria-busy=true]::before{content:"正在更新…";position:absolute;right:28px;top:205px;z-index:4;padding:5px 9px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted);font-size:11px;box-shadow:0 3px 12px #0001}.simple-mode main{position:relative}
.bi-flow-canvas>div{position:absolute;z-index:1}
.bi-flow-canvas .flow-order{left:0;top:50%;transform:translateY(-50%);width:23%}
.bi-flow-canvas .flow-shipped{left:43%;top:0;width:20%}
.bi-flow-canvas .flow-unshipped{left:43%;top:50%;transform:translateY(-50%);width:20%}
.bi-flow-canvas .flow-pre{left:43%;right:auto;top:auto;bottom:0;width:20%}
.bi-flow-canvas .flow-post{right:0;top:0;width:21%}
.bi-flow-canvas .bi-flow-node{min-height:var(--node-height);padding:12px 16px;gap:16px;border-radius:8px;background:#edf4ff;color:#2563eb}
.bi-flow-canvas .flow-order .bi-flow-node{min-height:calc(var(--node-height) * 1.2)}
.bi-flow-canvas .bi-flow-node>img{width:clamp(24px,2.2vw,42px);height:clamp(24px,2.2vw,42px)}
.bi-flow-canvas .bi-flow-node span{font-size:clamp(15px,1.2vw,23px);color:#142138;line-height:1.3}
.bi-flow-canvas .bi-flow-node strong{margin:3px 0 5px;font-size:clamp(20px,1.6vw,32px);line-height:1.2;overflow:visible;font-variant-numeric:tabular-nums}
.bi-flow-canvas .flow-order strong{font-size:clamp(23px,2vw,40px)}
.bi-flow-canvas .bi-flow-node small{font-size:clamp(12px,.96vw,18px);line-height:1.4;color:#5c6f89}
.bi-flow-canvas .bi-flow-node .bi-flow-node-note{margin-left:9px;font-size:clamp(11px,.8vw,16px);font-style:normal}
.bi-flow-canvas .post-refund .bi-flow-node-note{display:block;margin:0}
.bi-flow-canvas .bi-flow-node.shipped{background:#e5f8f9;color:#0097a7}
.bi-flow-canvas .bi-flow-node.pre-refund{background:#fff0f2;color:#ef535f}
.bi-flow-canvas .bi-flow-node.post-refund{background:#fff3e4;color:#f18a00}
.flow-subset-label{position:absolute;left:63%;width:16%;top:calc(var(--node-height) / 2 - 30px);text-align:center;color:#5c6f89;font-size:clamp(12px,1.1vw,20px)}
.bi-flow-explanation{margin-top:20px;padding-top:12px;border-top:1px solid #e0e7f0;color:#5c6f89;font-size:clamp(12px,1.02vw,18px);line-height:1.65}
.bi-flow-explanation p{margin:0 0 3px}
.bi-flow-explanation p+p{font-size:clamp(11px,.88vw,16px)}
.bi-flow .bi-quality-note{padding-top:8px;font-size:12px;line-height:1.6}
.source-sync-panel{margin:0 0 14px;padding:14px 16px;border:1px solid #dce5ef;border-radius:8px;background:#fff;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.source-sync-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.source-sync-heading strong{font-size:13px}.source-sync-heading>span{color:#5c6f89}
.source-sync-meta,.source-sync-note,.source-sync-error{margin:5px 0 0;color:#687a91}.source-sync-error,.source-sync-panel.has-error .source-sync-heading>span{color:#b42332}
.source-sync-panel.has-error{border-color:#efc8cd}.source-scope-note{margin:0 0 12px;color:#687a91;font-size:12px;line-height:1.6}
@media(max-width:1250px){.bi-flow-scroll-hint{display:block}.bi-flow-canvas .bi-flow-node{padding:14px 12px;gap:10px}.bi-flow-canvas .bi-flow-node>img{width:24px;height:24px}.bi-flow-canvas .bi-flow-node strong{font-size:20px}.bi-flow-canvas .flow-order strong{font-size:23px}}
@media(max-width:760px){.bi-flow-card{padding:16px 12px}.bi-flow-card .bi-block-title h2{font-size:20px}.bi-flow-card .bi-block-title p{font-size:12px}.bi-flow-scroll{padding-bottom:10px}.bi-flow-explanation{margin-top:10px}}
@media(min-width:1800px){.bi-flow-card{padding:28px 32px 20px}.bi-flow-card .bi-block-title h2{font-size:36px}.bi-flow-card .bi-block-title p{font-size:20px}.bi-flow-canvas .bi-flow-node span{font-size:24px}.bi-flow-canvas .bi-flow-node strong{font-size:36px}.bi-flow-canvas .flow-order strong{font-size:48px}.bi-flow-canvas .flow-order .bi-flow-node{min-height:182px}.bi-flow-canvas .bi-flow-node small{font-size:22px}.bi-flow-canvas .bi-flow-node .bi-flow-node-note{font-size:18px}.bi-flow-explanation{font-size:20px}.bi-flow-explanation p+p{font-size:17px}}
.erp-order-number{border:0;background:transparent;color:#2563eb;padding:0;font:inherit;font-weight:700;text-align:left;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:pointer}.erp-order-number:hover{color:#1d4ed8}.erp-order-number:disabled{color:#718096;cursor:wait}.arrival-status{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;background:#eef2f7;color:#526174}.arrival-status.arrived{background:#dcfce7;color:#15803d}.arrival-status.in_transit{background:#fff7ed;color:#c2410c}.arrival-status.no_tracking{background:#f1f5f9;color:#64748b}
