/*

OpenJS Grid

Copyright (c) 2011 Sean Clark, http://square-bracket.com
http://youtube.com/optikalefxx
http://square-bracket.com/openjs

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

This is openGrid version 1.3

*/

/* main font family and size */
.gridContainer, .grid, .gridHeaderRow {
	font-family:arial;
	font-size:11px;
	font-weight:bold;
	background-color:#333;
	width:1000px;
}

/* color of each odd row */
.grid tr, .gridHeaderRow tr, tr a {
	background-color:#222;
	color:#aaa;
}
/* column hilte */
.grid td.hilite {
	background-color:#2A8ADD;
	color:#fff;
}
/* color of each even row */
.grid tr:nth-child(2n+1) {
	background-color:#111;
}
/* highlight color of rows */
.gridWrapper tr:hover, .grid tr:hover, .gridContainer th:hover {
	background-color:#2A8ADD;
	color:#fff;
}
/* color of pager */
.gridPager {
	background-color:#111;
	color:#aaa;
}
/* color of grid Title bar */
.gridTitle {
	background-color:#111;
	color:#aaa;
}
/* color of current CELL your hovering */
.grid td:hover {
	background-color:#2a52ad;
}
/* color of the input boxes */
.gridPager input {
	
}
/* next and back buttons */
.gridNext, .gridBack, .gridSave {
	background-color:#ccc;
	color:#111;
}
/* padding of the cells */
.grid td, .gridHeaderRow th {
	padding:8px;
}
/* stuck row */
.stuckRow td{
	padding:8px;
	background:#000;
}
/* right click menu main box */
.gridContext {
	-webkit-box-shadow:2px 2px 25px #333;
	-moz-box-shadow:2px 2px 25px #333;
	border-radius:5px;
	-border-radius:5px;
	background-color:white;
}
/* right click menu each item */
.gridContext div {
	color:#333;
	font-family:arial;
	font-size:14px;
	padding:4px 20px;
}
/* right click menu hover */
.gridContext div:hover {
	background-color:#2A8ADD;
	color:white;
}
/* editable cell */
.editableInput {
	border:1px dotted #666;
}


/* EVERYTHING UNDER HERE IS DONE FOR LAYOUT PURPOSES */
.gridTitle {
	padding:10px;
	font-size:14px;
}
.gridContainer {
	margin-bottom:10px;
	-moz-border-radius-topleft:5px;
	-moz-border-radius-topright:5px;
	border-top-right-radius:5px;
	border-top-left-radius:5px;
	font-weight:bold;
	font-size:11px;
	overflow:hidden;
	position:relative;
}
.gridWrapper {
	overflow-x:hidden;
	max-height:500px;

}
.gridHeaderRow {
	width:100%;
}

.gridHeaderRow th {
	width:150px;
	cursor:pointer;
	-moz-transition:background-color 100ms linear;
	-webkit-transition:background-color 100ms linear;
}

.grid tr, .gridHeaderRow tr, .grid td {
	-moz-transition:background-color 100ms linear;
	-webkit-transition:background-color 100ms linear;
}

.grid {
	width: 100%;
}

.grid th.w50 {
	width:50px;
}

.grid td select {
	width:100%;
}
.gridPager {
	width:auto;
	height:25px;
	overflow:hidden;
	padding:10px 0px 10px 10px;
	border-top:1px solid #333;
}
.gridPager > div {
	margin-right:20px;
	float:left;
}

.gridPager input {
	-moz-border-radius:3px;
	border-radius:3px;
}

.gridTotal {
	padding:5px;
}

.gridNext, .gridBack, .gridSave {
	padding:5px;
	-moz-border-radius:3px;
	border-radius:3px;
	cursor:pointer;
}
.gridSave {
	float:right !important;
	display:none;
}
.gridTotal {
	font-size:11px;
	font-weight:bold;
}

.gridScrollDiv {
	position:absolute;
}

.gridScrollHandle {
	background-color:red;
	width:8px;
	-moz-border-radius:5px;
	border-radius:5px;
}

.colResizer {
	background-color:transparent;
	position:relative;
}

.colHandle {
	height:20px;
	width:10px;
	background-color:transparent;
	position:absolute;
	right:-13px;
	top:0px;
}

.gridHandle {
	width:10px;
	height:10px;
	cursor:se-resize;
	background-color:orange;
	position:absolute;
	bottom:0px;
	right:0px;
}

.gridContext {
	position:fixed;
	width:150px;
	z-index:99;
}

.gridContext div {
	cursor:pointer;
	-moz-transition:background-color 100ms linear;
	-webkit-transition:background-color 100ms linear;
}

.closeContext {
	margin:0px !important;
	padding:0px !important;
	position:absolute;
	top:3px;
	right:3px;
	z-index:98;
	font-size:11px !important;
	
}

.editableInput {
	width:100%;
	background:transparent;
	color:inherit;
	font-weight:inherit;
	font-size:inherit;
	font-family:inherit;
	padding:0px;
	margin:0px;
}