﻿/*修复应用栏中最前最后的位置，使用包裹的组件边距不正确*/
.m-application--is-ltr .m-toolbar__content > .m-btn.m-btn--icon:first-of-type:nth-child(2), .m-application--is-ltr .m-toolbar__extension > .m-btn.m-btn--icon:first-of-type:nth-child(2) {
    margin-left: -12px;
}

.m-application--is-rtl .m-toolbar__content > .m-btn.m-btn--icon:first-of-type:nth-child(2), .m-application--is-rtl .m-toolbar__extension > .m-btn.m-btn--icon:first-of-type:nth-child(2) {
    margin-right: -12px;
}

.m-application--is-ltr .m-toolbar__content > .m-btn.m-btn--icon:last-of-type:nth-last-child(2), .m-application--is-ltr .m-toolbar__extension > .m-btn.m-btn--icon:last-of-type:nth-last-child(2) {
    margin-right: -12px;
}

.m-application--is-rtl .m-toolbar__content > .m-btn.m-btn--icon:last-of-type:nth-last-child(2), .m-application--is-rtl .m-toolbar__extension > .m-btn.m-btn--icon:last-of-type:nth-last-child(2) {
    margin-left: -12px;
}

.m-application--is-ltr .m-toolbar__content > .m-btn.m-btn--icon:first-child:last-of-type:nth-last-child(2), .m-application--is-ltr .m-toolbar__extension > .m-btn.m-btn--icon:first-of-type:last-of-type:nth-last-child(2) {
    margin-left: -12px;
    margin-right: 0px;
}

.m-application--is-rtl .m-toolbar__content > .m-btn.m-btn--icon:first-child:last-of-type:nth-last-child(2), .m-application--is-rtl .m-toolbar__extension > .m-btn.m-btn--icon:first-child:last-of-type:nth-last-child(2) {
    margin-left: 0px;
    margin-right: -12px;
}

.m-application--is-ltr .m-toolbar__content > .m-btn.m-btn--icon:last-child:first-of-type:nth-child(2), .m-application--is-ltr .m-toolbar__extension > .m-btn.m-btn--icon:last-child:first-of-type:nth-child(2) {
    margin-left: 0px;
    margin-right: -12px;
}

.m-application--is-rtl .m-toolbar__content > .m-btn.m-btn--icon:last-child:first-of-type:nth-child(2), .m-application--is-rtl .m-toolbar__extension > .m-btn.m-btn--icon:last-child:first-of-type:nth-child(2) {
    margin-left: -12px;
    margin-right: 0px;
}

.m-application--is-ltr .m-toolbar__content > .m-btn.m-btn--icon:first-of-type:nth-child(2):last-of-type:nth-last-child(2), .m-application--is-ltr .m-toolbar__extension > .m-btn.m-btn--icon:first-of-type:nth-child(2):last-of-type:nth-last-child(2) {
    margin-left: -12px;
    margin-right: 0px;
}

.m-application--is-rtl .m-toolbar__content > .m-btn.m-btn--icon:first-of-type:nth-child(2):last-of-type:nth-last-child(2), .m-application--is-rtl .m-toolbar__extension > .m-btn.m-btn--icon:first-of-type:nth-child(2):last-of-type:nth-last-child(2) {
    margin-left: 0px;
    margin-right: -12px;
}

/*更改点击涟漪效果*/
.m-ripple__animation--in {
    transition-duration: .1s !important;
}

.m-ripple__animation--out {
    transition-duration: .15s !important;
}

/*优化消息提示*/
.m-alert__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
}

/*解决移动端悬停问题*/
@media (hover: none) {
    .theme--light.m-btn:hover::before {
        opacity: 0;
    }

    .theme--light.m-btn:focus::before {
        opacity: 0;
    }

    .theme--light.m-btn--active:hover::before, .theme--light.m-btn--active::before {
        opacity: 0;
    }

    .theme--light.m-btn--active:focus::before {
        opacity: 0;
    }

    .theme--dark.m-btn:hover::before {
        opacity: 0;
    }

    .theme--dark.m-btn:focus::before {
        opacity: 0;
    }

    .theme--dark.m-btn--active:hover::before, .theme--dark.m-btn--active::before {
        opacity: 0;
    }

    .theme--dark.m-btn--active:focus::before {
        opacity: 0;
    }

    .m-input--selection-controls .m-radio--is-focused .m-input--selection-controls__ripple:before, .m-input--selection-controls.m-input--is-focused .m-input--selection-controls__ripple:before {
        background: transparent;
        transform: scale(1.2)
    }

    .m-input--selection-controls__input:hover .m-input--selection-controls__ripple:before {
        background: transparent;
        transform: scale(1.2);
        transition: none;
    }
}

/*配色*/

.theme--light.m-divider {
    border-color: rgba(0,0,0,.06);
}

.theme--light .m-tab--active {
    color: #000 !important;
}

.theme--dark .m-tab--active {
    color: #fff !important;
}

