﻿/* 表格大小，滚动条 */
.RjGrid {
    background-color: white;
    overflow: hidden;
    min-height: 200px;
    border:1px solid silver;
    margin:1px;
}
/* 表格 Title */
.layui-table-tool {
    min-height: 30px;
    line-height: 30px;
    padding: 5px;
}
.layui-table-tool-self {
    display: none;
}
.layui-table-tool-temp {
    display: flex;
    flex-wrap: wrap;
    padding-right: 0px;
}
/* 分页字体 Pages */
.layui-laypage a, .layui-laypage span {
    font-size: 14px
}
/* 表格头部样式 */
.layui-table-header {
    background-color: whitesmoke !important;
}

    .layui-table-header th {
        user-select: text;
        pointer-events: auto;
    }

    .layui-table-header table {
        background-color: whitesmoke !important;
    }
.layui-table-body {
    height: calc(100% - 35px);
    width: 100%;
    flex: 1;
}
.layui-table-view {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.layui-table-box {
    flex:1;
}
/* 表格行高 */
.layui-table-cell {
    align-items: center;
    height: 32px;
    line-height: 26px;
    padding: 2px 5px;
}
.layui-table-edit {
    padding: 2px 8px;
}

/* 自定义样式：红色下边框 */
.layui-table tr.red-line td { 
    box-shadow: inset 0 -1px 0 indianred !important;
}
/* 表格合计样式 */
.layui-table-total {
    background-color: whitesmoke !important;
    border-bottom: 1px solid silver;
}
    .layui-table-total table {
        background-color: whitesmoke !important;
        color: indianred !important;
        font-weight: bold;
        text-align: right;
    }
/* 模版Cell格式 */
.grid-text {
    width:100%;
    margin:0px;
    height:100%;
    border:none;
    padding-left:0px;
    background-color:transparent;
}
    .grid-text:focus {
        background-color: white;
        padding: 2px 5px;
        width:calc(100% + 3px);
        border: 1px solid silver;
    }
.grid-number {
    flex: 1;
    height: 28px !important;
    text-align: right !important;
    padding-left: 5px !important;
    padding-right: 30px !important;
    background-color: transparent !important;
}
    .grid-number:focus {
        background-color: white !important;
    }
.grid-date {
    width: 100%;
    margin: 0px;
    height: 100%;
    border: none;
    background-color: transparent;
}
.grid-check {
    /* layui 隐藏控件 */
    background-color: transparent;
}
.grid-top-bar {
    padding:5px;
    flex: 0 0 20px;
    display: none;
    border:1px solid whitesmoke;
}
/* grid combo */
table .layui-form-select input {
    height: 26px;
    border: none;
    background-color: transparent;
}
.layui-select-panel-wrap {
    margin-top: -28px;
    margin-left: -3px;
}
/* grid number currency */
.RjGrid .layui-form {
    width:100%;
    height:100%;
    display:flex;
}
.RjGrid .layui-input-wrap {
    flex: 1;
}

.grid-top-button {
    padding: 0px 10px;
    margin-left: 2px !important;
    margin-right: 2px !important;
    border: 1px solid silver;
    color: none;
    background-color: whitesmoke;
    border-radius: 15px;
    cursor: pointer;
    height: 30px;
    line-height: 30px;
}
    .grid-top-button:hover {
        opacity:0.7;
    }

.grid-top-color {
    display: flex;
    align-items: center;
    margin-right: 8px;
    padding: 0px 8px;
    cursor:pointer;
}
    .grid-top-color.layui-btn {
        height: 32px;
        line-height: 30px;
    }
.grid-top-color .color {
    height: 20px;
    width: 20px;
    margin-right: 5px;
    border:1px solid silver;
    background-color:white;
}

.grid-row-button {
    display: flex;
    align-items: center;
    padding: 0px 10px;
    height: 26px;
    line-height: 26px;
    border: none;
    color: white;
}