/* =========================================================
   MODERNIZE OVERRIDE - LOJA WOW DARK THEME
========================================================= */
:root {
    --brand-light: #763ebd;
    --brand: #763ebd;
}


/* 1. FUNDO E TEXTO PRINCIPAL */
body, .page-wrapper, .body-wrapper, .box-login, .box-login .card {
    background-color: transparent !important;
    color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    font-family: 'Outfit', sans-serif !important; /* Opcional: aplica sua fonte */
}

p, span, .text-muted, .text-dark, .form-label, .card-subtitle {
    color: #dfdfdf !important;
}

/* 2. MENU LATERAL (SIDEBAR MODERNIZE) */
.left-sidebar {
    background-color: #0a0a0e !important;
    border-right: 0 !important;
}

.sidebar-nav ul .sidebar-item .sidebar-link {
    color: #dfdfdf !important;
    transition: 0.3s !important;
}

/* Hover e Ativo no Menu Lateral */
.sidebar-nav ul .sidebar-item .sidebar-link:hover,
.sidebar-nav ul .sidebar-item .sidebar-link.active {
    background-color: rgba(118, 62, 189, 0.6) !important; /* Roxo transparente */
    color: #9d6df0 !important; /* Brand Light */
}

.sidebar-nav ul .sidebar-item .sidebar-link.active i {
    color: #9d6df0 !important;
}

/* 3. HEADER SUPERIOR (NAVBAR) */
.app-header {
    background-color: #0a0a0e !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 0 !important;
}

/* 4. CARDS (O CORAÇÃO DO PAINEL) */
.card, .bg-white {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 32%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border-radius: 16px !important;
}

.card-body {
    background-color: transparent !important;
}

.card-header, .card-footer {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 32%) !important;
    border-top: 1px solid rgba(255, 255, 255, 32%) !important;
}

/* 5. BOTÕES (FORÇANDO A MARCA) */
.btn-primary {
    background-color: #763ebd !important;
    border-color: #763ebd !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(118, 62, 189, 0.3) !important;
}

.btn-primary:hover {
    background-color: #8b5cf6 !important;
    border-color: #8b5cf6 !important;
    box-shadow: 0 6px 20px rgba(118, 62, 189, 0.5) !important;
}

.btn-outline-primary {
    border-color: #763ebd !important;
    color: #9d6df0 !important;
}

.btn-outline-primary:hover {
    background-color: rgba(118, 62, 189, 0.1) !important;
    color: #ffffff !important;
}

/* 6. FORMULÁRIOS E INPUTS */
.form-control, .form-select, .custom-select {
    background-color: rgba(255, 255, 255, 0.13) !important;
    border: 1px solid rgba(255, 255, 255, 32%) !important;
    color: #ffffff !important;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(118, 62, 189, 0.05) !important;
    border-color: #763ebd !important;
    box-shadow: 0 0 0 4px rgba(118, 62, 189, 0.15) !important;
    color: #ffffff !important;
}

/* 7. TABELAS (Modernize Tables) */
.table, .table-hover tbody tr:hover {
    color: #ffffff !important;
}

.table > :not(caption) > * > * {
    background-color: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 32%) !important;
    color: #d4d4d8 !important;
}

