* { margin: 0; padding: 0;}

html { height: 100%; }

body {
  height: 100%;
  background: #304c88 url('../images/bg.gif') repeat-x;
  color: #505050;
  font: 12px Arial,sans-serif;
}

h1 { color: #333; font: 22px Arial,sans-serif; }
h2 { color: #c3343e; font: 20px Arial,sans-serif; }
h3 { margin-top: 10px; color: #c3343e; font: bold 12px Arial,sans-serif; }
h4 , h5 { margin-top: 10px; }

p { padding: 5px 0 10px 0; line-height: 130%; }

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

img { border: 0; }

a:link, a:active, a:visited {
  color: #002c62;
  font-weight: bold;
  font-size: 11px;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Layout */

#container {
  width: 955px;
  height: 100%;
  margin: 0 auto;
  background-color: #fff;
}

#container-inner { background-color: #fff; }

#navbar {
  float: left;
  width: 230px;
}

#wrapper {
  float: left;
  width: 724px;
  background: url('../images/shadow.png') no-repeat left 14px;
  border-left: 1px solid #dedede;
}

#top-border-top {
  height: 14px;
  background: #314d89 url('../images/top_border.png') repeat-x;
}

#logo {
  width: 227px;
  height: 56px;
  float: left;
  margin: 15px 0 0 30px;
  display: inline; /* fix IE6 double margin bug */
  background: url('../images/logo.png') no-repeat top left;
}

#logo a { display: block; width: 227px; height: 56px; }
#logo span { display: none; }

#top-border-bottom {
  height: 2px;
  margin: 80px 20px 0 20px;
  border-top: 1px solid #c3343e;
  border-bottom: 4px solid #c3343e;
}

#content {
  float: left;
  width: 435px;
  margin-left: 30px;
  display: inline; /* fix IE6 double margin bug */
  padding: 20px 0 0 0;
  border-right: 1px solid #dedede;
}

#content .module {
  padding: 10px 30px 10px 0;
}

#sidebar {
  float: left;
  width: 235px;
}

#kortit {
  float: left;
  width: 670px;
  margin-left: 30px;
  display: inline; /* fix IE6 double margin bug */
  padding: 20px 0 0 0;
}

#sidebar .module {
  padding: 25px 0 20px 25px;
  background: url('../images/shadow.png') no-repeat top left;
}

#halytys {
  height: 31px;
  margin: 0 0 10px 0;
  padding: 1px 0 0 36px;
  background: url('../images/halytys.png') no-repeat center left;
}

#footer {
  margin: 20px 20px 0 20px;
  padding: 10px 0;
  color: #a1a1a1;
  font-size: 10px;
  text-align: center;
  border-top: 1px solid #dedede;
}

#footer a { color: #a1a1a1; font-weight: normal; }

/* Navigation */

#main-nav {
  margin: 40px 20px 20px 20px;
  list-style-type: none;
  border-top: 1px dotted #cacaca;
}

#main-nav li { border-bottom: 1px dotted #cacaca; }

#main-nav li a:link, #main-nav li a:active, #main-nav li a:visited {
  display: block;
  padding: 7px 10px 7px 37px;
  background: #fff url('../images/anchor_blue.png') no-repeat 14px center;
  color: #2f4b86;
  font-weight: normal;
  font-size: 12px;
}

#main-nav li a:hover,
#main-nav li.selected a {
  background: #2f4b86 url('../images/anchor_white.png') no-repeat 14px center;
  color: #fff;
  text-decoration: none;
}

#top-nav {
  float: right;
  margin: 30px 20px 0 0;
  display: inline; /* fix IE6 double margin bug */
  list-style-type: none;
}

#top-nav li { float: left; }

#top-nav li a {
  display: block;
  margin: 0 10px;
  padding-top: 17px;
  font-size: 10px;
}

#top-nav #smps { background: url('../images/anchor_blue.png') no-repeat center 5px; }
#top-nav #contact { background: url('../images/contact.png') no-repeat center 0px; }
#top-nav #sitemap { background: url('../images/sitemap.png') no-repeat center 2px; }
#top-nav #print { background: url('../images/print.png') no-repeat center 4px; }
#top-nav #fi { background: url('../images/fi.png') no-repeat center 4px; }
#top-nav #sv { background: url('../images/sv.png') no-repeat center 4px; }

/* Misc */

/* reset list elements for content */
#content ul, #content ol { margin: 10px 15px; }
#content ul ol, #content ul ul, #content ol ol, #content ol ul { 	margin: 0 15px; }
#content ul li, #content ol li { margin-left: 10px; }

#content b { color: #c3343e; }

.title {
  margin: 5px 0 10px 0;
  background: url('../images/pixel_red.png') repeat-x center center;
}
.title h2 { display: inline; padding-right: 7px; background: #fff; }

.border-top { border-top: 1px solid #dedede; }
.border-left { border-left: 1px solid #dedede; }
.border-right { border-right: 1px solid #dedede; }

a.readon {
  padding-right: 12px;
  background: url('../images/arrow.png') no-repeat center right;
}

.banner { margin-bottom: 10px; text-align: center; }

.form { margin: 4px 0; }
.form label { display: block; float: left; width: 100px; }
.form input[type="text"], .form textarea, .form select {
  width: 295px;
  padding: 2px;
  background: #f4f4f4;
  border: 1px solid #dedede;
}
.form-buttons { float: right; margin: 5px 0; }
.form-buttons input[type="submit"], .form-buttons input[type="reset"], a.button {
  width: 76px;
  height: 25px;
  background: url('../images/button_bg.png') no-repeat center center;
  color: #fff;
  font-weight: bold;
  font-size: 11px;
  border: 0;
}
a.button {
  display: block;
  padding-top: 9px;
  text-align: center;
  text-decoration: none;
}

table.list { margin: 10px 0; border-collapse: collapse; }
table.list tr.row1 { background: #f4f4f4; }
table.list td {
  padding: 5px 10px;
  border-top: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
}

.thumb img { float: left; margin: 9px; border: 1px solid #2f4b86; }

.clear { clear: both; }

.nyt { 
background-color: #FF9F9F; }

.knyt { border: 1px solid #2f4b86; }

.tamapaiva { 
border: 1px solid #6FFF76; }

.seuraavapaiva { 
background-color: #9ff; }

.maksettu { 
background-color: #6FFF76; }

.laskutettu { 
background-color: #FFCC00; }

.maksamatta { 
background-color: #FF9F9F; }

.blackbold { color: #000000; }

.listtitle {
        background-color: #094197;
        font-family:arial,helvetica,verdana;
        font-size: 11px;
        color: #ffffff;
	text-decoration: none;
}