:root {
    --hh-red-color: #A9020D;
    --primary: #2D1967;
    --text-color: #212529;
    --menu-link-active: #2155cd;
    --sidebar-menu-color: #dff2f9;
    --menu-width: 300px;
    --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: #fff;
}

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: var(--hh-red-color);
}

.profile_info:hover .profile_info_iner {
    top: 23px;
}

.profile_info .profile_info_iner {
    position: absolute;
    right: -30px;
    width: 350px;
    transform: translateY(30px) translateX(20px);
    transition: .3s;
    top: 22px;
    border: 0;
}

.profile_info .profile_info_iner .profile_author_name {
    background: var(--hh-red-color) !important;
}

.profile_info .profile_info_iner::before {
    content: none;
    /*border-color: transparent transparent var(--hh-red-color) 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 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: #fff;
    padding: 15px 30px;
    border-bottom: 0;
    z-index: 1050;
}

.modal-backdrop {
    z-index: 99999;
}

.sidebar {
    z-index: 99999;
    box-shadow: 0 0 50px rgba(183, 183, 183, 0.25);
}

.sidebar #sidebar_menu a {
    cursor: pointer;
}

.sidebar #sidebar_menu > li > a:hover {
    background: #f6f6f6;
    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(--hh-red-color);
    position: absolute;
    left: 8px;
    border-radius: 8px;
}

.sidebar #sidebar_menu > li ul li a {
    padding: 10px 0 10px 20px !important;
    margin: 5px 0;
    font-size: 1em;
    font-weight: var(--fw-regular);
}

.sidebar #sidebar_menu > li ul li a:hover {
    color: var(--hh-red-color) !important;
}

.sidebar #sidebar_menu > li ul li a.active {
    color: var(--menu-link-active);
    background: #f6f6f6;
    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: var(--hh-red-color);
    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[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: white; /*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: 10px;
}

.sidebar #sidebar_menu > li a {
    font-size: 1rem;
    font-weight: var(--fw-regular);
    padding: 15px 25px 15px 15px;
    color: #000 !important;
}

.sidebar #sidebar_menu > li a .material-symbols-outlined {
    color: var(--hh-red-color);
    font-size: 1.8rem;
}

.sidebar #sidebar_menu > li.mm-active > a {
    border-radius: 6px 0 0 6px;
    background: #f6f6f6;
    font-weight: var(--fw-medium);
}

.sidebar #sidebar_menu > li.mm-active > a::before {
    left: -10px;
    border-radius: 0 8px 8px 0;
    background: var(--hh-red-color);
}

.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;
    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 {
    background: #F9ECEC;
    color: #000;
}

.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: #ffffff;
}

.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: #f6f6f6;
}

.table-hover > tbody > tr:hover {
    --bs-table-accent-bg: #e1e1e1;
}

.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-radius: 20px;
    position: relative;
    overflow: hidden;
}

    .card_box .white_box_title h3 {
        color: #333;
    }

.card_box .open_close_collapse.collapsed .white_box_title {
    background-color: #f6f6f6 !important;
}

    .card_box .open_close_collapse.collapsed .white_box_title h3 {
        color: #000 !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: 20px 40px;
    margin-top: -30px;
    padding-top: 50px;
    border: 1px solid #E6E6E6;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.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 #c4c4c4;
}

.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.1rem;
}

.btn_action:hover {
    /*background: #FAFAFA;*/
}

.btn_action i {
    color: #000;
}

.btn_action .btn_label {
    color: #585E6A;
}

.btn_action > div {
    padding: .5em 1em !important;
    background: #eef0f3;
    border: 1px solid #9da0aa;
    border-radius: 0 !important;
}

.btn_action:hover > div {
    background: #dfe3e8;
}

.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);
}

.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;
}

textarea, textarea.form-control {
    border-radius: 0;
}

.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: 0;
}

.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 30px 30px 30px;
}

.main_content_iner > .container-fluid.sticky-top .card_box, .main_content_iner > form > .container-fluid.sticky-top .card_box {
    border-bottom: 1px solid #D0D0D0;
    border-radius: 0 !important;
}

.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(--hh-red-color) !important;
    border-color: var(--hh-red-color) !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: 1px solid white !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-------------------------*/

/* ============================================
   AREA RISERVATA - CORRELATA PORTAL STYLES
   Figma: #1a217c blue, #f2f2f2 header bg
   ============================================ */

/* Google Font Cagliostro è caricato via <link> nel _Layout.cshtml
   (gli @import devono stare in cima al file CSS, qui non funzionerebbero) */

/* --- Page wrapper (blue border from Figma) --- */
body.ar-mode {
    border: 10px solid #1a217c;
    min-height: 100vh;
}

