/*Frontend/crm/css/style.css*/

/* ============================================================
   NAVEGAÇÃO ENTRE PÁGINAS (View Transitions)
   A intranet é multipágina: cada item do menu é um .html próprio,
   então todo clique recarrega o documento inteiro e o navegador
   mostra um flash branco entre uma página e outra.
   Esta regra ativa a transição suave nativa (Chrome/Edge) e elimina
   o "piscar". Navegadores sem suporte simplesmente ignoram.
   ============================================================ */
@view-transition {
    navigation: auto;
}

/* Respeita quem pediu menos animação no sistema operacional */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }
}

.crm-container {
    /*height: calc(100vh - 80px); /* Ajusta altura para caber na tela sem scroll duplo */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.crm-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

/* Adicione junto aos outros estilos de .action-btn */
.action-exchange:hover {
    color: #f39c12;
}

/* Campo de Busca Rápida */
.search-wrapper-crm {
    position: relative;
    max-width: 300px;
    width: 100%;
    margin-right: 15px;
}

.search-wrapper-crm i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-wrapper-crm input {
    width: 100%;
    padding: 8px 10px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Barra de KPIs */
.kpi-summary-bar {
    display: flex;
    gap: 15px;
    margin: 0 10px 15px 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.stat-card-mini {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    flex: 1;
    min-width: 140px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #ccc;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card-mini .stat-title {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-card-mini .stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
}

/* Abas de Seleção de Funil */
.funnel-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 0 10px;
}

.funnel-tab {
    background: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.funnel-tab.active {
    background: #007bff;
    /* Azul padrão */
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

/* Estrutura do Kanban (Colunas) */
.kanban-board {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px;
    height: 100%;
    align-items: flex-start;

    /* NOVO: Cursor indicativo para drag-to-scroll */
    cursor: grab;
}

/* Classe ativa quando o usuário está segurando o clique no board */
.kanban-board.active {
    cursor: grabbing;
    user-select: none;
    /* Evita selecionar texto acidentalmente */
}

.kanban-column {
    min-width: 280px;
    max-width: 280px;
    background: #f4f5f7;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.column-header {
    padding: 12px;
    font-weight: 700;
    color: #42526e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e1e4e8;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.column-body {
    padding: 8px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 100px;
    /* Importante para permitir drop em colunas vazias */
}

/* Cards (Leads) */
.kanban-card {
    background: white;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    cursor: grab;
    border-left: 4px solid #ccc;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
    position: relative;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Estilos visuais do Drag and Drop (SortableJS) */
.sortable-ghost {
    opacity: 0.4;
    background-color: #e9ecef;
    border: 2px dashed #999;
}

.sortable-drag {
    background: #fff;
    opacity: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    transform: rotate(2deg);
    /* Leve inclinação ao arrastar */
}

/* Cores da borda do card baseadas no status */
.card-novo {
    border-left-color: #3498db;
}

.card-atencao {
    border-left-color: #f1c40f;
}

.card-perdido {
    border-left-color: #e74c3c;
    opacity: 0.8;
}

.card-ganho {
    border-left-color: #2ecc71;
}

/* Indicador de Estagnação */
.kanban-card.stagnant {
    border-left-color: #e74c3c !important;
    background: #fff5f5;
    /* Fundo levemente avermelhado */
}

.kanban-card.stagnant::after {
    content: '⚠️ Atenção: Parado há +2 dias';
    display: block;
    font-size: 0.7rem;
    color: #c0392b;
    font-weight: bold;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #e74c3c;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    align-items: center;
}

.card-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

.card-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.card-badge {
    display: inline-block;
    background: #eee;
    color: #555;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 5px;
}

/* Botões de Ação no Card */
.card-actions {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.action-btn:hover {
    color: #007bff;
}

.action-wpp:hover {
    color: #25D366;
}

/* --- MODAL PROFISSIONAL (Modern SaaS Style) --- */

/* Fundo com Desfoque */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    /* Azul escuro semi-transparente */
    backdrop-filter: blur(4px);
    /* Efeito Glassmorphism */
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Estado Aberto (JS adicionará style="display:flex") */
.modal-overlay[style*="display: flex"] {
    opacity: 1;
}

/* Container do Modal */
.modal-content-modern {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    /* Bordas arredondadas modernas */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    animation: modalSlideUp 0.3s forwards;
}

@keyframes modalSlideUp {
    to {
        transform: translateY(0);
    }
}

/* Cabeçalho */
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    color: #ef4444;
}

/* Corpo */
.modal-body {
    padding: 24px;
}

.lead-highlight {
    background: #eff6ff;
    color: #1e40af;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Formulário */
.form-group-modern {
    margin-bottom: 15px;
}

.form-group-modern label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
}

.form-control-modern {
    width: 93%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.2s;
    outline: none;
}

.form-control-modern:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Área de Perda (Vermelha) */
.loss-reason-section {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

.loss-reason-section label {
    color: #b91c1c;
}

.loss-reason-section select,
.loss-reason-section textarea {
    border-color: #fca5a5;
}

.loss-reason-section select:focus,
.loss-reason-section textarea:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Rodapé e Botões */
.modal-footer {
    padding: 15px 24px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #ffffff;
}

.btn-modern {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-ghost {
    background: transparent;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-ghost:hover {
    background: #f1f5f9;
    color: #334155;
}

.btn-primary-modern {
    background: #3b82f6;
    /* Azul padrão */
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-primary-modern:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Variações do Botão Primário */
.btn-danger-modern {
    background: #ef4444 !important;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3) !important;
}

.btn-success-modern {
    background: #10b981 !important;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   ESTILOS GESTÃO DE VAGAS (ADICIONADO)
   ========================================================================== */

/* Barra de Filtros de Vagas */
.vagas-filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.vagas-filter-bar .search-input-wrapper {
    flex-grow: 1;
    position: relative;
}

.vagas-filter-bar .search-input-wrapper i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.vagas-filter-bar input {
    padding-left: 2.5rem;
    width: 100%;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    padding-right: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
}

.vagas-filter-bar select {
    min-width: 180px;
    padding: 0.6rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #fff;
}

/* Container de Lista */
#vagas-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

/* Card de Vaga */
.vaga-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vaga-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.vaga-card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.vaga-header-main {
    flex-grow: 1;
}

.vaga-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.vaga-subtitle {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.vaga-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.aberta {
    background-color: #e0f2fe;
    color: #0284c7;
}

.status-badge.fechada {
    background-color: #f1f5f9;
    color: #64748b;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
}

.vaga-actions {
    display: flex;
    gap: 0.25rem;
}

.vaga-actions button {
    background: none;
    border: 1px solid transparent;
    padding: 0.5rem;
    color: #64748b;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s;
}

.vaga-actions button:hover {
    color: #0f172a;
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

.vaga-card-body {
    padding: 0 1.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}

.vaga-detail-group .label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
}

.vaga-detail-group .value {
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.6;
    white-space: pre-wrap;
    margin: 0;
}

.vaga-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    color: #64748b;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.kpi-card .value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
}

.kpi-card .label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
}

/* KPI Filter Bar */
.kpi-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: flex-end;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.filter-group input[type="date"],
.filter-group select {
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.filter-group span {
    padding: 0 0.5rem;
    color: #64748b;
    align-self: center;
}

.filter-group:has(#kpi-date-start) {
    flex-direction: row;
    align-items: center;
}

/* Modais Específicos */
.modal-xl {
    max-width: 1200px;
    height: 90vh;
}

.modal-lg {
    max-width: 800px;
}

/* List Builder */
.dynamic-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex-grow: 1;
    padding: 0.6rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.input-group .btn-add-item {
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
    padding: 0.5rem;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.item-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #f1f5f9;
    color: #0f172a;
    font-size: 0.9rem;
}

.item-list .btn-remove-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.25rem;
}

/* Lista de Candidatos */
.candidate-item {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    background-color: #fff;
}

.candidate-rating {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-rating-icon {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

.ia-rating-icon.perfect {
    background-color: #f59e0b;
}

.ia-rating-icon.good {
    background-color: #16a34a;
}

.ia-rating-icon.reasonable {
    background-color: #64748b;
}

.ia-rating-icon.inadequate {
    background-color: #ef4444;
}

.candidate-info p {
    margin: 0;
}

.candidate-info .candidate-name {
    font-weight: 600;
    color: #0f172a;
}

.candidate-info .candidate-phone {
    font-size: 0.9rem;
    color: #64748b;
}

.candidate-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.btn-action:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}

.btn-action.view-resume-btn {
    background-color: #3b82f6;
    color: #fff;
    border: none;
}

.btn-action.view-resume-btn svg {
    stroke: #fff;
}

.btn-action.view-resume-btn:hover {
    background-color: #2563eb;
}

/* Resume Viewer */
#resume-viewer-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

#vaga-details-sidebar {
    width: 380px;
    flex-shrink: 0;
    padding: 1.5rem 2rem;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    background-color: #f8fafc;
}

#resume-iframe-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #e2e8f0;
}

#resume-viewer-iframe {
    width: 100%;
    flex-grow: 1;
    border: none;
}

.vaga-detail-sidebar-header h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
    margin-top: 0;
}

.vaga-detail-sidebar-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.vaga-detail-sidebar-group {
    margin-bottom: 1.5rem;
}

.vaga-detail-sidebar-group .label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: block;
    text-transform: uppercase;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.vaga-detail-sidebar-group .value {
    font-size: 0.9rem;
    color: #0f172a;
    line-height: 1.6;
    white-space: pre-wrap;
    margin: 0;
}

/* Utilitários */
.form-grid-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.justificativa-icon {
    margin-left: 8px;
    cursor: help;
    font-style: normal;
}

#analise-ia-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* --- NOVO: Carimbo "VENDIDO" --- */
.sold-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg) scale(0);
    font-size: 1.8rem;
    font-weight: 900;
    color: #2ecc71;
    border: 4px solid #2ecc71;
    padding: 5px 10px;
    border-radius: 10px;
    opacity: 0;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    /* Permite clicar através dele se necessário */
    animation: stampIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stampIn {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-15deg) scale(1);
    }
}

/* --- NOVO: Pesquisa Rápida (Flash Survey) --- */
.win-survey-container {
    width: 100%;
    min-height: 140px;
    /* Garante uma altura mínima confortável */
    background: white;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    /* Ajuste no padding */
    text-align: center;
    animation: fadeIn 0.3s ease;
}

/* Opcional: Ajustar o título para garantir espaçamento */
.win-survey-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 12px;
}

.win-survey-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.win-btn {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.win-btn:hover {
    background: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

/* --- NOVO: Animação de Arquivamento (Slide Out) --- */
.archived-slide-out {
    animation: slideOutRight 0.5s ease forwards;
    pointer-events: none;
    /* Impede cliques durante a saída */
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
        height: 0;
        margin: 0;
        padding: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================= */
/* === ESTILOS ORIGINAIS (GERAL E INTRANET)  */
/* ========================================= */

#avatar-type-indicator, .avatar-type-indicator, .modal-section h4 {
    letter-spacing: .5px;
    text-transform: uppercase
}

.birthday-scroller-v2, .page-container, .sidebar {
    display: flex
}

.btn, .btn-register, .fab-upload, .quick-link, .sidebar-menu a {
    transition: background-color .3s
}

.event-card-v2:hover, .video-card:hover {
    transform: translateY(-5px)
}

#faq-search-input, .chat-assignment-controls select, .draggable.resizable, .image-modal, .interactive-card .btn-external-link, .modal, .modal-content, .modal-media-info, .search-wrapper-v2 input {
    box-sizing: border-box
}

:root {
    --sidebar-bg: #00234B;
    --sidebar-text: #ffffff;
    --sidebar-hover-bg: #003366;
    --primary-color: #005A9C;
    --secondary-color: #00A9E0;
    --background-color: #f4f7fa;
    --text-color: #333;
    --card-bg: #ffffff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --fun-primary: #FF7A00;
    --fun-secondary: #FFC700;
    --fun-accent: #6A00FF;
    --fun-bg-light: #FFF8F0;

    /* VARIÁVEIS DA NOVA SIDEBAR RETRÁTIL (AJUSTADAS) */
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 65px;
}

/* --- BLOQUEIO GLOBAL DAS BARRAS DE ROLAGEM PRINCIPAIS --- */
html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: var(--text-color);
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    overflow-x: hidden;
    /* Previne scroll horizontal da página */
}

/* Chrome, Safari, Opera */
html::-webkit-scrollbar, body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* -------------------------------------------------------- */

.container, .container-dashboard-v2 {
    padding: 20px 30px
}

/* ========================================= */
/* === NOVA SIDEBAR RETRÁTIL E SUBMENUS ===  */
/* ========================================= */

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px 0;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 0 20px 15px;
    font-size: 1.3em;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
}

/* --- BLINDAGEM DO TÍTULO DA SIDEBAR --- */
.sidebar-header h2 {
    font-size: 1.25rem !important;
    /* Blinda contra vazamentos do h2 global */
    margin: 0 !important;
    line-height: 1.2 !important;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.sidebar-header h2 a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: inherit !important;
    text-decoration: none !important;
    color: inherit !important;
}

.sidebar-header h2 i {
    font-size: 1.1rem !important;
    margin-top: 1px;
}

/* -------------------------------------- */

.sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--sidebar-text);
    font-size: 0.9rem;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.sidebar.collapsed .sidebar-collapse-btn {
    transform: rotate(180deg);
    right: auto;
    left: 50%;
    margin-left: -13px;
    top: 10px;
}

