/*
Theme Name: Hansel Vuosikertomus 2019
Author: Mainostoimisto SST Oy
Author URI: https://www.sst.fi/
*/

/* *:focus {
outline: none;
}

textarea:focus, input:focus{
outline: none;
} */

body {
  font-size: 16px;
  -webkit-animation: fadein 3s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 3s; /* Firefox < 16 */
  -ms-animation: fadein 3s; /* Internet Explorer */
  -o-animation: fadein 3s; /* Opera < 12.1 */
  animation: fadein 3s;
  /* overflow-x: hidden; */
}

/* .in-swedish .download-pdf,

.in-english .download-pdf{
  display: none;
} */

.maincol img {
  max-width: 100%;
  height: auto;
}
.maincol p a,
.sst-link {
  color: #005596;
  text-decoration: underline;
}

.content-quote {
  color: #005596 !important;
  line-height: 1.3;
  font-weight: 400 !important;
  font-size: 1.5rem !important;
}

h1,
h2,
h3,
.h1.h2.h3 {
  font-family: "Maven Pro", sans-serif;
  font-weight: 700;
}

.h1,
h1 {
  font-size: 2.3rem;
  margin-bottom: 2rem !important;
}

.disabled {
  pointer-events: none;
}

a {
  color: #000;
}

p,
ul li {
  font-weight: 400;
}

.h2,
h2 {
  font-size: 20px;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.h3,
.h4,
.h5,
.h6,
h3,
h4,
h5,
h6 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.sidenav h2 {
  font-weight: normal;
}

.right-content-container {
  min-height: 200vh;
}

.page-options {
  width: 80%;
  color: white;
  padding-left: 25px;
  padding-top: 25px;
  padding-bottom: 10px;
  margin: 0 auto;
}

.sidenav .page-options {
  padding-left: 0;
}

.page-options .page-option {
  cursor: pointer;
  margin-bottom: 20px;
}

.page-options .page-option.share .share-buttons {
  margin-top: 10px;
  display: none;
  text-align: right;
  margin-right: 0px;
}

.page-options .page-option .fa {
  font-size: 32px;
  padding-left: 20px;
}

.maincol {
  padding-bottom: 200px;
}

.page-template-page-olennaisuus-php .maincol {
  padding-bottom: 0 !important;
}

.page-template-page-olennaisuus-php .footer-column {
  padding: 20px;
}

.footer-column h3 {
  font-size: 18px;
  font-weight: bold;
}

footer.footer {
  background-color: #005596;
  padding: 60px 0;
  color: #fff;
}

.footer #text-2 img {
  margin-right: 10px;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer a:hover {
  color: #fff;
}

.footer .footer-page-options {
  padding-top: 40px;
  text-align: right;
}

.footer .footer-page-options .share-buttons {
  display: none;
}

.footer .footer-page-options .share span {
  cursor: pointer;
}

.footer .footer-page-options .share span:hover {
  text-decoration: underline;
}

.footer .footer-page-options .fa {
  padding-left: 10px;
  color: #fff;
}

.read-next {
  padding-left: 0px;
  padding-right: 0px;
}
.read-next .scrollToTop,
.read-next a.scrollToTop,
.read-next {
  color: #000;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
}

.bottom-options a.scrollToTop {
  font-weight: bold;
}

.read-next p {
  display: inline-block;
}

.read-next a {
  color: black;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none !important;
}

.sidenav li.wpml-ls-slot-shortcode_actions {
  width: 50px;
  height: 50px;
}
.sidenav .language-selection a {
  background-color: #ffffff;
  color: #005596;
  text-transform: uppercase;
  max-width: 50px;
  width: 50px;
  height: 50px;
  text-align: center;
  display: table-cell;
  vertical-align: middle;
  border: 5px solid #005596;
  font-size: 16px;
}

.sidenav .language-selection a:hover {
  color: #005596;
}

.sidenav .language-selection a.active {
  background-color: #00a9e0;
  color: #005596;
}

.sidenav .language-selection li.wpml-ls-current-language a {
  background-color: #373f51;
  color: white;
}

.sidenav .language-selection {
  width: 80%;
  margin: 0 auto;
  text-align: right;
}

@media (max-width: 991px) {
  .sidenav .language-selection {
    width: 100%;
  }
}

.search-featured-thumbnail {
  padding-right: 20px;
}

.mobile-search-container {
  display: none;
}

.search-container {
  display: inline-block;
}

.search-content h2 {
  font-size: 1.5rem;
}

.spinner .fa {
  font-size: 72px;
  color: white;
}

.spinner {
  text-align: right;
  padding-right: 70px;
  padding-top: 30px;
  padding-bottom: 30px;
}

.toggle-search,
.do-search,
.display-xs-mobile {
  display: none;
}

.display-mobile {
  display: none;
}

.display-desktop {
  display: block;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#toggle-sidenav .icon.open,
#toggle-sidenav .icon.closed {
  display: none;
}

#toggle-sidenav .icon.open.active,
#toggle-sidenav .icon.closed.active {
  display: block;
}

