/* 恒链BI V136 - 库存管理旧BI字段布局对齐 + 操作列固定 */
.inventory-table{
  min-width:4785px!important;
}
.inventory-table th,
.inventory-table td{
  box-sizing:border-box;
}
/* 图片列：把批量选择框叠加到图片，不再单独占一整列 */
.inventory-table th:nth-child(1),.inventory-table td:nth-child(1){width:70px!important;min-width:70px!important;}
.inventory-table th:nth-child(2),.inventory-table td:nth-child(2){width:120px!important;min-width:120px!important;}
.inventory-table th:nth-child(3),.inventory-table td:nth-child(3){width:200px!important;min-width:200px!important;}
.inventory-table th:nth-child(4),.inventory-table td:nth-child(4){width:200px!important;min-width:200px!important;}
.inventory-table th:nth-child(5),.inventory-table td:nth-child(5){width:100px!important;min-width:100px!important;}
.inventory-table th:nth-child(6),.inventory-table td:nth-child(6){width:150px!important;min-width:150px!important;}
.inventory-table th:nth-child(7),.inventory-table td:nth-child(7){width:150px!important;min-width:150px!important;}
.inventory-table th:nth-child(8),.inventory-table td:nth-child(8){width:150px!important;min-width:150px!important;}
.inventory-table th:nth-child(9),.inventory-table td:nth-child(9){width:180px!important;min-width:180px!important;}
.inventory-table th:nth-child(10),.inventory-table td:nth-child(10){width:150px!important;min-width:150px!important;}
.inventory-table th:nth-child(11),.inventory-table td:nth-child(11){width:130px!important;min-width:130px!important;}
.inventory-table th:nth-child(n+12),.inventory-table td:nth-child(n+12){width:120px!important;min-width:120px!important;}
.inventory-table th:nth-child(18),.inventory-table td:nth-child(18),
.inventory-table th:nth-child(19),.inventory-table td:nth-child(19){width:126px!important;min-width:126px!important;}
.inventory-table th:nth-child(21),.inventory-table td:nth-child(21){width:155px!important;min-width:155px!important;}
.inventory-table th:nth-child(25),.inventory-table td:nth-child(25){width:150px!important;min-width:150px!important;}
.inventory-table th:nth-child(26),.inventory-table td:nth-child(26){width:160px!important;min-width:160px!important;}
.inventory-table th:nth-child(32),.inventory-table td:nth-child(32),
.inventory-table th:nth-child(33),.inventory-table td:nth-child(33),
.inventory-table th:nth-child(34),.inventory-table td:nth-child(34),
.inventory-table th:nth-child(35),.inventory-table td:nth-child(35){width:150px!important;min-width:150px!important;}

.inventory-image-header-v136{display:flex;align-items:center;justify-content:center;gap:7px;}
.inventory-image-header-v136 input{width:14px;height:14px;margin:0;}
.inventory-image-select-v136{position:relative;display:flex;justify-content:center;align-items:center;min-height:58px;}
.inventory-image-select-v136>input{position:absolute;left:0;top:0;width:14px;height:14px;margin:0;z-index:2;}
.inventory-image-select-v136 .inventory-image{margin:0 auto;}

