/**####################################################################**/
/** =====                                                        ===== **/
/** ===== CSS die alleen voor de main (contentn) pagina nodig is ===== **/
/** =====                                                        ===== **/
/**####################################################################**/

/* Standaard/Light layout colors */
:root {
	/** Box-shadows **/
	--eknip-content-shadow: 0 10px 20px hsla(0, 0%, 0%, .2),
	                        0 6px 6px hsla(0, 0%, 0%, 0.25);
}

/** input met button er aan vast geplakt **/
.input-with-submit {
	all: unset;
	display: inline-flex;
	/* border-radius: 2px;
	overflow: hidden; */
}

.input-with-submit input[type='text'] {
	border-radius: 2px 0 0 2px;
}

.input-with-submit input[type='submit'],
.input-with-submit input[type='button'] {
	border-radius: 0 2px 2px 0;
}

.input-with-submit input[type='text']:focus {
	background-color: var(--eknip-background-color-2);
}

/* Voor in titels */
.highlight-text {
  color: hsl(25, 100%, 60%);
}

/**##################**/
/** ===== main ===== **/
/**##################**/
main::after,
main::before {
	content: "";
	position: fixed;
	top: 0;
	width: calc(100vw - 140px); /* Volledige breedte - navigatie */
	height: 100vh;
	border-top-left-radius: 30px;
	box-shadow: 0 0 0 18px var(--eknip-main-color-1),
				inset 0 18px 0 0 var(--eknip-main-color-1);
	pointer-events: none;
}

/**#####################**/
/** ===== Section ===== **/
/**#####################**/
section {
	display: flex;
	flex-wrap: wrap;
	border-top: 1px solid hsl(240, 10%, 85%);
	padding: 30px 20px;
}

section:last-of-type {
	margin: 0;
}

.section-head {
	flex: 100%;
	margin: 0;
	padding: 15px;
}

.section-head h1 {
	margin: 0;
	color: var(--eknip-main-color-1);
	font-size: 2.5rem;
	font-family: 'Avenir Next', 'Avenir', Arial, sans-serif;
	text-align: left;
	text-decoration: underline;
	text-decoration-thickness: 4px;
	filter: drop-shadow(2px 2px 0 hsl(225, 25%, 70%));
}

/**#######################**/
/** ===== Container ===== **/
/**#######################**/
.container {
	flex: 100%;
	display: flex;
	flex-direction: column;
	background-color: var(--eknip-background-color-2);
	border-radius: 4px;
	box-shadow: var(--eknip-content-shadow);
	margin: 15px;
	overflow: hidden;
}

/** ===== container-half ===== **/
.container-half {
	flex: calc(50% - 30px);
}

/**############################**/
/** ===== Container head ===== **/
/**############################**/
.container-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	background-color: var(--eknip-main-color-1);
	margin: 0;
	padding: 5px 0;
	color: white;
	text-align: left;
}

/** ===== container-head-title ===== **/
.container-head-title {
	all: unset;
	flex: 1;
	padding: 5px 15px;
	font-size: 1.4rem;
	font-weight: 500;
}

.container-head-title.line-through {
	text-decoration: line-through double var(--eknip-main-color-2);
}

.container-head-title a {
	color: var(--eknip-main-color-2);
}

.container-head > span {
	display: flex;
	padding: 5px 15px;
}

/**###############################**/
/** ===== Container content ===== **/
/**###############################**/
.container-content {
	/* display: flex;
	flex-direction: column; */
	flex: 1;
	padding: 10px;
}

/**#####################################**/
/** ===== Container content table ===== **/
/**#####################################**/
.container-content-table {
	border-spacing: 0;
	margin: auto;
}

.container-content-table td {
	padding: 15px;
}

.container-content-table td:first-of-type {
	vertical-align: middle;
	min-width: 100px;
	font-weight: bold;
	text-align: right;
	white-space: nowrap;
}

.container-content-table td input[type='text'],
.container-content-table td textarea,
.container-content-table td select {
	min-height: 30px;
}

.container-content-table tr:not(:first-of-type):not(:last-of-type) td {
	border-top: 1px solid hsl(240, 10%, 85%);
}

/**#############################################**/
/** ===== Container content table buttons ===== **/
/**#############################################**/
.container-content-table-buttons {
	justify-content: flex-end;
}

.container-content-table-buttons > * {
	margin: 5px;
	white-space: nowrap;
}

/**####################################**/
/** ===== Container content info ===== **/
/**####################################**/
.container-content-info {
	background-color: var(--eknip-background-color-1);
	border-radius: 4px;
	overflow: hidden;
}

/** Standaard de extra informatie verbergen tot er op de I gedrukt wordt **/
div[id$='-extrainfo'] {
	display: none;
}

/**##############################**/
/** ===== Section knipsels ===== **/
/**##############################**/
section#knipsels .knipsels-bron-cell img {
    width: 20px;
	filter: invert(40%) sepia(90%) saturate(4909%) hue-rotate(212deg) brightness(95%) contrast(95%);
}

#knipsels_container .section-head a {
	color: var(--eknip-main-color-2);
}

#knipsels_container .data img {
	width: 20px;
	filter: invert(40%) sepia(90%) saturate(4909%) hue-rotate(212deg) brightness(95%) contrast(95%);
}

