/*
 Theme Name:     Biomoni
 Theme URI:      https://biomoni-islandplots.eu
 Description:    Base theme for Biomoni Island Plots
 Author:         Helio Ferreira
 Author URI:     https://circunforce.com
 Template:       Divi
 Version:        1.0.0
 License:        NA
 License URI:    NA
 Text Domain:    biomoni
*/

.biomoniHeader {
    background-color: #76CAA3!important;
}

/* janela modal */
/* Base */
/* Container sempre “montado”, mas invisível */
/* ========== MODAL CONTAINER ========== */
.cf-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    /* CENTRO vertical */
    justify-content: center;
    /* CENTRO horizontal */
    padding: 16px;
    /* margem mínima nas bordas */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.cf-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 180ms ease;
}
/* ========== BACKDROP ========== */
.cf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 0;
}

/* ========== DIALOG ========== */
.cf-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .25);
    position: relative;
    z-index: 1;
}

/* ========== HEADER ========== */
.cf-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* força botão à direita */

    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}

/* Título */
.cf-modal__header h3 {
    margin: 0;
    font-size: 18px;
}

/* Botão close */
.cf-modal__close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

/* ========== BODY ========== */
.cf-modal__body {
    padding: 16px 18px;
    max-height: 70vh;
    overflow: auto;
    position: relative;
}
/* ===== Modal loading overlay ===== */
.cf-modal__loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.cf-modal__loading.is-active {
    display: flex;
    pointer-events: auto;
}

.cf-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.12);
    border-top-color: rgba(0, 0, 0, 0.55);
    animation: cfSpin 0.8s linear infinite;
}


@keyframes cfSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Evita que wrappers do DataTables tapem os controlos */
#cfModal .dt-row,
#cfModal .row.dt-row,
#cfModal .dataTables_wrapper .row {
    position: static !important;
    z-index: auto !important;
}

/* Garante que a toolbar fica “por cima” */
#cfModal .dataTables_wrapper .dataTables_length,
#cfModal .dataTables_wrapper .dataTables_filter {
    position: relative;
    z-index: 5;
}

/* fim janela modal */