/*
 * CloudBeaver - Cloud Database Manager
 * Copyright (C) 2020-2024 DBeaver Corp and others
 *
 * Licensed under the Apache License, Version 2.0.
 * you may not use this file except in compliance with the License.
 */
.body {
  flex: 1;
  box-sizing: content-box;
  display: flex;
  max-height: 100%;
  overflow: auto;
  padding-top: 0px;
  padding-right: 0px;
  flex-shrink: 0;
  padding: 24px;

  &.noBodyPadding {
    padding: 0px;
  }

  padding-top: 0px;
  padding-right: 0px;

  &.noBodyPadding + footer {
    padding-top: 24px;
  }

  &.noBodyPadding .dialogBodyOverflowBox {
    padding-right: 0px;
  }

  &.noOverflow .dialogBodyContent {
    overflow: auto;
  }
}

.dialogBodyOverflow {
  composes: branding-overflow from global;
  position: sticky;
  bottom: 0;
  left: 0;
  flex-shrink: 0;
  width: 100%;
  height: 24px;
  pointer-events: none;
}

.dialogBodyOverflowBox {
  position: relative;
  flex: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: auto;
  word-break: break-word;
  white-space: pre-wrap;
  padding-right: 24px;
}

.dialogBodyContent {
  composes: theme-typography--body1 from global;
  flex: 1;
  letter-spacing: normal;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
