@go-form-body-prefix-cls: ~"@{css-prefix}form-body";
@go-form-row-prefix-cls: ~"@{css-prefix}form-row";
@go-input-prefix-cls: ~"@{css-prefix}input";

//formbody的样式信息
.@{go-form-body-prefix-cls} {
    background-color: @form-bg-color;
}

.ivu-row.go-form-row {
    .@{go-form-row-prefix-cls} {
        margin-bottom: 0;
    }
}

.start-require {
    color: #FF0000;
}

.go-common-list-content {
    width: 100%;
    line-height: 30px;
    min-height: 25px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 6px;
}

//数字输入框
.number_input {
    .upAndDownBtns {
        width: 34px;
    }

    //数字 前后点击按钮
    .prepend_btn, .append_btn {
        font-size: inherit;
        font-weight: normal;
        color: @input_btn_color;
        text-align: center;
        background-color: @input_dis_btn_bg;
        line-height: 14px;
        cursor: pointer;

        &.disabled {
            color: @input_btn_dis_color;
            cursor: not-allowed;
        }
    }

    //数组 递增按钮
    .prepend_btn {
        height: 14px;
        left: -1px;
        border-left: 1px solid @input-border-color;
        border-bottom: 1px solid @input-border-color;
        top: 2px;
        position: relative;
        border-radius: 0 @border-radius-small 0 0;
    }

    //数组 递减按钮
    .append_btn {
        left: -1px;
        position: relative;
        top: 2px;
        height: 14px;
        border-left: 1px solid @input-border-color;
        border-radius: 0 0 @border-radius-small 0;
    }
}

