:root {
    /* Paleta Principal */
    --main-color: #d6b066;
    --main-dark: #b8950a;
    --main-light: #f0d83d;
    --main-rgb: 214, 176, 6;

    /* Cores Utilitárias */
    --white-color: #ffffff;

    /* Cores de Feedback */
    --primary-color: #0d6efd;     /* azul padrão Bootstrap */
    --secondary-color: #6c757d;   /* cinza */
    --success-color: #198754;     /* verde */
    --danger-color: #dc3545;      /* vermelho */
    --warning-color: #ffc107;     /* amarelo */
    --info-color: #0dcaf0;        /* azul claro */
    --light-color: #f8f9fa;       /* cinza claro */
    --dark-color: #212529;

    /* Tema Claro (Light Mode) */
    --bs-body-bg: #f1f5f9; /* cinza bem claro */
    --bs-body-color: #334155;
    --component-bg: #ffffff;
    --component-border: #e2e8f0;
    --text-muted: #64748b;
    --heading-color: #1e293b;

    /* Mapeamento para Variáveis do Bootstrap */
    --bs-main: var(--main-color);
    --bs-main-rgb: var(--main-rgb);
    --bs-success: var(--success-color);
    --bs-danger: var(--danger-color);
    --bs-warning: var(--warning-color);
    --bs-info: var(--info-color);
    --bs-border-color: var(--component-border);
    --bs-border-radius: 12px;
    --bs-border-radius-lg: 16px;

    --form-padding-y-sm: 0.25rem;
    --form-padding-x-sm: 0.5rem;
    --form-font-size-sm: 0.8rem;

    --info-rgb: 2, 132, 199;

    /* Sombras e Transições */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.07), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-golden: 0 8px 24px rgba(var(--main-rgb), 0.2);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --toast-radius: 12px;
    --toast-shadow: 0 8px 24px rgba(0,0,0,.15);
    --toast-width: 320px;
}



[data-theme="dark"] {
    --bs-body-bg: #0f172a; /* azul escuro */
    --bs-body-color: #cbd5e1;
    --component-bg: #1e293b;
    --component-border: #334155;
    --text-muted: #94a3b8;
    --heading-color: #f1f5f9;

    /* Ajuste para branco em dark mode */
    --white-color: #f8fafc; /* quase branco, menos estourado */
}

.text-main {
    color: var(--main-color) !important;
}

.btn-main {
    /* Fundo em gradiente usando as cores da marca */
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-dark) 100%);
    color: var(--white-color);
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-main:hover {
    color: var(--white-color); /* Garante que a cor do texto não mude */
    transform: translateY(-3px);
    /* Empilha duas sombras: uma de profundidade (md) e o brilho dourado */
    box-shadow: var(--shadow-md), var(--shadow-golden);
}

.btn-main:focus {
    color: var(--white-color);
    transform: translateY(-3px);
    /* Empilha as sombras do hover + o anel de foco do Bootstrap */
    box-shadow: var(--shadow-md), var(--shadow-golden), 0 0 0 4px rgba(var(--main-rgb), 0.25);
    outline: none; /* Remove o outline padrão para usar o box-shadow */
}

.btn-main:active {
    transform: translateY(1px);
    box-shadow: var(--shadow-sm);
    /* Opcional: pode escurecer um pouco o fundo ao pressionar */
    background: var(--main-dark);
}

.btn-main:disabled,
.btn-main.disabled {
    background: var(--main-color); /* Volta para uma cor sólida e sem vida */
    opacity: 0.65;
    box-shadow: none;
    transform: none;
    pointer-events: none; /* Desabilita eventos de clique e hover */
}

@font-face {
    font-family: 'PoppinsRegular';

    src: url('../fonts/poppins-regular.otf') format('opentype');

    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'PoppinsRegular', "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 600;
}

.demo-alerta {
    font-weight: bold;
    color: var(--main-color);
    text-shadow: var(--shadow-lg);
    font-size: 0.8em;
    position: relative;
    top: -5px;
}

.app-header {
    background-color: transparent;
    border-bottom: none;
    /* position: sticky; */
    top: 0;
    z-index: 1030;
    padding: 0.5rem 0;
}

.header-container {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;

    background-color: var(--component-bg);
    border: 1px solid var(--component-border);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--shadow-lg);

    transition: var(--transition);
}

.header-search {
    max-width: 350px;
    width: 100%;
}
.header-search .form-control {
    border-radius: var(--bs-border-radius) !important;
    padding-left: 2.5rem;
    background-color: color-mix(in srgb, var(--bs-body-bg) 50%, var(--component-bg));
    border: none;
}
.header-search .input-group-text {
    background-color: transparent;
    border: none;
    position: absolute;
    z-index: 4;
    color: var(--text-muted);
}

.text-muted{
    color: var(--text-muted) !important;
}

.btn-ghost {
    background-color: transparent !important;
    border: none !important;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0.5rem 0.75rem;
    box-shadow: none !important;
}

.btn-ghost:hover {
    color: var(--heading-color);
    transform: scale(1.1);
}


.app-main {
    /*padding-top: 1rem;
    padding-bottom: 2rem;*/
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.app-footer {
    background-color: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 1rem 0;
    text-align: center;
}

.card {
    background-color: var(--component-bg);
    border: 1px solid var(--bs-border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--main-color);
}
.card-header {
    background-color: color-mix(in srgb, var(--bs-body-bg) 50%, var(--component-bg));
    border-bottom: 1px solid var(--bs-border-color);
    font-weight: 600;
    color: var(--heading-color);
}

.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card .card-body {
    position: relative;
    z-index: 1;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color) 0%, var(--main-light) 100%);
    z-index: 2;
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--bs-border-radius);
    background: rgba(var(--main-rgb), 0.1);
    color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--heading-color);
}
.stat-change.positive { color: var(--success-color); }
.stat-change.negative { color: var(--danger-color); }

.btn {
    transition: var(--transition);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
}
.btn-main {
    box-shadow: var(--shadow-sm);
}
.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-golden);
}

.form-control, .form-select {
    background-color: var(--component-bg);
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    background-color: var(--component-bg);
    color: var(--bs-body-color);
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(var(--main-rgb), 0.15);
}
.form-label {
    font-weight: 500;
    color: var(--text-muted);
}

.table {
    --bs-table-bg: var(--component-bg);
    --bs-table-striped-bg: color-mix(in srgb, var(--bs-body-bg) 50%, var(--component-bg));
    --bs-table-hover-bg: rgba(var(--main-rgb), 0.05);
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-color: var(--bs-body-color);
}
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    /*text-transform: uppercase;
    letter-spacing: 0.5px;*/
    color: var(--text-muted);
}
.table td {
    vertical-align: middle;
}

/* Badges de Status */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid transparent;
}
.status-badge::before {
    content: '●';
    font-size: 1rem;
    line-height: 1;
}
.status-ativo {
    background-color: rgba(var(--bs-success-rgb), 0.1);
    color: var(--success-color);
    border-color: rgba(var(--bs-success-rgb), 0.2);
}
.status-pendente {
    background-color: rgba(var(--bs-warning-rgb), 0.1);
    color: var(--warning-color);
    border-color: rgba(var(--bs-warning-rgb), 0.2);
}
.status-importador {
    background-color: rgba(var(--bs-info-rgb), 0.1);
    color: var(--info-color);
    border-color: rgba(var(--bs-info-rgb), 0.2);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--component-bg);
    border-color: var(--component-border);
}

[data-theme="dark"] .dropdown-menu .dropdown-item {
    color: var(--bs-body-color);
}

[data-theme="dark"] .dropdown-menu .dropdown-item:hover,
[data-theme="dark"] .dropdown-menu .dropdown-item:focus {
    background-color: color-mix(in srgb, var(--bs-body-bg) 70%, var(--component-bg));
    color: var(--heading-color);
}

.dropdown-menu .dropdown-item.dropdown-logout {
    background-color: #dc3545; /* vermelho Bootstrap danger */
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.dropdown-menu .dropdown-item.dropdown-logout:hover,
.dropdown-menu .dropdown-item.dropdown-logout:focus {
    background-color: #bb2d3b; /* red mais escuro */
    color: #fff;
}

.page-title-bar {
    text-align: center;
    padding: 0.6rem;
    margin-bottom: 2rem;
    background-color: var(--component-bg);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--component-border);
}

.page-title-bar h3 {
    margin: 0;
    padding: 0.5rem 0;
    font-weight: 600;
    color: var(--heading-color);
}

.page-breadcrumb-bar {
    padding: 1rem;
    margin-bottom: 0.5rem;
    margin-bottom: 1rem;
    background-color: #F8F9FA;
    border-radius: var(--bs-border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--component-border);
}

.page-breadcrumb-bar h2 {
    margin: 0;
    padding: 0.5rem 0;
    font-weight: 600;
    color: var(--heading-color);
}

