/* MarketPawns - Оптимизированная цветовая схема 60/30/10 + Система расстояний 4px */

/* ========================================
   CSS ПЕРЕМЕННЫЕ - ЦВЕТОВАЯ СХЕМА 60/30/10
   ======================================== */

:root {
  /* === 60% ДОМИНИРУЮЩИЕ ЦВЕТА (Нейтральные) === */
  --neutral-primary: #f4f6fa;    /* Основной фон приложения */
  --neutral-secondary: #e1e4eb;  /* Фон панелей и карточек */
  --neutral-light: #ffffff;      /* Белый для контрастных элементов */
  --text-primary: #2c2e61;       /* Основной текст (темно-синий) */
  --text-secondary: #6c757d;     /* Вторичный текст (серый) */
  --border-light: #e5e5e5;       /* Светлые границы */
  --border-medium: #dee2e6;      /* Средние границы */
  
  /* === 30% ВТОРОСТЕПЕННЫЕ ЦВЕТА (Брендовые) === */
  --brand-primary: #2c2e61;      /* Основной брендовый цвет */
  --brand-primary-light: #4a4d9b; /* Светлый вариант */
  --brand-primary-dark: #1c1e40;  /* Темный вариант */
  --interactive-bg: #d6b56c;      /* Фон активных вкладок */
  --interactive-hover: #c7a450;   /* Состояние наведения */
  --interactive-hover-light: rgba(214, 181, 108, 0.12); /* Легкий hover для строк */
  --interactive-hover-gradient: rgba(214, 181, 108, 0.08); /* Градиентный hover */
  --interactive-hover-shadow: rgba(214, 181, 108, 0.15); /* Тень при hover */
  
  /* === 10% АКЦЕНТНЫЕ ЦВЕТА === */
  --accent-primary: #e2954b;     /* Главный акцент (оранжевый) */
  --accent-primary-hover: #c87827; /* Наведение на акцент */
  --accent-success: #28a745;     /* Успех (зеленый) */
  --accent-warning: #f5b942;     /* Предупреждение (желтый) */
  --accent-danger: #dc3545;      /* Ошибка (красный) */
  --accent-info: #17a2b8;        /* Информация (голубой) */
  
  /* ========================================
     СИСТЕМА РАССТОЯНИЙ (кратность 4px)
     ======================================== */
  --space-0: 0;           /* 0px */
  --space-1: 4px;         /* 4px */
  --space-2: 8px;         /* 8px */
  --space-3: 12px;        /* 12px */
  --space-4: 16px;        /* 16px */
  --space-5: 20px;        /* 20px */
  --space-6: 24px;        /* 24px */
  --space-8: 32px;        /* 32px */
  --space-10: 40px;       /* 40px */
  --space-12: 48px;       /* 48px */
  --space-16: 64px;       /* 64px */
  --space-20: 80px;       /* 80px */
  
  /* ========================================
     ТИПОГРАФИКА
     ======================================== */
  --font-family: 'Roboto', sans-serif;
  --font-size-xs: 10px;     /* Мелкий текст в таблицах */
  --font-size-sm: 12px;     /* Основной текст интерфейса */
  --font-size-base: 14px;   /* Базовый размер */
  --font-size-lg: 16px;     /* Заголовки секций */
  --font-size-xl: 18px;     /* Основные заголовки */
  --font-size-2xl: 24px;    /* Крупные заголовки */
  
  --line-height-tight: 1.2;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
  
  /* ========================================
     ТЕНИ И ЭФФЕКТЫ
     ======================================== */
  --shadow-sm: 0 2px 4px rgba(44, 46, 97, 0.08);
  --shadow-md: 0 4px 12px rgba(44, 46, 97, 0.12);
  --shadow-lg: 0 8px 24px rgba(44, 46, 97, 0.15);
  
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */

* {
  box-sizing: border-box;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-tight);
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  background-color: var(--neutral-primary); /* 60% - доминирующий фон */
  font-family: var(--font-family);
  width: 100%;
  color: var(--text-primary); /* 60% - основной текст */
}

/* ========================================
   ЗАГОЛОВОК (Header) - 60% нейтральный + 30% брендовый
   ======================================== */

.header {
  min-height: 58px;
  padding: var(--space-4); /* 16px - оптимизировано под кратность 4px */
  background-color: var(--neutral-light); /* 60% - нейтральный фон */
  border-bottom: 1px solid var(--border-light);
}

.container_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-1); /* 4px - кратность 4px */
}

.logo {
  margin-left: 50%;
  transform: translateX(-50%);
  padding: var(--space-2) 0; /* 8px - оптимизированные отступы */
}

.nav-right {
  display: flex;
  font-size: var(--font-size-sm); /* 12px */
  line-height: var(--line-height-normal); /* 1.4 */
  color: var(--brand-primary); /* 30% - брендовый цвет */
}
.nav-right li {
  padding: var(--space-2) var(--space-4); /* 8px 16px - кратность 4px */
  list-style-type: none;
}
.nav-right li:not(:first-child) {
  padding-left: var(--space-4); /* 16px */
  padding-bottom: var(--space-2); /* 8px */
}
.nav-right li:not(:last-child) {
  border-right: 1px solid var(--border-light);
}
.nav-right li:hover {
  font-weight: 500;
  color: var(--accent-primary); /* 10% - акцентный при наведении */
  transition: var(--transition-fast);
}

/* ========================================
   НАВИГАЦИОННЫЕ ПАНЕЛИ - 30% брендовые + 10% акцентные
   ======================================== */

.specialized {
  display: flex;
  justify-content: space-around;
  margin-left: var(--space-5); /* 20px - кратность 4px */
  width: auto;
  padding-top: var(--space-3); /* 12px - кратность 4px */
}

.main_board {
  display: flex;
  flex-direction: column;
}

.signals-tabs {
  height: 34px;
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: left;
  font-size: var(--font-size-sm); /* 12px */
  line-height: var(--line-height-normal); /* 1.4 */
  align-items: bottom;
}
.signals-tabs label {
  list-style-type: none;
  color: var(--brand-primary); /* 30% - брендовый цвет текста */
  background-color: var(--interactive-bg); /* 30% - интерактивный фон */
  border-radius: var(--space-2) var(--space-2) 0 0; /* 8px - кратность 4px */
  padding: var(--space-2) var(--space-4); /* 8px 16px - оптимизированы */
  margin: 0 var(--space-1); /* 4px - кратность 4px */
  transition: var(--transition-fast);
}
.signals-tabs label:hover {
  font-weight: 500;
  background-color: var(--interactive-hover); /* 30% - состояние наведения */
}
.signals-tabs input[type="radio"]:checked + label {
  color: var(--neutral-secondary); /* 60% - светлый текст */
  background-color: var(--brand-primary); /* 30% - активный брендовый фон */
  border-radius: var(--space-2) var(--space-2) 0 0; /* 8px - кратность 4px */
  padding: var(--space-2) var(--space-4); /* 8px 16px - оптимизированы */
  margin: 0 var(--space-1); /* 4px - кратность 4px */
}

/* ========================================
   ПАНЕЛИ ДАННЫХ - 60% нейтральные фоны
   ======================================== */