#toggle-sidenav {
  font-size: 2.5rem;
  padding: 30px;
  background-color: #005596;
  color: white;
  width: 97px;
  height: 97px;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  cursor: pointer;
  border: 0;
}

.toggle-search {
  width: 15%;
  /*background-color: #f56476; red*/
  background-color: transparent;
  padding: 13px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  color: #005596;
  height: 50px;
  text-align: center;
}

.toggle-search .fa {
  font-size: 28px;
}

.do-search {
  width: 49%;
  background-color: #7dcfb6;
  padding: 13px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  color: white;
  height: 50px;
}

#toggle-search .icon.open,
#toggle-search .icon.closed {
  display: none;
}

#toggle-search .icon.open.active,
#toggle-search .icon.closed.active {
  display: block;
}

#toggle-search {
  font-size: 2.5rem;
  padding: 30px;
  background-color: #dcdcdc;
  color: #005596;
  width: 97px;
  height: 97px;
  display: none;
  vertical-align: middle;
  text-align: center;
  cursor: pointer;
  border: 0;
}

.toggle-search-container {
  padding: 0px;
}

.search-container {
  padding: 10px 20px;
}

.header .container {
  display: table;
}

.header .toggle-sidenav-container {
  position: static;
}

.header .logo-container {
  text-align: right;
  padding: 10px 20px;
}

.header .logo-container img {
  margin-right: 0px;
}

.header .search-container {
  vertical-align: middle;
}

.container-fluid.masthead {
  padding: 0px;
}

article .frontpage-content {
  background-color: white;
}

.searchpage-content-item {
  height: auto;
  margin-bottom: 5vh;
}
.subpage-content,
.frontpage-content {
  min-height: 100vh;
}

.featured-img {
  max-height: 500px;
  overflow: hidden;
  border-radius: 20px;
}
.featured-img img {
  width: 100%;
  height: auto;
}

.page-template-page-etusivu-php .top-content {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.page-template-page-etusivu-php .top-content .inner-wrapper {
  background: #005596;
  color: white;
  padding: 40px;
  border-radius: 20px;
}

.page-template-page-etusivu-php .top-content h1 {
  font-weight: 500;
}

.banner-image-text {
  padding-left: 0px !important;
  padding-top: 20px;
  font-style: italic;
}

.breadcrumb {
  background-color: transparent;
  padding-left: 0px;
  padding-top: 20px;
  color: #000;
}

.breadcrumb span,
.breadcrumb a {
  color: #000;
  font-style: italic;
}

.breadcrumb span[property="itemListElement"]:first-child {
  padding-left: 0px;
}

.breadcrumb span[property="itemListElement"] {
  padding-left: 5px;
  padding-right: 5px;
}

.breadcrumb .current-item {
  padding-left: 5px;
}

.sidenav {
  width: 0;
  position: absolute;
  z-index: 1;

  background-color: #005596;
  overflow-x: hidden;
  /*transition: 0.5s;*/
  padding-top: 10px;
  text-align: right;
}

.sidenav h2 {
  color: white;
  font-weight: 400;
  font-size: 22px;
  padding: 25px;
  padding-right: 45px;
  text-align: right;
  width: 80%;
  margin: 0 auto;
}

.sidenav .root-level {
  list-style-type: none;
}

.sidenav .sub-level {
  display: none;
  list-style-type: none;
}

.sidenav .root-level-child {
  width: 100%;
  text-align: right;
  padding-right: 40px;
}
.sidenav .root-level-child a {
  font-weight: 400;
  color: #fff;
  display: inline-block;
}

.sidenav .fa {
  vertical-align: middle;
  line-height: 10px;
  margin-bottom: -2.5px;
}

.sidenav .root-level {
  width: 80%;
  margin-right: 10px;
  padding-left: 0px;
  margin-left: 10%;
  margin-right: 20px;
}

.sidenav .root-level li.root-level-child {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-right: 0px;
  border-top: 1px solid white;
}

.sidenav .root-level-child .sub-level .sub-level-child a {
  font-weight: 400;
  color: white;
  display: block;
  width: 100%;
  text-align: right;
  padding-right: 40px;
}

.sidenav .root-level-child .sub-level {
  width: 100%;
  padding-left: 0px;
}

.sidenav .root-level-child .sub-level .sub-level-child {
  border-bottom: 1px solid #5980b5;
  padding-left: 0px;
  width: 100%;
}
.sidenav .root-level-child .sub-level .sub-level-child:last-child {
  border-bottom: 0px;
}

.sidenav .sub-level-toggle {
  color: #fff;
  display: inline-block;
  font-size: 22px;
  cursor: pointer;
  padding: 10px 0;
}

.sidenav .no-sub-level-toggle {
  color: #fff;
  display: inline-block;
  font-size: 32px;
  cursor: pointer;
  visibility: hidden;
  padding: 10px 0;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 16px;
  color: #fff;
  display: block;
  transition: 0.3s;
  text-align: right;
  padding-right: 20px;
  padding-left: 0px;
}

.sidenav a:hover {
  color: #fff;
}

.lift.grey {
  background-color: #373f51;
}

.lift.brightred {
  background-color: #f56476;
}

.lift.lightblue {
  background-color: #00a9e0;
}

.lift.teal {
  background-color: #7dcfb6;
}

.lift.pink {
  background-color: #dfbbb1;
}

.lift.orange {
  background-color: #f79256;
}

.lift-container {
  margin-bottom: 115px;
}

.collectionpage-content .top-content {
  margin-bottom: 4rem;
}

.collectionpage-content .lift .lift-image {
  width: 100%;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.collectionpage-content .lift .lift-image img {
  width: 100%;
}

.collectionpage-content .lift .lift-content {
  padding-right: 20px;
  padding-left: 20px;
  padding-bottom: 0;
}

.collectionpage-content .lift .lift-content h2 {
  padding-bottom: 0px;
  font-size: 24px;
  font-weight: 400;
}

.collectionpage-content .lift .lift-content p {
  padding-bottom: 0px;
}

.collectionpage-content .lift .lift-content a {
  color: white;
}

#main {
  transition: margin-left 0.5s;
}

#searchform {
  padding-bottom: 4px;
  font-size: 20px;
  margin: 0 auto;
  margin-bottom: 0px;
  margin-top: 12.5px;
}

