.ah-tab-wrapper {
    position: relative;
}

.ah-tab-wrapper *, .ah-tab-wrapper *:before, .ah-tab-wrapper *:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ah-tab {
    position: relative;
    display: table;
    border-collapse: collapse;
    width: 100%;
}
.ah-tab.col1 > a { width:100%; }
.ah-tab.col2 > a { width:50%; }
.ah-tab.col3 > a { width:33.33%; }
.ah-tab.col4 > a { width:25%; }
.ah-tab.col5 > a { width:20%; }
.ah-tab.col6 > a { width:16.66%; }
.ah-tab.col7 > a { width:14.285%; }
.ah-tab.col8 > a { width:12.5%; }

.ah-tab::before, .ah-tab::after {
    bottom: 0;
    content: "";
    height: 100%;
    opacity: 0;
    position: absolute;
    z-index: 1;
    transition: opacity .3s;
}





.ah-tab-overflow-left::before {
    opacity: 1;
    left: 0;
}

.ah-tab-overflow-right::after {
    opacity: 1;
    right: 0;
}

.ah-tab-overflow-wrapper {
    position: absolute;
    width: 43px;
    height: 100%;
    right: 100%;
    opacity: 0;
    top: 0;
    z-index: 1;
    text-align: center;
}

.ah-tab-overflow-wrapper[data-ah-tab-active="true"] {
    right: 0;
    opacity: 1;
    transition: opacity .3s;
}

.ah-tab-overflow-wrapper:hover {
    z-index: 2;
}

.ah-tab-overflow-menu {
    background: transparent url(images/ah-tab-overflow-menu.svg) center center no-repeat;
    background-size: 18px;
    display: inline-block;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
    transition: opacity .3s;
    opacity: .7;
}

.ah-tab-overflow-wrapper:hover .ah-tab-overflow-menu {
    opacity: 1;
}

.ah-tab-overflow-list {
    position: absolute;
    top: -10000%;
    right: 0;
    text-align: left;
    background-color: #fff;
    border: 1px solid #e9e9e9;
    box-shadow: 0px 3px 7px 0px rgba(0, 0, 0, 0.09);
    list-style: none;
    transition: opacity .3s;
    opacity: 0;
    max-width: 290px;
}

.ah-tab-overflow-list::after {
    content: " ";
    display: block;
    position: absolute;
    top: -14px;
    right: 14px;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-bottom-color: #fff;
}

.ah-tab-overflow-list::before {
    content: " ";
    display: block;
    position: absolute;
    top: -16px;
    right: 13px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: #cdcdcd;
}

.ah-tab-overflow-wrapper:hover .ah-tab-overflow-list {
    top: 99%;
    padding: 10px 0;
    opacity: 1;
}

.ah-tab-overflow-list:hover {
    display: block;
}

.ah-tab-item {
    color: #000;
    cursor: pointer;
    display: inline-block;
    letter-spacing: normal;
    transition: all .3s;
    text-decoration: none;
    font-size: 16px;
    background-color: #f7f7f7;
    font-weight: 500;
    
}

.ah-tab>.ah-tab-item {
    /* border-bottom: 3px solid transparent; */
    margin-right: 30px;
    padding: 15px 0;
    display: table-cell;
    border: 1px solid #bfbfbf;
    text-align: center;
    box-sizing: border-box;
}



@media (min-width: 768px) {
    .ah-tab>.ah-tab-item {
        margin-right: 50px;
    }
}

.ah-tab-item[data-ah-tab-active="true"] {
    color: #fff;
}

.ah-tab>.ah-tab-item:hover {
	text-decoration: underline;
}

.ah-tab>.ah-tab-item[data-ah-tab-active="true"] {
    background: #388cd5;
    border-color: #388cd5;
}

.ah-tab-overflow-list>.ah-tab-item {
    border-left: 3px solid transparent;
    display: block;
    overflow: hidden;
    padding: 10px 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ah-tab-overflow-list>.ah-tab-item:hover {
    border-left-color: #8b8b8b;
}

.ah-tab-overflow-list>.ah-tab-item[data-ah-tab-active="true"] {
    border-left-color: #215393;
}

.ah-tab-content-wrapper {
    margin: 30px 0;
}

.ah-tab-content {
    display: none;
}

.ah-tab-content[data-ah-tab-active="true"] {
    display: block;
}