:root {
    --hh-red-color: #A9020D;
    --primary: #3c8dbc;
    --text-color: #212529;
    --menu-link-active: #fff;
    --sidebar-menu-color: #dff2f9;
    --menu-width: 236px;
    --sidebar-bg: #222d32;
    --sidebar-hover-bg: #1e282c;
    --sidebar-active-bg: #1a2226;
    --sidebar-text: #b8c7ce;
    --sidebar-header-text: #4b646f;
    --header-bg: #3c8dbc;
    --content-bg: #ecf0f5;
    --fw-thin: 100;
    --fw-extralight: 200;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    --fw-black: 900;
    --fs-normal: normal;
    --fs-italic: italic;
    --fs-italic: italic;
}

@keyframes global_loader {
    0% {
        top: 6px;
        height: 51px;
    }

    50%, 100% {
        top: 19px;
        height: 26px;
    }
}

html {
    font-family: "Poppins", serif;
}

body {
    font-family: "Poppins", serif;
    font-style: normal;
    font-size: 14px;
    background: var(--content-bg);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}

.crm_body_bg:has(.global_loader_container.d-flex) {
    overflow: hidden;
}

.global_loader_container {
    background: rgba(249, 236, 236, 0.3);
    z-index: 9999999;
}

.global_loader {
    display: inline-block;
    position: relative;
    height: 60px;
    width: 60px;
}

.global_loader.colord_bg_1 div {
    background-color: var(--hh-red-color) !important;
}

.global_loader div {
    display: inline-block;
    position: absolute;
    left: 6px;
    animation: global_loader 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
    width: 8px;
}

.global_loader div:nth-child(1) {
    left: 6px;
    animation-delay: -0.24s;
}

.global_loader div:nth-child(2) {
    left: 26px;
    animation-delay: -0.12s;
}

.global_loader div:nth-child(3) {
    left: 45px;
    animation-delay: 0s;
}

.opacity_disabled {
    opacity: 0.5;
}

.hidden {
    display: none !important;
}

.bg-danger {
    background-color: var(--hh-red-color) !important
}
.profile_info i {
    font-variation-settings: 'FILL' 1, 'wght' 200, 'GRAD' -25, 'opsz' 24;
    color: #fff;
}

.profile_info .profile_name_trigger {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 50px;
    padding: 0 10px;
    cursor: pointer;
    white-space: nowrap;
}

.profile_info:hover .profile_info_iner {
    top: 23px;
}

.profile_info .profile_info_iner {
    position: absolute;
    right: -30px;
    width: 280px;
    transform: translateY(30px) translateX(20px);
    transition: .3s;
    top: 22px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 0 !important;
    overflow: hidden;
}

.profile_info .profile_info_iner .profile_author_name {
    background: #4b9ec9 !important;
    padding: 12px 15px;
    text-align: center;
}

.profile_info .profile_info_iner .profile_author_name h5 {
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.profile_info .profile_info_iner .profile_email {
    background: #fff;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #eee;
}

.profile_info .profile_info_iner .profile_buttons {
    background: #fff;
}

.profile_info .profile_info_iner .profile_buttons .btn {
    border: 1px solid #ddd;
    background: #f4f4f4;
    color: #444;
    font-size: 12px;
    padding: 5px 10px;
}

.profile_info .profile_info_iner .profile_buttons .btn:hover {
    background: #e7e7e7;
}

.profile_info .profile_info_iner .profile_info_details a {
    color: #333;
}

.profile_info .profile_info_iner::before {
    content: none;
}

.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 i {
    font-size: 40px;
    color: var(--hh-red-color);
}

.bell_notification:hover .Menu_NOtification_Wrap {
    opacity: 1;
    visibility: visible;
}

.notification_number {
    position: absolute;
    top: -4px;
    right: -2px;
    background: #000;
    border-radius: 50%;
    height: 20px;
    width: 20px;
    color: #fff;
    font-size: 11px;
    text-align: center;
    vertical-align: middle;
    font-weight: var(--fw-bold);
    line-height: 20px;
}

.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;
}

.bootstrap-table .fixed-table-pagination > .pagination-detail {
    margin-top: 15px;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' -25, 'opsz' 24;
}

.header_iner {
    background: var(--header-bg);
    padding: 15px 30px;
    border-bottom: 0;
    z-index: 1050;
}

.modal-backdrop {
    z-index: 99999;
}

.sidebar {
    z-index: 99999;
    box-shadow: none !important;
    background-color: var(--sidebar-bg) !important;
    background: var(--sidebar-bg) !important;
    width: var(--menu-width) !important;
}

.sidebar.sidebar-dark {
    background-color: var(--sidebar-bg) !important;
}

.sidebar .logo {
    display: none !important;
}

@media (max-width: 991px) {
    .sidebar {
        background: var(--sidebar-bg) !important;
        width: 236px !important;
    }
}

/* Sidebar user panel */
.sidebar-user-panel {
    border-bottom: 1px solid #374850 !important;
    padding: 10px !important;
}

.sidebar-username {
    color: #fff;
    font-size: 14px;
    font-weight: var(--fw-medium);
}

.sidebar-user-status {
    color: var(--sidebar-text);
    font-size: 12px;
}

.sidebar-user-status span {
    margin-left: 4px;
}

/* Sidebar section headers */
.sidebar-section-header {
    color: var(--sidebar-header-text) !important;
    font-size: 11px !important;
    font-weight: var(--fw-bold) !important;
    text-transform: uppercase;
    padding: 10px 15px 5px 15px !important;
    letter-spacing: 0.05em;
    margin-top: 5px;
    pointer-events: none;
}

.sidebar-section-header a {
    display: none !important;
}

/* Sidebar menu items */
.sidebar #sidebar_menu a {
    cursor: pointer;
}

.sidebar #sidebar_menu > li > a:hover {
    background: var(--sidebar-hover-bg);
    border-radius: 0;
    color: #fff !important;
}

.sidebar #sidebar_menu > li ul {
    padding: 0px 0px 0px 0px;
    position: relative;
    margin: 0;
    background: var(--sidebar-active-bg);
}

.sidebar #sidebar_menu > li ul::before {
    content: none;
}

.sidebar #sidebar_menu > li ul li a {
    padding: 8px 5px 8px 40px !important;
    margin: 0;
    font-size: 0.9em;
    font-weight: var(--fw-regular);
    color: var(--sidebar-text) !important;
}

.sidebar #sidebar_menu > li ul li a:hover {
    color: #fff !important;
    background: var(--sidebar-hover-bg);
}