/* O card de módulo clicável */
.module-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;

    background-color: var(--component-bg);
    border: 1px solid var(--component-border);
    border-radius: var(--bs-border-radius-lg); /* Cantos bem arredondados */
    box-shadow: var(--shadow-md);

    transition: var(--transition);
}

/* Efeito de elevação e brilho no hover */
.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--main-color);
}

/* O círculo que contém o ícone (o placeholder) */
.module-card-icon {
    flex-shrink: 0; /* Previne que o ícone encolha */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem; /* Tamanho do ícone dentro do círculo */
}

/* Conteúdo de texto ao lado do ícone */
.module-card-content h5 {
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.module-card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Variantes de Cor para os Ícones */
.icon-bg-main {
    background-color: rgba(var(--bs-info-rgb, 2, 132, 199), 0.1);
    color: var(--info-color);
}
.icon-bg-main {
    background-color: rgba(var(--main-rgb), 0.1);
    color: var(--main-color);
}
.icon-bg-success {
    background-color: rgba(var(--bs-success-rgb), 0.1);
    color: var(--success-color);
}
.icon-bg-warning {
    background-color: rgba(var(--warning-rgb, 245, 158, 11), 0.1);
    color: var(--warning-color);
}
.icon-bg-danger {
    background-color: rgba(var(--bs-danger-rgb), 0.1);
    color: var(--danger-color);
}

.module-card {
    display: flex;
    align-items: center;
    gap: 1.25rem; /* Espaçamento entre ícone e texto */
    padding: 1.25rem;
    text-decoration: none;

    background-color: var(--component-bg);
    border: 1px solid var(--component-border);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--shadow-md);

    transition: var(--transition);
}

.module-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--main-color);
}

/* O círculo que contém a imagem */
.module-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Garante que a imagem seja cortada em círculo */
}

.module-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cobre o círculo sem distorcer a imagem */
}

/* NOVO: Container para os textos, agora em coluna */
.module-card-content {
    display: flex;
    flex-direction: column;
}

/* NOVO: Estilo para a categoria (texto pequeno e colorido) */
.module-card-category {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
    /* A cor será aplicada dinamicamente com classes como .text-main */
}

/* NOVO: Estilo para o título principal (texto grande e escuro) */
.module-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
    margin: 0;
}

/* Variantes de Cor para os Ícones (continuam as mesmas) */
.icon-bg-main {
    background-color: rgba(var(--main-rgb), 0.15);
}
.icon-bg-info {
    background-color: rgba(var(--bs-info-rgb, 2, 132, 199), 0.15);
}
.icon-bg-danger {
    background-color: rgba(var(--bs-danger-rgb), 0.15);
}
.module-image-card {
    display: block; /* Faz o link se comportar como um bloco */
    text-decoration: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border-radius: var(--bs-border-radius-lg) !important;
    transition: var(--transition);
    overflow: hidden;
}

/* Efeito de elevação no hover */
.module-image-card:hover {
    transform: translateY(-6px);
    /*box-shadow: var(--shadow-lg);*/
}
.header-container {
    position: relative; /* essencial */
}

.demo-strip-wrapper {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%); /* Centraliza horizontalmente */
    z-index: 1029; /* Um pouco abaixo do header principal */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Adiciona uma perspectiva para animações 3D sutis, se desejado */
    perspective: 1000px;
}

.demo-strip {
    display: inline-block;
    padding: 0.3rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px; /* Espaçamento sutil entre as letras */
    text-transform: uppercase; /* DEMO em maiúsculas */

    background-color: var(--main-color);
    color: #1e293b; /* Texto escuro para contraste */

    /* Cantos arredondados apenas na parte de baixo */
    border-bottom-left-radius: var(--bs-border-radius);
    border-bottom-right-radius: var(--bs-border-radius);

    box-shadow: var(--shadow-md);
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Animação de entrada sutil */
    animation: slideInUp 0.5s ease-out;
}

/* Animação para a faixa aparecer de baixo para cima */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px) rotateX(-20deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.body-bg-abstract {
    position: relative;
    background-color: var(--bs-body-bg);
    overflow-x: hidden;
}

.body-bg-abstract::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s ease-in-out;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1920 1080' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle%3E.wave%7Bfill:none;stroke-linecap:round;stroke-linejoin:round%7D%3C/style%3E%3C/defs%3E%3Cpath class='wave' d='M-200 800 C400 1200 800 400 1400 800 S 2000 1000 2200 600' stroke='%23334155' stroke-width='2' opacity='0.8'/%3E%3Cpath class='wave' d='M-100 200 C300 -100 800 500 1300 200 S 1800 -50 2100 150' stroke='%23475569' stroke-width='1.5' opacity='0.6'/%3E%3Cpath class='wave' d='M-150 500 C250 100 750 900 1250 500 S 1750 200 2150 400' stroke='%2364748b' stroke-width='1' opacity='0.4'/%3E%3Cpath class='wave' d='M-250 350 C350 -50 850 750 1350 350 S 1850 100 2250 300' stroke='%231e293b' stroke-width='2.5' opacity='0.9'/%3E%3C/svg%3E");
    opacity: 0.4;
}


.body-bg-abstract::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    transition: all 0.5s ease-in-out;
    mask: none; /* A máscara não é mais necessária */
    -webkit-mask: none;
    background-image: url("data:image/svg+xml,%3Csvg width='1920' height='1080' viewBox='0 0 1920 1080' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter id='glow-dark'%3E%3CfeGaussianBlur stdDeviation='3' result='coloredBlur'/%3E%3CfeMerge%3E%3CfeMergeNode in='coloredBlur'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23glow-dark)'%3E%3C!-- Partículas douradas brilhantes --%3E%3Ccircle r='4' cx='120' cy='950' fill='%23fbbf24' fill-opacity='0.9'/%3E%3Ccircle r='3' cx='220' cy='980' fill='%23f59e0b' fill-opacity='0.7'/%3E%3Ccircle r='5' cx='320' cy='920' fill='%23d97706' fill-opacity='1'/%3E%3Ccircle r='2' cx='420' cy='960' fill='%23fbbf24' fill-opacity='0.6'/%3E%3Ccircle r='6' cx='520' cy='940' fill='%23f59e0b' fill-opacity='0.8'/%3E%3Ccircle r='3.5' cx='620' cy='970' fill='%23d97706' fill-opacity='0.9'/%3E%3Ccircle r='2.5' cx='720' cy='930' fill='%23fbbf24' fill-opacity='0.7'/%3E%3Ccircle r='4.5' cx='820' cy='955' fill='%23f59e0b' fill-opacity='1'/%3E%3Ccircle r='3' cx='920' cy='975' fill='%23d97706' fill-opacity='0.6'/%3E%3Ccircle r='5.5' cx='1020' cy='925' fill='%23fbbf24' fill-opacity='0.8'/%3E%3Ccircle r='2' cx='1120' cy='965' fill='%23f59e0b' fill-opacity='0.9'/%3E%3Ccircle r='4' cx='1220' cy='945' fill='%23d97706' fill-opacity='0.7'/%3E%3Ccircle r='3.5' cx='1320' cy='985' fill='%23fbbf24' fill-opacity='1'/%3E%3Ccircle r='2.5' cx='1420' cy='935' fill='%23f59e0b' fill-opacity='0.6'/%3E%3Ccircle r='5' cx='1520' cy='950' fill='%23d97706' fill-opacity='0.8'/%3E%3Ccircle r='3' cx='1620' cy='980' fill='%23fbbf24' fill-opacity='0.9'/%3E%3Ccircle r='4.5' cx='1720' cy='920' fill='%23f59e0b' fill-opacity='0.7'/%3E%3C!-- Camada média com partículas azuladas --%3E%3Ccircle r='3' cx='180' cy='700' fill='%2306b6d4' fill-opacity='0.4'/%3E%3Ccircle r='2' cx='360' cy='750' fill='%230891b2' fill-opacity='0.3'/%3E%3Ccircle r='4' cx='540' cy='680' fill='%23067991' fill-opacity='0.5'/%3E%3Ccircle r='2.5' cx='720' cy='720' fill='%2306b6d4' fill-opacity='0.4'/%3E%3Ccircle r='1.5' cx='900' cy='760' fill='%230891b2' fill-opacity='0.3'/%3E%3Ccircle r='3.5' cx='1080' cy='690' fill='%23067991' fill-opacity='0.6'/%3E%3Ccircle r='2' cx='1260' cy='740' fill='%2306b6d4' fill-opacity='0.4'/%3E%3Ccircle r='3' cx='1440' cy='670' fill='%230891b2' fill-opacity='0.5'/%3E%3Ccircle r='2.5' cx='1620' cy='710' fill='%23067991' fill-opacity='0.3'/%3E%3C!-- Camada superior sutil --%3E%3Ccircle r='2' cx='240' cy='400' fill='%23a855f7' fill-opacity='0.2'/%3E%3Ccircle r='1.5' cx='480' cy='450' fill='%239333ea' fill-opacity='0.3'/%3E%3Ccircle r='2.5' cx='720' cy='380' fill='%237c3aed' fill-opacity='0.2'/%3E%3Ccircle r='1' cx='960' cy='420' fill='%23a855f7' fill-opacity='0.4'/%3E%3Ccircle r='2' cx='1200' cy='460' fill='%239333ea' fill-opacity='0.2'/%3E%3Ccircle r='1.5' cx='1440' cy='390' fill='%237c3aed' fill-opacity='0.3'/%3E%3Ccircle r='2.5' cx='1680' cy='440' fill='%23a855f7' fill-opacity='0.2'/%3E%3C!-- Topo com efeito estrelas --%3E%3Ccircle r='1' cx='300' cy='150' fill='%23ffffff' fill-opacity='0.6'/%3E%3Ccircle r='0.5' cx='600' cy='180' fill='%23f8fafc' fill-opacity='0.4'/%3E%3Ccircle r='1.5' cx='900' cy='120' fill='%23ffffff' fill-opacity='0.8'/%3E%3Ccircle r='0.8' cx='1200' cy='160' fill='%23f8fafc' fill-opacity='0.5'/%3E%3Ccircle r='1.2' cx='1500' cy='140' fill='%23ffffff' fill-opacity='0.7'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.9; /* Opacidade sutil para o tema claro */
    animation: gentlePulse 15s ease-in-out infinite alternate;
}


