.grid {
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
}

.grid-header {
    /*position: absolute;*/
    top: 0;
    left: 0;
    cursor: default;
    font-size: 14px;
    text-align: left;
    overflow: hidden;
    zoom: 1;
}

.grid-header-row {
    height: 24px;
    position: relative;
}

.grid-header-multi-cell {
    text-align: center;
    border-width: 0 1px 1px 0;
    border-style: solid;
}

.grid-header-resize {
    cursor: col-resize;
    position: absolute;
    top: 0;
    height: 24px;
    width: 5px;
}

.grid-header-resize-mirror {
    z-index: 9999;
    background-color: #000000;
    cursor: pointer;
    position: absolute;
    top: 0;
    height: 24px;
    width: 5px;
}

.grid-header-separator {
    height: 24px;
    width: 1px;
}

.grid-header-row .grid-cell {
    /*padding:0 1px;*/
    height: 24px;
    line-height: 24px;
    border-width: 0 1px 0 0;
}

.grid-header-scroll-cell {
    border-style: none;
    width: 20px;
}

.grid-body {
    position: absolute;
    overflow-x: auto;
    overflow-y: auto;
    background-color: white;
    text-align: left;
}

.grid-rows {
    background-color: white; /*#F1F8E6;*/
    overflow-x: hidden;
    overflow-y: visible;
    /*color: #43860C;*/
    /*margin-bottom: 2px;*/
    margin: 0 2px 2px 0;
}

.grid-row {
    margin: 0;
    padding: 0;
    overflow: hidden;
    zoom: 1;
    white-space: nowrap;
}

.grid-current {
    background-color: #f0f0f0;
    /*
    outline: #D9D7D7 dashed 2px;
    */
}

.grid-cell {
    position: relative;
    margin: 0;
    cursor: default;
    text-align: center;
    vertical-align: top; /*此行可保证inline-block元素产生行间距*/

    line-height: 28px;
    height: 28px;

    overflow: hidden;
    word-break: keep-all;
    text-overflow: ellipsis;
    white-space: nowrap; /*解决ie下数字和中文同行且超长时会换行的问题*/
}

.grid-cell.cell-align-left {
    text-align: left;
}

.grid-cell.cell-align-right {
    text-align: right;
}

.grid-cell-hidden {
    display: none;
}

.grid-check-cell {
    height: 16px;
    width: 16px;
    margin-bottom: 3px;
    cursor: pointer;
    vertical-align: middle;
}

.grid-header-row .grid-check-cell {
    height: 23px;
    background: url(../images/grid/iconUncheck.gif) no-repeat center scroll;
}

.grid-row .grid-check-cell {
    background: url(../images/grid/iconUncheck.gif) no-repeat center scroll;
}

.grid-header-row.row-selected .grid-check-cell {
    height: 23px;
    background: url(../images/grid/iconCheck.gif) no-repeat center scroll;
}

.grid-row.row-selected .grid-check-cell {
    background: url(../images/grid/iconCheck.gif) no-repeat center scroll;
}

.grid-row .row-action {
    background-repeat: no-repeat;
    cursor: pointer;
}

.grid-row .row-action.row-action-text {
    background-position: 5px center;
    padding-left: 20px;
    text-align: left;
}

.grid-row .row-action.row-action-non-text {
    margin: 0 2px;
    padding-left: 16px;
    height: 16px;
    border: 0;
    background-position: center center;
}

.grid-row .row-action.row-action-non-icon {
    width: 100%;
    height: 16px;
    border: 0;
}

.grid-body .row-expander {
    cursor: pointer;
    padding-left: 20px;
    background: url(../images/grid/plus.png) 4px center no-repeat transparent;
    /*background-position: 4px center;
    background-repeat: no-repeat;
    background-color: transparent;
    background-image: url(../images/grid/plus.png);*/
}

.grid-body .row-expanded {
    height: auto;
    overflow-y: visible;
}

.grid-body .row-expanded .row-expander {
    background-image: url(../images/grid/minus.png);
}

.grid-row .row-expander-content {
    overflow-x: hidden;
    /*overflow-y: visible;*/
    overflow-y: hidden;
    background-color: white;
    border-width: 1px 1px 0 0;
    border-style: solid;
    /*border-color:#c0de98;*/
    /*padding:2px;*/
}

.grid-cell-draggable {
    cursor: move;
}

.grid-export {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 20px;
    cursor: pointer;
    background: url("../images/icon/16/export.png") center center no-repeat scroll transparent;
}

.grid-sort-asc {
    position: absolute;
    top: 2px;
    right: 2px;
    height: 9px;
    width: 9px;
    cursor: pointer;
    background: url("../images/grid/sort_asc_20.png") center center no-repeat scroll transparent;
}

.grid-sort-desc {
    position: absolute;
    bottom: 2px;
    right: 2px;
    height: 9px;
    width: 9px;
    cursor: pointer;
    background: url("../images/grid/sort_desc_20.png") center center no-repeat scroll transparent;
}

/****************************************TreeGrid*************************************************/
.tree-grid-text, .tree-grid-action {
    display: inline-block;
    zoom: 1;
    *display: inline;

    height: 16px;
    line-height: 16px;
    vertical-align: middle;
}

.tree-grid-action {
    padding-left: 16px;
    cursor: pointer;
    background: no-repeat 3px center transparent;
    zoom: 1;
}

.tree-grid-action.expand {
    background-image: url('../images/grid/minus.png');
}

.tree-grid-action.collapse {
    background-image: url('../images/grid/plus.png');
}

/****************************************PrimitiveGrid*************************************************/

.primitive-grid {
    margin-left: -1px;
    margin-top: -1px;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 2px;
}

.primitive-grid th {
    height: 22px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    vertical-align: middle;
}

.primitive-grid td {
    text-align: left;
    vertical-align: middle;
}

.primitive-grid, .primitive-grid td, .primitive-grid th {
    border: 1px solid #d0d0d0;
    padding: 4px;
}

/****************************************PrimitiveGrid*************************************************/


.table-cell-content {
    line-height: 150%;

    word-wrap: break-word;
    word-break: break-all;

    font-size: 14px;
}

/*action-icon*/
.g-remove {
    background-image: url(../images/icon/grid-remove.gif) !important;
}

.g-add {
    background-image: url(../images/icon/9/add.png) !important;
}

.g-edit {
    background-image: url(../images/icon/grid-edit.gif) !important;
}

.g-view {
    background-image: url(../images/icon/search.gif) !important;
}

.g-up {
    background-image: url(../images/grid/up-9.gif) !important;
}

.g-down {
    background-image: url(../images/grid/down-9.gif) !important;
}