  /* LAYOUT STYLES */
  /* Auto-extracted on 11/13/2025, 10:46:44 PM */
  /* From: index.ejs */
.ssr-badge {
  background: #ff6b6b;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 10px;
}

.search-container {
  margin: 20px 0;
}

#search {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}

.stats-bar {
  background: #e9ecef;
  padding: 10px;
  border-radius: 6px;
  margin: 10px 0;
  font-size: 14px;
}

.loading {
  display: none;
  text-align: center;
  padding: 10px;
  color: #666;
}

  /* Unclassified from views/pages/index.ejs */
  /* ОСНОВНЫЕ СТИЛИ */
  /* 🔥 ОСНОВНОЙ КОНТЕЙНЕР ТАБЛИЦЫ */
  /* 🔥 ТАБЛИЦА */
  /* 🔥 ЗАГОЛОВОК ПРИЛИПАЕТ ВНУТРИ КОНТЕЙНЕРА */
  /* Групповые заголовки */
  /* Нижний ряд заголовков */
  /* ОБЩИЕ СТИЛИ ЯЧЕЕК */
th {
  cursor: pointer;
  user-select: none;
}

th:hover {
  background: #e9ecef;
}

  th
  th
  /* ЦВЕТА ДЛЯ ЦЕН И ДОХОДНОСТЕЙ */
  /* ВИРТУАЛИЗАЦИЯ */
  /* Стили для спиннера */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

  /* Стиль для кликабельной цены */
  /* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ГРАФИКА */
.close {
  color: #bbb;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
}

  /* Информационная панель */
  /* Y-axis label */
.y-axis-price {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.y-axis-change {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 2px;
}

  /* Loading indicator */
  /* Debug info */
  /* Responsive */
@media (max-width: 768px) {
}

@media (max-width: 480px) {
}

  /* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ДИАГНОСТИКИ */
.diagnosis-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}

.diagnosis-modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 0;
  border-radius: 12px;
  width: 95%;
  max-width: 1200px;
  height: 90%;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}

.diagnosis-modal-header {
    padding: 16px 20px; /* Отступы */
    background-color: #3a3a3a; /* Цвет фона заголовка */
    border-bottom: 1px solid #555; /* Граница снизу */
    border-radius: 8px 8px 0 0; /* Скругление только сверху */
    display: flex; /* Flex для заголовка и кнопки */
    justify-content: space-between; /* Заголовок слева, кнопка справа */
    align-items: center; /* Центрирование по вертикали */
    flex-shrink: 0; /* Не сжимаем заголовок */
}

.diagnosis-modal-title {
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.diagnosis-close {
  color: white;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.diagnosis-close:hover {
  background-color: rgba(255,255,255,0.2);
}

.diagnosis-modal-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#diagnosis-frame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 12px 12px;
}

.diagnosis-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 16px;
  color: #666;
  gap: 10px;
}

  /* Стиль для кликабельных кодов бумаг */
  /* Адаптивность */
@media (max-width: 768px) {
.diagnosis-modal-content {
  width: 98%;
  height: 85vh;
  margin: 1% auto;
}

.diagnosis-modal-header {
  padding: 16px 20px;
}

.diagnosis-modal-title {
  font-size: 18px;
}

}

  /* Стили для таблицы истории купонов */
  /* Адаптивность для таблицы */
@media (max-width: 768px) {
  .coupon-table
}

  /* From: calendar.ejs */
  /* Unclassified from views/pages/calendar.ejs */
  /* СТИЛИ ДЛЯ ТАБЛИЦЫ В КАЛЕНДАРЕ */
  /* ЦВЕТА ДЛЯ ЦЕН И ДОХОДНОСТЕЙ */
  /* Стили для заголовков столбцов */
  /* Стили для отладки */
  /* Кнопка сброса выбора дня */
  /* Информация о режиме просмотра */
  /* From: bond-diagnosis.ejs */
  /* Unclassified from views/pages/bond-diagnosis.ejs */
  /* Стили для таблицы истории купонов */
  /* From: main.ejs */
.ssr-badge {
  background: #4CAF50;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  margin-left: 5px;
}

  /* Unclassified from views/layouts/main.ejs */
.version-switcher {
  background: #e8f4fd;
  padding: 12px;
  margin: 0 0 20px 0;
  border-bottom: 2px solid #3498db;
  text-align: center;
}

/* Добавь в CSS */
th[data-sort].active-sort {
    background-color: #e3f2fd;
    font-weight: bold;
}

th[data-sort].sort-asc::after {
    content: " ↑";
}

th[data-sort].sort-desc::after {
    content: " ↓";
}

th[data-sort] {
    cursor: pointer;
    transition: background-color 0.2s;
}

th[data-sort]:hover {
    background-color: #f5f5f5;
}

/* Layout элементы */
.version-switcher {
    font-family: var(--font-primary);
    font-weight: 600;
}

.search-container, #search {
    font-family: var(--font-primary);
}

.stats-bar {
    font-family: var(--font-primary);
}

.loading {
    font-family: var(--font-primary);
}

.ssr-badge {
    font-family: var(--font-primary);
    font-weight: 500;
}