/*HEADERS*/
.medium-info-header{
    font-weight: bold;
    font-size: large;
    color: #337ab7;
    margin-top: 5px;
    margin-bottom: 5px;
    user-select: none;
    cursor: default;
}
.admin-user-name{
    cursor: pointer !important;
}
.admin-user-name:hover{
    background-color: white !important;
    border-radius: 7px;
}
.full-list-control-button{
    margin-right: 25px;
    margin-bottom: 5px
}
.admin-icon{
    padding-top: 15px;
    color: #5cb85c;
    font-size: large;
    margin-left: 2px;
    margin-right: 2px;
}
/*Background Cover*/
/* Всегда видимая полоса прокрутки. Без неё браузер добавляет и убирает её по
   мере роста страницы, и содержимое дёргается по горизонтали — заметнее всего
   при раскрытии длинных списков (пикер городов). Резервируем место постоянно. */
html {
    overflow-y: scroll;
}
/* Оформление полосы — из проекта Tasker: тонкая, дорожка прозрачная, ползунок
   полупрозрачный и темнеет под курсором. Значения токенов Tasker заменены на
   конкретные цвета: своей палитры переменных в этом проекте нет. */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 11, 11, .28) transparent;
}
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background-color: rgba(11, 11, 11, .28);
    border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(11, 11, 11, .48);
}
/* На тёмной шапке тот же ползунок не виден — там своя пара цветов. */
.header-panel *::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, .3);
}
.background-cover{
    position: fixed;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    background-color: white;
}
/*Main Page*/
.main-menu-elements-li {
    text-align: center;
}
/* Главное меню в шапке. Было: активный пункт — белая плашка с ореолом в 35px,
   наведение — почти чёрная заливка с таким же ореолом, переход в полсекунды.
   Свечение и медленная анимация — приём другой эпохи; вдобавок подпись
   неактивного пункта (#9d9d9d на #08192d) давала контраст 4.0:1 при пороге AA
   4.5:1. Теперь это панель вкладок: подпись читаемая, наведение — лёгкая
   подсветка, активный пункт — белый текст и полоса-акцент снизу. */
.main-menu-elements-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    /* Высота во всю шапку: полоса-акцент активного раздела должна лежать на её
       нижней кромке, как в прежней отдельной полосе меню. */
    height: 58px;
    padding: 0 16px;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    font-size: 13.5px;
    font-weight: 600;
    -webkit-transition: background-color .15s ease, color .15s ease;
    transition: background-color .15s ease, color .15s ease;
}
.main-menu-elements-button-not-clicked {
    background-color: transparent;
    color: #c3cddb;
}
.main-menu-elements-button:hover,
.main-menu-elements-button:focus,
.main-menu-elements-button.active,
.open > .main-menu-elements-button.dropdown-toggle {
    background-color: rgba(255, 255, 255, .08);
    color: #ffffff;
    box-shadow: none;
}
.main-menu-elements-button:focus-visible {
    outline: 2px solid #7fb2f0;
    outline-offset: -2px;
}
.main-menu-elements-button-clicked,
.main-menu-elements-button-clicked:hover,
.main-menu-elements-button-clicked:focus {
    color: #ffffff;
    background-color: rgba(255, 255, 255, .10);
    box-shadow: none;
}
/* Полоса-акцент вместо белой плашки: активный раздел видно, а шапка остаётся
   единым тёмным полем, а не разорванным белым прямоугольником. */
.main-menu-elements-button-clicked:after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background-color: #4d9bf0;
}
#mainMenuClientsDropDownButton {
    border-left: 1px solid rgba(255, 255, 255, .14) !important;
    padding-left: 10px;
    padding-right: 10px;
}
#mainMenuClientsDropDownButton .caret {
    border-top-color: currentColor;
}
/* Стрелка «Клиентов» — часть той же кнопки, отдельной полосы-акцента у неё
   быть не должно. */
#mainMenuClientsDropDownButton.main-menu-elements-button-clicked:after {
    display: none;
}
/* Шапка одна. Раньше их было две: пикеры с пользователем сверху и полоса
   разделов под ней — два тёмных яруса подряд съедали две строки экрана.
   Разделы переехали в эту же полосу, между пикерами и блоком пользователя. */
/* Своё поле наложения. z-index у .navbar-static-top в этом проекте сброшен в
   auto, и выпадающее меню шапки уходило ПОД содержимое страницы: раньше это
   было незаметно, потому что меню жило во второй полосе и открывалось над
   пустым местом. 999 — выше содержимого (0) и ниже модальных окон и
   уведомлений (1001-1005), поэтому они по-прежнему накрывают шапку. */
.navbar.header-panel {
    position: relative;
    z-index: 999;
}
.header-panel {
    background-color: #08192d;
    min-height: 58px;
    /* Отступ до содержимого страницы: раньше его давала вторая полоса меню. */
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}
/* Шапка собрана флексом, а не флоатами: так пикеры, разделы и блок
   пользователя стоят на одной вертикали независимо от собственной высоты. */
.header-panel .navbar-collapse {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding-left: 0;
    padding-right: 0;
}
.header-panel .navbar-nav {
    display: flex;
    align-items: center;
    float: none;
    margin: 0;
}
.header-panel .navbar-nav > li { float: none; display: flex; align-items: center; }
.header-panel .navbar-right { margin-left: auto; }
/* Ручные сдвиги по вертикали остались от флоат-вёрстки: там иконки ставили на
   место отступами вручную. Теперь их центрирует флекс, и эти отступы только
   уводят кнопку обновления и значок режима админа ниже соседей. */
.header-panel .refresh-button { margin-top: 0; }
.header-panel .admin-icon { padding-top: 0; }
/* Разделы прибиты к центру шапки, а не к соседям слева: на статистике,
   управлении и помощи пикеры городов и шоу скрыты, и в обычном потоке меню
   уезжало влево — при переходе между страницами оно прыгало. Абсолютное
   позиционирование от середины держит его на месте всегда — так же, как
   держала прежняя отдельная полоса меню. */
