/* I always reset all the html elements */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: sans-serif;
	min-height: 100vh;
	color: #555;
	padding-top: 30px;
}

nav {
	padding: 20px;
	margin: 0 -40px;
	background: #dddddd;
}

nav a.active {
	background: red;
}

.page {
	max-width: 90%;
	border: thin solid #e4e4e4;
	padding: 20px 40px;
	border-radius: 5px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
	margin: 25px auto;
}

.page h1 {
	font-size: 32px;
	line-height: 52px;
	color: #555;
	margin-bottom: 5px;
	font-weight: 400;
	display: inline;
}

.page h2 {
	font-size: 24px;
	line-height: 45px;
	color: #555;
	margin-bottom: 5px;
	font-weight: 400;
}

.page h4 {
	margin-bottom: 30px;
	padding-bottom: 10px;
	border-bottom: thin solid #e4e4e4;
	line-height: 26px;
}

.difference,
.difference-expired {
	background: #00ff7c;
	margin-right: 15px;
	padding: 3px 6px;
	border-radius: 5px;
	color: #545454;
	border: 1px solid #f2f2f2;
}

.difference-expired {
	background: #ffbc96;
}


form h4 span {
	color: #af0c0c;
	font-weight: normal;
}

form>div {
	margin-bottom: 20px;
}

form .grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 50px;
}

form label {
	display: block;
	margin-bottom: 10px;
	padding-left: 5px;
}

form input {
	display: block;
	width: 100%;
	padding: 10px;
	margin-bottom: 10px;
	font-size: 16px;
	border: 1px solid #e4e4e4;
	margin-bottom: 30px;
	border-radius: 5px;
	font-family: inherit;
	min-width: 50px
}

form input[type="checkbox"] {
	min-width: auto;
	width: auto;
	display: inline;
}

form input:focus {
	outline: none;
	border-color: #009879;
	background-color: #edf8f5
}

form button {
	background: #32749a;
	color: white;
	border: none;
	padding: 10px 30px;
	font-size: 16px;
	cursor: pointer;
	border-radius: 5px;
	margin-bottom: 10px;
}

form button:active {
	background-color: green;
}

form p {
	margin-top: 15px;
}

form p a {
	display: inline-block;
	/*margin-left: 10px;*/
	color: #006dbc;
	text-decoration: none;
}

form p a:hover {
	text-decoration: underline;
}

.page a {
	display: inline-block;
	color: #006dbc;

}

a.confirm-deletion {
	text-decoration: none;
	color: red;
	margin-left: 10px;
}

.success,
.error {
	margin: 30px 0;
	line-height: 26px;
	padding: 10px
}

.error {
	color: #af0c0c;
	background: #fcecd6
}

.success {
	color: #0caf48;
	background: #d1ffd9
}

table {
	border-collapse: collapse;
	margin: 25px 0;
	font-size: 0.9em;
	font-family: sans-serif;
	min-width: 600px;
	width: 100%;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

table tr {
	background-color: #009879;
	color: #ffffff;
	text-align: left;
}

table td {
	background-color: #fff;
	color: #000;
	text-align: left;
}

table th,
table td {
	padding: 12px 15px;
}

table tr {
	border-bottom: 1px solid #dddddd;
}

table tr:nth-of-type(even) {
	background-color: #f3f3f3;
}

table tr:last-of-type {
	border-bottom: 2px solid #009879;
}

table tr:hover td {
	background: #eaeaea
}

table tr.difference-expired-bg td {
	background: #e9bfbf;

}

.scroll-table {
	overflow-x: auto;
	padding: 1px;
}

@media only screen and (max-width: 28em) {
	.page {
		width: 100%;
		max-width: 100%;
		box-shadow: none;
		margin: 0 auto;
		border: none;
		padding: 0 15px 50px 15px;
	}

	nav {
		margin: 0 -15px;
	}
}