/*
// Copyright 2017 Google Inc. All Rights Reserved.
// Modifications copyright 2019 1C.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
*/

:root
{
    --mdc-dialog-dark-theme-bg-color: #303030;
}

.mdc-dialog
{
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    visibility: hidden;
}

.mdc-dialog__backdrop
{
    /* @alternate */
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.mdc-dialog__surface
{
    box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
    /* @alternate */
    background-color: #fff;
    display: inline-flex;
    flex-direction: column;
    width: calc(100% - 30px);
    min-width: 640px;
    border-radius: 2px;
    opacity: 0;
    z-index: 0;
}

.mdc-dialog--theme-dark .mdc-dialog__surface, .mdc-theme--dark .mdc-dialog__surface
{
    /* @alternate */
    color: white;
    background-color: #303030;
    background-color: var(--mdc-dialog-dark-theme-bg-color, #303030);
}

[dir=rtl] .mdc-dialog .mdc-dialog__surface, .mdc-dialog[dir=rtl] .mdc-dialog__surface
{
    text-align: right;
}

.mdc-dialog__header
{
    display: flex;
    align-items: center;
    padding: 24px 24px 0;
}

.mdc-dialog__header__empty
{
    padding: 0;
}

[dir=rtl] .mdc-dialog .mdc-dialog__header, .mdc-dialog[dir=rtl] .mdc-dialog__header
{
    text-align: right;
}

.mdc-dialog__header__title
{
    font-family: Roboto, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 2rem;
    text-decoration: inherit;
    text-transform: inherit;
    flex: 1;
    margin: 0;
}

.mdc-dialog__body
{
    /* @alternate */
    color: rgba(0, 0, 0, 0.54);
    font-family: Roboto, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.25rem;
    text-decoration: inherit;
    text-transform: inherit;
    margin-top: 20px;
    padding: 0 24px 24px;
}

.mdc-dialog--theme-dark .mdc-dialog__body, .mdc-theme--dark .mdc-dialog__body
{
    /* @alternate */
    color: rgba(255, 255, 255, 0.7);
}

.mdc-dialog__body--scrollable
{
    max-height: 195px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.mdc-dialog__footer
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 8px;
}

.mdc-dialog__footer__button
{
    margin-left: 0;
    margin-right: 8px;
}

[dir=rtl] .mdc-dialog__footer__button, .mdc-dialog__footer__button[dir=rtl]
{
    margin-left: 8px;
    margin-right: 0;
}

.mdc-dialog__footer__button:last-child
{
    margin-left: 0;
    margin-right: 0;
}

[dir=rtl] .mdc-dialog__footer__button:last-child, .mdc-dialog__footer__button:last-child[dir=rtl]
{
    margin-left: 0;
    margin-right: 0;
}

.mdc-dialog__action
{
    /* @alternate */
    color: #ff4081;
}

@media (max-width: 640px)
{
    .mdc-dialog
    {
        min-width: 280px;
    }
    .mdc-dialog__surface
    {
        min-width: 280px;
    }
    .mdc-dialog__body
    {
        line-height: 24px;
    }
}

.mdc-dialog--animating
{
    visibility: visible;
}

.mdc-dialog--animating .mdc-dialog__backdrop
{
    transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1);
}

.mdc-dialog--animating .mdc-dialog--open .mdc-dialog__surface
{
    transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);
}

.mdc-dialog--animating .mdc-dialog__surface
{
    transition: opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1), transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1);
}

.mdc-dialog--open
{
    visibility: visible;
}

.mdc-dialog--open .mdc-dialog__surface
{
    opacity: 1;
}

.mdc-dialog-scroll-lock
{
    height: 100vh;
    overflow: hidden;
}

.mdc-dialog__surface
{
    width: auto;
    min-width: 200px;
    max-height: 95%;
    max-width: 95%;
    overflow: auto;
}

.mdc-dialog__surface--full-screen
{
    width: 100% !important;
    min-width: auto !important;
    max-width: none;

    /**
     * Обход ошибки ESS-645:
     * При размере контейнера на весь экран, через height: 100% или top: 0
     * на некоторых старых Chrome перестаёт работать прокрутка содержимого.
     * Ставим размер не на весь экран, а чуть больше
     **/
    position: absolute;
    padding-top: 10px;
    top: -10px;
    bottom: 0;

    max-height: none;
    border-radius: 0;

    /* Если сделать padding, будет просвечивать содержимое при прокрутке */
    border-top: env(safe-area-inset-top) solid transparent;
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
}

.isDesktop * {
    scrollbar-color: #e2e1df transparent;
    scrollbar-width: thin;
}

.isDesktop ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: transparent;
}

.isDesktop ::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: #e2e1df;
}

.isDesktop ::-webkit-scrollbar-thumb:hover {
    background-color: #a4a29b;
}