.signals-pannel, 
.signals-pannel-for-signals-tab {
  max-width: 880px;
  background-color: var(--neutral-secondary); /* 60% - нейтральный фон */
  padding-bottom: var(--space-1); /* 4px - кратность 4px */
  margin-bottom: var(--space-2); /* 8px - кратность 4px */
  border-top: 1px solid var(--border-light);
  overflow-x: hidden;
}

.signals-pannel .table,
.signals-pannel-for-signals-tab .table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  margin-bottom: 0;
}

.display-none {
  display: none;
}

/* ========================================
   ПОИСК И ФИЛЬТРЫ - 60% + 30% + 10%
   ======================================== */

.search-pannel {
  height: auto;
  max-width: 880px;
  display: flex;
  padding-top: 0;
  position: relative;
  z-index: 10;
  margin-bottom: var(--space-2); /* 8px - кратность 4px */
}
.search-pannel li {
  align-self: center;
}
.search-pannel li:first-child {
  padding-left: var(--space-8); /* 32px - кратность 4px */
}
.search-pannel li:hover {
  font-weight: 500;
  color: var(--accent-primary); /* 10% - акцент при наведении */
}

.search-txt,
.search-txt-for-signals-tab {
  display: none;
}

.search-date {
  display: none;
}

.search-time {
  display: none;
}

.combo {
  border: 1px solid var(--border-medium);
  border-radius: var(--space-1); /* 4px - кратность 4px */
  text-indent: 0;
  font-size: var(--font-size-xs); /* 10px */
  width: 100%;
  height: var(--space-5); /* 20px - кратность 4px */
  margin-top: var(--space-1); /* 4px - кратность 4px */
  box-sizing: border-box;
}

/* ========================================
   ТАБЛИЦЫ - 60% нейтральные + 30% брендовые заголовки
   ======================================== */

.table {
  background-color: var(--neutral-light); /* 60% - нейтральный фон */
}
.table .sline {
  cursor: pointer;
}

thead {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--neutral-light); /* 60% - нейтральный фон */
  width: calc(100%);
  font-size: var(--font-size-xs); /* 10px */
  height: 39px;
  max-width: none;
  color: var(--text-primary); /* 60% - основной текст */
  border-bottom: 1px solid var(--border-light);
  display: block;
}

thead tr {
  display: flex;
  width: 100%;
}

