/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
@import "~@bentley/ui-core/lib/ui-core/z-index";
@import "~@bentley/ui-core/lib/ui-core/style/breakpoints";
@import "~@bentley/ui-core/lib/ui-core/style/typography";
@import "../prefix";
@import "../safearea";
@import "../scrollbar";
@import "variables";

.nz-backstage-backstage {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  top: 0;
  width: $nz-backstage-width;
  height: 100%;
  font-size: $nz-backstage-item-font-size;
  color: $nz-backstage-item-color;
  background-color: $nz-backstage-background;
  transform: translateX(-100%);
  box-sizing: border-box;

  @include uicore-z-index(backstage);
  @include nz-transition(transform .25s ease);

  &.nz-open {
    @include nz-transform(translateX(0%));
  }

  @include for-tablet-landscape-down {
    font-size: $uicore-font-size;
  }
  @include for-phone-only {
    font-size: $uicore-font-size-small;
  }

  > ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: auto;

    @include nz-scrollbar;
  }

  > .nz-header {
    border-bottom: $nz-backstage-user-profile-divider-height solid $nz-backstage-divider-color;
  }

  > .nz-footer {
    margin-top: auto;
  }

  &.nz-safe-area-top {
    @include nz-safe-area-top;
  }

  &.nz-safe-area-bottom {
    @include nz-safe-area-bottom;
  }
}

.nz-backstage-backstage_overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: transparent;
  @include uicore-z-index(backstage);
  @include nz-transition(.25s ease);

  &.nz-open {
    visibility: visible;
    opacity: 1;
  }

  &.nz-overlay {
    background-color: $nz-backstage-overlay-background;
  }
}
