/*
    Custom styles
*/

.webmain-DataGrid {
    border: 1px solid white;  
/*    border: 3px solid black;    */
    
    /*width: 800px;*/
    /*width: 95%;*/
    overflow: hidden !important;
}

.webmain-DataGrid .selectedRow td {
    background-color: #87fa87;
    border-color: #87fa87;
}

.webmain-DataGrid .selectedRowOnClick td {
    background-color: #47b347;
    border-color: #47b347;
    color: white;
}
.webmain-DataGrid .selectedRowOnClick .dataGap:last-child{
    background-color: #FFF;
    border-color: #FFF;
}

.webmain-DataGrid .headerRow {
    background-color: #1a801a;
}

.webmain-DataGrid .headerCheck {
    vertical-align: middle;
    padding: 3px;
}
.webmain-DataGrid .headerCell {
    padding: 1px 19px 1px 3px; /* 21px for sorting img */
    vertical-align: middle;
    text-align: center;
    background: none repeat scroll 0 0 #1a801a;
    color: white;
    font-weight: bold;
}
.webmain-SmartGrid .headerGap {
    width: 2px;
    min-width: 0px; /* обязательно */
    background-color: #FFFFFF;
}

.webmain-DataGrid .dataRow0 {
    background-color: #c2f2c2;
}
.webmain-DataGrid .dataRow1 {
    background-color: #e5100e5;
}

.webmain-DataGrid .dataCheck {
    vertical-align: top;
    padding: 3px;
}
.webmain-DataGrid .dataCell {
    padding: 0px;
    border-left: 0px solid white;
    border-top: 0px solid #DDD;
    border-bottom: 0px solid #DDD;
    border-right: 0 none;
    vertical-align: top;
    padding: 1px;
}
.webmain-DataGrid .dataGap {
    border-right: 0px solid white;
    border-top: 0px solid white;
    border-bottom: 0px solid white;
    border-left: 0 none;
    text-decoration: none;
    background-color: white;
}

.webmain-DataGrid .selectedCell {
    border-left: 1px solid #48c748 !important;
    border-top: 1px solid #48c748 !important;
    border-bottom: 1px solid #48c748 !important;
    border-right: 0 none;

    background-color: #ffa07a !important;
}
.webmain-DataGrid .selectedCell td {
    background-color: #ffa07a !important;
}
.webmain-DataGrid .selectedGap {
    border-right: 1px solid #48c748 !important;
    border-top: 1px solid #48c748 !important;
    border-bottom: 1px solid #48c748 !important;
    border-left: 0 none;
    
    background-color: #c8fac8 !important;
}

.webmain-DataGrid .sortingAsc {
    background-repeat: no-repeat;
    background-position: right;
    background-image: url("../resources/datagrid/tablesorter-asc.gif");

}
.webmain-DataGrid .sortingDesc {
    background-repeat: no-repeat;
    background-position: right;
    background-image: url("../resources/datagrid/tablesorter-desc.gif");

}

/*
    DataGridPager styles
*/

.webmain-DataGridPager {
    /*border: 1px solid silver;*/
    padding: 10px 20px 10px 0px;
}

.webmain-DataGridPager-NavigationPanel {
    padding-left: 20px;
}
.webmain-DataGridPager-NavigationPanel td {
    width: 24px;
    text-align: center;
}
.webmain-DataGridPager-NavigationPanel a {
    text-decoration: none;
    cursor: pointer;
}
.webmain-DataGridPager-NavigationPanel a.currentPage {
    font-weight: bold;
    cursor: default;
    color: black;
    background-color: silver;
}
.webmain-DataGridPager-NavigationPanel a.disabled {
    color: silver;
    cursor: default;
}

.webmain-DataGridPager-PageSizePanel {
    padding-left: 20px;
}

.webmain-DataGridPager-PageSizePanel .gwt-TextBox {
    margin-left: 4px;
    width: 30px;
}

.webmain-DataGrid-ToolPanel {
    border-bottom: 1px solid white;
    max-width: 1000px;
}

.webmain-DataGrid-ColumnsPanel {
    padding: 10px;
}
.webmain-DataGrid-ColumnsPanel-ColumnsList {
    border: 1px solid silver;
    background-color: white;
    width: 200px;
    height: 300px;
    margin-right: 10px;
    margin-bottom: 15px;
}
.webmain-DataGrid-ColumnsPanel-ColumnsList .columnListItem .gwt-Label {
    cursor: default;
} 
.webmain-DataGrid-ColumnsPanel-ColumnsList .columnListItem-selected {
    background-color: #48c748; 
}
.webmain-DataGrid-ColumnsPanel-ColumnsList .columnListItem-indent {
    padding-left: 15px;
}
.webmain-DataGrid-ColumnsPanel-Actions {
    border-spacing: 0 5px;
    /*border-collapse: collapse;*/
}
.webmain-DataGrid-ColumnsPanel-Buttons {
    border-spacing: 10px 0;
    /*border-collapse: collapse;*/
}


