.sectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sectionTitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.duplicatorGrid {
  display: flex;
  flex-direction: column;
}

.duplicatorGrid .gridHeader,
.duplicatorGrid .gridRow {
  grid-template-columns: 2fr 2fr 5fr 2fr 2fr 1fr;
}

.gridHeader {
  display: grid;
  gap: 8px 10px;
  padding-bottom: 4px;
}

.gridHeader > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.gridRow {
  display: grid;
  gap: 8px 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.textField,
.selectField {
  width: 100%;
  min-width: 0;
  min-height: var(--field-height);
  padding: var(--field-padding-y) var(--field-padding-x);
  font-size: var(--field-font-size);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.7);
}

.selectField {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: var(--select-padding-end);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--select-arrow-offset) center;
  background-size: var(--select-arrow-size);
  cursor: pointer;
}

.selectFieldFa {
  font-family: var(--font-ui);
  direction: rtl;
  text-align: right;
}

.selectField:disabled,
.textField:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.textField:focus,
.selectField:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
  outline: none;
}

.addBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: rgba(var(--primary-rgb) / 0.1);
  border-radius: var(--radius-sm);
}

.addBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.removeBtn {
  width: 34px;
  height: 34px;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-secondary);
}

.removeBtn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.removeBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.helperText {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .gridHeader {
    display: none;
  }

  .duplicatorGrid .gridRow {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }
}
