body {
	margin: 0;
	padding: 0;
	font: 12px/18px "Lucida Grande", Lucida, Verdana, sans-serif;
	background: #d4d4d4 url(../images/bg.gif) repeat-x top left;
	color: #141616;
	text-align: center;
}
a {
	text-decoration: none;
	color: #297ca4;
}
a:hover {
	text-decoration: none;
	color: #58a4c8;
}
a img {
	border: none;
}
.clear {
	clear: both;
}
#main {
	width: 900px;
	margin: 0 auto;
	text-align: left;
}
#header {
	margin: 20px 0 0 0;
	padding: 0;
	height: 55px;
}
#header #logo {
	height: 37px;
	float: left;
}
#header ul {
	margin: 10px 0 0 0;
	padding: 0;
	list-style: none;
	float: right;
}
#header ul li {
	float: left;
	padding: 0 0 10px 0;
	margin: 0 0 0 10px;
}
#header ul li.here {
	background: url(../images/nav-arrow.gif) no-repeat center 20px;
}
#header ul li a {
	padding: 5px 20px;
	color: #4c4c4c;
	text-decoration: none;
}
#header ul li.here a {
	background: #d0e1ea;
	color: #487083;
}
#page {
	background: #fff;
}
#page #login {
	margin: 0;
	padding: 40px 15px;
	text-align: center;
}
#page #login .error {
	background: #f9e6e6;
	border: 1px solid #f3c2c2;
	padding: 10px;
}
#page #login form {
	width: 250px;
	margin: 0 auto;
	padding: 0;
	text-align: left;
}
#page #login form fieldset {
	border: none;
	margin: 0;
	padding: 0;
}
#page #login form fieldset label {
	display: block;
	margin: 10px 0 0 0;
}
#page #login form div {
	margin: 10px 0 0 0;
}
#page #login form div .right {
	float: right;
	margin: 3px 0 0 0;
	font-size: 90%;
}
#page #nav {
	background: #141616;
	height: 70px;
}
#page #nav h3 {
	font-size: 140%;
	font-weight: normal;
	margin: 0;
	padding: 15px 0 5px 15px;
	color: #fff;
}
#page #nav .logout {
	margin: 0 0 0 15px;
	color: #fff;
	font-size: 90%;
	xtext-decoration: none;
}
#page #nav ul {
	margin: 0;
	padding: 44px 4px 0 0;
	list-style: none;
	float: right;
}
#page #nav ul li {
	float: left;
	padding: 0 0 10px 0;
	margin: 0 0 0 4px;
}
#page #nav ul li a {
	padding: 7px 20px 10px 20px;
	color: #fff;
	text-decoration: none;
	background: url(../images/nav-bg.gif) repeat-x top left;
}
#page #nav ul li.here a {
	background: #fff;
	color: #141616;
}
#page #bar {
	margin: 0 ;
	padding: 15px 15px 15px 15px;
}
#page #content {
	margin: 0;
	padding: 15px;
	display: block;	
}
#page #content .title {
	padding: 0;
	font-size: 100%;
}
#page #content .title span {
	background: #141616;
	color: #fff;
	padding: 5px 10px;
}
#page #content table.table {
	margin: 0;
	border: none;
	border-collapse: collapse;
	width: 100%;
}
#page #content table.table td {
	border-bottom: 1px solid #ddd;
	padding: 10px;
}
#page #content table.table thead td {
	background: #141616;
	color: #fff;
	padding: 6px 10px;
	border-bottom: none;
	font-size: 90%;
}
#page #content table.table thead td img {
	vertical-align: top;
	margin-top: 7px;
	width: 7px;
}
#page #content table.table thead td .filter {
	width: 100px;
}
#page #content table.table thead td a {
	color: #fff;
}
#page #content table.table tfoot td {
	border-bottom: none;
	padding: 10px 0;
	vertical-align: top;
}
#page #content table.table thead td.td-id {
	width: 150px;
}
#page #content table.table thead td.td-date {
	width: 170px;
}
#page #content table.table thead td.td-status {
	width: 180px;
}
#page #content table.table thead td.td-qty {
	width: 130px;
}
#page #content table.table thead td.td-desc {
	width: 350px;
}
#page #content table.table thead td.td-company {
	width: 280px;
}
#page #content table.table thead td.td-ic {
	width: 110px;
}
#page #content table.table thead td.td-email {
	width: 200px;
}
#page #content table.table thead td.td-total {
	width: 110px;
}
#page #content table.table tbody td {
	vertical-align: top;
	padding: 10px;
}
#page #content table.table tbody td a {
	font-weight: bold;
}
#page #content table.table tbody td .btn {
	font-size: 90%;
	margin-left: 10px;
	visibility: hidden;
}	
#page #content table.table tbody td .btn a {
	font-weight: normal;
}
#page #content table.table tbody td .btn a.edit {
	margin-right: 3px;
}
#page #content table.table tbody td:hover > .btn {
	visibility: visible;
}
#page #content table.table tbody .odd td {
	background: #f5f5f5;
}
#page #content table.table tbody .item-total td {
	padding-top: 20px;
}
#page #content table.table tbody .item-total td big {
	font-weight: bold;
}
#page #content table.table td.right {
	text-align: right;
}
#page #content table.table tbody td .delete img {
	margin: 8px 0 0 0;
}
#page #content table.table tbody td .info {
	font-size: 90%;
	line-height: 130%;
	color: #4e4e4e;
}
#page #content .pagination-block {
	margin: 10px 0;
}
#page #content .pagination-block p {
	margin: 0;
}
#page #content .pagination-block .pright {
	float: right;
	margin: 0;
	padding: 0;
}
.status {
	padding: 2px 6px;
	font-size: 80%;
	position: relative;
	cursor: pointer;
}
.status em {
	font-style: normal;
}
.draft,
.project_draft {
	background: #ddd;
}
.sent {
	background: #47a4c7;
	color: #fff;
}
.paid,
.billed,
.project_billed {
	background: #77b71d;
	color: #fff;
}
.due {
	background: #c73434;
	color: #fff;
}
.status .context {
	position: absolute;
	right: 0;
	width: 90px;
	background: #fff;
	border: 1px solid #ddd;
	padding: 1px;
	z-index: 999;
	cursor: default;
	text-align: left;
	display: none;
	margin-top: -2px;
}
.status .context a {
	display: block;
	padding: 1px 5px;
}
.status .context a:hover {
	background: #eff9ff;
}

