/* =========================================================
   ФИКС GIN TOOLBAR: ВИДИМОСТЬ ИКОНОК И СКРЫТИЕ ТЕКСТА
   ========================================================= */

/* 1. Прячем текст, когда меню свернуто (убираем вылезающие слова) */
body.gin--vertical-toolbar #toolbar-administration .toolbar-menu .toolbar-item {
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    box-sizing: border-box !important;
}

/* 2. Защищаем отступ текста от иконки от влияния Bootstrap Italia */
body.gin--vertical-toolbar #toolbar-administration .toolbar-menu .toolbar-icon {
    padding-left: 44px !important; 
}

/* 3. ВОСКРЕШАЕМ РОДНЫЕ ИКОНКИ GIN НА ФРОНТЕНДЕ */
body.gin--vertical-toolbar #toolbar-administration .toolbar-icon::before {
    background-color: #88929d !important; /* Возвращаем родной серый цвет маске */
    -webkit-mask-size: 20px 20px !important;
    mask-size: 20px 20px !important;
    display: block !important;
}

/* 4. Делаем иконки синими при наведении и активности (как в админке) */
body.gin--vertical-toolbar #toolbar-administration .toolbar-icon:hover::before,
body.gin--vertical-toolbar #toolbar-administration .toolbar-icon.is-active::before {
    background-color: #003cc5 !important; 
}

/* =========================================================
   ЧИСТКА МЕНЮ: УДАЛЯЕМ ЛИШНИЕ ИКОНКИ В БОКОВОЙ ПАНЕЛИ
   ========================================================= */

/* Убираем псевдоэлементы (иконки), которые генерирует тема */
.toolbar-menu-administration .toolbar-menu .toolbar-icon::before,
.toolbar-menu-administration .toolbar-menu .toolbar-icon::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
}


