@use 'element-plus/theme-chalk/src/mixins/mixins.scss' as *;

@include b(pro-layout){

    @include e(logo){
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        margin: 0 auto;
        justify-content: center;
        padding: 10px;
        color: var(--wet-logo-color,getCssVar('color','primary'));
        &>h1{
            font-size: 24px;
            padding:0 10px;
        }
    }

    @include e(header){
        display: flex;
        background-color: #fff;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 0 ;

        @include when(fixed){
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            z-index: 100;
            @include when(aside-fixed){
                left:  var(--wet-pro-layout-aside-width,getCssVar('aside-width'));
            }
        }

        &::after{
            content: '';
            display: block;
            position: absolute;
            right: 0;
            left: 0;
            bottom: 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        }
        .#{$namespace}-menu{
            margin: 0;
            border: none;
            background-color: transparent;
            li{
                margin-top: 0;
            }
        }

        .#{$namespace}-pro-layout__logo{
            width: var(--wet-pro-layout-aside-width,getCssVar('aside-width'));
        }

        .header-menus-wrapper{
            display: flex;
            flex: 1;
            justify-content: space-between;
            align-items: center;
        }

        .header-tools-wrapper{
            padding-right: 10px;
        }
    }

    @include e(aside){
        padding:0 10px 10px 10px;
        background-color: var(--wet-pro-layout-aside-bg,#fff);
        width: var(--wet-pro-layout-aside-width,getCssVar('aside-width'));
        transition: width 0.3s;
        position: relative;
        overflow-x: hidden;
        flex-direction: column;
        display: flex;
        // align-items: center;

        @include when(fixed){
            position: fixed;
            top: 0;
            left: 0;
            z-index: 100;
            bottom: 0;
            // left: var(--wet-pro-layout-aside-width);
        }
        
        &::after{
            content: '';
            display: block;
            position: absolute;
            right: 0;
            // top: 60px;
            top: 0;
            bottom: 0;
            border-right: 1px solid rgba(0, 0, 0, 0.06);
        }
        .#{$namespace}-menu{
            margin: 0;
            border: none;
            padding-left: 0;
            background-color: transparent;
            li{
                margin-top: 0;
            }
        }
        
        .menu-item__collapse{
            font-style: normal;
        }
        .ymenu-wrapper{
            flex: 1;
            overflow-x: hidden;
            overflow-y: auto;
        }
    }
}