/* Расширение области CustomCSS */
textarea#theming-customcss-input {
    height: 700px;
    width: 97%;
}


/* Старый фикс онлайн-офиса */
#officeonline-wrapper { top: 0 !important; }

/* Контент - Учетные записи - Таблица - Колонка с паролем */
div.content.app-settings .app-content table.user-list th[data-cy-user-list-header-password], div.content.app-settings .app-content table.user-list td[data-cy-user-list-cell-password] {
    display: none;
}


/* Надпись КИ в шапке */
div[style="display:flex; justify-content: center; align-items: center; height: 99%; width: 50%; color: yellow;"]::after {
    content:"Перед загрузкой файлов на Nextcloud убедитесь в отсутствии в них запрещенных для обработки категорий информации (подробнее в разделе Help/Nextcloud FAQ)";
    color: #ff0032;
    background-color: white;
    font-size: 90%;
    line-height: 1.2;
    text-align: center;
    padding: 5px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

@media (max-width: 1050px) {
    div[style="display:flex; justify-content: center; align-items: center; height: 99%; width: 50%; color: yellow;"]::after {
        font-size: 80%;
        max-width: 550px;
        #padding-left: 20px;
        line-height: 1.2;
    }
}

@media (max-width: 950px) {
    div[style="display:flex; justify-content: center; align-items: center; height: 99%; width: 50%; color: yellow;"]::after {
        font-size: 70%;
        max-width: 550px;
        line-height: 1.2;
    }
}

@media (max-width: 660px) {
    div[style="display:flex; justify-content: center; align-items: center; height: 99%; width: 50%; color: yellow;"]::after {
        display: none;
    }
}


/* Тулбокс (правый нижний угол) */
/* Тулбокс - Основной контейнер и элементы */
div.mts-toolbox {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 2000;
    gap: 16px;
}

div.mts-toolbox__item {
    
}


/* Тулбокс - МТС Чат-бот */
/* Тулбокс - МТС Чат-бот - Кнопка */
div.mts-chatboot {
    
}

div.mts-chatbot-button {
    position: relative;
    width: 52px;
    height: 52px;
    z-index: 2000;
    background: url("/core/img/mts-chatbot/ava_chat.gif") no-repeat center;
    background-size: cover;
    transition: transform .2s ease-in-out;
    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.25));
    cursor: pointer;
}

div.mts-chatbot-button:hover {
    transform: scale(1.2);
}

div.mts-chatbot-button.mts-chatbot-button-active {
    background: url("/core/img/mts-chatbot/chat-bot-close.svg") no-repeat center;
}

/* Тулбокс - МТС Чат-бот - Чат */
div.mts-chatbot-chatbox {
    display: none;
    position: fixed;
    max-width: 400px;
    width: 100%;
    height: calc(100% - 200px);
    z-index: -1;
    bottom: 40px;
    right: 112px;
    opacity: 0;
    background: #F6F6F6;
    box-sizing: border-box;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1), 0px 0px 24px rgba(20, 20, 20, 0.08);
    overflow: hidden;
    border-radius: 32px;
    transition: all .2s ease-in-out;
}

div.mts-chatbot-chatbox-active {
    display: block;
    opacity: 1;
    z-index: 2000;
}

div#mts-chatbot-chatbox iframe {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border-radius: 32px;
}


/* Тулбокс - МТС Опросы */
/* Тулбокс - МТС Опросы - Виджет */
div.mts-mtsopros {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    transition: all .2s ease-in-out;
    filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.25));
    cursor: pointer;
    background: url("/core/img/actions/checkbox-mark.svg") #ff0032 no-repeat center;
    background-size: 44px;
}
div.mts-mtsopros:hover {
    transform: scale(1.2);
}
div.mts-mtsopros:active {
    transform: scale(0.9615);
}

/* Тулбокс - МТС Опросы - Виджет - СКРЫТ */
div#mts-mtsopros, div.mts-toolbox__item:has(div#mts-mtsopros) {
    display: none;
}


/* Тулбокс - МТС Опросы - Модальное окно */
div#mts-mtsopros-modal {
    display: none;
}

div#mts-mtsopros-modal.active {
    display: block;
}

div#mts-mtsopros-modal div.mts-mtsopros-container {
    width: 400px;
    height: 620px;
}

div#mts-mtsopros-modal div.modal-container__content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

div#mts-mtsopros-modal div.dialog__content {
    display: flex;
    margin-bottom: 20px;
    padding: 0 20px !important;
}

div#mts-mtsopros-modal iframe#mts-mtsopros-player {
    border: none;
}

/* Праздничное оформление */
/* Праздничное оформление - Новогоднее оформление */
/* Праздничное оформление - Новогоднее оформление - Шапка для аватара */
nav#user-menu::after {
    content: "";
    position: absolute;
    top: -5%;
    left: -7%;
    width: 100%;
    height: 45%;
    background: url("/core/img/mts-holidays/new-year/hat.png") no-repeat center;
    background-size: contain;
    pointer-events: none;
}