/* Для WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #A0A7BB;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A0A7BB;
}

/* Для Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #A0A7BB transparent;
}

/* Общие стили для плавности */
html {
  scroll-behavior: smooth;
}

.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
}

html, body {
  overflow: hidden;
}

.hljs-copy-button {
  transform: translateX(0) !important;
}

.hljs-header {
  width: 100%;
  position: absolute;
  height: 43px;
  top: 9px;
  background: #a0a7bb;
  border-radius: 7px 7px 0px 0px;
  background: #373d55;
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.hljs-header-txt {
  font-size: 12px;
  color: #EBEEF3;
}

.msg-content hr {
  margin: 10px 0px 10px 0px !important;
}

.msg-content code {
  margin: 10px 0px 10px 0px !important;
  overflow-x: auto;
}

.msg-content pre {
  overflow-x: auto;
}

.v-text-field--outlined fieldset {
  border-color: var(--ds-text-color-card, #000000de) !important;
  color: var(--ds-text-color-card, #000000de) !important;
}

.theme--light.v-list, .v-input__slot, .v-input__control {
  background: var(--ds-background-card, #FFF) !important;
}

.v-application .primary--text {
  color: #14B48D !important;
  caret-color: #14B48D !important;
}

.v-application .primary {
  background-color: #14B48D !important;
  border-color: #14B48D !important;
}

.v-list-item__title, .v-input__slot input, .v-card div, .v-card .v-label, .v-input__icon--append .v-icon, .v-btn  {
  color: var(--ds-text-color-card, #000000de) !important;
}

.v-input--switch div {
  color: #9b9c9d !important;
}

.theme--light.v-btn.v-btn--has-bg {
  background-color: var(--ds-background-balance, #f5f5f5) !important;
  color: var(--ds-text-color-balance, #000000de) !important;
}

.v-card__actions, .v-card, .v-card__text {
  background: var(--ds-background-card, #FFF) !important;
}

.chatCards .v-tabs-bar__content {
  background-color: var(--ds-background-tab, #e2e2e2) !important;
  border-radius: 5px
}

.v-navigation-drawer__border {
  background-color: var(--ds-background-right-menu-border, #ffffff1f) !important;
}

.v-slider__track-fill, .v-slider__track-background, .v-slider .v-slider__thumb {
  /* background: #00000042; */
  background: #9b9c9d !important;
}

.v-application .primary.lighten-3 {
  background-color: #a3beb5 !important;
  border-color: #a3beb5 !important;
}

.v-divider {
  border-color: var(--ds-background-divider, #0000001f) !important;
}

.ck-tooltip {
  background: rgba(97, 97, 97, 0.9) !important;
  color: #FFFFFF !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  line-height: 20px !important;
  /* display: inline-block !important; */
  padding: 3px 10px !important;
  position: absolute !important;
  text-transform: initial !important;
  width: auto !important;
  opacity: 0.9 !important;
  pointer-events: none !important;
  z-index: 20 !important;
}

.v-tooltip__content {
  background: rgba(97, 97, 97, 0.9);
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 13px;
  line-height: 20px;
  display: inline-block;
  padding: 3px 10px;
  position: absolute;
  text-transform: initial;
  width: auto;
  opacity: 0;
  pointer-events: none;
}

.ck.ck-balloon-panel.ck-balloon-panel_with-arrow::after {
  display: none !important;
}
.v-application {
  font-family: 'InterDisplay', sans-serif !important;
  line-height: 1.5;
}
.subsystem-msg p {
  margin-bottom: 0px !important;
  font-size: 9px !important;
  font-weight: 500 !important;
  color: #B7B7B7 !important;
}

.green-ripple {
  color: var(--ds-background-pre-left-menu-tab-active, #14B48D) !important;
  caret-color: var(--ds-background-pre-left-menu-tab-active, #14B48D) !important;
}

.ck-editor__top {
  display: none !important;
}

.ck-send-btn {
  position: absolute !important;
  right: 0px;
  font-size: 15px !important;
  margin: 0px;
  padding: 0px;
}

.ck-focused {
 border: 1px solid transparent !important;
 border-color: var(--ck-color-base-border) !important;
} 
.chatCards .v-slide-group {
  background-color: #00000000 !important;
  border-radius: 5px;
}

.chatCards .v-tabs-slider {
  display: none !important;
}

.chatCards .v-tabs .v-ripple__container {
  display: none !important;
}

.ck-code-block-dropdown .ck-splitbutton__arrow {
  display: none !important;
}

.ck-editor__editable > p {
  margin: 0px !important;
  padding: 0px !important;
}

div.ck-editor__editable {
  padding: 10px !important;
}

.ck.ck-editor__editable pre[data-language]::after {
  display: none;
}

.ck-settings-btn {
  font-size: 12px !important;
  margin: 0px;
  padding: 0px;
}

.ck-button .ck-button__label {
  display: none !important;
}

.ck-button {
  border-radius: 5px !important;
}

.ck-button-base-btn {
  width: 32px !important;
  height: 32px !important;
}

.document-editor__toolbar .ck-dropdown__button {
  height: 32px !important;
  width: 32px !important;
  font-size: 15px !important;
  padding: 5px !important;
}

.hljs-name, .hljs-attr, .hljs-meta {
  color: #b3b0b0 !important;
}

.system-txt, .system-txt p {
  margin: 0px !important;
  padding: 0px !important;
  font-size: 12px;
}

.ck-powered-by-balloon {
  display: none !important;
}

.select-model .v-text-field__details {
  display: none !important;
}

.slider .v-messages {
  display: none !important;
}

.fild-grey {
  background: #f4f4f4 !important;
  box-shadow: none !important;
}
.hljs {
  background-color: #141c3c !important;
  color: antiquewhite !important;
  margin: 0px 0px 20px 0px !important;
  padding: 60px 0px 20px 10px !important;
  border-radius: 7px !important;
}

.hljs-copy-wrapper {
  position: relative;
}

.hljs-copy-icon {
  position: absolute;
  margin: 20px 0px 0px -31px;
  top: 0px;
  color: #EBEEF3;
}

.hljs-comment {
  color: #838ec6 !important;
}

.q-field--dark {
  input, select {
    color: #fff;
    -webkit-text-fill-color: white;
    -webkit-background-clip: text !important;
    background-clip:  text !important;
  }
}

.msg-content code {
  font-style: italic;
  min-height: 45px !important;
}

.msg-content a {
  color: var(--ds-text-color-msg-a, #1976d2) !important;
}

.msg-content strong {
  font-weight: 700 !important;
}

.msg-content {
  font-size: 14px;
}

.msg-content ul {
  padding: 10px 0px 10px 24px;
}

.msg-content ol {
  padding-top: 5px;
  padding-bottom: 5px;
}

.msg-content table {
  width: 100%;
}


.msg-content p {
  margin-bottom: 0px !important;
  padding: 5px 0px 5px 0px
}


.msg-content h1, .msg-content h2, .msg-content h3 {
  font-size: 16px !important;
  padding: 5px 0px 5px 0px;
}

.msg-content h4, .msg-content h5, .msg-content h6 {
  font-size: 14px !important; 
}
.content pre {
  display: flex;
  justify-content: center;
  width: 99% !important;
}
.content pre code {
  width: 100% !important;
}

.content .table-wrapper {
  overflow-x: auto; /* Включаем прокрутку для контейнера */
  width: 100%; /* Занимаем всю ширину */
  -webkit-overflow-scrolling: touch; /* Плавная прокрутка на мобильных */
}

.content .table-wrapper table {
  border-collapse: collapse !important;
  text-align: left;
  width: 100%; /* Таблица пытается занять всю ширину */
  min-width: max-content; /* Но не меньше содержимого */
  margin: 0 auto;
  table-layout: auto; /* Автоматическое распределение ширины колонок */
  color: #EBEEF3;
}

.content .table-wrapper thead {
  background: #282a2e;
}

.content .table-wrapper thead th, .content tbody td {
  padding: 10px;
}

.content .table-wrapper tbody {
  background: #4b4f5b;
}

.content .table-wrapper tbody tr:hover {
  background: #40424a !important;
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

.content .table-wrapper tbody tr {
  border-bottom: 1px solid #777777;
}

.content .table-wrapper table tbody tr:last-child {
  border-bottom: none !important;
}

.content .table-wrapper table td:first-child, .content table th:first-child {
  border-left: none;
}
.content .table-wrapper table th:first-child {
  -moz-border-radius: 10px 0 0 0;
  -webkit-border-radius: 10px 0 0 0;
  border-radius: 10px 0 0 0;
}
.content .table-wrapper table th:last-child {
  -moz-border-radius: 0 10px 0 0;
  -webkit-border-radius: 0 10px 0 0;
  border-radius: 0 10px 0 0;
}
.content .table-wrapper table th:only-child{
  -moz-border-radius: 10px 10px 0 0;
  -webkit-border-radius: 10px 10px 0 0;
  border-radius: 10px 10px 0 0;
}
.content .table-wrapper table tr:last-child td:first-child {
  -moz-border-radius: 0 0 0 10px;
  -webkit-border-radius: 0 0 0 10px;
  border-radius: 0 0 0 10px;
}
.content .table-wrapper table tr:last-child td:last-child {
  -moz-border-radius: 0 0 10px 0;
  -webkit-border-radius: 0 0 10px 0;
  border-radius: 0 0 10px 0;
}

.menu-warper .v-list-item-group .v-list-item--active {
  color: #fff;
}

.balanceInput .v-input__control {
  border-radius: unset;
}

.balanceInput .v-messages, .balanceInput .v-text-field__details {
  display: none;
}

.balanceInput .v-input__slot {
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 2px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12) !important;
}

.hidden-details .v-messages, .hidden-details .v-text-field__details {
  display: none !important;
}

.menuable__content__active {
  z-index: 20 !important;
}

.login-form  .v-card__text {
  background: #00000000 !important;
}

.login-form .v-input__control, .login-form .v-input__slot {
  background: #00000000 !important;
}

.login-form .v-card__title, 
.login-form .v-card__subtitle, 
.login-form .sub-box .pointer,
.login-form .v-input__icon--append .v-icon {
  color: #FFF !important;
}

.login-form .v-text-field--outlined fieldset {
  border-color: #FFF !important;
}

.login-form .error--text .v-input__slot fieldset {
  border-color: #ff5252 !important;
}

.login-form .error--text .v-input__icon--append .v-icon,
.v-application .error--text, .v-application .error--text div {
  color: #ff5252 !important;
}

.login-form .theme--light.v-btn.v-btn--has-bg {
  background-color: #f5f5f5 !important;
  color: #000000de !important;
}

div.virual-scroll-list > div[role='group'] {
  min-height: 100%;
  position: relative;
}

@media (max-width: 800px) {
  .v-tooltip__content, .ck-tooltip {
    display: none !important;
  }
}