thead th {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ОБЩИЕ ПРАВИЛА - ПРОСТОЕ РЕШЕНИЕ */
thead th.col-1 { flex: 0 0 7.14% !important; }  /* 100% / 14 колонок = 7.14% */
thead th.col-2 { flex: 0 0 7.14% !important; }  /* Все колонки одинаковые */
thead th.col-4 { flex: 0 0 7.14% !important; }  /* Все колонки одинаковые */

/* ПРОСТОЕ РЕШЕНИЕ ДЛЯ ВСЕХ КОЛОНОК - РАВНОМЕРНОЕ РАСПРЕДЕЛЕНИЕ */
.signals-pannel thead th {
  flex: 0 0 7.14% !important;  /* 100% / 14 = 7.14% на колонку */
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.signals-pannel tbody td {
  flex: 0 0 7.14% !important;  /* 100% / 14 = 7.14% на колонку */
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.signals-pannel .search-fields thead td {
  flex: 0 0 7.14% !important;  /* 100% / 14 = 7.14% на колонку */
  min-width: 0 !important;
  box-sizing: border-box !important;
}

thead th {
  height: 39px;
  padding: 2px 1px;
  vertical-align: middle !important;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  font-size: 12px;
  line-height: 13px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
thead th:not(:first-child) {
  border-left: 1px solid #e5e5e5;
}
thead .sortable:hover {
  font-weight: 500;
  font-size-adjust: 0.6;
  cursor: pointer;
}

thead .sortable {
  position: relative;
  padding-right: 12px;
}

thead .sortable::after {
  content: "↕";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: #757575;
  opacity: 0.7;
}

thead .sortable.asc::after {
  content: "↑";
  color: #2c2e61;
  opacity: 1;
}

thead .sortable.desc::after {
  content: "↓";
  color: #2c2e61;
  opacity: 1;
}

thead .ID,
thead .Date,
thead .time,
thead .clmn {
  min-width: 35px;
}

td {
  vertical-align: middle;
}
tbody td {
  padding: 1px 2px;
  text-align: center;
  height: 20px;
  vertical-align: middle !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

tbody tr {
  display: flex;
  width: 100%;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

tbody tr td {
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signals-pannel-for-signals-tab tbody tr td:nth-child(1) { flex: 0 0 14%; }
.signals-pannel-for-signals-tab tbody tr td:nth-child(3) { flex: 0 0 14%; }
.signals-pannel-for-signals-tab tbody tr td:nth-child(4) { flex: 0 0 14%; }
.signals-pannel-for-signals-tab tbody tr td:nth-child(5) { flex: 0 0 14%; }
.signals-pannel-for-signals-tab tbody tr td:nth-child(6) { flex: 0 0 14%; }
.signals-pannel-for-signals-tab tbody tr td:last-child { flex: 0 0 23%; }

/* СТАРЫЕ nth-child ПРАВИЛА ДЛЯ SIGNALS УДАЛЕНЫ - ИСПОЛЬЗУЕТСЯ ПРОСТОЕ РЕШЕНИЕ НИЖЕ */

.signals-pannel tbody tr td:nth-child(1) { flex: 0 0 5%; }   /* # - увеличено с 4% до 5% */
.signals-pannel tbody tr td:nth-child(2) { flex: 0 0 12%; }  /* ID - увеличено с 11% до 12% */
.signals-pannel tbody tr td:nth-child(3) { flex: 0 0 8%; }   /* Date - увеличено с 7% до 8% */
.signals-pannel tbody tr td:nth-child(4) { flex: 0 0 6%; }   /* Time - увеличено с 5% до 6% */
.signals-pannel tbody tr td:nth-child(5) { flex: 0 0 6%; }   /* Age - без изменений */
.signals-pannel tbody tr td:nth-child(6) { flex: 0 0 6%; }   /* Symbol - без изменений */
.signals-pannel tbody tr td:nth-child(7) { flex: 0 0 6%; }   /* Model - без изменений */
.signals-pannel tbody tr td:nth-child(8) { flex: 0 0 6%; }   /* TF - без изменений */
.signals-pannel tbody tr td:nth-child(9) { flex: 0 0 6%; }   /* P6 - без изменений */
.signals-pannel tbody tr td:nth-child(10) { flex: 0 0 6%; }  /* P6" - без изменений */
.signals-pannel tbody tr td:nth-child(11) { flex: 0 0 6%; }  /* auxP6 - без изменений */
.signals-pannel tbody tr td:nth-child(12) { flex: 0 0 6%; }  /* auxP6' - без изменений */
.signals-pannel tbody tr td:nth-child(13) { flex: 0 0 8%; }  /* TL - увеличено с 7% до 8% */
.signals-pannel tbody tr td:nth-child(14) { flex: 0 0 7%; }  /* Comm - увеличено с 6% до 7% */

.chart {
  max-width: 880px;
  border: 1px solid #e5e5e5;
  margin-bottom: 10px;
}

.chart-header {
  max-width: 880px;
  height: 25px;
  color: #414141;
  display: flex;
  align-items: center;
  gap: 0;
}

.instrument-info {
  color: #414141;
  font-size: 12px;
}

/* Model ID в container справа */
.model-id-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  color: #e1e4eb;
  font-size: 11px;
  opacity: 1;
  visibility: visible;
}

.model-id-label {
  font-size: 11px;
  color: #e1e4eb;
  font-weight: normal;
  display: inline-block;
  opacity: 1;
  visibility: visible;
}

.model-id-value {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.copy-model-id-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 3px;
}

.copy-model-id-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.copy-model-id-btn:active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.copy-model-id-btn i {
  font-size: 10px;
  display: inline-block;
}

.chart-header {
  padding-left: 14px;
  vertical-align: middle;
  font-family: "Lato", sans-serif;
}

.container {
  max-width: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #2c2e61;
  color: white;
  height: 25px;
  color: #e1e4eb;
}
.container .chart-borders {
  display: flex;
  align-items: inherit;
  max-height: 18px;
}
.container .chart-borders .form-check {
  display: flex;
  align-items: inherit;
}
.container input {
  max-width: 50px;
}

.dropdown {
  display: none;
}

.dropdown-menu {
  min-width: 30px;
}
.dropdown-menu li {
  font-size: 12px;
}

.aims-levels {
  display: flex;
}

.chart_area {
  height: 420px;
  background-color: darkslateblue;
}

.infoboard {
  display: flex;
  justify-content: space-around;
  width: 705px;
  min-width: 300px;
  margin-top: 2px;
  margin-left: 24px;
  margin-right: 20px;
  margin-bottom: 10px;
  background-color: #e1e4eb;
}

/* Ensure latest topics widget follows accordion width inside infoboard */
#latestTopicsWidget {
  width: 100%;
  max-width: 705px;
  margin-left: 0;
  margin-right: 0;
}

.btn-secondary:focus {
  outline: 0;
  box-shadow: none;
}

.form-switch .form-check-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='4' fill='DarkKhaki'/%3e%3c/svg%3e") !important;
}
.form-switch .form-check-input:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='4' fill='Moccasin'/%3e%3c/svg%3e") !important;
}

.form-check-input {
  box-shadow: none !important;
}
.form-check-input:checked {
  background-color: #d6b56c;
  border-color: #d6b56c;
}

.btn-signals {
  color: #2c2e61;
  border-color: #d6b56c;
  background-color: #fff;
}

.btn-signals-cls {
  color: #2c2e61;
  border-color: #d6b56c;
  border-color: #fff;
  background-color: #fff;
}

/* ========================================
   АККОРДЕОН - Унифицированная система дизайна 60/30/10
   ======================================== */

.accordion-item {
  margin-bottom: var(--space-1); /* 4px */
  border: 1px solid var(--border-light); /* 60% - нейтральные границы */
  border-radius: var(--space-1); /* 4px */
  background-color: var(--neutral-light); /* 60% - нейтральный фон */
  box-shadow: 0 1px 3px rgba(44, 46, 97, 0.05); /* Легкая тень */
  transition: var(--transition-fast);
}

.accordion-item:hover {
  box-shadow: 0 2px 8px rgba(44, 46, 97, 0.1); /* Усиленная тень при наведении */
  transform: translateY(-1px); /* Легкий подъем */
}

/* Заголовки аккордеона - унифицированный стиль */
.accordion-item button,
.accordion-item .accordion-collapse {
  color: var(--text-primary); /* 60% - основной текст */
  background-color: var(--neutral-light); /* 60% - нейтральный фон */
  font-family: var(--font-family); /* Единообразный шрифт */
  font-size: var(--font-size-sm); /* 14px */
  font-weight: 500; /* Средний вес шрифта */
  line-height: var(--line-height-normal); /* 1.5 */
}

/* Кнопки аккордеона - состояние по умолчанию */
.accordion-button {
  background-color: var(--neutral-light); /* 60% - нейтральный фон */
  color: var(--text-primary); /* 60% - основной текст */
  border: none;
  border-radius: var(--space-1); /* 4px */
  padding: var(--space-3) var(--space-4); /* 12px 16px */
  font-family: var(--font-family); /* Единообразный шрифт */
  font-size: var(--font-size-sm); /* 14px */
  font-weight: 500; /* Средний вес */
  line-height: var(--line-height-normal); /* 1.5 */
  transition: var(--transition-fast);
  position: relative;
  display: flex; /* Обеспечиваем правильное выравнивание */
  align-items: center; /* Центрируем вертикально */
}

/* Hover эффект для кнопок аккордеона - унифицированный */
.accordion-button:hover {
  background-color: var(--neutral-secondary); /* 60% - легкий фон при наведении */
  color: var(--brand-primary); /* 30% - брендовый цвет при наведении */
  transform: translateY(-1px); /* Легкий подъем */
  box-shadow: 0 2px 6px rgba(44, 46, 97, 0.15); /* Брендовая тень */
}

/* Focus состояние - брендовое */
.accordion-button:focus {
  z-index: 3;
  border-color: var(--brand-primary); /* 30% - брендовая граница */
  color: var(--neutral-light); /* Белый текст */
  background-color: var(--brand-primary); /* 30% - брендовый фон */
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 46, 97, 0.25); /* Брендовая обводка */
}

.accordion-button:focus::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 1 2 1 0-.708z'/%3e%3c/svg%3e");
}

/* Активное состояние (развернутый аккордеон) - брендовое */
.accordion-button:not(.collapsed) {
  color: var(--neutral-light); /* Белый текст */
  background-color: var(--brand-primary); /* 30% - брендовый фон */
  box-shadow: 0 2px 8px rgba(44, 46, 97, 0.2); /* Усиленная брендовая тень */
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 1 2 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(180deg); /* Поворот стрелки */
}

/* Специальные стили для вкладки Broker Selection */
.broker-selection-header {
  background-color: var(--neutral-light) !important; /* 60% - нейтральный фон */
  color: var(--text-primary) !important; /* 60% - основной текст */
  padding: var(--space-3) var(--space-4) !important; /* 12px 16px - унифицированные отступы */
  font-family: var(--font-family) !important; /* Единообразный шрифт */
  font-size: var(--font-size-sm) !important; /* 14px - как у других вкладок */
  font-weight: 500 !important; /* Средний вес - как у других вкладок */
  line-height: var(--line-height-normal) !important; /* 1.5 - как у других вкладок */
  transition: var(--transition-fast) !important;
  display: flex !important; /* Обеспечиваем правильное выравнивание */
  align-items: center !important; /* Центрируем вертикально */
}

/* Стили для иконки в заголовке Broker Selection */
.broker-selection-header .fas {
  margin-right: var(--space-2) !important; /* 8px отступ справа от иконки */
}

/* Стили для бейджа в заголовке Broker Selection */
.broker-selection-header .badge {
  margin-left: var(--space-2) !important; /* 8px отступ слева от бейджа */
}

.broker-selection-header:hover {
  background-color: var(--neutral-secondary) !important; /* 60% - легкий фон при наведении */
  color: var(--brand-primary) !important; /* 30% - брендовый при наведении */
  transform: translateY(-1px) !important; /* Легкий подъем как у других */
  box-shadow: 0 2px 6px rgba(44, 46, 97, 0.15) !important; /* Брендовая тень как у других */
}

.broker-selection-header:focus {
  background-color: var(--brand-primary) !important; /* 30% - брендовый фон */
  color: var(--neutral-light) !important; /* Белый текст */
  border-color: var(--brand-primary) !important; /* 30% - брендовая граница */
  box-shadow: 0 0 0 3px rgba(44, 46, 97, 0.25) !important; /* Брендовая обводка */
}

.broker-selection-header:not(.collapsed) {
  background-color: var(--brand-primary) !important; /* 30% - брендовый фон */
  color: var(--neutral-light) !important; /* Белый текст */
  box-shadow: 0 2px 8px rgba(44, 46, 97, 0.2) !important; /* Усиленная брендовая тень */
}

/* Контент аккордеона */
.accordion-body {
  padding: var(--space-4); /* 16px */
  background-color: var(--neutral-light); /* 60% - нейтральный фон */
  color: var(--text-secondary); /* 60% - вторичный текст */
  font-family: var(--font-family); /* Единообразный шрифт */
  font-size: var(--font-size-sm); /* 14px */
  line-height: var(--line-height-normal); /* 1.5 */
  border-top: 1px solid var(--border-light); /* Разделитель */
}

/* Иконки в заголовках аккордеона */
.accordion-button .fas {
  margin-right: var(--space-2); /* 8px отступ справа от иконки */
}

/* Бейджи в заголовках аккордеона */
.accordion-button .badge {
  background-color: var(--accent-primary) !important; /* 10% - акцентный цвет */
  color: var(--neutral-light) !important; /* Белый текст */
  font-size: var(--font-size-xs); /* 12px */
  font-weight: 500;
  padding: var(--space-1) var(--space-2); /* 4px 8px */
  border-radius: var(--space-1); /* 4px */
  margin-left: var(--space-2); /* 8px */
}

/* Disabled состояние */
.accordion-button:disabled {
  background-color: var(--neutral-secondary) !important; /* 60% - приглушенный фон */
  color: var(--text-muted) !important; /* 60% - приглушенный текст */
  cursor: not-allowed;
  opacity: 0.6;
}

.accordion-button:disabled:hover {
  transform: none; /* Отключаем hover эффекты */
  box-shadow: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .accordion-button {
    padding: var(--space-2) var(--space-3); /* 8px 12px на мобильных */
    font-size: var(--font-size-xs); /* 12px на мобильных */
  }
  
  .accordion-body {
    padding: var(--space-3); /* 12px на мобильных */
    font-size: var(--font-size-xs); /* 12px на мобильных */
  }
  
  .accordion-item {
    margin-bottom: var(--space-1); /* 4px между элементами */
  }
}

@media (max-width: 1630px) {
  .frst,
  .acor_zero {
    display: none;
  }
}
@media (max-width: 1450px) {
  .acor_frst {
    display: none;
  }
}
@media (max-width: 1360px) {
  .acor_scnd, 
  .earliest {
    display: none;
  }
}
@media (max-width: 1300px) {
  .specialized {
    flex-direction: column;
    align-items: center;
    margin-left: 3px;
    margin-right: 5px;
  }

  .main_board {
    width: auto;
  }

  .infoboard {
    display: flex;
    width: 100%;
    max-width: 880px;
    margin-top: 2px;
    margin-right: 5px;
    margin-bottom: 10px;
    margin-left: 0px;
  }
}
@media (max-width: 1200px) {
  .frst,
  .acor_zero,
  .acor_frst,
  .acor_scnd {
    display: table-cell;
  }
}
@media (max-width: 940px) {
  .logo {
    margin-left: auto;
    margin-right: auto;
    transform: translateX(0%);
  }
}
@media (max-width: 915px) {
  .frst {
    display: none;
  }
}
@media (max-width: 760px) {
  .pre {
    display: none;
  }
}
@media (max-width: 750px) {
  .tme,
  .acor_zero,
  .aims-levels {
    display: none;
  }

  .dropdown {
    display: flex;
    padding: none;
  }
}
@media (max-width: 660px) {
  .zero,
  .acor_frst,
  .Date {
    display: none;
  }

  .search-txt {
    margin-left: 1px;
  }

  .container_header {
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1px;
    padding-right: 1px;
  }

  .nav-right {
    justify-content: center;
    width: 100%;
  }
}
@media (max-width: 465px) {
  .acor_scnd,
  .scnd {
    display: none;
  }

  .search-pannel {
    height: 40px;
    display: flex;
    justify-content: space-between;
  }
  .search-pannel li:not(:first-child) {
    border-left: 0px solid white;
  }

  .header {
    display: flex;
    width: 100%;
    min-height: 30px;
  }

  .logo {
    display: none;
  }
}
@media (max-width: 400px) {
  .container {
    display: flex;
  }
}
.table-fixed tbody {
  height: 230px;
  overflow-y: auto;
  width: 100%;
}
.table-fixed thead,
.table-fixed tbody,
.table-fixed tr,
.table-fixed td,
.table-fixed th {
  display: block;
}
.table-fixed tbody td,
.table-fixed thead > tr > th {
  float: left;
  border-bottom-width: 0;
}

.box {
  position: relative;
  border-radius: 3px;
  background: #ffffff;
  border-top: 3px solid #d2d6de;
  margin-bottom: 20px;
  width: 100%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.box.box-primary {
  border-top-color: #2c2e61;
}

.box-footer {
  display: block;
}

.box .nav-stacked > li {
  border-bottom: 1px solid #f4f4f4;
  margin: 0;
}
.box.height-control .box-body {
  max-height: 300px;
  overflow: auto;
}

.box-header:before,
.box-body:before,
.box-footer:before,
.box-header:after,
.box-body:after,
.box-footer:after {
  content: " ";
  display: table;
}

.box-header:after,
.box-body:after,
.box-footer:after {
  clear: both;
}

.box-header {
  color: #444;
  display: block;
  padding: 10px;
  position: relative;
}
.box-header.with-border {
  border-bottom: 1px solid #f4f4f4;
}

.collapsed-box .box-header.with-border {
  border-bottom: none;
}

.box-header > .fa,
.box-header > .glyphicon,
.box-header > .ion {
  display: inline-block;
  font-size: 18px;
  margin: 0;
  line-height: 1;
}
.box-header .box-title {
  display: inline-block;
  font-size: 18px;
  margin: 0;
  line-height: 1;
}
.box-header > .fa,
.box-header > .glyphicon,
.box-header > .ion {
  margin-right: 5px;
}
.box-header > .box-tools {
  position: absolute;
  right: 10px;
  top: 5px;
}
.box-header > .box-tools.pull-right .dropdown-menu {
  right: 0;
  left: auto;
}

.btn-box-tool {
  padding: 5px;
  font-size: 12px;
  background: transparent;
  color: #97a0b3;
}

.open .btn-box-tool {
  color: #606c84;
}

.btn-box-tool:hover {
  color: #606c84;
}
.btn-box-tool.btn:active {
  box-shadow: none;
}

.box-body {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  padding: 10px;
}

.no-header .box-body {
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
}

.box-body > .table {
  margin-bottom: 0;
}
.box-body .fc {
  margin-top: 5px;
}
.box-body .full-width-chart {
  margin: -19px;
}
.box-body.no-padding .full-width-chart {
  margin: -9px;
}
.box-body .box-pane {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 3px;
}
.box-body .box-pane-right {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 0;
}

.box-footer {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  border-top: 1px solid #f4f4f4;
  padding: 10px;
  background-color: #fff;
}

.direct-chat-info-2nd-line {
  font-size: 14px;
}

.direct-chat .box-body {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  position: relative;
  overflow-x: hidden;
  padding: 0;
}

.direct-chat-messages {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -o-transform: translate(0, 0);
  transform: translate(0, 0);
  padding: 10px;
  height: 250px;
  overflow: auto;
}

.direct-chat-msg,
.direct-chat-text {
  display: block;
}

.direct-chat-msg {
  margin-bottom: 10px;
}
.direct-chat-msg:before {
  content: " ";
  display: table;
}
.direct-chat-msg:after {
  content: " ";
  display: table;
  clear: both;
}

.direct-chat-messages,
.direct-chat-contacts {
  -webkit-transition: -webkit-transform 0.5s ease-in-out;
  -moz-transition: -moz-transform 0.5s ease-in-out;
  -o-transition: -o-transform 0.5s ease-in-out;
  transition: transform 0.5s ease-in-out;
}

.direct-chat-text {
  font-size: 14px;
  line-height: 18px;
  border-radius: 5px;
  position: relative;
  padding: 5px 10px;
  background: #d2d6de;
  border: 1px solid #d2d6de;
  margin: 5px 0 0 50px;
  color: #444;
}
.direct-chat-text:after,
.direct-chat-text:before {
  position: absolute;
  right: 100%;
  top: 15px;
  border: solid transparent;
  border-right-color: #d2d6de;
  content: " ";
  height: 0;
  width: 0;
  pointer-events: none;
}
.direct-chat-text:after {
  border-width: 5px;
  margin-top: -5px;
}
.direct-chat-text:before {
  border-width: 6px;
  margin-top: -6px;
}

.right .direct-chat-text {
  margin-right: 50px;
  margin-left: 0;
}
.right .direct-chat-text:after,
.right .direct-chat-text:before {
  right: auto;
  left: 100%;
  border-right-color: transparent;
  border-left-color: #d2d6de;
}

.direct-chat-img {
  border-radius: 50%;
  float: left;
  width: 40px;
  height: 40px;
}

.right .direct-chat-img {
  float: right;
}

.direct-chat-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
  font-size: 12px;
}

.direct-chat-name {
  font-weight: 600;
}

.direct-chat-cur-influence {
  font-weight: 300;
}

.direct-chat-timestamp {
  color: #999;
}

.direct-chat-contacts-open .direct-chat-contacts {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  -o-transform: translate(0, 0);
  transform: translate(0, 0);
}

.table-secondary td {
  vertical-align: top;
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
}

.date-field-container,
.time-field-container,
.search-field-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 2px;
  padding: 0;
}

