/* Filtros y tablas de la pestaña Suscripciones (dentro de Insights) */

.ins-susc-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ins-filter-pills {
    display: inline-flex;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.ins-filter-pill {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.2;
    transition: all 0.15s ease;
}

.ins-filter-pill:hover {
    color: #111827;
}

.ins-filter-pill.active {
    background: #6366f1;
    color: #fff;
}

.ins-kpis-compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.ins-kpis-compact .ins-kpi-value {
    font-size: 18px;
}

.ins-card {
    min-width: 0;
}

.ins-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.ins-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.ins-table th,
.ins-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    text-align: left;
    color: #111827;
}

.ins-table th {
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ins-table td:last-child,
.ins-table th:last-child {
    text-align: right;
}

.ins-table tr.ins-row-click {
    cursor: pointer;
}

.ins-table tr.ins-row-click:hover {
    background: #f9fafb;
}

@media (max-width: 900px) {
    .ins-susc-filters {
        width: 100%;
    }

    .ins-filter-pills {
        width: 100%;
        overflow-x: auto;
    }
}
