/*
 * Bootstrap 4 classes emitted by vendor templates (ublaboo/datagrid 6) and by
 * ->setClass('btn btn-xs ...') on datagrid actions, plus the Bootstrap 4 look
 * Bootstrap 5 dropped.
 */
.btn-xs {
    --bs-btn-padding-y: .125rem;
    --bs-btn-padding-x: .25rem;
    --bs-btn-font-size: .75rem;
    --bs-btn-border-radius: .2rem;
}

.datagrid .text-right { text-align: right !important; }
.datagrid .text-left { text-align: left !important; }

.datagrid .form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.datagrid .input-group-append,
.datagrid .input-group-addon {
    display: flex;
    align-items: center;
}

.dropdown-menu-right { --bs-position: end; }

select.form-control { appearance: auto; }

.text-justify { text-align: justify !important; }

/* Bootstrap 5 removed the label margin; Bs5FormRenderer labels carry no .form-label. */
.mb-3 > label:not(.form-check-label) { margin-bottom: .5rem; }

/* Bootstrap 5 underlines links by default. */
a { text-decoration: none; }
a:not(.btn, .nav-link, .navbar-brand, .dropdown-item, .page-link):hover { text-decoration: underline; }
