/*
    ПРОЕКТ "КОРОБОК"
    ОБЩИЕ ЭЛЕМЕНТЫ ОФОРМЛЕНИЯ СТРАНИЦЫ
    С ГЛАВНЫМ МЕНЮ, МОБИЛЬНЫМ ГЛАВНЫМ МЕНЮ И КОНТЕКСТНЫМИ МЕНЮ
    ФАЙЛ ДОЛЖЕН ПОДКЛЮЧАТЬСЯ В ПЕРВУЮ ОЧЕРЕДЬ К КАЖДОЙ СТРАНИЦЕ ПРОЕКТА

    Последняя версия: 31.01.2024

    UPD: исправлено отображения scrollbar из-за нововведений Chrome
*/

@import "consts.css";
@import "fonts.css";

/*
    Глобальные модификаторы
*/

.hidden {
    display: none !important;
}

.visible {
    visibility: visible !important;
}

.not-visible {
    visibility: hidden !important;
}

.text-danger {
    color: var(--red__red_600);

    text-align: center;
}

.mb_0 {
    margin-bottom: 0 !important;
}

.pr_26 {
    padding-right: 26px !important;
}

/*
    Страница в целом
*/

body {
    font-family: var(--base-font-family);

    scroll-behavior: smooth;
    scroll-margin-top: 50px
}

body::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--purple__purple_100);
}

body::-webkit-scrollbar-track {
    background-color: var(--grey-background);
}

body::-moz-scrollbar-button, ::-webkit-scrollbar-button {
    display: none;
    width: 0px;
}


/*
    Интпуты чисел
*/

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
}


/*
    Чекбоксы
*/

input[type="checkbox"] {
    margin: 0 10px 0 0;

    transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
}

input[type="checkbox"]:disabled + label {
    cursor: not-allowed;
}

@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    input[type="checkbox"] {
        -webkit-appearance: none;
        -moz-appearance: none;

        position: relative;
        display: inline-block;
        vertical-align: top;
        width: 20px;
        height: 20px;
        outline: none;

        margin: 0 10px 0 0;

        border: none;

        background: url(../resources/checkbox-not-checked.svg);

        cursor: pointer;
        transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
    }
    input[type="checkbox"]:after {
        content: "";
        display: block;
        left: 0;
        top: 0;
        position: absolute;
    }
    input[type="checkbox"]:checked {
        background: url(../resources/checkbox-checked.svg);
    }
    input[type="checkbox"]:disabled {
        cursor: not-allowed;
        opacity: 0.9;
        filter: grayscale();
    }

    input[type="checkbox"]:disabled + label {
        cursor: not-allowed;
    }
}


/*
    Селекты
*/


@supports (appearance: none) or (-webkit-appearance: none) or (-moz-appearance: none) {
    select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;

        display: inline-block;
        position: relative;
        vertical-align: top;
        width: 100%;
        height: auto;
        outline: none;

        padding: 7px 30px 7px 12px;

        color: var(--input__value);
        font-size: 14px;
        font-weight: 400;

        line-height: 24px;

        border: 1px solid var(--blue__blue_0);
        border-radius: 5px;

        background-color: var(--white-background) !important;

        background: url(../resources/arrow.svg) no-repeat right;
        background-position-x: calc(100% - 8px);

        cursor: pointer;
    }
}

select:required:invalid {
    color: var(--input__value);
}

select:hover {
    color: var(--text__main);

    border-color: var(--purple__purple_500);
}

option[value=""][disabled] {
    display: none;
}

option {
    height: 65px;
    margin-bottom: 10px;
    padding-left: 30px;

    color: var(--text__second);
    font-size: 14px;
    font-weight: 400;
}

option:nth-last-child(1) {
    margin-bottom: 0;
}

/*
    Текстовые заголовки
*/

.title {
    color: var(--text__main);
    font-size: 24px;
    font-weight: 600;

    line-height: 34px;
}


/*
    Селекты дат
*/

.date-selectors {
    display: flex;
}