#searchform .form-wrapper {
  display: flex;
}

#searchform .form-wrapper button {
  border: 0;
  background: #005596;
  color: #fff;
  display: flex;
  padding: 5px 20px;
  align-items: center;
  border-radius: 0 50px 50px 0;
}

#searchform input {
  border: 0px;
  width: 80%;
  font-weight: 400;
  background: #eaeaea;
  padding: 10px;
  border-radius: 50px 0 0 50px;
}

#searchform .fa.fa-search {
  padding-left: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
}

.main-content .maincol h1 {
  font-weight: 400 !important;
}

.main-content .maincol h2.title-exception {
  font-size: 2.3rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
  font-weight: 400;
}

/* Info box */

.main-content-container .info-box {
  background-color: #f4f4f4;
  padding: 40px;
  position: relative;
  margin-bottom: 40px;
  word-break: break-word;
}

@media (max-width: 567px) {
  .main-content-container .info-box {
    padding: 20px;
  }

  .info-box-title {
    padding-top: 60px;
  }
}

.main-content-container .info-box i.fa-info-circle {
  color: #fff;
  background-color: #005596;
  position: absolute;
  right: 0;
  top: 0;
  font-size: 2.3rem;
  padding: 15px;
}

.main-content-container .info-box h2 {
  color: #005596;
  font-weight: 600;
  font-size: 1.3rem;
}

.main-content-container .info-box a {
  text-decoration: underline;
}

/*Taulukoita*/

/* -----------   Tables    ------------*/
table {
  background-color: #ffffff;
  max-width: 100%;
  border-top: 10px solid #ffffff;
  border-right: 10px solid #ffffff;
  border-bottom: 10px solid #ffffff;
  width: 100%;
  font-weight: 400;
}
td.borderbottom {
  border-bottom: 1px solid #8e8e8d;
}
.hlCol a {
  color: #76b729;
  cursor: pointer;
  display: block;
}
.hlCol.noborder {
  background-color: #ffffff;
  border: none;
}
.hlCol td {
  color: #000000;
  text-align: right;
  padding: 0.5em;
}
.hlCol.hide-years-3 td {
  padding: 0.3em;
}
td.alignleft {
  color: #000000;
  text-align: left;
  margin: 0;
}
td.double-borderbottom {
  border-bottom: 2px solid #000;
}
.hlCol td.leftpadding {
  padding-left: 40px;
}
.hlCol tr.borderbottom {
  border-bottom: 2px solid #000000;
}
.hlCol.coloured {
  background-color: #005596;
  border: 20px solid #005596;
}
.hlCol.coloured td {
  color: #000000;
}
.hlCol.coloured td:first-child + td.dark {
  background-color: #005596;
  padding: 0.5em;
}
.hlCol tr.coloured {
  background-color: #005596 !important; /*border:10px solid #005596;*/
}
.hlCol tr.coloured td {
  color: #fff;
}
.hlCol tr.coloured td:first-child + td {
  background-color: #005596 !important;
  padding: 0.5em 1em 0.5em 1em;
}
.hlCol tr.coloured td:first-child + td.whiteBg {
  background-color: #ffffff;
  padding: 0.5em 1em 0.5em 1em;
}
.hlCol tr td:first-child {
  text-align: left;
  padding-left: 0px;
}
.hlCol.hlCol tr td:first-child + td {
  background-color: #005596;
  padding: 0.5em 1em 0.5em 1em;
  color: #fff;
}
.hlCol.hlCol.avainluvut tr td.no-hl {
  min-width: 40%;
  max-width: 40%;
  width: 40%;
}
.hlCol.hlCol.avainluvut tr td:first-child {
  min-width: 40%;
  max-width: 40%;
  width: 40%;
}

