body {
	font: normal 14px/16px "Arial"; margin: 0;
	padding: 24px;
}

.invisible {
	display: none;
}

.invisible.active {
	display: inline-block;
}

h1, h2 {
    display: block; margin: 0; font-size: 1.5em; line-height: 1.5em; margin-bottom: 8px;
}

table.table {
    border-collapse: collapse;
}

table.table td, table.table th {
    border: 1px solid #999; padding: 4px 6px;
}

.tabs {
    margin-bottom: 32px;
}

.sub-tabs {
    margin-bottom: 16px;
}

table.table a {
    display: inline-block; padding: 2px 4px; color: #1122cc; text-decoration: underline; cursor: pointer;
}

table.table a:hover, table.table a.active {
    background: #1122cc; color: #fff; text-decoration: none;
}

.filters {
    margin-bottom: 8px;
}

.tabs a, .sub-tabs a, .filters a {
	display: inline-block; padding: 2px 4px; color: #1122cc; text-decoration: underline; cursor: pointer;
    padding: 4px 8px;
}

/* *********************** */
.login {
    padding: 32px;
}

.login img {
    display: block; height: 80px;
    margin-bottom: 24px;
}

.login form label {
    display: block; margin-bottom: 3px;
}

.login span.field-error, .login p.last {
    margin-top: 0; margin-left: 0;
}

.login form .message.error {
    margin-left: 0;
}

/* *********************** */
form {
    display: block;
}

form p {
    margin: 10px 0;
}

form p label {
    vertical-align: top;
}

form span.field-error {
    display: block; color: #c33; padding: 2px; margin-left: 150px;
}

form .message.error {
    display: inline-block; padding: 12px; margin-left: 150px; background: #a33; color: #fff; margin-bottom: 8px;
}

.message.info {
    background: #59a; color: #fff; padding: 16px; margin-bottom: 8px;
    -moz-border-radius: 3px; -webkit-border-radius: 3px; -o-border-radius: 3px; -ms-border-radius: 3px; border-radius: 3px;
}

.message.error2 {
    display: none; background: #a33; color: #fff; padding: 16px;
    -moz-border-radius: 3px; -webkit-border-radius: 3px; -o-border-radius: 3px; -ms-border-radius: 3px; border-radius: 3px;
    line-height: 1.5em; margin-bottom: 8px;
}

.message.error3 {
    display: none; background: #95a; color: #fff; padding: 16px;
    -moz-border-radius: 3px; -webkit-border-radius: 3px; -o-border-radius: 3px; -ms-border-radius: 3px; border-radius: 3px;
    white-space: pre; line-height: 1.5em; margin-bottom: 8px;
}

form p label {
    display: inline-block; width: 150px;
}

form p label em {
    display: block; font-size: 0.8em;
}

form p label.inline {
    margin-left: 150px; width: auto;
}

form p label.inline:hover {
    text-decoration: underline; cursor: pointer;
}

form p.last {
    margin-top: 20px; margin-left: 150px;
}

