.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.fixed {
  position: sticky;
  position: -webkit-sticky;
  right: 0;
  top: 0;
  width: 130px;
  min-width: 130px;
  text-align: center;
  border-left: 1px solid #E8EBEF !important;
  z-index: 2;
  justify-content: center;
  background: #fff;
  align-items: center;
  box-shadow: -4px 0px 6px 0px #0000000A;
}

th, td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
  height: 80px;
}

th {
  cursor: pointer;
}

.resizable {
  cursor: ew-resize; /* Показ стрелки для изменения ширины */
}

.table-container {
  overflow-x: auto; /* Для горизонтальной прокрутки при изменении ширины */
}


.column-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  cursor: move; /* Устанавливаем курсор для перетаскивания */
}

.drag-handle {
  margin-right: 10px;
  font-size: 20px;
  cursor: move; /* Курсор для кнопки с тремя линиями */
}

/* Добавим стиль для заблокированных элементов, например для "Подвиды" */
.column-item[draggable="false"] .drag-handle {
  display: none; /* Прячем кнопку для "Подвидов" */
}

#apply-settings, #close-modal {
  margin-top: 20px;
}

.table__item-podvid {
  color: #01C383;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 0;
}
#settings-modal {
  display: none; /* Скрываем попап по умолчанию */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

thead, .fixedhead {
  background: var(--color-bg-additional);
}

thead th{
  padding: 15px 20px;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 400;
  color: #9CA5AD;
}

td {
  padding: 15px 20px;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 400;
  border-bottom: 1px solid #E8EBEF !important;
}

.table__item-names {
  display: flex;
  align-items: center;
  gap: 5px;
}

.custom-table button {
  border: none;
  background: transparent;
  margin: 0;
  padding: 0;
}
/* Убираем обводки у всей таблицы */
.custom-table {
  border: none;
  border-collapse: collapse; /* Для устранения промежутков между ячейками */
}

/* Убираем обводки у ячеек таблицы */
.custom-table th, .custom-table td {
  border: none;
}

thead {
  border: 1px solid #E8EBEF;
  border-radius: 8px 8px 0 0;
}

.table__flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subtypestd {
  padding: 0;
  padding-left: 0px;
}

.subtypes-details {
  width: 100%;
}

.table__flex2 {
  justify-content: flex-end;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  width: 95%;
  max-width: 410px;
  position: relative;
}
.modal-content h2{
  padding: 20px;
  border-bottom: 1px solid #E8EBEF;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 500;
}

.namecharak {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  border-bottom: 1px solid #E8EBEF;
  padding-bottom: 10px;
}

.modalwrap {
  padding: 20px;
}

#close-modal {
  margin: 0;
  border: none;
  background: transparent;
  padding: 0;
  position: absolute;
  top: 20px;
  right: 20px;
}

.column-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  margin: 0;
  border-bottom: 1px solid #E8EBEF;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 400;
}

.column-item span {
  margin: 0;
  align-items: center;
}

.drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
}
#apply-settings {
  cursor: pointer;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1.2;
  border-radius: 8px;
  gap: 10px;
  font-weight: 500;
  margin-top: 20px;
  border: 1px solid var(--color-accent);
  color: var(--color-white);
  background: var(--color-accent);
  width: 100%;
}

#apply-settings:hover {
  background: #01C383;
}

.custom-checkbox:disabled+span::before{
  background: #F3F7FA;
  border: #F3F7FA;
  background-image: url(../img/check2.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
}

.column-item:last-child {
  padding-left: 28px;
}