@import '~antd/es/style/themes/default.less';
@menu-primary-color: #1685FF;
.basicLayout * {
    box-sizing: border-box;
}
.basicLayout {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    .layout-has-slider {
        flex-direction: row;
        display: flex;
        flex: auto;
    }
    .layoutSlider {
        overflow: hidden; 
        flex: 0 0 100px; 
        max-width: 100px; 
        min-width: 100px; 
        width: 100px;
        background-color: @layout-header-background;
        &.fixed {
            position: fixed!important;
            top: 46px;
            left: 0;
            z-index: 600;
            height: 100%;
            overflow: auto;
            overflow-x: hidden;
            box-shadow: 2px 0 8px 0 rgb(29 35 41 / 5%);
        }
        .sliderMenu {
            flex: 1 1 0%; overflow: hidden auto;
            ul {
                position: relative;
                min-height: 100%;
                li {
                    height: 74px;
                    display: flex;
                    align-items: center;
                    text-align: center;
                    width: 100%;
                    justify-content: center;
                    cursor: pointer;
                    a {
                        text-align: center;
                        display: block;
                        img {
                            width: 22px;
                            height: 22px;
                            opacity: 0.7;
                        }
                        span {
                            display: block;
                            color: #A9AEB2;
                            padding-top: 4px;
                            max-width: 70px;
                            text-overflow: ellipsis;
                            overflow: hidden;
                            white-space: nowrap;
                        }
                    }
                    &:hover {
                        span {
                            color: #1685FF;
                        }
                    }
                    &.active {
                        background: #1685FF;
                        box-shadow: 0px 1px 0px 0px rgba(238, 238, 238, 0.17);
                        span {
                            color: #FFFFFF;
                        }
                    }
                }
            }
            .splitLine {
                width: 90px;
                height: 1px;
                border: 1px solid;
                border-image: linear-gradient(-90deg, #030000, #FFFFFF, #030000) 10 0;
                background: linear-gradient(90deg, #030000 0%, #FFFFFF 50%, #030000 100%);
                margin: 0 auto;
                position: relative;
                top: -4px;
            }
        }
        .layout-slider-childern {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
    }
    .layout {
        position: relative;
        // display: flex;
        flex: auto;
        flex-direction: column;
        min-height: 0;
        background: #f0f2f5;
    }
    .basicLayout-content {
        position: relative;
        // margin: 24px 24px 0px 24px;
    }
    .ant-page-header {
        // padding: 4px 16px;
        position: fixed; top: 0px; width: 100%; left: 0px; z-index: 999; 
        // box-shadow: rgb(240, 241, 242) 0px 2px 8px;
        box-sizing: border-box;
        margin: 0;
        color: rgba(0,0,0,.85);
        font-size: 14px;
        font-variant: tabular-nums;
        line-height: 1.5715;
        list-style: none;
        font-feature-settings: "tnum","tnum";
        position: relative;
        // padding: 16px 24px;
        height: 46px;
        background-color: #0678F5;
        // background: url('../assets/basic/图层 998@2x.png') no-repeat center;
        background-size: cover;
        display: flex;
        flex-direction: row;
        box-sizing: border-box;
        .header {
            position: absolute;
            width: 100%;
            display: flex;
            align-items: center;
            height: 100%;
            padding-left: 17px;
            .logo {
                display: flex;
                align-items: center;
                height: 100%;
                padding-left: 7px;
                img {
                    width: 48px;
                    height: 25px;
                }
            }
            .title {
                min-width: 200px;
                font-size: 26px;
                font-weight: 400;
                color: #FFFFFF;
                opacity: 0.9;
                padding-left: 25px;
                font-family: PangMenZhengDaoBiaoTiTi;
                letter-spacing: 2px;
            }
            :global(.ant-spin-container::after) {
                background: transparent!important;
            }
            .toggleSite {
                height: 30px;
                background: rgba(0,0,0,.12);
                border-radius: 15px;
                min-width: 10px;
                border: 1px solid rgba(238,238,238,.25);
                margin-left: 18px;
                display: flex;
                align-items: center;
                padding-left: 16px;
                padding-right: 16px;
                cursor: pointer;
                // transition: all .3s;
                .site {
                    width: 16px;
                    height: 16px;
                }
                .name {
                    font-family: 'MicrosoftYaHei';
                    font-weight: bold;
                    color: #FFFFFF;
                    font-size: 14px;
                    margin-left: 9px;
                }
                .arrow {
                    margin-left: 9px;
                }
            }
            .weatcher {
                margin-left: 25px;
                .icon {
                    width: 22px;
                    height: 22px;
                    margin-right: 12px;
                    margin-left: 25px;
                }
                .text {
                    font-weight: 400;
                    color: #FFFFFF;
                    letter-spacing: 2px;
                }
            }
        }
    }
    .menu-item-children {
        height: 50px;
        background: linear-gradient(0deg, #E5E7E8 0%, #FAFDFF 13%);
        box-shadow: rgb(240 241 242) 0px 2px 8px;
        position: fixed;
        top: 46px;
        width: 100%;
        z-index: 500;
        svg {
            path {
                fill: #C4CDDB;
                stroke: #C4CDDB;
                box-shadow: 0px 1px 2px 0px rgb(6 0 1 / 50%);
            }
        }
        .menu-item {
            float: left;
        }
        & :global(.ant-tabs-tab) {
            display: flex!important;
        }
        & :global(.ant-tabs-tab-btn) {
            display: flex;
            position: relative;
            align-items: center;
            color: #737983;
        }
        & :global(.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn) {
            color: @menu-primary-color!important;
        }
        & :global(.ant-tabs-tab-btn>div>div) {
            display: flex;
        }

        // :global .ant-tabs-tab-btn:after {
        //     position: absolute;
        //     width: 1px;
        //     height: 15px;
        //     border: 1px solid #E4E8F1;
        //     content: ' ';
        //     right: -21px;
        //     top: 5px;
        // }

        .menu-item-name {
            margin-left: 8px;
            color: #737983;
        }
        & :global(.ant-tabs-ink-bar) {
            background: @menu-primary-color!important;
        }
        & :global(.ant-tabs-tab-active) {
            color: @menu-primary-color!important;
        }
        & :global(.ant-tabs-tab-active .panda-pro-layouts-basic-layout-menu-item-name) {
            color: @menu-primary-color!important;
        }
        & :global(.ant-tabs-tab-active svg path) {
            fill: @menu-primary-color!important;
            stroke: @menu-primary-color!important;
        }
        & :global(.ant-tabs-nav-wrap) {
            margin-left: 44px;
        }

        & :global(.ant-dropdown-trigger) {
            display: flex;
            align-items: center;
        }
        & :global(.ant-tabs-top > .ant-tabs-nav, .ant-tabs-bottom > .ant-tabs-nav, .ant-tabs-top > div > .ant-tabs-nav, .ant-tabs-bottom > div > .ant-tabs-nav) {
            margin: 0px!important;
        }
        
    }   
    .ant-page-container {
        // padding-top: 48px;
        margin: -24px -24px 0;
        //    background-color: #fff;
    }
    .ant-pro-page-container-warp {
        background-color: #fff;
    }
    .fixedHeader {
        position: fixed;
        width: 100%;
        top:0px;
        left: 0px;
        height: 46px;
        margin: 0px;
        padding: 0px;
    }

}

& :global {
    .ant-dropdown-menu-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 10px 12px!important;
        div {
            display: flex;
            flex-direction: row;
            align-items: center;
            span:first-child {
                width: 3px;
                height: 3px;
                background: #7A8E9D;
                /* position: absolute; */
                display: flex;
                border-radius: 100%;
            }
            span:last-child {
                padding-left: 10px;
            }
        }

        &:hover {
            span:first-child {
                background: @menu-primary-color;
            }
            span:last-child {
                color: @menu-primary-color;
            } 
        }
    }
    .ant-dropdown-menu {
        .ant-divider-horizontal{
            &:last-child {
                display: none;
            }
        }
    }
}
& :global {
    .ant-dropdown-custom-menu {
        top: 92px!important;
    }
}
