/*----- Tabs -----*/
.tabs {
    width: 100%;
    height: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-flow: column;
    flex-flow: column;
    overflow-x: auto;
    overflow: visible;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

    .tabs .TabItem {
        display: flex;
        width: 100%;
        background: white;
        min-width: 400px;
        overflow: auto
    }


.tab {
    display: none;
}

    .tab.active {
        display: block;
    }

/********************/
/*     Original     */
/********************/
.tab-content {
    overflow-y: auto;
    display: block;
    border-left: 1px solid steelblue;
    border-right: 1px solid steelblue;
    border-bottom: 1px solid steelblue;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-sizing: border-box;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    border-top: 1px solid steelblue;
}

.tab-content-topline {
    height: calc(100% - 30px);
    -webkit-appearance: initial;
    display: -webkit-box;
    box-sizing: border-box;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    border-top: 1px solid steelblue;
}

/********************/
/*      Reverse     */
/********************/
.tab-content-reverse {
    overflow-y: auto;
    display: block;
    border-top: 1px solid steelblue;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-left: 1px solid steelblue;
    border-right: 1px solid steelblue;
    box-sizing: border-box;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.tab-content-reverse-topline {
    overflow-y: auto;
    display: block;
    box-sizing: border-box;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.triangle_tab {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    font-size: 0;
    line-height: 0;
    float: right;
    margin-left: 2px;
    user-select: none;
    cursor: pointer;
}

.triangle_tab_down {
    border-top: 10px solid steelblue;
    margin-top: 9px;
}

.triangle_tab_up {
    border-bottom: 10px solid steelblue;
    margin-top: 7px;
}

.tab_dropdown {
    flex-direction: column;
    border-right: 2px solid steelblue;
    border-left: 2px solid steelblue;
    border-top: 2px solid steelblue;
    border-bottom: 1px solid steelblue;
    box-shadow: 5px 4px 6px -1px rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    background: white;
    z-index: 10;
}

    .tab_dropdown label {
        border-bottom: 1px solid steelblue;
        padding: 5px;
        cursor: pointer;
        word-wrap: break-word;
    }

        .tab_dropdown label:hover {
            background: steelblue;
            color: white;
        }

/********************************** TabHeader start **********************************/

/********************/
/*     Original     */
/********************/
.tab-links {
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    -webkit-padding-start: 0;
    box-sizing: border-box;
    padding-left: 0;
    margin-bottom: 0;
    min-height: 30px;
    display: inline-flex;
}

    .tab-links > li + li {
        margin-left: 1px;
    }

    .tab-links li {
        list-style: none;
        cursor: pointer;
        height: 27px;
        display: inline-block;
        white-space: nowrap;
        border-left: 1px solid rgba(200,200,200,1);
        border-right: 1px solid rgba(200,200,200,1);
        border-top: 1px solid rgba(200,200,200,1);
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%);
        border-bottom: 1px solid rgba(200,200,200,1);
        margin-top: 1px;
        user-select: none;
    }

        .tab-links li.active {
            border-left: 1px solid steelblue;
            border-right: 1px solid steelblue;
            border-top: 2px solid steelblue;
            border-top-left-radius: 6px;
            border-top-right-radius: 6px;
            border-bottom: 1px solid white;
            background: initial;
            margin-bottom: -1px;
            z-index: 1;
            background: white;
            display: inline-flex !important;
        }

    .tab-links a {
        display: inline-block;
        padding: 0 0 0 15px;
        line-height: 28px;
        height: 28px;
        box-sizing: border-box;
    }

    .tab-links li > :last-child {
        margin-right: 15px;
    }

    .tab-links li.active a {
        color: steelblue;
        font-weight: bold;
        height: 27px;
        border-bottom: 1px solid white;
        width: inherit;
    }

.tab-links-empty li.active a {
    color: steelblue;
    font-weight: bold;
    height: 28px;
    border-bottom: none;
}

.tab-links:after {
    display: block;
    clear: both;
    content: '';
}

.tab-links li * {
    cursor: pointer;
    text-decoration: none;
}

.tab-links a:hover {
    color: black;
}

.tab-links-topline li:first-child {
    margin-left: 5px;
}

.tab-links-topline li:last-child {
    margin-right: 5px;
}

/********************/
/*      Reverse     */
/********************/
.tab-links-reverse {
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    -webkit-padding-start: 0;
    box-sizing: border-box;
    padding-left: 0;
    margin-bottom: 0;
    border-top: 1px solid steelblue;
    display: inline-flex;
    flex-wrap: wrap;
}

    .tab-links-reverse li {
        list-style: none;
        cursor: pointer;
        height: 28px;
        display: inline-block;
        white-space: nowrap;
        border-left: 1px solid rgba(200,200,200,1);
        border-right: 1px solid rgba(200,200,200,1);
        border-bottom: 1px solid rgba(200,200,200,1);
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        background: linear-gradient(to top, rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%);
        border-top: 1px solid rgba(200,200,200,1);
        margin-bottom: 1px;
        user-select: none;
    }

        .tab-links-reverse li > :last-child {
            margin-right: 15px;
        }

    .tab-links-reverse > li + li {
        margin-left: 3px;
    }

    .tab-links-reverse li.active {
        border-left: 1px solid steelblue;
        border-right: 1px solid steelblue;
        border-bottom: 2px solid steelblue;
        border-bottom-left-radius: 6px;
        border-bottom-right-radius: 6px;
        box-sizing: border-box;
        background: initial;
        margin-top: -1px;
        border-top: 1px solid white;
        background: white;
        display: inline-flex !important;
    }

        .tab-links-reverse li.active a {
            color: steelblue;
            font-weight: bold;
            border-top: 1px solid white;
            margin-top: -1px;
        }

.tab-links-reverse-empty li.active a {
    color: steelblue;
    font-weight: bold;
    border-top: none;
}

.tab-links-reverse:after {
    display: block;
    clear: both;
    content: '';
}

.tab-links-reverse li * {
    cursor: pointer;
}

.tab-links-reverse a {
    display: inline-block;
    padding: 0 0 0 15px;
    line-height: 28px;
    height: 28px;
    box-sizing: border-box;
}

    .tab-links-reverse a:hover {
        color: black;
    }

.tab-links li:only-of-type {
    border-top: 1px solid steelblue !important;
}

/********************************** TabHeader end **********************************/
