/* Shared workbench shell, aligned with fnnew's spacing and blue design tokens. */
:root{--seal:#4f7cff;--seal-dark:#3d68f0;--seal-soft:#edf2ff;--seal-line:#c3d6ff;--ink:#171b22;--ink-2:#616a78;--ink-3:#98a1b0;--page:#f5f6fb;--surface:#fff;--surface-2:#f8f9fc;--line:#e3e6ec;--line-soft:#eef0f4;--side:192px;--radius:12px;--radius-sm:7px;--shadow:0 2px 6px #4f7cff05}
body{background:var(--page);font-size:13px;color:var(--ink)}
body>header,body.embedded>header{position:fixed;inset:0 auto 0 0;width:var(--side);height:100vh;display:flex;flex-direction:column;align-items:stretch;padding:22px 12px 14px;border:0;border-right:1px solid var(--line);background:#fff;box-shadow:none;z-index:40;overflow-y:auto;gap:0}
body>header .brand{display:flex;gap:10px;align-items:center;padding:0 10px 24px;color:var(--ink);font-size:16px;white-space:normal}
body>header .brand i{display:grid;place-items:center;width:33px;height:33px;flex:none;background:var(--seal);border-radius:9px;font:700 12px/1 Arial;color:#fff;font-style:normal}
body>header .brand b{display:block;font-size:15px;letter-spacing:.4px;color:var(--ink)}
body>header .brand small{display:block;font-size:10px;color:#98a1b0;letter-spacing:1.6px;margin-top:2px;font-weight:400}
body>header nav{display:flex;flex-direction:column;gap:4px;width:100%;flex:1;align-items:stretch;font-size:13px}
body>header nav .group{font-size:10px;color:#9aa3b2;padding:20px 12px 6px;letter-spacing:1px;margin:0}
body>header nav .group:first-child{padding-top:2px}
body>header nav a,body>header nav button{width:100%;display:flex;align-items:center;gap:10px;min-height:38px;padding:9px 12px;border:0;border-radius:7px;background:transparent;color:#616a78;font-size:13px;text-decoration:none;white-space:nowrap;margin:0}
body>header nav a:hover,body>header nav button:hover{background:#f2f4f7;color:#171b22;text-decoration:none}
body>header nav .active{background:#edf2ff;color:#4f7cff;font-weight:600}
body>header .ico{display:inline-grid;place-items:center;width:17px;height:17px;flex:none;color:inherit}
body>header .ico svg{width:16px;height:16px;stroke-width:1.7}
body>header .foot{display:flex;align-items:center;justify-content:space-between;padding:15px 10px 2px;color:#98a1b0;font-size:11px;border-top:1px solid #eef0f4;margin-top:20px}
.portal-topbar{height:56px;position:fixed;top:0;left:var(--side);right:0;z-index:30;background:#ffffffed;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:14px;backdrop-filter:blur(12px)}
.portal-crumb{display:flex;align-items:center;gap:12px;color:#98a1b0;white-space:nowrap;font-size:12px}.portal-crumb strong{font-weight:500;color:#404957}.portal-actions{display:flex;align-items:center;gap:8px}.portal-actions a{color:#616a78;font-size:12px;text-decoration:none}.portal-actions button{font-size:12px;min-height:30px;padding:4px 10px}.portal-dot{width:6px;height:6px;border-radius:50%;background:#0f9b6c;display:inline-block;margin-right:5px}
body>main{margin:0 0 0 var(--side);padding:85px 28px 32px;max-width:none;min-height:100vh;width:calc(100% - var(--side));background:var(--page)}
h1{font-size:22px;font-weight:650;letter-spacing:-.4px;line-height:1.4}h2{font-weight:600}p{font-size:12px;line-height:1.7}.page-head,.heading{margin-bottom:22px}.page-head p,.heading p{margin-top:6px;color:#8a93a3}
button,input,select,textarea{font-size:12px;border-radius:7px;min-height:34px}button{font-weight:500}.primary,button.primary{background:#4f7cff;border-color:#4f7cff;color:white;box-shadow:0 2px 3px #4f7cff12}.primary:hover:not(:disabled){background:#3d68f0;border-color:#3d68f0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid #4f7cff;outline-offset:2px}
.card,.shop{box-shadow:none;border:1px solid var(--line);border-radius:10px}.toolbar{gap:8px}#filters{position:static;display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:white;border:1px solid var(--line);padding:15px 18px;border-radius:10px;box-shadow:none;margin:0 0 18px;min-height:66px}#filters input[type=search],#filters #query{flex:1;min-width:180px;max-width:360px}#filters select{max-width:220px}#filters .spacer{flex:1}
#templates{grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:16px}.category-heading{font-size:14px;display:flex;align-items:center;gap:10px;color:#404957;margin:6px 0 0}.category-heading:after{content:'';height:1px;background:#e3e6ec;flex:1}.template-card{border-radius:10px;padding:0 0 14px;gap:12px;overflow:hidden;box-shadow:none}.template-card:hover{border-color:#c3d6ff;box-shadow:0 5px 16px #4f7cff0a}.tpl-preview{height:168px;border:0;border-bottom:1px solid #eef0f4;border-radius:0;background-color:#fafbfe;background-image:radial-gradient(#dfe4ee .6px,transparent .6px);background-size:12px 12px}.tpl-preview button{border-color:#dde4f0;background:white;color:#737e90;padding:5px 15px;box-shadow:0 2px 4px #172b4d05}.tpl-head,.tpl-products,.tpl-foot{margin-left:14px;margin-right:14px;padding:0}.tpl-head h2{font-size:13px}.tpl-rank{background:#edf2ff;color:#4f7cff;font-size:10px}.tpl-products{min-height:34px;font-size:11px;color:#98a1b0}.template-card .bar{height:3px;margin:0 14px;background:#f0f3fa}.tpl-usage strong{font-size:17px;font-weight:600;color:#404957}.tpl-usage span{font-size:10px}.tpl-foot button{font-size:11px;padding:4px 8px;min-height:28px}.pill{background:#edf2ff;border:1px solid #dce6ff;color:#4f7cff;border-radius:6px;padding:5px 10px;font-size:12px}.seg{background:#f2f4f8}
body.portal-orders #workspace{overflow:visible}body.portal-orders #filters{position:sticky;top:56px;z-index:12;border-radius:10px 10px 0 0;margin-bottom:0}body.portal-orders #shops{background:#fff;border-color:var(--line)}body.portal-orders .order-columns{top:calc(56px + var(--filter-height));background:#f8f9fc;border-color:var(--line);font-size:11px;color:#8a93a3}body.portal-orders .order{border-color:var(--line);background:#fff}body.portal-orders .order-head{background:#fafbfe}body.portal-orders #orders{background:white}body.portal-orders #login{max-width:420px;margin:6vh auto}body.portal-orders #loginForm{box-shadow:none;border:1px solid var(--line);border-radius:14px}body.portal-orders .stamp-panel{background:#fafbfe}
#rows .card{padding:18px 20px;margin-bottom:12px;background:white}#rows .card h2{font-size:14px;margin-bottom:8px}#rows .card p{margin-top:4px}.portal-page-tools{display:flex;align-items:center;gap:8px}.portal-page-tools a{display:none}
@media(min-width:1600px){body>main{padding-left:36px;padding-right:36px}#templates{grid-template-columns:repeat(auto-fill,minmax(245px,1fr))}}
@media(max-width:900px){:root{--side:174px}body>main{padding:78px 18px 24px}.portal-topbar{padding:0 18px}body>header{padding-left:8px;padding-right:8px}#filters input,#filters select{max-width:100%}}
@media(max-width:680px){:root{--side:0px}body>header,body.embedded>header{position:sticky;top:0;width:100%;height:auto;padding:12px 14px 8px;overflow:visible;border-right:0;border-bottom:1px solid var(--line);z-index:40}body>header .brand{padding:0 0 10px;gap:8px}body>header .brand i{width:28px;height:28px}body>header .brand small{display:none}body>header nav{flex-direction:row;overflow-x:auto;flex-wrap:nowrap;gap:4px;padding-bottom:3px}body>header nav a,body>header nav button{width:auto;min-height:32px;padding:6px 10px;font-size:12px;flex:none}body>header nav .group,body>header .foot,body>header nav [data-local-only]{display:none}.portal-topbar{position:static;height:42px;padding:0 15px}.portal-crumb{font-size:11px;gap:8px}.portal-actions>a{display:none}body>main{width:100%;margin:0;padding:22px 15px 30px;min-height:70vh}h1{font-size:20px}.page-head,.heading{margin-bottom:18px}#templates{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tpl-preview{height:130px}.tpl-head,.tpl-products,.tpl-foot{margin-left:10px;margin-right:10px}.tpl-head h2{font-size:12px}.tpl-foot{flex-wrap:wrap;gap:5px}.tpl-usage{width:100%}.tpl-usage strong{font-size:15px}.tpl-products{font-size:10px}.template-card .bar{margin:0 10px}#filters{padding:12px;gap:8px}#filters input,#filters select{flex:1 1 40%;width:auto;min-width:0}#filters .spacer{display:none}.page-head{align-items:flex-start;gap:10px}body.portal-orders main{overflow-x:auto}body.portal-orders #filters{position:static}body.portal-orders .order-columns{position:static}body.portal-orders .heading{min-width:0}#rows .card{padding:14px}#rows .card p{overflow-wrap:anywhere}#find{display:flex;gap:8px;flex-wrap:wrap;padding:12px}#find input{width:100%;min-width:0}#find button{flex:1}.portal-page-tools button{padding:4px 8px}#shops{grid-template-columns:1fr}}

.tpl-preview{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px}.shape-ghost{height:44px;width:44px;border:2px solid #dce4f5;border-radius:7px;box-shadow:inset 0 0 0 5px #f7f9ff}.shape-ghost[data-shape="圆章"]{border-radius:50%}.shape-ghost[data-shape="椭圆章"]{width:65px;height:40px;border-radius:50%}.shape-ghost[data-shape="条章"]{width:70px;height:30px;border-radius:4px}.shape-ghost[data-shape="待分类"]{border-style:dashed}.tpl-preview img{position:absolute;inset:0;width:100%;height:100%}#count:empty{display:none}

/* Order body only: preserve order heading and the remark strip unchanged. */
body.portal-orders{--order-cols:minmax(210px,1fr) 76px minmax(125px,.55fr) 96px 118px minmax(290px,.9fr)}
body.portal-orders .order-columns,body.portal-orders .order-body{display:grid;grid-template-columns:var(--order-cols)}
body.portal-orders .order-columns{font-size:12px;color:#404957;font-weight:600;min-height:38px;align-items:center}
body.portal-orders .order-columns span:last-child{text-align:left}
body.portal-orders .order-body{min-height:120px;align-items:stretch}
body.portal-orders .order-body>div{padding:13px 12px;min-width:0}
body.portal-orders .product-row{gap:10px;align-items:flex-start}
body.portal-orders .product-placeholder{width:64px;height:64px;flex:0 0 64px;border-radius:6px}
body.portal-orders .product-placeholder img{width:64px;height:64px;object-fit:contain}
body.portal-orders .product-text strong{font-size:12px;font-weight:600;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.portal-orders .product-text small{font-size:11px;line-height:1.7}
body.portal-orders .order-buyer{font-size:12px;overflow-wrap:anywhere}
body.portal-orders .order-amount strong{font-size:15px;font-weight:600}
body.portal-orders .order-state strong{font-size:12px}
body.portal-orders .order-state small{font-size:11px;line-height:1.6}
body.portal-orders .order-actions{gap:7px}
body.portal-orders .order-actions button{font-size:11px;min-height:30px;padding:4px 7px;width:100%}
body.portal-orders .drop-hint{font-size:10px;line-height:1.5}
body.portal-orders .order-body>.stamp-panel{background:#fafbfe;border-top:0;border-left:1px solid #eef0f4;padding:12px;max-height:310px;overflow-y:auto}
body.portal-orders .stamp-summary{gap:5px;font-size:11px}
body.portal-orders .stamp-summary strong{font-size:12px}
body.portal-orders .stamp-summary .chip{font-size:10px;padding:0 6px}
body.portal-orders .stamp-grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:8px;margin-top:10px}
body.portal-orders .stamp{padding:6px;gap:4px;border-radius:7px}
body.portal-orders .stamp .thumb,body.portal-orders .stamp img.thumb{height:85px}
body.portal-orders .stamp figcaption{font-size:10px}
body.portal-orders .stamp select{font-size:11px;min-height:27px;padding:3px 5px}
body.portal-orders .stamp-actions{flex-wrap:wrap;gap:3px}
body.portal-orders .stamp-actions button,body.portal-orders .stamp-actions a{font-size:10px;padding:2px 5px}
body.portal-orders .removed-list{font-size:11px}
@media(min-width:1800px){body.portal-orders{--order-cols:minmax(300px,1.2fr) 90px minmax(180px,.65fr) 120px 140px minmax(400px,1fr)}}
@media(max-width:1250px) and (min-width:761px){body.portal-orders #orders,body.portal-orders .order-columns{min-width:1080px}body.portal-orders main{overflow-x:auto}}
@media(max-width:760px){body.portal-orders #orders,body.portal-orders .order-columns{min-width:0}body.portal-orders .order-columns{display:none}body.portal-orders .order-body{grid-template-columns:minmax(0,1fr) 76px}body.portal-orders .order-body>.product-info{grid-column:1}body.portal-orders .order-body>.order-amount{grid-column:2}body.portal-orders .order-buyer{grid-column:1}body.portal-orders .order-state{grid-column:2}body.portal-orders .order-actions{grid-column:1/-1;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center}body.portal-orders .order-actions .upload,body.portal-orders .order-actions>button{flex:1}body.portal-orders .order-body>.stamp-panel{grid-column:1/-1;max-height:320px;border-left:0;border-top:1px solid var(--line)}body.portal-orders .stamp-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}}
body.portal-orders .order-actions .upload{width:100%;min-width:0}body.portal-orders .order-actions .upload button,body.portal-orders .order-actions>button{min-width:0;width:100%;white-space:normal;padding:5px 4px;line-height:1.5}body.portal-orders .order-actions progress{max-width:100%}body.portal-orders .order-actions .upload-status{max-width:100%;overflow-wrap:anywhere}
/* Template library: visible previews, counted categories and sticky controls. */
#template-toolbar{position:sticky;top:var(--template-sticky-top,56px);z-index:18;background:var(--page);padding:0 0 10px;margin-bottom:18px}
#template-toolbar #filters{margin:0;border-radius:10px 10px 0 0;border-bottom:0}
.template-tabbar{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:0 0 10px 10px;padding:10px 14px}
#category-tabs{display:flex;gap:6px;align-items:center;overflow-x:auto;flex:1;min-width:0;padding-bottom:3px}
#category-tabs button{flex:none;border-color:transparent;background:transparent;color:#737e90;padding:6px 12px;font-size:12px}
#category-tabs button.active{background:var(--seal-soft);color:var(--seal);font-weight:600}
.view-switch{display:flex;border:1px solid var(--line);border-radius:7px;padding:2px;flex:none}.view-switch button{border:0;background:transparent;font-size:11px;min-height:28px;padding:3px 10px}.view-switch button[aria-pressed=true]{background:var(--seal-soft);color:var(--seal)}
.preview-loading{font-size:12px;color:#98a1b0}
#templates.compact{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
#templates.compact .tpl-preview{height:112px}#templates.compact .tpl-products{display:none}#templates.compact .tpl-foot{flex-wrap:wrap;gap:6px}#templates.compact .tpl-usage{width:100%}
@media(max-width:680px){.template-tabbar{padding:8px;gap:6px}.view-switch button{padding:3px 7px}#category-tabs button{padding:5px 8px}#template-toolbar{padding-bottom:6px}#templates.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
/* WMS order board */
.wms-board .page-head{align-items:center}.board-head-actions{display:flex;gap:8px}.wms-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:22px}.wms-metric{display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#fff;border:1px solid var(--line);border-radius:10px;padding:17px 18px;gap:7px;white-space:normal;box-shadow:none}.wms-metric>span{font-size:12px;color:#616a78}.wms-metric strong{font-size:28px;line-height:1.2;font-weight:650;letter-spacing:-1px;font-variant-numeric:tabular-nums}.wms-metric small{font-size:10px;color:#98a1b0}.wms-metric.shipped strong{color:#0f9b6c}.wms-metric.issues strong{color:#d64545}.wms-metric.pending strong{color:#c07a10}.wms-metric.printed strong{color:#4f7cff}.wms-surface{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.wms-controls{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:16px 18px}.wms-controls #find{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.wms-controls #q{width:330px;max-width:100%}.wms-tabs{display:flex;gap:4px;padding:0 18px;border-bottom:1px solid var(--line);overflow-x:auto}.wms-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;min-height:44px;padding:10px 13px;color:#7a8595;background:transparent;flex:none}.wms-tabs button.active{border-bottom-color:#4f7cff;color:#4f7cff;font-weight:600}.wms-subline{display:flex;justify-content:space-between;gap:12px;padding:12px 18px;font-size:11px;color:#98a1b0;border-bottom:1px solid var(--line-soft)}.wms-subline>span:first-child{color:#616a78}.wms-board #message{margin:0;padding:0 18px;line-height:36px;font-size:12px}.wms-board #message:empty{display:none}.wms-board #message.error{color:#d64545;background:#fff6f5}.wms-table-wrap{overflow:auto;max-height:65vh}.wms-table{width:100%;border-collapse:collapse;min-width:1050px;white-space:nowrap}.wms-table th{position:sticky;top:0;z-index:2;background:#f8f9fc;color:#7b8594;font-size:11px;font-weight:500;text-align:left;padding:13px 14px;border-bottom:1px solid var(--line)}.wms-table td{padding:17px 14px;vertical-align:top;border-bottom:1px solid var(--line-soft);font-size:12px}.wms-table tr:last-child td{border-bottom:0}.wms-table tbody tr:hover{background:#fafbff}.wms-table th:first-child,.wms-table td:first-child{width:40px;padding-right:0}.wms-table input[type=checkbox]{width:14px;height:14px;min-height:0;accent-color:#4f7cff;cursor:pointer}.wms-table td small{display:block;font-size:10px;color:#98a1b0;margin-top:6px;line-height:1.5}.wms-order-copy{background:transparent;border:0;padding:0;min-height:20px;color:#4f7cff;font:600 12px/1.5 ui-monospace,Consolas,monospace;user-select:text}.wms-table .wms-shipment{font-size:9px;max-width:230px;overflow:hidden;text-overflow:ellipsis}.wms-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;border-radius:5px;padding:3px 8px;background:#f1f3f7;color:#7a8595}.wms-badge:before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:currentColor}.wms-badge.blue{color:#4f7cff;background:#edf2ff}.wms-badge.ok{color:#0f9b6c;background:#e6f6ef}.wms-badge.warn{color:#b77513;background:#fdf3e2}.wms-badge.bad{color:#d64545;background:#fdeceb}.wms-table .wms-issue{color:#d64545;max-width:160px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.wms-detail-link{font-size:11px;color:#4f7cff;background:transparent;border-color:transparent;padding:0;min-height:22px}.wms-pagination{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-top:1px solid var(--line);font-size:11px;color:#98a1b0}.wms-pagination>div{display:flex;gap:8px}.wms-pagination button{font-size:11px;min-height:30px}#empty{text-align:center;padding:60px 20px;color:#98a1b0;font-size:12px}.wms-detail{width:min(680px,95vw);max-width:680px;max-height:90vh;padding:0;border:1px solid var(--line);border-radius:14px;overflow:auto;box-shadow:0 24px 80px #172b4d25}.wms-detail::backdrop{background:#18263b55}.wms-detail-head{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:3}.wms-detail-head small{color:#98a1b0;font-size:11px}.wms-detail-head h2{margin:5px 0 0;font:600 17px ui-monospace,Consolas,monospace}#detail-body{padding:20px 24px}.wms-detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;padding:16px;background:#f8f9fc;border-radius:8px}.wms-detail-meta small{display:block;color:#98a1b0;font-size:10px;margin-bottom:4px}.wms-detail-meta span{display:block;font-size:11px;overflow-wrap:anywhere}#detail-body h3{font-size:13px;margin:24px 0 18px}.wms-timeline{padding-left:8px}.wms-event{position:relative;border-left:1px solid #e3e6ec;padding:0 0 24px 20px}.wms-event:before{content:'';position:absolute;left:-4px;top:5px;width:7px;height:7px;border-radius:50%;background:#4f7cff;border:2px solid white;box-sizing:content-box}.wms-event.error:before{background:#d64545}.wms-event strong{font-size:12px;font-weight:600}.wms-event time{display:block;font-size:10px;color:#98a1b0;margin-top:4px}.wms-event p{font-size:11px;margin-top:7px;overflow-wrap:anywhere}.wms-event small{display:block;color:#98a1b0;font-size:10px;margin-top:4px}
@media(max-width:1150px){.wms-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.wms-controls{align-items:flex-start}.wms-controls #find{flex-wrap:wrap}.wms-controls #q{width:260px}.wms-subline{flex-wrap:wrap}.wms-metric{padding:14px}}
@media(max-width:680px){.wms-board .page-head{align-items:flex-start;flex-direction:column;gap:12px}.wms-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.wms-metric{padding:13px}.wms-metric strong{font-size:24px}.wms-metric small{font-size:9px}.wms-controls{flex-direction:column;padding:12px}.wms-controls #find{display:flex;width:100%;padding:0;gap:7px}.wms-controls #q{flex:1 1 100%;width:100%}.wms-controls #find button{flex:none}.wms-controls #sync{width:100%}.wms-tabs{padding:0 8px}.wms-tabs button{padding:9px 10px;font-size:11px}.wms-subline{padding:10px 12px;font-size:10px;gap:5px}.wms-pagination{padding:12px;gap:10px}.wms-table-wrap{max-height:60vh}.wms-detail-meta{grid-template-columns:1fr}#detail-body{padding:16px}.wms-detail-head{padding:16px}}

.wms-tabs button{display:inline-flex;align-items:center;gap:6px}.wms-tab-count{font-size:10px;line-height:19px;min-width:20px;padding:0 5px;border-radius:5px;background:#f0f2f7;color:#8d97a6;font-variant-numeric:tabular-nums}.wms-tabs .active .wms-tab-count{color:#4f7cff;background:#edf2ff}
/* fnnew order palette: neutral surfaces, readable grey text, focused blue actions. */
body.portal-orders{--page:#f5f5f5;--surface:#fff;--surface-2:#fafafa;--line:#e5e7eb;--line-soft:#f0f0f0;--ink:#262626;--ink-2:#616161;--ink-3:#8c8c8c;--seal:#3768fa;--seal-dark:#2856df;--seal-soft:#edf2ff;--seal-line:#d6e1ff;--shadow:none;--shadow-lift:0 2px 8px #00000006;color:#262626;background:#f5f5f5}
body.portal-orders>main{background:#f5f5f5}
body.portal-orders .order-columns,body.portal-orders .order-head{background:#f7f7f7;color:#262626}
body.portal-orders .order{background:#fff;border-color:#e5e7eb;box-shadow:0 1px 3px #00000004}
body.portal-orders .order-body,body.portal-orders .order-body>.stamp-panel{background:#fff}
body.portal-orders .order-body>div+div{border-color:#f0f0f0}
body.portal-orders .order-remark{background:#fff;border-color:#f0f0f0}
body.portal-orders .order-remark .remark-label{color:#616161}
body.portal-orders .order-remark input,body.portal-orders .remark-chip{background:#fff;border-color:#e5e7eb}
body.portal-orders .order-head button,body.portal-orders a{color:#3768fa}
body.portal-orders .primary,body.portal-orders .order-actions .upload button{background:#3768fa;border-color:#3768fa;box-shadow:none}
body.portal-orders .primary:hover:not(:disabled),body.portal-orders .order-actions .upload button:hover:not(:disabled){background:#2856df;border-color:#2856df}
body.portal-orders .product-text strong,body.portal-orders .order-state strong,body.portal-orders .order-amount strong{color:#262626}
body.portal-orders .product-text small,body.portal-orders .order-buyer small,body.portal-orders .order-state small,body.portal-orders .order-time,body.portal-orders .shop-id,body.portal-orders .drop-hint{color:#8c8c8c}
body.portal-orders .stamp-panel .stamp{background:#fff;border-color:#e8e8e8}
body.portal-orders #shops{background:#fff;color:#8c8c8c}
body.portal-orders #filters{border-color:#e5e7eb}

body.portal-orders .order-sync-controls{display:flex;align-items:center;gap:12px;margin-left:auto;margin-right:20px;flex-wrap:wrap}body.portal-orders .order-sync-result{font-size:13px;color:#595959;max-width:440px;overflow-wrap:anywhere}@media(max-width:700px){body.portal-orders #workspace>.heading{flex-wrap:wrap;gap:12px}body.portal-orders .order-sync-controls{margin:0;order:3;width:100%}}

body.portal-orders #filters .order-sync-controls{margin:0 0 0 8px;gap:12px}body.portal-orders #filters .order-sync-controls .order-sync-result:empty{display:none}@media(max-width:700px){body.portal-orders #filters .order-sync-controls{margin:0;width:auto;order:initial}}

/* 2026-10-16 打印与出库页整理 */
.wms-controls{flex-wrap:wrap;align-items:center}
.wms-controls form{display:flex;gap:8px;flex-wrap:wrap;align-items:center;flex:1}
.wms-controls #q{width:300px;max-width:100%}
.wms-actions{display:flex;gap:8px;margin-left:auto}
.wms-ship{background:#127a52!important;border-color:#127a52!important;color:#fff!important}
.wms-ship:hover:not(:disabled){background:#0e6443!important}
.wms-subline{font-size:12px}
.wms-table thead th{position:sticky;top:0;z-index:2;background:#f8f9fc;font-size:12px;font-weight:600;color:#6b7686;padding:10px 12px;text-align:left;border-bottom:1px solid var(--line)}
.wms-table td{padding:10px 12px;vertical-align:top;border-bottom:1px solid var(--line-soft,#f0f2f6)}
.wms-table td>small,.wms-table td>span+small{display:block;margin-top:3px;font-size:11px;color:#98a1b0}
.wms-table tbody tr:hover td{background:#fafbfe}
.wms-table td:first-child,.wms-table th:first-child{width:36px}
.wms-issue{max-width:240px;-webkit-line-clamp:2;font-size:11px;line-height:1.5;margin-top:4px;cursor:help}
.wms-pager{display:flex;align-items:center;gap:8px}
.wms-pager label{display:flex;align-items:center;gap:6px;font-size:12px;color:#6b7686}
.wms-pager select{min-height:30px;padding:3px 8px;font-size:12px}
.wms-pagination{font-size:12px}
.wms-table-wrap{max-height:calc(100vh - 330px);min-height:240px}

.wms-skel td{height:58px}
.wms-skel td:not(:first-child)::after{content:"";display:block;height:10px;width:70%;border-radius:5px;background:linear-gradient(90deg,#eef1f6 25%,#f7f8fb 50%,#eef1f6 75%);background-size:200% 100%;animation:wms-shimmer 1.2s linear infinite}
@keyframes wms-shimmer{to{background-position:-200% 0}}

/* 顶栏状态灯（所有页面） */
.srv-light{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;padding:5px 12px;border-radius:999px;text-decoration:none;border:1px solid transparent;white-space:nowrap}
.srv-light::before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor}
.srv-light.ok{color:#127a52;background:#e9f7f0;border-color:#bfe3d0}
.srv-light.warn{color:#9a6614;background:#fdf3e0;border-color:#f0dcb4}
.srv-light.bad{color:#b3342f;background:#fdeeee;border-color:#efc7c4;animation:srv-blink 1.4s ease-in-out infinite}
@keyframes srv-blink{50%{opacity:.55}}
