.inventory-stock-filter-label {
  display: grid;
  gap: 6px;
}

.inventory-stock-filter-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.inventory-toolbar .inventory-stock-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.inventory-toolbar .inventory-stock-checkbox input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
  cursor: pointer;
}

.inventory-stock-checkbox:focus-within {
  outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent);
  outline-offset: 1px;
}

#inventory .inventory-layout.two-columns {
  grid-template-columns: minmax(0, 1fr) !important;
}

#inventory .inventory-layout > .panel {
  min-width: 0;
}

#inventory .inventory-products-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

#inventory .inventory-products-table {
  width: 100%;
  min-width: 1260px;
  table-layout: fixed;
}

#inventory .inventory-col-product { width: 23%; }
#inventory .inventory-col-used { width: 7%; }
#inventory .inventory-col-stock { width: 9%; }
#inventory .inventory-col-packages { width: 11%; }
#inventory .inventory-col-lot { width: 10%; }
#inventory .inventory-col-price { width: 14%; }
#inventory .inventory-col-cost { width: 11%; }
#inventory .inventory-col-actions { width: 15%; }

#inventory .inventory-products-table th,
#inventory .inventory-products-table td,
#inventory .inventory-products-table td:first-child :is(strong, span) {
  word-break: normal !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

#inventory .inventory-products-table td[data-label="Stock"],
#inventory .inventory-products-table td[data-label="Envases/sacos"],
#inventory .inventory-products-table td[data-label="Precio total ultimo ingreso"],
#inventory .inventory-products-table td[data-label="Costo kg/L calculado"] {
  white-space: nowrap !important;
}

#inventory .inventory-product-actions {
  text-align: right;
}

#inventory .inventory-delete-product {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

#inventory .inventory-delete-product:disabled {
  cursor: wait;
  opacity: 0.65;
}

#inventory .inventory-product-feedback {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #e7b3b3;
  border-radius: 7px;
  background: #fff3f3;
  color: #942d2d;
}

#inventory .inventory-products-table [hidden],
#inventory .inventory-product-feedback[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  #inventory .inventory-products-table {
    min-width: 0;
    table-layout: auto;
  }

  #inventory .inventory-products-table colgroup {
    display: none;
  }

  #inventory .inventory-products-table td {
    width: 100%;
    min-width: 0;
  }

  #inventory .inventory-products-table td.inventory-product-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  #inventory .inventory-product-actions::before {
    content: none;
  }

  #inventory .inventory-delete-product {
    min-height: 44px;
  }

  #inventory #inventoryProductsEmpty td {
    display: block;
    text-align: left;
  }

  #inventory #inventoryProductsEmpty td::before {
    content: none;
  }
}
