body {
  margin: 6px;
  padding: 0px;
  font-size: 8pt;
  color: #000000;
  font-family: Verdana;
  background-color: #FFFFFF;
}

@media print{
  body {
    margin: 0px;
    padding: 0px;
    color: #000000;
    font-family: Verdana;
    background-color: #ffffff;
  }

}

table#paataulukko {
  background-color: #ffffff;
}

td.ylareuna {
  background-color: #8DAF90;
  color: #FFFFFF;
  vertical-align: middle;
  padding-left: 0.5em;
  text-align: left;
  font-weight: bold;
  font-size: larger;
}

td.valikko {
  background-color: #8DAF90;
  color: #FFFFFF;
  text-align: left;
  vertical-align: top;
}


/*  TAULUKOT  */

tr, td, th {
  vertical-align:top;
}

td {
  font-size: 8pt;
  color: #000000;
}

th {
  padding: 4px;
  font-size: 8pt;
  color: #FFFFFF;
  text-align: left;
  background: #8DAF90;
}

@media print{
  th {
    color: black;
    font-size: 10pt;
    font-weight: bold;
    font-family: Verdana;
    text-decoration: none;
  }
}


/* LINKIT */

/* LINKIT */

a:link, a:visited, a:active {
  color: #765;
  text-decoration: none;
}

a:hover {
  color: #765;
  text-decoration: underline;
}

td.ylareuna a:link,
td.ylareuna a:active,
td.ylareuna a:visited,
div#valikko a:link,
div#valikko a:active,
div#valikko a:visited {
  color: #FFFFFF;
  text-decoration: none;
}

td.ylareuna a:hover,
div#valikko a:hover {
  color: #765;
  text-decoration: underline;
}



th a:link, th a:visited, th a:active {
  color: #FFFFFF;
  text-decoration: none;
}
th a:hover {
  color: #765;
  text-decoration: underline;
}

@media print{
  a {
    font-size: 8pt;
    color: black;
    font-family: Verdana;
    text-decoration: none;
  }
}


/* LOMAKKEET */

fieldset {
  border: 1px solid black;
  margin-bottom: 1em;
}

fieldset th {
  background: silver;
  color: black;
}

fieldset legend {
  background: white;
  font-size: 1.2em;
  font-weight: bold;
}

input, textarea, select
{
  font-size: 8pt;
}

textarea {
  width: 100%;
  font-family: Verdana;
}

@media print{
  fieldset th {
    font-size: 8pt;
    color: black;
    font-family: Verdana;
    text-decoration: none;
    font-weight: normal;
  }

  textarea, input, select {
    font-size: 8pt;
    color: black;
    font-family: Verdana;
  }

  textarea {
    overflow: visible;
  }

  fieldset {
    width: 100%;
  }
}


/*  LUOKAT   */

.tasaaoikealle {
  text-align: right !important;
  padding-right: 1em;
}

.keskitetty {
  text-align: center;
}

.lihavoitu {
  font-weight: bold;
}

@media screen{
  .vainpaperille {
    display: none;
  }
}

@media print{
  .eipaperille {
    display: none;
  }
}


/*  MENUVALIKKO  */

table.menu td,
table.menu a {
  color: #FFFFFF;
  font-size: 8pt;
  text-decoration: none;
  font-weight: bold;
}

blockquote {
  margin: 0px;
  margin-left: 15px;
  padding: 0px;
}


/*  KALENTERI  */

table.kalenteri {
  font-size: 8pt;
  width: 100%;
  border-top: 1px solid #765;
  border-left: 1px solid #765;
}

table.kalenteri td,
table.kalenteri th {
  border-right: 1px solid #765;
  border-bottom: 1px solid #765;
}

table.kalenteri td {
  font-size: 10pt;
  text-align: left;
  vertical-align: top;
}

table.kalenteri a {
  color: #000000;
  text-decoration: none;
  font-weight: normal;
}

table.kalenteri a:hover {
  color: #000000;
  text-decoration: underline;
  font-weight: normal;
}


table.kalenteri td.varattuaika {
  background: #CCCCCC;
  text-align: left;
  vertical-align: top;
}

table.kalenteri th,
table.kalenteri td.kellonaika {
  padding: 2px;
  color: #765;
  font-size: 8pt;
  background-color: #BFBFBF;
  font-weight: normal;
}

table.kalenteri th.kellonaika,
table.kalenteri td.kellonaika {
  text-align: center;
}

table.kalenteri td.kellonaika a,
table.kalenteri th a {
  color: #765;
  font-size: 8pt;
  background-color: #BFBFBF;
  text-decoration: none;
  font-weight: normal;
}