.sidebar #sidebar_menu > li ul li a.active {
    color: #fff !important;
    background: var(--sidebar-hover-bg);
    border-radius: 0;
}

.sidebar #sidebar_menu > li:not(.mm-active) > a:hover:before {
    opacity: 0;
    visibility: hidden;
}

.sidebar #sidebar_menu > li:not(.mm-active) > a::before {
    content: none;
}

.sidebar .footer_menu {
    position: absolute;
    bottom: 0;
}

.sidebar::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb {
    background-color: #4b646f;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar, body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* Sidebar arrow for expandable items */
.sidebar-arrow {
    margin-left: auto;
    font-size: 10px !important;
    transition: transform 0.3s ease;
}

.sidebar #sidebar_menu > li.mm-active > .sidebar-arrow,
.sidebar #sidebar_menu > li.mm-active > a .sidebar-arrow {
    transform: rotate(-90deg);
}

.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[type="checkbox"] {
    border-radius: .25em;
    border-color: #D0D0D0 !important;
    margin-right: 6px;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #fff !important;
}

.form-check-input {
    width: 1.5em;
    height: 1.5em;
    margin-top: 1px;
}

.form-check-label {
    font-size: 16px;
    display: inline;
}

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;
    transform: translateY(20px) translateX(20px);
}

.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: 0;
}

.sidebar #sidebar_menu > li a {
    font-size: 14px;
    font-weight: var(--fw-regular);
    padding: 10px 15px 10px 15px;
    color: var(--sidebar-text) !important;
}

.sidebar #sidebar_menu > li a .material-symbols-outlined {
    color: var(--sidebar-text);
    font-size: 1.4rem;
}

.sidebar #sidebar_menu > li a i.fa,
.sidebar #sidebar_menu > li a i.fas,
.sidebar #sidebar_menu > li a i.far {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    font-size: 14px;
    color: var(--sidebar-text);
}

.sidebar #sidebar_menu > li.mm-active > a {
    border-radius: 0;
    background: var(--sidebar-active-bg);
    font-weight: var(--fw-medium);
    color: #fff !important;
}

.sidebar #sidebar_menu > li.mm-active > a::before {
    content: none;
}

.sidebar #sidebar_menu > li.mm-active > a::after {
    right: 15px;
    color: var(--sidebar-text);
}


.dropdown-item.active, .dropdown-item:active {
    color: #fff !important;
}

.dropdown .dropdown-menu .dropdown-item.active:hover {
    background: #0d6efd !important;
}

.fixed_width {
    width: 180px;
    min-width: 180px;
}

.fixed_width > div.d-block.w-100 {
    min-width: 130px !important;
    min-width: 360px;
}

.fixed_width2 {
    min-width: 180px;
    width: 180px;
}

.fixed_width2 > div.d-block.w-100 {
    min-width: 150px !important;
}

.fixed_width250 {
    min-width: 250px;
    width: 250px;
}

.fixed_width2 > div.d-block.w-100 {
    min-width: 180px !important;
}

.double_fixed_width {
    width: 360px;
    min-width: 360px;
}

.double_fixed_width > div.d-block.w-100 {
    min-width: 360px !important;
}

.fixed-columns-right {
    height: 0px !important;
}

.accordion-item {
    background-color: #f6faff;
}

.bootstrap-table .fixed-table-pagination > .pagination-detail {
    margin-bottom: 0;
}

.bootstrap-table .btn_action .material-symbols-outlined {
    font-size: 2em;
    color: #000;
}

.data_table thead th,
.table thead th,
.bootstrap-table .table thead th,
.bootstrap-table .fixed-table-header th,
.fixed-table-header thead th,
th.bs-checkbox,
.bootstrap-table th,
.bootstrap-table thead th .th-inner {
    background: #fff !important;
    background-color: #fff !important;
    color: #444 !important;
    border-bottom: 1px solid #ddd !important;
    font-weight: 600;
    font-size: 13px;
}

.fixed-columns-right .data_table thead th, .fixed-columns-right .table thead th {
    background: transparent !important;
}

.data_table tbody tr:not(.table-secondary):not(.table-tertiary):nth-child(odd) > td,
.table tbody tr:not(.table-secondary):not(.table-tertiary):nth-child(odd) > td {
    background-color: #fff;
}

.data_table tbody tr:not(.table-secondary):not(.table-tertiary):nth-child(even) > td,
.table tbody tr:not(.table-secondary):not(.table-tertiary):nth-child(even) > td {
    background-color: #f9f9f9;
}

.table-hover > tbody > tr:hover {
    --bs-table-accent-bg: #f5f5f5;
}

.table {
    border: none;
}

.table td, .table th {
    border-top: 1px solid #f0f0f0;
    padding: 6px 10px;
    vertical-align: middle;
    font-size: 13px;
}

.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 - AdminLTE flat style */
.card_box {
    background: #fff;
    border: 1px solid #d2d6de;
    border-radius: 0;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card_box .white_box_title {
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 0;
    border-bottom: 1px solid #f4f4f4;
    position: relative;
    overflow: visible;
}

    .card_box .white_box_title h3 {
        color: #444;
        font-size: 18px;
        font-weight: 600;
    }

.card_box .open_close_collapse.collapsed .white_box_title {
    background-color: #f8f8f8 !important;
}

    .card_box .open_close_collapse.collapsed .white_box_title h3 {
        color: #444 !important;
    }

.container-fluid.sticky-top .card_box .white_box_title {
    background-color: #fff;
    padding-left: 10px;
    padding-right: 10px;
    overflow: visible;
}

.card_box .box_body {
    padding: 15px;
    margin-top: 0;
    padding-top: 15px;
    border: none;
    border-radius: 0;
}

.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 #ddd;
}

.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: 1.4;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
}

.btn_action:hover {
    opacity: 0.85;
}

.btn_action i {
    color: inherit;
}

.btn_action .btn_label {
    color: inherit;
}

.btn_action > div {
    padding: 6px 12px !important;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 0 !important;
}

.vertical_divider {
    /*width: 1px;
    height: auto;
    background: #E0E0E0;*/
    margin: 0 !important;
}

.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;*/
}

.orange_icon {
    color: #ff8c00 !important;
}

.green_bg {
    background: #498205 !important;
    color: #fff !important;
}

.red_bg {
    background: #a4262c !important;
    color: #fff !important;
}
.arancione_bg {
    background: #e9a21f !important;
    color: #fff !important;
}

