/* Style - Reset e Configurações Globais */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =================================================================
   PADRÃO DE CARREGAMENTO DE MÓDULOS
   Evita "flash" de campos aparecendo/desaparecendo
   ================================================================= */


/* Módulo aguardando carregamento - invisível mas ocupa espaço */


/* Animação automática para exibir após 2s como fallback de segurança */

.modulo-aguardando {
    opacity: 0;
    visibility: hidden;
    animation: moduloFallback 0.3s ease 2s forwards;
}


/* Animação de fallback - se moduloCarregado não for chamado em 2s, exibe mesmo assim */

@keyframes moduloFallback {
    to {
        opacity: 1;
        visibility: visible;
    }
}


/* Módulo carregado - visível com transição suave */


/* Quando a classe é adicionada, cancela a animação de fallback */

.modulo-carregado {
    opacity: 1;
    visibility: visible;
    animation: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}


/* Loading spinner centralizado para módulos */

.modulo-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    min-height: 200px;
}

.modulo-loading-overlay i {
    font-size: 32px;
    color: var(--primary-color);
}


/* Container de módulo com posição relativa para o overlay */

[class^="modulo-"],
[class*=" modulo-"] {
    position: relative;
}


/* Container temporário de módulo - evitar overflow */

#modulo-conteudo-temp {
    max-width: 100%;
    overflow: hidden;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
}


/* Fix para Font Awesome - evitar FOUC (Flash of Unstyled Content) */

.fa,
.fas,
.far,
.fal,
.fab,
.fad,
.fat,
[class^="fa-"],
[class*=" fa-"] {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Garantir tamanho fixo para ícones em botões e abas */

button i.fas,
button i.far,
button i.fa,
.btn i.fas,
.btn i.far,
.btn i.fa,
.modal-tab i.fas,
.modal-tab i.far,
.modal-tab i.fa {
    font-size: inherit;
    width: 1em;
    height: 1em;
    line-height: 1;
    vertical-align: middle;
}


/* Reset para inputs - largura 100% */

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
select:not(.select2-hidden-accessible),
textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


/* Reset para elementos flex */

.form-group,
[class*="col-md-"] {
    min-width: 0;
}

:root {
    --primary-color: #374151;
    --primary-dark: #1f2937;
    --primary-light: #4b5563;
    --primary-gradient: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    --accent-color: #f97316;
    --accent-light: #fb923c;
    --accent-dark: #ea580c;
    --secondary-color: #111827;
    --secondary-light: #1f2937;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-height: 64px;
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-smooth: 0.3s ease;
}


/* ============================================
   SISTEMA DE TOOLTIP GLOBAL
   Usar: data-tooltip="Texto" em qualquer elemento
   ============================================ */


/* Tooltip global - aplicado a qualquer elemento com data-tooltip */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: 9999;
    pointer-events: none;
}

[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
}


/* Tooltip posição direita */

[data-tooltip-pos="right"]::before {
    left: calc(100% + 8px);
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}


/* Tooltip posição esquerda */

[data-tooltip-pos="left"]::before {
    left: auto;
    right: calc(100% + 8px);
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
}


/* Tooltip posição baixo */

[data-tooltip-pos="bottom"]::before {
    bottom: auto;
    top: calc(100% + 6px);
}


/* Desabilitar tooltip ::before para elementos do sidebar (usam ::after) */

.sidebar [data-tooltip]::before,
.sidebar-toggle::before {
    display: none !important;
    content: none !important;
}


/* Quando sidebar NÃO está colapsado, esconder os tooltips ::after */

.sidebar:not(.collapsed) .menu-item::after,
.sidebar:not(.collapsed) .btn-logout::after,
.sidebar:not(.collapsed) .btn-config::after {
    display: none !important;
}


/* Tooltip para botões pequenos em tabelas - DESABILITADO via CSS, usa JS flutuante */


/* O tooltip ::before é cortado pelo overflow das tabelas, então usamos JS */

.table [data-tooltip]::before,
.table-container [data-tooltip]::before,
td [data-tooltip]::before,
.table-actions [data-tooltip]::before {
    display: none !important;
    content: none !important;
}


/* Tooltip ::before funciona normalmente fora de tabelas */

.btn-sm[data-tooltip]::before,
.btn.btn-sm[data-tooltip]::before {
    bottom: calc(100% + 6px);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
}


/* Mas desabilitar se estiver dentro de tabela */

.table .btn-sm[data-tooltip]::before,
.table .btn.btn-sm[data-tooltip]::before,
.table-container .btn-sm[data-tooltip]::before,
.table-container .btn.btn-sm[data-tooltip]::before {
    display: none !important;
    content: none !important;
}


/* Texto truncado com tooltip - usado em tabelas para textos longos */

.texto-truncado {
    display: inline-block;
    max-width: 200px;
    vertical-align: middle;
    cursor: pointer;
}

.texto-truncado .texto-visivel {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Tooltip flutuante para texto truncado (renderizado via JS) */

.tooltip-flutuante {
    position: fixed;
    background: var(--primary-dark);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 400;
    max-width: 350px;
    white-space: normal;
    line-height: 1.4;
    z-index: 999999;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
}


/* Prevenir scroll horizontal durante validação de formulário */

html,
body {
    overscroll-behavior-x: none;
}


/* Página de Login */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-color);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    padding: 40px 32px;
    border: 1px solid var(--border-color);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: block;
}

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

.login-header h1 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 6px;
    font-weight: 600;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 13px;
    gap: 6px;
}

.login-form label i {
    color: var(--text-light);
    font-size: 14px;
}

.login-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    transition: all var(--transition-normal);
    background: var(--white);
    color: var(--text-color);
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.08);
}

.login-form input::placeholder {
    color: #9ca3af;
}