html
{
    background-color: #fff;
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
body, div, p, th, td, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, button, textarea, select
{
    margin: 0;
    padding: 0;
}
fieldset, img
{
    border: 0;
}
li
{
    list-style: none;
}
a, *[tabindex]
{
    outline: medium none;
}
input, textarea
{
    user-select: text;
    resize: none;
}
input:focus, textarea:focus
{
    outline-width: 0;
}
input::-ms-clear
{
    display: none;
}
textarea::-ms-clear
{
    display: none;
}
input::-ms-reveal
{
    display: none;
}
textarea::-ms-reveal
{
    display: none;
}
body
{
    color: rgba(0, 0, 0, 0.87);
    font-size: 10pt;
    background-color: #fff;
    overflow: auto;
    line-height: 1.2;
    cursor: default;
    /* TODO need li? */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    /* TODO mixin */
    position: absolute; /**/
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    /* Запрещает обновление страницы при скролле страницы вверх в мобильных браузерах.
     Но оставляет визуальный эффект пере-прокрутки */
    overscroll-behavior-y: contain;

    /* Включает плавную инерциальную прокрутку скролла в мобильном сафари */
    -webkit-overflow-scrolling: touch;

    user-select: text;
}
.dots
{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cp
{
    cursor: pointer;
}
.height-100
{
    height: 100%;
}
.appContainer
{
    font-family: Roboto, sans-serif;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;

    width: 100%;
    height: 100%;
    overflow: auto;
    position: absolute;
    display: flex;

    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
}
.emptyImage
{
    border-style: dashed;
    border-width: 1px;
    border-color: gray;
    padding: 8px;
    display: inline-block;
}

*,
*:before,
*:after {
    will-change: auto !important;
    box-sizing: border-box;
}

.flexStretch
{
    flex: 1;
}

.blockShadow
{
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 5px -1px, rgba(0, 0, 0, 0.14) 0px 5px 8px 0px, rgba(0, 0, 0, 0.12) 0px 1px 14px 0px;
}

@font-face {
    font-family: 'Roboto';
    src: local('Roboto'), local('Roboto-Regular'),
    url(fonts/Roboto-Regular.fd317bd152694dfa37a03aef78b76ec4.woff2) format('woff2'),
    url(fonts/Roboto-Regular.26a727d8c91494ad7c189a31fac4a91e.woff) format('woff'),
    url(fonts/Roboto-Regular.18d44f79b3979ec168862093208c6d7d.ttf) format('ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: local('Roboto Thin'), local('Roboto-Thin'),
    url(fonts/Roboto-Thin.f3d101973b3a7ebf1746975a5e2e8393.woff2) format('woff2'),
    url(fonts/Roboto-Thin.7495e6afb769fba56853cce679bf6b22.woff) format('woff'),
    url(fonts/Roboto-Thin.d1e42f1b6d0c32271f8e68515563a213.ttf) format('ttf');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src:  local('Roboto Light'), local('Roboto-Light'),
    url(fonts/Roboto-Light.8d7611b03a7e90a08d38df37fa1be782.woff2) format('woff2'),
    url(fonts/Roboto-Light.2d87e7f19ca7d0a1f0b411d3ccc30c19.woff) format('woff'),
    url(fonts/Roboto-Light.c6cdfded4630ba6d9a2dceb70aa4fe0f.ttf) format('ttf');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: local('Roboto Black Italic'), local('Roboto-BlackItalic'),
    url(fonts/Roboto-BlackItalic.c8f2ac17e5fd216bc0f93f8019e5ceda.woff2) format('woff2'),
    url(fonts/Roboto-BlackItalic.fca0061bf317ad26790f20e687ed3220.woff) format('woff'),
    url(fonts/Roboto-BlackItalic.18a576bf7ceb253929ac1f7bdfe6d467.ttf) format('ttf');
    font-weight: 900;
    font-style: italic;
}
@font-face {
    font-family: 'Roboto';
    src: local('Roboto Bold'), local('Roboto-Bold'),
    url(fonts/Roboto-Bold.3b20863e11a00f4dc5b3647ee31b6b3b.woff2) format('woff2'),
    url(fonts/Roboto-Bold.5d67c8dbf3dd425cf90398c042bcbe4c.woff) format('woff'),
    url(fonts/Roboto-Bold.7c18188784f21915f42a5b3bc9d91e20.ttf) format('ttf');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: local('Roboto Italic'), local('Roboto-Italic'),
    url(fonts/Roboto-Italic.f9ee50bef89784c206fa324802819da6.woff2) format('woff2'),
    url(fonts/Roboto-Italic.de9d3b6ae9ad6769bb1b8b19fd1a1026.woff) format('woff'),
    url(fonts/Roboto-Italic.9da6e8b1803fec548ee0720f620f93f5.ttf) format('ttf');
    font-weight: normal;
    font-style: italic;
}
@font-face {
    font-family: 'Roboto';
    src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'),
    url(fonts/Roboto-ThinItalic.feffec1c7d4fbbd15c36b64ce31b21d2.woff2) format('woff2'),
    url(fonts/Roboto-ThinItalic.521afd33ccc31ec90ff20695d3813da4.woff) format('woff'),
    url(fonts/Roboto-ThinItalic.2cbc2256ef5afbf04c18beeee4478e55.ttf) format('ttf');
    font-weight: 100;
    font-style: italic;
}
@font-face {
    font-family: 'Roboto';
    src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'),
    url(fonts/Roboto-BoldItalic.f3a2677418b69847191892d4de222312.woff2) format('woff2'),
    url(fonts/Roboto-BoldItalic.6f2cf24f80f5f6c6360c4f137038cc9a.woff) format('woff'),
    url(fonts/Roboto-BoldItalic.9098d3de14ef1cfae7be4f195fe1a174.ttf) format('ttf');
    font-weight: bold;
    font-style: italic;
}
@font-face {
    font-family: 'Roboto';
    src: local('Roboto Light Italic'), local('Roboto-LightItalic'),
    url(fonts/Roboto-LightItalic.ec8d9dab607aaa49b2c86a8184497d6b.woff2) format('woff2'),
    url(fonts/Roboto-LightItalic.dd6c9f6b29b1b32c2eff790903501a38.woff) format('woff'),
    url(fonts/Roboto-LightItalic.afd48b813752d70b936e73d99b5dca35.ttf) format('ttf');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'Roboto';
    src: local('Roboto Medium'), local('Roboto-Medium'),
    url(fonts/Roboto-Medium.8fa6797ead4cf98699440338bbc12449.woff2) format('woff2'),
    url(fonts/Roboto-Medium.40c802e3a51ddde03eb4c36dbedb8c77.woff) format('woff'),
    url(fonts/Roboto-Medium.d52f011be65b281ba8ca1c3f689cf133.ttf) format('ttf');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto';
    src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'),
    url(fonts/Roboto-MediumItalic.ce1baefaaf70e577ece34a760b8bffab.woff2) format('woff2'),
    url(fonts/Roboto-MediumItalic.fb3c59d8f524e5b52f8b32cce3defa58.woff) format('woff'),
    url(fonts/Roboto-MediumItalic.c1d8fbd29929d048c8d065d1be3bc35d.ttf) format('ttf');
    font-weight: 500;
    font-style: italic;
}
@font-face {
    font-family: 'Roboto';
    src: local('Roboto Black'), local('Roboto-Black'),
    url(fonts/Roboto-Black.22f26af0c7f9e3892c3a81e20ab45c3f.woff2) format('woff2'),
    url(fonts/Roboto-Black.595194dafb44cca9e48962e28ca7f1bd.woff) format('woff'),
    url(fonts/Roboto-Black.3234b3e853eabe9fc936cd7a133055ad.ttf) format('ttf');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Mono';
    src: local('Roboto Mono Light'), local('RobotoMono-Light'),
        url(fonts/RobotoMono-Light.19aa2c8ef063720b327edab59dc55632.woff2) format('woff2'),
        url(fonts/RobotoMono-Light.ebd8d2716412b1c1a784e4f92603a639.woff) format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Mono';
    src: local('Roboto Mono Italic'), local('RobotoMono-Italic'),
        url(fonts/RobotoMono-Italic.8bb9fff61cde62499d54fb5ee9a015f8.woff2) format('woff2'),
        url(fonts/RobotoMono-Italic.4806ab32fc8937f1520d3e0230ab67a6.woff) format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto Mono';
    src: local('Roboto Mono Thin Italic'), local('RobotoMono-ThinItalic'),
        url(fonts/RobotoMono-ThinItalic.c409604af94e0ce5272c4ac5ded8cd18.woff2) format('woff2'),
        url(fonts/RobotoMono-ThinItalic.be76fd121cc4e0acf8d67467715bd20e.woff) format('woff');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto Mono';
    src: local('Roboto Mono Medium Italic'), local('RobotoMono-MediumItalic'),
        url(fonts/RobotoMono-MediumItalic.979f5a747af47ee3a19560632bd0870c.woff2) format('woff2'),
        url(fonts/RobotoMono-MediumItalic.69326aa6b2b76643dd9c3aa546c9f72c.woff) format('woff');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto Mono';
    src: local('Roboto Mono Bold Italic'), local('RobotoMono-BoldItalic'),
        url(fonts/RobotoMono-BoldItalic.74a518e2e0ed239d79f55ed9648a3849.woff2) format('woff2'),
        url(fonts/RobotoMono-BoldItalic.a135ab106abb19660758767450607150.woff) format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto Mono';
    src: local('Roboto Mono Thin'), local('RobotoMono-Thin'),
        url(fonts/RobotoMono-Thin.1f96134618f95c6bdd8e64d9bc12adb0.woff2) format('woff2'),
        url(fonts/RobotoMono-Thin.bad503ea74a64aee75163b227a82ccf9.woff) format('woff');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Mono';
    src: local('Roboto Mono Bold'), local('RobotoMono-Bold'),
        url(fonts/RobotoMono-Bold.8379b57a68a2008b23dabcbda2482f2a.woff2) format('woff2'),
        url(fonts/RobotoMono-Bold.04cdeeec5a07892821d122b4eb1a0652.woff) format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Mono';
    src: local('Roboto Mono'), local('RobotoMono-Regular'),
        url(fonts/RobotoMono-Regular.ac86866c10adaa8a06bba58c5c896fc6.woff2) format('woff2'),
        url(fonts/RobotoMono-Regular.5b216bd740a21288742dcaec4ac61556.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Mono';
    src: local('Roboto Mono Light Italic'), local('RobotoMono-LightItalic'),
        url(fonts/RobotoMono-LightItalic.8cfbf61b87d191e02ccf544919bef651.woff2) format('woff2'),
        url(fonts/RobotoMono-LightItalic.c7334314ac810a74d9a01a736c91a9c1.woff) format('woff');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Roboto Mono';
    src: local('Roboto Mono Medium'), local('RobotoMono-Medium'),
        url(fonts/RobotoMono-Medium.5203f17c157a0de5e22d4f3f44ea4abc.woff2) format('woff2'),
        url(fonts/RobotoMono-Medium.c2760f5e9848d2431fcfdfdf4fa5ca1f.woff) format('woff');
    font-weight: 500;
    font-style: normal;
}


@font-face {
    font-family: 'asterisk';
    src: local('asterisk'),
    url(fonts/asterisk.4fb70be02b3c1d913e4687186ca0aa11.woff2) format('woff2'),
    url(fonts/asterisk.d3d4420bbd7c50d6d753e450259a333e.woff) format('woff'),
    url(fonts/asterisk.0a10d53dc7efdf6bed8f3acb581d23c4.ttf) format('ttf');
    font-weight: normal;
    font-style: normal;
}

.layeredGroup
{
    min-width: 100%;
    min-height: 100%;
    display: flex;
    position: relative;
}

.groundItem
{
    min-width: 100%;
    min-height: 100%;
    display: flex;
}


.modal-area-container
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    top: calc(-1 * env(safe-area-inset-top));
    left: calc(-1 * env(safe-area-inset-left));
    bottom: calc(-1 * env(safe-area-inset-bottom));
    right: calc(-1 * env(safe-area-inset-right));

    justify-content: center;
    align-items: center;
    overflow: auto;
}

/*
// Copyright 2017 Google Inc. All Rights Reserved.
// Modifications copyright 2019 1C.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
*/

.mdc-simple-menu {
    display: inline-block;
    min-width: 170px;
    border-radius: 4px;
    border: 1px solid #efefed;
    background-color: #fff;
    white-space: nowrap;
    box-shadow: 0px 4px 6px rgba(35, 35, 32, 0.15);
    max-height: inherit;
    overflow: auto;
}

.mdc-list-item {
    position: relative;
    padding: 0 12px;
    line-height: 40px !important;
    cursor: pointer;
}

.mdc-list-item.select {
    background-color: #fafafa;
}

.mdc-list-item:not(:first-child) {
    border-top: 1px solid #efefed;
}

.mdc-list-item-image {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    display: inline-block;
}

.mdc-list-submenu {
    padding-right: 32px;
}

.mdc-list-submenu .mdc-simple-menu {
    position: fixed;
    overflow: auto;
    margin-left: 32px;
    z-index: 1;
}

.mdc-list-submenu > .mdc-list-item-title:after {
    font-size: 0.7em;
    content: '\A0\A0\25B6';
    position: absolute;
    right: 16px;
    z-index: 0;
}

.app_mobile .mdc-simple-menu {
    display: block;
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
}

.app_mobile .mdc-list-submenu.select {
    padding-bottom: 8px;
}

.app_mobile .mdc-list-submenu .mdc-simple-menu {
    position: static;
    margin-left: 0;
}

.app_mobile .mdc-list-item {
    padding: 0 32px 0 16px;
}

.app_mobile .mdc-list-item.select:after {
    content: '\A0\A0\25BC';
}

.app_mobile .mdc-list-item-image {
    margin-right: 32px;
}

.app_mobile .mdc-list-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.mdc-list-item-title {
    width: 100%;
    display: inline-block;
    line-height: 48px;
}

.mdc-list-item-image ~ .mdc-list-item-title {
    line-height: 56px;
    width: calc(100% - 36px);
}

