﻿/* 通用样式 */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    overflow: auto;
}

body * {
    color: #333;
}

/*兼容ie10+*/
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    img {
        border-width: 0;
    }
}

/* 兼容火狐 */
/*select {*/
    /*appearance: none !important;*/
    /*-moz-appearance: none !important;*/
    /*-webkit-appearance: none !important;*/

    /*background: url("http://ourjs.github.io/static/2015/arrow.png") no-repeat scroll right center transparent;*/
/*}*/

/* 多行省略 配合 -webkit-line-clamp:number 使用*/
.elli {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 单行 省略号 */
.elli--once {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

input[disabled], textarea[disabled] {
    cursor: not-allowed;
}

/*---------------------------------------------*/
/*re-dialog*/
.re-dialog-modal {
    background: rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 999999;
}

.re-dialog-element-modal {
    display: none;
}

.re-dialog-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
}

.re-dialog-element {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
}

.re-dialog-title {
    position: relative;
    padding: 15px 25px 6px 10px;
    color: #5494cd;
    line-height: 16px;
}

.re-dialog-close {
    position: absolute;
    right: 10px;
    top: 15px;
    font-size: 16px;
    line-height: 16px;
    font-weight: 700;
    color: #999;
    cursor: pointer;
}

.re-dialog-close:hover {
    color: #666;
}

.re-dialog-main {
    padding: 5px 10px 5px;
    min-width: 240px;
    font-size: 15px;
    text-align: center;
}

.re-dialog-modal.re-alert .re-dialog-main,
.re-dialog-modal.re-confirm .re-dialog-main {
    max-width: 400px;
}

.re-dialog-foot {
    padding: 5px 10px 10px;
    text-align: right;
}

.re-dialog-foot-btn {
    display: inline-block;
    border-radius: 15px;
    padding: 5px 15px;
    line-height: 13px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
}

.re-dialog-foot-btn + .re-dialog-foot-btn {
    margin-left: 5px;
}

.re-dialog-sure {
    color: white;
    background: #428bca;
    border: 1px solid #428bca;
}

.re-dialog-sure:hover {
    background: #4587b3;
}

.re-dialog-cancel {
    color: #999;
    background: white;
    border: 1px solid #eee;
}

.re-dialog-cancel:hover {
    background: #eee;
}

/* base-table 使用 div 模拟 table 样式*/
.base-table-panel {
    width: 100%;
    position: relative;
}

.base-table-head-panel {
    width: 100%;
    border: 1px solid #f9f9f9;
    border-bottom-width: 0;
}

.base-table-body-panel {
    width: 100%;
    overflow-x: hidden;
    border: 1px solid #f9f9f9;
    border-top-width: 0;
}

.base-table-row {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    font-size: 14px;
}

.base-table-head-panel .base-table-row {
    width: 100%;
}

.base-table-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.base-table-head {
    height: 38px;
    background: #eff1f6;
}

.base-table-head .base-table-img {
    max-width: 20px;
    max-height: 16px;
    margin-right: 8px;
    margin-left: 30px;
}

.base-table-head .base-table-title {
    color: #7e7e7e;
    font-size: 15px;
    font-weight: bold;
}

.base-table-body-panel .base-table-row:nth-child(even) {
    background: #f3f3f3;
}

.base-table-body-panel .base-table-row:hover {
    background: #e2e2e2;
}

.base-table-no-data {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
}

.base-table-loading-panel {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.base-loading-info {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(129, 129, 129, 0.5);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    z-index: 999999;
}

.base-loading-info img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 4px;
}

.base-table-page-panel {
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.base-table-page-click {
    display: flex;
    align-items: center;
}

.base-table-page-btn {
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 6px 15px;
    font-size: 14px;
    line-height: 14px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.base-table-page-btn:hover {
    background: #eee;
}

.base-table-page-btn.disabled {
    color: #cccccc;
    background: #eee;
    cursor: not-allowed;
}

.base-table-page-btn.selected {
    color: white;
    background: #3598dc;
    cursor: not-allowed;
    border-color: #3598dc;
}

.base-table-page-btn + .base-table-page-btn {
    margin-left: 6px;
}

.base-table-page-input-panel {
    float: right;
    margin: 0 0 0 10px;
    display: flex;
    align-items: center;
    color: #7e7e7e;
}

.base-table-page-input-panel .base-table-page-input {
    width: 50px;
    margin: 0 5px;
    text-align: center;

    outline-style: none;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 22px;
    background: white;
    padding: 2px 0;
    -moz-appearance: textfield;
}

.base-table-page-input-panel .base-table-page-input::-webkit-outer-spin-button,
.base-table-page-input-panel .base-table-page-input::-webkit-inner-spin-button {
    /*去掉加减箭头*/
    -webkit-appearance: none;
}

/* base-form */
.base-form-panel {
    display: block;
    width: 100%;
}

.base-form-item {
    display: flex;
    align-items: center;
    width: 100%;
}

.base-form-title-panel {
    margin-right: 5px;
    text-align: right;
}

.base-form-title {
    font-size: 14px;
    line-height: 19px;
    text-indent: 5px;
}

.base-form-title.require {
    text-indent: 0;
}

.base-form-title.require:before {
    content: '*';
    width: 5px;
    color: #f63434;
}

.base-form-memo {
    line-height: 13px;
    font-size: 13px;
    color: #9c9c9c;
}

.base-form-control-panel {
    color: #000;
    flex-grow: 1;
    width: 0;
    display: flex;
}

.base-form-control-main {
    flex-grow: 1;
    width: 0;
}

input.base-form-control {
    outline-style: none;
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    padding: 6px 15px;
    line-height: 15px;
    height: 20px;
    flex-grow: 1;
    width: 0;
}

textarea.base-form-control {
    outline-style: none;
    border: 1px solid #c1c1c1;
    border-radius: 4px;
    padding: 6px 15px;
    line-height: 15px;
    resize: none;
    height: 40px;
    flex-grow: 1;
    width: 0;
}

.base-form-item *[disabled] {
    color: #999;
    cursor: not-allowed;
}

.base-form-control::-webkit-input-placeholder {
    color: #bdbdbd;
}

.base-form-control::-moz-placeholder {
    color: #bdbdbd;
}

.base-form-control:-ms-input-placeholder {
    color: #bdbdbd;
}

/**/
.dg-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    position: relative;
    text-decoration: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    color: #606266;
    line-height: 20px;
}

.dg-link:hover {
    color: #409eff;
    text-decoration: none;
}

.dg-link:hover:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    bottom: 0;
    border-bottom: 1px solid #409eff;
}

.dg-link.blue {
    color: #409eff;
}

.dg-link.blue:hover {
    color: #66b1ff;
}

.dg-link.blue:hover::after {
    border-color: #409eff;
}

.dg-link.green {
    color: #67c23a;
}

.dg-link.green:hover {
    color: #85ce61;
}

.dg-link.green:hover::after {
    border-color: #67c23a;
}

.dg-link.brown {
    color: #e6a23c;
}

.dg-link.brown:hover {
    color: #ebb563;
}

.dg-link.brown:hover::after {
    border-color: #e6a23c;
}

.dg-link.brown {
    color: #e6a23c;
}

.dg-link.brown:hover {
    color: #ebb563;
}

.dg-link.brown:hover::after {
    border-color: #e6a23c;
}

.dg-link.red {
    color: #f56c6c;
}

.dg-link.red:hover {
    color: #f78989;
}

.dg-link.red:hover::after {
    border-color: #f56c6c;
}

.dg-link.grey {
    color: #909399;
}

.dg-link.grey:hover {
    color: #a6a9ad;
}

.dg-link.grey:hover::after {
    border-color: #909399;
}