.login-form .btn-primary {
    margin-top: 8px;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.login-form .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.link-esqueci-senha {
    display: inline-block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.link-esqueci-senha:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.link-esqueci-senha i {
    margin-right: 4px;
}

.login-footer p {
    font-size: 12px;
    color: var(--text-light);
}


/* =================================================================
   BOTÕES - SISTEMA PADRONIZADO
   Todos os botões do sistema devem usar estas classes
   ================================================================= */


/* =================================================================
   SISTEMA DE BOTÕES - Minimalista e Profissional
   Conceito: Simplicidade, clareza visual, hierarquia definida
   ================================================================= */

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.btn:focus:not(:focus-visible) {
    box-shadow: none;
}

.btn i {
    font-size: 12px;
    flex-shrink: 0;
}


/* Botão Principal (Laranja) - Ações principais: Salvar, Confirmar, Cadastrar */

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-primary:active:not(:disabled) {
    background: #c2410c;
    border-color: #c2410c;
}


/* Botão Secundário (Outline) - Ações secundárias: Cancelar, Fechar, Voltar */

.btn-secondary {
    background: #fff;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-color);
    border-color: #d1d5db;
}

.btn-secondary:active:not(:disabled) {
    background: #e5e7eb;
}


/* Botão Sucesso (Verde) - Estados de sucesso */

.btn-success {
    background: #10b981;
    color: #fff;
    border: 1px solid #10b981;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    border-color: #059669;
}


/* Botão Perigo (Vermelho) - Ações destrutivas: Excluir, Remover */

.btn-danger {
    background: #ef4444;
    color: #fff;
    border: 1px solid #ef4444;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
}


/* Botão Aviso (Amarelo) - Ações de atenção */

.btn-warning {
    background: #f59e0b;
    color: #fff;
    border: 1px solid #f59e0b;
}

.btn-warning:hover:not(:disabled) {
    background: #d97706;
    border-color: #d97706;
}


/* Botão Info (Cinza escuro) - Editar, Ver detalhes */

.btn-info {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.btn-info:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}


/* Botão Outline - Transparente com borda */

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

.btn-outline:hover:not(:disabled) {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-primary {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline-primary:hover:not(:disabled) {
    background: var(--accent-color);
    color: #fff;
}


/* Botão Link - Apenas texto */

.btn-link {
    background: transparent;
    color: var(--accent-color);
    border: none;
    padding: 10px 12px;
}

.btn-link:hover:not(:disabled) {
    color: var(--accent-dark);
    text-decoration: underline;
}


/* Botão Ghost - Muito sutil, para ações terciárias */

.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border: none;
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-color);
    color: var(--text-color);
}


/* Modificadores de tamanho */

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    gap: 5px;
}

.btn-sm i {
    font-size: 11px;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 14px;
    gap: 8px;
}

.btn-lg i {
    font-size: 14px;
}


/* Botão apenas com ícone */

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    border-radius: 6px;
}

.btn-icon.btn-sm {
    width: 30px;
    height: 30px;
}

.btn-icon.btn-lg {
    width: 40px;
    height: 40px;
}

.btn-icon i {
    margin: 0;
}


/* =================================================================
   SISTEMA DE LOADING EM BOTÕES
   Animação de dots estilo moderno
   ================================================================= */

.btn.btn-loading {
    position: relative;
    pointer-events: none;
    cursor: wait;
}

.btn-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-loading-dots span {
    width: 6px;
    height: 6px;
    background-color: currentColor;
    border-radius: 50%;
    animation: btnLoadingDots 1.4s infinite ease-in-out both;
}

.btn-loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.btn-loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.btn-loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes btnLoadingDots {
    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-loading-text {
    margin-left: 6px;
    font-size: inherit;
}


/* Versão para botões pequenos */

.btn-sm .btn-loading-dots span {
    width: 5px;
    height: 5px;
    gap: 3px;
}


/* Versão para botões grandes */

.btn-lg .btn-loading-dots span {
    width: 8px;
    height: 8px;
    gap: 5px;
}


/* Botões na tabela de ações */

.table-actions {
    display: flex;
    gap: 6px;
}

.table-actions .btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
}

.table-actions .btn i {
    margin: 0;
    font-size: 12px;
}


/* Grupo de botões */

.btn-group {
    display: inline-flex;
    gap: 8px;
}

.btn-group .btn {
    flex-shrink: 0;
}


/* ===================================
   ALERTAS
   =================================== */

.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}


/* Layout do Painel */

.painel-container {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}


/* Sidebar */

.sidebar {
    width: var(--sidebar-width);
    background: var(--secondary-color);
    color: var(--white);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: all var(--transition-smooth);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
    overflow: visible !important;
}

.sidebar.collapsed .sidebar-header h2,
.sidebar.collapsed .user-details,
.sidebar.collapsed .menu-item span,
.sidebar.collapsed .categoria-titulo,
.sidebar.collapsed .btn-logout span,
.sidebar.collapsed .btn-config span {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.sidebar.collapsed .sidebar-header {
    padding: 12px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Logo quando sidebar está collapsed */

.sidebar.collapsed .sidebar-logo {
    max-width: 40px;
    height: 40px;
    object-fit: contain;
}


/* Logo icon alternativo para quando collapsed */

.sidebar-logo-icon {
    display: none;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sidebar.collapsed .sidebar-logo-full {
    display: none;
}

.sidebar.collapsed .sidebar-logo-icon {
    display: block;
}

.sidebar.collapsed .user-info {
    justify-content: center;
    padding: 8px;
    gap: 0;
}


/* Menu quando collapsed - sem espaços entre itens */

.sidebar.collapsed .sidebar-menu ul {
    padding: 0 8px;
}

.sidebar.collapsed .sidebar-menu li {
    margin-bottom: 0;
}

.sidebar.collapsed .menu-categoria {
    margin-top: 0;
    margin-bottom: 0;
    display: none;
}

.sidebar.collapsed .menu-item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    position: relative;
}


/* Tooltip no hover quando collapsed - menu items (usando ::after para não conflitar com FA icons) */

.sidebar.collapsed .menu-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: 9999;
    pointer-events: none;
}

.sidebar.collapsed .menu-item:hover::after {
    opacity: 1;
    visibility: visible;
}

.sidebar.collapsed .menu-item i {
    margin: 0;
    font-size: 18px;
    width: auto;
}

.sidebar.collapsed .sidebar-footer {
    padding: 8px;
    margin-top: auto;
}

.sidebar.collapsed .btn-config {
    padding: 12px;
    justify-content: center;
    width: 100%;
    position: relative;
    gap: 0;
}

.sidebar.collapsed .btn-config i {
    margin: 0;
    font-size: 16px;
}

.sidebar.collapsed .btn-config span {
    display: none;
}

.sidebar.collapsed .btn-config::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: 9999;
    pointer-events: none;
}

.sidebar.collapsed .btn-config:hover::after {
    opacity: 1;
    visibility: visible;
}

.sidebar.collapsed .btn-logout {
    padding: 12px;
    justify-content: center;
    width: 100%;
    position: relative;
    gap: 0;
}

.sidebar.collapsed .btn-logout i {
    margin: 0;
    font-size: 16px;
}


/* Tooltip no btn-logout quando collapsed (usando ::after para não conflitar com FA icons) */

.sidebar.collapsed .btn-logout::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: 9999;
    pointer-events: none;
}

.sidebar.collapsed .btn-logout:hover::after {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 16px;
    text-align: center;
}

.sidebar-header i {
    font-size: 36px;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.sidebar-header h2 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
}

.sidebar-logo {
    max-width: 160px;
    height: auto;
    transition: all var(--transition-normal);
}

.user-info {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--transition-normal);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar i {
    font-size: 18px;
}

.user-details {
    transition: all var(--transition-normal);
    overflow: hidden;
}

.user-details h3 {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    white-space: nowrap;
}

.user-details p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-details p::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #22c55e;
    border-radius: 50%;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}


/* Scroll no menu quando sidebar collapsed (tooltips tratados via JS) */

.sidebar.collapsed .sidebar-menu {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}


/* Ocultar tooltips CSS dos menu-items quando collapsed (JS cria tooltips fixos) */

.sidebar.collapsed .menu-item::after {
    display: none !important;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar-menu ul {
    list-style: none;
    padding: 0 10px;
}

.sidebar-menu li {
    margin-bottom: 2px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-normal);
    border-radius: var(--border-radius-sm);
}

.menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.menu-item span {
    font-size: 13px;
    white-space: nowrap;
}

