table.innerpanel {
	margin: 0;
	padding: 0;
	position: relative;
	display: table;
	border-collapse: separate;
	border-spacing: 0px;
	border: 1px white solid;
	background: none;
	overflow: hidden;
}
	
table.innerpanel tr {	position:relative;}
table.innerpanel td {
	padding: 2px 4px 2px 4px;
	min-width: 12px;
	border-bottom: none;
	border-top: 1px #eee solid;
	border-left: 1px #ccc solid;
	border-left: 1px rgba(255,255,255,0.2) solid;
}
.innerpanel .green {
	color:green;
}
.innerpanel .orange{
	color:orange;
}
.innerpanel .red{
	color:red;
}
.innerpanel .gray{
	color:gray;
}
/*Small buttons for these actions*/
col.del {
	width: 20px;
}
td a.delete,
td a.eject,
td button.delete,
td button.eject,
td .fb_button,
td .fb_icon {
	/*Make these even more compact than a normal fb_icon*/
	margin: -1px 0;
	/*padding: 0 0px;*/
	font-size: 11px;
}
td a.delete span,
td a.eject span,
td button.delete span,
td button.eject span {
	text-indent: -3000em;
	padding-left: 10px;
	background-position: center top;
}


table.innerpanel th {
	text-align: left;
	vertical-align: bottom;
	background-color: #86b3cb;
	padding:0;
	border-left: 1px #e0ebf1 solid;
	}
table.innerpanel tr th.first {
	border-left: 1px #fff solid;
	border: none;
}
Xtable.innerpanel tr th.last {
	border-right: 1px #fff solid;
	border: none;
}

/*First row, first TH */
table.innerpanel tr:nth-child(1) th.first,
table.innerpanel tr:nth-child(1) th:nth-child(1) {
	border-left: none;
}
/*First row, last TH */
table.innerpanel tr:nth-child(1) th.last,
table.innerpanel tr:nth-child(1) th:nth-last-child(1) {
	border-right: none;
}

/*Last row, first TD */
table.innerpanel tr:nth-last-child(1) td.first,
table.innerpanel tr:nth-last-child(1) td:nth-child(1) {
	border-left: none;
}
/*Last row, last TD */
table.innerpanel tr:nth-last-child(1) td.last,
table.innerpanel tr:nth-last-child(1) td:nth-last-child(1) {
	border-right: none;
}

/* Table totals block */
table.innerpanel tfoot tr.totals_header th {
	border-top: 1px #fff solid;
	padding-top: 8px;
	font-size: 13px;
	font-weight: bold;
	color: #000;
	border-left: none;
	background-color: #ccc !important; 
}
table.innerpanel tfoot tr.totals_spacerrow td {
	background: transparent;
}
table.innerpanel tfoot tr.totals_subheader th {
	border-top: 1px #fff solid;
	font-weight: bold;
}
table.innerpanel tfoot tr.totals_subtotal td {
	background-color: #aaa !important; 
	font-weight: bold;
}
table.innerpanel tfoot tr.totals_grandtotal th {
	border-top: 1px #fff solid;
	font-weight: bold;
	text-align: right;
}
table.innerpanel tfoot tr.totals_row td.empty {
	background-color: #ccc !important; 
}

table.innerpanel tfoot th {
}
table.innerpanel tfoot th {
	padding: 2px 4px;
}
table.innerpanel tfoot td, 
table.innerpanel tfoot tr:hover td {
	background-color: transparent !important;
	color: #333;
}


/*
*	.tablewrapper is used for animating the folding of tables as browsers
	don't seem to like animating the table directly.
	<table> and <th>, <tr> don't need outer borders and corners as the wrapper will do that for them 
*/
div.tablewrapper {
	/*Used for animated effects*/
	border: 1px #fff solid;
	display: block;
	position: relative;
	overflow: hidden;
}
div.tablewrapper table {
	/*Tables inside a wrapper don't have their own border, the wrapper provides it*/
	border: none;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;	
}
div.tablewrapper .tabletail {
	background: #86b3cb;
	padding: 2px 10px;
	cursor: pointer;
}


