
body {
  font-family: Verdana, 'Lucida Grande', sans-serif;     
  font-size: small;
  background: #c0c0c0c0;
  color: #c0c0c0;
}

img {
  border: 0;
  border-width: 0;
}

hr {
  height: 0;
  border: 0;
  border-bottom: 1px solid #393a27;  
  margin: 1em 0;
}

/* FIXES */

body {
	font-size: x-small; /* IE5 Win */
	font-size: small;
}

html>body { /* be nice to Opera */
  font-size: small;
}

/* LINKS */

a {
  text-decoration: underline;
}

a:link, 
a:visited {
  color: #c0c0c0;
}

a:hover, 
a:active {
  text-decoration: none;
  color: #fff !important;
  background: #c0c0c0;
}

a:link.cancel, 
a:visited.cancel {
  color: red; 
}

a:link img,
a:hover img {
  border: 0;
}


/* LAYOUT */

#wrapper {
}

#header {
  background: #237cbe;
  padding: 0px 5px;
  border-bottom: 3px solid #393a27;
}

#main-body {
  background: #533b27;
  padding: 5px 2px;
}

#sidebar {
  width: 16em;
  float: left;
  background: #ffffe9;
  padding: .3em;
  margin: 0 .2em 0 .2em;
  border: 1px solid #e7e8ac;
}

#content {
  width: 55em;
  float: left;
  background: #eee;
  padding: 1em;
  border-right: 5px solid #aaa;
  border-bottom: 5px solid #aaa;
  border-top: 1px solid #aaa;
  border-left: 1px solid #aaa;
}

#footer {
	margin: 0 auto;
	color: white;
  background: #237cbe;
	border-top: 3px solid #195e92;
	padding: 1.5em;
	font-size: 85%;
	line-height: 1.25em;
	text-align: center;
}

#footer p.left {
  float: left;
  text-align: left;
}

#footer p.right {
  float: right;
  text-align: right;
}

/* HEADERS */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Trebuchet MS', Helvetica, sans-serif;
}

h1 {
  margin: 0;
}

h2 {
  margin: 4px 0 4px 0;
}

h1#member {
  background: white url(/images/icons/date.png) no-repeat 0px 50%;
  padding-left: 25px;
}

/* HEADER */

#header h1 {
  font-weight: normal;
  color: white;
  float: left;
  margin-top: 1em;
  margin-left: 0.8em;
}

#header p {
  float: right;
  margin-right: 1em;
  margin-top: 1.5em;
  padding: 0;
  text-align: center;
  font-size: 155%;
  line-height: 1.25em;
  color: #244724;
}

/* NAVIGATION */

#header ul {
  float: right;
  margin-top: 0.2em;
  list-style: none;
}

#header li {
  float: left;
  margin-right: .5em;
  padding: 0.5em 0;
}

#header li img {
  vertical-align: top;
}

#header li a {
	float: left;
  padding: 0 0.75em 0 0.75em;
}

#header li a:hover {
  background: transparent;
}
	
#header a, 
#header a:visited {
  color: #393a27;
  text-decoration: none;
}

#header a:hover,
#header a:active {
  text-decoration: underline;
}


/* SIDEBAR */

#sidebar h1 {
  color: #393a27;
  font-size: 130%;
  margin-bottom: 0.4em;
  border-bottom: 1px solid #e7e8ac;
}

#sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.5em;
}

#sidebar ul li {
  margin: 0;
  padding: .2em;
  padding-left: 1em;
}

#sidebar hr {
  margin: 0.5em 0em;
  color: #e7e8ac;
  background: #e7e8ac;
}

#sidebar img {
  vertical-align: top;
  horizontal-align: center;
  padding: 2px;
}

#sidebar ul a, 
#sidebar ul a:link, 
#sidebar ul a:visited {
  color: #666;
  padding: 2px;
  display: block;
  text-decoration: none;
}

#sidebar label {
  float: none;
  color: #393a27;
  text-align: left;
  padding-right: 0.2em;
  font-size: 0.9em;
  font-weight: bold;
  line-height: 1.6em;
}

#sidebar input[type=text], 
#sidebar input[type=password], 
#sidebar input.text {
  width: 90%;
  display: block;
  font-size: 1.1em;
}