.menu-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.menu-item:hover i {
    opacity: 1;
}

.menu-item.active {
    color: var(--white);
    background: var(--accent-color);
}

.menu-item.active i {
    opacity: 1;
}


/* Categorias do Menu */

.menu-categoria {
    margin-top: 16px;
    margin-bottom: 8px;
    padding: 0 !important;
}

.menu-categoria:first-child {
    margin-top: 4px;
}

.categoria-titulo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    transition: all var(--transition-normal);
}

.categoria-titulo::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-footer {
    width: 100%;
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-config {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    justify-content: flex-start;
    font-size: 13px;
    cursor: pointer;
}

.btn-config i {
    font-size: 14px;
    flex-shrink: 0;
}

.btn-config span {
    white-space: nowrap;
}

.btn-config:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    justify-content: flex-start;
    font-size: 13px;
}

.btn-logout i {
    font-size: 14px;
    flex-shrink: 0;
}

.btn-logout span {
    white-space: nowrap;
}

.btn-logout:hover {
    background: rgba(220, 38, 38, 0.3);
    color: #fff;
}


/* Toggle Button para Sidebar */

.sidebar-toggle {
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all var(--transition-normal);
    z-index: 1001;
}

.sidebar-toggle:hover {
    background: var(--accent-dark);
}


/* Tooltip especial para sidebar-toggle (usando ::after para não conflitar com FA icons) */

.sidebar-toggle::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-dark);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s ease;
    z-index: 9999;
    pointer-events: none;
}

.sidebar-toggle:hover::after {
    opacity: 1;
    visibility: visible;
}

.sidebar-toggle i {
    transition: transform var(--transition-normal);
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}


/* Conteúdo Principal */

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    transition: margin-left var(--transition-smooth);
    background: var(--bg-color);
    width: 100%;
    max-width: calc(100vw - var(--sidebar-width));
    overflow-x: hidden;
}

.sidebar.collapsed~.main-content,
.painel-container:has(.sidebar.collapsed) .main-content {
    margin-left: var(--sidebar-collapsed);
    max-width: calc(100vw - var(--sidebar-collapsed));
}

.topbar {
    background: var(--white);
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.btn-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-color);
    cursor: pointer;
    margin-right: 16px;
    padding: 6px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
}

.btn-menu-toggle:hover {
    background: var(--bg-color);
    color: var(--accent-color);
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.empresa-nome {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 13px;
}

.empresa-nome i {
    color: var(--accent-color);
}

.content-area {
    padding: 24px;
    /* Prevenir overflow horizontal */
    overflow-x: hidden;
    max-width: 100%;
}


/* Módulos - Prevenir overflow */

[class^="modulo-"],
[class*=" modulo-"] {
    max-width: 100%;
    overflow: hidden;
}


/* Alerta de Sistema */

.alerta-sistema {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    position: relative;
}

.alerta-pendente-pagamento {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #0e7490;
}

.alerta-sistema>i {
    font-size: 18px;
    margin-top: 2px;
}

.alerta-pendente-pagamento>i {
    color: #0891b2;
}

.alerta-sistema strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.alerta-sistema p {
    margin: 0;
    font-size: 13px;
}

.btn-fechar-alerta {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-fechar-alerta:hover {
    opacity: 1;
}


/* Dashboard */

.dashboard-welcome {
    text-align: center;
    padding: 40px 20px;
}

.dashboard-welcome h2 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.dashboard-welcome p {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 14px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-card {
    background: var(--white);
    padding: 20px 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    border: 1px solid var(--border-color);
}

.dashboard-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

.dashboard-card i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 12px;
    display: block;
}

.dashboard-card h3 {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 500;
}


/* Módulos */

.modulo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modulo-header h2 {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modulo-header h2 i {
    color: var(--accent-color);
}


/* Card Component */

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.card-header {
    background: #f9fafb;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.card-header h3 i {
    color: var(--text-light);
}

.card-body {
    background: var(--white);
    padding: 20px;
}

.filtros {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.filtros-row,
.filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}


/* Container de botões agrupados nos filtros */

.filtros-botoes {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filtros-botoes .btn {
    height: 40px;
    min-width: auto;
    white-space: nowrap;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 12px;
}

.form-group input,
.form-group select:not(.select2-hidden-accessible),
.form-control:not(textarea):not(.select2-hidden-accessible),
.modal input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.modal select:not(.select2-hidden-accessible) {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-sm) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    transition: all 0.15s ease !important;
    background: #fff !important;
    box-sizing: border-box !important;
    display: block;
    min-width: 0 !important;
    height: 38px !important;
}


/* Textareas - altura automática baseada em rows */


/* Exclui textareas ocultos usados por editores WYSIWYG */

.form-group textarea:not(.editor-hidden-textarea),
.modal textarea:not(.editor-hidden-textarea),
textarea.form-control:not(.editor-hidden-textarea) {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-sm) !important;
    font-size: 13px !important;
    font-family: inherit !important;
    line-height: 1.6 !important;
    transition: all 0.15s ease !important;
    background: #fff !important;
    box-sizing: border-box !important;
    display: block !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 250px !important;
    resize: vertical !important;
}


/* Exceção para inputs hidden */

input[type="hidden"] {
    display: none !important;
    width: auto !important;
    padding: 0 !important;
    border: none !important;
}


/* Garantir que inputs dentro de colunas ocupem 100% - MÁXIMA PRIORIDADE */

.modal-body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.modal-body select:not(.select2-hidden-accessible),
.modal-body textarea,
.modal-body .form-control:not(.select2-hidden-accessible),
[class*="col-md-"] input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
[class*="col-md-"] select:not(.select2-hidden-accessible),
[class*="col-md-"] textarea,
[class*="col-md-"] .form-control:not(.select2-hidden-accessible) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.form-group input:hover,
.form-group select:not(.select2-hidden-accessible):hover,
.form-group textarea:hover,
.form-control:not(.select2-hidden-accessible):hover {
    border-color: #d1d5db !important;
}

.form-group input:focus,
.form-group select:not(.select2-hidden-accessible):focus,
.form-group textarea:focus,
.form-control:not(.select2-hidden-accessible):focus {
    outline: none !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1) !important;
}


/* Campo com erro de validação - regras principais movidas para após bloco de formulários (linha ~3870) */

.select2-container--campo-invalido .select2-selection {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15) !important;
}

.msg-erro-campo {
    color: #dc3545;
    font-size: 12px;
    display: block;
    margin-top: 3px;
}


/* Estilos adicionais para textarea - altura controlada por rows */

.form-group textarea:not(.editor-hidden-textarea),
textarea.form-control:not(.editor-hidden-textarea),
.modal textarea:not(.editor-hidden-textarea) {
    resize: vertical !important;
    min-height: 250px !important;
    height: auto !important;
    padding: 10px 12px !important;
    line-height: 1.6 !important;
    font-size: 13px !important;
    font-family: inherit !important;
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius-sm) !important;
}

.form-group textarea::placeholder {
    color: #9ca3af;
}


/* Sistema de Grid Responsivo */

.form-row {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 20px;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    box-sizing: border-box !important;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: 0;
}


/* Grid de 12 colunas usando CSS Grid */

