/* This gets included in every template */
/*
 * Defaults
 * Adopt the 'percentage & ems approach'. See http://www.alistapart.com/articles/elastic/ 
*/
body {
	font-size: 80%;
	margin: 0;
}

p,
ul,
td,
div {
	font-size: 1em;
	font-family: verdana;
	margin: 0;
}

ul {
	/*border: 1px solid red;*/          /*debug*/
	list-style-position: inside;
	padding-left: 1em;
}

p {
	margin-top: 1em;
}

h1 {
	font-size: 1.5em;	
	font-family: tahoma;
}

h2 {
	font-size: 1.2em;	
	font-family: tahoma;
}

div#big-warning {
/*	border: 2px solid red;*/
	padding: 4px;
	margin-top: 0px;
	margin-bottom: 4px;
	font-size: smaller;
	text-transform: uppercase;
	background-color: rgb( 180, 180, 180);
}

.debug {
	font-size: smaller;
	border: 1px dotted red;
	padding: 2px;
}

#user-bar {
	font-size: smaller;
	float: right;
	width: 30%;
	margin-bottom: 4px;
}

#user-bar-greeting {
	display: inline;
}

#user-bar-action {
	display: inline;
}

h1 a {
	color: #000;
	text-decoration: none;
}

h1 a:visited { 
	color: #000; 
}

h1 a:hover { 
	color: #fff; 
	background-color:#000; 
}

#footer {
	font-size: smaller;
	margin-top: 2em;
	border-top: 2px solid lightgray;
	padding-top: 1em;
}

.fieldWithErrors {
  padding: 4px 2px 2px 2px;
  background-color: red;
/*  background-color: #c00;*/
  color: white;
  display: inline;
}

#errorExplanation {
/*  width: 400px;*/
/*  width: 80%;*/
  border: 2px solid red;
  padding: 7px 7px 12px 7px;
/*  padding-bottom: 12px;*/
  margin-bottom: 20px;
  background-color: #f0f0f0;
}

#errorExplanation h2 {
  text-align: left;
  font-weight: bold;
  padding: 5px 5px 5px 15px;
  font-size: smaller;
  margin: -7px -7px 0 -7px;
  background-color: #c00;
  color: #fff;
}

#errorExplanation p {
/*  color: #333;*/
  margin-bottom: 0;
  padding: 5px;
}

#errorExplanation ul li {
/*  font-size: 12px;*/
  font-size: 1em;
  list-style: square;
	margin-left: 5px;
}

#invoice {
/*	border: 2px solid yellow;*/
}

#invoice h2 {
	margin-left: 1em;
}

#invoice div#invoice-header {
/*	border: 1px solid red;*/
	margin: 1em;
	width: 40%;
}

#invoice div#invoice-header tr {
	background-color: rgb( 225, 225, 225 );
}

#invoice div#invoice-header tr td {
	padding: 2px 1em 4px 1em;
}

#invoice td.label {
	font-weight: bold;
}

#invoice div#invoice-details {
	border: 2px solid lightgray;
	margin: 1em;
	padding: 1em;
}

#invoice div#invoice-details table {
	width: 100%;
}

#invoice div#invoice-details th {
	text-align: left;
}

#invoice div#invoice-details th.money {
	text-align: right;
}

#invoice div#invoice-details th {
	padding-bottom: 4px;
}

#invoice div#invoice-details tr {
	border-bottom: 1px solid lightgray;
}

#invoice div#invoice-totals {
/*	border: 1px solid black;*/
	margin: 1em;
}

#invoice table {
	border-collapse: collapse;
	display: table;
}

#invoice div#invoice-totals {
	width: 30%;
/*	border: 2px solid red;*/
}

#invoice div#invoice-totals tr {
	background-color: rgb( 225, 225, 225 );
}

#invoice div#invoice-totals tr td {
	padding: 2px 1em 4px 1em;
}