[data-theme="dark"] .body-bg-abstract::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1920 1080' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cstyle%3E.wave%7Bfill:none;stroke-linecap:round;stroke-linejoin:round%7D%3C/style%3E%3C/defs%3E%3Cpath class='wave' d='M-200 800 C400 1200 800 400 1400 800 S 2000 1000 2200 600' stroke='%23334155' stroke-width='2' opacity='0.8'/%3E%3Cpath class='wave' d='M-100 200 C300 -100 800 500 1300 200 S 1800 -50 2100 150' stroke='%23475569' stroke-width='1.5' opacity='0.6'/%3E%3Cpath class='wave' d='M-150 500 C250 100 750 900 1250 500 S 1750 200 2150 400' stroke='%2364748b' stroke-width='1' opacity='0.4'/%3E%3Cpath class='wave' d='M-250 350 C350 -50 850 750 1350 350 S 1850 100 2250 300' stroke='%231e293b' stroke-width='2.5' opacity='0.9'/%3E%3C/svg%3E");
    opacity: 0.8;
}

[data-theme="dark"] .body-bg-abstract::after {
    background-image: url("data:image/svg+xml,%3Csvg width='1920' height='1080' viewBox='0 0 1920 1080' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cfilter id='glow-dark'%3E%3CfeGaussianBlur stdDeviation='3' result='coloredBlur'/%3E%3CfeMerge%3E%3CfeMergeNode in='coloredBlur'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23glow-dark)'%3E%3C!-- Partículas douradas brilhantes --%3E%3Ccircle r='4' cx='120' cy='950' fill='%23fbbf24' fill-opacity='0.9'/%3E%3Ccircle r='3' cx='220' cy='980' fill='%23f59e0b' fill-opacity='0.7'/%3E%3Ccircle r='5' cx='320' cy='920' fill='%23d97706' fill-opacity='1'/%3E%3Ccircle r='2' cx='420' cy='960' fill='%23fbbf24' fill-opacity='0.6'/%3E%3Ccircle r='6' cx='520' cy='940' fill='%23f59e0b' fill-opacity='0.8'/%3E%3Ccircle r='3.5' cx='620' cy='970' fill='%23d97706' fill-opacity='0.9'/%3E%3Ccircle r='2.5' cx='720' cy='930' fill='%23fbbf24' fill-opacity='0.7'/%3E%3Ccircle r='4.5' cx='820' cy='955' fill='%23f59e0b' fill-opacity='1'/%3E%3Ccircle r='3' cx='920' cy='975' fill='%23d97706' fill-opacity='0.6'/%3E%3Ccircle r='5.5' cx='1020' cy='925' fill='%23fbbf24' fill-opacity='0.8'/%3E%3Ccircle r='2' cx='1120' cy='965' fill='%23f59e0b' fill-opacity='0.9'/%3E%3Ccircle r='4' cx='1220' cy='945' fill='%23d97706' fill-opacity='0.7'/%3E%3Ccircle r='3.5' cx='1320' cy='985' fill='%23fbbf24' fill-opacity='1'/%3E%3Ccircle r='2.5' cx='1420' cy='935' fill='%23f59e0b' fill-opacity='0.6'/%3E%3Ccircle r='5' cx='1520' cy='950' fill='%23d97706' fill-opacity='0.8'/%3E%3Ccircle r='3' cx='1620' cy='980' fill='%23fbbf24' fill-opacity='0.9'/%3E%3Ccircle r='4.5' cx='1720' cy='920' fill='%23f59e0b' fill-opacity='0.7'/%3E%3C!-- Camada média com partículas azuladas --%3E%3Ccircle r='3' cx='180' cy='700' fill='%2306b6d4' fill-opacity='0.4'/%3E%3Ccircle r='2' cx='360' cy='750' fill='%230891b2' fill-opacity='0.3'/%3E%3Ccircle r='4' cx='540' cy='680' fill='%23067991' fill-opacity='0.5'/%3E%3Ccircle r='2.5' cx='720' cy='720' fill='%2306b6d4' fill-opacity='0.4'/%3E%3Ccircle r='1.5' cx='900' cy='760' fill='%230891b2' fill-opacity='0.3'/%3E%3Ccircle r='3.5' cx='1080' cy='690' fill='%23067991' fill-opacity='0.6'/%3E%3Ccircle r='2' cx='1260' cy='740' fill='%2306b6d4' fill-opacity='0.4'/%3E%3Ccircle r='3' cx='1440' cy='670' fill='%230891b2' fill-opacity='0.5'/%3E%3Ccircle r='2.5' cx='1620' cy='710' fill='%23067991' fill-opacity='0.3'/%3E%3C!-- Camada superior sutil --%3E%3Ccircle r='2' cx='240' cy='400' fill='%23a855f7' fill-opacity='0.2'/%3E%3Ccircle r='1.5' cx='480' cy='450' fill='%239333ea' fill-opacity='0.3'/%3E%3Ccircle r='2.5' cx='720' cy='380' fill='%237c3aed' fill-opacity='0.2'/%3E%3Ccircle r='1' cx='960' cy='420' fill='%23a855f7' fill-opacity='0.4'/%3E%3Ccircle r='2' cx='1200' cy='460' fill='%239333ea' fill-opacity='0.2'/%3E%3Ccircle r='1.5' cx='1440' cy='390' fill='%237c3aed' fill-opacity='0.3'/%3E%3Ccircle r='2.5' cx='1680' cy='440' fill='%23a855f7' fill-opacity='0.2'/%3E%3C!-- Topo com efeito estrelas --%3E%3Ccircle r='1' cx='300' cy='150' fill='%23ffffff' fill-opacity='0.6'/%3E%3Ccircle r='0.5' cx='600' cy='180' fill='%23f8fafc' fill-opacity='0.4'/%3E%3Ccircle r='1.5' cx='900' cy='120' fill='%23ffffff' fill-opacity='0.8'/%3E%3Ccircle r='0.8' cx='1200' cy='160' fill='%23f8fafc' fill-opacity='0.5'/%3E%3Ccircle r='1.2' cx='1500' cy='140' fill='%23ffffff' fill-opacity='0.7'/%3E%3C/g%3E%3C/svg%3E");

    opacity: 0.8;
    animation: cosmicPulse 15s ease-in-out infinite alternate;
}

@keyframes gentlePulse {
    0% {
        opacity: 0.4;
        transform: translateY(0px) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 0.6;
        transform: translateY(0px) scale(1);
    }
}

@keyframes cosmicPulse {
    0% {
        opacity: 0.6;
        transform: translateY(0px) scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.9;
        transform: translateY(-3px) scale(1.01) rotate(0.5deg);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-8px) scale(1.03) rotate(0deg);
    }
    75% {
        opacity: 1;
        transform: translateY(-2px) scale(1.01) rotate(-0.5deg);
    }
    100% {
        opacity: 0.8;
        transform: translateY(0px) scale(1) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .body-bg-abstract::before {
        opacity: 0.5;
    }

    .body-bg-abstract::after {
        opacity: 0.4;
        height: 80vh;
    }

    [data-theme="dark"] .body-bg-abstract::after {
        opacity: 0.6;
    }
}

