.badge:empty {
			display: none !important;
		}	

		.dropdown-menu {
			width:400px;
		}

		.btn-primary.disabled, .btn-primary:disabled {
			cursor: not-allowed !important;
		}

		.select2-container--default .select2-selection--multiple {
			border: 1px solid #aaaaaa8a !important;
		}

		.select2-container .select2-selection--single {
			height: 33px !important;
		}
		.select2-container--default .select2-selection--single .select2-selection__rendered {
			line-height:32px !important;
		}

		.select2-container--default .select2-selection--single {
			border: 1px solid #aaaaaa8a !important;
		}

		.table > tbody > tr > td, .table > tfoot > tr > td, .table > thead > tr > td {
			padding: 0px !important;
		}

		.enlarged #wrapper .left.side-menu #sidebar-menu ul > li:hover > a {
			color: #fff !important;
			background-color: #1b1b1b !important;
		}

		.datepicker {
		z-index: 1600 !important; /* has to be larger than 1050 */
		}
		@media (min-width: 992px) {
			.modal-lg, .modal-xl {
				max-width: 920px;
			}
		}

		.breadcrumb-item.breadcrumb-item::before {
			display: inline-block;
			padding-right: .5rem;
			color: #6c757d;
			content: "/";
		}

		.breadcrumb-item {
			padding-left: .5rem;
		}

		.breadcrumb > li:before {
			padding: 0 5px;
			color: #9ca8b3;
			content: "\f105" !important;
			font-family: 'Font Awesome 5 Free';
			font-weight: 900;
		}


		.submenu li a:hover {
			background-color: #5d5d5d;
			color: rgba(255, 255, 255, 0.8);
		}
		.wrapper-page .logo-admin {
			border-bottom: 2px solid #626ed4 !important;
		}
		.center-cropped {
			object-fit: cover; /*scale the image */
			object-position: center; /* Center the image within the element */
			height: 50px;
			width: 50px;
		}
		/*
		table.dataTable.nowrap th, table.dataTable.nowrap td{
			white-space: unset !important;
		}
		*/
		#sidebar-menu > ul > li > a.mm-active{
		background-color: #f5f5f50d !important;
		}
		
		.tox-dialog,
		.tox-dialog__body,
		.tox-textfield input {
		z-index: 1060 !important;
		pointer-events: auto !important;
		}

		.modal {
		z-index: 1050;
		}
		.modal-backdrop {
		z-index: 1040;
		}
		@media (max-width: 576px) {
			/* prima colonna (ID) */
			table.dataTable tbody td.dtr-control {
				font-size: 0;      /* nasconde il testo, ma lascia il + */
			}
		}

		table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before {
			top: 15px;
			left: 10px;
			height: 20px;
			width: 20px;
			line-height: 20px;
			border-radius: 50%;
		}

		table.dataTable tbody td {
			vertical-align: middle;
		}

		table.dataTable td {
			word-break: break-word;
		}
        
        
.table td, .table th {
    border-top: 1px solid #dee2e6ab !important;
}
.badge {
    font-size:12px !important;
}
th {
    padding-left:4px !important;
}
input[switch]:checked + label:after {
    left: 58px;
}
input[switch] + label {
    width: 82px;
}

input[switch] + label:before {
    line-height: 23px;
}

input[switch]:checked + label:before {
    left: 4px;
}


.badge:empty {
    display: none !important;
}	

.dropdown-menu {
    width:400px;
}

.btn-primary.disabled, .btn-primary:disabled {
    cursor: not-allowed !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #aaaaaa8a !important;
}

.select2-container .select2-selection--single {
    height: 33px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height:32px !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #aaaaaa8a !important;
}



.enlarged #wrapper .left.side-menu #sidebar-menu ul > li:hover > a {
    color: #fff !important;
    background-color: #1b1b1b !important;
}

.datepicker {
z-index: 1600 !important; /* has to be larger than 1050 */
}
@media (min-width: 992px) {
    .modal-lg, .modal-xl {
        max-width: 920px;
    }
}

