﻿p {
    color: #000;
}

:root {
    --hh-red-color: #A9020D;
    --hh-red-light-color: rgb(249, 236, 236);
    --primary: #2D1967;
    --text-color: #212529;
    --menu-link-active: #2155cd;
    --sidebar-menu-color: #dff2f9;
    --menu-width: 220px;
    --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;
    --page-border-color: #890000;
    --page-border-width: 10px;
    --header-bg: #f2f2f2;
    --header-height: 120px;
    --header-border-color: #878787;
    --sidebar-border-color: #ececec;
}

@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;
}

.red_color {
    color: var(--hh-red-color) !important;
}

.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);
}

/* Override sidebar dal tema per il layout Figma */
.figma-sidebar.sidebar {
    position: relative;
    height: auto;
    padding-bottom: 0;
    box-shadow: none;
}

    .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: 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: 0.8rem;
        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;
}

.accordion-body {
    background: #fff;
}

.accordion-button:not(.collapsed) {
    color: #000;
    background-color: var(--hh-red-light-color);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.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: linear-gradient(to bottom, #f0f1f3, #e7e7e7);
    border: 1px solid #dcdcdc;
    padding: 20px 40px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

    .card_box .white_box_title h3 {
        color: #3c3c3c;
    }

.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: #fff;
    border: none;
    padding-left: 10px;
    padding-right: 10px;
    overflow: visible;
}

.card_box:not(.with_shadow) .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: 4px;
    border-bottom-right-radius: 4px;
}

.card_box.with_shadow .box_body {
    padding: 20px 40px;
    margin-top: -30px;
    padding-top: 50px;
    border: none !important;
    border-radius: 0 !important;
}

.card_box.with_shadow {
    border: 1px solid #E6E6E6;
    border-radius: 24px !important;
}

.logo_mutua {
    max-width: 240px;
    max-height: 80px;
    width: auto;
    height: auto;
}

.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: .75em 1.5em .75em 1.25em !important;
    background: #F0F0F0;
    border-radius: 40px !important;
}

.btn_action.right_icon > div {
    padding: .75em .75em .75em 1.5em !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: 10px;
        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,
.dashboard_header_title h3 {
    color: #000;
    font-weight: var(--fw-semibold);
    font-size: 35px;
}

.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: 10px;
    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;
}

.dataTables_wrapper {
    max-height: 400px;
    overflow: auto;
}

.bg_light_red {
    background: var(--hh-red-light-color) !important;
}

.informativa_container {
    height: 400px;
    overflow-y: scroll;
}

/* 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: aparncia 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: 20px 30px 30px 30px;
    padding-top: 0;
}

.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;
        margin: 0 30px;
    }

    .dashboard_breadcrumbs a > .material-symbols-outlined {
        font-size: 1.5rem;
    }

    .sidebar #sidebar_menu > li a {
        font-size: 0.8rem !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:not(.page-content-wrapper .main_content) {
        padding-left: var(--menu-width);
    }

    .sidebar:not(.figma-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 BOTO SIM / NO-------------------------*/
.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 BOTO SIM / NO-------------------------*/

/* ========================================
   FIGMA DESIGN - Layout principale
   ======================================== */

/* Wrapper con bordo rosso scuro attorno a tutta la pagina */
.page-border-wrapper {
    border: var(--page-border-width) solid var(--page-border-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.page-content-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Header Figma */
.figma-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    flex-shrink: 0;
    z-index: 1060;
    position: relative;
}

.figma-header__left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.figma-header__logo img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.figma-header__title-block {
    display: flex;
    flex-direction: column;
}

.figma-header__title {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: var(--fw-medium);
    font-style: italic;
    color: var(--hh-red-color);
    margin: 0;
    line-height: 1.2;
}

.figma-header__title-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Icona immagine nella sidebar */
.sidebar-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.figma-header__section-title {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: var(--fw-medium);
    color: #878787;
    margin: 4px 0 0 0;
}

.figma-header__right {
    display: flex;
    align-items: center;
}

.figma-header__user-info {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #000;
}

.figma-header__user-info .profile_info i {
    color: #878787;
}

.figma-header .sidebar_icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Sidebar Figma */
.figma-sidebar {
    background: #fff;
    border-right: 2px solid var(--sidebar-border-color);
    width: var(--menu-width);
    flex-shrink: 0;
    overflow-y: auto;
    position: relative;
    top: 0;
    height: calc(100vh - var(--header-height) - (2 * var(--page-border-width)));
    z-index: 1050;
}

.figma-sidebar .logo {
    padding: 10px 15px;
    margin: 0 30px;
    justify-content: center;
}

.figma-sidebar .logo_mutua {
    max-width: 140px;
    max-height: 55px;
}

/* Menu items con gradiente come da Figma */
.figma-sidebar #sidebar_menu > li {
    margin: 2px 6px;
}

