body, ::root{
    --gf-color-in-ctrl-primary: #008691;
    --gf-ctrl-choice-check-color: #008691;
    --gf-ctrl-choice-radio-color: #008691;
    --gf-color-in-ctrl-primary-hover: #006f7a;
}
.gform-theme--framework input[type=checkbox]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::before{
    color: #008691 !important;
}
.gform-theme--framework input[type=radio]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *))::before{
    background-color: #008691 !important;
}
.gform-theme--framework .gfield:where(.gfield--type-multiselect,.gfield--input-type-multiselect) .chosen-container-multi:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework .gfield:where(.gfield--type-select,.gfield--input-type-select) .chosen-search input[type=text]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework .gfield:where(.gfield--type-select,.gfield--input-type-select) .chosen-single:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework .gform-theme-field-control:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework input[type]:where(:not(.gform-text-input-reset):not([type=hidden])):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework select:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework select[multiple]:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework textarea:where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework.gform-theme.gform_wrapper .button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework.gform-theme.gform_wrapper .gform-theme-button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework.gform-theme.gform_wrapper :where(:not(.mce-splitbtn))>button:not([id*=mceu_]):not(.mce-open):where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework.gform-theme.gform_wrapper button.button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework.gform-theme.gform_wrapper input:is([type=submit],[type=button],[type=reset]).button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework.gform-theme.gform_wrapper input:is([type=submit],[type=button],[type=reset]):where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus, .gform-theme--framework.gform-theme.gform_wrapper input[type=submit].button.gform_button:where(:not(.gform-theme-no-framework)):where(:not(.gform-theme__disable):not(.gform-theme__disable *):not(.gform-theme__disable-framework):not(.gform-theme__disable-framework *)):focus{
    --gf-local-border-color: #008691 !important;
    --gf-local-outline-color: #008691 !important;
}
/* Stile di base per la tabella */
.table-responsive {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.um-profile .um-profile-body{
    max-width: 100% !important;
    padding: 0;
}

@media (max-width: 768px) {
    .table-responsive,
    .table-responsive thead,
    .table-responsive tbody,
    .table-responsive th,
    .table-responsive td,
    .table-responsive tr {
        display: block;
        width: 100%;
    }

    .table-responsive tr {
        margin-bottom: 15px;
    }

    .table-responsive td {
        padding: 10px;
        position: relative;
        text-align: right;
        border: 1px solid #ddd;
    }

    /* Etichetta per le celle */
    .table-responsive td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }

    /* Nasconde le intestazioni della tabella */
    .table-responsive thead {
        display: none;
    }
}

.um-profile-nav{
    display: flex ;
    flex-direction: row-reverse;
    justify-content: flex-end;
    background: transparent !important;
    padding: 0 !important;
}

.gpasc-drafts{
    display: none;
}

.gform_heading .gform_title{
    display: none;
}

.um-profile-body-cont .um-profile-nav .um-profile-nav-item.active a{
    background: rgba(0, 0, 0, 0) !important;
    border: 0 !important;
    color: #008691 !important;
}
.um-profile-body-cont .um-profile-nav .um-profile-nav-item.active a:after{
    width: 100%;
}
.um-profile-body-cont .um-profile-nav .um-profile-nav-item a{
    font-size: 1rem !important;
    background: rgba(0, 0, 0, 0);
    color: #353945 !important;
    font-weight: 500;
    border: 0 !important;
}
.um-header{
    border: 0 !important;
}

#primary .um .um-profile-photo a.um-profile-photo-img, #primary .um .um-profile-photo img{
    border-radius: 0 !important;
}
#primary .um-header.no-cover .um-name{
    float: none !important;
    text-align: left;
}
#primary .um-header.no-cover .um-profile-photo{
    margin: 0 !important;
}
#primary .um-profile-body-cont{
    margin-top: 4rem;
}

