/*html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}*/

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}
.wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.content-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .content-page main {
        flex: 1;
    }

.it-footer {
    margin-top: auto;
}
.icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--ct-tertiary-bg);
    z-index: 9999;
}

#status {
    width: 80px;
    height: 80px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -40px 0 0 -40px;
}


/*Modal*/

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.25) !important;
}

    .modal-backdrop.fade {
        opacity: 0;
    }

    .modal-backdrop.show {
        opacity: 1;
    }

.text-error {
    color: var(--color-primary);
    font-size: 5.25rem;
    line-height: 5.625rem;
}

body.authentication-bg .account-pages {
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.authentication-bg.enlarged,
.auth-fluid-pages.enlarged,
body.auth-fluid-pages[data-sidenav-size=condensed] {
    min-height: 100px;
}

.ui-autocomplete {
    z-index: 99999 !important;
    background-color: white !important;
    opacity: 0.90;
    width: 100% !important;
}

body > .ui-helper-hidden-accessible {
    display: none !important;
}

/* Left panel — spingi tutto a sinistra e consenti wrap */
#left-list-container,
#left-list-container .list-group,
#left-list-container .list-group-flush {
    margin: 0;
    padding: 0;
    list-style: none;
}

    /* item: flex container; keep icon on the right even when text wraps */
    #left-list-container .list-group-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start; /* consente al testo di andare a capo sopra/sotto l'icona senza centrarla */
        gap: 0.5rem;
        padding-left: 0; /* elimina padding sinistro */
        padding-right: 0.25rem;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    /* contenuto testuale che deve andare a capo */
    #left-list-container .list-item-content {
        flex: 1 1 auto; /* occupa lo spazio disponibile */
        padding-left: 0;
        margin-left: 0;
        white-space: normal; /* permette il wrapping */
        overflow: visible; /* no clipping */
        text-overflow: unset;
        word-wrap: break-word; /* compatibilità vecchia */
        overflow-wrap: anywhere; /* rompe parole molto lunghe */
        hyphens: auto; /* suggerisce sillabazione (se supportata dal browser) */
        line-height: 1.3;
    }

    /* bottone/icona: non si sposta, resta al lato destro */
    #left-list-container .btn-icon {
        flex: 0 0 auto;
        margin-left: 0.5rem;
        padding: 0.15rem;
        background: transparent;
        border: none;
        display: inline-flex;
        align-items: start; /* allinea l'icona all'inizio della riga */
    }

    /* Rimuove gap residui tra items */
    #left-list-container .list-group-item + .list-group-item {
        margin-top: 0;
        border-top: 1px solid rgba(0,0,0,0.04); /* opzionale */
    }

/* Footer: rimane in basso (usa mt-auto nella view, mantendo zero padding laterale) */
.list-footer {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}