.figma-sidebar #sidebar_menu > li > a {
    padding: 8px 10px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: #fff;
    border: 1px solid transparent;
    text-align: center;
    color: #3c3c3c !important;
}

.figma-sidebar #sidebar_menu > li > a .sidebar-icon-img {
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

.figma-sidebar #sidebar_menu > li > a .sidebar-icon-symbol {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-top: 4px;
    line-height: 1;
    flex-shrink: 0;
}

.figma-sidebar #sidebar_menu > li.mm-active > a {
    background: linear-gradient(to bottom, #e8e9eb, #dcdcdc);
    border: 1px solid #c8c8c8;
    border-radius: 4px;
}

.figma-sidebar #sidebar_menu > li.mm-active > a::before {
    display: none;
}

.figma-sidebar #sidebar_menu > li > a:hover {
    background: linear-gradient(to bottom, #e8e9eb, #dcdcdc);
    border-radius: 4px;
}

.figma-sidebar #sidebar_menu > li > a .material-symbols-outlined {
    font-size: 1.8rem;
}

/* Override: main_content nel nuovo layout */
.page-content-wrapper .main_content.dashboard_part {
    flex: 1;
    padding-left: 0;
    overflow-y: auto;
    height: calc(100vh - var(--header-height) - (2 * var(--page-border-width)));
}

/* Responsive per il nuovo layout */
@media (max-width: 991px) {
    .figma-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .figma-sidebar.active {
        transform: translateX(0);
    }

    .page-content-wrapper .main_content.dashboard_part {
        width: 100%;
    }

    .figma-header {
        padding: 0 15px 0 50px;
    }
}

@media (max-width: 1600px) {
    .figma-header__title {
        font-size: 22px;
    }

    .figma-header__section-title {
        font-size: 14px;
    }

    .figma-header__logo img {
        max-height: 65px;
    }

    .figma-header {
        height: 100px;
    }

    .figma-sidebar {
        height: calc(100vh - 100px - (2 * var(--page-border-width)));
    }

    .page-content-wrapper .main_content.dashboard_part {
        height: calc(100vh - 100px - (2 * var(--page-border-width)));
    }
}

/* User welcome in header (stile Figma) */
.figma-user-welcome {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #000;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 2px;
}

.figma-user-welcome__label {
    color: #000;
}

.figma-user-welcome__label strong {
    font-weight: var(--fw-medium);
    text-transform: uppercase;
}

.figma-user-welcome__separator {
    color: #000;
}

.figma-user-welcome__logout {
    background: none;
    border: none;
    color: #878787 !important;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.figma-user-welcome__logout:hover {
    text-decoration: underline;
    color: var(--hh-red-color) !important;
}

/* ========================================
   HOME PAGE - Design Figma
   ======================================== */

/* Messaggio di benvenuto */
.home-welcome-title {
    font-family: "Poppins", sans-serif;
    font-size: 25px;
    font-weight: var(--fw-bold);
    color: var(--page-border-color);
    margin: 10px 0 15px 0;
}

/* Box informativi (contatti mutua e Health Assistance) */
.home-info-row {
    display: flex;
    gap: 20px;
    align-items: stretch;
    flex-wrap: wrap;
}

.home-info-col {
    display: flex;
    width: 562px;
}

.home-info-box {
    border: 2px solid;
    border-radius: 8px;
    padding: 20px 25px;
    background: #fff;
    width: 100%;
}

.home-info-box--red {
    border-color: var(--hh-red-color);
}

.home-info-box--blue {
    border-color: #2155cd;
}

.home-info-box__title {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: var(--fw-semibold);
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-color);
}

.home-info-box--red .home-info-box__title {
    color: var(--hh-red-color);
}

.home-info-box--blue .home-info-box__title {
    color: #2155cd;
}

