/* 商品录入、出入库行编辑和库存矩阵的增补样式 */

.entry-add-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--panel-2);
}

.entry-add-bar .btn {
  flex: 0 0 auto;
  min-height: 38px;
  border-style: dashed;
}

.entry-add-bar .hint {
  margin: 0;
}

.batch-items-table {
  min-width: 760px;
}

.batch-items-table .select {
  min-width: 0;
}

.batch-items-table [data-item-product] {
  min-width: 150px;
}

.batch-items-table [data-item-color],
.batch-items-table [data-item-size] {
  min-width: 82px;
}

.batch-items-table .row-stock {
  color: var(--muted);
  font-size: 11px;
}

.batch-items-table .row-stock strong {
  color: var(--ink);
  font-size: 12px;
}

.batch-items-table .actions {
  width: 44px;
  text-align: right;
}

.inventory-product-head h4 {
  font-size: 15px;
}

.inventory-product-meta {
  font-size: 11px;
}

.inventory-product-stats strong {
  font-size: 18px;
}

.matrix-cell strong {
  font-size: 14px;
  line-height: 1.2;
}

.matrix-cell small {
  font-size: 9px;
}

.matrix th,
.matrix td {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .entry-add-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-add-bar .btn {
    width: 100%;
  }

  .batch-items-table {
    min-width: 720px;
  }
}
