*
{
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}


html
{
	height: 100%;
}


body
{
	background-color: #e7eeed;
	font-family: arial;
	line-height: 1.5;
	height: 100vh;
	overflow-y: hidden;
	text-rendering: geometricPrecision;
}

body
	, button
	, input
	, textarea
	, select
{
	font-size: 1rem;
}

/* Misc element defaults */
a
{
	text-decoration: none;
	color: black;
}
a:hover
	, a span:hover
{
	text-decoration: underline;
}

a:hover
{
	color: #777474;
	border-color: #777474;
}


a.selected
{
	color: #777575;
	border-bottom: 2px solid #777575;
}

h1
	, h2
	, h3
	, h4
{
	font-weight: 500;
	_margin-bottom: 1.5rem;
}

hr
{
	margin-top: 1rem;
	margin-bottom: 1rem;
	border-width: 1px;
	border-style: dotted;
}

ul
{
	list-style-type: none;
}


table
{
	width: 100%;
	text-align: left;
}

table img
	, img.icon
{
    width: 25px;
    height: auto;
	vertical-align: middle;
}


@media (max-width: 640px)
{
	table
	{
		margin: auto;
		border-collapse: collapse;
		overflow-x: auto;
		display: block;
		width: fit-content;
		max-width: 100%;
	}
}

/* Entire body */
body div.body
{
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
}

/* Main content for pages with sidebar */
main.main
{
	flex-basis: 83.33333%;
	overflow-y: scroll;
	height: 100vh;
}

header
{
	background-color: #36827f;
	color: white;
	min-height: 8rem;
	background-image: url("image/header_background.png");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	align-items: flex-start;
	padding-left: 1rem;
}

@media only screen and (max-width: 768px)
{
	main.main
	{
		flex: 100%;
		max-width: 100%;
	}
	header
	{
		min-height: auto;
	}
}

/* Sidebar */
aside.sidebar
{
	background-color: #0c4c4a;
	position: sticky;
	flex-basis: 16.66667%;
	max-width: 16.66667%;
}

aside.sidebar nav
{
	height: 100%;
	min-height: 100vh;
	text-align: center;
}

aside.sidebar nav a
{
	color: #fff;
}

.sidebar nav div.logo a
{
  border-bottom: 0;
}

.sidebar nav div.logo img
{
	width: 70%;
	padding-top: 3rem;
}
@media (max-width: 768px)
{
	.sidebar nav div.logo img
	{
		width: auto;
		height: 50px;
		padding: 0;
	}
}

.sidebar nav div.menu
{
	margin-top: 6rem;
	line-height: 2.7;
	_border-top: 2px solid #e01d73;
	text-align: left;
	overflow-y: scroll;
}

.sidebar ul
{
	padding-top: 1rem;
}
.sidebar ul ul
{
	padding: 0;
	padding-left: 1rem;
	margin: 0;
}
.sidebar div > ul > li
{
	padding: 0.5rem 0rem;
	border-bottom: 1px solid #36827f;
	padding-left: 20px;
	width: 100%;
}

.sidebar ul li:hover
{
	background-color: #36827f;
	transition: all .5s;
}

.sidebar ul li a
{
    border-bottom: 2px solid transparent;
	text-align: left;
}

.sidebar ul li.selected
{
    color: #ffffff;
	background-color: #36827f;
    _border-bottom: 2px solid #ffffff;
}

.sidebar ul li a img
{
	width: 23px;
	height: 23px;
	mask-repeat: no-repeat;
	background: white;
	vertical-align: middle;
	margin-bottom: 3px;
}

#sidebar_menubutton
{
	display: none;
	cursor: pointer;
	color: white;
	position: absolute;
	right: 5px;
	font-size: 30px;
	top: 15px;
	border-bottom: 0;
}

#sidebar_menubutton:hover + #sidebar_menu, #sidebar_menu:hover
{
    display: block
}

