.tabs {
    display: flex;
}

.tabs,
.tabs-body,
.tabs-body-content {
    height: 100%;
}

    /*top*/
    .tabs.tabs-top {
        flex-flow: column;
    }

        .tabs.tabs-top.tabs-border-card .tabs-header {
            margin-bottom: 0;
        }

    /*right*/
    .tabs.tabs-right {
        flex-flow: row-reverse;
    }

    /*left*/
    .tabs.tabs-left {
        flex-flow: row;
    }

    /*bottom*/
    .tabs.tabs-bottom {
        flex-flow: column-reverse;
    }

    .tabs.tabs-card.tabs-bottom .tabs-header {
        border-top: 1px solid #e4e7ed;
        border-bottom: none;
    }

    .tabs.tabs-border-card.tabs-bottom .tabs-header {
        margin-top: 0;
    }

    /*wrapper*/
    .tabs .tabs-nav-wrap {
        position: relative;
        display: flex;
    }

        .tabs .tabs-nav-wrap:after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 2px;
            background-color: #e4e7ed;
        }

    .tabs.tabs-top .tabs-nav-wrap {
        margin-bottom: -1px;
    }

    .tabs.tabs-bottom .tabs-nav-wrap {
        margin-top: -1px;
    }

    .tabs.tabs-left .tabs-nav-wrap {
        margin-right: -1px;
    }

    .tabs.tabs-right .tabs-nav-wrap {
        margin-left: -1px;
    }

    .tabs.tabs-top .tabs-nav-wrap, .tabs.tabs-bottom .tabs-nav-wrap {
        width: 100%;
    }

        .tabs.tabs-top .tabs-nav-wrap.is-scrollable:not(.extend), .tabs.tabs-bottom .tabs-nav-wrap.is-scrollable:not(.extend) {
            padding: 0 30px;
        }

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

        .tabs.tabs-left .tabs-nav-wrap:after, .tabs.tabs-right .tabs-nav-wrap:after {
            left: auto;
            right: 0;
            width: 2px;
            height: 100%;
        }

        .tabs.tabs-right .tabs-nav-wrap:after {
            left: 0;
            right: auto;
        }

        .tabs.tabs-left .tabs-nav-wrap.is-scrollable, .tabs.tabs-right .tabs-nav-wrap.is-scrollable {
            padding: 30px 0;
        }

    /*prev next*/
    .tabs .tabs-nav-next, .tabs .tabs-nav-prev {
        position: absolute;
        cursor: pointer;
        line-height: 40px;
        height: 40px;
        font-size: 16px;
        color: #909399;
        width: 30px;
        justify-content: center;
        align-items: center;
        display: none;
    }

    .tabs .tabs-nav-prev {
        left: 0;
        top: 0;
    }

    .tabs .tabs-nav-next {
        right: 0;
        top: 0;
    }

        .tabs .tabs-nav-next:hover, .tabs-nav-prev:hover {
            color: #409eff;
        }

    .tabs.tabs-left .tabs-nav-prev, .tabs.tabs-right .tabs-nav-prev {
        top: 0;
        left: calc(50% - 15px);
        height: 30px;
    }

        .tabs.tabs-left .tabs-nav-prev i:before, .tabs-right .tabs-nav-prev i:before {
            content: "\f106";
        }

    .tabs.tabs-left .tabs-nav-next, .tabs.tabs-right .tabs-nav-next {
        top: auto;
        bottom: 0;
        left: calc(50% - 15px);
        height: 30px;
    }

        .tabs.tabs-left .tabs-nav-next i:before, .tabs.tabs-right .tabs-nav-next i:before {
            content: "\f107";
        }

    .tabs .tabs-nav-wrap .nav-link-bar {
        padding: 0.5rem 1rem;
        background-color: #fff;
        border: 1px solid #dcdfe6;
        border-width: 0 0 1px 1px;
        height: 39px;
        cursor: pointer;
    }

        .tabs .tabs-nav-wrap .nav-link-bar.left {
            border: 1px solid #dcdfe6;
            border-width: 0 1px 1px 0;
        }

        .tabs .tabs-nav-wrap .nav-link-bar.right {
            border: 1px solid #dcdfe6;
            border-width: 0 0 1px 1px;
        }

    .tabs .tabs-nav-wrap .dropdown-toggle:after {
        display: none;
    }

    .tabs .tabs-nav-wrap .dropdown-item {
        transition: background-color .3s linear;
    }

        .tabs .tabs-nav-wrap .dropdown-item:hover {
            background-color: #409eff;
        }

    /*scroll*/
    .tabs .tabs-nav-scroll {
        overflow: hidden;
        flex: 1;
    }

    .tabs.tabs-card.tabs-top .tabs-nav-scroll {
        border: solid 1px #ddd;
        border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
        border-bottom: none;
    }

    .tabs.tabs-card.tabs-bottom .tabs-nav-scroll {
        border: solid 1px #ddd;
        border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
        border-top: none;
    }

    .tabs.tabs-card.tabs-left .tabs-nav-scroll {
        border: solid 1px #ddd;
        border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
        border-right: none;
    }

    .tabs.tabs-card.tabs-right .tabs-nav-scroll {
        border: solid 1px #ddd;
        border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
        border-left: none;
    }

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

    .tabs.tabs-top .tabs-nav-scroll, .tabs.tabs-bottom .tabs-nav-scroll {
        width: 100%;
    }


    /*nav*/
    .tabs .tabs-nav {
        white-space: nowrap;
        position: relative;
        display: flex;
    }

    .tabs.tabs-left .tabs-nav, .tabs.tabs-right .tabs-nav {
        flex-flow: column;
    }

        .tabs.tabs-left .tabs-nav .tabs-active-bar, .tabs.tabs-right .tabs-nav .tabs-active-bar {
            width: 2px;
            height: 40px;
        }

    .tabs.tabs-left .tabs-item {
        text-align: right;
    }

    .tabs.tabs-left .tabs-nav .tabs-active-bar {
        left: auto;
        right: 0;
        top: auto;
        bottom: auto;
    }

    .tabs.tabs-right .tabs-nav .tabs-active-bar {
        right: auto;
        left: 0;
        top: auto;
        bottom: auto;
    }

    .tabs .tabs-body {
        padding: 1rem;
    }

    .tabs.tabs-card .tabs-body {
        border: 1px solid #e4e7ed;
    }

    .tabs.tabs-card.tabs-top .tabs-body {
        border-top-width: 0;
        border-radius: 0 0 4px 4px;
    }

    .tabs.tabs-card.tabs-bottom .tabs-body {
        border-bottom-width: 0;
        border-radius: var(--bs-border-radius) var(--bs-border-radius) 0 0;
    }

    .tabs.tabs-card.tabs-left .tabs-body {
        border-left-width: 0;
        border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
    }

    .tabs.tabs-card.tabs-right .tabs-body {
        border-right-width: 0;
        border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius);
    }

