/* PERSONALIZAÇÃO CORES */
.bg-sistema {
   background-color: #ac00d3;
   color: white;
}

.icon i:hover {
   background-color: #00A0D3;
 }

.text-sistema {
   color: #ac00d3;
}

.link-sistema{
   color: #ac00d3!important;
   text-decoration: none!important;
}

.link-sistema:hover{
   color: #73048c!important;
   text-decoration: none!important;
}

.card-sistema.card-outline {
   border-top: 3px solid #ac00d3;
 }

/* ==========================================================================
   PERSONALIZAÇÃO DA SIDEBAR (VISUAL PREMIUM)
   Background principal: #00325F
   ========================================================================== */

/* 1. Fundo da Sidebar / Brand Logo */
.main-sidebar[class*="sidebar-dark-"] {
  background: linear-gradient(180deg, var(--tema-cor-primaria, #00325F) 0%, color-mix(in srgb, var(--tema-cor-primaria, #00325F) 78%, var(--tema-cor-secundaria, #00CCFF)) 54%, var(--tema-cor-secundaria, #00CCFF) 150%) !important;
  background-color: var(--tema-cor-primaria, #00325F) !important;
}

[class*="sidebar-dark-"] .brand-link {
  border-bottom: 1px solid var(--tema-cor-secundaria, rgba(255, 255, 255, 0.1)) !important; 
  color: #ffffff !important;
  background-color: transparent !important;
}

[class*="sidebar-dark-"] .brand-link .brand-text {
  font-size: 1rem !important;
}

[class*="sidebar-dark-"] .user-panel {
  border-bottom: 1px solid var(--tema-cor-secundaria, rgba(255, 255, 255, 0.1)) !important;
}

/* 2. Textos e Ícones padronizados para Branco */
[class*="sidebar-dark-"] .nav-sidebar .nav-link,
[class*="sidebar-dark-"] .nav-sidebar .nav-link p,
[class*="sidebar-dark-"] .nav-sidebar .nav-link .nav-icon {
  color: #ffffff !important;
}

/* 3. Ajuste de Estrutura dos Menus (Bordas Arredondadas em repouso) */
[class*="sidebar-dark-"] .nav-sidebar .nav-link {
  border-radius: 8px !important;       /* Arredondamento premium, não flat */
  margin: 2px 8px !important;          /* Margem para desgrudar das bordas */
  width: calc(100% - 16px) !important; /* Ajuste da largura */
  transition: all 0.3s ease-in-out;    /* Efeito de transição suave */
}

/* 4. Efeito HOVER Premium (Fundo translúcido que combina com #00325F) */
[class*="sidebar-dark-"] .nav-sidebar .nav-item:hover > .nav-link {
  background-color: var(--tema-cor-secundaria, #00CCFF) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16) !important;
}

/* 5. Menu ATIVO (Destaque maior c/ leve sombra, sem borda lateral agressiva) */
[class*="sidebar-dark-"] .nav-sidebar .nav-item > .nav-link.active {
  background-color: color-mix(in srgb, var(--tema-cor-secundaria, #00CCFF) 74%, #ffffff) !important;
  color: #ffffff !important;
  border-left: none !important;        /* Remoção da barra lateral flat antiga */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important; /* Sombra sutil */
}



/* USUARIO LOGADO NA TOPBAR */
.main-header .usuario-topbar,
.main-header .usuario-topbar i,
.main-header .usuario-topbar span {
  color: var(--tema-cor-primaria, #00325F) !important;
  transition: color .2s ease;
}

.main-header .usuario-topbar:hover,
.main-header .usuario-topbar:hover i,
.main-header .usuario-topbar:hover span,
.main-header .usuario-topbar:focus,
.main-header .usuario-topbar:focus i,
.main-header .usuario-topbar:focus span {
  color: var(--tema-cor-secundaria, #00CCFF) !important;
}

/* ICONE DO DASHBOARD */
.icon_armando {
  position: absolute;
  font-size: 70px;
  right: 15px;
  top: 0px;
  color: rgba(0, 0, 0, .25);
}



.toTop {
   cursor: pointer;
   position: fixed;
   bottom: 55px;
   right: 20px;
   display:none;
   z-index: 10;
   opacity: 0.85;
   background: linear-gradient(135deg, var(--tema-cor-primaria, #00325F), var(--tema-cor-secundaria, #00CCFF)) !important;
   border: none !important;
   color: #ffffff !important;
   box-shadow: 0 8px 18px rgba(0, 50, 95, 0.25);
   transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease;
}

.toTop:hover {
   opacity: 1;
   color: #ffffff !important;
   transform: translateY(-2px);
   box-shadow: 0 10px 24px rgba(0, 50, 95, 0.32);
}



/* 1) Congela layout dos rótulos (sem transição de margem/visibilidade) */
.sidebar .nav-link p,
.main-sidebar .brand-text,
.sidebar .user-panel .info {
  transition: opacity .2s ease !important; /* só opacidade */
}

/* 2) Evita “empurrões” durante o abrir/fechar */
.nav-sidebar .nav-link p {
  white-space: nowrap;     /* sem quebra */
  margin-left: 0 !important;
  transform: translateZ(0); /* suaviza sub-pixel */
}

/* 3) Neutraliza os empurrões do modo colapsado (sem width:0 / margin-left:-10px) */
.sidebar-mini.sidebar-collapse .nav-sidebar .nav-link p,
.sidebar-mini-md.sidebar-collapse .nav-sidebar .nav-link p,
.sidebar-mini-xs.sidebar-collapse .nav-sidebar .nav-link p {
  margin-left: 0 !important;
  width: auto !important;
  /* Em colapsado, esconda só no visual para não causar reflow */
  opacity: 0 !important;
  visibility: visible !important; /* evita alternância de “visibility” que reposiciona */
  pointer-events: none; /* não clica no texto quando colapsado */
  overflow: hidden;
}

/* 4) Quando o sidebar estiver aberto/focado/hover, texto visível sem saltos */
.sidebar-mini.sidebar-collapse .main-sidebar:hover .nav-sidebar .nav-link p,
.sidebar-mini.sidebar-collapse .main-sidebar.sidebar-focused .nav-sidebar .nav-link p,
.sidebar-mini-md.sidebar-collapse .main-sidebar:hover .nav-sidebar .nav-link p,
.sidebar-mini-md.sidebar-collapse .main-sidebar.sidebar-focused .nav-sidebar .nav-link p,
.sidebar-mini-xs.sidebar-collapse .main-sidebar:hover .nav-sidebar .nav-link p,
.sidebar-mini-xs.sidebar-collapse .main-sidebar.sidebar-focused .nav-sidebar .nav-link p {
  opacity: 1 !important;
}

/* 5) Reserva largura fixa para os ícones (texto não “anda” para alinhar) */
.nav-sidebar > .nav-item .nav-icon,
.nav-sidebar .nav-treeview > .nav-item > .nav-link > .nav-icon {
  min-width: 1.6rem; /* mesmo valor já usado por você */
  text-align: center;
}

/* Zera scroll HORIZONTAL na região da sidebar, mantém o VERTICAL quando necessário */
.main-sidebar,
.main-sidebar .sidebar,
.nav-sidebar { 
  overflow-x: hidden !important;
}

.nav-sidebar:hover {
  overflow-x: hidden !important; /* sobrepõe o overflow: visible do hover */
  overflow-y: auto;              /* continua rolando verticalmente */
}

/* Garante o travamento do eixo X em todos os modos colapsados */
.sidebar-mini.sidebar-collapse .main-sidebar,
.sidebar-mini-md.sidebar-collapse .main-sidebar,
.sidebar-mini-xs.sidebar-collapse .main-sidebar {
  overflow-x: hidden !important;
}


/* efeito zoom modal */
.modal-zoom .modal-dialog {
    transform: scale(0.8);
    transition: transform .25s ease-out;
}

.modal-zoom.show .modal-dialog {
    transform: scale(1);
}


/* TELA DE CONFIGURACAO - BOTOES */
.btn-group-responsive {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.btn-group-responsive .btn {
  flex: 1 1 auto;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .btn-group-responsive .btn {
    flex: 0 0 50%;
    max-width: 50%;
  }
}


/* TOM SELECT */
/* ===== TOM SELECT BOOTSTRAP STYLE ===== */
.ts-dropdown .option:hover, .ts-dropdown .option.active {
    background-color: #2196F3 !important;
    color: #fff !important;
}

.ts-dropdown [data-selectable] .highlight {
    background: #072b49 !important;
    color: #fff !important;
}

.ts-control, .ts-control input, .ts-dropdown {
    color: #0e83b7 !important;
}

.ts-control .item {
    color: #495057;
}


/* GRID HORARIOS NA AGENDA */
.btn-horario {
    background-color: lightcyan ;     
    border: 1px solid #626b64;      
    color: #000;
    border-radius: 6px;
    padding: 5px 0;
    width: 100%;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn-horario:hover {
    background-color: lightgreen;
}

.btn-horario.active {
    background-color: lightgreen;       /* azul */
    color: green;
    border-color: green;
    font-weight: bold;
}

.encaixe-card {
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.96)),
        linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(10, 43, 73, 0.12));
    box-shadow: 0 10px 24px rgba(10, 43, 73, 0.08);
}

.ultimo-atendimento-info {
    margin-top: 8px;
    padding: 9px 11px;
    border: 1px solid rgba(108, 117, 125, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 250, 0.92));
    box-shadow: 0 8px 18px rgba(10, 43, 73, 0.06);
    font-size: 0.86rem;
    line-height: 1.25;
}

.encaixe-switch .custom-control-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding-top: 0;
}

.encaixe-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #9a6b00;
    background: linear-gradient(135deg, #fff4bd, #f1c95c);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.encaixe-switch strong {
    display: block;
    color: #17233c;
    font-size: 0.95rem;
    line-height: 1.15;
}

.encaixe-switch small {
    display: block;
    color: #6c5b2a;
    line-height: 1.25;
}

.encaixe-hora {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.28);
}

.horarios-alerta-premium {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    border: 1px solid rgba(220, 53, 69, 0.28);
    border-radius: 8px;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 247, 0.97)),
        linear-gradient(135deg, rgba(220, 53, 69, 0.14), rgba(120, 28, 44, 0.08));
    box-shadow: 0 12px 28px rgba(120, 28, 44, 0.12);
    color: #243044;
}

.horarios-alerta-icone {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #dc3545, #9f1f31);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.74);
}

.horarios-alerta-conteudo {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.horarios-alerta-conteudo strong {
    color: #8f1d2c;
    font-size: 0.96rem;
    line-height: 1.25;
}

.horarios-alerta-conteudo span,
.horarios-alerta-conteudo li {
    color: #6f3340;
    font-size: 0.86rem;
    line-height: 1.35;
}

.horarios-alerta-conteudo ul {
    margin: 6px 0 0;
    padding-left: 16px;
}

.horarios-alerta-conteudo li + li {
    margin-top: 3px;
}

@media (max-width: 420px) {
    .horarios-alerta-premium {
        padding: 12px;
    }

    .horarios-alerta-icone {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
}


/* TABELA MOBILE */
@media (max-width: 767.98px) {
    .td-mobile {
        cursor: pointer;
    }
}

/* TABELA STRIPED PERSONALIZADA */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: color-mix(in srgb, var(--tema-cor-secundaria, #00CCFF), white 90%) !important;
}

/* ==========================================================================
   LOADER AJAX FULLSCREEN PREMIUM (PJAX)
   ========================================================================== */
.loader-ajax-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none; /* Inicia oculto, o JS mostra com flex */
    align-items: center;
    justify-content: center;
}

.loader-ajax-page .loader-spinner {
    color: var(--tema-cor-primaria, #00325F);
}

.loader-bootstrap-spinner {
    width: 3rem;
    height: 3rem;
    border-width: .28rem;
    color: var(--tema-cor-primaria, #00325F);
}

.loader-texto {
    color: var(--tema-cor-primaria, #00325F);
    font-weight: 600;
}


/* ==========================================================================
   VISUAL DOS SUB-ITENS DA SIDEBAR (CORREÇÃO DE ESPECIFICIDADE)
   ========================================================================== */

/* 1. Bloqueia backgrounds e sombras em sub-itens */
.nav-sidebar .nav-treeview .nav-item:hover > .nav-link,
.nav-sidebar .nav-treeview .nav-item > .nav-link.active {
  background-color: transparent !important;
  box-shadow: none !important;
}

/* 2. Estilo Base (Garante o Branco) */
[class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu,
[class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu p,
[class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu i {
  color: #ffffff !important;
  transition: all 0.2s ease-in-out !important;
  background-color: transparent !important;
}

/* 3. Hover (Garante o Azul Claro vencendo a regra global) */
[class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu:hover,
[class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu:hover p,
[class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu:hover i {
  color: var(--tema-cor-secundaria, #00CCFF) !important;
  background-color: transparent !important;
}

/* 4. Ajustes de alinhamento */
.link-sub-menu {
  margin-left: 5px !important;
  width: calc(100% - 13px) !important;
  padding-left: 10px !important;
}

/* ==========================================================================
   TELA DE PERSONALIZACAO
   Inspirada nos cards premium de configuracao, sem alterar fonte global.
   ========================================================================== */
.pers-page {
  --pers-cor-primaria: #00325F;
  --pers-cor-secundaria: #00CCFF;
  padding-bottom: 24px;
}

.pers-page h6,
.pers-page-header h6 {
  font-weight: 700;
}

.pers-page-header {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.pers-header-icon,
.pers-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
}

.pers-header-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #00325F, #00CCFF);
  box-shadow: 0 10px 24px rgba(0, 50, 95, 0.25);
}

.pers-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

.pers-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0f4;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

.pers-card-body {
  padding: 20px;
}

.pers-card-icon {
  color: var(--pers-cor-primaria);
  background: rgba(0, 50, 95, 0.08);
}

.pers-bg-azul {
  color: #2563eb;
  background: #dbeafe;
}

.pers-bg-roxo {
  color: #7c3aed;
  background: #ede9fe;
}

.pers-bg-verde {
  color: #059669;
  background: #d1fae5;
}

.pers-bg-dourado {
  color: #b45309;
  background: #fef3c7;
}

.pers-label {
  display: block;
  color: #374151;
  margin-bottom: 8px;
  font-weight: 600;
}

.pers-temas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
}

.pers-tema-btn {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.pers-tema-btn:hover,
.pers-tema-btn.ativo {
  border-color: var(--pers-cor-primaria);
  background: rgba(0, 50, 95, 0.04);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.pers-tema-preview {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: 0 0 36px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 6px 14px rgba(15, 23, 42, 0.16);
}

.pers-tema-nome {
  font-weight: 600;
  font-size: .82rem;
  line-height: 1.15;
  text-align: left;
}

.pers-divisor {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
}

.pers-divisor::before,
.pers-divisor::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e5e7eb;
}

.pers-color-field {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pers-color-field:focus-within {
  border-color: var(--pers-cor-primaria);
  box-shadow: 0 0 0 3px rgba(0, 50, 95, 0.10);
}

.pers-color-preview {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  cursor: pointer;
}

.pers-color-picker {
  position: absolute;
  left: 0;
  width: 46px;
  height: 46px;
  opacity: 0;
  cursor: pointer;
}

.pers-color-text {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.pers-preview {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.pers-preview-gradient {
  min-height: 74px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.pers-preview-footer {
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pers-color-pill {
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 14px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.pers-upload-area {
  min-height: 148px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease;
}

.pers-upload-area:hover {
  border-color: var(--pers-cor-primaria);
  background: #ffffff;
}

.pers-upload-img {
  max-width: 100%;
  max-height: 142px;
  object-fit: contain;
}

.pers-upload-placeholder {
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pers-upload-placeholder i {
  opacity: .55;
}

.pers-upload-btn {
  color: var(--pers-cor-primaria);
  background: rgba(0, 50, 95, 0.07);
  border: 1px solid rgba(0, 50, 95, 0.15);
  border-radius: 10px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}

.pers-upload-btn:hover {
  background: rgba(0, 50, 95, 0.12);
  transform: translateY(-1px);
}

.pers-browser-preview {
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  border-radius: 12px 12px 6px 6px;
  padding: 12px 12px 0;
}

.pers-browser-tab {
  max-width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border-radius: 10px 10px 0 0;
  padding: 9px 12px;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.08);
}

.pers-favicon-box {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.pers-favicon-box img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.pers-browser-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
}

.pers-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 -10px 28px rgba(15, 23, 42, 0.07);
}

.pers-save-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 22px;
  color: #ffffff;
  background: #28a745;
  box-shadow: none;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}

.pers-save-btn:hover {
  background: #218838;
}

.pers-save-btn:disabled {
  opacity: .75;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 767.98px) {
  .pers-page-header,
  .pers-card-body,
  .pers-card-header {
    padding: 16px;
  }

  .pers-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .pers-save-btn {
    width: 100%;
  }
}

/* ==========================================================================
   CENTRAL DE RELATÓRIOS (VISUAL PREMIUM)
   ========================================================================== */
.report-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.category-header i {
    font-size: 1.25rem;
    color: var(--tema-cor-primaria);
}

.category-header span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.report-card:hover {
    border-color: var(--tema-cor-secundaria);
    background: #f8fafc;
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.report-card .icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: color-mix(in srgb, var(--tema-cor-primaria), transparent 90%);
    color: var(--tema-cor-primaria);
    transition: all 0.3s ease;
}

.report-card .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.report-card:hover .icon-box {
    background: var(--tema-cor-primaria);
    color: #ffffff;
    transform: scale(1.1);
}

.report-card .card-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.report-card .card-desc {
    margin: 2px 0 0 !important;
    padding: 0 !important;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.3;
}

.report-card .chevron-icon {
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.report-card:hover .chevron-icon {
    color: var(--tema-cor-secundaria);
    transform: translateX(4px);
}

/* Temas de Cores para Seções */
.theme-emerald .category-header i { color: #10b981; }
.theme-emerald .report-card:hover { border-color: #10b981; }
.theme-emerald .report-card .icon-box { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.theme-emerald .report-card:hover .icon-box { background: #10b981; color: #fff; }

.theme-amber .category-header i { color: #f59e0b; }
.theme-amber .report-card:hover { border-color: #f59e0b; }
.theme-amber .report-card .icon-box { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.theme-amber .report-card:hover .icon-box { background: #f59e0b; color: #fff; }

.theme-blue .category-header i { color: #3b82f6; }
.theme-blue .report-card:hover { border-color: #3b82f6; }
.theme-blue .report-card .icon-box { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.theme-blue .report-card:hover .icon-box { background: #3b82f6; color: #fff; }

.theme-rose .category-header i { color: #f43f5e; }
.theme-rose .report-card:hover { border-color: #f43f5e; }
.theme-rose .report-card .icon-box { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }
.theme-rose .report-card:hover .icon-box { background: #f43f5e; color: #fff; }

/* BOTÃO PREMIUM */
.btn-premium {
    background: linear-gradient(135deg, var(--tema-cor-primaria, #00325F), var(--tema-cor-secundaria, #00CCFF)) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 50, 95, 0.2) !important;
}

.btn-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 50, 95, 0.3) !important;
    filter: brightness(1.1) !important;
    color: #ffffff !important;
}

.btn-premium:active {
    transform: translateY(0) !important;
}

/* ==========================================================================
   REFORMULACAO FINAL DA SIDEBAR
   ========================================================================== */

body .main-sidebar[class*="sidebar-dark-"] {
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--tema-cor-primaria, #00325F) 94%, #000000 6%) 0%,
      color-mix(in srgb, var(--tema-cor-primaria, #00325F) 76%, var(--tema-cor-secundaria, #00CCFF) 24%) 52%,
      color-mix(in srgb, var(--tema-cor-secundaria, #00CCFF) 84%, var(--tema-cor-primaria, #00325F) 16%) 100%) !important;
  background-color: var(--tema-cor-primaria, #00325F) !important;
}

body .main-sidebar .sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--tema-cor-secundaria, #00CCFF) color-mix(in srgb, var(--tema-cor-primaria, #00325F) 78%, transparent);
}

body .main-sidebar .sidebar::-webkit-scrollbar {
  width: 8px;
}

body .main-sidebar .sidebar::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--tema-cor-primaria, #00325F) 78%, transparent);
}

body .main-sidebar .sidebar::-webkit-scrollbar-thumb {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--tema-cor-secundaria, #00CCFF) 88%, #ffffff 12%),
      var(--tema-cor-secundaria, #00CCFF));
  border: 2px solid color-mix(in srgb, var(--tema-cor-primaria, #00325F) 72%, transparent);
  border-radius: 999px;
}

body [class*="sidebar-dark-"] .brand-link {
  border-bottom-color: color-mix(in srgb, var(--tema-cor-secundaria, #00CCFF) 42%, transparent) !important;
  background-color: transparent !important;
  color: #ffffff !important;
}

body [class*="sidebar-dark-"] .brand-link .brand-text {
  font-weight: 600 !important;
}

body [class*="sidebar-dark-"] .nav-sidebar .nav-link,
body [class*="sidebar-dark-"] .nav-sidebar .nav-link p,
body [class*="sidebar-dark-"] .nav-sidebar .nav-link i {
  color: rgba(255, 255, 255, 0.82) !important;
}

body [class*="sidebar-dark-"] .nav-sidebar > .nav-item > .nav-link {
  border-left: 4px solid transparent !important;
  border-radius: 8px !important;
  margin: 3px 7px !important;
  width: calc(100% - 14px) !important;
  box-shadow: none !important;
  transition: background-color .15s ease, color .15s ease;
}

body [class*="sidebar-dark-"] .nav-sidebar > .nav-item:hover > .nav-link {
  background-color: color-mix(in srgb, var(--tema-cor-secundaria, #00CCFF) 18%, #ffffff 8%) !important;
  box-shadow: none !important;
}

body [class*="sidebar-dark-"] .nav-sidebar > .nav-item:hover > .nav-link,
body [class*="sidebar-dark-"] .nav-sidebar > .nav-item:hover > .nav-link p,
body [class*="sidebar-dark-"] .nav-sidebar > .nav-item:hover > .nav-link i {
  color: #ffffff !important;
}

body [class*="sidebar-dark-"] .nav-sidebar > .nav-item > .nav-link.active {
  background-color: color-mix(in srgb, var(--tema-cor-secundaria, #00CCFF) 20%, #ffffff 8%) !important;
  border-left: 4px solid #ffffff !important;
  box-shadow: none !important;
}

body [class*="sidebar-dark-"] .nav-sidebar > .nav-item > .nav-link.active,
body [class*="sidebar-dark-"] .nav-sidebar > .nav-item > .nav-link.active p,
body [class*="sidebar-dark-"] .nav-sidebar > .nav-item > .nav-link.active i {
  color: #ffffff !important;
  font-weight: 700 !important;
}

body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview {
  margin: 2px 7px 8px 7px !important;
  padding: 4px 0 4px 12px !important;
  border-left: 1px solid color-mix(in srgb, var(--tema-cor-secundaria, #00CCFF) 48%, transparent) !important;
}

body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu {
  position: relative;
  min-height: 34px;
  margin: 1px 0 !important;
  padding: 7px 10px 7px 19px !important;
  width: 100% !important;
  border-left: 0 !important;
  border-radius: 8px !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--tema-cor-secundaria, #00CCFF) 76%, #ffffff 24%);
  transform: translateY(-50%);
}

body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu i {
  display: none !important;
}

body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu,
body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu p {
  color: rgba(255, 255, 255, 0.66) !important;
  font-weight: inherit !important;
}

body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu:hover {
  background-color: color-mix(in srgb, var(--tema-cor-secundaria, #00CCFF) 18%, #ffffff 6%) !important;
  box-shadow: none !important;
}

body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu:hover,
body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu:hover p {
  color: #ffffff !important;
}

body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu.active {
  background-color: transparent !important;
  border-left-color: transparent !important;
  box-shadow: none !important;
}

body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu.active,
body [class*="sidebar-dark-"] .nav-sidebar .nav-treeview .link-sub-menu.active p {
  color: rgba(255, 255, 255, 0.66) !important;
  font-weight: inherit !important;
}
