body {
margin: 5px 0 0;
padding: 0;
background-color: #f1f1f1;
font-family: Verdana, Arial, Helvetica, sans-serif;
width: 100%;
min-width: 600px;
height: 100%;
font-size: 100%;
}

div#wrap {
margin:0 auto;
position: relative;
width: 998px;
padding: 0;
background: #fff url(../gfx/wrap_bg2.jpg) no-repeat bottom center;
border: 1px solid #20739d;
border-bottom: 5px solid #20739d;
}

#header {
width: 998px;
height: 52px;
background: #20739d;
padding: 0;
}


#path {
float:left;
margin: 5px 0px;
padding: 0 0 0 15px;
height: 19px;
font-size: 75%;
width: 968px;
}

#main {
float: right;
width: 75%;
margin: 2px 0 0 0;
padding:  0 10px 0 10px;
font-size: 85%;
}

#tuote_rekisteri {
float: right;
width: 80%;
margin: 2px 0 0 0;
padding:  0 10px 0 10px;
font-size: 55%;
}

#banner {
float: right;
width: 160px;
margin: 21px 0px 0px 0px;
padding: 0px 5px 0px 5px;
text-align: center;
}

#sidebar {
float: left;
width: 150px;
margin: 0;
padding: 0 0 80px 0;
}

#footer {
clear: both;
background: transparent;
margin: 0;
font-size: 65%;
color: #fff;
height: 33px;
text-align: center;
border-bottom: 1px solid #fff;
}

#footer_text a {
color: #828282;
height: 23px;
text-decoration: none;
}

#footer_text {

clear: both;
background: transparent;
margin-top: 5px;
font-size: 65%;
color: #828282;
height: 33px;
text-align: center;
}

#footer a {
color: #fff;
height: 23px;
text-decoration: none;
}

#prop {
float: right;
width: 1px;
height: 430px;
}

#top_nav_container {
margin: 0;
padding: 0;
font-size: 75%;
border-bottom: 3px solid #20739d;
}

#top_nav_container ul {
text-align: center;
margin: 0;
padding: 0;
color: #494949;
background: #EBEBEB;
line-height: 23px;
font-size: 93%;
font-weight: bold;
}
#top_nav_container li {
display: inline;
margin: 0;
}
#top_nav_container li a:link, #top_nav_container li a:visited {
margin: 0;
padding: 5px 25px 5px 25px;
text-decoration: none;
color: #494949;
background: transparent;
}

#top_nav_container li a:hover {
color: #000;
background: #fff;
}

ul#navlist_sidebar {
list-style: none;
margin: 3px 0 0 10px;
padding: 0;
border: none;
color: #333;
font-size: 65%;
width: 100%;
_width: 160px;
}


#navlist_sidebar li {
border-left: 4px solid #597E30;
background: #EBEEEA;
margin: 0 0 1px 0;
}

#navlist_sidebar li a {
display: block;
padding: 6px 5px 5px 0.5em;
color: #3D3D3D;
text-decoration: none;
width: 100%;
font-weight: bold;
_height: 1%;
}

ul#navlist_sidebar_login {
list-style: none;
margin: 3px 0 0 10px;
padding: 0;
border: none;
color: #333;
font-size: 65%;
width: 100%;
_width: 160px;
}

#navlist_sidebar_login li {
border-left: 4px solid #597E30;
background: #EBEEEA;
margin: 0 0 1px 0;
}

#navlist_sidebar .header a {
color: #666;
background: #d5d5d5;
text-decoration: none;
font-weight: bold;
}

#navlist_sidebar .header a:hover {
background: #d8d8d8;
}

html>body #navlist_sidebar li a { width: auto; }

#navlist_sidebar li a:hover {
background: #f2f2f2;
}

div#fns {
margin:0 auto;
position: relative;
width: 712px;
padding: 0;
font-size: 90%;
text-align: right;
}

#fns a {
position: absolute;
right: 0;
text-decoration: none;
color: #a1a09c;
margin: -11px 0 0 0;
}

#print_tool {
margin: 8px 0 2px 731px;
padding: 0;
height: 19px;
}

#print_tool a {
margin: 0;
padding: 0;
text-decoration: none;
}

#print_tool a img {
margin: 0;
padding: 0;
border: 0;
}

h1, h2, h3 {
font-family: Verdana, Arial, Helvetica, sans-serif;
margin: 0;
color: #597E30;
}

h1 { font-size: 140%; font-weight: normal; }

h2 { font-size: 120%; }

h3 { font-size: 100%; }

p, #main li {
font-size: 85%;
line-height: 125%;
}

p p, #main li li { font-size: 100%; }

a:link {
color: #597E30;
text-decoration: underline;
}
a:visited {
color: #597E30;
}
a:hover {
color: #597E30;
text-decoration: none;
}
a:active {
color: #597E30;
}

a.login:link, a.login:visited {
text-decoration: none;
color: #8C8C8C;
}

a.msg_ok:link, a.msg_ok:visited {
color: #077C0E;
font-weight: bold;
text-decoration: underline;
}

a.msg_ok:hover, a.msg_ok:active {
color: #077C0E;
font-weight: bold;
text-decoration: none;
}