/* Dispositivos móveis */
@media (max-width: 480px) {
    .body-bg-abstract::before {
        opacity: 0.3;
        background-size: 150% auto;
    }

    .body-bg-abstract::after {
        opacity: 0.3;
        height: 60vh;
        animation: none; /* Remove animação para economizar bateria */
    }

    [data-theme="dark"] .body-bg-abstract::after {
        opacity: 0.5;
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .body-bg-abstract::after,
    [data-theme="dark"] .body-bg-abstract::after {
        animation: none;
    }

    .body-bg-abstract::before {
        transition: none;
    }
}

.password-requirements {
    list-style-type: none;
    padding-left: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.password-requirements li {
    transition: all 0.2s ease-in-out;
}

.password-requirements li.complete {
    color: var(--success-color);
    text-decoration: line-through;
}

.password-requirements li.complete::before {
    content: '✓ ';
    font-weight: 600;
}

.password-strength-meter {
    height: 8px;
    background-color: var(--component-border);
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
}

.password-strength-bar {
    height: 100%;
    border-radius: 9999px;
    transition: all 0.3s ease-in-out;
}

.cssload-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cssload-icon-spinner {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.spinner-ring {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: 6px solid rgba(255, 162, 7, 0.2);
    border-top-color: rgb(255, 162, 7);
    border-radius: 50%;
    animation: cssload-spin 0.8s infinite linear;
    z-index: 1;
}

.icon-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    color: rgb(255, 162, 7);
    animation: icon-cycle-enhanced 6s infinite ease-in-out;
}

.icon-item svg {
    display: block;
    width: 70%;
    height: 70%;
}


/* Keyframes e delays mantidos */
@keyframes icon-cycle-enhanced {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    8% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    12% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    25% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}


.icon-item.icon1 { animation-delay: 0s; }
.icon-item.icon2 { animation-delay: 1.5s; }
.icon-item.icon3 { animation-delay: 3.0s; }
.icon-item.icon4 { animation-delay: 4.5s; }

@keyframes cssload-spin {
    to {
        transform: rotate(360deg);
    }
}

.forgot-password-link {
    display: block; /* Faz o link ocupar a linha inteira */
    text-align: center; /* Centraliza o texto */
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.forgot-password-link:hover {
    color: var(--main-color);
    text-decoration: underline;
}

/* Estilo para o card de módulo em manutenção */
.module-image-card--maintenance {
    cursor: not-allowed;
    filter: grayscale(80%); /* Deixa a imagem cinza */
    opacity: 0.6;
    position: relative;
    pointer-events: none; /* Desabilita cliques no elemento */
}

/* Tooltip customizado para a mensagem de manutenção */
.maintenance-tooltip .tooltip-inner {
    background-color: var(--warning-color);
    color: #1e293b;
    font-weight: 600;
}
.maintenance-tooltip .tooltip-arrow::before {
    border-top-color: var(--warning-color);
}

.btn-reset {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.background-logo-wrapper {
    position: fixed;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.background-logo-wrapper img {
    max-width: 250px;
    height: auto;
}

/* =================================================================
   10. DOCK MENU - VERSÃO ESCURA E COMPACTA
   ================================================================= */

.dock-menu-wrapper {
    position: fixed;
    bottom: 0.75rem; /* Um pouco mais próximo da base */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.dock-menu-wrapper.hidden {
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.dock-menu {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;

    background-color: color-mix(in srgb, #1e293b 90%, transparent); /* Cor do card escuro */
    border: 1px solid #334155; /* Cor da borda escura */

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.dock-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Tamanho do item reduzido */
    height: 50px; /* Tamanho do item reduzido */
    border-radius: var(--bs-border-radius);

    color: #94a3b8; /* Cor do texto "muted" do tema escuro */
    font-size: 1.1rem; /* Tamanho do ícone reduzido */

    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-menu-item:hover {
    transform: translateY(-8px);
    color: #cbd5e1;
    background-color: #334155;
}

.dock-menu-item.active {
    background-color: #475569;
    color: white;
    font-weight: 600;
}

.dock-menu-label {
    position: absolute;
    bottom: 115%;
    background-color: #0f172a; /* Fundo do tema escuro */
    color: #f1f5f9; /* Texto do tema escuro */
    padding: 0.25rem 0.75rem;
    border-radius: var(--bs-border-radius);
    font-size: 0.75rem; /* Fonte menor */
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.dock-menu-item:hover .dock-menu-label {
    opacity: 1;
    transform: translateY(0);
}

.dock-menu-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 0.75rem); /* Um pouco mais próximo */
    left: 50%;
    min-width: 200px; /* Largura menor */
    padding: 0.5rem;

    background-color: #1e293b; /* Cor do card escuro */
    border: 1px solid #334155; /* Cor da borda escura */

    border-radius: var(--bs-border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform-origin: bottom center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%) scale(0.95) translateY(10px);
}

.dock-menu-item.open .dock-menu-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1) translateY(0);
}


.dock-menu-dropdown-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #cbd5e1; /* Cor do texto do tema escuro */
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem; /* Fonte menor, como solicitado */
}

.dock-menu-dropdown-menu a:hover {
    background-color: #334155; /* Cor de hover escura */
}

.dock-menu-dropdown-menu a.active {
    background-color: #475569;
    color: white; /* Texto escuro para contraste */
}

.dock-menu-wrapper.is-left {
    bottom: 50%;
    left: 1rem;
    transform: translateY(50%);
}

.dock-menu-wrapper.is-left.hidden {
    transform: translateY(50%) translateX(-120%);
}

.dock-menu-wrapper.is-left .dock-menu {
    flex-direction: column;
    gap: 0.75rem;
}

.dock-menu-wrapper.is-left .dock-menu-label {
    bottom: 50%;
    left: 110%;
    transform: translateY(50%) translateX(-5px);
}
.dock-menu-wrapper.is-left .dock-menu-item:hover .dock-menu-label {
    transform: translateY(50%) translateX(0);
}

.dock-menu-wrapper.is-left .dock-menu-dropdown-menu {
    bottom: auto;
    top: 50%;
    left: calc(100% + 1rem);
    transform: translateY(-50%) scale(0.95) translateX(-10px);
    transform-origin: left center;
}
.dock-menu-wrapper.is-left .dock-menu-item.open .dock-menu-dropdown-menu {
    transform: translateY(-50%) scale(1) translateX(0);
}


.metric-card {
    background-color: var(--component-bg);
    border: 1px solid var(--component-border);
    border-radius: var(--bs-border-radius-lg); /* Usa nosso border-radius maior */
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--main-color);
}

.metric-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.metric-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--bs-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.metric-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.metric-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.metric-change.positive { color: var(--success-color); }
.metric-change.negative { color: var(--danger-color); }
.metric-change.warning { color: var(--warning-color); }
.metric-change.neutral { color: var(--text-muted); }

.metric-description {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge {
    font-size: 0.6rem !important;
    font-weight: normal;
    padding: 3px 6px;
    border-radius: 3px;
}

.badge-secondary .badge-default {
    background-color: color-mix(in srgb, var(--secondary-color) 15%, transparent);
    color: var(--secondary-color);
}
.badge-success {
    background-color: color-mix(in srgb, var(--success-color) 15%, transparent);
    color: var(--success-color);
}
.badge-warning {
    background-color: color-mix(in srgb, var(--warning-color) 15%, transparent);
    color: var(--warning-color);
}
.badge-danger {
    background-color: color-mix(in srgb, var(--danger-color) 15%, transparent);
    color: var(--danger-color);
}
.badge-outline {
    background-color: transparent;
    color: var(--bs-body-color);
    border: 1px solid var(--component-border);
}
.badge-outline.badge-success {
    color: var(--success-color);
    border-color: var(--success-color);
}
.badge-outline.badge-warning {
    color: var(--warning-color);
    border-color: var(--warning-color);
}
.badge-outline.badge-danger {
    color: var(--danger-color);
    border-color: var(--danger-color);
}
.bg-default {
    background-color: var(--secondary-color) !important;
    color: #fff;
}

.progress-item:not(:last-child) {
    margin-bottom: 1.25rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--heading-color);
}

.progress-value {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.progress {
    height: 8px;
    border-radius: var(--bs-border-radius);
}
.progress-bar {
    background-color: var(--main-color);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.activity-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.activity-indicator.success { background-color: var(--success-color); }
.activity-indicator.warning { background-color: var(--warning-color); }
.activity-indicator.danger { background-color: var(--danger-color); }
.activity-indicator.info { background-color: var(--info-color); }

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-action {
    font-size: 0.9rem;
    color: var(--bs-body-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.activity-action strong {
    color: var(--heading-color);
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}


.card-scrollable {
    max-height: 500px; /* Ou a altura que desejar */
    overflow-y: auto;
}

.vr {
    width: 1px;                                /* espessura */
    height: 50%;                               /* metade da altura do contêiner */
    margin: 0 0.75rem;                         /* espaço lateral */
    align-self: center;                        /* garante centralização vertical */
    flex-shrink: 0;                            /* não deixa encolher */
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.18),
        rgba(0,0,0,0.06)
    );
    border-radius: 1px;
    opacity: 0.8;
}

.text-main{
    color: var(--main-color);
}

.badge {
    padding: 0.3em 0.65em;
    font-size: 0.75em;
}


.dropdown .btn {
    text-align: left;
    justify-content: flex-start;
}
.dropdown .btn .flex-grow-1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-sm, .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: var(--bs-border-radius); /* Usa seu border-radius padrão */
}

.input-md, .btn-md {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.input-lg, .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}


.header-container {
    height: auto; /* Remove a altura fixa */
    min-height: 72px; /* Garante uma altura mínima */
    padding: 0.75rem 1.5rem; /* Ajusta o padding vertical */
}

.btn, .form-control, .form-select {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-sm, .form-control-sm, .form-select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn-lg, .form-control-lg, .form-select-lg {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
}

.dt-container {
    display: grid;
    grid-template-columns: 1fr auto; /* Duas colunas: a primeira cresce, a segunda se ajusta */
    grid-template-rows: auto auto;    /* Duas linhas com altura automática */
    gap: 1rem;                       /* Espaçamento entre os elementos do grid */
    font-size: 0.85rem;              /* Tamanho de fonte padrão para os controles */
}

.dt-container .dt-buttons,
.dt-container .dt-empty-footer {
    display: none;
}

.dt-length {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
}

.dt-search {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
}

.dt-container .dataTable {
    grid-row: 2;
    grid-column: 1 / span 2;
    width: 100% !important;
}

.dt-info {
    grid-row: 3;
    grid-column: 1;
    justify-self: start;
    padding-top: 0.5rem;
}

.dt-paging {
    grid-row: 3;
    grid-column: 2;
    justify-self: end;
    padding-top: 0.5rem;
}

.dt-length label,
.dt-search label {
    color: var(--text-muted);
    font-weight: normal;
}

.dt-length select {
    width: 5rem !important;
    max-width: 50%;
    display: block;
    box-sizing: border-box;
}

.dt-length select,
.dt-search input {
    display: inline-block;
    width: auto;
    margin-left: 0.5rem;

    padding: var(--form-padding-y-sm) var(--form-padding-x-sm);
    font-size: var(--form-font-size-sm);
}

.table.dataTable th,
.table.dataTable td {
    /*padding: 0.6rem;
    font-size: 0.875rem;*/
    vertical-align: middle;
}

.table.dataTable thead th {
    font-weight: 600;
}

.dt-paging .pagination {
    --bs-pagination-font-size: 0.85rem;
    --bs-pagination-padding-y: 0.25rem;
    --bs-pagination-padding-x: 0.6rem;
    margin-bottom: 0;
}

.modal .dt-container {
    overflow: visible;
}

.table-responsive {
    overflow: visible;
}

.dt-length {
    z-index: 1;
    position: relative;
}
.modal-body {
    overflow: visible !important;
}

.dt-container, .table-responsive {
    overflow: visible !important;
}

.btn-outline-main {
    color: var(--main-color);
    border: 2px solid var(--main-color);
    background-color: transparent;
}

.btn-outline-main:hover {
    background-color: var(--main-color);
    color: #fff;
}

.btn-outline {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

a.disabled, button.disabled {
    pointer-events: none;
    opacity: 0.65;
    cursor: not-allowed;
}

.filter-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.filter-bar {
    background: var(--component-bg);
    border: 1px solid var(--component-border);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.filter-header {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--main-dark) 100%);
    padding: 1rem;
}

.filter-toggle {
    width: 100%;
    background: none;
    border: none;
    color: var(--white-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
}

.filter-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 600;
}

.chevron-icon {
    transition: transform 0.3s ease;
}
.chevron-icon.rotated {
    transform: rotate(180deg);
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.filter-content.active {
    max-height: 1000px;
}

.filter-form {
    padding: 1.5rem;
    background-color: color-mix(in srgb, var(--bs-body-bg) 50%, var(--component-bg));
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.label-icon {
    color: var(--main-color);
}

.search-input-container {
    position: relative;
}
.search-input-container .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-input-container .search-input {
    padding-left: 2.5rem;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--component-border);
}

.filter-actions .btn {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .filter-form {
        padding: 1rem;
    }
    .filter-actions {
        flex-direction: column;
    }
    .filter-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}
.select2-container {
    width: 100% !important;
}
.select2-selection--single {
    width: 100% !important;
}
.select2-selection__rendered {
    width: 100% !important;
    text-overflow: ellipsis;
}
.select2-search__field {
    width: 100% !important;
    text-overflow: ellipsis;
}

.ibox {
    background-color: var(--component-bg);
    border: 1px solid var(--component-border);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.ibox:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--main-color);
}
/* Não aplica o hover se tiver a classe ibox-no-hover */
.ibox.ibox-no-hover:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important; /* Ou o valor padrão */
    border-color: var(--component-border) !important; /* Ou o valor padrão */
}
.ibox-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--light-color, #f8f9fa);
    border-bottom: 1px solid var(--component-border, #e5e7eb);
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}


.ibox-title h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    margin: 0;
}

.ibox-content {
    padding: 1.5rem;
}

.ibox-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    background: var(--secondary-color);
    color: var(--white-color);
}
.ibox-filters h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.ibox:has(.ibox-filters):hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: #6c757d;
    background-color: #6c757d20;
    transition: all 0.2s ease-in-out;
}


.ibox:has(.ibox-filters) .ibox-content {
    padding: 1.5rem;
    background-color: color-mix(in srgb, var(--bs-body-bg) 50%, var(--component-bg));
    border-top: 1px solid var(--component-border);
}

.ibox:has(.ibox-filters) .ibox-content p {
    margin-bottom: 0.5rem;
}
.ibox:has(.ibox-filters) .ibox-content p > strong {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}
.ibox:has(.ibox-filters) .ibox-content .input-group-addon {
    padding: 0.75rem 1rem;
    border: 1px solid var(--component-border);
    background-color: color-mix(in srgb, var(--bs-body-bg) 50%, var(--component-bg));
    border-right: 0;
    border-top-left-radius: var(--bs-border-radius);
    border-bottom-left-radius: var(--bs-border-radius);
}
.ibox:has(.ibox-filters) .ibox-content .btn-block {
    width: 100%;
}
.ibox:has(.ibox-filters) .ibox-content .btn-rounded {
    border-radius: 9999px;
}

.ibox-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ibox-tools a {
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.ibox-tools a:hover {
    color: var(--heading-color);
}

.ibox-filters .ibox-tools a {
    color: var(--white-color);
    opacity: 0.8;
}
.ibox-filters .ibox-tools a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.ibox.collapsed .ibox-content {
    display: none;
}
.ibox-tools .fa-chevron-up,
.ibox-tools .fa-chevron-down {
    transition: transform 0.3s ease;
}
.ibox.collapsed .ibox-tools .fa-chevron-down {
    transform: rotate(180deg);
}

.inline {
    display: inline-block;
    vertical-align: middle;
}

.btn-circle {
    border-radius: 50% !important;
    text-align: center;
    padding: 0;
}

.btn-xl {
    width: 150px;
    height: 150px;
    font-size: 20px;
    line-height: 1.5;
}

.btn-circle span {
    display: inline-block;
    line-height: normal;
}

.table-responsive {
    margin-top: 0rem;
}

.float-e-margins {
    margin-bottom: 20px;
}

.inline {
    display: inline-block;
    vertical-align: top;
}

.m-r-md {
    margin-right: 20px;
}
.m-b-md {
    margin-bottom: 20px;
}

.text-center .inline {
    margin: 0 auto;
}

.ibox-content.highlighted {
    background-color: #fff8f0;
    border-bottom: 3px solid #ffc57f;
}

.ibox-content.highlighted table,
.ibox-content.highlighted table thead,
.ibox-content.highlighted table tbody,
.ibox-content.highlighted table tr,
.ibox-content.highlighted table td,
.ibox-content.highlighted table th {
    background-color: inherit;
}

.page-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background-color: var(--component-bg);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    /* margin-bottom: 0.5rem; */
    /*padding: 1rem;
    margin-bottom: 2rem;*/
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--component-border);
}

.page-header-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--heading-color);
}

