body
{
	font-family:
		"Lucida Grande",
		"Lucida Sans Unicode",
		"Lucida Sans",
		"Trebuchet MS",
		Arial,
		sans-serif;
	font-size: .9em;
	margin: 0;
	letter-spacing: -0.01em;
	height: 100%;
	width: 100%;
	background-color: white;
}

banner
{
	background-color: #885;
	/* background-color: #ff3333; */
	padding: 1rem;
	color: white;
	font-weight: bold;
	display: flex;
	font-size: 150%;
}

banner .sitename
{
	flex: 1;
}

banner .sitename .site
{
	text-decoration: none;
	font-size: 90%;
	color: #d2d2bf;
}

banner .user
{
	flex: 1;
	text-align: right;
}

banner .user a
{
	text-decoration: none;
	color: white;
	padding-left: 1rem;
}

navbar
{
	position: relative;
	display: flex;
}

navbar > ul.nav
{
	flex: 1;
	border-top: solid 1px white;
}

navbar status
{
	flex: 1;
	display: block;
	font-weight: bold;
	font-size: .9em;
	height: 100%;
}

navbar status > div
{
	padding: 0.35rem 1rem;
	text-align: right;
}

status div.good
{
	background-color: #88ff66;
}

status div.bad
{
	background-color: #ff5555;
}

status div.neutral
{
	background-color: #a7a7a7;
}

maincontent
{
	display: block;
	padding: 1rem;
}

footer
{
}

.field-language-label
{
	padding-bottom: 0.5rem;
}

.field-language-label
{
	font-size: 80%;
}

span.idnum
{
	display: inline-block;
	font-size: 80%;
	font-weight: bold;
	background-color: #ccc;
	color: black;
	border-radius: 0.5rem;
	padding: 0.1rem 0.3rem;
}

span.idnum:before
{
	content: '#';
	padding-right: 0.15rem;
	color: #777;
}

a.iconlink
{
	text-decoration: none;
}

.buttonLink
{
	display: inline-block;
	line-height: 1.9rem;
}

.buttonLink, input[type="button"], input[type="submit"]
{
	border: solid 1px #ccc;
	border-radius: 3px;
	box-sizing: border-box;
	cursor: pointer;
	vertical-align: middle;
	height: 2rem;
	padding: 0 1.5rem;
	font-size: 10pt;
	text-decoration: none;
	background-color: rgb(231,231,221);
	color: #333;
	font-weight: bold;
}

.buttonLink:hover, input[type="button"]:hover, input[type="submit"]:hover
{
	background-color: rgb(204,204,184);
}

/* table for editing fields of a single item */

table.edit-item
{
	width: 100%;
	border-collapse: collapse;
}

table.edit-item tr:nth-child(even)
{
	background-color: #f3f3f3;
}

table.edit-item td
{
	border-top: solid 1px #999;
	padding: 0.3rem 0.5rem;
	margin: 0;
}

table.edit-item td:nth-child(1)
{
	width: 20%;
	text-align: right;
	background-color: #ddd;
}

table.edit-item td input[type=text]
{
	width: 100%;
	border: solid 1px #ddd;
	height: 1.5rem;
	font-size: 110%;
}

table.edit-item td textarea
{
	width: 100%;
	height: 4rem;
}

table.edit-item .label .mandatory_marker
{
	color: red;
}

table.edit-item .error
{
	color: #ff5555;
	font-weight: bold;
}

div.edit-item-buttons
{
	margin-top: 1rem;
}

/* table for listing multiple items */

table.list-items
{
	width: 100%;
	border-collapse: collapse;
}

table.list-items tr:nth-child(even)
{
	background-color: #f3f3f3;
}

table.list-items th
{
	text-align: left;
	background-color: #ddd;
	border-bottom: solid 1px #999;
	padding: 0.3rem 0.5rem;
}

table.list-items td
{
	padding: 0.3rem 0.5rem;
}

table.edit-item th.divider
{
	text-align: left;
	padding-bottom: 0.5rem;
}

/* home page */

div.home-box
{
	width: 75%;
	background-color: #eee;
	border-radius: 1rem;
	border: solid 1px #e0e0e0;
	margin: 2rem auto 0 auto;
	padding: 1rem;
}

div.home-box > div.title
{
	font-weight: bold;
	font-size: 200%;
}

div.home-box div.sections
{
	display: flex;
}

div.home-box div.sections > div
{
	border-left: solid 1px #c7c7c7;
	padding: 0 1rem;
}

div.home-box div.sections > div:nth-child(1)
{
	border-left: none;
}

div.home-box div.sections div.samples
{
	flex: 2;
	font-size: 90%;
}

div.home-box div.sections div.quicksearch
{
	flex: 4;
}

div.home-box div.sections div.links
{
	flex: 1;
}

div.home-box div.sections div.links ul
{
	list-style-type: none;
	padding: 0;
}

/* edit pages */

div.item-edit-columns
{
	display: flex;
}

div.item-edit-columns > div.item
{
	flex: 4;
}

div.item-edit-columns > div.related
{
	flex: 1;
	background-color: #ddd;
	padding: 0.5rem;
	margin-left: 1rem;
}

div.item-edit-columns > div.related > div
{
	border: solid 1px #ccc;
	background-color: #eee;
	padding: 0.5rem;
}

div.item-edit-columns > div.related > div > div.title
{
	font-weight: bold;
	text-indent: 1rem;
	border-bottom: solid 1px #ccc;
	margin-bottom: 0.3rem;
	padding-bottom: 0.3rem;
}

div.item-edit-columns > div.related > div > div.title:before
{
	content: '»';
	margin-left: -1rem;
	padding-right: 0.5rem;
}

div.item-edit-columns > div.related > div > div.content
{
	margin-left: 1rem;
}

div.related ul.related-items li.add
{
	list-style: none;
	margin-bottom: 0.5rem;
}

div.related li.add:before
{
	content: '➕';
	position: relative;
	margin-left: -1.2rem;
}