.blue_bg {
    background: #0078d4 !important;
    color: #fff !important;
}

.grigio_bg {
    background: #e3be42 !important;
    color: #fff !important;
}

.giallo_bg {
    background: #FFFF00 !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;
}

.ts-wrapper {
    width: 100%;
}

.single-select .ts-control, .multiple-select .ts-control, .ts-wrapper.single .ts-control {
    /*display: block;*/
    width: 100%;
    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;
    /*transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;*/
    border-color: #D0D0D0;
    border-radius: 0;
    padding: .75rem;
}

.modal {
    z-index: 999999;
}

.fixed_height_table {
    height: 300px;
    overflow: auto;
}

.jconfirm.jconfirm-material .jconfirm-box div.jconfirm-content > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

.grey_font_color {
    color: #3C3C3C;
}

.ts-dropdown {
    margin: 0;
    box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.1);
}

.ts-dropdown .optgroup-header {
    font-weight: 700;
    font-style: italic;
}

.ts-wrapper.single.dropdown-active .ts-control {
    border-bottom: 1px solid transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.badge_custom {
    font-size: 13px;
    font-weight: 400;
}

.badge_custom_width {
    width: 80px;
    display: inline-block;
    text-align: center;
}

.nav-pills .nav-link {
    border: 1px solid var(--primary);
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
}

.googleMapsRender {
    height: 25em;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
}

.fascia_tariffa.top {
    color: #84c337;
}

.fascia_tariffa.platinum {
    color: #febf00;
}

.fascia_tariffa.gold {
    color: #ff7300;
}

.fascia_tariffa.silver {
    color: #e5221e;
}

.badge.fascia_tariffa.top {
    background: #84c337;
    color: #fff;
}

.badge.fascia_tariffa.platinum {
    background: #febf00;
    color: #fff;
}

.badge.fascia_tariffa.gold {
    background: #ff7300;
    color: #fff;
}

.badge.fascia_tariffa.silver {
    background: #e5221e;
    color: #fff;
}

.badge.fascia_tariffa.not_available {
    background: #4b4b4b;
    color: #fff;
}

#map, #mappa_dettaglio, .googleMapsRender {
    height: 25em;
    border: 1px solid #ced4da;
    border-radius: 0.2rem;
}

.pac-container {
    z-index: 2000;
}

/* Personalizzazione toggle switch */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-switch .form-check-label {
    padding-left: 0.5em;
    cursor: pointer;
}


/* prestazioni-styles */
/* Prestazioni Counter Styles */
@keyframes counterUpdate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.counter-update {
    animation: counterUpdate 0.3s ease-in-out;
}

.prestazioni-counter {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.counter-box {
    text-align: center;
}

.counter-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.counter-details {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.counter-total {
    color: #0d6efd;
    font-weight: 500;
}

.counter-direct {
    color: #198754;
    font-weight: 500;
}

.counter-indirect {
    color: #6c757d;
    font-weight: 500;
}

#totalCounter,
#directCounter,
#indirectCounter {
    display: inline-block;
    min-width: 1.5rem;
    font-weight: 600;
}

/* Prestazioni Tree Styles */
.prestazioni-tree {
    max-height: 800px;
    overflow-y: auto;
}

.categoria-gruppo {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    background-color: #fff;
}

.categoria-header {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    user-select: none;
}

.toggle-categoria {
    background: none;
    border: none;
    padding: 0.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    line-height: 0;
}

.toggle-categoria:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.toggle-categoria.toggling {
    pointer-events: none;
}

.toggle-categoria i {
    transition: transform 0.3s ease;
}

.categoria-content {
    padding: 1rem;
    overflow: hidden;
}

/* Search Container Styles */
.search-container {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
    z-index: 1000;
}

/* Table Styles */
.prestazioni-table {
    margin-bottom: 0;
}

.table-active {
    background-color: rgba(0, 123, 255, 0.05) !important;
}

.form-check-input:disabled {
    opacity: 1;
    cursor: default;
}

    .form-check-input:disabled:checked {
        background-color: var(--hh-red-color);
        border-color: var(--hh-red-color);
    }

/* Actions Container Styles */
.actions-container {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.bootstrap-table .fixed-table-container .table thead th .th-inner:has(a) {
    padding: 0;
}

.ordinamento_colonna {
    display: block;
    padding: .75rem;
    cursor: pointer;
    color: var(--text-color) !important;
}

    .ordinamento_colonna:hover {
        opacity: .75;
    }

.bootstrap-table .fixed-table-container .table thead th .th-inner {
    position: relative;
    font-weight: var(--fw-medium);
}

/* ============================================
   AdminLTE-style Theme Overrides
   ============================================ */

/* Main header / top navbar */
.main-header.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.main-header .navbar-brand img {
}

/* Push body content below fixed navbar */
body.crm_body_bg {
    padding-top: 50px;
}

/* Sidebar positioning below fixed navbar */
.sidebar {
    top: 50px !important;
    height: calc(100vh - 50px) !important;
}

/* Main content offset for fixed navbar */
.main_content.dashboard_part {
    padding-top: 0 !important;
    padding-left: var(--menu-width) !important;
    min-height: calc(100vh - 50px);
    background: var(--content-bg);
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .main_content.dashboard_part {
        padding-left: var(--menu-width) !important;
    }
}

/* Switch profilo dark theme */
.switch-profilo-wrapper {
    background: transparent;
    border-bottom: 1px solid #374850 !important;
    border-top: none !important;
}

.switch-profilo-wrapper label {
    color: var(--sidebar-header-text) !important;
}

.switch-profilo-wrapper .form-select {
    background-color: var(--sidebar-active-bg);
    border-color: #374850;
    color: var(--sidebar-text);
    font-size: 13px;
}

.switch-profilo-wrapper .form-select:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.switch-profilo-wrapper .form-select option {
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
}

/* Header elements adapted for blue background */
.main-header .bell_notification i {
    color: #fff;
}

.main-header .profile_info i {
    color: #fff;
}

.main-header .notification_number {
    background: #ff606d;
}

.main-header .header_right .header_notification_warp li > .bell_notification {
    background: transparent;
}

/* Welcome component in dark header */
.main-header .profile_info .profile_info_iner {
    top: 30px;
}

.main-header .profile_info:hover .profile_info_iner {
    top: 30px;
}

/* Sidebar menu item icon alignment */
.sidebar #sidebar_menu > li > a {
    display: flex;
    align-items: center;
    position: relative;
}

.sidebar #sidebar_menu > li > a > span:last-child {
    flex: 1;
}

