/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}body{font:13px/1.231 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}select,input,button,textarea,button{font:99% arial,helvetica,clean,sans-serif;}table{font-size:inherit;font:100%;}pre,code,kbd,samp,tt{font-family:monospace;*font-size:108%;line-height:100%;}body{text-align:center;}#doc,#doc2,#doc3,#doc4,.yui-t1,.yui-t2,.yui-t3,.yui-t4,.yui-t5,.yui-t6,.yui-t7{margin:auto;text-align:left;width:57.69em;*width:56.25em;}#doc2{width:73.076em;*width:71.25em;}#doc3{margin:auto 10px;width:auto;}#doc4{width:74.923em;*width:73.05em;}.yui-b{position:relative;}.yui-b{_position:static;}#yui-main .yui-b{position:static;}#yui-main,.yui-g .yui-u .yui-g{width:100%;}.yui-t1 #yui-main,.yui-t2 #yui-main,.yui-t3 #yui-main{float:right;margin-left:-25em;}.yui-t4 #yui-main,.yui-t5 #yui-main,.yui-t6 #yui-main{float:left;margin-right:-25em;}.yui-t1 .yui-b{float:left;width:12.30769em;*width:12.00em;}.yui-t1 #yui-main .yui-b{margin-left:13.30769em;*margin-left:13.05em;}.yui-t2 .yui-b{float:left;width:13.8461em;*width:13.50em;}.yui-t2 #yui-main .yui-b{margin-left:14.8461em;*margin-left:14.55em;}.yui-t3 .yui-b{float:left;width:23.0769em;*width:22.50em;}.yui-t3 #yui-main .yui-b{margin-left:24.0769em;*margin-left:23.62em;}.yui-t4 .yui-b{float:right;width:13.8456em;*width:13.50em;}.yui-t4 #yui-main .yui-b{margin-right:14.8456em;*margin-right:14.55em;}.yui-t5 .yui-b{float:right;width:18.4615em;*width:18.00em;}.yui-t5 #yui-main .yui-b{margin-right:19.4615em;*margin-right:19.125em;}.yui-t6 .yui-b{float:right;width:23.0769em;*width:22.50em;}.yui-t6 #yui-main .yui-b{margin-right:24.0769em;*margin-right:23.62em;}.yui-t7 #yui-main .yui-b{display:block;margin:0 0 1em 0;}#yui-main .yui-b{float:none;width:auto;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf,.yui-gc .yui-u,.yui-gd .yui-g,.yui-g .yui-gc .yui-u,.yui-ge .yui-u,.yui-ge .yui-g,.yui-gf .yui-g,.yui-gf .yui-u{float:right;}.yui-g div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first,.yui-ge div.first,.yui-gf div.first,.yui-g .yui-gc div.first,.yui-g .yui-ge div.first,.yui-gc div.first div.first{float:left;}.yui-g .yui-u,.yui-g .yui-g,.yui-g .yui-gb,.yui-g .yui-gc,.yui-g .yui-gd,.yui-g .yui-ge,.yui-g .yui-gf{width:49.1%;}.yui-gb .yui-u,.yui-g .yui-gb .yui-u,.yui-gb .yui-g,.yui-gb .yui-gb,.yui-gb .yui-gc,.yui-gb .yui-gd,.yui-gb .yui-ge,.yui-gb .yui-gf,.yui-gc .yui-u,.yui-gc .yui-g,.yui-gd .yui-u{width:32%;margin-left:1.99%;}.yui-gb .yui-u{*margin-left:1.9%;*width:31.9%;}.yui-gc div.first,.yui-gd .yui-u{width:66%;}.yui-gd div.first{width:32%;}.yui-ge div.first,.yui-gf .yui-u{width:74.2%;}.yui-ge .yui-u,.yui-gf div.first{width:24%;}.yui-g .yui-gb div.first,.yui-gb div.first,.yui-gc div.first,.yui-gd div.first{margin-left:0;}.yui-g .yui-g .yui-u,.yui-gb .yui-g .yui-u,.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u,.yui-ge .yui-g .yui-u,.yui-gf .yui-g .yui-u{width:49%;*width:48.1%;*margin-left:0;}.yui-g .yui-g .yui-u{width:48.1%;}.yui-g .yui-gb div.first,.yui-gb .yui-gb div.first{*margin-right:0;*width:32%;_width:31.7%;}.yui-g .yui-gc div.first,.yui-gd .yui-g{width:66%;}.yui-gb .yui-g div.first{*margin-right:4%;_margin-right:1.3%;}.yui-gb .yui-gc div.first,.yui-gb .yui-gd div.first{*margin-right:0;}.yui-gb .yui-gb .yui-u,.yui-gb .yui-gc .yui-u{*margin-left:1.8%;_margin-left:4%;}.yui-g .yui-gb .yui-u{_margin-left:1.0%;}.yui-gb .yui-gd .yui-u{*width:66%;_width:61.2%;}.yui-gb .yui-gd div.first{*width:31%;_width:29.5%;}.yui-g .yui-gc .yui-u,.yui-gb .yui-gc .yui-u{width:32%;_float:right;margin-right:0;_margin-left:0;}.yui-gb .yui-gc div.first{width:66%;*float:left;*margin-left:0;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf .yui-u{margin:0;}.yui-gb .yui-gb .yui-u{_margin-left:.7%;}.yui-gb .yui-g div.first,.yui-gb .yui-gb div.first{*margin-left:0;}.yui-gc .yui-g .yui-u,.yui-gd .yui-g .yui-u{*width:48.1%;*margin-left:0;}.yui-gb .yui-gd div.first{width:32%;}.yui-g .yui-gd div.first{_width:29.9%;}.yui-ge .yui-g{width:24%;}.yui-gf .yui-g{width:74.2%;}.yui-gb .yui-ge div.yui-u,.yui-gb .yui-gf div.yui-u{float:right;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf div.first{float:left;}.yui-gb .yui-ge .yui-u,.yui-gb .yui-gf div.first{*width:24%;_width:20%;}.yui-gb .yui-ge div.first,.yui-gb .yui-gf .yui-u{*width:73.5%;_width:65.5%;}.yui-ge div.first .yui-gd .yui-u{width:65%;}.yui-ge div.first .yui-gd div.first{width:32%;}#hd:after,#bd:after,#ft:after,.yui-g:after,.yui-gb:after,.yui-gc:after,.yui-gd:after,.yui-ge:after,.yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#hd,#bd,#ft,.yui-g,.yui-gb,.yui-gc,.yui-gd,.yui-ge,.yui-gf{zoom:1;}