.breadcrumb-item.breadcrumb-item::before {
    display: inline-block;
    padding-right: .5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item {
    padding-left: .5rem;
}

.breadcrumb > li:before {
    padding: 0 5px;
    color: #9ca8b3;
    content: "\f105" !important;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}


.submenu li a:hover {
    background-color: #5d5d5d;
    color: rgba(255, 255, 255, 0.8);
}
.wrapper-page .logo-admin {
    border-bottom: 2px solid #626ed4 !important;
}
.center-cropped {
    object-fit: cover; /*scale the image */
    object-position: center; /* Center the image within the element */
    height: 50px;
    width: 50px;
}
/*
table.dataTable.nowrap th, table.dataTable.nowrap td{
    white-space: unset !important;
}
*/
#sidebar-menu > ul > li > a.mm-active{
background-color: #f5f5f50d !important;
}

.tox-dialog,
.tox-dialog__body,
.tox-textfield input {
z-index: 1060 !important;
pointer-events: auto !important;
}

.modal {
z-index: 1050;
}
.modal-backdrop {
z-index: 1040;
}


table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before {
    top: 15px;
    left: 10px;
    height: 20px;
    width: 20px;
    line-height: 20px;
    border-radius: 50%;
}

table.dataTable tbody td {
    vertical-align: middle;
}

table.dataTable td {
    word-break: break-word;
}
        
        
        
@media (max-width: 767px) {

    .adjustMobile {
        font-size:12px;
        min-width: 65px !important;
        max-width: 65px !important;
    }

    .dataTables_wrapper > .row:first-child > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .dataTables_wrapper .dataTables_filter {
        width: 100% !important;
        margin: 18px 0 18px;
    }

    .dataTables_wrapper .dataTables_filter label {
        display: block;
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter input {
        display: block;
        width: 100% !important;
        margin-left: 0 !important;
    }
}


.nuovoElementoBtn {
    padding:10px 35px !important;
}

@media (max-width: 767px) {

  

    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        text-align: left !important;
        width: 100% !important;
        margin: 18px 0 16px 0;
    }

    .dataTables_wrapper .dataTables_filter label {
        display: block;
        width: 100%;
        font-size: 13px;
        font-weight: 600;
        color: #111827;
        margin-bottom: 0;
    }

    .dataTables_wrapper .dataTables_filter input {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 42px;
        margin: 8px 0 0 0 !important;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        padding: 8px 12px;
        font-size: 14px;
        box-sizing: border-box;
        outline: none;
    }

    .dataTables_wrapper .dataTables_filter input:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, .13);
    }
}


@media (max-width: 767px) {

    .card,
    .box,
    .content-card {
        border-radius: 14px;
        border: 1px solid #eef2f7;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
    }
}

.results-title-mobile  {
    color: #4c53d5;
    font-size:12px;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 12px;
    height: 44px;
}

.table-modern.dataTable tbody td:last-child a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}


.mobile-sidebar-backdrop {
    display: none;
}

@media (max-width: 767px) {

    body.sidebar-open .mobile-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, .5);
        z-index: 998;
    }

    .left.side-menu {
        position: fixed !important;
        top: 77px;
        left: 0;
        bottom: 0;
        z-index: 999 !important;
    }
}


.btn-mobile-add {
    
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: linear-gradient(135deg, #2563eb, #14b8a6);
    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;

    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    transition: all 0.2s ease-in-out;
}

.btn-mobile-add:hover,
.btn-mobile-add:focus {
    color: #ffffff;
    text-decoration: none;
    border:none;

    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.36);
    filter: brightness(1.04);
}
 
.btn-mobile-add {
    width: 100%;
    display: flex;
    /* resto del CSS */
}

@media (min-width: 768px) {
    .btn-mobile-add {
        width: fit-content;
        margin-left: auto;
    }
}
.btn-mobile-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 14px;
}

.page-title{
    font-size: 26px;
    color: #3a3a3a;
}

