:root {
    /* Define a cor preta padrão do modo dark */
    --bs-dark: #333 !important;
    --bs-dark-rgb: 51, 51, 51 !important;
    --bs-blue: #004BFF !important;
    --bs-blue-rgb: 0, 75, 255;
    --bs-primary: #004BFF !important;
    --bs-primary-rgb: 0, 75, 255;
}

/* Aplica a cor ao tema escuro */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--bs-dark) !important;
    --bs-body-color: #f8f9fa !important;
}

/* Aplica o fundo branco em ambos os temas */
body[data-bs-theme="light"] {
    background-color: #F7F7F7 !important;
}

body.body-login {
    background: linear-gradient(135deg, #0A0A0A, #1A1A1A, #004BFF);
}

.bi-login-container {
    max-width: 600px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 2rem;
}

.bi-login-container .btn-primary {
    background-color: #004BFF !important;
    border: none !important;
    transition: background 0.3s, transform 0.2s !important;
}
.bi-login-container .btn-primary:hover {
    background-color: #0039cc !important;
    transform: scale(1.02) !important;
}

.embed-container {
    position: absolute;
    top: 98px;
    bottom: 37px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    justify-content: center;
}

.navbar-custom {
    position: absolute;
    height: 45px;
    top: 53px;
    left: 0;
    right: 0;
    font-size: 0.80rem;
}

.report-container {
    background-color: #f8f9fa !important;
    position: relative;
    transform-origin: top left;
    min-width: 100%;
    width: 100%;
    height: 100%; 
    flex-shrink: 0;
    touch-action: manipulation;         /* Bloqueia pinch-zoom e double-tap zoom */
    -webkit-user-select: none;          /* Evita seleção de texto ao tocar no relatório */
    -webkit-text-size-adjust: none;     /* Impede Safari de aumentar texto após pinch */
    /*-webkit-overflow-scrolling: touch;*/
} 

#erroCarregamento {
    z-index: 10;
}

.range-dark::-webkit-slider-thumb {
    background-color: #212529; /* text-dark */
    border: none;
    width: 1rem;
    height: 1rem;
    border-radius: 1rem;
    margin-top: -0.25rem;
}

.range-dark::-moz-range-thumb {
    background-color: #212529;
    border: none;
    width: 1rem;
    height: 1rem;
    border-radius: 1rem;
}