.search-field-container {
  align-items: flex-start;
  width: 100%;
}

.date-field-container {
  align-items: flex-start;
  padding-left: 0;
  width: 100%;
}

.time-field-container {
  align-items: flex-start;
  padding-left: 0;
  width: 100%;
}

.date-input,
.time-input {
  height: 24px !important;
  border: 1px solid #ccc;
  padding: 4px 8px !important;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 12px !important;
  width: 100%;
}

.date-input:focus,
.time-input:focus,
.search-input:focus {
  border-color: #2c2e61;
  outline: 0;
  box-shadow: 0 0 0 0.1rem rgba(44, 46, 97, 0.25);
}

.search-input {
  background-image: url(../images/loupe1.svg);
  background-position: 3px center;
  background-repeat: no-repeat;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  padding: 0.15rem 0.3rem 0.15rem 1.2rem;
  font-size: 0.7rem;
  width: 100%;
  height: 18px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.2s;
  box-sizing: border-box;
}

.search-input:focus {
  border-color: #2c2e61;
  outline: 0;
  box-shadow: 0 0 0 0.1rem rgba(44, 46, 97, 0.25);
  background-color: #fff;
}

.clear-search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #999;
  cursor: pointer;
  display: none;
  font-weight: normal;
  z-index: 5;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 14px;
}

