/* ==========================================================================
   PRADUS CRM - DESIGN SYSTEM & STYLESHEET
   SaaS Administrativo de Tours Virtuais & Central de Suporte N1/N2/N3
   ========================================================================== */

:root {
    --bg-body: #f4f6fb;
    --bg-surface: #ffffff;
    --bg-surface-secondary: #f8fafc;
    --bg-sidebar: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    /* Brand Colors fiéis aos prints Duralux */
    --primary: #3b5bf8;
    --primary-hover: #2947e6;
    --primary-light: #eff2fe;
    --primary-gradient: linear-gradient(135deg, #3b5bf8 0%, #2543d8 100%);
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --info: #06b6d4;
    --info-light: #ecfeff;
    --purple: #8b5cf6;
    --purple-light: #f5f3ff;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 14px 28px rgba(15, 23, 42, 0.1);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --sidebar-width: 260px;
    --header-height: 72px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo Escuro */
[data-theme="dark"] {
    --bg-body: #0b1120;
    --bg-surface: #131c31;
    --bg-surface-secondary: #1a2540;
    --bg-sidebar: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --border-light: #162035;
    --primary-light: rgba(59, 91, 248, 0.15);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Reset Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Faixa de Auditoria de Impersonation (Ambiente do Cliente) */
.impersonation-bar {
    display: none;
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: #ffffff;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.impersonation-bar.active {
    display: flex;
}

.impersonation-badge {
    background: #ef4444;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.impersonation-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.btn-exit-impersonation {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-exit-impersonation:hover {
    background: #ef4444;
    border-color: #ef4444;
}

/* Layout Geral */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR FIXA */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-light);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-logo svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
    flex-shrink: 0;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.brand-tag {
    font-size: 10px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    margin-left: 4px;
}

.sidebar.collapsed .brand-name,
.sidebar.collapsed .brand-tag,
.sidebar.collapsed .nav-title,
.sidebar.collapsed .nav-link-text,
.sidebar.collapsed .nav-arrow,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .sidebar-footer {
    display: none !important;
}

/* Conteúdo da Sidebar com Scrollbar personalizada */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 18px 14px;
}

.sidebar-content::-webkit-scrollbar {
    width: 4px;
}
.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.nav-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 10px 14px 6px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
}

