.ant-menu {
    padding: 12px;
}

.ant-menu-inline {
    border: none;
}

.ant-menu-inline>.ant-menu-item,
.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title {
    margin: 0 0 8px 0;
    border: solid 1px transparent;
    border-radius: @border-radius;
    color: rgba(51, 51, 51, .6);
    padding: 7px 11px 7px 15px !important;
    line-height: 24px;
    vertical-align: top;

    .iconfont {
        margin-right: 12px;
        vertical-align: top;
        font-size: 16px;
    }

    &::after {
        display: none;
    }
}

.ant-menu-inline>.ant-menu-submenu>.ant-menu-submenu-title {
    margin: 0;

    &:hover {
        color: rgba(51, 51, 51, 1);
        border-color: #e1e3e6;
        background-color: #ebedf0;
        font-weight: 500;

        .ant-menu-submenu-arrow::before,
        .ant-menu-submenu-arrow::after {
            // background: rgba(51, 51, 51, 1);
            background: linear-gradient(to right, rgba(51, 51, 51, .6), rgba(51, 51, 51, .6))
        }

    }
}

.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
    border-color: #e1e3e6;
    background-color: #ebedf0;
    color: @color-primary;
    font-weight: 500;
}



.ant-menu .ant-menu-submenu {
    .ant-menu-item {
        padding-left: 43px !important;
        border: none;
        background-color: transparent;
        color: rgba(51, 51, 51, .6);
        position: relative;
        line-height: 24px;

        &::before {
            content: '';
            position: absolute;
            left: 22px;
            top: 18px;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background-color: #acadaf;
            ;
        }
    }

    .ant-menu-item-selected {
        color: @color-primary;
        border: none;
        background-color: transparent;
    }

    .ant-menu-item:hover {
        border: none;
        background-color: transparent;
        color: @color-primary;
    }
}

.ant-menu .ant-menu-submenu-selected {
    color: rgba(51, 51, 51, .6);

    .ant-menu-submenu-title {
        border-color: #e1e3e6;
        background-color: #ebedf0;
        color: rgba(51, 51, 51, 1);
        font-weight: 500;
    }

    .ant-menu-item-selected {
        border: none;
        background-color: transparent;
        color: @color-primary;
        font-weight: 500;
        position: relative;

        &::before {
            position: absolute;
            content: '';
            left: 22px;
            top: 16px;
            width: 4px;
            height: 8px;
            border-radius: 2px;
            background-color: @color-primary;
            ;
        }
    }

    // .ant-menu-item:hover {
    //     border: none;
    //     background-color: transparent;
    //     color: @color-primary;
    // }

}

.ant-menu-item:hover {
    border-color: #e1e3e6;
    background-color: #ebedf0;
    color: rgba(51, 51, 51, 1);
}


.ant-menu-submenu-active {
    .ant-menu-submenu-title {
        .ant-menu-submenu-arrow::before {
            background-color: rgba(51, 51, 51, 1);
        }

        border-color: #e1e3e6;
        background-color: #ebedf0;
        color: rgba(51, 51, 51, 1);
        // font-weight: 500;
    }
}