/* layout */

html, body {
  margin: 0;
  font-family: arial, helvetica, sans-serif;
}

html {
	background: #69c4e9 url('/img/backgrounds/background.png') repeat-x;
	color: black;
	padding-bottom: 2em;
}

#doc, #doc2 {
	-webkit-box-shadow:3px 3px 10px #666;
	-moz-box-shadow: 3px 3px 10px #666;
	box-shadow: 3px 3px 10px #666;
	margin-top: 2em;
}

/* header */

#hd {
	margin-bottom: 0.25em;
}

#hd a img {
	display: block;
	margin: 0;
	padding: 0;
}

#topLinks {
	margin: 0;
	text-align: right;
	font-size: 100%;
}

/* body */

#pc {
	color: white;
	background-color: #76399D;
}

#pc a {
	color: white;
	border-color: white;
}

#bd {
	position: relative;
	background-color: white;
	min-height: 30em;
	padding: 1em 0;
	width: 100%; /* ie6 */
}

/* footer */

#ft {
	position: relative;
	color: white;
	background-color: #76399D; 
	padding: 1em;
}

#ft a {
	color: white;
	border-color: white;
}

#ft a.uplink {
	position: absolute;
	right: 1em;
	top: 1em;
	padding-right: 1.5em;
	background: transparent url('/img/uplink.png') no-repeat right 2px;
}

* html #ft a.uplink { /* ie6 */
	right: 2em;
	padding: 0 !important;
	background-image: none !important;
}

/* sidebar */

#sb {
	padding-bottom: 10em;
	color: #313131;
}

#sb h2, #sb h3 {
	margin: 0.5em 0;
	padding:0;
	color: #119BDA;
	font-weight: bold;
}

#sb h2 {
	font-size: 123.1%;
}

#sb h3 {
	font-size: 116%;
}

#sb p {
	padding: 0;
	margin: 0.5em 0;
	font-size: 100%;
}

#sb a {
	color: #491C81;
}

#sb a:hover {
	color: black;
}


#sb div {
	margin: 1em 1em 2em 1em;
}

#sb div.box {
	border: 1px solid #CBB7D8;
	background-color: white;
	-webkit-box-shadow: 1px 1px 5px #9B9B9B;
	-moz-box-shadow: 1px 1px 5px #9B9B9B;
	padding: 0 0.75em;
}

#sb div.box h2 {
	margin: 0.5em 0;
}

/* sub navigation */

#sb ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 116%;
	border-top: 1px solid #C7BAD7;
}

#sb li {
	list-style-type: none;
	list-style-image: none;
	padding: 0;
	margin: 0;
	border-bottom: 1px solid #C7BAD7;
}

#sb li a {
	display: block;
	padding: 0.375em 0;
	color: #530284;
	width: 100%;
	text-decoration: none;
	border: none;
}

#sb li a:hover {
	color: black;
	border: none;
}

#sb li.active a {
	font-weight: bold;
	color: black;
	text-decoration: none;
}

/* FORMS */

form {
	padding: 0;
	width: 100%;
}

form.inline {
	display: inline;
}

form p {
	margin: 0.5em 0;
}

form h2 {
  margin: 1em 0 0.5em 0;
  font-size: 146.5%;
}

div.form {
	border: 1px solid #CBB7D8;
	background-color: #EDE5F2;
	padding: 0 1em;
	margin: 2em 0;
}

div.form h3 {
	font-weight: bold;
	font-size: 116%;
	margin: 0.75em 0;
}

form div {
	clear: both;
	margin: 0.75em 0;
	vertical-align: text-top;
}

form div.horizontalForm {
	clear: both;
	margin: 1.5em 0;
	border: 1px solid #CBB7D8;
	background-color: white;
}

form div.horizontalForm div.input {
	padding: 0.25em 0;
	margin: 1px;
	clear: both;
	background-color: #EDE5F2;
}

#sb form div {
	padding: 0;
	margin: 0.5em 0;
}

/* for ie6 sake we cannot use nice selectors... */

.text input, .password input, textarea {
	font-size: 108%;
	padding: 3px;
	width: 97%;
	border: 1px solid #C7BAD7;
}

.text input.short, .password input.short {
	width: 25em;
}

.text input.age {
	width: 3em;
}

.text input.zip {
	width: 5em;
}

textarea {;
	height: 200px;
}

