* {
	box-sizing: border-box;
}

.desktop {
	display: none;
}
.mobile {
	display: inline;
}

@media only screen and (min-width: 800px) {
	.desktop {
		display: inline;
	}
	.mobile {
		display: none;
	}
}

html, body, table, select, input, textarea {
	font-family: Arial, sans-serif;
	font-size: 12px;
}
body {
	background: #FFF;
	color: #000;
	margin-bottom: 60px;
}

* a:link, * a:visited {
	color: #00F;
	text-decoration: none;
}
* a:hover {
	color: #C33;
	text-decoration: underline;
}

hr {
	border: 1px dashed #666;
	width: 70%;
}

fieldset {
	background: #FFF;
	border-color: #C0C0C0;
	color: #000;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	min-height: 45px;
	margin: 2px;
	padding: 5px;
	display: inline-block;
}

h1 { font-size: 2em; }
h2 { font-size: 1.8em; }
h3 { font-size: 1.6em; }
h4 { font-size: 1.4em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1em; }

h1, h2, h3, h4, h5, h6,
h1 a:link, h1 a:visited, h2 a:link, h2 a:visited,
h3 a:link, h3 a:visited, h4 a:link, h4 a:visited,
h5 a:link, h5 a:visited, h6 a:link, h6 a:visited {
	font-weight: bold;
	color: #2852A8;
}
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
	color: #6A6;
	text-decoration: underline;
}

div.floatleft, div.inline {
	float: left;
}
div.floatright {
	float: right;
}
div.clearboth {
	clear: both;
}
.bigbutton {
	height: 30px;
}
.break {
	page-break-before: always;
}
.studentlist {
	font-style: italic;
}
.warning {
	color: #F00;
}
.hideonprint {
	display: inline;
}
.printonly {
	display: none;
}

/* Create an <a> tag which looks like a button */
a.buttonlink {
	cursor: pointer;
	background-color: #DDD;
	color: #000;
	display: inline;
	text-align: center;
	padding: 5px;
	margin: 5px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	border: 1px solid #000;
}
a.buttonlink:link {
	color: #000;
	font-weight: bold;
	text-decoration: none;
}
a.buttonlink:visited {
	color: #000;
	font-weight: bold;
	text-decoration: none;
}
a.buttonlink:hover {
	color: #000;
	text-decoration: none;
	background-color: #DEF;
}

/* Top bar in purple for all pages */
div#top {
	font-size: 1.3em;
	font-weight: bold;
	background-color: #C9C;
	color: #FFF;
	padding: 10px;
	zoom: 1;
}
div#top a:link, div#top a:visited {
	color: #FFF;
	text-decoration: none;
}
div#top a:hover {
	color: #BFB;
	text-decoration: none;
}

/* Top selection menu for /timetable/ */
div#header {
	padding: 10px;
}
div#header a:link, div#header a:visited {
	color: #00F;
}
div#header a:hover {
	color: #C33;
}

/* Create an <a> tag which looks like a button */
div#header a.buttonlink {
	color: white !important;
	font-size: 12px !important;
	font-family: Arial !important;
	font-weight: bold !important;
	text-decoration: none !important;
	cursor: pointer;
	border: 0px;
	background: #C9C;
	background: -webkit-gradient(linear, left top, left bottom, from(#B7B), to(#C9C));
	background: -webkit-linear-gradient(top, #B7B, #C9C);
	background: -moz-linear-gradient(top, #B7B, #C9C);
	background: -ms-linear-gradient(top, #B7B, #C9C);
	background: -o-linear-gradient(top, #B7B, #C9C);
	text-align: center;
	padding-top: 3px;
	padding-bottom: 3px;
	padding-left: 10px;
	padding-right: 10px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	-webkit-box-shadow: 1px 1px 1px 1px rgba(130,130,150,0.6);
	-moz-box-shadow: 1px 1px 1px 1px rgba(130,130,150,0.6);
	box-shadow: 1px 1px 1px 1px rgba(130,130,150,0.6);
	text-shadow: 1px 1px 1px rgba(77,77,77,0.7);
	vertical-align: middle;
	display: inline-block;
}
div#header a.buttonlink:link {
	color: white !important;
	font-size: 12px !important;
	font-family: Arial !important;
	font-weight: bold !important;
	text-decoration: none !important;
}
div#header a.buttonlink:visited {
	color: white !important;
	font-size: 12px !important;
	font-family: Arial !important;
	font-weight: bold !important;
	text-decoration: none !important;
}
div#header a.buttonlink:hover {
	color: white !important;
	font-size: 12px !important;
	font-family: Arial !important;
	font-weight: bold !important;
	text-decoration: none !important;
	background: #CFD1D3;
}

/* Main body */
div#main {
	padding: 10px;
}

/* Menu for /detention/index.php */
div#indexmenu li {
	line-height: 200%;
	font-size: 1.1em;
}
div#indexmenu a:link, div#indexmenu a:visited {
	color: #00D;
}
div#indexmenu a:hover {
	color: #3C0;
}
div#indexmenu > ol.ol_main > li {
	font-size: 1.5em;
	font-weight: bold;
	color: #2852A8;
}
div#indexmenu > ol.ol_main > ol > li {
	font-weight: bold;
}

