:root {
    --primary: #2D1967;
    --text-color: #212529;
    --menu-link-active: #2155cd;
    --sidebar-menu-color: #dff2f9;
    --menu-width: 300px;
    --background: #E7EDEB; /*#F5F7F9*/
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 36
}

.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 {
    position: relative;
    padding: 10px 20px;
    font-size: 16px;
    background-color: white;
    color: white;
    border: none;
    /*border: 2px solid var(--background);
    border-radius: 0px;   
    transition: all 0.3s ease;*/
}

.card_box .white_box_title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 25px;
    height: 35px;
    background-color: #F6F6F6; /* Colore del background per il taglio */
    transform: rotate(45deg);
}

.custom-tile {
    position: relative;
    padding: 0px 10px 5px;
    font-size: 16px;
    background-color: white;
    color: white;
    border: none;
    border-radius: 0px;
    transition: all 0.3s ease;
}

    .custom-tile::after {
        content: "";
        position: absolute;
        bottom: -15px;
        right: -15px;
        width: 25px;
        height: 50px;
        background-color: #F6F6F6; /* Colore del background per il taglio */
        transform: rotate(45deg);
        overflow: hidden
    }

.custom-tile-big {
    position: relative;
    padding: 10px 20px;
    font-size: 16px;
    background-color: white;
    color: white;
    border: none;
    border-radius: 0px;
    background-color: #F6F6F6;
    transition: all 0.3s ease;
}

.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 .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:not(.mm-active) a .material-symbols-outlined {
    color: #A6A6A6;
}

.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-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: 0px;
    border-top-right-radius: 0px;
    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;
}

.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;
}

@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;
    }
}

.custom-button1 {
    color: #FF6469;
    font-size: clamp(0.6rem, 1.0vw, 1.5rem);
    border: 0.5px solid #FF6469;
   /* padding: 5px;     */
    border-radius: 15%; 
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.custom-button1:hover {
    background:#ff6469;
    color:white
}

.detail-button {
    background-color: #F6F6F6;
    color: black;
    width: fit-content;
    margin-top: 10px;
    padding: 8px 18px !important;
}

.detail-button:hover {
    background-color: #FF6469;
    color:white;    
}

.detail-button-label {
    font-size: 13px;
    font-family: 'Karla', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 500;
}

@media(max-width: 1200px) {
    .detail-button-label {
        font-size: 10px;
    }
}

@media(max-width: 768px) {
    .detail-button-label {
        font-size: 9px;
    }
}

@media(max-width: 578px) {
    .detail-button-label {
        font-size: 8px;
    }
}

.text-danger {
    color: #FF6469 !important;
    padding-top: 15px;
    padding-bottom: 5px;
}

.justify-content-start {
    justify-content: flex-start !important;
    padding-bottom: 15px;
}

.btn-group-lg > .btn, .btn-lg {
    padding: .5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0px;
}