a.msg_err:link, a.msg_err:visited {
color: #A01C2B;
font-weight: bold;
text-decoration: underline;
}

a.msg_err:hover, a.msg_err:active {
color: #A01C2B;
font-weight: bold;
text-decoration: none;
}

a.msg_neutral:link, a.msg_neutral:visited {
color: #000000;
font-weight: bold;
text-decoration: underline;
}

a.msg_neutral:hover, a.msg_neutral:active {
color: #000000;
font-weight: bold;
text-decoration: none;
}

a.sitemap:link, a.sitemap:visited { color: #000000; }

th {
font-size: 75%;
font-weight: bold;
background: #EFEFEF;
}
hr
{
border: none;
border-top: 1px solid #D7D5BE;
width: 99%;
height: 1px;
margin: 0;
padding: 0;
background: #fff;
}

/* formien tyylit */
.form_caption {
font-weight: bold;
background: #fff;
}
.form_field {
width: 500px;
}
.user_form_header {
font-weight: bold;
padding: 3px;
}
.webpage_form_text {
font-weight: bold;
background: #EFEFEF;
font-size: 85%;
}
.webpage_form_field_date {
width: 200px;
}
.webpage_form_field {
width: 500px;
}
.form_general {
font-weight: bold;
background: #EFEFEF;
}
.login_field {
background: #fff;
border: 1px solid #D5D5D5;
width: 140px;
}

.webpage_form_data_field {
background: #FAFAFA;
}

.user_form_header {
font-weight: bold;
}
.user_textfield {
width: 200px;
}
.user_textfield_long {
width: 400px;
}

/* painikkeet */
.btn_green_button, .btn_red_button {
color: #fff;
border: 2px solid #fff;
width: 150px;
height: 22px;
margin:1em 0 0 0;
font-size:80%;
}
.btn_green_button {
background:#077C0E;
}
.btn_red_button {
background:#A01C2B;
}

/* palautetekstit */
.text_green_feedback {
font-size:100%;
font-weight: bold;
color: #077C0E;
}
.text_red_feedback {
font-size:100%;
font-weight: bold;
color: #A01C2B;
}
.text_black_feedback {
font-size:100%;
font-weight: bold;
color: #000000;
}

#feedback_form input.txt {
width: 300px;
}

#feedback_form textarea {
width: 300px;
height: 250px;
}

/* muuta tauhkaa */
.sitemap, .search_result { line-height: 1.6em; }

#sitemap ul {
margin: 0;
padding-left: 13px;
}
.small_italic {
font-size: 80%;
font-style: italic;
}
.calendar { border: 1px solid #E0E0E0; }

.td_form_caption {
background-color: #F7F7F7;
padding: 3px;
}

ul.news, .news ul {
margin: 1em 0 0 0;
padding: 0;
}
.news h2 {
font-size: 100%;
color: #CD0000;
margin: 0;
padding: 4px 0;
background: url(../gfx/dotted_line_h.gif) repeat-x bottom left;
}
.news li {
margin: 0 0 0.7em 0;
padding: 0;
clear: both;
list-style-type: none;
}
.news a:link {
color: #114455;
}
.news a:visited {
color: #114455;
}
.news .date {
background: #20739d;
border-right: 1px solid #EBEEEA;
border-bottom: 1px solid #EBEEEA;
float: left;
text-align: center;
margin: 0 8px 5px 0;
line-height: 1.1em;
padding: 2px;
font-size: 80%;
font-weight: bold;
width: 80px;
white-space: nowrap;
color: #fff;
}

.field_caption {
background-color: #EFEFEF;
font-weight: bold;
padding: 4px;

}
.field_text {
background-color: #FBFBFB;
padding: 2px;
font-size: 90%;
}
.field_field {
width: 490px;
}

form#search_form {
background: #fff url(../gfx/bg_search.gif) no-repeat;
margin: 0 0 0 10px;
padding: 0 0 8px 0;
width: 170px;
}

#search_form input.txt {
background-color: #fff;
border: 1px solid #9EB4BF;
margin-right: 1px;
margin-left: 5px;
padding: 0 0 0 5px;
width: 100px;
}

#search_form input.btn {
color: #fff;
font-size: 70%;
font-weight: bold;
background-color: #597E30;
border: 1px solid;
border-color: #fff #424242 #424242 #fff;
height: 18px;
width: 42px;
margin: 4px 0 0 0;
}

table#tuoterekisteri {
border-bottom: 1px solid gray;
border-left: 1px solid gray;
border-collapse: collapse;
width: 100%;
}

table#tuoterekisteri td{
border-top: 1px solid gray;
border-right: 1px solid gray;
text-align: center;
}

tr#mainotsikkorivi td{
border-top: 1px solid gray;
border-right: 1px solid gray;
font-weight: bold;
width: 25%;
}


tr#otsikkorivi {
font-weight: bold;
}

textarea#tekstikentta {
border: 0;
overflow-x: hidden;
overflow-y: scroll;
background: transparent;
font-size: 125%;
}

pre#teksti{
font-size: 125%;
text-align: left;
white-space: pre-wrap;       /* css-3 */
white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
white-space: -pre-wrap;      /* Opera 4-6 */
white-space: -o-pre-wrap;    /* Opera 7 */
}

