html, body, form, fieldset {
    margin: 0;
    padding: 0;
}

body {
    font: normal 62.5%/1.5 Helvetica, arial, verdana;
	background: #333;
}

h1 {
    font-size: 436%;
}

a, a:visited {
    color: #646464;
}

a:hover {
    color: #a0a0a0;
}

a img {
    border: none;
}

.clear {
    clear: both;
}
.cls {
    clear: both;
    height: 1px;
    font-size: 1px;
    margin-top: -1px;
    visibility: hidden;
    color: transparent;
    background: transparent;
    border: none;
}
.left {
    float: left;
}

.right {
    float: right;
}

.inline {
    display: inline;
}

.center {
    text-align: center;	
}

.white_bg {
	padding: 10px;
	background: #fff;
}

#divider {
	height: 30px;
	background: #1580b8 url(../images/backgrounds.png) repeat-x 0 -83px;
	border-bottom: 5px solid #292929;
	margin: 0;
	padding: 0;
}

#head, #wrap {
    width: 960px;
    margin: 0 auto;
	position: relative;
}


#logo {
    position: absolute;
    top: 6px;
    left: 0;
    width: 173px;
    height: 29px;
    text-indent: -999px;
    background: transparent url(../images/logo.png);
    color: #ccc;
	margin: 0;
	padding: 0;
}
#useractions {
	position: absolute;
	top: 12px;
	right: 10px;
	font-size: 1.2em;
	color: #646464;
}
#titlezone {
    clear: both;
    margin: 20px 0 0;
    position:relative;
}


#main {
    clear:both;
}
#footer {
    margin: 20px 0;
    color: #999;
    font-size: 12px;
    text-align: right;
}
#user {
    height: 100px;
    float: right;
    width: 475px;
}

#user p {
    color: #a0a0a0;
    margin-top: 50px;
    font-size: 150%;
    text-align: right;
}

#orderplot, #key_info {
    width: 768px;
    height: 300px;
    float: left;
}
#key_info {
    height: auto;
    margin-bottom: 30px;
}

#nav {
    clear: right;
    float: right;
    width: 190px;
}

#actions-primary ul li {
    display: block;
    height: 30px;
    margin: 0 0 20px;
    line-height: 30px;
}

a.button {
    width: 141px;
    display: block;
    float: left;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    padding-left: 4px;
    text-transform: uppercase;
    text-align: center;
    background: url(../images/button-back.png) no-repeat;
    color: #fff;
    text-decoration: none;
    margin-right: 6px;
}


h2 {
    margin: 0;
    padding: 0;
    line-height: 30px;
    font-size: 200%;
    color: #556;
    float: left;
}

#search {
	margin: 0;
    padding: 4px 10px 6px;
    background: #fff;
	font-size: 1.2em;
	border-top: 1px solid #1c1c1c;
	color: #333;
	clear: both;
}

#search form {
    padding: 5px 0;
	border-bottom: 1px solid #e5e5e5;
}

#search .checkbox {
    padding-top: 5px;
}
#initsearch {
    margin-left: 5px;
}
#search label {
}

#search label.show {
}

#saleslist {
    padding: 10px;
	background: #fff;
}

/* customer info */
#customer_info {
    clear: both;
}
.address {
    float: left;
    width: 25%;
}
.notes {
    float: left;
    width: 50%;
    position: relative;
}
.note {
    background: #ffd;
    padding: 10px;
    margin: 0 20px 10px 0;
}
.notes .action {
    position: absolute;
    top: 20px; 
    right: 50px;
}