.date-selector__from {
    margin-right: 11px;
}

.date-selector__to {
    margin-right: 0;
}

input[type="date"] {
    position: relative;
    padding: 7px 12px;

    color: var(--input__value);
    overflow: hidden;
    white-space: nowrap;

    text-align: left;
}

input::-webkit-date-and-time-value {
    text-align: left;
}


@supports (-webkit-appearance: none) or (-moz-appearance: none) {
    input[type="date"] {
        -webkit-appearance: none;
        -moz-appearance: none;

        padding: 7px 12px;

        color: var(--input__value);

        text-align: left;

        outline: none;

        border: 1px solid var(--blue__blue_0);
        border-radius: 5px;
        background-color: var(--white-background);
    }


    input[type="date"]:focus {
        border: 1px solid var(--purple__purple_500);
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        width: 16px;
        height: 16px;
        opacity: 0;

        cursor: pointer;
    }

    input[type="date"]::before {
        content: "";
        background: url(../resources/calendar-not-focused.svg) no-repeat;
        background-size: 14px 14px;
        position: absolute;
        right: 13px;
        top: 50%;
        transform: translateY(-50%);
        width: 14px;
        height: 14px;
    }

    input[type="date"]:focus::before {
        background: url(../resources/calendar-focused.svg) no-repeat;
        background-size: 14px 14px;
    }
}


/*
    Блок обратной совместимости,
    по окончанию проекта удалить.

    Алерты - по факту, всплывашки
    Ошибки валидации
*/

.alert {
    padding: 10px;

    border: 1px solid var(--grey__menu_200);
    border-radius: 5px;

    background-color: var(--white-background);

    box-shadow: 0px 5px 10px var(--grey__grey_200);
}

.danger-validation {
    color: var(--red__red_600);
    margin-bottom: 12px;
}

#notify-span {
    display: block;
}

.notify-span_mb-10 {
    margin-bottom: 10px !important;
}

/*
    Шапка сайта - содержит навигационную панель .navbar
*/

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 50%;
    transform: translate(-50%);

    max-width: 1440px;
    margin: 0 auto;
    padding: 33px 50px;

    background-color: var(--grey-background);

    overflow: auto;

    z-index: 1000;
}


/*
    Основное содержимое страницы
*/

.container {
    max-width: 1440px;
    height: calc(100% - 116px);
    height: calc(var(--vh, 1vh) * 100 - 116px);
    margin: 116px auto 0;
    padding: 27px 50px 0;
    background-color: var(--grey-background);

    overflow: auto;
    overflow-y: hidden;
}

.container::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.container::-webkit-scrollbar-thumb {
    background-color: var(--purple__purple_100);
}

.container::-webkit-scrollbar-track {
    background-color: var(--grey-background);
}

.container::-moz-scrollbar-button, ::-webkit-scrollbar-button {
    display:none;
    width: 0px;
}


/*
    Навигационная панель с логотипом, главным меню и тулбоксом в правой части
*/

.navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    flex-wrap: nowrap;

    height: 50px;
}


/*
    Навигационная панель для мобильных устройств
*/

.navbar-portable {
    display: none;
}


/*
    Логотип
*/

.logo {
    width: 180px;
    height: 46px;
}

.logo__link {
    cursor: pointer;
}


/*
    Главное меню сайта - верхнее меню для настольной версии
*/

.menu-main {
    flex-grow: 1;
    padding-left: 46px;
}

.menu-main__items {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    margin: 0;
    padding: 0;

    list-style: none;

    font-family: var(--base-font-family);
    font-size: 13px;
    font-weight: 500;
}

.menu-main__item {
    display: flex;

    margin-right: 36px;
    white-space: nowrap;

    color: var(--text__second);

    cursor: pointer;
}

.menu-main__item-link {

    color: var(--text__second);

    text-decoration: none;
}

.menu-main__item-link_current {
    color: var(--purple__purple_500) !important;

    text-decoration: none;
}