/*Pagination*/
div.pagination {
	text-align: left;
	padding: 0;
	position: relative;
	display: block;
	overflow: hidden;
	z-index: 10;
	margin: -1px 0;
	clear: both;
}
div.pagination div.tab {
	float: left;
	position: relative;
	display: block;
	margin: 4px 20px 0 20px;
	padding: 4px 1px 2px 1px;
	text-align: left;
	border: 1px white solid;
	border-bottom: 1px #ccc solid;
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
	background: #86B3CB;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;	
	min-height: 20px;  /*Safari needs more v space for it's <select> so a min height provides consistancy for all tabs/browsers*/
}
div.pagination div.tab h3,
div.pagination div.tab p,
div.pagination div.tab ul,
div.pagination div.tab li {
	display: inline-block;
	margin: 0 4px;
	font-weight: normal;
	color: black;
	font-size: 13px;
	line-height: 19px;
	vertical-align: top;
}
div.pagination div.tab h3 {
	font-weight: bold;
	margin: 0 8px;
}
.pinlist div.pagination div.tab h3 {
	/*Has an expand icon that I want hard left*/
	margin: 0 4px;
	}
div.pagination div.actions {
	float: right;
}
div.pagination div.actions + div.actions {
	margin-right: 0;
}


table + div.pagination div.tab {
	/*Pagination under the table : Assumes no actions just pagination*/
	margin: 0 20px 4px 20px;
	border-radius: 0;
	border-bottom-left-radius: 3px;
	border-bottom-right-radius: 3px;	
	float: right;
	border: 1px white solid;
}
div.pagination div.tab h3 span.collapse {
	cursor: pointer;
	background-image: url(../icons/twotone/arrow-top.png);
	background-position: left center;
	background-repeat: no-repeat;
	padding-left: 16px;
}
div.pagination div.tab h3 span.collapse.closed {
	background-image: url(../icons/twotone/arrow-bottom.png);
}
div.pagination .fb_icon,
div.pagination .fb_button {
	vertical-align: text-bottom;
	margin: 0 4px;
	padding: 0 1px;
	height: auto;
}
Xdiv.pagination a.fb_button {
	padding: 1px 2x;
}
div.pagination button.fb_button {
	padding: 0 1px;
}
div.pagination a.fb_icon span,
div.pagination a.fb_button span {
	font-size: 11px;
}
div.pagination .controls a.fb_button {
	/*Don't want so much spacing here*/
	margin: 0 0 0 4px;
}
div.pagination .controls a.fb_button span {
	padding: 0 1px;
	min-width: 0.9em;
	text-align: center;
}
div.pagination a.sel {
	background-color: #444;
	}
div.pagination a.sel span {
	color: white;
	text-shadow:0px 1px 0 rgba(255,255,255,0.1);  
	}




table.innerpanel tr:hover td {
	/*background-color: gold !important;*/
	background-color: rgba(238,224,65,0.8) !important;
}
table.innerpanel tr.header:hover td {
	background: #CDCDCD !important;
}
table.innerpanel th a,
table.innerpanel th span {
	color: #000;
	color: rgba(0, 0, 0, 0.8);
	text-shadow:1px 1px 0 rgba(255,255,255,0.3);
}
table.innerpanel tr.header td{
	padding: 2px 0 0 0;
	margin: 0;
	text-align: left;
	background: #CDCDCD;
	}
table.innerpanel tr.header td h2,
table.innerpanel tr.header td h3 {
	margin: 0;
	padding: 3px 6px;
	font-size: 13px;
	font-weight: bold;
	}
/*
 * Loading spinner for AJAX driven tables
 */
tr td.loading {
	background: url(../images/spinner.gif) left top;
	text-align: center;
	color: #aaa;
}


table.innerpanel td a {
	font-weight: bold;
}
table.innerpanel td a.fb_button {
	font-weight: normal;
}
table.innerpanel td a:hover {
	color:black;
}

table.innerpanel td.l {
	border-left: 1px silver solid;
	border-left: 1px rgba(255,255,255,0.7) solid;
}
table.innerpanel td.n-a {
	/*For a non-applicable column : ie. one that need not have a value*/
	font-style: italic;
	color: #777;
	text-align: center;
}
table.innerpanel td.n-a:before {
	content: "N/A";
}

table.innerpanel td a.blk{
	float:left;
	clear:none;
	font-weight:bold;
	height:14px;
	min-width:14px;
	text-align:center;
	vertical-align:middle;
	padding:2px;
	margin-left:1px;
	margin-top:-1px;
	margin-bottom:-1px;
	border-top:1px white solid;
	border-left:1px white solid;
	border-right:1px #C0C0C0 solid;
	border-bottom:1px #C0C0C0 solid;
	}