/* Títulos das tabelas */
.table th {
    color: #ffffff !important;
    font-weight: 600 !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* 8. DROPDOWNS E MENUS SUSPENSOS */
.dropdown-menu {
    background-color: #0a0a0e !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-item {
    color: #d4d4d8 !important;
}

.dropdown-item:hover {
    background-color: rgba(118, 62, 189, 0.1) !important;
    color: #9d6df0 !important;
}

/* 9. GRÁFICOS (APEXCHARTS - Correção de legibilidade) */
.apexcharts-text tspan, .apexcharts-legend-text {
    fill: #dfdfdf !important;
}
.apexcharts-gridline {
    stroke: rgba(255, 255, 255, 32%) !important;
}

/* =========================================================
   FIXES CIRÚRGICOS: TELA DE LOGIN E MODAIS CEGANTES
========================================================= */

/* 1. TELA DE LOGIN ABSOLUTA (Mata o fundo claro) */
/* O Modernize costuma usar .auth-wrapper ou .radial-gradient no login */
.auth-wrapper, 
.page-wrapper[data-layout="vertical"] .auth-wrapper {
    background-color: #030305 !important;
    background-image: none !important;
}

/* Campos de Input do Login (Remove o fundo branco) */
.auth-wrapper .form-control {
    background-color: rgba(255, 255, 255, 0.13) !important;
    border: 1px solid rgba(255, 255, 255, 32%) !important;
    color: #ffffff !important;
}

.auth-wrapper .form-control:focus {
    background-color: rgba(118, 62, 189, 0.05) !important;
    border-color: #763ebd !important;
    box-shadow: 0 0 0 4px rgba(118, 62, 189, 0.15) !important;
}

/* Força os textos da tela de login a ficarem brancos/cinzas */
.auth-wrapper label {
    color: #e4e4e7 !important;
}

/* 2. MODAIS E ALERTS (Fim do "Flashbang" branco) */
/* Ataca os modais nativos do Bootstrap */
.modal-content {
    background-color: #0a0a0e !important;
    border: 1px solid rgba(255, 255, 255, 32%) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
    backdrop-filter: blur(16px) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 32%) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 32%) !important;
}

/* Ataca alertas de JS (SweetAlert2), muito comuns em templates */
.swal2-popup {
    background-color: #0a0a0e !important;
    border: 1px solid rgba(255, 255, 255, 32%) !important;
    color: #ffffff !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8) !important;
}

.swal2-title, .swal2-html-container {
    color: #d4d4d8 !important;
}

/* 3. AJUSTE FINO NO TOPO (Navbar Input) */
/* A barra de busca no topo (onde diz "Legacy1") precisa de uma borda sutil */
.app-header .form-control {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgb(255 255 255 / 32%) !important;
    color: #ffffff !important;
}

.footer-copy {
    background-color: #0a0a0e !important;
}

/* =========================================================
   FUNDO IMERSIVO PARA TELA DE LOGIN E CORREÇÃO DE CAMADA
========================================================= */

/* Torna o container do Modernize transparente para o grid aparecer */
.auth-wrapper, 
.page-wrapper[data-layout="vertical"] .auth-wrapper {
    background-color: transparent !important; /* Aqui estava o bloqueio */
    background-image: none !important;
}

/* Garante que o fundo base do body seja escuro */
body {
    background-color: #030305 !important;
}

/* O Brilho Central */
.ambient-glow {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(118, 62, 189, 0.12) 0%, transparent 60%);
    z-index: -1; pointer-events: none; filter: blur(80px);
}

/* A Malha Quadriculada */
.grid-bg {
    position: fixed; inset: 0; z-index: -2;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
}

/* =========================================================
   REFINAMENTO DE UI: TABELAS, BADGES E INPUTS DO PAINEL
========================================================= */

/* 1. Suavizar TODAS as bordas internas de tabelas e listas */
.card .border, 
.card [class*="border-"],
.table-bordered, 
.table-bordered td, 
.table-bordered th {
    border-color: rgba(255, 255, 255, 32%) !important;
    background: transparent !important;
}

/* 2. Upgrade nos Badges de Status (Efeito Glass/Soft Definitivo) */
/* Ataca tanto as classes bg-X quanto badge-X comuns no Modernize */
.badge.bg-success, .bg-success.rounded-pill, .bg-success {
    background-color: rgba(19, 222, 185, 0.1) !important; 
    color: #13DEB9 !important; 
    border: 1px solid rgba(19, 222, 185, 0.2) !important;
    font-weight: 600 !important;
    padding: 0.35em 0.65em !important;
}