/* --- Header --- */
.ar-header {
    background: #f2f2f2;
    border-bottom: 1px solid #878787;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    min-height: 141px;
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 100000;
}

.ar-header-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.ar-header-left .ar-mba-logo {
    height: 100px;
    width: auto;
}

.ar-header-left .ar-fondo-logo {
    height: 80px;
    width: auto;
}

.ar-header-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 60px;
}

.ar-header-center .ar-title {
    font-family: "Cagliostro", "Poppins", sans-serif;
    font-weight: 400;
    font-size: 40px;
    color: #1e2269;
    line-height: 1;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.ar-header-center .ar-subtitle {
    color: #1e2269;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 15px;
    margin: 0;
}

.ar-header-right {
    margin-left: auto;
    text-align: right;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #000;
    white-space: nowrap;
}

.ar-header-right .ar-esci-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.ar-header-right .ar-esci {
    color: #878787 !important;
    text-decoration: none !important;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.ar-header-right .ar-esci:hover {
    text-decoration: underline !important;
}

/* --- Sidebar Correlata --- */
.ar-sidebar {
    width: 218px;
    min-width: 218px;
    background: #fff;
    border-right: 2px solid #ececec;
    overflow-y: auto;
    position: fixed;
    top: 151px; /* 141px header + 10px body border */
    left: 10px; /* body border */
    bottom: 10px; /* body border */
    z-index: 9999;
}

body.ar-mode {
    overflow-x: hidden;
}

/* Logo IL MILIONE (Figma: 184x64 at x=19, y=24) */
.ar-sidebar-logos {
    text-align: center;
    padding: 10px 17px 0;
}

.ar-sidebar-logos img {
    max-width: 184px;
    height: auto;
    display: inline-block;
}

.ar-sidebar-logos .ar-logo-milione {
    max-width: 184px;
    height: auto;
}

/* Logo GrandVision Salmoiraghi & Viganò (Figma: 189x69 at x=14, y=107) */
.ar-sidebar-logos-secondary {
    padding: 8px 14px 15px;
}

.ar-sidebar-logos .ar-logo-finale {
    max-width: 189px;
    height: auto;
}

/* Sidebar Navigation (Figma: gradient #f0f1f3 to #e7e7e7, each 205x41 with 8px gap) */
.ar-sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ar-sidebar-nav > li {
    border: none;
}

.ar-sidebar-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 41px;
    padding: 5px 10px;
    background: linear-gradient(to bottom, #f0f1f3, #e7e7e7);
    border: 1px solid #dcdcdc;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #3c3c3c !important;
    text-decoration: none !important;
    transition: background 0.15s;
}

.ar-sidebar-nav > li > a::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-right: 2px solid #878787;
    border-bottom: 2px solid #878787;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.ar-sidebar-nav > li.active > a::after {
    transform: rotate(-135deg);
    border-color: #1a217c;
}

.ar-sidebar-nav > li > a:hover {
    background: linear-gradient(to bottom, #e8e9eb, #dcdcdc);
}

.ar-sidebar-nav > li.active > a {
    background: linear-gradient(to bottom, #e0e2ea, #c8cad0);
    font-weight: 600;
    color: #1a217c !important;
}

/* Sidebar submenu */
.ar-sidebar-nav > li > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background: #f8f8f8;
}

.ar-sidebar-nav > li.active > ul {
    display: block;
}

.ar-sidebar-nav > li > ul > li > a {
    display: block;
    padding: 7px 15px 7px 30px;
    font-size: 12px;
    color: #3c3c3c !important;
    text-decoration: none !important;
}

.ar-sidebar-nav > li > ul > li > a:hover {
    background: #e0e0e0;
}

/* --- Main Content Area --- */
.ar-wrapper {
    display: flex;
    height: calc(100vh - 161px); /* viewport - (header 141 + 10+10 body border) */
    padding-top: 141px; /* space for fixed header */
}

.ar-main-content {
    margin-left: 218px;
    flex: 1;
    padding: 12px 20px;
    background: #fff;
    height: calc(100vh - 161px);
    overflow-y: auto;
    overflow-x: hidden;
}

.ar-main-content > .ar-welcome,
.ar-main-content > .row {
    max-width: 1000px;
}

/* Prevent body scroll: page must be fixed */
body.ar-mode {
    overflow: hidden;
}

/* --- Home Page Styles --- */
.ar-welcome {
    margin-bottom: 8px;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ar-welcome-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.ar-welcome h2 {
    color: #1a217c;
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    padding: 6px 0;
}

.ar-welcome .ar-welcome-text {
    font-weight: 600;
}

/* Fieldset boxes (compact: fit on a fixed non-scrolling page) */
.ar-fieldset {
    border: 2px solid #890000;
    border-radius: 0;
    padding: 8px 12px;
    margin-bottom: 10px;
    position: relative;
    background: #fff;
    height: 100%;
}

.ar-fieldset legend {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #890000;
    background: #fff;
    padding: 0 6px;
    width: auto;
    margin-bottom: 5px;
    float: none;
}

.ar-fieldset.red-border {
    border-color: #890000;
}

.ar-fieldset.red-border legend {
    color: #890000;
}

.ar-fieldset.blue-border {
    border-color: #1a217c;
}

.ar-fieldset.blue-border legend {
    color: #1a217c;
}

.ar-fieldset .ar-fieldset-title {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 6px;
}

.ar-fieldset.red-border .ar-fieldset-title {
    color: #890000;
}

.ar-fieldset.blue-border .ar-fieldset-title {
    color: #1a217c;
}

.ar-fieldset .ar-box-title {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 5px;
}

.ar-fieldset .ar-box-title.text-red {
    color: #890000;
}

.ar-fieldset ul {
    padding-left: 18px;
    margin-bottom: 4px;
}

.ar-fieldset ul li {
    font-size: 11px;
    color: #3c3c3c;
    margin-bottom: 1px;
}

.ar-fieldset ul li a {
    color: #890000 !important;
    font-size: 11px;
}

.ar-fieldset p {
    font-size: 11px;
    color: #3c3c3c;
    margin-bottom: 3px;
}

.ar-fieldset .ar-contact {
    font-size: 11px;
    margin-bottom: 2px;
}

.ar-fieldset .ar-contact .ar-phone {
    color: #890000;
    font-weight: 700;
}

/* Lighter border variant for secondary fieldsets */
.ar-fieldset.light-border {
    border-color: #dcdcdc;
    border-width: 1px;
}

.ar-fieldset.light-border legend {
    color: #3c3c3c;
}

/* Panel style for secondary boxes (Figma: gray background, title inside box) */
.ar-panel {
    background: #f2f2f2;
    border: 1px solid #dcdcdc;
    border-radius: 0;
    margin-bottom: 10px;
    overflow: hidden;
    height: 100%;
}

.ar-panel-header {
    background: #e7e7e7;
    padding: 4px 10px;
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #3c3c3c;
    border-bottom: 1px solid #dcdcdc;
}

.ar-panel-body {
    padding: 8px 12px;
    background: #f2f2f2;
    font-size: 11px;
}

/* Position box */
.ar-position-data {
    font-size: 13px;
}

.ar-position-data h5 {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #890000;
    text-decoration: underline;
}

.ar-position-data h5 a {
    color: #890000 !important;
}

.ar-position-data table td {
    padding: 3px 10px 3px 0;
    font-size: 12px;
    color: #3c3c3c;
}

.ar-position-data table td:first-child {
    font-weight: 600;
}

.ar-position-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ar-position-icon {
    font-size: 28px;
    color: #3c3c3c;
}

.ar-position-title .ar-position-link {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3c3c3c !important;
    text-decoration: underline;
}

.ar-position-ragsoc {
    margin-left: 36px;
}

.ar-position-ragsoc a {
    color: #890000 !important;
    font-weight: 600;
    text-decoration: underline;
}

.ar-position-data table {
    margin-left: 36px;
}

.ar-position-data .stato-valido {
    color: #1ea500;
    font-weight: 600;
}

.ar-position-data .stato-cessato {
    color: #890000;
    font-weight: 600;
}

.ar-position-link-anag a {
    color: #890000 !important;
    font-weight: 600;
    text-decoration: underline;
    font-size: 12px;
}

/* Communications box */
.ar-comunicazioni h6 {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3c3c3c;
    margin-bottom: 5px;
}

.ar-comunicazioni ul {
    margin-top: 5px;
}

.ar-comunicazioni ul li {
    font-size: 12px;
}

.ar-comunicazioni ul li a {
    color: #890000 !important;
    text-decoration: underline !important;
}

.ar-comunicazioni .ar-doc-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 3px;
    vertical-align: middle;
    color: #890000;
}

.ar-comunicazioni .ar-all-docs {
    text-align: right;
    margin-top: 10px;
}

.ar-comunicazioni .ar-all-docs a {
    font-size: 12px;
    color: #890000 !important;
    text-decoration: underline !important;
}

/* Bottom table (compact) */
.ar-table {
    width: 100%;
    font-size: 11px;
    border-collapse: collapse;
}

.ar-table thead th {
    background: #f2f2f2;
    border: 1px solid #ccc;
    padding: 3px 6px;
    font-weight: 600;
    font-size: 10px;
    color: #3c3c3c;
    text-align: left;
}

.ar-table tbody td {
    border: 1px solid #ccc;
    padding: 3px 6px;
    font-size: 10px;
    color: #3c3c3c;
}

/* Override existing layout styles for correlata mode */
body.ar-mode .sidebar {
    display: none !important;
}

body.ar-mode .main_content.dashboard_part {
    margin-left: 0 !important;
    padding: 0 !important;
    min-height: auto !important;
}

body.ar-mode .main_content_iner {
    padding: 0 !important;
}

body.ar-mode .header_iner {
    display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .ar-header-left .ar-fondo-logo {
        height: 70px;
    }

    .ar-header-center .ar-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .ar-header {
        padding: 15px 20px;
        min-height: 100px;
    }

    .ar-header-left {
        gap: 15px;
    }

    .ar-header-left .ar-mba-logo {
        height: 60px;
    }

    .ar-header-left .ar-fondo-logo {
        height: 55px;
    }

    .ar-header-center {
        margin-left: 20px;
    }

    .ar-header-center .ar-title {
        font-size: 32px;
    }

    .ar-header-center .ar-subtitle {
        font-size: 16px;
    }

    .ar-sidebar {
        width: 180px;
        min-width: 180px;
    }

    .ar-main-content {
        margin-left: 180px;
    }
}

@media (max-width: 576px) {
    .ar-header {
        flex-wrap: wrap;
        padding: 10px;
    }

    .ar-header-left .ar-fondo-logo {
        display: none;
    }

    .ar-header-center {
        margin-left: 0;
        margin-top: 10px;
    }

    .ar-header-center .ar-title {
        font-size: 28px;
    }

    .ar-sidebar {
        display: none;
    }

    .ar-main-content {
        margin-left: 0;
    }
}

/* ============================================================================
   ADESIONI - Stile griglia e filtri inline
   ============================================================================ */

.adesioni-filters {
    padding: 8px 10px;
    font-size: 12px;
    background: #fff;
    border-bottom: 1px solid #9da0aa;
}

.adesioni-filter-label {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    margin-bottom: 0;
    color: #333;
    border-radius: 0;
}

.adesioni-filter-select {
    font-size: 12px;
    height: 26px;
    padding: 1px 24px 1px 6px;
    width: auto;
    min-width: 100px;
    max-width: 180px;
}

.adesioni-filter-input {
    font-size: 12px;
    height: 26px;
    padding: 1px 6px;
}

.adesioni-btn {
    font-size: 12px;
    padding: 2px 14px;
    height: 26px;
    line-height: 1.4;
}

.adesioni-filters .form-check {
    min-height: auto;
}

.adesioni-filters .form-check-input {
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

.adesioni-filters .form-check-label {
    font-size: 11px;
    line-height: 1.4;
}

.adesioni-contratti-header {
    background: #eef0f3;
    border: 1px solid #9da0aa;
    border-bottom: none;
    padding: 4px 0;
    font-size: 13px;
    color: #333;
}

.adesioni-grid-wrapper {
    border: 1px solid #9da0aa;
    position: relative;
}

.adesioni-grouping-area {
    background: #eef0f3;
    border-bottom: 1px solid #9da0aa;
    padding: 6px 12px;
    font-size: 11px;
    color: #9da0aa;
    font-style: italic;
}

.adesioni-export-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-bottom: 1px solid #9da0aa;
    background: #fff;
}

.adesioni-export-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    text-decoration: none;
}

.adesioni-export-icon:hover {
    opacity: 0.7;
}

.adesioni-grid-wrapper .bootstrap-table {
    margin-bottom: 0;
}

.adesioni-grid-wrapper .bootstrap-table .fixed-table-container {
    border: none;
}

/* Reset bordi arrotondati: tabella lineare */
.adesioni-grid-wrapper .bootstrap-table .fixed-table-container .table {
    border-collapse: collapse;
    border-spacing: 0;
}

.adesioni-grid-wrapper .bootstrap-table .fixed-table-container .table > tbody::before {
    display: none;
}

.adesioni-grid-wrapper .bootstrap-table .fixed-table-body .table thead th:first-child,
.adesioni-grid-wrapper .bootstrap-table .fixed-table-body .table tbody tr > td:first-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.adesioni-grid-wrapper .bootstrap-table .fixed-table-body .table thead th:last-child,
.adesioni-grid-wrapper .bootstrap-table .fixed-table-body .table tbody tr > td:last-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.adesioni-grid-wrapper .bootstrap-table .fixed-table-body .table tbody tr:first-child > td:first-child {
    border-top-left-radius: 0 !important;
}

.adesioni-grid-wrapper .bootstrap-table .fixed-table-body .table tbody tr:first-child > td:last-child {
    border-top-right-radius: 0 !important;
}

.adesioni-grid-wrapper .bootstrap-table .fixed-table-body .table tbody tr:last-child > td:first-child {
    border-bottom-left-radius: 0 !important;
}

.adesioni-grid-wrapper .bootstrap-table .fixed-table-body .table tbody tr:last-child > td:last-child {
    border-bottom-right-radius: 0 !important;
}

.adesioni-table thead th {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 6px;
    white-space: nowrap;
    vertical-align: middle;
    background: #eef0f3 !important;
    color: #333;
    border: 1px solid #9da0aa !important;
    border-radius: 0 !important;
}

.adesioni-table tbody td {
    font-size: 11px;
    padding: 3px 6px;
    vertical-align: middle;
    border: 1px solid #9da0aa !important;
    border-radius: 0 !important;
}

.adesioni-table tfoot td {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    vertical-align: middle;
    background: #eef0f3 !important;
    color: #333;
    border: 1px solid #9da0aa !important;
    border-radius: 0 !important;
}

/* Riga di filtri per colonna (come il filter row della griglia del vecchio portale) */
.adesioni-table .filtri-colonna th {
    padding: 2px 4px;
    background: #f7f8fa !important;
    border: 1px solid #9da0aa !important;
    /* separatore grigio tra la riga dei filtri e la prima riga di dati */
    border-bottom: 4px solid #9da0aa !important;
}

.adesioni-table .filtri-colonna input {
    font-size: 11px;
    min-width: 60px;
    height: 22px;
    padding: 1px 4px;
    border-radius: 0;
}

/* Footer dei totali generato da bootstrap-table nelle griglie del Dettaglio statistiche */
#vistaDettaglioContent .fixed-table-footer th {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 6px;
    background: #eef0f3;
    color: #333;
    border: 1px solid #9da0aa;
}