.form-row .col-md-1,
.form-row .form-group.col-md-1 {
    grid-column: span 1 !important;
}

.form-row .col-md-2,
.form-row .form-group.col-md-2 {
    grid-column: span 2 !important;
}

.form-row .col-md-3,
.form-row .form-group.col-md-3 {
    grid-column: span 3 !important;
}

.form-row .col-md-4,
.form-row .form-group.col-md-4 {
    grid-column: span 4 !important;
}

.form-row .col-md-5,
.form-row .form-group.col-md-5 {
    grid-column: span 5 !important;
}

.form-row .col-md-6,
.form-row .form-group.col-md-6 {
    grid-column: span 6 !important;
}

.form-row .col-md-7,
.form-row .form-group.col-md-7 {
    grid-column: span 7 !important;
}

.form-row .col-md-8,
.form-row .form-group.col-md-8 {
    grid-column: span 8 !important;
}

.form-row .col-md-9,
.form-row .form-group.col-md-9 {
    grid-column: span 9 !important;
}

.form-row .col-md-10,
.form-row .form-group.col-md-10 {
    grid-column: span 10 !important;
}

.form-row .col-md-11,
.form-row .form-group.col-md-11 {
    grid-column: span 11 !important;
}

.form-row .col-md-12,
.form-row .form-group.col-md-12 {
    grid-column: span 12 !important;
}


/* Inputs dentro das colunas - ocupar 100% */

.form-row .form-group input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.form-row .form-group select:not(.select2-hidden-accessible),
.form-row .form-group textarea {
    width: 100% !important;
    display: block;
}


/* NOTA: .select2-container em form-row está em css/select2.css */


/* Responsivo para telas menores */

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr !important;
    }
    .form-row [class*="col-md-"],
    .form-row .form-group[class*="col-md-"] {
        grid-column: span 1 !important;
    }
}


/* ============================================
   SISTEMA DE TABELAS - BASE
   ============================================ */


/* Container da tabela com scroll horizontal */

.table-container {
    background: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    position: relative;
    width: 100%;
}


/* Containers wrapper de tabelas devem ocupar 100% */

[id*="container-tabela"],
[id*="tabela-container"] {
    width: 100%;
}


/* Scrollbar estilizado */

.table-container::-webkit-scrollbar {
    height: 8px;
    background: transparent;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}


/* Firefox scrollbar */

.table-container {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}


/* Tabela principal */

.table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: auto;
}


/* Garantir que a tabela preencha todo o container */

.table-container .table {
    width: max-content;
    min-width: 100%;
}


/* Largura mínima nas colunas para evitar esmagamento */

.table thead th,
.table tbody td {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 90px;
}

.table .col-id,
.table th.col-id,
.table td.col-id {
    min-width: 50px;
}

.table .col-acoes,
.table th.col-acoes,
.table td.col-acoes,
.table th.table-actions,
.table td.table-actions {
    min-width: 100px;
}

.table .col-titulo,
.table .col-empregador,
.table .col-local,
.table .col-nome {
    min-width: 140px;
}

.table .col-area,
.table .col-email {
    min-width: 120px;
}

.table .col-telefone,
.table .col-data,
.table .col-status,
.table .col-modalidade,
.table .col-salario,
.table .col-candidaturas {
    min-width: 100px;
}


/* Colunas de ações - largura fixa para não expandir */

.table thead th:last-child,
.table tbody td:last-child {
    width: auto;
    white-space: nowrap;
}


/* Células com tooltips precisam de overflow visível */

.table tbody td.table-actions,
.table tbody td:has([data-tooltip]) {
    overflow: visible;
}


/* Cabeçalho da tabela */

.table thead {
    background: var(--accent-color);
}

.table thead th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    white-space: nowrap;
    border: none;
    vertical-align: middle;
}


/* Corpo da tabela */

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:hover {
    background: #fafafa;
}

.table tbody td {
    padding: 12px 10px;
    font-size: 14px;
    text-align: left;
    vertical-align: middle;
    border: none;
    white-space: normal;
    word-break: break-word;
}


/* Colunas que devem manter nowrap (ID, Status, Ações, datas, CPF/CNPJ) */

.table tbody td.table-actions,
.table tbody td.col-nowrap,
.table thead th {
    white-space: nowrap;
}


/* Mensagens centralizadas (ex: "Nenhum registro encontrado") */

.table tbody td[colspan] {
    text-align: center;
    padding: 30px 16px;
    color: var(--text-light);
}


/* Coluna de ações */

.table tbody td.table-actions,
.table thead th.table-actions {
    white-space: nowrap;
    text-align: center;
}


/* Colunas de ID - largura mínima */

.table .col-id {
    width: 50px;
    min-width: 50px;
}

.table tbody td.table-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.table tbody td.table-actions .btn:last-child {
    margin-right: 0;
}


/* Responsivo para tabelas */

@media (max-width: 1024px) {
    .table thead th {
        padding: 9px 10px;
        font-size: 10px;
    }
    .table tbody td {
        padding: 9px 10px;
        font-size: 12px;
    }
    .table-actions .btn {
        width: 32px;
        height: 32px;
        padding: 0;
        justify-content: center;
        border-radius: 6px;
    }
    .table-actions .btn span {
        display: none;
    }
    .table-actions .btn i {
        margin: 0;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .table thead th {
        padding: 8px 8px;
        font-size: 9px;
    }
    .table tbody td {
        padding: 8px 8px;
        font-size: 11px;
    }
    .table-actions .btn {
        width: 30px;
        height: 30px;
        min-width: 30px;
        border-radius: 5px;
    }
    .table-actions .btn i {
        font-size: 12px;
    }
}


/* Badges modernizados */

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #f3f4f6;
    color: #374151;
}

.badge-secondary {
    background: #2196F3;
    color: #f3f4f6;
}

.badge-orange {
    background: #f3f4f6;
    color: #6b7280;
}

.text-orange {
    color: #9ca3af;
    font-weight: 600;
}


