html {
  margin: 0;
  padding: 0;
  background: #FFF url(/images/green_bg.png) repeat-x left top;
  overflow-y: scroll;
}

body {
  margin: 0;
  padding: 0 30px 30px 30px;
  background: transparent url(/images/grape_bg.png) no-repeat left top;
}

a img {
  border: 0;
}

a {
  color: #6C7E37;
  font-weight: bold;
}

h2 {
  color: #555;
  margin: 5px 0 15px 0;
}

input[type=text], input[type=password], select {
  padding: 4px 6px;
  border: 1px solid #AAA;
  border-radius: 2px;
  font-size: 1.1em;
}

a:hover {
  text-decoration: none;
}

a.more {
  float: right;
  padding-top: 5px;
  font-size: 11px;
  text-decoration: none;
  color: #2345af;
  background: transparent url(/images/icons/chevron-right-small.png) no-repeat right 7px;
  padding-right: 19px;
  font-weight: normal;
}

a.more:hover, a.more:visited:hover {
  text-decoration: underline;
}

.wrapper {
  margin: 0 auto;
  
  max-width: 1300px;
  min-width: 1000px;
  
/*  overflow: hidden;*/
  
  padding: 0;
}

#header {
  height: 80px;
  margin: 0;
}

#header h1 {
  height: 80px;
  width: 210px;
  background: transparent url(/images/logo_png24.png) no-repeat left 17px;
  margin: 0 20px 0 0;
  float: left;
  overflow: hidden;
  text-indent: -1000px;
}

#header #navigation {
  height: 80px;
  float: left;
}

#header #navigation ul {
/*  float: left;*/
/*  width: 100%;*/
  margin: 0;
  padding: 0;
}

#header #navigation ul.upper {
  margin-top: 25px;
  margin-bottom: 4px;
  overflow: hidden;
  height: 28px;
}

#header #navigation ul.upper li {
  float: left;
  list-style: none;
  margin-right: 7px;
}

#header #navigation ul.upper li a {
  float: left;
  height: 26px;
/*  border: 1px solid #B1CD5E;*/
  border-radius: 3px;
  -moz-border-radius: 3px;
  background: #D0E294 url(/images/navigation_item_bg.png) repeat-x left -15px;
  line-height: 26px;
  padding: 0 8px;
  color: #6C7E37;
  font-weight: bold;
  -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

#header #navigation ul.upper li a:link, #header #navigation ul.upper li a:visited {
  text-decoration: none;
}

#header #navigation ul.upper li a:hover, #header #navigation ul.upper li a:visited:hover {
  text-decoration: underline;
  background-position: left top;
}

#header #navigation ul.upper li.highlighted a {
  background: #FFF;
  border-color: #6C7E37;
/*  color: #333;*/
}

#header #navigation ul.lower {
  padding-left: 11px;
  overflow: hidden;
}

#header #navigation ul.lower li {
/*  height: 30px;*/
/*  line-height: 30px;*/
  float: left;
  margin-right: 6px;
  padding-right: 22px;
  background: transparent url(/images/navigation_dot.png) no-repeat center right;
  list-style: none;
}

#header #navigation ul.lower li:last-child, #header #navigation ul.lower li.last {
  background-image: none;
}

#header #navigation ul.lower li a {
  color: #6C7E37;
  font-size: 12px;
  font-weight: normal;
}

#header #navigation ul.lower li a:link, #header #navigation ul.lower li a:visited {
  color: #6C7E37;
  text-decoration: none;
}

#header #navigation ul.lower li a:hover {
  text-decoration: underline;
}

#content {
  margin: 30px 0 0 0;
	padding: 20px;
	background: #FFF;
	border: 1px solid #DDD;
	border-right-width: 2px;
	border-bottom-width: 2px;
	border-radius: 3px;
	-moz-border-radius: 3px;
}

#content div.title {
  margin: -20px -20px 20px -20px;
  padding: 10px 20px;
  overflow: hidden;
  height: 30px;
  background: #DDD url(/images/title_bg.png) repeat-x left top;
}

#content div.title .actions {
  float: right;
  height: 30px;
}

#content div.title .actions .action, #content div.title .actions a {
	float: left;
	margin: 2px 0 0 5px;
	height: 18px;
	background: #FFF;
}

#content div.title .actions a {
  padding: 3px 5px;
  border: 1px solid #DDD;
  line-height: 18px;
  border-radius: 3px 3px;
	-moz-border-radius: 3px 3px;
  font-weight: bold;
}

#content div.title .actions a:link, #content div.title .actions a:visited {
  color: #555;
  text-decoration: none;
}

#content div.title .actions a:hover {
  background-color: #eaf1fc;
  border-color: #5984c1;
  color: #385f96;
  -webkit-box-shadow: 0px 0px 5px 1px rgba(89,132,193,0.3);
}

