.inventory-shell .page-head {
  background: #fff;
}

.inventory-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.inventory-toolbar {
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(140px, .62fr));
}

.inventory-note {
  border-color: rgba(45, 111, 152, .22);
  background: #eef7fb;
  color: #28536a;
}

.inventory-note strong {
  color: var(--blue);
}

.inventory-table {
  min-width: 1120px;
}

.item-cell {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 290px;
}

.item-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #eef5ef;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
}

.item-mark.pack {
  background: #fff4e5;
  color: #8a5b19;
}

.item-mark.decor {
  background: #edf4fb;
  color: var(--blue);
}

.item-mark.service {
  background: #f7edf1;
  color: var(--accent-dark);
}

.item-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.item-main button {
  width: max-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 920;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-main button:hover,
.item-main button:focus-visible {
  color: var(--accent-dark);
}

.item-main small,
.category-cell,
.usage-cell {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.stock-cell {
  display: grid;
  gap: 7px;
  min-width: 150px;
}

.stock-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1e5;
}

.stock-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.stock-fill.low {
  background: var(--gold);
}

.stock-fill.empty {
  background: var(--danger);
}

.status-badge.low {
  background: #fff4e5;
  color: #8a5b19;
}

.status-badge.empty,
.status-badge.inactive {
  background: #fff0ef;
  color: var(--danger);
}

.status-badge.inactive {
  background: #eef0ec;
  color: var(--muted);
}

.row-actions .archive-row {
  color: var(--muted);
}

.inventory-form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.inventory-usage-grid {
  margin-top: 18px;
}

.inventory-create-panel {
  width: min(560px, 100%);
}

@media (max-width: 1120px) {
  .inventory-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inventory-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .inventory-summary,
  .inventory-toolbar,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .inventory-create-panel {
    padding: 16px;
  }
}
