.erp-table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
}

.erp-primary-table-shell:has(#erp-table-head:empty) {
  display: none;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.product-table th,
.product-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.product-table th {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-soft);
}

.product-table td {
  color: var(--text);
  font-size: var(--fs-sm);
}

.product-table input,
.product-table select,
.erp-form-grid input,
.erp-form-grid select,
.erp-form-grid textarea,
.erp-textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--text);
  background: var(--surface-strong);
}

.erp-form-grid textarea,
.erp-textarea {
  min-height: 110px;
  resize: vertical;
}

.erp-check-field {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  color: var(--text);
  font-weight: 700;
}

.erp-check-field input {
  width: auto;
  min-height: auto;
}

.erp-icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  margin-right: 6px;
  color: var(--muted);
  font-size: 18px;
}

.erp-textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface-strong);
  resize: vertical;
}

.erp-inline-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.erp-inline-panel pre {
  overflow: auto;
  max-height: 220px;
  margin: 0;
  white-space: pre-wrap;
}

.erp-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
