.datagrid {
	border-collapse:collapse;
	border-spacing:0px;
	border:1px solid #333;
	border-top-width:0px;
	table-layout:fixed;
	
	margin-top:1px; margin-bottom:10px;
}

.datagrid caption {
	color:#333;
	padding:.3em .5em;
	text-align:left;
	font-weight:bold;
	background-color:#ADC1AD ;
	border:1px solid #709370;
	border-width:1px 1px 0px;
	margin-left:-1px; margin-top:10px;
	font-size:1.2em;
}

.datagrid td, .datagrid th {
	border:1px dotted #333;
	border-width:1px 1px 0px 0px;
	padding:0px;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}
.datagrid .content {
	padding:2px 5px;
	white-space:nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
}
.datagrid .content,
.datagrid .content * {
	font-size:1em;
}
.datagrid .content.nodata,
.datagrid .content.error {
	font-size:1.2em;
	white-space:normal !important;
}
.datagrid-loader {
	white-space:normal !important;
	position:absolute; 
}
.datagrid-loader div.msg {
	font-size:1.2em;
	border:2px ridge #333;
	padding:5px 10px;
	background-color:white !important;
	z-index:2;
	width:180px; text-align:left !important;
	opacity:1 !important; filter:alpha(opacity:100) !important;
}
.datagrid-loader td {
	background-color:#333;
	opacity:.3; filter:alpha(opacity:30);
}

.datagrid td.group-start {
	border-left-style:solid !important;
}
.datagrid td.group-end {
	border-right-color:#808080 !important;
	border-right-style:solid !important;
}

.datagrid thead {
	background:url(../img/menu-gradient.png) repeat-x left bottom;
}
.ie .datagrid thead th {
	background:url(../img/menu-gradient.png) repeat-x left bottom;
}
.datagrid thead tr.noborder ,
.datagrid thead tr.noborder th {
	border-width:0px !important;
	border-style:none !important;
}
.datagrid thead th {
	text-align:center;
	font-weight:bold;
	height:18px;
	border-style:solid;
	border-width:1px;
	font-size:13px;
	height:20px;
	font-family:lucida sans, Calibri, Verdana, Arial, Helvetica, sans-serif;
}
.datagrid thead th.resizeable .content {
	padding-right:0px; margin-right:5px;
}
.datagrid thead th.sortable {
	cursor:pointer !important;
}
.datagrid thead th.sortable .content {
	margin-right:22px;
	cursor:pointer !important;
}

.sf .datagrid thead th.resizeable .content,
.op .datagrid thead th.resizeable .content {
	margin-right:0px;
}
.sf .datagrid thead th.sortable .content,
.op .datagrid thead th.sortable .content {
	margin-right:0px;
}

.datagrid thead th.sortable div.sort-flag {
	cursor:pointer;
	background-color:transparent !important;
	background-image:url(../img/sort-none.png);
	background-repeat:no-repeat;
	background-position:left center;
	float:right; width:13px; height:100%;
	margin-right:8px;
}
.datagrid thead th.resizeable div.sort-flag {
	margin-right:0px;
}
.datagrid thead th.sortable div.sort-flag.asc {
	background-image:url(../img/sort-asc.png);
}
.datagrid thead th.sortable div.sort-flag.desc {
	background-image:url(../img/sort-desc.png);
}
.datagrid thead th .resize-handle {
	float:right;
	width:3px; height:100%;
	margin-left:3px;
	cursor:e-resize;
	border-left:1px solid #777;
}

.datagrid tfoot {
	border-top:1px solid black;
	background-color:#77A7D7;
}
.datagrid tfoot td {
	border-style:solid dotted;
	font-weight:bold;
}
.datagrid tfoot tr {
	border-top:1px solid black;
}

.datagrid tr.odd {
	background-color:#F9FDFF;
}
.datagrid tr.even {
	background-color:#C1DFF0;
}

.datagrid .subtable {
	border:none;
	padding:1px 4px;
	cursor:default;
}
.datagrid .subtable img {
	width:10px; height:10px;
}
.datagrid .subtable.open {
	background:url(../img/plus.png) no-repeat center center;
	cursor:pointer;
}
.datagrid .subtable.close {
	background:url(../img/minus.png) no-repeat center center;
	cursor:pointer;
}
.datagrid .subtable.open:hover {
	background:url(../img/plus-hover.png) no-repeat center center;
}
.datagrid .subtable.close:hover {
	background:url(../img/minus-hover.png) no-repeat center center;
}
.datagrid .subtable-container {
	max-height:200px; overflow:auto;
	*overflow:visible;
	padding-left:1px;
}
.datagrid .subtable-cell {
	padding:0px;
}
.datagrid .subtable-container {
	padding:5px;
	overflow:auto;
}
.datagrid .subtable-container .datagrid {
	margin-bottom:0px !important;
}
.datagrid .subtable-container .datagrid caption {
	margin-top:0px !important;
	color:black !important;
	font-size:1em;
	background-color:PaleGoldenrod;
}
.datagrid .subtable-container .datagrid th {
	font-size:11px;
}
.datagrid .subtable-container .datagrid tr.even {
	background-color:ivory;
}
.datagrid .subtable-container .datagrid tr.odd {
	background-color:AntiqueWhite;
}
.datagrid .subtable-container .datagrid tfoot {
	background-color:DarkSalmon;
}

#contextMenu { z-index:500; }

/*** conditional formatting **/
.datagrid .yellowbg {
	background-color:#FF8 !important;
}
.datagrid .color-orange {
	color:orange !important;
}
.datagrid .color-green {
	color:green !important;
}
.datagrid .color-red {
	color:red !important;
}






.disabled.datagrid tbody tr {
	background-color:#CCC !important;
}
.datagrid tbody tr.selected {
	background-color:#FAD385 !important;
	border:1px solid #633;
	border-width:1px 0px;
}

