/* ==================================================
   CRM STYLE — PIPEDRIVE LIKE (REFATORADO)
   Manutenção: todas as funcionalidades preservadas
================================================== */

/* ------------------------------------------
   VARIÁVEIS GLOBAIS E TEMA PADRÃO (CLARO)
------------------------------------------ */
:root {
    /* Base */
    --crm-bg: #f5f6f8;
    --crm-column: #eceff3;
    --crm-card: #ffffff;
    --crm-border: #dfe3e8;

    /* Texto */
    --crm-text: #172b4d;
    --crm-muted: #6b778c;

    /* Identidade CRM */
    --crm-primary: #2563eb;
    --crm-primary-soft: #dbeafe;

    --crm-success: #16a34a;
    --crm-success-soft: #dcfce7;

    --crm-warning: #f59e0b;
    --crm-warning-soft: #fef3c7;

    --crm-danger: #ef4444;
    --crm-danger-soft: #fee2e2;

    --crm-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 6px rgba(0, 0, 0, .03);
}

/* DARK MODE */
[data-bs-theme="dark"] {

    --crm-bg: #0f172a;
    --crm-column: #1e293b;
    --crm-card: #111827;
    --crm-border: #334155;

    --crm-text: #f1f5f9;
    --crm-muted: #94a3b8;

    --crm-shadow:
        0 1px 2px rgba(0, 0, 0, .30),
        0 8px 24px rgba(0, 0, 0, .25);
}

/* ------------------------------------------
   BASE E LAYOUT PRINCIPAL
------------------------------------------ */
html,
body {
    height: 100%;
    margin: 0;
}

body {
    background: var(--crm-bg);
    overflow: hidden;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Layout flexível para sidebar + main */
.crm-layout {
    display: flex;
    height: 100vh;
}

/* ------------------------------------------
   SIDEBAR (ESTILO ENTERPRISE)
------------------------------------------ */
.crm-sidebar {
    width: 200px;
    background: #111827;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
    flex-shrink: 0;
}

.crm-logo {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.logo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--crm-primary);
}

.crm-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.crm-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #d1d5db;
    text-decoration: none;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    transition: all .15s ease;

}

.crm-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
}

.crm-nav-item.active {
    background: var(--crm-primary);
    color: white;
}

.crm-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
}

/* ==========================================
   USER SETTINGS SIDEBAR
========================================== */

.crm-user {
    display: flex;
    align-items: center;
    gap: .8rem;

    padding: .85rem;
    border-radius: 14px;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .15s ease,
        border-color .2s ease;

    border: 1px solid transparent;
}

.crm-user:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .08);
    transform: translateX(3px);
}

.crm-user:active {
    transform: translateX(1px);
}

.crm-user-avatar {
    width: 42px;
    height: 42px;

    min-width: 42px;
    min-height: 42px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg,
            var(--crm-primary),
            #4f46e5);

    color: #fff;

    font-size: .9rem;
    font-weight: 700;

    flex-shrink: 0;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.crm-user:hover .crm-user-avatar {
    transform: scale(1.05);
}

.crm-user-name {
    font-weight: 600;
    transition: color .2s ease;
}

.crm-user:hover .crm-user-name {
    color: #ffffff;
}

.crm-user-gear {
    color: #94a3b8;

    opacity: 0;
    transform: translateX(-5px);

    transition: all .2s ease;
}

.crm-user:hover .crm-user-gear {
    opacity: 1;
    transform: translateX(0);
}

/* ------------------------------------------
   MAIN (ÁREA DE TRABALHO)
------------------------------------------ */
.crm-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.crm-topbar {
    height: 82px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.crm-page-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
}

.crm-page-subtitle {
    color: #6b7280;
    font-size: 0.85rem;
}

.crm-topbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.crm-topbar-actions input {
    width: 260px;
}

.crm-topbar-actions #themeToggle {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
}

.crm-topbar-actions #btnLogout {
    border-radius: 12px;
    font-weight: 600;
}

.crm-content {
    flex: 1;
    min-height: 0;
    /* reforçar para evitar estouro em flex */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 1rem;
}

