.fleet-wms #warehouse{display:flex;flex-direction:column;flex:1;min-height:0;gap:9px;max-width:100%}.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}.wh-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;flex:none}.wh-metrics>div{background:white;border:1px solid #dbe4ef;border-radius:6px;padding:9px 13px;position:relative}.wh-metrics>div:first-child{border-top:3px solid #2a6ec0;padding-top:7px}.wh-metrics span{font-size:12px;color:#5b718c;display:block}.wh-metrics strong{font-size:26px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.2;display:block;margin:3px 0;color:#214568}.wh-metrics small{font-size:10px;display:block;color:#7d8ea3}.wh-toolbar{display:flex;align-items:center;gap:14px;justify-content:space-between;flex:none}.fleet-wms .wh-toolbar h2{margin:0;font-size:16px}.wh-toolbar h2 small{font-weight:400;font-size:11px}.wh-toolbar p{margin:3px 0 0;font-size:10px;color:#72849b}.wh-filters{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.fleet-wms .wh-filters select,.fleet-wms .wh-filters input,.fleet-wms .wh-filters button{font-size:11px;height:32px;min-height:32px;padding:4px 7px}.wh-filters input{width:205px}.wh-filters select{max-width:132px}.wh-legend{display:flex;gap:4px;flex-wrap:wrap;flex:none}.fleet-wms .wh-legend button{padding:3px 7px;min-height:25px;line-height:16px;font-size:10px;color:#61748c;border-color:transparent;background:transparent}.wh-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;border:1px solid #0001;margin-right:5px}.wh-legend span{font-weight:600;margin-left:5px;color:#324e70}.fleet-wms .wh-legend .active{border-color:#6a9ddc;background:#e5effc}.wh-alert{padding:6px 10px;border:1px solid #e0e7ef;background:#f8fbff;border-radius:4px;font-size:11px;color:#6d8095;flex:none}.wh-alert.attention{background:#fff4e8;border-color:#eacb9f;color:#8b571e}.wh-content{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-height:0;flex:1}.detail-open .wh-content{grid-template-columns:minmax(0,1fr) 330px}.wh-map{position:relative;border:1px solid #dbe4ef;background:#f9fbfd;border-radius:6px;min-height:0;overflow:hidden}#wh-racks{position:absolute;inset:0;overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px;align-content:start;scrollbar-gutter:stable}.detail-open #wh-racks{grid-template-columns:repeat(2,minmax(0,1fr))}.wh-face{min-width:0;border:1px solid #dce4ef;border-radius:4px;padding:6px 8px 8px;box-shadow:0 1px 2px #19314d05;background:linear-gradient(white 0,white 41px,transparent 41px)}.wh-face-title{display:flex;justify-content:space-between;align-items:baseline;gap:6px}.wh-face-title strong{font-size:13px;color:#254f7a}.wh-face-title strong span{font-weight:400;color:#8193aa;font-size:11px;margin-left:5px}.wh-face-title small{font-size:10px;color:#6f849e}.wh-face-sub{font-size:9px;color:#8b9aad;display:flex;justify-content:space-between;gap:6px;margin:2px 0 5px}.wh-face-sub>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wh-grid{display:grid;gap:3px}.fleet-wms .wh-cell{min-width:0;min-height:0;height:24px;padding:1px 5px;border:1px solid #b8c9dc66;border-radius:2px;display:flex;align-items:center;justify-content:space-between;gap:2px;background:var(--cell-color);font-size:10px;position:relative;color:#4c647c;line-height:20px;font-variant-numeric:tabular-nums}.fleet-wms .wh-cell[data-cell]{background:var(--cell-color)}.fleet-wms .wh-cell b{color:#294b70;font-size:12px;font-weight:600}.fleet-wms .wh-cell i{position:absolute;right:1px;top:-5px;font-style:normal;color:#a48c61;font-size:17px}.fleet-wms .wh-cell:hover,.fleet-wms .wh-cell:focus-visible{outline:2px solid #5690d3;outline-offset:0;z-index:2}.fleet-wms .wh-cell.selected{outline:2px solid #1d6bd0;outline-offset:0}.fleet-wms .wh-cell.filtered{opacity:.16;pointer-events:none}.fleet-wms .wh-cell.filtered b{font-weight:400}#wh-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#7d8fa5;font-size:13px}#wh-empty button{font-size:12px;padding:5px 14px}
#wh-detail{overflow:auto;min-height:0;background:white;border:1px solid #dbe4ef;border-radius:6px;padding:13px;scrollbar-gutter:stable}#wh-detail h2{font-size:21px;margin:4px 0}#wh-detail h2 span{font-size:10px;padding:4px 7px;border-radius:3px;font-weight:500;vertical-align:middle}#wh-detail h3{font-size:12px;margin:13px 0 6px;color:#536f8e}.wh-detail-title small{color:#7286a0;font-size:12px}.wh-detail-title p{margin:4px 0 10px;font-size:11px;color:#7b8ea4}.wh-detail-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.wh-detail-counts>div{font-size:10px;color:#7589a0;background:#f6f9fd;padding:7px;text-align:center;border-radius:3px}.wh-detail-counts b{display:block;font-size:22px;color:#245c92;font-weight:600}.wh-badges{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.wh-badges span{padding:3px 6px;border-radius:3px;font-size:10px;color:#556c82;background:#eef2f7}.wh-muted{font-size:12px;color:#8393a6;margin:7px 0}.wh-issue{padding:8px;background:#fff0ed;color:#a05345;font-size:11px;border-radius:3px}.wh-load{font-size:12px;font-weight:600;color:#346596;margin:6px 0}.wh-item{padding:7px 0;border-bottom:1px solid #edf1f6;font-size:11px;overflow-wrap:anywhere}.wh-item strong,.wh-item b{font-size:11px;display:block;font-weight:600;color:#405f82}.wh-item small{display:block;font-size:10px;color:#8a9bae;margin-top:3px;font-weight:400}.wh-item span{display:block;color:#4a766e;font-size:11px;margin-top:3px}.wh-actions{display:flex;gap:5px;margin:12px 0}.fleet-wms .wh-actions button{flex:1;font-size:11px;min-height:30px;padding:5px}.fleet-wms #wh-disable{color:#a65644;background:#fff8f6;border-color:#e8c6bc}.fleet-wms #wh-detail details{font-size:12px;margin:10px 0 0;padding:8px}.fleet-wms #wh-detail summary{font-size:12px;margin:0}.fleet-wms #wh-detail details p{font-size:10px;color:#8291a4;margin:7px 0}.fleet-wms #wh-detail label{font-size:11px}.fleet-wms #wh-detail input,.fleet-wms #wh-detail select{font-size:11px;width:100%;height:31px}#wh-control-state{font-size:10px;color:#a26b3d;padding:6px;background:#fff9ef}.fleet-wms #wh-route .slot-config{border:0;padding:0}.fleet-wms #wh-route h2{display:none}.fleet-wms #wh-route .input-pair{display:flex;flex-direction:column;gap:0;align-items:stretch}.fleet-wms #wh-route button{font-size:11px}.wh-footer{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#8294ab;flex:none}.wh-footer span:first-child{color:#587797}
.warehouse-active #notice:not(.error){display:none}.warehouse-active .fleet-main{gap:8px}.fleet-wms .wh-toolbar>div:first-child{flex:0 0 320px}.fleet-wms .wh-filters{flex:1;flex-wrap:nowrap}.fleet-wms .wh-filters select{width:118px;flex:none;margin:0}.fleet-wms .wh-filters input{width:190px;flex:1;max-width:260px;margin:0}.fleet-wms .wh-filters button{flex:none}.wh-metrics>div{padding:7px 11px}.wh-metrics strong{font-size:25px;margin:1px 0}.wh-metrics>div:first-child{padding-top:5px}.fleet-wms #warehouse{gap:7px}
@media(min-width:1280px){#wh-racks{grid-template-columns:repeat(4,minmax(0,1fr))}.wh-face-sub>span:last-child{max-width:57%}}
@media(min-width:1700px){.detail-open #wh-racks{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-open .wh-content{grid-template-columns:minmax(0,1fr) 350px}.wh-metrics>div{padding:11px 16px}.wh-metrics strong{font-size:29px}}
@media(max-width:1150px){.wh-toolbar{align-items:flex-start;flex-direction:column;gap:6px}.wh-filters{justify-content:flex-start;width:100%}.wh-metrics{gap:6px}.wh-metrics>div{padding:8px}.wh-metrics strong{font-size:22px}.wh-metrics small{font-size:9px}.detail-open .wh-content{grid-template-columns:minmax(0,1fr) 295px}.detail-open #wh-racks{grid-template-columns:1fr}.wh-footer span:last-child{display:none}}
@media(max-width:720px){.fleet-wms #warehouse{flex:none;min-height:700px}.wh-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.wh-metrics strong{font-size:21px}.wh-toolbar h2 small{font-size:10px}.wh-filters select{max-width:calc(33% - 4px);flex:1}.wh-filters input{width:100%;flex:1;min-width:180px}.wh-legend{gap:1px}.fleet-wms .wh-legend button{font-size:9px;padding:2px 4px}.wh-content,.detail-open .wh-content{display:flex;flex-direction:column;min-height:460px;flex:none}.wh-map{height:450px;flex:none}#wh-racks,.detail-open #wh-racks{grid-template-columns:1fr}#wh-detail{overflow:visible;flex:none}.wh-alert{font-size:10px}.wh-footer{flex-wrap:wrap}.wh-face-sub{font-size:9px}.wh-face-title strong{font-size:13px}}
@media(max-width:1150px){.fleet-wms .wh-toolbar>div:first-child{flex:auto}.fleet-wms .wh-filters{flex:auto;flex-wrap:wrap;justify-content:flex-start}}
@media(max-width:720px){.fleet-wms .wh-filters select{width:auto;flex:1}.fleet-wms .wh-filters input{max-width:none}.warehouse-active #notice.error{font-size:11px}}
@media(max-width:720px){.fleet-wms .wh-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.fleet-wms .wh-filters select{width:100%;max-width:none;font-size:11px}.fleet-wms .wh-filters input{grid-column:1/3;width:100%;min-width:0}.fleet-wms #wh-detail-toggle{grid-column:1/-1}.fleet-wms .wh-filters button{font-size:12px}}
.wh-grid{overflow-x:auto;overflow-y:hidden}.fleet-wms .wh-cell{padding-left:3px;padding-right:3px;overflow:hidden}.wh-cell>span{white-space:nowrap}.wh-cell>b{flex:none}#wh-racks.focused{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.fleet-wms #wh-racks.focused .wh-cell{height:36px;font-size:12px;padding:4px 8px}.fleet-wms #wh-racks.focused .wh-cell b{font-size:16px}
.fleet-wms .wh-grid.dense{gap:2px}.fleet-wms .wh-grid.dense .wh-cell,.fleet-wms #wh-racks.focused .wh-grid.dense .wh-cell{min-width:0;min-height:0;height:100%;padding:0;border-radius:2px;font-size:8px}.wh-grid.dense .wh-cell>span,.wh-grid.dense .wh-cell>b{display:none}.fleet-wms #wh-racks.focused .wh-grid.dense.counts-readable .wh-cell>b{display:block;font-size:11px;line-height:1}.fleet-wms #wh-racks.focused .wh-grid.dense .wh-cell>span{display:none}
.wh-resource-tabs{display:flex;gap:8px;flex-shrink:0}.fleet-wms .wh-resource-tabs button{display:flex;align-items:center;gap:9px;min-height:34px;font-size:12px;background:#fff;border:1px solid #d6e2ee;padding:6px 13px}.wh-resource-tabs button b{font-size:17px;color:#285f94}.wh-resource-tabs small{color:#8093a7;font-size:10px}.fleet-wms .wh-resource-tabs button[aria-pressed=true]{background:#eaf3ff;border-color:#669bce;color:#17588e}.wh-face-title{gap:5px}.wh-face-title strong{min-width:0}.wh-toolbar h2{font-size:16px}
.fleet-wms .wh-grid.dense{gap:1px}.fleet-wms .wh-cell{height:100%;min-height:0}.fleet-wms #wh-racks.focused .wh-cell{height:100%;min-height:0}
@media(min-width:721px){#wh-racks{grid-template-columns:repeat(2,minmax(0,1fr))}.wh-face{min-width:0}.wh-face-title{margin-bottom:4px}.wh-face-sub{margin-bottom:5px}}
@media(max-width:720px){.wh-resource-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.fleet-wms .wh-resource-tabs button{flex-wrap:wrap;gap:3px 7px;padding:6px;font-size:10px;justify-content:center}.wh-resource-tabs button small{width:100%;font-size:9px}.wh-resource-tabs button b{font-size:15px}}
.wh-face-title strong .wh-bay-label{color:#7849a4;font-size:10px}.wh-face-title{flex-wrap:wrap}.wh-face-title small{white-space:nowrap}
@media(min-width:1100px){#wh-racks{grid-template-columns:repeat(4,minmax(0,1fr))}.detail-open #wh-racks{grid-template-columns:repeat(2,minmax(0,1fr))}.wh-face-sub>span:last-child{max-width:64%}}

@media(min-width:1100px){.zone-layout #wh-racks{grid-template-columns:repeat(3,minmax(0,1fr))}.zone-layout.detail-open #wh-racks{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(min-width:1100px){.zone-layout:not(.detail-open) #wh-racks:not(.focused){grid-auto-flow:column;grid-template-rows:repeat(2,minmax(0,1fr))}}
.zone-layout #wh-racks.focused{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-auto-flow:row}

/* 总览指标与货架聚焦：保持信息密度，同时让关键容量和异常更易扫读。 */
.wh-metric{overflow:hidden}
.wh-metric.attention{border-color:#e3b6aa;background:linear-gradient(180deg,#fff9f7,#fff)}
.wh-capacity-meter{height:4px;margin:5px 34px 0 0;border-radius:999px;background:#e5edf5;overflow:hidden}
.wh-capacity-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2b78c2,#4fa6c9)}
.wh-metric>em{position:absolute;right:12px;bottom:8px;color:#55738e;font-size:10px;font-style:normal;font-weight:600}
.wh-face-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.wh-face-actions small{white-space:nowrap}
.fleet-wms .wh-face-focus{min-height:23px;height:23px;padding:2px 7px;border-color:#bdd1e4;background:#f5f9fd;color:#35658f;font-size:10px;line-height:1;box-shadow:none}
.fleet-wms .wh-face-focus:hover{background:#e7f1fb;border-color:#6b9bc8}

/* 用途色条独立于库存状态底色；密集图仍保留类型标识。 */
.wh-purpose-legend{display:flex;flex-wrap:wrap;gap:8px 18px;flex-shrink:0;margin:0 0 8px;color:#526b83;font-size:11px}
.wh-purpose-legend>span{display:inline-flex;align-items:center;gap:5px}
.wh-purpose-legend i{width:5px;height:13px;border-radius:2px;background:var(--purpose-color)}
.wh-purpose-legend b{color:#294b70;font-variant-numeric:tabular-nums}
.fleet-wms .wh-cell[data-purpose]{border-left:3px solid var(--purpose-color)}
.fleet-wms .wh-cell[data-purpose]>span{display:flex;flex-direction:column;align-items:flex-start;line-height:11px}
.wh-cell-purpose{font-size:8px;line-height:10px;font-weight:600;color:var(--purpose-color)}
.fleet-wms .wh-grid.dense .wh-cell[data-purpose]>span{display:none}

.fleet-wms #wh-racks.focused .wh-grid.dense.purposes-readable .wh-cell[data-purpose]>span{display:flex;font-size:8px}
