.new-team {
  font-size: 14px;
  margin-top: -6px;
  display: block;
  padding: 3px 9px 4px 7px;
  border-radius: 2px;

  .icon-plus {
    position: relative;
    top: 2px;
    font-size: 18px;
    opacity: .5;
  }
}

.organization-home {
  .sub-header {
    margin-bottom: 30px;

    .pull-right {
      margin-top: -7px;

      a:not(.btn-disabled) {
        color: #fff;
      }

      .btn {
        font-size: 13px;
        margin-left: 5px;
        padding: 5px 14px;
      }
    }
  }

  .box, .issue-list {
    margin-bottom: 25px;
  }

  .nav-header {
    padding: 0 0 10px;
    margin: 0;

    &.with-divider {
      border-top: 1px solid @trim;
      padding-top: 30px;
    }
  }

  .count {
    font-size: 36px;
    color: @gray-dark;
    margin: 10px 0 20px;

    &.rejected {
      color: @red;
    }
  }

  .dashboard-sparkline {
    height: 45px;

    a {
      height: 45px;

      > span {
        left: 2px;
        right: 2px;
        background: @purple-light;

        &.rejected {
          background: @red-light;
        }

        &.blacklisted {
          background: @gray;
        }
      }
    }
  }
}

.organization-home {
  hr {
    margin: 30px 0;
  }
  .activity {
    .box;

    .activity-item {
      margin: 0;
      padding: 10px 15px 10px 60px;
      border-bottom: 1px solid lighten(@trim, 5);
      line-height: 1.4;
      font-size: 15px;

      &:before {
        display: none;
      }

      .activity-item-content {
        display: block;
        padding: 0;
      }

      .activity-item-bubble {
        background: @white-dark;
        margin: 5px 0;
        padding: 6px 12px;
        border: 1px solid @trim;
        border-radius: 3px;
        box-shadow: 0 1px 1px rgba(0,0,0, .04);
        position: relative;
        overflow: hidden;

        a {
          max-width: 100%;
          overflow-x: hidden;
          text-overflow: ellipsis;
        }

        p {
          &:last-child {
            margin-bottom: 0;
          }
        }

        &.clipped {
          max-height: 68px;

          &:after {
            position: absolute;
            content: "";
            display: block;
            bottom: 0;
            right: 0;
            left: 0;
            height: 36px;
            #gradient > .vertical(rgba(255, 255, 255, .15), rgba(255,255,255, 1));
            border-bottom: 6px solid #fff;
            border-radius: 0 0 3px 3px;
            pointer-events: none;
          }
        }
      }

      .avatar {
        position: absolute;
        .square(36px);
        left: 12px;
        top: 12px;

        &.sentry {
          top: 12px;
          text-align: center;
          background: @purple;
          color: #fff;
          line-height: 36px;
          border-radius: 3px;
        }
      }

      .activity-meta {
        color: @gray;
        font-size: 90%;

        a {
          color: @gray;
          &:hover {
            color: @gray-dark;
          }
        }
      }

      .project {
        font-weight: bold;
      }

      time {
        float: none;
        display: inline;
        margin-left: 0;
      }

      &:last-child {
        border-bottom: 0;
      }
    }
  }
}

/**
* Dashboard
* ============================================================================
*/
.organization-dashboard-projects {
  h4 {
    font-size: 16px;
    margin-bottom: 5px;
  }
  h5 {
    font-size: 14px;
    color: @gray-light;
  }

  .sparkline {
    width: 100px;
  }
}

.btn-sidebar-header {
  float: right;
  font-size: 12px;
  color: @gray;
  font-weight: bold;
  line-height: 1em;
}

.org-sidebar {
  .nav-stacked {
    li.active a:after {
      left: -30px;
    }
  }
}

/**
* Team list
* ============================================================================
*/

.team-list {
  list-style: none;
  padding-left: 0;

  .nav-tabs {
    li a {
      padding: 0 0 15px;
    }
  }

  .box-header {
    .actions {
      a {
        font-size: 13px;
        margin-left: 20px;
        font-weight: bold;
        padding-top: 7px;
        display: inline-block;
        color: @gray;

        &:hover {
          color: @gray-dark;
        }
      }

      .icon-plus {
        top: 1px;
        font-size: 16px;
      }

      .icon-settings {
        top: 1px;
      }
    }

    a {
      color: @gray;
      &:hover {
        color: @gray-dark;
      }
    }
  }

  .box-content {
    .clearfix();
    position: relative;

    .project-list-empty {
      margin: 20px 0;
      text-align: center;

      a {
        color: @link-color;

        &:hover {
          color: @link-color-hover;
        }
      }
    }
  }

  .loading {
    display: none;
  }

  .bookmark {
    color: @gray-light;
    margin-right: 6px;
  }

  .isBookmarked .bookmark {
    color: @yellow-orange;
  }
}