.adesioni-table .badge_custom {
    font-size: 10px;
    padding: 2px 6px;
}

.adesioni-grid-wrapper .fixed-table-pagination {
    padding: 4px 8px;
    font-size: 11px;
    border-top: 1px solid #9da0aa;
}

.adesioni-grid-wrapper .fixed-table-pagination .pagination {
    margin: 0;
}

.adesioni-grid-wrapper .fixed-table-toolbar {
    display: none;
}

.adesioni-grid-wrapper .bootstrap-table .fixed-table-pagination > .pagination-detail {
    margin-top: 4px;
    margin-bottom: 4px;
}

.adesioni-grid-wrapper .bootstrap-table .fixed-table-pagination > .pagination {
    margin-top: 4px;
    margin-bottom: 4px;
}

/* Sezioni profilo stile piatto/lineare */
.card_box.flat-section {
    box-shadow: none !important;
    border: 1px solid #9da0aa;
    border-radius: 0 !important;
    background: #fff;
}

.card_box.flat-section .white_box_title {
    background-color: #eef0f3 !important;
    border-radius: 0 !important;
    padding: 8px 16px;
}

.card_box.flat-section .white_box_title h3 {
    color: #333 !important;
    font-size: 14px;
    font-weight: 600;
}

.card_box.flat-section .white_box_title .badge {
    font-size: 11px;
}

