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

.nz-footer-messageCenter-dialog {
  width: 16vw;
  min-width: $nz-footer-popup-min-width;
  max-width: $nz-footer-popup-max-width;

  > div:last-child {
    > .nz-tabs {
      min-width: 100%;
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 1fr;
    }

    > .nz-messages {
      max-height: 280px;
      min-height: $nz-message-horizontal-padding;
      overflow: auto;

      @include nz-scrollbar();
    }

    > .nz-gradient {
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 8px;
      padding-right: $nz-scrollbar-width;
      box-sizing: border-box;

      &:after {
        content: "";
        display: block;
        background: linear-gradient(
          hsl(var(--iui-color-background-hsl) / 0),
          hsl(var(--iui-color-background-hsl) / 1)
        );
        width: 100%;
        height: 100%;
      }
    }

    > .nz-message-prompt {
      display: none;
      text-align: center;
      margin: 30px 15px;
      font-style: italic;
      color: var(--iui-color-text-muted);
    }

    & .nz-messages:empty ~ .nz-message-prompt {
      display: block;
    }
  }
}