/* ******* */
form p.last input[type="submit"] {
    font-size: 1em; display: inline-block; padding: 4px 20px 4px 20px; color: #000; text-shadow: 0px 1px 0px #eee; text-decoration: none; border: 1px solid #ccc; border-bottom: 2px solid #999;
    background: -moz-linear-gradient(#eee,#bbb); background: -webkit-linear-gradient(#eee,#bbb); background: -o-linear-gradient(#eee,#bbb); background: -ms-linear-gradient(#eee,#bbb); background: linear-gradient(#eee,#bbb);
	-moz-border-radius: 3px; -webkit-border-radius: 3px; -o-border-radius: 3px; -ms-border-radius: 3px; border-radius: 3px;
}

form p.last input[type="submit"]:active {
    background: -moz-linear-gradient(#aaa,#ddd); background: -webkit-linear-gradient(#aaa,#ddd); background: -o-linear-gradient(#aaa,#ddd); background: -ms-linear-gradient(#aaa,#ddd); background: linear-gradient(#aaa,#ddd);
    border: 1px solid #bbb; border-top: 2px solid #888;
}

/* ***** */
form p input[type="text"], form p input[type="password"], form p select, form p textarea {
    display: inline-block; border: 1px solid #999; padding: 6px 8px; color: #000; min-width: 350px;

    -moz-box-shadow: inset 0px 4px 8px -7px #000; -webkit-box-shadow: inset 0px 4px 8px -7px #000; -ms-box-shadow: inset 0px 4px 8px -7px #000; -o-box-shadow: inset 0px 4px 8px -7px #000; box-shadow: inset 0px 4px 8px -7px #000;
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box;
}

form p select option {
    padding: 2px 6px;
}

form p textarea {
	width: 50%; height: 250px;
}

.loading-indicator {
	background: url(loading-indicator.gif);
	display: inline-block; width: 16px; height: 11px; margin-left: 12px;
}

/* ********************* */
h1 {
    display: block; padding: 4px 12px; font-weight: normal; line-height: 1.5em; margin: 0 0 16px 0; background: #fff; color: #209086;
    font-size: 1.5em;
}

h1 > * {
    display: inline-block; vertical-align: middle;
}

h1 img {
    height: 56px; margin-right: 16px;
}

h1 span {
    margin-top: -4px;
}

h2 {
    display: block; border: none; padding: 0; margin: 24px 0 16px 0; color: #209086; font-weight: bold;
}

h3 {
    display: block; border: none; padding: 0; margin: 0 0 16px 0; color: #e62e14; font-weight: bold;
    font-size: 1.6em; line-height: 1em;
}

/* ***** */
.tabs {
    background: none; font-size: 1em; line-height: 1em; padding-left: 8px; border-bottom: 2px solid #aaa;
    -moz-border-radius: 3px 3px 0 0; -webkit-border-radius: 3px 3px 0 0;-o-border-radius: 3px 3px 0 0; -ms-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0;
}

.tabs a {
    padding: 8px 24px 8px 24px; margin: 0 0 0 2px; background: #eee; color: #333; text-decoration: none;
    -moz-border-radius: 3px 3px 0 0; -webkit-border-radius: 3px 3px 0 0;-o-border-radius: 3px 3px 0 0; -ms-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0;
}

.tabs a:hover, .tabs a.active {
    background: #555; color: #fff; font-weight: normal;
}

.sub-tabs {
    font-size: 1em; line-height: 1em; padding-left: 8px;
    border-bottom: 2px solid #aaa;
}

.sub-tabs a { 
    padding: 8px 24px 8px 24px; background: #eee; color: #333; margin: 0 0 0 2px; text-decoration: none; font-weight: normal;
	-moz-border-radius: 3px 3px 0 0; -webkit-border-radius: 3px 3px 0 0; -o-border-radius: 3px 3px 0 0; -ms-border-radius: 3px 3px 0 0; border-radius: 3px 3px 0 0;
}

.sub-tabs a:hover, .sub-tabs a.active {
    background: #444; color: #fff;
}

/* ******* */
.filters a {
    display: inline-block; padding: 8px 20px 6px 20px; color: #000; text-shadow: 0px 1px 0px #eee; text-decoration: none; border: 1px solid #ccc; border-bottom: 2px solid #999;
    background: -moz-linear-gradient(#eee,#bbb); background: -webkit-linear-gradient(#eee,#bbb); background: -o-linear-gradient(#eee,#bbb); background: -ms-linear-gradient(#eee,#bbb); background: linear-gradient(#eee,#bbb);
	-moz-border-radius: 3px; -webkit-border-radius: 3px; -o-border-radius: 3px; -ms-border-radius: 3px; border-radius: 3px;
}

.filters a:hover {
}

.filters a:active {
    background: -moz-linear-gradient(#aaa,#ddd); background: -webkit-linear-gradient(#aaa,#ddd); background: -o-linear-gradient(#aaa,#ddd); background: -ms-linear-gradient(#aaa,#ddd); background: linear-gradient(#aaa,#ddd);
    border: 1px solid #bbb; border-top: 2px solid #888;
}

.filters input {
    display: inline-block; border: 1px solid #999; padding: 6px 8px; color: #000;
    -moz-box-shadow: inset 0px 4px 8px -7px #000; -webkit-box-shadow: inset 0px 4px 8px -7px #000; -ms-box-shadow: inset 0px 4px 8px -7px #000; -o-box-shadow: inset 0px 4px 8px -7px #000; box-shadow: inset 0px 4px 8px -7px #000;
    -moz-box-sizing: border-box; -webkit-box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box;
}

.filters input.ndatepicker {
    width: 95px;
}

.filters > span {
    display: inline-block; margin-right: 8px; margin-bottom: 12px;
}

.filters > span label {
    display: block; margin-bottom: 4px;
}

/* ******* */
table.table {
    width: 100%;
}

table.table th {
    background: -moz-linear-gradient(#eee,#ddd); background: -webkit-linear-gradient(#eee,#ddd); background: -o-linear-gradient(#eee,#ddd); background: -ms-linear-gradient(#eee,#ddd); background: linear-gradient(#eee,#ddd);
    padding: 8px; text-shadow: 0px 1px 0px #fff; font-size: 1em;
}

table.table a.b {
    display: block; padding: 6px 12px;
}

/* ******** */
.loading-message {
    display: none; position: relative;
    background: #086; color: #fff; padding: 12px 24px; margin-bottom: 24px;
    border-radius: 2px;
}

.loading-message:before {
    background: red; display: inline-block;  vertical-align: middle; width: 16px; height: 16px; content: "";
    background: url(loading.gif); margin-right: 6px;
}

html.busy .loading-message {
    display: block;
}
