@import "ladder-base";

.yui-tform-control{
    text-align: right;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px solid @background-lighter;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    button{
        height: 30px;
        min-width: 90px;
        line-height: 30px;
        margin-right: 5px;
    }
}

.yui-tform-tabletemplate {
    /*margin-top: 5px;*/
    border-spacing: 0;
    border-collapse: collapse;
    /*background-color: transparent;*/
    display: table;
    /*max-width: 100%;*/
    box-sizing: border-box;
    color: #333;
    width: 100%;
    /*background: #fff;*/
    .js-title,.js-hint{
        font-size:@font-small;
    }
    input,select,textarea{
        position: relative;
        height: 34px;
        width: 100%;
        border-radius: 4px;
        margin: 0 auto;
        padding: 0 6px;
        outline: none;
        vertical-align: middle;
        box-sizing: border-box;
    }
    textarea{
        padding:6px;
    }
    input[type='text']:focus{
        border:solid 1px @ladder-color-lighter;
    }
    textarea{
        height: 60px;
    }
    /*手机号*/
    .numberInput::-webkit-outer-spin-button,.numberInput::-webkit-inner-spin-button{
        -webkit-appearance: none !important;
        margin: 0;
    }
    select>option{
        padding: 10px 4px;
        border-bottom: 1px dotted #ddd;
    }
    //必填
    .required{
        color: rgba(255, 0, 0, 0.8);
        margin-right: 3px;
    }
    input[type='radio'],input[type='checkbox']{
        width: 18px;
        height: 24px;
        //margin-left: 10px;
        margin: 0 3px;
        line-height: 100%;
        cursor: pointer;
    }
    .sign{
        position: absolute;
        display: inline-block;
        padding: 2px 0 0 4px;
        height: 100%;
        right: 0;
        line-height: 30px;
        color: rgba(255, 0, 0, 0.8);
    }
    .block-caption .sign{
        left: 0;
    }
    .js-textfield{
        width: auto;
        //margin-right: 10px;
    }
}
.yui-tform-head{
    height: 35px;line-height: 30px;
    padding: 4px 4px 0 0;
    border-bottom:1px solid #ccc;
    box-sizing: border-box;
    font-size:@font-small;
    .title{
        height: 100%;
        border-bottom: 2px solid red;
        padding: 4px 10px;
        text-align: center;
        min-width: 80px;
        color: #999;
        box-sizing: border-box;
    }
    .control .up:before{
        content: "\e664";
    }
    .control .down:before{
        content: "\e661";
        color: red;
    }
}
table.yui-tform-tabletemplate{
    /*display: block;*/
    vertical-align: middle;
    border-color: inherit;
}
table.yui-tform-tabletemplate .js-title{
    width: 120px;
    text-align: center;
}
.yui-tform-tabletemplate tbody{
    display: table-row-group;
    vertical-align: middle;
    border-color: inherit;
}
.yui-tform-tabletemplate tr {
    display: table-row;
    vertical-align: inherit;
    border-color: inherit;
    background-color: #FFF;
}
.yui-tform-tabletemplate tr:hover{
    /*background-color: #F5F5F5;*/
}
.yui-tform-tabletemplatee th {
    padding: 8px 10px;
    vertical-align: middle;
    text-align: center;
    background-color: #f8f8f8;
    color: #999;
    /*border: 1px solid #ddd;*/
}
.yui-tform-tabletemplate td {
    padding: 4px;
    vertical-align: middle;
    /*border: 1px solid #ddd;*/
}