.breadcrumb-item a {
    text-decoration: none;
    color: var(--main-color);
}
.breadcrumb-item.active {
    color: var(--text-muted);
}

.lds-r.lds-ring {
    display: inline-block;
    position: relative;
    width: 90px;
    height: 30px;
    margin-top: 8px;
}
.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 25px;
    height: 25px;
    margin: -4px 33px;
    border: 3px solid #F57D1B;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #F57D1B transparent transparent transparent;
}
.lds-ring div:nth-child(1) { animation-delay: -0.45s; }
.lds-ring div:nth-child(2) { animation-delay: -0.3s; }
.lds-ring div:nth-child(3) { animation-delay: -0.15s; }
@keyframes  lds-ring {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.pull-left {
    float: left;
}

.loading {
    display: none;
}

.map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    overflow: hidden;
}

.jvectormap-container>svg {
    height: 30vh !important;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    color: #fff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(13,110,253,0.5) !important;
}

.btn-primary:focus {
    color: #fff;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(13,110,253,0.5), 0 0 0 4px rgba(13,110,253,0.25) !important;
    outline: none !important;
}

.btn-primary:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    background: #0a58ca !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background: #0d6efd !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
}

/* SECONDARY */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #565e64 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.btn-secondary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(108,117,125,0.5) !important;
}

