/*
// 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;
    align-self: stretch;
}

.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: 8px;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.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: 8px;
}

.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);
}

