/* Estilos para la sección de reportes */
.reports-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.reports-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reports-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.report-card {
    padding: 20px;
}

.report-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.report-card .card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.report-card .card-actions {
    display: flex;
    gap: 5px;
}

.report-card .btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.report-card .btn-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Estilos para los KPI */
.kpi-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.kpi-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #69B0E1, #5B8FF9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 15px;
}

.kpi-content {
    flex: 1;
}

.kpi-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.kpi-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.kpi-trend {
    font-size: 13px;
    display: flex;
    align-items: center;
}

.kpi-trend.positive {
    color: #28C76F;
}

.kpi-trend.negative {
    color: #EA5455;
}

.kpi-trend i {
    margin-right: 5px;
    font-size: 11px;
}

/* Estilos de la barra de acciones */
.report-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.date-range-selector,
.report-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    transition: all 0.2s;
}

.btn:hover {
    background: #e9ecef;
}

.btn.active {
    background: #5B8FF9;
    color: white;
    border-color: #5B8FF9;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-primary {
    background: #5B8FF9;
    color: white;
    border-color: #5B8FF9;
}

.btn-primary:hover {
    background: #4a7de0;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

@media (max-width: 1024px) {
    .reports-layout {
        grid-template-columns: 1fr;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }

    .kpi-dashboard,
    .reports-grid,
    .reports-layout {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .report-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .date-range-selector,
    .report-controls {
        flex-wrap: wrap;
    }

    .date-range-selector .btn {
        flex: 1 1 calc(50% - 10px);
    }
}
