.wms{--wms-ink:#203049;--wms-muted:#718098;--wms-line:#e4eaf0;--wms-accent:#079f9b;color:var(--wms-ink);background:#fff;padding:24px;min-height:650px;font:13px/1.6 "Microsoft YaHei",sans-serif;box-sizing:border-box}
.wms *,.wms-dialog,.wms-dialog *{box-sizing:border-box}.wms button,.wms input,.wms select,.wms textarea,.wms-dialog button,.wms-dialog input,.wms-dialog select,.wms-dialog textarea{font:inherit}
.wms-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.wms-head h2{font-size:23px;letter-spacing:-.5px;margin:0 0 5px}.wms-head p,.wms-muted{color:var(--wms-muted,#718098);margin:0}.wms-eyebrow{font-size:11px;color:#688f92;letter-spacing:2px;margin-bottom:5px}
.wms button,.wms-dialog button{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:88px;height:38px;padding:0 16px;border:1px solid #dce4ed;border-radius:8px;background:#fff;color:#263952;font-weight:600;cursor:pointer;white-space:nowrap;line-height:1}
.wms button:hover,.wms-dialog button:hover{border-color:#21b2af;background:#f0faf9}.wms button:disabled,.wms-dialog button:disabled{opacity:.45;cursor:not-allowed}.wms button.wms-primary,.wms-dialog button.wms-primary{color:#fff;background:#069f9b;border-color:#069f9b;box-shadow:0 3px 7px #0b99951a}
.wms input,.wms select,.wms textarea,.wms-dialog input,.wms-dialog select,.wms-dialog textarea{min-width:0;width:100%;height:38px;border:1px solid #dce4ed;background:#fff;border-radius:7px;padding:8px 11px;color:#243651;outline:none}.wms input:focus,.wms select:focus,.wms-dialog input:focus,.wms-dialog textarea:focus{border-color:#0cafaa;box-shadow:0 0 0 3px #0cafaa12}.wms input[type=checkbox],.wms-dialog input[type=checkbox]{width:17px;height:17px;flex:none;accent-color:#079f9b}
.wms-tabs{display:flex;gap:6px;border-bottom:1px solid var(--wms-line);padding-bottom:13px;overflow-x:auto;margin-bottom:20px}.wms-tabs button{border:0;min-width:86px;color:#687b96}.wms-tabs button[aria-selected=true]{background:#e4f6f4;color:#008e88}
.wms-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:16px}.wms-toolbar input{width:260px}.wms-toolbar select{width:175px}.wms-toolbar label{display:flex;align-items:center;gap:8px;color:#6b7d94;white-space:nowrap}
.wms-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin:20px 0}.wms-kpi{border:1px solid var(--wms-line);border-radius:12px;padding:19px;background:linear-gradient(150deg,#fff,#f7fafc);box-shadow:0 3px 10px #20304905}.wms-kpi span{display:block;color:#6f8298}.wms-kpi strong{display:block;font:600 29px/1.6 "Segoe UI",sans-serif;color:#173e4e}.wms-kpi small{color:#8390a3}
.wms-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}.wms-card{border:1px solid var(--wms-line,#e4eaf0);padding:22px;border-radius:12px;background:white}.wms-card h3{font-size:15px;margin:0 0 16px}.wms-card p{margin:8px 0}.wms-flow{display:flex;flex-wrap:wrap;gap:9px;align-items:center;color:#688097}.wms-flow b{padding:8px 12px;background:#f4f8fa;border:1px solid #e5edf1;border-radius:6px;color:#35546a}
.wms-table{overflow:auto;border:1px solid var(--wms-line);border-radius:11px}.wms table{border-collapse:collapse;width:100%;min-width:820px;text-align:left;background:white}.wms th{height:46px;background:#f5f8fc;color:#657894;font-size:12px;white-space:nowrap;padding:12px 14px;border-bottom:1px solid #dce5ef}.wms td{padding:16px 14px;border-bottom:1px solid #e9eef4;vertical-align:middle;max-width:300px;overflow-wrap:anywhere}.wms tr:last-child td{border-bottom:0}.wms tbody tr:hover{background:#f9fcfd}.wms td small{display:block;color:#8a98aa;font-size:11px}.wms td button{min-width:66px;height:30px;padding:0 10px;font-size:12px;margin:2px}.wms-actions{display:flex;flex-wrap:wrap;gap:6px}.wms-badge{display:inline-flex;align-items:center;justify-content:center;min-width:88px;height:28px;border:1px solid #c9e1f9;border-radius:6px;color:#376eaa;background:linear-gradient(#fff,#edf5ff);font-size:12px;white-space:nowrap}.wms-badge.good{color:#158765;border-color:#bae6d3;background:#effaf5}.wms-badge.warn{color:#b57712;border-color:#f0d6a5;background:#fffaef}.wms-badge.bad{color:#ba4160;border-color:#f2c0ce;background:#fff5f7}
.wms-empty{text-align:center;padding:60px 20px!important;color:#8996a9}.wms-pager{display:flex;gap:10px;justify-content:flex-end;align-items:center;margin-top:18px;color:#798aa3}.wms-pager select{width:80px}.wms-notice{padding:12px 16px;border-radius:8px;background:#eef9f8;border:1px solid #d4efeb;color:#477f7b;margin-bottom:16px}.wms-error{color:#bb3f50!important;background:#fff4f5;border-color:#f3d7dc}.wms-scan{display:flex;gap:12px;margin-bottom:20px}.wms-scan input{height:48px;font-size:18px;letter-spacing:1px}.wms-scan button{height:48px}.wms-dialog{width:min(850px,calc(100vw - 32px));max-height:calc(100vh - 48px);border:1px solid #dce4ed;border-radius:16px;padding:0;box-shadow:0 24px 90px #152d4d35;color:#263952;font:13px/1.6 "Microsoft YaHei",sans-serif}.wms-dialog::backdrop{background:#1d30445c;backdrop-filter:blur(2px)}.wms-dialog header{display:flex;justify-content:space-between;align-items:center;padding:22px 24px;border-bottom:1px solid #e6ecf2}.wms-dialog h3{font-size:19px;margin:0}.wms-dialog header button{min-width:32px;width:32px;height:32px;padding:0;font-size:23px;border:none}.wms-dialog-body{padding:22px 24px}.wms-form-row{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:16px;margin-bottom:16px}.wms-form-row>span{color:#657894}.wms-form-row textarea{min-height:85px;height:auto;resize:vertical}.wms-check{display:flex;align-items:center;gap:10px;margin:18px 0}.wms-dialog footer{display:flex;justify-content:flex-end;gap:12px;padding:18px 0 0;margin-top:20px;border-top:1px solid #e6ecf2}.wms-dialog dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 22px}.wms-dialog dl div{display:flex;gap:14px;align-items:baseline}.wms-dialog dt{color:#7b8ca2;min-width:85px}.wms-dialog dd{margin:0;word-break:break-word}.wms-detail-lines{border:1px solid #e4eaf0;border-radius:9px;margin-top:18px;overflow:hidden}.wms-detail-line{padding:14px;border-bottom:1px solid #e4eaf0}.wms-detail-line:last-child{border:0}.wms-detail-line small{display:block;color:#7c8fa7}.wms-timeline{padding:0 0 0 20px;color:#668098}.wms-timeline li{padding:7px 0}.wms-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
@media(max-width:1100px){.wms-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.wms-grid{grid-template-columns:1fr}.wms{padding:18px}}
@media(max-width:600px){.wms{padding:12px;min-height:550px}.wms-head{align-items:flex-start}.wms-head h2{font-size:19px}.wms-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.wms-kpi{padding:12px}.wms-toolbar input,.wms-toolbar select{width:100%}.wms-toolbar label{width:100%}.wms-pager{flex-wrap:wrap}.wms-dialog-body{padding:18px}.wms-form-row{grid-template-columns:90px minmax(0,1fr);gap:10px}.wms-dialog dl{grid-template-columns:1fr}.wms-scan{flex-wrap:wrap}}

/* Completed packing and historical debit summary. */
.wms-packing-record{margin-top:24px;border:1px solid #dfe9ed;border-radius:12px;padding:22px;background:#fff}.wms-record-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.wms-record-heading h4{font-size:18px;margin:0;color:#294356}.wms-record-status{border-radius:20px;background:#eaf7f1;color:#14836f;padding:4px 12px;font-size:12px}
.wms-dialog .wms-record-meta{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 20px}.wms-dialog .wms-record-meta div{display:block}.wms-record-meta dt{font-size:12px;margin-bottom:5px}.wms-record-meta dd{font-size:14px;color:#415b70}.wms-record-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.wms-record-amounts>div{padding:18px 14px;background:#f5f8fa;border-radius:9px;min-width:0}.wms-record-amounts span{display:block;font-size:12px;color:#73869a}.wms-record-amounts strong{display:block;margin-top:10px;font:600 24px/1.3 "Segoe UI",sans-serif;color:#294356;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.wms-record-amounts .wms-record-fee{background:#fff8ee}.wms-record-fee strong{color:#a57122}.wms-record-amounts .wms-record-remaining{background:#edf9f5}.wms-record-remaining strong{color:#008d81}.wms-record-caption,.wms-record-reference{font-size:12px;color:#8797a6;line-height:1.8;margin:14px 0 0;overflow-wrap:anywhere}.wms-record-reference{margin-top:3px}.wms-record-pending{margin:0;padding:14px;background:#f5f8fa;border-radius:8px;color:#6c8092}.wms-detail-actions:empty{display:none}
@media(max-width:600px){.wms-packing-record{padding:16px}.wms-dialog .wms-record-meta{grid-template-columns:1fr}.wms-record-amounts{grid-template-columns:1fr}.wms-record-amounts>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px}.wms-record-amounts strong{margin:0;font-size:23px}}