//这里是go-form-row的样式信息
.@{go-form-row-prefix-cls} {
    .clearfix();
    position: relative;
    margin-bottom: @row-margin-bottom;
    min-height: @formBaseHeight;
    line-height: @formBaseHeight;

    .go-check-cell {
        position: relative;
    }

    .go-label {
        float: left;
        color: @text-color;
        font-size: @font-size-base;
        min-width: 110px;
        .text-overflow();
        text-align: right;
    }

    .go-left-label {
        min-width: 110px;
        .text-overflow();
        text-align: left;
    }

    //输入区域的样式信息
    .go-content {
        .ivu-tooltip-popper[x-placement^="left"]{
            padding-top: 2px;
        }
        //tooltip的样式
        .ivu-tooltip-inner{
            padding: 4px 12px;
            min-height: 26px;
        }
        &.inputSuffix{
            float: left;
            overflow: unset;
        }
        //较大输入框的宽度
        &.input-xlarge {
            width: @input-xlarge !important;
        }

        //较小输入框的宽度
        &.input-small {
            width: @input-small !important;
        }

        //中等输入框的宽度
        &.input-medium {
            width: @input-medium !important;
        }

        //大输入框的宽度
        &.input-large {
            width: @input-large !important;
        }

        //离左边的边距
        padding-left: @input-padding-horizontal;
        //清空浮动
        .clearfix();
        align-items: center;
        align-self: stretch;
        width: auto;
        overflow: hidden;
        color: @text-color;


        //关闭按钮的样式信息
        .close-icon-div {
            position: absolute;
            color: @input-focus-border-color;
            z-index: @zindex-input-clear-icon;
            cursor: pointer;
            font-size: @font-size-large;
        }

        //前后存在按钮的时候的样式
        .@{go-input-prefix-cls}-group-prepend, .@{go-input-prefix-cls}-group-append {
            font-size: inherit;
            font-weight: normal;
            color: @input-color;
            text-align: center;
            background-color: @input-group-bg;
            border: 1px solid @input-border-color;
            border-radius: 0 @border-radius-small @border-radius-small 0;
            position: absolute;
            top: 1px;
            right: 0;
            line-height: @formBaseHeight - 4;
            height: 30px;
            cursor: pointer;
            padding: 0 15px;

            // Reset Select's style in addon
            .@{css-prefix}select {
                margin: -(@input-padding-vertical-base + 1) (-@input-padding-horizontal); // lesshint spaceAroundOperator: false

                &-selection {
                    background-color: inherit;
                    margin: -1px;
                    border: 1px solid transparent;
                }

                &-visible .@{css-prefix}select-selection {
                    box-shadow: none;
                }
            }
        }

        .@{go-input-prefix-cls}-group-append {
            &.disabled {
                color: #C0C4CC;
                cursor: not-allowed;
            }
        }

        .right_append_div {
            position: absolute;
            right: 0;
            top: 0;
        }

        .@{go-input-prefix-cls}-group-prepend {
            left: 0;
            right: inherit;
            margin-left: 7px;
            border-radius: @border-radius-small 0 0 @border-radius-small;

            &.disabled {
                color: #C0C4CC;
                cursor: not-allowed;
            }
        }

        // prefix & suffix
        .@{go-input-prefix-cls}-prefix, .@{go-input-prefix-cls}-suffix {
            width: 32px;
            height: 100%;
            text-align: center;
            position: absolute;
            left: @input-padding-horizontal;
            top: 0;
            z-index: 1;

            i {
                font-size: 16px;
                line-height: @input-height-base;
                color: @subsidiary-color;
            }
        }

        //后缀图标的样式
        .@{go-input-prefix-cls}-suffix {
            left: auto;
            right: 0;
        }

        //错误图标的样式
        .error-icon-div {
            cursor: pointer;
            position: absolute;
            color: @brand-danger;
            font-size: @font-size-large;
            z-index: @zindex-input-clear-icon;
        }

        //输入框的相关样式
        input[type="text"], input[type="password"], input[type="number"] {
            border: 1px solid @input-border-color;
            height: @input-height-base - 2;
            width: @inputEl100Wid;
            padding-left: @input-padding-horizontal;
            border-radius: @border-radius-small;
            transition: border .2s ease-in-out, background .2s ease-in-out, box-shadow .2s ease-in-out;

            //输入框hover的样式信息
            &:hover {
                border-color: @input-hover-border-color;
            }

            //输入框获取焦点的样式信息
            &:focus {
                border-color: @input-focus-border-color;
                outline: none;
            }

            //输入框获取焦点的样式信息
            &.active {
                border-color: @input-focus-border-color;
                outline: none;
            }

            //如果存在前缀图片
            &.hasPrefixIcon {
                padding-left: @has-pre-icon-padding-left;
            }

            //如果存在后缀图片
            &.hasSuffixIcon {
                padding-right: @has-pre-icon-padding-right;
            }

            //存在校验信息的样式
            &.error-input {
                border: 1px solid @input-error-border-color;
            }

            //不可以输入的样式信息
            &.input-disabled, &[disabled] {
                background-color: @input-disabled-bg;
                opacity: 1;
                cursor: @cursor-disabled;
                border-radius: @border-radius-small;
                //不可以输入的状态下的hover样式
                &:hover {
                    border: 1px solid @input-border-dis-color;
                }

                &:focus {
                    border-color: @input-border-dis-color;
                    outline: none;
                }
            }
        }

        .go-maxlength-label {
            color: #999;
        }

        .max_info {
            color: #999;
            position: absolute;
            top: 0;
            right: 0;
        }

        //不可以输入的样式信息
        .input-disabled, input[disabled] {
            background-color: @input-disabled-bg;
            opacity: 1;
            cursor: @cursor-disabled;
            border-radius: @border-radius-small;
            //不可以输入的状态下的hover样式
            &:hover {
                border-radius: @border-radius-small;
                border: 1px solid @input-border-dis-color;
            }
        }

        //如果是下拉组件的时候 的相关样式
        .go-common-drop {
            input[type="text"] {
                &:hover {
                    border-width: 0;
                }

                &:focus {
                    border-width: 0;
                }
            }
        }

        .go-content-body {
            width: 100%;

            .go-btn {
                border: 1px solid @border_color;
                border-radius: 4px;
                text-align: center;
                cursor: pointer;

                &:hover {
                    background-color: #6EB0FC !important;
                    color: @whiteFFF !important;
                }
            }

            .go-com-icon-div {
                border: 1px solid @input-border-color;
                border-radius: 4px;
                text-align: center;
                vertical-align: center;
            }

            .go-com-img-div img {
                border: 1px solid @input-border-color;
                border-radius: 4px;
                text-align: center;
                vertical-align: center;
            }
        }

        &.w100b .go-content-body {
            width: 85%;
            position: relative;
        }

        //多文本输入框的样式
        textarea {
            width: @inputEl100Wid;
            min-height: @textArea-def-height;
            padding: @input-padding-vertical-small @input-padding-horizontal;
            border: 1px solid @input-border-color;
            resize: none;
            line-height: @input-height-small;
            border-radius: @border-radius-small;

            //输入框的hover样式信息
            &:hover {
                border: 1px solid @input-hover-border-color;
            }

            //输入框获取焦点的样式信息
            &:focus {
                border: 1px solid @input-focus-border-color;
            }

            //输入框不可以编辑状态的样式
            &[disabled], &.disabled {
                color: #C0C4CC;
                background-color: @input-disabled-bg;
                cursor: not-allowed;
                //如果是不可以编辑 则hover下的边框颜色跟以前一样
                &:hover {
                    border: 1px solid @input-border-color;
                }
            }

            //错误提醒消息
            &.error-input {
                border: 1px solid @input-error-border-color;
            }
        }
    }

    //当存在右边追加内容的样式
    .go-content.rightSlot {
        display: flex;

        .go-content-body {
            float: left;
        }

        .rightIcon {
            float: left;
            margin-left: 5px;
            display: inline-block;

            i {
                font-size: 18px;
            }
        }
    }
}


.go-upload-excel-win {
    padding: 0 15px 10px 15px;
}

//小间隙的行
.go-small-row {
    .@{go-form-row-prefix-cls} {
        min-height: @form-sm-height;
        line-height: @form-sm-height;

        .go-common-list-content {
            line-height: @form-sm-height;
            min-height: @form-sm-height;
        }
    }
}

//小输入框
.small_input_row {
    &.@{go-form-row-prefix-cls} {
        .go-content input[type="text"], .go-form-row .go-content input[type="password"], .go-form-row .go-content input[type="number"] {
            height: @form-sm-height;
            margin-top: 2px;
        }
    }
}

.remark_info{
    position: absolute;top: -2px;font-size: 16px;cursor: pointer;
}

//弹出窗口的form对象 主要是指js弹出的form对象
.going-win-form {

    width: 100%;
    height: 100%;
    padding: 10px 0;
    box-sizing: border-box;

    //清空内容图标的样式
    .go-form-row{
        .go-content {
            position: relative;
            .close-icon-div {
                top: -1px;
                font-size: 16px;
                cursor: pointer;
                position: absolute;
                display: none;
                line-height: 30px;
            }
            //如果是多文本输入
            &.text-area-ctl{
                .go-maxlength-label{
                    position: absolute;top:44px;display: block
                }

            }
            //radio控件的样式
            .mt-radio.mt-radio-outline{
                display: inline-block;
                margin-right: 12px;
            }
        }

    }


}
