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

div.etusivu_vierekkain {
  width: 50%;
  float: left;
  box-sizing: border-box;
}

div.etusivu_vierekkain_kuva {
  border-right: 5px solid white;
}

.pienempi_fontti {
  font-size: 0.9em;
}

div.etusivu_vierekkain img {
  width: 100%;
}

.gm-style-iw {
  max-width: 80vw !important;
}

input,
textarea,
select {
  font-size: inherit;
}

img {
  border: 0;
}

.ui-button:focus {
  outline: none !important;
}

a,
a:active {
  outline: none;
  color: inherit;
}

.eka_isolla {
  text-transform: lowercase;
}

.eka_isolla:first-letter {
  text-transform: uppercase;
}

div#toimintovalikko {
  background-color: #fff;
  margin: 0 0 10px 0;
  padding: 10px;
}

table#lisaa_uusi_tarjouspyynto tr td:first-child {
  vertical-align: top;
  white-space: nowrap;
  padding-top: 2px;
}

div#content {
  background-color: #fff;
}

div#header {
  width: 100%;
}

div#header img.logo {
  width: 15%;
  padding: 5px;
}

div#footer {
  padding: 25px;
  text-align: center;
  clear: both;
}

div#footer img {
  width: 30%;
  margin-top: 20px;
}

div.urakointiruutu {
  float: left;
  width: 33%;
  text-align: center;
}

div.urakointiruutu img {
  width: 50%;

}

div.urakointiruutu div.lisateksti {
  width: 80%;
  margin: 0 auto;
  font-size: 0.9em;
  text-transform: uppercase;
  font-weight: bold;
}

div.urakointiruutu h1 {
  clear: left;
  font-size: 22px;
}

table.kuvataulu {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

table.kuvataulu td {
  text-align: center;
  vertical-align: top;
  padding: 10px;
  width: 100%;
}

.tooltipmod {
  max-width: 300px;
}

.tooltipify > .content {
  font-size: 12px !important;
}

div#urakoitsijahakukartta,
div#tarjouspyyntohakukartta {
  width: 100%;
  height: 700px;
}

.topnav {
  overflow: hidden;
  background-color: #fff; /* #333; */
}

.topnav a {
  float: left;
  display: block;
  color: #000; /* #f2f2f2; */
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 15px;
  text-transform: uppercase;
}

.active {
  background-color: #4caf50;
  color: black; /* white; */
}

.topnav .icon {
  display: none;
}

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: inherit;
  text-transform: uppercase;
  border: none;
  outline: none;
  color: black;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* Style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover,
.dropdown:hover .dropbtn {
  background-color: #555;
  color: white;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}

.topnav a:hover,
.dropdown:hover .dropbtn {
  background-color: #ddd;
  color: black;
}

h1 {
  font-size: 28px;
}

div.urakoitsijaluokka {
  width: 25%;
  display: inline-block;
  vertical-align: top;
}

table#omat_tietosi th {
  padding-top: 10px;
}

div#etusivu_iso_teksti {
  font-size: 20px;
  text-transform: uppercase;
  text-align: center;
}

div#etusivu_pieni_teksti {
  font-size: 26px;
}

form#hakulomake {
  font-size: 0.9em;
}

div#kielivalinta {
  padding-right: 20px;
}

div#kielivalinta img {
  padding: 0 10px 0 0;
  height: 32px;
}

@media screen and (min-width: 800px) {
  div#alatekstit h3,
  div#alatekstit h4,
  div#alatekstit p,
  .sisenna_isolla_naytolla {
    padding-left: 50px !important;
    padding-right: 50px !important;
  }
}

@media screen and (max-width: 600px) {
  body,
  html {
    font-size: 16px;
  }

  div.urakoitsijaluokka {
    width: 100%;
    display: table-row;
    border: 1px solid;
    white-space: nowrap;
    overflow: hidden;
  }

  h1 {
    font-size: 24px;
  }

  div#etusivu_iso_teksti {
    /* font-size: 32px; */
  }

  div#etusivu_pieni_teksti {
    font-size: 22px;
  }

  div.infoikkuna {
    font-size: 12px;
  }

  div#urakoitsijalista_info,
  div#tarjouspyyntolista_info {
    display: none;
  }

  table#urakoitsijalista,
  table#tarjouspyyntolista {
    margin-bottom: 0 !important;
  }
}

@media screen and (max-width: 960px) {
  .topnav {
    background-color: #eee;
  }

  .topnav a {
    /* font-size: 16px; */
  }

  div.etusivu_vierekkain {
    width: 100%;
    float: left;
    box-sizing: border-box;
  }

  div.etusivu_vierekkain_kuva {
    border: none;
  }

  .topnav a,
  .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .topnav.responsive .dropdown {
    float: none;
  }
  .topnav.responsive .dropdown-content {
    position: relative;
  }
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }

  div#footer img {
    width: 35%;
    margin-top: 40px;
  }
}

@media screen and (max-width: 660px) {
  div.urakointiruutu {
    float: left;
    width: 100%;
    text-align: center;
  }

  div#footer img {
    width: 70%;
    margin-top: 30px;
  }

  div#kielivalinta img {
    /* height: 64px; */
  }

  div#urakoitsijalista_info,
  div#tarjouspyyntolista_info {
    display: none;
  }

  div.infoikkuna {
    font-size: 12px;
  }

  table#urakoitsijalista,
  table#tarjouspyyntolista {
    margin-bottom: 0 !important;
  }

  div#header img.logo {
    margin: 0 auto;
    width: 30%;
  }

  div#header {
    text-align: center;
  }

  div.urakoitsijaluokka {
    width: 50%;
  }

  .gm-style .gm-style-iw {
    font-size: 18px;
  }

  div.urakointiruutu h1 {
    font-size: 24px;
  }

  div.urakointiruutu img {
    width: 80%;
  }

  div.urakointiruutu div.lisateksti {
    font-size: 1em;
  }
}

@media print {
  .ala_tulosta {
    display: none !important;
  }
}

.custom-multiselect-wrapper {
  font-family: sans-serif;
}

.custom-multiselect {
  position: relative;
  width: 100%;
  max-width: 500px;
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  user-select: none;
}

.custom-multiselect .selected-placeholder {
  padding: 8px 10px;
  background: #f8f8f8;
}

.custom-multiselect .multiselect-options {
  display: none;
  position: absolute;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.custom-multiselect.open .multiselect-options {
  display: block;
}

.custom-multiselect .option-item {
  display: block;
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.custom-multiselect .option-item:hover {
  background-color: #f0f0f0;
}

.custom-multiselect .group-title {
  padding: 6px 10px;
  font-weight: bold;
  background-color: #eee;
  text-transform: uppercase;
  font-size: 13px;
  color: #333;
  cursor: default;
}
