#runs {
  h5 {
    margin-top: 20px;
    overflow: hidden;
    line-height: 19px;
    padding: 0 20px;
  }
}

.empty-no-api-server {
  em {
    color: #333;
    font-style: normal;
    font-family: $font-mono;
  }

  pre {
    margin: 1em 0;
  }
}

.first-run-instructions {
  padding: 40px 130px;

  a {
    cursor: pointer;
  }

  p {
    text-align: center;
  }

  h5 {
    overflow: auto;
    margin-top: 25px;
    line-height: 18px;
    font-weight: normal;

    a {
      font-size: 13px;
      font-weight: normal;
    }
  }

  .alert {
    border-radius: 3px;
    border: 1px solid #eee;
    background-color: #f5f5f5;
    color: #777;
    margin-bottom: 0;

    ul {
      padding-left: 0;
      margin-bottom: 0;
      margin-left: 10px;

      li {
        margin-left: 15px;
      }
    }

  }

  hr {
    clear: both;
    // opacity: 0.5;
    margin-top: 25px;
    margin-bottom: 25px;
  }
  h4, .center {
    text-align: center;
  }

  pre {
    clear: both;
    border: 0;
    background-color: #252831;
    border-radius: 3px;
    color: #eee;
  }
}

.runs {
  display: flex;
  flex-direction: column;
  position: fixed;
  bottom: 18px;
  top: 77px;
  background-color: white;
  clear: both;
  border: 1px solid #eee;
  border-top: none;
  margin-bottom: 0;
  padding-left: 0;
  width: 100%;

  header {
    align-items: center;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-shrink: 0;
    font-size: 0.8em;
    justify-content: space-between;
    padding-left: 0.8em;
    line-height: 40px;

    h5 {
      float: left;
      margin-bottom: 0;
      margin-top: 0;
    }

    .last-updated {
      color: #8897a3;
      font-size: 12px;
      margin-left: 1em;
      font-weight: normal;
    }

    .see-all-runs:active {
      box-shadow: none;
    }

    button {
      vertical-align: initial;

      &[disabled]:hover,
      &[disabled]:focus {
        color: #777;
      }
    }
  }
}

.runs-screenshots {
  overflow: auto;
  width: 500px;
  margin: 15px auto;

  &>img {
    float: left;
    margin-right: 25px;
    border: 1px solid #cecece;

    &:last-of-type {
      margin-right: 0;
    }
  }
}

.runs-container {
  margin-bottom: 0;
  @include list-columns(0%, 10%, 37%, 15%, 10%, 14%, 7%, 7%);

  .status-data {
    width: 10%;

    padding-right: 0;
    padding-left: 14px;
    font-weight: 500;
    color: #666;

    &>i {
      min-width: 12px;
    }
  }

  .browser-icon {
    width: 15px;
    height: 15px;
    position: relative;
    top: -1px;

    &.fa-globe {
      top: 0;
    }
  }

  .user-avatar {
    position: relative;
    margin-right: 3px;
    top: 1px;
  }

  &>li {
    overflow: auto;
    clear: both;
    border-bottom: 1px solid #eeeeee;
    vertical-align: top;
    position: relative;
    display: inline-block;
    width: 100%;
    font-size: 12.5px;
    color: #738493;
    min-height: 1px;

    &:hover {
      background-color: #f5f8fc;
      cursor: pointer;
      color: #45515b;
      box-shadow: 0 1px 2px 0 rgba(0,0,0,.06);
    }

    &>.row-column-wrapper>div {
      padding: 35px 10px;
      min-height: 1px;

      &.td-top-padding {
        padding-top: 20px;
        padding-bottom: 20px;
      }

      &.td-env-padding {
        padding: 25px 7px 20px;

        .env-msg {
          margin-top: 5px;
        }
      }
    }
    .os-block {
      padding-right: 0;
    }

    .result {
      font-weight: 500;
    }

    .passing-data {
      color: #1CB77E;
    }

    .failure-data {
      color: #ec6573;
    }

    &>.row-column-wrapper:first-child {
      border-left: 5px solid #eee;
      min-height: 62px;
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;

      &.errored {
        border-left-color: #F5A327;
      }

      &.failed {
        border-left-color: #ec6573;
      }

      &.noTests {
        border-left-color: #F5A327;
      }

      &.passed {
        border-left-color: #1CB77E;
      }

      &.running {
        border-left-color: #428BCA;
      }

      &.overLimit {
        border-left-color: #F5A327;
      }

      &.timedOut {
        border-left-color: #F5A327;
      }

      &.null {
        border-left-color: #bbb;
      }

      &>div {
        padding: 0
      }
    }

    &>.row-column-wrapper:nth-child(2)>div {
      padding-right: 0;
      padding-left: 14px;
      font-weight: 500;
      color: #666;

      &>i {
        min-width: 12px;
      }
    }

  }

  .msg {
    font-weight: 300;
    margin-top: 7px;

    + img {
      float: left;
      padding-left: 3px;
    }

    &.italic {
      color: #bbbfc1;
      margin-top: 15px;
    }

    .commit-msg {
      overflow: auto;
    }
  }

  .user {
    font-weight: 600;
    margin-left: 3px;
  }

  .user-avatar {
    margin-right: 5px;
    position: relative;
    top: 0;
    left: 1px;
  }

  .fa-user {
    color: #bbb;
  }
}

.user-avatar {
  border-radius: 100px;
}

