.product {
    display: -webkit-flex;
    display: flex;
    -webkit-flex: 1;
    flex: 1;
    background: var(--grayscale-25);
    /*    padding: 0 12px 0 0;*/
    border-radius: 24px;
    width: calc(100vw - 560px);
    max-height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.product__loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(246, 247, 249, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}

.product__loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
    radial-gradient(farthest-side,#3B6AF6 94%,#0000) top/8px 8px no-repeat,
    conic-gradient(#0000 30%,#3B6AF6);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
    animation: l13 1s infinite linear;
}

@keyframes l13{
    100%{transform: rotate(1turn)}
}

.product__header {
    padding: 20px 12px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    border-radius: 24px;
    background: #FFF;
}
.product__title {
    font-family: var(--Roboto-font);
    font-size: 28px;
    font-weight: 500;
    line-height: 114.286%;
    padding: 0;
    margin: 20px 0 0 0 ;
}
.product__link {
    display: flex;
    flex-direction: row;
    gap: 4px;
    justify-content: flex-start;
    align-items: center;
    color: var(--grayscale-600);
    text-align: center;
    font-family: var(--Roboto-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    cursor: pointer;
}

.product__link:hover,
.product__link:active,
.product__link:focus {
    text-align: center;
    filter: brightness(0) saturate(100%) invert(14%) sepia(87%) saturate(4106%) hue-rotate(227deg) brightness(89%) contrast(98%);
    transition: all .2s ease-in;
}

.product__link-wrapper {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    justify-content: space-between;
}

.product__select {
    width: 100%;
    height: 36px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--grayscale-25);
    color: var(--grayscale-700);
    font-variant-numeric: lining-nums tabular-nums;
    font-family: var(--Roboto-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}
.product__select-label {
    position: absolute;
    left: 10px;
    bottom: 5px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    z-index: 2;
}

.product__select-icon {
    width: 20px;
    height: 20px;
}

.product__blocks-container {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 12px;
}

.product__blocks-wrapper {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    gap: 12px;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.product__block {
    padding: 16px;
    border-radius: 24px;
    background: var(--greyscale-0);
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    -webkit-flex: 1 1;
    flex: 1 1;
}

.product__block-wrapper {
    margin-top: 26px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    gap: 12px;
    -webkit-align-items: center;
    align-items: center;
}

.product__block-title {
    color: var(--grayscale-700);
    font-family: var(--Roboto-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
}

.product__paragraph-wrapper {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 4px;
}

.product__block-paragraph {
    color: var(--grayscale-950);
    font-family: var(--Roboto-font);
    font-size: 28px;
    font-weight: 500;
    line-height: 114.286%;
}

.product__block-extra {
    color: var(--grayscale-600);
    font-family: var(--Roboto-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}
.product__tooltip-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 6px;
    cursor: pointer;
}

.product__tooltip-wrapper img {
    display: block;
    width: 20px;
    height: 20px;
}

.product__new-error-tooltip{
    position: absolute;
    z-index: 999;
    top: 24px;
    left: 85%;
    transform: translateX(-30%);
    display: none;
    opacity: 0;
    border-radius: 12px;
    padding: 8px 16px;
    background-color: var(--greyscale-0);
    border: 1px solid var(--grayscale-100);
    color: var(--main-950);
    color: #000;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    min-width: 220px;
    max-width: 364px;
    width: max-content;
    white-space: normal;
    text-align: left;
    transition: opacity 0.2s ease;
}

/* Стрелка */
.product__new-error-tooltip::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 28%;
    transform: translateX(-28%);
    width: 10px;
    height: 8px;
    background: var(--greyscale-0);
    border-left: 1px solid var(--grayscale-100);
    border-top: 1px solid var(--grayscale-100);
    transform: translateX(-50%) rotate(45deg);
    z-index: 2;
}

/* Показывать при ховере */
.product__tooltip-wrapper:hover .product__new-error-tooltip {
    display: block;
    opacity: 1;
}

.green-status {
    display: flex;
    padding: 0px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background:#30B900;
    color: #FFF;
    font-family: var(--Roboto-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 142.857%;
    height: 20px;
}

.red-status {
    display: flex;
    padding: 0px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    background: #FE4A23;
    color:var(--greyscale-0);
    font-family: var(--Roboto-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 142.857%;
    height: 20px;
}

.info-block {
    padding: 20px 12px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    border-radius: 24px;
    background: #FFF;
    gap: 20px;
}

.info-block__img {
    display: flex;
    width: 180px;
    height: auto;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-radius: 16px;
    background: var(--grayscale-25);
    background-size: auto;

}

.info-block__title {
    color: var(--main-950);
    font-family: var(--Roboto-font);
    font-size: 24px;
    font-weight: 500;
    line-height: 28px;
    white-space: break;
    margin: 0 0 12px 0;
    padding:0;
}

.info-block__paragraph {
    color: var(--grayscale-600);
    font-family: var(--Roboto-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.info-block__paragraph:nth-of-type(1),
.info-block__paragraph:nth-of-type(2){
    margin-top: 4px;
}

.info-block__link .info-block__paragraph:nth-of-type(1):hover,
.info-block__link .info-block__paragraph:nth-of-type(1):active,
.info-block__link .info-block__paragraph:nth-of-type(1):focus{
    color: var(--main-600);
}

.product__blocks-container {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 12px;
}

.product__blocks-container_row {
    -webkit-flex-direction: row;
    flex-direction: row;
}

.product__graph-block {
    max-width: 75%;
    width: 100%;
    border-radius: 24px;
    background: var(--greyscale-0);
}

.product__header_graph {
    padding: 20px 12px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    border-radius: 24px;
    background: #FFF;
    padding: 20px 12px 0 12px;
}

.product__indicators-title,
.product__graph-title {
    color: var(--grayscale-950);
    font-family: var(--Roboto-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 16px;
}

.product__select-block {
    max-width: 200px;
    width: 100%;
}

.product__select-block_params {
    max-width: 230px;
    width: 100%;
}

.product__select-wrapper {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    gap: 12px;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    color: var(--grayscale-700);
    font-family: var(--Roboto-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

.product__select {
    width: 100%;
    height: 36px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--grayscale-25);
    color: var(--grayscale-700);
    font-variant-numeric: lining-nums tabular-nums;
    font-family: var(--Roboto-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.product__graph-section {
    height: 320px;
    overflow:hidden;
    position: relative;
}

.product__table-block {
    width: 25%;
    border-radius: 24px;
    background: var(--greyscale-0);
    padding: 20px 12px;
}

/* Инструменты графика */

.tools-menu {
    position: absolute;
    display: flex;
    gap: 4px; /* Промежуток между кнопками */
    top: 5px;
    right: 5px;
    padding-right: 12px;
}

.feather {
    width: 16px;
    height: 16px;
    stroke: #A9AFBC;
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.tools-menu__button {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px; /* Уменьшенный размер шрифта */
    color: #80899C; /* Темно-серый цвет текста и иконок */
    border-radius: 12px;
    background: var(--grayscale-50);
    transition: background-color 0.3s ease, transform 0.2s ease;
    padding: 4px;
    gap: 8px;
    border: none;
    filter: brightness(100%);
    border-color:#80899C;

}

.tools-menu__button i {
    font-size: 16px; /* Уменьшенный размер иконки */
}

.tools-menu__button:hover {
    filter: brightness(90%);
    border-color: #505050; /* Темнее граница при наведении */
    transform: scale(1.1); /* Увеличение кнопки при наведении */
    transition: all .2s ease-in;
}

.tools-menu__button:active {
    transform: scale(1); /* Возвращаем размер кнопки при нажатии */
}

.tools-menu__button:focus {
    outline: none; /* Убираем стандартное обведение */
}

.tools-menu__button:disabled {
    background-color: #e0e0e0; /* Еще более светлый серый для отключенных кнопок */
    cursor: not-allowed; /* Курсор в виде запрета */
    border-color: #d3d3d3; /* Бледная граница для отключенных кнопок */
}

/* Модификаторы для каждой кнопки */
.tools-menu__button--reset-zoom {
/* Стили для кнопки сброса масштаба */
}

.tools-menu__button--zoom-in {
/* Стили для кнопки приближения */
}

.tools-menu__button--zoom-out {
/* Стили для кнопки отдаления */
}

.tools-menu__button--pan-left {
/* Стили для кнопки прокрутки влево */
}

.tools-menu__button--pan-right {
/* Стили для кнопки прокрутки вправо */
}

.tools-menu__button--pan-up {
/* Стили для кнопки прокрутки вверх */
}

.tools-menu__button--pan-down {
/* Стили для кнопки прокрутки вниз */
}


.indicators__block {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 12px;
}

.indicators__wrapper {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    gap: 12px;
}

.indicators__title{
    color: var(--grayscale-950);
    font-family: var(--Roboto-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    margin-bottom: 16px;
}

.indicators__key {
    color: var(--grayscale-700);
    font-family: var(--Roboto-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.indicators__value {
    border-radius: 8px;
    background: var(--grayscale-25);
    padding: 0px 8px;
    display: inline-block;
    color: var(--main-950);
    font-family: Roboto;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.product__new-error-tooltip{
    position: absolute;
    z-index: 999;
    top: 24px;
    left: 85%;
    transform: translateX(-30%);
    display: none;
    opacity: 0;
    border-radius: 12px;
    padding: 8px 16px;
    background-color: var(--greyscale-0);
    border: 1px solid var(--grayscale-100);
    color: var(--main-950);
    color: #000;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    min-width: 220px;
    max-width: 364px;
    width: max-content;
    white-space: normal;
    text-align: left;
    transition: opacity 0.2s ease;
}

/* Стрелка */
.product__new-error-tooltip::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 28%;
    transform: translateX(-28%);
    width: 10px;
    height: 8px;
    background: var(--greyscale-0);
    border-left: 1px solid var(--grayscale-100);
    border-top: 1px solid var(--grayscale-100);
    transform: translateX(-50%) rotate(45deg);
    z-index: 2;
}

/* Показывать при ховере */
.product__tooltip-wrapper:hover .product__new-error-tooltip {
    display: block;
    opacity: 1;
}

.choices__inner-dashboard {
    width: 200px;
    /*    width: 100%;*/
    cursor:pointer;

}

.choices__item--selectable_dashboard {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product__legend-container {
    margin: 12px;
}

.product__dropdown {
    position: relative;
    display: inline-block;
}

/* Кнопка для открытия списка */
.product__dropdown-btn {
    padding: 12px 15px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--grayscale-100);
    background: var(--greyscale-white);
    color: var(--grayscale-700);
    cursor: pointer;
    transition: 0.3s;
    width: 230px;
    font-family: var(--Roboto-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content:space-between;
    gap: 8px;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.product__dropdown-arrow {
    width: 20px;
    /* Размер стрелки */
    height: 20px;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    /* Плавный поворот */
}

.product__dropdown-btn.btn-active .product__dropdown-arrow {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* Выпадающее содержимое (изначально скрыто) */
.product__dropdown-content {
    visibility: hidden;
    padding: 10px 4px 8px 12px;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    -webkit-align-content: flex-start;
    align-content: flex-start;
    gap: 4px;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    border-radius: 12px;
    border: 1px solid var(--grayscale-100);
    background: white;
    opacity: 0;
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s, -webkit-transform 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, -webkit-transform 0.3s ease;
    overflow-x: hidden ;
    overflow-y: auto ;
    scrollbar-width: thin ; /* Firefox */
    scrollbar-color: var(--grayscale-100) transparent ;
    -webkit-overflow-scrolling: auto ;
    max-height: 190px;
    box-sizing: content-box;
}

/* Webkit-браузеры (Chrome, Edge, Safari) */
.product__dropdown-content::-webkit-scrollbar {
    width: 4px;}

.product__dropdown-content::-webkit-scrollbar-thumb {
    background-color: var(--grayscale-100) !important;
    border-radius: 10px !important;
}

.product__dropdown-content::-webkit-scrollbar-track {
    background: transparent !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

/* Если нужно оформить сам активный блок с бордером и скруглением */
input[type='checkbox'] {
    display: none;
}

.product__dropdown-content.active {
    visibility: visible;
    opacity: 1;
    -webkit-transform: translateY(4px);
    transform: translateY(4px);
    color: var(--grayscale-700);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    height: 204px;
    /*    margin-right: 4px;*/
    z-index: 3;
    margin-top: 4px;
    border: 1px solid var(--grayscale-100) !important;
    border-radius: 12px !important;
    padding: 8px 4px 8px 0px !important;
}

.product__dropdown-content.product__dropdown-content_short.active {
    visibility: visible;
    opacity: 1;
    -webkit-transform: translateY(4px);
    transform: translateY(4px);
    color: var(--grayscale-700);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    height: 110px;
    /*    margin-right: 4px;*/
    z-index: 3;
    margin-top: 4px;
    border: 1px solid var(--grayscale-100) !important;
    border-radius: 12px !important;
    padding: 8px 4px 8px 0px !important;
    width: 225px;
}

/* Стили для чекбоксов */
.product__dropdown-content label {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    padding: 8px 4px 8px 8px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 999;
    width: 200px;
}

.product__dropdown-content label:hover {
    color: var(--main-600);
    background-color: rgba(226, 228, 233, 0.3);
    transition: all .2s ease-in;
}

.product__dropdown-content.active .product__dropdown-arrow {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* Обертка */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}

/* Кастомный квадрат чекбокса */
.checkbox-custom {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid var(--grayscale-100);
    background: #FFF;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
}

/* SVG галочка, появляется при :checked */
.checkbox-custom::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15.5874 4.66378C15.8039 4.88345 15.8039 5.2396 15.5874 5.45927L7.82652 13.3343C7.61004 13.5539 7.25904 13.5539 7.04256 13.3343L3.16212 9.39677C2.94563 9.1771 2.94563 8.82095 3.16212 8.60128C3.37861 8.38161 3.7296 8.38161 3.94609 8.60128L7.43454 12.141L14.8034 4.66378C15.0199 4.44411 15.3709 4.44411 15.5874 4.66378Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* При активации — галочка появляется, фон можно сменить */
input[type='checkbox']:checked + .checkbox-custom {
    background-color: var(--main-500);
    border-color: var(--main-500);
}

input[type='checkbox']:checked + .checkbox-custom::after {
    opacity: 1;
}

.dashboard__checkbox-label {
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.product__graph-checkbox{

}

@media screen and (max-width: 980px) {

    .product__blocks-container_row  {
        -webkit-flex-direction: column;
        flex-direction: column;
    }
    .product__graph-block {
        max-width: unset;
        width: 100%;
    }

    .product__table-block {
        width: 100%;
    }
}

@media screen and (max-width: 620px) {

    .product__link-wrapper{
        flex-direction: column;
        gap: 12px;
    }
    .product__header_graph{
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width:480px) {
    .info-block {
        flex-direction: column;
    }
}