.sidebar.collapsed .sidebar-collapse-btn:hover {
    transform: rotate(180deg) scale(1.1);
}

/* CRM/Intranet-classic: oculta texto, headers e ícones de expansão */
.sidebar.collapsed .sidebar-header h2,
.sidebar.collapsed .menu-header,
.sidebar.collapsed .sidebar-menu span,
.sidebar.collapsed .submenu-toggle-icon { display: none !important; }

.sidebar.collapsed .sidebar-header {
    padding: 0 10px 20px;
    border-bottom: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0 10px;
    margin: 15px 0;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-menu h3, .menu-header {
    font-size: 0.75em;
    text-transform: uppercase;
    color: #a0b3c8;
    padding: 15px 15px 5px;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    color: var(--sidebar-text);
    text-decoration: none;
    padding: 10px 15px;
    white-space: nowrap;
    border-radius: 8px;
    margin-bottom: 2px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ESTILO PÍLULA (PILL) PARA O ITEM ATIVO */
.sidebar-menu a.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-menu a i:first-child {
    width: 22px;
    text-align: center;
    margin-right: 12px;
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.9;
}

.sidebar-menu a.active i:first-child {
    opacity: 1;
}

/* Ícone: remove margin e normaliza tamanho */
.sidebar.collapsed .sidebar-menu a i:first-child {
    margin-right: 0 !important;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Link colapsado: centraliza ícone, bloqueia overflow */
.sidebar.collapsed .sidebar-menu a {
    padding: 12px 0;
    justify-content: center;
    gap: 0;
    border-radius: 8px;
    margin: 0 5px 5px;
    overflow: hidden;
}

/* Submenus (Accordion) */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background-color: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
}

.has-submenu.open>.submenu {
    max-height: 500px;
    margin-top: 2px;
    margin-bottom: 5px;
}

.submenu a {
    padding-left: 45px !important;
    font-size: 0.85em;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #cbd5e1;
}

.submenu a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.submenu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: none;
}

.nav-item.has-submenu>a {
    justify-content: flex-start;
}

.submenu-toggle-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 0.75em;
    opacity: 0.7;
}

.has-submenu.open>a .submenu-toggle-icon {
    transform: rotate(180deg);
}

/* Submenus: fecha tudo com display:none — mais robusto que max-height:0 */
.sidebar.collapsed .submenu { display: none !important; }

/* Rodapé da Sidebar (Perfil do Usuário) — card flutuante premium */
.sidebar-footer-profile {
    margin: auto 12px 16px;          /* margin-top:auto fixa no rodapé + vira card com respiro */
    padding: 10px 10px 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.sidebar-footer-profile:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

/* O main.js cria este bloco sempre que há token, mas só o PREENCHE no CRM
   (na intranet o perfil do usuário fica no cabeçalho). Vazio, ele ainda
   renderizava borda + fundo + padding, virando um retângulo fantasma no
   rodapé da sidebar da intranet. Sem conteúdo, não ocupa espaço. */
.sidebar-footer-profile:empty {
    display: none;
}

.profile-info-container {
    display: flex;
    align-items: center;
    gap: 11px;
    overflow: hidden;
    min-width: 0;
}

.sidebar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16), 0 2px 6px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.profile-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
}

.profile-text strong {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--sidebar-text);
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-overflow: ellipsis;
    overflow: hidden;
}

.profile-text span {
    font-size: 0.68rem;
    color: #93a6bd;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
}

#sidebar-logout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 0.95rem;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

#sidebar-logout-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    color: #ef4444;
}

.sidebar.collapsed .sidebar-footer-profile {
    margin: auto 8px 16px;
    padding: 10px 0;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.sidebar.collapsed .profile-text {
    display: none;
}

.sidebar.collapsed #sidebar-logout-btn {
    margin-left: 0;
}

/* Container Principal Animado */
.main-content-wrapper {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed~.main-content-wrapper {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

/* Estilização Scroller Sidebar (Este continua ativo para barras internas) */
.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.action-button-restricted, .admin-only {
    display: none
}

.main-header {
    background-color: var(--card-bg);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0
}

.main-header h1 {
    margin: 0;
    font-size: 1.5em;
    color: var(--text-color)
}

#logout-btn, .admin-interactive-actions .btn-icon:hover, .btn-icon:hover, .card-header a, .detail-modal-actions button:hover, .event-showcase-date .day, .faq-actions .btn-edit:hover, .login-form h2, .news-item h4 a:hover, .user-table .actions .btn-edit:hover {
    color: var(--primary-color)
}

#user-info-display, .doc-info, .header-actions, .list-item-main-info {
    display: flex;
    align-items: center;
    gap: 15px
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb
}

.btn {
    padding: 10px 18px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px
}

.btn-change-avatar:hover, .btn:hover {
    background-color: #004a80
}

#logout-btn {
    background: 0 0;
    border: none;
    cursor: pointer;
    font-size: 1.2em
}

.form-group {
    margin-bottom: 20px;
    text-align: left
}

#upload-category-group label, #upload-section-group label, .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700
}

#upload-category-group select, #upload-section-group input, .form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box
}

.event-card, .event-summary-card, .form-container, .login-form, .post-card, .ticket-chat-panel, .ticket-info-panel {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow)
}

.error-message {
    color: #d9534f;
    margin-top: 10px
}

.success-message {
    color: #28a745;
    font-weight: 700;
    margin-top: 15px
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh
}

.login-form {
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.432);
}

.event-card, .event-summary-card, .post-card, .post-card-grid-body {
    padding: 20px
}

.diversao-header, .event-card, .feedback-card, .login-form h2, .modal-section, .post-full-content .post-meta {
    margin-bottom: 20px
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px
}

.dashboard-main-content {
    grid-column: 1/2
}

#user-details, .dashboard-info-sidebar {
    grid-column: 2/3
}

.event-summary-card, .post-card {
    margin-bottom: 15px;
    position: relative
}

.post-meta {
    font-size: .9em;
    color: #666;
    margin-bottom: 15px
}

.event-card p, .feedback-body p, .post-card p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word
}

.card-header, .page-header, .view-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px
}

.btn-register {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer
}

.btn-register:hover, input:checked+.slider {
    background-color: var(--primary-color)
}

.btn-register.disabled {
    background-color: #a0a0a0;
    cursor: not-allowed
}

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer
}

.feedback-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 20px auto
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px
}

.form-group-checkbox input {
    width: auto
}

.video-thumbnail .video-card-element, .video-thumbnail img {
    width: 100%;
    height: 180px;
    display: block;
    object-fit: cover
}

.feedback-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    border-left: 5px solid #6c757d
}

.feedback-card.status-read {
    border-left-color: #007bff
}

.feedback-card.status-in_progress {
    border-left-color: #ffc107
}

.feedback-card.status-completed {
    border-left-color: #28a745
}

.feedback-card.status-archived {
    border-left-color: #ccc
}

.feedback-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd
}

.feedback-type {
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff
}

.btn-approve, .btn-reply, .doc-status.signed, .feedback-type.elogio, .status-badge.active {
    background-color: #28a745
}

.feedback-type.sugestao, .role-gestor-departamento {
    background-color: #ffc107;
    color: #333
}

.btn-reject, .feedback-type.critica, .role-super-admin {
    background-color: #dc3545
}

.feedback-meta, .queue-item-info span, .stat-label {
    font-size: .9em;
    color: #666
}

.feedback-body {
    padding: 15px
}

.feedback-body p {
    margin: 5px 0
}

.feedback-actions {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.post-full-content {
    background-color: var(--card-bg);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow)
}

.post-full-content h1 {
    margin-top: 0;
    font-size: 2.2em
}

.post-body-full {
    font-size: 1.1em;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word
}

.read-more-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none
}

#mark-all-read-btn:hover, .attachment-list a:hover, .read-more-link:hover {
    text-decoration: underline
}

.container-diversao {
    padding: 0 30px 30px
}

.diversao-header {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0
}

.filter-tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    padding: 0 15px
}

.tab-link {
    background: 0 0;
    border: none;
    padding: 15px 20px;
    font-size: 1em;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: .2s
}

.tab-link:hover {
    background-color: #f9fafb;
    color: #374151
}

.tab-link.active {
    background-color: transparent;
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 3px solid var(--primary-color)
}

.diversao-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px
}

.fofoca-sidebar, .post-list-view, .video-section {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.classifieds-grid, .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px
}

.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease-in-out;
    display: flex;
    flex-direction: column;
    position: relative
}

.btn-doc-action:hover, .icon-picker-item:hover, .video-thumbnail, .video-thumbnail .video-card-element {
    background-color: #f0f0f0
}

.video-thumbnail {
    position: relative;
    cursor: pointer
}

.video-thumbnail video+.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0
}

.faq-item summary::after, .search-bar-wrapper i, .search-wrapper-v2 i {
    top: 50%;
    transform: translateY(-50%)
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    color: #fff;
    opacity: 0;
    transition: opacity .3s
}

#submit-fofoca-btn, .video-category-badge {
    background-color: var(--fun-accent);
    font-weight: 700
}

.avatar-container:hover .btn-change-avatar, .avatar-container:hover .btn-edit-svg-avatar.can-edit-svg {
    opacity: 1;
    pointer-events: auto
}

.avatar-container:hover .btn-change-avatar, .avatar-container:hover .btn-edit-svg-avatar, .video-card:hover .play-overlay {
    opacity: 1
}

.video-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .8em
}

.video-info {
    display: flex;
    padding: 15px;
    gap: 12px;
    flex-grow: 1
}

#raffle-signups-list img, .attendee-item img, .uploader-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover
}

.video-title {
    margin: 0 0 4px;
    font-size: 1.1em
}

.uploader-name {
    margin: 0;
    color: #666;
    font-size: .9em
}

.video-stats {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: .9em;
    color: #888
}

.modal-media-stats span i, .video-stats span i {
    margin-right: 5px
}

.fab-upload {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--fun-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    cursor: pointer;
    z-index: 999
}

