/*---------------------------------------------------------------------------------------------
 * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
 * See LICENSE.md in the project root for license terms and full copyright notice.
 *--------------------------------------------------------------------------------------------*/

.nz-widget-panelWidget {
  $border-width: 1px;
  border: 0px solid var(--iui-color-border);

  &.nz-border-top {
    border-top-width: $border-width;
  }

  &.nz-border-bottom {
    border-bottom-width: $border-width;
  }

  &.nz-border-left {
    border-left-width: $border-width;
  }

  &.nz-border-right {
    border-right-width: $border-width;
  }

  &.nz-widget-widget,
  &.nz-init,
  &.nz-transition {
    flex-grow: 1;
    flex-shrink: 1;
  }

  &.nz-horizontal {
    &.nz-transition {
      transition: flex-basis 0.25s ease-out;
    }
  }

  &:not(.nz-horizontal) {
    &.nz-transition {
      transition: flex-basis 0.25s ease-out;
    }
  }

  &.nz-fit {
    flex: 0 1 auto;
  }

  &.nz-fill {
    flex-grow: 1;
    flex-shrink: 0;
    flex-basis: 0px;
    min-height: 0;
  }

  &:not(.nz-minimized) {
    > .nz-content {
      min-height: 0;
      min-width: 0;
    }
  }
}