#sidebar-menu > ul > li > a {
    color: #a3a3a3;
    display: block;
    padding: 15px 15px;
}


@media (max-width: 767px) {

    .topbar {
        height: 82px;
        background: #fff;
        border-bottom: 1px solid #eef2f7;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    }

    .topbar-left {
        display: none !important;
    }

    .navbar-custom.topbar-app-mobile {
        height: 82px;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between;
        margin: 0 !important;
        padding: 0 16px;
        background: #fff;
    }

    .topbar-app-mobile .menu-left {
        flex: 0 0 42px !important;
        max-width: 42px !important;
        width: 42px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .topbar-app-mobile .menu-left li {
        float: none !important;
    }

    .button-menu-mobile {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: #f8fafc !important;
        color: #334155 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        font-size: 22px;
    }

    .button-menu-mobile:active {
        background: #eef2ff !important;
        color: #4f46e5 !important;
    }

    .mobile-topbar-brand {
        flex: 1;
        min-width: 0;
        padding: 0 12px;
    }

    .mobile-topbar-title {
        font-size: 16px;
        font-weight: 600;
        color: #474747;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-topbar-user {
        margin-top: 4px;
        font-size: 12px;
        font-weight: 600;
        color: #94a3b8;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-actions-mobile {
        flex: 0 0 auto !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }

    .topbar-actions-mobile > li {
        margin: 0 !important;
        display: inline-flex ;
        align-items: center;
    }

    .topbar-actions-mobile .nav-link {
        width: 38px;
        height: 38px;
        padding: 0 !important;
        border-radius: 13px;
        background: #f8fafc;
        color: #334155 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .topbar-actions-mobile .nav-link:active {
        background: #eef2ff;
        color: #4f46e5 !important;
    }

    .topbar-actions-mobile .nav-link i {
        font-size: 18px;
        margin: 0 !important;
    }

    .topbar-actions-mobile .nav-user {
        background: transparent !important;
        width: 40px;
        height: 40px;
        padding: 0 !important;
    }

    .topbar-actions-mobile .nav-user img {
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
        filter: none !important;
        border: 2px solid #eef2ff;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    }

    #badgeNotifiche.noti-icon-badge {
        top: 5px !important;
        right: 5px !important;
        min-width: 8px;
        width: 8px;
        height: 8px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
        border: 2px solid #fff;
    }
}

@media (max-width: 767px) {

    /* Riga superiore DataTables: length + cerca */
    .dataTables_wrapper > .row:first-child {
        display: block !important;
    }

    .dataTables_wrapper > .row:first-child > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Mostra 10 elementi */
    .dataTables_wrapper .dataTables_length {
        float: none !important;
        text-align: left !important;
        width: 100% !important;
        margin-bottom: 12px;
    }

    .dataTables_wrapper .dataTables_length label {
        font-size: 13px;
        font-weight: 600;
        color: #475569;
        margin-bottom: 0;
    }

    .dataTables_wrapper .dataTables_length select {
        height: 36px;
        border-radius: 9px;
        border: 1px solid #cbd5e1;
        padding: 5px 8px;
        margin: 0 6px;
    }

    /* Cerca full width */
    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        text-align: left !important;
        width: 100% !important;
        margin: 0 0 16px 0;
    }

    .dataTables_wrapper .dataTables_filter label {
        display: block !important;
        width: 100% !important;
        margin: 0;
    }

    .dataTables_wrapper .dataTables_filter input {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 42px;
        margin: 0 !important;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        padding: 8px 12px;
        font-size: 14px;
        box-sizing: border-box;
        outline: none;
    }

    .dataTables_wrapper .dataTables_filter input:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, .13);
    }
}

