
/* ==============
  tabs & accordian
===================*/

// tabs

.tabs {
    background-color: $white;
    margin: 0 auto;
    padding: 0px;
    position: relative;
    white-space: nowrap;
    width: $width;
    li.tab {
      background-color: $white;
      display: block;
      float: left;
      margin: 0;
      text-align: center;
      a {
        -moz-transition: color 0.28s ease;
        -ms-transition: color 0.28s ease;
        -o-transition: color 0.28s ease;
        -webkit-transition: color 0.28s ease;
        color: #ee6e73;
        display: block;
        height: 100%;
        text-decoration: none;
        transition: color 0.28s ease;
        width: $width;
      }
      a.active {
        color: $primary !important;
      }
    }
    .indicator {
      background-color: $primary;
      bottom: 0;
      height: 2px;
      position: absolute;
      will-change: left, right;
    }
  }
  
  .tabs-top {
    .indicator {
      top: 0;
    }
  }
  
  .nav.nav-tabs + .tab-content {
    background: $white;
    margin-bottom: 30px;
    padding: 30px;
  }
  
  .tabs-vertical-env {
    background-color: $light;
    margin-bottom: 30px;
    .tab-content {
      background: $white;
      display: table-cell;
      margin-bottom: 30px;
      padding: 30px;
      vertical-align: top;
    }
    .nav.tabs-vertical {
      display: table-cell;
      min-width: 120px;
      vertical-align: top;
      width: 150px;
      li.active > a {
        background-color: $white;
        border: 0;
      }
      li > a {
        color: $lightdark3;
        text-align: center;
        white-space: nowrap;
      }
    }
  }
  
  
  .nav.nav-tabs > li > a.active {
    background-color: $white;
    border: 0;
  }
  
  .nav.nav-tabs > li > a,.nav.tabs-vertical > li > a  {
    background-color: transparent;
    border-radius: 0;
    border: none;
    color: $lightdark3 !important;
    cursor: pointer;
    line-height: 50px;
    padding-left: 20px;
    padding-right: 20px;
    &:hover {
      color: $primary !important;
    }
  }
  
  .tab-content {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    color: #777777;
  }
  
  .nav.nav-tabs > li {
    &:last-of-type {
      a {
        margin-right: 0px;
      }
    }
  }
  
  .nav.nav-tabs {
    border-bottom: 0;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  }
  
  .navtab-bg {
    background-color: $light;
  }
  
  .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus, .tabs-vertical-env .nav.tabs-vertical li.active > a {
    border: none;
  }
  
  .nav-tabs > li > a.active, .nav-tabs > li > a:focus, .nav-tabs > li > a:hover, .tabs-vertical > li > a.active, .tabs-vertical > li > a:focus, .tabs-vertical > li > a:hover {
    color: $primary !important;
  }

  .tabs-vertical-env {
    .tab-content {
      margin-bottom: 0px;
    }
  }

// accordion

.card-box {
  .card {
    margin-bottom: 5px;
    .card-header {
      a[data-toggle=collapse].collapsed {
        &:before {
          content: '\f067';
        }
      }
      .accordion-toggle.collapsed {
        &:before {
          content: '\f067';
        }
      }
      a[data-toggle=collapse] {
        display: block;
        color: $white;
        &:before {
          content: '\f068';
          display: block;
          float: right;
          font-family: 'FontAwesome';
          font-size: 14px;
          text-align: right;
          width: 25px;
        }
      }
      .accordion-toggle {
        display: block;
        &:before {
          content: '\f068';
          display: block;
          float: right;
          font-family: 'FontAwesome';
          font-size: 14px;
          text-align: right;
          width: 25px;
        }
      }
    }
  }
  .card-header {
    padding: 12px 26px;
  }
}