.badge.bg-danger, .bg-danger.rounded-pill, .bg-danger {
    background-color: rgba(250, 137, 107, 0.1) !important;
    color: #FA896B !important;
    border: 1px solid rgba(250, 137, 107, 0.2) !important;
    font-weight: 600 !important;
    padding: 0.35em 0.65em !important;
}

/* Badge de Aviso/Pendente (Amarelo) caso tenha "Aguardando" */
.badge.bg-warning, .bg-warning.rounded-pill, .bg-warning {
    background-color: rgba(255, 174, 31, 0.1) !important;
    color: #FFAE1F !important;
    border: 1px solid rgba(255, 174, 31, 0.2) !important;
    font-weight: 600 !important;
    padding: 0.35em 0.65em !important;
}

/* Badge de Informação (Azul) */
.badge.bg-info, .bg-info.rounded-pill, .bg-info {
    background-color: rgba(83, 155, 255, 0.1) !important;
    color: #539BFF !important;
    border: 1px solid rgba(83, 155, 255, 0.2) !important;
    font-weight: 600 !important;
    padding: 0.35em 0.65em !important;
}

/* 3. Destaque sutil no campo de busca interno e selects */
.card-body .form-control, .card-body .form-select {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgb(255 255 255 / 32%) !important;
    color: #ffffff !important;
}
.card-body .form-control:focus, .card-body .form-select:focus {
    border-color: #763ebd !important;
    background-color: rgba(118, 62, 189, 0.05) !important;
    color: #ffffff !important;
}

/* 4. Tabela: Ajuste do Cabeçalho e Linhas */
.table thead th {
    background-color: #000 !important;
    color: #e4e4e7 !important;
    border-bottom: 2px solid rgb(255 255 255 / 32%) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table thead th h6 {
    color: #dfdfdf !important;
}

.table tbody tr:hover, 
.list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.13) !important;
    transition: background-color 0.2s ease;
}

.table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
    vertical-align: middle;
}

/* =========================================================
   FIX: SELECTS (DROPDOWNS) NATIVOS
========================================================= */

/* Estilo do botão de seleção */
.form-control, .form-select, .custom-select {
    background-color: rgba(255, 255, 255, 0.13) !important;
    border: 1px solid rgb(255 255 255 / 32%) !important;
    color: #ffffff !important;
}

/* Força o tema escuro na lista suspensa (as opções) */
.form-control option, .form-select option, .custom-select option {
    background-color: #0a0a0e !important; /* Fundo escuro */
    color: #ffffff !important; /* Texto branco */
}

/* Estilo ao focar (clicar no select) */
.form-control:focus, .form-select:focus, .custom-select:focus {
    border-color: #763ebd !important;
    background-color: rgba(118, 62, 189, 0.05) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(118, 62, 189, 0.15) !important;
}

/* =========================================================
   FIX CIRÚRGICO: ALERTAS, BANNERS E CALLOUTS (Fim do brilho)
========================================================= */

/* Alertas/Backgrounds Primários e Secundários (Roxo) */
.alert-primary, .bg-light-primary, .alert-secondary, .bg-light-secondary {
    background-color: rgba(118, 62, 189, 0.1) !important;
    color: #b28af5 !important;
    border: 1px solid rgba(118, 62, 189, 0.25) !important;
}

/* Alertas/Backgrounds de Informação (Azul) */
.alert-info, .bg-light-info {
    background-color: rgba(83, 155, 255, 0.1) !important;
    color: #8bb9ff !important;
    border: 1px solid rgba(83, 155, 255, 0.25) !important;
}

/* Alertas/Backgrounds de Sucesso (Verde) */
.alert-success, .bg-light-success {
    background-color: rgba(19, 222, 185, 0.1) !important;
    color: #13DEB9 !important;
    border: 1px solid rgba(19, 222, 185, 0.25) !important;
}