@media (max-width: 767px) {

    div.dataTables_wrapper > div.row:first-child {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    div.dataTables_wrapper > div.row:first-child > div.col-sm-12.col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    div.dataTables_wrapper div.dataTables_length,
    div.dataTables_wrapper div.dataTables_filter {
        width: 100% !important;
        text-align: left !important;
        float: none !important;
    }

    div.dataTables_wrapper div.dataTables_length {
        margin-bottom: 12px;
    }

    div.dataTables_wrapper div.dataTables_filter {
        margin-bottom: 16px;
    }

    div.dataTables_wrapper div.dataTables_filter label {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    div.dataTables_wrapper div.dataTables_filter input {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        height: 42px;
        margin: 0 !important;
        box-sizing: border-box !important;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        padding: 8px 12px;
        font-size: 14px;
    }
}




/* Evita zoom/doppio tap sui bottoni */
button,
.btn,
.page-link,
.paginate_button,
.dataTables_paginate a,
.fc-button {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Bottoni più grandi da mobile */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_paginate .paginate_button,
    .pagination .page-link,
    .fc-button,
    button.btn {
        min-width: 42px;
        min-height: 42px;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


table.dataTable.dtr-column.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-column.collapsed > tbody > tr > th.dtr-control {
    position: relative;
    width: 35px;
    min-width: 35px;
    max-width: 35px;
    cursor: pointer;
    text-align: center;
}

table.dataTable.dtr-column.collapsed > tbody > tr > td.dtr-control:before,
table.dataTable.dtr-column.collapsed > tbody > tr > th.dtr-control:before {
    content: "+" !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 24px !important;
    height: 24px !important;
    line-height: 24px !important;

    background: #2563eb !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 50% !important;

    font-size: 17px !important;
    font-weight: 700 !important;
    font-family: Arial, sans-serif !important;

    box-shadow: none !important;
    margin: 0 !important;
}

table.dataTable.dtr-column.collapsed > tbody > tr.parent > td.dtr-control:before,
table.dataTable.dtr-column.collapsed > tbody > tr.parent > th.dtr-control:before {
    content: "−" !important;
    background: #dc2626 !important;
}


/* Card contenitore tabella */
.table-card,
.dataTables_wrapper,
.dt-container {
    background: #fff;
    border-radius: 18px;
}

/* Tabella più pulita */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100% !important;
}

table.dataTable thead th {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    border-bottom: 1px solid #e5e7eb !important;
}

table.dataTable tbody td {
    vertical-align: middle;
    border-bottom: 1px solid #eef0f4;
    padding: 5px;
 
}

/* Colonna + */
table.dataTable.dtr-column.collapsed > tbody > tr > td.dtr-control {
    width: 35px;
    min-width: 35px;
    max-width: 35px;
    text-align: center;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* Bottone + */
table.dataTable.dtr-column.collapsed > tbody > tr > td.dtr-control:before {
    content: "+" !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 26px !important;
    height: 26px !important;
    line-height: 26px !important;

    border-radius: 50% !important;
    border: 0 !important;
    background: #2563eb !important;
    color: #fff !important;

    font-size: 18px !important;
    font-weight: 800 !important;
    font-family: Arial, sans-serif !important;

    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25) !important;
    margin: 0 !important;
}

/* Riga aperta */
table.dataTable.dtr-column.collapsed > tbody > tr.parent > td.dtr-control:before {
    content: "−" !important;
    background: #ef4444 !important;
    box-shadow: 0 6px 14px rgba(239, 68, 68, 0.25) !important;
}

/* Nome servizio */
table.dataTable tbody td:nth-child(3) {
    font-weight: 600;
    color: #111827;
}

/* Azioni più belle */
table.dataTable td .fa-edit,
table.dataTable td .fa-trash,
table.dataTable td .fa-trash-alt,
table.dataTable td .fa-pencil,
table.dataTable td .fa-pen {
    font-size: 14px;
}

/* Se le azioni sono dentro link o button */
table.dataTable td a,
table.dataTable td button {
    text-decoration: none !important;
}

/* Dettaglio responsive stile card */
.dt-mobile-details {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px 12px;
    margin: 4px 0 8px 44px;
}

.dt-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
}

.dt-detail-row:last-child {
    border-bottom: 0;
}

.dt-detail-row span {
    color: #6b7280;
}

.dt-detail-row strong {
    color: #111827;
    text-align: right;
}



/* =========================
   DTR CONTROL - STILE APP
========================= */

table.dataTable.dtr-column.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-column.collapsed > tbody > tr > th.dtr-control {
    width: 35px !important;
    min-width: 35px !important;
    max-width: 35px !important;
    position: relative !important;
    text-align: center !important;
    cursor: pointer;
}

/* Stato chiuso */
table.dataTable.dtr-column.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-column.collapsed > tbody > tr > th.dtr-control::before {
    content: "+" !important;

    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    min-height: 25px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #dbeafe !important;
    border-radius: 12px !important;

    background: linear-gradient(135deg, #eff6ff, #e0f2fe) !important;
    color: #2563eb !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;

    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12) !important;
}

/* Stato aperto */
table.dataTable.dtr-column.collapsed > tbody > tr.parent > td.dtr-control::before,
table.dataTable.dtr-column.collapsed > tbody > tr.parent > th.dtr-control::before {
    content: "−" !important;

    border-color: #fecaca !important;
    background: linear-gradient(135deg, #fff1f2, #fee2e2) !important;
    color: #dc2626 !important;

    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.12) !important;
}

table.dataTable tbody tr.child td.child tr[data-dt-row] td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

/* Toglie bordo superiore alla prima riga dei dettagli */
table.dataTable tbody tr.child td.child tr[data-dt-row]:first-child td {
    border-top: 0 !important;
}

/* Toglie bordo inferiore all'ultima riga dei dettagli */
table.dataTable tbody tr.child td.child tr[data-dt-row]:last-child td {
    border-bottom: 0 !important;
}


 @media (max-width: 768px) {

    .dataTables_paginate {
        width: 100% !important;
        overflow: hidden;
    }

    .dataTables_paginate .pagination {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        margin-top: 10px;
    }

    .dataTables_paginate .page-link {
        padding: 6px 9px !important;
        font-size: 12px !important;
        min-width: 34px;
        text-align: center;
    }

    .dataTables_paginate .previous .page-link,
    .dataTables_paginate .next .page-link {
        font-size: 0 !important;
    }

    .dataTables_paginate .previous .page-link::after {
        content: "‹";
        font-size: 18px;
    }

    .dataTables_paginate .next .page-link::after {
        content: "›";
        font-size: 18px;
    }
}


.dataTables_wrapper,
.dataTables_wrapper .row,
.dataTables_wrapper [class*="col-"] {
    max-width: 100%;
}




.allergene-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px 3px 2px 0;

    border-radius: 50%;
    background-color: rgba(7, 21, 102, 0.1);
    color: #626ed4;

    font-size: 14px;
    cursor: help;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.allergene-icon:hover {
    transform: translateY(-2px);
    background-color: rgba(53, 137, 220, 0.18);
}





/* MODALE MODERNA */

.modern-modal .modal-dialog {
	max-width: 850px;
	padding: 15px;
}

.modern-modal .modal-content {
	border: 0;
	border-radius: 20px;
	overflow: hidden;
	background: #ffffff;
	box-shadow:
		0 24px 60px rgba(15, 23, 42, 0.18),
		0 8px 20px rgba(15, 23, 42, 0.08);
}


/* HEADER */

.modern-modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 24px 28px;
	border-bottom: 1px solid #edf0f4;
	background: linear-gradient(
		135deg,
		#ffffff 0%,
		#f8f9fc 100%
	);
}

.modern-modal-heading {
	display: flex;
	align-items: center;
	min-width: 0;
}

.modern-modal-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	margin-right: 15px;
	border-radius: 14px;
	background: rgba(85, 110, 230, 0.12);
	color: #556ee6;
	font-size: 18px;
}