/* "Птичка" у пункта меню, для открывания подменю*/
.menu-main__item-icon {
    height: 15px;
}

.menu-main__item-link:hover {
    color: var(--purple__purple_500);

    text-decoration: none;
}

.menu-main__item_orders {
    order: 0;
}

.menu-main__item_delivery {
    order: 0;
}

.menu-main__item_indicators {
    order: 1;
}

.menu-main__item_users {
    order: 1;
}

/*
    Строка поиска.
    Отображается по нажатию "увеличительного стекла" вместо главного меню.
*/

.searchform {
    position: relative;
    display: flex;
    flex-grow: 1;
    padding: 5px 0 5px 12px;
}

.searchform_header {
    display: flex;
    flex-grow: 1;
    padding: 10px 0 0 0;
}

.searchform__input {
    height: 30px;

    font-size: 14px;
}

.searchform__search-button {
    display: flex;
    align-items: center;
    width: 25px;
    height: 25px;
    margin: 2px 0 0 10px;

    background: url(../resources/search.svg) no-repeat;

    cursor: pointer;
}

.searchform__search-button:hover {
    background: url(../resources/search-focused.svg) no-repeat;
}

.searchform__close-button {
    position: absolute;
    right: 43px;
    top: 15px;

    cursor: pointer;
}

.searchform_navbar .searchform__close-button {
    position: absolute;
    right: 10px;
    top: 10px;
}


/*
    Подсветка найденного текста на странице
*/

.searched {
    background-color: var(--searched) !important;
}

/*
  Тулбокс - правая часть шапки. Содержит
    .search - поиск
    .notification - колокольчик уведомлений
    .button-profile - кнопка Администрирование, аватара и кнопка profile
*/

.toolbox {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}


/*
    Поиск по сайту
*/

.search {
    width: 25px;
    height: 25px;
    margin: 0 20px 0 10px;
    padding-top: 4px;

    background: url(../resources/search.svg) no-repeat;

    cursor: pointer;
}

.search:hover {
    background: url(../resources/search-focused.svg) no-repeat;
}

.search__button {
    width: 25px;
    height: 25px;
}

/*
    Колокольчик уведомлений
*/

.notification {
    width: 25px;
    height: 25px;
    margin-right: 20px;

    background: url(../resources/notification.svg) no-repeat;

    cursor: pointer;
}

.notification:hover {
    background: url(../resources/notification-focused.svg) no-repeat;
}

.notification_unread {
    background: url(../resources/notification-unread.svg) no-repeat;

    animation: notify 1.5s forwards;
}

.notification_unread:hover {
    background: url(../resources/notification-unread-focused.svg) no-repeat;
}

@keyframes notify {
    0%  {transform: rotate(-5deg);}
    5%  {transform: rotate(-10deg);}
    10% {transform: rotate(-15deg);}
    15% {transform: rotate(-18deg);}
    20% {transform: rotate(-20deg);}
    25% {transform: rotate(-18deg);}
    30% {transform: rotate(-15deg);}
    35% {transform: rotate(-10deg);}
    40% {transform: rotate(-5deg);}
    45% {transform: rotate(0deg);}
    50% {transform: rotate(5deg);}
    55% {transform: rotate(10deg);}
    60% {transform: rotate(15deg);}
    65% {transform: rotate(18deg);}
    70% {transform: rotate(20deg);}
    75% {transform: rotate(18deg);}
    80% {transform: rotate(15deg);}
    85% {transform: rotate(10deg);}
    90% {transform: rotate(5deg);}
    95% {transform: rotate(0deg);}
    100% {transform: rotate(0deg);}
  }

/*
    Кнопка Администрирование, кнопка контекстного меню с аватарой
*/

.button-profile {
    display: flex;
    align-items: center;
}


/*
    Кнопка
*/

.button {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 7px 13px;

    font-size: 14px;
    color: var(--button__text);

    line-height: 26px;

    outline: none;
    overflow: hidden;
    white-space: nowrap;

    border: none;
    border-radius: 4px;

    background-color: var(--purple__purple_500);

    cursor: pointer;
}

    .button[disabled], 
    .button[disabled]:hover {
        background-color: var(--grey__grey_200);
        cursor: default;
    }