.hlCol tr td.hlCol {
  background-color: #005596;
}
.hlCol.hlCol tr td:first-child + td.no-hl {
  background-color: transparent;
}
.hlCol tr:hover,
#main.purple table tr:hover td.dark,
#main.purple table tr:hover td.whiteBg {
  background-color: #005596; /*border-left: 10px solid #005596;border-right: 10px solid #005596;*/
}
.hlCol tr:hover td {
  color: #fff;
}

.theme-by-16 .hlCol tr:hover,
#main.purple table tr:hover td.dark,
#main.purple table tr:hover td.whiteBg {
  background-color: #ccedf8; /*border-right:10px solid #ccedf8;border-left:10px solid #ccedf8;*/
}

.container-plus {
  position: relative;
  clear: left;
}

table tr td {
  padding-left: 0px;
}

/* hiding columns */
td.hide-col {
  width: 1px;
  overflow: hidden;
  text-indent: -1000em;
  font-size: 0;
}
td.hide-col-not {
  width: auto;
  overflow: visible;
  text-indent: 0;
  font-size: 1em;
}

table.hlCol {
  padding: 0.5em 0em 0.5em 0em;
}

/* SPECIAL TABLES */
div.hide-years-show {
  position: absolute;
  top: -20px;
  right: 0px;
  z-index: 1020;
  display: block;
  width: 25px;
  height: 25px;
  line-height: 25px;
  font-size: 25px;
  color: #fff;
  background-color: #004f8b;
  text-align: center;
  cursor: pointer;
}

.koulutus td {
  width: 153px;
}

.koulutus tr td:first-child {
  width: 200px;
}

.ymparistotunnus,
.laskentakaavat {
  font-size: 0.9em;
  margin: 0;
  border: 0;
}
table.avainluvut {
  padding: 0em !important;
  font-size: 0.9em;
  white-space: nowrap;
}
table.avainluvut td:first-child,
table.avainluvut.olennaiset-tunnusluvut td {
  white-space: normal;
}
.avainluvut.hide-years-3 td:nth-child(2) {
  white-space: normal;
}
.avainluvut.hide-years-3 td:last-child {
  white-space: normal;
}
table.tilinpaatos {
  font-size: 0.9em;
  white-space: nowrap;
}
table.tilinpaatos td:first-child {
  white-space: normal;
}
table.olennaisuus {
  font-size: 0.9em;
  white-space: nowrap;
}
.post-49 li {
  list-style-type: none;
}
.ymparistotunnus td,
.laskentakaavat td {
  padding: 0.3em;
}
.ymparistotunnus tr:hover,
.laskentakaavat tr:hover {
  background-color: #ccedf8;
}
#ymparistotunnus-ul,
#ymparistotunnus-ul li {
  list-style-type: none;
}
span.ball {
  display: block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  background-color: #005495;
  float: left;
  color: #ffffff;
  margin-right: 10px;
}
.tyoryhmat,
.sidosryhma {
  font-size: 0.9em;
  margin: 0;
  border: 0;
}
.green-office,
.henkilomaara,
.tyosuhteiden-pituus,
.henkiloston-vaihtuvuus,
.sairauspoissaolot,
.markkinoiden-toimivuus,
.koulutus,
.tulospalkkiot,
.taloudelliset-tunnusluvut {
  font-size: 0.8em;
  margin: 0;
  border: 0;
  white-space: nowrap;
}
.sidosryhma td:first-child,
.tyoryhmat td:first-child,
.green-office td:first-child,
.henkilomaara td:first-child,
.tyosuhteiden-pituus td:first-child,
.henkiloston-vaihtuvuus td:first-child,
.sairauspoissaolot td:first-child,
.markkinoiden-toimivuus td:first-child,
.koulutus td:first-child,
.tulospalkkiot td:first-child,
.taloudelliset-tunnusluvut td:first-child {
  white-space: normal;
}
.sidosryhma.hlCol,
.tyoryhmat.hlCol,
.green-office.hlCol,
.henkilomaara.hlCol,
.tyosuhteiden-pituus.hlCol,
.henkiloston-vaihtuvuus.hlCol,
.sairauspoissaolot.hlCol,
.markkinoiden-toimivuus.hlCol,
.koulutus.hlCol,
.tulospalkkiot.hlCol {
  padding: 0;
  padding-bottom: 1em;
}
.sidosryhma td,
.tyoryhmat td {
  padding: 0.5em;
  display: table-cell;
  text-align: left;
  float: none;
}
.sidosryhma tr:hover,
.tyoryhmat tr:hover {
  background-color: #ccedf8;
}
.sidosryhma td.dark,
.tyoryhmat td.dark {
  background-color: #005495;
  color: #ffffff;
}
.sukupuolijakauma td,
.uudettyontekijat td {
  font-size: 0.8em;
}

.picture-text {
  font-size: 0.8em;
  font-style: italic;
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 10px;
}

td.hlCol {
  background-color: #ccedf8;
}

.uudettyontekijat.hlCol.hlCol tr td:first-child + td {
  background-color: transparent;
}
.uudettyontekijat.hlCol.hlCol tr td:nth-child(2) {
  color: #000;
}