@media (max-width: 768px)
{
	aside.sidebar
	{
		flex-basis: 100%;
		max-width: 100%;
		min-width: auto;
		z-index: 200000;
		_padding: 10px;
		position: relative;
	}
	aside.sidebar nav
	{
		padding: 0;
		width: 100%;
		min-height: 100%;
	}

	#sidebar_menubutton
	{
		display: block;
	}

	.sidebar nav div.menu
	{
    	background-color: #eaeaea;
    	padding: 1rem 2rem;
    	font-size: 1.125rem;
		display: none;
		width: 100%;
		margin-top: 0;
	}
	.sidebar ul li a img
	{
		background: black;
	}

	.sidebar nav div.menu a
	{
		color: #000;
	}
	
	.sidebar ul li
	{
		padding: 0.5rem 1rem 0rem 1rem;
	}
	.sidebar ul li a.selected
	{
    	color: #000000;
    	border-bottom: 2px solid #000000;
	}
}



/* Submenu */
div.submenu
{
    padding: 2rem;
    background-color: white;
	margin-bottom: 2rem;
	margin-right: 1rem;
}

div.submenu .selected
{
  font-weight: bold;
}

div.submenu ul
{
  list-style-type: none;
}

div.submenu ul li
{
  margin-bottom: 1rem;
}

div.submenu ul li:last-child
{
  margin-bottom: 0;
}


div.page1
	, div.page2
{
	padding: 1rem;
	width: 100%;
}

div.page2 > div:last-child
{
	display: flex;
}

div.page2 > div:last-child > div
{
	display: block;
}

/* main content */
div.page2 > div:last-child > div:nth-child(2)
{
	width: 100%;
}

/* Submenu */
div.page2 > div:last-child > div:nth-child(1)
{
	min-width: fit-content;
}

@media (max-width: 640px)
{
	nav.submenu ul li
	{
	    margin-bottom: 1rem;
	    display: inline-block;
	    margin-right: 1rem;
	}

	div.page1
	, div.page2
	{
		padding: 0;
	}
	div.submenu
	{
		margin-right: 0;
	}
	

	div.page2 > div:last-child
	{
		flex-direction: column;
	}
}


/* Popup menus */
span.popupmenu
{
	position: relative;
}
span.popupmenu:hover > button
{
	cursor: auto;
}
span.popupmenu:hover > div
{
	display: block;
}

span.popupmenu div
{
	display: none;
	position: absolute;
	z-index: 10000;
	background-color: #fff;
	box-shadow: 0px 0px 20px 20px rgba(8, 8, 8, 0.07);
	min-width: 150px;
	text-align: left;
}

/* Error page */
div.error
{
	max-width: 500px;
	background-color: #ffff;
	padding: 2rem;
	border-radius: 3px;
	text-align: center;
	font-size: 1.125rem;
}

div.error div
{
	margin-bottom: 1.5rem;
}

div.error div img
{
	width: 25%;
}

.section-title
	, div.title
{
	margin-bottom: 2rem;
}

.section
	, section
{
    padding-bottom: 2rem;
}

@media (max-width: 640px)
{
	.section
	{
		padding: 1rem 0rem;
	}
}

.form-group
{
	display: flex;
	justify-content: start;
	align-items: center;
	padding: 0.5rem 0rem;
}


/* Inputs */
label
{
	cursor: pointer;
	margin-right: 1rem;
	font-weight: 500;
}

input
{
	vertical-align: middle;
}

input[type="text"]
	, input[type="password"]
	, input[type="email"]
	, input[type="tel"]
	, input[type="number"]
	, select
{
	border: 2px solid #000;
	padding: 1rem 0.7rem;
	border-radius: 3px;
	width: 100%;
	color: black;
	background-color: white;
}

textarea
{
	width: 100%;
	min-height: 75px;
	border: 2px solid black;
	border-radius: 3px;
	padding: 1rem 0.7rem;
	resize: none;
}