.button:hover {
    background-color: var(--purple__purple_600);
}


.button_link, .button_link:visited {
    color: var(--button__text);
    text-decoration: none;
}

.button_red {
    background-color: var(--red__red_500);
}

.button_red:hover {
    background-color: var(--red__red_600);
}

.button_orange {
    background-color: var(--orange__orange_500);
}

.button_orange:hover {
    background-color: #e66a3e;
}

.button_centered {
    text-align: center;
}


/*
    Значок профиля и кнопка контекстного меню
*/

.profile {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 64px;
    height: 50px;

    margin-left: 8px;

    cursor: pointer;
}

.profile__avatar {
    width: 50px;
    height: 50px;
}

.profile__avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.profile__icon-image {
    width: 16px;
    height: 15px;
}


/*
    Модификатор кнопки Администрирование шапки сайта header
*/

.header__button {
    width: 171px;
    height: 40px;
}


/*
    Кнопка-полоска, открывающая главное меню в мобильной версии
*/

.strap {
    display: none;

    cursor: pointer;
}

.strap__image {
    width: 100%;
    min-width: 24px;
    height: auto;
}


/*
    Контекстное меню
*/

.menu-context {
    display: none;
    position: fixed;

    padding: 1px 11px;

    border-radius: 4px;

    background-color: var(--white);

    z-index: 2000;
}

.menu-context__items {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    list-style: none;
    padding: 0;
    padding-inline-start: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

.menu-context__item {
    width: 100%;
    margin: 8px 0;

    color: var(--text__second);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0.325px;

    cursor: pointer;
}

.menu-context__icon {
    width: 16px;
    height: 16px;

    margin-right: 6px;
}

.menu-context__link {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    color: var(--text__second);


    text-decoration: none;

    cursor: pointer;
}

.menu-context__link:hover {
    color: var(--purple__purple_500);

    text-decoration: none;
}


/*
    Панель уведомлений notifications - видоизменённое контекстное меню
*/

.menu-context_notifications {
    padding: 1px 0;
}

.menu-context__items_notify {
    display: block;
    max-height: 270px;
    padding: 7px 7px 7px 0;

    overflow-y: scroll;
}

.menu-context__items_notify::-webkit-scrollbar {
    margin-left: 8px;
    width: 4px;
    height: 4px;
}

.menu-context__items_notify::-webkit-scrollbar-thumb {
    background-color: var(--purple__purple_100);
}

.menu-context__items_notify::-webkit-scrollbar-track {
    background-color: var(--white-background);
}

::-moz-scrollbar-button, ::-webkit-scrollbar-button {
    display:none;
    width: 0px;
}

.menu-context__item_notify {
    margin: 3px 0;
    padding-left: 11px;
}

.menu-context__time {
    font-size: 11px;
    font-weight: 300;
    color: var(--text__second);

    cursor: default;
}

.menu-context__message {
    color: var(--text__second);

    cursor: default;
}

.menu-context__item_readall {
    margin: 0 0 7px 0;
    padding: 8px 11px 0 0;

    text-align: center;

    border-top: 1px solid var(--blue__blue_0);
}

.menu-context__item_noborder {
    margin: 3px 0;
    padding: 0 3px 0 13px;

    border-top: none;
}

.menu-context__item_noborder:hover {
    color: var(--text__second);

    text-decoration: none;
}


.menu-context__link_readall {
    text-align: center;

    cursor: pointer;
}

.menu-context__link_readall:hover {
    color: var(--purple__purple_500);

    text-decoration: none;
}

/*
    Главное меню сайта - верхнее меню для мобильной версии
*/

.menu-main-mobile {
    display: none;
    position: fixed;

    width: 100%;
    padding: 0 20px;

    background-color: var(--white);

    z-index: 2000;
}

.menu-main-mobile__items {
    list-style: none;

    margin-top: 0;
    padding: 0;
}

.menu-main-mobile__item {
    padding: 16px 0;

    color: var(--text__second);
    font-size: 14px;
    font-weight: 400;
    line-height: 26px;

    border-bottom-width: 1px;
    border-bottom-color: var(--grey__menu_200);
    border-bottom-style: solid;
}

.menu-main-mobile__item-link {
    display: flex;

    color: var(--text__second);

    text-decoration: none;

    cursor: pointer;
}

.menu-main-mobile__item-link:hover {
    color: var(--purple__purple_500);

    text-decoration: none;
}


/*
    Подменю главного меню сайта - верхнего меню для мобильной версии
*/

.menu-main-mobile-submenu {
    display: none;
}

.menu-main-mobile-submenu__items {
    list-style: none;
    padding: 8px 0 0;
}

.menu-main-mobile-submenu__item {
    padding: 8px 0;
}

.menu-main-mobile-submenu__item-link {
    display: flex;

    color: var(--text__second);

    text-decoration: none;

    cursor: pointer;
}


/*
    Структурные блоки, используемые на странице
*/

.block-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: start;
}

