.graphs-invest__title{
    color: #5100C1;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 44px;
    text-align: center;
}

.graphs-invest{
    margin-bottom: 100px;
}

.graphs-invest__body{
    padding: 32px;
    background: #F4F6FB;
    border-radius: 20px;
}

.change-graph{
    background: white;
    border-radius: 40px;

    font-size: 14px;
    line-height: 18px;
    padding: 11px 16px ;
    width: fit-content;
    transition: all .3s ease;
    cursor: pointer ;
    /* white-space: nowrap; */
}

.change-graph.active{
    background: #5100C1;
    color: white;
}


.graphs-invest__body-descript,
.graphs-invest__body-mult{
    display: flex;
    align-items: center;
    gap: 16px;
}

.graphs-invest__body-mult{
    overflow-x: auto;
    align-items: flex-start;
}

.graphs-invest__body-top{
    margin-bottom: 22px;
    display: flex;
    justify-content: space-between;
}

.graphs-invest__body-graph{
    /* margin-bottom: 32px; */
    display: flex;
    align-items: center;
    /* overflow-x: auto; */
}

.chart-label{
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    white-space: nowrap;
    /* padding: 20px 0; */

    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: #8A8D93;
}

.graphs-invest__body-bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.button-new{
    font-size: 16px;
    line-height: 20px;
    background: #5100C1;
    border-radius: 8px;
    padding: 18px 24px;
    color: white;
    width: fit-content;
    cursor: pointer;
}



.graphs-invest__body-color{
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.graphs-invest__body-descript{
    font-size: 12px;
    line-height: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.graphs-invest__body-descript div{
    display: flex;
    align-items: center;
    gap: 8px;
}

.graphs-invest__body-gray{
    background: #ABAAAA;
}

.graphs-invest__body-purp{
    background: #5100C1;
}

.graphs-invest__body-bottom-disclame{
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    max-width: 350px;
    display: flex;
    gap: 10px;
}

.graphs-invest__body-bottom-disclame i{
    color: #FF2262;
}



.button-new-anim {
    position: relative;
    overflow: hidden;
}
.button-new-anim::after {
    content: "";
    position: absolute;
    top: 90%;
    right: -56%;
    bottom: -50%;
    left: -33%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    animation: sheen 3s ease-in-out infinite;
}


.no-scroll::-webkit-scrollbar {
    display: none;
}

/* Скрываем scrollbar для IE, Edge и Firefox */
.no-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}




.graphs-invest__body-graph{
    position: relative;
}

.graphs-invest__body-graph.scrollbar .ps__rail-x{
    height: 6px;
    background: #E9EDF8 !important;
}

.graphs-invest__body-graph.scrollbar .ps__thumb-x{
    bottom: 0px;
    background-color: #5100C1 !important;
}

/* .graphs-invest__body-graph.scrollbar .ps__rail-x {
    width: 100% !important;
    width: auto !important;
}

.graphs-invest__body-graph.scrollbar .ps__thumb-x{
    width: auto !important;
} */











/* график */
.chart-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-tabs {
    display: flex;
    gap: 10px;
}

.chart-tab {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-tab.active {
    background: #7b1fa2;
    color: white;
    border-color: #7b1fa2;
}


/* .chart-wrapper {
    width: 100%;
}

#performanceChart {
    min-width: 1180px;
    width: 100%; 
    height: 400px;
}


.chart-tooltip {
    position: absolute;
    background: white;
    color: black;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
} */

.chart-wrapper {
    position: relative;
    width: 100%;
    /* min-width: 100%;
    width: fit-content; */
}

#performanceChart {
    /* min-width: 1180px; */
    min-width: 1118px;
    width: 100%; 
    height: 400px;
    display: block; /* Важно для canvas */
}

.chart-tooltip {
    position: absolute;
    background: white;
    color: black;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    left: 0;
    top: 0;
    transform: none !important;
}
/* график  END */

.chart-label-mob{
    display: none;
}


@media (max-width: 1199px) {
    .graphs-invest__body-top{
        flex-direction: column;
        gap: 16px;
    }

    .graphs-invest__body-graph{
        margin-bottom: 20px;
    }
}
@media (max-width: 767px) {

    .chart-label-mob{
        display: block;
    }

    .chart-wrapper {
        width: fit-content;
    }

    .graphs-invest .container{
        width: 100%;
    }

    .graphs-invest__body-descript{
        align-items: flex-start;
        flex-direction: column;
    }

    .graphs-invest__body-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .graphs-invest__title{
        margin: 0 auto;
        margin-bottom: 44px;
        width: calc(100% - 40px);
        margin-bottom: 24px;

    }

    .graphs-invest__body {
        padding: 32px 16px;
    }

    .button-new-anim {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .graphs-invest__body-mult{
        flex-direction: column;
    }
}

/* hover */
@media (min-width: 767px) {

    .change-graph:hover{
        background: #5100C1;
        color: white;
    }


}

    /*кадры анимации */
    @keyframes sheen {
        0% {
            transform: rotateZ(60deg) translate(-5em, 7.5em);
        }
        100% {
            transform: rotateZ(60deg) translate(5em, -7.5em);
        }
    }