/* Alertas/Backgrounds de Atenção (Amarelo) */
.alert-warning, .bg-light-warning {
    background-color: rgba(255, 174, 31, 0.1) !important;
    color: #FFAE1F !important;
    border: 1px solid rgba(255, 174, 31, 0.25) !important;
}

/* Alertas/Backgrounds de Erro/Perigo (Vermelho) */
.alert-danger, .bg-light-danger {
    background-color: rgba(250, 137, 107, 0.1) !important;
    color: #FA896B !important;
    border: 1px solid rgba(250, 137, 107, 0.25) !important;
}

/* Força a cor do texto padrão dentro dos blocos para herdar a cor ajustada acima */
.alert p, .alert h1, .alert h2, .alert h3, .alert h4, .alert h5, .alert h6,
[class*="bg-light-"] p, [class*="bg-light-"] h1, [class*="bg-light-"] h2, 
[class*="bg-light-"] h3, [class*="bg-light-"] h4, [class*="bg-light-"] h5, [class*="bg-light-"] h6 {
    color: inherit !important;
}

/* Destaca links dentro dos avisos para induzir o clique */
.alert a, [class*="bg-light-"] a {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
    transition: 0.3s ease !important;
}

.alert a:hover, [class*="bg-light-"] a:hover {
    color: #FFF !important;
}

.btn-close {
    /* Troca o SVG preto (%23000) por branco (%23ffffff) */
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
    
    --bs-btn-close-opacity: 0.6 !important;
    --bs-btn-close-hover-opacity: 1 !important;
    --bs-btn-close-focus-shadow: 0 0 0 4px rgba(118, 62, 189, 0.15) !important;
    
    /* Previne que o Bootstrap tente inverter a cor da imagem nativamente */
    filter: none !important;
    transition: all 0.2s ease !important;
}

/* Efeito de hover refinado (círculo translúcido) */
.btn-close:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
}

/* =========================================================
   FIX: JQUERY UI DATEPICKER (Calendário)
========================================================= */

/* 1. O Container Principal (O "Card" do Calendário) */
.ui-datepicker {
    background-color: #0a0a0e !important;
    border: 1px solid rgba(255, 255, 255, 32%) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    backdrop-filter: blur(16px) !important;
    z-index: 9999 !important; /* Garante que fique acima dos modais */
}

/* 2. Cabeçalho (Mês e Ano) */
.ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 32%) !important;
}

.ui-datepicker-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

/* 3. Setas de Navegação (Hack para inverter o ícone preto para branco) */
.ui-datepicker .ui-datepicker-prev span, 
.ui-datepicker .ui-datepicker-next span {
    filter: invert(1) brightness(2) !important; /* Deixa a seta branca */
    margin-top: -8px !important;
}

.ui-datepicker .ui-datepicker-prev:hover, 
.ui-datepicker .ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    border-radius: 8px !important;
}

/* 4. Dias da Semana (Dom, Seg, Ter...) */
.ui-datepicker th {
    color: #dfdfdf !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    padding: 12px 0 !important;
}

/* 5. Números dos Dias (Células) */
.ui-datepicker td {
    padding: 2px !important;
}

.ui-state-default, .ui-widget-content .ui-state-default {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #d4d4d8 !important;
    border-radius: 50% !important; /* Deixa a área de clique circular */
    text-align: center !important;
    padding: 8px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

/* Dia Atual (Hoje) */
.ui-state-highlight, .ui-widget-content .ui-state-highlight {
    color: var(--brand-light) !important;
    background: rgba(118, 62, 189, 0.1) !important;
    border: 1px solid rgba(118, 62, 189, 0.3) !important;
}

/* Hover (Passar o mouse) */
.ui-state-hover, .ui-widget-content .ui-state-hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    cursor: pointer !important;
}

