﻿/*#region MESSAGGI TOAST */
.toast {
    max-width: 500px;
}
/*#endregion MESSAGGI TOAST fine */

/*#region CUSTOM MENU */

/* hover voci menuPrimo livello */
div.nav-item.active div.nav-link,
.nav-item:hover .nav-link,
.nav-item .nav-link.active {
    background-color: var(--primary); /* hover su menu che diventa arancione */
}

    .nav-item.active .svg-menu svg path,
    .nav-item.active .lblVoceMenu,
    .nav-item.active .lblVoceMenu10,
    .nav-item:hover .svg-menu svg path,
    .nav-item:hover .lblVoceMenu,
    .nav-item:hover .lblVoceMenu10,
    .nav-item .nav-link.active .svg-menu svg path,
    .nav-item .nav-link.active .lblVoceMenu,
    .nav-item .nav-link.active .lblVoceMenu10
    .nav-item .nav-link:hover .svg-menu svg path,
    .nav-item .nav-link:hover .lblVoceMenu,
    .nav-item .nav-link:hover .lblVoceMenu10 {
        fill: #fff !important; /* hover su icona svg del menu che diventa bianco */
        color: #ffffff;
    }


.aside-secondary-enabled.aside-fixed .wrapper {
    padding-left: 0px;
}

.btn.focus, .btn:focus {
    box-shadow: 0 0 0 0rem rgba(0,123,255,.25); /* per togliere l'ombra azzurrina intorno al bottone di primo livello*/
}

/* hover voci menuSecondo livello */
.hoverSecondoMenuPadre a:hover {
    color: #2e384d;
    text-decoration: none;
}

.hoverSecondoMenuFiglio:hover {
    color: #2E384D;
    background-color: #ffffff;
    text-decoration: none;
    border-right: solid 5px var(--primary);
    cursor: pointer;
}

    .hoverSecondoMenuFiglio:hover .lblVoceMenu {
        font-weight: bold !important;
    }
/*#endregion CUSTOM MENU fine */


/*#region CARD*/

.card {
    margin-top: 2em;
    border: none !important;
    border-radius: 1em;
}

.card-header {
    padding: 0.5em;
    border-bottom: 1px solid #F2F5FC;
}

.card-header {
    background-color: #F2F5FC;
    font-family: Krub;
    font-weight: 600;
    font-size: 16px;
    border-top-left-radius: 1em !important;
    border-top-right-radius: 1em !important;
    padding: 1em;
}

.card-footer {
    background-color: #FFFFFF;
    align-items: end;
    display: flex;
    justify-content: end;
    border-bottom-left-radius: 1em !important;
    border-bottom-right-radius: 1em !important;
    border-left: 2px solid #F2F5FC;
    border-right: 2px solid #F2F5FC;
    border-bottom: 2px solid #F2F5FC;
    border-top: 2px solid #F2F5FC;
}

.border-bottom-round {
    border-left: 2px solid #F2F5FC;
    border-right: 2px solid #F2F5FC;
    border-bottom: 2px solid #F2F5FC;
    border-bottom-left-radius: 1em !important;
    border-bottom-right-radius: 1em !important;
}

.border-side {
    border-left: 2px solid #F2F5FC;
    border-right: 2px solid #F2F5FC;
}

/*#endregion*/

/*#region POPUP - MODALI (dettaglio pagina) */

.modal-content-new {
    border-radius: 1em;
    position: absolute;
    z-index: 600;
    min-height: calc(100vh - 4.5em);
}

.modal-content {
    /*border-radius: 16px;*/
    position: absolute;
    top: 0px;
    width: 75%;
    right: 0px;
    width: calc(100vw - 390px);
    z-index: 600;
}

.modal-dialog {
    min-width: calc(100vw - 2.5em);
    /*min-height: calc(100vh - 5em);*/
}

@media (min-width: 576px) {
    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 5px);
        height: 100vh;
    }
}

.close {
    float: right;
    text-shadow: none;
    opacity: initial;
    width: 32px;
    height: 32px;
    border: 0;
    margin-top: 1px !important;
    margin-right: 1px !important;
    background-image: url('../img/svg/icon_close_modal.svg' );
    background-color: transparent;
}

.modal-header {
    height: 64px;
    font-family: Krub;
    font-size: 16px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    color: #2e384d;
    text-transform: uppercase;
}

    .modal-header .close {
        padding: 0px;
        /*margin: 16px 16px 16px auto;*/
    }

.modal-footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 0px;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
    justify-content: center;
}

    .modal-footer > * {
        margin: 0.25rem;
    }
/*#endregion POPUP - MODALI (dettaglio pagina) fine */