.setup-project-modal {
  form {
    overflow: visible;
  }

  .loader {
    position: relative;
    min-height: 181px;
  }

  a>i {
    color: #999;
    cursor: pointer;

    &:hover {
      color: #666;
    }
  }

  .label-title {
    overflow: auto;
  }

  .radio label {
    padding-left: 21px;
    overflow: auto;

    input[type='radio'] {
      margin-top: 2px;
    }
  }

  .owner-parts {
    clear: both;
  }

  .form-horizontal {
    background: none;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .help-block {
    font-size: 12px;
    color: #999;
    margin-bottom: 0;
    margin-top: 3px;
  }

  small.help-block {
    font-size: 12px;
  }

  hr {
    border-color: #dadada !important;
  }

  .manage-orgs-btn {
    padding: 0;
    font-size: 12px;
    line-height: 20px;
    margin-left: 10px;
  }

  .well {
    text-align: center;
    background-color: #f8f8f8;
  }

  .well.empty-select-orgs {
    margin-top: 10px;

    a.btn.btn-link {
      padding: 0;
    }

    p:last-of-type {
      margin-bottom: 0;
    }
  }

  .user-avatar {
    position: relative;
    top: -2px;
    margin-right: 5px;
  }

  .control-label {
    font-weight: normal;
  }

  select.form-control {
    padding: 3px 6px;
    height: 30px;
    margin-bottom: 0;
  }

  input[type='text'].form-control {
    padding: 3px 6px;
    height: 38px;
  }

  .privacy-radio {
    font-size: 13px;
  }


  .validation-error {
    display: none;
    clear: both;
    margin-left: 25%;
    padding-top: 4px;
    padding-left: 15px;
  }

  .has-error .validation-error {
    display: block;
  }

  .form-group.has-error {
    margin-bottom: 0;
  }

  .actions.form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: row-reverse;

    button {
      position: relative;
    }
  }

  .text-danger {
    margin-bottom: 0;
  }
  pre.alert-danger {
    margin: 1em 0;
    padding: 5px;
    max-height: 200px;
    overflow: auto;
    text-align: left;
    border-radius: 5px;
  }
}

.request-access {
  padding-left: 1em;
  padding-right: 1em;
  margin-top: 120px;

  button {
    position: relative;

    > i {
      display: none;
      position: absolute;
      left: 50%;
      margin-top: 2px;
      margin-left: -5px;
    }
  }

  &.is-submitting button {
    span {
      visibility: hidden;
    }

    > i {
      display: inline-block;
    }
  }
}

.runs-list-error {
  margin-top: 100px
}

.setup-project-modal,
.request-access,
.runs-list-error {
  .alert-danger {
    margin: 0 2em 1em;
    max-height: 200px;
    overflow: auto;
    text-align: left;
  }
}

.select-orgs {
  select {
    float: left;
    width: 205px;
    margin-top: 10px;
  }
}

.dashboard-banner {
  background-color: #311C56;
  box-shadow: 0 0 3px 0 rgba(0,0,0,0.20);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 185px;
  position: relative;
  overflow: hidden;
  z-index: 0;

  .left-vector {
    z-index: 900;
    position: absolute;
    width: 250px;
    height: 225px;
    left: -100px;
    bottom: -140px;
    border-radius: 100px;

    background-color: #3d2665;
    transform: matrix(-0.97, -0.08, 0.24, -1, 0, 0);
  }

  .right-vector {
    z-index: 900;
    position: absolute;
    width: 250px;
    height: 225px;
    right: -65px;
    top: -100px;
    border-radius: 100px;

    background-color: #3d2665;
    transform: matrix(0.42, 0.82, -1.09, 0.18, 0, 0);
  }
}

.dashboard-banner-db {
  z-index: 1000;
  background-color: #fff;
  width: 600px;
  margin: 0 auto;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
}

.dashboard-banner-test {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  color: #888B91;
  height: 50px;
  align-items: center;
  border-bottom: 1px solid #f4f5f7;
  font-size: 11px;

  i {
    padding-right: 8px;
  }

  &:first-of-type {
    border-top-left-radius: 3px;
  }

  .test-title-top {
    margin-bottom: 4px;
    display: flex;
  }

  .test-title-bottom {
    display: flex;
    margin-left: 20px;

    &>div:nth-child(1) {
      width: 45px;
    }

    &>div:nth-child(2) {
      width: 60px;
    }

    &>div:nth-child(3) {
      width: 20px;
    }
  }

  .fake-text {
    background-color: #E0E0E0;
    height: 6px;
    border-radius: 1px;
    margin-right: 6px;
    margin-top: 3px;
  }

  .dashboard-banner-test-title {
    font-weight: bold;
    display: flex;
    flex-direction: column;
    padding-right: 100px;

    i {
      margin-top: 3px;
    }
  }

  &.pass {
    border-left: 5px solid #48996b;

    .dashboard-banner-test-title {
      color: #48996b;
    }
  }

  &.fail {
    border-left: 4px solid #DB7177;

    .dashboard-banner-test-title {
      color: #DB7177;
    }
  }
}

.dashboard-banner-test-mid, .dashboard-banner-test-end {
  display: flex;
  flex-direction: row;
}

.dashboard-banner-test-mid {
  &>div:nth-of-type(1) {
    width: 70px;
  }
}

.dashboard-banner-test-end {
  &>div:nth-of-type(1) {
    width: 60px;
  }
}