.btn-secondary:focus {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 0 10px rgba(108, 117, 125, 0.5), 0 0 0 4px rgba(108, 117, 125, 0.25) !important;
    outline: none !important;
}

.btn-secondary:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    background: #565e64 !important;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
    background: #6c757d !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
}

/* SUCCESS */
.btn-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.btn-success:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(25,135,84,0.5) !important;
}

.btn-success:focus {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(25,135,84,0.5), 0 0 0 4px rgba(25,135,84,0.25) !important;
    outline: none !important;
}

.btn-success:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    background: #146c43 !important;
}

.btn-success:disabled,
.btn-success.disabled {
    background: #198754 !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
}

/* DANGER */
.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.btn-danger:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(220,53,69,0.5) !important;
}

.btn-danger:focus {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(220,53,69,0.5), 0 0 0 4px rgba(220,53,69,0.25) !important;
    outline: none !important;
}

.btn-danger:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    background: #b02a37 !important;
}

.btn-danger:disabled,
.btn-danger.disabled {
    background: #dc3545 !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
}

/* WARNING */
.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #d39e00 100%) !important;
    color: #212529 !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.btn-warning:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(255,193,7,0.5) !important;
}

.btn-warning:focus {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(255,193,7,0.5), 0 0 0 4px rgba(255,193,7,0.25) !important;
    outline: none !important;
}

.btn-warning:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    background: #d39e00 !important;
}

.btn-warning:disabled,
.btn-warning.disabled {
    background: #ffc107 !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
}

/* INFO */
.btn-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #31d2f2 100%) !important;
    color: #212529 !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.btn-info:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(13,202,240,0.5) !important;
}

.btn-info:focus {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(13,202,240,0.5), 0 0 0 4px rgba(13,202,240,0.25) !important;
    outline: none !important;
}

.btn-info:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    background: #31d2f2 !important;
}

.btn-info:disabled,
.btn-info.disabled {
    background: #0dcaf0 !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
}

/* DARK */
.btn-dark {
    background: linear-gradient(135deg, #212529 0%, #121416 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

.btn-dark:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(33,37,41,0.5) !important;
}

.btn-dark:focus {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2), 0 0 10px rgba(33,37,41,0.5), 0 0 0 4px rgba(33,37,41,0.25) !important;
    outline: none !important;
}

.btn-dark:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    background: #121416 !important;
}

.btn-dark:disabled,
.btn-dark.disabled {
    background: #212529 !important;
    opacity: 0.65 !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
}

a:hover,
a:focus {
    text-decoration: none;
}

button.listphase {
    margin-bottom: 5px;
    width: 100%;
    font-size: 15px;
    white-space: inherit;
    min-height: 65px;
}
.yellow-bg {
	/*background-color: #FA983C !important;*/
	background-color: #e4eaec !important;
	border: 1px solid #526069 !important;
}
.yellow-bg a {
	color: #526069 !important;
}
/* Botão de ação Mouse Hover ou Selecionado (Estatísticas > Geral > Perfil Geográfico) */
.yellow-bg:hover {
	/*background-color: #F57D1B !important;*/
	background-color: #f57d1b !important;
	border: 1px solid #f57d1b !important;
}
.yellow-bg:hover a {
	color: #ffffff !important;
}
.btn-warning-without-hover {
    background-color: #e4eaec;
    border-color: #526069;
    color: #526069;
}
.btn-warning-without-hover:hover {
    background-color: #e4eaec;
    border-color: #526069;
    color: #526069;
}

.page-link .page-link:hover{
    color: black !important;
}

button.listphase {
    margin-bottom: 5px;
    width: 100%;
    font-size: 15px;
    white-space: inherit;
    min-height: 65px;
}
.yellow-bg {
    background-color: #3290cb !important;
}
.yellow-bg:hover {
    background-color: #f8ac59 !important;
}
.yellow-bg a.menu_button:hover {
    color: #ffffff !important;
}

.yellow-bg {
    /*background-color: #FA983C !important;*/
    background-color: #e4eaec !important;
    border: 1px solid #526069 !important;
}
.yellow-bg a {
    color: #526069 !important;
}
/* Botão de ação Mouse Hover ou Selecionado (Estatísticas > Geral > Perfil Geográfico) */
.yellow-bg:hover {
    /*background-color: #F57D1B !important;*/
    background-color: #f57d1b !important;
    border: 1px solid #f57d1b !important;
}
.yellow-bg:hover a {
    color: #ffffff !important;
}

.btn-warning-without-hover {
    background-color: #e4eaec;
    border-color: #526069;
    color: #526069;
}
.btn-warning-without-hover:hover {
    background-color: #e4eaec;
    border-color: #526069;
    color: #526069;
}

.widget.yellow-bg {
    background-color: #e4eaec !important;
    color: #526069 !important;
    border: 1px solid #526069 !important;
    border-radius: 10px !important;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: stretch;
    min-height: 90px;
    transition: background 0.2s;
}
.widget.yellow-bg .menu_button {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 18px 32px;
    text-decoration: none;
    color: #526069 !important;
    border-radius: 10px;
    background: none;
    transition: background 0.2s;
}
.widget.yellow-bg .fa {
    color: #526069 !important;
    font-size: 2.5rem;
    margin-right: 18px;
    vertical-align: middle;
}
.widget.yellow-bg h2 {
    color: #526069 !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: right;
}
/* Hover do widget padrão */
.widget.yellow-bg:hover{
    background-color: #f57d1b !important;
    border-color: #f57d1b !important;
    color: #fff !important;
}
.widget.yellow-bg:hover .fa,
.widget.yellow-bg .menu_button:hover .fa,
.widget.yellow-bg:hover h2,
.widget.yellow-bg .menu_button:hover h2 {
    color: #fff !important;
}

/* Widget selecionado */
.widget.yellow-bg-selected {
    background-color: #F57D1B !important;
    color: #fff !important;
    border: 1px solid #F57D1B !important;
    border-radius: 10px !important;
    box-shadow: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: stretch;
    min-height: 90px;
    transition: background 0.2s;
}
.widget.yellow-bg-selected .menu_button {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 18px 32px;
    text-decoration: none;
    color: #fff !important;
    border-radius: 10px;
    background: none;
}
.widget.yellow-bg-selected .fa {
    color: #fff !important;
    font-size: 2.5rem;
    margin-right: 18px;
    vertical-align: middle;
}
.widget.yellow-bg-selected h2 {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: right;
}

