:root {
    --primary: #2D1967;
    --text-color: #212529;
    --menu-link-active: #2155cd;
    --sidebar-menu-color: #dff2f9;
    --menu-width: 300px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

    h3:hover {
        color: #1a73e8;
    }

.opacity_disabled {
    opacity: 0.5;
}

.profile_info .profile_info_iner .profile_author_name {
    background: #2D1967 !important;
}

.profile_info .profile_info_iner::before {
    border-color: transparent transparent #2D1967 transparent !important;
}

.header_iner .header_right .header_notification_warp li > .bell_notification {
    font-size: 20px;
    color: #929BB5;
    position: relative;
    margin-right: 0;
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
}

.header_iner .header_right .header_notification_warp li > .bell_notification {
    line-height: 39px;
}

    .header_iner .header_right .header_notification_warp li > .bell_notification span {
        position: absolute;
        width: 20px;
        height: 20px;
        line-height: 20px;
        text-align: center;
        color: #fff;
        display: inline-block;
        background: #FF606D;
        font-size: 10px;
        border-radius: 50%;
        right: -11px;
        top: -4px;
    }

.bell_notification:hover .Menu_NOtification_Wrap {
    opacity: 1;
    visibility: visible;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 350, 'GRAD' 0, 'opsz' 36
}

font-size: 3rem; color: white;

.header_iner {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1055;
}

.sidebar {
    z-index: 99999;
}

    .sidebar #sidebar_menu a {
        cursor: pointer;
    }

    .sidebar #sidebar_menu > li > a:hover, .sidebar #sidebar_menu > li ul li a:hover {
        background: #f5f5f5;
        border-radius: 6px 0px 0px 6px;
    }

    .sidebar #sidebar_menu > li ul {
        padding: 0px 0px 0px 20px;
        position: relative;
        margin: 10px 0;
    }

        .sidebar #sidebar_menu > li ul::before {
            content: "";
            width: 2px;
            height: 100%;
            background: var(--sidebar-menu-color);
            position: absolute;
            left: 8px;
            border-radius: 8px;
        }

        .sidebar #sidebar_menu > li ul li a {
            padding: 10px 0 10px 20px !important;
            margin: 5px 0;
        }

            .sidebar #sidebar_menu > li ul li a.active {
                color: var(--menu-link-active);
            }

            .sidebar #sidebar_menu > li ul li a.active, .sidebar #sidebar_menu > li ul li a:hover {
                background: #dff2ff;
                border-radius: 6px 0px 0px 6px;
            }

    .sidebar #sidebar_menu > li:not(.mm-active) > a:hover:before {
        opacity: 1;
        visibility: visible;
    }

    .sidebar #sidebar_menu > li:not(.mm-active) > a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        background: #c8c8c8;
        height: 100%;
        border-radius: 6px 0px 0px 6px;
        left: -10px;
        border-radius: 0 8px 8px 0;
        opacity: 0;
    }

    .sidebar .footer_menu {
        position: absolute;
        bottom: 0;
    }

    .sidebar::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
        background-color: var(--primary);
        border-radius: 10px;
    }

    .sidebar::-webkit-scrollbar, body::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

.main_content.dashboard_part {
    overflow: visible;
}

.card_box .white_box_title.reverse {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.colored_bg {
    background-color: var(--primary) !important;
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

a {
    color: var(--primary);
}

/*.header_iner .header_right .header_notification_warp li > a { line-height: 39px; }*/

.profile_info > i {
    font-size: 40px;
}

.details_toolbar .btn_label {
    font-size: 14px;
    line-height: 1.4em;
}

.Menu_NOtification_Wrap {
    top: 47px;
    text-align: left !important;
}

    .Menu_NOtification_Wrap .Notification_body .single_notify {
        margin-bottom: 12px;
        margin-top: 6px;
    }

        .Menu_NOtification_Wrap .Notification_body .single_notify .notify_content a h5 {
            line-height: 1.2;
        }

.sidebar #sidebar_menu > li {
    margin-left: 10px;
}

    .sidebar #sidebar_menu > li a {
        padding: 15px 25px 15px 15px;
    }

        .sidebar #sidebar_menu > li a:hover {
            background-color: #e0ebff;
        }

    .sidebar #sidebar_menu > li:not(.mm-active) a .material-symbols-outlined {
        color: #A6A6A6;
    }

    .sidebar #sidebar_menu > li:not(.mm-active) a::before {
        background-color: #1a73e8;
    }

    .sidebar #sidebar_menu > li.mm-active > a {
        border-radius: 6px 0 0 6px;
        color: #2D1967;
        background: #dff2ff;
    }

        .sidebar #sidebar_menu > li.mm-active > a::before {
            left: -10px;
            border-radius: 0 8px 8px 0;
        }

        .sidebar #sidebar_menu > li.mm-active > a::after {
            right: 15px;
            color: #2D1967;
        }


.dropdown-item.active, .dropdown-item:active {
    color: #fff !important;
}

.dropdown .dropdown-menu .dropdown-item.active:hover {
    background: #0d6efd !important;
}

.fixed_width {
    width: 180px;
}

    .fixed_width > div.d-block.w-100 {
        min-width: 130px !important;
    }

.fixed_width2 {
    width: 180px;
}

    .fixed_width2 > div.d-block.w-100 {
        min-width: 150px !important;
    }