/* ============================================
   AdminLTE Tabs Style
   ============================================ */
.struttura-tabs {
    border-bottom: 1px solid #ddd;
    background: #fff;
    padding: 0;
    margin: 0;
}

.struttura-tabs .nav-item {
    margin-bottom: 0;
}

.struttura-tabs .nav-link {
    border: none !important;
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;
    color: #444;
    font-size: 14px;
    font-weight: 400;
    padding: 12px 20px;
    background: transparent;
    margin: 0;
}

.struttura-tabs .nav-link:hover {
    background: #f8f8f8;
    color: #333;
    border-left-color: #ddd !important;
}

.struttura-tabs .nav-link.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary) !important;
    border-bottom: 2px solid #fff !important;
}

.tab-content {
    background: #fff;
    border: none;
    padding: 0;
}

.tab-content .tab-pane {
    border-top: 1px solid #f0f0f0;
}

/* Sidebar section header list item reset */
.sidebar #sidebar_menu > li.sidebar-section-header {
    list-style: none;
    margin: 0;
    padding: 10px 15px 5px 15px;
}

/* ============================================
   AdminLTE Table & Content Styles
   ============================================ */

/* Content box - flat AdminLTE white box */
.main_content_iner .card_box,
.main_content_iner .white_card {
    background: #fff;
    border: 1px solid #d2d6de;
    border-radius: 0;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* Bootstrap-table AdminLTE overrides */
.bootstrap-table .fixed-table-container {
    border: 1px solid #ddd;
    border-radius: 0 !important;
}

.bootstrap-table .fixed-table-header th,
.bootstrap-table .fixed-table-header thead th,
.bootstrap-table table thead th,
.bootstrap-table .table thead th {
    background: #fff !important;
    background-color: #fff !important;
    color: #444 !important;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #ddd !important;
}

.bootstrap-table .fixed-table-body td,
.bootstrap-table .table tbody td {
    border-top: 1px solid #f0f0f0;
}

.bootstrap-table .fixed-table-toolbar {
    padding: 5px 0;
}

.bootstrap-table .fixed-table-pagination {
    padding: 5px;
}

/* Force header background on all generated table headers */
thead th,
thead td {
    background-color: #fff !important;
}

/* Dashboard header title - flat style */
.dashboard_header_title h3 {
    color: #444;
    font-size: 22px;
    font-weight: 400;
}

/* Breadcrumb AdminLTE style */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--primary);
}

