/* Estilos Globais */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    font-size: 15px;
    /* Tamanho confortável */
    line-height: 1.5;
}

/* Menu Lateral */
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    color: #64748b;
    cursor: pointer;
}

.nav-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* Abas */
.tab-active {
    background-color: #1e293b;
    color: white;
    border: none;
}

.tab-inactive {
    background-color: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.tab-inactive:hover {
    background-color: #f8fafc;
}

/* Prioridades */
.prio-ALTA {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.prio-NORMAL {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.prio-BAIXA {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Toast */
#toast {
    z-index: 9999 !important;
}

/* Controlado via translate */

/* Utilitários */
.hidden {
    display: none !important;
}


/* ESTILO DO BOTÃO FECHAR BLOQUEADO */
.btn-close-disabled {
    opacity: 0.3 !important;
    pointer-events: none !important;
    /* Impede o clique */
    cursor: not-allowed !important;
    background-color: #f1f5f9 !important;
    color: #cbd5e1 !important;
}

/* Lista de Anexos no Formulário */
.anexo-item {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Segurança */
.admin-only {
    display: none !important;
}

body.is-admin .admin-only {
    display: block !important;
}

body.is-admin span.admin-only {
    display: inline !important;
}

body.is-admin div.admin-only {
    display: block !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Tabela Hover Effect */
#lista-clientes-tabela>div:hover {
    background-color: #f8fafc;
}

/* Transição suave nos números dos KPIs */
#kpi-tarefas-total,
#kpi-tempo-total {
    transition: all 0.3s ease;
}