.home-info-box--blue .home-info-box__link a,
.home-info-box--blue .home-info-box__bullet,
.home-info-box--blue .home-info-box__contact strong {
    color: #2155cd !important;
}

.home-info-box__subtitle {
    font-size: 13px;
    font-weight: var(--fw-semibold);
    text-align: center;
    margin-bottom: 8px;
}

.home-info-box__subtitle--red {
    color: var(--hh-red-color);
}

.home-info-box__subtitle--blue {
    color: #2155cd;
}

/* Versione Fondo Mutua Nazionale: bullet point della home in blu */
.home-mutua-nazionale .home-info-box__bullet {
    color: #2155cd !important;
}

/* Eccezione: nel box Health Assistance (rosso) i bullet restano rossi come il bordo */
.home-mutua-nazionale .home-info-box--red .home-info-box__bullet {
    color: var(--hh-red-color) !important;
}

/* Versione Fondo Mutua Nazionale: link dei box "La tua posizione" e
   "Comunicazioni importanti" in blu (i link sono rossi per regola globale) */
.home-mutua-nazionale .home-section-box a {
    color: #2155cd !important;
}

/* Versione Fondo Mutua Nazionale: scritte rosse della home in blu
   (eccetto il box Health Assistance, che resta rosso) */
.home-mutua-nazionale .home-welcome-title {
    color: #2155cd;
}

.home-mutua-nazionale .home-cta-box {
    border-color: #2155cd;
}

.home-mutua-nazionale .home-cta-box__title {
    color: #2155cd;
}

.home-mutua-nazionale .home-cta-box__btn {
    background-color: #2155cd;
}

.home-mutua-nazionale .home-cta-box__btn:hover,
.home-mutua-nazionale .home-cta-box__btn:focus {
    background-color: #17408f;
}

.home-info-box__link {
    font-size: 13px;
    margin-bottom: 8px;
}

.home-info-box__link a {
    color: var(--hh-red-color) !important;
    text-decoration: underline;
}

.home-info-box__bullet {
    color: var(--hh-red-color);
    font-weight: var(--fw-bold);
    margin-right: 4px;
}

.home-info-box__list {
    list-style: disc;
    padding-left: 30px;
    font-size: 13px;
    margin-bottom: 12px;
}

.home-info-box__list li {
    margin-bottom: 2px;
}

.home-info-box__contact {
    font-size: 13px;
    margin-bottom: 4px;
}

.home-info-box__contact strong {
    color: var(--hh-red-color);
}

.home-numero-contatto {
    font-size: 16px;
    font-weight: var(--fw-bold);
    color: #000;
}

.home-info-box__note {
    font-size: 11px;
    color: #878787;
    margin-top: 8px;
    font-style: italic;
}

/* Elementi secondari dei box (giorni/orari, voci informative): grigio chiaro */
.home-info-box__orari,
.home-info-box__voce-secondaria {
    font-size: 11.5px;
    color: #878787;
    margin-bottom: 4px;
}

/* Le voci secondarie sono sotto-punti della voce che le precede: rientrate
   (i giorni/orari sono sotto-punti di Telefono/Numero) */
.home-info-box__voce-secondaria,
.home-info-box__orari {
    padding-left: 22px;
}

/* Versione Fondo Mutua Nazionale: nel box blu (Back Office) i giorni/orari sono in grassetto blu */
.home-mutua-nazionale .home-info-box--blue .home-info-box__orari,
.home-mutua-nazionale .home-info-box--blue .home-info-box__orari strong {
    color: #2155cd;
    font-weight: var(--fw-bold);
}

.home-mutua-nazionale .home-info-box--blue .home-info-box__orari .home-info-box__bullet {
    color: #2155cd !important;
}

.home-info-box__orari strong,
.home-info-box__voce-secondaria strong {
    color: #878787;
    font-weight: var(--fw-semibold);
}

.home-info-box .home-info-box__orari .home-info-box__bullet,
.home-info-box .home-info-box__voce-secondaria .home-info-box__bullet {
    color: #878787 !important;
    font-size: 11.5px;
}

/* Sezione inferiore (Posizione e Comunicazioni) */
.home-section-box {
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    width: 100%;
    background: #f2f2f2;
}

.home-section-box__title {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: var(--fw-semibold);
    padding: 10px 20px;
    margin: 0;
    background: #e8e8e8;
    border-bottom: 1px solid #dcdcdc;
    color: var(--text-color);
}

