@tabs-panels-prefix-cls: ~"@{css-prefix}tabs-panels";
//@tabs-prefix-cls: ~"@{css-prefix}tabs";
//@tabs-bar-prefix-cls: ~"@{css-prefix}tabs-bar";
//@tabs-content-prefix-cls: ~"@{css-prefix}tabs-content";
//@tabs-tabpane-prefix-cls: ~"@{css-prefix}tabs-tabpane";


.@{tabs-panels-prefix-cls} {
    //.@{tabs-prefix-cls} {
    //    &-bar {
    //        margin-bottom: 0px;
    //    }
    //    &&-card > &-bar &-tab {
    //        margin-right: 0px;
    //    }
    //    & {
    //        .@{tabs-prefix-cls}-tabpane {
    //            border-bottom: 1px solid #DCDEE2;
    //            border-left: 1px solid #DCDEE2;
    //            border-right: 1px solid #DCDEE2;
    //        }
    //    }
    //}
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    color: @text-color;
    height: 100%;
    display: flex;
    flex-direction: column;
    .clearfix;

    &-bar {
        outline: none;
    }

    &-ink-bar {
        height: 2px;
        box-sizing: border-box;
        background-color: @primary-color;
        position: absolute;
        left: 0;
        bottom: 1px;
        z-index: 1;
        transition: transform .3s @ease-in-out;
        transform-origin: 0 0;
    }

    &-bar {
        border-bottom: 1px solid @border-color-base;
    }

    &-content {
        width: 100%;
        overflow: hidden;
        //border-bottom: 1px solid #DCDEE2;
        //border-left: 1px solid #DCDEE2;
        //border-right: 1px solid #DCDEE2;
    }

    &-tab {
        cursor: pointer;
        //height: 32px;
        display: flex;
        align-items: center;
    }

    &-nav-container {
        margin-bottom: -1px;
        line-height: @line-height-base;
        font-size: @font-size-base;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        position: relative;
        .clearfix;
    }

    &-nav-container:focus {
        outline: none;
        .@{tabs-prefix-cls}-tab-focused {
            border-color: @link-hover-color !important;
        }
    }

    &-nav-container-scrolling {
        padding-left: 32px;
        padding-right: 32px;
    }

    &-nav-wrap {
        overflow: hidden;
        margin-bottom: -1px;
    }

    &-nav-scroll {
        overflow: hidden;
        white-space: nowrap;
    }

    &-nav-right{
        float: right;
        margin-left: 5px;
    }

    &-nav-prev{
        position:absolute;
        line-height: 32px;
        cursor: pointer;
        left:0;
    }

    &-nav-next{
        position:absolute;
        line-height: 32px;
        cursor: pointer;
        right:0;
    }

    &-nav-scrollable{
        padding: 0 12px;
    }

    &-nav-scroll-disabled{
        display: none;
    }

    &-nav {
        display: flex;
        padding-left: 0;
        margin: 0;
        float: left;
        list-style: none;
        box-sizing: border-box;
        position: relative;

        &:before,
        &:after {
            display: table;
            content: " ";
        }

        &:after {
            clear: both;
        }



        .@{tabs-prefix-cls}-tab {
            display: inline-block;
            height: 100%;
            padding: 8px 16px;
            margin-right: 16px;
            box-sizing: border-box;
            cursor: pointer;
            text-decoration: none;
            position: relative;
            transition: color .3s @ease-in-out;

            &:hover {
                color: @link-hover-color;
            }

            &:active {
                color: @link-active-color;
            }
            .@{css-prefix-iconfont} {
                width: 14px;
                height: 14px;
                margin-right: 8px;
            }
        }

        .@{tabs-prefix-cls}-tab-disabled {
            cursor: not-allowed;
            color: #ccc;
        }

        .@{tabs-prefix-cls}-tab-active {
            color: @primary-color;
        }
    }
    &-mini &-nav-container {
        font-size: @font-size-base;
    }

    &-mini &-tab {
        margin-right: 0;
        padding: 8px 16px;
        font-size: @font-size-small;
    }

    & {
        .@{tabs-prefix-cls}-content-animated {
            display: flex;
            flex-direction: row;
            will-change: transform;
            transition: transform .3s @ease-in-out;
        }

        .@{tabs-prefix-cls}-tabpane {
            flex-shrink: 0;
            width: 100%;
            transition: opacity .3s;
            opacity: 1;
            outline: none;
        }

        .@{tabs-prefix-cls}-tabpane-inactive {
            opacity: 0;
            height: 0;
        }
    }

    // card style
    &&-card >&-content {
        border-bottom: 1px solid #DCDEE2;
        border-left: 1px solid #DCDEE2;
        border-right: 1px solid #DCDEE2;
    }

    &&-card > &-bar &-nav-container {
        //height: 32px;
    }
    &&-card > &-bar &-ink-bar {
        visibility: hidden;
    }
    &&-card > &-bar &-tab {
        margin: 0;
        //margin-right: 4px;
        line-height: initial;
        height: 31px;
        float: left;
        padding: 5px 16px 4px;
        border: 1px solid @border-color-base;
        border-bottom: 0;
        border-radius: @btn-border-radius @btn-border-radius 0 0;
        transition: all 0.3s @ease-in-out;
        background: @table-thead-bg;
    }
    &&-card > &-bar &-tab-active {
        height: 32px;
        padding-bottom: 5px;
        background: #fff;
        transform: translateZ(0);
        border-color: @border-color-base;
        color: @primary-color;
    }
    &&-card > &-bar &-nav-wrap {
        margin-bottom: 0;
    }
    &&-card > &-bar &-tab .@{css-prefix-iconfont}-ios-close {
        width: 0;
        height: 22px;
        font-size: 22px;
        margin-right: 0;
        color: @legend-color;
        text-align: right;
        vertical-align: middle;
        overflow: hidden;
        position: relative;
        top: -1px;
        transform-origin: 100% 50%;
        transition: all 0.3s @ease-in-out;
        &:hover {
            color: #444;
        }
    }

    &&-card > &-bar &-tab-active .@{css-prefix-iconfont}-ios-close,
    &&-card > &-bar &-tab:hover .@{css-prefix-iconfont}-ios-close {
        width: 22px;
        transform: translateZ(0);
        margin-right: -6px;
    }

    // singleCard style
    &&-singleCard >&-content {
        border-bottom: 1px solid #DCDEE2;
        border-left: 1px solid #DCDEE2;
        border-right: 1px solid #DCDEE2;
    }
    &&-singleCard > &-bar &-nav-container {
        //height: 32px;
    }
    &&-singleCard > &-bar &-ink-bar {
        visibility: hidden;
    }
    &&-singleCard > &-bar &-tab {
        margin: 0;
        line-height: initial;
        height: 31px;
        float: left;
        padding: 5px 16px 4px;
        border-radius: @btn-border-radius @btn-border-radius 0 0;
        box-sizing: border-box;
    }
    &&-singleCard > &-bar &-tab-active {
        height: 32px;
        padding-bottom: 5px;
        background: #fff;
        border: 1px solid @border-color-base;
        border-bottom: 0;
        border-color: @border-color-base;
        color: @primary-color;
        box-sizing: border-box;
    }
    &&-singleCard > &-bar &-nav-wrap {
        margin-bottom: 0;
    }
    &&-singleCard > &-bar &-tab .@{css-prefix-iconfont}-ios-close {
        width: 0;
        height: 22px;
        font-size: 22px;
        margin-right: 0;
        color: @legend-color;
        text-align: right;
        vertical-align: middle;
        overflow: hidden;
        position: relative;
        top: -1px;
        &:hover {
            color: #444;
        }
    }

    &&-singleCard > &-bar &-tab-active .@{css-prefix-iconfont}-ios-close,
    &&-singleCard > &-bar &-tab:hover .@{css-prefix-iconfont}-ios-close {
        width: 22px;
        margin-right: -6px;
    }
}
.@{tabs-panels-prefix-cls}-no-animation{
    > .@{tabs-panels-prefix-cls}-content {
        transform: none!important;

        > .@{tabs-panels-prefix-cls}-tabpane-inactive {
            display: none;
        }
    }
}
