html, body {
	margin: 0;
	padding: 0;
}
body {
	background-color:#f7f7f7;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.78em;
	color: #000;
	line-height: 1.3em;
	width: 100%;
	max-width: 240px;
/*	width: 174px;
	*/
}
a.highlight {
  text-decoration: none;
  color:#FF0000;
}

a.highlight:hover {
  color:#FF0000;
}
/** linkit **/

#content a[name] {
	color: black !important; 
	background-color: transparent !important;
} /* CSS2-compliant browsers implement a:hover also for named anchors; in order to avoid a:hover to change properties of named anchors they must define as important; in this solution a:hover should not use the !important rule */
#main a:link {
	color: #404F76; 
	text-decoration: underline !important;
} /* unvisited link */
#content a:visited {
	color: #A0A86E; 
	text-decoration: underline;
} /* visited link */
#main a:hover {
	color: #303B59; 
	text-decoration: none !important;
} /* the mouse "hovers" over the link */
#main a:visited:hover{
	color: #787E53; 
	text-decoration: none !important; 
}
#main a:active {
	text-decoration: none; 
	background-color: white;
} /* according to CSS2-specification :active should work between on-mouse-down and on-mouse-up events but according to CSS1 the link stays marked until the user click with mouse to another place */
a:link:hover {
	text-decoration: none !important; 
}
a:visited:hover {
	text-decoration: none !important; 
}
a:hover {
	text-decoration: none !important; 
}

#lang {
	position: absolute;
	left: 120px;
	top: 4px;
}
#lang ul {
	list-style: none;
	display: inline;
}
#lang li {
	float:right;
	margin: 2px;
	padding:0 0 2px 0;
	border: 1px solid #404F76;
	color: #404F76;
	background-color: #C3D3DD;
}
#lang a {
	padding:2px 2px 2px 2px;
	color: #404F76;
	background-color: #C3D3DD;
	text-decoration: none;
	font-weight: bold;
}
#lang a:hover, #lang li:hover {
	background-color: #fff;
}

#header h1 {
	font-size: 1em;
	margin: 0;
	padding: 0;
	background-image: url('../images/logo.gif');
	background-position: 2px 3px;
	background-repeat: no-repeat;
	background-color: #404F76;
	display: block;
	width: 100%;
	height: 25px;
	overflow: hidden;
	z-index: 5;
}
#header h1 a {	
	display: block;
	height: 30px;
	width: 120px;
	z-index: 5;
	text-decoration: none !important;
}
#header h1 a span {
	visibility: hidden; 
}
#locationBar0 {
	clear: both;
	margin: 4px 0 8px 0;
	padding: 0px 0px 0px 20px !important;
	display: block;
	color: #42739C;
	background-image: url(../images/icons/location.gif);
	background-position: left top;
	background-repeat: no-repeat;
	background-color: #f7f7f7;
	font-size: 0.8em;
	font-family: Tahoma, Arial, sans-serif;
	line-height: 14px;
}
#locationBar0 .skip {
	display:none;
}
#locationBar {
	display: none;
}
.skip {
	padding: 10px 0 10px 0;
	font-size: 1em;
}
.siirry {
	margin: 20px 0 0 0;
	padding: 0 0 0 10px;
	background-image: url(../images/icons/pikkunuoli.gif);
	background-position: left top;
	background-repeat: no-repeat;
	font-size: 0.8em;
	float: right;
}
#helpBar {
	position: absolute;
	left: 0;
	top: 26px;
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
	border-bottom: 1px solid black;
	font-family: Tahoma, Arial, sans-serif;
}

#helpBar a {
	font-size: .9em;
	color: black;
	text-decoration: none !important;
	padding: 2px;
}
#helpBar a:hover {
	color: white;
	background-color: #ccc;
}
#helpBar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
#helpBar li {
	display: inline;
}
#mainNavigation {
	clear: both;
	list-style: none;
	width: 90%;
	margin: 10px 0 0 4px;
	font-size: 0.8em;
	font-family: Tahoma, Arial, sans-serif;
}
#mainNavigation li a {
	display: block;
	margin: 1px 0 1px 0;
	padding-left: 2px;
	border-left: 1px solid #e5e5e5;
	border-top: 1px solid #e5e5e5;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
	text-decoration: none;
	color: black;
	text-transform: uppercase;
}
#mainNavigation li a:hover {
	display: block;
	margin: 1px 0 1px 0;
	border-left: 1px solid black;
	border-top: 1px solid black;
	border-right: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
	background-color: #ccc;
	text-decoration: none;
	color: black;
	font-weight: bolder;
	text-transform: uppercase;
}
#main {
	position: relative;
}
h2 {
	font-size: 1.2em;
	margin-bottom: 0px;
}
p {
	margin-top: 2px;
	margin-bottom: 2px;
}
.quickSearchBox input {
	width: 75%;
}
.quickSearchBox input[type=submit] {
	width: 40px;
}
ul.sub {
	list-style: none;
	text-align: right;
	margin: 2px 2px 0 0;
}

