/*Farbschema
* tm-rot: rgba(148, 40, 47, 1.0);
* helle schrift: rgba(250, 250, 250, 1.0);
* "schwarz" : rgba(15, 15, 15, 1.0);
* dunkles grau: color: rgba(95, 95, 95, 1.0);
*/

/******General styles*****/
*{
	box-sizing: border-box;
}

html {
	min-height: 100vh;
}

body {
	position: relative;
	min-height: 100vh;
}

html, body, footer {	
	padding: 0;
	margin: 0;
	font-family: sans-serif;
	font-size: 0.9vw;
	color: rgba(80, 80, 80, 1.0);
	background-color: rgba(250, 250, 250, 1.0);
	line-height: 135%;
}

footer {
	position: absolute;
	bottom: 0;
	
	padding: 0px;
	margin: 0px;
	background-color: rgba(15, 15, 15, 1.0);
	color: rgba(250, 250, 250, 1.0);
	
	width: 100%;
	height: 6vw;

	
	display: flex;
	align-items: center;
	justify-content: space-between;
	
	.section_left {
		width: 50%;
		padding-left: 10%;
	}
	
	.section_right {
		text-align: right;
		width: 50%;
		padding-right: 10%;
		ul {
			list-style: none;
			display: block ruby;
		}
		a {
			color: white;
		}
	}
}

.user_account {
	position: relative;
	float: right;
	
	img {
		position: relative;
		height: 3.5em;
		width: 3.5em;
		top: 1em;
	}
	
	a {
		color: rgba(148, 40, 47, 1.0);
		
		position: relative;
		right: 4.3em;
		top: 2em;
	}
}

.navi {
	font-size: 1.8em;
	width: 100vw;
	padding-left: 15em;
	padding-right: 15em;
	padding-bottom: 2em;
	
	a{
		color: rgba(95, 95, 95, 1.0);
		text-decoration: none;
	}
	
	ul {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		
		list-style: none;
		padding: 0;
	}
}

.active_mode {
	a{
		color: rgba(148, 40, 47, 1.0);
		/*text-decoration: underline;*/
	}
	
}

.button_submit {
	padding: 0.5em;;
	
	background-color: rgba(148, 40, 47, 1.0);
	color: rgba(250, 250, 250, 1.0);
	border: 1px solid rgba(148, 40, 47, 1.0);
	border-radius: 3px 3px 3px 3px;
}

.button_submit:hover {
	background-color: rgba(250, 250, 250, 1.0);
	color: rgba(148, 40, 47, 1.0);
	cursor: pointer;
}

/******Extra Classes*****/
.body_content {
		overflow-y: hidden;
}

.header_container_login {
	text-align: center;
	height: 85%;
	
	padding-bottom: 10em;
	padding-top: 10em;
	padding-left: 35em;
	padding-right: 35em;
	
	form {
		display: flex;
		flex-direction: column;
		justify-content: center;
		
		input {
			margin: 0.25em;
			padding: 0.75em;
			text-align: center;
		}
	}
	
	.button_login {
		background-color: rgba(148, 40, 47, 1.0);
		color: rgba(250, 250, 250, 1.0);
		border: 1px solid rgba(148, 40, 47, 1.0);
		border-radius: 3px 3px 3px 3px;
		
		width: 100%;
		margin: 0.25em;
		padding: 0.75em;
	}
	
	.button_login:hover {
		background-color: rgba(250, 250, 250, 1.0);
		color: rgba(148, 40, 47, 1.0);

		cursor: pointer;
	}
}

.add_contract_container {
	padding-left: 15em;
	padding-right: 15em;
	padding-bottom: 15em;
	
	form {
		hr {
			margin-top: 2em;
			/*color: rgba(148, 40, 47, 1.0);*/
		}
		
		.hr_textarea {
			margin-top: 4em;
		}
		
		.container_file_edit {
			float: right;
			label {
				font-weight: normal; 
			}
		}
	
		label {
			font-weight: bold;
		}
	
		input[type="text"], select {
			width: 11em;
			padding: 0.25em;
			float: right;
			
			background-color: white;
			border: 1px solid rgba(148, 40, 47, 1.0);
			border-radius: 3px 3px 3px 3px;
			color: rgba(95, 95, 95, 1.0);
		}
		
		select:hover {
			background-color: rgba(240, 240, 240, 1,0);
		}
		
		input[type="file"] {
			float: right;
			display: block;
		}
		
		input[type="file"]::file-selector-button {
			border-radius: 3px 3px 3px 3px;
			padding: 0.3vw;
			overflow-wrap: break-word;
		
			background-color: rgba(148, 40, 47, 1.0);
			border: 1px solid rgba(148, 40, 47, 1.0);
			color: rgba(250, 250, 250, 1.0);
		}
		
		input[type="file"]::file-selector-button:hover {
			background-color: rgba(250, 250, 250, 1.0);
			color: rgba(148, 40, 47, 1.0);
			cursor: pointer;
		}
		
		textarea {
			float: right;
			
			background-color: white;
			border: 1px solid rgba(148, 40, 47, 1.0);
			border-radius: 1px 1px 1px 1px;
			color: rgba(95, 95, 95, 1.0);
		}
		
		p {
			width: 50%;
		}
		
		.date_field {
			input {
				width: 3em;
				float: none;
			}
			float: right;
		}
	}
}

