/**
 * FMG admin: keep tabular inline FKs, selects, and autocompletes readable.
 * Unfold uses flex + grow inside <td>; wide fields (e.g. notes) steal space and
 * collapse others to a sliver (chevron-only selects).
 *
 * Checkbox columns use align-middle on the td — excluded below.
 */
.tabular.inline-related table.tabular-table td.field-tabular:not(.align-middle) .flex.flex-col.grow {
    min-width: 12.5rem;
    width: 100%;
    max-width: 100%;
}

.tabular.inline-related table.tabular-table td.field-tabular:not(.align-middle) select {
    min-width: 12.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Django admin autocomplete → Select2 */
.tabular.inline-related table.tabular-table td.field-tabular:not(.align-middle) .select2-container {
    min-width: 12.5rem !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.tabular.inline-related table.tabular-table td.field-tabular:not(.align-middle) .related-widget-wrapper {
    min-width: 12.5rem;
    width: 100%;
    max-width: 100%;
}

/* Raw ID / lookup inputs */
.tabular.inline-related table.tabular-table td.field-tabular:not(.align-middle) input.vTextField,
.tabular.inline-related table.tabular-table td.field-tabular:not(.align-middle) input.vForeignKeyRawIdAdminField {
    min-width: 10rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