.modern-modal .modal-title {
	margin: 0;
	color: #24324a;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.modern-modal-subtitle {
	margin: 5px 0 0;
	color: #8492a6;
	font-size: 13px;
	line-height: 1.5;
}

.modern-modal-close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 50%;
	background: #f1f3f7 !important;
	color: #596579;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	opacity: 1;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.modern-modal-close:hover {
	background: #ffe8e8 !important;
	color: #e55353;
	transform: rotate(90deg);
}


/* BODY */

.modern-modal-body {
	padding: 28px;
	background: #ffffff;
}

.modern-modal-body .row {
	margin-right: -10px;
	margin-left: -10px;
}

.modern-modal-body .row > [class*="col-"],
.modern-modal-body .row > .col {
	padding-right: 10px;
	padding-left: 10px;
}

.modern-modal-body label {
	margin-bottom: 7px;
	color: #344054;
	font-size: 13px;
	font-weight: 600;
}

.modern-modal-body .form-control {
	min-height: 44px;
	border: 1px solid #dfe4ec;
	border-radius: 10px;
	background-color: #ffffff;
	color: #344054;
	box-shadow: none;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.modern-modal-body textarea.form-control {
	min-height: 110px;
	resize: vertical;
}

.modern-modal-body .form-control:focus {
	border-color: #556ee6;
	box-shadow: 0 0 0 4px rgba(85, 110, 230, 0.10);
}

.modern-modal-body .form-group {
	margin-bottom: 20px;
}


/* SELECT2 */

.modern-modal-body .select2-container {
	width: 100% !important;
}

.modern-modal-body
.select2-container--default
.select2-selection--single {
	height: 44px;
	border: 1px solid #dfe4ec;
	border-radius: 10px;
}

.modern-modal-body
.select2-container--default
.select2-selection--single
.select2-selection__rendered {
	padding-left: 14px;
	line-height: 42px;
}

.modern-modal-body
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
	height: 42px;
}


