@header: 50px;

.merchants-header {
    height: @header;
    background: #192632;
    .anticon {
        vertical-align: middle;
    }
    .inner-app {
        float: left;
        height: 100%;
        .btn {
            &:hover {
                color: #ffffff;
            }
            height: 100%;
            padding: 15px 24px;
            display: inline-block;
            color: #9fa7ae;
            font-size: 14px;
            // margin-right: 30px;
            vertical-align: middle;
            text-align: center;
        }
        .bnt-select {
            background: #3983d7;
            color: #ffffff;
        }
    }
    .userCenter {
        font-family:PingFangSC-Medium,PingFang SC, Helvetica Neue;
        float: right;
        color: #9fa7ae;
        line-height: @header;
        .user-center-content {
            width: 148px;
            padding-right: 14px;
            padding-left: 14px;
            a {
                cursor: pointer;
                color: #fff;
            }
            .user-mobile {
                .user-icon {
                    position: relative;
                    display: inline-block;
                    width: 20px;
                    height: 20px;
                    border-radius: 50%;
                    background: #1892f9;
                    vertical-align: middle;
                    margin-right: 8px;
                    overflow: hidden;
                    &:before {
                        content: '';
                        position: absolute;
                        width: 8px;
                        height: 8px;
                        border-radius: 50%;
                        background: #fff;
                        top: 5px;
                        left: 6px;
                    }
                    &::after {
                        content: '';
                        position: absolute;
                        width: 14px;
                        height: 14px;
                        border-radius: 50%;
                        background: #fff;
                        top: 14px;
                        left: 3px;
                    }
                }
                .mobile-val {
                    position: relative;
                    top: 6px;
                    max-width: 90px;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    white-space: nowrap;
                    display: inline-block;
                    line-height: normal;
                }
            }
            &:hover {
                background: #081520;
                .drop-down {
                    display: block;
                }
            }
            .drop-down {
                position: absolute;
                display: none;
                width: 288px;
                background: #081520;
                right: 0;
                z-index: 99;
                border-radius: 8px;
                border-top-left-radius: 0;
                border-top-right-radius: 0;
                .balance-title {
                    line-height: initial;
                    margin-bottom: 10px;
                    padding: 16px 16px 0;
                }
                .balance-box {
                    line-height: initial;
                    padding: 0 16px;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    .balance {
                        font-size: 32px;
                        max-width: 200px;
                        text-overflow: ellipsis;
                        overflow: hidden;
                    }
                    .decimal {
                        font-size: 18px;
                    }
                    button {
                        padding: 0 9px;
                    }
                    .rmb-icon {
                        font-size: 20px;
                        margin-right: 3px;
                    }
                }
                .link-box {
                    border-top: 1px solid rgba(131,138,143,0.3);
                    border-bottom: 1px solid rgba(131,138,143,0.3);
                    margin-top: 20px;
                    .half-l {
                        float: left;
                        width: 50%;
                        text-align: center;
                        height: 40px;
                        line-height: 40px;
                        & + .half-l {
                            border-left: 1px solid rgba(131,138,143,0.3);
                        }
                        a {
                            color: #fff;
                        }
                        &:hover {
                            background: #111E2A;
                        }
                    }
                    &:after {
                        content: '';
                        clear: both;
                        display: table;
                    }
                }
                .exit-box {
                    line-height: 42px;
                    text-align: center;
                    border-radius: inherit;
                    &:hover {
                        background: #111E2A;
                    }
                }
            }
        }
        .uc-item {
            position: relative;
            display: inline-block;
            color: inherit;
            cursor: pointer;
            vertical-align: bottom;
            &:hover {
                color: #fff;
            }
        }
        .msg-box {
            padding-left: 4px;
            margin-right: -4px;
            &:hover {
                background: #081520;
            }
            &.no-msg-dot {
                margin-right: 10px;
                padding-right: 4px;
            }
            .ant-badge {
                vertical-align: initial;
                .ant-badge-count {
                    box-shadow: none;
                    min-width: 18px;
                    height: 18px;
                    line-height: 18px;
                    border-radius: 9px;
                    max-width: 32px;
                    vertical-align: super;
                }
                .ant-badge-multiple-words {
                    padding: 0 6px;
                }
                &.overflow-count {
                    // padding-right: 14px;
                    line-height: 17px;
                }
                &.normal-count {
                    position: relative;
                    padding-right: 4px;
                    left: -6px;
                    top: -2px;
                }
            }
        }
        .arrow-wrap {
            // &:after {
            //     content: '';
            //     position: absolute;
            //     border: 4px solid transparent;
            //     border-top-color: #9fa7ae;
            //     top: 50%;
            //     margin-top: -1px;
            //     right: 12px;
            //     transform-origin: center;
            //     border-bottom: none;
            //     transition: transform linear 200ms;
            // }
            &:hover {
                &:after {
                    border-top-color: #fff;
                    transform: rotate(180deg);
                }
                &>.anticon {
                    color: #fff;
                }
            }
        }
        .merchant-box {
            min-width: 150px;
            &>.anticon {
                color: rgb(159, 167, 174);
            }
            .merchant-name {
                position: relative;
                padding-left: 8px;
                padding-right: 16px;
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
                max-width: 200px;
                display: inline-block;
                line-height: 19px;
                top: 7px;
            }
            &:after {
                content: '';
                position: absolute;
                border: 4px solid transparent;
                border-top-color: #9fa7ae;
                top: 50%;
                margin-top: -1px;
                right: 9px;
                transform-origin: center;
                border-bottom: none;
                transition: transform linear 200ms;
            }
            &:hover {
                background: #081520;
                .merchant-list {
                    display: block;
                    padding-bottom: 12px;
                }
                &:after {
                    border-top-color: #fff;
                    transform: rotate(180deg);
                }
                &>.anticon {
                    color: #fff;
                }
            }
            .merchant-list {
                position: absolute;
                list-style: none;
                display: none;
                background: #081520;
                z-index: 99;
                right: 0;
                left: 0;
                border-radius: 8px;
                border-top-left-radius: 0;
                border-top-right-radius: 0;
                li {
                    line-height: 42px;
                    padding-left: 16px;
                    &:hover {
                        background: #1890ff;
                        a {
                            opacity: 1;
                        }
                    }
                }
                a {
                    color: #fff;
                    opacity: 0.8;
                    width: 100%;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    display: inline-block;
                    vertical-align: top;
                }
            }
            ul, li {
                margin: 0;
                padding: 0;
            }
        }
        .center-link {
            color: inherit;
            &:hover {
                text-decoration: none;
            }
        }
        .ant-badge {
            .anticon-bell {
                font-size: 1.45em;
                cursor: pointer;
                transition: color 0.3s;
                &:hover {
                    color: #ececec;
                }
            }
        }
        .tel {
            margin: 0 15px 0 7px;
        }
        .logout {
            &:hover{
                color: #ffffff;
            }
            cursor: pointer;
        }
        .balance {
            display: inline-block;
            cursor: pointer;
        }
        .merchant-manage-mobile {
            &:hover {
                color: #fff;
            }
        }
        &>.logout {
            margin-right: 18px;
        }
    }
}

@media screen and (max-width: 1632px) {
    .top {
        .userCenter {
            margin-right: 8px;
        }
        // .inner-app {
        //     .btn {
        //         margin-right: 20px;
        //     }
        // }
    } 
}