table.innerpanel td a.blk:hover{background-color:orange;color:white;font-weight:bold;}
table.innerpanel td .block{
	float:left;
	clear:none;
	font-weight:bold;
	height:15px;
	padding:1px;
	margin-left:1px;
	margin-top:-1px;
	margin-bottom:-1px;
	}
table.innerpanel td a.blk.spacebfr {
	margin-left:0.5em;
}

table.innerpanel td a.ed {
	background:transparent url(/admin/icons/ed.gif) center center no-repeat;
	width:15px;
	display:block;
	position:relative;
}
table.innerpanel td p {
	margin: 0 0 4px 0;
}

.delete{color:red;}
.colbox{border:1px black solid;width:10px;margin:2px 0 2px 0;}

table.innerpanel th p {padding:2px 3px 2px 3px;margin:0;}
table.innerpanel th a,
table.innerpanel th span {
	padding: 2px 3px 2px 3px;
	display: block;
	}
table.innerpanel th {
	font-size: 11px;
	background-position: right center;
	}
table.innerpanel th.thsort {
	background-image: url(../icons/sort_sprite.png);
	background-position: right center;
	background-repeat: no-repeat;
	}
table.innerpanel th.thsort.up {
	background-position: right top;
	}
table.innerpanel th.thsort.dn {
	background-position: right bottom;
	}
table.innerpanel th.thsort.up a,
table.innerpanel th.thsort.dn a {
	background-color: rgba(255, 255, 255, 0.5);
	
}
table.innerpanel th.thsort:hover {
	background-color: dimgray;
	background-color: rgba(255, 255, 255, 0.5);
	background-position: right top;
	}
table.innerpanel th.dn:hover {
	background-position: right top;
	}
table.innerpanel th.up:hover {
	background-position: right bottom;
	}
table.innerpanel th.thsort a {
	text-decoration: none;
}

/*thumbs*/
table.innerpanel td.t img{ margin: 2px 4px; }
table.innerpanel td.t { padding: 2px 1px; width: 71px; }
table.innerpanel td.t img {
	padding: 0;
	margin: 0px;
	width: 69px;
	height: 52px;
	display: block;
	border: 1px #ffffff solid;
	}

table.innerpanel td.t a {
	display: block;
	position: relative;
	padding: 0;
}
table.innerpanel td.t a span {
	position: absolute;
	display: block;
	padding: 1px 1px;
	font-family: Arial;
	font-size: 9px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	-moz-box-shadow: rgba(0,0,0,0.4) 1px 1px 2px 0;
	-webkit-box-shadow: 1px 1px 2px rgba(0,0,0,0.4);
	outline: none;
	min-width: 14px;
	text-align: center;
	background: white;
	color: black;
	right: 3px;
	bottom: 3px;
}
/*
table.innerpanel td:first-child {
	-webkit-border-top-left-radius: 8px;
	-moz-border-radius-topleft: 8px;
	border-top-left-radius: 8px;
}
table.innerpanel td:last-child {
	-webkit-border-top-right-radius: 8px;
	-moz-border-radius-topright: 8px;
	border-top-right-radius: 8px;
}
*/

/*table.innerpanel tr.r0 + tr,*/
table.innerpanel tr.r0 {
	background-color: #eee;
	}
/*table.innerpanel tr.r1 + tr,*/
table.innerpanel tr.r1 {
	background-color: #ddd;
	}
Xtable.innerpanel tr:first-child {
	background: #86B3CB;
}

/*Extra row blow main for details*/
tr.xtr td {
	border-top: 1px #ccc solid;
	border-top: 1px solid rgba(255, 255, 255, 0.5);
	-webkit-border-radius: 0 !important;
	-moz-border-radius: 0 !important;
	border-radius: 0 !important;
}


table.innerpanel tr.emptyrow td {
	text-align: center;
}

/*
////////////////
	Results head
	Updated a little but limited to maintain compatability with older apps HTML
	Use filterpanel for newer apps
////////////////
*/

div.resultshead {
	position: relative;
	font-size: 10px;
	overflow: hidden;
	zoom: 1;
	margin-bottom: 10px;
	}
div.resultshead h3{
	position: absolute;
	display: inline;
	font-weight: bold;
	color: black;
	left: 0px;
	width: 62px;
	margin: 4px 0 0 0 ;
	padding: 0;
	font-size: 10px;
	text-align: center;
}
div.resultshead div {
	background:#c0c0c0;
	position:relative;
	margin-left:62px;
	border-left: 1px white solid;
	overflow:hidden;
	display:block;
	zoom:1;
	padding-bottom: 2px;
	border: 1px white solid;
	}
