.dataTables_paginate {
    margin-bottom: 20px !important;
}

.dataTables_length {
    margin-top: 10px !important;
}

.app-header {
    z-index: 999999 !important;
}

.left-sidebar {
    z-index: 9999999 !important;
}

.daterangepicker {
    z-index: 9999999 !important;
}

.modal-dialog {
    margin-top: 150px !important;
}

.paginate_button {
    cursor: pointer;
}

.paginate_button:hover {
    background-color: #B3F1F7;
}

/*1055 modal sopra*/
/*1050 modal sopra*/

.select2-container,
.select2-results {
    z-index: 1049;
}

/* ASTERISCO AUTOMATICO SULLE LABEL REQUIRED */
div.required>label:first-of-type:after {
    content: " *";
    color: red;
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1d9e0c;
    --bs-btn-border-color: #1d9e0c;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #28b915;
    --bs-btn-hover-border-color: #28b915;
    --bs-btn-focus-shadow-rgb: 54, 227, 196;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1d9e0c;
    --bs-btn-active-border-color: #1d9e0c;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #1d9e0c;
    --bs-btn-disabled-border-color: #1d9e0c;
}

/* BORDO ROSSO AUTOMATICO SU INPUT E SELECT REQUIRED 
div.required input {
    border-color: red;
}

div.required select {
    border-color: red;
}

div.required .select2-selection {
    border-color: red;
}
*/

.t-contratto {
    border: 1px solid #32B7C4
}

/* SCHERMATA CARICAMENTO */
.schermata-caricamento {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0c0c0c75;
    flex-direction: column;
    opacity: 0;
    color: white;
    font-size: 25px;
}

/* SCHERMATA CARICAMENTO */
.schermata-caricamento-2 {
    display: flex;
    align-items: center;
    justify-content: end;
    z-index: 999999999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0c0c0c75;
    flex-direction: column;
    opacity: 0;
    color: white;
    font-size: 25px;
}

/* TOAST */
.toast-container {
    width: 100%;
    max-width: 400px;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1055;
    padding: 1rem;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.toast {
    width: 100%;
    max-width: 400px;
    pointer-events: auto
}

.toast[data-type] {
    position: relative;
    border: 0;
    color: #f8f9fa;
    background: linear-gradient(to bottom right, #4A4A4A, #2B2B2B);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

.toast[data-type] .toast-content {
    display: flex;
    align-items: center;
    padding-left: 1rem;
}

.toast[data-type] .toast-icon {
    margin-top: 2px;
    margin-bottom: 7px;
}

.toast[data-type] .toast-body {
    width: 100%;
    padding-left: 1rem;
}

.toast[data-type="info"] {
    background: linear-gradient(to bottom right, #1d4d91, #539BFF)
}

.toast[data-type="warning"] {
    background: linear-gradient(to bottom right, #e29208, #e29208)
}

.toast[data-type="danger"] {
    background: linear-gradient(to bottom right, #d11212, #d11212)
}

.toast[data-type="success"] {
    background: linear-gradient(to bottom right, #28a745, #84b42d)
}

.toast[data-type="primary"] {
    background: linear-gradient(to bottom right, #32B7C4, #32B7C4)
}

/* PER COPIA STRINGA IN CLIPBOARD*/
.mouse-follower {
    position: fixed;
    padding: 3px 6px;
    border-radius: 5px;
    background: black;
    color: white;
    pointer-events: none;
    display: none;
    z-index: 99999999;
}

/* CARICAMENTO "PROCESSING" DI DATATABLES */
div.dataTables_processing {
    z-index: 9999;
    background-color: rgb(0, 0, 0);
    border-radius: 10px;
    position: fixed !important;
    color: white;
    padding: 20px;
}

/* SELECT2 LARGE */
.select-lg .select2-selection {
    height: 50px !important;
}

.select-lg .select2-selection__rendered {
    height: 50px !important;
    line-height: 50px !important;
    font-size: 18px !important;
    border-color: #DFE5EF !important;
}


.select-lg .select2-selection__arrow {
    height: 50px !important;
    line-height: 50px !important;
    width: 25px !important;
}

.select-lg .select2-selection__arrow b {
    border-width: 7px 5px 0 5px !important;
}

/* FORM LG CUSTOM*/

.form-control-lg.form-control-lg-andrea {
    border-radius: 3px !important;
}

/* STAMPA SIMULAZIONE */
.bgSimulaIntestazione {
    background: #003366;
}

.bgSimulaDettaglio {
    background: #ebebeb;
}

body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

#elemento-modal .modal-header {
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.badge-sm {
    padding: 0.4em 0.6em;
    font-size: 11px;
}

.badge-xs {
    padding: 0.4em 0.6em;
    font-size: 10px;
}

/* Badge "Nuovo" */
@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: .7;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.badge-nuovo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FCEBEB;
    color: #791F1F;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px 3px 8px;
    border-radius: 20px;
    border: 1px solid #F09595;
    animation: pulse-dot 1.8s ease-in-out infinite;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.badge-nuovo .dot {
    position: relative;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
}

.badge-nuovo .dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #E24B4A;
    animation: pulse-ring 1.4s ease-out infinite;
}

.badge-nuovo .dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #E24B4A;
}