/* 库存分类：为卡片边框和阴影保留稳定的底部留白。 */
#inventoryPage .inventory-category-body:not(.hidden){
  box-sizing:border-box!important;
  padding:0 14px 24px!important;
}

/* 最后一个一级分类与库存页面底边之间保留独立间距。 */
#inventoryPage #inventoryCards{
  box-sizing:border-box!important;
  padding-bottom:28px!important;
}

/* 新增产品表格：分类和存放位置按产品逐行选择。 */
#inventoryPage .inventory-batch-table{
  min-width:1280px;
}
#inventoryPage .inventory-batch-category-cell select{
  min-width:150px;
}
#inventoryPage .inventory-batch-storage-cell select{
  min-width:190px;
}
#inventoryPage .inventory-batch-multi-drop{
  min-width:190px!important;
  padding:6px!important;
  flex-direction:column!important;
  gap:5px!important;
}
#inventoryPage .inventory-batch-photo-grid{
  width:100%;
  max-width:none!important;
  display:grid;
  grid-template-columns:repeat(3,44px);
  gap:5px;
  justify-content:center;
  overflow:visible!important;
  white-space:normal!important;
}
#inventoryPage .inventory-batch-photo-thumb{
  position:relative;
  width:44px;
  max-width:none!important;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d6e8e8;
  border-radius:7px;
  background:#fff;
  overflow:visible!important;
  white-space:normal!important;
}
#inventoryPage .inventory-batch-drop.has-thumb-v152 .inventory-batch-photo-thumb img{
  width:100%!important;
  height:100%!important;
  border:0!important;
  border-radius:6px!important;
  object-fit:cover!important;
}
#inventoryPage .inventory-batch-photo-thumb [data-action="batch-photo-remove"]{
  position:absolute;
  top:2px;
  right:2px;
  z-index:5;
  width:17px;
  height:17px;
  padding:0;
  border:1px solid #fff;
  border-radius:50%;
  background:#d92d20;
  color:#fff;
  font-size:14px;
  font-weight:900;
  line-height:15px;
  box-shadow:0 1px 4px rgba(0,0,0,.3);
  cursor:pointer;
}
#inventoryPage .inventory-batch-drop.has-thumb-v152 > .inventory-batch-photo-count,
#inventoryPage .inventory-batch-drop > .inventory-batch-photo-empty{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:11px!important;
  line-height:15px!important;
  white-space:normal!important;
  text-align:center!important;
}

/* 无图片产品用实时产品名称生成文字主图；修改名称后会随列表重绘自动更新。 */
#inventoryPage .inv-clean-name-art{
  display:none!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  padding:7px 9px!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  color:#006d68!important;
  font-family:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif!important;
  font-size:var(--inventory-name-art-size,24px)!important;
  font-weight:900!important;
  line-height:1.08!important;
  letter-spacing:.01em!important;
  text-align:center!important;
  white-space:normal!important;
  word-break:keep-all!important;
  overflow-wrap:anywhere!important;
  user-select:none!important;
}
#inventoryPage .inv-clean-name-art-number{
  display:inline-block!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
}
#inventoryPage .inv-clean-name-art-text{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  white-space:normal!important;
  word-break:keep-all!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
#inventoryPage .inv-clean-photo.is-empty,
#inventoryPage .inv-clean-photo:disabled{
  background:#fff!important;
  border:1px solid rgba(84,169,165,.24)!important;
  color:#006d68!important;
  cursor:default!important;
}
#inventoryPage .inv-clean-photo.is-empty .inv-clean-name-art,
#inventoryPage .inv-clean-photo:disabled .inv-clean-name-art{
  display:flex!important;
}
#inventoryPage .inv-clean-photo:not(.is-empty) .inv-clean-name-art{
  display:none!important;
}
