@md_bar_height: 25px;
//底部操作栏高度
@footer_bar_height: 35px;

.btn-img {
    font-size: 15px;
    height: @md_bar_height;
    line-height: @md_bar_height;
}

.go-flex-bt-bar {
    position: fixed;
    right: 0;
    margin-right: 27%;
    bottom: 0;
    background-color: rgba(52, 52, 52, .5);
    width: 100%;
    margin-bottom: 4px;
    padding: 5px 0;
    padding-right: @def-padding-md;

    .go-tool-bar {
        height: @toolbarHeight - 5;
        line-height: @toolbarHeight  - 5;

        .go-btn-simple {
            margin-left: @def-margin-md;
        }
    }
}

.go-ivew-group {
    &.ivu-btn-group-small > .ivu-btn {
        height: @md_bar_height;
        padding: 2px 7px 2px;
    }

    //不可点击状态
    &.ivu-btn-group-small > .ivu-btn.disabled {
        cursor: not-allowed;
    }

    //激活状态下的按钮 不可点击状态
    &.ivu-btn-group-small > .ivu-btn.ivu-btn-primary.disabled:hover {
        background-color: @btn-hover-color;
        border: 1px solid @btn-hover-color;
    }

    //普通的按钮 不可点击状态
    &.ivu-btn-group-small > .ivu-btn.disabled:hover {
        background-color: @dis-btn-bg-color;
        color: @dis-btn-text-color;
        border: 1px solid #dcdee2;
    }
}

.go-tool-bar .goBtn.ivu-btn-small {
    height: @md_bar_height;
    padding: 2px 12px 2px;
    &.emptyText{
        padding: 2px 4px;
    }
}

//上传文件的按钮
.go-tool-bar .go_upload_btn {
    padding: 1px 15px 4px;
    border-radius: 40px;

    &:hover {
        background-color: @btn-hover-color;
        color: @whiteFFF;
    }

    &.disabled:hover {
        background-color: @dis-btn-bg-color;
        color: @dis-btn-color;
    }
}


/*
    go-tool-bar 组件样式
*/
div.go-tool-bar {
    position: relative;
    .clearfix();

    .btn_container {
        width: auto;
        height: 28px;
        overflow: hidden;
    }

    //工具栏下的按钮样式信息
    .btn-item {
        float: left;
        margin-left: @padding-base-vertical;
        //第一个按钮
        &:first-of-type {
            margin-left: 0;
        }

        //下拉按钮集合
        .btn-select-item.disabled {
            .go-btn-select {
                cursor: not-allowed;
                background-color: @dis-btn-bg-color;
                color: @dis-btn-color !important;

                &:hover {
                    background-color: @dis-btn-bg-color;
                    color: @dis-btn-color;
                    border: 1px solid #dcdee2;

                    i {
                        color: @dis-btn-color;
                    }
                }
            }

        }
    }

    .more_icon {
        position: absolute;
        padding-right: 10px;
        top: 0;
    }

    .tool_right_area {
        position: absolute;
        float: right;
        top: 0;
        right: 10px;
    }
}


.sub-label {
    margin-top: 15px;
}

/**
下拉按钮菜单的样式
 */
div.go_son_btns {
    background-color: @whiteFFF;
    position: absolute;
    z-index: 9999;
    border: 1px solid #D5E0E8;
    left: -1px;
    top: 0;
    transition: opacity .5s linear 1s;
    width: 140px;

    //下拉子项按钮的样式
    ul.common_order_menu{
        //图标的样式信息
        .ivu-icon,.goingicon{
            font-size: 15px;
            line-height: 30px;
        }
    }
    ul > li {
        width: 100%;
        cursor: pointer;
        list-style: none;
        padding: 0 10px;

        &.splitLine {
            padding: 0;

            div {
                height: 1px;
                border-bottom: 1px solid @ctl-border-com-color;
            }
        }

        a {
            color: @text-color;
            height: 30px;
            line-height: 30px;

            &.split_line {
                height: 10px;
                line-height: 10px;
            }
        }
    }
}


div.go_son_btns ul li:hover {
    background-color: @btn-hover-color;
    color: @whiteFFF;
}

div.go_son_btns ul li:hover a {
    background-color: @btn-hover-color;
    color: @whiteFFF;
}

div.go_son_btns ul li a:hover {
    color: @whiteFFF;
}


.stadic_layout_footer {
    height: @footer_bar_height;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: block;
    text-align: center;
    border-top: 1px solid @border_color;
    padding-top: 4px;
}

