/* Apoio ao FormHandler e ao jQuery Validation ----------------------------------- */

/* Tela de carregamento do FormHandler.loading('show') */
#loading {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.loading-overlay {
    display: flex;
    height: 100%;
    background-color: rgba(14, 34, 16, .35);
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #fff;
}

/* O jQuery Validation coloca a mensagem no fim do .form-group; o Bootstrap só mostra
   .invalid-feedback quando é irmão do campo, então aqui ela é exibida sempre */
.form-group > .invalid-feedback {
    display: block;
}

/* SweetAlert2 com as cores da Fertidata */
.swal2-popup {
    font-family: 'Public Sans', system-ui, sans-serif;
    border-radius: 16px;
}

.swal2-title { font-family: 'Bricolage Grotesque', system-ui, sans-serif; }

.swal2-styled.swal2-confirm { background-color: #24481F; border-radius: 10px; }
.swal2-styled.swal2-confirm:focus { box-shadow: 0 0 0 3px rgba(61, 107, 53, .4); }

/* O FormHandler usa iconColor branco (tema escuro); no alerta claro o ícone sumiria */
.swal2-icon.swal2-question {
    color: #24481F !important;
    border-color: #9DBB86 !important;
}