#page #help {
	background: #eff9ff;
	border: 1px solid #d0e1ea;
	padding: 10px;
	margin: 15px;
	position: relative;
	display: none;
}
#page #content #help {
	margin: 0 0 15px 0;
}
#page #help h4 {
	font-size: 100%;
	margin: 0;
}
#page #help p {
	margin: 10px 0 0 0;
}
#page #help .close {
	display: block;
	width: 10px;
	height: 10px;
	background: url(../images/close.gif) no-repeat 2px 2px;
	position: absolute;
	top: 8px;
	right: 10px;
	text-decoration: none;
}

#page #content .form {
	margin: 0 0 20px 0;
	padding: 0;
}
#page #content .form .full-title {
	background: #141616;
	color: #fff;
	padding: 5px 10px;
}
#page #content .form fieldset {
	border: none;
	margin: 0 0 20px 0;
	padding: 15px;
	background: #f5f5f5;
}
#page #content .form fieldset.left {
	width: 46%;
	float: left;
	background: none;
	padding: 15px 0;	
	margin-bottom: 10px;
}
#page #content .form fieldset.right {
	width: 46%;
	float: right;	
	background: none;
	padding: 15px 0;
	margin-bottom: 10px;
}
#page #content .form fieldset.full{
	width: auto;
	float: none;
}
#page #content .form fieldset .title {
	font-weight: bold;
	margin-bottom: 15px;
	border-bottom: 1px solid #ccc;
	padding-bottom: 2px;
	font-size: 120%;
}
#page #content .form fieldset .hr {
	height: 20px;
	margin: 0;
}
#page #content .form fieldset .row {
	clear: left;
	margin: 0 0 10px 0;
}
#page #content .form fieldset .row label {
	float: left;
	width: 150px;
	margin: 0 10px 0 0;
	text-align: right;
	line-height: 230%;
}
#page #content .form fieldset .helpbtn {
	font-weight: bold;
	margin: 0 1px;
	position: relative;
	background: none;
	padding: 0;
	font-size: 12px;
}
#page #content .form fieldset .helpbtn .helpbox {
	background: #f7fdff;
	border: 1px solid #bbd6e3;
	padding: 5px;
	position: absolute;
	top: 0;
	left: 15px;
	cursor: default;
	width: 250px;
	margin: 0;
	font-size: 90%;
	color: #141616;
	font-weight: normal;
	text-align: left;
	line-height: 140%;
}
#page #content .form fieldset.left .row label,
#page #content .form fieldset.right .row label {
	width: 150px;
}
#page #content .form fieldset .row label.nofloat {
	float: none;
	width: auto;
	margin: 0;
	text-align: left;
}
#page #content .form fieldset .row label .expand {
	padding: 2px 15px 2px 10px;
	background: #9c9c9c url(../images/expand_arrow.gif) no-repeat right -7px;
	color: #fff;
}
#page #content .form fieldset .row label .expanded {
	background-position-y: 8px;
}
#page #content .form fieldset .row label.required {
	font-weight: bold;
}
#page #content .form fieldset.left .row .help,
#page #content .form fieldset.right .row .help {
	margin-left: 162px;
}
#page #content .form fieldset .row .textbox {
	width: 300px;
}
#page #content .form fieldset.left .row .textbox,
#page #content .form fieldset.right .row .textbox {
	width: 230px;
}
#page #content .form fieldset .row .textarea {
	width: 675px;
}
#page #content .form fieldset .row .price {
	width: 70px;
}
#page #content .form fieldset .row select {
	margin: 4px 1px;
}
#page #content .form fieldset .row select.fixedwidth {
	width: 300px;
}
#page #content .form fieldset.left .row select.fixedwidth,
#page #content .form fieldset.right .row select.fixedwidth {
	width: 230px;
}
#page #content .form fieldset hr {
	margin: 5px 0;
	border: none;
	border-top: 1px solid #ccc;
	height: 1px;
}