.inventory-table-help-label{justify-content:center;white-space:nowrap;}
.inventory-table .inventory-help-button{width:15px;height:15px;font-size:10px;}
.inventory-trend-button{border:1px solid #46a6e6;background:#fff;color:#168ed4;border-radius:4px;height:28px;padding:0 10px;cursor:pointer;}

/* 旧 BI 数值列排序：首次升序、再次降序、第三次恢复默认商品顺序。 */
.inventory-sort-header{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;
  line-height:22px;cursor:pointer;white-space:nowrap;
}
.inventory-sort-header>i{display:inline-flex;flex-direction:column;gap:2px;width:8px;height:14px;justify-content:center;}
.inventory-sort-header>i>b{display:block;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;}
.inventory-sort-header>i>.up{border-bottom:5px solid #c0c4cc;}
.inventory-sort-header>i>.down{border-top:5px solid #c0c4cc;}
.inventory-sort-header.asc>i>.up{border-bottom-color:#409eff;}
.inventory-sort-header.desc>i>.down{border-top-color:#409eff;}
.inventory-sort-header:focus-visible{outline:2px solid #409eff;outline-offset:2px;border-radius:2px;}

/* 操作列永久固定在最右侧，横向滚动时不跟随移动 */
.inventory-table th.inventory-operation-sticky-v136,
.inventory-table td.inventory-operation-sticky-v136{
  position:sticky!important;
  right:0!important;
  z-index:6!important;
  background:#fff!important;
  box-shadow:-4px 0 8px rgba(32,52,78,.12);
}
.inventory-table thead th.inventory-operation-sticky-v136{
  z-index:12!important;
  background:#f5f7fa!important;
}
.inventory-table tr:hover td.inventory-operation-sticky-v136{
  background:#f8fbfe!important;
}
.inventory-table td.inventory-operation-sticky-v136 .inventory-actions{
  white-space:nowrap;
}

/* V250：Edge 对 sticky 操作列宽度和单元格 padding 的处理与 Chromium 不同，统一按表头中心线对齐。 */
.inventory-workspace .inventory-table th.inventory-operation-sticky-v136,
.inventory-workspace .inventory-table td.inventory-operation-sticky-v136{
  width:150px!important;
  min-width:150px!important;
  max-width:150px!important;
  padding-left:4px!important;
  padding-right:4px!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
.inventory-workspace .inventory-table td.inventory-operation-sticky-v136 .inventory-actions-v139{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  justify-content:center!important;
  transform:none!important;
}

/* 旧BI截图中的两行红色说明 */
.inventory-note>div>div+div{margin-top:4px;}

/* V137：批量上传按钮与提示 */
.inventory-upload-wrap-v137{position:relative;display:inline-flex;align-items:center;flex:none;}
.inventory-upload-v137{color:#fff!important;background:#f5a623!important;border:1px solid #f5a623!important;border-radius:3px;height:34px;padding:0 14px;white-space:nowrap;}
.inventory-upload-tip-v137{display:none;position:absolute;z-index:300;left:0;top:42px;width:360px;color:#4b5666;background:#fff;border:1px solid #d9e1eb;border-radius:4px;padding:10px 14px;line-height:20px;box-shadow:0 6px 18px rgba(28,45,68,.18);white-space:normal;}
.inventory-upload-tip-v137:before{content:"";position:absolute;left:22px;top:-7px;width:12px;height:12px;background:#fff;border-left:1px solid #d9e1eb;border-top:1px solid #d9e1eb;transform:rotate(45deg);}
.inventory-upload-wrap-v137:hover .inventory-upload-tip-v137,.inventory-upload-wrap-v137:focus-within .inventory-upload-tip-v137{display:block;}

/* 商品名称下方中文名称 */
.inventory-title-box-v137{display:flex;flex-direction:column;gap:4px;min-width:0;}
.inventory-title-box-v137>a{color:#087fd6;line-height:18px;text-decoration:none;overflow:hidden;text-overflow:ellipsis;}
.inventory-title-box-v137>a:hover{text-decoration:underline;}
.inventory-title-box-v137>small{color:#7f8a99;font-size:11px;line-height:16px;white-space:normal;}

/* 批量操作：按参考界面改为“选择更新 + 输入数值” */
.inventory-batch-modal-v137{width:min(620px,calc(100vw - 36px))!important;padding:0!important;overflow:hidden;}
.inventory-batch-modal-v137>header{border-bottom:1px solid #e4e8ee;margin:0!important;padding:16px 22px!important;}
.inventory-batch-modal-v137>header h3{font-size:18px!important;}
.inventory-batch-row-v137{grid-template-columns:110px minmax(240px,1fr)!important;margin:18px 38px!important;gap:18px!important;}
.inventory-batch-row-v137>span{color:#5f6875;font-weight:700;text-align:right;}
.inventory-batch-row-v137 input,.inventory-batch-row-v137 select{width:100%;height:38px!important;border:1px solid #cfd8e5;border-radius:4px;padding:0 12px;background:#fff;}
.inventory-batch-count-v137{color:#8a95a5;margin:0 38px 4px 166px;font-size:12px;}
.inventory-batch-modal-v137>footer{border-top:1px solid #e4e8ee;margin-top:18px!important;padding:14px 22px!important;}
.inventory-batch-modal-v137>footer button{min-width:72px;}

/* 操作列固定加强：必须位于横向滚动容器右侧 */
.inventory-table-wrap{position:relative!important;overflow:auto!important;}
.inventory-table th.inventory-operation-sticky-v136,
.inventory-table td.inventory-operation-sticky-v136{right:0!important;position:sticky!important;}
.inventory-table td.inventory-operation-sticky-v136:before,
.inventory-table th.inventory-operation-sticky-v136:before{content:"";position:absolute;left:-1px;top:0;bottom:0;width:1px;background:#dfe6ef;}

/* 长提示内容可读性 */
.inventory-help-popover{max-height:min(420px,calc(100vh - 40px));overflow:auto;line-height:1.65;}
.inventory-help-popover ol{margin:0;padding-left:22px;list-style:decimal;}
.inventory-help-popover li+li{margin-top:5px;}
.inventory-help-popover .danger{color:#f56c6c;}

@media (max-width:800px){
  .inventory-upload-tip-v137{left:auto;right:0;width:min(360px,calc(100vw - 30px));}
  .inventory-batch-row-v137{grid-template-columns:1fr!important;margin:14px 20px!important;gap:6px!important;}
  .inventory-batch-row-v137>span{text-align:left;}
  .inventory-batch-count-v137{margin:0 20px;}
}

/* Blue Whale inventory proportions. */
.inventory-workspace{
  color:#303b47;
  font-size:12px;
}
.inventory-filterbar{
  overflow:visible!important;
  position:relative!important;
  z-index:30!important;
}
.inventory-status-menu{
  position:fixed!important;
  z-index:2147483000!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:200px!important;
  padding:6px 0!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #e4e7ed!important;
  border-radius:4px!important;
  box-shadow:0 3px 14px rgba(0,0,0,.14)!important;
}
.inventory-status-select{
  position:relative!important;
  width:200px!important;
  min-width:200px!important;
  flex:0 0 200px!important;
}
.inventory-status-trigger{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  width:200px!important;
  padding:0 30px 0 10px!important;
  overflow:hidden!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.inventory-status-trigger::after{
  content:"";
  position:absolute;
  top:50%;
  right:11px;
  width:7px;
  height:7px;
  border-right:1px solid #909399;
  border-bottom:1px solid #909399;
  transform:translateY(-65%) rotate(45deg);
}
.inventory-status-trigger.open::after{transform:translateY(-35%) rotate(225deg);}
.inventory-status-trigger span,
.inventory-status-trigger em{
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  height:22px!important;
  padding:0 8px!important;
  color:#606266!important;
  background:#f4f4f5!important;
  border:1px solid #e9e9eb!important;
  border-radius:4px!important;
  font-size:12px!important;
  font-style:normal!important;
}
.inventory-status-menu button{
  display:block!important;
  flex:0 0 40px!important;
  width:100%!important;
  height:40px!important;
  padding:0 20px!important;
  color:#606266!important;
  background:#fff!important;
  border:0!important;
  border-radius:0!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.inventory-status-menu button:hover{background:#f5f7fa!important;}
.inventory-status-menu button.selected{color:#409eff!important;font-weight:700!important;}
.inventory-status-menu button.selected::after{content:"✓";float:right;}
.inventory-filterbar select,
.inventory-filterbar input,
.inventory-filterbar button{
  height:32px;
  font-size:12px;
}
.inventory-filterbar .inventory-secondary{
  height:33px!important;
  color:#606266!important;
  background:#fff!important;
}
.inventory-filterbar .inventory-secondary:first-of-type{width:82px!important;padding:0!important;}
.inventory-filterbar .inventory-secondary:nth-of-type(2){width:80px!important;padding:0!important;}
.inventory-filterbar .inventory-primary{width:80px!important;height:33px!important;padding:0!important;background:#0091ff!important;}
.inventory-filterbar .inventory-upload-v137{width:68px!important;height:32px!important;padding:0!important;}
.inventory-summary-group h2{
  font-size:16px;
  line-height:24px;
}
.inventory-summary-group h2 small{
  font-size:11px;
}
@media (min-width:901px){
  .inventory-summary-band{
    min-height:188px;
    overflow-y:hidden;
  }
  .inventory-info-cards,
  .inventory-alert-cards{
    margin-top:39px;
  }
  .inventory-info-cards article,
  .inventory-alert-cards article{
    height:90px;
    min-height:90px;
    padding:10px 12px;
  }
}
.inventory-info-cards strong,
.inventory-alert-cards strong{
  margin-top:6px;
  font-size:20px;
}
.inventory-info-cards p{
  margin-top:5px;
}
.inventory-info-cards p{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  color:#8b95a5;
  white-space:nowrap;
  font-size:11px;
  line-height:16px;
}
.inventory-info-cards p b{
  color:#7d8795;
  font-weight:400;
}
.inventory-upload-input{
  display:none!important;
}
.inventory-note{
  height:52px;
  min-height:52px;
  margin:15px 12px 10px;
  padding:7px 14px;
  display:flex;
  align-items:center;
  font-size:12px;
  line-height:18px;
}
.inventory-table{
  color:#606266;
  font-size:12px;
}
.inventory-table th{
  height:40px;
  padding:6px 7px;
  color:#222;
  background:#fff;
  font-size:13px;
  font-weight:700;
}
.inventory-table td{
  height:65px;
  padding:4px 7px;
  font-size:12px;
}
.inventory-image-select-v136{
  min-height:46px;
}
.inventory-image{
  width:48px;
  height:48px;
}
.inventory-table thead th.inventory-operation-sticky-v136{
  background:#fff!important;
}
.inventory-pagination{
  min-height:48px;
  font-size:12px;
}
.inventory-pagination select,
.inventory-pagination button,
.inventory-pagination b{
  height:30px;
}
.inventory-pagination b{
  width:30px;
}
.inventory-pagination .inventory-page-number-v247.active{
  color:#fff;
  background:#269bf0;
  border-color:#269bf0;
}
.inventory-pagination .inventory-page-jump-v247{
  width:42px;
  height:30px;
  box-sizing:border-box;
  border:1px solid #d8e0e8;
  border-radius:3px;
  text-align:center;
}
#hl-inventory-page-v198.hl-v250-has-fixed-pagination{
  padding-bottom:72px!important;
}

.inventory-trend-mask{z-index:140!important;}
.inventory-trend-modal{width:min(650px,calc(100vw - 36px));min-height:545px;background:#fff;border-radius:8px;box-shadow:0 18px 48px rgb(0 0 0 / 28%);overflow:hidden;}
.inventory-trend-head{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:18px;align-items:center;min-height:86px;padding:18px 54px 16px 28px;border-bottom:1px solid #d8dde5;}
.inventory-trend-product{display:grid;grid-template-columns:64px minmax(0,1fr);gap:14px;align-items:center;min-width:0;}
.inventory-trend-image{display:grid;place-items:center;width:64px;height:64px;background:#f4f7fb;border:1px solid #d7e0ea;overflow:hidden;}
.inventory-trend-image img{width:100%;height:100%;object-fit:contain;}
.inventory-trend-image span{color:#9aa6b6;font-size:11px;}
.inventory-trend-product a{display:block;overflow:hidden;color:#008ded;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;}
.inventory-trend-product span,.inventory-trend-identity span{display:block;margin-top:7px;color:#667282;line-height:18px;}
.inventory-trend-identity{color:#4a5565;font-size:14px;}
.inventory-trend-close{position:absolute;top:14px;right:20px;border:0;background:transparent;color:#202833;font-size:32px;line-height:1;cursor:pointer;}
.inventory-trend-tabs{display:flex;gap:0;padding:20px 20px 0;border-bottom:1px solid #d8dde5;}
.inventory-trend-tabs button{min-width:98px;height:36px;border:1px solid #d8dde5;border-bottom:0;background:#fff;color:#445369;cursor:pointer;}
.inventory-trend-tabs button+button{margin-left:-1px;}
.inventory-trend-tabs button.active{color:#168ed4;background:#fff;}
.inventory-trend-chart-panel{position:relative;padding:14px 26px 24px;}
.inventory-trend-legend{display:flex;justify-content:center;gap:26px;margin-bottom:6px;color:#39465a;}
.inventory-trend-legend span:before{content:"";display:inline-block;width:14px;height:8px;margin-right:6px;vertical-align:1px;}
.inventory-trend-legend .total:before{background:#55c329;}
.inventory-trend-legend .available:before{background:#ff5b64;}
.inventory-trend-legend .transfer:before{background:#af70bd;}
.inventory-trend-chart{width:100%;height:315px;}
.inventory-trend-chart line{stroke:#e6ebf1;stroke-width:1;}
.inventory-trend-chart text{fill:#9aa2ad;font-size:12px;}
.inventory-trend-chart .x-label{text-anchor:middle;}
.inventory-trend-chart path{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;}
.inventory-trend-chart path.total{stroke:#55c329;}
.inventory-trend-chart path.available{stroke:#ff5b64;}
.inventory-trend-chart path.transfer{stroke:#af70bd;}
.inventory-trend-empty{position:absolute;inset:126px 0 auto;margin:0;color:#8d98a8;text-align:center;}

body.hl-inventory-widget-active{overflow:hidden!important;}
body.hl-inventory-widget-active .app-main{display:none!important;}

/* 1.30：macOS 会自动隐藏未定制的原生滚动条。库存页明确绘制纵向轨道，
   横向仍使用全站唯一的固定代理条，避免恢复表格本体后出现两条横向滚动条。 */
body.hl-inventory-widget-active #hl-inventory-page-v198{
  overflow-x:hidden!important;
  overflow-y:scroll!important;
  scrollbar-width:auto;
  scrollbar-color:#9aa6b4 #eef1f5;
  scrollbar-gutter:stable;
}
body.hl-inventory-widget-active #hl-inventory-page-v198::-webkit-scrollbar{
  width:14px!important;
  height:14px!important;
  display:block!important;
  -webkit-appearance:none;
}
body.hl-inventory-widget-active #hl-inventory-page-v198::-webkit-scrollbar-track{
  background:#eef1f5!important;
  border-left:1px solid #dfe5ec;
}
body.hl-inventory-widget-active #hl-inventory-page-v198::-webkit-scrollbar-thumb{
  min-height:44px;
  background:#9aa6b4!important;
  border:3px solid #eef1f5;
  border-radius:8px;
}
body.hl-inventory-widget-active #hl-inventory-page-v198::-webkit-scrollbar-thumb:hover{
  background:#7e8a99!important;
}
body.hl-inventory-widget-active #hl-inventory-page-v198::-webkit-scrollbar-corner{
  background:#eef1f5!important;
}
body.hl-inventory-widget-active #hl-fixed-hscroll{
  height:18px!important;
  scrollbar-width:auto!important;
  scrollbar-color:#9aa6b4 #eef1f5!important;
}
body.hl-inventory-widget-active #hl-fixed-hscroll::-webkit-scrollbar{
  width:14px!important;
  height:14px!important;
  display:block!important;
  -webkit-appearance:none;
}
body.hl-inventory-widget-active #hl-fixed-hscroll::-webkit-scrollbar-track{
  background:#eef1f5!important;
}
body.hl-inventory-widget-active #hl-fixed-hscroll::-webkit-scrollbar-thumb{
  min-width:44px;
  background:#9aa6b4!important;
  border:3px solid #eef1f5;
  border-radius:8px;
}
body.hl-inventory-widget-active #hl-fixed-hscroll::-webkit-scrollbar-thumb:hover{
  background:#7e8a99!important;
}

/* 不依赖 macOS“显示滚动条”系统设置的库存专用可拖动滚动条。 */
.inventory-persistent-scrollbar{
  position:fixed;
  z-index:2301;
  display:block;
  box-sizing:border-box;
  overflow:hidden;
  background:#e8ecf1;
  border:1px solid #d3d9e2;
  user-select:none;
  touch-action:none;
}
.inventory-persistent-scrollbar[hidden]{display:none!important;}
.inventory-persistent-scrollbar-vertical{border-radius:7px 0 0 7px;}
.inventory-persistent-scrollbar-horizontal{border-radius:7px 7px 0 0;}
.inventory-persistent-scrollbar-thumb{
  position:absolute;
  top:0;
  left:0;
  box-sizing:border-box;
  background:#8f9baa;
  border:3px solid #e8ecf1;
  border-radius:8px;
  cursor:pointer;
}
.inventory-persistent-scrollbar:hover .inventory-persistent-scrollbar-thumb,
.inventory-persistent-scrollbar.is-dragging .inventory-persistent-scrollbar-thumb{
  background:#6f7c8c;
}
.inventory-persistent-scrollbar-vertical .inventory-persistent-scrollbar-thumb{cursor:ns-resize;}
.inventory-persistent-scrollbar-horizontal .inventory-persistent-scrollbar-thumb{cursor:ew-resize;}
.inventory-inbound-panel{padding:16px 20px 28px;}
.inventory-inbound-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:12px;color:#6f7b8b;}
.inventory-inbound-toolbar input{width:220px;height:32px;padding:0 10px;border:1px solid #d6dde8;border-radius:4px;color:#536072;background:#fff;}
.inventory-inbound-toolbar p{margin:0 0 0 10px;color:#6f7b8b;}
.inventory-inbound-table{width:100%;border-collapse:collapse;table-layout:fixed;}
.inventory-inbound-table th,.inventory-inbound-table td{height:40px;border:1px solid #e0e6ef;text-align:center;}
.inventory-inbound-table th{background:#fff;color:#3d4a60;font-size:15px;}
.inventory-inbound-table td{color:#9099a6;}

.inventory-unavailable-cell{display:inline-flex;align-items:center;justify-content:center;}
.inventory-unavailable-cell>button{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:transparent;color:#409eff;font:inherit;cursor:help;}
.inventory-unavailable-cell>button i{font-size:9px;font-style:normal;}
.inventory-unavailable-popover{position:fixed;z-index:2147483100;width:230px;padding:0 0 10px;border:1px solid #ebeef5;border-radius:4px;background:#fff;box-shadow:0 6px 20px rgb(0 0 0 / 16%);color:#606266;font-size:12px;pointer-events:none;}
.inventory-unavailable-popover h3{height:38px;margin:0;padding:0 14px;border-bottom:1px solid #ebeef5;color:#303133;font-size:13px;line-height:38px;}
.inventory-unavailable-popover table{width:calc(100% - 20px);margin:10px;border-collapse:collapse;table-layout:fixed;}
.inventory-unavailable-popover th,.inventory-unavailable-popover td{height:30px;padding:0 8px;border:1px solid #ebeef5;font-size:12px;text-align:center;}
.inventory-unavailable-popover th{background:#f7f9fc;font-weight:400;}
.inventory-unavailable-popover p{margin:12px 0 2px;text-align:center;}
.inventory-in-transit-editor{display:flex;align-items:center;justify-content:center;gap:8px;}
.inventory-in-transit-editor .inventory-number-input{width:70px;}
.inventory-in-transit-editor>button{padding:0;border:0;background:transparent;color:#409eff;font-size:12px;white-space:nowrap;cursor:pointer;}

/* 1.27：库存管理按旧 BI 重排，并在纵向滚动时固定时间、压缩统计区和表头。 */
#hl-inventory-page-v198 .inventory-workspace{
  min-height:100%;
  background:#f2f4f7;
}
#hl-inventory-page-v198 .inventory-clock{
  position:sticky;
  top:0;
  z-index:114;
  min-height:53px;
  height:53px;
  padding:0 20px;
  background:#fff;
  border-bottom:1px solid #e4e8ee;
  box-sizing:border-box;
}
#hl-inventory-page-v198 .inventory-clock-label{
  display:inline-flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
}
#hl-inventory-page-v198 .inventory-clock-help-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  margin-left:0;
  z-index:115;
}
#hl-inventory-page-v198 .inventory-clock-help{
  margin:0;
}
#hl-inventory-page-v198 .inventory-clock-help-popover{
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  width:280px;
  margin-left:0;
  padding:8px 14px;
  border:1px solid #e4e7ed;
  border-radius:4px;
  background:#fff;
  color:#606266;
  font-size:12px;
  font-weight:400;
  line-height:22px;
  text-align:left;
  white-space:nowrap;
  box-shadow:0 4px 12px rgba(0,0,0,.14);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateX(-45%) translateY(-2px);
  transition:opacity .12s ease,transform .12s ease,visibility .12s ease;
}
#hl-inventory-page-v198 .inventory-clock-help-popover::before,
#hl-inventory-page-v198 .inventory-clock-help-popover::after{
  content:"";
  position:absolute;
  left:45%;
  bottom:100%;
  width:0;
  height:0;
  border:7px solid transparent;
  border-bottom-color:#e4e7ed;
  transform:translateX(-45%);
}
#hl-inventory-page-v198 .inventory-clock-help-popover::after{
  margin-bottom:-1px;
  border-width:6px;
  border-bottom-color:#fff;
}
#hl-inventory-page-v198 .inventory-clock-help-popover>span{
  display:block;
  margin-left:0;
  color:inherit;
}
#hl-inventory-page-v198 .inventory-clock-help-wrap:hover .inventory-clock-help-popover,
#hl-inventory-page-v198 .inventory-clock-help-wrap:focus-within .inventory-clock-help-popover{
  opacity:1;
  visibility:visible;
  transform:translateX(-45%) translateY(0);
}
#hl-inventory-page-v198 .inventory-filterbar{
  min-height:53px;
  margin:20px 12px 10px;
  padding:10px 15px;
  border:0;
  background:#fff;
  box-sizing:border-box;
}
#hl-inventory-page-v198 .inventory-summary-band{
  position:sticky;
  top:53px;
  z-index:110;
  height:160px;
  min-height:160px;
  margin-left:12px;
  margin-right:12px;
  grid-template-columns:minmax(620px,1.02fr) minmax(620px,1fr);
  gap:0;
  padding:0 20px 10px;
  background:#fff;
  border-bottom:1px solid #e1e6ed;
  box-sizing:border-box;
}
#hl-inventory-page-v198 .inventory-summary-group:first-child{padding-right:15px;}
#hl-inventory-page-v198 .inventory-summary-group h2{
  height:25px;
  margin:0;
  line-height:25px;
}
#hl-inventory-page-v198 .inventory-info-cards,
#hl-inventory-page-v198 .inventory-alert-cards{
  margin-top:10px;
}
#hl-inventory-page-v198 .inventory-info-cards article,
#hl-inventory-page-v198 .inventory-alert-cards article{
  height:90px;
  min-height:90px;
  padding:10px 12px;
  box-sizing:border-box;
}

/* 旧 BI 滚动状态：统计卡片由 90px 收紧到 62px，给表格保留更多可视高度。 */
#hl-inventory-page-v198 .inventory-workspace.inventory-oldbi-scrolled-v127 .inventory-summary-band{
  height:118px;
  min-height:118px;
  padding-bottom:10px;
  box-shadow:0 2px 6px rgba(35,52,75,.08);
}
#hl-inventory-page-v198 .inventory-workspace.inventory-oldbi-scrolled-v127 .inventory-info-cards article,
#hl-inventory-page-v198 .inventory-workspace.inventory-oldbi-scrolled-v127 .inventory-alert-cards article{
  height:62px;
  min-height:62px;
  padding:7px 9px;
}
#hl-inventory-page-v198 .inventory-workspace.inventory-oldbi-scrolled-v127 .inventory-info-cards strong,
#hl-inventory-page-v198 .inventory-workspace.inventory-oldbi-scrolled-v127 .inventory-alert-cards strong{
  margin-top:2px;
  font-size:18px;
  line-height:20px;
}
#hl-inventory-page-v198 .inventory-workspace.inventory-oldbi-scrolled-v127 .inventory-info-cards p{
  display:none;
}

/* 表格本体仍负责横向滚动；这里只复制可见表头，避免改变列索引或业务事件。 */
.inventory-fixed-header-v127{
  position:fixed;
  z-index:113;
  display:none;
  overflow:hidden;
  background:#fff;
  border:1px solid #d9e1eb;
  border-bottom:0;
  box-sizing:border-box;
  box-shadow:0 2px 5px rgba(31,49,72,.10);
  scrollbar-width:none;
}
.inventory-fixed-header-v127.active{display:block;}
.inventory-fixed-header-v127::-webkit-scrollbar{width:0;height:0;}
.inventory-fixed-header-v127 .inventory-fixed-header-table-v127{
  margin:0!important;
  border:0!important;
}
.inventory-fixed-header-v127 .inventory-fixed-header-table-v127 tbody{display:none!important;}
.inventory-fixed-header-v127 .inventory-fixed-header-table-v127 th{
  height:40px!important;
  min-height:40px!important;
  background:#fff!important;
  pointer-events:none;
}
.inventory-fixed-header-v127 .inventory-fixed-header-table-v127 .inventory-sort-header{
  pointer-events:auto;
}

@media(max-width:900px){
  #hl-inventory-page-v198 .inventory-clock{padding:0 11px;}
  #hl-inventory-page-v198 .inventory-filterbar{margin-left:11px;margin-right:11px;}
  #hl-inventory-page-v198 .inventory-summary-band{margin-left:11px;margin-right:11px;padding-left:11px;padding-right:11px;}
}
