#entity-tree tbody tr.has-children {
    cursor: pointer;
}

#entity-tree tbody tr.has-children .toggle-icon {
    cursor: pointer;
}

/* Общий стиль для строк, которые можно развернуть */
#entity-tree tbody tr.has-children td {
    font-weight: 500;
    background-color: #fdfdfd;
}

/* Чуть больше воздуха слева, чтобы иконка и текст не слипались */
#entity-tree tbody tr.has-children td {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

/* Иконка раскрытия — чуть заметнее и не впритык к тексту */
#entity-tree tbody tr.has-children .toggle-icon {
    margin-right: 0.35rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Hover-состояние: понятнее, что строка активная */
#entity-tree tbody tr.has-children:hover td {
    background-color: #f1f3f5;
}

/* Только "Общенаучные термины" — главный заголовок */
#entity-tree tbody tr.root-general td {
    font-weight: 600;
    font-size: 1.05rem;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Первый узел после "Общенаучных терминов" — отделяем от заголовка 
#entity-tree tbody tr.after-root-general td {
    padding-top: 1.25rem;
    border-top: 2px solid #dee2e6;
} */

#entity-tree tbody tr.has-children.search-disabled {
    cursor: default;
    opacity: 0.6;
}

/* Контейнер над таблицей – обычный блочный, не flex */
.dt-top {
    display: block;
    margin-bottom: 1rem;
}

/* Фильтр строго слева, без float:right из дефолтного DataTables */
.dataTables_filter {
    float: none !important;
    text-align: left !important;
    margin-bottom: 0.5rem;
}

/* Убираем стандартную подпись Search: */
.dataTables_filter label {
    font-weight: normal;
}

.dataTables_filter label>span {
    display: none;
    /* перестраховка, если DataTables решит вернуть текст */
}