/* Dia Selecionado (Ativo) */
.ui-state-active, .ui-widget-content .ui-state-active {
    background: var(--brand) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(118, 62, 189, 0.4) !important;
    border: 1px solid var(--brand) !important;
}

/* Dias fora do mês atual */
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary {
    opacity: 0.3 !important;
}

/* =========================================================
   FIX: PAGINAÇÃO (Bootstrap Pagination)
========================================================= */

/* 1. Container: Desgruda os botões para um visual modular moderno */
.pagination {
    gap: 6px !important;
    margin-bottom: 0 !important;
}

/* 2. Botão padrão (Página não selecionada) */
.page-link {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgb(255 255 255 / 32%) !important;
    color: #dfdfdf !important;
    border-radius: 8px !important; /* Força o arredondamento em todos, quebrando o padrão grudado */
    font-weight: 500 !important;
    padding: 8px 14px !important;
    transition: all 0.2s ease !important;
}

/* 3. Hover (Passar o mouse) */
.page-link:hover {
    background-color: rgba(118, 62, 189, 0.1) !important;
    border-color: var(--brand) !important;
    color: var(--brand-light) !important;
}

/* 4. Página Atual (Ativa) */
.page-item.active .page-link {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(118, 62, 189, 0.4) !important;
}

/* 5. Botões Desabilitados (Ex: "Anterior" estando na página 1) */
.page-item.disabled .page-link {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.13) !important;
    color: #52525b !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* Remove a linha de foco padrão do navegador que estraga o layout */
.page-link:focus {
    box-shadow: 0 0 0 4px rgba(118, 62, 189, 0.15) !important;
}

/* =========================================================
   FIX: BARRA DE ROLAGEM CUSTOMIZADA (SCROLLBAR)
========================================================= */

/* Suporte para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 32%) #030305;
}

/* Suporte para Chrome, Edge, Safari e Opera */
::-webkit-scrollbar {
    width: 10px;  /* Largura da barra vertical */
    height: 10px; /* Altura da barra horizontal (em tabelas longas) */
}

/* Fundo da trilha da barra */
::-webkit-scrollbar-track {
    background: #030305 !important; 
    border-radius: 10px;
}

/* O "polegar" (a barra que se move) */
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 32%) !important; 
    border-radius: 10px;
    border: 2px solid #030305; /* Cria uma margem interna invisível */
}

/* Interação ao passar o mouse */
::-webkit-scrollbar-thumb:hover {
    background: var(--brand) !important; /* Acende com a cor da marca */
    border-color: #030305;
}

/* Canto onde a barra vertical e horizontal se encontram */
::-webkit-scrollbar-corner {
    background: #030305;
}

/* Força o fundo translúcido amarelo/laranja e a borda */
.alert-warning, .bg-warning-subtle, .card.bg-warning-subtle {
    background-color: rgba(255, 174, 31, 0.1) !important;
    border: 1px solid rgba(255, 174, 31, 0.3) !important;
    padding: 20px !important;
    border-radius: 12px !important;
}