.block {
    padding: 29px 32px;

    color: var(--text__second);
    font-size: 14px;
    font-weight: 500;

    background-color: var(--white-background);

    border-radius: 4px;
}

.block__header {
    margin: 0;
}

.block__header_mb-16 {
    margin-bottom: 16px;
}

.block__header_mb-12 {
    margin-bottom: 12px;
}

.block__link {
    color: var(--text__second);
}

.block_mb-20 {
    margin-bottom: 20px;
}

.block_centered {
    text-align: center;
}

.block_aside-left {
    flex-grow: 0;
    flex-shrink: 0;

    width: 398px;
    margin-right: 20px;
}

.block_aside-right {
    flex-grow: 1;
    flex-shrink: 1;
}


/*
    Форма
*/

.form__content {
    margin-bottom: 25px;
}

.form__label {
    display: block;
    margin-bottom: 12px;

    color: var(--text__main);
    font-weight: 500;
}

.form__label_purple {
    color: var(--purple__purple_500);
}

.form__text {
    position: relative;
    display: block;
    width: 100%;

    margin-bottom: 16px;
    padding: 7px 12px;

    color: var(--input__value);
    font-weight: 400;

    line-height: 24px;

    border-radius: 5px;
    border: 1px solid var(--blue__blue_0);

    outline: 0;

    background-color: var(--white-background);

    caret-color: var(--black);
}

.form__text:disabled {
    color: var(--text__main);

    border-color: var(--blue__blue_1);

    background-color: var(--blue__blue_1);

    pointer-events: none;
}

.form__text:disabled:focus {
    border: 1px solid var(--blue__blue_0);
}

.form__text::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: var(--input__value);
}

.form__text:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: var(--input__value);
    opacity:  1;
}

.form__text::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: var(--input__value);
    opacity:  1;
}

.form__text:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--input__value);
}

.form__text::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--input__value);
}

.form__text::placeholder { /* Most modern browsers support this now. */
    color: var(--input__value);
}

.form__text:hover::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: var(--text__main);
}

.form__text:hover:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: var(--text__main);
    opacity:  1;
}

.form__text:hover::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: var(--text__main);
    opacity:  1;
}

.form__text:hover:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--text__main);
}

.form__text:hover::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--text__main);
}

.form__text:hover::placeholder { /* Most modern browsers support this now. */
    color: var(--text__main);
}

.form__text_error {
    color: var(--red__red_500);

    border-color: var(--red__red_500);
}

.form__text:hover {
    color: var(--text__main);

    border-color: var(--purple__purple_500);
}

.form__text:focus {
    color: var(--text__main);

    border-color: var(--purple__purple_500);
}

.form__text:invalid {
    color: var(--red__red_500);

    border-color:  var(--red__red_500);
}

.form__password {
    position: relative;
    display: flex;
    align-items: center;

    margin-bottom: 16px;
}