.uudettyontekijat.hlCol.hlCol tr:hover td:nth-child(2) {
  color: #fff;
}

table td {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* Henkilökunta */
.henkilokunta-filter {
  display: block;
  float: left;
  color: #fff;
  background-color: #005596;
  padding: 7px 14px;
  margin-right: 7px;
  margin-bottom: 7px;
  cursor: pointer;
  font-weight: 400;
}
.henkilokunta-filter.active {
  background-color: #00a9e0;
}
.henkilokunta-wrapper {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.henkilokunta-wrapper p {
  padding: 0px;
  margin: 0px;
}
.henkilokunta-wrapper .henkilokunta {
  padding-left: 0px;
  margin-top: 15px;
  min-height: 265px;
  font-size: 0.9em;
  word-wrap: break-word;
  position: relative;
}
.henkilokunta-wrapper .henkilokunta img {
  max-width: 100%;
  width: 100%;
  height: auto;
}
.henkilokunta-wrapper .henkilokunta .img-wrapper {
  margin-right: 15px;
  position: absolute;
  top: 0;
  left: 0;
}
.henkilokunta-wrapper .henkilokunta:hover .img-wrapper img,
.henkilokunta-wrapper .henkilokunta.active .img-wrapper img {
  display: block;
}
/* .henkilokunta-wrapper .henkilokunta img:hover, .henkilokunta-wrapper .henkilokunta.active img {
filter: none; /* Applies to FF + IE * /
-webkit-filter: grayscale(0);
}*/

@media all and (min-width: 767px) {
  /*.henkilokunta-wrapper .henkilokunta img {
  -webkit-filter: grayscale(1);
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  filter: gray;
  filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale");
  }*/
  .henkilokunta-wrapper .henkilokunta img.henkilokunta-color {
    display: none;
  }
}

/*GRI*/
/*GRI*/
.gri td:first-child {
  /*white-space:nowrap;*/
}
.gri td:last-child {
  /*white-space:nowrap;*/
}
.gri td.borderbottom {
  padding: 0.2em;
  vertical-align: top;
}
.gri tr td.borderbottom.firstnumber-row {
  padding: 0.2em;
  vertical-align: top;
  max-width: 20px;
}

.gri a {
  color: #005495;
  text-decoration: underline;
}

.gri tr:hover {
  background-color: #ccedf8;
}
.gri-2 {
  clear: both;
  max-width: 700px;
  width: 700px;
  font-size: 0.8em;
  padding: 0;
  margin: 0;
  border: none;
}
.gri-2 td {
  line-height: 1em;
  padding: 0.5em 0.3em;
  margin: 0;
  vertical-align: top;
}
.gri-2 td:last-child {
  padding-right: 0 !important;
}
.gri td.dark,
.gri-2 td.dark {
  background-color: #005495;
  padding: 0.5em;
  color: #ffffff;
}
.gri-2 td.borderbottom.hlCol {
  padding-top: 1em;
  padding-bottom: 1em;
}
table.gri-2 a {
  margin-left: 20px;
  color: #76b729;
  cursor: pointer;
  display: block;
}
.griball {
  margin-left: auto;
}
span.lbball {
  margin-right: 5px;
  display: block;
  width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  background-color: #57b7e7;
  float: left;
  color: #ffffff;
  margin-right: 2px;
  margin-top: 2px;
}
span.bball {
  margin-right: 5px;
  display: block;
  width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  background-color: #004f93;
  float: left;
  color: #ffffff;
  margin-right: 2px;
  margin-top: 2px;
}
span.oball {
  margin-right: 5px;
  display: block;
  width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  background-color: #f78f1e;
  float: left;
  color: #ffffff;
}
span.pball {
  margin-right: 5px;
  background-color: #8a5ea3;
  display: block;
  width: 15px;
  height: 15px;
  line-height: 15px;
  text-align: center;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  float: left;
  color: #ffffff;
}

table {
  width: 100% !important;
}
.nowrap {
  white-space: nowrap;
}
.container-table {
  margin-top: 1em;
  overflow-x: auto;
}
.alaviite {
  font-size: 0.75em;
}

/* SPECIAL TABLES */
div.hide-years-show {
  position: absolute;
  top: -20px;
  right: 0px;
  z-index: 1020;
  display: block;
  width: 25px;
  height: 25px;
  line-height: 25px;
  font-size: 25px;
  color: #fff;
  background-color: #004f8b;
  text-align: center;
  cursor: pointer;
}

table.hlCol.avainluvut tr td {
  text-align: left;
}

.ymparistotunnus,
.laskentakaavat {
  font-size: 0.8em;
  margin: 0;
  border: 0;
}
table.avainluvut {
  padding: 0em !important;
  font-size: 0.8em;
  white-space: nowrap;
}
table.avainluvut td:first-child,
table.avainluvut.olennaiset-tunnusluvut td {
  white-space: normal;
}
.theme-by-2 .avainluvut.hide-years-3 td:nth-child(2) {
  white-space: normal;
}
.theme-by-2 .avainluvut.hide-years-3 td:last-child {
  white-space: normal;
}
table.tilinpaatos {
  font-size: 0.8em;
  white-space: nowrap;
}
table.tilinpaatos td:first-child {
  white-space: normal;
}
table.olennaisuus {
  font-size: 0.8em;
  white-space: nowrap;
}
.post-49 li {
  list-style-type: none;
}
.ymparistotunnus td,
.laskentakaavat td {
  padding: 0.3em;
}
.ymparistotunnus tr:hover,
.laskentakaavat tr:hover {
  background-color: #ccedf8;
}
#ymparistotunnus-ul,
#ymparistotunnus-ul li {
  list-style-type: none;
}
span.ball {
  display: block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  background-color: #005495;
  float: left;
  color: #ffffff;
  margin-right: 10px;
}
.tyoryhmat,
.sidosryhma {
  font-size: 0.8em;
  margin: 0;
  border: 0;
}
.green-office,
.henkilomaara,
.tyosuhteiden-pituus,
.henkiloston-vaihtuvuus,
.sairauspoissaolot,
.markkinoiden-toimivuus,
.koulutus,
.tulospalkkiot,
.taloudelliset-tunnusluvut {
  font-size: 0.8em;
  margin: 0;
  border: 0;
  white-space: nowrap;
}
.sidosryhma td:first-child,
.tyoryhmat td:first-child,
.green-office td:first-child,
.henkilomaara td:first-child,
.tyosuhteiden-pituus td:first-child,
.henkiloston-vaihtuvuus td:first-child,
.sairauspoissaolot td:first-child,
.markkinoiden-toimivuus td:first-child,
.koulutus td:first-child,
.tulospalkkiot td:first-child,
.taloudelliset-tunnusluvut td:first-child {
  white-space: normal;
}
.sidosryhma.hlCol,
.tyoryhmat.hlCol,
.green-office.hlCol,
.henkilomaara.hlCol,
.tyosuhteiden-pituus.hlCol,
.henkiloston-vaihtuvuus.hlCol,
.sairauspoissaolot.hlCol,
.markkinoiden-toimivuus.hlCol,
.koulutus.hlCol,
.tulospalkkiot.hlCol {
  padding: 0;
  padding-bottom: 1em;
}
.sidosryhma td,
.tyoryhmat td {
  padding: 0.5em;
  display: table-cell;
  text-align: left;
  float: none;
}
.sidosryhma tr:hover,
.tyoryhmat tr:hover {
  background-color: #ccedf8;
}
.sidosryhma td.dark,
.tyoryhmat td.dark {
  background-color: #005495;
  color: #ffffff;
}

td.hlCol {
  background-color: #ccedf8;
}

table td {
  padding-left: 0px !important;
  padding-right: 10px !important;
}
.affix {
  top: 0px;
  width: 100%;
  z-index: 9999 !important;
  background-color: white;
  max-width: 700px;
  padding: 15px 0 7px 0;
  border-bottom: 1px solid #000;
}
#chart_div {
  font-family: "Lato";
}