table.kalenteri td.kellonaika a:hover,
table.kalenteri th a:hover {
  color: #000000;
  font-size: 8pt;
  background-color: #BFBFBF;
  text-decoration: underline;
  font-weight: normal;
}

table.kalenteri th.tanaan,
table.kalenteri th.sunnuntai {
  padding: 2;
  color: #000000;
  font-size: 8pt;
  background-color: #E5D576;
  text-decoration: none;
  font-weight: normal;
}

table.kalenteri th.tanaan a,
table.kalenteri th.sunnuntai a {
  color: #000000;
  background-color: #E5D576;
  font-size: 8pt;
  font-weight: normal;
}


table.kalenteri th.tanaan a:hover,
table.kalenteri th.sunnuntai a:hover {
  font-size: 8pt;
  color: #000000;
  background-color: #E5D576;
  font-weight: normal;
  text-decoration: underline;
}


/*  TEXTAREAN PITUUSVAROITUS  */

div.pituusvaroitus {
  margin: 2px;
  padding: 2px;
  display: block;
  width: 100%;
  border: 1px #ff0000 solid;
  background: #ffee99;
}

@media print{
  div.pituusvaroitus {
    display: none;
  }
}

div.pituusvaroitus strong {
  font-weight: bold;
  color: #ff0000;
}

div.pituusvaroitus input {
  overflow: visible;
}

.piilossa,
div.piilossa {
  display: none;
}


/*   MUUT   */

@media print{
  option.valkoinen {
    background: #ffffff;
    color: #ffffff;
  }
}

input.pakollinenhaku {
  background: #ffee99;
  color: #ff0000;
}

ul {
  margin-left: 20px;
  list-style-type: disc;
}
ul ul {
  list-style-type: circle;
}
ul ul ul {
  list-style-type: square;
}

li {
  padding-top: 0px;
  padding-bottom: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

div.cnt {
  font-weight: bold;
}

div.cnt input {
  border: 1px solid #df0029;
  color: #df0029;
  background: #cccccc;
}

span.kehitys {
  color: red;
  font-weight: bold;
}

/* LOMAKKEET */
table.ruudukko {
  border-top: 1px solid #444444;
  border-left: 1px solid #444444;
  font-size: 7pt;
}

table.ruudukko td,
table.ruudukko th {
  border-right: 1px solid #444444;
  border-bottom: 1px solid #444444;
  font-size: 7pt;
}
table.ruudukko2 {
  border-top: 1px solid #444444;
  font-size: 7pt;
}
table.ruudukko2 td,
table.ruudukko2 th {
  border-right: 1px solid #444444;
  border-bottom: 1px solid #444444;
  font-size: 7pt;
}


tr.row0
{
  background: #FBDE7D;
}

tr.row1
{
  background: #FFFFFF;
}


.kluokka1row0 { background-color: #ff8888; }
.kluokka1row1 { background-color: #ff8888; }
.kluokka2row0 { background-color: #D9DFEE; }
.kluokka2row1 { background-color: #ffffff; }
.kluokka3row0 { background-color: #CCCCCC; }
.kluokka3row1 { background-color: #ffffff; }
.kluokka4row0 { background-color: #D9DFEE; }
.kluokka4row1 { background-color: #ffffff; }
.kluokka5row0 { background-color: #FFFF88; }
.kluokka5row1 { background-color: #FFFF88; }
.kluokka6row0 { background-color: #FFF5E9; }
.kluokka6row1 { background-color: #FFF5E9; }


#pagetabs {
  width:100%;
  background:#ffffff;
  line-height:normal;
  }
#pagetabs ul {
  margin:0;
  padding:0;
  list-style:none;
  }
#pagetabs li {
  float:left;
  background:url("norm_left.gif") no-repeat left top;
  background-color: #BFBFBF;
  margin:0;
  padding:0 0 0 9px;
  }
#pagetabs a {
  float:left;
  display:block;
  background:url("norm_right.gif") no-repeat right top;
  padding:5px 15px 5px 6px;
  text-decoration:none;
  font-weight:bold;
  color:#765;
  }
/* Commented Backslash Hack
   hides rule from IE5-Mac \*/
#pagetabs a {float:none;}
/* End IE5-Mac hack */
#pagetabs a:hover {
  color:#333;
  }
#pagetabs #active {
  background-color: #E5D576;
  }
#pagetabs #active a {
  color:#000000;
  padding-bottom:5px;
}

#tooltipDiv {
  border: 1px solid #000000;
  padding: 2px;
  background: #ffffff;
}

#tooltipDiv #tooltip_header {
  font-weight: bold;
  text-align: left;
  color: #765;
  background: #BFBFBF;
  padding: 1px;
}

#tooltipDiv #tooltip_text {
  font-weight: normal;
  color: #000000;
  background: #ffffff;
  padding: 1px;
}