.card_box.flat-section .box_body {
    border-radius: 0 !important;
    border-top: 1px solid #9da0aa;
    margin-top: 0;
    padding: 16px;
    padding-top: 16px;
}

.card_box.flat-section .box_body h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #9da0aa;
    padding-bottom: 4px;
}

.card_box.flat-section .field_wrapper small {
    font-size: 11px;
    color: #9da0aa;
}

.card_box.flat-section .field_wrapper h5 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0;
}

.card_box.flat-section .form-check-label {
    font-size: 12px;
}

.card_box.flat-section .open_close_collapse .white_box_title {
    background-color: #eef0f3 !important;
}

.card_box.flat-section .open_close_collapse.collapsed .white_box_title {
    background-color: #eef0f3 !important;
}

.card_box.flat-section .open_close_collapse.collapsed .white_box_title h3 {
    color: #333 !important;
}

/* ============================================================================
   Sezioni piatte (titolo + tabella) senza card_box wrapper
   coerenti con .adesioni-table della lista adesioni.
   ============================================================================ */
.flat-section-wrapper .flat-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #eef0f3;
    border: 1px solid #9da0aa;
    border-bottom: none;
    padding: 6px 10px;
    margin: 0;
}

.flat-section-wrapper .flat-section-body {
    border: 1px solid #9da0aa;
    border-top: none;
    background: #fff;
    padding: 16px;
}