/* Modal */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.5);
    backdrop-filter: blur(2px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 2000;
    padding: 80px 20px 20px 20px;
    animation: fadeIn 0.2s ease-out;
    overflow-y: auto;
    overflow-x: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 12px 28px rgba(0, 0, 0, 0.12);
    width: 75%;
    min-width: 500px;
    max-width: 75vw;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.15s ease-out;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.modal-overlay.show .modal {
    opacity: 1;
}

.modal-large {
    width: 85vw;
    max-width: 1800px;
}

.modal-medium {
    width: 650px;
    max-width: 90vw;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9fafb;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.modal-header h3 i {
    color: var(--text-light);
}

.btn-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.modal>form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

.modal-body .form-group {
    margin-bottom: 16px;
}


/* Garantir inputs dentro de modais ocupem 100% */

.modal-body input,
.modal-body select:not(.select2-hidden-accessible),
.modal-body textarea,
.modal-body .form-control:not(.select2-hidden-accessible) {
    width: 100%;
    box-sizing: border-box;
}

.modal-body .form-row {
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.modal-body .form-row:last-child {
    margin-bottom: 0;
}

.modal-body .form-row .form-group {
    margin-bottom: 0;
}


/* Sistema de Abas para Modais */

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    gap: 4px;
}

.modal-tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.15s ease;
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-tab i {
    font-size: 14px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-tab:hover {
    color: var(--text-color);
}

.modal-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.modal-tab-content {
    display: none;
    width: 100%;
    max-width: 100%;
}

.modal-tab-content.active {
    display: block;
}


/* Títulos de Seção */

.form-section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-section-title i {
    color: var(--primary-color);
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #fafafa;
    flex-shrink: 0;
}


/* Loading */

.loading {
    text-align: center;
    padding: 40px;
    color: var(--primary-color);
    font-size: 18px;
}

.loading i {
    font-size: 40px;
    margin-bottom: 15px;
}


/* Paginação */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}


/* Responsivo */

@media (max-width: 1080px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .btn-menu-toggle {
        display: block;
    }
    .topbar {
        padding: 0 15px;
    }
    .content-area {
        padding: 15px;
    }
    .filtros-row,
    .filtros-grid {
        grid-template-columns: 1fr;
    }
    .filtros-botoes {
        width: 100%;
        flex-direction: column;
    }
    .filtros-botoes .btn {
        width: 100%;
    }
    .modulo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    /* Tabela em mobile - com scroll horizontal */
    .table-container {
        border-radius: var(--border-radius);
        border: 1px solid var(--border-color);
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* Utilitários */

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}


/* Estilos do Select2 movidos para css/select2.css */


/* Checkbox List - Seleção de Módulos */

.checkbox-list-container {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    background: #fafafa;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.checkbox-list-container::-webkit-scrollbar {
    width: 8px;
}

.checkbox-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.checkbox-list-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.checkbox-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.checkbox-list-item {
    display: block;
    margin-bottom: 8px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-list-item input[type="checkbox"] {
    width: auto !important;
    margin-right: 5px;
}

.checkbox-list-item i {
    color: var(--primary-color);
    margin-left: 5px;
    margin-right: 5px;
}


/* Estilo para checkbox-item usado pelo JS de sites e outros módulos */

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid #e0e0e0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.checkbox-item:hover {
    background-color: #fff5f0;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
    transform: translateY(-2px);
}

.checkbox-item:has(input[type="checkbox"]:checked) {
    background: #fef7f0;
    border-color: var(--accent-color);
    box-shadow: none;
}

.checkbox-item input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px;
    margin: 0;
    margin-right: 12px;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--white);
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-item .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
    flex: 1;
    min-width: 0;
}

.checkbox-item .checkbox-label i {
    color: var(--primary-color);
    font-size: 18px;
    min-width: 18px;
    flex-shrink: 0;
}

.checkbox-item:has(input[type="checkbox"]:checked) .checkbox-label {
    color: var(--primary-dark);
}

.checkbox-item:hover .checkbox-label i {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.checkbox-item .checkbox-label i {
    color: var(--primary-color);
    font-size: 18px;
    min-width: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.checkbox-item:hover .checkbox-label i {
    transform: scale(1.1);
}


/* Oportunidades de Emprego */

.vaga-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border-left: 4px solid var(--primary-color);
}

.vaga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vaga-card-header {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.vaga-titulo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px 0;
}

.vaga-empresa {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.vaga-info {
    margin: 10px 0;
}

.vaga-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-color);
}

.vaga-info-item i {
    width: 20px;
    color: var(--primary-color);
}

.vaga-descricao {
    font-size: 14px;
    color: var(--text-color);
    margin: 10px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vaga-footer {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vaga-salario {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

.vaga-data {
    font-size: 12px;
    color: var(--text-light);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-aberta {
    background: #d4edda;
    color: #155724;
}

.status-pausada {
    background: #fff3cd;
    color: #856404;
}

.status-encerrada {
    background: #f8d7da;
    color: #721c24;
}


/* Display de Créditos no Header */

.creditos-display {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    gap: 5px;
}


/* NOTA: As classes de candidaturas foram removidas por não serem utilizadas */

.creditos-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.creditos-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.creditos-badge i {
    font-size: 16px;
}

.creditos-numero {
    font-size: 18px;
    font-weight: 700;
}

.creditos-label {
    font-size: 12px;
    opacity: 0.9;
}

.creditos-badge.badge-success {
    background: #16a34a;
    color: white;
}

.creditos-badge.badge-warning {
    background: #d97706;
    color: white;
}

.creditos-badge.badge-danger {
    background: #dc2626;
    color: white;
}

.creditos-barra {
    width: 100%;
    max-width: 150px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.creditos-barra-progresso {
    height: 100%;
    background: #16a34a;
    border-radius: 2px;
    transition: width 0.3s ease;
}


/* Animação de Loading */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 16px;
    gap: 15px;
}

.loading i {
    font-size: 40px;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Responsivo - Mobile */


/* Resoluções médias */

@media (max-width: 1366px) {
    .dashboard-cards {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 18px;
    }
    .dashboard-card {
        padding: 24px 16px;
    }
    .content-area {
        padding: 25px 20px;
    }
}

@media (max-width: 1200px) {
    .dashboard-cards {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    .dashboard-card {
        padding: 22px 14px;
    }
    .dashboard-card i {
        font-size: 38px;
    }
}

@media (max-width: 1024px) {
    .dashboard-cards {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }
    .dashboard-card {
        padding: 20px 14px;
    }
    .dashboard-card i {
        font-size: 36px;
    }
    .dashboard-card h3 {
        font-size: 14px;
    }
    .content-area {
        padding: 20px 15px;
    }
}

@media (max-width: 1080px) {
     :root {
        --sidebar-width: 280px;
    }
    /* Botão de fechar menu no mobile */
    .sidebar.active .sidebar-toggle {
        display: flex;
    }
    .sidebar.active .sidebar-toggle i {
        transform: rotate(0deg);
    }
    .sidebar-toggle {
        display: none;
    }
    /* No mobile, ignorar estado collapsed E :not(.collapsed) do breakpoint 1400px */
    .sidebar.collapsed,
    .sidebar:not(.collapsed) {
        width: var(--sidebar-width) !important;
        transform: translateX(-100%);
        box-shadow: none;
    }
    .sidebar.active,
    .sidebar.active.collapsed,
    .sidebar.active:not(.collapsed) {
        transform: translateX(0) !important;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3) !important;
        width: var(--sidebar-width) !important;
    }
    .sidebar.collapsed .sidebar-header h2,
    .sidebar.collapsed .user-details,
    .sidebar.collapsed .menu-item span,
    .sidebar.collapsed .categoria-titulo,
    .sidebar.collapsed .btn-logout span,
    .sidebar.collapsed .btn-config span,
    .sidebar:not(.collapsed) .sidebar-header h2,
    .sidebar:not(.collapsed) .user-details,
    .sidebar:not(.collapsed) .menu-item span,
    .sidebar:not(.collapsed) .categoria-titulo,
    .sidebar:not(.collapsed) .btn-logout span,
    .sidebar:not(.collapsed) .btn-config span {
        opacity: 1 !important;
        width: auto !important;
        overflow: visible !important;
    }
    .sidebar.collapsed .sidebar-logo-full,
    .sidebar:not(.collapsed) .sidebar-logo-full {
        display: block !important;
    }
    .sidebar.collapsed .sidebar-logo-icon,
    .sidebar:not(.collapsed) .sidebar-logo-icon {
        display: none !important;
    }
    .sidebar.collapsed .menu-categoria,
    .sidebar:not(.collapsed) .menu-categoria {
        display: block !important;
    }
    .sidebar.collapsed .menu-item,
    .sidebar:not(.collapsed) .menu-item {
        justify-content: flex-start !important;
        padding: 10px 14px !important;
    }
    .sidebar.collapsed .sidebar-header,
    .sidebar:not(.collapsed) .sidebar-header {
        padding: 16px !important;
    }
    .sidebar:not(.collapsed) .user-info {
        justify-content: flex-start !important;
        padding: 10px 14px !important;
        gap: 10px !important;
    }
    .sidebar:not(.collapsed) .menu-item i {
        margin: 0 10px 0 0 !important;
        font-size: inherit !important;
    }
    .sidebar:not(.collapsed) .sidebar-footer {
        padding: 10px 14px !important;
    }
    .sidebar:not(.collapsed) .btn-config,
    .sidebar:not(.collapsed) .btn-logout {
        justify-content: flex-start !important;
        padding: 10px 14px !important;
    }
    .sidebar:not(.collapsed) .btn-config i,
    .sidebar:not(.collapsed) .btn-logout i {
        margin: 0 10px 0 0 !important;
    }
    .sidebar:not(.collapsed) .sidebar-menu {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    .sidebar:not(.collapsed)~.main-content,
    .painel-container:has(.sidebar:not(.collapsed)) .main-content {
        margin-left: 0 !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    .sidebar:not(.collapsed) .sidebar-toggle i {
        transform: none !important;
    }
    .main-content {
        margin-left: 0 !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    .btn-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .topbar {
        padding: 0 15px;
    }
    .topbar-right {
        gap: 10px;
    }
    .empresa-nome span {
        display: none;
    }
    .creditos-display {
        margin-right: 10px;
    }
    .creditos-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    .creditos-numero {
        font-size: 14px;
    }
    .creditos-label {
        display: none;
    }
    .content-area {
        padding: 15px 10px;
    }
    .dashboard-welcome {
        padding: 20px 10px;
    }
    .dashboard-welcome h2 {
        font-size: 22px;
    }
    .dashboard-welcome p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }
    .dashboard-card {
        padding: 16px 10px;
    }
    .dashboard-card i {
        font-size: 28px;
        margin-bottom: 10px;
    }
    .dashboard-card h3 {
        font-size: 12px;
        line-height: 1.3;
    }
    /* Overlay para fechar menu mobile */
    .sidebar.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: var(--sidebar-width);
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    .topbar {
        height: 56px;
        padding: 0 10px;
    }
    .page-title {
        font-size: 16px;
    }
    /* Modal responsivo - 768px */
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 40px;
        overflow-x: hidden;
    }
    .modal {
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        max-height: calc(100vh - 60px);
        margin: 0;
        border-radius: 12px;
        overflow-x: hidden;
    }
    .modal-large {
        width: 100% !important;
        max-width: 100% !important;
    }
    .modal-header {
        padding: 16px 15px;
    }
    .modal-header h3 {
        font-size: 16px;
        gap: 8px;
    }
    .modal-header h3 i {
        font-size: 18px;
    }
    .btn-close {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .modal-body {
        padding: 15px;
    }
    .modal-body .form-group {
        margin-bottom: 15px;
    }
    .modal-footer {
        padding: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .modal-footer .btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    /* Tabs do modal responsivo */
    .modal-tabs {
        gap: 2px;
        margin-bottom: 15px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .modal-tabs::-webkit-scrollbar {
        display: none;
    }
    .modal-tab {
        padding: 10px 14px;
        font-size: 12px;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .modal-tab i {
        font-size: 13px;
        width: 15px;
        height: 15px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    /* Form rows responsivo */
    .form-row {
        flex-direction: column !important;
        gap: 15px !important;
    }
    .form-row>.form-group,
    .form-row>[class*="col-"] {
        width: 100% !important;
        flex: none !important;
    }
    /* Form section title */
    .form-section-title {
        font-size: 13px;
        margin: 20px 0 12px 0;
        padding-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .topbar {
        height: 50px;
        padding: 0 8px;
    }
    .page-title {
        font-size: 14px;
    }
    .btn-menu-toggle {
        font-size: 20px;
        padding: 6px;
        margin-right: 10px;
    }
    .content-area {
        padding: 10px 8px;
    }
    .dashboard-welcome {
        padding: 15px 8px;
    }
    .dashboard-welcome h2 {
        font-size: 20px;
    }
    .dashboard-welcome p {
        font-size: 13px;
        margin-bottom: 15px;
    }
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0;
    }
    .dashboard-card {
        padding: 14px 8px;
    }
    .dashboard-card i {
        font-size: 24px;
        margin-bottom: 8px;
    }
    .dashboard-card h3 {
        font-size: 11px;
        line-height: 1.2;
        word-break: break-word;
    }
    .sidebar-header h2 {
        font-size: 20px;
    }
    .user-details h3 {
        font-size: 14px;
    }
    .menu-item {
        padding: 12px 15px;
    }
    .menu-item span {
        font-size: 14px;
    }
    .sidebar {
        width: 260px;
    }
    .sidebar-logo {
        max-width: 160px;
    }
    /* Modal responsivo - 480px */
    .modal-overlay {
        padding: 5px;
        padding-top: 20px;
        align-items: flex-start;
        overflow-x: hidden;
    }
    .modal {
        max-height: calc(100vh - 30px);
        border-radius: 10px;
        overflow-x: hidden;
    }
    .modal-header {
        padding: 12px 12px;
    }
    .modal-header h3 {
        font-size: 14px;
        gap: 6px;
    }
    .modal-header h3 i {
        font-size: 16px;
    }
    .btn-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .modal-body {
        padding: 12px 10px;
    }
    .modal-body .form-group {
        margin-bottom: 12px;
    }
    .modal-body label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    .modal-body input,
    .modal-body select:not(.select2-hidden-accessible),
    .modal-body textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    .modal-footer {
        padding: 12px 10px;
        gap: 8px;
    }
    .modal-footer .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    .modal-tabs {
        margin-bottom: 12px;
    }
    .modal-tab {
        padding: 8px 12px;
        font-size: 11px;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .modal-tab i {
        font-size: 12px;
        width: 14px;
        height: 14px;
    }
    .form-section-title {
        font-size: 12px;
        margin: 15px 0 10px 0;
    }
}


/* Telas muito pequenas */

@media (max-width: 360px) {
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .dashboard-card {
        padding: 12px 6px;
    }
    .dashboard-card i {
        font-size: 22px;
        margin-bottom: 6px;
    }
    .dashboard-card h3 {
        font-size: 10px;
    }
    .dashboard-welcome h2 {
        font-size: 18px;
    }
    .sidebar {
        width: 240px;
    }
    /* Modal responsivo - 360px */
    .modal-header {
        padding: 10px;
    }
    .modal-header h3 {
        font-size: 13px;
    }
    .modal-body {
        padding: 10px 8px;
    }
    .modal-footer {
        padding: 10px 8px;
        flex-direction: column;
    }
    .modal-footer .btn {
        width: 100%;
    }
    .modal-tab {
        padding: 8px 10px;
        font-size: 10px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .modal-tab i {
        font-size: 11px;
        width: 13px;
        height: 13px;
    }
}


/* Utilitários básicos utilizados */

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

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}


/* Estilos para elemento small */

small {
    color: var(--text-light);
    font-size: 12px;
}


/* Utilitários de visibilidade */

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}


/* Checkbox List Container */

.checkbox-list-container {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
    background: #fafafa;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.checkbox-list-container::-webkit-scrollbar {
    width: 8px;
}

.checkbox-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.checkbox-list-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.checkbox-list-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}


/* Override Final - Inputs em Modais */


/* NOTA: Estilos do Select2 foram movidos para css/select2.css */


/* Estilos Modernos para Campos */

.modal input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.modal textarea {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.modal input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.modal select:not(.select2-hidden-accessible):hover,
.modal textarea:hover {
    border-color: #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.modal input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.modal select:not(.select2-hidden-accessible):focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
}


/* Labels mais elegantes */

.modal .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    /* text-transform: uppercase; */
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}


/* Ajustes Finos para Campos no Modal */


/* Garantir altura consistente */

.modal .form-group input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.modal .form-group select:not(.select2-hidden-accessible) {
    height: 42px;
}


/* NOTA: Altura do .select2-selection--single está em css/select2.css */


/* Textarea manter altura automática */

.modal .form-group textarea:not(.editor-hidden-textarea) {
    height: auto !important;
    min-height: 125px !important;
    resize: vertical !important;
}


/* Espaçamento entre campos melhorado */

.modal .form-row {
    gap: 16px;
    margin-bottom: 16px;
}


/* Labels com asterisco para campos obrigatórios */

.modal .form-group label[for]+input[required],
.modal .form-group label[for]+select[required]:not(.select2-hidden-accessible),
.modal .form-group label[for]+textarea[required] {
    border-left: 3px solid var(--primary-color);
}


/* Campos desabilitados */

.modal input:disabled,
.modal select:not(.select2-hidden-accessible):disabled,
.modal textarea:disabled {
    background: #f5f5f5;
    color: #888;
    cursor: not-allowed;
    opacity: 0.8;
}


/* NOTA: .select2-container--disabled está em css/select2.css */


/* Botões do footer - herdam do sistema base, apenas ajustes mínimos */

.modal-footer .btn {
    min-width: 100px;
}


/* Uniformização Final de Inputs e Selects */


/* Resetar estilo de select do navegador */

select:not(.select2-hidden-accessible) {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}


/* Garantir que inputs e selects tenham exatamente o mesmo tamanho e estilo */

input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
select:not(.select2-hidden-accessible),
.form-group input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
.form-group select:not(.select2-hidden-accessible),
.modal input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
.modal select:not(.select2-hidden-accessible),
.modal-body input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
.modal-body select:not(.select2-hidden-accessible),
.filtros input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
.filtros select:not(.select2-hidden-accessible),
.form-control:not(.select2-hidden-accessible),
.modal-overlay select:not(.select2-hidden-accessible),
.modal-overlay input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 10px 14px !important;
    border: 1px solid #e0e0e0 !important;
    border-width: 1px !important;
    border-style: solid !important;
    border-color: #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    vertical-align: middle !important;
    margin: 0 !important;
}


/* Estados de foco - mesmo estilo para todos */

input:focus:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
select:focus:not(.select2-hidden-accessible),
.form-control:focus {
    border-color: var(--primary-color) !important;
    border-width: 1px !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06) !important;
    background-color: #fff !important;
    outline: none !important;
}


/* Campo com erro de validação - posicionado após regras de formulário para garantir prioridade */

.campo-invalido,
.form-group input.campo-invalido,
.form-group select.campo-invalido,
.form-group textarea.campo-invalido,
input.form-control.campo-invalido,
select.form-control.campo-invalido,
textarea.form-control.campo-invalido,
.form-control.campo-invalido:not(.select2-hidden-accessible),
.campo-invalido:hover,
.form-group input.campo-invalido:hover,
.form-group select.campo-invalido:hover,
input.form-control.campo-invalido:hover,
.form-control.campo-invalido:hover:not(.select2-hidden-accessible) {
    border: 1px solid #dc3545 !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15) !important;
}

.campo-invalido:focus,
.form-group input.campo-invalido:focus,
.form-group select.campo-invalido:focus,
.form-group textarea.campo-invalido:focus,
input.form-control.campo-invalido:focus,
select.form-control.campo-invalido:focus,
.form-control.campo-invalido:focus:not(.select2-hidden-accessible) {
    border: 1px solid #dc3545 !important;
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}


/* Textarea mantém altura variável */

textarea:not(.editor-hidden-textarea),
.form-group textarea:not(.editor-hidden-textarea),
.modal textarea:not(.editor-hidden-textarea) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    resize: none !important;
}


/* Blog Modal - Editor WYSIWYG (Quill) */


/* Container principal do editor */

#editor-conteudo-blog {
    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 20px;
}


/* Toolbar do Quill */

#editor-conteudo-blog .ql-toolbar.ql-snow {
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
    padding: 8px 10px;
}


/* Container do texto */

#editor-conteudo-blog .ql-container.ql-snow {
    border: none !important;
    font-size: 14px;
    font-family: inherit;
}


/* Área de edição */

#editor-conteudo-blog .ql-editor {
    min-height: 250px;
    padding: 12px 14px;
    line-height: 1.6;
}


/* Placeholder do editor */

#editor-conteudo-blog .ql-editor.ql-blank::before {
    color: #999;
    font-style: italic;
    left: 14px;
}


/* Focus no editor */

#editor-conteudo-blog:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}


/* Hover no editor */

#editor-conteudo-blog:hover {
    border-color: #bdbdbd;
}


/* Esconder textarea de sincronização */

#conteudo[style*="display: none"],
textarea.editor-hidden-textarea,
#modal-blog textarea[name="conteudo"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* Blog Modal - Categorias Switch */

.categorias-switch-container {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    background: var(--white);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 130px;
    overflow-y: auto;
}

.categorias-switch-container::-webkit-scrollbar {
    width: 6px;
}

.categorias-switch-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.switch-category-label {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 6px 12px;
    margin: 0;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-color);
    background: var(--white);
    font-weight: 500;
    font-size: 13px;
    flex: 0 0 auto;
}

.switch-category-label:hover {
    background: rgba(249, 115, 22, 0.05);
    border-color: var(--primary-color);
}

.switch-category-label:has(input[type="checkbox"]:checked) {
    background: #fef7f0;
    border-color: var(--accent-color);
}

.switch-category-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Switch Toggle - Compacto */

.switch-toggle {
    position: relative;
    width: 32px;
    height: 18px;
    flex-shrink: 0;
}

.switch-toggle input[type="checkbox"] {
    opacity: 0;
    width: 0 !important;
    height: 0 !important;
    position: absolute;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 18px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-toggle input:checked+.switch-slider {
    background: var(--accent-color);
}

.switch-toggle input:checked+.switch-slider:before {
    transform: translateX(14px);
}

.switch-toggle input:focus+.switch-slider {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}


/* Blog Modal - Upload Area */

.blog-upload-area {
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    transition: border-color 0.2s ease;
    cursor: pointer;
    position: relative;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-upload-area:hover {
    border-color: var(--accent-color);
    background: #fef7f0;
}

.blog-upload-area.drag-over {
    border-color: var(--accent-color);
    background: #fef3eb;
}

.blog-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.blog-upload-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.blog-upload-icon i {
    font-size: 36px;
    color: white;
}

.blog-upload-text h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.blog-upload-text p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 15px 0;
}

.blog-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition-normal);
}

