.inventory-page {
  width: 100%;
  margin: var(--page-margin-desktop);
  box-sizing: border-box;
}

.inventory-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  padding: 28px;
  box-sizing: border-box;
}

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.page-title-row h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  color: #111827;
}

.page-eyebrow {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-link {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.page-link:hover {
  text-decoration: underline;
}

.inventory-description {
  margin: 0 0 16px;
  color: #475569;
  line-height: 1.7;
  font-size: 14px;
}

.inventory-row-tools {
  margin-bottom: 12px;
}

.inventory-row-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inventory-row-card {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 14px;
  background: #f8fbff;
}

.inventory-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.inventory-row-title {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
}

.remove-inventory-row {
  border: none;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.remove-inventory-row:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.inventory-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.inventory-input,
.inventory-select {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  padding: 10px 12px;
}

.inventory-input:focus,
.inventory-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.inventory-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.button-primary {
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 700;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  min-height: 24px;
}

.form-message-info {
  background: #e0f2fe;
  color: #0369a1;
}

.form-message-success {
  background: #dcfce7;
  color: #166534;
}

.form-message-error {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 960px) {
  .inventory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .inventory-page {
    width: 100%;
    margin: var(--page-margin-mobile);
  }

  .inventory-card {
    padding: 14px;
    border-radius: 14px;
  }

  .page-title-row h1 {
    font-size: 22px;
  }

  .inventory-actions .button {
    width: 100%;
    min-height: 44px;
    font-size: 15px;
  }
}