.flat-section-wrapper .bootstrap-table,
.flat-section-wrapper table.data_table {
    margin-bottom: 0;
}

.flat-section-wrapper .bootstrap-table .fixed-table-container {
    border: 1px solid #9da0aa;
    border-radius: 0 !important;
}

.flat-section-wrapper .flat-section-title + .bootstrap-table .fixed-table-container {
    border-top: none;
}

.flat-section-wrapper table.data_table {
    border: 1px solid #9da0aa;
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin: 0;
}

.flat-section-wrapper .flat-section-title + table.data_table {
    border-top: none;
}

.flat-section-wrapper .bootstrap-table .fixed-table-container .table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin: 0;
}

.flat-section-wrapper .bootstrap-table .fixed-table-body .table thead th,
.flat-section-wrapper table.data_table thead th,
.flat-section-wrapper .bootstrap-table thead th {
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 6px !important;
    white-space: nowrap;
    vertical-align: middle;
    background: #eef0f3 !important;
    color: #333 !important;
    border: 1px solid #9da0aa !important;
    border-radius: 0 !important;
}

.flat-section-wrapper .bootstrap-table .fixed-table-body .table tbody td,
.flat-section-wrapper table.data_table tbody td,
.flat-section-wrapper .bootstrap-table tbody td {
    font-size: 11px !important;
    padding: 3px 6px !important;
    vertical-align: middle;
    border: 1px solid #9da0aa !important;
    border-radius: 0 !important;
    background-color: #fff !important;
}

