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

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

  .aca-content-header {
    background: var(--theme-page-layout-header-background-color);
    height: 96px;
    padding: 0 24px;
    display: flex;
    align-items: center;

    &-button {
      margin-top: -1px;
    }
  }

  .aca-page-layout-header {
    display: flex;
    align-items: center;
    flex: auto;
    width: 100%;

    .adf-breadcrumb-item {
      font-size: 20px;
      font-weight: 400;
      letter-spacing: 0.15px;
    }

    .aca-toolbar-action {
      button {
        border-radius: 6px;
      }
    }
  }

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

    border-top: 1px solid var(--theme-metadata-property-panel-border-color);
  }

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

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

  .aca-scrollable {
    overflow: auto;

    .aca-main-content {
      overflow: auto;
    }
  }
}

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

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