.modal-header-custom {
    background-color: #003366 !important;
    color: white !important;
}

.modal-title-custom {
    color: white !important;
}

.is-invalid {
    border: 2px solid red !important;
    background-color: #ffe6e6; /* Leggero rosso di sfondo */
}

.field-spacer{
    height: 30px;
}

.ms-DetailsHeader {
    position: sticky;
    top: 0;
    background-color: white; /* Assicura che l'header sia visibile */
    z-index: 10; /* Per stare sopra il contenuto */
}

.form-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    z-index: 1050; /* pił di Bootstrap modal (1040-1050) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.hidden {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/*.modal-grid {
    height: 800px;
}

.modal-dialog-custom {
    height: 90vh !important;*/ /* Imposta l'altezza della modale al 60% dell'altezza dello schermo */
    /*display: flex !important;
    align-items: center !important;*/ /* Centra verticalmente */
/*}

.modal-content-custom {
    height: 90vh !important;*/ /* Imposta l'altezza del contenuto della modale */
/*}

.modal-body-custom {
    overflow-y: auto !important;*/ /* Permette lo scrolling interno se necessario */
    /*height: 100% !important;*/ /* Occupa tutta l'altezza della modale */
/*}*/