/* gnTable样式 */
.gn-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background-color: #fff;
    font-size: 14px;
    table-layout: fixed;
    cursor: pointer;
}

.gn-table th,
.gn-table td {
    padding: 10px;
    border-bottom: 1px solid #e1e6f0;
    text-align: left;
    vertical-align: middle;
    position: relative;
}

.gn-table th {
    background-color: #F1F3FB;
    border-top: 1px solid #e1e6f0;
    font-weight: 600;
    color: #333;
}

.gn-table tbody tr:hover {
    background-color: #f2f5ff;
}

/* 可排序表头 */
.sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.sort-icon {
    position: relative;
    width: 8px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.sort-icon i {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    left: 6px;
}

.sort-icon i.up {
    border-width: 0 4px 4px 4px;
    border-color: transparent transparent #8187a1 transparent;
    top: 4px;
}

.sort-icon i.down {
    border-width: 4px 4px 0 4px;
    border-color: #8187a1 transparent transparent transparent;
    bottom: 6px;
}

.sort-icon i.active {
    opacity: 1;
    color: #3464ff;
    border-color: #3464ff transparent transparent transparent;
}

.sort-icon i.up.active {
    border-color: transparent transparent #3464ff transparent;
}

/* 空数据提示 */
.gn-table-empty {
    text-align: center;
    color: #909399;
    padding: 40px 0 !important;
}

/* 分页样式 */
.gn-table-page {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 14px;
    color: #8187A1;
    background: #fff;
    padding: 20px 30px;
}

.gn-limit {
    margin-right: 14px;
}

.gn-limit select {
    padding: 3px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    margin-left: 5px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    border-radius: 2px;
}

.gn-count {
    color: #333;
}

.gn-page-btn {
    display: inline-block;
    min-width: 30px;
    padding: 0 6px;
    margin: 0 4px;
    border: 1px solid #E1E6F0;
    border-radius: 2px;
    background-color: #fff;
    text-align: center;
    color: #333;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    height: 30px;
    line-height: 30px;
}

.gn-page-dot, .gn-page-dot:hover {
    border: 0;
    color: #8187A1 !important;
    cursor: text;
}

.gn-page-btn .iconfont {
    transform: scale(.8);
}

#prevPage, #nextPage {
    border: 0;
    color: #3464ff;
}

#jumpBtn {
    margin: 0 0 0 14px;
    background: #FFFFFF;
    border: 1px solid #E1E6F0;
    box-sizing: border-box;
    padding: 0 13px;
    color: #8187a1;
}

#jumpBtn:hover {
    border-color: #3464ff;
    color: #3464ff;
}

.gn-page-btn:hover:not(:disabled) {
    border-color: #3464ff;
    color: #3464ff;
}

.gn-page-btn.active:hover:not(:disabled) {
    color: #fff;
}

.gn-page-btn.active {
    background-color: #3464ff;
    color: #fff;
    border-color: #3464ff;
}

.gn-page-btn:disabled {
    cursor: not-allowed;
    color: #e1e6f0 !important;
}

.gn-page-input {
    display: flex;
    align-items: center;
}

.gn-page-input input {
    width: 42px;
    height: 30px;
    padding: 0 5px;
    margin: 0 14px;
    border: 1px solid #e1e6f0;
    border-radius: 2px;
    text-align: center;
    outline: none;
}

.gn-page-input input:focus, .gn-page-input input:hover {
    border-color: #3464ff;
}

/* tooltip样式 */
.gn-table th[data-content]:hover:after,
.gn-table td[data-content]:hover:after {
    content: attr(data-content);
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal;
    max-width: 300px;
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    pointer-events: none;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.gn-table th[data-content]:hover:before,
.gn-table td[data-content]:hover:before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
    z-index: 1001;
    pointer-events: none;
}

/* 搜索框样式 */
.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 200px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}

.search-box input:focus {
    border-color: #3464ff;
}

.search-box button {
    height: 34px;
    padding: 0 15px;
    border: 1px solid #3464ff;
    border-radius: 0 4px 4px 0;
    background-color: #3464ff;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-box button:hover {
    background-color: #3464ff;
}
        
.gn-table-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.simulate-table-tooltip {
    position: absolute;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    padding: 5px 10px;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    display: none;
    max-width: 300px;
    word-break: break-all;
}

.gnTable-loading {
    min-height: 220px;
    background: #fff;
    display: flex;
    justify-content: center;
    font-size: 26px;
    color: #8187a1;
}

.gnTable-loading.gn_table_load {
    background-image: url("./loading-gn.gif");
    background-repeat: no-repeat;
	background-size: 160px 110px;
	background-position: center center;
}

.gnTable-loading.gnTable-error {
    background-position: center 31px;
}

.gnTableReset {
    padding: 0 16px;
    height: 32px;
    background: #FFFFFF;
    border: 1px solid #3464FF;
    font-size: 12px;
    color: #3464FF;
    line-height: 30px;
    border-radius: 4px;
    margin: 149px auto 0;
}

.gnTableReset:hover {
    background: #3464FF;
    color: #fff;
    transition: all .3s;
}

.gn_table_nodata {
    height: 270px;
    background: url("../../u/style/res/noData.png") no-repeat center 50px;
    background-size: 252px 82px;
    text-align: center;
    line-height: 12px;
    padding-top: 152px;
    color: #8187A1;
}