/**
* Create team
* ============================================================================
*/

.create-flow {
  .help-block {
    font-size: 14px;
    color: @gray;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .control-group {
    margin-bottom: 20px;
  }

  input[type="text"] {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    margin: 0;
  }

  .actions {
    text-align: right;
    border-top: 2px solid darken(#f1f2f3, 0);
    padding-top: 30px;
    margin-top: 10px;
  }

  .steps {
    .clearfix();
    list-style-type: none;
    padding: 0;
    margin: 30px 0;

    li {
      width: 35%;
      float: left;
      text-align: center;
      font-size: 24px;
      color: lighten(@gray, 35);

      &.active {
        color: @gray;
      }

      &:first-child {
        text-align: left;
      }

      &:last-child {
        text-align: right;
      }
    }
  }
}

/**
* SSO
* ============================================================================
*/

.sso {
  h3 {
    margin: 0 0 20px;
  }

  h4 {
    margin: 0 0 3px;
    line-height: 1.2;
  }

  .simple-list {
    margin-bottom: 0;

    li {
      position: relative;
      border-top: 1px solid @trim;
      padding: 18px 0 0 60px;

      button {
        margin-top: 3px;
      }

      .provider-logo {
        position: absolute;
        left: 0;
        top: 20px;
        .square(48px);
        border-radius: 3px;
      }
    }
  }
}

// Project list
table.project-list {
  border: 0;
  margin-bottom: 0;
  font-size: 16px;

  h5 a {
    color: @gray-darker;

    &:hover {
      color: @gray-darkest;
    }
  }

  tbody tr {
    td {
      border: 0;
      padding: 15px 20px !important;
      height: 55px;
      width: 150px;

      &:first-child {
        width: auto;
      }

      &.project-chart {
        width: 210px;
        .sparkline a {
          height: 20px;
        }
      }
    }
  }
}

/**
* API Keys
* ============================================================================
*/

.api-key-list {
  h5 a {
    color: @gray;

    &:hover {
      color: @gray-dark;
    }
  }
}

.api-key-detail .scopes {
  padding-bottom: 20px;
}


.api-key-detail .scopes,
.control-group .control-list {
  .clearfix();

  label {
    display: block;
    width: 25%;
    padding: 0 20px 0 30px;
    float: left;
    position: relative;

    &.control-label {
      font-size: 14px;
      padding: 0 0 10px;
      margin-bottom: 20px;
      display: block;
      width: 100%;
      float: none;
      border-bottom: 1px solid lighten(@trim, 6);
    }
  }

  .checkbox, .checkbox + .checkbox {
    margin: 0 0 15px;
  }

}

/**
* Member list
* ============================================================================
*/

.member-list {
  .status {
    font-size: 13px;
  }

  .icon-exit {
    font-size: 14px;
    position: relative;
    top: 2px;
    margin-right: -2px;
    margin-left: -2px;
  }
}


/**
* Stats Column
* ============================================================================
*/

.stats-column {
  .stats-link {
    display: block;
    font-size: 85%;
  }
}

.organization-stats {
  height: 150px;
  margin-bottom: 20px;

  .bar-chart figure a {
    height: 150px;

    span {
      &.accepted {
        background: @gray-lightest;
      }

      &.rate-limited {
        background: @red;
        min-height: 0;
      }

      &.black-listed {
        background: @orange-light;
        min-height: 0;
      }
    }

    &:hover span {
      &.accepted {
        background: @gray-light;
      }

      &.rate-limited {
        background: @red-dark;
      }

      &.black-listed {
        background: @orange-dark;
      }
    }
  }
}

/**
 * Onboarding
 * ============================================================================
 */

 .onboarding-wrapper {
   ul {
     li {
       position: relative;
       padding: 15px 20px 15px 75px;
       line-height: 1.2;
       cursor: pointer;
       border-bottom: 1px solid @trim;
       background: #fff;
       box-shadow: 0 1px 2px rgba(0,0,0, .06);
       font-size: 14px;

       h4 {
         font-size: 16px;
         margin-bottom: 5px;
         .culprit {
           font-weight: normal;
         }
       }
       a {
         color: @link-color;

         &:hover {
           color: @link-color-hover;
         }
       }

       p {
         margin: 0;
       }

       .todo-content {
         position: relative;
       }

       &.checked {
         .ob-checkbox {
           border-color: @green;
         }
       }

       &.skipped {
        h4 {
          color: @gray-light;
          text-decoration: line-through;
        }
       }

       &.pending {
         position: relative;

         .pending-bar {
           position: absolute;
           top: 0;
           right: 0;
           left:  0;
           bottom: 0;
           background-size: 30px 30px;
           background-image: linear-gradient(135deg, rgba(0, 0, 0, .03) 25%, transparent 25%,transparent 50%, rgba(0, 0, 0, .03) 50%, rgba(0, 0, 0, .03) 75%,transparent 75%, transparent);
           animation: animate-stripes 3s linear infinite;
          }
       }

       &.blur .todo-content {
         -webkit-filter: ~"blur(3px)";
       }

       &:hover {
         .skip-btn {
           opacity: .85;
           visibility: visible;

           &:hover {
             opacity: 1;
           }
         }
       }
     }
   }

  .ob-checkbox {
    .square(44px);
      background: #fff;
      border: 3px solid @20;
      border-radius: 46px;
      position: absolute;
      top: -5px;
      left: -58px;

    .icon-checkmark {
      position: relative;
      color: @green;
      font-size: 20px;
      left: 10px;
      top: 9px;
    }

    .icon-x {
      position: relative;
      color: @50;
      font-size: 20px;
      left: 9px;
      top: 9px;
    }

    .icon-ellipsis {
      position: relative;
      font-size: 24px;
      color: @50;
      top: 8px;
      left: 7px;
    }
  }

  .skip-btn {
    position: absolute;
    z-index: 100;
    right: 5px;
    top: 2px;
    .transition(opacity .1s);
    opacity: 0;
    visibility: hidden;
    background: #fff;
    color: @70;

    &:active {
      position: absolute;
    }
  }

  .ob-confirmation {
    position: absolute;
    z-index: 100;
    background: rgba(255,255,255, .75);
    left: -15px;
    right: -15px;
    bottom: -10px;
    top: -20px;
    padding: 15px;
    text-align: center;
    font-size: 18px;

    h3 {
      margin-bottom: 3px;
      border: 0;
      padding: 0;
    }
  }

  .btn-see-all {
    display: block;
    text-align: center;
    border: 0;
    border-radius: 0;
    background: @white-dark;
    padding: 10px;
  }
}

@keyframes animate-stripes {
  0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}

.onboarding-progress-bar {
  background: rgba(255,255,255, .15);
  width: 16px;
  height: 150px;
  float: right;
  margin-right: 20px;
  margin-top: 16px;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  z-index: 200;

  .slider {
    background: @green-light;
    padding-right: 0;
    border-radius: inherit;
    box-shadow: 0 2px 1px rgba(0,0,0, .08);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 16px;
  }

  .dropdown-menu {
    display: block;
    width: 375px;
    padding: 0;
    left: 30px;
    top: auto;
    bottom: 0;
    cursor: auto;

    &:before {
      display: none;
    }

    &:after {
      display: none;
    }

    .onboarding-wrapper {
      border: 0;
      margin: 0;
      box-shadow: none;
      padding: 20px 15px 0;

      a:not(.btn) {
        color: @link-color;

        &:hover {
          color: @link-color-hover;
          background: #fff;
        }
      }
    }
  }

  &:before {
    display: block;
    content: "";
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -10px;
    right: -10px;
  }
}

.onboarding-progress-bar:hover, .active .onboarding-progress-bar, .onboarding-progress-bar.active {
  background: rgba(255,255,255, .3);
}

/**
* Member settings / invitations
* ============================================================================
*/

.team-choices .team-slug {
  display: block;
  font-weight: normal;
  color: @gray-light;
}


/**
* Medium to small screens
* ============================================================================
*/

@media(max-width:991px) {
  .organization-home .col-md-2 {
    display: none;
  }
}