#content div.title .actions a.create {
  padding-left: 26px;
  background-image: url(/images/icons/plus.png);
  background-repeat: no-repeat;
  background-position: 5px center;
}

#content div.title .actions a.back {
  padding-left: 26px;
  background-image: url(/images/icons/arrow-180-medium.png);
  background-repeat: no-repeat;
  background-position: 5px center;
}

#content div.title .actions a.print {
  padding-left: 26px;
  background-image: url(/images/icons/printer.png);
  background-repeat: no-repeat;
  background-position: 5px center;
}

#content div.title .actions a.edit {
  padding-left: 26px;
  background-image: url(/images/icons/pencil-small.png);
  background-repeat: no-repeat;
  background-position: 5px center;
}

#content div.title .actions a.download {
  padding-left: 26px;
  background-image: url(/images/icons/document-excel-csv.png);
  background-repeat: no-repeat;
  background-position: 5px center;
}
#content div.title .actions a.email {
  padding-left: 26px;
  background-image: url(/images/icons/mail-open-document.png);
  background-repeat: no-repeat;
  background-position: 5px center;
}

#content div.title .actions a.search {
  padding-left: 26px;
  background-image: url(/images/icons/magnifier.png);
  background-repeat: no-repeat;
  background-position: 5px center;
}

#content div.title .actions a.new_transaction {
  padding-left: 26px;
  background-image: url(/images/icons/box.png);
  background-repeat: no-repeat;
  background-position: 5px center;
}

#content div.title h2 {
  float: left;
  color: #666;
  text-shadow: 1px 1px 0px rgba(255,255,255,0.8);
  margin: 0;
  padding: 0;
  line-height: 30px;
}

#content div.contain {
  border: 1px solid #DDD;
  padding: 10px;
  overflow: hidden;
  background: #EFEFEF;
  border-radius: 6px;
}

.table table {
  border: 1px solid #DDD;
  border-radius: 3px 3px 0 0;
  -moz-border-radius: 3px 3px 0 0;
  border-right-width: 0px;
  border-bottom-width: 0px;
  width: 100%;
}

.table table tr th, .table table tr td {
  border: 1px solid #DDD;
  border-top-width: 0px;
  border-left-width: 0px;
}

.table table tr td {
	padding: 4px 5px;
}

.table table tr.overdue td {
  background-color: #ffaaaa;
}

.table table tr.due_soon td {
  background-color: #ffffaa;  
}

.table table tr:hover td {
  background-color: #F4F4F4;
}

.table table tr.overdue:hover td {
  background-color: #ff3333;
}

.table table tr.due_soon:hover td {
  background-color: #ffff33;  
}

.table tr.excluded td {
  text-decoration: line-through;
}
.table table tr th {
	font-size: 11px;
	padding: 2px 5px;
	text-align: left;
	background: #e2e2e2 url(/images/table_header_bg.png) repeat-x left top;
	color: #666;
}

.table table tr td.no_records {
	text-align: center;
	font-style: italic;
}

.table table tr td.title {
	font-weight: bold;
	font-size: 12px;
	text-align: right;
}

.table table a.edit, .table table a.destroy {
	padding-left: 16px;
	margin-right: 5px;
}

.table table a.edit {
	background: transparent url(/images/icons/pencil-small.png) no-repeat left center;
}

.table table a.destroy {
	background: transparent url(/images/icons/cross-small.png) no-repeat left center;
}

form.form {
	border: 1px solid #DDD;
	border-bottom-width: 0;
}

form.form div.field {
	overflow: hidden;
	padding: 10px;
	background: #F5F5F5;
	border-bottom: 1px solid #DDD;
}

form.form div.field div.field-inner {
  overflow: hidden;
}

form.form div.field div.field-inner label.input{
  display:block;
}

form.form div.field input[type=text], form.form div.field input[type=password] {
/* A placeholder for more styles*/
}

form.form div.field input.calendar.hasDatepicker {
	background-image: url(/images/icons/calendar-small-month.png);
	background-repeat: no-repeat;
	background-position: right center;
}

form.quick_search div.field div.field-label {
  float: left;
}
form.quick_search div.field div.field-inner {
  margin-left: 100px;
}
form.quick_search div.field div.field-inner input[type=submit] {
  float:right;
}
form.form div.field div.field-label {
	float: left;
	width: 140px;
	margin-right: 10px;
	padding-right: 10px;
	text-align: right;
/*	border-right: 1px solid #DDD;*/
}
form.quick_search div.field div.field-label label,
form.form div.field div.field-label label {
	font-weight: bold;
	text-align: right;
	font-size: 11px;
}

form.form div.field div.field-label label {
  color: #777;
}

form.form div.field.field-record {
	padding-left: 170px;
}

form.form div.field.field-record .table table {
	background: #FFF;
}


form.form div.field.field-submit div.field-inner {
	padding-left: 160px;
}