.fofoca-card, .fofoca-input-card, .moderation-card, .stat-card {
    box-shadow: var(--shadow)
}

.btn-hero:hover, .fab-upload:hover {
    background-color: #e66a00
}

.fofoca-input-card {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 12px
}

.fofoca-input-card textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    margin-bottom: 10px;
    font-family: inherit
}

#submit-fofoca-btn {
    width: 100%;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer
}

.fofoca-card {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px
}

.fofoca-icon {
    font-size: 1.5em;
    color: var(--fun-accent);
    padding-top: 5px
}

.fofoca-content {
    flex: 1
}

.fofoca-text {
    margin: 0 0 10px
}

.fofoca-footer {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.fofoca-reactions button {
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 5px;
    margin-top: 5px;
}

.fofoca-time {
    font-size: .8em;
    color: #999
}

.video-modal video {
    outline: 0
}

.video-close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer
}

.moderation-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px
}

.moderation-preview img, .moderation-preview video {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #000
}

.moderation-preview-text {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: var(--fun-accent);
    background-color: #f0f2f5;
    border-radius: 4px
}

.hero-banner, .stat-card {
    border-radius: 12px;
    position: relative
}

.detail-content-body, .event-card-info, .event-filters input, .event-showcase-info, .feedback-filters input, .message-content, .modal-media-comments .comment-content, .moderation-info, .org-card-info, .ticket-search-filter input[type=text] {
    flex-grow: 1
}

.directory-actions, .moderation-actions, .signing-controls div {
    display: flex;
    gap: 10px
}

@media (max-width:1200px) {
    .diversao-body {
        grid-template-columns: 1fr
    }
}

.hero-banner {
    height: 300px;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background: url('../assets/Cosmo_4.jpg') center center/cover no-repeat
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 35, 75, .8) 0, rgba(0, 90, 156, .6) 100%)
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px
}

.hero-content h2 {
    font-size: 2.5em;
    margin: 0
}

.hero-content p {
    font-size: 1.1em;
    margin: 10px 0 20px
}

.btn-hero {
    background-color: var(--fun-primary);
    padding: 12px 25px;
    font-weight: 700
}

.btn-hero i {
    margin-left: 10px
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px
}

.stat-icon {
    font-size: 1.8em;
    color: var(--primary-color);
    background-color: #eaf4ff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}

.birthday-info-v2, .detail-info-column, .event-card-large, .moderation-queue-panel, .stat-info {
    display: flex;
    flex-direction: column
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-color)
}

.stat-change {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: .8em;
    color: #888
}

#signature-message.success-message, .stat-change.positive {
    color: #28a745
}

.main-dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .8em;
    font-weight: 700;
    color: #fff;
    margin-right: 10px
}

.badge-orange, .interactive-card .btn-participate {
    background-color: #FFE8D1;
    padding: 5px 10px;
    border-radius: 8px;
    color: #C75A00;
    font-weight: 600;
}

#fab-create-interactive, .badge-purple {
    background-color: #E9D8FF;
    padding: 5px 10px;
    border-radius: 8px;
    color: #5B00D6;
    font-weight: 600;
}

.event-card-large, .news-feed-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow)
}

.card-header h3 {
    margin: 0;
    display: flex;
    align-items: center
}

.card-header a {
    font-size: .9em;
    text-decoration: none;
    font-weight: 700
}

.news-list .news-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0
}

.news-list .news-item:last-child {
    border-bottom: none;
    padding-bottom: 0
}

.category-card h4, .event-card-v2-empty h4, .news-item h4 {
    margin: 0 0 5px
}

.news-item h4 a {
    text-decoration: none;
    color: var(--text-color)
}

.list-item-main-info p, .news-item p {
    margin: 0;
    font-size: .9em;
    color: #666
}

.event-showcase-header {
    width: 100%;
    margin-bottom: 15px
}

.event-showcase-body {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-grow: 1
}

.event-showcase-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-width: 80px;
    height: 80px;
    text-align: center
}

.event-showcase-date .day {
    font-size: 2em;
    font-weight: 700;
    line-height: 1
}

.event-showcase-date .month {
    font-size: .9em;
    text-transform: uppercase;
    font-weight: 500;
    color: #6b7280
}

.event-showcase-title {
    font-size: 1.2em;
    margin: 0 0 5px;
    color: var(--text-color)
}

.event-showcase-location, .event-showcase-time {
    margin: 0;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9em
}

.event-showcase-location {
    margin-top: 5px
}

.event-showcase-footer {
    width: 100%;
    margin-top: 20px
}

.event-showcase-footer .btn {
    width: 100%;
    padding: 12px
}

.event-card-v2-empty {
    text-align: center;
    padding: 20px
}

.event-card-v2-empty i {
    font-size: 2em;
    color: #9ca3af;
    margin-bottom: 10px
}

.event-card-v2-empty p {
    color: #6b7280;
    margin: 0
}

.quick-access {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-top: 30px
}

.quick-access h3 {
    margin: 0 0 20px
}

.quick-access-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px
}

.quick-link {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700
}

.quick-link:hover {
    background-color: #eaf4ff;
    color: var(--primary-color)
}

.quick-link i {
    font-size: 1.5em;
    margin-bottom: 10px;
    display: block
}

.container-ajuda {
    padding: 20px 30px;
    background-color: #f0faf5;
    min-height: calc(100vh - 71px)
}

#events-calendar-container, .category-card, .external-links-section, .faq-admin-section, .faq-section, .table-container {
    background-color: var(--card-bg);
    box-shadow: var(--shadow)
}

.ajuda-subtitle {
    color: #555;
    margin-top: 0
}

.search-bar-wrapper {
    position: relative;
    margin: 20px 0
}

.search-bar-wrapper i {
    position: absolute;
    left: 15px;
    color: #999
}

#faq-search-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 8px
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px
}

.category-card {
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s
}

.category-card:hover, .classified-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1)
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-bottom: 15px
}

.category-card p {
    margin: 0;
    font-size: .9em;
    color: #777
}

.faq-section {
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px
}

.faq-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0
}

.birthday-header h3, .comment-content p, .detail-meta-container p, .faq-admin-section-header h3, .faq-section-header h3, .info-header h3, .list-item-main-info h4 {
    margin: 0
}

.faq-item {
    border-bottom: 1px solid #eee
}

#notification-list li:last-child, #raffle-signups-list li:last-child, .avatar-options-section:last-child, .comment-item:last-child, .document-item-admin:last-child, .document-item:last-child, .faq-item:last-child, .modal-media-comments .comment-item:last-child, .user-table tr:last-child td {
    border-bottom: none
}

.faq-item summary {
    padding: 18px 30px 18px 0;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative
}

.faq-item summary::-webkit-details-marker {
    display: none
}

.faq-item summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 5px;
    transition: transform .2s
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(180deg)
}

.faq-answer {
    padding: 0 10px 20px;
    line-height: 1.6;
    color: #555
}

.table-container {
    border-radius: 8px;
    overflow-x: auto
}

.user-table {
    width: 100%;
    border-collapse: collapse
}

.user-table td, .user-table th {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0
}

#notification-list li:hover, .queue-item:hover, .user-table th {
    background-color: #f8f9fa
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .8em;
    font-weight: 700;
    color: #fff
}

.btn-action, .btn-outline, .skill-badge, .tab-btn-v2, .time-badge {
    font-weight: 500
}

.status-badge.inactive {
    background-color: #6c757d
}

.user-table .actions {
    text-align: right
}

.user-table .actions button {
    background: 0 0;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    margin-left: 15px;
    color: #555
}

#signature-message.error-message, .admin-interactive-actions .btn-delete-interactive:hover, .btn-delete-document i, .detail-modal-actions button.btn-delete-detail:hover, .faq-actions .btn-delete:hover, .faq-admin-section-header .btn-delete-category:hover, .priority-Alta, .user-table .actions .btn-delete:hover {
    color: #dc3545
}

.admin-actions-header {
    display: flex;
    gap: 15px;
    margin-bottom: 30px
}

.faq-admin-section {
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden
}

.faq-admin-section-header {
    background-color: #e9ecef;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.faq-admin-item, .info-header {
    justify-content: space-between
}

.faq-admin-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-top: 1px solid #eee
}

.faq-actions button {
    background: 0 0;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    margin-left: 10px;
    color: #555
}

.icon-picker-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto
}

.icon-picker-item {
    font-size: 1.5em;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color .2s, border-color .2s;
    color: #555;
    width: 25px;
    text-align: center
}

.document-column, .user-info-card {
    padding: 25px;
    box-shadow: var(--shadow)
}

.icon-picker-item.selected {
    border-color: var(--primary-color);
    color: var(--primary-color)
}

.user-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px
}

.user-info-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 30px
}

.avatar-container {
    position: relative;
}

#avatar-display-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    background-color: #f0f0f0;
    position: relative;
    z-index: 1
}

#avatar-display-container svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3
}

.btn-change-avatar, .btn-edit-svg-avatar {
    position: absolute;
    bottom: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease-in-out;
    z-index: 10
}

.agenda-controls, .classified-card, .comments-container, .event-card-v2, .feedback-filters, .interactive-card, .post-card-grid, .ticket-card {
    box-shadow: var(--shadow)
}

#user-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2
}

.btn-change-avatar {
    right: 5px;
    background-color: var(--primary-color);
    color: #fff
}

#avatar-upload-input, #external-url-group, .tab-content {
    display: none
}

.user-info-card h3 {
    grid-column: 2/3;
    margin-top: 0
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px
}

#user-details p {
    margin: 10px 0;
    color: #555
}

.documents-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

.document-column {
    background-color: var(--card-bg);
    border-radius: 12px
}

.document-column h3 {
    margin-top: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px
}

.avatar-editor-card h3 i, .document-column h3 i {
    margin-right: 10px;
    color: var(--primary-color)
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0
}

.doc-info .fa-file-pdf {
    font-size: 1.5em;
    color: #e74c3c
}

.doc-status.pending {
    background-color: #f39c12
}

.attendee-item, .doc-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.btn-doc-action {
    background: 0 0;
    border: 1px solid #ccc;
    color: #555;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.btn-doc-action i, .btn-like-modal span {
    font-size: .9em
}

@media (max-width:992px) {
    .documents-grid {
        grid-template-columns: 1fr
    }
}

.btn-edit-svg-avatar {
    right: 50px;
    background-color: rgba(230, 230, 230, .9);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23333' d='M351.4 64.6c-12.5-12.5-32.8-12.5-45.3 0L193.9 176.9c-14.7 14.7-14.7 38.5 0 53.2l117.8 117.8c14.7 14.7 38.5 14.7 53.2 0L482.7 230.1c12.5-12.5 12.5-32.8 0-45.3L351.4 64.6zm-173.8 28.2L200 70.4l136 136-22.6 22.6L177.6 92.8zM48 304c-26.5 0-48 21.5-48 48s21.5 48 48 48h304c13.3 0 24-10.7 24-24s-10.7-24-24-24H48zm120 16c-8.8 0-16 7.2-16 16s7.2 16 16 16h16c8.8 0 16-7.2 16-16s-7.2-16-16-16h-16zm64 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h16c8.8 0 16-7.2 16-16s-7.2-16-16-16h-16zm64 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h16c8.8 0 16-7.2 16-16s-7.2-16-16-16h-16z'/%3E%3C/svg%3E");
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid #fff;
    padding: 0
}

.btn-edit-svg-avatar:hover {
    background-color: rgba(200, 200, 200, .95)
}

#avatar-type-indicator {
    position: absolute;
    bottom: 5px;
    background-color: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none
}

.container-espaco-empresa {
    padding: 20px 30px;
    background-color: #f9fafb
}

.stats-container-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px
}