.nav-link:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-item.active > .nav-link {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-link-text {
    flex: 1;
}

.nav-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.nav-item.open > .nav-link .nav-arrow {
    transform: rotate(90deg);
}

.nav-badge {
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}
.nav-badge.badge-n1 { background: #e0f2fe; color: #0284c7; }
.nav-badge.badge-n2 { background: #fef3c7; color: #d97706; }
.nav-badge.badge-n3 { background: #fee2e2; color: #dc2626; }

/* Submenu Accordion */
.nav-submenu {
    list-style: none;
    padding-left: 36px;
    padding-top: 4px;
    display: none;
    flex-direction: column;
    gap: 2px;
}

.nav-item.open > .nav-submenu {
    display: flex;
}

.submenu-link {
    display: block;
    padding: 7px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.submenu-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--text-muted);
    border-radius: 50%;
    opacity: 0.5;
}

.submenu-link:hover,
.submenu-link.active {
    color: var(--primary);
    background-color: var(--primary-light);
    font-weight: 600;
}

.submenu-link.active::before {
    background-color: var(--primary);
    opacity: 1;
}

/* Banner de Download / Recursos na Sidebar */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-light);
}

.download-box {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.download-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.download-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.download-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.btn-download {
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-download:hover {
    background-color: var(--primary-hover);
}

/* ÁREA PRINCIPAL */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
}

.sidebar.collapsed ~ .main-wrapper {
    margin-left: 80px;
}

/* HEADER SUPERIOR */
.top-header {
    height: var(--header-height);
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon-header {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.btn-icon-header:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.btn-quick-add {
    width: 34px;
    height: 34px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-quick-add:hover {
    transform: scale(1.06);
    background-color: var(--primary-hover);
}

.btn-mega-menu {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-mega-menu:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Indicador de Badge em Botões */
.badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-surface);
}

.badge-green { background-color: var(--success); }
.badge-red { background-color: var(--danger); }

/* Avatar e Perfil */
.user-profile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px;
    border-radius: 24px;
    transition: var(--transition);
}

.user-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.user-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--success);
    border: 2px solid var(--bg-surface);
    border-radius: 50%;
}

/* CONTEÚDO PRINCIPAL */
.content-body {
    flex: 1;
    padding: 24px 28px 40px;
}

/* Sub-header de Navegação e Filtros */
.breadcrumb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-titles {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumbs span {
    color: var(--text-secondary);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    cursor: pointer;
}

.btn-filter {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-add-widget {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-widget:hover {
    background: var(--primary-hover);
}

/* GRID DE CARDS SUPERIORES (METRICS) */
.metrics-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.metrics-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.card-stat {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.card-stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.stat-val-group {
    text-align: right;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-badge-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.trend-up { background: var(--success-light); color: var(--success); }
.trend-down { background: var(--danger-light); color: var(--danger); }

.stat-progress-bar-wrap {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-color);
}

.stat-progress-bar {
    height: 4px;
    width: 100%;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.stat-progress-fill {
    height: 100%;
    border-radius: 2px;
}

.bg-fill-blue { background-color: var(--primary); }
.bg-fill-orange { background-color: #f97316; }
.bg-fill-green { background-color: var(--success); }
.bg-fill-red { background-color: var(--danger); }
.bg-fill-purple { background-color: var(--purple); }

.stat-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ÁREA DE GRÁFICOS CENTRAIS (PAYMENT RECORD & TOTAL SALES) */
.dashboard-main-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.card-chart {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.chart-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-actions {
    color: var(--text-muted);
    cursor: pointer;
}

.chart-canvas-container {
    position: relative;
    width: 100%;
    height: 280px;
}

/* Rodapé de Métricas do Gráfico */
.chart-footer-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.metric-col-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.metric-col-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.metric-col-bar {
    height: 3px;
    width: 100%;
    margin-top: 6px;
    border-radius: 2px;
}

/* CARD TOTAL SALES (AZUL ROYAL VIBRANTE) */
.card-sales-vibrant {
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(59, 91, 248, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.sales-vibrant-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sales-vibrant-val {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
}

.sales-vibrant-label {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 4px;
}

.sales-vibrant-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.wave-canvas-wrap {
    height: 90px;
    margin: 16px 0;
    position: relative;
}

/* Lista de Produtos / Planos 360 */
.top-products-list {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-category {
    font-size: 11px;
    color: var(--text-muted);
}

.product-meta {
    text-align: right;
}

.product-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-count {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-full-details {
    margin-top: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.btn-full-details:hover {
    color: var(--primary);
}

/* LINHA INFERIOR (3 SPARKLINES CARDS) */
.sparkline-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.card-sparkline {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sparkline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sparkline-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sparkline-icon {
    color: var(--text-muted);
}

.sparkline-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.sparkline-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.sparkline-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.sparkline-canvas-wrap {
    height: 55px;
    width: 100%;
    margin-top: 8px;
}

.sparkline-trend {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 4px;
}

/* ==========================================================================
   ESTILOS DE TELAS ESPECÍFICAS (REPORT DE VENDAS, LEADS/TICKETS, CLIENTES)
   ========================================================================== */

/* Tela de Vendas: Pipeline & Revenue Forecast */
.pipeline-forecast-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.pipeline-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.pipeline-mini-card {
    background: var(--bg-surface-secondary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
}

.pipeline-mini-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.pipeline-mini-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 4px 0 2px;
}

.pipeline-mini-deals {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Revenue Forecast Radial Gauge */
.radial-gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 180px;
}

.radial-percentage {
    position: absolute;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
}

.goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.goal-card {
    background: var(--bg-surface-secondary);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.goal-icon {
    color: var(--primary);
    margin-bottom: 4px;
}

.goal-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.goal-numbers {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-generate-report {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-generate-report:hover {
    background: var(--primary-hover);
}

/* Círculos de Progresso no Rodapé e Deals (Print 2 & Anexo 2) */
.circle-progress-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.circle-progress-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.circle-progress-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.deal-closing-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 14px;
}

.deal-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0 14px;
}

.deal-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.deal-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================================================
   GRID INFERIOR DO REPORT VENDAS (EARNINGS, EXPENSES & CONTACT LEADS)
   ========================================================================== */
.sales-bottom-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.earnings-expenses-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-finance-wave {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.finance-wave-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.finance-type-title {
    font-size: 13px;
    font-weight: 700;
}

.title-earnings { color: #10b981; }
.title-expenses { color: #ef4444; }

.select-year-pill {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}

.finance-amount-val {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.val-green { color: #10b981; }
.val-red { color: #ef4444; }

.finance-sub-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.finance-wave-canvas-wrap {
    height: 90px;
    width: 100%;
    margin-top: 14px;
}

/* Card Contact Leads & Tabela */
.card-contact-leads {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.company-tag-badge {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.status-pill.completed { background: #dcfce7; color: #166534; }
.status-pill.inprogress { background: #e0f2fe; color: #0284c7; }
.status-pill.not-interested { background: #ffedd5; color: #c2410c; }

.stage-bar-wrap {
    background: var(--border-color);
    border-radius: 4px;
    height: 14px;
    width: 120px;
    overflow: hidden;
    position: relative;
}

.stage-bar-fill {
    background: var(--primary);
    height: 100%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: #ffffff;
}

/* Paginação estilo Duralux / Pradus */
.leads-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

.page-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn.dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* Tela de Analytics: Visitantes & Navegadores */
.analytics-main-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.browser-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.browser-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.browser-info-line {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.browser-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.browser-bar-fill {
    height: 100%;
    border-radius: 3px;
}

/* Tela de Chamados & Tickets N1/N2/N3 (Print 5) */
.tickets-main-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.tickets-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Tabela de Leads / Tickets de Suporte */
.custom-table-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.table-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.table-filter-tabs {
    display: flex;
    gap: 8px;
}

.tab-btn {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.duralux-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.duralux-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.duralux-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

.duralux-table tr {
    transition: background 0.15s ease;
}

.duralux-table tr:hover {
    background-color: var(--bg-surface-secondary);
}

/* Indicador de Borda Lateral no Status (Fiel ao print 5) */
.td-name-border {
    position: relative;
    padding-left: 20px !important;
    font-weight: 600;
}

.td-name-border::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 2px;
}

.border-green::before { background-color: var(--success); }
.border-orange::before { background-color: #f97316; }
.border-blue::before { background-color: var(--primary); }
.border-red::before { background-color: var(--danger); }
.border-purple::before { background-color: var(--purple); }

/* Badges de Status dos Tickets */
.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.status-pill.deal-won,
.status-pill.resolvido { background: #dcfce7; color: #15803d; }

.status-pill.intro-call,
.status-pill.aguardando { background: #fef9c3; color: #a16207; }

.status-pill.stuck,
.status-pill.analise-n2 { background: #e0f2fe; color: #0369a1; }

.status-pill.cancelled,
.status-pill.escalado-n3 { background: #fee2e2; color: #b91c1c; }

.status-pill.progress,
.status-pill.andamento { background: #f3e8ff; color: #7e22ce; }

/* Upcoming Events (Print 5) */
.events-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.event-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.event-date-box {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    text-align: center;
    min-width: 52px;
}

.event-day-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.event-day-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

.event-info {
    flex: 1;
}

.event-time {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.event-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.event-avatars {
    display: flex;
    align-items: center;
}

.mini-avatar-stack {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bg-surface);
    margin-left: -8px;
    object-fit: cover;
}

.avatar-more-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-left: 4px;
}

/* ==========================================================================
   TELA DE AMBIENTES DE CLIENTES & IMPERSONATION REMOTO
   ========================================================================== */

.tenant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}

.tenant-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.tenant-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.tenant-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.tenant-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.tenant-plan-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.tenant-status-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    background: #dcfce7;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tenant-stats-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--bg-surface-secondary);
    padding: 12px;
    border-radius: var(--radius-md);
    margin: 14px 0;
}

.tenant-stat-item {
    display: flex;
    flex-direction: column;
}

.tenant-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.tenant-stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.tenant-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.btn-impersonate {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 9px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-impersonate:hover {
    background: var(--primary-hover);
}

.btn-tenant-inspect {
    background: var(--bg-surface-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-tenant-inspect:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* ==========================================================================
   SIMULADOR DE AMBIENTE DO CLIENTE (PLAYER 360 & PAINEL REMOTO)
   ========================================================================== */

.client-environment-view {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.client-env-header {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.env-brand-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.env-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.env-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.env-sub {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.env-viewer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Simulador do Visualizador 360 */
.tour-viewer-card {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 460px;
    box-shadow: var(--shadow-lg);
}

.tour-canvas-360 {
    width: 100%;
    height: 100%;
    cursor: grab;
    display: block;
}

.tour-canvas-360:active {
    cursor: grabbing;
}

.tour-viewer-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    pointer-events: none;
    z-index: 10;
}

.tour-viewer-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border-radius: 30px;
    padding: 6px 16px;
    display: flex;
    gap: 14px;
    z-index: 10;
}

.tour-viewer-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tour-viewer-controls button:hover {
    color: var(--primary);
    transform: scale(1.15);
}

/* Painel de Diagnóstico do Suporte N1/N2/N3 no Cliente */
.support-side-console {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.console-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.console-tab {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.console-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.console-body {
    flex: 1;
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    background: #0f172a;
    color: #e2e8f0;
    padding: 12px;
    border-radius: var(--radius-sm);
    line-height: 1.6;
    max-height: 320px;
}

.log-info { color: #38bdf8; }
.log-warn { color: #fbbf24; }
.log-error { color: #f87171; }
.log-success { color: #4ade80; }

/* ==========================================================================
   MODAIS E ELEMENTOS FLUTUANTES
   ========================================================================== */

/* Engrenagem Flutuante na Direita (como nos prints) */
.floating-settings-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    width: 38px;
    height: 38px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 4px 12px rgba(59, 91, 248, 0.4);
    cursor: pointer;
    z-index: 100;
    transition: var(--transition);
}

.floating-settings-btn:hover {
    width: 44px;
    background: var(--primary-hover);
}

/* Modal Overlay Padrão */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-dialog {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: scaleUp 0.25s ease;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-surface);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.modal-footer {
    padding: 16px 24px;
    background: var(--bg-surface-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Dropdowns Rápidos (Notificações, Perfil, Ações) */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 100;
    padding: 12px 0;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-header {
    padding: 8px 16px 12px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.dropdown-item {
    padding: 10px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background: var(--bg-surface-secondary);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.dropdown-content {
    flex: 1;
}

.dropdown-item-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.dropdown-item-desc {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dropdown-item-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Responsividade */
@media (max-width: 1200px) {
    .metrics-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .dashboard-main-row,
    .pipeline-forecast-row,
    .analytics-main-row,
    .tickets-table-row,
    .env-viewer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-wrapper { margin-left: 0 !important; }
    .metrics-grid-4,
    .metrics-grid-6,
    .sparkline-row-3,
    .tickets-main-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ESTILOS DE PROJECT LEADS (REPORT LEADS - IMAGEM 3)
   ========================================================================== */
.project-leads-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}

.project-leads-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.project-lead-card {
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: var(--transition);
}

.project-lead-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Bloco Esquerdo Colorido */
.pl-badge-block {
    width: 90px;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.pl-badge-top {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.pl-badge-bottom {
    padding: 12px 6px;
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

/* Variação Azul */
.pl-blue .pl-badge-top { background: #e0f2fe; color: #0284c7; }
.pl-blue .pl-badge-bottom { background: #3b5bf8; }

/* Variação Verde */
.pl-green .pl-badge-top { background: #dcfce7; color: #15803d; }
.pl-badge-bottom.bg-green { background: #10b981; }

/* Variação Laranja */
.pl-orange .pl-badge-top { background: #ffedd5; color: #c2410c; }
.pl-badge-bottom.bg-orange { background: #f97316; }

/* Bloco de Informações Centrais */
.pl-main-info {
    flex: 1.5;
    min-width: 240px;
}

.pl-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pl-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.pl-id-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-surface-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.pl-contact-line {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-contact-line i {
    width: 14px;
    color: var(--text-muted);
}

.pl-show-more {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
}

/* Bloco de Receita e Reps */
.pl-revenue-block {
    flex: 0.8;
}

.pl-meta-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.pl-revenue-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Bloco de Status e Ações */
.pl-status-block {
    flex: 1;
}

.pl-select-status {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 10px;
}

.pl-action-icons {
    display: flex;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.pl-action-icons i {
    cursor: pointer;
    transition: var(--transition);
}

.pl-action-icons i:hover {
    color: var(--primary);
}

/* Bloco de Anel de Progresso Circular */
.pl-circle-block {
    flex-shrink: 0;
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pl-circle-val {
    position: absolute;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
}

.card-update-footer {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--border-light);
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* ==========================================================================
   ESTILOS DE REPORT PROJETOS (PRINTS 1, 2 E 3)
   ========================================================================== */
.recent-projects-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.recent-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-view-alls {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-view-alls:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.recent-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.card-project-progress {
    background: var(--bg-surface);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 16px 16px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.card-project-progress:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.vertical-update-tag {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 26px;
    background: var(--bg-surface-secondary);
    border-right: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vertical-update-tag span {
    transform: rotate(-90deg);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
    white-space: nowrap;
}

.proj-info-col {
    flex: 1;
    padding-right: 10px;
}

.proj-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.proj-deadline {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.proj-circle-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proj-circle-val {
    position: absolute;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
}

/* Linha Central: Project Report Chart + Calendário */
.project-middle-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Calendário Widget Interativo (Print 1 & 2) */
.calendar-widget-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.calendar-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.calendar-month-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cal-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
}

.calendar-days-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.calendar-grid-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px 4px;
    text-align: center;
}

.cal-date-cell {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.cal-date-cell:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.cal-date-cell.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}

.cal-date-cell.active-day {
    background: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(59, 91, 248, 0.4);
}

.cal-date-cell.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

/* Faixa de Horas & Resumo (Print 3) */
.project-kpi-band {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.card-hours-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: var(--shadow-sm);
}

.hours-col {
    text-align: center;
}

.hours-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.hours-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.card-user-kpi {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.user-kpi-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-upcoming-banner {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

/* Tabela Projects Stats & Traços de Estágio (Print 3) */
.stage-dashes {
    display: flex;
    gap: 4px;
    align-items: center;
}

.stage-dash {
    width: 10px;
    height: 3px;
    border-radius: 2px;
}

.dash-green { background-color: var(--success); }
.dash-orange { background-color: #f97316; }
.dash-gray { background-color: var(--border-color); }

.btn-circle-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-circle-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Schedule Card (Print 3) */
.card-schedule-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
    transition: var(--transition);
}

.schedule-item:hover {
    border-color: var(--primary);
}

.schedule-date-box {
    min-width: 50px;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.box-blue { background: #eff2fe; color: #3b5bf8; }
.box-orange { background: #fff7ed; color: #f97316; }
.box-green { background: #f0fdf4; color: #16a34a; }
.box-red { background: #fef2f2; color: #ef4444; }

.schedule-day-num {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.schedule-month-name {
    font-size: 10px;
    font-weight: 700;
    margin-top: 2px;
}

.btn-more-schedule {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    text-align: center;
    width: 100%;
    margin-top: 14px;
    transition: var(--transition);
}

.btn-more-schedule:hover {
    color: var(--primary);
}

/* ==========================================================================
   ESTILOS DE PROPOSTAS (PROPOSAL LIST - FIEL AO PRINT)
   ========================================================================== */
.proposal-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-header-tool {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-header-tool:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-new-proposal {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-new-proposal:hover {
    background: var(--primary-hover);
}

.datatable-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.datatable-show-entries {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-entries {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
}

.datatable-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-table-search {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    width: 200px;
    transition: var(--transition);
}

.input-table-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-search-table {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    width: 240px;
    transition: var(--transition);
}

.input-search-table:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ==========================================================================
   ESTILOS DE TABELA DATATABLE COMPLETA (CUSTOMERS, PROJECTS, PAYMENTS)
   ========================================================================== */
.custom-datatable {
    width: 100% !important;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 13px;
    margin: 0;
    table-layout: auto;
}

.custom-datatable th {
    text-align: left;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-surface);
    white-space: nowrap;
    user-select: none;
}

.custom-datatable th.sortable-th,
.custom-datatable th[onclick] {
    cursor: pointer;
}

.custom-datatable th[onclick]:hover {
    color: var(--text-primary);
}

.custom-datatable td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    vertical-align: middle;
}

.custom-datatable tbody tr {
    transition: background-color 0.15s ease;
}

.custom-datatable tbody tr:hover td {
    background-color: var(--bg-surface-secondary);
}

.custom-datatable .table-sort-icon {
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Tabela de Propostas */
.sortable-th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sortable-th span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sort-arrows {
    font-size: 10px;
    color: var(--text-muted);
}

.prop-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.avatar-initials-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
}

.badge-orange-initial { background: #f97316; }
.badge-blue-initial { background: #0284c7; }

/* Status Pills Propostas */
.status-pill.prop-sent { background: #dcfce7; color: #15803d; }
.status-pill.prop-open { background: #fee2e2; color: #b91c1c; }
.status-pill.prop-draft { background: #f1f5f9; color: #475569; }
.status-pill.prop-paid { background: #dcfce7; color: #166534; font-weight: 800; }
.status-pill.prop-unpaid { background: #fee2e2; color: #dc2626; font-weight: 800; }

.prop-actions-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.btn-prop-action {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-prop-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ==========================================================================
   ESTILOS DE PAGAMENTO (PAYMENT / INVOICES - FIEL AO PRINT)
   ========================================================================== */
.btn-create-invoice {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-create-invoice:hover {
    background: var(--primary-hover);
}

/* Status Pills de Pagamento */
.status-pill.pay-warning { background: #fef9c3; color: #a16207; font-weight: 700; }
.status-pill.pay-unpaid { background: #ffedd5; color: #c2410c; font-weight: 700; }
.status-pill.pay-declined { background: #fee2e2; color: #dc2626; font-weight: 700; }
.status-pill.pay-completed { background: #dcfce7; color: #166534; font-weight: 700; }

/* Badges de Método de Pagamento na Tabela & Modais */
.payment-method-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    width: fit-content;
}
.payment-method-badge.method-pix {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.payment-method-badge.method-credito {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}
.payment-method-badge.method-debito {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
.payment-method-badge.method-boleto {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.payment-method-badge.method-dinheiro {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.payment-method-badge.method-permuta {
    background: #fdf2f8;
    color: #be185d;
    border: 1px solid #fbcfe8;
}

/* Menu Flutuante de Ações da Fatura (Destaque do Print) */
.invoice-actions-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    width: 175px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
    z-index: 9999 !important;
    display: none;
    padding: 6px 0;
    animation: fadeIn 0.15s ease;
}

.invoice-actions-dropdown.active {
    display: block;
}

.invoice-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.invoice-dropdown-link:hover {
    background: var(--bg-surface-secondary);
    color: var(--primary);
}

.invoice-dropdown-link.link-danger:hover {
    color: var(--danger);
}

.invoice-dropdown-link i {
    width: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.invoice-dropdown-link:hover i {
    color: inherit;
}

/* ==========================================================================
   ESTILOS DE VISUALIZAÇÃO DE FATURA (INVOICE PREVIEW - ANEXO 1)
   ========================================================================== */
.invoice-preview-container {
    max-width: 1020px;
    margin: 0 auto;
}

.invoice-preview-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.invoice-preview-toolbar {
    padding: 16px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface-secondary);
}

.invoice-paper-body {
    padding: 40px;
}

.invoice-paper-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 34px;
}

.invoice-brand-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.invoice-brand-address {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.invoice-social-icons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.invoice-number-box {
    text-align: right;
}

.invoice-title-big {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.invoice-meta-line {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

/* Duas Colunas: Invoiced To & Payment Details */
.invoice-parties-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
}

.invoice-party-col h4 {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.invoice-party-col p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Totais no Rodapé da Fatura */
.invoice-totals-wrapper {
    display: flex;
    justify-content: flex-end;
    margin: 24px 0;
}

.invoice-totals-table {
    width: 320px;
    border-collapse: collapse;
    font-size: 13px;
}

.invoice-totals-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
}

.invoice-totals-table .total-label {
    color: var(--text-muted);
    font-weight: 600;
}

.invoice-totals-table .total-val {
    text-align: right;
    font-weight: 700;
    color: var(--text-primary);
}

.invoice-totals-table .grand-total-row td {
    border-top: 2px solid var(--border-color);
    border-bottom: none;
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

/* Alerta de Notas */
.invoice-alert-note {
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 11px;
    color: #92400e;
    line-height: 1.5;
    position: relative;
    margin-bottom: 30px;
}

.invoice-alert-close {
    position: absolute;
    right: 12px;
    top: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #b45309;
}

/* Termos e Assinatura */
.invoice-footer-terms {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

.invoice-signature-block {
    text-align: right;
}

.invoice-signature-script {
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-size: 26px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* ==========================================================================
   ESTILOS DE CRIAÇÃO DE FATURA (INVOICE CREATE - ANEXO 2)
   ========================================================================== */
.invoice-create-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: flex-start;
}

.card-invoice-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.card-invoice-summary-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
    overflow: hidden;
}

.create-top-brand-dates {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.brand-upload-box {
    width: 100px;
    height: 100px;
    background: #1e3a8a;
    border-radius: var(--radius-md);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.dates-inputs-col {
    display: flex;
    gap: 16px;
}

.parties-create-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 28px 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.party-create-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.party-create-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.party-create-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: -8px;
    margin-bottom: 4px;
}

/* Tabela de Itens Editáveis */
.editable-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.editable-items-table th {
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-surface-secondary);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.editable-items-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.btn-item-action-del {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-item-action-add {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.summary-sidebar-row {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.summary-sidebar-row.grand-total {
    background: var(--bg-surface-secondary);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: none;
}

/* ==========================================================================
   ESTILOS DE CLIENTES / CUSTOMERS (LISTA & VISUALIZAÇÃO - ANEXOS 1, 2, 3, 4)
   ========================================================================== */
.customer-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    margin: 2px 4px 2px 0;
    white-space: nowrap;
}

.customer-tag .tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.customer-tag .tag-remove {
    margin-left: 4px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 10px;
    transition: color 0.2s;
}

.customer-tag .tag-remove:hover {
    color: var(--danger);
}

.customer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
}

.customer-status-pill.status-active .status-dot {
    background: #10b981;
}

.customer-status-pill.status-inactive .status-dot {
    background: #f59e0b;
}

.customer-status-pill .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

/* Layout de Visualização de Cliente (Grid de 2 Colunas) */
.customer-view-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .customer-view-grid {
        grid-template-columns: 1fr;
    }
}

.card-customer-profile {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.customer-avatar-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 16px auto;
}

.customer-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow-md);
}

.customer-online-badge {
    position: absolute;
    bottom: 6px;
    right: 8px;
    width: 14px;
    height: 14px;
    background: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.customer-profile-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.customer-profile-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.customer-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.customer-stat-box {
    padding: 12px 6px;
    background: var(--bg-surface-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.customer-stat-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.customer-stat-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: capitalize;
}

.customer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-bottom: 24px;
    font-size: 12px;
}

.customer-contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-contact-item .lbl {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-contact-item .val {
    font-weight: 700;
    color: var(--text-primary);
}

.customer-profile-actions {
    display: flex;
    gap: 12px;
}

.btn-profile-delete {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-profile-delete:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.btn-profile-edit {
    flex: 1;
    background: var(--primary);
    border: none;
    color: #ffffff;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(37,99,235,0.2);
}

/* Card Social na Coluna Esquerda */
.card-customer-social {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
}

.card-customer-social .card-header-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.card-customer-social .card-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.social-link-item:last-child {
    border-bottom: none;
}

.social-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.social-link-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    text-decoration: none;
}

.social-link-url:hover {
    color: var(--primary);
}

/* Card Principal de Detalhes na Coluna Direita */
.card-customer-details {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.customer-tab-nav {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 28px;
    background: var(--bg-surface-secondary);
    overflow-x: auto;
}

.customer-tab-nav-item {
    padding: 18px 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.customer-tab-nav-item:hover {
    color: var(--text-primary);
}

.customer-tab-nav-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.customer-tab-content-body {
    padding: 32px;
}

.customer-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.customer-section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-section-tool {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.customer-about-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Tabela de Detalhes Chave-Valor em 2 Colunas */
.customer-details-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 16px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px dashed var(--border-light);
    border-bottom: 1px dashed var(--border-light);
}

.customer-detail-row {
    display: flex;
    font-size: 13px;
    line-height: 1.4;
}

.customer-detail-label {
    width: 140px;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.customer-detail-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* Banner de Alerta em Laranja/Amarelo */
.customer-update-alert {
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.alert-left-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.alert-icon-warning {
    font-size: 28px;
    color: #f59e0b;
}

.alert-title-main {
    font-size: 13px;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 3px;
}

.alert-subtitle-date {
    font-size: 11px;
    color: #b45309;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-update-now {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
    font-size: 11px;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-update-now:hover {
    background: #fde68a;
}

/* Cards de Projetos do Cliente */
.customer-projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.customer-project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.customer-project-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.project-platform-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.project-platform-icon.github {
    background: #181717;
    color: #ffffff;
}

.project-platform-icon.figma {
    background: #fff0f0;
    color: #f24e1e;
}

.customer-project-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.customer-project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.project-team-stack {
    display: flex;
    align-items: center;
}

.team-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-left: -6px;
    object-fit: cover;
}

.team-avatar-mini:first-child {
    margin-left: 0;
}

.project-progress-bar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.progress-track-mini {
    flex: 1;
    height: 5px;
    background: var(--bg-surface-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    border-radius: 4px;
}

/* ==========================================================================
   ESTILOS DE PROJETOS (TOUR, MARKETING, CYBER, AGENTE DE IA)
   ========================================================================== */
.projects-filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-project-filter {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-project-filter:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-project-filter.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(37,99,235,0.25);
}

.badge-project-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.type-tour {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.type-marketing {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.type-cyber {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.type-ai {
    background: #ccfbf1;
    color: #0f766e;
    border: 1px solid #99f6e4;
}

.env-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
}

.env-tag i {
    color: var(--primary);
}

.badge-status-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.badge-status-live.editing {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-status-live.saved {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.badge-status-live.rendering {
    background: #fdf4ff;
    color: #a21caf;
    border: 1px solid #f0abfc;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.badge-status-live.editing .live-dot {
    background: #2563eb;
    box-shadow: 0 0 0 0 rgba(37,99,235,0.7);
    animation: livePulse 1.8s infinite;
}

.badge-status-live.saved .live-dot {
    background: #10b981;
}

.badge-status-live.rendering .live-dot {
    background: #d946ef;
    animation: livePulse 1.2s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* ==========================================================================
   ESTILOS DE CONFIGURAÇÕES / SETTINGS (GERAL, SEO, EMAIL - ANEXOS 1, 2 E 3)
   ========================================================================== */
.settings-layout-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .settings-layout-grid {
        grid-template-columns: 1fr;
    }
}

.settings-sidebar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.settings-sidebar-header {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.settings-nav-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.settings-nav-item i {
    width: 18px;
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.settings-nav-item:hover {
    background: var(--bg-surface-secondary);
    color: var(--text-primary);
}

.settings-nav-item.active {
    background: var(--bg-surface-secondary);
    color: var(--primary);
    border-left-color: var(--primary);
}

.settings-nav-item.active i {
    color: var(--primary);
}

.settings-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.btn-settings-cancel {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 12px;
    transition: opacity 0.2s;
}

.btn-settings-cancel:hover {
    opacity: 0.8;
}

.btn-settings-save {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(37,99,235,0.25);
    transition: all 0.2s;
}

.btn-settings-save:hover {
    background: var(--primary-hover);
}

.settings-card-form {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.settings-field-group {
    margin-bottom: 24px;
}

.settings-field-group:last-child {
    margin-bottom: 0;
}

.settings-field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-field-label .required-star {
    color: #ef4444;
    margin-left: 2px;
}

.settings-field-helper {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.4;
}

.settings-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.settings-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* ==========================================================================
   ESTILOS DE AUTENTICAÇÃO (LOGIN & REGISTRO - FIÉIS AOS ANEXOS)
   ========================================================================== */
.auth-split-wrapper {
    display: flex;
    min-height: calc(100vh - 120px);
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .auth-split-wrapper {
        flex-direction: column;
    }
    .auth-illustration-side {
        display: none !important;
    }
}

.auth-illustration-side {
    flex: 1.25;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    border-right: 1px solid var(--border-light);
}

.auth-illustration-side svg {
    max-width: 540px;
    width: 100%;
    height: auto;
}

.auth-form-side {
    flex: 1;
    max-width: 500px;
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.auth-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #1e3a8a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.25);
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.auth-subtitle-lead {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.auth-subtitle-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 26px;
}

.auth-form-group {
    margin-bottom: 16px;
    position: relative;
}

.auth-form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.auth-form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-input-addon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-addon-wrapper .auth-form-input {
    padding-right: 70px;
}

.auth-input-icons-right {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
}

.auth-remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin: 18px 0 22px 0;
}

.auth-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
    user-select: none;
}

.auth-forgot-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.btn-auth-submit {
    width: 100%;
    padding: 13px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-auth-submit:hover {
    background: #1d4ed8;
}

.auth-footer-switch {
    text-align: left;
    margin-top: 24px;
    font-size: 12px;
    color: #64748b;
}

.auth-footer-switch a {
    color: #0f172a;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.auth-footer-switch a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ==========================================================================
   ESTILOS DE CRIAR LEAD (LEADS CREATE - FIEL AO ANEXO)
   ========================================================================== */
.lead-create-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-save-draft {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-save-draft:hover {
    background: var(--bg-surface-secondary);
    color: var(--text-primary);
}

.btn-create-lead-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-create-lead-action:hover {
    background: var(--primary-dark);
}

.lead-section-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.lead-section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
}

.lead-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lead-section-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-card-header-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-card-header-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lead-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 12px;
}

@media (max-width: 992px) {
    .lead-status-grid {
        grid-template-columns: 1fr;
    }
}

.lead-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lead-field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.lead-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.lead-input-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    border-right: 1px solid var(--border-light);
    background: var(--bg-surface-secondary);
    flex-shrink: 0;
}

.lead-select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

.lead-text-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
}

.lead-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lead-info-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 768px) {
    .lead-info-row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
}

.lead-info-label-col {
    width: 150px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.lead-info-input-col {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-info-input-col:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.lead-info-icon-box {
    width: 44px;
    height: 42px;
    background: var(--bg-surface-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.lead-info-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
}

.lead-info-select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
}

.lead-info-textarea {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    resize: vertical;
    min-height: 90px;
    font-family: inherit;
}



/* ==========================================================================
   ESTILOS DA TABELA DE LEADS (LEADS LIST - FIEL AO ANEXO)
   ========================================================================== */
.btn-import-highlight {
    width: auto !important;
    padding: 0 16px !important;
    gap: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-import-highlight:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.lead-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid var(--border-light);
    background: var(--bg-surface-secondary);
    color: var(--text-primary);
    white-space: nowrap;
}

.lead-status-pill:hover {
    border-color: var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lead-status-pill .lead-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.lead-status-pill.status-contacted .lead-status-dot { background: #8b5cf6; }
.lead-status-pill.status-customer .lead-status-dot { background: #0d9488; }
.lead-status-pill.status-declined .lead-status-dot { background: #ef4444; }
.lead-status-pill.status-qualified .lead-status-dot { background: #10b981; }
.lead-status-pill.status-working .lead-status-dot { background: #f59e0b; }
.lead-status-pill.status-new .lead-status-dot { background: #3b82f6; }

/* Modal de Importação de Leads */
.modal-import-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-import-backdrop.active {
    display: flex;
}

.modal-import-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.2s ease;
}


/* ==========================================================================
   ESTILOS DO MÓDULO MARKETING (FIEL AO ANEXO)
   ========================================================================== */
.marketing-top-buttons-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .marketing-top-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .marketing-top-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .marketing-top-buttons-grid {
        grid-template-columns: 1fr;
    }
}

.marketing-btn-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 105px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.marketing-btn-card:hover {
    border-color: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.12);
}

.marketing-btn-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.marketing-btn-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
}

.marketing-btn-icon-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.badge-whatsapp-color { background: #dcfce7; color: #16a34a; }
.badge-teal-color { background: #ccfbf1; color: #0d9488; }
.badge-purple-color { background: #f3e8ff; color: #9333ea; }

.marketing-btn-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Segunda Linha: Leads Recentes + Banner Light */
.marketing-second-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .marketing-second-row {
        grid-template-columns: 1fr;
    }
}

.card-marketing-leads-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    min-height: 220px;
}

.card-marketing-upgrade-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.btn-marketing-teal {
    background: #00bcd4;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-marketing-teal:hover {
    background: #0097a7;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* Funil de Vendas */
.marketing-funnel-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.funnel-period-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.funnel-steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.funnel-step-card {
    flex: 1;
    min-width: 170px;
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px 14px;
    text-align: center;
    position: relative;
}

.funnel-step-card.active-step {
    background: #00bcd4;
    color: #ffffff;
    border-color: #00bcd4;
}

.funnel-step-card.active-step .funnel-step-title {
    color: #ffffff;
}

.funnel-step-card.active-step .funnel-step-val {
    color: #ffffff;
}

.funnel-step-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.funnel-step-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.funnel-step-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.funnel-step-card.active-step .funnel-step-sub {
    color: rgba(255, 255, 255, 0.85);
}

.funnel-arrow-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.funnel-arrow-pill {
    background: #0f172a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Duas Ações Finais: LP e E-mail */
.marketing-bottom-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .marketing-bottom-cards {
        grid-template-columns: 1fr;
    }
}

.marketing-feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    min-height: 380px;
}

.marketing-floating-help {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #a855f7;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.35);
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
}

.marketing-floating-help:hover {
    background: #9333ea;
    transform: scale(1.04);
}


/* ==========================================================================
   ESTILOS DO PAINEL DE INTEGRAÇÃO N8N & WHATSAPP
   ========================================================================== */
.n8n-integration-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    flex-wrap: wrap;
    gap: 16px;
}

.n8n-badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #34d399;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.n8n-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseLive 1.8s infinite;
}

.btn-n8n-action {
    background: #ff6d5a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-n8n-action:hover {
    background: #ea580c;
    box-shadow: 0 4px 12px rgba(255, 109, 90, 0.35);
}

.n8n-tabs-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
    overflow-x: auto;
}

.n8n-tab-btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.n8n-tab-btn:hover {
    color: var(--primary);
}

.n8n-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    border-radius: 6px 6px 0 0;
}

.n8n-config-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.n8n-status-log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.n8n-status-log-table th {
    background: var(--bg-surface-secondary);
    padding: 10px 12px;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.n8n-status-log-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}


/* ==========================================================================
   ESTILOS DO MÓDULO GATILHOS DE UPSELLING & CAMPANHAS IN-APP / IN-SAAS
   ========================================================================== */
.triggers-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 992px) {
    .triggers-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .triggers-stats-grid {
        grid-template-columns: 1fr;
    }
}

.trigger-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.trigger-stat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.trigger-stat-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
}

.triggers-list-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.trigger-item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 240px 1fr 180px;
    gap: 24px;
    align-items: center;
    transition: all 0.2s ease;
}

@media (max-width: 992px) {
    .trigger-item-card {
        grid-template-columns: 1fr;
    }
}

.trigger-item-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.trigger-banner-preview-box {
    width: 100%;
    height: 130px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}

.trigger-product-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-prod-ai { background: #dcfce7; color: #166534; }
.badge-prod-marketing { background: #ffedd5; color: #c2410c; }
.badge-prod-cyber { background: #f3e8ff; color: #7e22ce; }
.badge-prod-tour { background: #e0f2fe; color: #0369a1; }

.trigger-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Simulador de Injeção em Container / DIV */
.saas-container-mock {
    background: #f8fafc;
    border: 2px dashed #38bdf8;
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
    position: relative;
}

.saas-container-tag {
    position: absolute;
    top: -12px;
    left: 16px;
    background: #0284c7;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}


/* ==========================================================================
   ESTILOS DOS ITENS 1, 4, 5 E 6 (BUSCA, PERFIL, CANVA E SUPORTE)
   ========================================================================== */

/* 1. Busca Global de Clientes e Produtos */
.search-client-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
}
.search-client-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(37,99,235,0.08);
}
.search-client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.search-client-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.search-products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.search-product-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}
.search-product-link:hover {
    background: var(--bg-surface);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(3px);
}
.search-btn-tenant {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.search-btn-tenant:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 5. Canva de Tarefas do Dia (Kanban) */
.kanban-tasks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    min-height: 480px;
}
@media (max-width: 860px) {
    .kanban-tasks-grid {
        grid-template-columns: 1fr;
    }
}
.kanban-col {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.kanban-col-header {
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid transparent;
}
.kanban-col-header.header-todo {
    border-bottom-color: #3b82f6;
    background: rgba(59,130,246,0.06);
    color: #2563eb;
}
.kanban-col-header.header-progress {
    border-bottom-color: #f59e0b;
    background: rgba(245,158,11,0.06);
    color: #d97706;
}
.kanban-col-header.header-done {
    border-bottom-color: #10b981;
    background: rgba(16,185,129,0.06);
    color: #059669;
}
.col-count {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
}
.kanban-cards-wrap {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    max-height: 520px;
}
.kanban-task-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
    position: relative;
}
.kanban-task-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.task-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.task-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}
.task-time-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.task-client-tag {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.task-notes {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}
.task-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}
.task-priority-tag {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}
.priority-urgente { background: #fee2e2; color: #b91c1c; }
.priority-alta { background: #fef3c7; color: #b45309; }
.priority-normal { background: #e0f2fe; color: #0369a1; }

.task-nav-btn {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.task-nav-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* 6. Ações das Notificações de Suporte */
.notif-action-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.notif-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.notif-btn-whatsapp {
    background: #25D366;
    color: #ffffff !important;
}
.notif-btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-1px);
}
.notif-btn-saas {
    background: #2563eb;
    color: #ffffff !important;
}
.notif-btn-saas:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.notif-btn-support {
    background: #7c3aed;
    color: #ffffff !important;
}
.notif-btn-support:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

/* ==========================================================================
   TAG DE PRODUTO "Tour" EM DESTAQUE & FILTROS DE CRM
   ========================================================================== */
.customer-tag.tag-tour-badge {
    background: rgba(37, 99, 235, 0.12) !important;
    border: 1px solid #3b82f6 !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15) !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 4px;
}

[data-theme="dark"] .customer-tag.tag-tour-badge {
    background: rgba(59, 130, 246, 0.22) !important;
    border: 1px solid #60a5fa !important;
    color: #93c5fd !important;
}

.btn-product-filter {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-product-filter:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-product-filter.active {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

.crm-product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
