/* multiselect native select*/
.multiselect-native-select > .btn-group {
    width: 100% !important;
}

/* TOTALI ASSENZE IN CALENDAR */

.absence-section {
    margin-bottom: 20px;
}

.absence-section h3 {
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.absence-list-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}
.absence-description {
    flex-grow: 1;
    /* Occupa tutto lo spazio disponibile */
    text-align: left;
}

.absence-details {
    flex-shrink: 0;
    /* Evita che si ridimensioni */
    min-width: 140px;
    /* Imposta una larghezza minima per uniformare */
    text-align: left;
    /* Allinea il contenuto a destra */
}


/* .absence-list-item .absence-quantity {
    text-align: right;
    min-width: 70px;
} */

@media (max-width: 600px) {
    .absence-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .absence-list-item .absence-quantity {
        text-align: left;
        margin-top: 5px;
    }
}


/* LEGENDS */
.legend {
    display: flex;
    align-items: center;
}

.legend-square-yellow {
    width: 15px;
    height: 15px;
    background-color: #ffff99;
    margin-right: 5px;
    border: 1px solid #ccc;
}

.legend-square-gray {
    width: 15px;
    height: 15px;
    background-color: #7c717145;
    margin-right: 5px;
    border: 1px solid #ccc;
}

.legend-text {
    font-size: 14px;
}


/* calendar */
.light-yellow {
    background-color: #ffff99 !important;
}

.light-gray {
    background-color: #7c717145 !important;
}

/* sidebar submenu indent*/
.nav-sidebar .nav-treeview {
    text-indent: 15px;
}

.nav-sidebar .nav-treeview .nav-treeview {
    text-indent: 30px;
}


/*
 ----------- fix z-index datepicker
 */

.datepicker {
    /* Il valore della main bar è 1034 */
    z-index: 1500 !important;
}

/*
 --------------- fix input dark mode----------------------
*/
:root {
    --bs-body-bg: transparent;
    --bs-body-color: #898989; 
}

@media (prefers-color-scheme: dark) {
    :root {
        --bs-body-bg: transparent;
        --bs-body-color: #aaa;
    }
    body {
        --bs-body-bg: transparent;
        --bs-body-color: #aaa;
    }
}



.form-select:disabled {
    background-color: #778593 !important;
}



.dark-mode input:-webkit-autofill,
.dark-mode input:-webkit-autofill:focus,
.dark-mode input:-webkit-autofill:hover,
.dark-mode select:-webkit-autofill,
.dark-mode select:-webkit-autofill:focus,
.dark-mode select:-webkit-autofill:hover,
.dark-mode textarea:-webkit-autofill,
.dark-mode textarea:-webkit-autofill:focus,
.dark-mode textarea:-webkit-autofill:hover {
    -webkit-text-fill-color: #333 !important;
}

/* -------------------------------*/

main > .container {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view {
    background-color: transparent;;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.help-block {
    color: #c55;
    font-size: small;
}


/* tABELLA INVOICES ?DESTINATION' su una sola riga*/
.single-line {
    max-width: 400px;
    white-space: nowrap;
    /* Impedisce il wrapping del testo su più righe */
    overflow: hidden;
    /* Nasconde il testo in eccesso oltre la larghezza disponibile */
    text-overflow: ellipsis;
    /* Aggiunge i puntini di sospensione (...) per indicare il testo troncato */
}

.dashboard-mobile-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.6rem 0.7rem;
    margin-bottom: 0.55rem;
    background-color: rgba(255, 255, 255, 0.85);
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(var(--mobile-nav-items, 4), minmax(0, 1fr));
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
}

.mobile-bottom-nav__item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 60px;
    color: #5f5f5f;
    font-size: 0.72rem;
    line-height: 1;
    text-decoration: none;
}

.mobile-bottom-nav__item i {
    font-size: 1rem;
}

.mobile-bottom-nav__item.is-active {
    color: #305680;
}

@media (max-width: 991.98px) {
    .content-header {
        padding-top: 0.45rem;
    }

    .content-wrapper > .content {
        padding: 0.7rem 0.7rem 5.3rem;
    }

    .main-footer {
        padding-bottom: 4.2rem;
    }

    .card-title {
        font-size: 1.05rem !important;
        line-height: 1.35rem !important;
    }
}

@media (max-width: 420px) {
    .mobile-bottom-nav__item {
        font-size: 0.62rem;
    }

    .mobile-bottom-nav__item i {
        font-size: 0.92rem;
    }
}
