.common-page-title {
    display: block;
    padding: 10px 20px 10px 20px;
    border-bottom: 1px solid #dedede;
    color: #333;
    font: 12px/1.6 tahoma, arial, sans-serif;
}

.common-context {
    background-color: #fff;
    height: 100%;
    min-width: 1000px;
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.common-btn {
    width: auto;
    min-width: 70px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    background-color: #38F;
    border: 1px solid #38F;
    border-radius: 2px;
    color: #FFF;
    font-size: 12px;
    display: inline-block;
    padding: 0 5px;
}

.common-btn.submit, .common-btn.search {
    background-color: #38F;
    margin-right: 10px;
}

.common-btn.submit:hover, .common-btn.search:hover {
    background-color: #59F;
    border: 1px solid #59F;
    color: #FFF;
}

.common-btn.cancel, .common-btn.reset, .common-btn.delete {
    background-color: #FFF;
    border: 1px solid #BBB;
    color: #444;
    margin-right: 10px;
}

.common-btn.cancel:hover, .common-btn.edit:hover, .common-btn.reset:hover {
    border: 1px solid #59F;
    color: #59F;
}

/*功能按钮,如编辑、删除等*/
.common-btn.edit {
    width: auto;
    background-color: #FFF;
    border: 1px solid #BBB;
    color: #444;
    margin-right: 10px;
    min-width: 46px;
}

/*覆盖global*/
#xm-template-content {
    background-color: #f1f1f1;
    padding: 10px 0 0 10px;
    overflow-y: hidden;
    overflow-x: auto;
    position: relative;
    margin: 0;
}

/*条件内容，包含搜索条件输入框*/

.common-condition-content, .common-function-content, .common-table-parent,
.common-condition-content-parent, .common-div-divider {
    min-width: 1000px;
    max-width: 100%;
}

.common-condition-content {
    padding: 15px;
    background-color: #F8F8F8;
}

.common-function-content {
    padding: 15px;
    background-color: #FFF;
    min-height: 58px;
}

/*搜索输入框*/
.common-input {
    font: 12px/1.6 tahoma, arial, sans-serif;
    width: 150px;
    height: 30px;
    line-height: 28px;
    display: inline-block;
    border: 1px solid #dadada;
    background-color: #FFF;
    border-radius: 2px;
    padding: 0 5px 0 5px;
    vertical-align: middle;
    color: #333;
}

input[type=text]::placeholder, textarea::placeholder, .common-input::placeholder {
    color: #999;
}

.common-input-content {
    vertical-align: middle;
    color: #333;
    font: 12px/1.6 tahoma, arial, sans-serif;
    display: inline-block;
    margin-right: 18px;
    margin-top: 10px;
}

dl dt.common-input-content:last-child {
    margin-right: 0;
}

.common-input-tip {
    width: 60px;
    vertical-align: middle;
    text-align: right;
    display: inline-block;
}

/*table样式*/
.common-table-parent {
    background-color: #FFF;
    overflow: auto;
}

.common-table-parent.absolute {
    position: absolute;
    height: initial;
    bottom: 50px;
    top: 166px;
    left: 10px;
    right: 0;
}

.common-table-parent.create {
    position: absolute;
    height: initial;
    bottom: 0;
    top: 90px;
    right: 0;
    left: 10px;
}

.common-table-parent.setting {
    position: absolute;
    height: initial;
    bottom: 0;
    top: 10px;
    right: 0;
    left: 10px;
    padding: 30px 15px 15px 30px;
}

.common-table-parent.full-page {
    position: relative;
    height: initial;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    padding: 30px 30px 15px 30px;
}

.common-table {
    /*border: 1px solid #dedede;*/
    display: table;
    min-width: max-content;
    margin-bottom: 15px;
    width: 100%;
    text-align: left;
}

.common-table tbody tr {
    background: #fff;
}

.common-table tbody tr:hover {
    background: #f8f8f8;
}

.common-table.border, .paging .common-table.border {
    border: 1px solid #dedede;
}

.common-table thead tr th {
    background-color: #EFEFEF;
    text-overflow: ellipsis;
    word-break: keep-all;
    vertical-align: middle;
    overflow: hidden;
}

.common-table th, .common-table td {
    border-right: 1px solid #e5e5e5;
    display: table-cell;
    border-bottom: 0;
    color: #333;
    text-align: left;
    word-break: break-all;
    vertical-align: top;
}