.stadic_layout_footer a {
    display: inline-block;
    margin-left: 10px;
}

.stadic_layout_footer a:first-of-type {
    display: inline-block;
    margin-left: 0;
}

.common_button_emphasize {
    background: @btn-hover-color;
    color: #ffffff;
    border: 1px solid @btn-hover-color;
}

.common_button_emphasize:hover {
    background-color: #009def;
    color: #ffffff;
    border: solid 1px #009def;
}

.common_button_gray {
    background: #999999;
    color: #ffffff;
    border: solid 1px #999999;
}

.common_button_gray:hover {
    background: #666666;
    color: #ffffff;
    border: solid 1px #999999;
}


.common_button {
    font-size: 12px;
    border-radius: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95px;
    padding: 0 17px;
    line-height: 27px;
    height: 28px;
    vertical-align: middle;
    _vertical-align: baseline;
    display: inline-block;
}

.button_container {
    background: #fafafa;
}

//checkbox btn的样式
.go-btn-checkbox-wrapper {
    line-height: 18px;
    cursor: pointer;

    .goingicon {
        position: relative;
        top: 2px;
    }

    .go-checkboxoutlineblank {
        color: @btn-hover-color;
    }

    &.disabled {
        cursor: not-allowed;
        color: @dis-btn-text-color;

        .goingicon {
            color: @dis-btn-color !important;
            background-color: @dis-btn-color;
        }
    }
}

.goBtn.ivu-btn-small {
    padding: 1px 12px 2px;
}

.ivu-btn > .ivu-icon.goingicon {
    font-size: 12px;
}

//常规按钮的样式信息
.btnItem {
    align-items: center;
    box-sizing: border-box;
    //图标按钮的样式
    .goIconBtn {
        &:hover {
            i {
                color: @btn-hover-color !important;
                cursor: pointer;
            }
        }
    }

    .goBtn {
        border: 1px solid @ctl-border-com-color;
        color: @baseBlackFontColor;
        background-color: @whiteFFF;

        .flex-div();
        height: @btnHeight;
        line-height: @btnHeight;
        padding: 0 @btnPadding;
        cursor: pointer;
        border-radius: @goBtnRadius;
        transition: all 0.15s ease-in-out;


        //按钮的图片
        .btnImg {
            position: relative;
            padding: 0 4px;
            top: -2px;
            padding-left: 0;

            i {
                line-height: @btnHeight - 4;
            }

            &:hover {
                i {
                    color: @whiteFFF !important;
                }
            }
        }

        &.disabled,
        &[disabled],
        fieldset[disabled] & {
            cursor: not-allowed;
            .opacity(.65);
            .box-shadow(none);

            background-color: @border_color;
            //按钮的图片
            .btnImg {
                &:hover {
                    i {
                        color: @baseBlackFontColor;
                    }
                }
            }
        }

        &:hover {
            .button-color(tint(@btn-primary-color, 20%); tint(@btn-primary-bg, 20%); tint(@btn-primary-border, 20%));
            color: @whiteFFF;

            i {
                color: @whiteFFF;
            }
        }

    }

    //按钮的文字
    .btnLabel {
        font-size: @font-size-small;
    }


    &:hover {
        color: @whiteFFF;

        i {
            color: @whiteFFF;
        }
    }

    //图标按钮 不可点击的事件
    &.btn-icon-item.disabled {
        i {
            color: @dis-btn-color !important;
            cursor: not-allowed;
        }

    }

}

.btnItem {
    //缺少按钮
    .goBtn.btn-default {
        .button-variant(@btn-default-color, @btn-default-bg, @btn-default-border);
    }

    //主题按钮
    .goBtn.btn-primary {
        .button-variant(@btn-primary-color, @btn-primary-bg, @btn-primary-border);
    }

    //灰色按钮
    .goBtn.btn-gray {
        .button-variant(@btn-gray-color, @btn-gray-bg, @btn-gray-border);
    }

    .goBtn.btn-success {
        .button-variant(@btn-success-color, @btn-success-bg, @btn-success-border);
    }

    .goBtn.btn-info {
        .button-variant(@btn-info-color, @btn-info-bg, @btn-info-border);
    }

    .goBtn.bt-loading {
        cursor: not-allowed;
    }
}


// Block button
// --------------------------------------------------

.btn-block {
    display: block;
    width: 100%;
}

// Vertically space out multiple block buttons
.btn-block + .btn-block {
    margin-top: 5px;
}