/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.7.0
*/
body{margin:10px;}h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:1em 0;}h1,h2,h3,h4,h5,h6,strong,dt{font-weight:bold;}optgroup{font-weight:normal;}abbr,acronym{border-bottom:1px dotted #000;cursor:help;}em{font-style:italic;}del{text-decoration:line-through;}blockquote,ul,ol,dl{margin:1em;}ol,ul,dl{margin-left:2em;}ol li{list-style:decimal outside;}ul li{list-style:disc outside;}dl dd{margin-left:1em;}th,td{border:1px solid #000;padding:.5em;}th{font-weight:bold;text-align:center;}caption{margin-bottom:.5em;text-align:center;}sup{vertical-align:super;}sub{vertical-align:sub;}p,fieldset,table,pre{margin-bottom:1em;}button,input[type="checkbox"],input[type="radio"],input[type="reset"],input[type="submit"]{padding:1px;}

/*
 * Copyright 2008, 2009 Thomas Kongevold Adamcik
 * 2009 IME Faculty Norwegian University of Science and Technology
 *
 * Code licensed under the Affero GNU General Public License:
 * <http://www.gnu.org/licenses/>
*/

/* Basic block elements */
h1,h2,h3 {
	font-family: Georgia;
	clear: both;
}
h1 {
	padding-left: 0.6em;
	font-size: 167%;
	margin-top: 0;
	margin-bottom: -0.25em;
	float: left;
	clear: none;
}
h2 {
	border-bottom: 1px solid #D3D7CF;
	padding-left: 0.5em;
	margin-left: -0.5em;
	margin-top: 0;
}
h3 {
	border-bottom: 1px solid #EEEEEC;
	padding-left: 0.5em;
	margin-left: -0.5em;
	margin-top: 0;
}

hr {
	color: #D3D7CF;
	background: #D3D7CF;
	border: 0;
	height: 1px;
}

/* Tables */
table {
	width: 100%;
}
table a {
	color: #000;
}
tr {
	vertical-align: top;
}
td, th {
	border: 0;
}
th {
	text-align: left;
	padding: 0 0.5em;
	font-size: 93%;
}
td {
	border-top: 1px solid #666;
	border-bottom: 1px solid #666;
}
table#munin {
	width: auto;
}
table#munin td {
	border: 0;
	padding: 0 1em 0.2em;
}
table#munin a {
	color: #204A87;
}

