@import '../../styles/mixins.scss';

.aca-page-layout {
  @include flex-column;

  .aca-page-layout-header {
    display: flex;
    align-items: center;
    flex: 0 0 65px;
    flex-basis: 48px;
    background: #fafafa;
    border-bottom: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.07));
    padding: 0 24px;
  }

  .aca-page-layout-content {
    @include flex-row;
  }

  .aca-page-layout-error {
    @include flex-row;
  }

  .main-content {
    @include flex-column;
  }

  .scrollable {
    overflow: auto !important;

    .main-content {
      overflow: auto !important;
    }
  }

  .sidebar {
    display: block;
    height: 100%;
    overflow-y: scroll;
    max-width: 350px;
    width: 350px;
  }
}

[dir='rtl'] .aca-page-layout {
  .main-content {
    border-left: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.07));
  }
}

[dir='ltr'] .aca-page-layout {
  .main-content {
    border-right: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.07));
  }
}