.header-panel > .container-fluid { position: relative; }
.header-panel .main-menu {
    position: absolute;
    left: 50%;
    top: 0;
    height: 58px;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    margin: 0;
}
.header-panel .main-menu .btn-group { display: flex; height: 58px; }
.navbar-static-top {
    z-index: auto;
}
ul.dropdown-menu > li > a:hover {
    cursor: pointer;
}
.user-name {
    font-size: 17px;
}
.user-name:hover {
    cursor: text;
}
li.admin-mode-wrapper{
    width: 320px;
}
div.admin-mode-container{
    float: left;
}
span.admin-mode-label{
    display: table-cell;
    vertical-align: middle;
    height: 35px;
}
div.admin-mode-toggle-container{
    float: left;
}
.refresh-button{
    padding: 8px;
    color: #337ab7;
    font-size: small;
    margin-left: 2px;
    margin-right: 2px;
    background-color: white;
    border-radius: 20px;
    margin-top: 7px;
    cursor: pointer;
    -webkit-transition: -webkit-transform .8s ease-in-out;
          transition:         transform .8s ease-in-out;
}
.refresh-button:hover{
    -webkit-transform: rotate(360deg);
          transform: rotate(360deg);
}
/* Кнопка догрузки просроченных задач: их отдают порциями по 30. */
.expired-tasks-more {
    display: block;
    margin: 12px auto 0;
    height: 34px;
    padding: 0 18px;
    border: 1px solid rgba(11, 11, 11, .16);
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #3c3c43;
    cursor: pointer;
    -webkit-transition: border-color .15s ease, background-color .15s ease;
    transition: border-color .15s ease, background-color .15s ease;
}
.expired-tasks-more:hover { background: #f0eeea; border-color: rgba(11, 11, 11, .28); }
.expired-tasks-more[disabled] { opacity: .6; cursor: default; }
/**/
.vertical-line{
    border-left: 3px solid #eeeeee;
    top: 0;
}

/*CALENDAR*/
#calendarHeader {
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 5px;
    padding-top: 5px;
    margin: 0 auto;
    margin-bottom: 10px;
    width: 98%;
    background-color: #337ab7;
    border: 1px solid #337ab7;
    border-radius: 5px;
}

.oldcal-show_in_table-table_decoration {
    width: 100%;
    table-layout: fixed;
    font-size: inherit;
    color: inherit;
    opacity: 1;
}

.oldcal-show_in_table-icon_container_decoration {
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    width: 18px;
    padding-right: 3px;
    padding-bottom: 3px;
    padding-top: 1px;
}

.oldcal-show_in_table-icon_decoration {
    border-radius: 7px;
    font-size: 13px;
    transition: 0.3s;

}

.oldcal-show_in_table-content_container_decoration {
    padding-top: 2px;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    padding-left: 3px;
    transition: 0.3s;
}

.oldcal-show_in_table-time_container_decoration {
    text-align: center;
    border-bottom: 1px solid #ffffff;
    font-weight: bold;
    font-size: 11px;
    transition: 0.3s;
}

.oldcal-show_in_table-container_decoration {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 3px;
    padding: 2px;
    border-radius: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    z-index: 1000;
    margin-left: 33px;
    margin-right: 3px;
    margin-top: 3px;

}

.oldcal-show_in_table-container_decoration:hover {
    background-color: #337ab7 !important;
    opacity: 1 !important;

}

.oldcal-show_in_table-container_decoration:hover .oldcal-show_in_table-icon_decoration {

    color: white !important;
}

.oldcal-show_in_table-container_decoration:hover .oldcal-show_in_table-time_container_decoration {

    color: white;
}

.oldcal-show_in_table-container_decoration:hover .oldcal-show_in_table-content_container_decoration {

    color: white;
}

.oldcal-table_td_decoration {
    /*padding-top: 10px;
    padding-left: 10px;*/
    height: auto;
    position: relative;
    /*height: 6vw;*/
    border: 1px solid #c9c9c9;
    /*padding-left: 10px;*/

}

.oldcal-month_other_month_day_decoration {
    background-color: red;
    color: #ffffff;
}

.oldcal-month_day_decoration {
    margin-bottom: 0px;
    /*position: absolute;*/
    display: inline-block;
    height: 100%;
    min-height: 70px;
    float: left;
    width: 29px;
    left: 0px;
    top: 0px;
    padding-top: 17%;
    background-color: #36BBCE;
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid black;
    text-align: center;
    user-select: none;
}
.oldcal-month_day_decoration:hover{
    background-color: red !important;
    color: white;
    cursor: pointer;
}
.oldcal-day_decoration {
    height: 70px;
    min-height: 70px;
}

.oldcal-day_decoration:hover {
    border: 1px solid red !important;
    border-radius: 3px;
    cursor: crosshair;

}

.oldcal-header_month_decoration {
    text-align: center;
    font-weight: 700;
    font-size: large;
    color: #36BBCE;
    cursor: default;
    user-select: none;
}

.oldcal-header_month_container_decoration {
    width: 100%;
    text-align: center;
}
.presentator_event-oldcal_decoration-description_container{
    position: relative;
    left: 0px;
    top: 0px;
    width: 75%;
    text-align: center;
    font-weight: bold;
    font-size: smaller;
    color: #00ff00;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 29px;
}
.presentator_event-oldcal_decoration{

}
.presentator_event-oldcal_decoration:hover{
    color: white !important;
    background-color: red !important;;
}
.presentator_event-oldcal_fullday_decoration{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: -0px;
    opacity: 0;
    margin-left: 29px;
}
.presentator_event-oldcal_decoration-time{
    height: 17px;
    border-top: 1px solid #ffffff;
    font-weight: bold;
    text-align: center;
}
.presentator_event-week_cover_decoration{
    background-color: red;
    position: absolute;
    width: 129px;
    height: 36px;
    left: 3px;
    opacity: 0.2;
    cursor: pointer;
}
.presentator_event-inlist_container_decoration{
    color: red !important;
}
.presentator_event-inlist_tr_decoration{
    font-size: smaller;
    color: red;
}
.presentator_event-inlist_tr_decoration:hover{
    background-color: red !important;
    color: white !important;
    cursor: pointer;
    user-select: none;
    border: 1px solid #337ab7;
    opacity: 1;
}
.tasks-expired_header{
    width: 100%;
    text-align: center;
    color: #36bbce;
    font-size: x-large;
    font-weight: 700;
    user-select: none;
    margin-bottom: 10px;
}

.glyphicon-button_with_text {
    top: -1px;
    font-weight: 800;
}

.menu-button {

}

.menu-button:focus {
    box-shadow: inset 0 5px 4px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .05);
    background-color: #286090 !important;
    border-color: #2d6494 !important;
    outline-style: none;
    outline-width: 0px !important;
    outline-color: none !important;
}

.menu-button-pressed {
    box-shadow: inset 0 5px 4px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .05);
    background-color: #286090;
    border-color: #2d6494;;
}

