body {
	background-image: url('../images/background.jpg');
	margin-left: auto;
	margin-right: auto;
	font-family: verdana, arial;
	font-size: 11px;
	color: #000000;
	width: 99%;
}

#main {
	clear: both;
	background-color: #FFF7F7;
	border: 1px solid #8C7563;
	border-top: 0px;
	width: 99%;
	min-height: 500px;
	padding: 1% 0.5% 1% 0.5%;
}

#logo {
	border: 1px solid #8C7563;
	border-bottom: 0px;
	width: 100%;
	background:#FFFFFF url('../images/toplogobg.jpg') bottom right no-repeat;
}

#user {
	margin: 0pt 0pt 0pt auto;
	border: 1px dotted #B5B5CE;
	width: 300px;
	min-height: 80px;
	padding: 5px 5px 5px 5px;
}
/*
#simpleTooltip { 
	padding: 3px; 
	border: 1px solid #A6A7AB; 
	background: #F2F3F5;
	z-index: 4;
	max-width: 300px;
} */

#tooltip {
	position: absolute;
	z-index: 6000;
	border: 1px solid #111;
	background-color: #eee;
	padding: 5px;
}

#tooltip h3, #tooltip div { 
	margin: 0; 
	font-size:11px;
	font-weight: normal;
}

* html  .simpleTooltip {
	width: 300px;
} 

.loading {
	width: 100%;
	min-height: 100px;
	background: url('../images/loader.gif') no-repeat center center;
}

#error td {
	text-align:center;
}

input {
	border-color:#555599 #EEEEEE #EEEEEE #555599;
	border-style:solid;
	border-width:1px;
	font-family:Verdana;
	font-size:10px;
}

button {
	border: 1px solid #7E7567;
	background: #E8E1CF url('../images/icons/rowbg.gif') top left repeat-x;
}

select {
	border-color:#555599 #EEEEEE #EEEEEE #555599;
	border-style:solid;
	border-width:1px;
	font-family:Verdana;
	font-size:10px;
}

a:link {
	color:#000000;
} 
a:visited {
	color:#404040;
}
a:hover {
	color:#727272;
}  
a:active {
	color:#0000FF;
} 

/* forms */
.form {
	margin: 0pt auto;
	text-align: left;
}

.form.border table {
	border: 1px solid #7E7567;
}

.form table {
	width: 100%;
}

.form td {
	width: 50%;
}

.form td.button {
	text-align:center;
}

.form td.warning {
	border: 1px dotted #FF1115;
	text-align: center;
}

.form th {
	background-color: #E8E1CF;
	border: 1px solid #ECE9D8;
	text-align: center;
	height: 20px;
}

.form input {
	width: 95%;
}

.form button {
	width: 100px;
}

.form select {
	width: 100%;
}

.w300 {
	width: 300px;
}

.w500 {
	width: 500px;
}

.busy {
	background-image: url('../images/loader.gif');
	background-repeat:no-repeat;
	background-position:center center;
}

/* table inc */
.table_inc table {
	/* ------------------ EDIT HERE ------------------ */
	border: 1px solid #B1CCCF;
}

.table_inc button {
	width: 125px;
}

.table_inc th {
	height: 20px;
	background-color: #E8E1CF;
}

.table_inc td.suc {
	border: 1px dotted #42FF3F;
	text-align: center;	
}

.table_inc td.fai {
	border: 1px dotted #FF1115;
	text-align: center;
}

.table_search table {
	width: 500px;
}

.table_search td.left {
	width: 150px;
}

.table_search input {
	width: 98%;
}

.table_search select {
	width: 98%;
}

/* navigation */

.nav {
	clear:left;
	float:left;
	padding:0;
	background: #E8E1CF url('../images/icons/rowbg.gif') top left repeat-x;
	border:1px solid #7E7567;
	width:100%;
	height: 20px;
	border-bottom:1px solid #7E7567;
	overflow:hidden;
	font-family:Verdana, sans-serif;
}

.second {
	border-top: 0px;
	background: #FFFFFF;
}

.nav ul {
	float:left;
	margin:0;
	padding:0;
	list-style:none;
	position:relative;
	left:50%;
	text-align:center;
}
.nav ul li {
	display:block;
	float:left;
	list-style:none;
	margin:0;
	padding:0;
	position:relative;
	right:50%;
}
.nav ul li.first {
	border-left:1px solid #7E7567;
}
.nav ul li.last {
	border-right:1px solid #ECE9D8;
}
.nav ul li a {
	display:block;
	float:left;
	margin:0;
	padding:4px 10px 5px 10px;
	border-left:1px solid #ECE9D8;
	border-right:1px solid #7E7567;
	text-decoration:none;
	color:#7D6A46;
	font-size:.8em;
	font-weight:bold;
	text-transform:uppercase;
	line-height:1.3em;
}
.nav ul li a:hover {
	color:#000;
	/* ------------------ EDIT HERE ------------------ */
	background: #86C6D2;
	border-left:1px solid #111538;
	padding-top:4px;
	padding-bottom:5px;
}
.nav ul li.active a,
.nav ul li.active a:hover {
	color:#fff;
	/* ------------------ EDIT HERE ------------------ */
	background:#111538;
	border-left:1px solid #000;
	padding-top:4px;
	padding-bottom:5px;
}

/* tables */
.table {
	border: 1px solid #BFB3A9;
	background-color: #FFFFFF;
	padding: 1px 1px 1px 1px;	
}

.table td, .table th {
	height: 17px;
}

.table .INT, .table .MONEY {
	text-align: right;
}

.table .DATE, .table .DATETIME, .table .TIME {
	text-align: center;
}

.table td.filter  {
	padding: 2px 2px 2px 2px;
	text-align: center;
	border-right: 1px solid #8C7464;
	border-bottom: 1px solid #8C7464;
}