.search-field-container input[type="text"]:not(:placeholder-shown) + .clear-search-button {
  display: block;
}

.clear-search-button:hover {
  color: #f44336;
}

.quick-search-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.date-time-section {
  display: flex;
  margin-left: 10px;
}

.date-field, .time-field {
  margin-right: 10px;
}

.date-input, .time-input {
  height: 36px;
  border: 1px solid #ccc;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.date-input:focus, .time-input:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
  outline: none;
}

.filter-buttons {
  display: flex;
  margin-left: auto;
}

.filter-button {
  background-color: #f1f1f1;
  border: none;
  color: #333;
  padding: 8px 15px;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button:hover {
  background-color: #e0e0e0;
}

.filter-button.active {
  background-color: #4A90E2;
  color: white;
}

.filter-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .filter-box {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .quick-search-box {
    width: 100%;
    margin-bottom: 15px;
  }
  
  .filter-buttons {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  
  .search-field-container {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .search-field-container input[type="text"] {
    width: 100%;
  }
  
  .date-time-section {
    width: 100%;
    margin-left: 0;
  }
}

.clear-date-button,
.clear-time-button {
  cursor: pointer;
  font-size: 12px;
  color: #6c757d;
  background-color: #f0f0f0;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 0;
  transition: all 0.2s ease;
}

.clear-date-button:hover,
.clear-time-button:hover {
  color: #fff;
  background-color: #dc3545;
}

.date-control-btn,
.time-control-btn {
  display: flex;
  justify-content: center;
  margin-top: 4px;
  height: 16px;
}

.search-field-container input[type="text"].quick-search-input {
  height: 24px !important;
  border: 1px solid #ccc;
  padding: 4px 8px !important;
  border-radius: 4px;
  width: 100%;
  transition: all 0.3s ease;
  font-size: 12px !important;
}

#date-time-filters-dropdown {
  position: absolute; 
  background-color: #f9f9f9; 
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); 
  padding: 10px; 
  z-index: 1000;
  border-radius: 4px;
  margin-top: 5px;
  left: 0;
  width: 220px;
  min-width: 200px;
  top: 100%;
  border: 1px solid #d6b56c;
}

.date-time-toggle-cell {
  position: relative;
  width: 16.66% !important;
  text-align: right;
  padding-right: 15px !important;
}

.search-panel-wrapper {
  position: relative;
  z-index: auto;
}

.search-fields {
  padding-top: 2px;
  padding-bottom: 2px;
  background-color: #f4f6fa;
  margin-bottom: 2px;
  z-index: 90;
  position: relative;
}

.clear-filters-btn {
  position: absolute !important;
  top: 4px;
  right: 6px;
  z-index: 100;
  width: 24px;
  height: 24px;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px !important;
  font-weight: bold;
  background-color: #d6b56c !important;
  border-color: #d6b56c !important;
  color: #2c2e61 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}

.clear-filters-btn:hover {
  background-color: #c5a65c !important;
  transform: scale(1.05);
}

.clear-filters-btn:active {
  transform: scale(0.95);
}

.search-fields .combo {
  height: 16px;
  margin-top: 1px;
  margin-bottom: 1px;
}

.search-fields .table-secondary td {
  padding-top: 0;
  padding-bottom: 0;
  height: 20px;
}

.search-fields .table {
  margin-bottom: 0;
  table-layout: fixed;
  width: 100%;
}

.search-fields thead {
  height: auto;
  display: table-header-group;
  width: 100%;
}

.search-fields thead tr {
    display: table-row;
    width: 100%;
}

.search-fields thead td {
    vertical-align: middle !important;
    padding: 1px 2px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.search-fields thead {
  height: auto;
}

#toggle-date-time-filters {
  margin: 0 auto 0 0;
  display: block;
  font-size: 10px;
  white-space: nowrap;
  background-color: #d6b56c;
  border-color: #d6b56c;
  color: #2c2e61;
  text-align: left;
  justify-self: flex-start;
}

#toggle-date-time-filters:hover {
  background-color: #c5a65c;
  border-color: #c5a65c;
  color: #2c2e61;
}

#toggle-date-time-filters.active {
  background-color: #2c2e61 !important;
  border-color: #2c2e61 !important;
  color: #e1e4eb !important;
}