/* Used in /timetable/, similar to h2, h3, ... */
div#title, div.title {
	font-size: 1.3em;
	font-weight: bold;
	padding-bottom: 10px;
	color: #2852A8;
}
div#title a:link, div#title a:visited,
div.title a:link, div.title a:visited {
	font-weight: bold;
	color: #2852A8;
}
div#title a:hover,
div.title a:hover {
	color: #6A6;
	text-decoration: underline;
}

table#timetable {
	width: 99%;
	border: 1px solid #999;
	padding: 0px;
	background-color: #EEF;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
table#timetable td {
	min-width: 5%;
	text-align: center;
	border: 1px solid #999;
	margin: 1px;
	padding: 5px;
	height: 20px;
	background-color: #FFF;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
table#timetable td a {
	color: #000;
	text-decoration: none;
}
table#timetable td a:hover {
	color: #C33;
	text-decoration: underline;
}
table#timetable td.col_light {
	background-color: #FF6;
	height: 50px;
}
table#timetable td.col_time {
	text-align: right;
	border-top: 1px dotted #666;
	border-bottom: 1px dotted #666;
	border-left: 0px;
	border-right: 0px;
	background-color: #EEF;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
}
table#timetable td.col_time_lesson {
	height: 50px;
}
table#timetable td.recess_time {
	background-color: #FFE;
	text-align: center;
}
table#timetable td.recess_duty {
	background-color: #DFD;
	text-align: center;
}
table#timetable td.col_plan {
	background-color: #CFF;
}
table#timetable td.col_duty {
	background-color: #DFD;
}
table#timetable td.col_pri {
	background-color: #FDD;
	font-style: italic;
}
table#timetable td.col_prisec {
	background-color: #BBF;
	font-style: italic;
}
table#timetable td.col_tsa {
	background-color: #DDF;
}
table#timetable td.col_wk2 {
	background-color: #FDC;
}

table.bigtable, table#bigtable {
	border: 1px solid #999;
	padding: 0px;
	background-color: #EEF;
	border-collapse: collapse;
}
table.bigtable td, table#bigtable td {
	border: 1px solid #999;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
}
table.bigtable th, table#bigtable th {
	border: 1px solid #999;
	padding-left: 10px;
	padding-right: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	background-color: #EEF;
}
table.bigtable tr:nth-of-type(odd), table#bigtable tr:nth-of-type(odd) {
	background-color: #FFF;
}
table.bigtable tr:nth-of-type(even), table#bigtable tr:nth-of-type(even) {
	background-color: #FFD;
}
table.bigtable tr:nth-of-type(odd):hover, table#bigtable tr:nth-of-type(odd):hover,
table.bigtable tr:nth-of-type(even):hover, table#bigtable tr:nth-of-type(even):hover {
	background-color: #EAEAEA;
}

.stuList {
	border-collapse: collapse;
}
.stuList tr th, .stuList tr td {
	border: thin solid black;
}

.tooltip {
	position: relative;
	display: inline-block;
	border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
	visibility: hidden;
	border: thin dotted black;
	background-color: #EEE;
	text-align: center;
	border-radius: 6px;
	padding: 5px;
	margin: 5px;
	white-space: nowrap;
	/* Position the tooltip */
	position: absolute;
	z-index: 1;
	top: -35px;
	left: -90%;
}

.tooltip:hover .tooltiptext {
	visibility: visible;
}

/* Used in tables with checkboxes */
table#list, table.list {
	border: 1px solid #999;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
	padding-right: 10px;
	background-color: #FFF;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
table#list td, table.list td {
	height: 30px;
}

table#phototable {
	width: 99%;
	border: 1px solid #999;
	background-color: #EEF;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
table#phototable td {
	border: 1px solid #999;
	height: 150px;
	padding: 5px;
	background-color: #FFF;
}

.dialog_overlay {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	background: #000;
	opacity: .15;
	filter: alpha(opacity=15);
	-moz-opacity: .15;
	z-index: 101;
}
.dialog {
	display: none;
	position: fixed;
	width: 70%;
	top: 20%;
	left: 14%;
	padding-left: 1%;
	padding-right: 1%;
	padding-bottom: 1%;
	background-color: #EEF;
	border: 1px solid #000;
	z-index: 102;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
.dialog td {
	background-color: #FFF;
	border: 0px;
}
.dialog_title {
	border: 1px solid #000;
	padding: 4px;
	color: #000;
	font-weight: bold;
	background-color: #EEF;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}