#footer {
	margin: 10px 0 20px 0;
	font-size: 90%;
	color: #616161;
}
#footer p {
	margin: 0;
	padding: 0;
	float: right;
}

.rounded {
	-moz-border-radius: 6px;
	-khtml-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
}
.rounded-top {
	-moz-border-radius-topleft: 6px;
	-moz-border-radius-topright: 6px;
	-khtml-border-radius-topleft: 6px;
	-khtml-border-radius-topright: 6px;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
	-webkit-border-top-left-radius: 6px;
	-webkit-border-top-right-radius: 6px;
}
.button {
	font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
	text-decoration: none;
	font-size: 11px !important;
	line-height: 16px;
	padding: 2px 8px;
	cursor: pointer;
	border-width: 1px;
	border-style: solid;
	-moz-border-radius: 11px;
	-khtml-border-radius: 11px;
	-webkit-border-radius: 11px;
	border-radius: 11px;
	-moz-box-sizing: content-box;
	-webkit-box-sizing: content-box;
	-khtml-box-sizing: content-box;
	box-sizing: content-box;
}
.button {
	background: #f2f2f2 url(../images/white-grad.gif) repeat-x scroll left top;
}

.button:active {
	background: #eee url(../images/white-grad-active.gif) repeat-x scroll left top;
}
.button:hover {
	color: #297ca4;
	border-color: #6ba2bc;
}
.button img {
	vertical-align: top;
	margin: 2px -3px 0 0;
}
button.big {
	font-size: 120% !important;
	line-height: 24px;
	-moz-border-radius: 15px;
	-khtml-border-radius: 15px;
	-webkit-border-radius: 15px;
	border-radius: 15px;
	padding: 2px 10px;
	border-color: #6ba2bc;
	border-width: 2px;
}
button.disabled {
	opacity: 0.5;
	filter:alpha(opacity=50);   
	-moz-opacity: 0.5;  
	cursor: default;
}
textarea,
input {
	font: 13px/19px "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif;
	margin: 1px;
	padding: 3px;
}
select {
	margin: 1px;
}
.textbox,
.textarea {
	border: 1px solid #ccc;
	background: #fff;
	padding: 2px;
	width: 100%;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-ms-box-sizing: border-box; /* ie8 only */
	box-sizing: border-box;
}
.textbox:focus,
.textarea:focus {
	border-color: #6ba2bc; 
	outline: none;
}
.textarea {
	
}
input.invalid,
textarea.invalid {
	border-color: #e4a79c;
	background: #fff1ef;
}
input.price {
	width: 70px;
	text-align: right;
}
input.small {
	width: 50px !important;
}
input.zip {
	width: 70px !important;
}
input.right {
	text-align: right;	
}
div.right {
	text-align: right;
}
div.right .left {
	float: left;
}
#overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: #000;
	opacity: 0.8;
	filter:alpha(opacity=80);   
	-moz-opacity: 0.8;  
	display: none;
	_width: 100%;
}
#window {
	position: fixed;
	top: 0;
	width: 350px;
	background: #fff;
	-moz-border-radius-bottomeft: 10px;
	-moz-border-radius-bottomright: 10px;
	-khtml-border-radius-bottomleft: 10px;
	-khtml-border-radius-bottomright: 10px;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	-webkit-border-bottom-left-radius: 10px;
	-webkit-border-bottom-right-radius: 10px;
	padding: 10px;
	display: none;
}
* html #window {
     position: absolute;
     top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
}
#window p {
	font-weight: bold;
}
#window p.loading {
	height: 120px;
	background: url(../images/loader.gif) no-repeat center center;
}
#window .btn-ok {
	border-color: #6ba2bc;
}
#window form {
	text-align: left;
}
#window form .title {
	margin: 0 0 2px 0;
	font-weight: bold;
}
#window form fieldset {
	border: 1px solid #ddd;
	margin: 0;
	padding: 0 10px 10px 10px;
	background: #f5f5f5;
	position: relative;
}
#window form fieldset label {
	display: block;
	margin: 10px 0 2px 0;
}
#window form fieldset button.right {
	float: right;
	margin-right: 0;
}
#window form fieldset select {
	width: 150px;	
}
#window form fieldset #form-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #000 url(../images/loader_black.gif) no-repeat center center;
	opacity: 0.3;
	filter:alpha(opacity=30);   
	-moz-opacity: 0.3;  
	display: none;
}
#window .results {
	overflow-x: scroll;
	overflow-y: hidden;
	border: 1px solid #ddd;
	margin: 0 0 5px 0;
}
#window .results .row {
	width: 9000px;
}
#window .results .result {
	width: 150px;
	float: left;
	margin: 0 0 0 0;
	padding: 5px;
	text-align: left;
	cursor: pointer;
	border-right: 1px solid #ddd;
	overflow-x: hidden;
}
#window .results .result a {
	text-decoration: none;
	color: #141616;
} 
#window .results .result:hover {
	background: #f0f7fa;
}
.item-total #jsv-discount,
.item-total #jsv-total {
	padding: 3px 0;
	width: 100%;
}
.item-total div .pr {
	width: 150px;
	float: right;
}
.item-total #jsv-discount em {
	font-style: normal;
}
#window form#new-client fieldset label {
	margin: 4px 0 1px 0;
}
#invid_msg img {
	vertical-align: middle;
	margin: 0 0 2px 0;
}