.stat-card-v3 {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb
}

.stat-card-v3 .stat-title {
    font-size: 1em;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px
}

.stat-card-v3 .stat-main {
    font-size: 2.5em;
    font-weight: 700;
    color: #111827
}

.stat-card-v3 .stat-sub {
    font-size: .9em;
    color: #6b7280
}

.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    margin-right: 8px
}

.btn-outline, .view-toggle {
    border: 1px solid #d1d5db;
    display: flex
}

.directory-header, .message-bubble p:last-child {
    margin-bottom: 0
}

.directory-title h2 {
    margin: 0;
    font-size: 1.5em;
    color: #111827
}

.directory-title p, .organogram-title-header p {
    margin: 5px 0 0;
    color: #6b7280
}

.view-toggle {
    border-radius: 6px;
    overflow: hidden
}

.view-toggle button {
    background: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #6b7280
}

.view-toggle button:hover {
    background: #f9fafb
}

.view-toggle button.active {
    background: #e5e7eb;
    color: #1f2937
}

.btn-outline {
    background: #fff;
    color: #374151;
    padding: 8px 16px;
    border-radius: 6px;
    align-items: center;
    gap: 8px;
    cursor: pointer
}

.btn-outline:hover {
    background-color: #f9fafb
}

.event-filters, .toolbar-v2 {
    display: flex;
    gap: 15px;
    margin-bottom: 20px
}

.search-wrapper-v2 {
    position: relative;
    flex-grow: 1
}

.search-wrapper-v2 i {
    position: absolute;
    left: 15px;
    color: #9ca3af
}

.search-wrapper-v2 input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #fff
}

.tabs-container-v2 {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid #d1d5db;
    margin-bottom: 30px;
    overflow-x: auto
}

.tabs-container-v2::-webkit-scrollbar {
    height: 4px;
}

.tabs-container-v2::-webkit-scrollbar:hover {
    background: #555;
}

.tab-btn-v2 {
    background: 0 0;
    border: none;
    padding: 12px 18px;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    margin-bottom: -1px
}

.tab-btn-v2.active, .tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color)
}

.tab-badge {
    background: #f3f4f6;
    color: #4b5563;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .8em;
    margin-left: 8px
}

.category-badge, .comment-date {
    margin-left: 10px;
    font-size: .8em
}

.birthday-card-v2, .birthday-header {
    display: flex;
    align-items: center
}

.user-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px
}

.user-card-v3 {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    cursor: pointer
}

.user-card-v3-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 16px
}

.user-card-v3-header img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover
}

.user-card-v3-title h4 {
    margin: 0;
    font-size: 1.15em;
    color: #111827
}

.user-card-v3-title p {
    margin: 2px 0 8px;
    color: #6b7280;
    font-size: .9em
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8em;
    color: #059669;
    background: #d1fae5;
    padding: 4px 8px;
    border-radius: 15px
}

.user-card-v3-info, .user-card-v3-skills {
    padding-top: 16px;
    display: flex;
    border-top: 1px solid #f3f4f6
}

.user-card-v3-info {
    flex-direction: column;
    gap: 10px;
    font-size: .9em;
    margin-top: auto
}

.user-card-v3-info span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b5563
}

.user-card-v3-skills {
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 8px
}

.skill-badge {
    background: #eef2ff;
    color: #4338ca;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: .8em
}

.user-card-v3-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 16px 24px;
    border-top: 1px solid #f3f4f6;
    transform: translateY(100%);
    transition: transform .3s
}

.carousel-nav, .carousel-nav-btn {
    transform: translateY(-50%);
    cursor: pointer
}

.user-card-v3:hover .user-card-v3-footer {
    transform: translateY(0)
}

.btn-action {
    flex-grow: 1;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9em
}

.btn-action:hover {
    background-color: #e5e7eb
}

.btn-action i, .btn-whatsapp i {
    margin-right: 8px
}

.external-links-section {
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px
}

.external-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px
}

.external-link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: background-color .3s, color .3s
}

.btn-modal.primary, .external-link-card:hover {
    background-color: var(--primary-color);
    color: #fff
}

.external-link-card i {
    font-size: 1.5em;
    width: 30px;
    text-align: center
}

.user-grid-v3.list-view {
    display: flex;
    flex-direction: column;
    gap: 0
}

.user-list-item-v3 {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
    padding: 15px 20px;
    background: var(--card-bg);
    border-bottom: 1px solid #f0f0f0
}

.user-list-item-v3:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px
}

.user-list-item-v3:last-child {
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px
}

.user-list-item-v3:nth-child(2n) {
    background: #f8f9fa
}

.comment-avatar, .list-item-main-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%
}

.list-item-contact {
    color: #555;
    font-size: .9em
}

.list-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px
}

.btn-icon {
    background: 0 0;
    border: none;
    color: #888;
    font-size: 1.1em;
    cursor: pointer
}

.organogram-title-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb
}

.organogram-title-header h2 {
    font-size: 1.5em;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px
}

.organogram-department-section {
    margin-bottom: 40px
}

.organogram-department-header {
    border-left: 3px solid #6366f1;
    padding-left: 15px;
    margin-bottom: 20px
}

.organogram-department-header h3 {
    margin: 0;
    color: #111827
}

.organogram-department-header p {
    margin: 2px 0 0;
    color: #6b7280
}

.organogram-manager-card, .organogram-team-member-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: var(--card-bg)
}

.organogram-manager-card {
    background: linear-gradient(90deg, #e0e7ff 0, #f5f3ff 100%);
    margin-bottom: 10px
}

.organogram-manager-card img, .organogram-team-member-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%
}

.org-card-info h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
    font-size: 1em
}

.org-card-info p {
    margin: 0;
    color: #4b5563;
    font-size: .9em
}

.org-card-info .org-card-email {
    font-size: .8em;
    color: #6b7280
}

.badge-blue {
    background-color: #3b82f6;
    color: #fff;
    font-size: .7em;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500
}

.btn-outline-v2, .tab-button {
    background: 0 0;
    cursor: pointer
}

.btn-outline-v2 {
    border: 1px solid #c7d2fe;
    color: #4f46e5;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: .9em
}

.organogram-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 30px
}

.user-modal-content {
    max-width: 500px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh
}

.user-modal-header {
    text-align: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb
}

.user-modal-header .close-btn {
    top: 10px;
    right: 15px;
    color: #9ca3af
}

.user-modal-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 12px
}

.user-modal-header h3 {
    margin: 0;
    font-size: 1.25em;
    color: #111827
}

.user-modal-header p {
    margin: 4px 0 0;
    color: #6b7280
}

.user-modal-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: .9em;
    color: #4b5563;
    margin-top: 12px
}

.user-modal-body {
    padding: 16px 24px;
    overflow-y: auto
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px
}

.tab-button {
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    color: #666;
    border-bottom: 3px solid transparent
}

#price-group, .tab-content.active {
    display: block
}

.modal-section h4 {
    font-size: .9em;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 12px
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.contact-item {
    font-size: .9em;
    color: #374151
}

.expertise-tags, .language-tags, .option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.expertise-tags span, .language-tags span {
    background-color: #f3f4f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: .9em;
    color: #374151
}

.user-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    margin-top: auto
}

.btn-modal {
    flex-grow: 1;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.btn-modal.secondary {
    background-color: #fff;
    color: #374151;
    border: 1px solid #d1d5db
}

.page-header .header-actions {
    display: flex;
    align-items: center;
    gap: 20px
}

.category-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    vertical-align: middle
}

.event-card-v2, .post-card-grid {
    border-radius: 12px;
    overflow: hidden
}

.post-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px
}

.post-card-grid {
    background: var(--card-bg);
    position: relative
}

.post-card-grid-img {
    width: 100%;
    height: 180px;
    object-fit: cover
}

.admin-post-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, .8);
    border-radius: 6px;
    padding: 5px;
    z-index: 10
}

.comments-container, .event-card-v2 {
    background: var(--card-bg)
}

.post-full-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px
}

.comments-container {
    margin-top: 30px;
    padding: 25px;
    border-radius: 8px
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0
}

.comment-date {
    color: #999
}

.comment-form {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.event-card-date, .event-card-v2 {
    flex-direction: column;
    display: flex
}

.comment-form textarea {
    width: 100%;
    min-height: 80px
}

.comment-form .btn {
    align-self: flex-end
}

.event-filters input, .event-filters select {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff
}

#agenda-grid, #events-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px
}

.event-card-v2 {
    position: relative;
    border: 1px solid #e5e7eb;
    transition: transform .3s, box-shadow .3s;
    cursor: pointer
}

.event-card-v2:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12)
}

.event-card-v2.featured {
    border-color: var(--fun-accent);
    box-shadow: 0 4px 15px rgba(106, 0, 255, .1)
}

.event-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover
}

.event-card-body {
    padding: 20px;
    display: flex;
    gap: 15px;
    flex-grow: 1
}

.event-card-date {
    align-items: center;
    justify-content: center;
    min-width: 60px
}

.event-card-date .day {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-color)
}

.event-card-date .month {
    font-size: .9em;
    font-weight: 500;
    color: #6b7280
}

.event-card-category {
    font-size: .8em;
    font-weight: 700;
    color: var(--fun-accent);
    text-transform: uppercase
}

.event-card-title {
    margin: 4px 0 8px;
    font-size: 1.2em
}

.event-card-location {
    margin: 0;
    color: #6b7280;
    font-size: .9em
}

.event-card-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px
}

.event-card-attendees {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .9em;
    color: #4b5563
}

.admin-event-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, .8);
    border-radius: 6px;
    padding: 5px;
    display: flex;
    gap: 5px
}

#events-calendar-container {
    padding: 20px;
    border-radius: 12px
}

.event-detail-modal-content {
    padding: 0;
    max-width: 700px
}

.event-detail-header {
    position: relative
}

.event-detail-header .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 20px;
    text-align: center
}

.event-detail-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px
}

.event-detail-body, .moderation-detail-panel, .ticket-info-panel {
    padding: 25px
}

.event-detail-body h2 {
    margin: 0 0 10px;
    font-size: 1.8em
}

.event-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #6b7280;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb
}

.event-detail-meta span, .feedback-assign, .feedback-status {
    display: flex;
    align-items: center;
    gap: 8px
}

.event-detail-description {
    line-height: 1.6;
    margin-bottom: 25px
}

.event-detail-attendees h3 {
    margin-bottom: 15px
}

.attendees-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px
}

.feedback-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px
}

.feedback-filters input, .feedback-filters select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px
}

.feedback-assign select, .feedback-status select {
    padding: 6px;
    border-radius: 4px
}

#feedback-detail-modal .modal-content, .classified-detail-modal-content {
    max-width: 800px
}

.feedback-comment-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px
}

#feedback-comments-list .comment-item.reply {
    background-color: #e7f3ff;
    border-left: 3px solid #007bff;
    padding-left: 10px;
    border-radius: 4px
}

.admin-gallery-upload, .event-detail-gallery {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb
}

.admin-gallery-upload {
    background-color: #f9fafb;
    padding: 15px;
    border-radius: 8px
}

.carousel-modal {
    background-color: rgba(0, 0, 0, .9);
    align-items: center;
    justify-content: center
}

.carousel-image {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain
}

.carousel-nav {
    position: absolute;
    top: 50%;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    border: none;
    font-size: 2em;
    padding: 10px 15px
}

.carousel-nav.prev {
    left: 20px
}

.carousel-nav.next {
    right: 20px
}

.carousel-close-btn {
    top: 20px;
    right: 35px;
    font-size: 40px
}

.classified-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

.classified-card:hover {
    border: 1px solid black;
    transform: scale(1.02);
}

.classified-card:active {
    transform: scale(0.95) rotateZ(1.7deg);
}

