/******************************************************************
 +Overall Colors and Styles
******************************************************************/

body {
  margin: 0;
  padding: 0;
  background: #fff url(../img/background_header.png) repeat-x;
  text-align: center;
	color:#000;
}

body, td, th, textarea, input, select, h1, h2, h3, h4, h5, h6 {
  font-family: Arial, Helvetica, sans-serif;
}

p, form, h1, h2, h3, h4, h5, h6,  ul, ol {
  margin: 0px;
  padding: 0px;
}

a img { 
  border: none;
}

h1 {
  color: #00D2FF;
  margin-bottom: 10px;
  font-weight: 100;
  font-size: 1.2em;
}

h2 {
  margin-bottom: 10px;
  font-weight: 600;
  font-size: .9em;
}

h3 {
  margin-bottom: 10px;
  font-size: .7em;
}

p {
  margin-bottom: 5px; 
}
/******************************************************************
 +Page Skeleton
******************************************************************/

#wrapper{
  width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

#header {
  width: 800px;	
  height: 162px;
}

#nav {
  width: 800px;	
  height:43px;
  position: relative;
  top: -2px;
}

#main {
  display: inline;
  width: 560px;
  float: left;
  padding-left: 10px;
  margin-top: 10px;
}

#sidebar {
  width: 210px;
  float: right;
  margin-top: 10px;
}

#home-main {
  display: inline;
  width: 350px;
  float: left;
  padding-left: 10px;
  margin-top: 10px;
}

#home-side {
  width: 400px;
  float: right;
  margin-top: 10px;
  margin-right: 10px;
}

#footer {
 clear: both;
 text-align: center;
 padding-top: 20px;
 font-size: .7em;
 color: #CCCCCC;
}

/******************************************************************
 +Navigation
******************************************************************/

#nav li { 
  float:left; 
  margin-right: 10px; 
  list-style-type: none; 
  font-size: .9em;
}

#nav li a { 
  display: block; 
  background-color: #5a2604;
  border-top: 1px solid #5a2604;
  color: #ccc; 
  padding: 10px 5px 8px 5px; 
  text-decoration: none; 
}

#nav li a:hover { 
  border-top: 1px solid #96E2F6;
  background-color:#fff; 
  color: #96E2F6;
}

#nav  li.active a { 
  border-top: 1px solid #96E2F6;
  background-color: #fff !important; 
  color: #00dcfc;
}

#nav ul.left { 
    position:absolute; 
    left:10px; 
    bottom:0; 
  }

#nav ul.right { 
    position:absolute; 
    right:0; 
    bottom:0; 
}

/******************************************************************
 +Main Home
******************************************************************/
#main h2{
  font-size: 1.5em;
  font-weight: 300;
  margin-bottom: 0px;
}

#main p{
  font-size: 1em;
  color: #999999;
}

#main a {
  color: #33B1E9;
  text-decoration: none;
}

#main a:hover {
  color: #333333;
}


/******************************************************************
 +Main
******************************************************************/

#second-nav {
  width: 560px;
  height: 34px;
  margin-bottom: 10px;
	clear: both;
}
#second-nav li { 
	display: inline;																																								
  margin-right: 5px; 
  margin-left: 5px;
  margin-top: 8px;
  list-style-type: none; 
  font-size: .8em;
}


/******************************************************************
 +Clients
******************************************************************/
.client {
  width: 260px;
  padding: 5px;
  height: 144px;
  border: 1px solid #EFEFEF;
  float: left;
  background-color:#333;
  margin-right: 5px;
  margin-bottom: 5px;
}

.client .edit {
  float: right;
}

.client .invoices {
  float: right;
}

.client .name {
  display: block;
  margin-bottom: 3px;
  font-size: 1.3em;
}

.client a {
  text-decoration: none;
  color: #33B1E9;
}

.client a:hover {
  color: #666666;
}

.client .email, .address, .url, .phone, .fax, .edit, .invoices {
  font-size: .8em;
  display: block;
  color: #BBBBBB;
}

.client .address {
  margin-bottom: 3px; 
}


