/**
 * Form field help text — DaisyUI .label uses white-space: nowrap and inline-flex,
 * which clips long hint text in narrow cards/columns. Load after assets/app.css.
 */

/* Let grid columns shrink so wrapped help text stays inside cards. */
.card-body > .grid {
    min-width: 0;
}

.card-body > .grid > * {
    min-width: 0;
}

.form-control > .label:has(.label-text-alt):not(.cursor-pointer),
.fieldset > .label:has(.label-text-alt):not(.cursor-pointer),
.fieldset .form-control > .label:has(.label-text-alt):not(.cursor-pointer) {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.125rem;
    box-sizing: border-box;
}

.form-control > .label:has(.label-text-alt):not(.cursor-pointer) .label-text-alt,
.fieldset > .label:has(.label-text-alt):not(.cursor-pointer) .label-text-alt,
.fieldset .form-control > .label:has(.label-text-alt):not(.cursor-pointer) .label-text-alt {
    white-space: normal;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
}
