@import '~antd/es/style/themes/default.less';
@primary-color: #1685FF;
@primary-1: color(~`colorPalette('@{primary-color}', 1) `); // replace tint(@primary-color, 90%)
@primary-2: color(~`colorPalette('@{primary-color}', 2) `); // replace tint(@primary-color, 80%)
@primary-3: color(~`colorPalette('@{primary-color}', 3) `); // unused
@primary-4: color(~`colorPalette('@{primary-color}', 4) `); // unused
@primary-5: color(
  ~`colorPalette('@{primary-color}', 5) `
); // color used to control the text color in many active and hover states, replace tint(@primary-color, 20%)
@primary-6: @primary-color; // color used to control the text color of active buttons, don't use, use @primary-color
@primary-7: color(~`colorPalette('@{primary-color}', 7) `); // replace shade(@primary-color, 5%)
@primary-8: color(~`colorPalette('@{primary-color}', 8) `); // unused
@primary-9: color(~`colorPalette('@{primary-color}', 9) `); // unused
@primary-10: color(~`colorPalette('@{primary-color}', 10) `); // unused
@slider-light: #fff;
@color-black: #fff;
.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 80px;
        max-width: 80px;
        min-width: 80px;
        width: 80px;
        background-color: @layout-header-background;
        transition: background .3s,width .3s cubic-bezier(.2,0,0,1) 0s;
        &.fixed {
            position: fixed!important;
            top: 46px;
            left: 0;
            z-index: 600;
            height: calc(100% - 46px);
            // overflow: auto;
            overflow-x: hidden;
            box-shadow: 2px 0 8px 0 rgb(29 35 41 / 5%);
            transition: all .2s;
        }
        &.collapsed {
            flex: 0 0 48px;
            max-width: 48px;
            min-width: 48px;
            width: 48px;
            transition: background .3s,width .5s cubic-bezier(.2,0,0,1) 0s;
            .sliderMenu {
                .splitLine {
                    width: 48px;
                }
            }
        }
        .sliderMenu {
            flex: 1 1 0%;
            // overflow: hidden auto;
            .menu {
                position: relative;
                min-height: 100%;
                .menu-item {
                    height: 74px;
                    display: flex;
                    align-items: center;
                    text-align: center;
                    width: 100%;
                    justify-content: center;
                    cursor: pointer;
                    transition: border-color .3s,background .3s,padding .1s cubic-bezier(.215,.61,.355,1);
                    a {
                        text-align: center;
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        .icon {
                            transition: font-size .15s cubic-bezier(.215,.61,.355,1),margin .3s cubic-bezier(.645,.045,.355,1),color .3s;
                            font-size: 14px;
                            svg {
                                path, rect, circle, .cls-1 {
                                    fill:hsla(0,0%,100%,.65)!important;
                                    stroke:hsla(0,0%,100%,.65)!important;
                                    stroke-width:0!important;
                                    stroke-linecap:round;
                                    stroke-miterlimit:10;
                                }
                            }

                        }

                        img {
                            width: 22px;
                            height: 22px;
                            opacity: 0.7;
                        }
                        .text {
                            display: block;
                            color: hsla(0,0%,100%,.65);
                            padding-top: 4px;
                            max-width: 70px;
                            text-overflow: ellipsis;
                            overflow: hidden;
                            white-space: nowrap;
                            opacity: 1;
                            transition: opacity .3s cubic-bezier(.645,.045,.355,1),margin .3s,color .3s;
                        }
                        .currentText {
                          color: @color-black;
                        }
                    }
                    &:hover {
                        span {
                            color: #fff;
                        }
                        .icon {
                            &.fillCurrent {
                                svg {
                                    path {
                                        fill:hsla(0,0%,100%,.65)!important;
                                        stroke:hsla(0,0%,100%,.65)!important;

                                    }
                                }
                            }
                            // svg {
                            //     path:not(.st0) {
                            //         fill: #fff!important;

                            //     }
                            //     path.st0 {
                            //         fill:url(#SVGID_1_)!important;
                            //     }
                            //     path.st1 {
                            //         fill:url(#SVGID_2_)!important;
                            //     }
                            // }
                        }
                    }
                    &.active {
                        background: @primary-color;
                        box-shadow: 0px 1px 0px 0px rgba(238, 238, 238, 0.17);
                        span {
                            color: #FFFFFF;
                        }
                        .icon {
                            svg {
                                path, rect, circle {
                                    // fill: #fff!important;

                                }
                            }
                        }
                    }
                }
            }
            .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;
        width: 100%;
    }
    .basicLayout-content {
        position: relative;
        height: calc(100vh - 82px);
        margin-top: 82px;
        overflow: hidden;
        // margin: 24px 24px 0px 24px;
        &.hook_web4 {
            height: calc(100% - 82px);
            margin-top: 82px;
        }
    }
    .@{ant-prefix}-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;
                    width: 42px;
                    height: auto;
                    //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-prefix}-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: 36px;
        background: #fff;
        box-shadow: rgb(240 241 242) 0px 2px 8px;
        position: fixed;
        top: 46px;
        width: 100%;
        z-index: 500;
        svg {
            path, rect, circle {
                fill: #C4CDDB;
                stroke: #C4CDDB;
                box-shadow: 0px 1px 2px 0px rgb(6 0 1 / 50%);
            }
        }
        img {
            filter: drop-shadow(10px 0px #C4CDDB);
            transform: translateX(-10px);
        }

        & :global {
            .@{ant-prefix}-tabs-tab {
                padding: 7px 0!important;
                margin: 0 32px 0 0!important;
                &:hover {
                    svg path, svg rect,  svg circle {
                        fill: @primary-color!important;
                        stroke: @primary-color!important;
                    }
                    img {
                        filter: drop-shadow(10px 0px @primary-color);
                    }
                    .menu-item-name {
                        color: @primary-color;
                    }
                    .@{ant-prefix}-tabs-tab-btn {
                        color: @primary-color;
                    }

                }
                .@{ant-prefix}-tabs-tab-btn {
                    .@{ant-prefix}-dropdown-trigger {
                        div {
                            div {
                                width: 100%;
                                height: 100%;
                            }
                        }
                    }
                }

            }
        }
        .menu-item {
            float: left;
        }
        & :global(.@{ant-prefix}-tabs-tab) {
            display: flex!important;
        }
        & :global(.@{ant-prefix}-tabs-tab-btn) {
            display: flex;
            position: relative;
            align-items: center;
            color: #737983;
            transform: scale(0.92);
        }
        & :global(.@{ant-prefix}-tabs-tab.@{ant-prefix}-tabs-tab-active .@{ant-prefix}-tabs-tab-btn) {
            color: @primary-color!important;
        }
        & :global(.@{ant-prefix}-tabs-tab-btn>div>div) {
            display: flex;
        }
        & :global(.@{ant-prefix}-tabs-nav::before) {
            border-bottom: none!important;
        }

        .menu-item-name {
            margin-left: 8px;
            color: #737983;
            // transition: color .3s;
            transition: border-color .3s,color .3s,padding .1s cubic-bezier(.215,.61,.355,1);
            &:hover {
                color: @primary-color;
            }
        }
        & :global {
            .@{ant-prefix}-divider-vertical {
                left: 20px;
                margin: 0 1px!important;
            }
            .@{ant-prefix}-tabs-nav-operations {
                .ant-tabs-nav-more {
                    margin-right: 0px!important;
                }
            }
        }
        & :global(.@{ant-prefix}-tabs-ink-bar) {
            background: @primary-color!important;
        }
        & :global(.@{ant-prefix}-tabs-tab-active) {
            color: @primary-color!important;
        }
        & :global(.@{ant-prefix}-tabs-tab-active .panda-pro-layouts-basic-layout-menu-item-name) {
            color: @primary-color!important;
        }
        & :global {
            .@{ant-prefix}-tabs-tab-active svg path, .@{ant-prefix}-tabs-tab-active svg rect, .@{ant-prefix}-tabs-tab-active svg circle {
                fill: @primary-color!important;
                stroke: @primary-color!important;
            }
            .@{ant-prefix}-tabs-tab-active img {
                filter: drop-shadow(10px 0px @primary-color);
            }


        }
        & :global(.@{ant-prefix}-tabs-nav-wrap) {
            margin-left: 22px;
        }

        & :global(.@{ant-prefix}-dropdown-trigger) {
            display: flex;
            align-items: center;
        }
        & :global(.@{ant-prefix}-tabs-nav) {
            margin: 0px!important;
        }

    }
    .@{ant-prefix}-page-container {
        // padding-top: 48px;
        // margin: -24px -24px 0;
        // margin: -18px 0px 0 0px;
        margin: 0px;
        height: 100%;
        //    background-color: #fff;
    }

    .@{ant-prefix}-page-container-warp {
        background-color: #fff;
    }

    .@{ant-prefix}-page-container-children-content {
        margin: 0!important;
    }
    & :global {
        .ant-pro-page-container-children-content, .ant-pro-grid-content-children, .ant-pro-grid-content-children>div, .ant-pro-grid-content-children .ant-spin-container {
            margin: 0px!important;
            height: 100%;
        }
        // margin: 14px 10px!important

    }

    & :global(.ant-pro-grid-content) {
        height: 100%;
    }

    .fixedHeader {
        position: fixed;
        width: 100%;
        top:0px;
        left: 0px;
        height: 46px;
        margin: 0px;
        padding: 0px;
    }



}

& :global {
    .@{ant-prefix}-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: @primary-color;
            // }
            span:last-child {
                color: @primary-color;
            }
        }
    }
    .@{ant-prefix}-dropdown-menu {
        .@{ant-prefix}-divider-horizontal{
            &:last-child {
                display: none;
            }
        }
    }
}
& :global {
    .@{ant-prefix}-dropdown-custom-menu {
        top: 82px!important;
        //div span:first-child
        .@{ant-prefix}-dropdown-menu-item {
            .@{ant-prefix}-dropdown-menu-title-content {
                &:hover {
                    span:first-child {
                        background: @primary-color!important;
                    }
                    span:last-child {
                        color: @primary-color;
                    }
                }
            }

        }

    }
}