#toggle-filters-main, #toggle-filters-signals, #renew, #renew-for-signals-tab, 
#reset-sort-main, #reset-sort-signals, #clear-column-filters-main, #clear-column-filters-signals {
  background-color: #d6b56c !important;
  border-color: #d6b56c !important;
  color: #2c2e61 !important;
  transition: all 0.3s ease;
}

#toggle-filters-main:hover, #toggle-filters-signals:hover, #renew:hover, #renew-for-signals-tab:hover,
#reset-sort-main:hover, #reset-sort-signals:hover, #clear-column-filters-main:hover, #clear-column-filters-signals:hover {
  background-color: #c5a65c !important;
  border-color: #c5a65c !important;
}

#toggle-filters-main.active, #toggle-filters-signals.active, #renew.active, #renew-for-signals-tab.active,
#reset-sort-main.active, #reset-sort-signals.active {
  background-color: #2c2e61 !important;
  border-color: #2c2e61 !important;
  color: #e1e4eb !important;
}

.date-field-container, .time-field-container {
  margin-bottom: 8px;
  position: relative;
  width: 100%;
}

.date-input, .time-input {
  border: 1px solid #d6b56c;
  padding-right: 30px !important;
  width: 100%;
}

.date-clear-btn, .time-clear-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #6c757d;
  background: none;
  border: none;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.date-clear-btn:hover, .time-clear-btn:hover {
  color: #dc3545;
}

.filters-buttons-container {
  background-color: #f4f6fa;
  border-radius: 4px;
  padding: 8px 12px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin: 0 0 0 0 !important;
  border-bottom: 1px solid #dee2e6;
}

.search-fields thead td.col-0 {
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.search-fields thead td select.combo {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 1px 2px !important;
  box-sizing: border-box !important;
  text-align: left;
}

.search-fields table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100% !important;
}

#toggle-date-time-filters {
  margin: 0 auto;
  display: block;
  font-size: 10px;
  white-space: nowrap;
}

.btn-chess-icon {
  font-size: 24px !important;
  font-weight: 900 !important;
  padding: 6px 10px !important;
  margin: 0 4px !important;
  border: none !important;
  background: transparent !important;
  color: #2c2e61 !important;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 6px;
  text-shadow: 0 1px 2px rgba(44, 46, 97, 0.3);
}

.btn-chess-icon:hover {
  background-color: rgba(44, 46, 97, 0.15) !important;
  color: #2c2e61 !important;
  transform: scale(1.15);
  text-shadow: 0 2px 4px rgba(44, 46, 97, 0.4);
}

.btn-chess-icon:active {
  transform: scale(0.95);
}

.btn-chess-icon:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(44, 46, 97, 0.3);
}

tbody .ID,
tbody .Date,
tbody .clmn {
  min-width: 45px;
}