.flat-section-wrapper .bootstrap-table .fixed-table-body .table tbody tr:nth-child(even) td,
.flat-section-wrapper table.data_table tbody tr:nth-child(even) td,
.flat-section-wrapper .bootstrap-table tbody tr:nth-child(even) td {
    background-color: #f6f6f6 !important;
}

.flat-section-wrapper .bootstrap-table .fixed-table-pagination {
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid #9da0aa;
    border-top: none;
}

.flat-section-wrapper .bootstrap-table .fixed-table-toolbar {
    display: none;
}

/* Pagination: stile piatto/lineare (coerente con tabelle flat) */
.adesioni-grid-wrapper .fixed-table-pagination .pagination,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .pagination {
    font-size: 11px;
    gap: 0;
}

.adesioni-grid-wrapper .fixed-table-pagination .pagination .page-item,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .pagination .page-item {
    margin: 0;
}

.adesioni-grid-wrapper .fixed-table-pagination .pagination .page-link,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .pagination .page-link {
    font-size: 11px;
    padding: 2px 8px;
    min-width: 24px;
    line-height: 1.4;
    color: #333 !important;
    background-color: #fff;
    border: 1px solid #9da0aa;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-left: -1px;
}

.adesioni-grid-wrapper .fixed-table-pagination .pagination .page-item:first-child .page-link,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .pagination .page-item:first-child .page-link {
    margin-left: 0;
}

.adesioni-grid-wrapper .fixed-table-pagination .pagination .page-link:hover,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .pagination .page-link:hover {
    background-color: #eef0f3;
    color: #000 !important;
    border-color: #9da0aa;
}

.adesioni-grid-wrapper .fixed-table-pagination .pagination .page-link:focus,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .pagination .page-link:focus {
    box-shadow: none !important;
    outline: none;
}

.adesioni-grid-wrapper .fixed-table-pagination .pagination .page-item.active .page-link,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .pagination .page-item.active .page-link {
    background-color: #d6d9de !important;
    color: #000 !important;
    border-color: #9da0aa !important;
    font-weight: 600;
}

.adesioni-grid-wrapper .fixed-table-pagination .pagination .page-item.disabled .page-link,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .pagination .page-item.disabled .page-link {
    color: #9da0aa !important;
    background-color: #f6f6f6;
    border-color: #9da0aa;
}

/* Dropdown "righe per pagina" */
.adesioni-grid-wrapper .fixed-table-pagination .page-list .btn,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .page-list .btn {
    font-size: 11px;
    padding: 2px 8px;
    color: #333;
    background-color: #fff;
    border: 1px solid #9da0aa;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.adesioni-grid-wrapper .fixed-table-pagination .page-list .dropdown-menu,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .page-list .dropdown-menu {
    font-size: 11px;
    border: 1px solid #9da0aa;
    border-radius: 0 !important;
    box-shadow: none;
    padding: 0;
}

.adesioni-grid-wrapper .fixed-table-pagination .page-list .dropdown-item,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .page-list .dropdown-item {
    font-size: 11px;
    padding: 3px 10px;
    color: #333;
}

.adesioni-grid-wrapper .fixed-table-pagination .page-list .dropdown-item.active,
.adesioni-grid-wrapper .fixed-table-pagination .page-list .dropdown-item:active,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .page-list .dropdown-item.active,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .page-list .dropdown-item:active {
    background-color: #d6d9de;
    color: #000;
}

.adesioni-grid-wrapper .fixed-table-pagination .page-list .dropdown-item:hover,
.flat-section-wrapper .bootstrap-table .fixed-table-pagination .page-list .dropdown-item:hover {
    background-color: #eef0f3;
    color: #000;
}

