.chart-wrap {
    position: relative;
    border-radius: inherit;
    width: 100%;
    height: 100%;
}

.chart-wrap {
    margin: -1.25rem -1.125rem;
    padding: 1.25rem 1.125rem;
    padding-right: 0;
}

.chart-wrap .chart {
    width: 100%;
    height: 100%;
}

.chart-wrap.is-mobile {
    margin: 0;
    padding: 0;
}

.chart-flex {
    display: flex;
    justify-content: space-between;
}

.chart-info {
    position: relative;
    /*top: 0;
    left: 0;*/
    width: 100%;
    z-index: 1;
    background: transparent;
    /* padding: 15px;
    font-family: Arial, sans-serif;*/
}

.chart-top {
    margin-bottom: 20px;
    display: flex;

}

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

.chart-title {
    font-size: 22px;
    font-weight: 600;
    /*margin-bottom: 10px;*/
}

.chart-favorite {
    display: flex;
    font-size: 12px;
    line-height: 30px;
    gap: 5px;
    color: #8e9fb2;
    cursor: pointer;
}

.chart-values {
    display: flex;
    align-items: center;
}

.chart-index-value {
    font-size: 35px;
    font-weight: bold;
    /*color: #0c7b63;*/
    color: #202020;
    margin-right: 10px;
}

.chart-index-change,
.chart-index--proc {
    font-size: 16px;
    /*color: #4caf50;*/
    color: #202020;
}

.chart-index-change {
    margin-right: 10px;
}

.minus .chart-index-change,
.minus .chart-index--proc {
    color: #ea5555;
    font-size: 20px;
    font-weight: 400;
}

.chart-index-proc {
    position: relative;
}

.down .chart-index-change,
.down .chart-index-proc {
    color: #c14547;
}

.up .chart-index-change,
.up .chart-index-proc {
    color: #96c593;
}

.chart-index-value.minus {
    color: #db1a1a;
}

.down .hart-index-proc::after,
.up .hart-index-proc::after {
    /*content: '⯾';
    display: inline-block;
    transition: transform 0.3s;
    font-size: 14px;
    line-height: 1;

    content: '';
    display: inline-block;
    width: 24px; 
    height: 24px; 
    background-size: cover;
    transition: transform 0.3s;*/
}

.down .hart-index-proc::after {
    /*transform: rotate(45deg);
    background-image: url('../icons/angle_down_24.svg');*/
}

.up .hart-index-proc::after {
    /*transform: rotate(225deg);
    background-image: url('../icons/angle_up_24.svg');*/
}

.chart-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    font-size: 12px;
}

.chart-interval-btn {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.chart-btn {
    background-color: transparent;
    color: #666;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;

    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
}


.chart-btn:hover {
    background-color: rgba(0, 123, 255, 0.2);
    font-weight: 600;
}

.chart-btn.active {
    background-color: #d5e6f9;
    color: #4990ee;
    font-weight: 600;
}

.chart-interval-btn .chart-btn.disaled {
    background-color: #ecf2f9;
    color: #a1a2a3;
    cursor: default;
}

.fullscreen-btn {
    position: absolute;
    bottom: 18px;
    right: -19px;
    padding: 8px;
    background-color: #e1ebf6;
    color: #525558;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
    line-height: 18px;
    font-size: 18px;
}

.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #ecf2f9;
}

.fullscreen .fullscreen-btn {
    bottom: 0;
    right: 0;
}

.chart-wrap.fullscreen .chart {
    width: 100vw;
    height: 100vh;
}

.chart-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    border-top-left-radius: 2.15rem;
    border-left: 2px solid #96c593;
    border-top: 2px solid #96c593;

}

.fullscreen.chart-wrap::before {
    border-top-left-radius: 2rem;
}

.chart-wrap.down::before {
    border-left: 2px solid #c14547;
    border-top: 2px solid #c14547;
}

.is-favorite {
    font-weight: bold;
}

/* checkbox re-composition */

.re-cpmposition-btn {
    display: flex;
    cursor: pointer;
    transition: all 0.3s;
    color: #6a6a6a;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 16px;
    height: 24px;
    justify-content: right;

    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    -webkit-transition-duration: 0.2s;
    transition-duration: 0.2s;
    -webkit-transition-property: transform;
    transition-property: transform;
}


.checkbox::before {
    content: ' ';
    display: inline-block;
    width: 18px;
    height: 18px;
    transform: translate(0, 3px);
    margin-right: 5px;
    border-radius: 4px;
    background-color: transparent;
    border: 2px solid #92bdff;
    transition: background-color 0.4s, box-shadow 0.4s;
}


.re-cpmposition-btn.active .checkbox {}

.re-cpmposition-btn.active .checkbox::before {
    border-color: #488eeb;;
    background-color: #488eeb;
    box-shadow: inset 0 0 0 2px #fff;
}

.checkbox:hover::before {
    border-color: #488eeb;;
    color: #488eeb;;
}

.re-cpmposition-btn:hover {
    text-shadow: 0 0 5px #488eeb;
    transform: scale(1.05);
}

.re-cpmposition-btn.active,
.re-cpmposition-btn.active:hover {

    /* background-color: #d5e6f9;*/
    text-shadow: 0 0 5px #488eeb;
    color: #4990ee;
}

.zoom-panel {
    display: flex;
    justify-content: right;
    gap: 10px;
    margin-bottom: 16px;
}

.pan-btn {
    display: flex;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    border: 2px solid #92bdff;
    color: #92bdff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 6px rgba(146, 189, 255, 0.6); /* нежная тень */
    transition: all 0.2s ease;
}
.pan-arrow {
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.panning .pan-btn,
.pan-btn:hover {
    border-color: #488eeb;;
    color: #488eeb;;
}

.pan-btn:active {
    box-shadow: none;
}

.panning .pan-btn {
    animation: glow .6s infinite alternate ease-in-out;
}

.chart-wrap.panning canvas {
    cursor: grab;
}

.chart-wrap.panning canvas:active {
    cursor: grabbing;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px #92bdff, 0 0 10px #92bdff;
        border-color: #92bdff;
        color: #92bdff;
    }
    to {
        box-shadow: 0 0 10px #488eeb, 0 0 15px #488eeb;
        border-color: #488eeb;
        color: #488eeb;
    }
}


@media (max-width: 61.9988rem) {
    .chart-flex {
        flex-direction: column;
    }

    .chart-interval-btn {
        gap: 7px;
    }

    .chart-btn {
        padding: 0;
        font-size: 11px;
        font-weight: 200;
        border-radius: 4px;
    }
}

@media (max-width: 450px) {
    .chart-wrap::before {
        border-top-left-radius: 1.125rem;
    }
}