.classified-image-container {
    position: relative;
    width: 100%;
    height: 180px
}

.classified-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.classified-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, .5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: .8em;
    font-weight: 700
}

.classified-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1
}

.classified-title, .modal-media-info h3 {
    margin: 0 0 10px;
    font-size: 1.2em
}

.classified-description, .interactive-card p {
    margin: 0 0 15px;
    font-size: .9em;
    color: #666;
    flex-grow: 1
}

.classified-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px
}

.moderation-queue-panel h3, .queue-item {
    padding: 15px;
    border-bottom: 1px solid #eee
}

.classified-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9em
}

.classified-author img {
    width: 30px;
    height: 30px;
    border-radius: 50%
}

.classified-price {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--primary-color)
}

.btn-whatsapp {
    background-color: #25d366;
    width: 85%;
    text-align: center
}

.moderation-detail-panel, .moderation-queue-panel {
    background: var(--card-bg);
    border-radius: 8px;
    overflow-y: auto;
    box-shadow: var(--shadow)
}

.btn-whatsapp:hover {
    background-color: #1ebe57
}

.moderation-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    height: calc(100vh - 120px)
}

.moderation-queue-panel h3 {
    margin: 0;
    position: sticky;
    top: 0;
    background: #fff
}

.queue-item {
    display: flex;
    gap: 15px;
    cursor: pointer
}

.queue-item.active {
    background-color: #eaf4ff;
    border-left: 4px solid var(--primary-color)
}

.queue-item-icon {
    font-size: 1.5em;
    color: var(--primary-color)
}

.queue-item-info strong {
    display: block;
    font-size: 1.1em
}

.moderation-detail-view .placeholder {
    text-align: center;
    padding-top: 50px;
    color: #999
}

.moderation-detail-grid {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 25px;
    height: 100%
}

.detail-media-column img, .detail-media-column video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px
}

.detail-header-v2 {
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    padding-bottom: 15px
}

.detail-header-v2 h2 {
    margin: 0;
    font-size: 1.8em
}

.detail-meta-container {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    font-size: .9em;
    color: #666
}

.detail-meta-divider {
    color: #ccc
}

.detail-content-body h4 {
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: .9em;
    text-transform: uppercase;
    color: #888
}

.detail-content-body p {
    line-height: 1.6;
    margin-top: 0
}

.detail-field {
    margin-bottom: 10px !important
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px
}

.detail-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px
}

.detail-actions-v2 {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: flex-end
}

.classified-admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, .8);
    padding: 5px;
    border-radius: 6px;
    z-index: 2
}

.agenda-sidebar, .ticket-info-panel {
    position: sticky;
    top: 90px
}

.btn-sm {
    border: 1px solid #ccc;
    cursor: pointer
}

.btn-delete {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545
}

.classified-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.classified-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto
}

.detail-gallery-img {
    width: 100%;
    border-radius: 8px
}

.agenda-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    align-items: flex-start
}

.agenda-main-content, .ticket-card-main {
    min-width: 0
}

.agenda-controls {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px
}

.agenda-controls .btn {
    width: 100%;
    margin-bottom: 20px
}

.agenda-controls h4 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: .9em
}

.legend-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%
}

.fc-button-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important
}

.fc-button-primary:hover {
    background-color: var(--sidebar-hover-bg) !important;
    border-color: var(--sidebar-hover-bg) !important
}

.fc-daygrid-event {
    border-radius: 4px;
    padding: 2px 5px;
    font-weight: 500
}

#agenda-modal .modal-content {
    max-width: 550px
}

#agenda-detail-modal .modal-content {
    max-width: 650px
}

.detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px
}

.detail-modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    color: var(--primary-color)
}

.detail-modal-actions button {
    background: 0 0;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 15px;
    color: #555;
    padding: 5px;
    line-height: 1;
    display: none
}

.detail-modal-body p {
    margin: 8px 0;
    color: #333;
    line-height: 1.5;
    display: flex;
    align-items: flex-start
}

.detail-modal-body p strong {
    display: inline-block;
    width: 120px;
    min-width: 120px;
    color: #555;
    margin-right: 10px;
    font-weight: 600
}

.detail-modal-body p span {
    flex: 1;
    word-break: break-word
}

.detail-modal-body .detail-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee
}

.detail-modal-body .detail-description strong {
    display: block;
    width: auto;
    margin-bottom: 5px
}

.detail-modal-body .detail-description p {
    margin-top: 0;
    display: block;
    color: #333;
    line-height: 1.6
}

.detail-mentions span {
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    font-size: .9em;
    display: inline-block;
    margin-bottom: 3px
}

#detail-modal-error-message {
    margin-top: 15px;
    text-align: right;
    font-size: .9em
}

.ticket-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap
}

.ticket-search-filter {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    min-width: 300px;
    align-items: center
}

.ticket-search-filter input, .ticket-search-filter select {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #fff;
    font-size: .9em
}

.ticket-search-filter input[type=date] {
    max-width: 140px
}

.ticket-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 1px solid #d1d5db;
    overflow-x: auto;
    padding-bottom: 0
}

.ticket-tabs button {
    background: 0 0;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: .95em;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap
}

.ticket-tabs button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.ticket-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 15px 20px;
    border-left: 5px solid #ccc;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 20px;
    align-items: center;
    cursor: pointer;
    transition: box-shadow .2s
}

.ticket-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, .15)
}

.ticket-card-main h4 {
    margin: 0 0 5px;
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.ticket-card-main p {
    margin: 0;
    font-size: .85em;
    color: #555
}

.ticket-card-info {
    text-align: right;
    font-size: .9em;
    color: #444
}

.ticket-card-info span {
    display: block;
    margin-bottom: 3px;
    white-space: nowrap
}

.ticket-card-info .fa-flag {
    font-size: .9em;
    margin-right: 3px
}

.ticket-card-status {
    min-width: 90px;
    text-align: center
}

.ticket-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: .75em;
    font-weight: 700;
    color: #fff;
    display: inline-block;
    text-align: center
}

.status-Aberto {
    background-color: #0d6efd;
    border-color: #0d6efd
}

.btn-sign, .status-Em-Andamento {
    background-color: #ffc107;
    color: #333;
    border-color: #ffc107
}

.status-Aguardando-Informacao {
    background-color: #fd7e14;
    border-color: #fd7e14
}

.btn-secondary, .status-Finalizado {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.status-Reaberto {
    background-color: #6f42c1;
    border-color: #6f42c1
}

.priority-Baixa {
    color: #6c757d
}

.priority-Média {
    color: #ffc107
}

.form-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px 40px
}

.form-container form .btn {
    margin-top: 10px
}

.ticket-detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: flex-start
}

.close-btn-style, .image-close-btn {
    position: absolute;
    font-weight: 700;
    cursor: pointer
}

.ticket-info-panel h4 {
    margin-top: 0;
    font-size: 1.2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px
}

.info-item {
    margin-bottom: 12px;
    font-size: .9em
}

.info-item strong {
    display: block;
    color: #555;
    margin-bottom: 3px;
    font-weight: 600
}

.info-item a, .info-item span {
    color: #333;
    word-break: break-word
}

.info-item button, .info-item select {
    margin-top: 5px;
    padding: 6px 10px;
    font-size: .85em
}

.info-item button {
    cursor: pointer
}

.ticket-chat-panel {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
    overflow: hidden
}

.chat-header-sticky {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0
}

.chat-assignment-controls, .signature-actions {
    display: flex;
    gap: 15px;
    align-items: center
}

.chat-assignment-controls .form-group {
    margin-bottom: 0;
    flex-grow: 1;
    min-width: 150px
}

.chat-assignment-controls label {
    font-weight: 400;
    font-size: .8em;
    margin-bottom: 3px;
    display: block
}

.chat-assignment-controls select {
    padding: 6px 10px;
    font-size: .85em;
    width: 100%;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff
}

.chat-history {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #fff
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 18px
}

.chat-message.requester .message-bubble {
    background-color: #eaf4ff;
    border-radius: 15px 15px 15px 0
}

.chat-message.internal .message-bubble {
    background-color: #f1f1f1;
    border-radius: 15px 15px 0
}

.chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover
}

.message-header {
    font-size: .8em;
    color: #777;
    margin-bottom: 4px
}

.message-header strong {
    color: #333
}

.message-bubble {
    padding: 12px 18px;
    line-height: 1.5;
    word-wrap: break-word
}

.message-bubble p {
    margin: 0 0 8px
}

.message-bubble ol, .message-bubble ul {
    padding-left: 25px;
    margin: 5px 0
}

.chat-input-area {
    border-top: 1px solid #eee;
    padding-top: 20px
}

.system-note {
    font-style: italic;
    font-size: .85em;
    color: #666;
    margin-top: 8px;
    padding-top: 5px;
    border-top: 1px dashed #ccc
}

.tox-tinymce {
    border-radius: 8px !important;
    border: 1px solid #ccc !important;
    margin-bottom: 10px;
    min-height: 100px
}

.tox .tox-edit-area__iframe {
    background-color: #fff !important
}

.carousel-badge, .carousel-nav-btn:hover {
    background-color: rgba(0, 0, 0, .7)
}

.attachment-list a {
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: .9em
}

.attachment-list a i {
    margin-right: 8px;
    color: #555
}

.image-modal {
    align-items: center;
    justify-content: center
}

.image-viewer-content {
    display: block;
    max-width: 90%;
    max-height: 85vh;
    margin: auto
}

.image-close-btn {
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    transition: .3s
}

.image-close-btn:focus, .image-close-btn:hover {
    color: #bbb;
    text-decoration: none;
    cursor: pointer
}

#bbb-pulse-grid {
    display: flex;
    flex-direction: column;
    gap: 30px
}

.bbb-section-header {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    margin-top: 0
}

#bbb-pulse-grid .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 0
}

.carousel-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: .75rem;
    font-weight: 500;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px
}

.video-card:has(.carousel-badge) .btn-delete-media {
    right: 50px
}

.carousel-media-viewer {
    flex: 1;
    position: relative;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 650px;
    height: 650px
}

.carousel-media-display {
    width: 100%;
    height: 100%;
    position: relative
}

.carousel-media-display img, .carousel-media-display video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, .4);
    color: #fff;
    border: none;
    font-size: 2rem;
    font-weight: 700;
    padding: 10px 15px;
    z-index: 10;
    border-radius: 5px;
    transition: background-color .2s
}

.carousel-nav-btn.prev {
    left: 10px
}

.carousel-nav-btn.next {
    right: 10px
}

.carousel-counter {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, .6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: .9rem;
    z-index: 10
}

#media-carousel-modal .modal-media-info {
    flex-basis: 350px;
    flex-shrink: 0
}

.image-modal, .video-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, .9);
    height: 100%
}

.close-btn-style {
    top: 15px;
    right: 25px;
    color: #ccc;
    font-size: 35px;
    z-index: 10;
    transition: color .3s;
    line-height: 1;
    padding: 0 5px
}

.close-btn-style:hover {
    color: #fff
}

.video-modal {
    z-index: 1001;
    align-items: center;
    justify-content: center
}

.image-modal {
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: 20px
}

.modal-media-content {
    display: flex;
    flex-direction: column;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden
}

.image-modal img.image-viewer-content, .video-modal video#main-video-player {
    display: block;
    max-height: 70vh;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    background-color: #000
}

.modal-media-info {
    padding: 15px 20px;
    color: #eee;
    display: flex;
    flex-direction: column
}

.modal-media-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    font-size: .9em;
    color: #ccc
}

.btn-like-modal {
    background: 0 0;
    border: none;
    color: #ccc;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px
}

.btn-like-modal:hover i {
    color: #ff6b6b
}

.btn-like-modal i.fa-solid {
    color: #ff4757;
    font-weight: 900
}