/* Responsividade para grid */
@media (max-width: 991px) {
    .widget .menu_button {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 18px;
    }
    .widget .fa {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

.text-left{text-align:left}
.text-right{text-align:right}
.text-center{text-align:center}
.text-justify{text-align:justify}
.text-nowrap{white-space:nowrap}
.text-lowercase{text-transform:lowercase}
.pull-adjust {
    float: right;
    margin-right: 10px; /* Ajuste conforme necessário */
    text-align: right;
}

td a {
    color: var(--primary-color) !important;
    cursor: pointer;
}

.page-link .page-link:hover{
    color: black !important;
}


.widget-rosa{
    background-color: #cf1e44;
}
.widget-azul{
    background-color: #2253d1;
}
.widget-laranja{
    background-color: #df540c;
}
.widget-verde{
    background-color: #11934e;
}

.widget-white{
    background-color: #f3f3f4;
    color: #6c757d;
    cursor: pointer;
}

.widget-azul-claro{
    background-color: #1391aa;
}

.widget-escuro{
    background-color: #1f2937;
}

.widget-escuro:hover{
    background-color: #0d1116;
}

.widget-azul-claro:hover{
    background-color: #0e6a7c;
}

.widget-rosa:hover{
    background-color: #a91938;
}
.widget-azul:hover{
    background-color: #1c44ab;
}
.widget-laranja:hover{
    background-color: #a83900;
}
.widget-verde:hover{
    background-color: #0d6d3a;
}
.widget-white:hover{
    background-color: #e1e1e0;
}

.widget-content {
    background-color: #fff;
    margin-top: -20px;
    padding: 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.widget-content-down {
    background-color: #fff;
    margin-top: -20px;
    padding: 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.widget-top{
    cursor: pointer;
}

.widget-top:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    transition: box-shadow 0.1s ease;
}

.widget{
    font-size: 18px;
}

.text-white-25{
    color: rgba(255, 255, 255, 0.25);
}

.text-white-50{
    color: rgba(255, 255, 255, 0.50);
}

.text-white-75{
    color: rgba(255, 255, 255, 0.75);
}
.text-white{
    max-width: 80%;
}

            .container-modal {
                position: relative;
                width: 100%;
                height: 100vh;
                background: #f4f4f4;
                transition: transform 0.5s ease;
            }

            .modal-extendida {
                position: fixed;
                top: 0;
                right: -100%;
                width: 95%;
                height: 100vh;
                background: #F3F3F4;
                box-shadow: -5px 0 10px rgba(0, 0, 0, 0.2);
                transition: right 0.5s ease;
                /*padding: 20px;*/
                display: flex;
                /*align-items: center;*/
                /*justify-content: center;*/
                /*font-size: 24px;*/
                z-index: 1040;
                border-left: 1px solid black;
                overflow-y: scroll;
            }

            /* Efeito quando modal está ativa */
            .modal-aberta {
                transform: translateX(-95%);
            }

            .modal-ativa {
                right: 0;
            }

            .existe-modal-ativa {
                position: fixed;
                right: 0;
                top: 30%;
                /*left: 10px;*/
                background-color: #333;
                color: #fff;
                padding: 15px 20px;
                border-radius: 3px;
                cursor: pointer;
                z-index: 1039;
                opacity: 0.8;
                transition: opacity 0.3s ease;
            }

            .existe-modal-ativa:hover {
                opacity: 1;
            }

            .panel-d2p {
                border-color: #f0ad4e;
            }
            .panel-d2p > .panel-heading {
                background: #f0ad4e;
                color: #ffffff;
                border-color: #f0ad4e;
            }

            .sidebar-modal-d2p {
                position: absolute;
                top: 30%; /* Ajustável de acordo com a aplicação */
                right: 100%; /* A sidebar inicialmente à direita da modal */
                background-color: white;
                padding: 10px;
                border-top-left-radius: 5px;
                border-bottom-left-radius: 5px;
                transition: left 0.3s, width 0.3s;
                z-index: 1040; /* Menor que o padrão do Bootstrap 5 (1055) */
            }

            /* Estilos para o container dos botões */
            .btn-container-d2p {
                margin-top: 10px; /* Adicione margem acima dos botões */
            }

            .FIIC-progress-bar, .FIT-progress-bar, .FCC-progress-bar, .FCT-progress-bar {
                position: relative;
                width: 100%;
                height: 10px; /* Altura ajustada para tornar a barra mais fina */
                background-color: #ddd;
                overflow: hidden;
            }

            .FIIC-triangle-tiles, .FIT-triangle-tiles, .FCC-triangle-tiles, .FCT-triangle-tiles {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: linear-gradient(45deg, #f0ad4e, #e3c19d, #f0ad4e);
                background-size: 400% 400%; /* Aumentando a quantidade de rotações do gradiente */
                animation: gradientAnimation 2s infinite linear;
            }
            @keyframes gradientAnimation {
                0% {
                    background-position: 0 0;
                }
                100% {
                    background-position: 200% 200%;
                }
            }

            .spinner {
                margin: 100px auto;
                width: 40px;
                height: 40px;
                position: relative;
                text-align: center;

                -webkit-animation: sk-rotate 2.0s infinite linear;
                animation: sk-rotate 2.0s infinite linear;
            }

            .dot1, .dot2 {
                width: 60%;
                height: 60%;
                display: inline-block;
                position: absolute;
                top: 0;
                background-color: #f0ad4e;
                border-radius: 100%;

                -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
                animation: sk-bounce 2.0s infinite ease-in-out;
            }

            .dot2 {
                top: auto;
                bottom: 0;
                -webkit-animation-delay: -1.0s;
                animation-delay: -1.0s;
            }

            .alert-d2p-close {
                position: absolute;
                /*top: 5px;*/
                right: 5px;
                cursor: pointer;
                font-size: 12px !important;
                color: #333;
            }

            @-webkit-keyframes sk-rotate { 100% { -webkit-transform: rotate(360deg) }}
            @keyframes sk-rotate { 100% { transform: rotate(360deg); -webkit-transform: rotate(360deg) }}

            @-webkit-keyframes sk-bounce {
                0%, 100% { -webkit-transform: scale(0.0) }
                50% { -webkit-transform: scale(1.0) }
            }

            @keyframes sk-bounce {
                0%, 100% {
                    transform: scale(0.0);
                    -webkit-transform: scale(0.0);
                } 50% {
                    transform: scale(1.0);
                    -webkit-transform: scale(1.0);
                }
            }


.select2-container .select2-selection--multiple {
    min-height: 32px !important;
    height: 32px !important;
    padding: 2px 6px !important;
    font-size: 0.95rem !important;
    border-radius: 0.375rem !important;
    box-sizing: border-box;
    line-height: 1.2 !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    display: flex !important;
    align-items: center !important;
}

.select2-selection--multiple .select2-selection__choice {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    padding: 2px 8px !important;
    font-size: 0.92rem !important;
    border-radius: 0.25rem !important;
    background-color: #e9ecef !important;
    color: #212529 !important;
    line-height: 1.1 !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container .select2-search--inline .select2-search__field {
    height: 24px !important;
    font-size: 0.95rem !important;
    padding: 2px 6px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
}

/* Estilos Select2 adaptados para Bootstrap 5 */
.select2-container .select2-selection {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #fff;
    font-size: 1rem;
    min-height: 38px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select2-container--focus .select2-selection {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

.select2-container .select2-selection__rendered {
    color: #212529;
    line-height: 2;
}



.select2-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
    z-index: 1056;
    /* acima do modal padrão do Bootstrap 5 */
}

.select2-results__option {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
}

.select2-results__option--highlighted {
    background-color: #e9ecef;
    color: #212529;
}

.select2-container--open .select2-dropdown {
    z-index: 1056;
}

/* Correção para select2 dentro de modais Bootstrap 5 */
.modal .select2-container--open .select2-dropdown {
    z-index: 1060;
}

/* Ajuste para o input de busca do select2 */
.select2-search--dropdown .select2-search__field {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
}

/* Correção de compatibilidade para select2 em modais Bootstrap 5 */
.modal-open .select2-container--open,
.modal .select2-container--open {
    z-index: 1060 !important;
}

.select2-container--open {
    z-index: 1060 !important;
}

.select2-search__field {
    pointer-events: auto !important;
}
#notificacoesBox {
    max-height: 350px;
    overflow-y: auto;
    width: 350px;
    max-width: 90vw;
    white-space: normal;      /* Permite quebra de linha */
    word-break: break-word;   /* Quebra palavras longas */
    overflow-x: hidden;
}

.no-hover:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--component-border) !important;
}

.modal-open{
    overflow: hidden !important;
}

#notificacoesBox .liNotificacoesID,
#notificacoesBox .dropdown-item,
#notificacoesBox div {
    white-space: normal !important;
    word-break: break-word !important;
}


/* fieldset moderno, minimalista */
.scheduler-border {
  border: 1px solid #e5e7eb;   /* cinza claro */
  border-radius: 8px;
  padding: 1.25rem 1rem 1rem;
  margin: 1.5rem 0;
  background: #fff;            /* mantém neutro */
}

/* legend destacada mas clean */
.scheduler-border > legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;              /* cinza-escuro */
  padding: 0 0.5rem;
  margin: 0 0 0.5rem;
}

/* labels */
.scheduler-border label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5563;              /* cinza médio */
  margin-bottom: 0.25rem;
  display: block;
}

/* inputs/selects */
.scheduler-border .form-control.form-mini {
  font-size: 0.9rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;   /* cinza claro */
  transition: border-color 0.2s, box-shadow 0.2s;
}

.scheduler-border .form-control.form-mini:focus {
  border-color: #2563eb;       /* azul moderno */
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* organização das rows */
.scheduler-border .row {
  margin-bottom: 0.75rem;
}

/* responsividade */
@media (max-width: 768px) {
  .scheduler-border {
    padding: 1rem;
  }
  .scheduler-border > legend {
    font-size: 0.85rem;
  }
}

/* Estilo customizado para checkbox Bootstrap 5 */
.form-check-input.checkboxCalcular {
    width: 1.3em;
    height: 1.3em;
    border-radius: 0.25em;
    border: 2px solid #0d6efd;
    background-color: #fff;
    transition: box-shadow 0.2s;
    box-shadow: 0 0 0 0.15em rgba(13,110,253,.15);
    cursor: pointer;
}

.form-check-input.checkboxCalcular:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input.checkboxCalcular:focus {
    box-shadow: 0 0 0 0.2em rgba(13,110,253,.25);
    outline: none;
}




/* =================================================================
   5. PÁGINA DE LOGIN
   ================================================================= */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(var(--main-rgb), 0.1), transparent 50%),
        radial-gradient(circle at 80% 90%, rgba(var(--bs-info-rgb), 0.1), transparent 50%);
}

.login-card {
    width: 100%;
    max-width: 450px;
    z-index: 1;
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

/* =================================================================
   6. RESPONSIVIDADE
   ================================================================= */
@media (max-width: 992px) {
    .app-main {
        padding-top: 1.5rem;
    }
    .header-content .user-info {
        display: none;
    }
}

.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--component-border);
    border-left-width: 0.5rem;
    border-radius: var(--bs-border-radius);
}

