/* Layout para cada linha de input */
.input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
}

.input-label {
  min-width: 2.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  text-align: right;
  font-size: 0.95rem;
  color: #111827;
  font-family: 'Courier New', monospace;
  min-width: 0;
}

.input-field:focus {
  outline: none;
}

.input-row:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  background-color: #eff6ff;
}

.input-field.invalid {
  color: #dc2626;
}

.input-unit {
  min-width: 2.5rem;
  text-align: left;
  font-size: 0.85rem;
  color: #6b7280;
  flex-shrink: 0;
}

/* Coefficient rows */
.coef-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.75rem;
}

.coef-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.coef-latex {
  flex: 1 1 60%;
  min-width: 0;
}

.coef-value {
  flex: 0 0 auto;
  font-size: 0.95rem;
  color: #374151;
  white-space: nowrap;
}

.coef-num {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: #1d4ed8;
}
