.period {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.period-select {
    display: flex;
    gap: 8px;
    flex: 1;
    align-items: center;
}
.period-select span {
    white-space: nowrap;
}
.custom-grid {
    display: flex;
}
.option-label {
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 1023px) {
    .period {
        flex-direction: column;
        align-items: stretch;
    }
    .period-select {
        width: 100%;
        justify-content: center;
    }
    .custom-grid {
        display: block;
    }
    .custom-grid div {
        width: 100% !important;
    }
    .option-label {
        display: inline-block;
        margin-right: 10px;
    }
}