/*@font-face {*/
/*    font-family: 'Mulish';*/
/*    src: url('/fonts/Mulish.ttf') format('truetype');*/
/*}*/

:root {
    --header-height: 60px;
    --sidebar-width: 50px;
    --button-primary-bg-color: #2396FF;
    --button-primary-bg-color-hover: #006ED7;
    --primary-bg-color: #FFFFFF;
    --text-primary-color: #FFFFFF;
    --secondary-border-color: #E8E4EC;
    --secondary-text-color: #776685;
    --text-primary-1-color: #323232;
    --error-color: #F04438;
    --error-bg-color: #FFFBFA;

    --input-text-color: #011240;
    --input-placeholder-color: #7380A2;
    --input-bg-color: #ECF0F7;
}

* {
    font-family: 'Mulish', sans-serif;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

body {
    background-color: #F5F5F5;
    margin: 0 0 0 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    /*width: 100%;*/
    min-height: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;

    padding-left: 16px;
}

.wrapper {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.menu {
    display: block;
    min-width: 196px;
    max-width: 196px;
}
.menu-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.content {
    width: calc(100vw - 276px);
    overflow-x: hidden ;
    background-color: #FFFFFF;border-radius: 16px 0 0 0 ;
    padding: 32px 32px 16px 32px;
    height: fit-content;
    min-height: calc(100vh - 96px);
}



.menu-list ul {
    display: flex;
    flex-direction: column;
    padding: 0 8px;
}

.menu-list ul li {
    list-style-type: none;
}

.menu-list ul li a {
    display: block;
    padding: 8px 0 8px 12px;

    font-size: 14px;
    line-height: 22px;
    text-decoration: none;
    font-weight: 700;
    color: #7A7A7A;
    border-radius: 8px;
}

.menu-list ul li a:hover {
    background-color: #E9E8E8;
}




/* Форма настройки */
.settings-elements {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-element {
    display: flex;
    flex-direction: column;
    gap: 8px;
}








/* popup*/
.fade {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #21252999;
    display: flex;
    justify-content: center;
    align-items: center;

}

.fade h2 {
    margin: 0;
}

.popup {
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 16px 32px 32px 32px;
    border-radius: 8px;
    min-width: 300px;
    gap: 8px;
    position: relative;
}
.popup .close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}


.h1 {
    font-weight: 700;
    font-size: 26px;
    padding-bottom: 16px;
}



.rule-element {
    border-bottom: solid 1px blue;
    padding: 8px 0;
    display: flex;
    flex-direction: row;
    gap: 16px;
    cursor: pointer;
    text-decoration: none;
    color: #7A7A7A;

}

.rule-head{
    border-bottom: solid 1px blue;
    padding: 8px 0;
    display: flex;
    flex-direction: row;
    gap: 16px;
    text-decoration: none;
    color: #323232;
    font-weight: 700;
}

.rule-element:hover {
    color: blue;
}




.changelog{
    width: 100%;
    border-spacing: 0;
    margin-top: 16px;
}

.changelog td, .changelog th {
    border-bottom: solid 1px  #007bff;
}

.changelog th {
    padding-bottom: 16px;
}

.changelog td {
    padding: 12px 2px;
}


/* Buttons*/
.button {
    padding: 8px 16px;
    border-radius: 8px;
    width: fit-content;
    cursor: pointer;
    user-select: none;
    height: 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    outline: none;
    border: none;
    justify-content: center;
}

.button.l {
    height: 34px;
}
.button.xl {
    height: 44px;
}

.button.w-200 {
    width: 200px;
}
.w-full {
    width: 100%;
}



.button.primary {
    background-color: var(--button-primary-bg-color);
    color: white;
}

.button.primary:hover {
    background-color: var(--button-primary-bg-color-hover);
    color: white;
}



.cloud.tag:hover {
    color: #0066D3;
    cursor: pointer;
}
.form-item {
    display: flex;
    flex-direction: column;
}

.form-item label {
    color: #7380A2;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    margin-left: 16px;
    margin-bottom: 4px;
}
.form-item input {
    color: var(--input-text-color);
    background-color: var(--input-bg-color);
    padding: 13px 16px;
    outline: none;
    border: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    border-radius: 8px;
    width: fit-content;
}
.clientData {
    max-width: 800px;
}
.clientData span {
    margin-right: 8px;
}

.paths {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.path.item {
    display: flex;
    flex-direction: row;
    gap: 4px;
}


.loginMenu {
    display: inline-block;
    width: 10em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding:  0 16px;
    cursor: pointer;
}

.user {
    display: flex;
    flex: row;
    gap: 32px;
    padding: 8px 0;
    border-top: 1px solid var(--button-primary-bg-color);
}

.user .user-role {
    width: 160px;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.interestsTree , .interestsTree ul{
    user-select: none;
    list-style-type: none;
    font-size: 16px;
    padding: 0 0 0 16px;
}

.interestsTree li {
    padding: 8px 16px 0px;
}

.interestsTree li span:hover{
    color: var(--button-primary-bg-color);
}



/* Контейнер для элемента с тултипом */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Стили для самого тултипа */
.tooltip .tooltip-text {
    font-size: 16px;
    visibility: hidden;
    width: fit-content; /* Ширина тултипа */
    background-color: #333; /* Цвет фона тултипа */
    color: #fff; /* Цвет текста */
    text-align: center;
    padding: 8px 16px;
    border-radius: 4px;
    position: absolute;
    bottom: 100%; /* Расстояние от элемента */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0; /* Начальная прозрачность */
    transition: opacity 0.3s; /* Плавное появление */
    z-index: 1;
}

/* Маленький треугольник под тултипом */
.tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%; /* Указывает на тултип */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Показать тултип при наведении */
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.div-x-scroll {
    width: 100%;
    overflow-x: scroll;
}



/* Mobile */
@media screen and (min-width: 320px) and (max-width: 480px) {

}

/* Tablets */
@media screen and (min-width: 481px) and (max-width: 768px) {

}

/* Laptops */
@media screen and (min-width: 769px) and (max-width: 1024px) {

}

/* Desktops */
@media screen and (min-width: 1025px) and (max-width: 1200px) {

}

/* Larger screens */
@media screen and (min-width: 1201px) {

}
/* WebKit-браузеры (Chrome, Safari, новый Edge) */
::-webkit-scrollbar {
    width: 6px; /* Толщина вертикального скролла */
    height: 6px; /* Толщина горизонтального скролла */
}

::-webkit-scrollbar-track {
    background: var(--input-bg-color); /* Цвет фона дорожки */
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--button-primary-bg-color); /* Цвет ползунка */
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555; /* Темнее при наведении */
}

/* Firefox */
* {
    scrollbar-width: thin; /* Делаем его тоньше */
    scrollbar-color: var(--button-primary-bg-color) var(--input-bg-color); /* Цвет ползунка и фона */
}

/* Старый Internet Explorer и старый Edge */
body {
    scrollbar-face-color: var(--button-primary-bg-color);
    scrollbar-track-color: var(--input-bg-color);
}

.w-200 {
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
}

#tableUserHistory {
    display: table-cell!important;
}
#tableUserHistory tr {
    padding: 8px 0!important;
}
#tableUserHistory tr {
    white-space: nowrap;
}
.preloader_blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;


}
