/* 仓库管理系统（五端版）· 后台补充样式（其余组件沿用 _cps.css / backend-ui） */
.wh5-sub{display:block;color:#98a2b1;font-size:12px;font-weight:400}
.wh5-red{color:#d94b43}
.wh5-green{color:#22945e}
.wh5-mt{margin-top:16px}
.wh5-ops{display:flex;gap:12px;justify-content:center;flex-wrap:nowrap;white-space:nowrap}
.d-table td.wh5-col-ops,.d-table th.wh5-col-ops{position:sticky;right:0;background:#fff;box-shadow:-6px 0 8px -6px rgba(0,0,0,.08)}
.d-table thead th.wh5-col-ops{background:var(--office-head,#f8fafc)}
.wh5-kpi-row{padding:4px 0 12px}
.wh5-kpi-link.is-active{outline:1px solid #1890ff;background:#f4f9ff}
.wh5-progress{display:flex;align-items:center;gap:8px;justify-content:center;min-width:120px}
.wh5-progress-bar{flex:1;max-width:90px;height:6px;border-radius:6px;background:#eaf2ff;overflow:hidden}
.wh5-progress-bar i{display:block;height:100%;background:#4d98ed;border-radius:6px}
.wh5-progress em{font-style:normal;font-size:12px;color:#5b6575;font-variant-numeric:tabular-nums}
.wh5-confirm-text{margin:0;line-height:1.8;color:#303846}
.wh5-form-intro{margin:0 0 16px}
.wh5-textarea{height:84px!important;padding-top:8px!important}
.wh5-qty{width:96px!important;text-align:center}
.wh5-dialog-wide{width:min(960px,calc(100vw - 48px))!important;max-width:none!important}
.live-dialog .d-table-wrap{border:1px solid var(--office-border,#edf0f5);border-radius:8px;overflow:auto}
.live-dialog .d-table td,.live-dialog .d-table th{white-space:nowrap}

/* 顶栏：城市切换 + 切换端 */
.wh5-header-extra{display:flex;align-items:center;gap:8px}
.wh5-city-switch{display:flex;align-items:center;gap:6px;height:30px;padding:0 4px 0 10px;border:1px solid #e3e8f0;border-radius:6px;font-size:13px;color:#5b6575;background:#fff}
.wh5-city-switch select{border:0;background:#f4f8ff;color:#1890ff;font-weight:600;border-radius:4px;height:24px;padding:0 6px;outline:none;cursor:pointer}

/* 工作台 */
.wh5-dashboard .ui-kpi-grid.cps-kpi-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.wh5-dashboard .d-table{min-width:0!important;width:100%}
.wh5-dashboard .d-table td,.wh5-dashboard .d-table th{padding-left:8px;padding-right:8px;white-space:normal;word-break:break-all;min-width:56px}
.wh5-flow{display:flex;align-items:stretch;gap:6px}
.wh5-flow-step{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 8px;border:1px solid #edf0f5;border-radius:8px;background:#fafbfd;cursor:pointer;transition:.15s}
.wh5-flow-step:hover{border-color:#91caff;background:#f4f9ff}
.wh5-flow-step b{font-size:13px;color:#303846}
.wh5-flow-step strong{font-size:22px;color:#1f2733;font-variant-numeric:tabular-nums}
.wh5-flow-step.has-todo strong{color:#1890ff}
.wh5-flow-step small{font-size:12px;color:#98a2b1}
.wh5-flow-no{width:20px;height:20px;border-radius:50%;background:#e6f4ff;color:#1890ff;font-size:12px;display:grid;place-items:center;font-weight:600}
.wh5-flow-arrow{width:16px;height:16px;color:#c3cad5;align-self:center;flex-shrink:0}
.wh5-wh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.wh5-wh-card{display:block;padding:14px;border:1px solid #edf0f5;border-radius:8px;color:inherit;text-decoration:none;transition:.15s}
.wh5-wh-card:hover{border-color:#91caff;background:#f8fbff}
.wh5-wh-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.wh5-wh-card-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:8px}
.wh5-wh-card-stats span{display:flex;flex-direction:column}
.wh5-wh-card-stats small{font-size:12px;color:#98a2b1}
.wh5-wh-card-stats b{font-size:18px;color:#1f2733;font-variant-numeric:tabular-nums}

/* 切换端弹窗 */
.wh5-terminal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wh5-terminal-card{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid #edf0f5;border-radius:8px;color:inherit;text-decoration:none;transition:.15s}
.wh5-terminal-card:hover{border-color:#91caff;background:#f4f9ff}
.wh5-terminal-card b{display:block;font-size:14px;color:#1f2733}
.wh5-terminal-card small{display:block;font-size:12px;color:#98a2b1;margin-top:2px}
.wh5-terminal-icon{width:36px;height:36px;border-radius:8px;background:#e6f4ff;color:#1890ff;display:grid;place-items:center;flex-shrink:0}

/* 详情占位 */
.wh5-invoice-img{height:120px;border:1px dashed #d6dde8;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#98a2b1;font-size:12px}
.wh5-photo-row{display:flex;gap:10px}
.wh5-photo-row span{width:88px;height:88px;border-radius:8px;background:#f4f6f9;display:grid;place-items:center;color:#b5bdc9}