/*Olennaisuusmatriisi*/
.olennaisuusmatriisi-container {
  position: relative;
  min-width: 520px;
  padding-left: 0;
  padding-right: 0;
}
.olennaisuusmatriisi-map {
  position: relative;
}
.olennaisuus-popup-container {
  background-color: #005596;
  /* max-width: 520px; */
  text-align: center;
  display: none;
  /* position: absolute; */
  /* top: 14%;
  left: 14%; */
}

.olennaisuus-popup-content h1,
.olennaisuus-popup-content h2,
.olennaisuus-popup-content p,
.olennaisuus-popup-content a {
  color: white;
}
.olennaisuus-popup-content h1 {
  font-size: 2.6em;
}
.olennaisuus-popup-content a:after {
  content: " »";
}
.olennaisuus-popup-content-container {
  min-width: 500px;
  position: relative;
  padding: 10%;
  margin-top: 60px;
}
.olennaisuus-popup-content {
  color: white;
}

.close-popup {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #00a9e0;
  padding: 10px;
  cursor: pointer;
}
.om-icon {
  cursor: pointer;
  width: 49px;
  height: 49px;
}
.om-arrow {
  display: block;
}
.vertical-arrow {
}
.horizontal-arrow {
}

.legend {
  margin: 15px 0px;
  display: block;
  position: relative;
}
.legend .key {
  display: inline-block;
  margin: 10px 0px;
}
.legend p,
.legend img {
  display: inline;
}
.legend p {
  margin: 0px 15px 0px 5px;
  font-size: 13px;
}

/*Icon*/
.icon-container {
  position: absolute;
}
.icon-container img,
.icon-container p {
  display: inline-block;
  cursor: pointer;
}
.icon-container img {
  margin-right: 5px;
  vertical-align: top;
  margin-top: 13px;
}
.icon-container p {
  /* max-width: 220px; */
  line-height: 1.35;
  padding-top: 15px;
}

#toimivat {
  left: 60%;
  top: 15%;
}
#ymparistovastuulliset {
  left: 43%;
  top: 25%;
}
#luotettavat {
  left: 28%;
  top: 25%;
}

