/* =============================================================================
   ESTILOS PARA TABELA DE LEADS
============================================================================= */

.table-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table-container th {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border: none;
}

.table-container th:first-child {
    text-align: left;
}

.table-container td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    font-size: 14px;
}

.table-container td:first-child {
    text-align: left;
    font-weight: 500;
    color: #495057;
}

.table-container tr:hover {
    background-color: #f8f9fa;
}

/* Badges de status otimizados */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
}

.status-badge.status-lead-captado {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.status-primeiro-contato {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.status-agendamento-feito {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-badge.status-recontato-pendente {
    background: #fff8e1;
    color: #f9a825;
}

.status-badge.status-aguardando-documentos {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.status-em-negociacao {
    background: #e1f5fe;
    color: #0277bd;
}

.status-badge.status-aprovado {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.status-contrato-assinado {
    background: #e8f5e8;
    color: #1b5e20;
}

/* Badges de potencial otimizados */
.potencial-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    min-width: 50px;
    text-align: center;
}

.potencial-badge.potencial-alto {
    background: #e8f5e8;
    color: #2e7d32;
}

.potencial-badge.potencial-medio {
    background: #fff8e1;
    color: #f9a825;
}

.potencial-badge.potencial-baixo {
    background: #ffebee;
    color: #c62828;
}

/* Botões de ação da tabela */
.table-container .btn-sm {
    margin: 0 2px;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.table-container .btn-primary {
    background: #007bff;
    color: white;
}

.table-container .btn-secondary {
    background: #6c757d;
    color: white;
}

.table-container .btn-danger {
    background: #dc3545;
    color: white;
}

.table-container .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Responsividade da tabela */
@media (max-width: 1200px) {
    .table-container {
        overflow-x: auto;
    }
    
    .table-container table {
        min-width: 800px;
    }
    
    .status-badge, .potencial-badge {
        font-size: 10px;
        padding: 3px 6px;
        min-width: 60px;
    }
}

@media (max-width: 768px) {
    .table-container th,
    .table-container td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .status-badge, .potencial-badge {
        font-size: 9px;
        padding: 2px 4px;
        min-width: 50px;
    }
}

/* CNPJ column formatting */
.table-container td:nth-child(2) {
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* Actions column optimization */
.table-container td:last-child {
    white-space: nowrap;
    width: 120px;
}