/******************************************************************
 +Invoices
******************************************************************/

.total {
  color: #00D2FF;
  font-weight: bold;
}

.pastdue {

  color: #FF1177;
  font-weight: bold;
}

.open {

  color: #66AA00;
  font-weight: bold;
}

.closed {

  color: #CF3500;
  font-weight: bold;
}

.drafts {
  color: #F9D200;
  font-weight: bold;
}

.date {
  color: #ccc; 
}

.invoice-client { 
  font-size: .8em;
  line-height: 130%;
  display: block;
}

.invoice-date { 
  font-size: .8em;
  line-height: 130%;
  display: block;
  float: right;
  margin-bottom: 20px;
}


.invoice {   
  font-size: .8em;
  color: #999999;
  line-height: 140%;
  display: block;
  padding-bottom: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid #EFEFEF;
}

.invoice a {
  color: #33B1E9; 
}

.invoice a:hover {
  color: #333333; 
}


.invoice .invoiceid {
  background: url(../img/background_invoiceid.png) no-repeat;
  width: 70px;
  height: 43px;
  display: block;
  float: left;
  margin-right: 10px;
  padding-top: 12px;
  text-align: center;
	font-size: 1.6em;
	color: #000;
	font-weight:bold;
}


/******************************************************************
 +Categories
******************************************************************/
.categories li { 
  list-style-type: none; 
  font-size: .9em;
  color: #666666;
  margin-bottom: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EFEFEF;
}

.categories a { 
  color: #33B1E9;
  text-decoration: none;
  float:right;
  margin-left:5px;
}

.categories a:hover {
  color: #666666;
}

/******************************************************************
 +Sidebar
******************************************************************/

h3.heading {
   color: #000; 
   text-transform: uppercase;
   font-weight: 100;
   font-size:1.1em;
}

#sidebar li { 
  list-style-type: none; 
  font-size: 1.0em;
  color: #999999;
  margin-bottom: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EFEFEF;
}

.stat{
  display: block;
  float: left;
  font-weight: bold;
  font-size: 16px;
  color: #000;
  text-align: center;
  width: 44px;
  height: 22px;
  padding: 1px;
  margin-right: 5px;
}

.invoices-stat {
	padding-top:2px;
	width:44px;
	hieght:21px;
	background-color: #00d2ff;
 
}

.drafts-stat {
  	width:44px;
	hieght:21px;
	background-color: #f9d200;
}

.pastdue-stat {
  	width:44px;
	hieght:21px;
	background-color: #ff1177;
}

.open-stat {
  	width:44px;
	hieght:21px;
	background-color: #66aa00;
}

.closed-stat {
  	width:44px;
	hieght:21px;
	background-color: #cf3500;
}

#letters {
 margin-bottom: 20px; 
}

#letters a {
  background-color: #33B1E9;
  color: #FFFFFF;
  text-decoration: none;
  display: block;
  float: left;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  text-align: center;
  font-size: .8em;
}

#letters a:hover, #letters a.active {
  color: #fff;
  background-color: #333;
}

.invoice_options a {
  color: #33B1E9; 
}

.invoice_options a:hover {
  color: #ccc; 
}

/******************************************************************
 + Forms
******************************************************************/
form {
  margin-top: 10px;
  margin-left: 0px;
}

form div{
  margin-bottom: 3px;
}

form label{
  display: block;
  color: #ccc;
  margin-bottom: 3px;
  clear: right;
  font-size: .9em;
}

form input{
  font-size: 1.2em;
  padding: 3px;
}

form select{
  color: #11090A;
  padding: 3px;
  font-size: 1.2em;
}

form .search-select {
  font-size: .8em; 
}
form .select-client {
  width: 260px;
}



form a {
  text-decoration: none;
  color: #33B1E9;
}

form a:hover {
  color: #ccc;
}

form .txt {
  width: 270px; 
}

form textarea{
  padding: 3px;
}

div.submit input {
 margin-top: 10px;
 font-size: 1.2em;
 background: #fff;
 border: 1px solid #33B1E9;
}

