@import '../../../stylesheets/_breakpoints.scss';

.chart-toggle {
    // flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    // grid-column-start: 2;
    // grid-column-end: 4;
    &-heading {
        margin: 0;
    }
    overflow: hidden;
    @include small {
        flex-direction: column;
    }
}
.chart-toggle-control {
    overflow: hidden;
    @include small {
        width: 100%;
    }
    // flex: 1;
}

.chart-toggle-items {
    display: flex;
    overflow: hidden;
    width: 100%;
    // flex-wrap: wrap;
    justify-content: center;

    .chart-toggle-wrap & {
        flex-wrap: wrap;
    }
}

.chart-toggle-item-enabled {
    background: var(--backgroundAltColor) !important;
    .ModalContent & {
        background: var(--backgroundColor) !important;
    }
}
.chart-toggle-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    // background: linear-gradient(to left, var(--color1), var(--color2));
    // background: none;
    // border: 0;
    // font-size: 0.8rem;
    overflow: hidden;
    // text-overflow: ellipsis;
    // flex-shrink: 1;
    // flex-basis: 50px;
    flex-shrink: 1;
    overflow: hidden;
}
.chart-toggle-heading {
    white-space: nowrap;
    font-size: 0.9rem;
    margin: 0;
}

// .order-asc,
// .order-desc {
//     opacity: 0.5;
//     display: none;
// }
// .order-asc {
//     .chart-toggle-order-asc & {
//         opacity: 1;
//         display: block;
//     }
// }
// .order-desc {
//     .chart-toggle-order-desc & {
//         opacity: 1;
//         display: block;
//     }
// }