.blog-upload-btn:hover {
    transform: translateY(-2px);
}

.blog-upload-hint {
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

.blog-upload-hint i {
    margin-right: 6px;
    color: var(--primary-color);
}


/* Preview da imagem */

.blog-upload-preview {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    width: 100%;
}

.blog-upload-preview img {
    max-width: 100%;
    max-height: 220px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    object-fit: contain;
}

.blog-upload-overlay {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.blog-btn-change,
.blog-btn-remove {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    font-size: 14px;
}

.blog-btn-change {
    background: #3b82f6;
    color: white;
}

.blog-btn-change:hover {
    background: #2563eb;
}

.blog-btn-remove {
    background: #dc2626;
    color: white;
}

.blog-btn-remove:hover {
    background: #b91c1c;
}

.blog-upload-filename {
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-file-input-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* Módulos Grid - Usuários */

.modulos-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--white);
    max-height: 450px;
    overflow-y: auto;
}

.modulos-grid-container::-webkit-scrollbar {
    width: 6px;
}

.modulos-grid-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.modulo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s ease;
    text-align: center;
    gap: 10px;
}

.modulo-card:hover {
    border-color: var(--accent-color);
    background: #fef7f0;
}

.modulo-card:has(input[type="checkbox"]:checked) {
    border-color: var(--accent-color);
    background: #fef7f0;
}

