* {
	margin: 0;
	padding: 0;
}

body {
	font: 12px/18px Arial, Helvetica, sans-serif normal;
	background: #f1f1f1;
	overflow-y: scroll;
	color: #333;
}

h1, h2, h3 {
	clear: both;
	margin-bottom: 15px;
}

h2 {
	font-size: 18px;
}

p {
	margin-bottom: 10px;
}

a {
	color: #333;
	text-decoration: underline;
	font-weight: bold;
}

a:hover {
	text-decoration: none;
}

a:active, a:focus {
	outline: 0;
}

#outer {
	width: 1000px;
	margin: 20px auto;
	border: 1px solid #ccc;
	background: #fff;
	overflow: hidden;
}

#inner {
	padding: 10px;
}

#navigation {
	clear: both;
    display: block;
    float: left;
    width: 100%;
	margin-bottom: 15px;
	padding-bottom: 5px;
	border-bottom: 1px solid #ccc;
}

#navigation li {
	float: left;
	display: block;
	list-style-type: none;
}

#navigation li a {
	display: block;
	margin-right: 15px;
	padding: 8px 10px;
	font-size: 14px;
	color: #333;
	text-decoration: none;
}

#navigation li a:hover {
	color: #fff;
	background: #333;
}

#content {
  clear: both;
	padding: 10px;
}

#content label {
	float: left;
	display: block;
	width: 110px;
	font-weight: bold;
}

#content .filter label {
  float: none;
  display: inline;
  margin: 10px;
}

input#user_email, input#user_password {
	padding: 2px;
	border: 1px solid #ccc;
}

input#user_submit {
	margin-left: 110px;
	background: #f1f1f1;
	color: #333;
	padding: 4px 8px;
	border: 1px solid #ccc;
	cursor: pointer;
}

.filter input#user_submit {
  margin-left: 10px;
}

input#invoice_submit {
	margin-left: 110px;
	background: #f1f1f1;
	color: #333;
	padding: 4px 8px;
	border: 1px solid #ccc;
	cursor: pointer;
}

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

table td {
	padding: 0.5em;
}

table th {
	text-align: left;
	font-size: 13px;
	font-weight: bold;
	padding: 0.5em;
	background: #555;
	color: #fff;
}

table th a {
  color: #ffffff;
}

tr.even td {
	background: #f3f3f3;
}

table a {
	color: #333;
	text-decoration: none;
	font-weight: bold;
}

table a:hover {
	text-decoration: underline;
}

.message-preview {
	padding: 10px;
	background: #ddd;
}

a.backlink {
	font-size: 13px;
	font-weight: bold;
	text-decoration: none;
	color: #333;
	background: #ddd;
	display: block;
	float: left;
	margin: 10px 5px 10px 0;
	padding: 5px 10px;
}

a.backlink:hover {
	color: #fff;
	background: #333;
}

form {
	display: block;
	margin: 10px 0;
}

#content select {
	padding: 3px;
	border: 1px solid #ccc;
}

input.send {
	margin-left: 10px;
	background: #f1f1f1;
	color: #333;
	padding: 3px 6px;
	border: 1px solid #ccc;
	cursor: pointer;
}

#content fieldset.inputs {
	margin-bottom: 10px;
	display: block;
	position: relative;
}

#content fieldset.filter {
  padding: 5px;
}

.nested-fields {
	position: relative;
	border-bottom: 1px dotted #444;
	padding-bottom: 15px;
	margin-bottom: 15px;
	float: left;
	width: 100%;
}

form.formtastic fieldset.line_items > ol > li.string input, form.formtastic fieldset.line_items > ol > li.numeric input {
    width: 70px !important;
	padding: 2px;
	border: 1px solid #ccc;
}

form.formtastic fieldset.line_items > ol > li {
    float: left;
    width: 150px;
}

#content form.formtastic fieldset.line_items > ol > li label {
    clear: both;
    display: block;
    float: left;
    width: 110px;
}

#content form.formtastic fieldset > ol > li fieldset ol {
    float: left;
    margin: 0;
    padding: 0 0 0 110px;
    width: 74%;
}

#content form.formtastic fieldset > ol > li.date fieldset ol li, #content form.formtastic fieldset > ol > li.time fieldset ol li, #content form.formtastic fieldset > ol > li.datetime fieldset ol li {
    float: left;
    margin: 0 20px 5px 0;
    width: auto;
}

#content #invoice_charge_percentage_input label {
	font-weight: bold;
}

#content form.formtastic fieldset > ol > li.string input, #content form.formtastic fieldset > ol > li.password input, #content form.formtastic fieldset > ol > li.numeric input, #content form.formtastic fieldset > ol > li.email input, form.formtastic fieldset > ol > li.url input, form.formtastic fieldset > ol > li.phone input, form.formtastic fieldset > ol > li.search input {
    width: 200px;
	padding: 2px;
	border: 1px solid #ccc;
}

#content #invoice_date_input ol li label {
	width: 40px;
}

#content #invoice_recipient_user_id {
	width: 206px;
}

#content form.formtastic fieldset.buttons {
    padding-left: 0;
}

a.add_fields {
	display: block;
	text-indent: -9999em;
	width: 24px;
	height: 24px;
	background: transparent url(/images/plus.png) no-repeat top left;
	clear: both;
}

a.remove_fields {
	display: block;
	text-indent: -9999em;
	width: 24px;
	height: 24px;
	background: transparent url(/images/delete.png) no-repeat top left;
	position: absolute;
	top: 3px;
	right: 0px;
}

div#error_explanation {
  margin-top: 20px;
  margin-bottom: 20px;
}

div#error_explanation ul {
  margin-left: 20px;
}

p.flash {
  text-align: center;
  padding: 10px;
}

p.flash.notice {
  border: 1px solid #1FDF00;
  background-color: #BBFFB6;
}

p.flash.error {
  border: 1px solid #fbb;
  background-color: #fdd;
}

#latest_photos img {
  float: left;
}

.clear {
  clear: both;
}

.left {
  float: left;
}

.right {
  float: right;
}

.photo {
  margin-right: 10px;
}

.filter .section {
  display: inline-block;
  margin-bottom: 10px;
}

.bulk-actions .left {
  margin: 10px 5px 10px 0;
  padding: 5px 10px;
}