.table td.row  {
	padding: 2px 2px 2px 2px;
	border-right: 1px solid #E8E4D8;
	border-bottom: 1px solid #E8E4D8;
}

.table img.header {
	vertical-align:middle;
}

.table td.filterbutton, .table td.limit {
	background-color: #EAE4D5;
	padding: 4px 4px 4px 4px;
}

.table td.filterbutton {
	//text-align: right;
}

.table th.header, .table td.row.left, .table td.filter.left, .table td.filter.remove, .table td.filter.addedrow, .table td.filter.INTCOL, .table td.filter.INTCOL2, .table td.filter.ENCRYPT, .table td.filter.ENCRYPTRJ {
	border: 1px solid #8C7464;
	text-align: center;
	color: #000000;
	font-weight: normal;
	background: #EAE4D5 url('../images/icons/headerbg.gif') repeat-x top right;
}

.table td.left {
	width: 6px;
}

.table tr.row:hover, .table tr.filter:hover {
	background: #E8E1CF url('../images/icons/rowbg.gif') top left repeat-x;
}

.table tr.row:hover td.left {
	background-image: url('../images/icons/arrow.gif');
	background-repeat:no-repeat;
	background-position:center center;
}

.table th.curorderdesc {
	background-image: url('../images/icons/desc.gif');
	background-repeat:no-repeat;
	background-position:top right;
}

.table th.curorder {
	background-image: url('../images/icons/asc.gif');
	background-repeat:no-repeat;
	background-position:top right;
}

.table input, .table  select{
	width: 100%;
	border: 0px;
}

.table select.limit {
	width: 50px;
}

.table span.pages {
	float: right;
}

.table th.header {
	cursor: pointer;
}

.table td.BOOL, .table td.ONEBOOL, .table td.BOOL_SET_ONLY_TO_TRUE, .table td.INTCOL, .table td.check , .table td.INTCOL2 {
	text-align: center;
	cursor: pointer;
}

.table  td.addedrow, .table td.remove {
	text-align: center;
	width: 25px;
	cursor: pointer;
}

.table th.remove, .table th.addedrow, .table th.header.INTCOL, .table td.filter.addedrow, .table td.filter.remove, .table td.filter.INTCOL, .table th.left  {
	cursor: auto;
}

.table .norows {
	text-align: center;
	font-style:italic;
}

/* legend */
table.legenda{
	border: 1px dotted #B5B5CE;
	min-width: 300px;
}

/* popup */
table.pop_table {
	border-collapse:collapse;
	border-spacing:0;
	border: 0px;
	height:100%;
	margin:0;
	width:100%;
}

td.pop_b {
	background: url("../images/popup/b.png") repeat-x left bottom;
	height:14px;
	padding:0;
}

td.pop_l {
	background: url("../images/popup/l.png") repeat-y right top;
	font-size:1px;
	padding:0;
	width:13px;
}

td.pop_lb {
	background: url("../images/popup/lb.png") no-repeat right bottom;
	height:14px;
	padding:0;
	width:13px;
}

td.pop_b {
	background: url("../images/popup/b.png") repeat-x left bottom;
	height:14px;
	padding:0;
}

td.pop_rb {
	background: url("../images/popup/rb.png") no-repeat left bottom;
	height:14px;
	padding:0;
	width:13px;
}

td.pop_l {
	background: url("../images/popup/l.png") repeat-y right top;
	font-size:1px;
	padding:0;
	width:13px;
}

td.pop_r {
	background: url("../images/popup/r.png") repeat-y left top;
	padding:0;
	width:13px;
}

td.pop_lo {
	background: url("../images/popup/lo.png") no-repeat right top;
	height:29px;
	padding:0;
	width:13px;
}

td.pop_o {
	background: url("../images/popup/o.png") repeat-x left top;
	height:29px;
	padding:0;
}

td.pop_ro {
	background: url("../images/popup/ro.png") no-repeat left top;
	height:29px;
	padding:0;
	width:13px;
}

table.pop2_table {
	border: 1px solid #8C7464;
	background-color:#EAE4D5;
	background-image:url("../images/icons/rowbg.gif");
}

#popup_close {
	background-image:url("../images/icons/rowred.gif");
}

td.pop2_l {
	width:10px;
}

td.pop2_r {
	width: 10px;
}

td.pop_content {
	background-color:#FFFFFF;
}

tablec_pop_head, table.c_pop_head, table.c_pop_new, table.c_pop_leg, table.c_pop_cont, td.c_pop_cont.head {
	border: 1px solid #8C7464;
}

tr.c_pop_cont:hover {
	background-color: #E8E4D8;
	background-image: url('../images/icons/rowbg.gif');
}

/* jqModal base Styling courtesy of;
	Brice Burgess <bhb@iceburg.net> */

/* The Window's CSS z-index value is respected (takes priority). If none is supplied,
	the Window's z-index value will be set to 3000 by default (via jqModal.js). */
	
/*	
.jqmWindow {
    display: none;
    
    position: fixed;
    top: 17%;
    left: 50%;
    
    margin-left: -300px;
    width: 600px;
    
    color: #333;
}
*/
.jqmOverlay { background-color: #000; }

/* Background iframe styling for IE6. Prevents ActiveX bleed-through (<select> form elements, etc.) */
* iframe.jqm {position:absolute;top:0;left:0;z-index:-1;
	width: expression(this.parentNode.offsetWidth+'px');
	height: expression(this.parentNode.offsetHeight+'px');
}

/* Fixed posistioning emulation for IE6
     Star selector used to hide definition from browsers other than IE6
     For valid CSS, use a conditional include instead */
* html .jqmWindow {
     position: absolute;
     top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
}