.modal-media-comments {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    margin-top: 15px;
    padding-top: 15px;
    padding-left: 7px;
    border-top: 1px solid #444
}

.modal-media-comments h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1em;
    color: #bbb;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    flex-shrink: 0
}

#image-modal-comments-list, #video-modal-comments-list {
    font-size: .9em;
    color: #ccc;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 10px;
    padding-right: 5px
}

.modal-media-comments .comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #444
}

.modal-media-comments .comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    flex-shrink: 0
}

.modal-media-comments .comment-content p {
    margin: 0;
    line-height: 1.4;
    word-break: break-word
}

.modal-media-comments .comment-date {
    font-size: .8em;
    color: #888;
    margin-left: 8px
}

.modal-media-comments .comment-form {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #444;
    flex-shrink: 0;
    background-color: #1a1a1a
}

.modal-media-comments .comment-form textarea {
    flex-grow: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
    resize: none;
    font-size: .9em;
    min-height: 40px
}

.modal-media-comments .comment-form .btn-sm {
    padding: 8px 12px;
    height: fit-content;
    align-self: flex-end
}

.modal-media-comments #image-modal-comments-list p, .modal-media-comments #video-modal-comments-list p {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 5px 0
}

@media (min-width:768px) {
    .modal-media-content {
        flex-direction: row;
        max-width: 80vw;
        max-height: 80vh
    }

    .image-modal img.image-viewer-content, .video-modal video#main-video-player {
        max-height: 80vh;
        flex-grow: 1;
        flex-shrink: 1;
        min-width: 0;
        object-fit: contain;
        width: 100%
    }

    .modal-media-info {
        width: 400px;
        flex-shrink: 0;
        flex-grow: 0;
        display: flex;
        flex-direction: column;
        max-height: 80vh;
        padding: 20px;
        border-left: 1px solid #333
    }
}

.interactive-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    position: relative
}

.interactive-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    position: relative
}

.interactive-card .header-main-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    min-width: 0
}

.interactive-card-header h4 {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1
}

.interactive-card-icon {
    font-size: 1.5em;
    color: var(--fun-accent);
    width: 30px;
    text-align: center;
    flex-shrink: 0
}

.interactive-card-type-badge {
    background-color: var(--fun-accent);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: .7em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto
}

.interactive-card .btn-external-link, .interactive-card .btn-participate {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding: 10px;
    font-weight: 700
}

.interactive-card .btn-participate:disabled {
    background-color: #ccc;
    cursor: not-allowed
}

.interactive-card .btn-external-link {
    background-color: var(--secondary-color);
    display: inline-block;
    text-decoration: none
}

.creative-main-content, .form-group.full-width {
    grid-column: 1/-1
}

#fab-create-interactive:hover {
    background-color: #5200cc
}

.admin-interactive-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, .85);
    border-radius: 4px;
    padding: 3px;
    display: flex;
    gap: 3px;
    z-index: 5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1)
}

.admin-interactive-actions .btn-icon {
    background: 0 0;
    border: none;
    color: #444;
    cursor: pointer;
    font-size: .85em;
    padding: 4px;
    line-height: 1
}

.admin-interactive-actions .btn-view-signups i, .btn-view-signups i {
    color: #17a2b8
}

.admin-interactive-actions .btn-view-signups:hover i, .btn-view-signups:hover i {
    color: #117a8b
}

#interactive-modal-message.success-message {
    color: #28a745;
    margin-top: 15px;
    font-weight: 700
}

#interactive-modal-message.error-message {
    color: #dc3545;
    margin-top: 15px
}

#raffle-signups-modal .modal-content {
    max-width: 500px
}

#raffle-signups-list ul {
    list-style: none;
    padding: 0;
    max-height: 60vh;
    overflow-y: auto
}

#raffle-signups-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px
}

#raffle-signups-list small {
    color: #777;
    font-size: .85em
}

.container-dashboard-v2 .birthday-section-v2 {
    margin-top: 30px
}

.birthday-section-v2 {
    background: #f3e8ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px
}

.birthday-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8b5cf6;
    font-size: 1.1em;
    margin-bottom: 5px
}

.birthday-section-v2>p {
    margin: 0 0 15px;
    color: #6d28d9;
    font-size: .9em
}

.birthday-scroller-v2 {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #906253 #f3e8ff;
}

.birthday-scroller-v2::-webkit-scrollbar {
    height: 8px;
}

.birthday-scroller-v2::-webkit-scrollbar-track {
    background: #f3e8ff;
    border-radius: 4px;
}

.birthday-scroller-v2::-webkit-scrollbar-thumb {
    background-color: #906253;
    border-radius: 4px;
    border: 2px solid #f3e8ff;
}

.birthday-scroller-v2::-webkit-scrollbar-thumb:hover {
    background-color: #6d28d9;
}

.btn-parabenizar {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

.btn-parabenizar:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.btn-parabenizar.parabenizado {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    cursor: not-allowed;
    transform: scale(1);
}

.btn-parabenizar i {
    pointer-events: none;
}

.birthday-card-v2 {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .8);
    padding: 8px 12px;
    border-radius: 25px;
    min-width: 170px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
    border: 1px solid rgba(0, 0, 0, .05)
}

.birthday-card-v2 img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover
}

.birthday-info-v2 {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.birthday-info-v2 strong {
    font-size: .95em;
    color: #3730a3;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis
}

.birthday-info-v2 span {
    font-size: .85em;
    color: #581c87
}

.comment-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.btn-thank-comment {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: #333;
    padding: 5px 12px;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-thank-comment:hover {
    background-color: #e0e0e0;
}

.btn-thank-comment:disabled {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
    cursor: not-allowed;
}

.thanked-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 8px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 0.8em;
    font-weight: 500;
    border-radius: 4px;
}

.thanked-badge i {
    color: #28a745;
    margin-right: 4px;
}

.avatar-type-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 5;
    pointer-events: none
}

.avatar-container .btn-change-avatar {
    right: 35px;
    bottom: 5px
}

.avatar-container .btn-edit-svg-avatar {
    right: 75px;
    bottom: 5px
}

.signature-management-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 30px;
    grid-column: 1/-1
}

.signature-preview-area, .signing-area {
    padding: 10px;
    display: flex;
    overflow: hidden
}

.signature-management-card h3 {
    margin-top: 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color)
}

.signature-preview-area {
    min-height: 100px;
    max-height: 200px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #f9f9f9
}

#signature-preview {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain
}

#signature-placeholder {
    color: #888;
    font-style: italic
}

.signature-actions .btn-delete {
    background-color: #dc3545;
    margin-left: auto
}

.signature-actions .btn-delete:hover {
    background-color: #c82333
}

#signature-message {
    margin-top: 15px;
    font-weight: 700
}

.btn-sign:hover {
    background-color: #e0a800;
    border-color: #e0a800
}

.signing-modal-content {
    max-width: 90vw;
    width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column
}

.signing-area {
    flex-grow: 1;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    position: relative;
    justify-content: center;
    align-items: center
}

#pdf-viewer-container {
    position: relative;
    overflow: auto;
    max-width: 100%;
    max-height: calc(85vh - 150px);
    text-align: center
}

#pdf-canvas {
    display: block;
    border: 1px solid #ddd;
    max-width: 100%;
    height: auto;
    margin: 0 auto
}

#draggable-signature-container, .avatar-svg-layer {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute
}

#draggable-signature-container {
    pointer-events: none
}

#draggable-signature {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 150px;
    height: auto;
    cursor: grab;
    border: 1px dashed rgba(0, 0, 0, .5);
    touch-action: none;
    user-select: none;
    pointer-events: auto;
    background-color: rgba(255, 255, 255, .5)
}

#draggable-signature:active {
    cursor: grabbing
}

.signing-controls {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee
}

#page-info, .signing-controls span {
    font-size: .9em;
    color: #555
}

.btn-secondary:hover {
    background-color: #3dad43;
    color: #ffffff;
    border-color: #00ff80;
    box-shadow: 0 0 1px #00ff80, 0 0 2.5px #00ff80, 0 0 5px #00ff80, 0 0 10px #00ff80;
    transition: 0.2s ease-in-out;
}

.draggable.resizable:hover {
    border: 2px solid var(--primary-color)
}

.avatar-options-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0
}

.avatar-options-section h5 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #555
}

.btn-avatar-option {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    font-size: .9em;
    transition: background-color .2s, border-color .2s
}

.btn-avatar-option:hover {
    background-color: #e2e6ea
}

.btn-avatar-option.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 700
}

.color-option-button {
    padding: 0;
    min-width: 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%
}

.color-option-button.active {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 90, 156, .5)
}

#notification-bell {
    position: relative;
    cursor: pointer;
    color: #555
}

#notification-bell i {
    font-size: 1.5em
}

#notification-count-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: .7em;
    font-weight: 700;
    display: none;
    min-width: 18px;
    text-align: center;
    line-height: 1.2
}

#notification-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 30px;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--card-bg);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
    z-index: 1001
}

#notification-dropdown>div:first-child {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px
}

#notification-dropdown strong {
    font-size: 1.1em;
    color: #333
}

#mark-all-read-btn {
    background: 0 0;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: .85em;
    font-weight: 700;
    padding: 5px
}

#notification-list {
    list-style: none;
    padding: 0;
    margin: 0
}

#notification-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color .2s
}

#notification-list li div:first-child {
    font-weight: 500;
    font-size: .9em;
    color: #333;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

#notification-list li div:last-child {
    font-size: .8em;
    color: #777
}

#notification-list li[style*="text-align: center"] {
    cursor: default;
    background-color: transparent !important
}

.btn-sm {
    padding: 4px 8px;
    font-size: .8em;
    border-radius: 4px
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px 20px
}

.status-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px
}

.status-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px
}

.slider, .slider:before {
    position: absolute;
    transition: .4s
}

.status-switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.slider {
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px
}

.slider:before {
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%
}

input:checked+.slider:before {
    transform: translateX(26px)
}

#user-active-label {
    font-weight: 500;
    color: #555
}

.role-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: .8em;
    font-weight: 600;
    color: #fff;
    background-color: #6c757d;
    white-space: nowrap;
    vertical-align: middle;
    margin-left: 5px
}

.role-administrador {
    background-color: #fd7e14
}

.role-rh {
    background-color: #6f42c1
}

.role-comunicador {
    background-color: #20c997
}

.role-colaborador {
    background-color: #0d6efd
}

.modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility 0s linear .3s
}

.modal.active, .modal[style*="display: flex"] {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s, visibility linear
}

.modal-content {
    transform: scale(.95);
    transition: transform .3s
}

.modal.active .modal-content, .modal[style*="display: flex"] .modal-content {
    transform: scale(1)
}

.user-avatar-cell div, .user-avatar-cell img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    background-color: #eee;
    display: inline-block
}

.user-avatar-cell svg {
    display: block;
    width: 100%;
    height: 100%
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: 1s linear infinite spin;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

input:invalid, select:invalid, textarea:invalid {
    border-color: #dc3545
}

.document-item-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee
}

.document-item-admin span i {
    margin-right: 8px;
    color: #6c757d
}

#pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px
}

#pagination-controls button {
    padding: 5px 10px
}

#pagination-controls button:disabled {
    opacity: .5;
    cursor: not-allowed
}

