@import 'foundation/colors';
@import 'foundation/duration';
@import 'foundation/easing';
@import 'foundation/spacing';
@import 'foundation/border-radius';
@import 'shared/buttons';
@import 'shared/icons';

.tab {
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}
.tab:hover {
  // background-color: #d8d8d8;
  border-bottom-color: color(sky, base);
}
.tab.active:hover {
  background-color: transparent;
}
.tab.svg-inline--fa {
  margin-right: 0.8rem;
}

.tab button {
  color:color(ink, lighter);
  fill:color(ink, lighter);
}
.tab button:hover,
.tab button:focus {
  color: color(ink, base);
  fill: color(ink, base);
}
.tabpanel {
  display: flex;
}

.tabpanel{
  &.top {
  flex-direction: column;
  }
  & ul {
    margin:0px;
    list-style: none;
    padding:0px;
    li {
      margin-right:3.2rem;
      &:last-child {
        margin-right:0px;
      }
    }
  }
}

.tabpanel {
  &.top {
  flex-direction: column;
  }
}
.tabpanel.bottom {
  flex-direction: column-reverse;
}
.tabpanel.left {
  flex-direction: row;
}
.tabpanel.right {
  flex-direction: row-reverse;
}
 
.tabstrip {
  // background-color: #e8e8e8;
  display: flex;
  border-bottom: 1px solid color(sky, base )
}

.tabstrip.start {
  justify-content: flex-start;
}
.tabstrip.center {
  justify-content: center;
}
.tabstrip.end {
  justify-content: flex-end;
}
.tabstrip.indicator {
  justify-content: center;
}
.tabpanel.top .tabstrip,
.tabpanel.bottom .tabstrip {
  flex-direction: row;
}
.tabpanel.left .tabstrip,
.tabpanel.right .tabstrip {
  flex-direction: column;
}

.tabpanel.top .tab,
.tabpanel.bottom .tab {
  padding: 1.2rem 0.6rem;
}
.tabpanel.left .tab,
.tabpanel.right .tab {
  padding: 0.6rem 1.2rem;
}
.tabpanel.top .tab.active {
  border-bottom-color: #1e8bfb;
  color:color(ink, base);
}
.tabpanel.top .tab.active button {
  color:color(ink, base);
}
.tabpanel.top .tab:focus-within {
  border-bottom-color: color(sky, base);
}
.tabpanel.left .tab.active {
  border-right-color: #1e8bfb;
}
.tabpanel.bottom .tab.active {
  border-top-color: #1e8bfb;
}
.tabpanel.right .tab.active {
  border-left-color: #1e8bfb;
}
 
.cardct {
  flex: 1;
  display: flex;
} 
.card {
  padding: 1.2rem;
  flex: 1 0 auto;
  display: none;
}
.card.active {
  display: block !important;
}
.vertiView {
  flex-direction: unset !important;
  position: relative;
  &:after {
    content: '';
    display: block;
    clear: both;
  }
  .tabstrip {
    display: block;
    border-bottom: 0px;
    border-right: 0px;
    border-top:0px;
    background-color: #f1f3f5;
    .tab {
      display: block;
      margin:0px;
      text-align: left;
      border-bottom:0px;
      border-top:0px;
      margin-bottom:0.4rem;
      
      &:last-child {
        margin-bottom:0px;
      }
      &.active,
      &:hover {
        border-bottom: 0px;
        border-right-color: transparent;
    background-color: color(white);

      }
    }
  }
  
  .cardct {
    padding: 0.6rem 1.2rem;
    width: 85%;
    background-color: color(white);
  }
}