//** Admin | Header

.admin__header {
  @include media-breakpoint-up(sm) {
    background-color: var(--background);
    position: sticky;
    top: $admin-toolbar-height;
    z-index: 2;
  }

  @include media-breakpoint-up(md) {
    top: $admin-toolbar-height-wide;
  }
  //resets sticky as we don't use it above this breakpoint for now
  @include media-breakpoint-up(lg) {
    position: static;
    top: 0;
  }

  &--title {
    font-weight: $font-weight-semibold;
    font-size: 1.825rem;
    font-size: $h1-font-size;
    color: var(--admin-sidebar);
    margin-top: 0.7rem;
    position: relative;
    // max width set for menu button breathing room
    max-width: 80%;

    @include media-breakpoint-up(sm) {
      margin-top: 0.7rem;
      // max width set for menu button breathing room
      max-width: 85%;
    }

    @include media-breakpoint-up(md) {
      // max width set for menu button breathing room
      max-width: 88%;
    }

    @include media-breakpoint-up(lg) {
      max-width: none;
    }

    i {
      color: var(--boltblue);
      font-size: 1.5rem;
      top: -3px;
      position: relative;
    }

    &__prefix {
      font-weight: $font-weight-normal;
      font-size: 1.1rem;
      display: block;
      line-height: 2rem;
    }
  }

  &--topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: $spacer $spacer*0.625 0; //do not just change this as it's tied to the main grid and other paddings/gutters
    position: relative;

    @include media-breakpoint-up(sm) {
      padding: $spacer*1 $spacer*1 0; //do not just change this as it's tied to the main grid and other paddings/gutters
    }

    @include media-breakpoint-up(md) {
      padding: $spacer*1.25 $spacer*1.25 0 $spacer*1.25; //do not just change this as it's tied to the main grid and other paddings/gutters
    }

    @include media-breakpoint-up(xl) {
      padding: $spacer*1.25 $spacer*1.25 0 $spacer*2; //do not just change this as it's tied to the main grid and other paddings/gutters
    }

    @include media-breakpoint-up(wd) {
      padding: $spacer*1.25 $spacer*2 0 $spacer*3; //do not just change this as it's tied to the main grid and other paddings/gutters
    }

    @include media-breakpoint-up(xw) {
      padding: $spacer*1.25 $spacer*3 0 $spacer*4; //do not just change this as it's tied to the main grid and other paddings/gutters
    }
  }

  &--togglebar {
    padding: $spacer;
    position: relative;
  }
}

.admin-sidebar-toggler {
  position: absolute;
  z-index: 4;
  width: auto;
  top: 1.25rem;
  right: 0.625rem;
  border: 1px solid var(--primary);
  padding: $spacer*0.4 $spacer*1.1;
  color: $white;
  background-color: var(--primary);

  @include media-breakpoint-up(sm) {
    right: $spacer * 1;
  }

  @include media-breakpoint-up(md) {
    right: $spacer * 1.25;
  }

  @include media-breakpoint-up(lg) {
    display: none;
  }

  &:hover,
  &:active,
  &:focus {
    background-color: var(--background);
  }
}