.search_bar{
	text-align: center;
	margin-bottom: 2em;
	
	.button_search {
		display: inline-block;
		clear: both;
		border-radius: 20px;
		border: 2px solid rgba(148, 40, 47, 1.0);
		padding: 0.25em;
		padding-left: 0.5em;
		padding-right: 0;
		width: 20em;
	}
	
	input[type="text"] {
		float: left;
		border: 0px;
		width: 90%;
		background-color: transparent;
		outline: 0px;
	}
	
	input[type="submit"] {
		float: right;
		width: 10%;
		background-image: url("../img/search_icon.png");
		background-size: contain;
		background-position: center center;
		background-repeat: no-repeat;
		border: none;
		background-color: rgba(148, 40, 47, 0);
	}
	
	input[type="submit"]:hover {
		cursor: pointer;
	}
}

.filter {
	button {
		background-image: url("../img/filter_icon.png");
		background-repeat: no-repeat;
		background-size: contain;
		background-position: center center;
		background-color: transparent;
		
		border: none;
		width: 3em;
		height: 2em;
		float: right;
		margin-right: 2em;
		
		position: relative;
		bottom: 4rem;
		margin-right: 37.5%;
		cursor: pointer;
	}
	
	.filter_count_dot {
		background-color:  rgba(148, 40, 47, 1.0);
		color:  rgba(250, 250, 250, 1.0);
		text-align: center;
		
		float: right;
		border-radius: 50%;
		position: relative;
		left: 1em;
		bottom: 4.5em;
		width: 1.25em;
		height: 1.25em;
	}
}

.table_container {
	text-align: center;
	padding-right: 5em;
	padding-left: 5em;
	padding-bottom: 15em;
	
	table {
		border-collapse: collapse;
		width: 100%;
	}
	
	th {
		padding: 1em;
		border-bottom: 2px solid rgba(148, 40, 47, 1.0);
		background-color:  rgba(148, 40, 47, 1.0);
		color: rgba(250, 250, 250, 1.0);
		
	}
	
	td {
		padding-left: 1em;
	}
	
	tr:nth-child(odd) {
		background-color: rgba(148, 40, 47, 0.1)
	}
	
	tr:hover {
		background-color: rgba(200, 200, 200, 1.0);;
	}
	
	.column_name {
		width: 25%;
		word-break: keep-all;
		text-align: left;
		padding-left: 5em;
	}
	
	.column_relationship {
		width: 10%
	}
	
	.column_date {
		width: 15%;
	
	}
	
	.column_contract_type {
		width: 20%;
	}
	
	.column_lan {
		width: 10%
	}
	
	.column_actions {
		width: 5%;
	}
	
	td {
		a {
			color: rgba(80, 80, 80, 1.0);
		}
		
		a:hover {
			color:  rgba(148, 40, 47, 1.0);
		}
		
		ul {
			list-style: none;
			padding: 0;
			
			li {
				margin-bottom: 1.25em;;
				
				a {
				border: 1px solid  rgba(148, 40, 47, 1.0);
				border-radius: 3px 3px 3px 3px;
				background-color: rgba(148, 40, 47, 1.0);
				
				text-decoration: none;
				color: rgba(250, 250, 250, 1.0);
				
				padding-left: 1em;
				padding-right: 1em;
				
				padding-top: 0.5em;
				padding-bottom: 0.5em;
				}
			}
			
			
			a:hover {
				background-color: rgba(250, 250, 250, 1.0);
				color: rgba(148, 40, 47, 1.0);
			}
			
			.btn_edit {
				background-image: url("../img/edit_icon_smaller.png");
				background-size: 1.5em;
				background-repeat: no-repeat;
				background-position: center;
			}
			
			.btn_edit:hover {
				background-image: url("../img/edit_icon_red.png");
			}
			
			.btn_archiv {
				background-image: url("../img/archiv_icon_smaller.png");
				background-size: 1.5em;
				background-repeat: no-repeat;
				background-position: center;
			}
			
			.btn_archiv:hover {
				background-image: url("../img/archiv_icon_red.png");
			}
			
			.btn_unarchiv {
				background-image: url("../img/unarchiv_icon.png");
				background-size: 1.5em;
				background-repeat: no-repeat;
				background-position: center;
			}
			
			.btn_unarchiv:hover {
				background-image: url("../img/unarchiv_icon_red.png");
			}
		}
	}
	.triangle_down {
		width: 1em;
	    height: 1em;
	    background-image: url("../img/triangle_down_empty_icon.png");
	    background-repeat: no-repeat;
	    background-size: 1em;
	    display: inline-block;
	    
	    text-decoration: none;
	}
	
	.triangle_down_filled {
		width: 1em;
	    height: 1em;
	    background-image: url("../img/triangle_down_filled_icon.png");
	    background-repeat: no-repeat;
	    background-size: 1em;
	    display: inline-block;
	    
	    text-decoration: none;
	}
	
	.triangle_up {
		width: 1em;
	    height: 1em;
	    background-image: url("../img/triangle_up_empty_icon.png");
	    background-repeat: no-repeat;
	    background-size: 1em;
	    display: inline-block;
	    
	    text-decoration: none;
	}
	
	.triangle_up_filled {
		width: 1em;
	    height: 1em;
	    background-image: url("../img/triangle_up_filled_icon.png");
	    background-repeat: no-repeat;
	    background-size: 1em;
	    display: inline-block;
	    
	    text-decoration: none;
	}
}