.home-section-box__body {
    padding: 15px 20px;
    font-size: 13px;
}

.home-posizione__nome {
    font-size: 14px;
    margin-bottom: 10px;
}

.home-posizione__details p {
    margin-bottom: 4px;
}

.home-posizione__sussidi ul {
    list-style: none;
    padding-left: 0;
}

.home-posizione__sussidi li {
    margin-bottom: 3px;
}

.home-posizione__sussidi li a {
    font-size: 13px;
    text-decoration: underline;
}

.home-documenti-list {
    list-style: none;
    padding-left: 0;
}

.home-documenti-list li {
    margin-bottom: 4px;
}

.home-documenti-list li a {
    font-size: 13px;
    text-decoration: underline;
}

.home-link-tutti {
    font-size: 13px;
    font-style: italic;
    text-decoration: underline;
}

/* ========================================
   HOME CTA BOX - Banner call-to-action
   ======================================== */
.home-cta-box {
    border: 2px solid var(--hh-red-color);
    border-radius: 8px;
    padding: 18px 25px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.home-cta-box__title {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: var(--fw-semibold);
    color: var(--hh-red-color);
    margin: 0;
    flex: 1 1 auto;
    line-height: 1.3;
}

.home-cta-box__btn {
    background-color: var(--hh-red-color);
    color: #fff !important;
    border: none;
    padding: 9px 24px;
    border-radius: 6px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: var(--fw-semibold);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease-in-out;
}

.home-cta-box__btn:hover,
.home-cta-box__btn:focus {
    background-color: #7d0109;
    color: #fff !important;
    text-decoration: none;
}

/* ========================================
   ELENCHI DOCUMENTI RAGGRUPPATI (Documenti e comunicazioni,
   Modulistica e certificazioni) - stile vecchio portale
   ======================================== */
.figma-documenti .documenti-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.figma-documenti .documenti-header img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.figma-documenti .documenti-header h4 {
    font-family: "Poppins", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--hh-red-color);
    margin: 0;
}

.figma-documenti .documenti-gruppo-titolo {
    color: var(--hh-red-color);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: underline;
    margin: 18px 0 10px;
}

.figma-documenti .documenti-lista {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.figma-documenti .documenti-lista li {
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    max-width: 720px;
    flex-wrap: wrap;
}

.figma-documenti .documenti-letto {
    margin-left: auto;
    white-space: nowrap;
    color: #3c3c3c;
}

.figma-documenti .documenti-lista a {
    color: #3c3c3c !important;
    text-decoration: underline;
}

.figma-documenti .documenti-lista a:hover {
    color: var(--hh-red-color) !important;
}

/* ========================================
   PORTAL CARD - Card contenitore (stile Figma)
   ======================================== */
.portal-card {
    border: 2px solid var(--hh-red-color);
    border-radius: 8px;
    padding: 20px 25px;
    background: #fff;
    height: 100%;
}

.portal-card--blue {
    border-color: #2155cd;
}

.portal-card__header {
    padding-bottom: 12px;
    border-bottom: 1px solid #ececec;
    margin-bottom: 15px;
}

.portal-card__title {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: var(--fw-semibold);
    color: var(--hh-red-color);
    margin: 0 0 4px 0;
}

.portal-card--blue .portal-card__title {
    color: #2155cd;
}

.portal-card__subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    color: var(--text-color);
    margin: 0;
}

.portal-card__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #ececec;
}

.portal-card__row:last-child {
    border-bottom: none;
}

.portal-card__row-icon {
    color: var(--hh-red-color);
    font-size: 20px !important;
    flex-shrink: 0;
}

.portal-card--blue .portal-card__row-icon {
    color: #2155cd;
}

.portal-card__row-label {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 0;
    min-width: 130px;
}

.portal-card__row-value {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: var(--fw-semibold);
    color: var(--text-color);
    margin: 0;
    flex: 1;
    word-break: break-word;
}

.portal-card__footer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #ececec;
    display: flex;
    justify-content: flex-end;
}

/* ========================================
   PORTAL MODAL - Stile modale (scoped)
   ======================================== */
.portal-modal .modal-content {
    border: 2px solid var(--hh-red-color);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    overflow: hidden;
}

.portal-modal .modal-header {
    background: #fff;
    border-bottom: 1px solid #ececec;
    padding: 18px 28px;
    align-items: center;
}

