body {
  font-family:Verdana,Arial,Sans-serif;
}

div.container {
/*  background-image:url('../images/vasen_laita.png');*/
  background-repeat:repeat-y;
  background-attachment: fixed;
  position:absolute;
  left:0px;
  top:0px;
  right:0px;
  width: 100%;
  _width: 101%;
}

div.yla_raami {
	/*font-family: Arial,Verdana;*/
  position: fixed;
  _position: absolute;
  top: 0px;
/*  _top: expression(eval(document.body.scrollTop));*/
  _top: expression( document.body.scrollTop + 'px');
  left: 0px;
  height: 60px;
  width: 100%;
  background-image: url('../images/taustapalkki.png');
  background-repeat: repeat-x; 
  background-color: black;
  color: lightgray;
/*  text-align: center;*/
  z-index: 100;
}

div.yla_raami h1 {
  color: #D3D3D3;
	font-weight: normal;
	z-index: 20;
}

img.yla_raami {
	position: fixed;
	top: 10px;
	left: 33px;
}

p.yla_raami {
	margin-top: 19px;
	text-align: center;
	margin-left: -40px;
}

/*
 * Vanhempia IE selaimia varten sisällön minimi korkeus
 */ 
html div.contents{
  height: expression(this.scrollHeight < 291 ? "290px" : "auto"); 
}

div.contents {
  padding: 1em;
  position: relative;
  top: 87px;
  left: 55px;
  right: 20px;
  margin-bottom: 100px;
  width: 90%;
  min-height: 24.5em;
  /*border:1px solid green;*/
}

div.ala_raami {
  position: relative;
  bottom: 0px;
  left: 0px;
/*  height: auto !important;*/
  height: 150px;
  width: 100%;
/*  background-image: url('../images/ala_raami.png');
  background-repeat: no-repeat;*/
  color: white;
  background-color: black;
  text-align: right;
  font-family: Arial,Verdana;
  clear: both;
}

img.ala_raami {
	margin-top: 25px;
	margin-left: 30px;
}

pre.nimi {
  font-family:Verdana,Arial,Sans-serif;
  font-size: 100%;
  margin-top: 0.5em;
  margin-left: 0.1em;
}

a {
  color:black;
  text-decoration:none;
	border-width:0px;
}

a img {
  border:none;
}

a:visited {
  color:black;
}

a:hover {
  text-decoration:underline;
}


a.menu {
	position: relative;
}

a.menu span {
	display: none;
}

a.menu:hover span {
	display: block;
	position: absolute;
	bottom: 1em;
	left: 1em;
	max-width: 11em;
	padding: 0.2em 0.6em;
	border:1px solid #996633;
	background-color:#FFFF66;
	color:#000;
	font-size:100%;
}

.nappi {
  display: block;
  width: 10em;
  height: 1.2em;
  background-color: darkgray;
  border: 1px solid black;
  text-align: center;
  cursor: pointer;
}

a.nappi:hover {
  background-color: lightgray;
}

div.center {
  position:relative;
  left: 50%;
  margin-left: -7em;
  margin-top: 10%;
  margin-bottom: 7.5%;
  width: 14.7em;
  text-align:center;
  padding: 0.5em;
/*  border: 1px solid lightblue;*/
}

span.thick {
  font-weight:bold;
}

div.kelluta_vasen {
  float: left;
/*  border: 1px solid green;*/
}

div.kelluta_oikea {
  float: right;
}

label {
  float:left;
  width: 13.5em;
  display: inline;
  /*border: 1px solid green;*/
}

label.radio {
  /*border: 1px solid red;*/
  float:none;
  width: 4em;
}

label.login {
  float:none;
}

/* määrittelee hakukenttien ympärille kehykset, taustaväri vaaleanharmaa */
form.sailytys {
  width: 50em;
}

form.vaihto {
  width: 55.5em;
}

.drag td {
  padding-left: 1em;
  padding-right: 1em;
}

div.kayttaja {
  width: 25em;
  position: relative;
  left: 50%;
  margin-left: -12.5em;
}

div.haku {
  background-color: #D3D3D3;
  width: 35em;
  padding: 0.5em;
}

div.hakukentta {
  position:relative;
  left: 30%;
  margin-top: 96px;
  width: 465px;
  display: inline;
  float: left;
  height: 63px;
}

div.hakukentta input.haku {
  margin-left: 0.3em;
  margin-right: 5px;
  margin-top: 3px;
  font-size: 3em;
  width: 280px;
//  border: none;
  float: left;
  display: inline;
//  background-color: #014171;
  background-color: #D1D1D1;
}

div.hakuotsikko {
  margin-top: 170px;
  padding-top: 2em;
}

div.keskitetty {
  position: relative;
  left: 50%;
  margin-left: -10em;
}

div.harmaaLaatikko {
  padding: 0.5em;
  border: 1px solid darkgray;
  background-color: #D3D3D3;
}

div.haku_vasen {
  border: 1px solid darkgray;
  width: 18em;
  padding: 0.5em;
  background-color: #D3D3D3;
  float:left;
  /*margin-top:28x;*/
  /*height:22em;*/
}


div.input {
  padding-left: 0.5em;
  /*padding-bottom: 0.2em;
  padding-top: 0.1em;*/
  min-height: 29px;
  display:block;
}

div.alasveto {
  margin-bottom: 0.16em;
}

div.muuttaja {
  margin-left: 15.5em;
  font-size: 80%;
}

div.disabled {
  color:gray;
}

div.navigoi {
  float: right;
}

img.tulosta {
  position:absolute;
  right: 1em;
  top: 190px;
}

input.poistoRoskis {
	margin-top: 1em;
	margin-left: 1em;
}

div.valikko {
  position: relative;
  left: 50%;
  margin-left: -260px;
  width: 520px;
}