.bd-callout h4, .bd-callout h5 {
    color: var(--callout-color, var(--heading-color));
    margin-bottom: 0.25rem;
}

.bd-callout-danger {
    --callout-color: var(--danger-color);
    border-left-color: var(--danger-color);
    background-color: rgba(var(--bs-danger-rgb), 0.07);
}

.bd-callout-success {
    --callout-color: var(--success-color);
    border-left-color: var(--success-color);
    background-color: rgba(var(--bs-success-rgb), 0.07);
}

.bd-callout-warning {
    --callout-color: var(--warning-color);
    border-left-color: var(--warning-color);
    background-color: rgba(245, 158, 11, 0.07);
}

.bd-callout-main{
    --callout-color: var(--info-color);
    border-left-color: var(--info-color);
    background-color: rgba(var(--info-rgb), 0.07);
}

.bd-callout-main {
    --callout-color: var(--main-color);
    border-left-color: var(--main-color);
    background-color: rgba(var(--main-rgb), 0.07);
}

.login-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 1rem;
}

.animated-text-wrapper {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    height: 24px;
}
.animated-text-wrapper .anim-text-title {
    color: var(--main-color);
    font-weight: 600;
}
.animated-text-wrapper:after {
    content: " ";
    display: inline-block;
    width: 10px;
    height: 2px;
    background-color: var(--text-muted);
    animation: 0.8s blink infinite;
    position: relative;
    top: -2px;
    margin-left: 2px;
}
@keyframes blink {
    50% { opacity: 0; }
}

.login-card .form-control {
    padding: 0.9rem 1rem;
    font-size: 1rem;
}

.login-card .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;   /* sempre ocupa a tela inteira */
    overflow: auto; /* permite rolar a página caso o conteúdo exceda a viewport */
}


.login-card {
    width: 100%;
    max-width: 460px;
    background-color: var(--component-bg);
    border: 1px solid var(--component-border);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.login-card-header {
    flex-shrink: 0;
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.login-card-body {
    padding: 1.25rem 1.5rem;
    overflow: visible; /* deixa a página controlar a rolagem quando necessário */
}

.login-card-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--component-border);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    text-align: center;
    background-color: var(--bs-body-bg);
}
@media (max-height: 650px) {
    .login-card {
        transform: scale(0.9);
        transform-origin: center center;
    }
}

@media (max-height: 600px) {
    .login-card {
        transform: scale(0.8);
        transform-origin: center center;
    }
}

/* Ajustes para layout em duas colunas no login (desktop) */
@media (min-width: 768px) {
    .login-card {
        max-width: 900px; /* permite duas colunas confortáveis */
        display: block; /* deixa o grid interno controlar colunas */
    }

    .login-card .row {
        display: flex;
        align-items: center; /* centraliza colunas verticalmente */
        min-height: auto; /* permite altura natural, evita grandes espaços em branco */
    }

    .login-card .col-md-5 {
        flex: 0 0 40%;
        max-width: 40%;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center; /* centraliza logo/requirements verticalmente */
        align-items: center;
        border-right: 1px solid var(--component-border);
        background: transparent;
    }

    .login-card .col-md-7 {
        flex: 0 0 60%;
        max-width: 60%;
        padding: 2rem 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center; /* centraliza o formulário verticalmente */
    }

    .login-card .bd-callout {
        margin-top: 1rem;
    }

    .login-card-header { /* centraliza cabeçalho dentro da coluna esquerda */
        padding: 0;
        border-bottom: none;
    }
}
.jvectormap-tip {
    position: absolute;
    display: none;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: rgba(33, 37, 41, 0.9);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    z-index: 9999;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.jvectormap-tip.show {
    transform: translateY(-2px);
    opacity: 1;
}

/* =========================================
   Tom Select - Inicio
========================================= */

/* Base */
.ts-wrapper {
    width: 100%;
    position: relative;
}

.ts-control {
    width: 100%;
    min-height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    line-height: 1.5;
    color: var(--bs-body-color);
    background-color: var(--component-bg);
    border: 1px solid var(--component-border);
    border-radius: var(--bs-border-radius);
    box-shadow: none;
    transition: var(--transition);
}

/* Hover (igual input B5: quase imperceptível) */
.ts-control:hover {
    border-color: var(--main-color);
}

/* Focus — igual Bootstrap, mas dourado */
.ts-wrapper.focus .ts-control {
    border-color: var(--main-color);
    box-shadow: 0 0 0 .25rem rgba(var(--main-rgb), 0.25);
}

/* Disabled */
.ts-wrapper.disabled .ts-control {
    background-color: var(--light-color);
    opacity: .7;
    cursor: not-allowed;
}

/* Dropdown */
.ts-dropdown {
    /* position: absolute; */
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 9999999 !important;
    background: var(--component-bg);
    border: 1px solid var(--component-border);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--shadow-md);
}

/* Scroll */
.ts-dropdown .ts-dropdown-content {
    max-height: 260px;
    overflow-y: auto;
}

/* Option hover */
.ts-dropdown .option:hover,
.ts-dropdown .active {
    background-color: rgba(var(--main-rgb), 0.12);
    color: var(--heading-color);
}

/* =========================
   Multiple selections
========================= */

.ts-control .item {
    background: rgba(var(--main-rgb), 0.15);
    color: var(--heading-color);
    border-radius: .375rem;
    padding: 2px 8px;
    margin: 2px;
    font-size: .85rem;
    border: 1px solid rgba(var(--main-rgb), 0.35);
}

/* Remove button */
.ts-control .item .remove {
    margin-left: 6px;
    opacity: .6;
    transition: var(--transition);
}

.ts-control .item .remove:hover {
    opacity: 1;
    color: var(--danger-color);
}


/* =========================================
   Tom Select - Fim
========================================= */


.skeleton {
    position: relative;
    overflow: hidden;
    background-color: #e5e7eb;
    border-radius: 6px;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.5),
        transparent
    );
    animation: skeleton-shimmer 1.2s infinite;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-line {
    height: 12px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 18px;
    width: 60%;
    margin-bottom: 10px;
}

.skeleton-bar {
    height: 8px;
}

.skeleton-block {
    margin-bottom: 16px;
}

/* container */
.swal2-container {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial !important;
}

/* toast base */
.swal2-popup.swal2-toast {
    border-radius: var(--toast-radius) !important;
    box-shadow: var(--toast-shadow) !important;
    width: var(--toast-width) !important;
    padding: 14px 16px !important;
}

/* icon */
.swal2-toast .swal2-icon {
    margin-right: 10px !important;
    margin-top: 2px !important;
    font-size: 18px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* title */
.swal2-toast .swal2-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    color: inherit !important;
}

/* message */
.swal2-toast .swal2-html-container {
    font-size: 13px !important;
    margin: 0 !important;
    opacity: .95 !important;
    color: inherit !important;
}

/* progress bar */
.swal2-timer-progress-bar {
    height: 3px !important;
    background: rgba(255,255,255,.4) !important;
}

/* ========================= */
/* TIPOS DETECTADOS PELO ICON */
/* ========================= */

.swal2-toast:has(.swal2-icon.swal2-success) {
    background: linear-gradient(180deg,#10b981,#059669) !important;
    color: #fff !important;
}

.swal2-toast:has(.swal2-icon.swal2-error) {
    background: linear-gradient(180deg,#ef4444,#dc2626) !important;
    color: #fff !important;
}

.swal2-toast:has(.swal2-icon.swal2-warning) {
    background: linear-gradient(180deg,#f59e0b,#d97706) !important;
    color: #1f2937 !important;
}

.swal2-toast:has(.swal2-icon.swal2-info) {
    background: linear-gradient(180deg,#3b82f6,#2563eb) !important;
    color: #fff !important;
}
/* layout correto do toast */
.swal2-popup.swal2-toast {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    column-gap: 12px !important;
}

/* icon */
.swal2-toast .swal2-icon {
    grid-row: span 2 !important;
    margin: 0 !important;
    color: white !important;
}

/* titulo */
.swal2-toast .swal2-title {
    margin: 0 !important;
    font-weight: 600 !important;
}

/* mensagem */
.swal2-toast .swal2-html-container {
    margin: 0 !important;
    opacity: .95 !important;
}

/* progress bar visível */
.swal2-timer-progress-bar {
    height: 4px !important;
    background: rgba(255,255,255,0.55) !important;
}
/* força o X branco no erro */
.swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.swal2-error .swal2-x-mark-line-right {
    background-color: #ffffff !important;
}

/* opcional: círculo do erro mais visível */
.swal2-icon.swal2-error {
    border-color: rgba(255,255,255,0.4) !important;
}

/* warning com texto claro (combina melhor com o fundo) */
.swal2-toast:has(.swal2-icon.swal2-warning) {
    background: linear-gradient(180deg,#f59e0b,#d97706) !important;
    color: #ffffff !important;
}

/* garantir que título e mensagem herdem branco */
.swal2-toast .swal2-title,
.swal2-toast .swal2-html-container {
    color: inherit !important;
}