.portal-modal .modal-title {
    font-family: "Poppins", sans-serif;
    font-size: 18px !important;
    font-weight: var(--fw-semibold);
    color: var(--hh-red-color);
    margin: 0;
}

.portal-modal .modal-header .btn-close {
    opacity: .7;
}

.portal-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.portal-modal .modal-body {
    padding: 22px 28px;
    background: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
}

.portal-modal .modal-body .form-label {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: var(--fw-semibold);
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 4px !important;
}

.portal-modal .modal-body .form-label small {
    color: var(--hh-red-color);
    font-size: 13px;
    margin-left: 2px;
}

.portal-modal .modal-body .form-control,
.portal-modal .modal-body .single-select + .ts-wrapper .ts-control,
.portal-modal .modal-body select.form-control {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.portal-modal .modal-body .form-control:focus,
.portal-modal .modal-body .single-select + .ts-wrapper.focus .ts-control {
    border-color: var(--hh-red-color);
    box-shadow: 0 0 0 2px rgba(169, 2, 13, .12);
}

.portal-modal .modal-body .form-check-input {
    border: 1px solid #adb5bd;
}

.portal-modal .modal-body .form-check-input:checked {
    background-color: var(--hh-red-color);
    border-color: var(--hh-red-color);
}

.portal-modal .modal-body .form-check-label {
    font-size: 13px;
    color: var(--text-color);
    margin-left: 4px;
}

.portal-modal .modal-body .text-danger {
    font-size: 11px;
    margin-top: 2px;
    display: inline-block;
}

.portal-modal .modal-body small.fst-italic {
    color: #878787;
    font-size: 12px;
}

.portal-modal .modal-footer {
    background: #fafafa;
    border-top: 1px solid #ececec;
    padding: 14px 28px;
    gap: 8px;
}

.portal-modal .modal-footer .btn {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    padding: 8px 22px;
    border-radius: 6px;
}

.portal-modal .modal-footer .btn[type="reset"],
.portal-modal .modal-footer .btn-danger {
    background: #fff;
    color: var(--hh-red-color);
    border: 1px solid var(--hh-red-color);
    font-weight: var(--fw-semibold);
}

.portal-modal .modal-footer .btn[type="reset"]:hover,
.portal-modal .modal-footer .btn-danger:hover {
    background: var(--hh-red-light-color);
    color: var(--hh-red-color);
}

.portal-modal .modal-footer .btn[type="submit"],
.portal-modal .modal-footer .btn-primary {
    background: var(--hh-red-color) !important;
    color: #fff !important;
    border: 1px solid var(--hh-red-color) !important;
    font-weight: var(--fw-semibold);
}

.portal-modal .modal-footer .btn[type="submit"]:hover,
.portal-modal .modal-footer .btn-primary:hover {
    background: #7d0109 !important;
    border-color: #7d0109 !important;
}

/* ========================================
   FIGMA TABLE - Stile tabella Figma
   ======================================== */
.figma-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-family: "Poppins", sans-serif;
}

.figma-table thead th {
    background: #f0f0f0 !important;
    color: #3c3c3c;
    font-weight: var(--fw-medium);
    padding: 10px 14px;
    border-bottom: 2px solid #dcdcdc;
    border-right: 1px solid #e0e0e0 !important;
    font-size: 13px;
    white-space: nowrap;
}

.figma-table thead th:last-child {
    border-right: none !important;
}

.figma-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #ececec;
    background: #fff !important;
    color: #3c3c3c;
    vertical-align: middle;
}

.figma-table tbody tr:hover td {
    background: #f9f9f9 !important;
}

/* Titolo sezione senza box */
.figma-section-title {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: var(--fw-semibold);
    color: #3c3c3c;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #dcdcdc;
}

/* Bottone stile Figma - bordi dritti */
.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;
}

/* ========================================
   DATI ANAGRAFICI - Stile classico (vintage) per scheda beneficiario
   ======================================== */
.dati-anagrafici-title {
    text-align: center;
    margin: 14px 0 18px;
    font-family: "Poppins", sans-serif;
}

.dati-anagrafici-title .titolo {
    color: #b71c1c;
    text-decoration: underline;
    font-weight: 700;
    font-size: 18px;
}