/* Alert banner style (for search instructions etc.) */
.alert-info-banner {
    background: #fff;
    border: 1px solid #d2d6de;
    border-top: 3px solid #d73925;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

/* Form fields in AdminLTE style - all rectangular */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea,
select,
.ts-control,
.ts-wrapper .ts-control,
.ts-wrapper.single .ts-control,
.single-select .ts-control,
.multiple-select .ts-control,
.input-group-text {
    border-radius: 0 !important;
}

.form-control {
    border: 1px solid #d2d6de;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.form-select {
    border: 1px solid #d2d6de;
}

/* Remove all rounded corners from tables and cards */
.card_box,
.card_box .white_box_title,
.card_box .box_body,
.data_table,
.data_table th,
.data_table td,
.table,
.bootstrap-table,
.bootstrap-table .fixed-table-container,
.fixed-table-toolbar,
.btn_action,
.btn {
    border-radius: 0 !important;
}

/* Label styling */
.form-label, label {
    font-weight: 600;
    font-size: 13px;
    color: #444;
}

/* Section title for results */
.section-title {
    font-size: 16px;
    color: #444;
    font-weight: 400;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

/* ============================================
   Collapsible card table sections - AdminLTE
   ============================================ */

/* Collapsible table header - flat style */
.card_box .open_close_collapse .white_box_title {
    background: #fff;
    border-bottom: 1px solid #f4f4f4;
    padding: 10px 15px;
}

.card_box .open_close_collapse .white_box_title h3 {
    color: #444 !important;
    font-size: 16px;
    font-weight: 600;
}

.card_box .open_close_collapse .white_box_title h3 .material-symbols-outlined {
    color: #444;
    font-size: 20px;
}

/* Data table - AdminLTE clean style */
.data_table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.data_table thead th {
    background: #fff !important;
    background-color: #fff !important;
    color: #444 !important;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 10px;
    border-bottom: 1px solid #ddd;
    border-right: none !important;
    white-space: nowrap;
}

.data_table thead th:last-child {
    border-right: none !important;
}

.data_table tbody td {
    padding: 6px 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    color: #333;
}

.data_table tbody tr:nth-child(odd) td {
    background-color: #fff;
}

.data_table tbody tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.data_table tbody tr:hover td {
    background-color: #f5f5f5;
}

/* Sort indicators for table columns */
.data_table th[data-sortable="true"] {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.data_table th[data-sortable="true"]::after {
    content: "\f0dc";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 11px;
}

/* Row action buttons - small colored squares */
.data_table .btn_action,
.table .btn_action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0 !important;
    margin: 1px;
    border: none;
    color: #fff !important;
    background-color: #3c8dbc;
    line-height: 1;
}

.data_table .btn_action > div,
.table .btn_action > div {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data_table .btn_action .material-symbols-outlined,
.table .btn_action .material-symbols-outlined {
    font-size: 16px !important;
    color: #fff !important;
}

.data_table .btn_action .btn_label,
.table .btn_action .btn_label {
    display: none !important;
}

/* Blue button - view */
.data_table .btn_action,
.table .btn_action {
    background-color: #3c8dbc;
}

.data_table .btn_action:hover,
.table .btn_action:hover {
    background-color: #367fa9;
    opacity: 1;
}

/* Green button - edit */
.data_table .btn_action .material-symbols-outlined.blue_icon,
.table .btn_action .material-symbols-outlined.blue_icon {
    color: #fff !important;
}

.data_table .btn_action:has(.blue_icon[style*="edit"]),
.table td .btn_action:nth-child(2),
.table td .d-block .btn_action:nth-child(2),
.data_table td .d-block .btn_action:nth-child(2) {
    background-color: #00a65a;
}

.data_table td .d-block .btn_action:nth-child(2):hover,
.table td .d-block .btn_action:nth-child(2):hover {
    background-color: #008d4c;
}

/* Red button - delete */
.data_table td .delete-form .btn_action,
.table td .delete-form .btn_action,
.data_table td .d-block .btn_action:nth-child(3),
.table td .d-block .btn_action:nth-child(3) {
    background-color: #dd4b39;
}

.data_table td .delete-form .btn_action:hover,
.table td .delete-form .btn_action:hover {
    background-color: #d73925;
}

.data_table td .d-block .btn_action .red_icon,
.table td .d-block .btn_action .red_icon {
    color: #fff !important;
}

/* Horizontal separator between filter and results (AdminLTE style) */
.filter-results-separator {
    border-top: 2px solid #d73925;
    margin: 15px 0;
}

/* Action bar buttons - AdminLTE style */
.white_box_title.reverse .btn_action > div {
    background: transparent;
    border: none;
    padding: 4px 8px !important;
}

.white_box_title.reverse .btn_action .material-symbols-outlined,
.white_box_title.reverse .btn_action i {
    color: #444;
}

.white_box_title.reverse .btn_action .btn_label {
    color: #444;
}

/* Hide expand/collapse all buttons */
.expand_multi,
.hide_multi {
    display: none !important;
}

/* Hide "Filtra risultati" modal trigger buttons (filters are now inline) */
.btn_action[data-bs-target*="filtra"],
a.btn_action:has(i:contains("filter_alt")) {
    display: none !important;
}

/* Also hide by matching the modal data-bs-target attribute */
[data-bs-target="#filtraPratiche"],
[data-bs-target="#filtraMedici"],
[data-bs-target="#filtraPrenotazioni"],
[data-bs-target="#filtraRichieste"],
[data-bs-target="#filtraPrestazioni"],
[data-bs-target="#filtraInformative"],
[data-bs-target="#filtraConvenzionamentiMedici"] {
    display: none !important;
}

/* Disable collapsible sections - always show content */
.open_close_collapse {
    pointer-events: none;
    cursor: default;
    text-decoration: none !important;
}

.open_close_collapse .white_box_title h3 .material-symbols-outlined {
    display: none !important;
}

.card_box .multi-collapse,
.card_box .collapse:not(.show) {
    display: block !important;
}

.card_box .open_close_collapse.collapsed .white_box_title {
    background-color: #fff !important;
}

.card_box .open_close_collapse.collapsed .white_box_title h3 {
    color: #444 !important;
}

/* AdminLTE button colors */
.btn-success {
    background-color: #00a65a !important;
    border-color: #008d4c !important;
    color: #fff !important;
}

.btn-success:hover {
    background-color: #008d4c !important;
}

.btn-info {
    background-color: #00c0ef !important;
    border-color: #00acd6 !important;
    color: #fff !important;
}

.btn-danger {
    background-color: #dd4b39 !important;
    border-color: #d73925 !important;
    color: #fff !important;
}

.btn-default, .btn-outline-secondary {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    color: #444;
}

.btn-default:hover, .btn-outline-secondary:hover {
    background-color: #e7e7e7;
}

/* Modal footer buttons AdminLTE */
.modal-footer .btn-danger {
    background-color: #dd4b39 !important;
}

.modal-footer .btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.ordinamento_colonna[data-ordinamento="false"]:after {
    content: "arrow_drop_down";
    font-size: 34px;
    line-height: .5;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 36;
    font-family: 'Material Symbols Outlined';
    height: 0px;
    position: absolute;
    right: 0;
    top: 15px;
}

.ordinamento_colonna[data-ordinamento="true"]:after {
    content: "arrow_drop_up";
    font-size: 34px;
    line-height: .5;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 36;
    font-family: 'Material Symbols Outlined';
    height: 0px;
    position: absolute;
    right: 0;
    top: 15px;
}

.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading.open {
    position: absolute;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 120px;
}

.esito_importa_noipa {
    overflow: auto;
    max-height: 100px;
    border: 1px solid #ebebeb;
    padding: 4px 8px;
    border-radius: 4px;
}

.tox-tinymce {
    margin-left: 0px;
    margin-right: 0px;
}

.dashboard_header .dashboard_header_title h3 {
    color: #000;
    font-weight: var(--fw-semibold);
}

.Menu_NOtification_Wrap .notification_Header {
    background: var(--hh-red-color);
}

.btn_1 {
    background-color: var(--hh-red-color) !important;
    border: 1px solid var(--hh-red-color) !important;
    color: #fff !important;
}

.dashboard_breadcrumbs a > .material-symbols-outlined {
    color: var(--hh-red-color);
    font-size: 2em;
}

.dashboard_breadcrumbs > .material-symbols-outlined {
    font-size: 16px;
}

.box_shadow {
    box-shadow: none !important;
    background: #fff;
    border-radius: 0 0 20px 20px;
}

.bootstrap-table .fixed-table-container .table thead th .asc, .bootstrap-table .fixed-table-container .table thead th .desc, .bootstrap-table .fixed-table-container .table thead th .both {
    background: none !important;
    display: flex;
    align-items: center;
}

.bootstrap-table .fixed-table-container .table thead th .th-inner.sortable.both::after {
    content: "sort";
    font-family: 'Material Symbols Outlined';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: normal;
    font-style: normal;
    font-size: 19px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -moz-font-feature-settings: 'liga';
}

.bootstrap-table .fixed-table-container .table thead th .th-inner.sortable.both.asc::after {
    content: "south";
}

.bootstrap-table .fixed-table-container .table thead th .th-inner.sortable.both.desc::after {
    content: "north";
}

.bootstrap-table .fixed-table-container .table {
    border-collapse: separate;
    border-spacing: 0;
}

.bootstrap-table .fixed-table-container .table > thead {
    display: table-header-group;
}

.bootstrap-table .fixed-table-container .table > thead th {
    line-height: 2.5em;
}

.bootstrap-table .fixed-table-container .table > tbody {
    display: table-row-group;
}

.bootstrap-table .fixed-table-container .table > tbody::before {
    content: "";
    display: table-row;
    height: 10px;
}

.bootstrap-table .fixed-table-body .table thead th:first-child,
.bootstrap-table .fixed-table-body .table tbody tr:not(.table-secondary):not(.table-tertiary) > td:first-child {
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
}

.bootstrap-table .fixed-table-body .table thead th:last-child,
.bootstrap-table > .fixed-table-body .table tbody tr:not(.table-secondary):not(.table-tertiary) > td:last-child {
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

tbody, td, tfoot, th, thead, tr {
    border: 0;
}

.bootstrap-table .fixed-table-body .table tbody tr:not(.table-secondary):not(.table-tertiary):first-child td {
    border-top: 2px solid #f6f6f6 !important;
}

.bootstrap-table .fixed-table-body .table tbody tr:not(.table-secondary):not(.table-tertiary):not(:first-child) > td:first-child {
    border-left: 2px solid #f6f6f6 !important;
    border-radius: 0;
}

.bootstrap-table .fixed-table-body .table tbody tr:not(.table-secondary):not(.table-tertiary):not(:first-child) > td:last-child {
    border-right: 2px solid #f6f6f6 !important;
    border-radius: 0;
}

.bootstrap-table .fixed-table-body .table tbody tr:not(.table-secondary):not(.table-tertiary):last-child > td {
    border-bottom: 2px solid #f6f6f6 !important;
}

.bootstrap-table .fixed-table-body .table tbody tr:not(.table-secondary):not(.table-tertiary):first-child > td:first-child {
    border-left: 2px solid #f6f6f6 !important;
    border-top: 2px solid #f6f6f6 !important;
    border-bottom-left-radius: 0;
}

.bootstrap-table .fixed-table-body .table tbody tr:not(.table-secondary):not(.table-tertiary):first-child > td:last-child {
    border-right: 2px solid #f6f6f6 !important;
    border-top: 2px solid #f6f6f6 !important;
    border-bottom-right-radius: 0;
    border-top-right-radius: 18px;
}

.bootstrap-table .fixed-table-body .table tbody tr:not(.table-secondary):not(.table-tertiary):last-child > td:first-child {
    border-left: 2px solid #f6f6f6 !important;
    border-bottom: 2px solid #f6f6f6 !important;
    border-bottom-left-radius: 18px;
}

.bootstrap-table .fixed-table-body .table tbody tr:not(.table-secondary):not(.table-tertiary):last-child > td:last-child {
    border-right: 2px solid #f6f6f6 !important;
    border-bottom: 2px solid #f6f6f6 !important;
    border-bottom-right-radius: 18px;
}

.page-item.active .page-link, .page-item.active .page-link:hover {
    background-color: var(--hh-red-color);
    border-color: var(--hh-red-color);
    color: #fff !important;
}

.page-link:hover {
    color: #fff !important;
    background-color: var(--hh-red-color);
    border-color: var(--hh-red-color);
}

.btn-secondary.dropdown-toggle {
    color: #000 !important;
    background-color: #fff !important;
    border-color: #000;
    padding: .15rem .5rem;
}

h3 {
    font-size: 1.5em;
}

.form-select, .form-control {
    border-color: #D0D0D0;
    border-radius: 0;
    padding: .75rem;
}

.control-label {
    font-size: 16px;
    margin-left: 7px;
    margin-bottom: 3px;
}

::file-selector-button {
    background: transparent !important;
}

.table > :not(caption) > * > * {
    box-shadow: none;
}

.bootstrap-table .fixed-table-container .table tbody tr.selected td {
    background-color: #d5d5d5;
}

.modal-footer .btn[type="reset"] {
    background: #F9ECEC;
    color: #000;
    font-weight: var(--fw-semibold);
    padding: 10px 20px;
    border: 1px solid var(--hh-red-color);
}

.modal-footer .btn[type="submit"], .modal-footer a.btn-primary, .modal-footer .btn_submit {
    background: var(--hh-red-color);
    color: #fff !important;
    font-weight: var(--fw-semibold);
    padding: 10px 20px;
    border: 1px solid var(--hh-red-color);
}

tr.table-secondary > td {
    background-color: #fbfbfb;
}

    tr.table-secondary > td tr.table-secondary > td {
        background-color: #000;
    }

.icon_tooltip_label {
    font-size: 18px;
    font-variation-settings: 'FILL' 1, 'wght' 200, 'GRAD' -25, 'opsz' 24;
    color: #9f9f9f;
}

.logo_mutua_details {
    margin-left: -8px;
    max-width: 100%;
    max-height: 59px;
}

.input-group-text {
    border-radius: 10px;
}

.ts-control > input {
    min-width: max-content;
    font-size: 1rem;
}

.ts-dropdown [data-selectable].option {
    font-size: 13px;
}

.red_label_info {
    color: #A9020D !important;
    font-weight: bold;
}

g[aria-labelledby^="id-"]:is([aria-labelledby*="-title"]) {
    display: none !important;
}

.input-hidden .ts-control > input {
    position: relative;
}

.hide_input {
    visibility: hidden;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
}

.form-check-input.input-validation-error {
    border-color: var(--hh-red-color) !important;
}

a.link {
    cursor: pointer;    
}

.main_table td {
    vertical-align: middle;
}

.submit_button_link {
    color: var(--hh-red-color);
    font-size: 14px;
    display: block;
    padding: 10px 0;
    font-weight: 400;
    background: transparent;
    border: 0;
}

.error_box {
    box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
    border-radius: 3rem;
    background: #FBFBFB;
    min-height: 55vh;
}

.text-right {
    text-align: right !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .counter-details {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .search-container {
        position: relative;
    }

    .actions-container {
        margin-top: 1rem;
        justify-content: center;
    }
}

/* Cross-browser compatibility */
.prestazioni-counter {
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@-webkit-keyframes counterUpdate {
    0% {
        -webkit-transform: scale(1);
    }

    50% {
        -webkit-transform: scale(1.2);
    }

    100% {
        -webkit-transform: scale(1);
    }
}

.counter-update {
    -webkit-animation: counterUpdate 0.3s ease-in-out;
    -moz-animation: counterUpdate 0.3s ease-in-out;
}


.disabled_tr {
    opacity: 0.3;
    cursor: pointer;
    pointer-events: none;
}

.pagination {
    margin-top: 1.5em;
}

.valuta_item span {
    display: block;
    min-width: 100px;
}

.disabled:not(.tom-select):not(.ts-wrapper) {
    cursor: pointer;
    pointer-events: none;
    background-color: #e9ecef;
    opacity: 1;
    border-color: #BBC1C9;
}

.tom-select.disabled .ts-control {
    color: black !important;
    opacity: 1 !important;
}

.ts-wrapper.disabled .ts-control {
    color: black !important;
    opacity: 1 !important;
    background-color: #e9ecef; /* opcional: apar�ncia de campo readonly */
    cursor: not-allowed; /* opcional: cursor visual de desabilitado */
}

/*.btn.disabled, .btn:disabled, fieldset:disabled .btn {
    background-color: transparent;
    border: none;
}*/

.main_content .main_content_iner {
    margin: 10px 15px 30px 15px;
}

/* Sticky header bar - AdminLTE flat style */
.main_content_iner > .container-fluid.sticky-top .card_box,
.main_content_iner > form > .container-fluid.sticky-top .card_box {
    border: none;
    border-bottom: 1px solid #d2d6de;
    border-radius: 0 !important;
    box-shadow: none;
    background: var(--content-bg);
}

.main_content_iner > .container-fluid.sticky-top .card_box .white_box_title,
.main_content_iner > form > .container-fluid.sticky-top .card_box .white_box_title {
    background: var(--content-bg);
    border-bottom: none;
}

.main_content_iner > .container-fluid.sticky-top .card_box .white_box_title h3,
.main_content_iner > form > .container-fluid.sticky-top .card_box .white_box_title h3 {
    color: #444;
    font-size: 22px;
    font-weight: 400;
}

.container-fluid:not(.sticky-top) .card_box .white_box_title .form-check .form-check-input {
    margin-top: 0;
    border-color: transparent !important;
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23A9020D' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input.disabled:checked[type="checkbox"] {
    background-color: #e9ecef !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.modal-header {
    padding: 1rem 2rem 0.7rem;
}

.modal-title.fs-5 {
    font-size: 1.4rem !important;
}

.modal-body {
    padding: 1rem 1rem .5rem;
}

.modal-footer {
    padding: 0 1.5rem 0.75rem 1.5rem;
    border-top: none;
}

.form-label {
    margin-bottom: .1rem;
}

.btn.opacity_disabled {
    cursor: default;
}

.tooltip-inner {
    max-width: 360px;
}

.tooltip_wrapper > .tooltip {
    z-index: 9999999;
}

#save_abbinamenti .btn_label, #Annulla_abbinamenti .btn_label, #Importa_NoiPa .btn_label, .Split_Quadrature .btn_label {
    font-size: .9rem;
}

.form-check-input[type="radio"]:checked {
    background-color: var(--hh-red-color);
    border-color: var(--hh-red-color);
}

.form-check.form-check-inline .form-check-label {
    margin-left: 4px;
}

.container-fluid:not(.sticky-top) .card_box .open_close_collapse.collapsed .white_box_title .form-check .form-check-input {
    border-color: #D0D0D0 !important;
}

.open_close_collapse.collapsed .form-check .form-check-label.text-white {
    color: #000 !important;
}

table th:not(:last-child) {
    border-right: none !important;
}

@media (max-width: 1600px) {
    body { font-size: 12px; }

    h3 { font-size: 1.2rem; }

    h5 { font-size: 1.1em; }

    .main_content .main_content_iner { margin-top: 0 !important; }

    .card_box .white_box_title.reverse { padding: 15px 40px 20px; }

    .profile_info > i, .bell_notification i { font-size: 34px; }

    .btn { font-size: .8rem; }

    .material-symbols-outlined { font-size: 21px; }

    .badge_custom { font-size: 12px; }

    .bootstrap-table .btn_action .material-symbols-outlined { font-size: 1.75rem; }

    .sidebar .logo {
        padding-bottom: 0;
    }

    .dashboard_breadcrumbs a > .material-symbols-outlined {
        font-size: 1.5rem;
    }

    .sidebar #sidebar_menu > li a {
        font-size: 0.9rem !important;
    }

    .sidebar #sidebar_menu > li ul li a {
        padding: 8px 0 8px 18px !important;
        font-size: .8rem !important;
    }

    .sidebar #sidebar_menu > li a .material-symbols-outlined {
        font-size: 1.5rem;
    }

    .dashboard_header .dashboard_header_title h3 {
        font-size: 28px;
    }

    .btn-group-sm > .btn, .btn-sm {
        font-size: .75rem;
    }

    .control-label {
        font-size: .875em;
    }

    .single-select .ts-control, .multiple-select .ts-control, .ts-wrapper.single .ts-control {
        font-size: .9rem;
        padding: .68rem;
    }

    .form-control, .form-check-label { font-size: .9rem; }
}

@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;
    }

    #idAbbinamentoTitolo .modal-dialog {
        max-width: 75vw;
    }
}

