/* Engineering Change detail panel — scoped overrides only; tabs reuse shared .tab-bar/.subtab-bar classes */

#eng-stage-tabs {
  margin-top: 0.75rem; /* otherwise sits flush under the header */
}
#eng-change-detail .subtab-bar {
  margin-bottom: 1.25rem; /* metrics.css's .subtab-bar has none of its own */
}

#eng-change-detail .form-grid {
  position: relative;
  gap: 0 1.5rem;
}

/* Light divider between the two columns — a background line on the grid itself */
#eng-change-detail .form-grid::before {
  content: '';
  position: absolute;
  top: 0.1rem;
  bottom: 0.1rem;
  left: 50%;
  width: 1px;
  background: var(--border-light); /* .form-field-wide's own background covers this where it spans both columns */
}

#eng-change-detail .form-field {
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}

#eng-change-detail .form-field label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 0.1rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Plain-text read-only style, quieter than the boxed default used elsewhere */
#eng-change-detail .form-field .field-value {
  min-height: 1.6rem; /* matches an edit-mode input's height, so checking out adds only a border, no reflow */
  padding: 0.2rem 0;
  border-color: transparent;
  background: none;
  font-size: 0.85rem;
  color: var(--text-sub);
}

#eng-change-detail .form-field-wide {
  background: var(--surface);
}

/* ─── Start Change (New Kit) wizard — modal-body content, not scoped to #eng-change-detail ── */

.kit-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-light);
}
.kit-name-row:last-child { border-bottom: none; }
.kit-name-row input { flex: 1; }
.kit-name-row .remove-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 2px 6px;
  flex: none;
}
.kit-name-row .remove-btn:hover { color: var(--danger); }
.add-kit-row { padding-top: 0.4rem; }

.init-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-light);
}
.init-row:last-child { border-bottom: none; }
.init-row .init-label { flex: 1; font-size: 0.85rem; }
