/* $header
 ------------------------------------------*/
md-toolbar {
  .toolbar-avatar {
    width: 40px;
    height: 40px;
    line-height: 24px;
  }
  .toolbar-avatar img{
    width: 40px;
    border-radius: 50%;
  }
  .notification-label {
    position: absolute;
    top: 0;
    left: 50%;
    font-size: 12px;
    font-weight: 700;
    line-height: 13px;
    border-radius: 50%;
    width: 13px;
    height: 13px;
    background-color: md-color($warn);
    border: 4px solid md-color($warn);
    color: white;
    text-align: center;
  }
  &.main-header {
    padding: 0 8px;
    position: relative;
    box-shadow: 0 1px 8px rgba(0,0,0,.3);
    z-index: 1;
    .branding {
      display: -webkit-box;
      display: -moz-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin: auto 0;
      line-height: 50px;
      padding: 0 64px 0 16px;
    }
    .logo {
      display: inline;
      background-image: url(/assets/images/logo.png);
      width: 130px;
      height: 38px;
      -webkit-background-size: 130px 38px;
      background-size: 130px 38px;
      margin: auto;
    }
    .search-bar {
      .search-form {
        background: rgba(255,255,255,1);
        position: relative;
        border-radius: $border-radius-large;
        margin-right: $gutter;
        display: block;
        max-width: 800px;
        input {
          font-size: 1rem;
          padding: .95rem .75rem;
          z-index: 2;
          cursor: text;
          text-indent: 30px;
          border: none;
          background: transparent;
          width: 100%;
          outline: 0;
        }
        .material-icons {
          position: absolute;
          top: 50%;
          left: 10px;
          margin-top: -12px;
          color: rgba(md-color($foreground, base), 0.87);
        }
      }
    }
  }
}

// Specific height for mobile devices in portrait mode.
@media ($md-xsmall) and (orientation: portrait) {
  md-toolbar {
    &.main-header {
      .branding {
        padding: 0 16px 0 16px;
      }
      .logo {
        width: 64px;
        height: 17px;
        -webkit-background-size: 64px 17px;
        background-size: 64px 17px;
      }
    }
  }
}

// Specific height for mobile devices in landscape mode.
@media ($md-small) and (orientation: landscape) {
  md-toolbar {
    &.main-header {
      .search-bar {
        .search-form {
          input {
            padding: .65rem .75rem;
          }
        }
      }
    }
  }
}

@media (max-width: 599px) {

}

[dir="rtl"] {
  &.main-header {
    .branding {
      padding: 0 16px 0 64px;
    }
    .search-bar {
      .search-form {
        .material-icons {
          left: auto;
          right: 10px;
        }
      }
    }
  }
}


