@import "../../abstracts/_mixin";
@import "../../abstracts/_variable";

@include custommq($min: 768px) {

    [data-sidebar-style="mini"] {
        
        .nav-header {
            width: 3.75rem;

            .nav-control {
                z-index: -1;
                .hamburger{
                    left: 3.75rem!important;
                    .line{
                        background-color: $dark!important;;
                    }
                }
            }
            .brand-title {
                display: none;
            }
            .hamburger {
                display: none;
            }
        }
		.header .header-content{
			padding-left: 1.875rem;
		}
        .deznav {
            width: 3.75rem;
            overflow: visible;
            position: absolute;

            .nav-text {
                display: none;
            }

            .slimScrollDiv,
            .deznav-scroll {
                overflow: visible !important;
            }
            .nav-user{
                padding: 11px;
                .media-body{
                    display: none;
                }
            }

            .metismenu {
				padding: 5px;
				
                li {
					&.mm-active{
						padding: 0;
					}
                    a {
                        padding: 0.8125rem 0.9375rem;
						 svg{
							margin-right:0;
						 }
                    }

                    &>ul {
                        position: absolute;
                        left: 3.75rem;
                        top: 2.9375rem;
                        width: 11.875rem;
                        z-index: 1001;
                        display: none;
                        padding-left: 1px;
                        box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.15);
                        height: auto !important;

                        @at-root [direction="rtl"]:not([data-layout="horizontal"])#{&} {
                            left: auto;
                            right: 3.75rem;
                            box-shadow: -6px 6px 10px rgba(0, 0, 0, 0.15);
                        }
                    }
                }
                &>li {

                    &>a {
                        
                        &.has-arrow {
                            &:after {
                                display: none;
                            }
                        }
                    }
                }
                .nav-label,
                .nav-badge {
                    display: none;
                }
            }
        }

        .content-body {
            margin-left: 3.75rem;
        }

        .footer {
            padding-left: 3.75rem;
        }


    }

    [data-sidebar-style="mini"][data-layout="vertical"] {
        .deznav {
            .metismenu {

                li {
                    &:hover>ul {
                        display: block;
                    }
                }

                &>li {

                    &:nth-last-child(-n + 1) {
                        &>ul {
                            bottom: 2.93rem;
                            top: auto;
                            box-shadow: 6px -6px 10px rgba(0, 0, 0, 0.15);

                            @at-root [direction="rtl"]#{&} {
                                box-shadow: -6px -6px 10px rgba(0, 0, 0, 0.15);
                            }
                        }
                    }

                    @include respond('tab-land') {
                        &:nth-last-child(-n + 1) {
                            &>ul {
                                bottom: 2.93rem;
                                top: auto;
                            }
                        }
                    }

                    &>ul {
                        overflow: visible;
						&:after{
							content:none;
						}

                        li:hover {
                            ul {
                                box-shadow: 0px 9px 10px 0px rgba(82, 63, 105, 0.1);
								border-radius:5px;
								padding: 10px 0;
								width: 13rem;
								left: 13rem;
								top: -10px;
								border: 0;
								margin: 0;
								&:after{
									content:none;
								}								
                            }
                        }
                    }

                    &:hover {


                        &>a {
                            width: 16rem;
                            background: #fff;
							border-radius: 5px 5px 0 5px;
							box-shadow:0px 0px 13px 0px rgba(82, 63, 105, 0.05);
							
							@at-root [data-theme-version="dark"]#{&} {
								background: $dark-card;
								box-shadow: 0px 0px 13px 0px rgba(0, 0, 0, 0.1);
							}
							
                            .nav-text {
                                display: inline-block;
                                padding-left: 1.6875rem;

                                @at-root [direction="rtl"]#{&} {
                                    padding-left: auto;
                                    padding-right: 1.6875rem;
                                }
                            }
                        }
                        &>ul {
                            height: auto !important;
                            overflow: visible;
							border:0;
							margin-left:0;
							left: 3rem;
							width: 13rem;
							box-shadow: 0px 9px 10px 0px rgba(82, 63, 105, 0.1);
							border-radius: 0 0 5px 5px;
							border:0;
							padding: 10px 0;
							@at-root [data-theme-version="dark"]#{&} {
								box-shadow: 0px 9px 10px 0px rgba(0, 0, 0, 0.1);;
							}
							a {
                                padding: 6px 20px 6px 20px;
                                margin-left: -1.6px;
								&:before{
									content:none;
								}
                            }
							
                            ul {
								
								
								a {
									padding: 6px 20px 6px 20px;
									margin-left: -1.6px;
									&:before{
										content:none;
									}
								}
                            }
                        }
                    }
                }
            }
        }
    }

    [data-sidebar-style="mini"][data-header-position="fixed"][data-container="boxed"][data-layout="vertical"] {
        .header {
            width: 1199px;
        }
    }
	
	[data-sidebar-style="mini"][data-layout="horizontal"] {
		.deznav .metismenu {
			padding: 0 30px;
		}
		.deznav .metismenu > li > a {
			padding: 15px 20px;
			svg{
				margin-right: 0;
				margin-top: 0;
			}
		}
	}

}

@include respond('tab-land') {
    [data-sidebar-style="mini"] {
        .deznav {

            li {
                &.mm-active {
                    ul {
                        height: auto !important;
                    }
                }

                a.has-arrow {
                    &::after {
                        transform: rotate(-45deg) translateY(-50%);
                    }
                }
            }
        }
    }
}