body {
	padding: 2em;
	font-size: 13pt;
}

body.font-small {
	font-size: 10pt;
}

body.font-large {
	font-size: 16pt;
}

.fluid .container {
	width: auto;
}

#header {
	border-bottom: 1px solid #eee;
	margin-bottom: 1em;
}

#header h1 {
	font-size: 1.4em;
	float: left;
	margin-right: 1em;
}

#header p {
	float: left;
	margin-bottom: 0.5em;
}

#footer {
	margin-top: 4em;
	text-align: right;
}

#footer ul {
	list-style: none;
}

h1 a {
	color: inherit;
	text-decoration: none;
}

h2 small {
	font-size: 0.4em;
	display: block;
}

#header p a {
	margin-right: 1em;
}

button {
	padding: 0.4em 0.6em;
}

.hide {
	display: none;
}

table + h3 {
	margin-top: 2em;
}

th, td.actions, td.nowrap {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/** Forms **/

form .required label:after {
	color: #e32;
	content: '*';
	display: inline;
	margin: 0.2em;
}

form .required.radio {
	font-weight: normal;
}

form .required.radio label:after {
	content: none;
}

label {
	display: block;
}

.radio fieldset {
	border: none;
	padding: 0;
	margin: 0;
}

.radio legend {
	font-size: 1em;
}

.radio label, .checkbox label {
	display: inline;
	font-weight: normal;
}

.input.checkbox, .input.radio {
	margin-bottom: 0.8em;
}

textarea {
	height: 100px;
}

.input + h3 {
	margin-top: 1em;
}

input[type=number], input.number {background-color:#fff;border:1px solid #bbb;color:#000;}
input[type=number]:focus, input.number:focus {border-color:#666;}
input[type=number], input.number {margin:0.5em 0;width:149px;}

form .error {
	margin: 0.3em -0.7em;
	padding: 0.5em 0.7em;
}

input, select {
	font-size: 1em;
}

.hint {
	color: #777;
	margin: 0.3em 0 1.2em;
}

h3 + .hint {
	margin-top: -1em;
}

/** Forms inside actions (search etc.) */

.actions form,
.actions .input,
.actions .submit {
	display: inline;
	margin: 0.1em;
}

.actions form label {
	display: inline;
	margin: 0.5em;
}

/**  Actions  **/
.actions ul {
	margin: 0 0 1em;
	padding: 0;
	line-height: 2;
}
.actions li {
	margin:0 0 0.5em 0;
	list-style-type: none;
	white-space: nowrap;
	padding: 0;
	display: inline;
}
.actions ul li a {
	font-weight: normal;
	clear: both;
}

/* Buttons and button links */
button,
input[type=submit],
.actions ul li a,
.actions a {
	font-weight:normal;
	padding: 2px 8px;
	background: #dcdcdc;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#fefefe), to(#dcdcdc));
	background-image: -webkit-linear-gradient(top, #fefefe, #dcdcdc);
	background-image: -moz-linear-gradient(top, #fefefe, #dcdcdc);
	background-image: -ms-linear-gradient(top, #fefefe, #dcdcdc);
	background-image: -o-linear-gradient(top, #fefefe, #dcdcdc);
	background-image: linear-gradient(top, #fefefe, #dcdcdc);
	color:#333;
	border:1px solid #bbb;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	text-decoration: none;
	text-shadow: #fff 0px 1px 0px;
	min-width: 0;
	-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0px 1px 1px rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0px 1px 1px rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0px 1px 1px rgba(0, 0, 0, 0.2);
	-webkit-user-select: none;
	user-select: none;
	white-space: nowrap;
}
.actions ul li a:hover,
.actions a:hover {
	background: #ededed;
	border-color: #acacac;
	text-decoration: none;
}
button:active,
input[type=submit]:active,
.actions ul li a:active,
.actions a:active {
	background: #eee;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#dfdfdf), to(#eee));
	background-image: -webkit-linear-gradient(top, #dfdfdf, #eee);
	background-image: -moz-linear-gradient(top, #dfdfdf, #eee);
	background-image: -ms-linear-gradient(top, #dfdfdf, #eee);
	background-image: -o-linear-gradient(top, #dfdfdf, #eee);
	background-image: linear-gradient(top, #dfdfdf, #eee);
	text-shadow: #eee 0px 1px 0px;
	-moz-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
	-webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
	border-color: #aaa;
	text-decoration: none;
}

#cboxClose {
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
	box-shadow: none;
}

/** Paging **/
th a.asc:after {
	content: ' ⇣';
}
th a.desc:after {
	content: ' ⇡';
}

.paging {
	background:#fff;
	color: #ccc;
	margin: 1em 0;
	clear:both;
}
.paging .current,
.paging .disabled,
.paging a {
	text-decoration: none;
	padding: 5px 8px;
	display: inline-block
}
.paging > span {
	display: inline-block;
	border: 1px solid #ccc;
	border-left: 0;
}
.paging > span:hover {
	background: #efefef;
}
.paging .prev {
	border-left: 1px solid #ccc;
	-moz-border-radius: 4px 0 0 4px;
	-webkit-border-radius: 4px 0 0 4px;
	border-radius: 4px 0 0 4px;
}
.paging .next {
	-moz-border-radius: 0 4px 4px 0;
	-webkit-border-radius: 0 4px 4px 0;
	border-radius: 0 4px 4px 0;
}
.paging .disabled {
	color: #ddd;
}
.paging .disabled:hover {
	background: transparent;
}
.paging .current {
	background: #efefef;
	color: #c73e14;
}

/** Profit */

.positive-profit {
	color: #0a0;
}

.negative-profit {
	color: #c00;
}

/** Repairment project status **/

td.status-not_started      { border-left: 7px solid transparent      !important; }
td.status-product_received { border-left: 7px solid transparent      !important; }
td.status-quote_sent       { border-left: 7px solid #ff7      !important; }
td.status-quote_accepted   { border-left: 7px solid #f7f      !important; }
td.status-cancelled        { border-left: 7px solid #f11      !important; }
td.status-completed        { border-left: 7px solid #7ef      !important; }

/** WorkingDivisionHelper **/

.working-division-chooser {
	list-style: none;
	display: block;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
	border-bottom: 1px solid #aaa;
}

.working-division-chooser li {
	display: inline;
	margin-left: 1em;
	color: #999;
}

.working-division-chooser a:link,
.working-division-chooser a:visited {
	color: #555;
	text-decoration: none;
	display: inline-block;
	padding: 0.2em 1em;
	border: 1px solid #ccc;
	border-bottom: none;
	margin-bottom: -1px;
}

.working-division-chooser .selected a {
	color: black;
	background: white;
	border-color: #aaa;
}

.WorkingDivision_showAllSwitch {
	display: inline;
	font-weight: normal;
	margin-right: 0.5em;
	color: #777;
}

.WorkingDivision_showAllSwitch input {
	margin-right: 0;
}

.required .WorkingDivision_showAllSwitch:after {
	display: none;
}

/** Datepicker **/

.datepicker th, .datepicker table tbody td {
	background: transparent;
}

.MyFormHelper_timepicker_switch {
	display: inline;
	font-weight: normal;
	margin-left: 0.5em;
	color: #777;
}

.MyFormHelper_timepicker_switch .timepicker-interval-switch {
	margin-right: 0;
}

.required .MyFormHelper_timepicker_switch:after {
	display: none;
}

/** Fix nvd3 conflicts with blueprint **/

.nvtooltip table {
	width: auto;
}

.nvtooltip .highlight {
	background: none;
}

.nvtooltip tr:nth-child(even) td {
	background: none;
}

/** DynamicSubformHelper **/

.DynamicSubformHelper-subform {
	border: 1px solid #ccc;
	padding: 1em;
	margin: 0 0 1em;
}