#invoice {
	margin: 0;
	font-family: Arial, Tahoma, Verdana, serif;
	font-size: 110%;
}
#invoice .header {
	margin: 0 0 5px 0;
	padding: 0;	
	position: relative;
}
#invoice .header .left {
	width: 52%;
}
#invoice .header .right {
	width: 47%;
	position: absolute;
	bottom: 0;
	right: 0;
	text-align: left;
}
#invoice .header .left .img-logo {
	max-height: 50px;
}
#invoice .header .left .logo {
	font-size: 130%;
	font-weight: bold;
	margin: 0;
	padding: 0;
}
#invoice .header .right h1 {
	font-size: 130%;
	margin: 0;
	padding: 0;
}
#invoice .block {
	border: 1px solid #595959;
	margin-bottom: 5px;
}
#invoice .noborder {
	border: none;
}
#invoice .block-l {
	width: 52%;
	float: left;
}
#invoice .block-r {
	width: 47%;
	float: right;
	clear: right;
}
#invoice .block .content {
	margin: 10px;
	height: 100%;
}
#invoice .block .content .ic {
	float: right;
}
#invoice .block .content p {
	margin: 15px 0;
	padding: 0;
}
#invoice .block .content p.big {
	height: 135px;
	font-size: 130%;
	line-height: 140%;
	font-weight: bold;
	margin: 80px 0 0 20px;
	padding: 0;
}
#invoice .block .content .table {
	margin: 0;
}
#invoice .block .content .table div {
	clear: right;
}
#invoice .block .content .table div .val {
	float: right;
	width: 55%;
}
#invoice .block .content .wide div .val {
	width: 35%;
}
#invoice .block .content .table div .right {
	text-align: right;	
}
#invoice .block .content table {
	width: 100%;
	border-collapse: collapse;
}
#invoice .block .content table td {
	padding: 3px 0;
	vertical-align: top;
}
#invoice .block .content table td.right {
	text-align: right;
}
#invoice .block .content table thead td {
	border-bottom: 1px solid #595959;
}
#invoice .block .content table tbody td {
	padding: 5px 0;
}
#invoice .footer {
	margin: 140px 0 0 0;
	border-top: 1px solid #595959;
	padding: 5px 0;
	font-size: 80%;
}
#invoice .footer .right {
	float: right;
	margin: 0;
}