.modulo-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.modulo-card-header i {
    font-size: 24px;
    color: var(--primary-color);
    transition: transform var(--transition-fast);
}

.modulo-card:hover .modulo-card-header i {
    transform: scale(1.1);
}

.modulo-card-nome {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.modulo-card-switch {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}


/* Responsivo */

@media (max-width: 480px) {
    .modulos-grid-container {
        grid-template-columns: 1fr;
    }
}


/* Textarea - Configuração Final */

textarea:not(.editor-hidden-textarea),
.form-group textarea:not(.editor-hidden-textarea),
.modal textarea:not(.editor-hidden-textarea),
textarea.form-control:not(.editor-hidden-textarea) {
    resize: none !important;
    height: auto !important;
    overflow-y: auto !important;
}


/* NOTA: Estilos de Select2 movidos para css/select2.css */


/* Links de Domínio (Sites) */

.table tbody td a.domain-link,
.table tbody td a[target="_blank"] {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.table tbody td a.domain-link:hover,
.table tbody td a[target="_blank"]:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}


/* ===================================
   DATEPICKER COM ÍCONE
   =================================== */


/* Container do input com ícone de calendário */

.input-with-icon {
    position: relative;
    display: block;
    width: 100%;
}

.input-with-icon input {
    padding-right: 40px !important;
    width: 100%;
}

.input-with-icon .input-icon {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    pointer-events: none;
    font-size: 14px;
    border-left: 1px solid var(--border-color);
    background: #f9fafb;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    transition: all var(--transition-fast);
}

.input-with-icon input:focus+.input-icon {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

.input-with-icon .input-icon.clickable {
    pointer-events: auto;
    cursor: pointer;
}

.input-with-icon .input-icon.clickable:hover {
    background: var(--bg-color);
    color: var(--accent-color);
}


/* Mensagem de validação deve aparecer abaixo do container completo */

.input-with-icon+.error-message,
.input-with-icon+small.text-danger,
.input-with-icon~.invalid-feedback,
.input-with-icon+.campo-erro-mensagem {
    display: block;
    margin-top: 4px;
}


/* Garantir que campos dentro do container de ícone não tenham mensagens inline */

.input-with-icon input+.campo-erro-mensagem {
    display: none !important;
}


/* Mensagem de erro deve vir após o container input-with-icon */

.form-group .input-with-icon~.campo-erro-mensagem {
    display: block !important;
    margin-top: 6px;
}


/* Estilos do Flatpickr - Calendário */

.flatpickr-calendar {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: inherit;
}

.flatpickr-months {
    background: var(--primary-color);
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

.flatpickr-current-month {
    color: var(--white);
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: var(--white);
    color: var(--text-color);
    padding: 8px 12px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: var(--primary-light);
}

.flatpickr-current-month .numInputWrapper {
    background: transparent;
}

.flatpickr-current-month .numInputWrapper input.cur-year {
    color: var(--white);
    background: transparent;
    border: none;
    font-weight: 600;
}

.flatpickr-current-month .numInputWrapper:hover {
    background: var(--primary-light);
}

.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
    border-color: var(--white) transparent transparent transparent;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:hover,
.flatpickr-current-month .numInputWrapper span.arrowDown:hover {
    border-color: var(--accent-light) transparent transparent transparent;
}


/* Garantir que todos os elementos do mês/ano sejam visíveis */

.flatpickr-current-month select,
.flatpickr-current-month input {
    color: var(--white) !important;
}

.flatpickr-current-month select option {
    background: var(--white) !important;
    color: var(--text-color) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:focus,
.flatpickr-current-month .cur-year:focus {
    outline: 2px solid var(--accent-light);
    outline-offset: -2px;
}

.flatpickr-weekdays {
    background: var(--bg-color);
}

.flatpickr-weekday {
    color: var(--text-light);
    font-weight: 600;
}

.flatpickr-day {
    color: var(--text-color);
    border-radius: var(--border-radius-sm);
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
    background: var(--bg-color);
    border-color: var(--accent-color);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

.flatpickr-day.today {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.flatpickr-day.today:hover {
    background: var(--accent-color);
    color: var(--white);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: var(--white);
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--accent-light);
}


/* =================================================================
   TOOLTIP FLUTUANTE - Para textos truncados em colunas estreitas
   ================================================================= */

.tooltip-flutuante {
    position: fixed;
    z-index: 99999;
    background: var(--primary-color, #333);
    color: var(--white, #fff);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm, 4px);
    font-size: 13px;
    max-width: 350px;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.tooltip-flutuante.show {
    opacity: 1;
}


/* Texto truncado com tooltip */

.texto-truncado {
    display: inline-block;
    max-width: 100%;
    cursor: default;
}

.texto-truncado .texto-visivel {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}


/* Coluna de ID em tabelas - evitar quebra de linha */

.table .col-id,
.table th.col-id,
.table td.col-id {
    white-space: nowrap;
    min-width: 50px;
    text-align: center;
}


/* Célula de ID com texto truncado */

.celula-id-truncado {
    display: inline-block;
    max-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
}