#application {
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.mt-window {
  height: 100%;
  .display(flex);
  .flex-grow(1);
  .flex-direction(column);

  &__inner {
    height: 100%;
    .display(flex);
    .flex-shrink(0);
    .flex-grow(1);
  }
}

.mt-sidebar {
  .scrollbar();
  .display(flex);
  .flex-shrink(0);
  .flex-direction(column);
  width: 220px;
  background: @sidebar-color;

  .h2 {
    font-style: normal;
    color: @sidebar-heading-color;
    font-size: 11px;
    margin: 0 0 5px;
    letter-spacing: 1px;
  }

  nav {
    padding: 10px;

    a {
      display: block;
      color: @sidebar-link-color;
      font-size: @font-size-small;
      width: 200px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      height: 24px;
      line-height: 24px;

      &.active {
        color: @sidebar-active-link-color;
      }
    }
  }

  &--left {
    border-right: 1px solid @sidebar-border-color;
  }

  &--right {
    border-left: 1px solid @sidebar-border-color;
  }
}

.mt-stage {
  .display(flex);
  .flex-grow(1);
  .flex-shrink(0);
  .flex-direction(column);
  height: 100%;
  width: 1;

  &__content {
    .scrollbar();
    .display(flex);
    .flex-grow(1);
    .flex-shrink(0);
    height: 100%;
    overflow-y: auto;
    min-height: 0px;
    overflow-x: hidden;

    .has-header & {
      .calc(height, ~'100% - 44px');
    }
  }

  .mt-header {
    background-color: @white !important;
  }
}

.mt-header {
  .display(flex);
  .flex-grow(0);
  .flex-shrink(0);
  height: 44px;
  color: @blue-dark;
  padding: 13px 0 0 10px;
  font-size: 14px;
  font-weight: bold;
  background-color: @header-color !important;

  .h1 {
    color: @blue-dark;
    font-size: 14px;
  }
}

.mt-submenu {
  .scrollbar();
  .display(flex);
  .flex(0 0 auto);
  .flex-direction(column);
  width: 190px;
  overflow-y: auto;
  min-height: 0px;
  overflow-x: hidden;

  .h2 {
    text-transform: uppercase;
    color: @submenu-heading-color;
    font-size: 11px;
    margin: 0 0 5px;
    letter-spacing: 1px;
  }

  nav {
    padding: 10px;

    a {
      display: block;
      color: @submenu-link-color;
      font-size: @font-size-small;
      width: 180px;
      height: 28px;
      line-height: 28px;
      padding: 0 5px;
      position: relative;
      left: -5px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      .border-radius(3px);

      &:hover {
        background-color: @submenu-hover-background;
      }

      &.active,
      &.active:hover {
        background-color: @submenu-active-background;
        color: @submenu-active-link-color;
      }
    }
  }

  &--left {
    border-right: 1px solid @submenu-border-color;
  }

  &--right {
    border-left: 1px solid @submenu-border-color;
  }
}

.mt-content {
  .scrollbar();
  .flex(1 1 auto);
  overflow-y: auto;
  min-height: 0px;
  overflow-x: hidden;
}