
////////////////////
// Horizontal Nav
////////////////////
@media (min-width: 64rem) {
    [data-layout="horizontal"] {
        --dz-side-menu-direction : row;
        --dz-side-info : none;
        --dz-side-copyright : none;
        --dz-side-nav-padding : .7rem .85rem .7rem .85rem;
        --dz-side-sub_nav-padding : .5rem 1.2rem;
        --dz-sidebar-pos : relative;

        .deznav{
            .menu-title{
                display: none;
            }
            .metismenu{
                li{
                    a{
                        svg{
                            margin-right: 0.313rem;
                        }
                        
                    }
                }
            }
        }
        .nav-header{
            border-bottom: 0;
        }
        .nav-text-icon-toggle{
            display: none;
        }
        .deznav .metismenu ul:before{
            content:none;
        }
        .deznav .metismenu a.mm-active{
            background-color: transparent;
            margin-left: 0;
            padding: var(--dz-side-sub_nav-padding);
            padding-left: 3rem!important; //for compact
        }
        &[data-sidebar-style="mini"]{
            --dz-side-nav-padding :.5rem .65rem;

            .deznav .metismenu > li {
                padding: 0;
               
                & > a{
                    i{
                        margin: 0;
                        padding: 0;
                    }
                }
                
            }


        }
        &[data-sidebar-style="modern"]{
            --dz-sidebar-width : 17.5rem;
        }
        &[data-sidebar-style="full"],
        &[data-sidebar-style="icon-hover"]{
            .deznav{
                .metismenu{
                    &>li{
                        &>a{
                            &.has-arrow{
                                --dz-side-nav-padding : .5rem 1.9rem .5rem .85rem
                            }
                        }
                    }
                }
            }
        }
        
        .nav-header {
            .nav-control {
                display: none;
            }

            .brand-logo {
				padding-#{$dz-pos-left}: 2.5rem;
				padding-#{$dz-pos-right}: 2.5rem;
            }
        }

        .header {
            width: 100%;
			padding-top:0;
            .nav-control {
                display: none;
            }
        }

        .deznav {
            width:100%;
            height: auto;
            padding-bottom: 0;
            top: 0;
            z-index: 2;
            border-top:1px solid var(--border);
			
            .slimScrollDiv {
                overflow: visible!important;

                .deznav-scroll {
                    overflow: visible!important;
                }
            }
			.deznav-scroll {
				overflow: visible!important;
			}
            .slimScrollBar {
                display: none !important;
            }
			.header-profile2{
				display:none;	
			}
            .nav-user,
            .nav-label {
                display: none;
            }
			
            .metismenu {
				padding:0.025rem 1.25rem;
				margin-bottom: 0;
                flex-wrap: wrap;	
                .collapse.in {
                    display: none;
                }
				ul{
					border-#{$dz-pos-left}:0;
					@at-root [data-theme-version="dark"]#{&} {
					   box-shadow: 0rem 0rem 2.5rem 0rem rgba(82, 63, 105, 0.1);
					}
				}
                li {
                    flex-direction: column;
                    position: relative;
                    justify-content: center;

                    &:hover {
                        &>ul {
                            display: block;
                           
                        }
                    }
                    
                    &>ul {
                        position: absolute;
                        height: auto !important;
                        top: 100%;
                        width: 100%;
                        min-width: 13.75rem;
                        z-index: 999;
                        #{$dz-pos-left}: auto;
                        #{$dz-pos-right}: auto;
                        padding: 0.5rem 0;
                        display: none;
                        box-shadow: 0rem 0rem 2.5rem 0rem rgba(82, 63, 105, 0.1);
						margin:0;
						background:$white;
                        border-radius: $radius;
                     

                       
							
                        @at-root [data-theme-version="dark"]#{&} {
                           box-shadow:0rem 0rem 2.5rem 0rem rgba(82, 63, 105, 0.1);
						   background:$dark-card;
                        }

                        li {
                            padding: 0;
    
                            a {
                                transition: all .4s ease-in-out;
                                margin-#{$dz-pos-left}: -.1rem;
                                transition: all 0.5s;
                                position: relative;
                                padding-left: 3rem;
								&:before{
									content:none;
									#{$dz-pos-left}: 1.375rem;
								}
                                &:after{
                                    content: "";
                                    height: 0.125rem;
                                    width: 0.575rem;
                                    background: var(--light);
                                    position: absolute;
                                    left: 1.7rem;
                                    top: 50%;
                                    transform: translateY(-50%);
                                    -webkit-transition: all 0.5s;
                                    -ms-transition: all 0.5s;
                                    transition: all 0.5s;
                                

                                }
                                &:hover{
                                    letter-spacing: 0.5px;
                                    transition: all 0.3s ease;

                                }
                            }
                        }
                        
                        ul {
                            #{$dz-pos-left}: 100%;
                            top: 0;
							box-shadow: 0rem 0rem 2.5rem 0rem rgba(82, 63, 105, 0.1);
                        }
                    }
                }

                &>li {
                    flex: 0 0 auto;
                    position: relative;
                    padding: 0;
                    margin: 0;
                    &>a {
                        border-radius: $radius;
                        
                    
                        i{
                            margin-#{$dz-pos-right}:0.3125rem;
                        }
                    }
					@at-root [data-theme-version="dark"]#{&} {
						border-color: rgba(255,255,255,0.07);		
						
						&.mm-active{
							border-color:transparent;
						}
						
						
					}
                    .badge{
                        margin-#{$dz-pos-left}: 5px;
                    }
					&:hover,
					&.mm-active{
						padding:0;			
						& > a{
							background:var(--rgba-primary-1);
							color:var(--primary);
                           
							i{
								color:var(--primary);
								background:transparent;
								box-shadow:none;
							}
						}
					}
                    &>a {
						margin: 0.225rem 0.125rem;
                        i{
							line-height:1;
                        }
                        .nav-badge {
                            display: none;
                        }
                        &:after {
                            #{$dz-pos-right}: 0.75rem;
                            transform: rotate(-135deg) translateY(-50%);
                        }
                    }
                    &:hover {
						border-color:transparent;
                        transition: all 0.5s ease;
                        & > ul {
                            display: flex !important;
                            flex-direction: column;
                            flex-wrap: wrap;
                            height: auto !important;
							box-shadow: 0.3125rem 0.3125rem 1.875rem 0rem rgba(20, 0, 30, 0.1);
							border-radius: $radius;
                          
							
							@at-root [data-theme-version="dark"]#{&} {
								box-shadow: 0.3125rem 0.3125rem 1.875rem 0rem rgba(0, 0, 0, 0.1);
								background:$dark-card;
							}
							
                        }
                    }
                    &>ul {
                        &>li {
                            &:hover {
                                ul.collapse {
                                    display: block!important;
                                    position: absolute;
                                    #{$dz-pos-left}: auto!important;
                                    #{$dz-pos-right}: -100%!important;
                                    top: 0!important;
                                }
                            }
                        }
                    }
                    &:nth-last-child(-n + 5) {
                        &>ul {
                        #{$dz-pos-left}: auto;
                        #{$dz-pos-right}: 0;
                            &>li {
                                &:hover {
                                    ul.collapse {
                                        #{$dz-pos-right}: auto!important;
                                        #{$dz-pos-left}: -100%!important;
                                    }
                                }
                            }
							&.left{
								#{$dz-pos-left}:0;
								&>li {
									&:hover {
										ul.collapse {
											#{$dz-pos-left}: 100%!important;
										}
									}
								}
							}
                        }
                    }
                    &:last-child {
                        &>ul {
                            ul {
                                #{$dz-pos-left}:100%;
                            }
							&.left{
								ul{
									#{$dz-pos-left}: 100%;
								}
							}
							
                        }
                    }
                }
            }
        }
		
        .content-body {
            margin-#{$dz-pos-left}: 0;
			.container-fluid{
				padding-top:2.5rem;
			}
            .page-titles {
                margin-#{$dz-pos-left}: 0!important;
                margin-#{$dz-pos-right}: 0!important;
                margin-bottom: 1.875rem;
            }
        }

        .footer {
            margin-#{$dz-pos-left}: 0;
            margin: 0 auto;
            padding-#{$dz-pos-left}: 0;
        }
    }

    [data-header-position="fixed"][data-layout="horizontal"] {
        .deznav {
            top: var(--dz-header-height);
        }
    } //ok

    [data-header-position="fixed"][data-sidebar-position="fixed"] {
        --dz-sidebar-pos : fixed;
    } //ok

    [data-header-position="fixed"][data-layout="horizontal"][data-sidebar-position="fixed"] {
        .content-body {
            padding-top: 9.5rem;
        }
    } //ok
	[data-header-position="fixed"][data-layout="horizontal"][data-sidebar-position="fixed"][data-sidebar-style="modern"] {
        .content-body {
            padding-top: 10.5rem;
        }
    } //ok
	
    [data-layout="horizontal"][data-container="boxed"] {

        .footer {
            margin-#{$dz-pos-left}: 0;
            max-width: 74.9375rem;
            margin: 0 auto;
        }
    }

    [data-layout="horizontal"][data-container="wide"] {
        .page-titles {
            margin-#{$dz-pos-left}: -1.875rem;
            margin-#{$dz-pos-right}: -1.875rem;
        }
    }

    [data-layout="horizontal"][data-sidebar-style="modern"] {
		 .deznav {
			.header-profile{
				margin-bottom:0;
				img{
					height: 3.75rem;
					width: 3.75rem;
					margin-bottom:0!important;
				}
				&>a.nav-link{
					border:0.0625rem solid $border-color;
					padding: 0.25rem 0.25rem;
					border-radius:3rem;
				}

			} 
            .metismenu{
                li{
                    border-right:1px solid var(--border);
                    margin: 0;
                }
            }
            
            
		 }
         .deznav .metismenu > li > a{
            padding:.45rem 0.7rem;
            border-radius: 0;
        }
	}
    [data-layout="horizontal"][data-sidebar-style="compact"] {
        --dz-sidebar-width : 17.5rem;
        --dz-side-nav-padding: .35rem .75rem;
        --dz-side-sub_nav-padding: .5rem 1.5rem;
        .page-titles {
            margin-top: 0;
        }
        
        .deznav {
			.header-profile{
				margin-bottom:0;
				img{
					height: 3.75rem;
					width: 3.75rem;
					margin-bottom:0!important;
				}
				&>a.nav-link{
					border:0.0625rem solid $border-color;
				}
			} 
            .metismenu {
	
                &>li {
                    &>ul {
                        top: 100%;
                    }
                    &>a {
						.badge-xs{
							&.style-1{
								margin-#{$dz-pos-left}:0px;
								
							}
						}

                        &::after {
                            display: none;
                        }
						.nav-text{
							margin-top: 0.3125rem;
						}
						&>i{
							margin:0;
                            display: block;
							line-height:1;
							padding:0;
							background:transparent;
							margin-bottom: 0;
						}
                    }
                    li {
                        text-align: #{$dz-pos-left};
                    }
                }
            }
        }
    }

    [data-sidebar-style="mini"][data-layout="horizontal"] {
        .nav-header {
            width: 7.75rem;
			padding-#{$dz-pos-left}: 2.5rem;
			padding-#{$dz-pos-right}: 2.5rem;
			
			    .brand-logo {
				    justify-content: start;
					padding-#{$dz-pos-left}: 0;
					padding-#{$dz-pos-right}: 0;
				}
        }
    
        .header {
            width: 100%;
            padding-#{$dz-pos-left}: 7.75rem;
        }

        .metismenu {
            
            &>li {
				
                &:hover {
                    a {
                        .nav-text {
                            display: none;
                        }
                    }
                }
            }
        }
    }
	
	[data-header-position="fixed"][data-layout="horizontal"][data-sidebar-position="fixed"][data-sidebar-style="full"],
    [data-header-position="fixed"][data-layout="horizontal"][data-sidebar-position="fixed"][data-sidebar-style="compact"] {
        .content-body {
            padding-top: 10.5rem;
        }
    }
	[data-header-position="fixed"][data-layout="horizontal"][data-sidebar-position="fixed"][data-sidebar-style="full"][data-container="boxed"]{
        .content-body {
            padding-top: 13.5rem;
        }
    }
	[data-header-position="fixed"][data-layout="horizontal"][data-sidebar-position="fixed"][data-sidebar-style="full"]{
		.content-body {
            padding-top: 9rem;
			@media screen and (max-width: 1367px) {
				padding-top: 13.5rem;
			}
        }
	}

    [data-sidebar-position="fixed"][data-layout="horizontal"] {
        .deznav.fixed {
            position: fixed;
			padding: 0 0.9375rem;
            #{$dz-pos-left}: 0;
            top: 0;
			border-radius:0;
			width:100%;
        }
    }

}