.is-scrollable .tabs-nav-prev, .is-scrollable .tabs-nav-next {
    display: flex;
}

.tabs-active-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: #409eff;
    z-index: 1;
    transition: transform .3s cubic-bezier(.645,.045,.355,1);
    list-style: none;
}

.tabs-item.active {
    color: #409eff;
}

.tabs-item {
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    display: flex;
    list-style: none;
    font-weight: 500;
    color: #303133;
    cursor: pointer;
    align-items: center;
    position: relative;
    transition: color .3s linear, background-color .3s linear;
}

    .tabs-item:hover {
        color: #409eff;
    }

    .tabs-item .tabs-item-text {
        padding: 0 0.25rem;
        flex: 1 1 auto;
    }

    .tabs-item.is-closeable .tabs-item-text {
        margin-right: 1rem;
        margin-left: 1rem;
    }

    .tabs-item:hover .tabs-item-close {
        display: flex;
    }

    .tabs-item .tabs-item-close {
        width: 18px;
        height: 18px;
        display: none;
        position: absolute;
        right: 1rem;
        justify-content: center;
        align-items: center;
        transition: all .3s linear;
    }

        .tabs-item .tabs-item-close:hover {
            background-color: #e4e7ed;
            border-radius: var(--bs-border-radius);
        }

.tabs-content {
    overflow: hidden;
    position: relative;
}

.tabs-card.tabs-top .tabs-header {
    border-bottom: 1px solid #e4e7ed;
}

.tabs-card .tabs-header .tabs-item.active {
    border-bottom-color: #fff;
}

.tabs-card.tabs.tabs-left .tabs-header {
    border-right: 1px solid #e4e7ed;
}

.tabs-card.tabs.tabs-right .tabs-header {
    border-left: 1px solid #e4e7ed;
}

.tabs-card.tabs-bottom .tabs-header .tabs-item.active {
    border-top-color: #fff;
}

.tabs-card.tabs-left .tabs-header .tabs-item.active {
    border-right-color: #fff;
}

.tabs-card.tabs-right .tabs-header .tabs-item.active {
    border-left-color: #fff;
}

.tabs-card .tabs-header .tabs-item:first-child {
    border-left: none;
}

.tabs-card .tabs-header .tabs-item {
    border-bottom: 1px solid transparent;
    border-left: 1px solid #e4e7ed;
    transition: color .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1);
}

.tabs-card .tabs-header .tabs-item {
    border-bottom: 1px solid transparent;
    border-left: 1px solid #e4e7ed;
    transition: color .3s cubic-bezier(.645,.045,.355,1),padding .3s cubic-bezier(.645,.045,.355,1);
}