/* FOOTER */

.modern-modal-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 18px 28px;
	border-top: 1px solid #edf0f4;
	background: #fafbfc;
}

.modern-modal-footer::before,
.modern-modal-footer::after {
	display: none;
}

.modern-modal-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 130px;
	min-height: 44px;
	margin: 0 !important;
	padding: 10px 20px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		background-color 0.2s ease;
}

.modern-modal-footer .btn-light {
	border: 1px solid #dfe4ec;
	background: #ffffff;
	color: #596579;
}

.modern-modal-footer .btn-light:hover {
	background: #f1f3f7;
	color: #344054;
}

.modern-modal-save {
	border-color: #556ee6;
	background: #556ee6;
	box-shadow: 0 7px 16px rgba(85, 110, 230, 0.22);
}

.modern-modal-save:hover,
.modern-modal-save:focus {
	border-color: #4458c7;
	background: #4458c7;
	box-shadow: 0 9px 20px rgba(85, 110, 230, 0.30);
	transform: translateY(-1px);
}


/* ANIMAZIONE APERTURA */

.modern-modal.fade .modal-dialog {
	transform: translateY(20px) scale(0.98);
	transition:
		transform 0.25s ease-out,
		opacity 0.25s ease-out;
}

.modern-modal.show .modal-dialog {
	transform: translateY(0) scale(1);
}


/* MOBILE */

@media (max-width: 767.98px) {

	.modern-modal .modal-dialog {
		width: auto;
		margin: 10px;
		padding: 0;
	}

	.modern-modal .modal-content {
		border-radius: 16px;
	}

	.modern-modal-header {
		padding: 20px;
	}

	.modern-modal-icon {
		width: 42px;
		height: 42px;
		margin-right: 12px;
		border-radius: 12px;
	}

	.modern-modal .modal-title {
		font-size: 17px;
	}

	.modern-modal-subtitle {
		font-size: 12px;
	}

	.modern-modal-body {
		padding: 20px;
	}

	.modern-modal-footer {
		flex-direction: column-reverse;
		padding: 16px 20px;
	}

	.modern-modal-button {
		width: 100%;
		min-width: 0;
	}

}


.pac-container {
	z-index: 999999 !important;
}