/* customer history */
.kpi_bar {
    background: #eee url(../images/backgrounds.png) repeat-x top left;
	height: 75px;
	border-bottom: 2px solid #222;
	padding: 0 0 1px 132px;
    margin: 10px 0 12px;
    position: relative;
	text-shadow: 0 1px 1px #fff;
}
.kpi_bar h1 {
    position: absolute;
    top: 15px;
    left: 13px;
    color: #777;
	font-weight: normal;
    letter-spacing: 2px;
    font-size: 70px;
    margin: 0;
    padding: 0;
    line-height: 1;
width: 103px;
height: 46px;
text-indent: -999px;
background: transparent url(../images/keysalesstats.png) no-repeat top left;	
}
.kpi {
    float: left;
    border-left: 1px solid #c6c6c6;
    padding: 15px 20px 5px 10px;
    line-height: 1;
	height: 52px;
}
.kpi h4 {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: normal;
    margin: 0;
    padding: 0;
    color: #929292;
}
.kpi p {
    font-size: 3.2em;
    margin: 3px 0 0;
    padding: 0;
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
}
	.kpi p.money { color: #2b4309;}

/* main table style */
.main {
    width: 100%;
	background: #f2f2f2 ;
	font-size: 1.2em;
}
.main thead {
	border: 1px solid #136692;
	border-width: 0 1px;
}

.main th {
    text-align: left;
    background: #1780b7;
    color: #fff;
}
.main td {
    border-bottom: 1px solid #ddd;
	border-left: 1px solid #ccc;
}
	.main td.order_summary {
		border-left: 0;
	}
.main tr.alt td {
    background: #c8c7c5;
background: #fbfbfb;
}

.main td.check {
    background: #c40111 !important;
    border-color: #c40111 !important;
    width: 16px;
}
.main tr:hover td {
    background: #f1ecb4 !important;
}
.main tr:hover td.check {
    background: #9E0E15 !important;
}
/*.main tr.alt td.check {
    background: #990110;
}*/
td.actions {
	text-align: left;
	border-right: 1px solid #ccc;
}
	td.actions img {
	    padding: 6px 3px;
	    cursor: pointer;
		margin-right: 0;
	}
.main img {
    margin-right: 10px;
}

/* actions items and pagination, below the table */
#table_actions, .table_actions {
	margin: 3px 0 0;
	padding-top: 7px;
	background: #fff url(../images/bulk-indicator.png) no-repeat 7px 0;
    clear: both;
}
/* bulk actions controller */
#justdoit {
    padding: 8px 36px 8px 8px;
    line-height: 36px;
    background-color: #e5e5e5;
border-bottom: 1px solid #ccc;    
vertical-align: bottom;
font-weight: bold;
font-size: 12px;
    }

/* pagination */
.pagination {
    margin: 0 0 10px 10px;
}
.pagination ul {
    display: inline;
    list-style-type: none;
    padding: 0;
}
.pagination li {
    display: inline;
    margin: 0;
    position: relative;
    color: #333;
font-size: 110%;
}

.pagination li a {
    text-decoration: none;
    padding: 4px 5px 7px 4px !important;
    color: #333;

}
.pagination li.currentPage a {
    background: transparent url(../images/pagination-here.png) no-repeat;
	color: #fff;
    padding: 4px 8px 7px 7px !important;
	margin: 0 -3px;
}
#maxDisplayRecords {
    float: right;
}

/* wholesale orders link */
#place_orders {
}
#place_orders a {
    text-decoration: none;
	margin: 0 10px -1px;
    padding: 6px 10px 2px 9px;
    font-size: 120%;
    color: #fff;
	background: #5d752b url(../images/button-bg.png) repeat-x 0 0;
	border-top: 1px solid #262626;
	border-bottom: 6px solid #516822;
	display: block;
	float: right;
}
#place_orders a span {
	padding-left: 14px;
    background: transparent url(../images/plus-order.png) no-repeat  0 1px;
}
#place_orders a:hover {
    color: #ccc;
}

/* message container */
#message_container {
  width:40%;
  position:fixed; top:10px; left:10px;
  z-index: 999;
}

span.messageSuccess, div.messageError {
  margin:0 0 10px;
  padding:10px;
  border:5px solid;
  display:block;
  font-size:16px;
}

span.messageSuccess {
  border-color:#33CC00;
  background:#ECFFE5;
  color:#208000;
}

div.messageError {
  border-color:#600;
  background:#fee;
  color:#600;
}


table {
    font-size: 120%;
    color: #333;
}
table .order_summary a,
table .customer a {
    color: #009;
color: #333;
    text-decoration: none;
    padding: 4px 5px;
    margin: -4px -5px;  
}
table .order_summary a:hover,
table .customer a:hover {
    background-color: #009;
background-color: #333;
    color: #fff;
}
table .customer .history {
	color: #b2b2b2;
}
.main tr td.checkbox,
.main tr td.order_summary {
	background-color: #e8f1f6;
}
	.main tr td.checkbox {
		padding: 0 0 0 3px;
	}
