@collapse-prefix-cls: ~"@{css-prefix}collapse";

.@{collapse-prefix-cls}{
    overflow: hidden;
    background-color: @background-color-base;
    border-radius: 3px;
    border: 1px solid @border-color-primary;

    & > &-item{
        border-top: 1px solid @border-color-primary;
        &:first-child {
            border-top: 0;
        }

        > .@{collapse-prefix-cls}-header{
            height: 38px;
            line-height: 38px;
            padding-left: 12px;
            font-size: @font-size-base;
            color: @text-color;
            border-bottom:1px solid @border-color-primary ;
            background: @header-color;
            cursor: pointer;
            position: relative;

            > i{
                width: 36px;
                height: 32px;
                line-height: 32px;
                margin: 2px 2px 0px 0px;
                font-size: 20px;
                float: right;
                text-align: center;
                color: @text-color;
                &:hover {
                    color: @selected-color;
                    background: #d9ebf7;
                    border-radius: @btn-border-radius;
                }
                //transition: transform @transition-time @ease-in-out;
            }
        }
    }
    &  > &-item&-item-active > &-header > i{
        transform: rotate(180deg);
    }

    &-content{
        //display: none;
        overflow: hidden;
        color: @text-color;
        padding: 0 16px;
        background-color: #fff;

        & > &-box {
            padding-top: 16px;
            padding-bottom: 16px;
        }
    }
    &-item-active > &-content{
        //display: block;
    }
    &-item:last-child {
        > .@{collapse-prefix-cls}-content {
            border-radius: 0 0 3px 3px;
        }
    }
}