.tabs-card.tabs-top .tabs-header .tabs-item:last-child, .tabs-card.tabs-bottom .tabs-header .tabs-item:last-child {
    border-right: 1px solid #e4e7ed;
}

.tabs-card.tabs-bottom .tabs-header .tabs-item {
    border-top: 1px solid transparent;
}

.tabs-card.tabs-left .tabs-header .tabs-item {
    border-right: 1px solid transparent;
    border-left: none;
    border-bottom: 1px solid #e4e7ed;
}

.tabs-card.tabs-right .tabs-header .tabs-item {
    border-left: 1px solid transparent;
    border-right: none;
    border-bottom: 1px solid #e4e7ed;
}

.tabs-border-card {
    background: #fff;
    border: 1px solid #dcdfe6;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,.12), 0 0 6px 0 rgba(0,0,0,.04);
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

    .tabs-border-card > .tabs-header {
        background-color: #f5f7fa;
        margin: 0;
    }

        .tabs-border-card > .tabs-header .tabs-item.active {
            color: #409eff;
            background-color: #fff;
            border-right-color: #dcdfe6;
            border-left-color: #dcdfe6;
        }

        .tabs-border-card > .tabs-header .tabs-item {
            border: 1px solid transparent;
        }

            .tabs-border-card > .tabs-header .tabs-item:not(:hover):not(.active) {
                color: #909399;
            }

            .tabs-border-card > .tabs-header .tabs-item:not(.active):hover {
                background-color: #e9ecef;
            }

    .tabs-border-card.tabs-top .tabs-header {
        border-bottom: 1px solid #e4e7ed;
    }

    .tabs-border-card.tabs-bottom .tabs-header {
        border-top: 1px solid #e4e7ed;
    }

    .tabs-border-card.tabs-top .tabs-header .tabs-item {
        margin-top: -1px;
    }

        .tabs-border-card.tabs-top .tabs-header .tabs-item:first-child {
            border-top-left-radius: 4px;
        }

    .tabs-border-card.tabs-left .tabs-header, .tabs-border-card.tabs-right .tabs-header {
        border-bottom-width: 0;
    }

    .tabs-border-card.tabs-top .tabs-header .tabs-nav-wrap:not(.is-scrollable) .tabs-item,
    .tabs-border-card.tabs-bottom .tabs-header .tabs-nav-wrap:not(.is-scrollable) .tabs-item {
        margin-left: -1px;
    }

    .tabs-border-card.tabs-left .tabs-item.active, .tabs-border-card.tabs-right .tabs-item.active {
        border-top-color: #dcdfe6;
        border-bottom-color: #dcdfe6;
    }

    .tabs-border-card.tabs-left .tabs-item {
        border-left: none;
    }

    .tabs-border-card.tabs-right .tabs-item {
        border-right: none;
    }

    .tabs-border-card.tabs-left .tabs-item.active {
        border-right-color: #fff;
    }

    .tabs-border-card.tabs-right .tabs-item.active {
        border-left-color: #fff;
    }

.tabs-bottom.tabs-border-card > .tabs-header .tabs-item:nth-child(2), .tabs-bottom.tabs-card > .tabs-header .tabs-item:nth-child(2), .tabs-bottom .tabs-left > .tabs-header .tabs-item:nth-child(2), .tabs-bottom .tabs-right > .tabs-header .tabs-item:nth-child(2), .tabs-top.tabs-border-card > .tabs-header .tabs-item:nth-child(2), .tabs-top.tabs-card > .tabs-header .tabs-item:nth-child(2), .tabs-top .tabs-left > .tabs-header .tabs-item:nth-child(2), .tabs-top .tabs-right > .tabs-header .tabs-item:nth-child(2) {
    padding-left: 20px;
}

.tabs-bottom.tabs-border-card > .tabs-header .tabs-item:last-child, .tabs-bottom.tabs-card > .tabs-header .tabs-item:last-child, .tabs-bottom .tabs-left > .tabs-header .tabs-item:last-child, .tabs-bottom .tabs-right > .tabs-header .tabs-item:last-child, .tabs-top.tabs-border-card > .tabs-header .tabs-item:last-child, .tabs-top.tabs-card > .tabs-header .tabs-item:last-child, .tabs-top .tabs-left > .tabs-header .tabs-item:last-child, .tabs-top .tabs-right > .tabs-header .tabs-item:last-child {
    padding-right: 20px;
}

.tabs-card > .tabs-header .tabs-nav-wrap:after, .tabs-border-card > .tabs-header .tabs-nav-wrap:after {
    content: none;
}

.tabs-card .tabs-item.is-closeable .tabs-item-text, .tabs-border-card .tabs-item.is-closeable .tabs-item-text {
    margin-right: 1rem;
    margin-left: 0rem;
}

.is-page .layout-main > .tabs {
    margin: -1rem;
    border: none;
    border-radius: unset;
    min-height: calc(100% + 2rem);
}