form.form div.field.field-submit div.field-inner input {
	font-size: 16px;
}

.pagination.top {
	overflow: hidden;
	margin: 0 0 10px 0;
}

.pagination.bottom {
	overflow: hidden;
	margin: 10px 0 0 0;
}

.pagination .pagination {
	float: right;
	margin: 0;
}

.pagination .page_entries {
	float: left;
}

.pagination .pagination a {
/* Placeholder for more work */
}

.numeric {
  text-align: right;
}

.role {
  text-align: center !important;
  padding: 0px !important;
}

.enquiry_action.new_record img, .proportions.new_record img,
.enquiry_action.delete img, .proportions.delete img {
  vertical-align: -4px;
}

a.enquiry_action.new_record:link, a.proportions.new_record:link,
a.enquiry_action.delete:link, a.proportions.delete:link {
  text-decoration: none;
  color: #2D6914;
}

a.enquiry_action.delete:link, a.proportions.delete:link {
 color: #691717;
}

a.enquiry_action.new_record:hover, a.proportions.new_record:hover,
a.enquiry_action.delete:hover, a.proportions.delete:hover {
  text-decoration: underline;
}

td.hidden {
  background-color: #eee;
}

div.label,
div.value {
  padding: 5px;
}

div.label {
  float:left;
	font-weight: bold;
	text-align: right;
	font-size: 11px;
}

div.value {
  padding-left: 170px;
  clear: right;
}

span.controls {
  display:none;
}
.controls img,
img.control {
  vertical-align: bottom;
  padding: 1px;
}

#header h1 {
  float: left;
}

#user_detail {
  line-height: 15px;
  float: right;
  color: #6C7E37;
  text-align: right;
  margin-top: 25px;
}

#user_detail span.actions a {
  font-weight: normal !important;
  text-decoration: none;
}

#user_detail span.actions a:hover, #user_detail span.actions a:visited:hover {
  text-decoration: underline;
}

span.current_user {
  font-weight: bold;
}

#sample_table th {
  vertical-align: top;
}

#sample_table td {
  max-width: 150px;
}
#sample_table th input[type=checkbox] {
  display: block;
  float:right;
  vertical-align: top;
}

div.quick_search {
  border: 1px solid #DDD;
  background: #EEE;
  padding: 10px;
  overflow: visible;
}

div.quick_search div.field-label {
  line-height: 26px;
}

div.quick_search ul.token-input-list {
  width: auto;
}

div.quick_search div.checkbox-options {
  float: right;
  margin-top: 3px;
}

div.quick_search div.checkbox-options input {
  margin-left: 10px;
}

div.quick_search div.grid_12 {
  margin-bottom: 0;
}

div.quick_search h2 {
  border-bottom: 1px solid #DDD;
  margin: -10px -10px 10px;
  padding: 5px 10px;
  font-size: 14px;
}

div.quick_search h2 img {
  vertical-align: -3px;
}

div.quick_search div.submit {
  margin-top: 5px;
}

div.quick_search div.submit a {
  font-weight: normal;
}

div.quick_search div.submit a, div.quick_search div.submit input {
  float: right;
  margin-left: 10px;
  line-height: 26px;
}

div.quick_search div.submit input {
  font-size: 16px;
}

ul.tree {
  padding-left: 16px;
}

ul.tree div.node {
  padding-bottom: 8px;
}

ul.tree > li ul div.node {
  padding-bottom: 4px;
}

ul.tree > li {
  padding-left: 20px;
  font-size: 14px;
  list-style: none;
  background: transparent url(/images/icons/bullet-blue-small.png) no-repeat left 2px;
}

ul.tree > li ul {
  padding-left: 8px;
  padding-bottom: 4px;
}

ul.tree > li ul > li {
  list-style: none;
  padding-left: 20px;
  background: transparent url(/images/icons/bullet-blue-node-small.png) no-repeat left 2px;
}

div.flash {
  padding: 3px 10px;
  margin: 10px 0 -20px 0;
}

div.flash.notice {
  background: #D0E294;
  border-radius: 3px;
  -moz-border-radius: 3px;
  color: #6C7E37;
  font-weight: bold;
  -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

div.flash p {
  margin: 0;
}

div#error {
  background: #ff0000;
  color: white;
  font-weight: bold;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}
div#error p {
  padding: 1px;
  margin: 5px;
}

div#quick_view {
  padding-top: 1px;
  float:left;
}
div#quick_view div#selector {
  float: left;
  margin-left: 5px;
  margin-right: 5px;
}
div#quick_view label {
  float:left;
  font-weight: bold;
  margin-top: 4px;
}

div#quick_view input[type='submit'] {
  margin-top: 4px;
  float:right;
}

a.deleted {
  background: transparent url(/images/icons/exclamation-octagon.png) no-repeat 50% 0;
  padding-left:64px;
  display:block;
}