.simplebar-scrollbar:before {
  background: linear-gradient(180deg, #2c2e61 0%, #4a4d8a 100%) !important;
  border-radius: 6px !important;
  opacity: 0.4 !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(44, 46, 97, 0.2) !important;
}

.simplebar-scrollbar.simplebar-visible:before {
  opacity: 0.8 !important;
  transform: scaleX(1.1) !important;
}

.simplebar-track.simplebar-vertical {
  background: rgba(225, 228, 235, 0.3) !important;
  border-radius: 6px !important;
  width: 8px !important;
  right: 2px !important;
}

.simplebar-track.simplebar-vertical:hover .simplebar-scrollbar:before {
  opacity: 1 !important;
  background: linear-gradient(180deg, #d6b56c 0%, #c5a05c 100%) !important;
  transform: scaleX(1.2) !important;
}

/* ========================================
   ДАННЫЕ ТАБЛИЦ - 60% нейтральные
   ======================================== */

tbody {
  display: block;
  max-height: 280px; /* Унифицированная высота */
  overflow-y: auto;
  font-family: var(--font-family);
  font-style: normal;
  font-weight: normal;
  font-size: var(--font-size-xs); /* 10px */
  line-height: var(--line-height-tight); /* 1.2 */
  color: var(--text-secondary); /* 60% - вторичный текст */
  text-indent: initial;
  transition: var(--transition-normal);
  position: relative;
}

tbody:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(180deg, rgba(225, 228, 235, 0.8) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

tbody:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(0deg, rgba(225, 228, 235, 0.8) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

tbody.scrolled-top:before {
  opacity: 1;
}

tbody.scrolled-bottom:after {
  opacity: 1;
}

/* ========================================
   СОСТОЯНИЯ И ИНТЕРАКТИВНОСТЬ - 10% акцентные + золотая палитра
   ======================================== */

.table .sline:hover {
  background: linear-gradient(
      0deg,
      var(--interactive-hover-light), /* Золотой брендовый с небольшой прозрачностью */
      var(--interactive-hover-gradient)       /* Градиентный hover */
    ),
    var(--neutral-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--interactive-hover-shadow); /* Золотая тень */
  transition: var(--transition-fast);
  border-left: 3px solid var(--interactive-bg); /* Золотая левая граница */
}

/* Дополнительный эффект для improved UX */
.table .sline:hover td {
  color: var(--brand-primary); /* Темно-синий текст для контраста */
  font-weight: 500;
}

.active {
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  outline: 2px solid var(--brand-primary); /* 30% - брендовый для активного элемента */
  background: linear-gradient(
      0deg,
      rgba(44, 46, 97, 0.1), /* 30% - брендовый с прозрачностью */
      rgba(44, 46, 97, 0.1)
    ),
    var(--neutral-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  transition: var(--transition-normal);
}

@media (max-width: 768px) {
  tbody {
    position: relative;
  }
  
  tbody:before {
    height: 12px;
  }
  
  tbody:after {
    height: 12px;
  }
  
  .simplebar-track.simplebar-vertical {
    width: 12px !important;
    right: 0 !important;
  }
  
  .simplebar-scrollbar:before {
    border-radius: 8px !important;
  }
}

.signals-pannel-for-signals-tab tbody {
  max-height: 280px;
}

/* Высота таблиц на остальных вкладках такая же, как на вкладке Signals */
.signals-pannel tbody {
  max-height: 280px;
}

.simplebar-track {
  opacity: 0;
  transition: opacity 0.3s ease;
}

tbody:hover .simplebar-track,
.simplebar-track.simplebar-visible {
  opacity: 1;
}

/* Увеличенные строки для вкладки Signals - размер в 2.5 раза больше */
.signals-pannel-for-signals-tab tbody td {
  height: 50px;
  padding: 5px 5px;
  font-size: 12px;
  line-height: 16px;
  vertical-align: middle !important;
  color: #757575 !important;
  background-color: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* НАСТРОЕННОЕ РЕШЕНИЕ ДЛЯ ВКЛАДКИ SIGNALS (7 колонок) - TF уменьшен, Actions увеличен */
.signals-pannel-for-signals-tab thead th {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.signals-pannel-for-signals-tab thead th:nth-child(1) { flex: 0 0 14.28% !important; } /* ID */
.signals-pannel-for-signals-tab thead th:nth-child(2) { flex: 0 0 14.28% !important; } /* Set */
.signals-pannel-for-signals-tab thead th:nth-child(3) { flex: 0 0 14.28% !important; } /* Symbol */
.signals-pannel-for-signals-tab thead th:nth-child(4) { flex: 0 0 14.28% !important; } /* Model */
.signals-pannel-for-signals-tab thead th:nth-child(5) { flex: 0 0 7.14% !important; }  /* TF - уменьшено в 2 раза */
.signals-pannel-for-signals-tab thead th:nth-child(6) { flex: 0 0 14.28% !important; } /* AI prediction */
.signals-pannel-for-signals-tab thead th:nth-child(7) { flex: 0 0 21.42% !important; } /* Actions - увеличено */

.signals-pannel-for-signals-tab tbody td {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.signals-pannel-for-signals-tab tbody td:nth-child(1) { flex: 0 0 14.28% !important; } /* ID */
.signals-pannel-for-signals-tab tbody td:nth-child(2) { flex: 0 0 14.28% !important; } /* Set */
.signals-pannel-for-signals-tab tbody td:nth-child(3) { flex: 0 0 14.28% !important; } /* Symbol */
.signals-pannel-for-signals-tab tbody td:nth-child(4) { flex: 0 0 14.28% !important; } /* Model */
.signals-pannel-for-signals-tab tbody td:nth-child(5) { flex: 0 0 7.14% !important; }  /* TF - уменьшено в 2 раза */
.signals-pannel-for-signals-tab tbody td:nth-child(6) { flex: 0 0 14.28% !important; } /* AI prediction */
.signals-pannel-for-signals-tab tbody td:nth-child(7) { flex: 0 0 21.42% !important; } /* Actions - увеличено */

.signals-pannel-for-signals-tab .search-fields thead td {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.signals-pannel-for-signals-tab .search-fields thead td:nth-child(1) { flex: 0 0 14.28% !important; } /* ID */
.signals-pannel-for-signals-tab .search-fields thead td:nth-child(2) { flex: 0 0 14.28% !important; } /* Set */
.signals-pannel-for-signals-tab .search-fields thead td:nth-child(3) { flex: 0 0 14.28% !important; } /* Symbol */
.signals-pannel-for-signals-tab .search-fields thead td:nth-child(4) { flex: 0 0 14.28% !important; } /* Model */
.signals-pannel-for-signals-tab .search-fields thead td:nth-child(5) { flex: 0 0 7.14% !important; }  /* TF - уменьшено в 2 раза */
.signals-pannel-for-signals-tab .search-fields thead td:nth-child(6) { flex: 0 0 14.28% !important; } /* AI prediction */
.signals-pannel-for-signals-tab .search-fields thead td:nth-child(7) { flex: 0 0 21.42% !important; } /* Actions - увеличено */

/* Специальные правила для выравнивания выпадающих списков с колонками основных вкладок */
.signals-pannel .search-fields thead td:nth-child(1) select.combo { width: 100% !important; } /* # */
.signals-pannel .search-fields thead td:nth-child(2) select.combo { width: 100% !important; } /* ID */
.signals-pannel .search-fields thead td:nth-child(3) select.combo { width: 100% !important; } /* Date */
.signals-pannel .search-fields thead td:nth-child(4) select.combo { width: 100% !important; } /* Time */
.signals-pannel .search-fields thead td:nth-child(5) select.combo { width: 100% !important; } /* Age */
.signals-pannel .search-fields thead td:nth-child(6) select.combo { width: 100% !important; } /* Symbol */
.signals-pannel .search-fields thead td:nth-child(7) select.combo { width: 100% !important; } /* Model */
.signals-pannel .search-fields thead td:nth-child(8) select.combo { width: 100% !important; } /* TF */
.signals-pannel .search-fields thead td:nth-child(9) select.combo { width: 100% !important; } /* P6 */
.signals-pannel .search-fields thead td:nth-child(10) select.combo { width: 100% !important; } /* P6" */
.signals-pannel .search-fields thead td:nth-child(11) select.combo { width: 100% !important; } /* auxP6 */
.signals-pannel .search-fields thead td:nth-child(12) select.combo { width: 100% !important; } /* auxP6' */
.signals-pannel .search-fields thead td:nth-child(13) select.combo { width: 100% !important; } /* TL */
.signals-pannel .search-fields thead td:nth-child(14) select.combo { width: 100% !important; } /* Comm */

/* Убираем flexbox для ячеек с выпадающими списками, чтобы они правильно выравнивались */
.search-fields thead td.filter-cell {
  display: table-cell !important;
  vertical-align: middle !important;
  text-align: center !important;
  padding: 1px 2px !important;
}

/* Альтернативный способ - переопределяем для всех ячеек с select */
.search-fields thead td {
  display: table-cell !important;
  vertical-align: middle !important;
  text-align: left !important;
  padding: 1px 2px !important;
}

/* Специальное выравнивание для ячейки с Date/Time Filters */
.search-fields thead td:nth-child(3) {
  text-align: left !important;
  padding-left: 0 !important;
}

/* Специальные стили для таблиц в Analysis tab */
#analysisContent .table {
  table-layout: fixed !important;
  width: 100% !important;
}

#analysisContent .table thead {
  display: table-header-group !important;
  width: 100% !important;
}

#analysisContent .table thead tr {
  display: table-row !important;
  width: 100% !important;
}

#analysisContent .table thead th {
  display: table-cell !important;
  vertical-align: middle !important;
  text-align: center !important;
  padding: 8px 4px !important; /* Как у основных таблиц */
  border: 1px solid #dee2e6 !important;
  background-color: #f8f9fa !important; /* Как у основных таблиц */
  color: #2c2e61 !important;
  font-weight: 600 !important;
  font-size: 12px !important; /* Точно как у основных таблиц */
  line-height: 13px !important; /* Точно как у основных таблиц */
}

#analysisContent .table tbody {
  display: table-row-group !important;
  width: 100% !important;
}

#analysisContent .table tbody tr {
  display: table-row !important;
  width: 100% !important;
}

#analysisContent .table tbody td {
  display: table-cell !important;
  vertical-align: middle !important;
  text-align: center !important;
  padding: 6px 4px !important; /* Как у основных таблиц */
  border: 1px solid #dee2e6 !important;
  font-size: 12px !important; /* Стандартный размер данных */
  color: #2c2e61 !important;
}

/* Специфичные ширины колонок для таблиц Analysis (6 колонок) */
#analysisContent .table thead th:nth-child(1) { width: 15% !important; } /* ID */
#analysisContent .table thead th:nth-child(2) { width: 15% !important; } /* Type */
#analysisContent .table thead th:nth-child(3) { width: 15% !important; } /* Timeframe */
#analysisContent .table thead th:nth-child(4) { width: 20% !important; } /* Pair */
#analysisContent .table thead th:nth-child(5) { width: 15% !important; } /* Base Bar */
#analysisContent .table thead th:nth-child(6) { width: 20% !important; } /* Action */

#analysisContent .table tbody td:nth-child(1) { width: 15% !important; } /* ID */
#analysisContent .table tbody td:nth-child(2) { width: 15% !important; } /* Type */
#analysisContent .table tbody td:nth-child(3) { width: 15% !important; } /* Timeframe */
#analysisContent .table tbody td:nth-child(4) { width: 20% !important; } /* Pair */
#analysisContent .table tbody td:nth-child(5) { width: 15% !important; } /* Base Bar */
#analysisContent .table tbody td:nth-child(6) { width: 20% !important; } /* Action */

/* Увеличенные отступы в блоке информации о модели */
#analysisContent .alert-info {
  line-height: 1.8 !important;
  padding: 20px !important;
}

#analysisContent .alert-info strong {
  display: inline-block;
  margin-bottom: 8px;
}

