﻿/* Ta bort alla marginaler så positionering och marginaler blir mer förutsägbar */
html, body
{
	height: 100%;
	padding: 0;
	margin: 0;
	width: 100%;
}

body
{
	background-color: #fff;
	font-family: tahoma, verdana, helvetica, arial, sans-serif;
	font-size: 76%;
	font-weight: normal;
}

input, select, textarea
{
	font-family: tahoma, verdana, helvetica, arial, sans-serif;
	font-size: 1em;
}
.clear
{
	clear: both;
}
.floatleft
{
	float: left;
}
.floatright
{
	float: right;
	position: relative;
}

.imageleft
{
	float: left;
	margin: 0.2em 0.5em 0.2em 0;
}
/* Sidstruktur */

#PageLeftSideBar
{
	position: absolute;
	left: 1em;
	top: 1em;
	width: 14em; /* border: 1px solid #eee; /* för test av CSS */
}

#PageLogo
{
	display: block;
	text-align: center;
	margin: 0 0 1.5em 0;
}

#PageMenu
{
	background-color: #eee;
	border: 1px solid #ccc;
	padding: 1em 0.5em 1em 0.5em;
}

#PageContent
{
	margin: 1em 1em 1em 16em; /* border: 1px solid #eee; /* för test av CSS */
}

/* Meny */

#MainMenuUserName
{
	color: #999;
	display: block;
	margin: 1em 0 0 0;
	padding: 0.5em 1px 0 1px;
	overflow: hidden;
	border-top: solid 1px #ccc;
	white-space: nowrap;
	width: 12em; /*border: 1px solid #000; /* för test av CSS */
}

.MainMenuItem
{
	color: #000;
	text-decoration: none;
	display: block;
	margin: 0.5em 0 1px 0;
	padding: 1px 1px 1px 1px;
	overflow: hidden;
	font-weight: bold; /*border: 1px solid #000; /* för test av CSS */
}

.MenuMenuLevel2
{
	margin-top: 1px !important;
	padding-left: 0.5em !important;
	font-weight: normal;
}

.MainMenuItem:hover
{
	background-color: #888;
	color: #fff;
	outline: #fff solid 1px;
}


/* Text */

h1
{
	color: #aaa;
	font-size: 1.5em;
	font-weight: bold;
	margin: 0 0 0.5em 0;
	border-bottom: solid 1px #ccc; /* border: 1px solid #eee; /* för test av CSS */
}

h2
{
	color: #aaa;
	font-size: 1.2em;
	font-weight: bold;
	margin: 0.5em 0 0.5em 0;
}

h3
{
	color: #000;
	font-size: 1em;
	font-weight: bold;
	margin: 0.5em 0 0 0;
}

p
{
	margin: 0.5em 0 0 0;
}

h3 + p
{
	margin-top: 0;
}

/* FlashMessage */

.flashmessage
{
	background-color: #fee;
	color: #800;
	border: solid 2px #f00;
	padding: 0.5em 0.5em 0.5em 0.5em;
	margin: 0 0 1em 0;
	font-weight: bold;
}

/* Inputbox */

div.inputbox
{
	padding: 0.2em 0.5em 0.7em 0.5em;
	background-color: #f8f8f8;
	border: 1px solid #ccc;
	margin: 1em 1em 1em 0;
	width: 31em;
}

div.inputbox.wide
{
	width: 750px;
}

.inputbox table
{
	width: 100%;
}

.inputbox h2
{
	color: #000; /* border: 1px solid #eee; /* för test av CSS */
}

div.inputbox .fieldlabel
{
	display: block;
	margin-top: 0.5em;
}

div.inputbox .datalabel
{
	display: block;
	font-weight: bold;
	background-color: #fff;
	margin: 0em 0em 0em 0em;
	padding: 0.2em 0em 0.2em 0em;
	width: 90%;
}

div.inputbox input.textbox, div.inputbox textarea.textbox
{
	margin: 0em 0em 0em 0em;
	width: 90%;
}

div.inputbox textarea.textbox
{
	height: 4em;
}

div.inputbox textarea.largetextbox
{
	height: 9em;
}