.form__password-text {
    display: block;
    width: 100%;

    margin-bottom: 0;
    padding: 7px 50px 7px 12px;

    color: var(--input__value);
    font-weight: 400;

    line-height: 26px;

    border-radius: 5px;
    border: 1px solid var(--blue__blue_0);

    outline: 0;

    caret-color: var(--black);
}

.form__password-text::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: var(--input__value);
}

.form__password-text:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: var(--input__value);
    opacity:  1;
}

.form__password-text::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: var(--input__value);
    opacity:  1;
}

.form__password-text:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--input__value);
}

.form__password-text::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--input__value);
}

.form__password-text::placeholder { /* Most modern browsers support this now. */
    color: var(--input__value);
}

.form__password-visibility {
    position: absolute;
    width: 25px;
    height: 25px;
    right: 16px;

    background: url(../resources/text-blurred.svg);

    cursor: pointer;
}

.form__password-visibility:hover {
    background: url(../resources/text-focused.svg);
}

.form__password-visibility_focused {
    background: url(../resources/text-focused.svg);
}

.form__password-visibility_blurred {
    background: url(../resources/text-blurred.svg);
}

.form__password-text:focus {
    color: var(--text__main);
    border-color: var(--purple__purple_500);
}

.form__checkbox {
    height: 20px;
    margin-right: 10px;
}

.form__checkbox-label {
    margin-bottom: 0;
    line-height: 20px;
}

.form__select {
    margin-bottom: 16px;
}

.form__qr {
    border: 1px solid var(--qr_border);
}

.form__link {
    margin-bottom: 16px;

    color: var(--blue__blue_500);
    font-size: 12px;
    font-weight: 400;

    line-height: 24px;

    cursor: pointer;
}

.form__textarea {
    position: relative;
    display: block;
    width: 100%;

    margin-bottom: 16px;
    padding: 7px 12px;

    color: var(--input__value);
    font-weight: 400;

    line-height: 26px;

    border-radius: 5px;
    border: 1px solid var(--blue__blue_0);

    outline: 0;

    background-color: var(--white-background) !important;

    caret-color: var(--black);
}

.form__textarea::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: var(--input__value);
}

.form__textarea:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: var(--input__value);
    opacity:  1;
}

.form__textarea::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: var(--input__value);
    opacity:  1;
}

.form__textarea:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--input__value);
}

.form__textarea::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--input__value);
}

.form__textarea::placeholder { /* Most modern browsers support this now. */
    color: var(--input__value);
}

.form__textarea:hover::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color: var(--text__main);
}

.form__textarea:hover:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    color: var(--text__main);
    opacity:  1;
}

.form__textarea:hover::-moz-placeholder { /* Mozilla Firefox 19+ */
    color: var(--text__main);
    opacity:  1;
}

.form__textarea:hover:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: var(--text__main);
}

.form__textarea:hover::-ms-input-placeholder { /* Microsoft Edge */
    color: var(--text__main);
}

.form__textarea:hover::placeholder { /* Most modern browsers support this now. */
    color: var(--text__main);
}

.form__textarea_error {
    color: var(--red__red_500);

    border-color: var(--red__red_500);
}

.form__textarea:hover {
    color: var(--text__main);

    border-color: var(--purple__purple_500);
}

.form__textarea:focus {
    color: var(--text__main);

    border-color: var(--purple__purple_500);
}

.form__textarea:invalid {
    color: var(--red__red_500);

    border-color:  var(--red__red_500);
}

.form__textblock {
    position: relative;
    display: block;
    width: 100%;

    margin-bottom: 12px;
    padding: 7px 12px;

    color: var(--text__main);
    font-weight: 400;

    line-height: 26px;

    border-radius: 5px;
    border: 0;
    outline: 0;

    background-color: var(--blue__blue_1);
}

.form__line {
    display: none;
    height: 1px;
    margin-top: -5px;
    margin-bottom: 10px;

    border-top: 1px solid var(--grey__menu_200);
}