/* ============================================================================
   TEMA HEALTH ITALIA (replica vecchio portale promotori)
   Override del tema "Correlata" blu: cornice rossa, header compatto,
   sidebar stretta e menu principale a tile rosse.
   ============================================================================ */

:root {
    --hi-red: #be3f3f;
    --hi-red-dark: #a23434;
    --hi-border: #d9d9d9;
}

/* Cornice pagina rossa, più sottile del tema blu */
body.ar-mode {
    border: 4px solid var(--hi-red);
}

/* Header compatto: logo Health Italia + titolo pagina + utente in rosso */
.ar-header {
    top: 4px;
    left: 4px;
    right: 4px;
    min-height: 90px;
    padding: 10px 25px;
    background: #f4f4f4;
    border-bottom: 1px solid #c9c9c9;
}

.ar-header-left .ar-hi-logo {
    height: 70px;
    width: auto;
}

.ar-header-center {
    margin-left: 60px;
}

.ar-header-center .ar-subtitle {
    font-size: 16px;
    color: var(--hi-red);
}

.ar-header-right {
    color: var(--hi-red);
    font-size: 12px;
}

.ar-header-right .ar-esci {
    color: var(--hi-red) !important;
    text-decoration: underline !important;
}

/* Sidebar stretta agganciata sotto l'header compatto */
.ar-sidebar {
    top: 94px; /* 90px header + 4px cornice */
    left: 4px;
    bottom: 4px;
    width: 170px;
    min-width: 170px;
    padding-top: 8px;
}

.ar-wrapper {
    padding-top: 90px;
    height: calc(100vh - 98px); /* 90px header + 8px cornici */
}

.ar-main-content {
    margin-left: 170px;
    height: calc(100vh - 98px);
    padding: 15px 30px;
}

/* Accenti sidebar in rosso al posto del blu */
.ar-sidebar-nav > li.active > a {
    color: var(--hi-red) !important;
}

.ar-sidebar-nav > li.active > a::after {
    border-color: var(--hi-red);
}

/* Sezione "Generale": voci con icona grande centrata (Sommario, Organigramma) */
.ar-sidebar-nav > li > ul.ar-side-icons {
    background: #fff;
    padding: 6px 0;
}

.ar-sidebar-nav > li > ul.ar-side-icons > li > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px;
    font-size: 11px;
    color: #3c3c3c !important;
    text-decoration: none !important;
    border: 1px solid transparent;
}

.ar-sidebar-nav > li > ul.ar-side-icons > li > a .material-symbols-outlined {
    font-size: 30px;
    color: var(--hi-red);
}

.ar-sidebar-nav > li > ul.ar-side-icons > li.active > a,
.ar-sidebar-nav > li > ul.ar-side-icons > li > a:hover {
    background: #ececec;
    border-color: #dcdcdc;
}

/* --- Menu principale a tile --- */
.hi-menu-title {
    color: var(--hi-red);
    font-family: "Poppins", sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin: 8px 0 10px;
}