textarea {
  display:inline;
  width: 300px;
  height: 100px;
}

span.inputField {
  position: relative;
  left: 45%;
}

div.tallenna {
  position: relative;
  width: 35em;
  margin-top: 0.5em;
}

div.sailytystallennus {
  float: right;
  top: -87px;
  height: 6em;
}

input.vasen {
  position: relative;
  left: 50%;
}

input.oikea {
  position: relative;
  right: -50%;
}

input.pakollinen {
  background-color:lightgreen;
}

input.invalid {
  background-color:#AA4433;
  color:black;
  border:2px red inset;
}

div.pakollinen {
  font-weight:bold;
}

div.invalid {
  color:#F00;
}

/* värjää valitun tekstikentän taustan keltaiseksi  */
input:focus, textarea:focus {
  background:LightYellow;
}

div.virhe {
  color:red;
  background-color:#FF8888;
  border:2px solid red;
}

/*Tätä laatikkoa käytetään säilytysehtojen näyttämiseen*/
div.laatikko {
  font-family:Courier New, Lucida Console;
  border:2px inset black;
  width:40em;
  position:relative;
  left:5em;
  padding:5px;
}

div.lisatieto {
  font-family:Courier New, Lucida Console;
  font-size:80%;
  display: block;
  width: 280px;
  height: 104px;
  overflow: auto;
  border-top: 1px solid darkgray;
  border-left: 1px solid darkgray;
  border-right: 1px solid #D3D3D3;
  border-bottom: 1px solid #D3D3D3;
  background-color: white;
}

/*
 * määrittää tulostettavan kuitin päämuotoilun
 */ 
div.kuitti {
/*  width: 50em;*/
  width: 21cm;
  height: 29.7cm;
  padding-left: 1.9cm;
  padding-right: 1.9cm;
  padding-top: 2.4cm;
  padding-bottom: 2.4cm;
  position: relative;
  /*left: 50%;*/
  margin-left: 1em;
  border: 1px solid black;
/*  padding: 0.5em;*/
}

/*
 * määritellään tulostettavat tarrat
 */ 
div.tarra {
  width: 10.16cm;
  /*height: 7.675cm;*/
  font-size: 20pt;
  /*border: 1px solid black; */
  text-align: center;
  padding-top: 0.3em;
/*  background-image: url('../images/tarrakehys.png');*/
}

div.tarra span.rekNro {
  font-size: 40pt;
  font-weight: bold;
}

div.tarra h1 {
  color: black;
  font-size: 40pt; 
}

.yritys {
  font-weight: bold;
  font-size: 180%;
}

div.osoite {
  padding-left: 1em;
}

div.kuitti .vasen{
  width: 49%;
  float: left;
  display: inline;
}

input.kuitti {/*
  position: relative:
  left: -1em;
  margin-left: -1em;
*/}

div.kuitti .oikea {
  width: 49%;
  float: right;
  display: inline;
}

div.allekirjoitus {
  width: 50%;
  position: relative;
  left: 50%;
  margin-left: -25%;
  line-height: 150%;
  border-bottom: 1px solid black;
}

div.kuitti .ehdot {
  font-size: 80%;
}

/*Määritellään hakutulokset näyttävän taulukon muotoiluja*/
table.hakuTulokset {
  table-layout:fixed;
  /*width: 62em;*/
  border-spacing: 2px;
  white-space:nowrap;
}

span.nowrap {
  white-space:nowrap;
}

table.hakuTulokset tr {
	background-color: #EEEEEE;
}

td {
	padding: 0.1em;
	overflow: hidden;
	height: 1em;
}

table.hakuTulokset th {
  background-color: darkgray;
}

table.hakuTulokset tr:hover {
	background-color: lightgray;
}

td:hover {
	background-color:darkgray;
}

td.reknro, th.reknro {
	width:6em;
}

td.nimi, th.nimi {
	width:10em;
}

td.poistaja, th.poistaja {
  width: 8em;
}

td.gsm, th.gsm {
	width: 7.5em;
}

td.varasto, th.varasto {
	width:8em;
}

td.tupla_varasto, th.tupla_varasto {
  width: 16em;
}

td.hylly, th.hylly {
	width:4em;
}

td.paikka, th.paikka {
	width:4em;
}

td.pvm {
  width:8em;
}

td.painike, th.painike {
  width: 10.5em;
}

td.inventaario {
  width: 4.5em;
}

td.inventaario .laatikko {
  display: none;
}

td.inventaario:hover .laatikko {
  display: block;
  position: relative;
  top: 0em;
  left: 0em;
  width: 4.4em;
  height: 1em;
  background-color: #D3D3D3;
  z-index: 10;
}

td.napit {
  background-color: white;
}

.clear { clear: both; }

.drag{
	position: relative;
	cursor: move;
	margin: auto;
	z-index: 50;
	background-color: white;
	text-align: center;
	font-size: 10pt; /* needed for cloned object */
	opacity: 0.7;
	filter: alpha(opacity=70);
	/* without width, IE6/7 will not apply filter/opacity to the element ?! */
	width: 90px;
}

/* forbidden cells */
.forbid{color: white; background-color: #9B9EA2;}

.pointer {cursor: pointer;}

.pointer:hover {text-decoration:underline;}

.hidden {display:none;}

.lomakenappi {
  position:relative; 
  top: -87px; 
  left: -62px; 
  cursor: pointer;
}

.loginField {
  width: 150px;
}
span.piilo {
  color: #EEEEEE;
}

span.valko {
  font-size: 120%;
  color: white;
}

span.green {
  background-color: #99FF99;
}

span.yellow {
  background-color: #FFFF99;
}

span.red {
  background-color: #FF9999;
}

.logo {
	margin-top: 35px;
}