/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NUEVOS ESTILOS - VISTA POR MES Y RANGO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Modo de Vista */
.view-mode-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-mode-selector label {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.radio-label:hover {
    background: #f1f5f9;
}

.radio-label input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.radio-label input[type="radio"]:checked + span {
    color: var(--primary);
    font-weight: 600;
}

/* Contenedor de Filtros */
.filters-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.filter-section {
    display: none;
}

.filter-section.active {
    display: block;
}

/* Selector de Mes */
.month-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.month-selector label {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-select {
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.2s;
}

.input-select:hover {
    border-color: var(--primary);
}

.input-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.month-range {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
}

/* Selector de Rango */
.range-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.range-inputs {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.range-info {
    display: inline-block;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    background: #f1f5f9;
    border-radius: 8px;
    border-left: 4px solid var(--info);
}

.range-info i {
    color: var(--info);
}

/* Tarjeta Purple */
.card-icon.purple {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
}

/* Responsive */
@media (max-width: 768px) {
    .view-mode-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .radio-group {
        width: 100%;
        flex-direction: column;
    }

    .radio-label {
        width: 100%;
    }

    .range-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    .input-group {
        width: 100%;
    }

    .input-date, .input-select {
        width: 100%;
    }
}
