
/*------------layout------------*/
*{
	font-family: sans-serif;
	padding: 0px;
	box-sizing: border-box;
}

body{
	width: 100%;
	margin: 0px auto;
	background-size: cover;
	-webkit-user-select: none;
	background-color: #3c6291;
	transition: background 5s ease;
	background: #283c6f;
}

body:before{
	content: "";
	position: fixed;
	top: 0px; left: 0px; right: 0px; bottom: 0px;
	opacity: 0.25;
	z-index: -2;
}

body > *{
	position: relative;
	z-index: 1;
}

table{
	font-size: 12px;
	width: 100%;
	margin: 10px auto;
	border-collapse: collapse;
}	

th{
	background-size: cover;
	background-position: center;
}

th, td{
	vertical-align: top;
	text-align: left;
}

pre{
	display: inline-block;
	width: 100%;
	white-space: pre-wrap; 
	margin: 0px;
	margin-top: 8pt;
}

a{
	font-weight: bold;
}

#new_job[active="false"]{
	display: none;
}

h1{
	font-weight: 900;
}

h3{
	border: 2px solid yellow;
	background: rgba(255,255,0,0.1);
	color: yellow;
	padding: 20px;
}

hr{
	border: 1px solid rgba(255,255,255,0.5);
}

form[loading="true"]{
	pointer-events: none;
	opacity: 0.3;
}

form[loading="true"] [type="submit"]{
	display: none;
}

section{
	position: relative;
}

body > aside,
section aside{
	padding: 20px;
}

section aside,
section iframe{
	display: block;
	margin: 0px auto;
	width: 100%; height: 100%;
	min-height: 100vh;
	border: none;
	outline: none;
	overflow-x: hidden;
}

section iframe{
	z-index: 1;
}

.main_layout{
	display: block;
	margin: 0px auto;
}

.main_layout > section{
	display: none;
}

.main_layout > section:first-child{
    
}

.main_layout > section:first-child > aside{
    direction: rtl; 
    overflow-y:scroll;
}

.main_layout > section:first-child > aside > div{
	direction: ltr;
	overflow: visible;
}

.main_layout > section[active="true"]{
	display: block
}

.main_layout > section > aside{
	max-height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
}


.mobile_navigation{
	position: fixed;
	bottom: 0px; left: 0px; right: 0px;
	padding: 0px;
	padding-bottom: env(safe-area-inset-bottom);
	line-height: 50px;
	background: #335577;
	overflow: visible;
	
	vertical-algin: middle;
	text-align: center;
	z-index: 100;
}

.mobile_navigation > div{
	padding: 4px 0px;
	box-shadow: 0px 0px 5px rgba(0,0,0,0.4);
}

.mobile_navigation > div > i{
	min-width: 45px;
	line-height: 45px;
	font-size: 21px;
	border-radius: 3pt;
	transition: all 160ms ease;
	vertical-algin: middle;
}

/*mobile only*/
@media screen and (max-width: 1100px) {
	.only_desktop{ display: none ! important; }
	
	#discord_iframe{
		padding: 0px 0px 55px 0px;
	}
}

/*desktop*/
@media screen and (min-width: 1100px) {
	
	.mobile_navigation{
		display: table;
		max-width: 160px;
		margin: 0px auto;
		line-height: 40px;
		border-radius: 3pt 3pt 0px 0px;
		border-spacing: 4pt;
		background: white;
		box-shadow: 0px 0px 5px rgba(0,0,0,0.4);
	}
	
	.mobile_navigation > div{
		padding: 0px;
		box-shadow: none;
	}
	
	.mobile_navigation > div > i[slide="false"]{
		opacity: 0.5;	
	}
		
	.mobile_navigation > div > i{
		display: table-cell;
		min-width: 40px;
		line-height: 40px;
		font-size: 16pt;
		border-radius: 3pt;
		transition: all 160ms ease;
		cursor: pointer;
	}

		
	#discord_iframe{
		padding: 60px 20px 70px 20px;
	}

	.only_mobile{ display: none ! important; }

	.main_layout{
		display: table;
		table-layout: fixed;
		width: 100%;
		background: linear-gradient(35deg, rgba(200,200,200,0.3), rgba(255,255,255,0.5));
		opacity: 1;
		transition: all 280ms ease;
	}
	
	.main_layout:focus-within,
	.main_layout:hover{
		
	}
	
	.main_layout > section{
		vertical-align: top;
		padding: 0px;
	}
	
	.main_layout > section.display_right,
	.main_layout > section.display_center{
		z-index: 10;
	}

	.main_layout > section.display_center[active="true"]{
		display: table-cell;
	}

	
	.main_layout > section.display_left,
	.main_layout > section.display_right{
		display: table-cell;
		width: 360px;
		max-width: 25vw;
	}
	
	.main_layout > section.display_left[slide="false"],
	.main_layout > section.display_right[slide="false"],
	.main_layout > section.display_center{
		display: none;
	}
}
/*------------toolbar------------*/
.main_toolbar{
	width: 100%;
	position: fixed;
    top: 0px; left: 0px; right: 0px;
    z-index: 10;
	background: #283c6f;
	padding-top: env(safe-area-inset-top);
	box-shadow: 0px 0px 5px rgba(0,0,0,0.4);
	text-align: center;
}

