/* style.css */
[hidden]{display:none!important}

:root{--brand:#087f76;--brand-dark:#07655d;--tint:#eaf6f3;--text:#243330;--muted:#84918d;--line:#e8eeeb;--bg:#f6f8f7;--red:#ce665d;--amber:#b88432;--sidebar:218px;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--text);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:13px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #82c9ba;outline-offset:2px}a{color:var(--brand);text-decoration:none}button{border:0;background:none;color:inherit}h1,h2,h3,p{margin:0}svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.boot{padding:120px;text-align:center;color:var(--muted)}
.shell{display:flex;min-height:100vh}.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);z-index:20;display:flex;flex-direction:column;padding:28px 17px 18px}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 28px}.brand-mark{display:grid;place-items:center;width:38px;height:40px;background:var(--brand);color:white;border-radius:11px}.brand-mark svg{height:23px;width:23px}.brand-title{font-size:21px;font-weight:720;letter-spacing:1px}.brand-sub{font-size:10px;letter-spacing:1.6px;color:var(--muted);margin-top:4px}.workspace-tag{border:1px solid var(--line);border-radius:8px;padding:11px 12px;display:flex;align-items:center;gap:9px;font-size:12px;margin-bottom:26px}.workspace-tag span:last-child{margin-left:auto;color:#a4afa9}.nav-label{color:#a1aaa5;font-size:10px;padding:0 13px 9px;letter-spacing:1.4px}.nav-item{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:7px;margin:3px 0;color:#6e7d77;font-size:13px;transition:background .12s}.nav-item:hover{background:#f5f8f6}.nav-item.active{color:var(--brand);background:var(--tint);font-weight:650}.nav-item em{margin-left:auto;background:#d8eee7;border-radius:4px;min-width:21px;padding:2px 5px;text-align:center;font-size:10px;font-style:normal}.nav-separator{height:18px}.sidebar-bottom{margin-top:auto;padding:28px 10px 0}.local-box{padding:13px;background:#f8faf9;border:1px solid var(--line);border-radius:8px;font-size:11px;color:#84918d;line-height:1.9}.local-box strong{color:#567169;font-weight:500}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#4fa28c;margin-right:6px}.copyright{font-size:10px;color:#acb5b0;padding-top:17px}.main{margin-left:var(--sidebar);width:calc(100% - var(--sidebar))}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);padding:0 34px;gap:20px}.breadcrumb{color:#9ca6a1;font-size:12px;display:flex;gap:12px;align-items:center}.breadcrumb strong{color:#62736b;font-weight:500}.top-right{display:flex;align-items:center;gap:19px}.preview-pill{color:#9a783b;background:#faf5e8;border:1px solid #eee5ce;font-size:10px;padding:5px 8px;border-radius:4px}.user-block{display:flex;align-items:center;gap:9px;border-left:1px solid var(--line);padding-left:18px}.avatar{width:31px;height:31px;border-radius:50%;background:#eaf0eb;color:#6a8377;display:grid;place-items:center;font-size:11px;font-weight:600}.user-info small{display:block;color:#98a39b;font-size:9px;margin-top:3px}.logout{font-size:11px;color:#9da89f}.content{padding:28px 34px 36px;max-width:1740px;margin:0 auto}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:16px}.heading h1{font-size:24px;font-weight:650;letter-spacing:.5px}.heading p{font-size:12px;color:var(--muted);margin-top:9px}.heading-actions{display:flex;gap:9px;align-items:center}.btn{padding:9px 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #dfe8e2;border-radius:6px;background:white;font-size:12px;white-space:nowrap;min-height:35px}.btn svg{width:15px;height:15px}.btn:hover{background:#f2f7f4}.btn.primary{background:var(--brand);border-color:var(--brand);color:white}.btn.primary:hover{background:var(--brand-dark)}.btn.small{padding:5px 10px;min-height:28px;font-size:11px}.btn.link{border:0;background:transparent;padding:5px;color:var(--brand);min-height:25px}.btn.danger{color:var(--red)}.date-pill{background:#fff;border:1px solid var(--line);padding:9px 13px;border-radius:6px;font-size:11px;color:#74857b;display:flex;align-items:center;gap:8px}.notice{display:flex;align-items:center;gap:8px;border:1px solid #e4ece5;background:#f0f6ef;color:#6d826b;padding:10px 14px;border-radius:6px;font-size:11px;margin-bottom:22px;line-height:1.7}.notice svg{width:15px;height:15px}.notice .right{margin-left:auto;white-space:nowrap}.notice.warn{background:#fcf8ee;border-color:#efe6d1;color:#987f4b}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:20px}.metric{background:#fff;border:1px solid var(--line);border-radius:9px;padding:20px 20px 17px;min-height:143px}.metric .label{font-size:12px;color:#7d8c82;display:flex;justify-content:space-between;align-items:center}.metric .label svg{color:#9baa9f;width:17px}.metric .value{font-size:30px;font-weight:620;letter-spacing:-.8px;margin:15px 0 13px;font-variant-numeric:tabular-nums}.metric .value .currency{font-size:20px;margin-right:3px;font-weight:500}.metric .foot{font-size:10px;color:#9ba69e;display:flex;justify-content:space-between;gap:8px}.green{color:var(--brand)!important}.red{color:var(--red)!important}.amber{color:var(--amber)!important}.muted{color:var(--muted)}.panel{background:white;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:20px}.panel-head{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h2{font-size:14px;font-weight:600;display:flex;gap:8px;align-items:center}.panel-head h2 .sub{font-size:10px;color:#a3aea5;font-weight:400}.panel-head>span{font-size:10px;color:#98a59c}.grid-two{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(275px,1fr);gap:20px}.tabs{display:flex;gap:4px;padding:3px;background:#f4f7f5;border-radius:5px;font-size:10px}.tabs span{padding:4px 10px;border-radius:4px}.tabs .selected{background:white;color:var(--brand);box-shadow:0 1px 3px #223d2b0b}.chart-summary{padding:0 22px 12px;display:flex;gap:22px;font-size:11px;color:#8c9990}.legend:before{content:'';display:inline-block;width:6px;height:6px;border-radius:2px;background:#238f81;margin-right:6px}.chart{height:191px;display:flex;margin:4px 25px 14px 18px;gap:14px}.chart-axis{display:flex;flex-direction:column;justify-content:space-between;font-size:9px;color:#a4afa8;padding-bottom:26px;width:37px}.chart-plot{position:relative;display:flex;flex:1;align-items:flex-end;justify-content:space-around;gap:15px;padding-top:10px;border-bottom:1px solid var(--line);margin-bottom:25px;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#f0f4f1 39px,#f0f4f1 40px)}.bar-group{width:42px;height:100%;display:flex;align-items:flex-end;justify-content:center;position:relative}.bar{width:23px;background:#afd6c9;border-radius:4px 4px 0 0;min-height:2px;position:relative}.bar.today{background:#138777}.bar:hover:after{content:attr(data-value);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#314a3e;color:white;padding:5px;border-radius:4px;font-size:10px;white-space:nowrap}.bar-date{position:absolute;bottom:-24px;font-size:10px;color:#9aa69d;white-space:nowrap}.work-items{padding:0 20px 6px}.work-row{display:flex;align-items:center;gap:11px;padding:14px 0;border-bottom:1px solid #f0f3f0;cursor:pointer}.work-row:last-child{border:0}.work-icon{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:#edf6f2;color:#5b9a81}.work-icon.gold{background:#fcf5e8;color:#c6a15d}.work-icon.rose{background:#fcf0ec;color:#c78978}.work-row .text{flex:1}.work-row .text strong{font-size:12px;font-weight:500;display:block}.work-row .text small{font-size:10px;color:#a1aca4;display:block;margin-top:5px}.work-row .number{font-size:21px;font-weight:600;margin-right:9px}.work-row>svg{color:#b8c2ba;width:14px}.table-wrap{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:10px;font-weight:500;color:#8d9a91;background:#f8faf9;padding:12px 17px;border-top:1px solid #f0f4f1;border-bottom:1px solid var(--line)}td{font-size:11px;padding:15px 17px;border-bottom:1px solid #edf2ee;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdfb}.num{text-align:right;font-variant-numeric:tabular-nums}.bold{font-weight:600}.item-cell{display:flex;gap:11px;align-items:center;min-width:180px}.product-icon{width:39px;height:43px;background:#f1efe7;border:1px solid #e7e6dd;border-radius:6px;color:#a99e7c;display:grid;place-items:center;flex-shrink:0}.product-icon svg{width:26px;height:26px;stroke-width:1.3}.product-icon.bag{background:#f2ebe1;color:#aa9879}.product-icon.lamp{background:#ecf0ea;color:#96a98b}.product-icon.box{background:#eaf0ee;color:#91aaa2}.product-icon.towel{background:#f5ece6;color:#c0a28f}.product-icon.bottle{background:#e6efeb;color:#6f9e87}.item-title{font-size:11px;font-weight:550;line-height:1.6}.item-sub{color:#a0aca3;font-size:9px;line-height:1.8;max-width:180px;overflow:hidden;text-overflow:ellipsis}.badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;padding:4px 7px;border-radius:4px;background:#f1f4f2;color:#89958d}.badge:before{content:'';height:4px;width:4px;border-radius:50%;background:currentColor}.badge.pending{background:#fbf4e5;color:#b49759}.badge.processing{background:#eaf2fa;color:#6990ae}.badge.purchased,.badge.completed{background:#eaf5ef;color:#639780}.badge.shipped{background:#f0edfa;color:#9781b6}.badge.refund{background:#fbefeb;color:#bd8873}.table-footer{border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:13px 18px;color:#9eaaa1;font-size:10px}.pagination{display:flex;gap:6px;align-items:center}.page-current{padding:5px 8px;background:var(--tint);color:var(--brand);border-radius:4px}.filter-bar{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line);flex-wrap:wrap}.search-box{position:relative;min-width:220px}.search-box svg{position:absolute;left:10px;top:9px;color:#a5b0a8;width:16px}.search-box input{padding-left:33px;width:100%}input,select,textarea{border:1px solid #dfe7e1;border-radius:5px;background:white;color:#506258;min-height:35px;padding:8px 10px;outline:none;font-size:12px}input::placeholder,textarea::placeholder{color:#acb6af}input:focus,select:focus,textarea:focus{border-color:#75b9a8}input[type=number]{font-variant-numeric:tabular-nums}textarea{resize:vertical;min-height:74px}.filter-bar select{max-width:180px;font-size:11px}.filter-spacer{flex:1}.count-label{color:#a0aca3;font-size:10px}.empty{text-align:center;padding:55px 20px;color:#9eaaa1}.empty svg{width:32px;height:32px;display:block;margin:0 auto 10px}.status-note{font-size:10px;color:#9ba79f;padding:0 20px 16px;line-height:1.8}.page-note{font-size:10px;color:#a6afa9;text-align:center;margin-top:9px}.settings-layout{display:grid;grid-template-columns:1fr 1.3fr;gap:20px;align-items:start}.form-pad{padding:0 22px 22px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:17px}.field label{font-size:12px;color:#6e7f74}.field small{font-size:10px;color:#9aa69d;line-height:1.7}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-alert{background:#f5f8f5;padding:12px;border-radius:6px;color:#829386;font-size:11px;line-height:1.8;margin-bottom:20px}.log-row{padding:13px 20px;border-top:1px solid var(--line)}.log-row strong{font-size:11px;font-weight:500}.log-row .meta{display:flex;justify-content:space-between;gap:10px;color:#9da89f;font-size:10px;margin-top:6px}.log-row p{font-size:10px;color:#8e9d92;margin-top:6px;line-height:1.7;overflow-wrap:anywhere}.chips{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.chip{border:1px solid var(--line);padding:8px 13px;border-radius:6px;background:white;color:#839187;font-size:11px}.chip.active{background:var(--tint);border-color:#beddd2;color:var(--brand)}
.modal-overlay{position:fixed;inset:0;background:#18372e66;z-index:50;display:flex;align-items:center;justify-content:center;padding:25px;backdrop-filter:blur(2px)}.modal{width:590px;background:white;border-radius:12px;box-shadow:0 24px 90px #0a36232e;max-height:92vh;overflow:auto}.modal.wide{width:840px}.modal-head{padding:22px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:17px;font-weight:600}.modal-head p{font-size:11px;color:#9ba69f;margin-top:6px}.modal-body{padding:22px 24px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding:17px 24px}.close{font-size:24px;color:#99a99e}.order-summary{display:flex;align-items:center;justify-content:space-between;padding:14px;background:#f6f9f6;border-radius:8px;margin-bottom:21px}.order-summary .amount{font-size:20px;color:var(--brand)}.error-text{color:#bf6555;font-size:12px;min-height:18px;margin-top:8px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:25px}.detail-grid small{font-size:10px;color:#97a59b;display:block;margin-bottom:8px}.detail-grid strong{font-size:14px;font-weight:550}.detail-total{display:flex;justify-content:space-between;padding:18px;background:var(--tint);border-radius:6px;color:var(--brand);margin-bottom:18px}.detail-total strong{font-size:23px;font-variant-numeric:tabular-nums}.modal-warning{font-size:11px;color:#a98440;background:#fcf7ec;padding:11px;border-radius:5px;margin-bottom:18px;line-height:1.8}#toast{position:fixed;top:25px;left:50%;transform:translateX(-50%);background:#214c3f;color:white;padding:13px 23px;border-radius:7px;box-shadow:0 5px 24px #12302022;z-index:100;display:none;font-size:12px;max-width:90vw}#toast.error{background:#a96051}.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:#fff}.login-art{background:#eaf1eb;position:relative;padding:60px 70px;overflow:hidden;display:flex;flex-direction:column}.login-art .brand{padding:0}.login-copy{margin:auto 0;position:relative;z-index:2}.login-copy .eyebrow{font-size:11px;letter-spacing:3px;color:#87a18d;margin-bottom:23px}.login-copy h1{font-size:43px;line-height:1.5;font-weight:550;letter-spacing:2px;color:#234b3b}.login-copy p{font-size:13px;line-height:2.2;color:#789482;margin-top:22px;max-width:330px}.art-lines{position:absolute;width:600px;height:600px;border:1px solid #b7cdbb;border-radius:50%;right:-300px;bottom:-240px;box-shadow:0 0 0 60px #cdddc955,0 0 0 120px #d9e4d555}.login-bottom{font-size:10px;color:#9caf9e;z-index:2}.login-main{display:grid;place-items:center;padding:45px}.login-card{width:350px;max-width:100%}.login-card h2{font-size:27px;font-weight:600;margin:0 0 12px}.login-card>p{color:#8d9b91;font-size:12px;margin-bottom:30px}.login-card .btn.primary{width:100%;height:42px;margin-top:7px}.login-note{font-size:10px!important;line-height:1.9;margin-top:22px;color:#aab4ac!important}.inline-code{font-family:Consolas,monospace;font-size:10px;color:#8d9d93}.check-link{cursor:pointer}.subline{font-size:10px;color:#a1aaa5;margin-top:5px}.trend-label{color:#adbaaf;font-size:10px}.stats-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:20px}
@media(min-width:1500px){.content{padding-top:32px}.metric{min-height:154px}.chart{height:218px}.work-row{padding:18px 0}td{padding-top:17px;padding-bottom:17px}}
@media(max-width:1150px){:root{--sidebar:186px}.sidebar{padding-left:12px;padding-right:12px}.content{padding:24px 22px}.topbar{padding:0 22px}.metric{padding:17px 15px}.metric .value{font-size:25px}.grid-two{grid-template-columns:1.5fr 1fr}.date-pill{display:none}.heading h1{font-size:22px}.brand-title{font-size:19px}.settings-layout{grid-template-columns:1fr}.login-art{padding:45px}.login-copy h1{font-size:34px}}
@media(max-width:850px){:root{--sidebar:72px}.sidebar{padding:25px 10px}.brand{padding:0 6px 30px}.brand>div:last-child,.workspace-tag,.nav-label,.nav-item>span,.nav-item>em,.sidebar-bottom{display:none}.nav-item{justify-content:center;padding:14px}.brand-mark{width:34px;height:36px}.metrics{grid-template-columns:1fr 1fr}.grid-two{grid-template-columns:1fr}.top-right{gap:8px}.preview-pill{display:none}.content{padding:22px 18px}.heading{align-items:flex-start}.heading p{line-height:1.7}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.login-page{grid-template-columns:1fr}.login-art{display:none}.stats-cards{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr 1fr}.user-info{display:none}}

/* readability.css */
/* Shared business-blue theme. Loaded last on every system page. */
:root{--brand:#245ec7;--brand-dark:#19499f;--tint:#eaf1ff;--text:#24344d;--muted:#586b84;--line:#dbe3ef;--bg:#f3f6fb;--red:#b93838;--amber:#936319;--nav-bg:#142b4e;--shadow:0 3px 14px #193c7010}
body{font-family:"Segoe UI","Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:15px;line-height:1.65;color:var(--text);background:var(--bg)}
button,input,select,textarea{font-family:inherit;font-size:14px}
a{color:var(--brand)}a:hover{text-decoration:underline;text-underline-offset:3px}
input,select,textarea{min-height:42px;color:var(--text);border:1px solid #b7c6dc;border-radius:7px;padding:9px 12px;background:#fff}
input::placeholder,textarea::placeholder{color:#6c7d93;opacity:1}
input:focus,select:focus,textarea:focus{border-color:var(--brand)}
input[type=checkbox],input[type=radio]{accent-color:var(--brand)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #7daaf1;outline-offset:3px}
.btn{font-size:14px;min-height:40px;font-weight:600;padding:9px 15px;border-color:#c6d3e5;border-radius:7px;transition:background .15s,border-color .15s}
.btn:hover{background:#edf3ff;border-color:#92b1e2;text-decoration:none}
.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 2px 5px #245ec722}
.btn.primary:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
.btn.small{font-size:13px;min-height:34px;padding:6px 11px}.btn.link{font-size:14px;color:var(--brand);border:0;box-shadow:none}
.btn.danger{color:var(--red)}.btn.danger:hover{background:#fff0f0;border-color:#e6b2b2}
/* Navigation */
.sidebar,.finance-nav{background:var(--nav-bg);border-right:1px solid #142849;color:#dce7f8;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#466285 var(--nav-bg)}
.brand-title,.finance-brand{color:#fff;font-weight:650}.brand-mark{background:#3678e8;border:1px solid #5a94f1;box-shadow:0 4px 12px #051e4033}
.brand-sub,.finance-brand span{font-size:11px;color:#b4c7e1;letter-spacing:1.5px}
.workspace-tag{font-size:12px;color:#d5e1f2;background:#203a5f;border-color:#3b5578;margin-bottom:22px}.workspace-tag span:last-child{color:#bdcfe5}
.nav-label{font-size:12px;color:#afc2dd;letter-spacing:1px}.nav-item{font-size:15px;min-height:46px;color:#d3dff0;border:1px solid transparent;border-radius:8px;margin:4px 0}
.nav-item:hover,.finance-nav nav a:hover{background:#223f67;color:#fff;text-decoration:none}
.nav-item.active,.finance-nav nav a.active{background:#2a62be;border-color:#4d82d5;color:#fff;font-weight:600;box-shadow:inset 3px 0 #92bdff}
.nav-item em{background:#3f5879;color:#fff;font-size:11px}.nav-item.active em{background:#477dce}
.sidebar-bottom{padding-top:22px}.local-box{background:#203a5a;border-color:#3b5271;color:#bfd0e6;font-size:12px}.local-box strong{color:#e0eafa}.dot{background:#76d1b7}
.copyright{font-size:11px!important;color:#b0c2db!important;line-height:1.8}
.topbar{border-bottom-color:#dbe3ef;background:#fff;box-shadow:0 1px 6px #142b4e04}
.breadcrumb{font-size:13px;color:#667991}.breadcrumb strong{color:#354b68;font-weight:600}.top-right{gap:16px}
.avatar{background:#e5edfc;color:#2456a6;width:35px;height:35px;font-size:13px}.user-info{font-size:14px}.user-info small{font-size:12px;color:#61728a}.logout{font-size:13px;color:#586b84}
.preview-pill{font-size:12px;color:#815d1c;background:#fff6df;border-color:#eddcb6}
/* Headings and cards */
.heading h1,.finance-header h1{font-size:28px;font-weight:650;color:#1b3356;letter-spacing:.3px;line-height:1.4}
.heading p,.finance-header p{font-size:14px;color:var(--muted);line-height:1.85}
.panel,.metric,.finance-card{border-color:var(--line);border-radius:11px;box-shadow:var(--shadow)}
.panel-head{padding:20px 22px}.panel-head h2,.finance-section-title{font-size:17px;font-weight:650;color:#213d64}
.panel-head>span,.panel-head h2 .sub{font-size:12px;color:#5b6f8a}.panel-head>a{font-size:13px!important}
.metric{border-top:3px solid #adc6ef;padding-top:18px}.metric .label{font-size:14px;color:#4c607d}.metric .label svg{color:#5b7da9;width:19px}
.metric .value{font-size:32px;font-weight:650;color:#203d65;letter-spacing:-.5px}.metric .foot{font-size:12px;color:var(--muted);line-height:1.7}
.green{color:#1c694e!important}.red{color:var(--red)!important}.amber{color:var(--amber)!important}.muted{color:var(--muted)!important}
.date-pill{font-size:13px;color:#506683;border-color:var(--line)}
.notice,.form-alert,.finance-note{font-size:13px;color:#3c587e;line-height:1.85;background:#edf3fd;border:1px solid #ceddf4;border-radius:8px}
.notice.warn,.modal-warning,.finance-note.warning{color:#77551a;background:#fff7e5;border-color:#ecd9ad}
.notice .right{font-weight:600}.form-alert{padding:14px}.modal-warning{font-size:13px;line-height:1.85}
/* Dense data stays readable, with distinct sortable column headings. */
table{color:var(--text)}th,.finance-main th{background:#e2ebfa;color:#233f6a;font-size:14px;font-weight:650;line-height:1.6;padding:15px 17px;border-top:1px solid #c4d5ef;border-bottom:2px solid #aac3e8}
td,.finance-main td{font-size:14px;line-height:1.75;padding:16px 17px;border-bottom:1px solid #e0e7f1}
tbody tr:nth-child(even){background:#f7f9fd}tbody tr:hover{background:#edf3ff}
table .num{font-variant-numeric:tabular-nums;font-weight:600}
.item-title{font-size:14px;font-weight:600;line-height:1.7}.item-sub{font-size:12px;color:var(--muted);line-height:1.8;max-width:240px}
.subline,.inline-code,.finance-small{font-size:12px;color:var(--muted);line-height:1.8}
.badge,.finance-tag{font-size:12px;font-weight:600;padding:5px 9px;color:#475e7c;background:#edf1f7;border-radius:5px}
.badge.pending,.finance-tag.warn{color:#805914;background:#fff0ca}.badge.processing{color:#24549a;background:#e3eeff}.badge.purchased,.badge.completed{color:#226342;background:#e0f2e8}.badge.shipped{color:#664398;background:#eee6fb}.badge.refund{color:#a13c35;background:#fce9e6}
.table-footer,.finance-pager{font-size:13px;color:var(--muted);background:#fff;padding:15px 18px}
.page-current{font-weight:600;border:1px solid #bfd1ef;min-width:30px;text-align:center}
.filter-bar{padding:17px 18px;background:#fff}.filter-bar select{font-size:14px;max-width:220px}.search-box svg{top:13px;color:#687e9b}
.count-label{font-size:13px;color:var(--muted)}.empty,.finance-empty{font-size:14px;color:var(--muted)}
.sort-button{font:inherit;color:inherit;font-weight:inherit;display:inline-flex;align-items:center;gap:8px;padding:0;background:none;border:0;cursor:pointer;white-space:nowrap;min-height:28px}
.sort-button:hover{color:#144eaa;text-decoration:underline;text-underline-offset:4px}.sort-arrow{font-size:12px;color:#5c78a2}.sort-button.selected{color:#164da1}.sort-button.selected .sort-arrow{color:#164da1;font-weight:750}
.date-filters{display:flex;align-items:end;gap:10px;padding:16px 18px;background:#f0f5fc;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.date-filters label{display:grid;gap:5px;font-size:13px;color:#415b7e}.date-filters input{font-size:14px}.date-filters .range-note{font-size:12px;color:var(--muted);align-self:center}
/* Forms and dialogs */
.field label,.finance-filter label{font-size:14px;color:#324c6e;font-weight:600}.field small{font-size:13px;line-height:1.8;color:var(--muted)}
.modal-overlay{background:#10234280}.modal{box-shadow:0 24px 90px #0f284840;border:1px solid #d6e0ef}.modal-head{background:#f4f7fd}.modal-head h2{font-size:20px;color:#213d64}.modal-head p{font-size:13px;color:var(--muted)}
.modal-actions{background:#f7f9fd}.close{color:#526b8b}.detail-grid small{font-size:13px;color:var(--muted)}.detail-grid strong{font-size:16px}.order-summary{background:#f0f5fc}.detail-total{border:1px solid #cbdaf4}
/* Batch progress needs room; keep its action reachable on narrow screens. */
.modal:has([data-batch-action="batch-page"]){width:1180px;max-width:100%;min-width:0}
.modal:has([data-batch-action="batch-page"]) .table-wrap{min-width:0}
.modal:has([data-batch-action="batch-page"]) table{min-width:760px;table-layout:fixed;white-space:normal}
.modal:has([data-batch-action="batch-page"]) th,.modal:has([data-batch-action="batch-page"]) td{overflow-wrap:anywhere}
.modal:has([data-batch-action="batch-page"]) th:nth-child(1){width:23%}
.modal:has([data-batch-action="batch-page"]) th:nth-child(2){width:18%}
.modal:has([data-batch-action="batch-page"]) th:nth-child(3){width:25%}
.modal:has([data-batch-action="batch-page"]) th:nth-child(4){width:24%}
.modal:has([data-batch-action="batch-page"]) th:last-child,.modal:has([data-batch-action="batch-page"]) td:last-child{position:sticky;right:0;width:110px;z-index:1;background:#fff;border-left:1px solid var(--line);box-shadow:-5px 0 8px #1839580d;overflow-wrap:normal}
.modal:has([data-batch-action="batch-page"]) th:last-child{background:#e2ebfa;z-index:2}
.modal:has([data-batch-action="batch-page"]) tr:nth-child(even) td:last-child{background:#f7f9fd}
.error-text{font-size:14px;color:var(--red)}#toast{background:#203f6b;font-size:14px;box-shadow:0 6px 26px #142b4e26}#toast.error{background:#a43838}
.log-row strong{font-size:14px;color:#324c6e}.log-row p,.log-row .meta{font-size:12px;color:var(--muted)}
.status-note,.page-note,.finance-foot,.login-note{font-size:12px!important;color:#5f728c!important;line-height:1.8}
.chip,.tabs{font-size:13px}.chip{color:#526985}.chip.active{background:var(--tint);border-color:#b3c9ee;color:var(--brand)}.tabs{background:#edf2fa}.tabs .selected{color:var(--brand)}
/* Dashboard graphics */
.chart-summary,.chart-axis,.bar-date{font-size:12px;color:var(--muted)}.chart-axis{width:72px;flex-shrink:0;white-space:nowrap}.legend:before{background:#3678d9}.bar{background:#a6c5f4}.bar.today{background:#3475d7}.bar:hover:after{background:#203f6b;font-size:12px}.chart-plot{background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#e8eef7 39px,#e8eef7 40px)}
.work-row{border-bottom-color:#e7edf6}.work-row .text strong{font-size:14px;font-weight:600}.work-row .text small{font-size:12px;color:var(--muted)}.work-icon{background:#e7effc;color:#3569b7}.work-icon.gold{background:#fff2d8;color:#946716}.work-icon.rose{background:#fdece8;color:#ab5140}.work-row>svg{color:#7185a1}.trend-label{color:#5f728c;font-size:12px}
/* Finance shares the same hierarchy and palette. */
.finance-nav nav a{font-size:15px;border:1px solid transparent;border-radius:8px;color:#d3dff0}.finance-brand:hover{text-decoration:none;color:#fff}.finance-nav p{font-size:12px;color:#b4c7e1}.back-link{font-size:13px;color:#d0e1fa}.back-link:hover{color:#fff}
.finance-header .eyebrow{font-size:12px;color:#466fa8;font-weight:600;letter-spacing:1.8px}.finance-card .label{font-size:14px;color:#486080}.finance-card .value{font-size:31px;color:#213d64;font-weight:650;letter-spacing:-.4px}.finance-card .note{font-size:12px;color:var(--muted);line-height:1.85}
.finance-card.featured{background:#eaf1ff;border-color:#bdd0f0;border-top:3px solid #3b76d3;padding-top:20px}.finance-card .negative{color:var(--red)}
.finance-detail-metrics{font-size:14px;color:#4c6280;border-color:var(--line)}.finance-detail-metrics strong{color:#213d64}.finance-demo{font-size:12px;color:#805914}
.finance-tabs button.active{background:#e5eeff;color:#1d55ae;border-color:#a6c1ee;font-weight:600}.finance-form details>summary{font-size:14px;color:var(--brand)}.finance-form .checkbox-label{font-size:14px;color:#425b7c}.finance-error{color:#a03636;background:#fff0ef}
/* Login and API connection use the shared font and brand. */
.login-art{background:#142f55;color:#fff}.login-copy h1{color:#fff;font-weight:600}.login-copy .eyebrow{color:#aec9f2;font-size:12px}.login-copy p{color:#d1dff2;font-size:15px}.login-bottom{font-size:12px;color:#bccfe7}.art-lines{border-color:#628abe;box-shadow:0 0 0 60px #4475b52b,0 0 0 120px #5484c21c}
.login-card{width:380px}.login-card h2{color:#213d64;font-size:29px}.login-card>p{font-size:14px;color:var(--muted)}.login-card .btn.primary{height:46px;font-size:15px}
#credentials-form>.muted,#query-form>.muted{font-size:13px;line-height:1.85;margin-bottom:18px}#connection-status{font-size:14px;margin:16px 0}#query-json{background:#f2f6fd;border:1px solid var(--line);border-radius:8px;padding:16px;font-size:13px}
@media(max-width:850px){.heading h1,.finance-header h1{font-size:24px}.finance-card .value{font-size:26px}.metric .value{font-size:28px}.finance-nav nav a{font-size:14px}.nav-item{min-height:46px}.heading-actions{gap:7px}}
@media(max-width:700px){.finance-nav nav a{font-size:13px;padding:10px 8px}.finance-card .value{font-size:24px}.finance-card.featured{padding-top:13px}.finance-filter{gap:10px}.finance-filter select{min-width:160px}.finance-header h1{font-size:24px}}
@media(prefers-reduced-motion:reduce){.btn,.nav-item{transition:none}}
/* Product thumbnails and a separate, non-destructive image preview. */
.media-item{min-width:280px;gap:12px}.product-thumb{position:relative;width:66px;height:76px;flex:0 0 66px;border:1px solid #bacce6;border-radius:8px;overflow:hidden;padding:0;background:#eef3fb;cursor:zoom-in;display:grid;place-items:center}
.product-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#f4f7fc}.thumb-caption{position:absolute;bottom:0;left:0;right:0;background:#173761dc;color:white;font-size:11px;line-height:20px;text-align:center}.thumb-fallback{font-size:12px;color:#4b6383;text-align:center}.product-thumb.missing{cursor:default;font-size:12px;color:#5b6f8a}.product-thumb:hover{border-color:#245ec7;box-shadow:0 0 0 2px #dce8fc}.product-links{margin-top:4px;font-size:12px;line-height:1.7}.weidian-product-link{color:#245ec7;font-weight:600;white-space:nowrap}.media-unavailable{color:#657690;font-size:12px}
.image-viewer-backdrop{position:fixed;inset:0;z-index:80;background:#0c1b32c9;display:flex;align-items:center;justify-content:center;padding:20px}.image-viewer{width:min(1080px,96vw);max-height:95vh;overflow:auto;background:#fff;border:1px solid #d2deef;border-radius:12px;box-shadow:0 20px 70px #06152b77}.image-viewer header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-bottom:1px solid #dbe3ef;background:#f3f7ff}.image-viewer h2{font-size:19px;color:#203e67}.image-viewer header p{font-size:13px;color:#526b8b;margin-top:4px}.image-stage{height:52vh;min-height:230px;overflow:auto;background:#e8edf5}.image-canvas{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center}.preview-image{display:block;width:100%;height:100%;object-fit:contain;padding:10px}.image-error{padding:30px;text-align:center;font-size:14px;color:#9c4033}.image-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 20px;border-top:1px solid #dbe3ef}.image-toolbar>div{display:flex;align-items:center;gap:8px}.image-toolbar #image-zoom{font-size:13px;font-variant-numeric:tabular-nums;min-width:42px;text-align:center}.image-thumbnails{display:flex;gap:8px;padding:0 20px 10px;overflow-x:auto}.image-choice{padding:3px;border:2px solid #dbe3ef;border-radius:6px;width:48px;height:48px;flex-shrink:0;background:#fff}.image-choice.active{border-color:#245ec7;background:#eaf1ff}.image-choice img{width:100%;height:100%;object-fit:contain}.image-help{font-size:12px;color:#526b8b;padding:0 20px 14px}
@media(max-width:700px){.image-viewer-backdrop{padding:8px}.image-viewer{width:100%;max-height:97vh}.image-viewer h2{font-size:16px}.image-viewer header{padding:12px}.image-toolbar{padding:10px;gap:8px}.image-stage{height:45vh}.media-item{min-width:240px}}
.permission-options{border:1px solid #c5d5ec;border-radius:8px;padding:16px;margin:18px 0}.permission-options legend{font-size:15px;font-weight:600;color:#284d7c}.permission-options label{display:flex;gap:10px;align-items:center;font-size:14px;margin:10px 0}.permission-options input{min-height:auto;width:17px;height:17px}.permission-options p{font-size:12px;color:#586b84}.user-permissions{max-width:330px;white-space:normal}.user-permissions .finance-tag{margin:3px 0}
.ordered-products{min-width:290px;white-space:normal}.ordered-products-heading{font-size:13px;font-weight:650;color:#234f8d;margin-bottom:12px;display:flex;gap:14px;justify-content:space-between}.ordered-products-heading span{font-size:12px;color:#607694;font-weight:400}.ordered-products .media-item+.media-item{border-top:1px solid #d5e1f1;padding-top:13px;margin-top:13px}.ordered-item-info{min-width:0;max-width:300px;overflow-wrap:anywhere}.ordered-item-qty{display:inline-block;font-size:13px;font-weight:700;color:#234f8d;background:#e1ecfc;padding:1px 8px;border-radius:4px;margin-top:3px}.order-summary:has(.ordered-products-heading){align-items:flex-start;gap:18px}.order-summary>.ordered-products{flex:1}.order-summary .amount{white-space:nowrap}
@media(max-width:700px){.order-summary:has(.ordered-products-heading){flex-direction:column}.ordered-products{min-width:240px}.ordered-products-heading{flex-wrap:wrap;gap:4px}.ordered-item-info{max-width:240px}}

.sku-purchase-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid #d5e1f1}.sku-purchase-actions{max-width:220px;overflow-wrap:anywhere;text-align:right;font-size:14px}.sku-purchase-actions .btn{white-space:normal}#item-purchase-form,#purchase-backfill-form{margin-top:18px}@media(max-width:700px){.sku-purchase-card{flex-wrap:wrap}.sku-purchase-actions{text-align:left}}

/* Compact order list: one purchased SKU per tile, wrap without hiding items. */
.sku-strip{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;width:270px;white-space:normal}
.sku-tile{display:flex;flex-direction:column;align-items:center;gap:4px;width:80px;min-width:0;font-size:12px;line-height:1.5}
.sku-photo{position:relative;width:60px;height:60px;margin:0 5px 3px 0}.sku-photo .product-thumb{width:60px;height:60px;min-width:60px;flex-basis:60px;border-radius:6px}.sku-photo .thumb-fallback{font-size:11px}
.sku-quantity{position:absolute;right:-8px;bottom:-5px;min-width:21px;height:21px;padding:0 4px;border:1px solid #407acb;border-radius:11px;background:#fff;color:#1c4f98;font-size:12px;font-weight:700;line-height:19px;text-align:center;pointer-events:none;box-shadow:0 1px 3px #17376115}
.compact-demo{position:absolute;top:0;left:0;background:#173761d9;color:white;font-size:10px;line-height:16px;padding:0 3px;border-radius:0 0 3px 0}
.sku-short-name{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;color:#324c6e;font-size:12px;font-weight:500}
.sku-state{font-size:11px;line-height:19px;padding:0 6px;border-radius:4px;font-weight:600}.sku-state.bought{color:#226342;background:#e0f2e8}.sku-state.waiting{color:#805914;background:#fff0ca}
.sku-buy{font:inherit;color:#1d55ae;background:#edf3ff;border:1px solid #b9ceef;border-radius:4px;padding:3px 6px;cursor:pointer;line-height:20px}.sku-buy:hover{background:#dceaff;border-color:#245ec7}.sku-shop-link{font-size:11px;color:#245ec7;line-height:20px}
@media(max-width:700px){.sku-strip{width:264px;gap:10px}}
.sku-compact-group{width:270px;white-space:normal}.sku-counts{display:grid;gap:3px;margin-bottom:10px;font-size:12px;line-height:1.7;color:#526b8b}.sku-counts strong{font-weight:650;color:#234f8d}.sku-more{margin-top:12px;border-top:1px solid #d2def0}.sku-more summary{color:#1d55ae;font-size:12px;font-weight:600;padding:10px 0;cursor:pointer;line-height:1.8}.sku-more summary:hover{color:#123f85}.sku-more .sku-more-close{display:none}.sku-more[open] .sku-more-open{display:none}.sku-more[open] .sku-more-close{display:inline}.sku-more[open]{padding-bottom:4px}@media(max-width:700px){.sku-compact-group{width:264px}}
/* Procurement and after-sales stay within one working view. */
.workflow-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:18px 22px;border-bottom:1px solid #d7e2f2;background:#f5f8fe}
.workflow-tab{display:flex;align-items:center;gap:9px;min-height:42px;padding:9px 16px;border:1px solid #c9d8ee;border-radius:7px;background:#fff;color:#35577f;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.workflow-tab span{min-width:23px;padding:1px 6px;border-radius:12px;background:#eaf0fa;font-size:12px;color:#2b527f}
.workflow-tab.active{background:#225db5;border-color:#225db5;color:#fff;box-shadow:0 2px 5px #16407720}.workflow-tab.active span{background:#fff;color:#225db5}
.workflow-tab:focus-visible{outline:3px solid #91b6ef;outline-offset:2px}.integration-placeholder{max-width:850px;padding:30px;line-height:1.9}.integration-placeholder h2{font-size:20px;color:#203f6b;margin-bottom:12px}.integration-placeholder p{margin:14px 0}.btn:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:700px){.workflow-tabs{padding:12px}.workflow-tab{font-size:13px;padding:8px 10px}.integration-placeholder{padding:18px}}
.order-workspace th:last-child,.order-workspace td:last-child{position:sticky;right:0;min-width:132px;box-shadow:-5px 0 8px #1839580d;border-left:1px solid #d7e2f2;z-index:1;background:#fff}.order-workspace th:last-child{background:#e8f0fc;z-index:2}.order-workspace tr:nth-child(even) td:last-child{background:#f6f9ff}.order-workspace td:last-child .btn{white-space:nowrap}
.refund-extras{border-top:1px solid #d7e2f2;margin-top:18px;padding-top:14px}.refund-extras>summary{cursor:pointer;color:#245ec7;font-size:14px;margin-bottom:16px}
.workspace-overview{margin-bottom:20px}.workspace-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px 22px}.workspace-metrics .metric{box-shadow:none;border:1px solid #d7e2f2;background:#f9fbff;min-width:0}.workspace-metrics small{font-size:14px;font-weight:400}.workspace-metrics .value{overflow-wrap:anywhere}.workspace-overview .date-filters{border-radius:12px 12px 0 0}.workspace-overview .workflow-tabs{border-top:1px solid #d7e2f2;border-bottom:0;border-radius:0 0 12px 12px}@media(max-width:700px){.workspace-metrics{grid-template-columns:1fr;padding:12px;gap:10px}.workspace-metrics .metric{padding:14px 16px}.workspace-metrics .value{font-size:25px}}
@media(min-width:520px) and (max-width:700px){.workspace-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.workspace-metrics .metric{padding:12px 10px}.workspace-metrics .label{font-size:13px}.workspace-metrics .value{font-size:22px}.workspace-metrics .foot{font-size:11px;line-height:1.6}.workspace-metrics .label svg{display:none}}
@media(max-width:520px){.heading{flex-direction:column;align-items:stretch;gap:12px}.heading>div{min-width:0}.heading h1{white-space:nowrap}.heading p{line-height:1.75}.heading-actions{flex-wrap:wrap;justify-content:flex-start}.topbar{padding:0 12px;gap:8px}.breadcrumb{gap:4px;white-space:nowrap;font-size:12px}.top-right{gap:6px;flex-shrink:0}.user-block{display:none}.logout{white-space:nowrap}.workspace-overview .date-filters{padding:12px}.workspace-overview .date-filters label{min-width:0;max-width:100%}.workspace-overview .date-filters input,.workspace-overview .date-filters select{max-width:100%;box-sizing:border-box}.workspace-metrics .metric .value{margin:6px 0}.workflow-tab{flex-wrap:wrap}}
.workspace-count-note{margin:0;padding:10px 22px 14px;color:#596f8c;font-size:12px;line-height:1.8;border-top:1px solid #d7e2f2}.refund-accounting-note{padding:12px 16px;margin:0 0 14px;border:1px solid #d7e2f2;border-radius:8px;background:#f6f9ff;font-size:13px;color:#4b6383;line-height:1.8}.workspace-metrics.refund-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1200px){.workspace-metrics.refund-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.workspace-metrics.refund-metrics{grid-template-columns:1fr}.workspace-count-note{padding:10px 12px;font-size:11px}}
.business-report{display:grid;gap:20px;min-width:0}
.report-filters{padding:20px;display:flex;flex-wrap:wrap;align-items:center;gap:18px}
.report-ranges,.report-filter-fields,.report-pagination{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.report-filter-fields{margin-left:auto}.report-filter-fields label{display:grid;gap:6px;font-size:13px;color:#405575}
.report-filter-fields input,.report-filter-fields select{min-height:40px;border:1px solid #bccce2;border-radius:7px;padding:7px 10px;background:white;color:#203c63;font:inherit;max-width:100%}
.report-filter-fields select{max-width:230px}.report-date-to{padding-top:21px}
.report-filters p{flex-basis:100%;margin:0;color:#536888;font-size:13px}
.report-overview,.report-refunds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.business-report .metric{min-width:0;padding:20px;background:#fff}.business-report .metric .value{font-size:29px;overflow-wrap:anywhere}.business-report .metric .value small{font-size:15px;font-weight:400}
.business-report .metric .foot{line-height:1.6;min-height:42px}.report-refunds .metric .value{font-size:24px}
.report-profit{border-radius:14px;background:linear-gradient(115deg,#173d7c,#245ec7);color:white;padding:30px;display:grid;grid-template-columns:1.25fr 1fr;gap:35px;box-shadow:0 8px 24px #214d8a18}
.report-profit h2{font-size:20px;margin:10px 0}.report-eyebrow{font-size:13px;color:#d2e1ff}.report-profit-number{display:block;font-size:44px;line-height:1.3;letter-spacing:.5px;margin-bottom:14px;overflow-wrap:anywhere}.report-profit-number.report-loss{color:#ffdbd7}
.report-profit>*{min-width:0}.report-coverage .btn{max-width:100%;white-space:normal}.report-coverage h3{overflow-wrap:anywhere}
.report-profit p{font-size:14px;line-height:1.8;color:#e0ebff;margin:14px 0 0}.report-profit-separator{margin:0 15px;color:#93b3ef}
.report-coverage{background:#ffffff14;border:1px solid #ffffff36;padding:22px;border-radius:10px}.report-coverage h3{margin:0 0 16px;font-size:16px}.report-coverage h3 strong{float:right;color:#ffe3a5}.report-coverage .btn{margin-top:16px;background:white;color:#1c4c93;border-color:white}
.report-progress{height:6px;background:#ffffff30;border-radius:8px;margin-top:18px;overflow:hidden}.report-progress span{display:block;height:100%;background:#9cd6ff}
.report-formula{background:#edf3ff;border:1px solid #cedcf4;border-radius:9px;padding:14px 18px;color:#294c7c}.report-formula summary{cursor:pointer;font-weight:600}.report-formula p{font-size:14px;line-height:1.8;margin:12px 0 0}
.report-daily .panel-head p{font-size:13px;color:#61728c;margin:7px 0 0}.report-daily .panel-head>span{font-size:13px;color:#61728c}
.report-table-note{padding:12px 20px;background:#f1f6ff;color:#435f89;line-height:1.7;font-size:13px;border-top:1px solid #dfE8f6}
.report-daily table{min-width:1320px}.report-daily thead th{background:#e6eefc;color:#193f79}.report-daily td{padding-top:18px;padding-bottom:18px}.report-daily tbody tr:nth-child(even){background:#f8faff}
.report-pending{color:#925500;background:#fff0d3;border-radius:5px;padding:5px 9px;white-space:nowrap}.report-bottom-note{font-size:13px;color:#526783;line-height:1.8;margin:0}
.report-pagination button:disabled{opacity:.45;cursor:default}
.report-trend-mobile{display:none}
.business-report .report-current-scope{display:flex;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;color:#596f8c;font-size:12px;line-height:1.8}.report-current-scope strong{color:#243e61}
.business-report .report-card{padding:18px 20px;border:1px solid #dce5f1;border-top:3px solid #b8c9e3;border-radius:10px;box-shadow:0 3px 12px #16356005}.business-report .report-card .label{font-size:13px;line-height:1.6}.business-report .report-card .value{font-size:28px;font-variant-numeric:tabular-nums;margin:12px 0}.business-report .report-card .foot{font-size:12px;line-height:1.7;min-height:34px;display:block;color:#5b6e89}
.report-value-link{display:inline;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:inherit;line-height:inherit;cursor:pointer;text-underline-offset:4px}.report-value-link:hover{text-decoration:underline}.report-value-link:focus-visible{outline:2px solid #3265be;outline-offset:4px;border-radius:3px}
.business-report .report-tone-blue{border-top-color:#4275d0;background:#f8fbff}.business-report .report-tone-profit{border-top-color:#25846c;background:#f5fbf8}.report-tone-profit .value{color:#176b56}.business-report .report-tone-refund{border-top-color:#9872c8;background:#fbf9fe}.report-tone-refund .value{color:#735198}.business-report .report-tone-amber{border-top-color:#dbaa50;background:#fffcf5}.report-tone-amber .value{color:#985a13}.business-report .report-tone-red{border-top-color:#ca5757;background:#fff7f7}.report-tone-red .value{color:#b43535}
.report-coverage-strip{padding:16px 20px;display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,230px) auto;gap:20px;align-items:center;border-left:3px solid #5485cf}.report-coverage-strip strong,.report-coverage-strip span{display:block}.report-coverage-strip strong{font-size:15px;color:#254c82}.report-coverage-strip>div>span{font-size:12px;color:#61728c;margin-top:6px;line-height:1.7}.report-coverage-strip .report-progress{margin:0;background:#e4ecf7;height:7px}.report-coverage-strip .report-progress span{background:#5485cf}.report-coverage-strip>.report-value-link{font-size:13px;color:#2c60ad}
.report-attention{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.report-attention>strong{font-size:13px;color:#405575;margin-right:4px}.report-attention>span{font-size:12px;color:#6b7e96}.report-attention-chip{display:flex;align-items:center;gap:12px;padding:9px 12px;background:white;border:1px solid #e0e6ef;border-radius:7px;color:#6b511d;font:inherit;font-size:12px;cursor:pointer}.report-attention-chip b{font-size:13px;font-variant-numeric:tabular-nums}.report-attention-chip.amber{background:#fffaf0;border-color:#ead8ad}.report-attention-chip.orange{background:#fff2df;border-color:#edc893;color:#97530c}.report-attention-chip.red{background:#fff0ef;border-color:#e7b5b1;color:#a43535}.report-attention-chip:hover{filter:brightness(.97)}
.report-review-note{background:#fffaf0;border:1px solid #ebdcb7;border-radius:8px;padding:11px 16px;color:#87602b;font-size:12px;line-height:1.8}.report-review-note .report-value-link{margin-left:10px;color:#8a5517}.report-formula .report-value-link{color:#2b5f9e}
.report-trend .panel-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.report-trend .panel-head p{font-size:12px;margin:6px 0 0;color:#697e99}.report-trend-switch{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.report-trend svg{display:block;width:100%;height:210px;padding:0 18px 8px;box-sizing:border-box}.report-trend svg text{fill:#6b7e96;font-size:12px}.report-chart-baseline{stroke:#dce5f1;stroke-width:1;stroke-dasharray:5 4}.report-chart-line{fill:none;stroke:#4677cf;stroke-width:2.5;stroke-linejoin:round}.report-chart-dot{fill:#4677cf;stroke:white;stroke-width:1.5}.report-chart-line.success{stroke:#9271bd}.report-chart-dot.success{fill:#9271bd}.report-chart-line.profit{stroke:#27876c}.report-chart-dot.profit{fill:#27876c}
.report-daily .table-wrap{max-height:650px;overflow:auto}.report-daily thead th{position:sticky;top:0;z-index:2;white-space:nowrap}.report-daily td:first-child,.report-daily th:first-child{position:sticky;left:0;background:#f7faff;z-index:1;min-width:120px}.report-daily th:first-child{z-index:3}.report-daily td{font-variant-numeric:tabular-nums}.report-daily tfoot td{font-weight:600;background:#edf3fb;border-top:2px solid #d2def0;padding-top:16px;padding-bottom:16px;white-space:nowrap}.report-daily tfoot td:first-child{background:#edf3fb;min-width:160px}.report-number-loss{color:#b73838}.report-number-low{color:#b46b14}.report-number-profit{color:#236b57}
@media(min-width:1201px){.report-filter-fields{flex:1;justify-content:flex-end}.report-filter-fields label{min-width:110px}.report-filter-fields select{max-width:200px}}
@media(max-width:1000px){.report-coverage-strip{grid-template-columns:minmax(0,1fr) auto}.report-coverage-strip .report-progress{grid-row:2;grid-column:1/-1}.report-coverage-strip{gap:12px}.business-report .report-card .value{font-size:25px}}
@media(max-width:600px){.business-report .report-overview,.business-report .report-refunds{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.business-report .report-card{padding:14px 12px}.business-report .report-card .value{font-size:22px}.business-report .report-card .label{font-size:12px}.report-card .label svg{display:none}.report-coverage-strip{padding:14px;grid-template-columns:1fr}.report-coverage-strip .report-progress{grid-row:auto;grid-column:auto}.report-coverage-strip>.report-value-link{text-align:left}.report-trend svg{display:none}.report-trend-mobile{display:block;padding:0 16px 16px}.report-trend-mobile>p{font-size:12px;color:#697e99;line-height:1.7}.report-trend-mobile>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #edf1f7;font-size:13px}.report-trend-mobile .btn{padding-left:0}.report-attention{gap:7px}.report-attention-chip{padding:8px 10px}.report-daily .panel-head{padding:16px}.report-current-scope span{font-size:11px}}
@media(max-width:380px){.business-report .report-overview,.business-report .report-refunds{grid-template-columns:1fr}}
@media(max-width:1200px){.report-overview,.report-refunds{grid-template-columns:repeat(2,minmax(0,1fr))}.report-filter-fields{margin-left:0}.report-profit{gap:20px;padding:24px}}
@media(max-width:760px){.report-profit{grid-template-columns:1fr}.report-profit-number{font-size:36px}.report-daily .panel-head{align-items:flex-start;gap:10px}.report-date-to{display:none}}
@media(max-width:520px){.business-report{gap:14px}.report-overview,.report-refunds{grid-template-columns:1fr}.report-filters{padding:15px}.report-filter-fields,.report-filter-fields label{width:100%}.report-filter-fields select{max-width:100%}.report-ranges{gap:6px}.report-ranges .btn{padding:8px 10px}.report-profit{padding:19px}.report-coverage{padding:16px}.report-profit-number{font-size:32px}.report-daily .panel-head{flex-direction:column}.report-daily .table-footer{gap:12px;flex-wrap:wrap}}

.batch-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px 20px}.batch-toolbar span{color:#61728c;font-size:13px}.batch-selection{margin-bottom:20px}.batch-selection input[type=checkbox]{width:20px;height:20px}.batch-selection td{vertical-align:middle}.workspace-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.workspace-metrics{grid-template-columns:1fr}}
#sync-management .form-row { align-items: end; }
#sync-management .form-row > button { align-self: end; min-height: 42px; margin-bottom: 16px; }
#sync-management th { position: sticky; top: 0; background: #e7edf9; z-index: 1; }

/* Per-shop department/person editor. */
.sync-shop-table table{width:100%;min-width:780px;table-layout:fixed;white-space:normal}
.sync-shop-table th:first-child{width:64px}.sync-shop-table th:nth-child(2){width:150px}.sync-shop-table th:nth-child(3){width:135px}.sync-shop-table th:nth-child(4){width:145px}
.sync-shop-table th:last-child{width:120px}.sync-shop-table td{overflow-wrap:anywhere}
.sync-shop-table .sync-edit-cell{position:sticky;right:0;z-index:1;background:#fff;white-space:nowrap;text-align:center}
.sync-shop-table th.sync-edit-cell{background:#e2ebfa}
#sync-shop-editor{width:min(480px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid #c4d5ef;border-radius:12px;padding:24px;color:#233f6a;background:#fff}
#sync-shop-editor::backdrop{background:#14274680}#sync-shop-editor h2{margin:0 0 12px;font-size:20px}
#sync-shop-editor .field{margin:18px 0}#sync-edit-shop{overflow-wrap:anywhere}.sync-edit-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}

.sync-edit-cell button{display:block;margin:6px auto}
#sync-auth-dialog{width:min(620px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid #c4d5ef;border-radius:12px;padding:24px;color:#233f6a;background:#fff}
#sync-auth-dialog::backdrop{background:#14274680}#sync-auth-dialog h2{margin:0 0 12px;font-size:20px}
#sync-auth-dialog p{margin:16px 0;overflow-wrap:anywhere}#sync-auth-dialog .sync-edit-actions{flex-wrap:wrap}
#sync-auth-dialog [hidden]{display:none!important}
/* Persistent startup feedback instead of an indefinitely blank workspace. */
.workspace-loading{margin:32px auto;padding:28px;max-width:900px;line-height:1.8}
.workspace-loading h2{font-size:18px;margin-bottom:12px}
.workspace-loading p{margin-bottom:18px;color:#536b90}
/* Keep page geometry stable while its bounded data request is in flight. */
.workspace-refresh{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 12px;margin-bottom:12px;border:1px solid #d7e2f7;border-radius:7px;background:#f3f7ff;color:#506489;font-size:12px}
.workspace-refresh.warn{background:#fff8e8;border-color:#ead9ad;color:#85632b}
.workspace-skeleton{min-height:420px;padding:22px}
.workspace-skeleton-title{font-size:13px;color:#5c7198;margin-bottom:24px}
.workspace-skeleton-bars{display:grid;gap:18px}
.workspace-skeleton-bars span{display:block;height:34px;border-radius:5px;background:linear-gradient(90deg,#eef2f9 25%,#f7f9fc 50%,#eef2f9 75%);background-size:200% 100%;animation:workspace-pulse 1.5s ease-in-out infinite}
.workspace-skeleton-bars span:first-child{width:65%;height:24px}
@keyframes workspace-pulse{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.workspace-skeleton-bars span{animation:none}}

.historical-order-lookup{padding:16px 20px;margin-bottom:16px;border:1px solid #d8e2f1;border-radius:9px}
.historical-order-lookup form>label{display:block;font-weight:600;margin-bottom:10px}
.historical-order-search-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.historical-order-search-row input{width:min(360px,100%);min-width:0;box-sizing:border-box;padding:10px 12px;border:1px solid #bccbea;border-radius:6px;font:inherit}
.historical-order-lookup p{font-size:13px;line-height:1.7;margin:10px 0 0}
@media(max-width:600px){.historical-order-lookup{padding:14px}.historical-order-search-row input{width:100%}}

.modal.fixed-actions-modal{display:flex;flex-direction:column;overflow:hidden;max-height:92vh}
.fixed-actions-modal .modal-head,.fixed-actions-modal .modal-actions{flex-shrink:0}
.fixed-actions-modal .modal-body{overflow-y:auto;min-height:0}
.fixed-actions-modal .modal-actions{gap:10px;flex-wrap:wrap}
@media(max-width:600px){.modal-overlay:has(.fixed-actions-modal){padding:10px}.modal.fixed-actions-modal{max-height:calc(100dvh - 20px)}.fixed-actions-modal .modal-body,.fixed-actions-modal .modal-head{padding:16px}}

#shop-procurement{margin-bottom:24px}#shop-procurement label{display:block;margin:14px 0;font-weight:600}#shop-procurement select,#shop-procurement textarea,#shop-procurement input[type=search]{display:block;width:100%;max-width:760px;margin-top:8px}#shop-procurement .allocation-check{display:flex;align-items:center;gap:8px;font-weight:400}#shop-procurement .allocation-check input{width:auto;flex-shrink:0}#shop-procurement td{overflow-wrap:anywhere}#shop-procurement hr{border:0;border-top:1px solid #e0e7f2;margin:24px 0}

.settings-links{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.settings-links>span{flex:1 1 100%;min-width:0}.settings-layout .field{min-width:0}@media(max-width:640px){.settings-layout .form-row{display:grid;grid-template-columns:minmax(0,1fr)}#shop-procurement .form-pad{padding:16px}#shop-procurement .table-footer{flex-wrap:wrap;gap:8px}}

#shop-procurement .allocation-blockers{display:block;overflow-wrap:anywhere}#shop-procurement .allocation-blockers ul{margin:10px 0;padding-left:22px}#shop-procurement .allocation-blocked-row{background:#fff4df}

#historical-import-panel{min-width:0}#historical-import-panel label{display:block;margin:12px 0}#historical-import-panel select,#historical-import-panel input[type=file]{display:block;width:100%;margin-top:8px}#historical-import-panel .history-confirm{display:flex;align-items:center;gap:8px}#historical-import-panel .history-confirm input{width:auto}#historical-import-panel td{overflow-wrap:anywhere}

.purchase-reference .btn.link{padding:0;min-height:0;font:inherit;vertical-align:baseline;white-space:normal;overflow-wrap:anywhere;text-align:left;background:transparent}

.panel:has(>.filter-bar>.workspace-picker),.aftersale-workspace{overflow:visible}
.workspace-picker{position:relative;font-size:13px;flex:0 1 auto;max-width:100%}
.workspace-picker>summary{cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:6px;background:#fff;padding:10px 12px;min-width:150px;line-height:20px}
.workspace-picker>summary::-webkit-details-marker{display:none}
.workspace-picker>summary:after{content:' ▾';float:right;margin-left:12px}
.workspace-picker[open]>summary{border-color:var(--brand)}
.workspace-picker-panel{position:absolute;top:calc(100% + 6px);left:0;z-index:35;background:white;border:1px solid var(--line);border-radius:9px;padding:14px;box-shadow:0 10px 30px #172e5626;width:360px;max-width:calc(100vw - 40px);text-align:left}
.shop-picker-panel input[type=search],.shop-picker input[type=search]{width:100%;margin-bottom:10px}
.shop-picker-tools{display:flex;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.shop-picker-list{max-height:290px;overflow:auto;overscroll-behavior:contain}
.shop-picker-list label{display:flex;align-items:flex-start;gap:9px;padding:7px 2px;line-height:1.6;cursor:pointer;font-size:13px}
.shop-picker-list label[hidden]{display:none}
.shop-picker-list input{flex:0 0 auto;width:16px;height:16px;margin-top:3px}
.shop-picker-panel p,.shop-picker p{font-size:12px;margin:9px 0;color:var(--muted)}
.payment-time-picker .workspace-picker-panel{width:465px}
.payment-time-picker .date-filters{margin:0;padding:0;border:0;gap:9px;background:none;box-shadow:none}
.payment-time-picker .date-filters label{flex:1 1 165px}
.payment-time-picker .date-filters input,.payment-time-picker .date-filters select{width:100%;min-width:0}
.payment-time-picker [data-payment-dates-apply]{margin-top:12px}
.recipient-fields{margin:10px 0}.recipient-field{display:flex;justify-content:space-between;align-items:start;gap:10px;margin:7px 0;line-height:1.8;overflow-wrap:anywhere}.recipient-field>span{min-width:0;flex:1}.recipient-field .btn{flex:none}.recipient-field [data-recipient-value]{white-space:pre-wrap}
@media(max-width:700px){.workspace-picker{position:static}.workspace-picker-panel{position:fixed;top:18vh;left:16px;right:16px;width:auto!important;max-width:none;max-height:72vh;overflow:auto}.shop-picker-list{max-height:34vh}.recipient-field{flex-wrap:wrap}}

.payment-time-picker .workspace-picker-panel{left:auto;right:0}@media(max-width:700px){.payment-time-picker .workspace-picker-panel{left:16px;right:16px}}

.purchase-price-advice{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 16px;margin:14px 0;border:1px solid #cddaff;border-radius:10px;background:#f5f8ff}.purchase-price-advice small{display:block;color:#526589;margin-bottom:6px}.purchase-price-advice strong{display:block;color:#233b67;font-size:18px}.purchase-price-advice p{grid-column:1/-1;margin:0;color:#526589;font-size:12px;line-height:1.7}@media(max-width:480px){.purchase-price-advice{grid-template-columns:1fr}}

.carrier-field{position:relative}.carrier-combobox{display:flex;align-items:stretch;position:relative}.carrier-combobox input{padding-right:46px;width:100%}.carrier-toggle{position:absolute;right:1px;top:1px;bottom:1px;width:42px;border:0;border-left:1px solid #d1d9ed;background:#f3f6fc;border-radius:0 6px 6px 0;color:#233b67;cursor:pointer}.carrier-choice-list{max-height:240px;overflow:auto;border:1px solid #c4d0ec;border-radius:6px;margin-top:4px;background:#fff}.carrier-choice-list[hidden]{display:none}.carrier-choice-list button{display:block;width:100%;text-align:left;border:0;background:#fff;color:#233b67;padding:10px 12px;cursor:pointer}.carrier-choice-list button:hover,.carrier-choice-list button[aria-selected=true]{background:#eaf0ff}.carrier-choice-list small{color:#526589}.purchase-context-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.purchase-context-grid div{min-width:0;overflow-wrap:anywhere}.purchase-context-grid small{display:block;color:#526589}.purchase-context-grid strong{font-weight:500}.purchase-diff{margin:12px 0;padding:12px;background:#f4f7ff;border:1px solid #d4def6;border-radius:8px;overflow-wrap:anywhere}.purchase-diff p{margin:4px 0}.repurchase-fields[hidden]{display:none}@media(max-width:480px){.purchase-context-grid{grid-template-columns:1fr}}

.sku-unavailable-label{display:block;color:#a85b09;background:#fff2da;border:1px solid #eed5ac;border-radius:4px;padding:3px 6px;margin-bottom:6px;font-size:12px;text-align:center}.unavailable-info{min-width:0;max-width:340px;overflow-wrap:anywhere;white-space:normal;margin:8px 0;line-height:1.6}.unavailable-info strong{color:#a85b09}.unavailable-info p{margin:4px 0;white-space:pre-wrap}.unavailable-info small{display:block;color:var(--muted);margin-bottom:6px}.sku-tile .unavailable-info{font-size:11px}.sku-tile .unavailable-info small{display:none}

.unavailable-info.compact p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Separate the primary purchase action from supplier copy and other follow-ups. */
.procurement-row-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:120px;margin:4px auto}
.order-workspace .procurement-row-actions>.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:38px;padding:8px 12px;border-radius:7px;line-height:20px;font-size:13px}
.procurement-row-actions>[data-action="claim"],.procurement-row-actions>[data-action="purchase"]{color:#fff;background:var(--brand);border:1px solid var(--brand);box-shadow:0 2px 5px #245ec722}
.procurement-row-actions>[data-action="claim"]:hover,.procurement-row-actions>[data-action="purchase"]:hover{color:#fff;background:var(--brand-dark);border-color:var(--brand-dark)}
.procurement-row-actions>.procurement-copy{background:#fff;color:#2456a6;border-color:#b4c9e9;box-shadow:none}
.procurement-row-actions>.procurement-copy:hover{background:#edf3ff;border-color:#7ba1da}
.purchase-mode-choices{margin:16px 0;padding:16px;border:1px solid #cddcf1;border-radius:10px;background:#f6f9ff}.purchase-mode-buttons{display:flex;gap:12px;flex-wrap:wrap}.purchase-mode-buttons .btn{flex:1;min-width:220px;white-space:normal;padding:14px;text-align:left}.purchase-mode-buttons span{display:block;margin-top:6px;font-size:13px;font-weight:400}.purchase-group-choice,.purchase-group-cost{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #dbe3ee}.purchase-group-choice>div{min-width:0;overflow-wrap:anywhere}.purchase-group-choice label,.purchase-group-cost label{flex:0 0 170px;font-size:13px}.purchase-group-choice select,.purchase-group-cost input{display:block;width:100%;min-height:38px;border:1px solid #aebedb;border-radius:6px;padding:7px;margin-top:5px}.purchase-group-fields{min-width:0;border:1px solid #c9d8ef;border-radius:10px;padding:18px;margin:20px 0}.purchase-group-fields legend{padding:0 8px;font-weight:700;color:#244b91}.purchase-group-summary{padding:16px;margin:12px 0;border:1px solid #cbdced;border-left:4px solid #3566c6;border-radius:8px;background:#f7faff}.purchase-group-summary .btn{margin-top:10px}.purchase-group-fields .field{display:flex;flex-direction:column;gap:6px;margin:12px 0}.purchase-group-fields .field>input,.purchase-group-fields .field>select{width:100%;min-height:40px;border:1px solid #b7c9e7;border-radius:6px;padding:9px;background:white}.purchase-group-fields .subline{margin:7px 0}#group-purchase-form{margin-top:18px}@media(max-width:600px){.purchase-mode-buttons .btn{min-width:0;flex-basis:100%}.purchase-group-choice,.purchase-group-cost{align-items:flex-start;flex-direction:column;gap:8px}.purchase-group-choice label,.purchase-group-cost label{flex:auto;width:100%}.purchase-group-fields{padding:12px}}
.sku-purchase-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;flex:0 1 204px;width:204px;max-width:100%;text-align:left}
.sku-purchase-actions>.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:38px;padding:8px 12px;line-height:20px}
.sku-tile>.sku-buy{width:100%;min-height:32px;padding:5px 6px;margin-top:4px;border-radius:5px;line-height:20px}
.sku-tile>.sku-shop-link{margin-top:4px}
@media(max-width:700px){.procurement-row-actions{width:108px;gap:10px}.order-workspace .procurement-row-actions>.btn{min-height:40px}.sku-purchase-actions{flex-basis:100%;width:100%}.sku-purchase-actions>.btn{min-height:42px}}

/* Supplier orders: compact filters, one return entry, and expandable daily groups. */
.modal:has(.supplier-batch-detail){width:1440px;max-width:calc(100vw - 48px);min-width:0}
.modal:has(#batch-withdraw-form){width:900px;max-width:calc(100vw - 48px);min-width:0}
.supplier-batch-detail .table-wrap{min-width:0;max-width:100%}.supplier-batch-detail table{width:100%;min-width:0;table-layout:fixed;white-space:normal}
.supplier-batch-detail th,.supplier-batch-detail td{white-space:normal;overflow-wrap:anywhere;padding:12px 10px;line-height:1.75}
.supplier-batch-detail>.table-wrap th:nth-child(1){width:8%}.supplier-batch-detail>.table-wrap th:nth-child(2){width:25%}.supplier-batch-detail>.table-wrap th:nth-child(3){width:5%}.supplier-batch-detail>.table-wrap th:nth-child(4){width:9%}.supplier-batch-detail>.table-wrap th:nth-child(5){width:15%}.supplier-batch-detail>.table-wrap th:nth-child(6){width:16%}.supplier-batch-detail>.table-wrap th:nth-child(7){width:22%}
.supplier-batch-detail .supplier-group-detail>.table-wrap th:nth-child(1){width:9%}.supplier-batch-detail .supplier-group-detail>.table-wrap th:nth-child(2){width:39%}.supplier-batch-detail .supplier-group-detail>.table-wrap th:nth-child(3){width:6%}.supplier-batch-detail .supplier-group-detail>.table-wrap th:nth-child(4){width:14%}.supplier-batch-detail .supplier-group-detail>.table-wrap th:nth-child(5){width:32%}
.batch-item-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.supplier-batch-detail .batch-toolbar{padding:12px 0}
@media(max-width:700px){.modal:has(.supplier-batch-detail),.modal:has(#batch-withdraw-form){max-width:calc(100vw - 20px)}.modal:has(.supplier-batch-detail) .modal-body{padding:14px 10px}.supplier-batch-detail th,.supplier-batch-detail td{padding:10px 6px}.supplier-batch-detail>.table-wrap>table,.supplier-batch-detail .supplier-group-detail>.table-wrap>table{min-width:820px}}
.supplier-order-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:0 20px 14px;margin:0}
.supplier-order-filters>input[name=query]{flex:1 1 280px;min-width:240px;max-width:380px}
.supplier-order-filters label,.supplier-return-toolbar label{display:flex;align-items:center;gap:8px;min-width:0}
.supplier-order-dates{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.supplier-order-dates input{width:148px;min-width:0}
.supplier-filter-hint{flex-basis:100%;margin:0;color:var(--muted);font-size:12px;line-height:1.7}
.supplier-return-toolbar{margin:0 20px 14px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#f6f8fe;gap:10px 14px}
.supplier-return-toolbar select{max-width:220px}
.supplier-order-views{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0 20px 14px}
.supplier-order-views>span{font-size:12px;color:var(--muted);line-height:1.7;margin-left:6px}
.supplier-source-tabs{display:flex;gap:10px;flex-wrap:wrap;padding:0 20px 10px}.supplier-source-tab{display:flex;align-items:center;gap:14px;min-width:170px;padding:11px 18px;border:1px solid #ccd6e7;border-radius:8px;background:#fff;color:var(--text);font-weight:600;cursor:pointer}.supplier-source-tab span{font-size:12px;font-weight:400;border-radius:12px;padding:2px 8px;background:#eef2f8}.supplier-source-tab.selected.source-manual{border-color:#b58a40;background:#fff6e5;color:#805619}.supplier-source-tab.selected.source-wps{border-color:#466bbb;background:#edf3ff;color:#284d97}.supplier-source-tab:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.supplier-source-hint{margin:0;padding:0 20px 16px;color:var(--muted);font-size:12px;line-height:1.7}.supplier-source-badge{display:inline-block;font-size:11px;line-height:1.8;border-radius:4px;padding:1px 7px;margin-top:6px;background:#fff1d8;color:#805619}.supplier-source-badge.source-wps{background:#e8f0ff;color:#284d97}.supplier-shipping-count{font-weight:650;margin-top:8px}.supplier-wps-summary{display:flex;flex-wrap:wrap;gap:3px 10px;font-size:12px;border-top:1px solid #dce4f1;padding-top:8px;margin-top:9px}.supplier-wps-summary>.subline,.supplier-wps-summary>.red:last-child{flex-basis:100%}.supplier-item-wps{font-size:12px;line-height:1.7;margin-top:8px;overflow-wrap:anywhere}.supplier-item-wps .btn{margin-top:5px}.supplier-issues-button{margin-top:9px;border-color:#d4a868;color:#8b571a;white-space:normal}.supplier-issue-reason{white-space:normal;overflow-wrap:anywhere}.supplier-source-empty{text-align:center;padding:34px!important;color:var(--muted)}
@media(max-width:700px){.supplier-source-tabs{padding:0 14px 10px;gap:8px}.supplier-source-tab{min-width:0;flex:1;padding:10px 12px;justify-content:space-between;gap:8px}.supplier-source-hint{padding:0 14px 12px}}
.supplier-directory{padding:0 20px 14px}.supplier-directory>summary{cursor:pointer;font-size:13px;color:var(--muted)}
.supplier-directory[open]>summary{margin-bottom:12px}
.supplier-orders>.table-wrap>table{min-width:970px;table-layout:fixed}
.supplier-orders>.table-wrap th:nth-child(1){width:22%}.supplier-orders>.table-wrap th:nth-child(2){width:14%}.supplier-orders>.table-wrap th:nth-child(3){width:24%}.supplier-orders>.table-wrap th:nth-child(4){width:25%}.supplier-orders>.table-wrap th:nth-child(5){width:15%}
.supplier-orders>.table-wrap td{white-space:normal;overflow-wrap:anywhere;line-height:1.75;padding:16px 18px}
.supplier-order-group>td:first-child>strong{font-size:15px}.supplier-order-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px}
.modal:has(.supplier-original-downloads){width:900px;max-width:calc(100vw - 24px)}
.supplier-original-download{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid #dce4f3}.supplier-original-download>div{min-width:0;overflow-wrap:anywhere}.supplier-original-download .btn{flex-shrink:0}
@media(max-width:500px){.supplier-original-download{align-items:flex-start;flex-direction:column;gap:10px}}
.supplier-progress{min-width:160px;max-width:240px}.supplier-progress strong{font-size:13px}.supplier-progress-track{height:6px;max-width:190px;margin:8px 0;border-radius:6px;background:#e7edf9;overflow:hidden}.supplier-progress-track>span{display:block;height:100%;background:var(--brand);border-radius:inherit}
.supplier-status{display:inline-flex;padding:3px 8px;border-radius:5px;font-size:12px;line-height:1.6}.supplier-status.pending{background:#fff3dd;color:#956014}.supplier-status.complete{background:#e6f5ee;color:#236b4b}.supplier-status.withdrawn{background:#eef1f6;color:#627088}
.supplier-wait{margin-top:7px;font-size:12px}.supplier-amount-empty{font-size:13px}.supplier-order-child{background:#f2f5fc!important}.supplier-order-child[hidden]{display:none}.supplier-order-child>td:first-child{padding-left:32px;border-left:3px solid #b9cbea}.supplier-group-detail{margin-top:20px}.supplier-group-detail h3{font-size:14px;margin:0 0 10px}
.supplier-orders .table-footer{gap:12px;flex-wrap:wrap}.supplier-orders .table-footer>div{display:flex;gap:8px}
@media(max-width:700px){.supplier-order-filters{padding:0 14px 12px;gap:10px}.supplier-order-filters>input[name=query]{max-width:none;min-width:0;width:100%;flex-basis:100%}.supplier-order-filters>label{width:100%}.supplier-order-filters>label select{flex:1;min-width:0}.supplier-order-dates{width:100%;gap:6px}.supplier-order-dates label{display:flex;flex:1 1 100%;gap:8px}.supplier-order-dates input{flex:1;min-width:145px;width:145px}.supplier-return-toolbar{margin:0 14px 12px;padding:12px}.supplier-return-toolbar label{width:100%}.supplier-return-toolbar select{max-width:none;min-width:0;flex:1}.supplier-return-toolbar>.btn{flex:1;min-height:40px}.supplier-return-toolbar>span{flex-basis:100%;font-size:12px}.supplier-order-views{padding:0 14px 12px}.supplier-order-views>span{flex-basis:100%;margin:0}.supplier-directory{padding:0 14px 14px}}
.wps-field-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;padding:14px 0}
.wps-job{margin-top:18px;padding-top:14px;border-top:1px solid #d6e0f5}
@media(max-width:640px){.wps-field-map{grid-template-columns:1fr}}
/* Current order margins, separate from historical SKU reference margins. */
.purchase-profit-legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:0 0 14px;color:var(--muted);font-size:12px;line-height:1.8}
.purchase-margin-value{display:inline-block;padding:5px 9px;border-radius:6px;font-size:14px;font-variant-numeric:tabular-nums}
.purchase-margin-value.low{background:#ffebcb;color:#874900}.purchase-margin-value.loss{background:#ffe3e3;color:#a32424}.purchase-margin-value.normal{color:#246749}
.purchase-margin-label{font-size:12px;font-weight:650;margin-top:6px}.purchase-margin-label.low{color:#874900}.purchase-margin-label.loss{color:#a32424}
.purchase-profit-pending{color:#6b7483}.procurement-cost .subline,.procurement-margin .subline{font-size:11px;line-height:1.65;margin-top:6px}
.order-workspace tr.purchase-margin-low>td{background:#fff8eb}.order-workspace tr.purchase-margin-loss>td{background:#fff1f1}
.order-workspace tr.purchase-margin-low>td:first-child{box-shadow:inset 4px 0 #d89124}.order-workspace tr.purchase-margin-loss>td:first-child{box-shadow:inset 4px 0 #ce4545}
.order-workspace tr.purchase-margin-loss .procurement-profit{color:#a32424}.order-workspace tr.purchase-margin-low .procurement-profit{color:#874900}
.order-workspace tr.purchase-margin-low>td:last-child{background:#fff8eb}.order-workspace tr.purchase-margin-loss>td:last-child{background:#fff1f1}
/* Purchase review prioritizes financial values, clear states and one main action. */
.metric-drill{font:inherit;font-weight:inherit;color:inherit;background:none;border:0;padding:0;text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:#9eb7dd;text-underline-offset:5px}
.metric-drill:hover{color:var(--brand)}.metric-drill:focus-visible{outline:2px solid var(--brand);outline-offset:4px;border-radius:3px}
.workspace-refund-note{padding:0 20px 14px;font-size:12px;color:var(--muted);line-height:1.8}.workspace-refund-note .metric-drill{margin-left:12px;color:#915300;font-weight:600}
.review-filter{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.review-filter select{min-width:175px;max-width:220px}
.purchase-review-help{display:flex;align-items:center;flex-wrap:wrap;gap:12px 20px;margin:0 0 12px}.purchase-review-help .purchase-profit-legend{margin:0}.purchase-review-help details{font-size:12px;color:var(--muted);max-width:100%}.purchase-review-help summary{cursor:pointer;color:#355e9a}.purchase-review-help details[open]{flex-basis:100%;padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:#f8faff}.purchase-review-help p{line-height:1.8;margin:6px 0}
.purchase-review-workspace>.table-wrap>table{table-layout:fixed;width:100%;min-width:1360px}
.purchase-review-workspace th,.purchase-review-workspace td{padding:12px 10px;white-space:normal;overflow-wrap:anywhere;line-height:1.65}
.purchase-review-workspace th:nth-child(1){width:150px}.purchase-review-workspace th:nth-child(2){width:160px}.purchase-review-workspace th:nth-child(3){width:48px}.purchase-review-workspace th:nth-child(4){width:82px}.purchase-review-workspace th:nth-child(5){width:124px}.purchase-review-workspace th:nth-child(6){width:70px}.purchase-review-workspace th:nth-child(7){width:108px}
.purchase-review-workspace:has(.procurement-profit) th:nth-child(8){width:100px}.purchase-review-workspace:has(.procurement-profit) th:nth-child(9){width:124px}
.purchase-review-workspace th:nth-last-child(2){width:150px}.purchase-review-workspace th:last-child,.purchase-review-workspace td:last-child{width:136px;min-width:136px}
.purchase-review-workspace tbody tr:not(.purchase-margin-low):not(.purchase-margin-loss)>td{background:#fff}
.purchase-review-workspace .sku-strip{width:136px;gap:8px}.purchase-review-workspace .sku-tile{width:64px}.purchase-review-workspace .sku-short-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;line-height:1.4;max-height:34px}
.purchase-review-workspace .sku-photo .product-thumb{width:56px;height:56px;min-width:0}.purchase-review-workspace .sku-photo{width:56px}.purchase-review-workspace .sku-state{font-size:11px}
.purchase-review-workspace .procurement-row-actions{width:112px;margin:0 auto;gap:4px}.purchase-review-workspace .procurement-row-actions>.btn{min-height:28px;line-height:18px;padding:4px 6px;font-size:12px}.purchase-review-workspace .procurement-row-actions>.primary{min-height:34px;color:white;background:var(--brand)}
.purchase-review-workspace .procurement-row-actions>.link,.purchase-review-workspace .procurement-row-actions>[data-purchase-edit]{background:none;border-color:transparent;box-shadow:none;color:#335f9e}
.purchase-review-workspace .subline{font-size:11px;line-height:1.6;margin-top:4px}.purchase-review-workspace .procurement-status{white-space:normal;overflow-wrap:anywhere}.purchase-review-workspace .procurement-status .badge{max-width:100%;white-space:normal;line-height:1.6}
.purchase-review-workspace .num{font-variant-numeric:tabular-nums;text-align:right}.purchase-review-workspace .procurement-cost>strong,.purchase-review-workspace .procurement-profit>strong{font-size:14px}.purchase-source{display:inline-block;margin-top:5px;padding:1px 5px;border-radius:4px;background:#edf2fa;color:#61748e;font-size:10px;line-height:1.6}
.purchase-review-workspace th:nth-child(6){width:92px}.purchase-review-workspace .sku-state.waiting{max-width:100%;white-space:normal;line-height:1.4}
.purchase-review-workspace .procurement-row-actions>[data-purchase-edit].primary{color:#fff;background:var(--brand);border-color:var(--brand)}
@media(max-width:700px){.review-filter{flex-basis:100%}.review-filter select{flex:1;max-width:none}.workspace-refund-note{padding:0 14px 12px}.purchase-review-workspace .procurement-row-actions>.btn{min-height:36px}.purchase-review-help{align-items:flex-start}.purchase-review-workspace>.table-wrap>table{min-width:1360px}}

/* All workspaces use the space beside navigation; reading forms retain their own measure. */
.main{min-width:0}.content{width:100%;max-width:none;margin:0;padding:28px 22px 36px}.topbar{padding-left:22px;padding-right:22px}
.finance-main{max-width:none;padding:28px 22px 36px}.panel,.metrics,.workspace-overview{min-width:0}.table-wrap{max-width:100%;overflow-x:auto}
.filter-bar{gap:12px;flex-wrap:wrap}.filter-bar .search-box{flex:1 1 300px;max-width:440px}.filter-bar select{min-height:42px}
.purchase-review-workspace>.table-wrap>table{min-width:1480px}.purchase-review-workspace:has(.procurement-profit)>.table-wrap>table{min-width:1640px}
.purchase-review-workspace th,.purchase-review-workspace td{padding:17px 14px;line-height:1.8;font-size:14px}
.purchase-review-workspace th:nth-child(1){width:210px}.purchase-review-workspace th:nth-child(2){width:190px}.purchase-review-workspace th:nth-child(3){width:64px}.purchase-review-workspace th:nth-child(4){width:105px}.purchase-review-workspace th:nth-child(5){width:140px}.purchase-review-workspace th:nth-child(6){width:110px}.purchase-review-workspace th:nth-child(7){width:128px}
.purchase-review-workspace:has(.procurement-profit) th:nth-child(8){width:120px}.purchase-review-workspace:has(.procurement-profit) th:nth-child(9){width:140px}
.purchase-review-workspace th:nth-last-child(2){width:190px}.purchase-review-workspace th:last-child,.purchase-review-workspace td:last-child{width:156px;min-width:156px}
.purchase-review-workspace .sku-strip{width:180px;gap:14px}.purchase-review-workspace .sku-tile{width:80px}.purchase-review-workspace .sku-photo,.purchase-review-workspace .sku-photo .product-thumb{width:70px;height:70px}.purchase-review-workspace .sku-state{font-size:12px}
.purchase-review-workspace .subline{font-size:12px;line-height:1.8;margin-top:7px}.purchase-review-workspace .procurement-row-actions{width:126px;gap:9px;margin:0}.purchase-review-workspace .procurement-row-actions>.btn{min-height:38px;padding:8px 10px;font-size:13px}.purchase-review-workspace .procurement-row-actions>.primary{min-height:40px}
.badge.processing{color:#4c4598;background:#eeebfc}.badge.shipped{color:#155ba0;background:#e6f1ff}.badge.purchased{color:#17684f;background:#e2f4ec}
.modal.wide{width:min(1120px,calc(100vw - 48px))}.modal:has(.detail-grid){width:min(1120px,calc(100vw - 48px))}
@media(min-width:701px){.modal.wide:has(.supplier-batch-detail){width:min(1440px,calc(100vw - 48px))}}
@media(max-width:850px){.content,.finance-main{padding:22px 16px 30px}.topbar{padding-left:16px;padding-right:16px}}
@media(max-width:600px){.content,.finance-main{padding:18px 12px 24px}.modal.wide,.modal:has(.detail-grid){width:100%;max-width:100%}.filter-bar .search-box{max-width:none;flex-basis:100%}}

.workflow-tab.refund-success-tab{color:#17684d;border-color:#b5d8c7}.workflow-tab.refund-success-tab.active{color:#155b43;background:#e5f5ed;border-color:#247451;box-shadow:inset 0 -3px #247451}.workflow-tab.refund-success-tab.active span{background:#fff;color:#155b43}
.all-order-workspace table{min-width:1420px;table-layout:fixed;width:100%}
.all-order-workspace th,.all-order-workspace td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.7}
.all-order-workspace th:nth-child(1){width:22%}.all-order-workspace th:nth-child(2){width:17%}.all-order-workspace th:nth-child(3){width:6%}.all-order-workspace th:nth-child(4){width:14%}.all-order-workspace th:nth-child(5){width:14%}
.all-order-workspace .record-products .media-item{gap:10px;margin:0 0 10px;align-items:flex-start}.all-order-workspace .product-thumb{width:64px;height:70px;min-width:64px}.all-order-workspace .ordered-item-info{min-width:0}.all-order-workspace .item-title{font-size:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.all-order-workspace .item-sub{font-size:12px}.record-quantity{font-size:12px;color:#536c8b;margin-top:8px}
.record-progress{display:inline-block;border-radius:6px;padding:4px 8px;font-size:13px;font-weight:600;margin-bottom:6px}.record-progress.active{background:#eaf1ff;color:#2459a7}.record-progress.done{background:#e7f5ef;color:#1b6b4d}.record-progress.warn{background:#fff3d8;color:#94620e}.record-progress.muted{background:#eef1f5;color:#53647b}
.record-todo{font-size:12px;margin-bottom:6px;padding-left:8px;border-left:2px solid #c8d5e7}.record-todo.warn{color:#966014;border-color:#e4b861}.record-todo.wait{color:#64758c;border-color:#91aac9}.record-todo.info{color:#386b63;border-color:#86b3a7}
.record-more summary,.record-references summary{font-size:12px;color:#446caa;cursor:pointer}.record-references{margin-top:8px}.record-more{margin-top:6px}.record-actions{display:flex;flex-direction:column;align-items:stretch;gap:7px}.record-actions .btn{white-space:normal;min-height:36px}.record-detail-status{border:1px solid #d7e2f2;border-radius:8px;padding:16px;margin:14px 0}.record-detail-status h3{margin-bottom:10px}.record-detail-status>div{margin-bottom:10px}
.record-product-title{font-weight:600;margin-bottom:10px;color:#27476b}
.order-record-views{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 22px;background:#fff;border-bottom:1px solid #d7e2f2}
.order-record-views>strong{font-size:13px;color:#586f8c;margin-right:4px}
.order-record-view{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 14px;border:1px solid #cad8ec;border-radius:7px;background:#fff;color:#35577f;font:inherit;font-size:13px;cursor:pointer}
.order-record-view span{font-size:12px;padding:1px 6px;border-radius:12px;background:#eef3fa;color:#365c8e}
.order-record-view.active{color:#174e9b;background:#eaf1ff;border-color:#477bc7;font-weight:600}
.order-record-view.refund-success-tab.active{color:#155b43;background:#e5f5ed;border-color:#247451}
.order-record-view:focus-visible{outline:3px solid #91b6ef;outline-offset:2px}
@media(max-width:700px){.order-record-views{padding:12px;gap:8px}.order-record-view{padding:8px 10px}}
.refund-success-toolbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:20px 0}.refund-success-toolbar>div{flex:1 1 420px}.refund-success-toolbar strong{color:#1d654d;font-size:18px}.refund-success-toolbar p{font-size:13px;line-height:1.8;color:#5b718c;margin-top:7px}
.refund-success-progress{padding:14px 18px;margin:0 0 18px;border:1px solid #cbddec;background:#f3f8fc;border-radius:8px;color:#4d6682;font-size:13px;line-height:1.8}
.refund-success-options{padding:14px 20px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;border-top:1px solid var(--line);font-size:13px;color:#586f8c}.refund-success-options select{padding:8px 12px;min-height:42px;border:1px solid #bdcce3;border-radius:7px;background:white;color:#263e60;margin-left:8px}
.refund-success-workspace>.table-wrap>table{width:100%;min-width:1440px;table-layout:fixed}.refund-success-workspace th,.refund-success-workspace td{padding:18px 16px;white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.8}.refund-success-workspace th:nth-child(1){width:25%}.refund-success-workspace th:nth-child(2){width:14%}.refund-success-workspace th:nth-child(3){width:17%}.refund-success-workspace th:nth-child(4){width:8%}.refund-success-workspace th:nth-child(5){width:14%}.refund-success-workspace th:nth-child(6){width:12%}.refund-success-workspace th:nth-child(7){width:10%}
.refund-success-amount{color:#17684d;font-size:20px;font-variant-numeric:tabular-nums}.refund-success-actions{display:grid;gap:9px;min-width:100px}.refund-success-actions .btn{white-space:normal;min-height:38px}.refund-success-workspace .sku-strip{max-width:100%;width:auto}.refund-success-workspace .item-title{white-space:normal}.workspace-overview:has(.refund-success-tab.active) .metric:first-child .value{color:#17684d}
.refund-overview-context{display:flex;align-items:center;flex-wrap:wrap;gap:8px 24px;padding:14px 18px 0;font-size:13px;color:#526987}.refund-overview-context>strong{color:#25446a}.refund-overview-context b{color:#25446a;font-variant-numeric:tabular-nums}.refund-overview-cohort{margin-left:auto;font-size:12px;color:var(--muted)}
.workspace-metrics.refund-overview{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px 18px 8px}.refund-overview .metric{min-height:100px;padding:12px 15px;border-top:3px solid #6089d1;background:#f8faff}.refund-overview .metric .label{font-size:13px}.refund-overview .metric .value{font-size:27px;line-height:1.2;margin:9px 0 6px;letter-spacing:-.3px}.refund-overview .metric .foot{font-size:11px;line-height:1.5}.refund-overview .metric:nth-child(2){border-top-color:#44a37f;background:#f5fbf8}.refund-overview .metric:nth-child(2) .value{color:#17684d}.refund-overview .metric:nth-child(3){border-top-color:#dda642;background:#fffaf2}.refund-overview .metric:nth-child(3) .value{color:#9b650c}.refund-overview .metric:nth-child(4){border-top-color:#9b83cc;background:#fbf9ff}.refund-overview .metric:nth-child(4) .value{color:#685091}.refund-overview-note{display:flex;flex-wrap:wrap;gap:4px 16px;padding:0 18px 12px;font-size:11px;color:var(--muted);line-height:1.6}
@media(max-width:1000px){.workspace-metrics.refund-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.refund-overview-cohort{margin-left:0}}@media(max-width:520px){.refund-overview-context{gap:7px 16px;padding:12px 12px 0}.refund-overview-context>strong{flex-basis:100%}.workspace-metrics.refund-overview{padding:10px 12px 8px;gap:8px}.workspace-metrics.refund-overview .metric{padding:10px;min-height:104px}.workspace-metrics.refund-overview .value{font-size:22px}.refund-overview .label svg{display:none}.refund-overview-note{padding:0 12px 12px}}
/* Pending procurement: shared scope first, actionable work, then all-state refunds. */
.procurement-scope-panel{margin-bottom:14px;overflow:visible}.procurement-scope-panel .filter-bar{border-bottom:0;padding-bottom:10px}.procurement-filter-scope{display:flex;align-items:center;flex-wrap:wrap;gap:4px 14px;padding:0 20px 14px;font-size:12px;color:var(--muted)}.procurement-filter-scope .scope-explanation{flex-basis:100%;line-height:1.6}.procurement-filter-scope .btn{padding:2px 6px;min-height:28px}
.procurement-work-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:16px 18px;border-bottom:1px solid var(--line)}.procurement-work-chip{display:flex;align-items:center;gap:8px;min-height:42px;border:1px solid #c9d6e9;border-radius:7px;background:#fff;color:#3b5374;padding:7px 13px;cursor:pointer}.procurement-work-chip strong{font-size:19px;color:#254d88;font-variant-numeric:tabular-nums}.procurement-work-chip small{font-size:12px}.procurement-work-chip.active{background:#edf4ff;border-color:#5788ce;box-shadow:inset 0 -2px #3973c5}.procurement-work-chip.warn{color:#945f16;background:#fffaf1}.procurement-work-chip.warn strong{color:#945f16}.procurement-work-chip.warn.active{border-color:#cc963e;box-shadow:inset 0 -2px #cc963e}.procurement-work-help{font-size:12px;color:var(--muted);margin-left:auto}.procurement-open-overview .refund-overview-context{padding-top:12px;font-size:12px;gap:6px 18px}.refund-cohort-label{color:#526987}
.procurement-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.procurement-tools>span{font-size:12px;color:var(--muted)}
.pending-procurement-workspace>.table-wrap{max-height:74vh;overflow:auto}.pending-procurement-workspace>.table-wrap>table{width:100%;min-width:1320px;table-layout:fixed}.pending-procurement-workspace th,.pending-procurement-workspace td{padding:16px 14px;font-size:14px;line-height:1.7;white-space:normal;overflow-wrap:anywhere}.pending-procurement-workspace th{position:sticky;top:0;z-index:2;background:#e7edf9}.pending-procurement-workspace th:last-child{z-index:3}.pending-procurement-workspace th:nth-child(1){width:200px}.pending-procurement-workspace th:nth-child(2){width:190px}.pending-procurement-workspace th:nth-child(3){width:60px}.pending-procurement-workspace th:nth-child(4){width:100px}.pending-procurement-workspace th:nth-child(5){width:150px}.pending-procurement-workspace th:nth-child(6){width:90px}.pending-procurement-workspace th:nth-child(7){width:190px}.pending-procurement-workspace th:nth-child(8){width:170px}.pending-procurement-workspace th:last-child{width:160px}.pending-procurement-workspace .num{text-align:right;font-variant-numeric:tabular-nums}.pending-procurement-workspace .subline{font-size:12px;line-height:1.7;margin-top:5px}.pending-procurement-workspace .sku-strip{width:auto;gap:12px}.pending-procurement-workspace .sku-tile{width:80px}.pending-procurement-workspace .sku-photo,.pending-procurement-workspace .sku-photo .product-thumb{width:70px;height:70px}.pending-procurement-workspace .sku-short-name{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5;max-height:42px}.pending-procurement-workspace .sku-state{font-size:12px}
.pending-procurement-workspace .procurement-row-actions{width:130px;margin:0;gap:8px}.procurement-send-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.procurement-send-actions>span{flex-basis:100%;font-size:11px;color:var(--muted)}.procurement-send-actions>.btn{min-height:32px;padding:5px 7px;font-size:12px;flex:1;box-shadow:none}.procurement-history-links{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.procurement-history-links .btn{padding:2px 0;min-height:26px}.procurement-history-links a{font-size:12px}.procurement-age{font-size:12px;margin-top:6px}.procurement-age.overdue{color:#976013;font-weight:600}.procurement-age.critical{color:#ad3333;font-weight:650}.procurement-age-label{display:inline-block;font-size:11px;margin-top:5px;border-radius:4px;padding:1px 6px}.procurement-age-label.overdue{background:#ffedcf;color:#89530b}.procurement-age-label.critical{background:#ffe1e1;color:#a82d2d}.pending-procurement-workspace tr.purchase-wait-normal>td{background:#fff}.pending-procurement-workspace tr.purchase-wait-overdue>td{background:#fffaf2}.pending-procurement-workspace tr.purchase-wait-critical>td{background:#fff5f5}.pending-procurement-workspace tr.purchase-wait-overdue>td:first-child{box-shadow:inset 4px 0 #d5a041}.pending-procurement-workspace tr.purchase-wait-critical>td:first-child{box-shadow:inset 4px 0 #cd5656}
@media(min-width:1100px){.procurement-scope-panel{position:sticky;top:0;z-index:6}}
@media(max-width:700px){.procurement-filter-scope{padding:0 14px 12px}.procurement-work-summary{padding:12px;gap:8px}.procurement-work-chip{flex:1 1 140px;justify-content:space-between;min-width:0;padding:7px 10px}.procurement-work-help{flex-basis:100%;margin:0;font-size:11px}.procurement-tools>span{flex-basis:100%}.pending-procurement-workspace>.table-wrap{max-height:none}.procurement-open-overview .refund-overview-context{gap:6px 12px}}
.pending-table-hint{display:none}
@media(max-width:700px){.procurement-scope-panel .filter-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px}.procurement-scope-panel .filter-bar .search-box{grid-column:1/-1;width:100%;min-width:0}.procurement-scope-panel .filter-bar select{min-width:0;width:100%;font-size:13px;padding:9px 8px}.procurement-scope-panel .filter-spacer{display:none}.procurement-scope-panel .payment-time-picker{grid-column:1/-1}.procurement-scope-panel .shop-picker>summary{padding:9px 8px}.procurement-work-chip{flex-basis:calc(50% - 4px);gap:4px;font-size:13px}.procurement-work-chip strong{font-size:17px}.procurement-work-chip:last-of-type{flex-grow:0}.pending-procurement-workspace th:last-child,.pending-procurement-workspace td:last-child{position:static;box-shadow:none}.pending-table-hint{display:block;font-size:12px;color:#526987;padding:10px 14px;background:#f8faff;border-bottom:1px solid var(--line)}}
/* Procurement: navigation, base scope, four operational counters, then exceptions. */
.workspace-main-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:14px}
.workspace-main-metrics .metric{padding:14px 16px;min-height:108px;margin:0;min-width:0}
.workspace-main-metrics .metric .value{font-size:26px;line-height:1.3;font-variant-numeric:tabular-nums;margin:10px 0 6px}
.workspace-main-metrics .metric small{font-size:12px;font-weight:400}
.workspace-main-metrics .metric p{margin:7px 0 0;line-height:1.5}
.workspace-main-metrics .metric-drill{white-space:normal;text-align:left}
.workspace-exceptions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 14px;border-top:1px solid var(--line,#dce5f4);font-size:12px;color:#5a6c88}
.workspace-shortcut{display:inline-flex;align-items:center;gap:7px;border:1px solid #d6e1f1;border-radius:7px;background:#f6f9ff;color:#36527c;padding:7px 10px;cursor:pointer;font:inherit}
.workspace-shortcut b{font-size:14px;font-variant-numeric:tabular-nums}.workspace-shortcut small{font-size:11px}
.workspace-shortcut.warn{background:#fff8ea;color:#9b6008;border-color:#f0d8a6}.workspace-shortcut.danger{background:#fff1f0;color:#b13935;border-color:#f1c4c0}
.workspace-shortcut.active,.workspace-shortcut:hover{box-shadow:inset 0 0 0 1px currentColor}
.order-record-review{gap:12px 20px;padding:12px 14px}
.record-review-group{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.record-review-label{font-size:12px;white-space:nowrap;color:#52647e}
.record-review-finance{padding-left:20px;border-left:1px solid #dce5f4}
.order-record-review .workspace-shortcut.info{background:#f2f5fa;color:#526783;border-color:#d8e1ed}
.order-record-review .workspace-shortcut.active{font-weight:700;box-shadow:inset 0 0 0 1px currentColor}
.order-record-review .workspace-shortcut.warn.active{background:#ffe7b7}
.order-record-review .workspace-shortcut.danger.active{background:#ffd9d6}
.order-record-review .workspace-shortcut.info.active{background:#dae4f3;color:#294d7c}
.order-record-review .workspace-shortcut:focus-visible,.record-review-clear:focus-visible{outline:2px solid #315fc1;outline-offset:3px}
.record-review-note{flex-basis:100%;font-size:12px;line-height:1.6;color:#66768d}
@media(max-width:760px){.order-record-review{align-items:flex-start;gap:12px}.record-review-group{flex-basis:100%}.record-review-finance{padding:10px 0 0;border-left:0;border-top:1px solid #dce5f4}.record-review-label{flex-basis:100%}.order-record-review .workspace-shortcut{padding:7px 9px}}
.procurement-work-summary.workspace-exceptions{display:flex;background:transparent;margin:0;border-radius:0}
.workspace-refund-details{margin:8px 14px 14px;border:1px solid #dce5f4;border-radius:8px;background:#f9fbff;color:#526988;font-size:12px}
.workspace-refund-details>summary{cursor:pointer;padding:11px 13px;font-weight:600;line-height:1.6}
.workspace-refund-details>summary span{margin-left:12px;font-weight:400}
.workspace-refund-details>p,.workspace-refund-secondary{padding:0 14px 10px;margin:0;line-height:1.65}
.workspace-refund-details .refund-overview{grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;gap:10px}
.workspace-refund-details .refund-overview-context{padding:5px 14px}.workspace-refund-details .metric{min-height:100px}
.workspace-nav .workflow-tabs{padding-bottom:8px}.workspace-count-note{line-height:1.6}
.procurement-stage-overview{overflow:hidden}.customer-workspace>.customer-filter-main{padding:14px 14px 6px}
.customer-workspace>.customer-filter-secondary{padding:6px 14px 12px}.customer-workspace>.procurement-filter-scope{padding:5px 14px 12px}
.supplier-orders .supplier-order-views{margin-bottom:0}.workspace-main-metrics .metric-drill[aria-pressed="true"]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
#workspace-live-notice:empty{display:none}
#workspace-live-notice{position:fixed;right:24px;bottom:20px;z-index:40;max-width:min(480px,calc(100vw - 32px))}
.workspace-live-message{display:flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid #b9ccec;border-radius:10px;background:#f5f9ff;color:#294c81;box-shadow:0 4px 16px #203d6320;font-size:13px;line-height:1.6}
.workspace-live-message .btn{flex-shrink:0}
@media(max-width:600px){#workspace-live-notice{right:16px;bottom:12px}.workspace-live-message{gap:8px;padding:10px}}
@media(max-width:1100px){.workspace-main-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.workspace-main-metrics{gap:8px;padding:10px}.workspace-main-metrics .metric{padding:12px;min-height:108px}.workspace-main-metrics .metric .value{font-size:22px}.workspace-refund-details .refund-overview{grid-template-columns:1fr}.workspace-refund-details>summary span{display:block;margin-left:0}}

.workspace-stats-loading{min-height:190px;padding:24px;color:#365679;display:flex;flex-direction:column;justify-content:center;gap:8px}

/* product-ranking.css */
.ranking-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:18px;margin-bottom:20px}.ranking-filters label{display:grid;gap:7px;font-size:12px;color:#536778}.ranking-filters select{max-width:220px;min-width:150px}.ranking-ranges{display:flex;gap:6px;flex-wrap:wrap}.ranking-search{flex:1;min-width:210px}.ranking-notice{display:block;line-height:1.9}.ranking-notice .btn{margin-left:12px}.ranking-count{margin:16px 0;color:#6a7b8d;font-size:12px}.ranking-product{display:flex;gap:12px;align-items:center;max-width:350px;min-width:255px;white-space:normal}.ranking-product .product-thumb{flex-shrink:0;width:66px;height:72px}.ranking-product .item-title{font-size:12px}.ranking-spec{font-size:12px;line-height:1.8;color:#536779;margin:3px 0;max-width:240px;overflow-wrap:anywhere}.ranking-table .ranking-rate{font-weight:650}.ranking-table td{vertical-align:middle}.ranking-table .subline{font-weight:400}.ranking-table th button{display:flex;gap:8px;align-items:center}.ranking-metrics .metric .foot{line-height:1.7}.ranking-preview{display:grid;gap:16px}.ranking-preview img{display:block;max-width:100%;height:auto;margin:auto}.ranking-table .inline-code{overflow-wrap:anywhere;white-space:normal;max-width:235px}#product-ranking .table-footer{gap:12px;flex-wrap:wrap}#product-ranking .pagination{flex-wrap:wrap}#product-ranking .pagination label{display:flex;gap:7px;align-items:center}@media(max-width:700px){.ranking-filters{padding:14px;gap:10px}.ranking-filters label{flex:1 1 130px}.ranking-filters select{width:100%;min-width:0}.ranking-ranges{width:100%}.ranking-product{min-width:240px}}
.ranking-summary{display:flex;flex-wrap:wrap;gap:16px 30px;align-items:center;padding:16px 20px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#5f7384;font-size:13px}.ranking-summary strong{color:#233e56;font-size:17px;margin:0 4px}.ranking-summary .ranking-pending{font-size:13px;font-weight:400}.ranking-pending{color:#987340;font-weight:400;font-size:12px}.ranking-expand{display:flex;flex-direction:column;align-items:flex-start;gap:6px;border:0;background:none;padding:0;color:inherit;cursor:pointer;text-align:left;white-space:normal;line-height:1.7}.ranking-expand>span{font-weight:400;color:#245ec7;font-size:11px}.ranking-table .ranking-sku-detail>td{padding:0 18px 18px;background:#f6f9ff}.ranking-sku-heading{padding:15px 10px;font-size:12px;color:#486079}.ranking-sku-table{border:1px solid #dce5f3;background:#fff}.ranking-sku-table .ranking-product{min-width:240px}.ranking-sku-table .product-thumb{width:44px;height:49px}.ranking-table td:nth-child(n+2){min-width:100px}.ranking-table th:nth-child(n+2){text-align:right}.ranking-table th:nth-child(n+2) button{margin-left:auto}.ranking-sku-table th,.ranking-sku-table td{font-size:12px}

/* aftersales.css */
.aftersale-sync{margin:16px 0;padding:12px 16px;background:#f4f7fc;border:1px solid #d8e2f1;border-radius:10px;color:#526887;font-size:12px}
.aftersale-sync summary{cursor:pointer;color:#314d77;font-weight:600;line-height:1.6}
.aftersale-sync p{margin:10px 0;line-height:1.7}
.aftersale-date-filter{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 20px;border-top:1px solid #e4eaf4;font-size:12px}
.aftersale-date-filter label{display:flex;align-items:center;gap:8px}
.aftersale-date-filter input{width:150px;padding:8px 10px;border:1px solid #bccbea;border-radius:6px;background:#fff;color:#233f68;font:inherit}
.aftersale-workspace .table-wrap table{min-width:900px;table-layout:fixed}
.aftersale-workspace th:nth-child(1){width:26%}.aftersale-workspace th:nth-child(2){width:25%}.aftersale-workspace th:nth-child(3){width:24%}.aftersale-workspace th:nth-child(4){width:16%}.aftersale-workspace th:nth-child(5){width:9%}
.aftersale-workspace td{vertical-align:top;white-space:normal;overflow-wrap:anywhere}
.aftersale-workspace td .subline,.aftersale-workspace td strong{white-space:normal;overflow-wrap:anywhere}
.aftersale-workspace .item-title{white-space:normal}
.aftersale-workspace .subline{line-height:1.65;margin-top:7px}
.aftersale-section{margin:20px 0}.aftersale-section h3,#aftersales-task-form h3{font-size:14px;margin:0 0 12px;color:#233f68}
.aftersale-money,.aftersale-return{margin:18px 0;padding:14px 16px;border:1px solid #d8e2f1;border-radius:8px;background:#f8faff}
.aftersale-money summary,.aftersale-return summary{cursor:pointer;font-weight:600;color:#314d77;line-height:1.6}
.aftersale-money[open] summary,.aftersale-return[open] summary{margin-bottom:14px}
.aftersale-money>.btn{margin:8px 8px 0 0}
.aftersale-date-filter .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.aftersale-date-filter{padding:12px;gap:8px}.aftersale-date-filter .muted{width:100%}.aftersale-sync{padding:10px 12px}}
.aftersale-workspace-nav .workspace-count-note{display:none}
.customer-workspace .item-cell+.item-cell{margin-top:10px}
#customer-decision-form>label{display:block;margin:12px 0}
#customer-decision-form select,#customer-decision-form textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0 14px;padding:10px;border:1px solid #bccbea;border-radius:6px;font:inherit;color:#233f68}
#customer-decision-form [hidden]{display:none!important}
.customer-evidence{margin:12px 0}.customer-evidence img{display:block;max-width:220px;max-height:220px;margin:8px 0}
.customer-supplier-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:12px 0;border-bottom:1px solid #d8e2f1;line-height:1.6}

/* Keep customer actions visible while only the detail content scrolls. */
.modal.customer-modal{display:flex;flex-direction:column;overflow:hidden;max-height:92vh;width:min(840px,100%)}
.customer-modal .modal-head,.customer-modal .modal-actions{flex-shrink:0;background:#fff}
.customer-modal .modal-body{overflow-y:auto;min-height:0;overscroll-behavior:contain}
.customer-modal .modal-head{padding:16px 24px}
.customer-modal .modal-head p{margin-bottom:0}
.customer-modal .modal-actions{gap:10px;flex-wrap:wrap;padding:12px 24px}
.customer-summary{padding:16px;border:1px solid #d8e2f1;background:#f4f7fd;border-radius:8px}
.customer-summary-top{display:flex;justify-content:space-between;gap:12px;align-items:center}
.customer-amount{font-size:23px;white-space:nowrap}
.customer-summary p{margin:8px 0 0;overflow-wrap:anywhere}
.customer-description{white-space:pre-wrap}
.customer-steps{list-style:none;display:flex;padding:0;margin:16px 0;gap:8px;color:#75829a;font-size:13px}
.customer-steps li{flex:1;border-bottom:2px solid #d8e2f1;padding:8px 0;display:flex;align-items:center;gap:6px}
.customer-steps span{border-radius:50%;background:#eaf0fa;width:23px;height:23px;display:inline-flex;justify-content:center;align-items:center;flex-shrink:0}
.customer-steps .current{color:#2b55bb;font-weight:600;border-color:#2b55bb}
.customer-steps .complete{color:#476889}
.customer-products,.customer-extra{margin:12px 0}
.customer-products summary,.customer-extra summary{cursor:pointer;color:#314d77;font-weight:600}
.customer-products[open] summary{margin-bottom:12px}
.customer-extra dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:0}
.customer-extra dt{color:#75829a;font-size:13px}
.customer-extra dd{margin:4px 0;overflow-wrap:anywhere;white-space:pre-wrap}
.customer-modal .customer-evidence h3 .muted{font-weight:400;font-size:12px;margin-left:8px}
.customer-evidence-grid{display:flex;flex-wrap:wrap;gap:12px}
.customer-evidence-card{width:140px;max-width:100%;display:flex;flex-direction:column;gap:6px}
.customer-evidence-open{display:flex;align-items:center;justify-content:center;width:140px;height:110px;max-width:100%;padding:0;background:#f4f7fd;border:1px solid #d8e2f1;border-radius:8px;cursor:zoom-in;overflow:hidden;color:#637591}
.customer-evidence-open img{width:100%;height:100%;object-fit:contain;margin:0}
.customer-image-failure{padding:12px;font-size:13px}
.customer-evidence-caption{font-size:12px;color:#637591;overflow-wrap:anywhere}
.customer-evidence [hidden]{display:none!important}
.customer-action-hint{font-size:13px;color:#476889;background:#f4f7fd;padding:10px 12px;border-radius:6px}
.customer-address-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.customer-address-grid .field{margin-bottom:10px;min-width:0}
.customer-address-grid input{box-sizing:border-box;width:100%}
.customer-modal .customer-supplier-row{align-items:flex-start;overflow-wrap:anywhere}
.customer-supplier-row .btn{flex-shrink:0}
@media(max-width:600px){
 .modal-overlay:has(.customer-modal){padding:10px}
 .modal.customer-modal{max-height:calc(100dvh - 20px)}
 .customer-modal .modal-head,.customer-modal .modal-body{padding:16px}
 .customer-modal .modal-actions{padding:10px;gap:6px;justify-content:space-between}
 .customer-modal .modal-actions .btn{padding:9px 10px;font-size:12px}
 .customer-summary-top{align-items:flex-start}
 .customer-summary-top>strong:first-child{font-size:14px}
 .customer-amount{font-size:20px}
 .customer-address-grid,.customer-extra dl{grid-template-columns:1fr;gap:6px}
 .customer-steps{font-size:12px}
 .customer-modal .customer-supplier-row{flex-direction:column;gap:8px}
}

.customer-money-breakdown{display:flex;flex-wrap:wrap;gap:8px 24px;margin:8px 2px;color:#637591;font-size:13px}

.customer-materials{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.customer-materials .customer-products,.customer-materials .customer-evidence{margin:4px 0}
.customer-overview h3{font-size:14px;color:#233f68;margin:0 0 10px}
@media(max-width:600px){.customer-materials{grid-template-columns:1fr;gap:14px}}

.customer-image-failure{overflow-wrap:anywhere;line-height:1.5}.customer-evidence-open:has(.customer-image-failure:not([hidden])){height:auto;min-height:110px;cursor:pointer}

/* Customer platform instructions and procurement records are independent. */
.customer-platform-progress dl,.customer-purchase-record dl{margin:10px 0;display:grid;gap:8px}
.customer-platform-progress dl>div,.customer-purchase-record dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px}
.customer-platform-progress dt,.customer-purchase-record dt{font-weight:600}
.customer-platform-progress dd,.customer-purchase-record dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.customer-purchase-record{padding:12px 0;border-bottom:1px solid #dce4f5;overflow-wrap:anywhere}
.customer-platform-progress{white-space:normal}
@media(max-width:520px){.customer-platform-progress dl>div,.customer-purchase-record dl>div{grid-template-columns:95px minmax(0,1fr);gap:6px}}

.customer-workspace .customer-official-status{white-space:pre-wrap;overflow-wrap:anywhere}

/* Comfortable desktop workbench; result text always accompanies its colour. */
.customer-filter-main,.customer-filter-secondary{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:18px 22px;background:#fff}
.customer-filter-secondary{border-top:1px solid #e4eaf4;padding-top:14px;padding-bottom:14px}
.customer-filter-main .search-box{flex:1 1 310px;min-width:240px;max-width:430px}.customer-filter-main .search-box input{width:100%;min-height:44px;padding-left:36px}
.customer-filter-main label,.customer-filter-secondary label{display:flex;align-items:center;gap:8px;font-size:13px;color:#52647d}
.customer-filter-main select,.customer-filter-secondary select,.customer-filter-secondary input{min-height:42px;padding:8px 11px;border:1px solid #bdcce3;border-radius:7px;background:#fff;color:#243e62;font:inherit}
.customer-filter-main>select{min-width:150px}.customer-filter-main select{max-width:240px}.customer-filter-secondary input{width:154px}.customer-date-presets{display:flex;gap:6px;flex-wrap:wrap}
.customer-more-filters{position:relative;font-size:13px;color:#365b91}.customer-more-filters summary{cursor:pointer;padding:10px 8px}.customer-more-filters[open]{padding:4px 10px;border:1px solid #d6dfed;border-radius:7px}.customer-more-filters select{display:block;margin:8px 0}
.customer-quick-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 22px;background:#f8faff;border-top:1px solid #e4eaf4}
.customer-quick{display:flex;align-items:center;gap:9px;min-height:38px;padding:7px 12px;border:1px solid #d5dfed;border-radius:7px;background:white;color:#445c7a;font-size:13px}.customer-quick span{font-variant-numeric:tabular-nums;font-weight:650}.customer-quick.active{border-color:#366ab5;box-shadow:0 0 0 1px #366ab5;background:#eaf2ff;color:#224f95}
.customer-quick.quick-overdue{color:#a33238;border-color:#e9bfc2}.customer-quick.quick-soon{color:#8b5b10;border-color:#ebd4a5}.customer-filter-summary{padding:10px 22px;color:#64758c;font-size:12px;border-top:1px solid #e4eaf4;line-height:1.8}
.customer-sync-warning{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:16px 22px;padding:14px 16px;border:1px solid #ebd09a;border-radius:8px;background:#fff7e7;color:#805916;font-size:13px}.customer-sync-warning span{flex:1 1 300px}
.customer-workspace th,.customer-workspace td{padding:20px 18px;font-size:14px;line-height:1.8}.customer-workspace tbody tr{background:#fff}.customer-workspace tbody tr:nth-child(even){background:#f9fbfe}.customer-workspace tbody tr:hover{background:#f0f5fc}
.customer-workspace tbody tr.is-overdue{background:#fff5f5}.customer-workspace tbody tr.is-soon{background:#fffbf1}.customer-workspace tr.is-overdue td:first-child{box-shadow:inset 4px 0 #c1424b}.customer-workspace tr.is-soon td:first-child{box-shadow:inset 4px 0 #c58822}
.customer-workspace .item-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:none;font-size:14px;line-height:1.7}.customer-workspace .subline{font-size:12px;line-height:1.8;margin-top:7px}
.customer-workspace .customer-official-status{display:block;font-size:13px;font-weight:500;color:#425c7e;margin:10px 0}.customer-request-amount{font-size:20px;font-weight:650;font-variant-numeric:tabular-nums;color:#253f64;margin:8px 0}.customer-type{font-size:14px}
.customer-result,.customer-stage{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:5px 10px;border:1px solid transparent;border-radius:6px;font-size:13px;line-height:1.6;font-weight:600;white-space:normal}
.customer-stage{margin:6px 0 0}.stage-pending{--stage-ink:#8c5d12;--stage-bg:#fff2d4;--stage-line:#ecd19a}.stage-processing{--stage-ink:#225e9d;--stage-bg:#eaf3ff;--stage-line:#bcd4f1}.stage-platform{--stage-ink:#7046a4;--stage-bg:#f1eafa;--stage-line:#d6c1ec}.stage-verify{--stage-ink:#a23c3f;--stage-bg:#fff0ef;--stage-line:#edc0be}.stage-settled{--stage-ink:#566579;--stage-bg:#edf1f5;--stage-line:#cdd7e2}.stage-all{--stage-ink:#344e70;--stage-bg:#edf2f9;--stage-line:#cad7e9}
.customer-stage{color:var(--stage-ink);background:var(--stage-bg);border-color:var(--stage-line)}
.customer-workspace .workflow-tab{color:var(--stage-ink);border-color:var(--stage-line);min-height:44px;padding:10px 16px}.customer-workspace .workflow-tab.active{color:var(--stage-ink);background:var(--stage-bg);border-color:var(--stage-ink);box-shadow:inset 0 -3px var(--stage-ink)}.customer-workspace .workflow-tab.active span{background:#fff9;color:inherit}
.result-application,.result-reapplied,.result-waiting_return,.result-reject_pending,.result-result_pending{color:#8b5b13;background:#fff3dc;border-color:#edd5a7}.result-rejected_refund,.result-rejected_return{color:#9a3b47;background:#fceef0;border-color:#eac4ca}.result-return_submitted,.result-buyer_confirm{color:#245f9d;background:#eaf3ff;border-color:#c2d7f0}.result-exchange{color:#7046a4;background:#f2ebfa;border-color:#dbc7ee}.result-cancelled{color:#5f6c7d;background:#eef1f5;border-color:#d6dce5}.result-refund_complete{color:#1a6a54;background:#e7f5ee;border-color:#b6ddcc}
.customer-last-operation{display:grid;gap:6px;font-size:12px;color:#5b6f8b;line-height:1.8}.customer-last-operation strong{font-size:14px;color:#2f486b}.customer-owner{display:block;font-size:14px}.customer-owner.unassigned{color:#98620e;background:#fff0cf;padding:3px 8px;border-radius:5px;width:fit-content}
.customer-order-copy{display:block;text-align:left;max-width:100%;font-size:12px;color:#365d94;overflow-wrap:anywhere;margin-top:8px;padding:3px 0}.customer-order-copy:hover{text-decoration:underline}.customer-order-copy svg{width:13px;height:13px;vertical-align:middle}
.customer-deadline{display:grid;gap:3px;margin-top:10px;font-size:13px;color:#536d90}.customer-deadline span{font-size:12px;font-weight:400}.customer-deadline.overdue{color:#a8323c;font-weight:650}.customer-deadline.soon{color:#95610e;font-weight:650}
.customer-current-result{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 18px}.customer-current-result .customer-stage{margin:0}.customer-current-result .customer-last-operation{margin-left:auto}
.modal.customer-modal{width:min(1240px,calc(100vw - 48px))}.customer-modal .modal-body{padding:24px 28px}.customer-modal .customer-platform-progress dl,.customer-modal .customer-purchase-record dl{grid-template-columns:1fr 1fr;gap:12px 24px}
@media(max-width:700px){.customer-filter-main,.customer-filter-secondary,.customer-quick-filters{padding:14px;gap:10px}.customer-filter-main .search-box{min-width:0;max-width:none;flex-basis:100%}.customer-filter-main label{flex-wrap:wrap}.customer-filter-secondary label{flex-wrap:wrap}.customer-filter-summary{padding:10px 14px}.customer-sync-warning{margin:12px 14px}.customer-current-result .customer-last-operation{margin-left:0;flex-basis:100%}.customer-modal .customer-platform-progress dl,.customer-modal .customer-purchase-record dl{grid-template-columns:1fr}.modal.customer-modal{width:100%;max-width:100%}.customer-modal .modal-body{padding:16px}}

/* One case per card, with procurement and buyer-return identifiers visible. */
.customer-workspace th,.customer-workspace td{padding:16px 12px;font-size:13px;line-height:1.6}
.customer-workspace .customer-row{background:#fff;border-top:10px solid #f1f5fb}
.customer-workspace .customer-row:nth-child(4n+1){background:#f9fbfe}
.customer-workspace .customer-row.is-overdue{background:#fff6f6}.customer-workspace .customer-row.is-soon{background:#fffcf3}
.customer-workspace .customer-note-row,.customer-workspace .customer-note-row:hover{background:#f7f9fd}
.customer-note-row td{padding:8px 14px;border-top:1px dashed #dce4f2}
.customer-note{display:flex;align-items:center;gap:12px;font-size:12px;color:#536884;white-space:pre-wrap}
.customer-note>span{flex:1}.customer-note small{margin-left:12px;color:#8793a7}.customer-note strong{margin-right:8px;color:#526887}
.customer-note label{flex:1}.customer-note textarea{display:block;box-sizing:border-box;width:100%;padding:8px;border:1px solid #c7d4e8;border-radius:6px;font:inherit}
.customer-note .error-text{flex-basis:100%}.customer-purchase-brief+.customer-purchase-brief{border-top:1px dashed #dce4f2;margin-top:12px;padding-top:12px}
.customer-note [data-note-text]{overflow-wrap:anywhere}
.customer-note [data-note-meta]{display:block;margin-top:4px}
.customer-note>button{flex-shrink:0}
.customer-note-editor label{display:block;margin-bottom:10px;font-weight:600}
.customer-note-editor textarea{display:block;box-sizing:border-box;width:100%;min-height:160px;resize:vertical;padding:12px;border:1px solid #c7d4e8;border-radius:6px;font:inherit;line-height:1.6}
.customer-note-editor .error-text{white-space:pre-wrap;overflow-wrap:anywhere}
.customer-workspace .customer-order-copy{display:block;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:12px;padding:4px 0;max-width:100%}
.customer-workspace .customer-request-amount{font-size:18px}.customer-workspace .customer-official-status{margin:6px 0}.customer-workspace .subline{margin-top:4px}
.customer-workspace .stage-receipt{--stage-ink:#765919;--stage-bg:#fff8e6;--stage-line:#ecdbac}
.customer-workspace .customer-row>.btn,.customer-workspace td:last-child .btn{padding:8px 10px;font-size:12px}
.modal.customer-modal{width:min(900px,calc(100vw - 32px))}.customer-modal .modal-body{padding:18px 22px}
.customer-brief-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0;padding:14px;background:#f7f9fd;border:1px solid #e3eaf4;border-radius:8px}
.customer-brief-grid>div>strong{display:block;font-size:12px;color:#71819a;margin-bottom:8px}
.customer-more-detail{border-top:1px solid #e1e8f2;padding-top:16px;margin-top:16px}.customer-more-detail>summary{cursor:pointer;font-size:12px;color:#617694}
.customer-optional-materials{margin:12px 0}.customer-modal .customer-summary p{margin:8px 0}.customer-modal .customer-description{max-height:90px;overflow:auto}
.customer-advanced-filters>summary{cursor:pointer;color:#637994;padding:7px 14px;font-size:12px;border-top:1px solid #edf1f7}
.customer-workspace>.workflow-tabs{padding:14px}.customer-workspace .customer-quick-filters{padding:10px 14px}.customer-workspace .aftersale-sync{margin:8px 14px;padding:8px 12px}
@media(max-width:700px){.modal.customer-modal{width:100%;max-width:100%}.customer-brief-grid{grid-template-columns:1fr}.customer-note{flex-wrap:wrap}.customer-note small{display:block;margin-left:0}}

/* Nine columns fit ordinary desktop windows; only narrow screens scroll. */
.customer-workspace>.table-wrap>table{width:100%;min-width:0;max-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}
.customer-workspace th:nth-child(1){width:18%}.customer-workspace th:nth-child(2){width:13%}.customer-workspace th:nth-child(3){width:8%}.customer-workspace th:nth-child(4){width:13%}.customer-workspace th:nth-child(5){width:9%}.customer-workspace th:nth-child(6){width:13%}.customer-workspace th:nth-child(7){width:11%}.customer-workspace th:nth-child(8){width:8%}.customer-workspace th:nth-child(9){width:7%}
.customer-workspace th,.customer-workspace td{box-sizing:border-box;padding:12px 9px;white-space:normal;overflow-wrap:anywhere;line-height:1.55;font-size:12px}
.customer-workspace th{font-size:12px;font-weight:600}
.customer-workspace .customer-row{--case-bg:#fff;background:var(--case-bg)}.customer-workspace .customer-row:nth-child(4n+1){--case-bg:#f9fbfe}.customer-workspace .customer-row.is-soon{--case-bg:#fffcf3}.customer-workspace .customer-row.is-overdue{--case-bg:#fff6f6}
.customer-workspace thead th:last-child,.customer-workspace .customer-row>td:last-child{position:sticky;right:0;z-index:2;box-shadow:-2px 0 4px #263e5b12}
.customer-workspace thead th:last-child{z-index:3;background:#e6edf9}.customer-workspace .customer-row>td:last-child{background:var(--case-bg)}
.customer-workspace .customer-row>td:last-child .btn{width:100%;min-height:32px;padding:7px 5px;white-space:normal;line-height:1.4}
.customer-list-products .item-cell{min-width:0;gap:7px;align-items:flex-start}.customer-list-products .ordered-products,.customer-list-products .ordered-item-info{min-width:0;max-width:100%}.customer-list-products .ordered-item-info{flex:1}
.customer-list-products .product-thumb{width:46px;height:54px;min-width:46px;flex:0 0 46px}.customer-list-products .item-title{font-size:12px;line-height:1.45;-webkit-line-clamp:2}.customer-list-products .item-sub{max-width:100%;font-size:11px;line-height:1.45;white-space:normal}
.customer-list-products .product-links,.customer-list-products .customer-quantity-note{display:none}.customer-list-products .ordered-item-qty{font-size:11px;margin:2px 0}
.customer-list-shop{margin-top:7px;font-size:11px;color:#61748e}.customer-workspace .customer-order-copy{margin-top:4px;font-size:11px;line-height:1.5}
.customer-workspace .customer-official-status{display:block;margin:0;font-size:12px;font-weight:600;padding:5px 7px;line-height:1.5}.customer-order-status,.customer-short-reason{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.customer-workspace .subline{font-size:11px;line-height:1.5}.customer-workspace .customer-request-amount{font-size:16px;margin:4px 0}.customer-workspace .customer-type{font-size:12px}
.customer-list-deadline .customer-deadline{font-size:11px;margin-top:5px}.customer-list-deadline .customer-deadline>span{display:none}.customer-legacy-note{font-size:10px;padding:1px 4px;border-radius:3px;background:#edf1f7;color:#63738b}
.customer-refund-totals{display:grid;gap:2px;margin:5px 0;font-size:11px;font-variant-numeric:tabular-nums}.customer-workspace .customer-owner{font-size:12px}
.customer-workspace .customer-note-row td{padding:7px 10px}.customer-note>span{min-width:0;overflow-wrap:anywhere}
.customer-money-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.customer-money-summary>div{border:1px solid #dce4f0;border-radius:7px;padding:10px;background:#f8faff}.customer-money-summary small{display:block;color:#71819a;margin-bottom:5px}.customer-money-summary strong{font-size:17px}
.customer-money-head{font-size:12px;color:#5d7390;line-height:1.7}.customer-money-tabs{display:flex;gap:8px;margin:14px 0}.customer-money-tabs .active{background:#e8f0fc;color:#245ec7;border-color:#8daee2}
.customer-money .field{margin-bottom:12px}.customer-money .form-row{gap:12px}.customer-money .form-alert{margin-bottom:12px}.customer-money-more{border-top:1px solid #e3eaf4;padding-top:12px;margin-top:16px;font-size:12px}.customer-money-more summary{cursor:pointer;color:#61748e}
.customer-money-preview{margin:12px 0;color:#687d99;font-size:12px}
.customer-money-confirm{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.6;margin:6px 0 14px;color:#5d7390}.customer-money-confirm input{width:auto;min-height:0;margin-top:3px}.customer-money-confirm[hidden]{display:none}
.customer-recovery .customer-money-summary{display:flex;flex-wrap:wrap;gap:10px 24px;margin:8px 0}.customer-recovery .customer-money-summary>div{display:flex;align-items:center;gap:6px;border:0;padding:0;background:none}.customer-recovery .customer-money-summary small{margin:0}.customer-recovery .customer-money-summary strong{font-size:13px}.customer-recovery .customer-money-more{margin-top:8px;padding-top:8px}
@media(max-width:1050px){.customer-workspace>.table-wrap>table{min-width:960px}.customer-workspace thead th:last-child,.customer-workspace .customer-row>td:last-child{min-width:76px}}
@media(max-width:600px){.customer-money-summary{grid-template-columns:1fr 1fr}.customer-money .form-row{grid-template-columns:1fr}.customer-money-tabs{flex-wrap:wrap}}

.customer-purchase-source{display:table;max-width:100%;padding:3px 5px;border-radius:4px;background:#eef3fc;color:#365e9b;font-size:11px;font-weight:600;line-height:1.5;margin-bottom:5px}.customer-purchase-source.source-fixed{background:#edf7f0;color:#317648}.customer-purchase-source.source-1688{background:#fff2e6;color:#b9651a}.customer-purchase-source.source-unknown{background:#f0f2f5;color:#7c8798;font-weight:400}

/* weidian-management.css */
#weidian-management .sync-metrics{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:12px;margin:0 0 20px}
#weidian-management .sync-metric{border:1px solid #d6e0f1;border-radius:10px;padding:15px;background:#f8faff}
#weidian-management .sync-metric strong{display:block;font-size:25px;margin-top:8px;color:#254976}
#weidian-management .sync-metric.attention strong{color:#a35d13}
#weidian-management .sync-filters{display:grid;grid-template-columns:2fr repeat(4,minmax(110px,1fr));gap:12px;align-items:end}
#weidian-management .sync-filters .field{min-width:0;margin:0}
#weidian-management .sync-shop-table{overflow:auto;max-height:560px;margin:18px 0}
#weidian-management .sync-shop-table table{min-width:960px}
#weidian-management .sync-shop-table th:nth-child(2){width:160px}
#weidian-management .sync-shop-table th:nth-child(3){width:130px}
#weidian-management .sync-shop-table th:nth-child(4){width:150px}
#weidian-management .sync-shop-table th:last-child{width:125px}
#weidian-management .sync-shop-table td{vertical-align:top;padding-top:18px;padding-bottom:18px}
#weidian-management details{margin:15px 0}
#weidian-management summary{cursor:pointer;font-weight:600}
#weidian-management .sync-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:0 0 18px}
#weidian-management .sync-pagination>span{margin-right:auto}
#weidian-management .sync-pagination select{width:auto;padding:6px}
#weidian-management .sync-history[open]{border:1px solid #d6e0f1;padding:14px;border-radius:8px}
#weidian-management [hidden]{display:none!important}
#weidian-management #connection-settings .panel{border:0;box-shadow:none;margin:0}
#weidian-management #connection-status:empty{display:none}
@media(max-width:1050px){#weidian-management .sync-filters{grid-template-columns:repeat(3,minmax(120px,1fr))}#weidian-management .sync-metrics{grid-template-columns:repeat(3,minmax(120px,1fr))}}
@media(max-width:650px){#weidian-management .sync-filters,#weidian-management .sync-metrics{grid-template-columns:repeat(2,minmax(110px,1fr))}}
@media(max-width:650px){#weidian-management #sync-management>.panel-head{display:block}#weidian-management #sync-management>.panel-head h2{margin-bottom:12px}#weidian-management #sync-management>.panel-head>div{display:flex;flex-wrap:wrap;gap:6px}#weidian-management .sync-shop-table{max-height:420px}}

/* page-navigation.css */
.page-jump{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;vertical-align:middle;margin:0 8px;font-size:13px;line-height:1.5}
.page-jump label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;margin:0;font-weight:400}
.page-jump input[data-page-input]{box-sizing:border-box;width:76px;min-width:64px;min-height:32px;margin:0;padding:5px 7px;border:1px solid #bccbf0;border-radius:5px;background:#fff;color:#193962;font:inherit}
.page-jump button[data-page-go]{min-height:32px;margin:0;padding:5px 10px;white-space:nowrap}
.page-jump-error{flex-basis:100%;color:#bd3333;font-size:12px;white-space:normal}
.page-jump-error:empty{display:none}
.pagination,.report-pagination,.finance-pager>div{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.table-footer,.finance-pager{flex-wrap:wrap;gap:12px}
.historical-order-search-row select{width:auto;min-width:140px;flex:0 0 auto}
@media(max-width:600px){.page-jump{margin:4px 0}.table-footer>div{flex-wrap:wrap;gap:6px}}

/* supplier-bulk.css */
.supplier-bulk-toolbar{position:relative;margin:14px 0 12px;min-width:0}
.supplier-bulk-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.supplier-bulk-picker{position:relative;flex:0 1 220px;min-width:180px}
.supplier-bulk-picker>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 13px;border:1px solid #c6d3ec;border-radius:7px;background:#fff;color:#243e68;font-weight:600;min-height:40px;box-sizing:border-box}
.supplier-bulk-picker>summary::-webkit-details-marker{display:none}
.supplier-bulk-picker>summary::after{display:none}
.supplier-bulk-picker[open]>summary{border-color:#3561bd;box-shadow:0 0 0 2px #e4ecff}
.supplier-bulk-menu{position:absolute;left:0;top:calc(100% + 7px);z-index:40;width:360px;max-width:calc(100vw - 40px);max-height:440px;overflow:auto;background:#fff;border:1px solid #c9d6ec;border-radius:9px;box-shadow:0 8px 28px #18335d26;padding:12px}
.supplier-bulk-search{display:block;color:#657996;font-size:12px;margin:0 0 9px}
.supplier-bulk-search input{display:block;width:100%;margin-top:5px;box-sizing:border-box}
.supplier-bulk-menu .supplier-bulk-choice{display:flex;align-items:center;gap:9px;padding:10px 7px;margin:0;border-radius:5px;font-size:13px;cursor:pointer}
.supplier-bulk-menu .supplier-bulk-choice[hidden]{display:none}
.supplier-bulk-choice:hover{background:#f0f5ff}
.supplier-bulk-choice:has(input:disabled){color:#8a97aa;cursor:default}
.supplier-bulk-choice input{width:15px;height:15px;margin:0;flex:none}
.supplier-bulk-choice span{flex:1;min-width:0;overflow-wrap:anywhere}
.supplier-bulk-choice strong{background:#edf3ff;color:#284e99;padding:2px 7px;border-radius:4px;white-space:nowrap}
.supplier-bulk-choice small{color:#7a89a0;white-space:nowrap}
.supplier-bulk-all{border-bottom:1px solid #e6ecf5}
.supplier-bulk-heading{font-size:11px;font-weight:700;color:#65789b;margin:10px 7px 3px}
.supplier-bulk-menu-footer{display:flex;align-items:center;gap:8px;border-top:1px solid #e6ecf5;padding-top:10px;margin-top:7px;font-size:11px;color:#75859e}
.supplier-bulk-hint{margin:7px 0 0;color:#73819a;font-size:12px;line-height:1.7}
.supplier-bulk-progress{margin-top:9px;display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px;padding:10px 13px;background:#eef4ff;border:1px solid #d9e4fa;border-radius:7px;font-size:12px;color:#405b84}
.supplier-bulk-progress strong{font-size:12px;color:#294c8c}
@media(max-width:640px){.supplier-bulk-picker{flex:1 1 180px}.supplier-bulk-menu{width:320px}.supplier-bulk-action-row>.btn{flex:0 1 auto}.supplier-bulk-progress{gap:8px}}

/* wps-tasks.css */
.modal.wide.wps-tasks-modal{width:calc(100vw - 48px);max-width:1800px;height:92vh;max-height:92dvh;overflow:hidden}
.wps-tasks-modal .modal-head{padding:16px 22px}.wps-tasks-modal .modal-head p{margin-top:4px}
.wps-tasks-modal .modal-body{padding:0;display:flex;flex:1;min-height:0;overflow:hidden}
.wps-task-panel{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0}
.wps-task-controls{padding:14px 20px 10px;border-bottom:1px solid var(--line);background:#fff;flex-shrink:0}
.wps-task-topline{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}
.wps-task-tabs{display:flex;gap:6px;flex-wrap:wrap}.wps-task-tabs button{border:1px solid #d4def1;border-radius:6px;background:#f7f9fd;padding:8px 13px;color:#425675;font-weight:600;cursor:pointer}
.wps-task-tabs button[aria-pressed=true]{background:#315dbb;color:white;border-color:#315dbb}.wps-task-tabs span{padding-left:5px;font-variant-numeric:tabular-nums}
#wps-task-filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#wps-task-filters input,#wps-task-filters select{height:36px;padding:7px 9px;border:1px solid #ccd8ef;border-radius:6px;background:#fff;color:#243a60;font:inherit}
#wps-task-filters input[type=search]{width:240px;max-width:100%}#wps-task-filters select{max-width:210px}#wps-task-filters label{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px}
.wps-task-help{display:flex;gap:16px;align-items:baseline;margin-top:10px;color:#677995;font-size:12px}.wps-task-help details{position:relative;flex-shrink:0}.wps-task-help summary{cursor:pointer}.wps-task-help details[open] p{position:absolute;right:0;top:22px;width:310px;z-index:3;background:#fff;padding:14px;border:1px solid #d4def1;border-radius:6px;box-shadow:0 6px 20px #233c6020;line-height:1.7}
#wps-task-error:not(:empty){padding-top:8px;color:#b43e38}#wps-task-notice{background:#fff6df;color:#805a15;padding:8px 10px;border-radius:6px;margin-top:10px}
.wps-task-scroll{flex:1;min-height:0;overflow:auto;overflow-anchor:none;background:#fff}
.wps-task-table{width:100%;border-collapse:collapse;table-layout:fixed}.wps-task-table>thead{position:sticky;top:0;z-index:2;background:#e9effb}.wps-task-table>thead th{padding:13px 16px;color:#2a456e;text-align:left;white-space:normal}
.wps-task-table>thead th:nth-child(1){width:15%}.wps-task-table>thead th:nth-child(2){width:15%}.wps-task-table>thead th:nth-child(3){width:12%}.wps-task-table>thead th:nth-child(4){width:28%}.wps-task-table>thead th:nth-child(5){width:17%}.wps-task-table>thead th:nth-child(6){width:13%}
.wps-task-summary>td{padding:14px 16px;vertical-align:top;border-bottom:1px solid #e2e8f4;overflow-wrap:anywhere;white-space:normal;background:#fff}.wps-task-summary:nth-child(4n+3)>td{background:#f8faff}
.wps-task-summary .subline{display:block;margin-top:5px;line-height:1.6}
.wps-task-summary .btn{margin:0 5px 5px 0}.wps-task-reason{display:block;font-size:12px;line-height:1.6;margin-top:7px;color:#63758d}.wps-task-reason.attention{color:#9d5426}
.wps-task-badge{display:inline-block;border-radius:5px;padding:4px 8px;font-size:12px;font-weight:600;background:#edf0f4;color:#657080;white-space:nowrap}.wps-task-badge.running{background:#e8efff;color:#2459bd}.wps-task-badge.success{background:#e4f5eb;color:#217447}.wps-task-badge.unknown{background:#fff1d4;color:#926015}.wps-task-badge.failed{background:#fde8e6;color:#b23832}
.wps-task-detail{padding:16px 22px;background:#f0f5fd;border-bottom:1px solid #d7e1f3}.wps-task-detail-head{display:flex;gap:14px;align-items:center;justify-content:space-between}.wps-task-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.wps-task-detail .table-wrap{max-width:100%;overflow:auto}.wps-task-detail table{background:white;width:100%;min-width:650px}.wps-task-detail th,.wps-task-detail td{padding:10px 14px;white-space:normal;overflow-wrap:anywhere}
.wps-task-empty{text-align:center;padding:45px!important;color:#718199}#wps-task-updated{padding:7px 20px;color:#718199;font-size:11px;border-top:1px solid #e2e8f4;flex-shrink:0}
.wps-tasks-modal .modal-actions{padding:12px 20px;flex-wrap:nowrap;align-items:center;gap:16px}#wps-task-pagination{flex:1;display:flex;align-items:center;gap:15px;justify-content:space-between;font-size:12px}.wps-task-page-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:900px){.wps-task-table{min-width:980px}.wps-task-controls{padding:12px}.wps-task-help{flex-wrap:wrap;gap:5px}.wps-task-help details[open] p{right:auto;left:0}#wps-task-pagination{flex-wrap:wrap;gap:8px}.wps-tasks-modal .modal-actions{padding:10px 12px;gap:8px}}
@media(max-width:600px){.modal.wide.wps-tasks-modal{width:100%;height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}.wps-tasks-modal .modal-head{padding:12px}.wps-task-topline{align-items:flex-start}.wps-task-tabs{gap:4px}.wps-task-tabs button{padding:7px 9px}#wps-task-filters{gap:6px}#wps-task-filters input[type=search]{flex:1;min-width:180px;width:auto}#wps-task-filters select{flex:1;max-width:100%;min-width:120px}#wps-task-filters input[type=date]{width:135px}#wps-task-pagination{font-size:11px}.wps-task-page-controls{gap:4px}.wps-task-help>span{line-height:1.5}.wps-task-detail{padding:12px}.wps-task-detail-head{justify-content:flex-start;flex-wrap:wrap}.wps-task-detail table{min-width:600px}}
@media(max-width:700px){.wps-task-table,.wps-task-table>tbody{display:block;min-width:0;width:100%}.wps-task-table>thead{display:none}.wps-task-table .wps-task-summary{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #d5e0f3;padding:8px 4px}.wps-task-summary>td{display:block;padding:6px 10px;border:0;min-width:0}.wps-task-summary>td:nth-child(4){grid-column:1/-1;grid-row:2}.wps-task-summary>td:last-child{grid-column:1/-1}.wps-task-table>tbody>tr:not(.wps-task-summary){display:block}.wps-task-table>tbody>tr[hidden]{display:none}.wps-task-table>tbody>tr:not(.wps-task-summary)>td{display:block;max-width:100%;padding:0}.wps-task-detail .table-scroll{overflow:auto;max-width:100%}.wps-task-summary .wps-task-reason{margin-top:4px}.wps-task-summary .subline{margin-top:3px}}

/* order-messages.css */
.order-correspondence{margin-top:7px;max-width:360px;border-radius:5px;background:#fff7e5;color:#694811;padding:5px 7px;font-size:12px;text-align:left}.order-correspondence.seller_note{background:#edf3ff;color:#365d94}.order-correspondence summary{cursor:pointer;display:flex;align-items:flex-start;gap:7px;list-style:revert}.order-correspondence summary>span:first-child{flex-shrink:0;font-weight:650}.order-note-snippet{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.order-note-full{white-space:pre-wrap;overflow-wrap:anywhere;padding-top:7px;line-height:1.7}.order-correspondence[open] .order-note-snippet{display:none}
.order-notes{margin-top:7px;min-width:0;text-align:left;overflow-wrap:anywhere}
.order-note-empty,.order-note-time{font-size:12px;color:#718096;line-height:1.7;margin-top:4px}
.order-note-empty>span{font-weight:600}.order-note-warning{font-size:12px;color:#95621a;line-height:1.7;margin-top:6px}
.order-note-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:7px}
.order-note-feedback{font-size:12px;color:#526b8c;line-height:1.7;margin-top:7px}
.order-notes[data-notes-detail]{border:1px solid #dce5f4;background:#f9fbff;border-radius:8px;padding:12px;width:100%;max-width:none;margin:12px 0;box-sizing:border-box}
.order-notes[data-notes-detail] .order-correspondence{max-width:none}
@media(max-width:600px){.order-note-toolbar .btn{white-space:normal}.order-notes[data-notes-detail]{padding:10px}.order-summary.has-order-notes{flex-direction:column;align-items:flex-start;gap:12px}.order-summary.has-order-notes>*{min-width:0;max-width:100%}}

.order-summary-product{flex:1;min-width:0}
.supplier-batch-detail [data-note-kind="buyer_note"] .order-correspondence summary{display:block}

.record-review-menu{position:relative;max-width:100%}.record-review-menu[open]{width:310px}.record-review-menu>summary{cursor:pointer;list-style:none;border:1px solid #d4dfef;border-radius:6px;padding:8px 12px;background:#fff;color:#385879;font-size:13px}.record-review-menu>summary::-webkit-details-marker{display:none}.record-review-menu>.record-review-group{position:relative;z-index:25;width:100%;max-width:100%;box-sizing:border-box;margin-top:6px;background:#fff;border:1px solid #d4dfef;border-radius:8px;padding:10px;box-shadow:0 8px 28px #183a6626;flex-direction:column;align-items:stretch}.record-review-menu .workspace-shortcut{display:flex;align-items:center;gap:8px;text-align:left}.record-review-menu .workspace-shortcut b{margin-left:auto}.note-purchase-comparison{max-width:360px}
