/* DASHBOARD */
.dashboard{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    width: 255px;
    /* max-width: 255px; */
    min-height: 100%;
    z-index: 999;
    overflow-y: auto;
}
/* .dashboard .content,.dashboard-wrapper .content-area,  */
.dashboard-header{
  box-shadow: 0px 2px 20px -2px #c0c0cd;
}
.dashboard-wrapper .content-area{
  min-height: 88vh;
  box-shadow: 0px 2px 20px -2px #c0c0cd;
}

@media screen and (max-width:349px) {
    .dashboard:not(.sm-bottom) {
        max-width: calc(100vw - 3.5rem);
    }
    .dashboard.show:not(.sm-bottom) .dashboard-menu-btn {
       left:  calc(100vw - 3.5rem);
    }
}

  .dashboard.right, .dashboard.right .dashboard-menu-btn, .dashboard.right.hide .dashboard-menu-btn,
  .dashboard.right.show .dashboard-menu-btn, .dashboard.right .dashboard-menu-btn,.dashboard.right.show{
    left: unset;
    right: 0;
  }
  .dashboard.right ~ .content{
    left: 0px;
  }


  .dashboard, .dashboard .dashboard-menu-btn{ transition: left 0.25s ease 0s;}
  .dashboard.right, .dashboard.right .dashboard-menu-btn{
    transition: none;
      transition: right 0.25s ease 0s;
    }
  .dashboard .dashboard-menu-btn{
    position: fixed;
    top: 0;
    padding: 1rem 1.25rem;
    font-size: 1.5rem;
    background: inherit;
    color: inherit;
  }


  /* hide dashboard */
  .dashboard-wrapper.hide{
      overflow: hidden;
      position: fixed;
      left: 0%;
      width: 100%;
    }
  .dashboard.hide{left: -255px;}
  .dashboard.right.hide{right: -180px;}
  .dashboard.hide ~ .content{
      max-width: 100%;
      left: 0;
  }

  .dashboard.show{left: 0;}
  .dashboard.right.show{right: 0;}

  .dashboard.hide .dashboard-menu-btn , .dashboard {left: 0;}
  .dashboard.right.hide .dashboard-menu-btn, .dashboard.right.hide {right: 0;}

  .dashboard.show .dashboard-menu-btn, .dashboard .dashboard-menu-btn{left:255px;}
  .dashboard.right.show .dashboard-menu-btn, .dashboard.right .dashboard-menu-btn{right: 255px;}

  @media screen and (max-width:1366px) {
     .dashboard ~ .content {left: 0 !important; max-width: 100% !important;}
     .dashboard.right ~ .content {right:  0;}
  }
  @media screen and (max-width:1366px) {
    /* .dashboard{left: -255px;} */
    .dashboard.right{right: -255px;}
    .dashboard .dashboard-menu-btn {left: 0;}
    .dashboard.right .dashboard-menu-btn{right: 0;}

    .dashboard-shadow,.action-btn-shadow{
        position: fixed;
        width: 100%;
        height: 100%;
        /* opacity: 0; */
        z-index: 1;
        top: 0;
        left: 0;
        transition: opacity 0.25s linear 0s;
    }
    .dashboard ~ .dashboard-shadow,.dashboard.hide ~ .dashboard-shadow, .action-btn-area .action-btn-shadow{
        opacity: 0;
        z-index: -3;
        pointer-events: none;
    }
    .dashboard.show ~ .dashboard-shadow, .action-btn-area.show .action-btn-shadow{ opacity: 1; z-index: 1;pointer-events: all;}
  }


  /* flat dashboard */
  .dashboard.flat{
      background: transparent;
      padding: 2rem 1rem;
      padding-top: calc(64px + 1rem); /*header*/

  }
  .dashboard.flat .content{
      min-height: 100%;
      /* max-height: 100%; */
      overflow-y: auto;

  }
  .dashboard.flat .content::-webkit-scrollbar{display: none}


  /* ### */

  .dashboard ~ .content{
    width: 100%;
    /* position: fixed; */
    left: 255px;
    position: absolute;
    max-width: calc(100% - 255px);
    /* min-height: 100%; */
    overflow-x: auto;
  }
   .dashboard.right ~ .content{
       left: unset;
       /* right: 255px; */
   }

   .dashboard.flat ~ .content{
    padding-top: 1rem
   }
  .dashboard .navs{
    display: flex;
    /* justify-content: center; */
    flex-direction: column;
    color: inherit;
  }
  .dashboard .navs .nav-link{
    position: relative;
    width: 100%;
    padding: .5rem 1rem;
    color: inherit;
  }
  .dashboard .navs .nav-link:hover::before,.dashboard .navs .nav-link:focus::before,.dashboard .navs .nav-link.active::before{
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height:100%;
    background-color: rgba(255,255,255,0.2);
    border-left: 5px solid orange
  }

  .dashboard .collapse-body{
    padding-left: 1rem;
  }
  .dashboard .collapse-body::before{
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    display: block;
    width: 2px;
    height: 100%;
    background: #fff;
  }

  .dashboard-wrapper .dashboard-header{
    height: 64px;
    width: 100%;
    /* box-shadow: 2px 1px 5px 1px #c0c0c0; */
    padding: 1rem 1.5rem;
  }
  /* .dashboard-wrapper .content .dashboard-header{left: 0;} */

  @media (max-width:1366px)
  {
    .dashboard.flat{
        width: 75px;
        padding: 1rem .5rem;
    }
  }


  @media (max-width:767px) {

      .dashboard-wrapper{
        /* position: relative;
        overflow:auto; */
        width: 100%;
        height: 100%;
      }
    .dashboard.sm-bottom{
      height: 55px;
      width: 100%;
      top: unset;
      bottom: 0;
      max-width: 100%;
      z-index: 2502;
      left: 0;
      position: fixed !important;
    }
    .dashboard.flat.sm-bottom, .dashboard.flat.sm-bottom .content{padding: 0}
    .dashboard.flat.sm-bottom .content{
        min-height: unset;
        height: 100%;

        border-radius: 0 !important
    }


    .dashboard.sm-bottom .navs{
        flex-direction: row;
        height: 100%;
    }
    .dashboard.sm-bottom .navs .nav-link{
      width: 50%;
      /* display: flex; */
      flex-direction: column;
      justify-content: center;
      align-items: center;
      /* line-height: 2.5rem; */
    }
    .dashboard.sm-bottom ~ .content{
        left: 0;
    }

    .dashboard.sm-bottom.flat ~ .content{
        top: 64px;
    }
    .dashboard.sm-bottom.flat ~ .dashboard-header{
        position: fixed;
        z-index: 2500;
    }

    /* header drop muen */
    .dashboard-header .dashboard-header-drop-menu{
        position: absolute;
        top: -100%;
        width: 100%;
        min-height: 75px;
        background: #fff;
        /* border-top: 1px solid; */
        z-index: -1;
        left: 0;
        transition: top .25s ease-out 0s;
    }
    .dashboard-header .dashboard-header-drop-menu.show{
        top: 100%
    }

    /* nav page */
    .dashboard ~ .dashboard-nav-page{
        position: fixed;
        width: 100%;
        max-height: 100%;
        overflow: auto;
        height: 100%;
          /* position: relative; */
        background: #fff;
        top: 0;
        left: 100%;
        z-index: 2501;
        transition: left .25s ease-out 0s;
    }
    .dashboard ~ .dashboard-nav-page .dashboard-nav-page-header{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 44px;
        background:#ffffff;
        box-shadow: 0px 2px 5px -2px #c0c0c0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .dashboard ~ .dashboard-nav-page.show{left: 0;}
    .dashboard ~ .dashboard-nav-page .content{
        width: 100%;
        height: 100%;

        /* padding: 80px 3rem; */
    }
      .dashboard ~ .dashboard-nav-page .content .navs{
        width: 100%;
        height: 100%;
      }
    .dashboard ~ .dashboard-nav-page .content .navs.grid{

        display: flex;
        align-items: center;
        flex-flow: row wrap;
        justify-content: center;
    }
    .dashboard ~ .dashboard-nav-page .content .navs.grid .nav-link{
        width: 50%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        display: flex;

    }


  }

  /* collapse */
  .collapse-body{
    position: relative;
    display:none;
    transition: all .2s linear 0s;
    height: 0px;
  }
  .collapse-body.active{
    overflow: hidden;
    height: auto;
    display: block;
  }
