
  /* Общий стиль для контейнера */
  .container {
    max-width: auto;
    margin: 50px auto;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  /* Стиль меток формы */
  .form-label {
    font-weight: bold;
  }

  /* Стиль первичной кнопки */
  .btn-primary {
    background-color: #007bff;
    border: none;
  }

  /* Стиль для широкого контейнера */
  .container-wide {
    max-width: 75%;
  }

  /* Стиль для контейнера управления пользователями */
  .manage-users-container {
    max-width: 95%;
    margin: auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }

  /* Стиль для таблицы управления пользователями */
  .manage-users-table {
    width: 100%;
    border-collapse: collapse;
  }

  .manage-users-table th,
  .manage-users-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
  }

  .manage-users-table th {
    background-color: #eee;
  }

  .cellEditing input {
    width: 100%;
    border: none;
    background-color: #f3f3f3;
}

/* Стили для редактирования ячеек */
.cellEditing {
    background-color: #dff0d8;
}

/* Ограничение длины текста в элементах select с классом custom-select */
.custom-select option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 35ch;
}

/* Стиль для кнопки Показать/Скрыть */
.toggle-button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.toggle-button i {
  margin-right: 10px;
}

/* Стиль для кнопки Показать/Скрыть при наведении */
.toggle-button:hover {
  background-color: #45a049;
}

.hide-column {
  display: none;
}



#dynamicTable_wrapper {
  overflow-x: auto;
}


.approval-expired {
  background-color: #ffcccc; /* Красный цвет для просроченных согласований */
}

@keyframes blinker {
  50% {
      background-color: #ffff99; /* Желтый цвет для мигания */
  }
}

.chart {
  position: relative;
  width: 100%; /* Задает ширину контейнера графика */
  height: 500px; /* Задает высоту контейнера графика */
  margin-top: 20px; /* Добавляет отступ сверху */
}

.hidden-row {
    opacity: 0.5 !important;
    background-color: #f8f9fa !important;
    text-decoration: line-through;
}

.hidden-row td {
    background-color: #f8f9fa !important;
}

.hideotherstable {
  display: none;
}

.align-with-search {
  display: inline-block;
  vertical-align: middle; /* Выравнивание по вертикали */
  margin-right: 10px;
}

.search-container {
  position: relative;
  display: inline-block;
  vertical-align: middle; /* Выравнивание по вертикали */
}

.search-input {
  border: 1px solid #ccc;
  padding: 6px 30px 6px 10px;
  border-radius: 20px; /* Скругленные углы для поля поиска */
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #555;
  cursor: pointer;
}

.btn-warning { /* Стили для кнопки архивирования */
  background-color: #ffc107;
  border-color: #ffc107;
}

.btn-warning:hover {
  background-color: #e0a800;
  border-color: #daa520;
}


.delete-chart {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: transparent;
  border: none;
  color: red;
  cursor: pointer;
  font-size: 16px; /* Размер шрифта */
  line-height: 20px; /* Высота линии */
  padding: 5px 10px; /* Отступы внутри кнопки */
}


.chart {
  position: relative;
  width: 100%; /* Немного уменьшим ширину для лучшего отображения */
  display: inline-block;
  margin: 0; /* Уберем отступы */
  padding: 0; /* Уберем внутренние отступы */
  vertical-align: top; /* Выравнивание по верхнему краю */
}

/* Стили для кнопок с иконками и далее 06.11.2024*/
.btn i {
  margin: 0;
  padding: 0;
  width: 16px;
  height: 16px;
}

.btn {
  padding: 6px 12px;
  margin: 0 2px;
}

/* Hover эффекты для кнопок */
.btn:hover {
  opacity: 0.9;
}

/* Выравнивание иконок внутри кнопок */
.btn i.fas {
  display: inline-block;
  vertical-align: middle;
}