/* FORMS */

fieldset {
  margin: 1em 0;
  padding: 1.2em;
  padding-top: 0.4em;
  background: #ffffe9;
  border: 1px solid #e7e8ac;
}

legend {
  color: #5a3d1c;
  font-size: 1.4em;
}

form {
  display: inline;
}

form label {
  color: #444;
  font-size: 1.2em;
  font-weight: bold;
}

form p {
  padding: 0.5em 0em;
}

form span.hint {
  color: #777;
  font-size: 0.9em;
  line-height: 1.3em;
  margin: 0.3em 0;
  display: block;
}


input[type=password], 
input.text, 
input[type=file] {
  width: 20em;
  font-size: 1.1em;
}

input:focus,
textarea:focus {
  background: #ffc;
}

/* LISTS */

#content ul {
  margin-top: 1em;
  margin-left: 2em;
}

#content ul li {
  padding: 0.5em 0;
}

/* TABLES */

table {
  width: 100%;
  border-collapse: collapse;
  padding: 0;
}

table tr th.la {  text-align: left; }
table tr td.ca {  text-align: center; }
table tr td.vat { vertical-align: top; }
table tr td.inv { background: #eee; }


/* MEMBERS */

#member {
  font-size: 90%;
}

#members ul {
  margin-bottom: 1em;
}

.member {
  font-size: 90%;
  margin: 0 0 0 0;
  border-width: 1px;
  border-style: solid;
  border-color: #000;
}

.member_image {
  padding-left: 10px;
  padding-right: 2px;
  padding-top: 2px;
  padding-bottom: 2px;
  float: right;
}

.member table {
  width: 100%;
}

.member table th {
  width: 25%;
  text-align: right;
  vertical-align: top;
}

.member table td {
  width: 50%;
  padding-left: 1em;
}

/* PAGINATION */

#paginator {
  margin-top: 25px;
}

#paginator p {
  text-align: right; 
  float: right;
}

#paginator a {
  padding: 5px 5px;
  border: 1px solid #ccc;
  text-decoration: none;
}


/* FLASHES */

#flash {
  width: 80%;
  text-align: center;
  font-size: 100%;
  font-weight: bold;
  margin: 0 auto 10px auto;
  padding: 8px;
}

.flash_notice {
  color: #333;  
  background: #efe;
  border: solid 1px #bd7;  
}

.flash_notice .message {
  padding: 0 0 0 25px;
  background: url(/images/icons/tick.png) no-repeat 0 50%;
}

.flash_error {
  color: white;
  background: #c00;
  border: solid 1px #c00;
}

.flash_error .message {
  padding: 0 0 0 25px;
  background: url(/images/icons/error.png) no-repeat 0 50%; 
}


/* ERRORS */

.fieldWithErrors input[type=text],
.fieldWithErrors input[type=password],
.fieldWithErrors textarea,
.fieldWithErrors input.text,
.fieldWithErrors input[type=file] {
  background: #ffdcdc;
}

#errors {
  width: 80%;
  background: #ffdcdc;
  border: 1px solid #f3a0a0;
  margin: 10px auto;
  padding: 5px 20px;
}

#errors h3 {
  color: #dc3d3d;
  font-size: 120%;
  margin-bottom: 0.3em;
}

#errors ul {
  margin-top: 0.5em;
  margin-left: 2em;
}

/* SCAFFOLD ERRORS */

.fieldWithErrors {
  padding: 2px;
  background-color: red;
  display: table;
}

#errorExplanation {
  width: 400px;
  border: 2px solid red;
  padding: 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: 12px;
  margin: -7px;
  background-color: #c00;
  color: #fff;
}

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

#errorExplanation ul li {
  font-size: 12px;
  list-style: square;
}


/* SELF-CLEARING FLOATS */

#header:after,
#footer:after,
#main-body:after,
#paginator:after,
#member:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

/* IE5+6/win only */
* html #header, 
* html #footer,
* html #main-body,
* html #paginator,
* html #member {
  height: 1%;
}

/* IE7/win only */
*:first-child+html #header, 
*:first-child+html #footer, 
*:first-child+html #main-body, 
*:first-child+html #paginator,
*:first-child+html #member {
  min-height: 1px;
}