.menu-button-pressed:focus {
    box-shadow: inset 0 5px 4px rgba(0, 0, 0, .15), 0 1px 2px rgba(0, 0, 0, .05);
    background-color: #286090 !important;
    border-color: #2d6494 !important;
    outline-style: none;
    outline-width: 0px !important;
    outline-color: none !important;
}

.event-header-text-label{
    cursor: default;
    text-align: center;
    font-size: x-large;
    position: relative;
    color: red;
    user-select: none;

    font-weight: 600;
}
.event-text-label{
    cursor: default;
    text-align: center;
    font-size: larger;
    position: relative;
    color: #008000;
    user-select: none;
    margin-bottom: 20px;
}
.week-month_year-decoration {
    font-size: xx-small;
    user-select: none;
}

.week-dayofweek_date-decoration {
    font-size: x-small;
    text-align: center;
    font-weight: bold;
    cursor: default;
    user-select: none;
}

.week-hour-decoration {
    color: #969696;
    font-size: xx-small;
    padding-left: 2px;
    padding-right: 2px;
    cursor: default;
    border: 1px solid #ddd;
    user-select: none;
    cursor: crosshair;
}
.week-hour-decoration:hover{
    border: 1px solid red;
}
.week-add_event-decoration {

}

.week-add_event-decoration:hover {
    border: 1px solid red;
}

.week-event-decoration {
    height: 36px;
    width: 90px;
    border: 1px solid #ddd;


}

.week-event-decoration:hover {

}

.month-header_decoration {
    color: #337ab7;
    text-align: center;
    padding: 3px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.month-header_decoration:hover {
    color: #ffffff !important;
    background-color: #337ab7;
}

.year-header_decoration {
    color: #337ab7;
    text-align: center;
    padding: 3px;
    font-weight: 600;
    font-size: x-large;
    user-select: none;
    cursor: default;
}

.month-day_of_week_decoration {
    color: #4f5050;
    text-align: center;
    font-weight: 600;
    font-size: small;
    padding-bottom: 5px;
    padding-top: 5px;
    user-select: none;

}

.month_day_choosen-decoration {
    border: 1px solid red !important;
    background-color: #1bff002e;
}

.month_day-decoration {
    border: 1px solid #c9c9c9;
    height: 40px;
    width: 40px;
}

.month_day-decoration:hover {
    border: 1px solid red;
}

.month_day-date-decoration {
    font-size: x-small;
    margin-bottom: 26px;
    font-weight: bolder;
    color: #36bbce;
    text-align: center;
    width: 16px;
    height: 12px;
    top: 0;
    right: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    cursor: pointer;

}

.month_day-date-decoration:hover {
    background-color: #36bbce;
    color: #ffffff;
}



.month_day-date-decoration_offday {
    color: red;
}

.month_day-date-decoration_today {
    background-color: #84FE67;
    color: #000000;
}

.events_count_calendar_label_container{
    position: relative;
    max-height: 0px;
    background-color: red;
    top: -13px;
    font-weight: bold;
    cursor: default;
    text-align: center;
    font-size: 12px;
}
.events_count_calendar_label{
    background-color: #337ab7;
    color: white;
}
.change_month_arrow {
    position: relative;
    font-size: 45pt;
    color: #c9c9c9;
    cursor: pointer;
}

.change_month_arrow:hover {
    color: #36bbce;
}

.change_month_arrow-left {
    left: 18px;
}

.change_month_arrow-right {
    left: -18px;
}

.events_frame_container-decoration {
}

.events_frame_header-decoration {
    width: 20%;
    border-top: 2px solid #337ab7;
    border-left: 2px solid #337ab7;
    border-right: 2px solid #337ab7;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    color: #337ab7;
    user-select: none;
    cursor: default;
}

.events_frame-decoration {
    border: 1px solid #337ab7;
    padding: 5px;
    min-width: 679px;
}
.events_frame-decoration:hover{
    opacity: 1 !important;
}
.events_add_event_button-decoration {

    font-size: 16px;
    color: #337ab7;
    background-color: #ffffff;
    padding: 4px;
    margin-right: 4px;
    margin-top: 3px;
    border-radius: 5px;
    border: 1px solid #337ab7;
    transition: 0.3s;
    cursor: pointer;
}

.events_add_event_button-decoration:hover {
    border: 1px solid #337ab7;
    background-color: #337ab7;
    color: #ffffff;

}

.events_date_label-decoration {
    padding: 4px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    user-select: none;
    color: #428bca;
}

.event_in_frame-decoration {
    font-size: x-small;
}

.event_in_frame-decoration:hover {
    background-color: #337ab7 !important;
    color: white !important;
    cursor: pointer;
    user-select: none;
    margin-top: 3px;
    border: 1px solid #337ab7;
    opacity: 1 !important;

}

.event_in_frame-decoration:hover .event_in_frame_date-decoration {
    color: #ffffff;
}

.event_in_frame-decoration:hover span {
    color: #ffffff !important;
}

.event_in_frame-decoration:hover button span {
    color: inherit !important;
}

td.event_in_frame-td-decoration {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 5px;
}

.event_in_frame_date-decoration {
    color: #337ab7;
}

table.event_table-decoration {
    border-collapse: separate; /* Способ отображения границы */
    width: 100%;
    table-layout: fixed;
}

.event-call-button{
    margin: 3px;
    height: 25px;
    width: 25px;
}
.event-call-button-icon{
    color: inherit;
    left: -5px;
    top: -1px;
}
.event-call-button-icon-days_count{
    color: inherit;
    font-weight: 600;
    font-size: 10px;
    position: relative;
    top: 1px;
    left: -22px;
}
/*END CALENDAR*/
.event-oldcal-logscount{
    position: relative;
    top: -33px;
    left: 90%;
    background-color: white;
    border-radius: 20px;
    width: 11px;
    height: 11px;
    text-align: center;
    color: red;
}
.event-oldcal-logscount:hover{
    background-color: red;
    color: white;
}
.event-oldcal-chatmessagescount{
    position: relative;
    top: -43px;
    left: 79%;
    border-radius: 20px;
    width: 11px;
    text-align: center;
    color: red;
}
.event-oldcal-chatmessagescount:hover{
    color: white;
}
.event-mycalweek-haveevents{
    border: 1px dashed red !important;
}
.modalWindow {
    /*position: absolute;*/
    position: fixed;
    top: -1000px;
    left: 35%;
    width: 500px;
    height: 600px;

    background-color: white;
    opacity: 1;
    border-bottom-left-radius: 40px;
    border-top-left-radius: 40px;
    box-shadow: 0px 0px 45px 3px #000000;
    visibility: hidden;
    transition: 0.5s;
    z-index: 1001;
    text-align: right;
    overflow-y: hidden;
    overflow-x: hidden;
    padding-right: 0px;

}

.modalWindowHead {
    /*New modal Window*/
    /*position: fixed;*/
    width: 500px;
    /*margin-bottom: 20px;*/
    font-family: Arial;
    font-size: 130%;
    font-weight: bold;
    color: black;
    z-index: 1003;
}

.modalWindowBody {
    /*New modal Window*/
    padding-top: 15px;
    padding-bottom: 180px;

    z-index: 1002;
    height: 100%;
    overflow-y: auto !important;
}

.modalWindowFooter {
    /*New modal Window*/
    position: absolute;
    width: 530px;
    margin-left: -5%;
    margin-right: -10%;
    bottom: 0;
    padding-bottom: 10px;
    padding-top: 10px;
    top: 538px;
    height: 60px;
    z-index: 1003;
}

#modalWindowBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0.0;
    z-index: 1000;
    visibility: hidden;
}

