/******************************************************************
 +Clients
******************************************************************/
.client {
  width: 260px;
  padding: 5px;
  height: 144px;
  border: 1px solid #EFEFEF;
  float: left;
  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: #333333;
  font-weight: bold;
}

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

.date {
  color: #333333; 
}

.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;
}


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

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

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

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

h3.heading {
   color: #999999; 
   text-transform: uppercase;
   font-weight: 100;
}

#sidebar li { 
  list-style-type: none; 
  font-size: .8em;
  color: #666666;
  margin-bottom: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EFEFEF;
}

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

.invoices-stat {
  background: url(../img/background_total_invoices.png) no-repeat;
}

.drafts-stat {
  background: url(../img/background_draft_invoices.png) no-repeat;
}

.pastdue-stat {
  background: url(../img/background_pastdue_invoices.png) no-repeat;
}

.open-stat {
  background: url(../img/background_open_invoices.png) no-repeat;
}

.closed-stat {
  background: url(../img/background_closed_invoices.png) no-repeat;
}

#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: #FFFFFF;
  background-color: #F9D50F;
}




/******************************************************************
 +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: #333333;
 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;
}

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

.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: .8em;
  color: #333333;
  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;
}

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

#pages a { 
  color: #33B1E9;
}



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

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

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

.note {
  background: #F0FFFF; 
  border-bottom: 1px solid #BFFFFF;
  border-right: 1px solid #BFFFFF; 
}

.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%;
}