/* ------------------------------------------
   PIPELINE (KANBAN) – ESTRUTURA PRINCIPAL
------------------------------------------ */
.pipeline-fullwidth {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kanban-container {
    cursor: grab;
    scroll-behavior: smooth;
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: stretch;
    padding: 0 1rem 1rem;
    scroll-behavior: auto;
}

.kanban-container.drag-scroll {
    cursor: grabbing;
}

.kanban-col {
    min-width: 320px;
    width: 320px;
    background: var(--crm-column);
    border-radius: 12px;

    display: flex;
    flex-direction: column;

    height: 100%;
    /* força altura total dentro do container */
    max-height: 100%;
    /* impede crescimento vertical */
    min-height: 0;
    /* essencial para flex children com overflow */

    border: 1px solid rgba(0, 0, 0, 0.04);
    /* crítico para scroll vertical */
}

/* Cabeçalho da coluna */
.kanban-header {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.kanban-header h5 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--crm-text);
    margin: 0;
}

.negocios-count {
    font-size: 0.72rem;
    color: var(--crm-muted);
    margin-top: 0.2rem;
}

.negocios-valor {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--crm-success);
}

/* Container dos cards – scroll vertical interno */
.kanban-cards {
    flex: 1;
    min-height: 0;
    /* permite encolher e ativar scroll */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.kanban-cards:empty {
    min-height: 100%;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
}

/* ------------------------------------------
   CARDS DE LEAD (MODERNOS, COM AVATAR)
------------------------------------------ */
.kanban-card {
    flex-shrink: 0;
    /* IMPEDE O CARD DE ENCOLHER */
    width: 100%;

    background: var(--crm-card);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--crm-shadow);
    padding: 0.8rem;
    cursor: grab;
    transition: transform .15s ease, box-shadow .15s ease;
    position: relative;
    overflow: hidden;
}

.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.kanban-card:active {
    cursor: grabbing;
}

/* Linha decorativa à esquerda no hover */
.kanban-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background .2s ease;
}

.kanban-card:hover::before {
    background: var(--crm-primary);
}

/* Topo do card: avatar + info + temperatura */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.lead-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.lead-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, var(--crm-primary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.lead-info {
    min-width: 0;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--crm-text);
    margin-bottom: 0.2rem;
}

.card-subtitle {
    font-size: 0.72rem;
    color: var(--crm-muted);
    margin-bottom: 0.45rem;
}

/* Temperatura do lead */
.lead-temp {
    font-size: 0.65rem;
    padding: 0.25rem 0.45rem;
    border-radius: 999px;
    font-weight: 700;
}

.lead-temp.cold {
    background: #e2e8f0;
    color: #475569;
}

.lead-temp.warm {
    background: #fef3c7;
    color: #b45309;
}

.lead-temp.hot {
    background: #fee2e2;
    color: #dc2626;
}

/* Valor do negócio */
.lead-value {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
}

/* Próxima tarefa (dentro do card) */
.lead-next-task {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    margin-bottom: 0.8rem;
}

.next-task-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.next-task-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.next-task-date {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.2rem;
}

/* Footer do card (badge + ações) */
.card-footer-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.lead-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.task-badge {
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
}

.lead-id {
    color: #9ca3af;
    font-size: 0.7rem;
}

/* Botões de ação (aparecem no hover) */
.kanban-card .btn-group {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
}

.kanban-card:hover .btn-group {
    opacity: 1;
    transform: translateY(0);
}

.kanban-card .btn {
    border-radius: 8px !important;
    font-size: 0.7rem;
    padding: 0.2rem 0.45rem;
}

/* ------------------------------------------
   CAMPOS DE BUSCA E INPUTS
------------------------------------------ */
#buscaPipeline {
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--crm-border);
    box-shadow: none !important;
}

#buscaPipeline:focus {
    border-color: var(--crm-primary);
}

/* ------------------------------------------
   DRAG & DROP (SORTABLEJS)
------------------------------------------ */
.sortable-ghost {
    opacity: 0.4;
}

.sortable-chosen {
    transform: rotate(1deg);
}

.sortable-drag {
    transform: rotate(2deg);
}

/* ------------------------------------------
   SKELETON LOADING
------------------------------------------ */
.skeleton,
.skeleton-card {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
}

