#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;

  &.new-first-run-instructions {
    padding: 40px 100px;
  }

  a {
    cursor: pointer;
  }

  p {
    text-align: center;
  }

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

    span {
      flex-grow: 1;
      padding-right: 22px;
    }

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

  .step {
    display: flex;
    font-weight: 400;
    font-size: 14px;
    margin: 20px 0 10px;
    line-height: 18px;

    .help-text {
      margin-left: auto;
    }
  }

  .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;
  }

  .center {
    text-align: center;
  }

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

  .subtitle {
    color: #666;
    font-size: 13px;
    text-align: left;
  }

  .panel-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;

    .panel {
      border: 1px solid #E5E5E5;
      border-radius: 6px;
      display: flex;
      font-size: 13px;
      padding: 12px;

      p {
        margin-bottom: 0;
        text-align: left;
      }

      .panel-icon {
        color: $brand-primary;
        font-size: 18px;
        padding-right: 12px;

        &.panel-icon-small {
          font-size: 16px;
        }
      }
    }
  }
}

.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 {
  margin: 25px auto;
  max-width: 500px;
  text-align: left;

  .btn {
    margin-top: 0 !important;
  }

  .btn-back {
    padding: 0;
  }

  .title-wrapper {
    display: flex;
    margin-bottom: 10px;
    margin-top: 5px;

    h4 {
      font-family: $font-title;
      font-size: 22px;
    }

    .close {
      margin-bottom: 10px;
      margin-left: auto;
    }
  }

  form {
    overflow: visible;
  }

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

    &:hover {
      color: #666;
    }
  }

  .label-title {
    overflow: auto;
  }

  .privacy-selector {
    color: #999;
    margin-bottom: 10px;
  }

  .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;
  }

  .help-block-inline {
    display: inline;
  }

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

  .btn-action {
    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;
  }


  .input-link {
    margin-top: 5px;
  }

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

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

  .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,
.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 {
  align-items: center;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 25px 15px 20px;

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

  .dashboard-banner-tr {
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.25);
    flex-basis: 250px;
    min-width: 200px;

    .dashboard-banner-tr-title {
      background: #26282e;
      border-top-left-radius: 5px;
      border-top-right-radius: 5px;
      color: #fff;
      font-family: $font-title;
      font-size: 13px;
      padding: 6px 10px 2px;
      text-align: left;
    }

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

      i {
        padding-right: 8px;
      }

      &:last-of-type {
        border-bottom: none;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
      }

      .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: 55px;
        }

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

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

        i {
          margin-top: 3px;
        }
      }

      &.pass {
        border-left: 5px solid #1CB77E;

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

      &.fail {
        border-left: 5px solid #ec6573;

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

  .dashboard-banner-dashboard {
    background: #F7F7Fa;
    border-radius: 5px;
    box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.25);
    flex-basis: 250px;
    min-width: 200px;

    .dashboard-banner-dashboard-title {
      background: #fff;
      border-top-left-radius: 5px;
      border-top-right-radius: 5px;
      box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
      font-family: $font-title;
      font-size: 13px;
      padding: 6px 10px 2px;
      text-align: left;
    }

    .dashboard-banner-dashboard-content {
      height: 120px;
      padding: 8px 0 0 8px;

      .dashboard-banner-graph {
        background: #fff;
        border-bottom-right-radius: 5px;
        border-top-left-radius: 2px;
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 6px 0 0 12px;

        .graph-title {
          height: 8px;
          width: 70px;
        }

        .graph-footer {
          height: 5px;
          width: 25px;
        }

        .graph-bars {
          display: flex;
          padding: 5px 0;

          .graph-bar {
            display: flex;
            flex-direction: column;
            height: 70px;
            justify-content: flex-end;
            padding-right: 10px;
            width: 100%;

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

            .graph-bar-section {
              &:nth-child(1) {
                background: #E0E0E0;
              }

              &:nth-child(2) {
                background: #ec6573;
              }

              &:nth-child(3) {
                background: #1CB77E;
              }
            }

            &:nth-child(1) {
              .graph-bar-section {
                &:nth-child(1) {
                  height: 10px;
                }

                &:nth-child(2) {
                  height: 8px;
                }

                &:nth-child(3) {
                  height: 20px;
                }
              }
            }

            &:nth-child(2) {
              .graph-bar-section {
                &:nth-child(1) {
                  height: 16px;
                }

                &:nth-child(2) {
                  height: 6px;
                }

                &:nth-child(3) {
                  height: 32px;
                }
              }
            }

            &:nth-child(3) {
              .graph-bar-section {
                &:nth-child(1) {
                  height: 12px;
                }

                &:nth-child(2) {
                  height: 12px;
                }

                &:nth-child(3) {
                  height: 46px;
                }
              }
            }

            &:nth-child(4) {
              .graph-bar-section {
                &:nth-child(1) {
                  height: 14px;
                }

                &:nth-child(2) {
                  height: 6px;
                }

                &:nth-child(3) {
                  height: 38px;
                }
              }
            }
          }
        }
      }
    }
  }

  .dashboard-banner-connectors {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-basis: 120px;
    flex-shrink: 4;
    min-width: 20px;

    .connector-row {
      display: flex;
      padding: 10px 0;
      width: 120px;

      .connector-bar {
        border-radius: 10px;
        height: 5px;
        margin-right: 10px;

        &:first-of-type {
          border-bottom-left-radius: 0;
          border-top-left-radius: 0;
        }

        &:last-of-type {
          border-bottom-right-radius: 0;
          border-top-right-radius: 0;
          margin-right: 0;
        }
      }

      &:nth-child(1) {
        .connector-bar {
          &:nth-child(1) {
            background: #F5A327;
            width: 35px;
          }

          &:nth-child(2) {
            background: #1CB77E;
            border-bottom-right-radius: 10px;
            border-top-right-radius: 10px;
            margin-right: 5px;
            width: 100px;
          }
        }
      }

      &:nth-child(2) {
        .connector-bar {
          &:nth-child(1) {
            background: #BCBDC4;
            width: 10px;
          }

          &:nth-child(2) {
            background: #1CB77E;
            width: 80px;
          }

          &:nth-child(3) {
            background: #ec6573;
            width: 30px;
          }

          &:nth-child(4) {
            background: #BCBDC4;
            width: 10px;
          }
        }
      }

      &:nth-child(3) {
        .connector-bar {
          &:nth-child(1) {
            background: #ec6573;
            width: 35px;
          }

          &:nth-child(2) {
            background: #F5A327;
            width: 25px;
          }

          &:nth-child(3) {
            background: #1CB77E;
            width: 70px;
          }
        }
      }
    }
  }
}

.what-is-dashboard {
  background: #f8f8f8;
  flex-grow: 2;
  margin-top: 20px;
  padding: 8px 50px 10px;
  text-align: left;

  .columns {
    align-items: center;
    justify-content: space-between;
    display: flex;

    .column {
      align-items: center;
      display: flex;
      width: 30%;

      svg {
        color: $brand-primary;
        flex-shrink: 0;
        font-size: 54px;
      }

      span {
        font-family: $font-title;
        font-size: 15px;
        margin-left: 15px;
      }
    }
  }

  @media (max-width: 800px) {
    padding-left: 20px;
    padding-right: 20px;

    .columns .column svg {
      font-size: 42px;
    }
  }

  @media (max-width: 620px) {
    padding-left: 40px;
    padding-right: 40px;

    .columns {
      flex-direction: column;

      .column {
        padding-bottom: 15px;
        width: 85%;

        &:last-of-type {
          padding-bottom: 0;
        }
      }
    }
  }
}