/*
    Попапы. Фрагмент стилей перенесен из файла popup.css старого стиля.
*/

.popup-background {
    background: #0000008e;
    opacity: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    position: fixed;
    align-items: center;
    visibility: visible;
    transition: all linear 0.2s;
    top: 0;
    left: 0;
    z-index: 1000;
}

.popup-background.qr {
    top: 0;
    left: 0;
    display: none;
    z-index: 1000;
}

.popup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 50%;
    width: fit-content;
    height: fit-content;
    margin: 0 37px 0 35px;
    padding: 15px;
    border-radius: 4px;
    background: white;
    /*box-shadow: 0px 5px 10px var(--grey__grey_200);*/
    z-index: 3000;
}

.notify-popup {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    padding: 30px;
    height: fit-content;
    color: var(--text__main);
    border: none;
    border-radius: 4px;
    background: var(--white-background);
    /*box-shadow: 0px 5px 10px var(--grey__grey_200);*/
    word-wrap: normal;
    transition: opacity 1s;
}

.notify-popup_shadow {
    box-shadow: 0px 5px 10px var(--grey__grey_200);
}

/*NEW POPUP*/
/*Work with JS*/
.popup-background-extend {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000c2;
    opacity: 0;
    transition: all 0.3s;
    z-index: 1000;
}

.popup-foreground-extend {
    display: flex;
    justify-content: center;
    align-items: center;
    height: fit-content;
    width: fit-content;
    margin: 0 10px;
    padding: 15px;
    font-family: var(--base-font-family);
    border-radius: 4px;
    background: white;
    transform: scale(0);
    transition: all cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}


@media screen and (max-width: 1440px) {
    /*
        Максимальный правый отступ пунктов меню - 36px при разрешении по горизонтали больше 1440px. Минимальный 10px при 1210px
        calc (минимальный отступ + (максимальный отступ - минимальный отступ)/(максимальная ширина - минимальная ширина) * (100vw - минимальная ширина)
    */

    .menu-main__item {
        margin-right: calc(-127px + 11.3vw);
    }
}

/* При 1210px перестает умещаться главное меню и сворачивается*/
/* Этот медиазапрос относится только к главному меню*/

@media screen and (max-width: 1210px) {
    .header {
        width: 100%;
        padding: 20px 32px;
    }

    .container {
        /* padding: 106px 32px 0; */

        height: calc(100% - 90px);
        height: calc(var(--vh, 1vh) * 100 - 90px);
        margin: 90px auto 0;
        padding: 23px 32px 0;
    }

    .menu-main {
        display: none;
    }

    .menu-main-mobile {
        top: 90px;
        height: calc(100vh - 90px);
        height: calc(var(--vh, 1vh) * 100 - 90px);
        overflow-y: scroll;

    }

    .menu-main-mobile::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    .menu-main-mobile::-webkit-scrollbar-thumb {
        background-color: var(--purple__purple_100);
    }

    .menu-main-mobile::-webkit-scrollbar-track {
        background-color: var(--white-background);
    }

    .menu-main-mobile::-moz-scrollbar-button, ::-webkit-scrollbar-button {
        display: none;
        width: 0px;
    }

    .strap {
        display: block;
        margin-left: 20px;
    }

    .form__select {
        font-size: 16px;
    }
}

