.icon-button,
.primary-button,
.small-button,
.danger-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.icon-button {
  width: 42px;
  font-size: 20px;
}

.primary-button {
  padding: 0 14px;
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 8px 18px rgba(15, 143, 126, 0.18);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.icon-button:hover,
.small-button:hover,
.danger-button:hover {
  border-color: #b9c6d8;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.small-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 13px;
}

.small-button.primary-soft {
  border-color: rgba(14, 149, 134, 0.35);
  background: #e8f8f5;
  color: var(--brand-dark);
  font-weight: 700;
}

.danger-button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--red);
  font-size: 13px;
}

.panel {
  padding: 16px;
  border: 1px solid rgba(216, 225, 236, 0.78);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.admin-section.panel,
.admin-section > .panel,
.admin-section.grid > .panel {
  border-top: 3px solid rgba(15, 143, 126, 0.22);
}

.panel,
.sub-panel,
.compact-row,
.item-card,
.portal-card {
  border-color: rgba(216, 225, 236, 0.9);
}

.sub-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 2px 0 12px;
  border-bottom: 1px solid rgba(216, 225, 236, 0.72);
}

.panel-head h2 {
  color: #0f172a;
  letter-spacing: 0;
}

.panel-head p {
  max-width: 780px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 143, 126, 0.55);
  box-shadow: 0 0 0 3px rgba(15, 143, 126, 0.11);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #edf2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
}

.status.sold {
  border-color: rgba(15, 143, 85, 0.18);
  background: #e6f8ee;
  color: var(--green);
}

.status.new {
  border-color: rgba(37, 99, 235, 0.16);
  background: #e8f0ff;
  color: var(--blue);
}

.status.duplicate,
.status.defective,
.status.returned {
  border-color: rgba(209, 67, 67, 0.18);
  background: #fff0f0;
  color: var(--red);
}

.money {
  white-space: nowrap;
  font-weight: 700;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: #475569;
  font-size: 12px;
}

.test-pill {
  margin-left: 5px;
  background: #fff3cd;
  color: #8a5a00;
}