ul.sub a, dl.news dd a {
	background-image: url("../images/icons/pikkunuoli.gif");
	background-position: 100% 0.5em;
	background-position: right center;
	background-repeat: no-repeat;
	padding-right: 12px !important;
	display: block;
}
ul.sub li {
	padding: 0 0 0 0;
}
/* dokumenttilistaus */
dl.docList {
	clear: both;
	margin: 0;
}
dl.docList dt.doc {
	clear: both;
	padding: 10px 0 0 0;
	font-weight: bold;
}
dl.docList dd.desc {
	margin: 0 0 0 30px;
	clear: both;
}
dl.docList dd.links {
	margin: 0 0 0 30px;
	clear: both;
}
dl.docList dd.links a, dl.docList dt a, dl.smur dd a {
	background-position: left center;
	background-repeat: no-repeat;
	font-weight: normal !important;
}
dl.docList dd.links a.smur, dl.docList dt a.smur, dl.smur dd a.smur {
	background-image: url("../images/icons/smur.png");
	padding: 0 10px 0 16px;
	float: left;
	height: 18px;
	clear: both;
}
dl.docList dd.links a.alkup {
	background-image: url("../images/icons/alkup.gif");
	padding: 0 10px 0 16px;
	float: left;
	height: 24px;
	text-align: center;
}
dl.docList dd.links a.pdfFI {
	background-image: url("../images/icons/pdf_fi.gif");
	padding: 0 10px 0 22px;
	float: left;
	height: 24px;
}
dl.docList dd.links a.pdfSV {
	background-image: url("../images/icons/pdf_sv.gif");
	padding: 0 10px 0 22px;
	float: left;
	height: 24px;
}
dl.docList dd.links a.pdfEN {
	background-image: url("../images/icons/pdf_en.gif");
	padding: 0 10px 0 22px;
	float: left;
	height: 24px;
}
dl.docList dd.links a.pdfDE {
	background-image: url("../images/icons/pdf_de.gif");
	padding: 0 10px 0 22px;
	float: left;
	height: 24px;
}
dl.docList dd.links a.pdfFR {
	background-image: url("../images/icons/pdf_fr.gif");
	padding: 0 10px 0 22px;
	float: left;
	height: 24px;
}
dl.docList dd.links a.pdfES {
	background-image: url("../images/icons/pdf_es.gif");
	padding: 0 10px 0 22px;
	float: left;
	height: 24px;
}
/** säädösten tyylit **/

div#laki-alkup em, div#laki-ajantasa em {
	font-style: italic;
}
div#laki-alkup strong, div#laki-ajantasa strong {
	font-weight: bold;
}
.center {
	text-align: center;
}
div#laki-alkup h3, div#laki-alkup h4, div#laki-alkup h5 {
	text-align: center;
}
div#laki-ajantasa h3, div#laki-ajantasa h4, div#laki-ajantasa h5 {
	text-align: left;
}
div#laki-alkup h5, div#laki-ajantasa h5 {
	padding:2px 2px 2px 0;
	margin: 0;
}
div#laki-alkup h4, div#laki-ajantasa h4 {
	padding:6px 6px 6px 0;
	margin:0 0 0 0;
}
div#laki-alkup .uusi:after {
	content: '*';
}

p.resultPages {
	margin: 0;
	clear: both;
	padding: 10px 0 10px 0;
}
ul.resultPages {
	list-style: none;
	padding: 0 0 10px 0;
	margin: 0;
	float: left;
}

ul.resultPages li {
	display: block;
	float: left;
	width: 7em;
}