div.submit input:hover {
 background: #33B1E9;
 border: 1px solid #fff;
 color:#fff;
}

div#search {
  background: #F7FAFA;
  padding: 5px;
  margin-bottom: 5px;
  margin-top: 5px;
}

/* used invoice form */
#invoicecol1{
  width: 280px;
  float: left;
}

#invoicecol2{
  width: 280px;
  float: right;
}



/******************************************************************
 +Item Table
******************************************************************/

#new-item { 
  width: 100%;
  text-align: right;
  margin-top: 4px;
  font-size: .8em;
  margin-bottom: 10px;
}

.item-description { 
 width: 190px;  
 height: 60px;
 font-size: .9em;
}


.item-table {
 width: 100%;
 font-size: .8em;
 color: #000;
 background: #fff;
 border-width: 0;
 border-spacing: 0; /* cellspacing set to 0 in HTML */
 margin: 0;
}

.item-table th {
  margin: 0;
  padding: 0 4px;
  line-height: 24px;
}

.item-table td {
  vertical-align: top;
  margin: 0;
  padding: 8px 4px 5px;
  line-height: 24px;
  border-bottom: 1px solid #F0F0F0;
	border-right: 1px solid #F0F0F0;
}

.item-table tr.header {  
  background: #ccc;
}

.item-table th.delete, td.delete {
  width: 5%; 
}

.item-table th.name, td.name {
  width: 20%; 
}

.item-table th.qty, td.qty {
  width: 10%; 
}

.item-table th.qty-txt, td.qty-txt {
  width: 15%; 
}

.item-table th.description-txt, td.description-txt {
  width: 60%; 
}

.item-table th.description, td.description {
  width: 40%; 
}

.item-table th.price, td.price {
  width: 15%; 
}

.item-table th.item-total, td.item-total {
  width: 10%; 
}

.item-table a {
  text-decoration: none;
  color: #33B1E9;
}

.item-table a:hover {
  color: #666666;
}

/******************************************************************
 +Total Table
******************************************************************/
.total-table {
  width: 180px;
  float: right;
  font-size: .9em;
  color: #333;
  border-width: 0;
  border-spacing: 0; /* cellspacing set to 0 in HTML */
  margin: 0;
}

.totals {
  text-align: right;
}

/******************************************************************
 + MISC
******************************************************************/
#counter {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  color: #999999;
  font-size: .8em;
		clear:both;
}

#pages {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  color: #999999;
  font-size: .8em;
	clear:both;
}

#pages a { 
  color: #33B1E9;
}



/******************************************************************
 + Notes Notices Warnings Errors
******************************************************************/
.flash {
   padding: 4px;
   margin-top: 5px;
   margin-bottom: 5px;
   display: block;
   font-size: .8em;
   color: #000;
}

.flash a{
  color: #33B1E9;
  text-decoration: none;
}

.flash a:hover{
  color: #333333;
  text-decoration: none;
}

.note {
  background: #CF6A26; 
  border-bottom: 1px solid #DF9361;
  border-right: 1px solid #DF9361;
	color: #fff;
	font-weight:bold;
}

.warning {
  background: #FFCCFF; 
  font-weight: bold;
  color: #FF1177;
  border-bottom: 1px solid #FF82FF;
  border-right: 1px solid #FF82FF; 
}

.notice {
  font-weight: bold;
  background: #F0FFFF; 
  border-bottom: 1px solid #BFFFFF;
  border-right: 1px solid #BFFFFF; 
}

.error-message {
  color: #FF1177;
  font-weight: bold;
  font-size: .8em;
}

.message {
  color: #FF1177;
  font-weight: bold;
  font-size: .8em;
}



/******************************************************************
 + fixes
******************************************************************/

* html #home-main {
  width: 350px;
  w\idth: 360px;
}

* html #main {
  width: 560px;
  w\idth: 570px;
}

* html .client {
  width: 260px;
  w\idth: 270px;
  height: 144px;
  h\eight: 154px;
}

.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}

.clearfix {
    display: inline-block;
}

html[xmlns] .clearfix {
    display: block;
}

* html .clearfix {
    height: 1%;
}