input[type="range"]
{
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: #454545;
  border-radius: 3px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb
{
  -webkit-appearance: none;
  background-color: #ffb7d7;
  border: 2px solid black;
  width: 20px;
  height: 20px;
  border-radius: 100%;
}


input[type="range"]::-moz-range-thumb
{
  -webkit-appearance: none;
  background-color: #ffb7d7;
  border: 2px solid black;
  width: 20px;
  height: 20px;
  border-radius: 100%;
}

input[type="range"]:focus
{
  outline: none;
}

input[type="range"]::-ms-track
{
	width: 100%;
	cursor: pointer;
	background: transparent;
	border-color: transparent;
	color: transparent;
}

/* Buttons */
button
	, .button
	, input[type="submit"]
{
	padding: 0.9rem;
	margin: 0.1rem;
	border-radius: 3px;
	min-width: 180px;
	cursor: pointer;
	background-color: #0c4c4a;
	color: white;
	border: 0px;
	height: 56px;
}

a.button
{
	display: block;
}

button img
	, .button img
	, input[type="submit"] img
{
    height: 100%;
	vertical-align: middle;
}

button:hover
	, button.secondary:hover
	, .button:hover
	, input[type="submit"]:hover
{
	background-color: #36827f;
	border-color: #000;
	color: #fff;
	transition: all .5s;
}

button:disabled
	, .button:disabled
	, input[type="submit"]:disabled
{
	background-color: #ffffff;
	color: #7d7d7d;
	border-color: #aeaeae;
	cursor: not-allowed;
}

button.secondary
{
	background-color: #555252;
	border: 1px solid #000;
}

/* Tooltip */
span.tooltip
{
    position: relative;
    border: 1px solid black;
    color: #000000;
    width: 25px;
    min-width: 25px;
    min-height: 25px;
    background-color: #f7f7f7;
    font-size: 14px;
    margin-right: 1rem;
    border-radius: 100%;
    height: 25px;
    text-align: center;
    cursor: pointer;
	display: inline-block;
	vertical-align: middle;
}

span.tooltip:hover > div
{
    display: block;
	white-space: initial;
}

span.tooltip div
{
	display: none;
	position: absolute;
	top: -15px;
	left: 39px;
	background-color: #000;
	padding: 1rem;
	border-radius: 3px;
	color: #fff;
	max-width: 200px;
	min-width: 200px;
	z-index: 10000;
}

@media (max-width: 640px)
{
	span.tooltip div
	{
    	top: 47px;
    	left: -156px;
	}
}

.input-group
{
  margin-bottom: 1rem;
  width: 100%;
}

.input-group label
{
  margin-bottom: 0.1rem;
  display: inline-block;
}


/* Table1 */
table.table1
{
	border-collapse: collapse;
	margin-bottom: 2rem;
	border: 1px solid #d5d5d5;
	padding: 1rem;
	border-radius: 3px;
	background-color: #f7f7f7;
	margin-top: 0.8rem;
}
@media (max-width: 640px)
{
	table.table1
	{
		padding: 0;
	}
}
table.table1 thead tr:first-child th
{
	padding-top: 15px;
	color: white;
	background: black;
	
}
table.table1 tr:last-child td
{
	padding-bottom: 15px;
}
table.table1 tr th:first-child
	, table.table1 tr td:first-child
{
	padding-left: 15px;
}
table.table1 tr th:last-child
	, table.table1 tr td:last-child
{
	padding-right: 15px;
}

table.table1 th
	, table.table1 td
{
	padding: 5px;
}

table.table1 tbody tr:nth-of-type(2n+1)
{
	background-color: #f4f4f4;
}
table.table1 tbody tr:nth-of-type(2n)
{
	background-color: white;
}

table.table1 tbody tr:hover
{
	background-color: #cdddd8;
}


/* Message boxes */
div.message
{
    border-radius: 3px;
    background-color: #efefef;
    padding: 12px;
    text-align: center;
    margin-bottom: 20px;
	display: none;
    color: #000;
}

div.message--success
{
    background-color: #3fd23f;
}

div.message--alert
{
    background-color: #ff5858;
}

input.valid
{
	border-color: #00a700 !important;
}

input.invalid
{
	border-color: #ff5858 !important;
}

p.notice
{
	font-size: 14px;
	background-color: #f9f9f9;
	padding: 1rem;
	border-radius: 3px;
	display: inline-block;
}