.versionLinks ul {
	list-style: none;
	margin: 0;
	padding: 0 0 20px 0;
}
.versionLinks li {
	float: right;
	margin: 0 0 0 10px;
	padding:0;
}
.ajantasa-fi, .alkup-fi, .ajantasa-sv, .alkup-sv, .eka, .vika, .clean, .alkuun {
	background-position: left top;
	background-repeat: no-repeat;
	padding: 0 0 0 18px;
	float: left;
}
.ajantasa-fi {
	background-image: url("../images/icons/ajantasa_fi.gif");
	height: 28px;	
}
.alkup-fi {
	background-image: url("../images/icons/alkup_fi.gif");
	height: 28px;	
}
.ajantasa-sv {
	background-image: url("../images/icons/ajantasa_sv.gif");
	height: 28px;	
}
.alkup-sv {
	background-image: url("../images/icons/alkup_sv.gif");
	height: 28px;	
}
.eka {
	background-image: url("../images/icons/eka.gif");
	height: 18px;	
}
.vika {
	background-image: url("../images/icons/vika.gif");
	height: 18px;	
}
.clean {
	background-image: url("../images/icons/clean.gif");
	height: 18px;	
}
.alkuun {
	background-image: url("../images/icons/alkuun.gif");
	height: 18px;	
}
.korttiFi, .korttiSv {
	background-image: url("../images/icons/smur.png");
	background-position: left center;
	background-repeat: no-repeat;
	padding: 0 10px 0 18px;
	float: left;
	height: 18px;
}
div#laki-ajantasa, div#laki-alkup, div#smur, div#oikeus-flot, div#oikeus-mao, div#oikeus-feit, div#oikeus-fets, div#oikeus-vako {
	clear: both;
	padding-bottom: 20px !important;
}
/** haku **/
.hakuosuma {
	background-color: #525083;
	color: #fff;
	margin: 0 4px 0 4px;
	padding: 1px 3px 1px 3px;
}
a.highlight {
/*	background-position: left top;
	background-repeat: no-repeat;
	padding: 0 0 0 18px;
	float: left;
	background-image: url("../images/icons/previous.gif");
*/
	text-decoration: none !important;
	font-size: 1.1em;
	color: #B87A00 !important;
	font-weight: bold;
}
a.highlight span {
	font-weight: normal;
	font-size: 0.9em;
}
/** smur-kortin tyylit **/

dl.smur, dl.muutokset, dl.kumotut, dl.nojalla {
	margin: 0;
	padding: 0 0 1.4em 0;
	clear: both;
}
dl.smur dt {
	position: relative;
	left: 0;
	top: 1.2em;
	width: 5em;
	font-weight: bold;
}
dl.smur dd, dl.muutokset dd {
/*	border-left: 1px solid #000;
	padding: 0 0 0 .5em;*/
	margin: 0 0 0 5.5em;
	clear:both;
}
dl.smur dd.links, dl.muutokset dd.links, dl.kumotut dd.links, dl.nojalla dd.links {
	height: 0.5em;
}
dl.smur dd.links a.alkup, dl.muutokset dd.links a.alkup {
	background-image: url("../images/icons/alkup.gif");
	padding: 0 10px 0 16px;
	margin: 0;
	float: left;
	height: 20px !important;
	background-position: left center;
	background-repeat: no-repeat;
	font-weight: normal !important;
}
dl.smur dd.links a.ajantas {
	background-image: url("../images/icons/ajantas.gif");
	padding: 0 10px 0 16px;
	float: left;
	height: 20px !important;
	background-position: left center;
	background-repeat: no-repeat;
	font-weight: normal !important;
}
dl.muutokset dt {
	position: relative;
	left: 0;
	top: 1.5em;
	width: 5em;
	font-weight: bold;
	margin: 0;
	padding: 0;
}
dl.kumotut dt, dl.nojalla dt {
	position: relative;
	left: 0;
	top: 1.1em;
	width: 5em;
	font-weight: bold;
	padding: 0;
	margin: 0;
}
dl.kumotut dd, dl.nojalla dd {
	margin: -2px 0 0 5.5em;
	padding: 0;
	clear:both;
}
dl.smur dd a.smur, dd.links a.smur {
	background-image: url("../images/icons/smur.png");
	padding: 0 10px 0 16px;
	float: left;
	height: 18px !important;
	background-position: left center;
	background-repeat: no-repeat;
	font-weight: normal !important;
	height: 18px;
}
dl.smur dd.kumottu {
	position: relative;
}
dl.smur dd a.smur {
	display: block;
	position: absolute;
	left: 15em;
	top: 0;
}
div#smur h3 {
margin:0;
padding:1em 0 0 0;
font-size: 1.2em;
}
div#smur h3 a {
font-size: 1em;
}
ul.anchors {
  margin: 0 0 0 0;
  padding: 0;
  list-style: none;
}
ul.anchors li a {
	background-image: url("../images/icons/alas.gif");
	padding: 0 10px 0 16px;
	background-position: left center;
	background-repeat: no-repeat;
}

