:root{font-family:"Microsoft YaHei",system-ui,sans-serif;color:#243449;background:#f3f5f7;font-size:14px}*{box-sizing:border-box}body{margin:0}header{height:72px;background:white;border-bottom:1px solid #e3e7ed;display:flex;align-items:center;justify-content:space-between;padding:0 32px}.brand{font-size:23px;font-weight:700;color:#14765c}.brand span{font-size:14px;color:#68778a;margin-left:16px;font-weight:400}nav{display:flex;gap:14px;align-items:center}a{color:#14765c;text-decoration:none}button,input,select,textarea{font:inherit;border:1px solid #d5dde5;border-radius:7px;padding:10px 13px;background:white;color:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}button:hover:not(:disabled){border-color:#178468}.primary{background:#137a5d;color:white;border-color:#137a5d}input:focus,textarea:focus{outline:2px solid #83bbaa;outline-offset:1px}main{max-width:1550px;margin:32px auto;padding:0 28px}h1{margin:0 0 8px;font-size:26px}p{color:#778294;margin:8px 0}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}#filters{display:flex;gap:12px;padding:18px;background:white;border-radius:10px;border:1px solid #e2e7eb}#query{width:300px}#shop{min-width:200px}#shops{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.shop-status{padding:6px 10px;font-size:12px;background:#e9eef3;border-radius:5px}.error{color:#b63131}#message{margin:12px 0;color:#b63131}.order{background:white;border:1px solid #e1e6ec;border-radius:10px;margin:16px 0;overflow:hidden}.order-head{display:flex;gap:18px;align-items:center;flex-wrap:wrap;background:#f9fbfc;padding:13px 18px;border-bottom:1px solid #e8edf1}.order-head strong{font-variant-numeric:tabular-nums}.tag{font-size:12px;padding:3px 8px;background:#fff1d5;color:#986422;border-radius:4px}.tag.released{color:#677385;background:#e9edf2}.order-body{padding:20px;display:grid;grid-template-columns:minmax(250px,330px) 1fr;gap:24px}.product-title{font-weight:600;line-height:1.7;margin-bottom:12px}.detail{white-space:pre-wrap;max-height:230px;overflow:auto;color:#6d7886;font-size:12px}.upload{margin:14px 0}.upload input{display:none}.stamp-list{display:flex;gap:16px;flex-wrap:wrap}.stamp{width:210px;margin:0}.stamp img{width:210px;height:160px;object-fit:contain;border:1px solid #e5e9ed;background:#fff}.stamp input{width:100%;margin-top:7px}.stamp small{display:block;color:#728172;margin:5px 0}.stamp .error{color:#ba3030}.stamp figcaption{font-size:12px;overflow-wrap:anywhere;margin:6px 0}.stamp button{font-size:12px;padding:5px 9px}.stamp a{font-size:12px;margin-right:12px}.empty{padding:70px 20px;text-align:center;color:#7a8797;background:white;border:1px dashed #cdd7e0;margin:20px 0}footer{display:flex;justify-content:center;align-items:center;gap:20px;margin:25px 0}#login{max-width:400px;margin:90px auto;background:white;border:1px solid #e1e6ec;border-radius:12px;padding:30px}#login label{display:block;margin:20px 0}#login input{display:block;width:100%;margin-top:8px}#login .primary{width:100%}@media(max-width:780px){header{padding:0 14px}.brand span{display:none}nav{gap:7px;font-size:12px}main{padding:0 12px;margin:20px auto}#filters{flex-wrap:wrap}#query,#shop{width:100%;min-width:0}.order-body{grid-template-columns:1fr}.heading{align-items:flex-start}.stamp{width:160px}.stamp img{width:160px;height:130px}.order-head{gap:10px}}

/* Order list follows the reference page: full width, aligned columns, sticky filters. */
:root{--filter-height:70px;color:#262626;background:#f5f6f8;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
main{max-width:none;margin:0;padding:20px 24px 24px}header{height:56px;padding:0 24px}.brand{font-size:19px}.embedded>header .brand{font-size:0}.embedded>header .brand span{font-size:16px;margin:0;color:#262626;font-weight:600}
.heading{margin:0;padding:0 0 16px}.heading h1{font-size:21px}.heading p{font-size:13px}.heading #count{font-variant-numeric:tabular-nums}
#workspace{min-width:0}#filters{position:sticky;top:0;z-index:10;flex-wrap:wrap;align-items:center;border-radius:6px 6px 0 0;padding:16px;gap:12px;box-shadow:0 1px 0 #e6e8eb}button,input,select{min-height:34px;padding:6px 11px;border-radius:4px}#query{width:320px;max-width:100%}#shops{margin:0;padding:10px 0;gap:8px}.shop-status{background:transparent;padding:2px 0;color:#8c8c8c}.shop-status+.shop-status{border-left:1px solid #ddd;padding-left:10px}#message:empty{display:none}
.order-columns,.order-body{display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,1.65fr) 160px;gap:0}.order-columns{position:sticky;top:var(--filter-height);z-index:9;background:#f7f7f7;border:1px solid #e3e6e9;padding:11px 0;font-weight:600}.order-columns span{padding:0 16px}.order-columns span:last-child{text-align:center}
.order{border-radius:4px;margin:12px 0}.order-head{background:#f7f7f7;padding:8px 14px;min-height:42px;gap:14px}.order-head strong{font-size:13px}.order-head button{border:0;background:transparent;padding:2px 4px;min-height:24px;color:#3768fa;font-variant-numeric:tabular-nums}.order-head .tag{margin-left:auto}.order-body{padding:0;min-height:130px}.order-body>div{min-width:0;padding:16px}.order-body>div+div{border-left:1px solid #e6e8eb}.product-title{font-size:14px;line-height:22px;font-weight:500;margin-bottom:10px;overflow-wrap:anywhere}summary{cursor:pointer;color:#3768fa;font-size:13px}.detail{margin-top:8px;line-height:20px}.order-actions{text-align:center}.order-actions .upload{display:block;margin:0}.order-actions button{white-space:nowrap;color:#3768fa;border-color:#d8e1fa}.order-actions p{font-size:12px;overflow-wrap:anywhere;line-height:20px}.stamp-list{align-items:flex-start;gap:16px}.stamp-list>p{font-size:13px;color:#999;margin:0}.stamp{width:180px;max-width:100%}.stamp img{display:block;width:180px;max-width:100%;height:130px}.stamp input{min-width:0;font-size:13px}.stamp figcaption{color:#666}.stamp small{font-size:12px;min-height:16px}footer{padding:12px 0;justify-content:flex-end;margin:0;font-size:13px}
@media(max-width:1050px){main{padding:16px}.order-columns,.order-body{grid-template-columns:minmax(220px,1fr) minmax(230px,1.2fr) 140px}.order-body>div{padding:12px}}
@media(max-width:760px){main{padding:12px}.order-columns{display:none}.order-body{grid-template-columns:1fr}.order-body>div+div{border-left:0;border-top:1px solid #e6e8eb}.order-actions{text-align:left}.order-head{gap:6px}#filters{gap:8px}#query,#shop{width:100%;min-width:0}.heading h1{font-size:19px}.stamp{width:160px}}

/* Structured order cells, matching the reference order table. */
.order-columns,.order-body{grid-template-columns:minmax(330px,2.1fr) 100px minmax(160px,1fr) 150px minmax(240px,1.25fr) 150px}
.order-head{gap:12px}.shop-id,.order-time{font-size:12px;color:#8c8c8c}.order-time{margin-left:8px}.order-body{min-height:150px}.order-body>div{padding:14px 12px}.product-row{display:flex;gap:12px;align-items:flex-start}.product-row+.product-row{border-top:1px solid #eee;padding-top:12px;margin-top:12px}.product-placeholder{width:90px;height:90px;flex-shrink:0;background:#f7f8fa;border:1px solid #e8ebef;border-radius:4px;display:grid;place-items:center;color:#999;font-size:12px;text-align:center}.product-text{display:flex;flex-direction:column;gap:8px;min-width:0}.product-text strong{font-size:14px;line-height:22px;font-weight:600}.product-text small,.order-buyer small,.order-state small{font-size:12px;color:#8c8c8c;line-height:20px;overflow-wrap:anywhere}.order-buyer,.order-state,.order-amount{display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere}.order-amount{justify-content:center;text-align:center;font-variant-numeric:tabular-nums}.order-amount strong{font-size:17px}.order-state{justify-content:center;text-align:center}.order-state strong{font-size:14px}.order-actions{display:flex;flex-direction:column;align-items:center;gap:10px}.order-actions>button{border:0;background:transparent}.order-columns span{padding:0 12px}.order-columns span:nth-child(2),.order-columns span:nth-child(4){text-align:center}.order-dialog{width:min(680px,90vw);border:1px solid #ddd;border-radius:8px;padding:0;max-height:85vh}.order-dialog::backdrop{background:#0006}.dialog-head{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #eee;position:sticky;top:0;background:white}.dialog-content{padding:20px;white-space:pre-wrap;font-size:14px;line-height:24px;overflow-wrap:anywhere}
@media(max-width:1250px){.order-columns,.order-body{grid-template-columns:minmax(250px,1.6fr) 90px minmax(130px,1fr) 110px minmax(190px,1fr) 130px}.product-placeholder{width:64px;height:64px}.product-row{gap:8px}}
@media(max-width:950px){#orders,.order-columns{min-width:1020px}#workspace{overflow:visible}main{overflow-x:auto}}

.product-placeholder img{width:100%;height:100%;object-fit:contain;border-radius:4px}