div.resultshead div.plain {
	margin-left: 0;
	}
}
div.resultshead button span {
	font-size: 12px;
	background-position: right top;
	padding-left: 4px;
	padding-right: 18px;
}

div.resultshead div p {
	margin:3px 8px;
	padding:0;
}

div.resultshead p.blk {
	float: left;
	padding: 1px 3px;
	min-height: 36px;
	margin: 2px 0 0 2px;
	border: 1px #fff solid;
	border: 1px rgba(255,255,255,0.5) solid;
}

div.resultshead p label {
	position:relative;
	display:inline;
	width: auto;
}
div.resultshead p.blk label {
	clear:both;
	position:relative;
	display:block;
	width: auto;
}
div.resultshead p.blk label.inline {
	display: inline;
}
div.resultshead p.blk select,
div.resultshead p.blk input {
	margin:0;
}

div.resultshead span ,
div.resultshead label {
	vertical-align:middle;
	font-family: Arial;/*Arial is very compact and handy for these filter panels*/
	font-size: 11px;
	text-align: left;
	}
div.resultshead select ,
div.resultshead input {
	margin:0 2px 0 0;
	border:1px dimgray solid !important;
	padding:1px 2px;
	vertical-align:middle;
	font-family: Arial;/*Arial is very compact and handy for these filter panels*/
	font-size: 11px;
	}
div.resultshead select {padding:0;}
Xdiv.resultshead a span {
	cursor: pointer;
	position:relative;
	padding:0px 3px;
	display:block;
}

p.panelright {
	position: relative;
	text-align: right;
	overflow: hidden;
	padding-right: 10px;
	padding-bottom: 4px;
	margin-bottom: 5px;
}
div.resultshead p.panelright {
	position: absolute;
	border: none;
	top: 0px;
	right: 0px;
	z-index: 100;
	}

/*
////////////////
	Filters panel
	Replaces resultsheader but uses slightly different HTML
	Resultsheader is maintained for older apps
////////////////
*/
div.filterpanel {
	position: relative;
	/*overflow: hidden;*/
	zoom: 1;
	margin-bottom: 10px;
	}
div.filterpanel form {
	display: block;
	clear: both;
}	
div.filterpanel h3{
	position: relative;
	display: block;
	float: left;
	clear: both;
	font-weight: normal;
	color: black;
	margin: 4px 0 -1px 20px;
	padding: 3px 10px 0 10px;
	font-size: 13px;
	text-align: center;
	border: 1px white solid;
	border-bottom: none;
	background: #C0C0C0;
	z-index: 10;
	/*
	-webkit-border-top-left-radius: 8px;
	-webkit-border-top-right-radius: 8px;
	-moz-border-radius-topleft: 8px;
	-moz-border-radius-topright: 8px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	*/
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
}
div.filterpanel div.filters {
	display: block;
	clear: both;
	background: #c0c0c0;
	position: relative;
	/*overflow: hidden;*/
	padding: 0 126px 0px 0;
	zoom: 1;
	border: 1px white solid;
	/*
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	border-radius: 8px;
	*/
	min-width: 850px;
	}
div.filterpanel div.filters+div.filters {
	border-top: none;
	}


div.filterpanel div.actions {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	border-left: 1px #ccc solid;
	border-left: 1px rgba(255,255,255,0.4) solid;
	/*
	-webkit-border-top-left-radius: 8px;
	-webkit-border-bottom-left-radius: 8px;
	-moz-border-radius-topleft: 8px;
	-moz-border-radius-bottomleft: 8px;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
*/
	text-align: center;
}
div.filterpanel div.actions label {
	/*For sub grouping actions*/
	display: block;
	/*
	border: 1px #e9e9e9 solid;
	border: 1px rgba(255,255,255,0.6) solid;
	-webkit-border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	*/
	margin: 1px 2px;
	padding: 0 3px;
}
div.filterpanel div.actions label select {
	display :block;
}
div.filterpanel div.actions label.alert {
	color: #922;
	border: 1px red solid;
	border: 1px rgba(255,0,0,0.6) solid;
	/*
	-webkit-border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	*/
}
div.filterpanel li.alert {
	color: #922;
	border: 1px red solid;
	border: 1px rgba(255,0,0,0.6) solid;
	/*
	-webkit-border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;	
	*/
}


