/*
 * Structural compatibility for templates still using DaisyUI v4 form helpers.
 * Keep these rules theme-neutral so both the member and Coach shells can use
 * them while their templates migrate incrementally to v5 fieldsets.
 */
.form-control {
  display: flex;
  flex-direction: column;
}

.label {
  display: flex;
  min-width: 0;
  user-select: none;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem;
  white-space: normal;
}

.label-text {
  color: var(--color-base-content);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.label-text-alt {
  color: var(--color-base-content);
  font-size: 0.75rem;
  line-height: 1rem;
}

.fieldset > .label,
.fieldset > .label .fieldset-legend,
.fieldset > .label .fieldset-label {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Unlayered compatibility rules must not mask DaisyUI's semantic error color. */
.label-text-alt.text-error,
.fieldset-label.text-error {
  color: var(--color-error);
}