span.knipsels-bron-cell {
	display: inline-flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

span.knipsels-bron-cell a[href^='/e-kopie'] {
	padding-left: 5px;
}

/**###############################**/
/** ===== Section zoektaken ===== **/
/**###############################**/
/** Cheat om $totalnrrecords te laten werken, want die moet bovenaan geinclude worden **/
section#zoektaken .container:nth-of-type(2) {
	order: 2;
}

b.mk0 {
	background-color: rgba(218, 52, 0, .2);
	color: rgba(218, 52, 0, 1);
}

b.mk1 {
	background-color: rgba(0, 177, 0, .2);
	color: rgba(0, 177, 0, 1);
}

b.mk2 {
	background-color: rgba(255, 113, 91, .2);
	color: rgba(255, 113, 91, 1);
}

b.mk3 {
	background-color: rgba(0, 156, 255, .2);
	color: rgba(0, 156, 255, 1);
}

b.mk4 {
	background-color: rgba(255, 134, 0, .2);
	color: rgba(255, 134, 0, 1);
}

b.mk5 {
	background-color: rgba(113, 113, 113, .3);
	color: hsl(0, 0%, 20%);
}

b.mk6 {
	background-color: rgba(255, 84, 144, .2);
	color: rgba(255, 84, 144, 1);
}

b.mk7 {
	background-color: rgba(65, 104, 165, .2);
	color: rgba(65, 104, 165, 1);
}

b.mk8 {
	background-color: rgba(66, 109, 52, .2);
	color: rgba(66, 109, 52, 1);
}

/*-*-*-*- Statistieken -*-*-*-*/
.csp_onChange {
	max-width: 100px;
}

section#statistieken p {
	color: hsl(0, 0%, 20%);
}

section#statistieken #date_filter p {
	display: inline;
}

section#statistieken #date_filter span input[value="Nu"] {
	border-radius: 2px 0 0 2px;
}

section#statistieken #date_filter span input[value="All"] {
	border-left: 1px solid hsl(41, 96%, 44%);
	border-radius: 0 2px 2px 0;
	margin-left: -5px;
}

.legendForm input[type=button] {
	border-radius: 0 2px 2px 0;
}

.legendForm input[type=button]:first-child {
	border-right: 1px solid rgba(220, 153, 4, 1);
	border-radius: 2px 0 0 2px;
}

.legendForm table {
	margin: 25px auto 0px auto;
}

.legendForm table td {
	text-align: left;
}

section#statistieken .container-content img {
	width: 18px;
	height: 18px;
	margin-bottom: -5px;
	cursor: pointer;
	filter: invert(36%) sepia(41%) saturate(6747%) hue-rotate(211deg) brightness(94%) contrast(97%);
}

#graph_legenda form {
	 display: inline;
}

/** Landcodes & Taalcodes **/
span#settings_landcodes-taalcodes h3,
span#settings_landcodes-taalcodes a {
	display: inline-block;
}

/*-*-*-*- Help -*-*-*-*/
section#help .container-content tr th {
	border-bottom: 1px solid hsl(225, 25%, 60%);
	color: var(--eknip-main-color-1);
	font-size: 1.2rem;
}

section#help .container-content tr td {
	padding: 10px;
}

section#help .container-content tr:not(:last-of-type) td:not(:first-of-type) {
	border-bottom: 1px solid hsl(225, 25%, 80%);
}

section#help strong {
	color: var(--eknip-main-color-2);
}

/**#############**/
/** Land & Taal **/
/**#############**/
#body_landcodes-taalcodes {
	max-width: 1500px;
	margin: auto;
}

#field_landcodes-taalcodes {
	background-color: var(--eknip-background-color-2);
    margin-bottom: 10px;
    padding: 25px;
    border-radius: 4px;
    color: hsl(0, 0%, 20%);
    line-height: 25px;
}

#field_landcodes-taalcodes h2,
#field_landcodes-taalcodes h4,
#field_landcodes-taalcodes p {
	color: hsl(0, 0%, 20%);
	text-align: left;
}

/* ----------- iPhone 6, 6S, 7 and 8 / iPad Pro 12.9" ----------- */
/* Portrait and Landscape */
@media only screen and (max-device-width: 1366px) {

	.container-content-table {
		width: 100%;
		margin: 0;
	}

	.container-content-table tr {
		display: flex;
		flex-direction: column;
		padding: 10px;
	}
	
	.container-content-table td {
		display: flex;
		padding: 0;
	}

	.container-content-table td:first-of-type {
		flex-wrap: wrap;
	}

	.container-content-table td input[type='text'],
	.container-content-table td textarea,
	.container-content-table td select {
		width: 100%;
		max-width: none;
	}

	.container-content-table tr:not(:first-of-type):not(:last-of-type) td {
		border-top: none;
	}

}

/* ----------- iPhone 6, 6S, 7 and 8 ----------- */
/* Portrait and Landscape */
@media only screen and (max-device-width : 736px) {

	section {
		padding-top: 20px;
		padding-right: 0;
		padding-left: 0;
	}

	.section-head {
		position: sticky;
		top: 0;
		background-color: hsl(240, 25%, 96%);
		z-index: 1;
	}

	.container {
		border-radius: 0;
		margin: 20px 0;
	}

	.container-half {
		flex: auto;
	}

	.container-head > span {
		flex: 100%;
	}

}