.common-table th:last-child, .common-table tr td:last-child {
    border-right: 0;
}

.common-table tr th, .common-table tr td {
    border-bottom: 1px solid #e5e5e5;
}

.common-table tbody tr:last-child td {
    /*border-bottom: none;*/
}

.common-table .th-checkbox, .common-table .td-checkbox {
    width: 35px;
    min-width: 35px;
    text-align: center;
}

.common-table .checkbox {
    width: 14px;
    /*height: 14px;*/
    background-color: #FFF;
    border: 1px solid #DDD;
    border-radius: 2px;
    cursor: pointer;
}

.common-table .checkbox.checked {
    background: #38f;
}

.common-table .checkbox.checked:after {
    content: "√"; /*模拟checkbox*/
    color: #fff;
}

.common-table .checkbox:disabled, .common-table input[type=checkbox]:disabled {
    cursor: not-allowed;
}

.common-table .name, .th-name, .td-name {
    width: 90px;
    min-width: 90px;
}

.common-table .name.large, .th-name.large, .td-name.large {
    width: 120px;
    min-width: 120px;
}

.common-table .name.x-large, .th-name.x-large, .td-name.x-large {
    width: 140px;
    min-width: 140px;
}

.common-table .name.xx-large, .th-name.xx-large, .td-name.xx-large {
    width: 160px;
    min-width: 160px;
}

.common-table .name.xxx-large, .th-name.xxx-large, .td-name.xxx-large {
    width: 180px;
    min-width: 180px;
}

.common-table .number {
    min-width: 50px;
    width: 50px;
}

.paging.pagination {
    position: absolute;
    bottom: 10px;
    right: 20px;
    margin: 0;
    background-color: white;
    padding: 0;
}

.paging .common-table {
    /*width: auto;*/
    border: none;
    margin: 0;
    text-align: left;
    height: 100%;
}

.paging .common-table thead {
    height: 32px;
}

.paging .common-table tbody {
    word-break: break-all;
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    top: 33px;
    bottom: 0px;
}

.paging .common-table tbody tr td:last-child {
    width: 1000000000px;
}

/*list为空的提示*/
.common-no-result {
    text-align: center;
    border: 1px solid #eee;
    padding: 39px 0;
}

/*alert内输入框*/
.common-alert-input {
    width: 190px;
    height: 30px;
    line-height: 28px;
    display: inline-block;
    border: 1px solid #dadada;
    background-color: #FFF;
    border-radius: 2px;
    padding: 0 5px;
}

.common-alert-input::placeholder {
    color: #999;
}

.common-alert-input-content {
    vertical-align: middle;
    color: #333;
    font: 12px/1.6 tahoma, arial, sans-serif;
    display: block;
    margin-bottom: 10px;
    float: right;
    margin-right: 40px;
}

/*alert内时间选择和显示*/
.common-calendar {
    width: 190px;
    height: 30px;
    line-height: 28px;
    display: inline-block;
    border: 1px solid #dadada;
    background-color: #FFF;
    border-radius: 2px;
    padding: 0 5px;
}

.common-calendar.middle {
    width: 150px;
}

.common-calendar .text {
    width: 155px;
    border-right: 1px solid #dadada;
    height: 100%;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    margin-top: -1px;
}

.common-calendar.middle .text {
    width: 115px;
}

/*日历图标*/
.common-calendar-img {
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    cursor: default;
    background: url("/img/calendar.png") no-repeat;
    background-size: contain;
}

/*layui-------------------------------*/
/*laydate覆盖global内table宽度*/
.layui-laydate-content table {
    width: 100%;
}

/*覆盖layui form 表单元素样式*/
.layui-form-select {
    display: inline-block;
}

.layui-form-select dl {
    top: auto;
    padding: 0 0;
}

.layui-form-select dl dd {
    color: #333;
    font-size: 12px;
    line-height: 28px;
}

.layui-form-select dl dd.layui-this {
    background-color: #FFF6AE !important;
    color: #333;
}

.layui-form-select dl dd:hover {
    background-color: #E7EFF6;
}

.layui-form-select .layui-input {
    width: 150px;
    height: 30px;
    line-height: 28px;
    display: inline-block;
    border: 1px solid #dadada !important;
    background-color: #FFF;
    border-radius: 2px;
    padding: 0 5px;
    vertical-align: middle;
}