@media (max-width: 575px) {
    .details_toolbar i {
        font-size: 1em;
        line-height: 1.5;
    }
}

.EspandiTutto {
    width: 15px;
    background-image: url(/img/segnoPiu.png);
    /*background-image: url('../img/SinalPlus.png');*/
    background-repeat: no-repeat;
    background-size: 16px;
    display: inline-block;
    cursor: pointer;
}

.ScopriTutto {
    width: 15px;
    background-image: url(/img/segnoMeno.png);
    /*background-image: url('../img/SinalMenus.png');*/
    background-repeat: no-repeat;
    background-size: 16px;
    display: inline-block;
    cursor: pointer;
}

.collapseTreeView {
    width: 15px;
    background-image: url(/img/segnoPiu.png);
    /*background-image: url('../img/SinalPlus.png');*/
    background-repeat: no-repeat;
    background-size: 16px;
    display: inline-block;
    cursor: pointer;
}

.expandTreeView {
    width: 15px;
    background-image: url(/img/segnoMeno.png);
    /*background-image: url('../img/SinalMenus.png');*/
    background-repeat: no-repeat;
    background-size: 16px;
    display: inline-block;
    cursor: pointer;
}

.treeviewTreeView ul {
    font: 14px Arial, Sans-Serif;
    margin: 0px;
    padding-left: 20px;
    list-style: none;
}