.hi-menu-sub {
    color: var(--hi-red);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.hi-sep {
    border: 0;
    border-top: 1px solid var(--hi-border);
    margin: 16px 0;
    opacity: 1;
}

.hi-section-title {
    color: var(--hi-red);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 14px;
}

.hi-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hi-tile {
    width: 118px;
    height: 118px;
    background: var(--hi-red);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff !important;
    text-decoration: none !important;
    transition: background 0.15s ease, transform 0.15s ease;
}

.hi-tile .material-symbols-outlined {
    font-size: 46px;
}

.hi-tile-label {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    padding: 0 6px;
}

.hi-tile:hover {
    background: var(--hi-red-dark);
    transform: translateY(-2px);
}

.hi-tile.disabled {
    opacity: 0.55;
    cursor: default;
}

.hi-tile.disabled:hover {
    background: var(--hi-red);
    transform: none;
}

/* ========================================
   FIGMA BTN - base per il pulsante icona+testo usato nelle pagine di accesso
   (WI 551: portato da Gestionale.Soci/site.css, classe base assente in questo portale;
   .figma-auth-card .figma-btn--primary sotto la richiede per l'allineamento icona/testo
   e per il centraggio flex del pulsante a larghezza piena)
   ======================================== */
.figma-btn {
    background: linear-gradient(to bottom, #f0f1f3, #e7e7e7);
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    color: #3c3c3c;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: var(--fw-medium);
    padding: 6px 16px;
    display: inline-flex;
    align-items: center;
}

.figma-btn:hover {
    background: linear-gradient(to bottom, #e8e9eb, #dcdcdc);
    color: #3c3c3c;
}

.figma-btn .material-symbols-outlined {
    font-size: 18px;
}

/* ========================================
   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;
}

/* ========================================
   VARIANTI FIGMA AUTH CARD - login a due riquadri (WI 582)
   Portate da Gestionale.Soci/site.css (righe ~3092-3219 e ~3341-3402, senza
   modifiche) per replicare i riquadri classici dell'Area Riservata: card
   "Accesso al sistema" con form e illustrazione, card invito "Registrazione".
   ======================================== */

/* Variante invito: card affiancata al login (pagina di login a due riquadri).
   Testo-link a sinistra e illustrazione a destra, come i riquadri della vecchia Area Riservata. */
.figma-auth-card--invito {
    display: flex;
    flex-direction: column;
}

.figma-auth-card--invito .figma-auth-card__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figma-auth-card__invito-link {
    display: flex;
    align-items: center;
    gap: 32px;
    text-decoration: none;
}

.figma-auth-card__invito-testo {
    font-size: 16px;
    font-weight: var(--fw-semibold);
    color: #498205;
    text-decoration: underline;
    line-height: 2;
}

.figma-auth-card__invito-link:hover .figma-auth-card__invito-testo {
    color: #3a6a04;
}

/* Illustrazione: omino con matita, composta con due icone sovrapposte */
.figma-auth-card__invito-icona {
    position: relative;
    display: inline-block;
    width: 96px;
    height: 96px;
}

.figma-auth-card__invito-icona-persona {
    font-size: 96px;
    color: #5b9bd5;
}

.figma-auth-card__invito-icona-matita {
    position: absolute;
    right: -8px;
    bottom: 0;
    font-size: 42px;
    color: #e9a21f;
}

@media (max-width: 575.98px) {
    .figma-auth-card__invito-link {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Card di accesso: form a sinistra e illustrazione a destra, come il riquadro classico */
.figma-auth-card__accesso {
    display: flex;
    align-items: center;
    gap: 28px;
}

.figma-auth-card__accesso-form {
    flex: 1;
    min-width: 0;
}

.figma-auth-card__entra {
    padding: 8px 32px;
    font-weight: var(--fw-semibold);
}

.figma-auth-card__footer--sinistra {
    text-align: left;
}

/* Riga "Remember me" + pulsante Entra, come nel riquadro classico */
.figma-auth-card__ricordami {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.figma-auth-card__ricordami label {
    margin: 0;
    font-size: 13px;
    color: #3c3c3c;
}

.figma-auth-card__ricordami input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    flex: 0 0 auto;
}

/* Illustrazione: omino con lucchetto, composta con due icone sovrapposte */
.figma-auth-card__accesso-icona {
    position: relative;
    display: inline-block;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.figma-auth-card__accesso-icona-persona {
    font-size: 96px;
    color: #b9bec4;
}

.figma-auth-card__accesso-icona-lucchetto {
    position: absolute;
    right: -8px;
    bottom: -2px;
    font-size: 42px;
    color: var(--hh-red-color);
}

/* Sotto i 1400px lo spazio nella card non basta: l'illustrazione si nasconde e resta il form */
@media (max-width: 1399.98px) {
    .figma-auth-card__accesso-icona {
        display: none;
    }
}

/* Nella variante grigia le etichette tornano in minuscolo, come nei riquadri classici */
.figma-auth-card--grigia .figma-auth-card__label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
}

/* Sul corpo grigio della variante gli input sono bianchi, come nei riquadri classici */
.figma-auth-card--grigia .figma-auth-card__input.form-control {
    background: #fff;
    border-color: #c9c9c9;
}

.figma-auth-card--grigia .figma-auth-card__input.form-control:focus {
    background: #fff;
}

/* Variante grigia: riprende i riquadri classici dell'Area Riservata
   (header a gradiente grigio, corpo grigio chiaro con input bianchi) */
.figma-auth-card--grigia {
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    background: #ededed;
}

.figma-auth-card--grigia .figma-auth-card__header {
    background: linear-gradient(to bottom, #f7f7f7, #e5e5e5);
    border-bottom: 1px solid #c9c9c9;
    padding: 12px 20px 10px;
}

.figma-auth-card--grigia .figma-auth-card__title {
    font-size: 16px;
    color: #4a4a4a;
}

.figma-auth-card--grigia .figma-auth-card__subtitle {
    color: #7a7a7a;
}

/* Barra superiore delle pagine di autenticazione (stile Area Riservata classica)
   (WI 582: portata da Gestionale.Soci/site.css righe ~3341-3378, senza modifiche) */
.barra-accessi {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding: 10px 24px;
    background: linear-gradient(to bottom, #ffffff, #ececec);
    border-top: 4px solid #7a0109;
    border-bottom: 1px solid #c9c9c9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.barra-accessi__loghi {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.barra-accessi__loghi img {
    max-height: 52px;
    width: auto;
    height: auto;
}

.barra-accessi__titolo {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--hh-red-color);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.12);
}