.dati-anagrafici-title .nominativo {
    color: #b71c1c;
    font-weight: 700;
    font-size: 18px;
    margin-left: 10px;
    text-decoration: none;
}

.dati-anagrafici-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.dati-anagrafici-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
}

.dati-anagrafici-table th,
.dati-anagrafici-table td {
    border: 1px solid #9d9d9d;
    padding: 5px 10px;
    vertical-align: middle;
}

.dati-anagrafici-table th {
    background: #e7e7e7;
    color: #232323;
    font-weight: 600;
    text-align: left;
    width: 32%;
}

.dati-anagrafici-table .row-optional th {
    background: #e1ecf4;
    color: #5a8aa8;
    font-weight: 500;
}

.dati-anagrafici-table td {
    background: #fff;
    padding: 3px 6px;
}

.dati-anagrafici-table input.form-control,
.dati-anagrafici-table select.form-select {
    border-radius: 0;
    border: 1px solid #6c6c6c;
    box-shadow: none;
    height: 26px;
    padding: 2px 6px;
    font-size: 13px;
    line-height: 1;
}

.dati-anagrafici-table input.form-control:focus,
.dati-anagrafici-table select.form-select:focus {
    border-color: #2a6da6;
    box-shadow: 0 0 0 0.15rem rgba(42, 109, 166, 0.18);
}

.dati-anagrafici-actions {
    text-align: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #cfcfcf;
}

.dati-anagrafici-actions .btn-legacy {
    background: linear-gradient(to bottom, #f6f6f6, #dcdcdc);
    border: 1px solid #8b8b8b;
    color: #232323;
    border-radius: 3px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    padding: 4px 18px;
    box-shadow: none;
    margin: 0 4px;
}

.dati-anagrafici-actions .btn-legacy:hover {
    background: linear-gradient(to bottom, #fafafa, #d0d0d0);
    color: #232323;
}

/* ========================================
   FIGMA AUTH CARD - Card moderna pagine accesso
   ======================================== */
.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;
}

/* Variante invito: card affiancata al login (pagina di login a due riquadri).
   Testo-link verde 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;
}

/* 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;
}

/* ========================================
   PAGINA CLASSICA - Stile documento del vecchio portale (reset password)
   ======================================== */
.pagina-classica {
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    padding: 28px 36px 32px;
    font-family: "Poppins", sans-serif;
    color: #3c3c3c;
}

.pagina-classica__titolo {
    font-size: 22px;
    font-weight: 700;
    color: var(--hh-red-color);
    margin: 0 0 22px;
}

.pagina-classica__domanda {
    font-size: 16px;
    font-weight: var(--fw-semibold);
    color: var(--hh-red-color);
    margin: 0 0 10px 12px;
}

.pagina-classica__scelte {
    list-style: none;
    margin: 0 0 28px 24px;
    padding: 0;
}

.pagina-classica__scelte li::before {
    content: "- ";
    color: #6c6c6c;
}

.pagina-classica__scelte a {
    color: #6c6c6c;
    text-decoration: underline;
    font-size: 14px;
}

.pagina-classica__scelte a:hover {
    color: #3c3c3c;
}

.pagina-classica__sezione {
    font-size: 20px;
    font-weight: 700;
    color: var(--hh-red-color);
    margin: 0 0 16px 12px;
}

/* Distanza tra una sezione e la successiva nella stessa pagina */
.pagina-classica__form + .pagina-classica__sezione {
    margin-top: 40px;
}

.pagina-classica__form {
    margin-left: 24px;
    max-width: 460px;
}

.pagina-classica__label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.pagina-classica__input.form-control {
    height: 40px;
    border: 1px solid #c9c9c9;
    border-radius: 3px;
    font-size: 15px;
    color: #3c3c3c;
    margin-bottom: 4px;
}

.pagina-classica__input.form-control::placeholder {
    color: #b5b5b5;
}

.pagina-classica__bottone {
    margin-top: 10px;
    padding: 7px 24px;
}

.pagina-classica__nota {
    font-size: 12px;
    color: #3c3c3c;
    margin: 10px 0 0;
}

.pagina-classica__ritorno {
    margin-top: 48px;
}

/* Barra superiore delle pagine di autenticazione (stile Area Riservata classica) */
.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 var(--hh-red-color);
    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__loghi img.barra-accessi__strip {
    max-width: min(340px, 100%);
}

.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);
}

/* 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;
}
