a.overlay_close_button
{
	color: #f17c00;
}

div.showbox_main a
{
	color: #f17c00;
}

div.showbox_review_presentation a
{
	color: #f17c00;
}

div.showbox_review_presentation div.search_area form .input-group-append .input-group-text,
div.showbox_review_presentation div.search_area form .input-group-append .input-group-text a
{
	background-color: #f17c00;
	border-color: #f17c00;
}

div.showbox_review_presentation_pagination .pagination > li > a,
div.showbox_review_presentation_pagination .pagination > li > span
{
	color: #f17c00;
}

div.showbox_review_presentation_pagination .pagination > a,
div.showbox_review_presentation_pagination .pagination a:focus,
div.showbox_review_presentation_pagination .pagination a:hover
{
	box-shadow: none;
}

div.showbox_review_presentation_pagination .pagination > .active > a,
div.showbox_review_presentation_pagination .pagination > .active > a:focus,
div.showbox_review_presentation_pagination .pagination > .active > a:hover
{
	background-color: #f17c00;
	border-color: #f17c00;
	color: #FFF;
}

.showbox_show_presentation a
{
	color: #f17c00;
}

/****************************************************************************************************/

/* VH: editable title badge replaces "pdf | Portables Dokument" */

div.showbox_review_presentation div.media_details span.vh_display_title
{
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	background: #f17c00;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

div.showbox_review_presentation div.media_details
{
	overflow: visible;
}

/****************************************************************************************************/

/* VH: PDF viewer modal */

body.vh_pdf_modal_lock
{
	overflow: hidden;
}

div.vh_pdf_modal
{
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0,0,0,0.85);
}

div.vh_pdf_modal.vh_pdf_modal_open
{
	display: flex;
	align-items: stretch;
	justify-content: center;
}

