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

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

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

/**
* 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-bottom: 1px solid #f6f7f8;
      padding: 20px 20px 0 80px;

      &:last-child {
        border: 0;
      }

      button {
        margin-top: 3px;
      }

      .provider-logo {
        position: absolute;
        left: 20px;
        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;
    .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;
  }
}

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

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

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

 .onboarding-wrapper {
   .box;
   padding: 15px 20px 0;

   .close {
     float: right;
     color: @gray-lightest;

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

   h3 {
     font-size: 20px;
     border-bottom: 2px solid rgba(0,0,0, .05);
     margin: 0 -15px 15px;
     padding: 0 15px 15px;
     text-align: center;
   }

   h4 {
     font-size: 17px;
     margin: 0 0 3px;
   }

   p {
     color: @gray;
     line-height: 1.25;
   }

   ul {
     li {
       position: relative;
       padding-left: 60px;

       .todo-content {
         position: relative;
       }

       &.checked {
         .ob-checkbox {
           border-color: #48D887;
         }
       }

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

       &.pending {
         position: relative;
         margin-top: 4px;
         margin-bottom: 4px;

         .pending-bar {
           position: absolute;
           top: -12px;
           right: -15px;
           left:  -15px;
           bottom: -10px;
           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;
           box-shadow: inset 0 2px 0 rgba(0,0,0, .05), inset 0 -2px 0 rgba(0,0,0, .05);
          }
       }

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

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

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

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

    .icon-checkmark {
      color: #32D077;
      font-size: 26px;
      left: 8px;
      position: relative;
      top: 7px;
    }

    .icon-x, .icon-ellipsis {
      color: @gray-lightest;
      font-size: 26px;
      left: 7px;
      position: relative;
      top: 8px;
    }

    .icon-ellipsis {
      color: @gray-light;
      top: 7px;
      left: 7px;
    }
  }

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

    &: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-top: 1px solid @gray-lightest;
    margin: -5px -15px 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: 150px;
  float: right;
  margin-right: 20px;
  margin-top: 16px;
  border-radius: 2px;
  position: relative;
  cursor: pointer;

  .slider {
    background: #6AFFAB;
    height: 10px;
    width: 20%;
    padding-right: 0;
    border-radius: inherit;
    box-shadow: 0 2px 0 rgba(0,0,0, .08);
  }

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

    &:before {
      left: 50%;
      margin-left: -8px;
    }

    &:after {
      left: 50%;
      margin-left: -7px;
    }

    .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 {
  background: rgba(255,255,255, .25);
  .slider {
    box-shadow: 0 0 10px rgba(200, 255, 224, 0.35), 0 2px 0 rgba(0,0,0, .08);
  }
}

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

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