

@include custommq($min: 768px) {

    [data-sidebar-style="mini"] {
        
        .nav-header {
            width: 5rem;

            .nav-control {
                z-index: -1;
                .hamburger{
                    #{$dz-pos-left}: 6.25rem!important;
                    .line{
                        background-color: $dark!important;
                    }
                }
            }
            .brand-title {
                display: none;
            }
            .hamburger {
                display: none;
            }
        }
		.header .header-content{
			padding-#{$dz-pos-left}: 0rem;
			
		}
        .deznav {
            width: 5rem;
            overflow: visible;
            position: absolute;
			z-index:5;
			
			.copyright,
			.main-profile{
				display:none;
			}
            .nav-text {
                display: none;
            }

            .slimScrollDiv,
            .deznav-scroll {
                overflow: visible !important;
            }
            .nav-user{
                padding: 11px;
                .media-body{
                    display: none;
                }
            }
            .metismenu {
               li {
			   
                    a {
                        padding: 0.813rem 0.875rem;
						 svg{
							margin-#{$dz-pos-right}:0;
						 }
						 .nav-text {
							display: none;
						}
                    }

                    &>ul {
                        position: absolute;
                        #{$dz-pos-left}: 6.25rem;
                        top: 2.9375rem;
                        width: 11.875rem;
                        z-index: 1001;
                        display: none;
                        padding-#{$dz-pos-left}: 1px;
                        box-shadow: 0px 0px 40px 0px rgba(82, 63, 105, 0.1);
                        height: auto !important;
						border-radius: 6px;
						background: #fff;

                        @at-root [direction="rtl"]:not([data-layout="horizontal"])#{&} {
                            left: auto;
                            right: 6.25rem;
                            box-shadow: 0px 0px 40px 0px rgba(82, 63, 105, 0.1);
                        }
                    }
                }
                &>li {
					padding: 2px 20px;
                    &>a {
						padding: 1.125rem 0.875rem;
						width: auto;
						height: auto;
						text-align: center;
						line-height: 1;
						transition: all 0.5s;
						-moz-transition: all 0.5s;
						-webkit-transition: all 0.5s;
						-ms-transition: all 0.5s;
						-o-transition: all 0.5s;
						
						& > i{
						padding:0;
						}
                        &.has-arrow {
                            &:after {
                                display: none;
                            }
                        }
                    }
					&.mm-active{
						&>a{
							i{
								color:$white;
							}
						}
					}
                }
                .nav-label,
                .nav-badge {
                    display: none;
                }
            }
        }

        .content-body {
            margin-#{$dz-pos-left}: 5rem;
        }

        .footer {
            padding-#{$dz-pos-left}: 5rem;
        }


    }

    [data-sidebar-style="mini"][data-layout="vertical"] {
        .deznav {
			position: absolute !important;
            .metismenu {

                li {
                    &:hover>ul {
                        display: block;
						
                    }
                }

                &>li {
					padding:2px 0;
					&>a{
						padding:1.5rem 1.5rem;
						&:before{
							height:100%;
							width:0px;
							background:var(--primary);
							content:"";
							position:absolute;
							top: 0;
							#{$dz-pos-left}: 0;
							display:block;
							@include transitionMedium;
							
						}
					}

                    &:nth-last-child(-n + 1) {
                        &>ul {
                            bottom:0;
                            top: auto !important;
							&:after{
								top:auto;
								bottom:20px;
							}
                        }
                    }

                    @include respond('tab-land') {
                        &:nth-last-child(-n + 1) {
                            &>ul {
                                bottom: 0;
                                top: auto !important;
                            }
                        }
                    }

                    &>ul {
                        overflow: visible;
						
						&:after{
							content:none;
						}

                        li:hover {
                            ul {
                                padding: 10px 0;
								width: 13rem;
								#{$dz-pos-left}: 13rem;
								top: -10px;
								border: 0;
								margin: 0;
								&:after{
									content:none;
								}			
                            }
                        }
                    }
					&.mm-active {
						&>a {
							background: var(--rgba-primary-1);
							color:var(--primary);
							border-radius: 0;
							//box-shadow:0 12px 15px 0 var(--rgba-primary-1);
							
							//@at-root [data-theme-version="dark"]#{&} {
							//	background: $dark-card;
							//}
							i{
								color:var(--primary);
							}
							&:before{
								width:6px;
							}
						}
					}
                    &:hover {


                        &>a {
                            //background: var(--primary);
							color:var(--primary);
							//box-shadow:0 12px 15px 0 var(--rgba-primary-1);
							//border-radius: 12px;
							//position: unset;
							i{
								color:var(--primary);
							}	
							@at-root [data-theme-version="dark"]#{&} {
								//background: rgba($primary);
							}
							
                            .nav-text {
								
                                @at-root [direction="rtl"]#{&} {
                                    padding-left: auto;
                                    padding-right: 1.6875rem;
                                }
                            }
                        }
                        &>ul {
                            height: auto !important;
                            overflow: visible;
							border:0;
							margin-#{$dz-pos-left}:0;
							#{$dz-pos-left}: 5rem;
							width: 13rem;
							border-radius:$radius;
							border:0;
							padding: 10px 0;
							top: 0px;
							
							@at-root [data-theme-version="dark"]#{&} {
								box-shadow: 0px 0px 40px 0px rgba(82, 63, 105, 0.1);
							}
							a {
                                padding: 6px 20px 6px 20px;
                               
							    &:before{
									content:none;
								}
								&.has-arrow:after{
									#{$dz-pos-right}: 1.25rem
								}
                            }
							
                            ul {
								
								
								a {
									padding: 6px 20px 6px 20px;
									margin-#{$dz-pos-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 {
				
				& > li{
					padding: 0;
					
					& > a {
						padding: 12px;
						margin: 0 8px;
						border:0;
						border-radius:$radius;
						
						i{
							padding: 0;	
						}
						@at-root [direction="rtl"]#{&} {
							i{
								padding: 0;	
							}
							// padding: 18px;
							svg {
								margin-left: 0;
							}
						}
						svg{
							margin-#{$dz-pos-right}: 0;
							margin-top: 0;
						}
					}
					& > ul li a{
					    padding: 8px 20px 8px 45px;
						padding-#{$dz-pos-left}: 45px;
						padding-#{$dz-pos-right}: 20px;
					}
					&.mm-active{
						&>a{
							background-color:var(--primary);
							border-radius:$radius;
							color:#fff;
							i{
								color:#fff;
							}
						}
					}
				}
			}
		}
	}

}

@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%);
                    }
                }
            }
        }
    }
}