/* Application adjustments after the Bootstrap 5 / AdminLTE 4 migration. */
.app-content, .app-content-header {
    padding: 1rem;
}
.app-content-header:empty {
    display: none;
}
.app-sidebar {
    --lte-sidebar-width: 250px;
}
.sidebar-brand .brand-link {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}
.app-sidebar .nav-link.active {
    color: #fff;
    background-color: #ec680b;
}
.form-group {
    margin-bottom: 1rem;
}
.help-block {
    display: block;
    margin-top: .25rem;
    font-size: .875em;
}
.has-error .help-block {
    color: var(--bs-danger);
}
.has-error .form-control {
    border-color: var(--bs-danger);
}
/* Yii's standard ActiveForm still emits these validation classes. */
.required > label::after {
    content: ' *';
}
.card-tools {
    float: right;
}
/* Kept by the older clinical forms as custom presentation classes. */
.card.box-radius {
    border-radius: .5rem;
}
@media (max-width: 991.98px) {
    .app-content, .app-content-header {
        padding: .75rem;
    }
}

/* Keep the brand centered when only the mini sidebar is visible. */
.sidebar-brand .sidebar-brand-link {
    justify-content: center;
    width: 100%;
    min-width: 0;
}
.sidebar-brand .sidebar-brand-initial {
    display: none;
    opacity: 1;
    visibility: visible;
    flex: 0 0 33px;
    float: none;
    width: 33px;
    height: 33px;
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 33px;
    text-align: center;
    color: inherit;
}
.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .sidebar-brand-initial,
.sidebar-mini.sidebar-collapse.sidebar-without-hover .app-sidebar .sidebar-brand-initial {
    display: block;
}
.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .sidebar-brand-link > .brand-text,
.sidebar-mini.sidebar-collapse.sidebar-without-hover .app-sidebar .sidebar-brand-link > .brand-text {
    display: none;
}

/* Hide open submenus while the mini sidebar is collapsed. */
.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .nav-collapse-hide-child .nav-treeview,
.sidebar-mini.sidebar-collapse.sidebar-without-hover .app-sidebar .nav-collapse-hide-child .nav-treeview {
    display: none !important;
}

/* Testo generale più piccolo. 
body.text-xs {
    font-size: 0.90rem;
}
*/

/* Celle più compatte rispetto a table-sm. */
.table.table-xs > :not(caption) > * > * {
    padding: 0.15rem 0.25rem;
    font-size: 0.75rem;
}

html {
    /* Modifica il valore predefinito (solitamente 16px). 
       Se vuoi ingrandire tutto del 10%, puoi impostare 17.5px o usare una percentuale. */
    font-size: 0.90rem;
}
