/******************************************************************
 +Overall Colors and Styles
******************************************************************/

body {
  margin: 0;
  padding: 0;
  background: #FFFFFF url(../images/background_header_145.png) repeat-x;
  text-align: center;
}

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: 150px;
}

#logo {
  width: 800px;	
  height: 105px;
}

#nav {
  width: 800px;	
  height:45px;
  position: relative;
}

#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: .8em;
 color: #CCCCCC;
}

/******************************************************************
 +Header
******************************************************************/
#logo_image {
	float: left;
	margin-left: 11px; 
	height: 150px;
}

#logo_name {
	float: left;
	text-align: center;
	margin: 20px 0px 0px 90px; 
}

.title { 
  color: DarkGreen; font-weight: Bold; font-size: 20px;
}

/******************************************************************
 +Navigation
******************************************************************/

#nav li { 
  float:left; 
  margin-right: 10px; 
  list-style-type: none; 
  font-size: .9em;
}

#nav li a { 
  display: block; 
  background-color: #FFFFFF;
  border-top: 1px solid #FFFFFF;
  color: #666666; 
  padding: 10px 5px 8px 5px; 
  text-decoration: none; 
}

#nav li a:hover { 
  border-top: 1px solid #96E2F6;
  background-color:#FFFFFF; 
  color: #333333;
}

#nav  li.active a { 
  border-top: 1px solid #96E2F6;
  background-color: white !important; 
  color: #333333;
}

#nav ul.left { 
    position:absolute; 
    left:10px; 
    bottom:0; 
  }

#nav ul.right { 
    position:absolute; 
    right:0; 
    bottom:0; 
}

/******************************************************************
 +Main Home
******************************************************************/
#home-main h2{
  font-size: 1.5em;
  font-weight: 300;
  margin-bottom: 0px;
}

#home-main p{
  font-size: 1em;
  color: #999999;
}

#home-main a {
  color: #33B1E9;
  text-decoration: none;
}

#home-main a:hover {
  color: #333333;
}


/******************************************************************
 +Main
******************************************************************/

#second-nav {
  background: url(../images/background_nav2.png) no-repeat;
  width: 560px;
  height: 34px;
  margin-bottom: 10px;
}
#second-nav li { 
  float:left; 
  margin-right: 5px; 
  margin-left: 5px;
  margin-top: 8px;
  list-style-type: none; 
  font-size: .8em;
}
#second-nav li a{ 
  color: #999999;
  text-decoration: none;
  font-weight: bold;
}
#second-nav li a:hover{ 
  color: #33B1E9;
}

/******************************************************************
 +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(../images/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(../images/background_total_invoices.png) no-repeat;
}

.drafts-stat {
  background: url(../images/background_draft_invoices.png) no-repeat;
}

.pastdue-stat {
  background: url(../images/background_pastdue_invoices.png) no-repeat;
}

.open-stat {
  background: url(../images/background_open_invoices.png) no-repeat;
}

.closed-stat {
  background: url(../images/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;
}

/******************************************************************
 + Forms
******************************************************************/
form {
  margin-top: 10px;
  margin-left: 0px;
}

form div{
  margin-bottom: 3px;
}

form label{
  display: block;
  color: #666666;
  margin-bottom: 3px;
  clear: right;
  font-size: .8em;
}

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: #666666;
}

form .txt {
  width: 270px; 
}

form textarea{
  padding: 3px;
}

div.submit input {
 margin-top: 10px;
 font-size: .9em;
}

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: #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;
}

/******************************************************************
 +Generic Table
******************************************************************/
/* Tables */
table {
	background: #fff;
	border:1px solid #ccc;
	border-right:0;
	clear: both;
	color: #333;
	margin-bottom: 10px;
	width: 100%;
}
th {
	background: #f2f2f2;
	border:1px solid #bbb;
	border-top: 1px solid #fff;
	border-left: 1px solid #fff;
	text-align: center;
}
th a {
	background:#f2f2f2;
	display: block;
	padding: 2px 4px;
	text-decoration: none;
}
th a:hover {
	background: #ccc;
	color: #333;
	text-decoration: none;
}
table tr td {
	background: #fff;
	border-right: 1px solid #ccc;
	padding: 4px;
	text-align: center;
	vertical-align: top;
}
table tr.altrow td {
	background: #f4f4f4;
}
td.actions {
	text-align: center;
	white-space: nowrap;
}
td.actions a {
	margin: 0px 6px;
}
.cake-sql-log table {
	background: #f4f4f4;
}
.cake-sql-log td {
	padding: 4px 8px;
	text-align: left;
}

/******************************************************************
 +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: lightgreen; 
  /* background: #FFCCFF; */ 
  font-weight: bold;
  color: #FF1177;
  /* border-bottom: 1px solid #FF82FF;
  border-right: 1px solid #FF82FF; */ 
}

.notice {
  font-weight: bold;
  background: yellow; 
  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%;
}


