body {
	background-color: #ffffff;
	color: #000000;
	margin: 0;
	margin-left: 5mm;
	margin-right: 5mm;
	margin-bottom: 5mm;
}

a { text-decoration: none; }
a:link, a:visited { color: #770000; }
a:hover { text-decoration: underline; }

/* Header */

img#header-logo {
	padding: 0;
	margin: 0;
}
td#header-text { padding-left: 6mm; vertical-align: middle; }

/* Navigation */

.float-right {
	float: right;
	margin: 3mm;
	margin-right: 0;
}
.nav-bar, .user-switch {
        padding: 2mm;
        margin: 2mm;
        margin-right: 0;
}
.nav-bar {
        background-color: #ecece3;
        border: solid thin #d2d2c4;
}
.user-switch {
	background-color: #d2d2c4;
        border: solid thin #ecece3;
}
.nav-bar ul, .user-switch ul {
        padding-left: 2em;
        list-style: square;
        margin: 0;
        margin-top: 2mm;
        margin-bottom: 2mm;
}
.nav-bar h3, .user-switch h3 {
        margin-left: -2mm; margin-right: -2mm;
        padding-left: 2mm; padding-right: 2mm;
        font-variant: small-caps;
        margin-top: 2mm;
        margin-bottom: 2mm;
        background-color: #d2d2c4;
}
.nav-bar h4, .user-switch h4 {
	margin-top: 3mm;
	margin-bottom: 2mm;
}
.user-switch h3:first-child { margin-top: 0; }

a.context-link:before { content: "["; color: black; text-decoration: none; }
a.context-link:after  { content: "]"; color: black; text-decoration: none; }
a.context-link { font-size: medium; font-weight: normal; }

/* Tables */

th { text-align: left; }
th, td { vertical-align: top; }
table.std {
	border-collapse: collapse;
}
table.std td, table.std th {
	border: solid thin #999999;
	padding-left: 0.25em;
	padding-right: 0.25em;
}
table td.outside, table th.outside {
	border: none;
	background-color: inherit;
}

table.assoc {
	margin: 2ex 0;
}
table.assoc th {
	text-align: right;
	font-style: italic;
	font-weight: normal;
	padding-right: 0.4em;
}
table.assoc th:after { content: ":"; }

table.multicol {
	margin-top: 2mm;
	margin-bottom: 2mm;
	border-collapse: collapse;
}
table.multicol tr td {
	border-left: dotted thin;
	padding-left: 2mm;
	padding-right: 2mm;
}
table.multicol tr td:first-child { border-left: none; padding-left: 0; }

tr.selected td, td.selected { background-color: #d2d2c4; }
tr.selected td.outside { background-color: inherit; }

/* Misc */
.indent {
	margin-left: 5mm;
	margin-right: 5mm;
}
tr h2 { margin-top: 5mm; }
tr:first-child h2 { margin-top: 0mm; }

td.numeric { text-align: right; }

.special-value { color: #777777; }
.inactive * { text-decoration: line-through; }
.deleted * { text-decoration: line-through; }

.field_req:after { content: "*"; }

.dialog {
	border: dashed thin #770000;
	background-color: #ecece3;
	padding: 1mm 4mm;
}

tr.existing td { background-color: #d2d2c4; }
tr.existing td.outside { background-color: inherit; }
.delete { color: #770000; font-weight: bold; }
.create { color: #007700; font-weight: bold; }

.error, .field_error { color: #770000; font-weight: bold; }
body.error { color: inherit; font-weight: normal; }
.warning { color: #443300; font-weight: bold; }
.field_error ul { margin-top: 0; margin-bottom: 0; }
.field_error li { margin-top: 0; margin-bottom: 0; }