.table-controls {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.table-controls .btn {
  padding: 0.5rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.table-controls .btn i {
  font-size: 1rem;
}

.custom-control {
  margin-right: 1rem;
}

.custom-control-label {
  cursor: pointer;
}

/* Hover эффекты */
.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Активный статус */
.btn:active {
  transform: translateY(1px);
}

/* Подсказки */
[title] {
  position: relative;
}

.input-readonly {
  border: none;
  background-color: transparent;
  pointer-events: none;
}

.input-readonly:focus {
  outline: none;
}

/* Стили для специфических типов input в readonly состоянии */
input[type="date"].input-readonly,
input[type="datetime-local"].input-readonly {
  -webkit-appearance: none;
  appearance: none;
}

select.input-readonly {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}


.dataTables_wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.dataTables_scroll {
  overflow: auto;
}

.dataTables_scrollHead {
  overflow: hidden;
  position: relative;
  border: 0px;
  width: 100%;
}

.dataTables_scrollBody {
  overflow: auto;
  width: 100%;
}

/* Предотвращаем схлопывание ширины при скролле */
.dataTables_scrollHead table {
  margin-bottom: 0 !important;
  width: 100% !important;
}

/* Стили для меню профиля пользователя */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-profile-menu {
  position: relative;
  padding: 0.5rem;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.profile-trigger:hover {
  background-color: #f8f9fa;
}

.avatar-container {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background-color: #007bff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.username {
  font-size: 14px;
  color: #495057;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}

.user-profile-menu:hover .profile-dropdown {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #212529;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  text-decoration: none;
}

.dropdown-divider {
  height: 1px;
  background-color: #dee2e6;
  margin: 0.5rem 0;
}

.notification-wrapper {
  position: relative;
  margin-right: 1rem;
}

.notification-badge {
  top: -5px;
  right: -5px;
}

.nav-link {
  color: #495057;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #007bff;
  text-decoration: none;
}

.text-danger {
  color: #dc3545;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Стили для уведомлений */
.notification-popup {
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.alert {
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

/* Стили названия таблицы в хэд таблицы */

.table-header {
  background-color: #fff;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #2c3e50;
  margin: 0;
  display: flex;
  align-items: center;
}

.table-title i {
  color: #3498db;
}

.table-title small {
  font-size: 0.875rem;
  margin-left: 1rem;
  color: #95a5a6;
}


/* Стили для аватара на профиль */

.avatar-container {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto;
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background-color: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  color: #6c757d;
}

.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 50%;
  padding: 8px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

.avatar-upload-btn:hover {
  background-color: #0056b3;
}

/* стили участников для "мои группы" в списке групп */
#membersModal .modal-lg {
  max-width: 700px;
}

#membersList {
  max-height: 60vh;
  overflow-y: auto;
}

#membersList .list-group-item {
  transition: all 0.2s ease;
}

#membersList .list-group-item:hover {
  background-color: #f8f9fa;
}

.member-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-info h6 {
  font-size: 1rem;
  font-weight: 500;
}

.member-info small {
  font-size: 0.85rem;
}

.badge-primary {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.25em 0.6em;
}

#memberSearch {
  padding-left: 40px;
}

.input-group-prepend {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 4;
}

.input-group-text {
  background: none;
  border: none;
  padding-left: 15px;
}

/* Стили для скроллбара */
#membersList::-webkit-scrollbar {
  width: 8px;
}

#membersList::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#membersList::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#membersList::-webkit-scrollbar-thumb:hover {
  background: #555;
}

[data-target="#additional-info"] {
  text-decoration: none;
  color: #6c757d;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

[data-target="#additional-info"]:hover {
  color: #495057;
}

[data-target="#additional-info"] i {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

#additional-info {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#additional-info.show {
  max-height: 500px; /* Достаточно большое значение для контента */
}

.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

/* Стили для tooltip */
.jstree-anchor[title] {
  position: relative;
  cursor: pointer;
}

.jstree-anchor[title]:hover::after {
  content: attr(title); /* Отображаем полное название */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 100%; /* Позиционируем над текстом */
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  display: none; /* По умолчанию скрыт */
}

.jstree-anchor[title]:hover::after {
  display: block; /* Показываем только при наведении */
}

#sidebar {
  transition: width 0.3s ease; /* Плавная анимация изменения ширины */
  overflow: hidden; /* Скрываем переполнение */
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

#sidebar.collapsed {
  width: 50px; /* Ширина свернутой панели */
}

