//
// Page Header
// --------------------------------------------------


// Common styles
.page-header-bg {
  margin-bottom: @line-height-computed;
}

.page-header {
  margin: 0px;
  padding: @line-height-computed * 2 0px;

  h1 {
    margin: 0px;

    word-wrap: break-word;
  }

  .btn-aligned {
    float: right;
    margin-left: 8px;

    &.pull-left {
      margin-left: 0px;
      margin-right: 8px;
    }
  }

  @media screen and (min-width: @screen-md-min) {
    .container>.row {
      h1 {
        margin-top: -3px;
      }

      .row {
        margin-top: @padding-small-vertical;
      }
    }
  }
}


// Small displays
@media screen and (max-width: @screen-sm-max) {
  .container {
    h1 {
      font-size: @font-size-large * 1.25;
    }

    .btn-icon {
      .material-icon {
        width: 24px;
        height: 24px;

        margin: -3px 0px;

        font-size: 24px;
        line-height: 24px;
      }
    }
  }
}


// Breadcrumbs
.page-breadcrumbs {
  margin-bottom: @line-height-computed;
}

.page-breadcrumbs .breadcrumb {
  background: none;
  margin: 0px;
  margin-top: @line-height-computed * -1;
  padding: 0px;
  overflow: auto;
}

.page-breadcrumbs .breadcrumb li {
  &, &:before {
    display: block;
    float: left;
  }

  &:before {
    margin-left: 4px;
  }
}


// Small go back button
.go-back-sm {
  margin-top: @line-height-computed * -1;
  margin-bottom: @line-height-computed;

  .material-icon {
    height: @font-size-large;
    width: @font-size-large;

    font-size: @font-size-large;
    line-height: @font-size-large;

    position: relative;
    top: -1px;
  }
}

.page-breadcrumbs .go-back-sm {
  margin-bottom: 0px;
}

// Stats
.header-stats {
  margin-top: @line-height-computed;
  margin-bottom: @line-height-computed * -1;
}

.header-stats .list-inline {
  margin-bottom: 0px;
}

.header-stats .list-inline li {
  margin-bottom: 0px;
  margin-right: 8px;
  overflow: auto;
  vertical-align: top; // fix #834

  .status-icon {
    width: 18px;
    height: 18px;

    margin-right: 4px;

    position: relative;
    bottom: 1px;

    font-size: 18px;
    line-height: 18px;
  }

  &>.material-icon, &>.icon-legend {
    float: left;
  }

  &>.material-icon {
    margin-right: 4px;

    position: relative;
    top: 3px;
  }
}

@media screen and (max-width: @screen-sm-max) {
  .header-stats .list-inline {
    font-size: @font-size-small;

    li>.material-icon {
      top: 2px;
    }
  }
}


// Tabs
.page-header .page-tabs {
  margin-top: @line-height-computed;
  margin-bottom: @line-height-computed * -2;

}
 
.page-header .page-tabs .nav {
  &>li {
    margin: 0px;

    &>a {
      border-radius: 0px;
    }
  }
}

.page-tabs {
  ul {
    display: block;
    overflow-x: auto;

    white-space: nowrap;

    li, a {
      display: inline-block;
      float: none;
    
      white-space: nowrap;

      .material-icon {
        margin-right: @padding-base-horizontal / 2;
      }
    }
  }

  @media screen and (max-width: @screen-xs-max) {
    .container {
      padding-left: 0px;
      padding-right: 0px;
    }

    li a {
      padding-left: @line-height-computed * 1.33;
      padding-right: @line-height-computed * 1.33;
    }
  }
}


// Insert blank space between tabs and details on smallest displays
@media screen and (max-width: @screen-xs-max) {
  .header-stats + .page-tabs {
    margin-top: @line-height-computed * 1.5;
  }
}


// Title edit form
.title-edit-form {
  margin-bottom: @line-height-computed / 2 + 2px;
}