textarea.small {;
	height: 100px;
}

#sb .text input, #sb .password input {
	font-size: 100%;
	padding: 1px;
	width: 97%;
	border: 1px solid #C7BAD7;
}

.checkbox input {
	clear: left;
	float: left;
	margin: 0px 6px 7px 2px;
	width: auto;
}

select {
	max-width: 98%;
	padding: 2px;
	border: 1px solid #C7BAD7;
	clear: both;
	font-size: 116%;
	vertical-align: text-bottom;
}

#sb select {
	padding: 1px;
	font-size: 100%;
}

label {
	color: #530284;
	display: block;
	font-size: 108%;
	width: 99%;
	margin: 0 0 0.2em 0;
}

.checkbox label {
	display: inline;
}

#sb label {
	font-size: 93%;
	margin: 0 0 0.1em 0;
}

#sb input {
	font-size: 93%;
}

div.horizontalForm label {
	float: left;
	width: 12em;
	text-align: right;
	padding: 0.25em 1em 0.25em 0;
}

div.error input, div.error textarea {
	border: 1px solid red;
}

form div.error-message {
	margin: 0.2em 0 0 0;
	color: red;
}

form div.horizontalForm div.error-message {
	margin-left: 14em;
}

#ajaxmsg-hook {
	font-size: 100%;
	vertical-align: middle;
	padding: 3px 5px;
}

/* fix for ie stretched buttons */

input.button {
    padding: 0 .25em;
    width: 0; /* for IE only */
    overflow: visible;
}

input.button[class] { /* IE ignores [class] */
    width: auto;
}

/* flash messages */

ul.flashMessages {
	margin: 0;
	padding: 0 0em;
	background-color: #ff6;
	color: #530284;
}

ul.flashMessages li {
	margin: 0;
	padding: 0.8em 2em;
	font-size: 100%;
	text-align: left;
	list-style-type: none;
	list-style-image: none;
}

/* top navigation */

#navbar {
	background-color: #76399D;
	float: left;
	width: 100%;
	padding: 2em 0 0 0;
}

#navbar ul {
	font-size: 108%;
	display: block;
	margin: 0em 2em 0 2em;
}


#navbar ul li  {
	list-style-type: none;
	list-style-position: inside;
	margin: 0 0.5em 0 0;
	display: block;
	float: left;
}

#navbar ul li a {
	color: #4A0374;
	background-color: #CBB7D8;
	text-decoration: none;
	display: block;
	padding: 0.5em 0.7em 0.5em 0.7em;
	border: 1px solid #74349C;
	border-bottom: none;
}

#navbar ul li a:hover {
	color: black;
	background-color: white;
	text-decoration: none;
	border: 1px solid white;
	border-bottom: none;
}

#navbar ul li.active a {
	color: black;
	background-color: white;
	font-weight: bold;
	border: 1px solid white;
	border-bottom: none;
}

#navbar ul li.icon a {
	padding-left: 2.5em;
	background-repeat: no-repeat;
	background-position: 0.5em center;
}

#navbar ul li.users a {
	background-image: url('/img/icons/users.png');
}

#navbar ul li.mail a {
	background-image: url('/img/icons/mail.png');
}

#navbar ul li.system a {
	background-image: url('/img/icons/system.png');
}

#navbar ul li.settings a {
	background-image: url('/img/icons/settings.png');
}

#navbar ul li.statistics a {
	background-image: url('/img/icons/statistics.png');
}

#navbar ul li.logout a {
	background-image: url('/img/icons/logout.png');
}

#navbar ul li.cancel a {
	background-image: url('/img/icons/cancel.png');
}

#navbar ul li.delete a {
	background-image: url('/img/icons/delete.png');
}

#navbar ul li.answer a {
	background-image: url('/img/icons/current_mail.png');
}

#navbar ul li.info a {
	background-image: url('/img/icons/help.png');
}

#navbar ul li.newMail a {
	background-image: url('/img/icons/new_mail.png');
}

#navbar ul li.home a {
	background-image: url('/img/icons/home.png');
}

#navbar ul li.mailbox a {
	background-image: url('/img/icons/mailbox.png');
}

* html #navbar ul li a { /* ie6 */
	background-image: none !important;
	padding-left: 0.5em !important;
}

/* TYPOGRAPHY */

p, ul, ol, h2, h3, h4 {
	line-height: 1.4em;
}