/* O Título / Texto em negrito (Chama a atenção) */
.alert-warning strong, .alert-warning b, .alert-warning h1, .alert-warning h2, 
.alert-warning h3, .alert-warning h4, .alert-warning h5, .alert-warning h6 {
    color: #FFAE1F !important; /* Amarelo vibrante */
    font-size: 1.05rem !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* O texto explicativo (Branco/Cinza claro para leitura confortável) */
.alert-warning p, .alert-warning span:not(.font-weight-bold),
.bg-warning-subtle p, .bg-warning-subtle span:not(.font-weight-bold) {
    color: #e4e4e7 !important; 
    line-height: 1.6 !important;
}

/* =========================================================
   FIX: APEXCHARTS TOOLTIPS E CROSSHAIRS (DARK MODE)
========================================================= */

/* 1. Tooltip Principal (A caixa flutuante com os dados) */
.apexcharts-tooltip {
    background: #0a0a0e !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

/* 2. Cabeçalho do Tooltip Principal (ex: Data 19/02) */
.apexcharts-tooltip-title {
    background: rgba(255, 255, 255, 0.03) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
    color: #ffffff !important;
}

/* 3. Textos da Série no Tooltip */
.apexcharts-tooltip-text-y-value, 
.apexcharts-tooltip-text-y-label, 
.apexcharts-tooltip-text-z-value {
    color: #e4e4e7 !important;
    font-family: 'Inter', sans-serif !important;
}

/* 4. Tooltip do Eixo X (A caixa colada no eixo de baixo) */
.apexcharts-xaxistooltip {
    background: #0a0a0e !important;
    border: 1px solid var(--brand) !important; /* Destaque com o roxo da marca */
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
}

/* Ajuste da setinha (triângulo) do Tooltip do Eixo X */
.apexcharts-xaxistooltip-bottom:before {
    border-bottom-color: var(--brand) !important;
}
.apexcharts-xaxistooltip-bottom:after {
    border-bottom-color: #0a0a0e !important;
}

/* Ajuste da setinha caso o tooltip vá para o topo do eixo X */
.apexcharts-xaxistooltip-top:before {
    border-top-color: var(--brand) !important;
}
.apexcharts-xaxistooltip-top:after {
    border-top-color: #0a0a0e !important;
}

/* Tooltip do Eixo Y (Caso ativado no futuro) */
.apexcharts-yaxistooltip {
    background: #0a0a0e !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* 5. Crosshair (A linha guia pontilhada) */
.apexcharts-xcrosshairs, 
.apexcharts-ycrosshairs {
    stroke: rgba(255, 255, 255, 0.15) !important;
}

/* =========================================================
   FIX: CORES DAS LINHAS E MARCADORES (APEXCHARTS)
========================================================= */

/* 1. A Linha Principal do Gráfico */
.apexcharts-series path {
    stroke: #9d6df0 !important; /* Roxo claro da marca (Brand Light) */
}

/* 2. Opcional: Se o gráfico tiver preenchimento embaixo da linha (Area Chart) */
.apexcharts-series .apexcharts-area {
    fill: rgba(118, 62, 189, 0.2) !important;
    stroke: none !important;
}

/* 3. O marcador (a bolinha que corre em cima da linha ao passar o mouse) */
.apexcharts-marker {
    fill: #9d6df0 !important;
    stroke: #0a0a0e !important; /* Borda da cor do painel para dar contraste */
    stroke-width: 2px !important;
}

/* 4. A bolinha azul que ficou dentro da caixa do Tooltip */
.apexcharts-tooltip-marker {
    background-color: #9d6df0 !important;
}

/* =========================================================
   FIX: GRÁFICOS DE BARRA (APEXCHARTS)
========================================================= */

/* 1. A Cor da Barra */
.apexcharts-bar-series path {
    fill: #763ebd !important; /* Roxo da marca (Brand) */
    stroke: #0a0a0e !important; /* Cria um contorno na cor do fundo para separar barras juntas */
    stroke-width: 2px !important;
    transition: fill 0.2s ease !important;
}

/* 2. Efeito Luminoso ao passar o mouse (Hover) na barra */
.apexcharts-bar-series path:hover {
    fill: #9d6df0 !important; /* Acende para o roxo claro (Brand Light) */
}

/* 3. A "Barra Fantasma" (O bloco cinza que aparece atrás no hover) */
.apexcharts-xcrosshairs {
    fill: rgba(118, 62, 189, 0.08) !important; /* Troca o cinza por um roxo bem translúcido */
    stroke: none !important;
}

/* 4. Números dentro das barras (ex: 32, 14, 8) */
.apexcharts-datalabel {
    fill: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
}

@media (min-width: 1200px) {
    #main-wrapper[data-layout=vertical][data-sidebartype=full] .body-wrapper {
        margin-left: 260px;
    }
}