.webmain-DataGrid-ColumnGroupsPanel {
    padding: 10px;
}
.webmain-DataGrid-ColumnGroupsPanel-Buttons
{
    border-spacing: 10px 0;
    padding-top: 13px;
}

.webmain-DataGrid-ColumnGroupPanelButton {
    width: 80px;
    margin-top: 8px !important;
}

.webmain-DataGrid-ColumnGroupItemList .gwtQuery-draggable {
    padding: 1px;
    display: inline-block;
}
.webmain-DataGrid-ColumnGroupItemList .gwtQuery-draggable-dragging {
    background-color: silver;
    border: 1px solid gray;
    cursor: move;
    padding: 0;
    opacity: 0.5;
}
.webmain-DataGrid-ColumnGroupItemList .acceptDraggable {
    background-color: #adff2f;
}

/*.webmain-DataGrid-SmartGridWrapper {*/
    /*width: 900px;*/
/*}*/

/*
 this isi not working
*/
.webmain-DataGrid-ScrollableBody {
    height: 150px;
    width: 100%;
}
.webmain-DataGrid-ScrollableBody tr td:last-child {
    padding-left: 10px;
}

.headerCheckGap {
    width: 5px;
    min-width: 5px;
    max-width: 5px;
}
.dataCheck {
    width: 26px;
    min-width: 26px;
    max-width: 26px;
}

/*
    test min column width
*/

/*.webmain-DataGrid .headerCell {*/
    /*min-width: 50px !important;*/
/*}*/
    /*overflow-x: hidden;*/
    /*white-space: nowrap !important;*/
    /*white-space: pre !important;*/
/*}*/

/*.webmain-DataGrid .singleline td {*/
	/*white-space: normal !important;*/
/*}*/

.webmain-SmartGrid {
    table-layout: fixed;
    empty-cells: show;
}


/*.webmain-DataGrid .columnGap {*/
    /*width: 5px !important;*/
/*}*/
.gridFotoA div {
max-height: 2em;
}


/*Основные стили внешнего вида грида*/
.dgrid-row
{
overflow: hidden;
border-bottom: 1px dotted #aab3aa;
}
 
.dgrid-cell
{
border-style: none dotted none none  !important;
border-color: #aab3aa !important;
vertical-align: middle !important;
}

.dgrid-content > .dgrid-row-even {
    background-color: #e6f2e6; 
}

.dgrid-content > .dgrid-row-even  + .dgrid-tree-container .dgrid-row {
    background-color: #e6f2e6; 
}
 
.dgrid-cell div
{
max-height: 33px;
}
 
.dgrid-header th {
    text-align: center !important;
    vertical-align: middle !important;  
    font-size: x-small !important;
}
 
.dgrid-header th {
    text-align: center !important;
}
 
.dgrid-header, .dgrid-header-row, .dgrid-footer {
    background-color: #e5e5e5 !important;
	background-image: linear-gradient(to bottom, #ebf5eb 0%, #d5ebd5 100%) !important;
    border-bottom: 1px solid #aab3aa !important;
    overflow: hidden !important;
}
.dgrid-footer 
{
padding: 3px !important;
}
.dgrid-scroller
{
border-bottom: 1px solid #aab3aa !important;
}
.dgrid-resize-header-container
{
height: inherit !important;
}
 
.dgrid {
    border-color: #aab3aa !important;
    border-style: none solid !important;
    border-width: 1px !important;
 
}
 
.x-toolbar-mark {
    border: 1px solid #aab3aa !important;
	/*background: none repeat-x scroll 0 0 #dae5da !important;*/
	/*background-image: url("images/bcg_pat.png");*/
	background: none repeat scroll 0 0 #cfe5cf !important;
}
.dgrid-footer div {
    font-size: x-small;
    font-weight: bold;
}
.dgrid-footer input {
    font-size: x-small;
    font-weight: bold;
}
.dgrid-footer select {
    font-size: x-small;
    font-weight: bold;
}


.dgrid-selected {
    background-color: #5bc6b5  !important;
}


.dgrid-grid {
	width: calc(100% - 2px) !important;
}