.layui-disabled, .layui-disabled:hover {
    color: #999 !important;
    cursor: no-drop !important;
}

.layui-form-select .layui-input::placeholder {
    color: #999;
}

.layui-layer-page .layui-layer-content {
    padding: 10px 20px;
}

.layui-layer-page .layui-layer-content.padding-0 {
    padding: 0;
}

.layui-form-select dl {
    max-height: 100px;
}

.layui-layer-setwin .layui-layer-close2 {
    display: none !important;
}

/*layui-------------------------------*/

a {
    color: #3388FF;
}

a:hover, a:focus {
    color: #07d;
    text-decoration: none;
}

a.focus-white:hover, a.focus-white:focus {
    color: #fff;
    text-decoration: none;
}

.pagination {
    margin-bottom: 20px;
    margin-right: 20px;
}

.common-div-divider {
    height: 15px;
    background-color: #fff;
}

.btn-margin-right {
    margin-right: 10px;
}

table thead th {
    padding: 7px 10px;
}

table tbody td {
    padding: 10px;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.page-detail-title {
    color: #333;
    display: block;
    background-color: #eee;
    padding: 10px;
    font: 12px/1.6 tahoma, arial, sans-serif;
}

/*弹窗*/
.common-alert-input-content .common-calendar {
    width: 160px;
}

.common-alert-input-content .common-calendar .text {
    width: 130px;
}

.common-alert-input-content select {
    width: 160px;
}

.common-alert-table {
    width: 100%;
    border: 1px solid #e5e5e5;
}

.common-alert-table thead tr {
    background-color: #efefef;
}

.common-alert-table tbody tr.active {
    background-color: #f5f5f5;
}

.common-alert-table tr th, .common-alert-table tr td {
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 5px;
}

.common-alert-table tr th:last-child, .common-alert-table tr td:last-child {
    border-right: none;
}

input.file.common-alert-input:disabled {
    background-color: #f1f1f1;
}

/*搜索条件*/
.js-condition {
    margin-top: 10px;
    display: flex;
    position: relative;
}

.js-condition a {
    color: #3B99FC;
    display: inline-block;
    width: auto;
    vertical-align: middle;
    padding: 0 5px;
}

.js-condition a.hide-condition {
    color: #999;
}

.js-condition hr:first-child, .js-condition .line-left {
    display: inline-block;
    width: 40px;
    border-top: 1px dashed #dedede;
    vertical-align: middle;
    background-color: initial;
    margin-top: 8px;
    height: 1px;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.js-condition hr:last-child, .js-condition .line-right {
    display: inline-block;
    border-top: 1px dashed #dedede;
    width: auto;
    vertical-align: middle;
    background-color: initial;
    /*flex: 1;*/
    margin-top: 8px;
    position: absolute;
    left: 150px;
    right: 0;
    height: 1px;
    border-bottom: none;
    border-right: none;
    border-left: none;
}

.common-condition-content .common-function-content {
    width: auto;
    min-width: auto;
    padding: 0;
    background-color: #f8f8f8;
    min-height: 30px;
}

.common-condition-content.setting {
    background-color: #FFF;
    padding: 30px 10px 0 30px;
}

.condition-hidden-top {
    top: 126px !important;
}

.condition-hidden-top-no-function-content {
    top: 91px !important;
}

.show-condition {
    margin: -10px 0 10px 0;
    border: 1px dashed #dedede;
    border-top: none;
    padding: 0 10px 10px 10px;
    background-color: #fff;
}

.common-table-parent.search-1-line {
    top: 177px;
}

.common-table-parent.search-2-line {
    top: 217px;
}

.common-table-parent.search-3-line {
    top: 257px;
}

.common-table-parent.search-4-line {
    top: 297px;
}

.common-table-parent.search-5-line {
    top: 337px;
}

.common-table-parent.search-6-line {
    top: 377px;
}

.bottom-no-page {
    bottom: 10px !important;
}

/*用table-cell替换flex，适配浏览器*/
.as-table {
    display: table;
}

.as-table-tip {
    display: table-cell;
    vertical-align: top;
    min-width: 60px;
    max-width: 60px;
}

.as-table-value {
    display: table-cell;
    vertical-align: top;
}