#sidebar.collapsed .sidebar-header h1 {
  display: none; /* Скрываем заголовок */
}

#sidebar.collapsed .control-panel {
  display: none; /* Скрываем панель управления */
}

#sidebar.collapsed .jstree-anchor {
  display: none; /* Скрываем текстовые элементы дерева */
}

#sidebar.collapsed .resizer {
  display: none; /* Скрываем разделитель при сворачивании */
}

#resizer {
  width: 8px;
  cursor: ew-resize;
  background-color: #ddd;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}

.sidebar-header h1 i {
  margin-right: 10px; /* Отступ между иконкой и текстом */
  font-size: 24px;    /* Размер иконки */
}

/* Стили для tooltip */
.ui-tooltip {
  z-index: 10000;
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 5px;
  border-radius: 4px;
}

/* Стили для сокращения текста */
.jstree-anchor {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%; /* Текст будет сокращаться до ширины родительского элемента */
}

/* Стили для заголовка */
.sidebar-header h2 {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin: 0;
}

.sidebar-header h2 i {
  margin-right: 10px;
  font-size: 18px;
}

/* Стили для изменения размера колонок */
.resizable-column {
  position: relative;
  background-clip: padding-box;
  border-right: 2px solid transparent;
}

.resizable-column:hover {
  border-right: 2px solid #007bff;
  cursor: col-resize;
}

th.resizable-column::after {
  content: '';
  position: absolute;
  top: 0;
  right: -3px;
  width: 5px;
  height: 100%;
  cursor: col-resize;
  z-index: 10;
}

.calculation-row td {
  border-top: 2px solid #dee2e6 !important;
  border-bottom: 2px solid #dee2e6 !important;
}

.calculation-placeholder {
  display: inline-block;
  width: 100%;
  height: 1em;
  background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 5px,
      #e9ecef 5px,
      #e9ecef 10px
  );
}

/* Стили для окрашивания строки */
.color-palette-popup {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
}

.color-row {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.color-item {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-item:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #007bff;
}

/* Стили для вычисления */
/* .submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: white;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  min-width: 120px;
}

.menu-item:hover .submenu {
  display: block;
}

.submenu-item {
  padding: 8px 12px;
  cursor: pointer;
}

.submenu-item:hover {
  background: #f5f5f5;
}

.calculation-submenu {
  width: 200px;
  padding: 8px 0;

  .submenu-header {
      padding: 6px 12px;
      font-weight: 500;
      color: #666;
      border-bottom: 1px solid #eee;
      margin: 4px 0;
  }

  .submenu-item {
      position: relative;
      padding: 8px 32px 8px 12px;
      transition: background 0.2s;

      &.active::after {
          content: "✓";
          position: absolute;
          right: 8px;
          color: #007bff;
      }
  }
}

.menu-subsection {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: white;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  min-width: 120px;
  z-index: 10001 !important;
}

.menu-subsection:hover .submenu {
  display: block;
}

.custom-context-menu {
  z-index: 10000 !important;
}

 */

 /* ДОБАВИТЬ в CSS: */
.relation-highlight-target {
    background-color: rgba(255, 193, 7, 0.3) !important;
    border: 2px solid #ffc107 !important;
    animation: highlight-pulse 2s ease-in-out infinite;
}

@keyframes highlight-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

.relation-item {
    transition: all 0.2s ease;
}

.relation-item:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-xl .relation-item .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* Стили для приватных таблиц в списке таблиц (table_list) */
[data-private="true"] {
    border-left: 3px solid #ffc107;
}

.btn-toggle-privacy {
    transition: all 0.3s ease;
}