/* ========================================================================
 * TABS
 * ======================================================================== */
.nav-tabs{

  .nav-border{
    position: relative;
    &:first-child{
      &.active{
        &:after{
          left: 0;
        }
      }
    }
    &.active{
      &:after{
        content: "";
        display: block;
        position: absolute;
      }
    }
  }
  @include nav-border-top(danger, $color-danger);
  @include nav-border-top(primary, $color-primary);
  @include nav-border-top(success, $color-success);
  @include nav-border-top(info, $color-info);
  @include nav-border-top(warning, $color-warning);
  @include nav-border-top(lilac, $color-lilac);
  @include nav-border-top(inverse, $color-inverse);
  .nav-border-top-teal{
    &.active{
      &:after{
        border: 2px solid $color-teal;
        top: 0;
        left: -1px;
        right: 0;
      }
    }
  }

  @include nav-border-left(danger, $color-danger);
  @include nav-border-left(primary, $color-primary);
  @include nav-border-left(success, $color-success);
  @include nav-border-left(info, $color-info);
  @include nav-border-left(warning, $color-warning);
  @include nav-border-left(lilac, $color-lilac);
  @include nav-border-left(inverse, $color-inverse);
  .nav-border-left-teal{
    &.active{
      &:after{
        border: 2px solid $color-teal;
        top: 0;
        bottom: 0;
        left: 0;
      }
    }
  }

  &.nav-justified{
    width: 100%;
    border-bottom: 0;
    > li{
      > a{
        padding: 15px;
        background-color: $gray;
        color: darken($gray,25%);;
        border: 0;
        @include border-radius(0px);
      }
      &:last-child{
        > a{
          border-top-right-radius: 3px;
        }
      }
    }
    > .active{
      > a{
        color: #333;
        background-color: #FBFBFB;
        border: 0;
        border-color: #FFF;
        border-bottom-color: #FCFCFC;
        @include border-radius-top(3px);
        &:hover, &:focus{
          border: 0;
          border-color: #FFF;
          border-bottom-color: #FCFCFC;
          background-color: #FBFBFB;
        }
      }
    }
  }
}

.tab-content{
  background-color: #FBFBFB;
  padding: 15px;
  -moz-box-shadow: 0 3px 0 rgba(12,12,12,0.03);
  -webkit-box-shadow: 0 3px 0 rgba(12, 12, 12, 0.03);
  box-shadow: 0 3px 0 rgba(12, 12, 12, 0.03);
  -moz-border-radius: 0 0 3px 3px;
  -webkit-border-radius: 0 0 3px 3px;
  border-radius: 0 0 3px 3px;
}

@media (max-width: 800px) {
  .panel{
    .nav-tabs{
      li{
        a{
          border-right: none !important;
        }
      }
    }
  }
}

