$brand-themes: _pick($ui-colors, (consumer, dark, dark-blue, normal, dev));

.app-header {
  display: flex;
  flex-direction: row;
  width: 100%;
  top: 0;
  z-index: $zIndex-10;
  min-height: 3.75em;

  &__section {
    display: flex;
    align-items: center;

    &--left {
      justify-content: flex-start;
      margin-left: 0.75em;
    }

    &--center {
      flex: 1 1 0%;
    }

    &--right {
      display: flex;
      justify-content: flex-end;
      margin-left: auto;
    }
  }

  @each $theme, $color in $nav-themes {
    &--#{$theme} {
      background: $color;
      color: $white;

      @if (lightness($color) > 60) {
        color: darken($color, 25%);
        box-shadow: 0 1px 0 darken($color, 5%);
      }
    }
  }

  &--has-fixed-sidebar--true {
    width: calc(100% - 12em);
    margin-left: 12em;
  }

  .nav-bar {
    box-shadow: none;

    &__link {
      padding: 1.5em 2em;
    }
  }

  .dropdown-menu__btn {
    align-self: stretch;
    border: none;
  }

  &__app-name {
    padding: 0 1em;
  }

  .header-brand-block {
    align-items: center;
    align-self: stretch;
    display: flex;
    justify-content: center;
    width: 3.75em;

    @each $theme, $color in $brand-themes {
      &--#{$theme} {
        background: $color;
      }
    }

    svg {
      padding: 0.55em;
    }
  }
}