.theme--dark .my-picker .m-picker__body {
    background: #1e1e1e !important;
}

    .theme--dark .my-picker .m-picker__body + .m-picker__actions {
        background: #1e1e1e !important;
    }

.m-navigation-drawer {
    background: inherit !important;
}

.theme--light.m-bottom-navigation {
    background: #fff !important;
}

.theme--light.m-toolbar.m-sheet {
    background-color: inherit
}

.theme--dark.m-toolbar.m-sheet {
    background-color: inherit
}

.p-mobile-date-picker__content {
    border-radius: 8px 8px 0 0 !important;
}

    .p-mobile-date-picker__content .m-sheet:first-child {
        border-radius: 8px 8px 0 0 !important;
        padding: 16px;
    }

.theme--dark .m-overlay__scrim {
    background-color: #424242 !important;
    border-color: #424242 !important;
}

/*自适应圆角*/
@media screen and (min-width:600px) {
    .m-application .rounded-b-sm-lg {
        border-bottom-left-radius: 8px !important;
        border-bottom-right-radius: 8px !important;
    }
}

/*日历高度*/
.m-date-picker-table {
    height: 249px;
}

/*日历提示圆点位置*/
.m-date-picker-table--date .m-date-picker-table__events {
    bottom: 2px;
}

/*自适应海拔*/
@media screen and (min-width:600px) {
    .m-application .elevation-sm-2--active:hover {
        box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12) !important
    }
}

/*临时解决MTabs闪烁问题*/
.m-tabs-bar > .m-slide-group__wrapper {
    flex: unset !important;
}

.m-dialog .m-date-picker-table {
    height: auto !important;
    padding-bottom: 12px;
}

.p-page-container {
    height: 100%;
}

.p-page-container__item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .p-page-container__item > * {
        flex-grow: 0 !important;
    }

.m-chip--clickable:active {
    box-shadow: unset;
}

.theme--light.m-chip:hover::before {
    opacity: 0;
}

.theme--light.m-chip:focus::before {
    opacity: 0;
}

.theme--light.m-chip--active:hover::before, .theme--light.m-chip--active::before {
    opacity: 0.12;
}

.theme--light.m-chip--active:focus::before {
    opacity: 0.12;
}

.theme--dark.m-chip:hover::before {
    opacity: 0;
}

.theme--dark.m-chip:focus::before {
    opacity: 0;
}

.theme--dark.m-chip--active:hover::before, .theme--dark.m-chip--active::before {
    opacity: 0.24;
}

.theme--dark.m-chip--active:focus::before {
    opacity: 0.24;
}

@media (hover: none) {
    .theme--light.m-list-item:hover::before {
        opacity: 0;
    }

    .theme--light.m-list-item:focus::before {
        opacity: 0;
    }

    .theme--light.m-list-item--active:hover::before, .theme--light.m-list-item--active::before {
        opacity: 0.12;
    }

    .theme--light.m-list-item--active:focus::before {
        opacity: 0.12;
    }

    .theme--light.m-list-item.m-list-item--highlighted::before {
        opacity: 0.12;
    }

    .theme--dark.m-list-item:hover::before {
        opacity: 0
    }

    .theme--dark.m-list-item:focus::before {
        opacity: 0
    }

    .theme--dark.m-list-item--active::before, .theme--dark.m-list-item--active:hover::before {
        opacity: .24
    }

    .theme--dark.m-list-item--active:focus::before {
        opacity: .24
    }

    .theme--dark.m-list-item.m-list-item--highlighted::before {
        opacity: .24
    }
}

.m-input--radio-group--row .m-input--radio-group__input {
    justify-content: space-between;
}

    .m-input--radio-group--row .m-input--radio-group__input > * {
        flex-grow: 1;
    }

.m-application--is-ltr .m-card .m-list-item__action:first-child, .m-application--is-ltr .m-card .m-list-item__icon:first-child {
    margin-right: 20px;
}

.m-application--is-rtl .m-card .m-list-item__action:first-child, .m-application--is-rtl .m-card .m-list-item__icon:first-child {
    margin-left: 20px;
}

.m-list-item__subtitle {
    white-space: initial;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    display: -webkit-box;
}

.m-text-field .m-input__append-inner {
    margin-top: auto !important;
    margin-bottom: auto !important;
}

.m-btn--plain:not(.m-btn--active):not(.m-btn--loading):not(:focus):not(:hover) .m-btn__content {
    opacity: unset;
}

.m-text-field--rounded > .m-input__control > .m-input__slot {
    padding: 0 16px;
}

.m-chip-group .m-slide-group__prev--disabled,
.m-chip-group .m-slide-group__next--disabled {
    display: none;
}

@media (hover: none) {
    .m-chip-group .m-slide-group__prev, .m-chip-group .m-slide-group__next {
        display: none;
    }
}

.m-chip-group .m-slide-group__next, .m-chip-group .m-slide-group__prev {
    flex-basis: initial;
    min-width: initial;
}

.m-chip-group .m-slide-group__wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .m-chip-group .m-slide-group__wrapper::-webkit-scrollbar {
        display: none;
    }