/* ========================================= */
/* === RESPONSIVIDADE E MENU MOBILE      === */
/* ========================================= */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.8em;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 260px !important;
        z-index: 2000;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: none;
    }

    .sidebar-collapse-btn {
        display: none;
    }

    .sidebar.is-open {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }

    .sidebar.is-open+.sidebar-overlay {
        display: block;
    }

    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    .main-content-wrapper {
        width: 100% !important;
        margin-left: 0px !important;
    }

    .main-header {
        padding: 10px 15px;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .mobile-nav-toggle {
        display: block;
        order: -1;
        margin-left: 0;
        margin-right: 10px;
    }

    .main-header h1 {
        font-size: 1.2em;
        flex-grow: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-actions {
        flex-shrink: 0;
    }

    .container, .container-dashboard-v2, .container-ajuda, .container-espaco-empresa, .container-diversao {
        padding: 15px;
    }

    .dashboard-grid, .main-dashboard-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ticket-detail-layout {
        grid-template-columns: 1fr;
    }

    .ticket-info-panel, .agenda-sidebar {
        position: static;
        top: auto;
    }

    .ticket-chat-panel {
        height: auto;
        max-height: 100vh;
    }

    .chat-history {
        max-height: 60vh;
    }

    .chat-assignment-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-assignment-controls .form-group {
        min-width: 100px;
    }

    .diversao-body {
        grid-template-columns: 1fr;
    }

    .moderation-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .moderation-queue-panel {
        max-height: 40vh;
    }

    .moderation-detail-grid {
        grid-template-columns: 1fr;
    }

    .agenda-layout {
        grid-template-columns: 1fr;
    }

    .agenda-sidebar {
        order: -1;
    }

    .user-profile-grid, .documents-grid, .user-info-card {
        grid-template-columns: 1fr;
    }

    .user-info-card {
        gap: 52px;
        padding: 20px;
        text-align: center;
    }

    .avatar-container {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .info-container {
        text-align: center;
    }

    .info-header {
        flex-direction: column;
        gap: 10px;
    }

    .avatar-editor-card div[style*="display: flex"] {
        flex-direction: column;
    }

    .avatar-editor-card div[style*="flex-basis: 200px"] {
        flex-basis: auto;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: 1 / 1;
    }

    .stats-container-v3, .external-links-grid, .quick-access-links {
        grid-template-columns: 1fr;
    }

    .user-grid-v3 {
        grid-template-columns: 1fr;
    }

    .user-list-item-v3 {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }

    .list-item-main-info, .list-item-department, .list-item-contact, .list-item-actions {
        grid-column: 1 / 1;
        text-align: left;
        justify-content: flex-start;
    }

    .modal-content, .user-modal-content, .signing-modal-content, .modal-content[style*="max-width: 450px"], .modal-content[style*="max-width: 500px"], .modal-content[style*="max-width: 550px"], .modal-content[style*="max-width: 600px"], .modal-content[style*="max-width: 650px"], .modal-content[style*="max-width: 700px"], .modal-content[style*="max-width: 800px"] {
        max-width: 95vw;
        padding: 20px;
        max-height: 90vh;
    }

    .modal-media-content {
        flex-direction: column;
        max-width: 95vw;
        max-height: 90vh;
    }

    .video-modal video#main-video-player, .image-modal img.image-viewer-content {
        width: 100%;
        height: auto;
        max-height: 40vh;
        flex-basis: auto;
    }

    .carousel-media-viewer {
        width: 100%;
        max-height: 40vh;
        flex-basis: auto;
    }

    .modal-media-info {
        width: 100%;
        max-height: 45vh;
        border-left: none;
        border-top: 1px solid #333;
    }

    .toolbar-v2, .event-filters, .ticket-actions-bar, .ticket-search-filter {
        flex-direction: column;
        gap: 10px;
    }

    .ticket-search-filter input[type=date] {
        max-width: none;
    }

    .view-header-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .directory-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .main-header {
        justify-content: center;
    }

    .main-header h1 {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        order: 1;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        order: 2;
    }

    .mobile-nav-toggle {
        order: -1;
    }

    .classifieds-grid, .video-grid, #events-list, .post-grid-view, .user-grid-v3 {
        grid-template-columns: 1fr;
    }

    .signing-controls {
        flex-direction: column;
        gap: 10px;
    }

    .signing-controls div {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .signing-controls .btn {
        width: 100%;
    }

    .filter-tabs, .tabs-container-v2, .ticket-tabs, .agenda-view-tabs {
        padding: 0;
    }

    .tab-link, .tab-btn-v2, .ticket-tabs button, .agenda-view-tabs button {
        padding: 10px 12px;
        font-size: 0.9em;
    }
}

.stats-bar-body {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 30px;
}

#ufo-progress-icon {
    position: absolute;
    left: 0;
    top: 26%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-bar .progress-container {
    flex-grow: 1;
    position: relative;
    margin-left: 30px;
    z-index: 1;
}

progress.barra-progresso {
    display: none;
}

.custom-progress-bar {
    width: 100%;
    height: 26px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    animation: neon-pulse 2s ease-in-out infinite;
}

.custom-progress-value {
    height: 100%;
    background: linear-gradient(90deg, #7418ef, #433da9);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-text-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    min-width: 100%;
    text-align: center;
}

@keyframes neon-pulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(116, 24, 239, 0.6), 0 0 10px rgba(116, 24, 239, 0.6);
    }

    50% {
        box-shadow: 0 0 10px rgba(116, 24, 239, 0.9), 0 0 20px rgba(116, 24, 239, 0.9);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .page-header input[type="search"] {
        width: 100%;
        margin: 0;
    }

    .page-header .header-actions {
        width: 100%;
    }

    .table-container {
        width: 100%;
        overflow-x: auto;
    }

    .feedback-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .feedback-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .feedback-assign, .feedback-status {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .feedback-assign select, .feedback-status select {
        width: 100%;
    }

    #calendar-container .fc .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .event-detail-modal-content {
        max-width: 95vw !important;
        padding: 15px;
    }

    .event-detail-body {
        padding: 15px;
    }
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0;
    margin-top: 10px;
}

.horizontal-scroller {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 40px;
    align-items: flex-start;
    min-height: 210px;
}

.horizontal-scroller::-webkit-scrollbar {
    display: none;
}

.horizontal-scroller:not(:empty)>p {
    display: none;
}

.horizontal-scroller>p {
    text-align: center;
    width: 100%;
    color: #888;
    padding-top: 40px;
}

.horizontal-scroller .colaborador-card-item {
    flex-shrink: 0;
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-right: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-scroller .colaborador-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.horizontal-scroller .colaborador-card-item div[style*="width: 50px"] {
    width: 70px !important;
    height: 70px !important;
    margin-right: 0 !important;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.horizontal-scroller .colaborador-card-item div[style*="width: 50px"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.horizontal-scroller .colaborador-card-item strong {
    font-size: 1em;
    line-height: 1.3;
    color: #333;
    display: block;
    font-weight: 600;
}

.horizontal-scroller .colaborador-card-item span {
    font-size: 0.85em;
    color: #666;
    display: block;
}

.horizontal-scroller .colaborador-card-item span[style*="margin-top: 2px"] {
    font-size: 0.8em;
    color: #888;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.scroll-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.scroll-btn.prev {
    left: 0px;
}

.scroll-btn.next {
    right: 0px;
}

.dropdown-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    justify-content: space-between;
    font-size: 16px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding-left: 10px;
}

.dropdown.open .dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    padding: 12px 20px;
    font-size: 16px;
    display: block;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.dropdown.open .dropdown-toggle {
    background-color: rgba(255, 255, 255, 0.12);
}

.evaluations-section {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 30px;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 5px;
}

.evaluations-section .user-table {
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
}

@media (max-width: 768px) {
    .evaluations-section {
        padding: 15px;
        margin-top: 20px;
    }

    .evaluations-section .user-table th, .evaluations-section .user-table td {
        padding: 10px 8px;
        font-size: 0.85em;
        white-space: nowrap;
    }

    .evaluations-section .btn-sm {
        padding: 4px 8px;
        font-size: 0.8em;
    }
}

.competence-block textarea {
    resize: vertical;
    border-radius: 6px;
    max-height: 125px;
}

.form-group textarea {
    resize: vertical;
}

.feedback-original-message {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.feedback-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.feedback-info-grid small {
    display: block;
    color: #6c757d;
    font-size: 0.85em;
    margin-bottom: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.feedback-info-grid p {
    margin: 0;
    font-weight: 500;
    color: #343a40;
}

.feedback-message-box strong {
    display: block;
    margin-bottom: 8px;
    color: #495057;
}

.feedback-message-box p {
    margin: 0;
    line-height: 1.6;
    color: #212529;
    white-space: pre-wrap;
}

#feedback-comments-list {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-comments {
    text-align: center;
    color: #adb5bd;
    font-style: italic;
    padding: 20px;
}

.chat-message-row {
    display: flex;
    width: 100%;
}

.msg-internal {
    justify-content: flex-start;
}

.msg-internal .chat-bubble {
    background-color: #fff9db;
    border: 1px solid #f0e6cc;
    border-top-left-radius: 0;
}

.msg-internal .chat-label {
    color: #f59f00;
    background-color: rgba(245, 159, 0, 0.1);
}

.msg-reply {
    justify-content: flex-end;
}

.msg-reply .chat-bubble {
    background-color: #e7f5ff;
    border: 1px solid #d0ebff;
    border-top-right-radius: 0;
}

.msg-reply .chat-label {
    color: #1971c2;
    background-color: rgba(25, 113, 194, 0.1);
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85em;
    gap: 15px;
}

.chat-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #495057;
}

.chat-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-label {
    font-size: 0.75em;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-body {
    color: #212529;
    line-height: 1.5;
    font-size: 0.95em;
    word-wrap: break-word;
}

.chat-footer {
    margin-top: 8px;
    text-align: right;
    font-size: 0.75em;
    color: #868e96;
}

.feedback-comment-area h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    resize: vertical;
    margin-bottom: 10px;
    font-family: inherit;
}

#comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 90, 156, 0.1);
}

.comment-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.comment-actions .btn {
    background-color: #6c757d;
    font-size: 0.9em;
}

.comment-actions .btn:hover {
    background-color: #5a6268;
}

.comment-actions .btn-reply {
    background-color: var(--primary-color);
}

.comment-actions .btn-reply:hover {
    background-color: #004a80;
}

.post-full-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
    padding: 0;
}

.post-hero-image-container {
    width: 100%;
    height: 350px;
    position: relative;
    background-color: #f0f0f0;
}

.post-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-content-body {
    padding: 40px;
}

.post-content-body h1 {
    font-size: 2.5em;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.2;
}

.post-meta-header {
    display: flex;
    gap: 20px;
    color: #6c757d;
    font-size: 0.95em;
    margin-bottom: 25px;
}

.post-meta-header span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-meta-header i {
    color: var(--primary-color);
}

.post-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 20px 0 30px;
}

.post-body-text {
    font-size: 1.15em;
    line-height: 1.8;
    color: #333;
}

.post-body-text p {
    margin-bottom: 20px;
}

.error-state, .empty-comments-state {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.error-state i {
    font-size: 3em;
    color: #dc3545;
    margin-bottom: 15px;
}

.comments-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.comments-container h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.4em;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
    color: #333;
}

#comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 15px;
    animation: fadeIn 0.3s ease-in;
}

.comment-avatar-wrapper {
    flex-shrink: 0;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.comment-content-wrapper {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    flex-grow: 1;
    border: 1px solid #e9ecef;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.comment-header strong {
    color: #212529;
    font-size: 1.05em;
}

.comment-time {
    color: #adb5bd;
    font-size: 0.85em;
}

.comment-text {
    margin: 0;
    color: #495057;
    line-height: 1.5;
    white-space: pre-wrap;
}

.empty-comments-state {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 40px 20px;
}

.empty-comments-state i {
    font-size: 2.5em;
    color: #dee2e6;
    margin-bottom: 15px;
}

.empty-comments-state p {
    color: #868e96;
    margin: 0;
}

.comment-form {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.1);
}