#primary .gform_previous_button, #primary .gform_save_link{
    border-radius: 0;
    border-width: 2px;
    border-color: #008691;
    color: #008691;
}
#primary .gform_save_link:before{
    color: #008691;
}
#primary .gform_previous_button:hover, #primary .gform_save_link:hover {
    background: #008691;
    color: white;
    border-color: #008691;
}
#primary .gform_next_button{
    border-radius: 0;
    border-width: 2px;

    background: #008691;
    color: white;
    border-color: #008691;
}
#primary .gform_next_button:hover {
    background: transparent;
    border-color: #006f7a;
    color: #006f7a;
}
#primary .gform_save_link:hover:before{
    color: white;
}
#export_pdf_button, #export_csv_button{
    border-radius: 0;
    border-width: 2px;
    border-color: #008691;
    color: #008691;
    background: transparent;
}
#export_pdf_button:hover, #export_csv_button:hover {
    background: #008691;
    color: white;
    border-color: #008691;
}
#primary .gf_page_steps .gf_step_number {
    border-radius: 0;
}
#primary .gf_page_steps .gf_step.gf_step_active .gf_step_number{
    background: #008691;
    border-color: #008691;  
    color: white;
}
#gpasc-auto-load-notice {
    background: #86B7BF;
    color: #008691;
    border: 1px solid #008691;
    padding: 16px 24px;
    border-radius: 0px;
    font-size: 1rem;
    margin-bottom: 1.9rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    text-align: left;
}
#gpasc-auto-load-notice p{
    margin: 0;
}
#primary #um-submit-btn{
    font-weight: 600 !important;
    color: #fff !important;
}
.um-page-register #primary #um-submit-btn, .um-page-password-reset #primary #um-submit-btn{
    display: block !important;
    width: 100% !important;
}
#primary #um-submit-btn:hover {
    background: transparent !important;
    border-color: #006f7a !important;
    color: #006f7a !important;
}
#primary .um-button {
    background: #008691 !important;
    border: 2px solid #008691 !important;
    color: #fff !important;
    font-weight: 600 !important;
}
#primary .um-button:hover{
    background: transparent !important;
    color: #008691 !important;
    border-color: #008691 !important;
}
#primary .um-link-alt:after{
    content: none !important;
}

.um-own-profile #primary{
    margin-bottom: 0rem !important;
}
.gform-footer .gform_button{
    background-color: #006f7a !important; 
    border: 2px solid #006f7a !important;
    color: white;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
}
.gform-footer .gform_button:hover{
    background-color: transparent !important; 
    border-color: #006f7a !important;
    color: #006f7a !important;
}

.um-account-side{
    ul{
        li{
            background: transparent !important;
            .um-account-link{
                background-color: transparent !important;
                border: 1px solid #006f7a !important;
                &.current{
                    background: #006f7a !important;
                    color: white !important;
                    .um-account-icon{
                        border-color: white !important;
                        color: white !important;
                    }
                    .um-account-title{
                        color: white !important;
                    }
                }
                &:hover{
                    background: #006f7a !important;
                    color: white !important;    
                    .um-account-icon{
                        border-color: white !important;
                        color: white !important;
                    }
                    .um-account-title{
                        color: white !important;
                    }
                    &::after{
                        content: none !important;
                    }
                }
            }
            .um-account-icon{
                border-color: #006f7a !important;
                color: #006f7a !important;
            }
        }
    }
}

.gform-theme--framework .gf_step_completed .gf_step_number::after{
    background: #008691 !important;
    border-color: #008691 !important;  
    color: white !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.gform_button.button{
    border-radius: 0 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border: 2px solid #008691 !important;
    background: #008691 !important;
    color: white !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #86B7BF !important;
    color: white;
}

.um-modal .um-modal-header, .um-modal .upload form input[name="profile_photo"], .um-modal .um-finish-upload.um-modal-btn{
    background: #008691 !important;
    color: white !important;
    border-radius: 0;
}
.um-modal .um-modal-btn{
    border-radius: 0;
}
.um-modal a:after, .um-account-main .um-request-button:after{
    content: none !important;
}

.um-account-main .um-request-button{
    border: 2px solid #008691 !important;
    background: transparent !important;
    color: #008691 !important;
    border-radius: 0 !important;
}
.um-account-main .um-request-button:hover{
    background: #008691 !important;
    color: white !important;
    border-color: #008691 !important;
}
.um .um-field-radio.active:not(.um-field-radio-state-disabled) i{
    color: #008691 !important;
}

.um .um-tip:hover{
  color: #008792 !important;
}

.openid-connect-login-button {
    font-weight: 600;
    font-size: large;
}