.main-panel {
  height: calc(100vh - 80px);
  min-height: calc(100vh - 80px);
  > .container {
    min-height: calc(100% - 76px);
  }
}

.nav-toggle {
  .btn-toggle {
    padding: 0;
    margin: 0;
    border: 0;
    width: 30px;
    height: 30px;
    background: transparent !important;
    color: unset !important;
  }
}

.overlay_sidebar_show {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.15;
  z-index: 2000;
  top: 0;
  left: 0;
}

.navbar-header {
  .more {
    background: transparent;
    border: 0;
    font-size: 22px;
    padding: 0;
    color: #fff;
  }
  &[data-background-color="dark"] .page-navigation > .nav-item ul li a, &[data-background-color="dark2"] .page-navigation > .nav-item ul li a {
    color: #b9babf;
    &:before {
      background: #b9babf;
    }
  }
}

.sidebar {
  left: -265px !important;
  z-index: 2001;
  transition: all 0.3s;
  .sidebar-wrapper {
    max-height: 100vh !important;
    padding-bottom: 0px !important;
  }
  .btn-close-sidebar {
    padding: 2px;
  }
}

.sidebar_show {
  overflow: hidden;
  .sidebar {
    left: 0 !important;
  }
}


@media screen and (min-width: 992px) {
  .nav-toggle {
    position: absolute;
    left: -30px;
  }
  .more,
  .toggle-page-navigation {
    display: none;
  }
}

@media screen and (max-width: 991.5px) {
  .topbar_open {
    #menuIconHeader {
      transform: translate3d(0, 63px, 0) !important;
    }
  }

  .main-header {
    min-height: 65px;
    .navbar-header {
      min-height: 65px;
    }
    .nav-controls {
      position: relative;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  #menuHeader {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1200;
    left: 0 !important;
    right: 0;
    top: 0;
    margin-top: 0px;
    overflow-y: auto;
    .body-overlay {
      display: none;
    }
    .page-navigation {
      min-height: 100vh;
      width: 275px;
      max-width: calc(100% - 40px);
      padding-bottom: 60px;
      overflow-y: auto;
      overflow-x: hidden;
      display: block;
      z-index: 2001;
      position: relative;
      -webkit-transform: translate3d(-275px, 0, 0);
      -moz-transform: translate3d(-275px, 0, 0);
      -o-transform: translate3d(-275px, 0, 0);
      -ms-transform: translate3d(-275px, 0, 0);
      transform: translate3d(-275px, 0, 0) !important;
      transition: all 0.5s;
      .title-menu {
        font-size: 14px;
        margin: 0;
        color: #fff;
        height: 56px;
        display: flex;
        align-items: center;
        padding: 0 20px;
        position: relative;
        font-weight: 300;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        .close-menu {
          color: #fff;
          position: absolute;
          top: 50%;
          right: 15px;
          transform: translateY(-50%);
          cursor: pointer;
          font-size: 18px;
        }
      }
      > .nav-item {
        flex-direction: column;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0;
        &:first-child > a {
          margin-left: 0;
        }
        &.active {
          &:before {
            width: 100%;
            margin-left: 0;
            transform: none;
            left: 0;
            height: 2px;
            bottom: -2px;
          }
        }
        > .nav-link {
          width: 100%;
          position: relative;
          padding-left: 18px;
          padding-right: 18px;
          min-height: 60px;
        }
        .navbar-dropdown {
          position: relative;
          top: 0 !important;
          border: 0;
          width: 100% !important;
          border-radius: 0px;
          ul {
            padding: 15px 25px !important;
          }
        }
        &.submenu {
          > .nav-link {
            &:after {
              position: absolute;
              right: 35px;
              height: unset;
            }
          }
        }
        &.mega-menu {
          .navbar-dropdown {
            padding: 5px !important;
          }
        }
        .category-heading {
          padding-top: 0px;
        }
        &.show-submenu {
          .navbar-dropdown {
            display: block;
          }
        }
        &:not(.show-submenu) {
          > .nav-link {
            &:after {
              transform: rotate(0deg) !important;
            }
          }
        }
      }
      &.page-navigation-style-2 {
        > .nav-item {
          flex-direction: column;
          margin-bottom: 10px;
          > .nav-link {
          }
          .navbar-dropdown {
            width: 100%;
            margin-top: 5px;
          }
        }
      }
    }
    &.show {
      .page-navigation {
        -webkit-transform: translate3d(0px, 0, 0);
        -moz-transform: translate3d(0px, 0, 0);
        -o-transform: translate3d(0px, 0, 0);
        -ms-transform: translate3d(0px, 0, 0);
        transform: translate3d(0px, 0, 0) !important;
      }
      .body-overlay {
        display: block;
      }
    }
  }

  #menuIconHeader {
    position: absolute;
    width: 100%;
    z-index: 1001;
    transition: all 0.5s ease 0s;
    transform: translate3d(0px, -70px, 0px) !important;
    min-height: 62px;
    display: flex;
    left: 0;
  }

  .navbar-header {
    .nav-toggle {
      display: block;
      position: absolute;
      left: 15px;
    }
    .more {
      position: absolute;
      right: 15px;
    }
    .navbar-brand {
      position: absolute;
      left: 50px;
      // transform: translateX(-50%);
    }
    .toggle-page-navigation {
      position: absolute;
      right: 40px;
    }
  }
}
