.maha-portal {
  flex: 1;
  position: relative;
  &.account, &.navigation {
    .maha-portal-overlay {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      top: 0;
      opacity: 0.4;
    }
  }
  &.account {
    .maha-portal-account {
      .translateX(0);
    }
  }
  &.navigation {
    .maha-portal-navigation {
      .translateX(0);
    }
  }
  &.sidebar {
    & > .reframe-stack,
    & > .maha-portal-body  {
      left: ~"calc(400px + 3.5em)";
    }
    .maha-portal-sidebar {
      width: 400px;
    }
  }
  &.expanded {
    .maha-portal-body  {
      right: 0;
    }
    .maha-portal-sidebar {
      left: 3.5em;
    }
  }
}
.maha-portal-overlay {
  .transition(opacity .5s cubic-bezier(0.7, 0, 0.175, 1) 0s);
  background-color: @black;
  opacity: 0;
}
.maha-portal-navigation {
  .transition(transform .5s cubic-bezier(0.7, 0, 0.175, 1) 0s);
  .translateX(-100%);
  background-color: @white;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  max-width: 350px;
  width: ~"calc(100% - 3.5em)";
}
.maha-portal-account {
  .transition(transform .5s cubic-bezier(0.7, 0, 0.175, 1) 0s);
  .translateX(100%);
  background-color: @white;
  display: flex;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  max-width: 350px;
  width: ~"calc(100% - 3.5em)";
}
.maha-portal-ribbon-spacer {
  flex: 1;
}
.maha-portal-ribbon-item {
  flex: 0 0 3.5em;
  cursor: pointer;
  .hover(background-color, @black);
  display: flex;
  &.active {
    background: @blue;
  }
  .fa {
    margin: auto;
    color: @white;
    width: 1.1em;
    font-size: 1.3em;
    line-height: 1em;
  }
  .maha-avatar {
    margin: auto;
    width: 2em;
    height: 2em;
  }
}
.maha-portal-sidebar {
  background-color: @white;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3.5em;
  max-width: ~"calc(100%)";
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 2px 0 2px fadeout(@black, 95);
  border-left: 5px solid @blue;
  .drive-search,
  .reframe-toggle-list-header .reframe-searchbox,
  .reframe-modal-panel-header,
  .reframe-tabs-header {
    background-color: @blue !important;
  }
}
.maha-portal-sidebar-header {
  flex: 0 0 3.5em;
  background-color: @blue;
  display: flex;
}
.maha-portal-sidebar-header-nav {
  flex: 0 0 3.5em;
  display: flex;
  cursor: pointer;
  position: relative;
  i {
    margin: auto;
    color: @white;
    width: 1.1em;
    font-size: 1.3em;
    line-height: 1em;
  }
}
.maha-portal-sidebar-header-title {
  flex: 1;
  color: @white;
  line-height: 1.1em;
  font-size: 1.1em;
  text-align: center;
  padding: 1em;
}
.maha-portal-sidebar-header-title {
}
.maha-portal-sidebar-body {
  flex: 1;
  display: flex;
}
.maha-portal-body  {
  background-color: lighten(@black, 85);
}
@media (max-width: 768px) {
  .maha-portal-ribbon  {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5em;
    display: flex;
    background-color: @red;
  }
  .maha-portal .reframe-stack {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    overflow: hidden;
  }
  .maha-portal-body  {
    position: absolute;
    top: 3.5em;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    overflow: hidden;
  }
}
@media (min-width: 769px) {
  .maha-portal-ribbon  {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3.5em;
    display: flex;
    flex-direction: column;
    background-color: lighten(@black, 20);
  }
  .maha-portal > .reframe-stack,
  .maha-portal-body {
    position: absolute;
    top: 0;
    left: 3.5em;
    right: 0;
    bottom: 0;
    display: flex;
    overflow: hidden;
  }
}
