/*!
 * bootstrap-tabs-x v1.3.6
 * http://plugins.krajee.com/tabs-x
 *
 * Krajee default Bootstrap 5.x and 4.x styling for bootstrap-tabs-x.
 *
 * Author: Kartik Visweswaran
 * Copyright: 2014 - 2021, Kartik Visweswaran, Krajee.com
 *
 * Licensed under the BSD 3-Clause
 * https://github.com/kartik-v/bootstrap-tabs-x/blob/master/LICENSE.md
 */
.tab-content {
    padding: 0.625rem;
}

.tabs-x .tab-content > .tab-pane {
    display: none;
}

.tabs-x .tab-content > .active {
    display: block;
}

.tabs-x .nav-link.disabled {
    pointer-events: auto;
    cursor: not-allowed;
}

.tabs-x .nav-tabs {
    display: flex;
}

/**
 * Tabs Left & Right
 */
.tabs-left, .tabs-right {
    display: flex;
    align-items: start;
}

.tabs-left .nav-tabs, .tabs-right .nav-tabs {
    height: 100%;
    margin-left: 0;
    margin-right: 0;
}

.tabs-left .tab-content, .tabs-right .tab-content {
    height: 100%;
    width: 100%;
    border: none;
}

.tabs-left .tab-content {
    margin-left: calc(-1 * var(--bs-border-width));
    border-left: var(--bs-border-width) solid var(--bs-border-color);
}

.tabs-right .tab-content {
    margin-right: calc(-1 * var(--bs-border-width));
    border-right: var(--bs-border-width) solid var(--bs-border-color);
}

.tabs-left > .nav-tabs, .tabs-right > .nav-tabs {
    border-bottom: none;
    /* width: 9rem; */
    max-width: 25%;
    flex: 1 1 auto !important;
    text-align: center;
}

.tabs-left > .nav-tabs .nav-item, .tabs-right > .nav-tabs .nav-item {
    position: relative;
    width: 100%;
}

.tabs-left > .nav-tabs .nav-item > .nav-link {
    border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
    /* white-space: nowrap; */
    width: inherit;
}

.tabs-left > .nav-tabs .list-group-item.nav-item > .nav-link {
    border-radius: 0 0 0 0;
    border-left: none;
    width: inherit;
}

.tabs-left > .nav-tabs .list-group-item.group-last.nav-item > .nav-link {
    border-radius: 0 0 0 var(--bs-border-radius);
}

.tabs-left > .nav-tabs .nav-item > .nav-link.active {
    border-color: var(--bs-border-color) var(--bs-body-bg) var(--bs-border-color) var(--bs-border-color);
}

.tabs-right > .nav-tabs .nav-item > .nav-link {
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
    /* white-space: nowrap; */
    width: inherit;
}

.tabs-right > .nav-tabs .nav-link.active {
    border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);
}


/**
 * nested tabs left -> above
 */
 .tabs-left .tab-content .tab-pane .tabs-above .tab-content {
    margin-left: 0;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-top: none;
    border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
    margin-bottom: 0;
}
.tab-content:has( > .tab-pane > .tabs-x) {
    padding-bottom: 1rem;
}

    
/**
 * Tab Alignments
 */
.tab-align-center .nav-tabs {
    justify-content: center;
}

.tab-align-right .nav-tabs {
    justify-content: flex-end;
}

/**
 * Tab Heights / Sizes
 */
.tab-height-xs .tab-content {
    height: 135px !important;
    overflow: auto;
}

.tab-height-sm .tab-content {
    height: 195px !important;
    overflow: auto;
}

.tab-height-md .tab-content {
    height: 17.5rem !important;
    overflow: auto;
}

.tab-height-lg .tab-content {
    height: 25rem !important;
    overflow: auto;
}

/**
 * Tabs orientations
 */
.tabs-below > .nav-tabs {
    border-bottom: none;
    border-top: var(--bs-border-width) solid var(--bs-border-color);
}

.tabs-below .nav-tabs .nav-link {
    border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
    margin-top: calc(-1 * var(--bs-border-width));
}

.tabs-below .nav-tabs .nav-link.active {
    border-color: var(--bs-body-bg) var(--bs-border-color) var(--bs-border-color);
}

/**
 * Bordered tabs
 */
.tabs-above.tab-bordered .tab-content {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-top: none;
    border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
}

.tabs-below.tab-bordered .tab-content {
    border:var(--bs-border-width) solid var(--bs-border-color);
    border-bottom: none;
    border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
}

.tabs-left.tab-bordered .tab-content {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
}

.tabs-left.tab-bordered .tab-content .tab-pane {
    margin-left: 0;
}

.tabs-right.tab-bordered .tab-content {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
}

.tabs-right.tab-bordered .tab-content .tab-pane {
    margin-left: 0;
}

/**
 * Sideways tabs
 */
.tab-sideways .nav-tabs,
.tab-sideways .nav-tabs .nav-item {
    height: 100%;
    width: 34px;
}
.tab-sideways .nav-link {
    overflow:hidden;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    min-height: 6rem;
    width: 2rem;
}

.tab-sideways .nav-link .nav-link-text {
    display: inline-block;
    font-size: 0.8rem;
    height: 6rem;
    width: 6rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.tab-sideways.tabs-left .nav-link.dropdown-toggle:after {
    position: absolute;
    left: 30%;
    top: 10%;
}

.tab-sideways.tabs-right .nav-link.dropdown-toggle:after {
    position: absolute;
    right: 15%;
    bottom: 10%;
}

.tabs-left.tab-sideways .nav-link.dropdown-toggle:after,
.tabs-left.tab-sideways .nav-link .nav-link-text {
    transform: translateX(-10%) translateY(5%) rotate(-90deg);
}

.tabs-right.tab-sideways .nav-link.dropdown-toggle:after,
.tabs-right.tab-sideways .nav-link .nav-link-text {
    transform: translateX(-90%) translateY(0%) rotate(90deg);
}
/* 
.tabs-x .nav-tabs .nav-link.kv-tab-loading {
    background-image: url('../img/loading.gif');
    background-position: right 0.125rem center;
    background-repeat: no-repeat;
    z-index: 15000;
    cursor: wait;
    opacity: 0.6;
} */