html,body {
    vertical-align: top;
    padding: 0;
    margin: 0;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

img {
    border: 0;
}

a,a:active {
    outline: none;
}

div#header img#logo {
    height: 75px;
    float: left;
    margin-right: 25px;
    z-index: 0;
}

div#header_tarkenne {
  float: right;
  font-size: 0.8em;
  
  color: #444;
}

@media (max-width: 950px) {
  div#header_wrapper {
    display: flex;
    flex-direction: column;
  }
  
  div#header_wrapper div:first-child {
    order: 1;
  }
  
  div#header_tarkenne {
    float: none;
    padding: 10px;
    background-color: #eee;
    border-bottom: 1px solid #aaa;
  }
}

div#header {
    padding: 10px 10px 20px 10px;
    border-bottom: 1px solid #aaa;
}

div#header span#tts_nimi {
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.4em;
    display: block;
}

div#header span#helpdesk_otsikko {
    display: block;
}

div#sisalto {
    clear: both;
    padding: 10px;
    font-size: 0.9em;
}

div.etusivu_pysty {
    width: 33%;
    float: left;
    text-align: center;
    padding-bottom: 20px;
    padding-top: 10px;
    background-color: #eee;
    box-sizing: border-box;
    border: 10px solid #fff;
}

div.etusivu_pysty div.etusivu_otsikko:not(:first-of-type) {
    padding-top: 25px;
    border-top: 20px solid #fff;
}

div.etusivu_pysty:after {
    content: '';
    display: block;
    clear: both;
}

div.etusivu_pysty div.etusivu_otsikko {
    font-weight: bold;
}

div.etusivu_pysty div.etusivu_nappi {
    background-color: #0073b4;
    width: 90%;
    margin: 10px auto;
    color: #fff;
    font-weight: bold;
    font-size: 0.9em;
    padding: 10px;
    box-sizing: border-box;
}


div.otsikkorivi {
  clear: both;
  padding: 3px;
  font-weight: bold;
  background-color: #ddd;
}

div.otsikkorivi:not(:first-of-type) {
  margin-top: 10px;
}

div.lomakekohta {
  float: left;
  margin-right: 10px;
  margin-bottom: 5px;
}

div.vikailmoitusluokka {
  float: left;
  width: 220px;
  overflow: hidden;
  white-space: nowrap;
}

table.tilauslomake {
  width: 100%;
  border-collapse: collapse;
}

table.tilauslomake td {
  vertical-align: top;
  border-top: 1px dotted #666;
}

table.tilauslomake tr:hover {
  background-color: #eee;
}

table.tilauslomake td:last-child {
  vertical-align: middle;
}

table.tilauslomake td img, table.tuotemuokkaus td img {
  width: 150px;
}

table.tuotemuokkaus td {
  vertical-align: top;
}

.korosta:hover {
  background-color: #eee;
}


@media only screen and (max-width: 736px) {
    div.etusivu_pysty {
        width: 100%; 
    }
    
    div#header {
        height: 100px;
    }
    
    div#header span#tts_nimi {
        font-size: 1.2em;
    }
    
    div#header span#helpdesk_otsikko span#yhteystiedot {
        display: block;
        float: left;
        padding-top: 8px;
        clear: both;
    }
    
    div.lomakekohta { 
      clear: both;
    }
}