@media screen and (max-width: 1024px) {
    .button {
        font-size: 16px;
    }

    .header__button {
        width: 192px;
        height: 40px;

    }

    .block-wrapper {
        display: block;
    }

    .block__header_mb-16 {
        margin-bottom: 10px;
    }

    .block__header_mb-12 {
        margin-bottom: 10px;
    }

    .block_aside-left {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .block_aside-right {
        width: 100%;
    }

    .form__group {
        flex: 1 1 0;
        margin-right: 15px;
    }

    .form__group:nth-last-child(1) {
        margin-right: 0;
    }

    .form__label {
        font-size: 16px;
    }

    .form__text {
        margin-bottom: 15px;

        font-size: 16px;
    }

    .form__textblock {
        margin-bottom: 10px;

        font-size: 16px;
    }

    .form__password {
        margin-bottom: 15px;
    }

    .form__password-text {
        margin-bottom: 0;

        font-size: 16px;
    }

    .form__link {
        margin-bottom: 15px;
    }

    .form__line {
        display: block;
        width: 75%;
    }
}

@media screen and (max-width: 768px) {
    .header {
        padding: 14px 16px;
    }

    .menu-main-mobile {
        top: 78px;
        height: calc(var(--vh, 1vh) * 100 - 78px);
        height: calc(100vh - 78px);
    }

    .container {
        height: calc(100% - 64px);
        height: calc(var(--vh, 1vh) * 100 - 64px);

        /* padding: 78px 16px 0; */
        margin: 64px auto 0;
        padding: 26px 16px 0;
    }

    .form__line {
        width: 100%;
    }
}

@media screen and (max-width: 625px) {
    body {
        background-color: var(--grey-background);
    }

    .title {
        line-height: 24.5px;
    }

    .header {
        padding: 10px 20px;

        background-color: var(--white);
        box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.08);
    }

    .navbar {
        height: 32px;
    }

    .toolbox {
        padding: 0;
    }

    .search {
        display: flex;
        margin-right: 14px;
        padding-top: 0;
    }

    .search__button {
        width: 24px;
        height: 24px
    }

    .notification {
        width: 24px;
        height: 24px;

        margin-right: 14px;
    }

    .strap {
        padding: 0;
    }

    .logo {
        width: 103px;
        height: 25px;
    }

    .logo__image {
        width: 100%;
        min-width: 103px;
        height: auto;
    }

    .header__button {
        display: none;
    }

    .profile {
        justify-content: space-between;

        width: 50px;
        margin-left: 0;
    }

    .profile__avatar {
        width: 32px;
        height: 32px;
        padding: 0;
    }

    .strap {
        margin-left: 14px;
    }

    .menu-main-mobile {
        top: 52px;
        height: calc(var(--vh, 1vh) * 100 - 52px);
        height: calc(100vh - 52px);
    }

    .container {

        height: calc(100% - 52px);
        height: calc(var(--vh, 1vh) * 100 - 52px);

        /* padding: 78px 16px 0; */
        margin: 52px auto 0;
        padding: 20px 16px 0;
    }

    .button {
        padding: 6px 12px;

        font-size: 13px;

        line-height: 22px;
    }

    .block {
        padding: 18px 19px;
    }

    .block__header_mb-16 {
        margin-bottom: 12px;
    }

    .form__label {
        margin-bottom: 8px;

        font-size: 14px;
    }

    .form__text {
        margin-bottom: 12px;
        padding: 6px 12px;

        font-size: 14px;

        line-height: 20px;
    }

    .pr_26 {
        padding-right: 28px !important;
    }

    .form__password {
        margin-bottom: 12px;
    }

    .form__password-text {
        padding: 6px 12px;

        font-size: 14px;

        line-height: 20px;
    }
}

@media screen and (max-width: 480px) {
    .form__group {
        margin-right: 0;
    }

    .form__label {
        margin-bottom: 8px;

        font-size: 14px;
    }

    .form__text {
        margin-bottom: 12px;
        padding: 6px 12px;

        font-size: 14px;

        line-height: 20px;
    }

    .pr_26 {
        padding-right: 26px !important;
    }

    .form__textblock {
        margin-bottom: 16px;
        padding: 6px 12px;

        font-size: 14px;

        border-radius: 6px;
    }

    .form__password {
        margin-bottom: 12px;
    }

    .form__select {
        height: 34px;
        margin-bottom: 12px;
        padding: 6px 12px;

        font-size: 14px;

        line-height: 20px;
    }

    .form__link {
        margin-bottom: 12px;
    }

    .form__line {
        width: 70%;
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 360px) {
    .form__line {
        width: 100%;
        margin-bottom: 16px;
    }
}
