.statistics-chart {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.statistics-chart:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#statistics .rz-chart {
    --rz-chart-axis-font-size: 12px !important;
}

#statistics .rz-legend {
    --rz-chart-legend-font-size: 12px !important;
}

.statistics-tooltip {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#statistics .rz-legend {
    flex-wrap: wrap !important;
    max-width: 100% !important;
}

#statistics .rz-legend-item {
    flex: 0 0 auto !important;
    margin: 0px 4px !important;
    white-space: wrap !important;
}

.statistics-period-picker select,
.statistics-period-picker .form-select {
    min-width: 200px !important;
    width: 100% !important;
}

.statistics-filters {
    display: grid;
    grid-template-columns: minmax(200px, 300px) minmax(300px, 400px);
    gap: 20px;
    margin-bottom: 20px;
    align-items: end;
    width: fit-content;
    max-width: 100%;
}

.filter-item {
    min-width: 0;
}

#statistics.remove-months .rz-tick:nth-child(even),
#statistics .remove-months .rz-tick:nth-child(even),
.remove-months .rz-tick:nth-child(even) {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

@media (max-width: 992px) {
    .statistics-filters {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .statistics-filters {
        grid-template-columns: 1fr;
        gap: 15px;
        justify-content: center;
        margin: 0 auto 20px auto;
        width: 100%;
        max-width: 400px;
    }

    .filter-item {
        width: 100%;
    }

    .statistics-period-picker select,
    .statistics-period-picker .form-select {
        width: 100% !important;
        min-width: unset !important;
    }

    .filter-item .field {
        width: 100%;
    }

    .filter-item .addons {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .statistics-filters {
        gap: 10px;
    }
}