.treeviewTreeView > li > a {
    font-weight: bold;
}

.NascondiRigaTreeView {
    display: none
}

.treeviewTreeView > li {
}

.treeviewTreeView li a {
    padding: 4px;
    font-size: 12px;
    display: inline-block;
    text-decoration: none;
    width: auto;
}
/*---------------------------PAINEL----------------------------------*/
.panel {
    margin-bottom: 20px;
    background-color: #fff;
    /*border: 1px solid transparent;*/
    border-radius: 4px;
    /*font-size: 1.3rem !important;*/
    -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

.panel-body {
    padding: 15px;
}

.panel-heading {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

    .panel-heading > .dropdown .dropdown-toggle {
        color: inherit;
    }

.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
    color: inherit;
}

.panel-title > a,
.panel-title > small,
.panel-title > .small,
.panel-title > small > a,
.panel-title > .small > a {
    color: inherit;
}

.panel-footer {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}

.panel-heading-decision {
    padding: 10px 15px;
    border-bottom: 1px solid transparent;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.panel-default > .panel-heading {
    text-shadow: 0px -1px 0 rgba(255,255,255, 0.3);
    font-weight: bold !important;
    color: #ffffff !important;
    font-size: 12px;
    background-color: #345d5f;
    border-color: #fd3131;
    border-width: 2px;
    padding: 5px 16px;
}

.panel-default > .panel-heading-decision {
    text-shadow: 0px -1px 0 rgba(255,255,255, 0.3);
    font-weight: bold !important;
    color: #000000 !important;
    /*font-size: 16px;*/
    background-color: #ffffff;
    border-color: #fd3131;
    border-width: 2px;
    padding: 5px 16px;
}

.panel-default {
    background-color: rgba(255, 255, 255, 0.8);
}
/*------------------------------TESTE DE BOT�O SIM / N�O-------------------------*/
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus {
    color: #fff;
    background-color: #428bca;
}

.nav-pills > li.active > a#btncollapsePrestazioni, .nav-pills > li.active > a#btncollapsePrestazioni:hover, .nav-pills > li.active > a#btncollapsePrestazioni:focus,
.nav-pills > li.active > a#btncollapsePacchetto, .nav-pills > li.active > a#btncollapsePacchetto:hover, .nav-pills > li.active > a#btncollapsePacchetto:focus{
    background-color: var(--hh-red-color);
    color: #fff !important;
}

.nav-pills > li > a {
    border-radius: 4px;
}

.nav > li > a {
    position: relative;
    padding: 10px 15px;
}

.nav-pills > li > a {
    border-radius: 4px;
}

.nav > li > a {
    position: relative;
    display: block;
    padding: 10px 15px;
}

a {
    /*color: #428bca;*/
    color: var(--hh-red-color) !important;
    text-decoration: none;
}

a {
    background: transparent;
}


/*------------------------------FIM TESTE DE BOT�O SIM / N�O-------------------------*/

/* ========================================
   FIGMA AUTH CARD - Card moderna pagine accesso
   (WI 551: portato da Gestionale.Soci/site.css righe ~2988-3090, senza modifiche)
   ======================================== */
.figma-auth-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: "Poppins", sans-serif;
}