.closecross {

    position: static;
    padding-right: 10px;
    padding-top: 50px;

}

.textMiddle {
    text-align: center;
}

.interactive_element {
}

.interactive_element:hover {
    color: #5CB85C;
    cursor: pointer;
}

.eventInTable {
    display: block;
    text-align: center;
    padding-bottom: 2px;
    padding-top: 2px;
    margin-left: 2px;
    margin-right: 2px;
    margin-top: 1px;
    margin-bottom: 1px;
    border: 5px;
    border-radius: 7px 7px;
    background-color: white;
    font: bold 12px arial, verdana;
    transition: 0.5s;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.eventInTable:hover {
    cursor: pointer;
    color: red;

}

.value {
    width: 100%;
}

div.hiddenInputForm {
    display: none;
}

a {
    text-decoration: none;
    color: #000000;
}

a:hover {
    text-decoration: none;
    color: #000000;
}

.bootstrap-correct-icons {
    top: 0px;
}

.choosen-page a,
.choosen-page a:hover {
    color: #ffffff !important;
    font-weight: 700;
    background-color: #2b2d33 !important;
    border-color: #2b2d33 !important;
    box-shadow: none !important;
    bottom: 0 !important;
}

.vertical-center {
    text-align: center;
}

.pagination {
    margin-bottom: 0px;
    margin-top: 0px;
}

/* Пагинатор. Раньше при наведении подставлялась чёрная рамка со смещением и
   «приподнятой» тенью — приём из другой эпохи, он дёргал строку. Теперь
   компактные квадратные кнопки: наведение приглушённым фоном, текущая
   страница залита тем же графитом, что и главная кнопка. */
.pagination-text-color > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    margin: 0 2px;
    padding: 0 8px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    background-color: transparent;
    color: #52514e;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: background-color .15s ease, color .15s ease;
    transition: background-color .15s ease, color .15s ease;
}
.pagination-text-color > li > a:hover {
    background-color: #f0eeea;
    color: #0b0b0b;
    border-color: transparent !important;
    bottom: 0;
    box-shadow: none;
    font-weight: 600;
}
.pagination-text-color > li > a:focus-visible {
    outline: 2px solid #2b2d33;
    outline-offset: 2px;
}
.pagination-sm > li > a {
    padding: 0 8px !important;
}
.page_in_paginator{
    user-select: none;
}
/* Рамка вокруг пагинатора — общая для всего приложения: без неё кнопки висят
   в воздухе и читаются как случайный набор иконок, а не как один орган
   управления. Пагинатор строит ДВА списка: номера страниц и стрелки. В обычном
   режиме номера живут в списке со стрелками, а первый остаётся пустым — без
   :empty от него на экране оставался пустой кружок рамки. */
.pagination-text {
    display: inline-flex;
    align-items: center;
    /* Раскрытый список страниц (кнопка «показать все») — это сотня номеров.
       Без переноса они уезжали одной строкой за край экрана. */
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    gap: 2px;
    padding: 3px;
    background: #fff;
    border: 1px solid rgba(11, 11, 11, .12);
    border-radius: 10px;
    vertical-align: middle;
}
.pagination-text:empty {
    display: none;
}
/* Раскрытый список страниц («показать все») живёт в отдельном контейнере. На
   полном списке учреждений страниц больше тысячи — развёрнутые номера занимали
   три экрана и утапливали саму таблицу ниже сгиба. Ограничиваем высоту: список
   остаётся полным, но прокручивается внутри себя. */
#paginator-pagesContainer {
    /* Три ряда номеров: строка 32px + зазор 2px, плюс padding контейнера. */
    max-height: 116px;
    overflow-y: auto;
}
/*NOTIFICATIONS*/
/*container:*/
.notification {
    position: fixed;
    left: 0px;
    bottom: -50px;
    width: 100%;
    /* Set the fixed height of the footer here */
    height: 10px;
    opacity: 0.0;
    text-align: center;
    z-index: 1005;

}

.notification-error {
    background-color: rgba(255, 0, 0, 0.75);
    color: #ffffff;
}

.notification-success {
    background-color: rgba(0, 255, 0, 0.75);
    color: #ffffff;
}

.notification-info {
    background-color: rgba(0, 0, 255, 0.75);
    color: #ffffff;
}

.notification-title {
    padding-top: 7px;
    font-size: large;
    user-select: none;

}

.notification-title-text {
    margin-left: 8px;
    vertical-align: text-top;
    user-select: none;
}

.notification-text {
    padding-top: 9px;
    font-size: small;
    user-select: none;
}

/*load animation*/
.cssload-container {
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding-left: 40%;

}

.cssload-speeding-wheel {
    width: 22px;
    height: 22px;
    border: 4px solid rgb(0, 0, 255);
    border-radius: 50%;
    border-left-color: transparent;
    border-right-color: transparent;
    float: left;
    text-align: center;
    left: 30%;
    margin-right: 7px;
    animation: cssload-spin 1000ms infinite linear;
    -o-animation: cssload-spin 1000ms infinite linear;
    -ms-animation: cssload-spin 1000ms infinite linear;
    -webkit-animation: cssload-spin 1000ms infinite linear;
    -moz-animation: cssload-spin 1000ms infinite linear;
}

