/* Historico Styles */

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.search-input {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text-primary);
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.stats-summary {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.summary-item strong {
    color: var(--accent-primary);
}

/* Table */
.table-container {
    background: var(--bg-card);
    border-radius: 5px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 16px;
}

.leads-table {
    width: 100%;
    border-collapse: collapse;
}

.leads-table th {
    background: var(--bg-secondary);
    padding: 14px 16px;
    text-align: left;
    font-family: 'Sora', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.leads-table td {
    padding: 14px 16px;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.leads-table tbody tr:hover {
    background: var(--bg-hover);
}

.leads-table tbody tr:last-child td {
    border-bottom: none;
}

.loading-row {
    text-align: center;
    color: var(--text-muted);
    padding: 40px !important;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-family: 'Sora', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.success {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.status-badge.warning {
    background: rgba(255, 171, 0, 0.15);
    color: var(--warning);
}

.status-badge.danger {
    background: rgba(255, 82, 82, 0.15);
    color: var(--danger);
}

.status-badge.info {
    background: rgba(64, 196, 255, 0.15);
    color: var(--info);
}

.status-badge.neutral {
    background: rgba(90, 111, 143, 0.15);
    color: var(--text-muted);
}

/* Status Select (editable) */
.status-select {
    padding: 6px 10px;
    border-radius: 5px;
    font-family: 'Sora', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.status-select:focus {
    outline: none;
}

.status-select.success {
    background: rgba(0, 230, 118, 0.15);
    color: var(--success);
}

.status-select.warning {
    background: rgba(255, 171, 0, 0.15);
    color: var(--warning);
}

.status-select.danger {
    background: rgba(255, 82, 82, 0.15);
    color: var(--danger);
}

.status-select.info {
    background: rgba(64, 196, 255, 0.15);
    color: var(--info);
}

.status-select.neutral {
    background: rgba(90, 111, 143, 0.15);
    color: var(--text-muted);
}

.status-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Action Button */
.action-btn {
    padding: 6px 12px;
    background: var(--accent-primary);
    border: none;
    border-radius: 5px;
    color: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    opacity: 0.9;
}

/* Observation Button */
.btn-obs {
    padding: 6px 10px;
    background: rgba(64, 196, 255, 0.15);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-obs:hover {
    background: rgba(64, 196, 255, 0.3);
}

.sem-obs {
    color: var(--text-muted);
}

/* Observation Row (expandable) */
.obs-row {
    background: rgba(64, 196, 255, 0.08);
}

.obs-content {
    padding: 16px 20px !important;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--info);
    font-style: italic;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.pagination-info {
    font-family: 'Sora', sans-serif;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pagination-info strong {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 1024px) {

    .leads-table th:nth-child(4),
    .leads-table td:nth-child(4) {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .leads-table th:nth-child(3),
    .leads-table td:nth-child(3),
    .leads-table th:nth-child(5),
    .leads-table td:nth-child(5) {
        display: none;
    }
}