div.filterpanel .actions .fb_button {
	width: 120px;
	margin: 3px;
	font-size: 12px;
	display: block;
}
div.filterpanel .fb_button span {
	font-size: 12px;
}
div.filterpanel ul {
	/*display: table;*/
	/*overflow: hidden;*/
	margin: 0;
	padding: 1px;
	/*border-spacing: 2px;*/
	/*border-collapse: separate;	*/
}
/* 
	Clear fix to ensure the group contains the elements but without 
	using overflow:hidden so that multiple select panels can popout
*/
div.filterpanel ul:after,
div.filterpanel ul:before {
	content: "";
  display: table;
}
div.filterpanel ul:after {
	clear:both;
}


div.filterpanel li {
	display: block;
	float: left;
	white-space: nowrap;
	padding: 2px 1px 1px 3px;
	vertical-align: top;
	min-height: 36px;
	height: 38px;
	margin: 2px 0 0 2px;
	margin: 1px;
	border: 1px #e9e9e9 solid;
	border: 1px rgba(255,255,255,0.6) solid;
	/*
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	*/
	background-image: -webkit-gradient(
	    linear,
	    left top,
	    right bottom,
	    color-stop(0, rgba(0,0,0,0.1)),
	    color-stop(0.2, rgba(0,0,0,0)),
		color-stop(0.9, rgba(255,255,255,0.1))
	);
	background-image: -moz-linear-gradient(
	    left top,
	    rgba(0,0,0,0.1) 0%,
	    rgba(0,0,0,0) 20%,
		rgba(255,255,255,0.1) 90%
	);
}
/*Fuild mode uses plain floats. no fixd heights*/
div.filterpanel ul.fluid {
	diaply: block;
}
div.filterpanel ul.fluid li {
	float: left;
	display: block;
}


div.filterpanel li label {
	clear: both;
	position: relative;
	display: block;
	width: auto;
	margin-right: 3px;
}
div.filterpanel li label.inline {
	display: inline;
}
div.filterpanel label,
div.filterpanel select,
div.filterpanel input {
	font-size: 11px;
	vertical-align: middle;
	font-family: Arial; /*Arial is very compact and handy for these filter panels*/
	text-align: left;
	margin: 0;
	}
div.filterpanel select,
div.filterpanel input {
	border: 1px dimgray solid !important;
	}
div.filterpanel input.chbx {
	border: none !important;
	}
div.filterpanel select {
	margin: 0 2px 2px 0;
	}
div.filterpanel input { 
	padding: 0 2px;
}

div.filterpanel label input { margin: 0;}

div.filterpanel a.date-picker-control {
	/*Placed by datepicker.js*/
	margin: 0 3px;
}
div.filterpanel button[type="submit"] {
	background-color: #e7db50;
}
div.filterpanel li .checkboxgroup label {
	display: inline-block;
}
div.filterpanel li .select_multiple_wrapper .checkboxgroup label {
	display: block;
}

div#menus h4 {
	margin-top:1em;
}
div#menus h4 a {
	font-weight:normal;
}


@media screen and (-webkit-min-device-pixel-ratio:0) {
	/* CSS Statements that only apply on webkit-based browsers (Chrome, Safari, etc.) */ 
	
	/*
		These rules are needed because webkit seems to have 
		EXTREME rendering speed issues for tables with rgba <TD>
		borders when border-collapse: seperate.
		Solution is a workaround that uses border-collapse: collapse
		but that has side effect of ruining roudned corners on tables
		So this code removes rounded corners...
	*/
	table.innerpanel {
		border-collapse: collapse;
		/*
		-webkit-border-radius: 0px;
		border-radius: 0px;		
		*/
	}
	/*First TH or TD*/
	table.innerpanel th.first,
	table.innerpanel th:nth-child(1),
	table.innerpanel td.first,
	table.innerpanel td:nth-child(1) {
		/*
		-webkit-border-radius: 0 !important;
		border-radius: 0 !important;
		*/
		border-left: none;
	}
	/*last TH or TD*/
	table.innerpanel th.last,
	table.innerpanel th:nth-last-child(1),
	table.innerpanel td.last,
	table.innerpanel td:nth-last-child(1) {
		/*
		-webkit-border-radius: 0 !important;
		border-radius: 0 !important;
		*/
		border-right: none;
	}
	table.innerpanel tr:last-child td {
		border-bottom: 1px #fff solid;
	}
	table + div.pagination {
		border-top: 1px #fff solid;
	}
	table + div.pagination div.tab {
		/*Pagination under the table : Assumes no actions just pagination*/
		border-top: none;
	}	
}