@keyframes cssload-spin {
    100% {
        transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes cssload-spin {
    100% {
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-ms-keyframes cssload-spin {
    100% {
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes cssload-spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes cssload-spin {
    100% {
        -moz-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.container-load-indicator-cover{
    position: absolute;
    background-color: white;
    opacity: 0.5;
    z-index: 1002;
}
.container-load-wheel-container{
    position: absolute !important;
    padding-left: 0 !important;
    width: 0% !important;
    z-index: 1003;
}
.container-load-wheel{
    width: 80px !important;
    height: 80px !important;
}
/*NOTIFICATIONS*/

/*POPUP FORM - AROWS: LEFT, RIGHT, TOP*/
.small_change_box_left {
    left: 150px;
    top: 200px;
    width: 550px;
    height: 245px;
    position: absolute;
    background: #428bca;
    opacity: 0;
    border: 3px solid #428bca;
    padding: 7px 7px 7px 7px;
    z-index: 1001;

    -webkit-box-shadow: 13px 10px 49px 5px rgba(0, 0, 0, 0.91);
    -moz-box-shadow: 13px 10px 49px 5px rgba(0, 0, 0, 0.91);
    box-shadow: 13px 10px 49px 5px rgba(0, 0, 0, 0.91);
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-bottom-radius: 25px;
    transform: scale(0.1);

    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;

}

.small_change_box_left:after, .small_change_box:before {
    right: 100%;
    top: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.small_change_box_left:after {
    border-color: rgba(136, 183, 213, 0);
    border-right-color: #428bca;
    border-width: 16px;
    margin-top: -16px;
}

.small_change_box_left:before {
    border-color: rgba(194, 225, 245, 0);
    border-right-color: #428bca;
    border-width: 22px;
    margin-top: -22px;
}

.small_change_box_right {
    left: 150px;
    top: 200px;
    width: 550px;
    height: 215px;
    position: absolute;
    background: #428bca;
    opacity: 0;
    border: 3px solid #428bca;
    padding: 7px 7px 7px 7px;
    z-index: 1001;

    -webkit-box-shadow: 13px 10px 49px 5px rgba(0, 0, 0, 0.91);
    -moz-box-shadow: 13px 10px 49px 5px rgba(0, 0, 0, 0.91);
    box-shadow: 13px 10px 49px 5px rgba(0, 0, 0, 0.91);
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-bottom-radius: 25px;
    transform: scale(0.1);

    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;

}

.small_change_box_right:after, .arrow_box:before {
    left: 100%;
    top: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.small_change_box_right:after {
    border-color: rgba(136, 183, 213, 0);
    border-left-color: #428bca;
    border-width: 16px;
    margin-top: -16px;
}

.small_change_box_right:before {
    border-color: rgba(194, 225, 245, 0);
    border-left-color: #428bca;
    border-width: 22px;
    margin-top: -22px;
}

.small_change_box_top {
    left: 150px;
    top: 200px;
    width: 550px;
    height: 215px;
    position: absolute;
    background: #428bca;
    opacity: 0;
    border: 3px solid #428bca;
    padding: 7px 7px 7px 7px;
    z-index: 1001;

    -webkit-box-shadow: 13px 10px 49px 5px rgba(0, 0, 0, 0.91);
    -moz-box-shadow: 13px 10px 49px 5px rgba(0, 0, 0, 0.91);
    box-shadow: 13px 10px 49px 5px rgba(0, 0, 0, 0.91);
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-bottom-radius: 25px;
    transform: scale(0.1);

    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;

}

.small_change_box_top:after, .arrow_box:before {
    bottom: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.small_change_box_top:after {
    border-color: rgba(136, 183, 213, 0);
    border-bottom-color: #428bca;
    border-width: 16px;
    margin-left: -16px;
}

.small_change_box_top:before {
    border-color: rgba(194, 225, 245, 0);
    border-bottom-color: #428bca;
    border-width: 22px;
    margin-left: -22px;
}

.inside_block {
    padding: 10px 10px 10px 10px;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-bottom-radius: 15px;
}

.textarea_block {
    padding: 10px 10px 10px 10px;
}

.unscaled {
    transform: scale(1);
    opacity: 0.95;

}

div.light_border {
    z-index: 1001;
    position: absolute;
    border: 2px solid #428bca;
    -webkit-box-shadow: 5px 5px 45px 7px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 5px 5px 45px 7px rgba(0, 0, 0, 0.75);
    box-shadow: 5px 5px 45px 7px rgba(0, 0, 0, 0.75);
}

/**/
.company-icon:hover {
    cursor: pointer;
    color: #5CB85C;
}

.company-icon {
    margin-right: 6px;
    border: 1px transparent outset;
    border-radius: 8px;
}
.icon-red{
    color: red;
}
.icon-blue{
    color: #0000ff;
}
.modal-tr:hover {
    color: #ffffff;
    background-color: #428bca !important;
    cursor: pointer;

}

.text-in-table {
    font-size: small;
}

table.modal_window_list td {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid #c5c9ca !important;
    padding: 5px 5px 5px 5px;
}

.datestamp {
    text-align: left;
    font-size: medium;
    left: 10px;
    position: relative;
    color: #337ab7;
    user-select: none;
}

div.header {
    text-align: left;
    font-weight: bold;
    margin-bottom: 5px;
    color: #428bca;
    user-select: none;
    cursor: default;

}

.gray_event_button {
    transition: 0.4s;
}

.gray_event_button:hover {
    background-color: #bbbbbb;
}

/*BEAUTY CHECKBOXES*/
/* Base for label styling */
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}

[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label {
    position: relative;
    padding-left: 1.95em;
    cursor: pointer;
}

/* checkbox aspect */
[type="checkbox"]:not(:checked) + label:before,
[type="checkbox"]:checked + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1.25em;
    height: 1.25em;
    border: 2px solid #ccc;
    background: #fff;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1);
}

/* checked mark aspect */
[type="checkbox"]:not(:checked) + label:after,
[type="checkbox"]:checked + label:after {
    content: '✔';
    position: absolute;
    top: .1em;
    left: .1em;
    font-size: 1.3em;
    line-height: 0.8;
    color: #09ad7e;
    transition: all .2s;
}

/* checked mark aspect changes */
[type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
    transform: scale(0);
}

[type="checkbox"]:checked + label:after {
    opacity: 1;
    transform: scale(1);
}

/* disabled checkbox */
[type="checkbox"]:disabled:not(:checked) + label:before,
[type="checkbox"]:disabled:checked + label:before {
    box-shadow: none;
    border-color: #bbb;
    background-color: #ddd;
}

[type="checkbox"]:disabled:checked + label:after {
    color: #999;
}

[type="checkbox"]:disabled + label {
    color: #aaa;
}

/* accessibility */
[type="checkbox"]:checked:focus + label:before,
[type="checkbox"]:not(:checked):focus + label:before {
    border: 2px dotted blue;
}

/* hover style just for information */
label:hover:before {
    border: 2px solid #4778d9 !important;
}

.control-label{
    user-select: none;
}
.control-button{
    padding-right: 5px;

}
.control-button:hover{
    color: #428bca;
    font-weight: 900;
}



/* Copy control */
textarea.clipboard-copy{
    position: fixed;
    left: 10000px;

}
table.fixed-layouts{
    display: table;
    table-layout: fixed;
}

td.overflow-dotted {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}


/*CONTROL: STATS*/
td.neutral-text{
    font-family: initial;
    padding: 2px;
    color: #7d6666;
    user-select: none;
    cursor: default;
}


/*table decorations*/
table.main-table-decoration{
    table-layout: fixed;
    width: 100%;
    margin-top: 3px;
    margin-bottom: 3px;
    -webkit-user-select: none;
}
table.main-table-decoration>tr>td{
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}
.main-table-header-row-decoration {
    font-weight: bold;
    font-size: small;
    background-color: #08192d;
    color: #ffffff;
}

.main-td-decoration td {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: x-small;
}
table.main-table-decoration tr > td {
    border: 1px solid black !important;
}
.small-text-in-table {
    font-size: x-small;
}
table.main-table-decoration td.active_content:hover {
        background: #1e90ff;
        color: #ffffff;
        cursor: pointer;
    }
td.td-remove{
    color: white;
    background-color: #d9534f;
    cursor: pointer;
}
td.td-remove:hover{
    background-color: #1e90ff;
}
.active-content:hover{
    background: #1e90ff;
    color: #ffffff;
    cursor: pointer;
}

.label-own-style{
    cursor: pointer;
    top: -2px;
    position: relative;
    user-select: none;
}
.label-own-style:hover{
    background-color: #5cb85c;
}

tr.little-selection{
    transition: 0.4s;
}
tr.little-selection:hover{
    background-color: rgba(0, 181, 255, 0.2) !important;
}
tr.modal-window-content{
    font-size: smaller;
    font-weight: bold;

}
tr.modal-window-content td{
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}


/*Chat decoratios*/
.count-label{
    color: white;
    background-color: red;
    border-radius: 10px;
    font-size: 10px;
    position: relative;
    top: -5px;
    left: 5px;
}
.count-label:hover{
    background-color: white;
    color: red;

}
.hidden-count{
    visibility: hidden;
}

/*Переопределение Select2*/
.picker__select--year{
    height: auto !important;
}
.picker__select--month{
    height: auto !important;
}
/*Help page*/
.help-header{
    color: #428bca;
    font-weight: 600;
    font-size: x-large;
    margin-bottom: 10px;
}

.gototoparrow-container{
    top: 87%;
    left: 96%;
    position: fixed;
    background-color: #c1c1c1;
    height: 45px;
    width: 45px;
    text-align: center;
    border-radius: 18px;
    opacity: 0.5;
    transition: 0.3s;
    cursor: pointer;
}
.gototoparrow-container:hover{
    opacity: 1;
}
.gototoparrow{
    position: relative;
    top: 15%;
    font-size: 30px;
    color: #337ab7;
}

.resent_event_label {
    background-color: black;
    color: white;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}



#cityPickerContainer{
    z-index: 1500;
}
#showPickerContainer{
    z-index: 1500;
}



/*Revisions - 05-09-21*/
.event-add-date-label{
    font-size: 12px;
    text-align: left;
    margin-top: 10px;
}
.event-add-date-label-description{
    color: lightgray;
    font-size: 11px;
    text-align: left;
    margin-top: -10px;
    padding-left: 5px;
}

.checks-container{
    margin-bottom: 75px;
    display: flex;
    align-items: flex-start;
    padding: 5px;
}
.checks-elem{
    background-color: white;
    border: 1px solid #428bca;
    color: #428bca;
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    margin-right: 10px;
    cursor: pointer;
    -webkit-transition:  .2s ease-in-out;
    transition:         .2s ease-in-out;

}

.checks-elem-number{
    font-weight: bold;
    font-size: 17px;
}
.checks-elem:hover{


    background-color: #428bca;
    border: 1px solid #428bca;
    color: white;
}

/* ============================================================================
   redesign: страница помощи — обучающие ролики карточками.
   Плеер подставляется по клику (см. help/help.html), поэтому у медиа-области
   два состояния: обложка-кнопка и вставленный iframe. Оба лежат в .help-media
   с пропорцией 16:9 и растягиваются в неё абсолютом.
   ============================================================================ */
.help { max-width:1240px; margin:0 auto; padding:24px 16px 70px; text-align:left; color:#0b0b0b; }
.help * { box-sizing:border-box; }
.help-top { margin-bottom:22px; }
.help-h1 { font-size:21px; font-weight:700; margin:0 0 5px; }
.help-sub { font-size:13px; color:#52514e; margin:0; line-height:1.5; }

.help-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
/* В покое — только волосяная рамка, без тени: рамка плюс тень одновременно
   выглядят тяжело. Тень появляется на наведении вместе с лёгким подъёмом. */
.help-card { background:#fff; border:1px solid rgba(11,11,11,.10); border-radius:14px;
  overflow:hidden; display:flex; flex-direction:column;
  -webkit-transition:box-shadow .2s ease, border-color .2s ease, -webkit-transform .2s ease;
  transition:box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.help-card:hover { border-color:rgba(42,120,214,.35);
  box-shadow:0 10px 24px -8px rgba(11,11,11,.20);
  -webkit-transform:translateY(-3px); transform:translateY(-3px); }

.help-media { position:relative; width:100%; padding-bottom:56.25%; background:#0f2138; }
.help-media > * { position:absolute; top:0; left:0; width:100%; height:100%; border:0; }
.help-thumb { padding:0; cursor:pointer; background:transparent; }
.help-thumb img { width:100%; height:100%; object-fit:cover; display:block;
  -webkit-transition:-webkit-transform .35s ease; transition:transform .35s ease; }
.help-card:hover .help-thumb img { -webkit-transform:scale(1.04); transform:scale(1.04); }
.help-play { position:absolute; top:50%; left:50%; width:54px; height:38px; margin:-19px 0 0 -27px;
  background:rgba(11,11,11,.62); border-radius:9px;
  -webkit-transition:background .15s ease, -webkit-transform .15s ease;
  transition:background .15s ease, transform .15s ease; }
.help-card:hover .help-play { -webkit-transform:scale(1.08); transform:scale(1.08); }
.help-play:after { content:""; position:absolute; top:50%; left:50%; margin:-8px 0 0 -5px;
  border-style:solid; border-width:8px 0 8px 13px; border-color:transparent transparent transparent #fff; }
.help-thumb:hover .help-play, .help-thumb:focus .help-play { background:#cc2b2b; }
.help-thumb:focus { outline:2px solid #2a78d6; outline-offset:-2px; }

.help-meta { padding:13px 15px 15px; }
.help-role { display:inline-block; font-size:10.5px; font-weight:700; letter-spacing:.06em;
  text-transform:uppercase; color:#1c5cab; background:#e8f1fc; padding:2px 8px; border-radius:999px; }
.help-title { font-size:14.5px; font-weight:600; margin:8px 0 0; line-height:1.35; }
.help-empty { font-size:13px; color:#898781; }

@media (max-width:1000px){ .help-grid { grid-template-columns:repeat(2, 1fr); } }
@media (max-width:640px){ .help-grid { grid-template-columns:1fr; } }

@media (prefers-reduced-motion: reduce) {
    .help-card, .help-thumb img, .help-play { transition:none; }
    .help-card:hover { -webkit-transform:none; transform:none; }
    .help-card:hover .help-thumb img, .help-card:hover .help-play {
        -webkit-transform:none; transform:none; }
}

/* ============================================================================
   ПЕРЕНЕСЕНО С ВЕТКИ redesign 2026-08-27 вместе с разделом «Управление».
   Блоки взяты как есть, чтобы при будущем мерже не получилось двух языков
   для одного элемента.
   ============================================================================ */
/* Окно-подтверждение: последствие, потом согласие. Переключатель берёт палитру
   из переменных, поэтому они объявлены и на корне — не только внутри окна
   настроек, где появились впервые. */
:root {
    --usp-primary: #cc72a2;
    --usp-primary-dark: #b85f8f;
    --usp-primary-soft: #f6ebef;
    --usp-divider: #efeeee;
    /* Текстовая пара из окна настроек: она прохладнее прежней (#52514e/#898781
       отдавали в оливковый) и мягче чистого чёрного. Шрифт тот же — системный
       стек, отличались только цвета. */
    --usp-text: #3c3c43;
    /* Вторичный текст: подписи, пояснения, «когда касались». Отдельный уровень
       нужен обязательно — на белом #8a8a9a даёт 3.1:1 при пороге AA 4.5:1, и
       содержимое на нём читается плохо. У этого 7.4:1. */
    --usp-text-soft: #5c5c68;
    --usp-muted: #8a8a9a;
    --usp-bg: #fbf8f9;
}

/* ============================================================================
   Кнопка добавления — общая для всего проекта.
   Новое имя .ui-add; старое .events_add_event_button-decoration оставлено
   рядом, потому что уже используется в четырёх местах (добавить мероприятие,
   пользователя, объект в список, доступ) — так новый вид разошёлся везде
   без правки разметки. В новом коде используем .ui-add.

   Добавление — главное действие экрана, поэтому кнопка залитая, а не
   обведённая: раньше она весила меньше, чем соседние второстепенные элементы.
   По умолчанию квадратная 34x34 под одну иконку; с подписью — .ui-add--label.
   ============================================================================ */
.ui-add,
.events_add_event_button-decoration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background-color: #2b2d33;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(11, 11, 11, .22);
    -webkit-transition: background-color .15s ease, box-shadow .15s ease, -webkit-transform .15s ease;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ui-add .glyphicon,
.events_add_event_button-decoration .glyphicon {
    top: 0;
    font-size: 14px;
}
.ui-add:hover,
.events_add_event_button-decoration:hover {
    background-color: #3c3f48;
    color: #ffffff;
    border: 0;
    box-shadow: 0 4px 12px rgba(11, 11, 11, .28);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}
/* Нажатие возвращает кнопку на место — иначе клик не ощущается физически. */
.ui-add:active,
.events_add_event_button-decoration:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(11, 11, 11, .22);
}
.ui-add:focus-visible,
.events_add_event_button-decoration:focus-visible {
    outline: 2px solid #0b0b0b;
    outline-offset: 2px;
}
/* Вариант с подписью: та же кнопка, но не квадрат */
.ui-add--label {
    width: auto;
    padding: 0 14px;
}
.ui-add[disabled],
.ui-add.is-disabled {
    background-color: #e9e6ea;
    color: #aaa6ae;
    box-shadow: none;
    cursor: default;
    -webkit-transform: none;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .ui-add, .events_add_event_button-decoration { transition: none; }
    .ui-add:hover, .events_add_event_button-decoration:hover {
        -webkit-transform: none; transform: none; }
}

/* ============================================================================
   redesign: модалка «Индивидуальные настройки»
   Префикс .usp-* (user settings panel). Переопределения самого модального окна
   живут ТОЛЬКО внутри .settings-modal — остальные модалки приложения не задеты.
   Палитра синхронизирована с мобильным проектом SCMob (src/theme/colors.ts).
   ============================================================================ */
.modalWindow.settings-modal {
    --usp-primary: #cc72a2;
    --usp-primary-dark: #b85f8f;
    --usp-primary-soft: #f6ebef;
    --usp-surface: #ffffff;
    --usp-bg: #fbf8f9;
    --usp-text: #3c3c43;
    --usp-muted: #8a8a9a;
    --usp-divider: #efeeee;

    width: 560px;
    /* transform не используем: ContainerLoadIndicatorShow позиционируется по position().left */
    left: calc(50% - 280px);
    height: auto;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    background: var(--usp-surface);
    border-radius: 18px;
    box-shadow: 0 24px 60px -12px rgba(60, 60, 67, .34), 0 0 0 1px rgba(60, 60, 67, .06);
    text-align: left;
    color: var(--usp-text);
}

/* --- шапка: заголовок слева, крестик справа (в DOM они идут наоборот) --- */
.settings-modal .modalWindowHead {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 16px 18px 14px 22px;
    background: var(--usp-surface);
    border: 0;
    border-bottom: 1px solid var(--usp-divider);
    border-radius: 18px 18px 0 0;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    color: var(--usp-text);
}
.settings-modal .modalWindowHead .textMiddle {
    flex: 1 1 auto;
    text-align: left;
}
.settings-modal .closecross {
    padding: 0;
    cursor: pointer;
}
.settings-modal .closecross .glyphicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    color: var(--usp-muted);
    font-size: 13px;
    transition: background .15s ease, color .15s ease;
}
.settings-modal .closecross .glyphicon:hover,
.settings-modal .closecross .glyphicon:focus {
    background: var(--usp-primary-soft);
    color: var(--usp-primary);
}

/* --- тело: прокручивается только список настроек --- */
.settings-modal .modalWindowBody {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    padding: 0;
    background: var(--usp-bg);
}

/* --- подвал: слева статус, справа кнопки --- */
.settings-modal .modalWindowFooter {
    position: static;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    width: auto;
    height: auto;
    top: auto;
    margin: 0;
    padding: 12px 18px;
    background: var(--usp-surface);
    border-top: 1px solid var(--usp-divider);
    border-radius: 0 0 18px 18px;
    text-align: left;
}
.settings-modal .modalWindowFooter #buttonsContainer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.settings-modal .modalWindowFooter #buttonsContainer > span {
    display: none;/* распорки-пробелы между кнопками — вместо них gap */
}
.usp-footer-status {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--usp-muted);
}
.usp-footer-status--dirty {
    color: var(--usp-primary);
    font-weight: 600;
}
.settings-modal .usp-btn {
    margin: 0;
    padding: 9px 18px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.settings-modal .usp-btn--primary {
    background: var(--usp-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(204, 114, 162, .35);
}
.settings-modal .usp-btn--primary:hover,
.settings-modal .usp-btn--primary:focus {
    background: var(--usp-primary-dark);
    color: #fff;
}
.settings-modal .usp-btn--primary[disabled] {
    background: #e9e6ea;
    color: #aaa6ae;
    box-shadow: none;
    cursor: default;
}
.settings-modal .usp-btn--ghost {
    background: transparent;
    color: var(--usp-muted);
}
.settings-modal .usp-btn--ghost:hover,
.settings-modal .usp-btn--ghost:focus {
    background: var(--usp-divider);
    color: var(--usp-text);
}

/* --- содержимое панели --- */
.usp {
    padding: 16px 18px 4px;
    text-align: left;
    font-size: 14px;
    color: var(--usp-text);
}
.usp-account {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    background: var(--usp-primary-soft);
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #8d5c76;
}
.usp-account__icon {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 12px;
    opacity: .75;
}
.usp-group {
    margin-top: 18px;
}
.usp-group__head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px 2px;
}
.usp-group__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    background: var(--usp-primary-soft);
    border-radius: 8px;
    color: var(--usp-primary);
    font-size: 11px;
}
.usp-group__title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--usp-muted);
}
.usp-list {
    background: var(--usp-surface);
    border: 1px solid var(--usp-divider);
    border-radius: 14px;
    overflow: hidden;
}
.usp-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 13px 15px;
    max-width: none;
    font-weight: 400;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: background .15s ease;
}
.usp-row + .usp-row {
    border-top: 1px solid var(--usp-divider);
}
.usp-row:hover {
    background: #fbf6f8;
}
.usp-row__text {
    flex: 1 1 auto;
    min-width: 0;
}
.usp-row__title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--usp-text);
}
.usp-row__hint {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--usp-muted);
}

/* --- переключатель: настоящий checkbox, растянут поверх дорожки и невидим --- */
.usp-switch {
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 27px;
    margin-top: 1px;
}
.usp-switch__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.usp-switch__track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d9d5db;
    border-radius: 999px;
    transition: background .2s ease, box-shadow .15s ease;
}
.usp-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(60, 60, 67, .3);
    transition: transform .2s cubic-bezier(.2, .8, .3, 1);
}
.usp-switch__input:checked ~ .usp-switch__track {
    background: var(--usp-primary);
}
.usp-switch__input:checked ~ .usp-switch__track .usp-switch__thumb {
    transform: translateX(19px);
}
.usp-switch__input:focus-visible ~ .usp-switch__track {
    box-shadow: 0 0 0 3px rgba(204, 114, 162, .38);
}
@supports not selector(:focus-visible) {
    .usp-switch__input:focus ~ .usp-switch__track {
        box-shadow: 0 0 0 3px rgba(204, 114, 162, .38);
    }
}

@media (max-width: 620px) {
    .modalWindow.settings-modal {
        width: auto;
        left: 10px;
        right: 10px;
        max-height: 90vh;
    }
}
@media (prefers-reduced-motion: reduce) {
    .settings-modal .usp-row,
    .settings-modal .usp-switch__track,
    .settings-modal .usp-switch__thumb,
    .settings-modal .usp-btn {
        transition: none;
    }
}

/* Строка настроек с выпадающим списком вместо переключателя: контрол уходит
   под подпись, иначе на узкой модалке он сжимается в нечитаемую полоску. */
.usp-row--select { display: block; cursor: default; }
.usp-row--select .usp-row__text { display: block; margin-bottom: 9px; }
.usp-row--select .select2-container { width: 100% !important; }
.usp-row--select .pf-s2-dd .select2-results__option { white-space: normal; }
.settings-modal .usp-row--select .select2-selection--multiple {
    min-height: 34px; border: 1px solid rgba(11,11,11,.16); border-radius: 9px; }
.settings-modal .usp-row--select .select2-selection__choice {
    background: #e8f1fc; border: 1px solid rgba(42,120,214,.25); border-radius: 7px;
    color: #1c5cab; padding: 1px 7px; margin: 4px 4px 0 0; }

/* Шапка окна прав: только иконка и имя, оба крупнее — это единственное,
   что здесь нужно опознать. */
.usp-account--user { align-items: center; padding: 13px 15px; }
.usp-account--user .usp-account__icon { font-size: 17px; opacity: 1; margin-top: 0; }
.usp-account__name { font-size: 16px; font-weight: 700; color: #8d5c76; line-height: 1.3; }

.ui-confirm { padding: 4px 2px 2px; text-align: left; }
.ui-warn {
    padding: 12px 14px;
    background: #fdf6e3;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #8a5d00;
}
.ui-confirm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0 2px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid rgba(11, 11, 11, .10);
    border-radius: 10px;
    font-weight: 400;
    cursor: pointer;
    user-select: none;
}
.ui-confirm-row:hover { border-color: rgba(11, 11, 11, .2); }
.ui-confirm-label { font-size: 13.5px; font-weight: 600; color: #0b0b0b; }