.skeleton::after,
.skeleton-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150px;
    width: 150px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.skeleton-title {
    height: 18px;
    width: 120px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.skeleton-small {
    height: 12px;
    width: 70px;
    border-radius: 6px;
}

.skeleton-card {
    height: 110px;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* ------------------------------------------
   MODAL PREMIUM
------------------------------------------ */
.crm-modal .modal-content {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.crm-modal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1rem 1.2rem;
    background: #fff;
}

.crm-modal .modal-title {
    font-weight: 800;
    font-size: 1rem;
}

.crm-modal .modal-body {
    padding: 1.2rem;
    background: #f8fafc;
}

.crm-modal .modal-footer {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.8rem 1.2rem;
}

/* ------------------------------------------
   SCROLLBAR PERSONALIZADA
------------------------------------------ */
::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.kanban-cards {
    scrollbar-width: thin;
}

/* ------------------------------------------
   DARK MODE (data-bs-theme="dark")
------------------------------------------ */
[data-bs-theme="dark"] .lead-next-task {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .next-task-title {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .next-task-label,
[data-bs-theme="dark"] .next-task-date {
    color: #94a3b8;
}

[data-bs-theme="dark"] .crm-modal .modal-body {
    background: #0f172a;
}

[data-bs-theme="dark"] .crm-modal .modal-content {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .crm-topbar {
    background: #1e293b;
    border-bottom-color: #334155;
}

[data-bs-theme="dark"] .crm-page-title,
[data-bs-theme="dark"] .crm-page-subtitle {
    color: #e2e8f0;
}

/* Ajustes adicionais para o dark mode (mantendo consistência) */
[data-bs-theme="dark"] body {
    background: #0f172a;
}

[data-bs-theme="dark"] .kanban-col {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .kanban-card {
    background: #0f172a;
    border-color: #334155;
}

[data-bs-theme="dark"] .kanban-header h5 {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .card-title {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .lead-value {
    color: #facc15;
}

[data-bs-theme="dark"] .task-badge {
    background: #334155;
    color: #a5f3fc;
}

/* Observações no card */
.lead-observacoes {
    background: #fefce8;
    border-left: 3px solid #eab308;
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    margin-top: 0.6rem;
    font-size: 0.7rem;
}

.observacoes-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #854d0e;
    margin-bottom: 0.2rem;
    letter-spacing: 0.3px;
}

.observacoes-text {
    color: #1e293b;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
}

/* Dark mode */
[data-bs-theme="dark"] .lead-observacoes {
    background: #1e293b;
    border-left-color: #facc15;
}

[data-bs-theme="dark"] .observacoes-label {
    color: #fde047;
}

[data-bs-theme="dark"] .observacoes-text {
    color: #cbd5e1;
}

/* login */

/* ==================================================
   LOGIN PREMIUM
================================================== */

/* Indicador de tarefas no card */
.task-indicator {
    font-size: 1.2rem;
    transition: transform 0.1s ease;
}
.task-indicator i {
    display: inline-block;
}
.task-status-ok {
    color: #16a34a;  /* verde */
}
.task-status-warning {
    color: #eab308;  /* amarelo */
}
.task-status-none {
    color: #ef4444;  /* vermelho */
}
.kanban-card:hover .task-indicator {
    transform: scale(1.1);
}



.crm-login {
    min-height: 100vh;
    display: flex;
    background: var(--crm-bg);
}

.crm-login-left {
    flex: 1;
    background:
        radial-gradient(circle at top left,
            rgba(37, 99, 235, .15),
            transparent 40%),
        #111827;

    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 4rem;
}

.crm-login-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 2rem;
}

.crm-login-logo h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.crm-login-logo .logo-dot {
    width: 16px;
    height: 16px;
}

.crm-login-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.crm-login-subtitle {
    color: rgba(255, 255, 255, .75);
    font-size: 1.1rem;
    max-width: 520px;
}

.crm-benefits {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.crm-benefit {
    display: flex;
    align-items: center;
    gap: .8rem;
    font-size: .95rem;
}

.crm-login-right {
    width: 480px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.crm-login-card {
    width: 100%;
    max-width: 360px;
}

.crm-login-card h2 {
    font-weight: 800;
    margin-bottom: .5rem;
}

.crm-login-card p {
    color: var(--crm-muted);
    margin-bottom: 2rem;
}

.crm-login-card .form-control {
    height: 48px;
    border-radius: 12px;
}

.crm-login-card .btn-primary {
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
}

[data-bs-theme="dark"] .crm-login-right {
    background: #0f172a;
}

[data-bs-theme="dark"] .crm-login-card h2 {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .crm-login-card p {
    color: #94a3b8;
}

/* Mobile */

@media (max-width: 992px) {

    .crm-login-left {
        display: none;
    }

    .crm-login-right {
        width: 100%;
    }
}

/* ==================================================
   ESTATÍSTICAS / DASHBOARD (EXTRAS)
================================================== */

.crm-stat-card {
    background: var(--crm-card);
    border: 1px solid var(--crm-border);
    border-radius: 18px;
    padding: 1.5rem;
    height: 100%;

    box-shadow: var(--crm-shadow);

    position: relative;
    overflow: hidden;
}

.crm-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background: var(--crm-primary);
}

.stat-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 1.2rem;

    color: var(--crm-primary);

    background: rgba(37, 99, 235, .12);

    border: 1px solid rgba(37, 99, 235, .18);

    margin-bottom: 12px;
}

[data-bs-theme="dark"] .stat-icon {
    background: rgba(96, 165, 250, .15);
    border-color: rgba(96, 165, 250, .25);
}

.stat-title {
    font-size: .85rem;
    color: var(--crm-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 6px;
}

.crm-panel {
    background: var(--crm-card);
    border: 1px solid var(--crm-border);
    border-radius: 18px;
    padding: 1.25rem;

    box-shadow: var(--crm-shadow);
}

.dashboard-task {
    background: var(--crm-bg);
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    padding: 12px;

    margin-bottom: 10px;
}

/* ==================================================
   Font Awesome (alinhamento ícones) — Pipedrive/Hubspot style
================================================== */
.crm-nav-item i {
    width: 18px;
    text-align: center;
    margin-right: 10px;
}

.btn i {
    margin-right: 4px;
}

.task-badge i {
    margin-right: 4px;
}

/* ==================================================
   LAYOUT / DASHBOARD V2 (ajustes de scroll/altura)
================================================== */

html,
body {
    height: 100%;
    overflow: hidden;
}

.crm-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.crm-sidebar {
    flex-shrink: 0;
}

.crm-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    overflow: hidden;
}

.crm-topbar {
    flex-shrink: 0;
}

.crm-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    min-height: 0;
}

/* Wrapper do Dashboard (se o HTML utilizar) */
.dashboard-page {
    width: 100%;
    min-height: 100%;
}

/* Gráficos (Chart.js) */
.chart-card {
    min-height: 380px;
}

.chart-card canvas {
    max-height: 320px;
}

/* Tabelas futuras */
.table-responsive {
    overflow-x: auto;
}

/* ==================================================
   SIDEBAR — CRM MODERNO (BOOTSTRAP ACCORDION)
   ================================================== */
.crm-sidebar-accordion .accordion-item {
    border: 0;
    background: transparent;
}

.crm-sidebar-accordion .accordion-button {
    background: transparent;
    box-shadow: none !important;
    padding: 14px 18px;
    font-weight: 600;
    font-size: .95rem;
    color: #d1d5db;
}

.crm-sidebar-accordion .accordion-button:not(.collapsed) {
    background: rgba(37, 99, 235, .10);
    color: #60a5fa;
    border-radius: 12px;
}

.crm-sidebar-accordion .accordion-button:hover {
    background: rgba(255, 255, 255, .05);
    border-radius: 12px;
}

.crm-sidebar-accordion .accordion-button::after {
    transform: scale(.8);
}

.crm-sidebar-accordion .accordion-body {
    padding: 0;
}

/* Sidebar links (renderSidebar usa .crm-nav-item) */
.crm-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 16px 12px 24px;

    color: #d1d5db;
    text-decoration: none;

    border-radius: 12px;

    transition:
        background .2s ease,
        color .2s ease,
        transform .15s ease;
}

.crm-nav-item:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;

    transform: translateX(3px);
}

.crm-nav-item.active {
    background: var(--crm-primary);
    color: #fff;

    font-weight: 600;
}

/* Neutraliza o styling antigo caso exista em outras partes (somente elementos antigos) */
.crm-menu-group {
    margin: 0;
}

.crm-menu-toggle {
    display: none;
}

.crm-submenu {
    display: none;
}

/* ========================= LEAD DETAILS (modal) ========================= */
.lead-notes-panel {
    min-height: 220px;
}

.vendedor-row {
    transition: all .15s ease;
}

.vendedor-row:hover {
    background: rgba(37, 99, 235, .05);
}

[data-bs-theme="dark"] .vendedor-row:hover {
    background: rgba(255, 255, 255, .04);
}

/* ==========================================
   CONFIGURAÇÕES
========================================== */

.config-page {
    max-width: 1200px;
    margin: 0 auto;
}

.config-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;
    font-weight: 700;

    background: var(--bs-primary);
    color: #fff;

    box-shadow: 0 12px 30px rgba(37, 99, 235, .25);
}

.config-page .crm-panel {
    border-radius: 18px;
}

.config-page .form-control {
    min-height: 44px;
}

[data-bs-theme="dark"] .config-avatar {
    box-shadow: 0 12px 30px rgba(59, 130, 246, .35);
}