.order_summary .order_details { 
	float: left;
}
	.order_summary .order_details a {
		font-weight: bold;
	}
	.order_summary .items {
	    padding: 0;
	}

/* table for  customer entry on wholesale order page */
.wholesale_customer {
    width: 100%;
    border: none;	
    margin-bottom: 25px;
}

.wholesale_customer td {
	width: 40%;
	vertical-align: top;
}

.wholesale_customer .row {
    margin-bottom: 3px;	
}

.wholesale_customer label {
	float: left;
    font-weight: bold;	
    width: 100px;
}

.wholesale_customer input {
    display: inline;	
}

/* order view */
#orderview {
    width: 100%;
    border: none;	
}

#orderview td {
	vertical-align: top;
}

#orderview .main_details p {
	padding-bottom: 5px;
}

.orderview_address {
    padding: 5px;
    padding-bottom: 35px;
    border-bottom: 1px solid #a0a0a0;	
}

.orderview_address .addressview {
	height: 80px;
}

.orderview_address label {
    float: left;
    font-weight: bold;
    width: 100px;
    padding-top: 2px;	
}

.orderview_address input {
    margin-bottom: 5px;	
}

#orderview_summary {
    width: 100%;
    border: 1px solid #a0a0a0;
}

#orderview_summary th {
    text-align: left;
    background: #a0a0a0;
    color: #fff;	
}

#orderview_summary td.detail_weight {
    border-bottom: 1px solid #a0a0a0;	
}

#orderview_summary tr.transaction_detail_bottom td {
    border: none;
    padding: 3px 0 3px 2px;	
}

#barcode {
	width: 160px;
    float: right;	
}

/* Groovy new menu */
#topnav {
	margin:8px 0 0 200px;
}
ul.windy {
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.windy li {
	display: inline;
	float: left;
	margin: 0 1px 0 0;
	padding: 0;
}
ul.windy a {
	color: #fff;
	background: #157eb5 url(../images/nav-tab-bg.png) repeat-x 0 0;
	border-top: 1px solid #262626;
	border-bottom: 6px solid #105a81;
	font-size: 1.3em;
	line-height: 1;
	padding: 18px 23px 4px 11px;
	text-decoration: none;
	text-transform: uppercase;
	float: left;
	display: block;
	text-shadow: 0 -1px 0 #0d4c6b;
}
ul.windy a:hover {
	background-position: 0 -70px;
	border-bottom-color: #bababa;
	color: #333;
	text-shadow: 0 1px 0 #fff;
}
ul.windy li.active a,
ul.windy li.active a:hover {
	background-position: 0 -35px;
	border-bottom-color: #6a9716;
	cursor: pointer;
	color: #fff;
	text-shadow: 0 -1px 0 #678d14;
}


.kwicks {
    list-style-type: none;
    list-style-position:outside;
    position: relative;
    margin: 20px 0;
    padding: 0;
    background-image:url(../images/nav.png);
    width: 960px;
    height: 40px;
}
 .kwicks li{
    display: block;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    float: left;
    width: 160px;
    height: 40px;
    margin-right: 0px;
    background-image:url(../images/nav.png);
    background-repeat:no-repeat;
}
.kwicks a{
    display:block;
    height:40px;
    text-indent:-9999px;
    outline:none;
}
#kwick2 { background-position:0 0; }
#kwick8 { background-position:-160px 0; }
#kwick4 { background-position:-320px 0; }
#kwick9 { background-position:-480px 0; }
#kwick6 { background-position:-640px 0; }
#kwick2.active, #kwick2:hover { background-position: 0 bottom; }
#kwick8.active, #kwick8:hover { background-position: -160px bottom; }
#kwick4.active, #kwick4:hover { background-position: -320px bottom; }
#kwick9.active, #kwick9:hover { background-position: -480px bottom; }
#kwick6.active, #kwick6:hover { background-position: -640px bottom; }