// Header. Includes breadcrumbs of nav buttons.

.euiHeader {
  @include euiBottomShadowSmall;

  height: $euiHeaderHeight + 1; // Add one for the border
  position: relative;
  z-index: $euiZHeader; // ensure the shadow shows above content
  display: flex;
  justify-content: space-between;
  background: $euiHeaderBackgroundColor;
  border-bottom: 1px solid $euiHeaderBorderColor;

  &--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }
}

.euiHeader--fixed + .euiHeader--fixed {
  top: $euiHeaderHeightCompensation;
}

.euiHeader--dark {
  @if (lightness($euiTextColor) < 50) {
    @include euiHeaderDarkTheme($backgroundColor: shade($euiColorDarkestShade, 28%));
  } @else {
    // Makes forced "dark" theme darker than the typical dark them to separate them visually
    @include euiHeaderDarkTheme($backgroundColor: shade($euiColorLightestShade, 50%));
  }
}