dl.sopimusviite {
	margin: 2em 0;
	padding: 0;
}
dl.sopimusviite dt {
	position: relative;
	left: 0;
	top: 1.1em;
	width: 5em;
	font-weight: bold;
}
dl.sopimusviite dd {
/*	border-left: 1px solid #000;
	padding: .5em;*/
	margin: 0 0 0.2em 5.5em;
	clear: both;
}
dl.sopimusviite dd.nimike {
	margin-bottom: 1em;
}
dl.sopimusviite dd ul {
	list-style: none;
}
dl.osapuolet dt, dl.varaumat dt {
	font-weight: bold;
}
div#sopsviite h3 {
	clear: both;
}

/** oikeustapausten tyylit **/
table, table td {
	margin: 0;
	padding: 0;
	line-height: 1em; 
}
table th {
	margin: 0;
	padding-right: 10px;
}

/* asialuokituslistaus */
dl.asialuokitus dt {
	float: left;
	clear: none;
/*	border: 1px solid;*/
}

dl.asialuokitus dd {
	display: block !important;
	margin-left: 10em;
/*	border: 1px solid;*/
}

dl.sops {
	margin-bottom: .4em;
}
dl.sops dt {
	margin-top: 0.4em;
}
dl.sops dd {
	margin-left: 0;
}
/** säädökset: sivu-, palsta- ja katkoviivat **/
hr {
	text-align: center;
}
hr.sivu {
	border: none 0;
	border-top: 1px dashed #000;
	background-color: white; 
	color: white;
	width: 80px;
	height: 1px;
}
hr.palsta {
	border: none 0;
	border-top: 1px dashed #000;
	background-color: white; 
	color: white;
	width: 60px;
	height: 1px;
}
hr.katko {
	border: none 0;
	border-top: 1px dashed #000;
	background-color: white; 
	color: white;
	width: 200px;
	height: 1px;
	text-align: center;
}

div#laki-alkup .uusi {
	font-style: italic;
	font-weight: bold;
}
div#laki-alkup .vanha {
	font-size: 0.9em;
}
div#laki-alkup .oikte {
	font-style: italic;
}
div#laki-alkup em, div#laki-ajantasa em {
	font-style: italic;
}
div#laki-alkup strong, div#laki-ajantasa strong {
	font-weight: bold;
}
.center {
	text-align: center;
}
div#laki-alkup h3, div#laki-alkup h4, div#laki-alkup h5 {
	text-align: center;
}
div#laki-ajantasa h3, div#laki-ajantasa h4, div#laki-ajantasa h5 {
	text-align: left;
}

/* osiolistaus */
dl.sectionList {
	margin: 0;
	padding: 10px 0 10px 0;
	background-image: url(images/etusivu.png);
}
dl.sectionList dt {
	font-weight: bold;
	padding-left: 0;
}
dl.sectionList dt, dl.sectionList dd {
	margin-left: 0;
	margin-bottom: 10px;
}
/* vuosilistaus */
ol.yearTOC, ul.resultPages {
	list-style: none;
	padding-left: 0px;
	margin-left: 0;
}
ol.yearTOC li, ul.resultPages li {
	list-style: none;
	display: inline;
}

p.asiasanat {
	background-color: #f8f8f8;
	padding: 4px;
	font-family: Tahoma;
	font-size: 0.9em;
	text-transform: uppercase;
	line-height: 1em; 
}

/** lomakkeet **/
#content fieldset {
	border: 0;
	border-top: 1px solid #000;
	padding:10px;
}
#content fieldset.palaute {
	border: 0;
	padding:10px;
	margin: 10px;
}
legend {
  font-weight: bold;
  color: #000;
}

#content fieldset.labels label {
	display: block;
	float: left;
	width: 15em;
	text-align: right;
	margin: 0 1em 0.5em 0;
	cursor:pointer;
}
#content fieldset.labels br, #content fieldset.palaute br {
	clear: both !important;
}
#content fieldset.labels div {
	float: left;
	margin-bottom: 0.2em;
}
#content fieldset.labels div label {
	display: inline !important;
	width: auto !important;
	float: none !important;
}

#content fieldset.palaute label {
	display: block;
	float: left;
	width: 8em;
	text-align: right;
	margin: 0 1em 0.5em 0;
	cursor:pointer;
}
input:focus, textarea:focus, option:focus {
 border: 2px solid #000;
}