.comment-form button {
    align-self: flex-end;
    padding: 10px 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form button:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .post-hero-image-container {
        height: 200px;
    }

    .post-content-body {
        padding: 20px;
    }

    .post-content-body h1 {
        font-size: 1.8em;
    }

    .comment-item {
        gap: 10px;
    }

    .comment-avatar {
        width: 35px;
        height: 35px;
    }
}

.app-launcher-container {
    position: relative;
    display: inline-block;
    margin-right: 15px;
}

.header-icon-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.header-icon-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color, #007bff);
}

.app-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.app-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 10px 5px;
    border-radius: 8px;
    transition: background 0.2s;
}

.app-item:hover {
    background-color: #f5f7fa;
}

.app-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: white;
}

.app-item span {
    font-size: 0.85rem;
    color: #444;
    font-weight: 500;
    text-align: center;
}

.color-blue {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.color-purple {
    background: linear-gradient(135deg, #6f42c1, #563d7c);
}

.color-orange {
    background: linear-gradient(135deg, #fd7e14, #e35d0b);
}

.hidden {
    display: none;
}

.sidebar.theme-crm {
    background: #1e272e;
}

.sidebar.theme-crm .sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.theme-crm .nav-item a.active {
    background-color: #ff5e57;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar.theme-crm .menu-header {
    color: #d2dae2;
}

.journalistic-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: fadeIn 0.5s ease;
}

.news-hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 400px;
}

.hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: var(--shadow);
    display: block;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.hero-card:hover .hero-image {
    transform: scale(1.05);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
}

.hero-content h2 {
    margin: 10px 0;
    font-size: 1.8em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
    line-height: 1.2;
}

.hero-content p {
    color: #e0e0e0;
    font-size: 0.9em;
}

.news-badge {
    background-color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    display: inline-block;
}

.secondary-news-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secondary-card {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    box-shadow: var(--shadow);
    display: block;
}

.sec-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
    transition: filter 0.3s;
}

.secondary-card:hover .sec-image {
    filter: brightness(0.6);
}

.sec-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 15px;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.sec-content h4 {
    margin: 0 0 5px;
    font-size: 1.1em;
    color: #fff;
    line-height: 1.3;
}

.sec-content small {
    color: #ddd;
    font-size: 0.85em;
}

.news-section-title {
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
    font-weight: 700;
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-compact-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.news-compact-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.compact-content h5 {
    margin: 0 0 8px;
    font-size: 1.05em;
    line-height: 1.4;
    color: #1f2937;
    font-weight: 600;
}

.compact-content small {
    color: #6b7280;
    font-size: 0.85em;
    display: block;
}

.news-compact-card i {
    color: #9ca3af;
    margin-left: 15px;
    margin-top: 5px;
    font-size: 0.9em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .news-hero-section {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-card {
        height: 300px;
    }

    .secondary-news-col {
        flex-direction: row;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .secondary-news-col {
        flex-direction: column;
        height: 400px;
    }

    .hero-card {
        height: 250px;
    }

    .hero-content h2 {
        font-size: 1.4em;
    }

    .news-list-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════
   NOVA SIDEBAR — estrutura flat sem dropdowns (sb-*)
   Compatível com tema dark navy (#00234B) existente
══════════════════════════════════════════════════════════ */

/* ── LOGO AREA ──────────────────────────────────────────── */
.sb-logo {
    padding: 14px 16px !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0;
    position: relative;
}
.sb-logo img {
    height: 71px;
    width: auto;
    display: block;
    margin-left: 57px;
    margin-bottom: 0px;
    margin-top: -19px;
}

/* ── NAV SCROLL AREA ────────────────────────────────────── */
.sb-nav {
    flex: 1;
    padding: 8px 6px 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.sb-nav::-webkit-scrollbar { width: 3px; }
.sb-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ── GROUPS ─────────────────────────────────────────────── */
.sb-group {
    margin-bottom: 2px;
    padding-bottom: 2px;
}
.sb-group + .sb-group {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 8px;
    margin-top: 4px;
}

/* ── SECTION LABELS ─────────────────────────────────────── */
.sb-label {
    font-size: .68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    /* Antes 0.32: contraste ~2,6:1 no fundo do CRM (#1e272e) e da intranet (#00234B).
       0.62 dá ~6,7:1 nos dois (mínimo WCAG para texto pequeno: 4,5:1). */
    color: rgba(255,255,255,0.62);
    padding: 2px 10px 5px;
    user-select: none;
    white-space: nowrap;
}

/* ── NAV LINKS ──────────────────────────────────────────── */
.sb-link {
    display: flex !important;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: .86em;
    font-weight: 400;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    margin-bottom: 1px;
    transition: background .12s ease, color .12s ease;
    cursor: pointer;
}
.sb-link:hover {
    background: rgba(255,255,255,0.09);
    color: #fff;
}
.sb-link.active {
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-weight: 500;
}
.sb-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 18%; bottom: 18%;
    width: 3px;
    background: #fff;
    border-radius: 0 3px 3px 0;
}

/* ── ICONS ──────────────────────────────────────────────── */
.sb-icon {
    width: 15px;
    font-size: .9em;
    text-align: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.6);
    transition: color .12s;
}
.sb-link:hover .sb-icon  { color: rgba(255,255,255,0.82); }
.sb-link.active .sb-icon { color: #fff; }

/* ── BADGES ─────────────────────────────────────────────── */
.sb-badge {
    margin-left: auto;
    flex-shrink: 0;
    font-size: .6em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 100px;
    letter-spacing: .01em;
    line-height: 1.5;
}
.sb-badge-new   { background: rgba(16,185,129,.22); color: #6ee7b7; }
.sb-badge-count { background: rgba(255,255,255,.2); color: #fff; min-width: 16px; text-align: center; }

/* ── ADMIN SECTION ──────────────────────────────────────── */
.sb-admin {
    padding: 0 6px 8px;
    flex-shrink: 0;
    padding-bottom: 45px;
}
.sb-admin-divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 4px 4px 10px;
}
.sb-label-admin { color: rgba(245,158,11,.6); }

/* ── COLLAPSED STATE ────────────────────────────────────── */

/* 1. Oculta TODOS os textos, labels e badges — sem exceção */
.sidebar.collapsed .sb-link span,
.sidebar.collapsed .sb-label,
.sidebar.collapsed .sb-badge { display: none !important; }

/* 2. Centraliza ícones: remove gap, padding lateral e overflow */
.sidebar.collapsed .sb-link {
    padding: 8px 0;
    justify-content: center;
    gap: 0;
    overflow: hidden;
}
.sidebar.collapsed .sb-icon {
    width: 20px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* 3. Remove a barra indicadora active (sem espaço a 65 px) */
.sidebar.collapsed .sb-link::before,
.sidebar.collapsed .sb-link.active::before { display: none !important; }

/* 4. Ajusta espaçamento interno do nav e grupos */
.sidebar.collapsed .sb-nav { padding: 6px 4px 0; }
.sidebar.collapsed .sb-group { padding: 0; margin: 0; }
/* Sem os rótulos, um traço curto separa as seções — senão os ícones viram uma coluna só. */
.sidebar.collapsed .sb-group + .sb-group {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 4px;
    margin: 4px 12px 0;
}

/* 5. Seção admin: alinha com o nav */
.sidebar.collapsed .sb-admin { padding: 0 4px 8px; }

/* ── SEÇÕES RECOLHÍVEIS (CRM) ───────────────────────────── */
.sb-label-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    padding: 4px 10px 6px;
}
.sb-label-btn:hover { color: rgba(255,255,255,0.9); }
.sb-label-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.sb-label-chevron { font-size: .9em; opacity: .7; transition: transform .15s ease; }
.sb-group.fechada .sb-label-chevron { transform: rotate(-90deg); }
.sb-group.fechada > a.sb-link,
.sb-group.fechada > .sb-has-sub { display: none !important; }
/* Buscando, a seção fechada mostra o que casou; recolhida, mostra os ícones. */
.sb-nav.buscando .sb-group.fechada > a.sb-link:not([hidden]),
.sidebar.collapsed .sb-group.fechada > a.sb-link:not([hidden]) { display: flex !important; }

/* ── ACESSIBILIDADE ─────────────────────────────────────── */
/* .sb-link usa display:flex !important; sem isto o atributo hidden (busca) não esconde. */
.sb-link[hidden], .sb-group[hidden], .sb-has-sub[hidden] { display: none !important; }
.sb-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* ── BUSCA NO MENU (CRM) ────────────────────────────────── */
.sb-busca {
    flex-shrink: 0;
    padding: 10px 10px 2px;
}
.sb-busca-campo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 10px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.6);
    cursor: text;
    transition: border-color .12s, background .12s;
}
.sb-busca-campo:focus-within {
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.12);
}
.sb-busca-campo i { font-size: .8em; flex-shrink: 0; }
.sb-busca-campo input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    font: inherit;
    font-size: .84em;
}
.sb-busca-campo input::placeholder { color: rgba(255,255,255,0.6); }
.sb-busca-campo input::-webkit-search-cancel-button { filter: grayscale(1) brightness(2); opacity: .8; cursor: pointer; }
.sb-busca-campo kbd {
    font: inherit;
    font-size: .62em;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}
.sb-busca-campo:focus-within kbd { display: none; }
.sb-busca-vazio {
    margin: 8px 4px 0;
    font-size: .78em;
    color: rgba(255,255,255,0.7);
}
.sb-busca-vazio:empty { display: none; }
.sb-busca-abrir {
    display: none;
    width: 100%;
    height: 34px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}
.sb-busca-abrir:hover, .sb-busca-abrir:focus-visible { background: rgba(255,255,255,0.1); color: #fff; outline: none; }
.sidebar.collapsed .sb-busca { padding: 8px 4px 0; }
.sidebar.collapsed .sb-busca-campo,
.sidebar.collapsed .sb-busca-vazio { display: none; }
.sidebar.collapsed .sb-busca-abrir { display: flex; }
.sidebar.collapsed .sb-admin-divider { margin: 4px 0 6px; }

/* 6. Logo area: oculta imagem e reserva espaço para o botão collapse */
.sidebar.collapsed .sb-logo {
    padding: 10px 0 !important;
    justify-content: center;
    border-bottom: none !important;
    min-height: 52px;
}
.sidebar.collapsed .sb-logo img { display: none !important; }

/* ══════════════════════════════════════════════════════════
   CRM SUBMENUS — acordeão dentro do design sb-*
══════════════════════════════════════════════════════════ */

/* Container do item pai com submenu */
.sb-has-sub { position: relative; }

/* Chevron (seta) do submenu toggle */
.sb-chevron {
    margin-left: auto;
    font-size: .72em;
    opacity: 0.45;
    flex-shrink: 0;
    transition: transform 0.25s ease, opacity 0.12s;
}
.sb-has-sub.open > .sb-link > .sb-chevron {
    transform: rotate(180deg);
    opacity: 0.7;
}

/* Área dos itens filhos */
.sb-sub-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease-in-out;
}
.sb-has-sub.open > .sb-sub-items { max-height: 400px; }

/* Estilo dos links filhos */
.sb-link.sb-sub {
    padding-left: 30px;
    font-size: .8em;
    color: rgba(255,255,255,0.52);
    margin-bottom: 1px;
}
.sb-link.sb-sub:hover { color: rgba(255,255,255,0.82); }
.sb-link.sb-sub.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    font-weight: 500;
}

/* CRM logo area: exibe o h2 em lugar da imagem */
#sb-crm-nav ~ * .sb-logo h2,
.sidebar .sb-logo h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
}

/* ── COLLAPSED STATE para submenus CRM ─────────────────── */
.sidebar.collapsed .sb-chevron { display: none !important; }
.sidebar.collapsed .sb-sub-items { display: none !important; }