.main_toolbar.left{text-align: left;}
.main_toolbar.right{text-align: right;}

.main_toolbar + aside{
	box-sizing: border-box;
	margin-top: 50px ! important;
	min-height: calc(100vh - 50px) ! important;
	max-height: calc(100vh - 50px) ! important;
	padding-bottom: 70px;
	min-width: 100%;
	overflow-y: auto;
}


.main_toolbar > div{
	display: block;
	box-sizing: border-box;
    height: 50px;
    max-height: 50px;
	line-height: 30px;
	padding: 10px;
	background: white;
	font-size: 0px;
}

.main_toolbar > div > a,
.main_toolbar > div > button,
.main_toolbar > div > div{
	box-sizing: border-box;
	display: inline-block;
	line-height: 30px;
	min-width: 30px;
	text-align: center;
	vertical-align: top;
	padding: 0px 6px; margin: 0px;
	margin-right: 3px;
	border: none;
	outline: none;
	cursor: pointer;
	border-radius: 3pt;
	font-size: 11pt;
}

.main_toolbar > div > * > i{
	font-size: 11pt;
}

.main_toolbar > div > a:hover,
.main_toolbar > div > button:hover,
.main_toolbar > div > div:hover{
	background: #DDD;
}

.main_toolbar > div > .red{background: linear-gradient(120deg,#864444 , #562c2c); color: white;}
.main_toolbar > div > .green{background: linear-gradient(120deg,#438745 , #2c562d); color: white;}

.main_toolbar > div > span{
	display: inline-block;
	padding: 0px;
	margin: 0px 4px;
	width: 1px;
	height: 30px;
	background: #CCC;
}

.toolbar{
	display: block;
	text-align: center;
	line-height: 40px;
}

.toolbar > *{
	position: relative;
	display: inline-block;
	height: 40px;
	min-width: 40px;
	line-height: 40px;
	text-align: center;
	padding: 0px 10px;
	cursor: pointer;
	font-size: 10pt;
	font-weight: 600;
	color: #0059aa;
}

.toolbar > * > i{
	display: block;
	min-width: 40px;
	text-align: center;
	line-height: 40px;
	font-size: 14pt;
}

.toolbar > *:hover{
	background: rgba(100,100,100,0.1);
}
/*------------theme------------*/
/*scrollbar*/
/* width */
::-webkit-scrollbar {
	width: 14px;
}

/* Track */
::-webkit-scrollbar-track {
	background: rgba(255,255,255,0);
}

::-webkit-scrollbar-track:hover{
	background: rgba(255,255,255,0.2);
}

/* Handle */
::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.5);
	box-sizing: border-box;
	transition: background 220ms ease;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
	background: rgba(255,255,255,0.9);
}

.debug{
	text-align: left;
	font-family: monospace;
	background: #333;
	color: white;
	max-height: 240px;
	overflow-y: scroll;
	padding: 5px;
	display: none;
}

body[debug="true"] .debug{
	display: block;
}

.navigation{
	z-index: 100;
	position: fixed;
	top: 0px; left: 0px; right: 0px;
	padding: 10px 10px;
	text-align: center;
	background: linear-gradient(35deg, rgba(200,200,200,0.3), rgba(255,255,255,0.5));
	transition: all 180ms ease;
}

.nav_item{
	display: inline-block;
	line-height: 40px;
	padding: 0px 10px;
}

.main_background{
	position: fixed;
	top: 0px; left: 0px; right: 0px; bottom: 0px;
	overflow: hidden;
	transition: none;
	filter: blur(2px);
}

.main_background:after{
	content: " ";
	position: absolute;
	top: -50vw;	bottom: -50vw; 
	left: -50vh; right: -50vh; 
	background: radial-gradient(100% 50% at center, transparent, rgb(69,69,69) 40%);
	opacity: 0.5;
	transition: all 1.2s ease;
}

.main_background > img{
	position: absolute;
	left: -7vw; top: -7vh;
	width: 114vw; height: 114vh;
	opacity: 0.6;
	margin: 0px auto;
	transition: all 1.2s ease;
	object-fit: cover;
}

.mobile_navigation > div{
	background: white;
}

.mobile_navigation > div > i{
	color: #283c6f;
}

.mobile_navigation > div > i:hover{
	background: #DDD;
}

.mobile_navigation > div > i[active="true"]{
	background: #0059aa;
	color: white;
}

/*screensaver view*/
body[active="false"] .main_background{
	filter: blur(0px);
}

body[active="false"] .main_background:after{
	opacity: 0;
}

body[active="false"] .navigation{opacity: 0.5; background: transparent;}
body[active="false"] .main_layout{display: none;}

body[active="false"] .main_background > img{
	display: block;
	opacity: 1; 
	width: 100vw; height: 100vh;
	left: 0vw; top: 0vh;
}
	

/*------------inputs------------*/

.input_container{
	margin: 16px;
}

.input_wrapper{
	width: 100%;
	box-sizing: border-box;
	line-height: initial;
	position: relative;
	background: rgba(255,255,255,0.5);
	margin: 5px 0px 28px 0px;
	padding-top: 16px;
	border-radius: 2pt 2pt 0pt 0pt;
	cursor: text;
}


span.input_wrapper,
.input_wrapper.inline{
	max-width: 240px;
	margin: 0px 12px 0px 0px;
	display: inline-block;
}

.input_wrapper > input, 
.input_wrapper > textarea, 
.input_wrapper > select{
	box-sizing: border-box;
	font-family: 'Roboto', sans-serif;
	position: relative;
	background: none;
	padding: 8px;
	color: black;
	border: none;
	outline: none;
	transition: all 200ms;	
	width: 100%;
	font-size: 13px;
	resize: none;
	border-radius: 0px;
	font-weight: 500;
}

.input_wrapper > select{
	width: calc(100% - 8px);
}	

.input_wrapper > select > option{
	padding: 8px;
}

option[active="false"]{
	display: none;
}

/*putting a span creates a sub input box useful for radios and ticks*/
.input_wrapper > span{
	display: block;
	line-height: 16px;
	font-size: 14px;
	border: none;
	padding: 6px;
	text-align: left;
}

.input_wrapper > span.label{
	font-size: 11px;
	color: #265cff;	
	
}

.input_wrapper > span.help{
	font-size: 11px;
	color: #AAA;
	
}

.input_wrapper > span > label{
	display: block;
	line-height: 24pt;
	vertical-align: middle;
}

.input_wrapper > span [type="radio"], 
.input_wrapper > span [type="checkbox"]{
	display: inline-block;
	width: auto;
	margin: 4px 8px 4px 4px;
	transform: scale(1.3);
	outline: none;
	height: 20px;
	cursor: pointer;
	vertical-align: middle;
}

	.input_toggle_section{
		position: relative;
		top: -10px;
		height: 0px;
		overflow: hidden;
		padding: 0px;
		margin: 0px;
		transition: all 230ms;
		opacity: 0;
	}

	.input_toggle_section.active{
		height: auto;
		top: 0px;
		overflow: visible;
		margin: 12px 0px;
		opacity: 1;
	}
	.input_toggle_section.active:empty{margin: 0px;}

.input_wrapper > span > .file_upload ~ label{
	display: inline-block;
	line-height: 20px;
	height: 20px;
	margin: 0px 8px;
	vertical-align: middle;
	color: #555;
}

.input_wrapper:not([type="box"]) > label{
	pointer-events: none;
	top: 18px;
	left: 8px;
	display: block;
	position: absolute;
	line-height: 100%;
	font-size: 14px;
	color: #888;
	transition: all 200ms;
	z-index: 1;
}

.input_wrapper[required] > label:after{
	content: attr(label) " *";
}

/*has to be doubled up because focus-within prevents entire rule to be read on ie*/
.input_wrapper.active > label, 
.input_wrapper.forced_active > label, 
.input_wrapper.focus > label, 
.input_wrapper[error] > label, 
.input_wrapper > span ~ label,
.input_wrapper > input[type="date"] ~ label{
	top: 6px ! important;
	font-size: 11px ! important;
}
.input_wrapper:focus-within > label, 
.input_options_menu ~ label{
	top: 6px ! important;
	font-size: 11px ! important;
	color: #265cff ! important;
	}

.input_wrapper[icon]::before, 
.input_wrapper[option]::before{
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	right: 8px; top: 8px; bottom: 8px;
	width: 33px;
	color: #555;
	line-height: 33px;
	text-align: center;
	font-size: 20px;
	cursor: pointer;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
}

.input_wrapper[option]::before{
	font-family: "Font Awesome 5 Free"; 
	content: "\f078";
}

.input_wrapper.load[option]::before{
	font-family: "Font Awesome 5 Free"; 
	content: "\f073";
}

.input_wrapper:after{
	content: " ";
	box-sizing: border-box;
	font-size: 10px;
	position: absolute;
	top: calc(100% - 2px); /*54px*/
	left: 0px;
	width: 0px;
	overflow: visible;
	height: 2px;
	white-space: nowrap;
	transition: all 220ms ease;
	padding-left: 8px;
	line-height: 25px;
	background: transparent;
}

.input_wrapper[help]:after{
	color: #666;
	content: attr(help);
}

.input_wrapper[error]:after{
	color: red;
	background: red ! important;
	content: attr(error);
	width: 100%;
}

/*
.input_wrapper.active:after, 
.input_wrapper.focus:after, 
.input_wrapper.forced_active:after{
	width: 100%;
	background: #AAA;
}
*/

.
.input_wrapper:focus-within:after{
	width: 100%;
	background: #265cff;
}

/*buttons*/
.button{
	display: inline-block;
	width: auto;
	outline: none;
	border: none;
	transition: all 220ms ease-out 40ms;
	background: linear-gradient(120deg,#456d85 , #2c5456);
	line-height: 40px;
	padding: 0px 12px;
	letter-spacing: 1px;
	/*text-transform: uppercase;*/
	font-family: 'Roboto', sans-serif;
	font-weight: bold;
	box-shadow: 0px 1px 3px rgba(0,0,0,0.3),0px 1px 8px rgba(0,0,0,0.12);
	color: #FFFFFF;
	cursor: pointer;
	user-select: none;
	text-decoration: none;
	font-size: 12pt;
}

.button.wide{
	width: 100%;
}

.button > *{
	color: inherit;
}

.button.red{background: linear-gradient(120deg,#864444 , #562c2c);}
.button.green{background: linear-gradient(120deg,#438745 , #2c562d);}

.button:hover{
	box-shadow: 0px 3px 3px rgba(0,0,0,0.3),0px 3px 22px rgba(0,0,0,0.12);
}

.button:active{
	transition: all 100ms;
	box-shadow: none;
	opacity: 0.8;
}

@-webkit-keyframes autofill {
	to {
		background: transparent;
	}
}

.input_wrapper > :-webkit-autofill,
.input_wrapper > :-webkit-autofill:hover, 
.input_wrapper > :-webkit-autofill:focus{
	/*no style for autofill please*/
	-webkit-animation-name: autofill;
	-webkit-animation-fill-mode: both;
}


.input_wrapper > input ~ button{
	position: absolute;
	bottom: 2px; right: 2px;
	line-height: 24px;
	padding: 0px 4px;
	font-size: 14px;
	z-index: 1;
}

@media screen and (min-width: 900px) {
	.input_row{
		display: table;
		table-layout: fixed;
		width: 100%;
		
	}

	.input_row > .input_wrapper{
		display: table-cell;
		width: auto;
		box-sizing: content-box;
		border-left: 6pt solid white;
		border-right: 6pt solid white;
	}
	.input_row > .input_wrapper:first-child{border-left: none;}
	.input_row > .input_wrapper:last-child{border-right: none;}
}
/*------------ezmodals------------*/
.modal_container{
	position: fixed;
	top: 0px; left: 0px; right: 0px; bottom: 0px;
	width: 100vw; max-width: 100%;
	height: 100vh; max-height: 100%;
	background: rgba(0,0,0,0.7);
	z-index: 20;
	text-align: center;
}

.modal{
	display: inline-block;
	margin: 20px auto;
	box-sizing: border-box;
	width: 420px;
	max-width: 95vw;
	background: #dde1e8;
	padding: 8pt;
}

.modal > .button_wrapper > *{
	margin-right: 6pt;
}
/*------------timesheet------------*/
*{
	font-family: sans-serif;
	box-sizing: border-box;
}

.timesheet_day_wrapper{
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0px 20px;
	overflow: visible;
}

.timesheet_wrapper{
	margin-top: 20px;
	text-align: center;
}

.timesheet_divide{
	display: inline-block;
	padding: 16px 20px;
	position: relative;
	font-weight: 600;
	text-align: center;
	background: none;
	color: white;
	text-shadow: 0px 2px 5px rgba(0,0,0,0.2);
	z-index: 5;
	margin: 20px auto;
}

.timesheet_event{
	position: relative;
	text-align: center;
	cursor: pointer;
	border-radius: 3pt;
	transition: filter 320ms ease;
}


.timesheet_event:after{
	content: " ";
	display: table;
	clear: left;
}

.timesheet_event:hover{
	z-index: 10;
	overflow: visible;
}

.timesheet_event:hover > div{
	overflow: visible;
}

.timesheet_event:hover .html_content{
	opacity: 1;
}

.timesheet_event > div:first-child{
	position: absolute;
	top: 0px; right: 0px; bottom: 0px;
	min-height: 30px;
	display: inline-block; 
	width: 100%;
	float: right;
	text-align: left;
	font-size: 12px;
	line-height: 14px;
	z-index: 1;
}

.timesheet_event > div > span{
	display: table;
	width: 100%;
	background: white;
	border-radius: 3pt;
	padding: 0px 4px;
	line-height: 20px;
	vertical-align: middle;
}

.timesheet_event > div > span > *{
	display: table-cell;
	line-height: 20px;
}

.timesheet_event > div > span > b:first-child{
	width: 100%;
}

.timesheet_event > div > span > .diff{
	text-align: right;	
}

.timesheet_event > div > .html_content{
	display: block;
	background: white;
	margin-top: 6px;
	margin-left: 6px;
	padding: 6px;
	border-radius: 3pt;
	text-align: center;
	box-shadow: 0px 8px 9px rgba(70,70,70,0.45), 0px 0px 15px rgba(70,70,70,0.6);
}

.timesheet_event > div > .html_content:empty{
	display: none;
}

.timesheet_event > div > .html_content > span{
	display: block;
	font-size: 7pt;
	font-weight: 700;
	opacity: 0.7;
}


.timesheet_event > div > .html_content{
	opacity: 0;
	transition: opacity 120ms ease;
}



/*timeline*/
.timeline_event{
	display: inline-block;
	position: relative;
	box-sizing: content-box;
	width: 40px;
	overflow: hidden;
	background-image: 
		linear-gradient(90deg, rgba(0,0,0,0.1), transparent, rgba(255,255,255,0.3), rgba(255,255,255,0.2), rgba(255,255,255,0.3), transparent, rgba(0,0,0,0.2)),
		repeating-linear-gradient(to top, transparent, transparent 59px, white 59px, white 60px);
	box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
	border-left: 2px solid white;
	border-right: 2px solid white;
	border-bottom: 2px solid white;
	min-height: 16px;
	height: 100vh;
}


.timesheet_day_wrapper > .timesheet_event:first-child > .timeline_event{
	border-top: 2px solid white;
	border-radius: 3pt 0px 0px 0px ;
}

.timesheet_day_wrapper > .timesheet_event:last-child > .timeline_event{
	border-radius: 0px 0px 0px 3pt;
}


.timesheet_day_wrapper > .timesheet_event:first-child:last-child > .timeline_event{
	border-radius: 3pt 0px 0px 3pt;
}



.timeline_event:after,
.timeline_event:before{
	content: "";
	position: absolute;
	top: 0px; bottom: 0px;
}

.timeline_event:after{
	left: 7px; right: 7px;
	background-image: repeating-linear-gradient(to top, transparent, transparent 14px, rgba(255,255,255,0.8) 14px, rgba(255,255,255,0.8) 15px);
}

.timeline_event:before{
	left: 15px; right: 15px;
	background-image: repeating-linear-gradient(to top, transparent, transparent 4px, rgba(255,255,255,0.8) 4px, rgba(255,255,255,0.8) 5px);
}


.timesheet_wrapper[show_labels="false"] .timesheet_event > div:first-child{
	display: none;
}


.timesheet_wrapper[show_labels="false"] .timesheet_event:first-child > .timeline_event{
	border-top: 2px solid white;
	border-radius: 3pt 3pt 0px 0px;
}

.timer{
	background: #777;
	color: white;
	padding: 0px 3px;
	border-radius: 2pt;
}