.inputbox select
{
	margin: 0em 0em 0em 0em;
	width: 90%;
}
.inputbox ul
{
	list-style-type: none;
	margin: 0;
	padding: 0;
}
.inputbox li
{
	margin-top: 0.5em;
	margin-bottom: 0.7em;
}
.inputbox li.short
{
	float: left;
	margin-right: 10px;
}
.inputbox li.long
{
	clear: left;
}
.inputbox li.text
{
	margin-bottom: 0;
}
.inputbox .button
{
	margin-top: 1em;
}
.inputbox .basebutton
{
	margin-top: 2em;
}

/* Infobox */

div.infobox
{
	padding: 0.2em 0.5em 0.7em 0.5em;
	background-color: #f8f8f8;
	border: 1px solid #ccc;
	margin: 1em 1em 1em 0;
	width: 31em;
}
div.infobox span
{
	display: block;
	margin-bottom: 0.3em;
	font-weight: bold;
}

/* Buttonbox */

div.buttonbox
{
	padding: 0.2em 0.5em 0.2em 0.5em;
	background-color: #f8f8f8;
	border: 1px solid #ccc;
	margin: 1em 0 1em 0;
}

/* GridView */

table.gridview
{
	margin: 0.5em 0 0.5em 0;
	border-collapse: collapse;
	border-style: none none none none;
	background-color: #fff;
}

table.gridview th, table.gridview td
{
	border-width: 0px 1px 0px 1px;
	padding: 0px 3px 0px 3px;
	border-style: none solid none solid;
	border-color: #fff #fff #fff #fff;
	vertical-align: top;
}

/*
table.gridview .editrow,
table.gridview .row 
*/

table.gridview caption
{
	background-color: #444;
	color: #fff;
	padding: 2px 0.5em 2px 0.5em;
	margin-top: 0.5em;
}

table.gridview .footer, table.gridview .header
{
	background-color: #eee;
}

table.gridview .footer td
{
	border-top-style: solid;
	border-top-color: #000;
	border-top-width: 1px;
	font-weight: bold;
}

table.gridview .alternaterow
{
	background-color: #eee;
}

table.gridview .alternaterow:hover
{
	background-color: #eed;
}

table.gridview .row:hover
{
	background-color: #ffd;
}

table.gridview .selectedrow a, table.gridview .selectedrow
{
	background-color: #888;
	color: #fff;
}

table.gridview .inactiverow
{
	color: #888;
}

table.gridview .errorrow
{
	background-color: #ff0;
}

table.gridview .inactiverow td
{
	text-decoration: line-through;
}

table.gridview a
{
	text-decoration: none;
	color: #000;
}

table.gridview a:hover
{
	text-decoration: underline;
}

table.gridview tr.pager table
{
	margin-top: 5px;
}

table.gridview input
{
	margin-top: 0.2em;
	margin-bottom: 0.2em;
}

table.gridview tr.selected
{
	background-color: #99ff33;
}

ul.activities
{
	list-style-type: none;
	margin: 0;
	padding: 0;
	width: 600px;
}
ul.activities li.long
{
	clear: left;
}
ul.activities li.short
{
	float: left;
	width: 440px;
}
ul.activities li.separator
{
	clear: left;
	width: 130px;
	margin-right: 30px;
}
ul.activities .button
{
	margin-top: 10px;
}

input .textbox
{
	margin-bottom: 20px;
}

.printtable
{
	width: 100%;
}

.printtable .photo
{
	width: 60px;
}

.printtable .info
{
	font-size: 15px;
	font-weight: bold;
	width: 160px;
}

.printtable .info p
{
	margin: 0 0 5px;
}

.printtable .date, .printtable .time
{
	width: 50px;
}

.printtable table
{
	width: 100%;
}

.printtable td
{
	border-bottom: 1px solid #000000;
	padding: 10px 0;
}


/* Inställningar för utskrift */
@media print
{
	#PageLeftSideBar
	{
		display: none !important;
	}
	#PageContent
	{
		width: 100%;
		margin: 0 0 0 0;
	}
	.noprint
	{
		display: none;
	}

	.printtable
	{
		font-size: 75%;
	}

	.printtable a
	{
		color: #000000;
		text-decoration: none;
	}
}