#analysisContent .alert-info br {
  margin-bottom: 8px;
}

/* Дополнительные отступы между строками информации */
#analysisContent .alert-info > strong:not(:first-child) {
  margin-top: 12px;
}

/* Простой hover как у основных таблиц */
#analysisContent .table tbody tr:hover {
  background-color: rgba(214, 181, 108, 0.1) !important; /* Легкий брендовый hover */
}

/* Специальные стили для иконки диалога в заголовке Comm */
.comm-icon {
  font-size: 14px !important;
  color: #2c2e61 !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(44, 46, 97, 0.3);
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
}

.comm-icon:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 8px;
  border: 2px solid #2c2e61;
  border-radius: 3px;
  background: transparent;
}

.comm-icon:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 2px;
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid #2c2e61;
}

/* Back to Top Button - СДЕЛАНА ВИДИМОЙ! */
.back-to-top {
    position: fixed;
    bottom: var(--space-6); /* 24px */
    right: var(--space-6); /* 24px */
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-light) 100%);
    color: var(--neutral-white);
    border: 2px solid var(--interactive-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 1; /* СДЕЛАНО ВИДИМЫМ ВСЕГДА */
    visibility: visible; /* СДЕЛАНО ВИДИМЫМ ВСЕГДА */
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    user-select: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #4a4d8a 0%, #2c2e61 100%);
    border-color: #e1c76c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 46, 97, 0.4);
    color: #e1e4eb;
    text-decoration: none;
}

.back-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(44, 46, 97, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Enhanced hover класс для JavaScript интеграции */
.table .sline.enhanced-hover {
  background: linear-gradient(
      0deg,
      var(--interactive-hover-light),
      var(--interactive-hover-gradient)
    ), var(--neutral-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px var(--interactive-hover-shadow);
  border-left: 3px solid var(--interactive-bg);
  transition: var(--transition-fast);
}

.table .sline.enhanced-hover td {
  color: var(--brand-primary);
  font-weight: 500;
}

.search-input::placeholder {
  color: #8a92b2;
  opacity: 1;
  font-weight: 400;
}

/* Unified font for Search ID and Deep Search */
#search-input-main,
#search-input-deep {
  font-family: var(--font-family, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif) !important;
  font-size: 0.85rem !important;
  font-weight: 400;
  line-height: 1.2 !important;
}

/* Trading Agents Monitoring: search input styling aligned with Search ID */
#botsSearch {
  font-family: var(--font-family, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  font-size: 0.85rem;
}
#botsSearch::placeholder {
  color: #8a92b2;
  opacity: 1;
  font-weight: 400;
}

/* Trading Agents Monitoring — align fonts with accordion */
#headingMonitoring .accordion-button,
#collapseMonitoring .accordion-body,
#collapseMonitoring .form-control,
#collapseMonitoring .btn,
#collapseMonitoring .bot-card,
#collapseMonitoring .bot-card *,
#externalMonitoringPanel,
#externalMonitoringPanel * {
  font-family: var(--font-family, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif) !important;
  font-size: var(--font-size-sm, 14px) !important;
  line-height: var(--line-height-normal, 1.5) !important;
}

/* Trading Ideas Drawer */

.mp-drawer__panel {
	--drawer-width: 520px;
	position: fixed;
	top: 0;
	right: 0;
	height: 100vh;
	width: var(--drawer-width);
	max-width: 100vw;
	background: #ffffff;
	box-shadow: -4px 0 16px rgba(0,0,0,0.2);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	z-index: 2500;
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--border-light);
}

.mp-drawer__panel.open {
	transform: translateX(0);
}


.mp-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	height: 44px;
	padding: 6px 8px;
	background: var(--brand-primary);
	color: #fff;
}

.mp-drawer__nav {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border-bottom: 1px solid var(--border-light);
	background: #fafafa;
}

.mp-drawer__nav-buttons .btn {
	margin-right: 4px;
}

.mp-drawer__title {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.mp-drawer__width-controls .btn {
	display: none;
}

.mp-drawer__close {
	border-color: rgba(255,255,255,0.35) !important;
	color: #fff !important;
}

.mp-drawer__content {
	flex: 1 1 auto;
	min-height: 0;
	padding: 0;
	overflow: hidden;
}

#mpDrawerFrame {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Drawer width presets */
@media (min-width: 769px) {
	.mp-drawer__panel.width-S { --drawer-width: 420px; }
	.mp-drawer__panel.width-M { --drawer-width: 520px; }
	.mp-drawer__panel.width-L { --drawer-width: 680px; }
	.mp-drawer__panel.width-XL { --drawer-width: 820px; }
	.mp-drawer__panel.width-XXL { --drawer-width: 980px; }
}

@media (max-width: 768px) {
	.mp-drawer__panel { --drawer-width: 100vw; }
	.mp-drawer__width-controls { display: none; }
}

/* Trading Ideas nav buttons */
.ti-nav-btn.active {
	background-color: #2c2e61 !important;
	border-color: #2c2e61 !important;
	color: #e1e4eb !important;
}

.ti-width-btn.active {
	background-color: #d6b56c !important;
	border-color: #d6b56c !important;
	color: #2c2e61 !important;
}

/* Big Ideabox card button in accordion */
.ti-ideabox-card {
	background: #ffffff;
	border: 1px solid var(--border-light);
	border-radius: 8px;
	padding: 32px 40px !important;
	box-shadow: 0 2px 8px rgba(44,46,97,0.12);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ti-ideabox-card img {
	height: 80px;
	display: block;
}
.ti-ideabox-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(44,46,97,0.18);
}