#promo {
	height: 190px;
	background: url(../images/promo-bg.gif) repeat-x top left;
}
#promo .invoice {
	float: right;
	margin: 0 40px 0 40px;
}
#promo h1 {
	font-size: 180%;
	color: #508ca8;
	font-weight: normal;
	margin: 0;
	padding: 20px 0 0 20px;
}
#promo p {
	font-size: 90%;
	line-height: 160%;
	color: #575757;
	margin: 0;
	padding: 20px 0 20px 20px;
}
#promo .btn {
	background: #8ab3c5;
	font-size: 120%;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
	padding: 5px 15px;
	margin: 0 20px;
}
.homepage {

}
.homepage h2 {
	margin: 30px 0 10px 0;
	font-size: 140%;
	font-weight: normal;
}
.homepage p {
	margin: 0 0 10px 0;
	line-height: 180%;
}
.homepage .box {
	background: #eff9ff;
	border: 1px solid #d0e1ea;
	padding: 10px;
	margin: 30px 0 0 0;
}
.homepage .box big {
	font-size: 140%;
	font-weight: bold;
}
.homepage .box p {
	margin: 5px 0 0 0;
}



.news {
	margin: 25px 0 10px 0;
}
.news h3 {
	margin: 0 0 10px 0;
	font-size: 130%;
}
.news h4 {
	margin: 0;
	font-size: 120%;
}
.news p {
	margin: 5px 0;
}
.news .article {
	border-bottom: 1px solid #ddd;
	margin: 5px 0 10px 0;
}

.stats {
	border: 1px solid #ddd;
	margin: 15px;
}
.stats .row {
	clear: both;
	height: 20px;
	border-top: 1px solid #fff;
}
.stats .row span {
	width: 80px;
	float: left;
	line-height: 20px;
	text-align: right;
	padding-right: 10px;
}
.stats .row .bar {
	width: 770px;
	float: left;
	line-height: 20px;
}
.stats .row .bar div {
	background: #6ba2bc;
	line-height: 20px;
	height: 20px;
	text-align: left;
	color: #fff;
	padding-left: 5px;
}