.figma-auth-card__header {
    padding: 22px 28px 16px;
    border-bottom: 2px solid var(--hh-red-color);
    background: #fff;
}

.figma-auth-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: var(--fw-semibold);
    color: #3c3c3c;
    letter-spacing: 0.2px;
}

.figma-auth-card__subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6c6c6c;
}

.figma-auth-card__body {
    padding: 24px 28px 28px;
}

.figma-auth-card__field {
    margin-bottom: 16px;
}

.figma-auth-card__label {
    display: block;
    font-size: 12px;
    font-weight: var(--fw-medium);
    color: #3c3c3c;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.figma-auth-card__input.form-control {
    height: 42px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background: #fafafa;
    font-size: 14px;
    color: #3c3c3c;
    padding: 8px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.figma-auth-card__input.form-control:focus {
    border-color: var(--hh-red-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(169, 2, 13, 0.12);
}

.figma-auth-card__actions {
    margin-top: 22px;
}

.figma-auth-card .figma-btn--primary {
    width: 100%;
    justify-content: center;
    background: var(--hh-red-color);
    border: 1px solid var(--hh-red-color);
    color: #fff;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.3px;
}

.figma-auth-card .figma-btn--primary:hover {
    background: #8d0109;
    border-color: #8d0109;
    color: #fff;
}

.figma-auth-card__footer {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #6c6c6c;
}

.figma-auth-card__footer a {
    color: var(--hh-red-color);
    font-weight: var(--fw-medium);
    text-decoration: none;
}

.figma-auth-card__footer a:hover {
    text-decoration: underline;
}

/* ========================================
   LOGIN MATERIAL - Pagina di login in stile Angular Material
   (WI 580: replica della pagina di accesso storica: card bianca su fondo
   grigio-azzurro, input con sola sottolineatura, bottone testuale ACCEDI)
   ======================================== */
/* Le pagine di accesso (_LayoutAccessi) non hanno la navbar fissa: si annulla
   il padding-top:50px che body.crm_body_bg riserva ad essa nel portale interno,
   altrimenti resta una fascia vuota sopra la pagina di login. */
body.body-accessi {
    padding-top: 0;
}

.login-material {
    --login-material-blue: #4380b0;
    --login-material-icon: #4682a9;
    background: #d3d7dd;
    font-family: Roboto, "Helvetica Neue", "Poppins", sans-serif;
}

.login-material__container {
    width: 100%;
    max-width: 380px;
    padding: 0 12px;
}

.login-material__card {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    padding: 36px 32px 24px;
}

.login-material__logo {
    display: block;
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto 28px;
}

.login-material__claim {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #3c3c3c;
    margin: 0 0 36px;
}

/* Sottotitolo esplicativo sotto il claim (es. istruzioni in Password dimenticata):
   riduce il margine del claim che lo precede e riprende lo spazio sotto di se'. */
.login-material__claim:has(+ .login-material__hint) {
    margin-bottom: 12px;
}

.login-material__hint {
    text-align: center;
    font-size: 12.5px;
    color: #6c6c6c;
    margin: 0 0 32px;
}

.login-material__field {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.login-material__icon {
    color: var(--login-material-icon);
    font-size: 24px;
    margin-top: 4px;
}

.login-material__input-wrap {
    width: 190px;
}

.login-material__input {
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #9e9e9e;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    color: #3c3c3c;
    padding: 4px 2px 6px;
    outline: none;
    transition: border-color 0.15s ease;
}

.login-material__input::placeholder {
    color: #757575;
}

.login-material__input:focus {
    border-bottom: 2px solid var(--login-material-blue);
    padding-bottom: 5px;
}

.login-material__input.input-validation-error {
    border-bottom-color: #dc3545;
}

.login-material__actions {
    text-align: center;
    margin-top: 34px;
}

.login-material__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--login-material-blue);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.login-material__submit:hover {
    background: rgba(67, 128, 176, 0.08);
}

.login-material__submit .material-symbols-outlined {
    font-size: 20px;
    color: #8a959e;
}

.login-material__forgot {
    margin: 34px 0 0;
    text-align: left;
    font-size: 14px;
}

.login-material__forgot a {
    /* !important necessario: la regola globale del portale "a { color: var(--hh-red-color) !important }"
       (piu' sopra in questo file) vincerebbe altrimenti sul colore, rendendo il link rosso. */
    color: var(--login-material-blue) !important;
    text-decoration: none;
}

.login-material__forgot a:hover {
    text-decoration: underline;
}
