@import "../../../../yylib2/style/index.less";

@ui-prefix-refer : yyui-pfrefer;
.@{ui-prefix-refer}{
    &-tab{
        padding-left: 5px;
        padding-right: 5px;
    }
    &-nodata{
        display: block;
        text-align: center;
        color: #989898;
        font-size: 12px;
        padding: 15px;
    }
    &-footer{
        border-top: 1px solid #e2e2e2;
        padding-top: 5px;
        .yyui-button{
            min-width:60px;
        }
    }
    &-selected{
        padding: 5px;
        &-label{
            color: #989898;
            font-size: 12px;
            font-family:@font-family;
        }
    }
    &-button-ghost{
        width: 48%;
        border-radius: 4px;
        font-size: 10px;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    &-buttons{
        text-align: right;
        padding-top: 10px;
        .yyui-button{
            margin-left: 10px;
        }
    }
    &-buttons-muiti{
        text-align: right;
        padding-top: 60px;
    }
    &-pagination{
        text-align: right;
        padding-top: 10px;
    }
    &-dialog-modal.ant-modal-body{
        padding: 5px 15px 15px 15px !important;
    }
    //树参照
    &-tree{
        .@{ui-prefix-refer}-selected{
            border-top: 1px solid #e2e2e2;
            border-bottom: 1px dashed #e2e2e2;
        };
    }
    //表参照
    &-grid{
        //搜索栏
        &-search{
            text-align: right;
            padding-right: 10px;
        }
    }
    //树表参照-搜索栏
    &-treegrid-search{
        .yyui-inputbutton{
            //display: inline-block;
            //width: 45%;
            float: right;
            text-align: right;
            margin-bottom: 10px;
        }
    }
    //分页组件靠右
    &-pagination .yyui-pagination{
        display: inline-block;
    }
}
.rc-trigger-popup.yyui-refer-trigger-popup {
    padding: 0;
    font-size: 12px;
    max-height: 300px;
    overflow: auto;
    border: 1px solid #d9d9d9;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    background-color: #fff;
    box-shadow: 3px 3px 3px #ededed;
}
.yyui-refer-trigger-popup-content{
    padding: 8px 12px 8px 12px;
    cursor: pointer;
}
.yyui-refer-trigger-popup-content.curhover{
    background-color: #eaf8fe;
}
// .yyui-refer-trigger-popup-content:hover{
// }
.yyui-refer-treegrid,.yyui-refer-grid{
    table{
        >thead{
            >tr{
                >th{
                    white-space: nowrap;
                }
                >th.ant-table-selection-column{
                    width: 30px !important;
                }
            }
        }
        >tbody{
            >tr>td{
                white-space: nowrap;
                // padding: 6px 8px !important;
            }
            >tr>td.ant-table-selection-column{
                width: 30px !important;
            }
        }
    }
}
//解决树表中固定表头后宽度过窄问题
.yyui-refer-treegrid .ant-table{
    width: 100% !important;
}

//.yyui-refer-innertree .yyui-spin {
//    position: relative;
//    top: 20%;
//}

.yyui-tree li.yyui-refer-tagnode>a {
    color: green!important;
    font-weight: 700!important;
}