.double_fixed_width {
    width: 360px;
}

    .double_fixed_width > div.d-block.w-100 {
        min-width: 360px !important;
    }

.fixed-columns-right {
    height: 1px !important;
}

.data_table thead tr {
    background: #fff;
}

.data_table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.data_table tbody tr:nth-child(even) {
    background-color: #f0f0f0;
}

.action_toolbar .btn {
    padding-left: 2em;
    position: relative;
    line-height: 1.4;
}

    .action_toolbar .btn i {
        position: absolute;
        left: 0;
        top: 0;
        width: 28px;
        line-height: 1;
        font-size: 27px;
    }

.card_box .white_box_title {
    background-color: #fff;
    padding: 20px 40px;
    border-bottom: 1px solid #f2f4ff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    position: relative;
    overflow: hidden;
}

.card_box .box_body {
    padding: 20px 40px;
}

.logo_mutua {
    max-width: 120px;
    max-height: 55px;
}

.open_close_collapse {
    color: var(--bs-secondary);
}

    .open_close_collapse:hover {
        color: var(--bs-secondary) !important;
        opacity: .7;
    }

.field_wrapper:not(.form-check):not(.no_border) {
    border-bottom: 1px solid #e6e6e6;
}

.form-check-input[type="checkbox"]:disabled, .form-check-input[type="checkbox"]:disabled ~ .form-check-label, .form-check-input[type="checkbox"][disabled] ~ .form-check-label {
    opacity: 1;
}

.btn_action {
    line-height: .7;
    padding: 0.25rem;
}

    .btn_action:hover {
        background: #FAFAFA;
    }

    .btn_action i {
        color: #616161;
    }

    .btn_action .btn_label {
        color: #424242;
    }

.vertical_divider {
    width: 1px;
    height: auto;
    background: #E0E0E0;
}

.custom_shadow {
    box-shadow: 0 0 2px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.14);
}

.small_border_radius {
    border-radius: 4px;
}

#1a73e8

.green_icon {
    color: #498205 !important;
}

.red_icon {
    color: #a4262c !important;
}

.blue_icon {
    color: #0078d4 !important;
}

.green_bg {
    background: #498205 !important;
    color: #fff !important;
}

.red_bg {
    background: #a4262c !important;
    color: #fff !important;
}

.blue_bg {
    background: #0078d4 !important;
    color: #fff !important;
}

.divider {
    border-bottom: 1px solid var(--sidebar-menu-color);
}

.ts-wrapper.multi .ts-control > div.active, .ts-wrapper.multi .ts-control > div.last-active {
    background: #2d1967;
    color: #fff;
    border: 0 solid #2d1967;
}

.single-select .ts-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    border-color: #BBC1C9;
}

.bg-success-light {
    background-color: #d4edda; /* Un verde chiaro */
    color: #155724; /* Un colore di testo che contrasta bene con il verde chiaro */
}

.bg-danger-light {
    background-color: #f8d7da; /* Un rosso chiaro */
    color: #721c24; /* Un colore di testo che contrasta bene con il rosso chiaro */
}

.custom-badge-width {
    width: 150px;
    display: inline-block;
    text-align: center;
}

.remove-class-button {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
}

.pac-container.pac-logo {
    z-index: 99999;
}

.text-compliance {
    font-size: 18px;
    color: #3f3c3c;
}

.dati-home {
    font-size: 16px;
    font-weight: 500;
    color: #2F90F7;
    display: flex;
    margin-bottom: 10px;
}

.badge.stato_convenzionamento,.badge.stato_contratto {
    width: 100px;
    color: white !important;
}


.icon_siderNav {
    font-size: 20px !important;
    font-weight: 600;
    padding: 15px 25px 15px 10px;
}

/* Personalizzazione dello switch */
.form-switch .form-check-input {
    width: 3em;
    cursor: pointer;
}

    .form-switch .form-check-input:checked {
        background-color: #dc3545; /* bg-danger */
        border-color: #dc3545;
    }

    .form-switch .form-check-input:not(:checked) {
        background-color: #198754; /* bg-success */
        border-color: #198754;
    }

    .form-switch .form-check-input:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Stili per uniformare i badge */
    .badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
        font-weight: 500;
        width: fit-content; /* Importante per mantenere la larghezza naturale */
        white-space: nowrap; /* Previene il wrap del testo */
    }

    /* Stili per il contenitore dei badge */
    .badge-container {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        flex-wrap: wrap;
    }

    /* Stili specifici per le icone nei badge */
    .badge .material-symbols-outlined {
        font-size: 1rem;
        flex-shrink: 0; /* Previene il ridimensionamento dell'icona */
    }

.total-apps {
    background-color: #e9ecef;
    border-top: 2px solid #6c757d;
    padding: 1.25rem 1rem;
    margin-top: 0.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

@media (min-width: 992px) {
    .main_content {
        padding-left: var(--menu-width);
    }

    .sidebar {
        width: var(--menu-width);
    }
}

@media (max-width: 991px) {
    .main_content .main_content_iner {
        margin: 20px;
    }
}

@media(min-width: 576px) {
    .modal-dialog {
        max-width: 800px;
        margin: 1.75rem auto;
    }
}

@media (max-width: 575px) {
    .details_toolbar i {
        font-size: 1em;
        line-height: 1.5;
    }
}