div.vh_pdf_modal_inner
{
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

header.vh_pdf_modal_header
{
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	background: #1a1a1a;
	color: #fff;
	border-bottom: 2px solid #f17c00;
}

span.vh_pdf_modal_title
{
	flex: 1;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

form.vh_pdf_download_form
{
	margin: 0;
}

button.vh_pdf_btn
{
	background: #f17c00;
	color: #fff;
	border: 0;
	padding: 8px 14px;
	border-radius: 3px;
	font-size: 14px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

button.vh_pdf_btn:hover
{
	background: #00a326;
}

button.vh_pdf_btn_close
{
	background: transparent;
	font-size: 22px;
	padding: 4px 10px;
}

button.vh_pdf_btn_close:hover
{
	background: transparent;
	color: #f17c00;
}

div.vh_pdf_modal_body
{
	flex: 1;
	background: #2a2a2a;
}

iframe#vh_pdf_iframe
{
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

@media ( max-width: 575px )
{
	header.vh_pdf_modal_header
	{
		padding: 8px 10px;
	}
	button.vh_pdf_btn span
	{
		display: none;
	}
	button.vh_pdf_btn
	{
		padding: 8px 10px;
	}
}

/****************************************************************************************************/

/* VH: usage statistics - only rendered for signed in editors, never for visitors */

/* Card above the media grid. Head (label + period control) sits ON TOP of the
   figures, not beside them, so it is obvious that the control governs them. */

div.showbox_review_presentation div.vh_presentation_statistics
{
	margin: 0 0 18px 0;
	padding: 10px 14px 12px 14px;
	background: #faf7f3;
	border: 1px solid #ecdfd0;
	border-left: 3px solid #f17c00;
	border-radius: 4px;
}

div.showbox_review_presentation div.vh_presentation_statistics div.vh_stat_head
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-bottom: 8px;
	margin-bottom: 10px;
	border-bottom: 1px solid #ecdfd0;
}

div.showbox_review_presentation div.vh_presentation_statistics span.vh_stat_label
{
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #9a8b7a;
}

div.showbox_review_presentation div.vh_presentation_statistics div.vh_stat_values
{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

div.showbox_review_presentation div.vh_presentation_statistics span.vh_stat_pill
{
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	padding: 3px 10px;
	background: #fff;
	border: 1px solid #e6d8c8;
	border-radius: 12px;
	font-size: 12px;
	color: #6b6259;
	white-space: nowrap;
}

div.showbox_review_presentation div.vh_presentation_statistics span.vh_stat_pill i
{
	color: #f17c00;
	font-size: 11px;
}

div.showbox_review_presentation div.vh_presentation_statistics span.vh_stat_pill b
{
	font-size: 13px;
	font-weight: 700;
	color: #3d3833;
}

/* Period control */

div.showbox_review_presentation div.vh_presentation_statistics span.vh_stat_period
{
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12px;
	color: #6b6259;
}

div.showbox_review_presentation div.vh_presentation_statistics span.vh_stat_period label
{
	margin: 0;
	font-size: 11px;
	color: #9a8b7a;
}

div.showbox_review_presentation div.vh_presentation_statistics span.vh_stat_period select,
div.showbox_review_presentation div.vh_presentation_statistics span.vh_stat_period input.vh_stat_datepicker
{
	height: 28px;
	padding: 0 6px;
	font-size: 12px;
	color: #3d3833;
	background: #fff;
	border: 1px solid #e6d8c8;
	border-radius: 4px;
}

div.showbox_review_presentation div.vh_presentation_statistics input.vh_stat_datepicker
{
	width: 108px;
	text-align: center;
	cursor: pointer;
}

div.showbox_review_presentation div.vh_presentation_statistics span.vh_stat_custom_range
{
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

div.showbox_review_presentation div.vh_presentation_statistics span.vh_stat_range_sep
{
	color: #9a8b7a;
}

div.showbox_review_presentation div.vh_presentation_statistics button.vh_stat_apply
{
	height: 28px;
	padding: 0 12px;
	font-size: 12px;
	color: #fff;
	background: #f17c00;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

div.showbox_review_presentation div.vh_presentation_statistics button.vh_stat_apply:hover
{
	background: #d86f00;
}

/* Active filter - the card changes appearance so a reduced figure is never
   mistaken for an all time total. */

div.showbox_review_presentation div.vh_presentation_statistics.vh_stat_is_filtered
{
	background: #fff6ea;
	border-color: #f3d3a8;
	border-left-width: 5px;
}

div.showbox_review_presentation div.vh_presentation_statistics.vh_stat_is_filtered div.vh_stat_head
{
	border-bottom-color: #f3d3a8;
}

div.showbox_review_presentation div.vh_presentation_statistics div.vh_stat_note
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 12px;
	color: #8a5a12;
}

div.showbox_review_presentation div.vh_presentation_statistics div.vh_stat_note i
{
	font-size: 11px;
}

div.showbox_review_presentation div.vh_presentation_statistics div.vh_stat_note a
{
	color: #8a5a12;
	text-decoration: underline;
}

/* Per tile counters - absolutely positioned tab at the bottom edge, mirroring
   the title tab at the top. The tile has a fixed height in show_presentation,
   so the counters must not take part in the normal flow. */

div.showbox_review_presentation div.media_details span.vh_media_statistics
{
	position: absolute;
	bottom: -16px;
	right: -1px;
	display: flex;
	gap: 2px;
	font-size: 10px;
	line-height: 16px;
	background: #ccc;
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
	overflow: hidden;
}

div.showbox_review_presentation div.media_details span.vh_media_statistics > span
{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0 7px;
	color: #6b6259;
}

div.showbox_review_presentation div.media_details span.vh_media_statistics > span i
{
	font-size: 9px;
	color: #8a8078;
}

div.showbox_review_presentation div.media_details span.vh_media_statistics > span.vh_stat_active
{
	background: #f17c00;
	color: #fff;
	font-weight: 600;
}

div.showbox_review_presentation div.media_details span.vh_media_statistics > span.vh_stat_active i
{
	color: #fff;
}

/* Filtered tiles get a marker so the tab is not read as an all time figure */
div.showbox_review_presentation div.media_details span.vh_media_statistics_filtered
{
	outline: 1px solid #f3d3a8;
}

div.showbox_review_presentation div.media_details span.vh_media_statistics_filtered:before
{
	content: "\f0b0";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	display: inline-flex;
	align-items: center;
	padding: 0 5px;
	font-size: 8px;
	color: #8a5a12;
	background: #fff6ea;
}

@media ( max-width: 575px )
{
	div.showbox_review_presentation div.vh_presentation_statistics
	{
		padding: 10px;
	}
	div.showbox_review_presentation div.vh_presentation_statistics div.vh_stat_head
	{
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}
}
