.main-container {
  position: relative;
}

.main-container.show-navbar .navbar {
  display: block;
}

.main-container.show-navbar .app-container {
  margin-left: 60px;
  /*transition: margin-left 0.15s ease;*/
}

.navbar {
  width: 60px;
  min-height: 100%;
  display: none;
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  margin-bottom: 0;
  border: none;
  z-index: 1000;
  border-radius: 0px;
  /*transition: width 0.15s ease;*/
}

.navbar.navbar-float-add {
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.navbar.navbar-float {
  width: 240px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.navbar.navbar-float-remove {
  transition: all 0.15s ease;
}

.profile {
  padding-top: 15px;
  display: flex;
  align-items: center;
}

.profile-pic {
  padding: 5px;
}

.profile-img {
  width: 50px;
  background: #fff;
}

.profile-info {
  display: none;
  padding-left: 15px;
  padding-bottom: 15px;
  padding-right: 15px;
  max-width: 240px;
}

.navbar.navbar-float .profile-info {
  display: block;
}

.profile-info span {
  font-size: 11px;
  line-height: 30px;
  color: #bab8b8;
}

.profile-info h2 {
  word-wrap: break-word;
  font-size: 11px;
  margin: 0;
  font-weight: 300;
}

.toggle-float-wrapper {
  height: 44px;
  transition: height 0.15s ease-in-out;
}

.toggle-float {
  text-align: center;
}

.toggle-float .fa {
  transition: transform 0.3s ease;
  flex-grow: 1;
}

.navbar.navbar-float .toggle-float .fa {
  transform: scaleX(-1);
}

.toggle-float:hover .fa:before {
  display: inline-block;
  -webkit-animation-name: hvr-icon-hang-sink, hvr-icon-hang;
  animation-name: hvr-icon-hang-sink, hvr-icon-hang;
  -webkit-animation-duration: 0.3s, 1.5s;
  animation-duration: 0.3s, 1.5s;
  -webkit-animation-delay: 0s, 0.3s;
  animation-delay: 0s, 0.3s;
  -webkit-animation-timing-function: ease-out, ease-in-out;
  animation-timing-function: ease-out, ease-in-out;
  -webkit-animation-iteration-count: 1, infinite;
  animation-iteration-count: 1, infinite;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-direction: normal, alternate;
  animation-direction: normal, alternate;
}

.nav > li > a:hover,
.nav > li > a:focus {
  background-color: transparent;
}

.navbar .nav > li > a {
  display: flex;
  height: 45px;
  padding: 0px 16px;
  align-items: center;
  outline: none;
  overflow: hidden;
  cursor: pointer;
  transition: border-right 0.3s ease;
  font-size: 13px;
}

.navbar .nav .fa-fw {
  font-size: 18px;
  flex: 0 0 auto;
}

.navbar .nav .menu-text {
  opacity: 0;
  margin-left: 5px;
  transition: opacity 0.15s ease;
  text-overflow: ellipsis;
  overflow: hidden;
  flex: 0 0 auto;
  width: 180px;
  display: block;
}

.navbar.navbar-float .nav .menu-text {
  opacity: 1;
}

.navbar .nav > li.active > a {
  background: linear-gradient(rgba(255, 255, 255, 0.03), transparent);
  text-shadow: rgba(0, 0, 0, 0.25) 0 -1px 0;
  box-shadow: rgba(0, 0, 0, 0.25) 0 1px 0,
    inset rgba(255, 255, 255, 0.16) 0 1px 0;
}

.navbar .nav > li.active > a {
  border-right-width: 5px;
  border-right-style: solid;
}

.navbar .nav > li > a:hover,
.navbar .nav > li > a:focus,
.navbar .nav > li > a:hover,
.navbar .nav > li > a:focus {
  background-color: rgba(255, 255, 255, 0.06);
}

.sub-menu-toggle > .sub-menu {
  display: none;
}

.sub-menu-toggle .expand-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.sub-menu-toggle .expand-icon:before {
  display: inline-block;
  transition: transform 0.3s ease;
}
.sub-menu-toggle.opened .expand-icon:before {
  transform: rotate(180deg);
}

.nav.sub-menu > li > a {
  color: rgba(255, 255, 255, 0.75);
  background-color: rgba(0, 0, 0, 0.2);
}

.brand {
  height: 60px;
  margin-top: 10px;
  width: 100% !important;
  background-position: center;
  background-repeat: no-repeat;
  background-color: white;
  background-size: contain;
}

.view-switcher li {
  display: inline-block;
}

.backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(127, 127, 127, 0.15);
  z-index: 990;
}

.backdrop.ng-enter {
  transition: 0.15s linear all;
  opacity: 0;
}

.backdrop.ng-enter.ng-enter-active {
  opacity: 1;
}

.backdrop.ng-leave {
  transition: 0.15s linear all;
  opacity: 1;
}
.backdrop.ng-leave.ng-leave-active {
  opacity: 0;
}

@media (min-width: 480px) {
  .navbar {
    display: flex;
    flex-direction: column;
  }
  .side-toggle,
  #menu_toggle {
    display: none;
  }
  .main-container .app-container {
    margin-left: 60px;
  }
}

@media (min-width: 992px) {
  .navbar {
    width: 240px;
  }
  .main-container.show-navbar .app-container,
  .main-container .app-container {
    margin-left: 240px;
  }

  .profile-info {
    display: block;
  }

  .toggle-float-wrapper {
    height: 0px;
  }

  .navbar .nav > li > a.toggle-float {
    display: none;
  }

  .nav.side-menu .menu-text {
    opacity: 1;
  }

  .nav.sub-menu > li:after,
  .nav.sub-menu > li:before {
    opacity: 1;
  }

  .nav.side-menu > li > a,
  .nav.sub-menu > li > a {
    text-align: left;
  }
}

@media (max-width: 991px) {
  .brand {
    height: 60px !important;
  }
}

@media print {
  .app-container,
  .main-container.show-navbar .app-container {
    margin-left: 0 !important;
  }
}
