/* Training: the Course editor and the person form (ADR-0185). Scoped to #tab-staff-training;
 * the page around it is staff-training.css. */

/* ============================================================================
 * The editors
 * ========================================================================== */

.tr-edit {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 880px;
}

.tr-lesson-form {
  max-width: 820px;
}

/* The Active switch (ADR-0196): a unit's own row, and a lesson row's. A lesson that is off keeps its row and its switch at full strength; only what it says dims, so the one tap to turn it on is never the faint part. */
.tr-active-row {
  padding: 0;
}

.tr-lesson.is-inactive .tr-lesson-main {
  opacity: 0.6;
}

.tr-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0 var(--space-3);
}

.tr-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: start;
  margin-bottom: var(--space-3);
}

.tr-step-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.tr-step-n {
  text-align: center;
  color: var(--color-text-muted);
  font-weight: var(--font-semibold);
}

.tr-q {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  margin: 0 0 var(--space-3);
  min-width: 0;
}

.tr-q-legend {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 6px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  width: auto;
  margin: 0;
}

.tr-q-tools {
  display: inline-flex;
  gap: 2px;
  margin-left: auto;
}

.tr-opt {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
}

.tr-opt-right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.tr-sec-text {
  font-family: inherit;
}

.tr-change {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
}