/* Basic inline elements */
a {
	color: #204A87;
}

img {
	vertical-align: text-bottom;
}

/* Form elements */
button {
	font-size: 100%;
	font-family: inherit;
	padding: 0.09em;
	padding-left: 0;
	padding-right: 0.2em;
	vertical-align: bottom;
	/* Magic to check buttons the correct size in IE6 */
	width: auto;
	overflow:visible;
}
button .icon {
	/* Pulls background up */
	padding-top: 1px;
}
button.link {
	background: none;
	margin: 0;
	padding: 0;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	color: #204A87;
	display: inline;
}

input {
	padding: 0.15em;
}
textarea[cols], input[size] {
	width: auto; /* Don't override sizes set in html */
}
label {
	cursor: pointer;
}

/* Generic classes */
.large {
	font-size: 116%; /* 15px */
}
.small {
	font-size: 93%; /* 12px */
}
.tiny {
	font-size: 77%;  /* 10px */
}

.odd {
	background: #fafafa;
}
p.right {
	text-align: right;
}

.current {
	font-weight: bold;
}

.hidden {
	visibility: hidden;
}

.clear {
	clear: both;
}

.icon {
	background-repeat: no-repeat;
	background-image: url(../gfx/sprite2.png);
	background-position: left top;
	padding-left: 18px;
}

.icon.start, .icon.en-flag, .icon.no-flag {
	padding-left: 0;
	padding-right: 18px;
}

.icon.start   {	background-position: right -650px;  } .large .icon.start   {	background-position: right -649px; }
.icon.en-flag { background-position: right -1979px; } .large .icon.en-flag { background-position: right -1978px; }
.icon.no-flag { background-position: right -2090px; } .large .icon.no-flag { background-position: right -2089px; }

.icon.copy     { background-position: 0 -95px;   } .large .icon.copy     { background-position: 0 -94px;   }
.icon.warning  { background-position: 0 -206px;  } .large .icon.warning  { background-position: 0 -205px;  }
.icon.advanced { background-position: 0 -317px;  } .large .icon.advanced { background-position: 0 -316px;  }
.icon.gcal     { background-position: 0 -428px;  } .large .icon.gcal     { background-position: 0 -427px;  }
.icon.pdf      { background-position: 0 -539px;  } .large .icon.pdf      { background-position: 0 -538px;  }
.icon.list     { background-position: 0 -761px;  } .large .icon.list     { background-position: 0 -760px;  }
.icon.week     { background-position: 0 -872px;  } .large .icon.week     { background-position: 0 -871px;  }
.icon.add      { background-position: 0 -983px;  } .large .icon.add      { background-position: 0 -982px;  }
.icon.link     { background-position: 0 -1094px; } .large .icon.link     { background-position: 0 -1093px; }
.icon.tips     { background-position: 0 -1205px; } .large .icon.tips     { background-position: 0 -1204px; }
.icon.save     { background-position: 0 -1316px; } .large .icon.save     { background-position: 0 -1315px; }
.icon.hide     { background-position: 0 -1427px; } .large .icon.hide     { background-position: 0 -1426px; }
.icon.ical     { background-position: 0 -1538px; } .large .icon.ical     { background-position: 0 -1537px; }
.icon.error    { background-position: 0 -1649px; } .large .icon.error    { background-position: 0 -1648px; }
.icon.name     { background-position: 0 -1760px; } .large .icon.name     { background-position: 0 -1759px; }
.icon.remove   { background-position: 0 -1871px; } .large .icon.remove   { background-position: 0 -1870px; }

/* error classes */
.errorlist {
	color: #A00000;
	font-size: 85%;
}
.error {
	margin: 0;
}
td.error input, td.error select {
	background: #FCC;
}
/* Indicate that things have expired or are excluded */
.expired td, .hide td, .hide .course, .hide .type, .hide .room {
	color: #555753;
}
.delete td, .delete p, .delete .course, .delete .type, .delete .room {
	text-decoration: line-through;
}

/* header/body/footer */
#hd {
	margin-top: 0.5em;
	border-bottom: 2px solid #D3D7CF;
	margin-bottom: 1em;
}
#bd {
	padding-left: 1em;
	margin-bottom: 1em;
	min-height: 25em;
	position: relative;
}
#ft {
	padding: 1em 0.5em 0;
	color: #2E3436;
	margin-bottom: 1em;
	border-top: 1px solid #D3D7CF;
}