p {
	font-size: 116%;
	margin: 1em 0;
}

ul, ol {
	margin: 1em 0;
	font-size: 116%;
}

ul li, ol li {
	margin: 0.375em 0 0.375em 1.5em;
}

ul li {
	list-style-type: square;
	list-style-image: url(/img/bullet.png);
}

ol li {
	list-style-type: decimal;
	list-style-position: outside;
	font-weight: bold;
	color: #491C81;
}

ol li p {
	font-weight: normal;
	color: black;
	font-size: 100%;
}

h2 {
	font-size: 161.6%;
	margin: 1em 0 0.5em 0;
	color: #119BDA;
	font-weight: bold;
}

h3 {
	font-size: 138.5%;
	margin: 1.5em 0 0.5em 0;
	color: #119BDA;
	font-weight: bold;
}

strong {
	font-weight: bold;
}

em {
	font-style: italic;
}

/* LINKS */

a {
  color: #530284;
	text-decoration: none;
	border-bottom: 1px dotted #530284;
	padding-bottom: 1px;
}

a:visited {
  color: #530284;
}

a:hover {
	color: black;
	border-bottom: 1px solid black;
}

* html a { /* ie6 */
	border-bottom-style: solid;
}

a.logo {
	border: none;
}

/* "Fat Erik's" pipelist */

ul.piped {
	list-style: none;
	padding: 0;
}

ul.piped li {
	display: inline;
	padding: 0;
	margin: 0;
}

ul.piped li:before { content: "| "; }
ul.piped li:first-child:before { content: ""; }

* html ul.piped li { /* ie6 */
	margin-left: 0.5em !important;
}

*:first-child+html ul.piped li {
	margin-left: 0.5em !important; /* IE7 */
}

/* buttons */

div.buttons {
	margin: 1em 0 2em 0;
}

div.buttons.spacious {
	margin: 2em 0 2em 0;
}

div.buttons.claustrophobic {
	margin: 1em 0 1em 0;
}

div.form div.buttons {
	margin: 1em 0 1em 0;
}

#sb .buttons {
	margin: 0.75em 0;
}

a.button, a.button:visited, button {
  	display: block;
    float: left;
    margin: 0 1em 0 0;
	padding: 0;
	background: #EDE5F2 url('/img/backgrounds/button.png') repeat-x center;
    border: 1px solid #75389D;
    color: #641D91;
    font-size: 108%;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;

}

a.button:hover, button:hover, button.hover  {
	background-image: url('/img/backgrounds/button_hover.png');
    border: 1px solid #530284;
    color: #530284;
}

button {
    width: auto;
    overflow: visible;
}

button[type]{
   /* padding: 5px 10px 5px 7px; *//* Firefox */
   /* line-height: 17px; *//* Safari */
}

button span, a.button span  {
	padding: 0.6em 0.5em 0.6em 0.5em;
	display: block;
}

button.small span, a.button.small span  {
	padding: 0.25em 0.25em 0.25em 0.25em;
}

button.icon span, a.button.icon span  {
	background-repeat: no-repeat;
	background-position: 0.5em center;
	padding: 0.6em 0.5em 0.6em 2.5em;
}

button.small.icon span, a.button.small.icon span  {
	background-repeat: no-repeat;
	background-position: 0.25em center;
	padding: 0.25em 0.25em 0.25em 2.25em;
	display: block;
}

button span  {
	* padding: 0.5em 0.5em 0.5em 0.5em; /* IE6 */
}

*:first-child+html button[type] span{
	padding: 0.5em 0.5em 0.5em 2.5em; /* IE7 */
}

a.button:active {
	background-image: none;
    background-color: #976EB6;
    border: 1px solid #530284;
    color: #fff;
}

button span {
	background-image: url('/img/icons/loading.gif');
}

a.button.newMail span {
	background-image: url('/img/icons/new_mail.png');
}

a.button.abort span {
	background-image: url('/img/icons/cancel.png');
}

a.button.print span {
	background-image: url('/img/icons/print.png');
}

a.button.back span {
	background-image: url('/img/icons/previous.png');
}

a.button.forward span {
	background-image: url('/img/icons/next.png');
}

a.button.mail span {
	background-image: url('/img/icons/mail.png');
}

button.login span {
	background-image: url('/img/icons/login.png');
}

button.search span {
	background-image: url('/img/icons/search.png');
}