#luotettavat p {
  padding-top: 50px;
  position: absolute;
  left: 45px;
}

@media (max-width: 767px) {
  #luotettavat p {
    position: absolute;
    left: -30px;
    bottom: -90%;
    text-align: center;
  }
}
#sosiaalisesti {
  left: 55%;
  top: 35%;
}
#eettinen {
  left: 46%;
  top: 42%;
}
#hankintojen {
  left: 17%;
  top: 44%;
}

@media (max-width: 767px) {
  #hankintojen p {
    position: absolute;
    left: -5%;
    bottom: -145%;
  }
}

#varautuminen {
  left: 48%;
  top: 51%;
}
#hyvinvoiva {
  left: 48.5%;
  top: 62%;
}

/*#tyoelaman_perusoikeudet{left: 8%;top: 5%;}
#harmaa_talous{left: 41%;top: 7%;}
#tehokkaat_hankinnat{right: 10%;top: 3%;}
#markkinoiden-toimivuus{left: 45%;top: 17%;}
#ilmasto{right: 8%;top: 14%;}
#sosiaalisesti{left: 16%;top: 24%;}
#julkisten_hankintojen{left: 40%;top: 28%;}
#korruption_torjunta{right: 2%;top: 25%;}
#sidosryhmayhteistyo{top: 37%;left: 20%;}
#harmaan{top: 44%;left: 42%;}
#seuranta{right: 2%;top: 38%;}
#kiertotalous{left: 16%;bottom: 37%;}
#osaamisen{right: 2%;bottom: 35%;}
#kannustava{right: 2%;bottom: 22%;}
#saantelyyn{bottom: 9%;left: 16%;}
#uusi_tyo{bottom: 11%;right: 9%;    }*/

@media screen and (max-width: 991px) {
  .display-mobile {
    display: block;
  }

  .masthead.display-mobile {
    min-height: unset;
  }

  .masthead.display-mobile img {
    width: 100%;
  }

  .display-desktop {
    display: none;
  }
}

@media screen and (max-width: 1199px) {
  /*table tr td
  {
  font-size: .8rem;
  }*/
  table.gri tr td {
    font-size: 0.7rem;
  }
  .searchpage-content-item .search-content {
    height: auto;
    margin-bottom: 5vh;
    margin-left: 1vw;
  }

  .searchpage-content-item .search-content h2 {
    margin-top: 1vh;
  }
}
@media screen and (max-width: 1099px) {
  .top-lift {
    padding-bottom: 0px;
    margin-bottom: 0px;
  }

  .frontpage-content .top-lift {
    background-position: 35% 50%;
  }

  .row {
    margin-left: 0px !important;
    margin-right: 0px !important;
  }

  .header {
    max-height: 100px;
  }

  .header .container-fluid {
    padding-left: 0px;
    padding-right: 0px;
  }

  .main-content-container,
  .container.frontpage-content,
  .container.subpage-content,
  .container.main-container,
  .header .container-fluid .container {
    padding-left: 0px;
    padding-right: 0px;
    width: 100%;
    margin: unset;
    max-width: unset;
  }

  .right-content-container {
    padding-left: 0px;
    padding-right: 0px;
  }

  .header .container-fluid .col.toggle-sidenav-container {
    padding-left: 0px;
    padding-right: 0px;
    display: inline-block;
  }

  .search-container input {
    font-size: 16px;
  }

  .top-lift {
    padding: 0px;
    background-repeat: no-repeat;
  }

  .collectionpage-content {
    padding-left: 0px;
    padding-right: 0px;
  }
}

.box:first-child {
  /* margin-top: 100px; */
  margin-top: 0;
}

.box {
  margin-bottom: 20px;
}