/*#region POPUP AVVISI GURU */
.modal-mypopup {
    position: fixed;
    left: 35%;
    top: 20px;
}

.modal-dialog-mypopup {
    position: relative;
    pointer-events: none;
    width: 600px;
    margin: 1.75rem auto;
}

.modal-content-mypopup {
    position: absolute;
    z-index: 600;
    top: 0px;
    margin: auto;
    display: flex;
    flex-direction: column;
    width: 600px;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 16px;
    outline: 0;
}

/*#endregion POPUP AVVISI GURU fine */

/*#region DATAGRID e GRIDVIEW */
.table {
    color: #2e384d;
    margin-bottom: 0px;
}

.table-light, .table-light > td { /*, .table-light>th*/
    background-color: #ffffff;
    height: 60px !important;
}

/*HeaderStyle*/
.table-header {
    height: 51px !important;
    background-color: #ffffff;
    vertical-align: middle;
    color: #2e384d;
}

    .table-header center {
        text-align: center;
    }

.table td, .table th {
    vertical-align: middle;
}

    .table td a, .table th a {
        color: #2e384d;
        text-decoration: none;
    }

        .table td a:hover, .table th a:hover {
            color: #2e384d;
            text-decoration: none;
        }
/*#endregion DATAGRID e GRIDVIEW fine */

/*#region POPOVER (DROPDOWN-POPOVER) usato per il menu popover delle stampe*/

.dropdown-item {
    color: #ffffff !important;
    font-size: 14px;
    font-family: Krub, Arial, sans-serif;
}

    .dropdown-item:focus, .dropdown-item:hover {
        font-weight: bold !important;
        background-color: #6E6F85;
        text-decoration: none;
    }

.colorReverse {
    color: #2e384d !important;
    font-size: 14px;
    font-family: Krub, Arial, sans-serif;
}

    .colorReverse:focus, .colorReverse:hover {
        font-weight: bold !important;
        background-color: #ffffff;
        text-decoration: none;
    }

.dropdown-item.colorReverse:hover span.labelBasic-upper {
    font-weight: bold !important;
}


.dropdown-menu {
    z-index: 400; /*per lasciarlo sotto lo spinner*/
}

/*#endregion POPOVER (DROPDOWN-POPOVER fine */

/*#region usato in infoPersona per scorrere le informazioni della persona (ex CAROUSEL) */
/*.panner {
    z-index: 20;
}*/
/*#endregion fine */

/*#region ACCORDION DATI ANAGRAFICI */
.accordion > .card > .card-header {
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.accordion > .card:not(:last-of-type) {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.accordion > .card:not(:first-of-type) {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

/*#endregion ACCORDION DATI ANAGRAFICI fine */


/*#region STEP WIZARD */

#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    color: #E6EBFA
}

    #progressbar .active {
        color: var(--primary)
    }

    #progressbar li {
        list-style-type: none;
        width: 25%;
        float: left;
        position: relative;
    }

    #progressbar #step1:before {
        content: "1"
    }

    #progressbar #step2:before {
        content: "2"
    }

    #progressbar #step3:before {
        content: "3"
    }

    #progressbar #step4:before {
        content: "4"
    }

    #progressbar #step5:before {
        content: "5"
    }

    #progressbar #step6:before {
        content: "6"
    }

    #progressbar .custom-step1::before {
        content: "1"
    }

    #progressbar .custom-step2::before {
        content: "2"
    }

    #progressbar .custom-step3::before {
        content: "3"
    }

    #progressbar .custom-step4::before {
        content: "4"
    }

    #progressbar .custom-step5::before {
        content: "5"
    }

    #progressbar .custom-step6::before {
        content: "6"
    }

    #progressbar li:before {
        width: 50px;
        height: 50px;
        line-height: 45px;
        display: block;
        background: #E6EBFA;
        border-radius: 50%;
        margin: 0 auto 10px auto;
        margin-right: 0;
        padding: 2px;
        font-family: Krub;
        font-style: normal;
        font-weight: bold;
        font-size: 15px;
        text-align: center;
        text-transform: uppercase;
        color: #FFFFFF;
    }

    #progressbar li:after {
        content: '';
        width: 100%;
        height: 5px;
        /*border-radius: 2px;*/
        background: #E6EBFA;
        position: absolute;
        left: 0;
        top: 25px;
        z-index: -1
    }

    #progressbar li.active:before,
    #progressbar li.active:after {
        background: var(--primary)
    }

.progress {
    height: 20px
}

.progress-bar {
    background-color: var(--primary)
}

.fit-image {
    width: 100%;
    object-fit: cover
}

/*#endregion */
