@use '../../scss/base/variables' as var;

.pageHeaderContainer {
  border: 1px solid var(--medium-purple);
  background: var(--faint-gray);
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
}

.flexCommon {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mainSection {
  @extend .flexCommon;
  justify-content: space-between;
  padding: 16px;
  border-radius: 4px;
  &.hasFilter {
    border-radius: 4px 4px 0 0;
  }
}

.leftSection {
  @extend .flexCommon;
  .headerContainer {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .headerAndTooltipContainer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-14);
  }
  .headerValue {
    font-size: var(--font-size-22);
  }
  .headerValueSkeleton {
    margin-top: 8px;
  }
}

.rightSection {
  @extend .flexCommon;
  @media only screen and (max-width: var.$breakpoint-xs-max) {
    width: 100%;
  }
}

.divider {
  background-color: var(--medium-purple);
  display: none;
  &.horizontal {
    display: block;
    width: 100%;
    height: 1px;
  }
  @media only screen and (min-width: var.$breakpoint-sm) {
    display: block;
    width: 1px;
    // Height of the right section content
    height: 24px;
    &.large {
      // Height of the left section content when the Header is available
      height: 48px;
    }
  }
}
