html, body {
	height: 100%;
	padding: 0;
	margin: 0;
	border: 0;
	font: normal 12px Arial;
}
body {
	display: flex;
	flex-direction: column;
}

/* Overview */

#topbib_base_overview_panel {
	display: flex;
	flex-direction: column;
	padding: 0px 5px 0px 5px;
}

#topbib_base_overview_panel h2 {
	font-size: 25px;
}

#topbib_base_simple_search_panel {
	white-space: nowrap;
	position: relative;
}

#topbib_base_simple_search_field {
	padding-top: 3px;
}

#topbib_base_simple_search_empty {
	position: absolute;
	left: 0px;
	top: 30px;
	background-color: white;
	color: black;
	border-radius: 6px;
	border-style: solid;
	border-color: red;
	padding: 6px;
	z-index: 30;
	visibility: hidden;
}

#topbib_base_simple_search_empty.topbib_base_active {
	visibility: visible;
}

#topbib_base_simple_search_empty::after {
	content: '';
	position: absolute;
	top: -18px;
	left: 50%;
	margin-left: -8px;
	border-width: 8px;
	border-style: solid;
	border-color: transparent transparent red transparent;
	z-index: 29;
}

#topbib_base_advanced_search_activator {
	margin-top: 5px;
}

#topbib_base_advanced_search_panel {
	border: 2px solid green;
	padding: 5px;
	box-sizing: border-box;
}

#topbib_base_advanced_search_fields {
}

.topbib_base_advanced_search_field {
	margin-right: 4px;
}

.topbib_base_advanced_search_label {
	font-weight: bold;
	font-size: 12px;
	color: #008;
	padding-bottom: 3px;
	padding-top: 3px;
	display: block;
}

#topbib_base_advanced_search_header {
	font-size: 14px;
	font-weight: bold;
	color: green;
	margin: 2px;
	text-align: center;
}

#topbib_base_advanced_search_close {
	margin-top: 3px;
	margin-left: 1em;
}

#topbib_base_advanced_search {
	margin-top: 5px;
	margin-left: 45%;
}

#topbib_base_advanced_search_empty {
	left: 0px;
	top: 30px;
	background-color: white;
	color: black;
	border-radius: 6px;
	border-style: solid;
	border-color: red;
	padding: 6px;
	margin: 4px 0 0 0;
	z-index: 30;
	display: none;
	text-align: center;
}

#topbib_base_advanced_search_empty.topbib_base_active {
	display: block;
}

#topbib_base_menu {
	flex: 1;
	max-width: 25em;
	padding: 3px 3px 3px 3px;
	margin: 12px 0 1px 0;
	overflow: auto;
}

/* Path */

#topbib_base_overview_button {
	display: none;
}

.topbib_base_path {
	background-color: #ddd;
	min-height: 1em;
	padding: 5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}

.topbib_base_path_insert {
	overflow: visible;
	white-space: nowrap;
}

.topbib_base_path_elem {
	text-decoration: underline;
}
.topbib_base_path_elem:hover {
	cursor: pointer;
}

/* User view of record */

.topbib_base_record {
	clear: both;
	overflow-x: auto;
	overflow-y: auto;
	min-height: 0;
}

.topbib_base_user_field {
	margin-left: 0;
	margin-right: 0;
	margin-top: 10px;
	margin-bottom: 10px;
}

.topbib_base_notes_list {
	list-style-type: none;
}

.topbib_base_graphics_wrapper {
	display: flex;
	margin-left: 0;
	margin-right: 0;
	margin-top: 10px;
	margin-bottom: 10px;
}

.topbib_base_graphics_wrapped {
	flex: 4;
}

.topbib_base_graphics {
	height: 300px;
	display: flex;
	flex-direction: column;
}

@media only screen and (max-height: 600px) {
	.topbib_base_graphics {
		height: 200px;
	}
}

.topbib_base_graphics_rest {
	flex: 1;
	padding-left: 2em;
}

.topbib_base_name {
	margin: 10px;
	font-size: 12px;
}

.topbib_base_name_variant {
	font-weight: bold;
}

.topbib_base_name {
	margin: 10px;
	font-size: 12px;
}

.topbib_base_name_variant {
	font-weight: bold;
}

.topbib_base_pdf_wrapper {
	width: 100%;
	height: 400px;
	padding: 0;
	border: 0;
	margin: 0;
	position: relative;
}

.topbib_base_pdf_viewer {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 400px;
	padding: 0;
	border: 0;
}

.topbib_base_pdf_close {
	position: absolute;
	left: 20px;
	top: 20px;
	z-index: 10;
}

.topbib_base_bibliography {
	margin-top: 10px;
	margin-bottom: 10px;
	margin-right: 1px;
	margin-left: 1px;
	border-style: solid;
	border-color: green;
	border-width: 1px;
	padding: 4px;
}

.topbib_base_selected {
	text-align: right;
}

.topbib_base_header {
	font-weight: bold;
	font-size: 14px;
	color: #008;
}

/* General */

.topbib_base_element {
	font-weight: bold;
	font-size: 12px;
	color: #008;
	padding-bottom: 3px;
	padding-top: 3px;
}

.topbib_base_field_name {
	font-weight: bold;
	font-size: 12px;
}

.topbib_base_button {
	color: black;
	border-style: solid;
	border-color: #eed #aac #bbb #eee;
	border-width: 1px;
	background-color: #eed;
	text-decoration: none;
	outline: none;
}
.topbib_base_button:active {
	background-color: #cdd;
	color: #800;
}
.topbib_base_button:hover {
	color: #800;
	background-color: white;
	border-color: #aac #ddd #ddd #bbb;
}
.topbib_base_button:focus {
	outline: none;
	background-color: #d80;
}
@media (pointer: coarse) {
	.topbib_base_button {
		border-width: 5px;
		margin: 2px;
	}
}

.topbib_base_big_button {
	color: white;
	border: none;
	padding: 5px 18px;
	margin: 0 0 6px 0;
	background-color: #368;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.topbib_base_warning {
	color: red;
}
.topbib_base_warning:focus {
	color: white;
	background-color: red;
}

.topbib_base_good {
	color: green;
}
.topbib_base_good:focus {
	color: white;
	background-color: green;
}

.topbib_base_special {
	color: blue;
}
.topbib_base_special:focus {
	color: white;
	background-color: blue;
}

.topbib_base_hidden {
	display: none;
}

.topbib_base_footnote {
	font-size: 90%;
}

@media (pointer: coarse) {
	.topbib_base_listing li {
		padding: 5px;
	}
}

/* External links */

#topbib_base_record_panel a[target='_blank']::after,
.topbib_user_body a[target='_blank']::after,
.topbib_base_bibliography a[target='_blank']::after {
	content: url('/graphics/external.svg');
	vertical-align: -2px;
	padding-left: 3px;
}

/* Icons */

@font-face {
	font-family: 'Icons';
	src: url('/fonts/icons.ttf') format('truetype');
}

.topbib_base_icon {
	font-family: Icons;
	padding: 3px;
}

/* Transliteration */

.translit {
	font-style: italic;
}

/* Hieroglyphic */

.hieroglyphic {
	font-size: 24px;
}