.box .image {
  height: 180px;
  width: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.box .content-container {
  padding: 30px;
  background-color: #005596;
  text-align: center;
}

.box .content-container .title {
  color: white;
  font-size: 20px;
  margin-bottom: 0.5rem;
}
.box .content-container .content {
  color: white;
  font-weight: 400;
}

.box .content-container .read-more {
  padding-top: 20px;
}
.box .content-container .read-more a {
  color: white;
}

@media screen and (max-width: 991px) {
  .maincol {
    padding-bottom: 50px;
  }

  .sidenav .fa {
    vertical-align: unset;
    line-height: unset;
    margin-bottom: unset;
  }

  .page-options {
    text-align: right;
    margin-right: 0px;
    color: white;
    padding-right: 15px;
  }

  .page-options .page-option {
    cursor: pointer;
    text-align: right;
    margin-bottom: 10px;
  }

  .box:first-child {
    margin-top: 20px;
  }

  .featured-img {
    max-height: 500px;
    overflow: hidden;
    width: 100%;
    /* margin-left: 0%; */
  }
  .featured-img img {
    width: 100%;
    height: auto;
  }

  .lift .lift-image {
    width: 100%;
    /* height:400px; */
    background-size: cover;
  }

  .subpage-content .main-content {
    padding-left: 59px;
    padding-right: 59px;
  }

  .subpage-content {
    padding-left: 0px;
    padding-right: 0px;
  }

  .top-lift-content div.lift-link-container {
    margin-bottom: 50px;
  }

  .sidenav .root-level {
    width: 100%;
    margin-right: 10px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
  }

  .masthead {
    background-size: cover;
    min-height: 500px;
    background-position: center center;
  }

  .masthead.collection {
    background: #fff;
    min-height: unset;
  }

  .col.search-container.hidden-mobile {
    display: none;
  }

  .sidenav {
    width: 0;
    position: absolute;
    z-index: 1;

    background-color: #005596;
    overflow-x: hidden;
    /*transition: 0.5s;*/
    padding-top: 40px;
    text-align: left;
  }

  .sidenav h2 {
    color: white;
    font-size: 22px;
    padding: 10px;
    text-align: left;
    width: 90%;
    margin: 0 auto;
  }

  .sidenav .root-level-child a {
    width: 90%;
    text-align: left;
  }

  .sidenav .root-level-child .sub-level .sub-level-child a {
    width: 90%;
    text-align: left;
  }

  .sidenav .root-level-child,
  .sidenav .root-level-child .sub-level .sub-level-child a {
    text-align: left;
  }

  .sidenav .sub-level-toggle {
    text-align: right;
    float: right;
  }

  .header .logo-container {
    display: inline-block;
    padding: 10px;
    text-align: right;
  }
  .header .logo-container img {
    width: 70%;
  }

  .search-content {
    margin-top: 20px;
  }

  #searchform {
    padding-bottom: 4px;
    font-size: 16px;
    margin: 0 auto;
    margin-bottom: 0px;
    margin-top: 12.5px;
  }

  #searchform .fa.fa-search {
    display: none;
  }

  .search-container {
    padding-left: 0px;
    padding-right: 0px;
  }

  #searchform input {
    font-size: 16px;
    width: 100%;
  }

  .page-template-page-etusivu-php .top-content {
    background: #005596;
    color: white;
    min-height: unset;
    height: unset;
    width: 100%;
    position: unset;
    display: block;
    padding: 40px 50px;
  }
}

@media screen and (max-width: 768px) {
  .top-lift-content-container {
    border-top: 0px solid white;
    order: 2;
  }

  .top-lift-content-container .top-lift-content {
    text-align: center;
  }
}

@media screen and (max-width: 640px) {
  .read-next .scrollToTop,
  .read-next a.scrollToTop,
  .read-next {
    font-size: 16px;
  }

  .toggle-search {
    display: inline-block;
  }

  .display-xs-mobile {
    display: block;
  }

  .search-container {
    display: none;
  }

  .header .search-container {
    padding: 0px;
  }

  .header .search-container #searchform {
    padding-top: 7.5px;
    display: inline-block;
    width: 83%;
    border-bottom: 0px solid #00a9e0;
  }

  .header .search-container {
    border-bottom: 1px solid #00a9e0;
  }

  .header {
    max-height: 75px;
    overflow: hidden;
  }

  #toggle-search {
    display: table-cell;
  }

  #toggle-search,
  #toggle-sidenav {
    padding: unset;
  }

  .toggle-search-container,
  .toggle-sidenav-container {
    width: auto;
  }

  article .frontpage-content {
    margin-top: 0px;
  }
  .subpage-content .main-content h1 {
    font-size: 28px;
  }
  .subpage-content .main-content {
    padding-left: 25px;
    padding-right: 25px;
  }

  .sidenav .root-level-child a {
    width: 80%;
    text-align: left;
  }

  .sidenav .root-level-child .sub-level .sub-level-child a {
    width: 80%;
    text-align: left;
  }
  .header .logo-container {
    display: inline-block;
    text-align: center;
    padding: 10px;
  }
  .header .logo-container img {
    display: block;
    width: 70%;
    margin: 0 auto;
  }

  #searchform .fa.fa-search {
    display: inline-block;
  }

  .search-container {
    padding-left: 0px;
    padding-right: 0px;
  }

  #searchform input {
    font-size: 16px;
    width: 80%;
  }

  .featured-img {
    margin-top: 20px;
  }

  .collectionpage-content .lift {
    padding: 0px;
  }

  .collectionpage-content .lift .lift-image {
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  .collectionpage-content .lift .lift-image img {
    width: 100%;
  }

  .collectionpage-content .lift .lift-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .collectionpage-content .lift .lift-content h2 {
    padding-top: 0px;
    padding-bottom: 0px;
    font-size: 24px;
    font-weight: 400;
    margin: 0 !important;
  }

  .collectionpage-content .lift .lift-content a {
    color: white;
  }
}

@media screen and (media-width: 381px) {
  .header .logo-container {
    display: inline-block;
    text-align: right;
    padding: 10px;
  }
  .header .logo-container img {
    display: block;
    height: 90%;
    padding-top: 10px;
  }

  .page-template-page-etusivu-php .top-content {
    padding: 20px 30px !important;
  }
}

@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }
  .sidenav a {
    font-size: 18px;
  }
}
