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

.container {
  @include boxSizing;

  // Add Header border height to header height
  height: calc(100vh - #{$header-height});
  display: grid;
  grid-template-rows: min-content 1fr;
  grid-template-columns: 1fr auto;
  overflow: hidden;

  background-color: var(--details-background-color, $details-background-color);

  // Place PageHeader at the top
  .header {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
  }

  .actionsPanel {
    overflow: auto;
  }

  .actionsPanel {
    grid-row: 2 / 3;
    grid-column: 2 / 3;

    padding-top: 1px;

    overflow: auto;
  }

  &.hasError {
    grid-template-rows: min-content min-content 1fr;

    .actionsPanel {
      grid-row: 3 / 4;
      grid-column: 2 / 3;
    }
  }
}
