body {
  min-width: 50em;
  margin: 0 auto;
  padding: 0 0.5em;
  font-family: "Georgia", FreeSerif, "Times New Roman", serif;
  font-size: 14pt;
  hyphens: auto;
}

header {
  margin: 0.5em 0;
  padding: 0 1em;
  border-style: solid;
  border-width: 1px;
  border-radius: 10px;
}

.matriisi {
  border-spacing: 0 0.5em;
}

.matriisi thead th:first-child {
  border-style: solid;
  border-color: hsl(300, 30%, 87%);
  border-radius: 10px 0 0 10px;
}

.matriisi thead th:last-child {
  border-style: solid;
  border-color: hsl(300, 30%, 87%);
  border-radius: 0 10px 10px 0;
}

.matriisi thead th {
  padding: 0.5em;
  background-color: hsl(300, 30%, 87%);
  text-align: left;
}

.matriisi th, td {
  padding: 0 0.5em;
  background-color: white;
}

.matriisi tbody th:first-child, td:first-child {
  border-style: solid;
  border-color: white;
  border-radius: 10px 0 0 10px;
}

.matriisi tbody th:last-child, td:last-child {
  border-style: solid;
  border-color: white;
  border-radius: 0 10px 10px 0;
}

.matriisi p {
  margin: 0.7em 0;
}

@media only screen and (max-width: 640px) {

  body {
/*    min-width: 540px;*/
    margin: 0 auto;
    padding: 0;
    font-size: 10pt;
  }
}

@media only print {

  body {
    background: white;
    font-size: 11pt;
    font-family: "Latin Modern Roman", Georgia, FreeSerif, "Times New Roman", serif;
  }
  
  p, li {
    line-height: 1.3;
  }
  
  a {
    text-decoration: none;
    color: black;
  }

  header {
    padding: 0;
    background: white;
    border-radius: 0;
    border-style: solid none solid none;
    border-width: 1px;
    border-color: #444444;
  }

  .eitulosteta {
    display: none;
  }
  
  .matriisi {
    border-collapse: collapsing;
  }

  .matriisi th, .matriisi td, .matriisi tbody th:first-child,
    .matriisi thead th:first-child, .matriisi thead th:last-child {
      
    background: white;
    vertical-align: top;
    font-size: 11pt;
    font-family: "Latin Modern Roman", Georgia, FreeSerif, "Times New Roman", serif;
    border-style: solid none;
    border-width: 1pt;
    border-color: #444444;
    border-radius: 0;
  }

  @page {
    size: landscape;
  }
}