.yui-tform-tabletemplate td.td-form{
    width:250px;
    text-align: left;
    position: relative;
}
.yui-tform-tabletemplate .js-formarea{
    transition: all 0.3s;
}
.yui-tform-tabletemplate .current{
    background-color: #eaeaea;
}
/*流式布局方式*/
ul.yui-tform-tabletemplate li{
    list-style: none;
    display: inline-block;
    line-height: 30px;
    float: left;
    margin-top: 5px;
}
.block-caption{
    float: left;
    width: 100px;
    line-height: 30px;
    text-align: center;
    color: #666;
    min-height: 1px;
    position: relative;
}
.block-form{
    float: left;
    width: 200px;
    height: 100%;
    position: relative;
    .js-checkradiobox{
        display: table-cell;
        height: 30px;
        line-height: 30px;
    }
    .block-clear{
        position: absolute;
        width: 25px;
        text-align: center;
        right: 10px;
        top:2px;
        z-index: 1;
        height: 100%;
        line-height: 30px;
        transition: all 0.5s;
        cursor: pointer;
        color: #ccc;
        font-size: @font-small;
        &:hover{
            font-weight: bolder;
            color: #0a001f;
        }
    }
}
.td-form .block-clear{
    position: absolute;
    width: 25px;
    text-align: center;
    display: inline-block;
    right: 15px;
    top: 6px;
    z-index: 1;
    height: 26px;
    line-height: 28px;
    transition: all 0.5s;
    cursor: pointer;
}


/*19-02-28By An.Hr*/
/*自定义垂直排列*/
.ladder-design-mainview .formview{
    padding: 10px;
}
.yui-tform-ul{
    display: table;
}
.yui-tform-ul>li{
    display: table-row !important;
    float: none !important;
    height: 40px;
    border: #d5d5d5 solid 1px;
}
.yui-tform-ul li .js-formarea{
    display: table-row !important;
    margin: 0;
}
.yui-tform-ul li .td,.yui-tform-ul li .th{
    display:table-cell;
    vertical-align: middle;
    word-break: break-all;
    float: none !important;
    line-height: unset !important;
}
.yui-tform-ul li .td{
     padding: 10px 20px;
 }
.yui-tform-ul li .block-caption{
    width: 10%;
    min-width: 160px;
    background: #ecf6ff;
}
.yui-tform-ul li .block-form{
    /*width: calc(100% - 103px);*/
    /*min-height: 40px;*/
}
.yui-tform-ul li .block-form input{
    display: block;
    width: 200px;
    height: 30px;
    line-height: 30px;
    text-indent: 20px;
    margin: 0;
    padding: 0;
    background: transparent;
    outline: none;
    border: #dbdbdb solid 1px;
}
.yui-tform-ul li .block-form input[type=radio]{
    position: relative;
    width: 0;
    height: 0;
    border: #d5d5d5 solid 2px;
    background: #fff;
}
.yui-tform-ul li .block-form input[type=radio]:before{
    position: absolute;
    left: 0;
    top: -13px;
    display: block;
    content: "";
    width: 20px;
    height: 20px;
    border: #d5d5d5 solid 2px;
    background: #fff;
    border-radius: 50%;
}
.yui-tform-ul li .block-form select{
    display: block;
    border: #d5d5d5 solid 1px;
    margin: 0;
    width: 200px;
    height: 30px;
    line-height: 30px;
}
.yui-tform-ul li .block-form img{
    display: block;
    position: relative;
    /*border: #d5d5d5 solid 1px;*/
    border: 0;
    border-radius: 4px;
    overflow: hidden;
 }
.yui-tform-ul li .block-form img:before{
    position: absolute;
    left: 30px;
    top: 42px;
    font-family: "ladderfont";
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: '\e6fb';
    font-size: 40px;
    color: #ccc;
}
.yui-tform-ul li .block-form textarea{
    display: block;
    height: 120px;
    width: 450px;
    resize: none;
    background: transparent;
    outline: none;
    border: #dbdbdb solid 1px;
    padding: 0 10px;
    margin: 0;
}
.imageuploadview .webuploader-pick{
    padding: 0;
    color: #fff;
}
.imageuploadview .uploadbtn{
    border-radius: 4px;
    background-color: #00b7ee;
    outline: none;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: all 0.8s;
}
.imageuploadview .uploadbtn:hover{
    background-color: #0091c0;
}

.ladder-tform-iframe{
    border: none;
}