/* Specialcased elements */

/* Box used for selecting which groups to use for a course */
#change-groups div {
	float: left;
	padding: 0.2em;
	margin-right: 0.5em;
	margin-bottom: 0.5em;
	border: 1px solid #666;
	width: 15%;
	height: 20em;
}
#change-groups p {
	overflow: hidden;
	height: 20%;
	margin-bottom: 0.25em;
}
#change-groups div div {
	overflow: auto;
	height: 75%;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	float: none;
}
#change-groups ul {
	margin: 0;
}
#change-groups li {
	list-style: none;
}

/* Stats box on front page (needs special casing for graph) */
#stats {
	border-left: 0.2em solid #D3D7CF;
	padding: 0.2em 0;
	font-size: 93%;
}
#stats div {
	margin-bottom: 1px;
	padding: 0.1em 0.5em;
	-moz-border-radius: 0 2px 2px 0;
	-webkit-border-radius: 0 2px 2px 0;
}
#stats span {
	float: right;
}

/* Links on all pages nedd constant width b */
#links b {
	font-size: 93%;
	width: 9em;
	text-align: right;
	display: block;
	float: left;
	margin-right: 0.5em;
}

#help {
	border: 1px solid #CCC;
	background: #FFC;
	padding: 0.5em 0.5em 0;
	margin-bottom: 1em;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
#help p {
	margin-bottom: 0.5em;
}

#next, #previous {
	position: absolute;
	top: 3.7em;
	text-decoration: none;
	color: #D3D7CF;
	font-size: 300%;
}
#next {
	right: -0.55em;
	padding-right: 0.05em;
}
#previous {
	left: -0.25em;
	padding-left: 0.05em;
}
#next:hover {
	padding-left: 0.05em;
	padding-right: 0;
}
#previous:hover {
	padding-left: 0;
	padding-right: 0.1em;
}

/* schedule styling */

/* cell contents */
#schedule .course, #schedule .room, #schedule .type {
	overflow: hidden;
}
#schedule .course {
	float: left;
}
#schedule .room {
	font-size: 77%;
	float: right;
	margin-left: 0.5em;
}
#schedule .type {
	clear: both;
	font-size: 77%;
}
/* single cells need to be smaller */
#schedule .single {
	font-size: 77%;
}
#schedule .single .type, #schedule .single .room {
	font-size: 100%;
}

#schedule .optional {
	color: #555753;
}

#schedule td {
	border-color: #CCC;
	padding: 0.1em 0.2em;
	vertical-align: top;
	height: 2em;
}
#schedule th {
	width: 18.6%;
	font-variant: small-caps;
	font-weight: normal;
}

/* time col */
#schedule .time {
	text-align: center;
	vertical-align: middle;
	font-size: 77%;
	width: 7%;
	white-space: nowrap;
}
#schedule td.time {
	border-left: 1px solid #666;
}
#schedule .date {
	float: right;
	font-size: 77%;  /* 10px */
}

#schedule td.lecture {
	border-right: 1px solid #CCC;
}
/* Proper :first-child  selectors would be nice, but
 * classes from the templates should do the trick */
#schedule td.last, #schedule td.last.lecture {
	border-right: 1px solid #666;
}
#schedule tr.first td {
	border-top: 1px solid #666;
}
#schedule tr.last td {
	border-bottom: 1px solid #666;
}

@media print {
	/* FIXME dont like noprint :( */
	#ft, .noprint {
		display: none;
	}
	table a {
		text-decoration: none;
	}
}

/* Language selector */
#setlang  {
	float: right;
}
#setlang img {
	vertical-align: -17%;
}

/* From http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete
 * Version: 1.0.2
 * License: MIT/GPL */
.ac_results {
	border: 1px solid black;
	background-color: white;
	overflow: hidden;
	z-index: 99999;
}

.ac_results ul {
	width: 100%;
	list-style-position: outside;
	list-style: none;
	padding: 0;
	margin: 0;
}

.ac_results li {
	padding: 0.1em 0.3em;
	cursor: default;
	display: block;
	overflow: hidden;
}

.ac_odd {
	background-color: #FAFAFA;
}

.ac_over {
	background-color: #0A246A;
	color: white;
}