button.confirm span {
	background-image: url('/img/icons/confirm.png');
}

button.save span {
	background-image: url('/img/icons/save.png');
}

button.cancel span {
	background-image: url('/img/icons/cancel.png');
}

button.reply span {
	background-image: url('/img/icons/reply.png');
}

button.forward span {
	background-image: url('/img/icons/forward.png');
}

button.delete span, a.button.delete span {
	background-image: url('/img/icons/delete.png');
}

button.mail span {
	background-image: url('/img/icons/mail.png');
}

button.loading span {
	background-image: url('/img/icons/loading.gif');
}

* html a.button span, * html button span { /* ie6 */
	background-image: none !important;
	padding-left: 0.5em !important;
}

/* sidebar definition lists */

#sb dl, #sh dl {
	margin: 0.5em 0;
	padding: 0;
}

#sb dl dt, #sh dl dt {
	width: 7.5em;
	float: left;
	padding: .25em 0;
	font-weight: bold;
}

#sb dl dd, #sh dl dd {
	margin: 0 0 0 7.5em;
	padding: .25em 0;
}

/* main column definition lists */


dl {
	margin: 0.5em 0;
	padding: 0;
}

#sb dl dt {
	width: 7.5em;
	float: left;
	padding: .25em 0;
	font-weight: bold;
}

#sb dl dd {
	margin: 0 0 0 7.5em;
	padding: .25em 0;
}


/* MISC */

.clear {
	clear: both;
	height: 1px;
	overflow: hidden;
}

.gray {
	color: #5C5C5C;
}

/* jQuery Accordion */

.accordion h3 {
	font-size: 116%;
	font-weight: bold;
	outline:0;
}

.ui-accordion {
	margin: 1em 0;
}

.ui-accordion p {
	margin: 0.5em 0;
}

.ui-accordion h3 {
	font-size: 116%;
	font-weight: normal;
	outline:0;
}

.ui-accordion .ui-accordion-header {
	cursor: pointer;
	position: relative;
	margin: 1em 0 0.5em 0;
	zoom: 1;
}

.ui-accordion .ui-accordion-li-fix {
	display: inline;
}

.ui-accordion .ui-accordion-header a {
	padding: 0;
}

.ui-accordion .ui-accordion-content {
	margin: 0 0 1em 0;
	overflow: auto;
	display: none;
}

.ui-accordion .ui-accordion-content-active {
	display: block;
}

.ui-accordion .ui-state-active a {
	border-bottom: none !important;
	font-weight: bold;
	color: black;
}


/* jQuery RESIZABLE TEXTAREA */

.resizable-textarea {
	display: block;
	margin-top: 0px;
}

.resizable-textarea textarea {
	display: block;
	margin-bottom: 0px;
}

div.grippie {
	background: #EEE url(/img/grippie.png) no-repeat scroll center 2px;
	border-color: #DDD;
	border-style: solid;
	border-width: 0pt 1px 1px;
	cursor: s-resize;
	height: 9px;
	overflow: hidden;
	margin: 0;
}




pre {
	text-align: left;
}

/* SITE GOOGLE-MAP */

#map {
	border: 1px solid #C7BAD7;
	margin: 1em 0;
}

#map a {
	border: none;
}

/* search resultsts list */

#results {
	margin: 1em 0 0 0;
}

#results li {
	margin: 1em 0;
	list-style-type: none;
	list-style-image: none;
}

#results li a {
	font-weight: bold;
}

#results li a.online {
	font-weight: normal;
	background-color: #76399D;
	color: white;
	padding: 0.15em 0.35em;
	font-size: 85%;
	border: none;
}

#results li span {
	color: #313131;
}

.noDisplay {
	display: none;
}

/* diff */

del {
	color: red;
}

ins {
	color: green;
}

/* definition lists */


dl {
	margin: 1em 0; 
	font-size: 108%;
}
	
dt { 
	float: left; 
	clear: left; 
	width: 10em; 
	font-weight: bold; 
	color: #551285;
}

dd { 
	margin: 0 0 0 10em;
	padding: 0 0 0.75em 0;
}

dd form, dd form div { 
	display: inline;
}

/* pagination links */

.paging {
	font-size: 116%;
	}

.paging div {
	display: inline;
	}

.paging div.disabled {
	color: gray;
	}

.paging span.current {
	font-weight: bold;
}