.page_flip_container {
	color:  rgba(148, 40, 47, 1.0);
	margin-top: 2.5em;
	margin-bottom: 2.5em;
	
	p {
		float: left;
		text-align: right;
		width: 50%;
	}
	
	ul {
		padding: 0;
		width: 50%;
		float: right;
		text-align: left;
		
		a {
			color:  rgba(148, 40, 47, 1.0);
			padding-left: 0.5em;
			
			text-decoration: none;
		}
	}
	
	.active {
		font-weight: bold;
		text-decoration: underline;
	}
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding-right: 20em;
	/*padding-top: 2vw;*/
	padding-bottom: 15em;
	background: rgba(0, 0, 0, 0.5);
	
	display: flex;
	justify-content: right;
	align-items: center;
	
	z-index: 999;
}

.hidden {
	display: none;
}

.filter-box {
	background: rgba(250, 250, 250, 1.0);
	padding: 2em;
	border-radius: 10px;
	width: 20em;
	
	h2 {
		color: rgba(148, 40, 47, 1.0);
	}
	
	select {
		border: 1px solid rgba(148, 40, 47, 1.0);
		border-radius: 1px;
		color: rgba(95, 95, 95, 1.0);
		
		width: 13em;
		
		background-color: rgba(250, 250, 250, 1.0);
	}
	
	select:hover {
		background-color: rgba(240, 240, 240, 1.0);
	}
	
	input[type="submit"] {
		background-color: rgba(148, 40, 47, 1.0);
		color: rgba(250, 250, 250, 1.0);
		border: 1px solid rgba(148, 40, 47, 1.0);
		border-radius: 3px;
		padding: 0.5em;
		
		cursor: pointer;
	}
	
	input[type="submit"]:hover {
		background-color: rgba(250, 250, 250, 1.0);
		color: rgba(148, 40, 47, 1);
	}
	
}

.notification {
	display: flex;
	justify-content: center;
	align-items: center;
	
	p {
		padding: 3em;
		border: 2px solid rgba(148, 40, 47, 1.0);
		border-radius: 3px 3px 3px 3px;
		background-color: rgba(148, 40, 47, 0.05);
		color: rgba(148, 40, 47, 1.0);
		font-weight: bold;
		
		a {
			color: rgba(148, 40, 47, 1.0);
		}
	}
}

.wrong_user {
	text-align: center;
	color: rgba(148, 40, 47, 1.0);
}

.fill_in {
	background-color: rgba(255, 0, 0, 0.2) !important;
}

.tm_red {
	color: rgba(148, 40, 47, 1.0);
}