body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Calibri" !important;
}

@font-face {
  font-family: "Calibri" !important;
  font-weight: 400;
  src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff");
}

* {
    border: 0;
    font-size: 100%;
    font-family: 'Calibri', sans-serif !important;
}

h1, .tooltip-gm, .tooltip-satellite, #passwordInput, #passwordButton, button, textarea, select {
    font-family: 'Calibri', sans-serif !important;
    -webkit-appearance: none!important;
    -moz-appearance: none!important;
	color: unset!important;
}

.namefield-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.namefield-dialog {
  background: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  font-family: Calibri, sans-serif;
}

.namefield-dialog h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 18px;
}

.namefield-dialog p {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 14px;
}

#nameFieldSelect {
  width: 100%;
  padding: 5px 7px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 7px -2px;
}

.namefield-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.namefield-actions button {
  padding: 4px 10px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 7px -2px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding-right: 30px;
  appearance: none;
}

.select-arrow {
  transform: rotate(90deg);
  position: absolute;
  top: 13%;
  right: 10px;
  pointer-events: none;
  color: #666;
  font-weight: bold;
  font-family: monospace !important;
  font-size: 18px;
}

summary::-webkit-details-marker {
    display: none;
}
summary::marker {
    display: none;
}

.custom-summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-left: 14px;
}

.custom-summary::before {
    content: "›";
    font-weight: bold;
    font-family: monospace !important;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: -5px;
    transition: transform 0.2s;
}

details[open] .custom-summary::before {
    transform: rotate(90deg);
}

kpalue-legend-toggle leaflet-control {
    background: white;
    display: block;
    max-width: 95vw;
    z-index: 2000;
    background-color: white;
    padding: 0px 9px 0px 9px;
    border-radius: 10px;
    border-width: 0px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.8);
}

.train-halo-icon {
  pointer-events: none; /* ei vie klikkejä */
}

.train-halo {
  width: 44px;
  height: 44px;
  border: 4px solid #ff9800;
  border-radius: 50%;
  box-sizing: border-box;
  animation: haloPulse 0.9s ease-in-out infinite;
  background: transparent;
}

@keyframes haloPulse {
  0%   { opacity: 0.9; transform: scale(1); }
  50%  { opacity: 0.35; transform: scale(1.12); }
  100% { opacity: 0.9; transform: scale(1); }
}

.APIvirhe {
    background-color: #fde3de;
    border-left: 4px solid #ff7d71;
    padding: 5px 16px;
}

.virheilmoitus {
    background-color: #fff4e5;
    border-left: 4px solid #ffa500;
    padding: 5px 16px;
}
.virheilmoitus code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
}

.context-submenu:hover .submenu {
  display: block;
}
.context-submenu {
  position: relative;
}

.submenu {
    position: absolute;
    top: 0;
    right: 100%;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    display: none;
    min-width: 100px;
    z-index: 2000;
}

.submenu-item {
  padding: 5px 15px;
  cursor: pointer;
}

.submenu-item:hover {
  background-color: #f0f0f0;
}

#excelColumnSelectorModal.hidden {
  display: none;
}
#excelColumnSelectorModal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5); display: flex;
  align-items: center; justify-content: center; z-index: 9999;
}

#excelColumnSelectorModal .modal-content {
    font-family: Calibri;
    background-color: #ffffffe6;
    max-width: 95%;
    box-shadow: 0 4px 20px 5px rgb(0 0 0 / 30%);
    animation: slideFadeIn 0.3s ease;
}

#excelColumnSelectorModal .modal-content select {
  width: 100%;
  margin-bottom: 10px;
  padding: 3px 6px;
  border-radius: 6px;
  background-color: #ffffffe6;
  box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.25);
}

#excelColumnSelectorModal .modal-content {
  max-width: 95%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: slideFadeIn 0.3s ease;
}

#excelConfirmBtn {
    padding: 3px 6px 4px 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #ffffffe6;
    box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.25);
}

@keyframes slideFadeIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

.leaflet-tooltip.no-leaflet-style {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  opacity: 1 !important;
}

.invisible-icon {
  background: transparent;
  border: none;
}

.important-tooltip-gm {
    background-color: #ffffff00;
    border: none;
    font-family: calibri;
    color: blue;
    font-weight: bold;
    font-size: medium;
    box-shadow: none;
    text-shadow: -1px 0px 1px white, 0 1px 1px white, 1px 0 1px white, 0 -1px 1px white !important;
}

.important-tooltip-sat {
    background-color: #ffffff00;
    border: none;
    font-family: calibri;
    color: #ffa726;
    font-weight: bold;
    font-size: medium;
    box-shadow: none;
    text-shadow: -1px 0px 1px black, 0 1px 1px black, 1px 0 1px black, 0 -1px 1px black !important;
}

.osanimet-tooltip-gm {
    background-color: #ffffff00;
    border: none;
    font-family: Calibri;
    color: blue;
    font-weight: 500;
    font-size: small;
    box-shadow: none;
    text-shadow: -1px 0px 1px white, 0 1px 1px white, 1px 0 1px white, 0 -1px 1px white !important;
}

.osanimet-tooltip-sat {
    background-color: #ffffff00;
    border: none;
    font-family: Calibri;
    color: #ffa726;
    font-weight: 500;
    font-size: small;
    box-shadow: none;
    text-shadow: -1px 0px 1px black, 0 1px 1px black, 1px 0 1px black, 0 -1px 1px black !important;
}

#searchHistoryContainer {
    background-color: white;
    padding-bottom: 5px;
}

#searchHistory{
    z-index: 1001;
    width: 100%;
    font-family: calibri;
    background-color: white;
    max-height: 90vh;
    overflow: auto;
}

.historyItem {
    padding: 0px 10px;
    margin: 3px 5px;
    cursor: pointer;
    column-width: 10px;
    width: -webkit-fill-available;
    width: -moz-available;
    text-align: left;
    display: flex;
    color: #52188c;
}

.historyItem:hover {
    background: #ccc;
}

#clearHistoryButton {
    background-color: white;
    color: grey;
    border: none;
    padding: 3px 0px 0px 8px;
    font-size: small;
    font-family: calibri;
    cursor: pointer;
    margin: 0 0px 0 6px;
}

#clearHistoryButton:hover {
    font-weight: bold;
}

#back {
    position: relative;
    display: flex;
    justify-content: center;
}

.label-icon {
    width: min-content !important;
    margin: -10px !important;
    font-size: 12px;
    font-weight: bold;
    color: #F44336;
    white-space: nowrap;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
}

.settings-panel {
	display: none;
	position: absolute;
	top: 10px;
	left: 10px;
	background: white;
	padding: 10px;
	border-radius: 5px;
	z-index: 1000;
	font-family: Calibri;
	border-radius: 0.5rem;
	border: 1px solid rgb(153, 153, 153);
	box-shadow: rgb(153, 153, 153) 3px 3px 5px;
}

.file-marker-hover {
	margin-left: -21px !important;
    margin-top: -37px !important;
    background-color: #aaaaaac4;
    border-radius: 2rem;
    border: 2px solid #ffffff;
	z-index: 10000 !important;
}

.checkbox{
    margin-right: 7px;
}

#drop-zone {
    margin-top: 5px;
    border: 2px dashed #ccc;
    padding: 5px;
    text-align: center;
    border-radius: 5px;
    display: block;
}

#drop-zone.dragover {
	background-color: #9E9E9E;
    border-color: #9E9E9E;
}

.AddedFiles{
    position: relative;
    bottom: 2px;
    margin: auto;
    width: 90%;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: #ffffff;
    padding: 10px 10px 15px 10px;
    z-index: 1;
    border-bottom: 1px solid #ccc;
    box-shadow: 0px 0px 10px 0px #0000004d;
    height: 50px;
}

.custom-file-upload:hover #upload-icon {
	content: url("upload-hover.png");
}
	
.file-pin{
	z-index: 10000;
}

.options-icon {
    position: absolute;
    right: 3px;
    font-size: 20px;
    font-weight: bold;
    color: grey;
    padding: 3pt;
}

.options-icon:hover {
	color: black;
}

.file-context-menu {
    position: absolute;
    width: 150px;
    z-index: 1000;
    right: 20px;
    font-family: Calibri;
    cursor: pointer;
    border-radius: 0.5rem;
    list-style-type: none;
    background-color: white;
    border: 1px solid rgb(153, 153, 153);
    box-shadow: rgb(153, 153, 153) 3px 3px 5px;
}

.sidebar {
    height: 100%;
    width: fit-content;
    font-family: calibri;
    max-width: 450px;
    position: absolute;
    overflow: auto;
    z-index: 5;
    top: 0;
    bottom: 0;
    right: 0px;
    background-color: #ffffff;
    transition: 0.5s;
    box-shadow: #8d8d8d 0px 0px 7px 2px;
}

.sidebar a {
  padding: 1px 1px 1px 1px;
  text-decoration: none;
  color: #0078A8;
  display: block;
  transition: 0.3s;
}

.sidebar a:hover {
  color: #024179;
}

.sidebar .closebtn {
  position: absolute;
  top: 0px;
  right: 5px;
  font-size: 30px;
  margin-right: 10px;
  color: #818181;
}

.openbtn {
  position: absolute;
  z-index: 4;
  right: 0;
  top: 85px;
  padding: 3px 0px 6px 0px;
  background: white;
  border: none;
  border-radius: 2rem 0 0 2rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.openbtn .icon {
  position: relative;
  z-index: 0;
  font-size: 20px;
  padding: 5px 9px 6px 9px;
  border-radius: 2rem 0 0 2rem;
  box-shadow: -1px 0px 6px 1px #8d8d8d;
}

.openbtn::before,
.openbtn::after {
  content: "";
  position: absolute;
  right: -16px;
  width: 8px;
  height: 12px;
  border: 15px solid #ffffff;
  border-left: none;
  z-index: 1;
  transition: 0.2s ease;
}

.openbtn::before {
  top: 21px;
  right: -15px;
  border-bottom: none;
  border-radius: 0 22px 0 0;
  box-shadow: inset #8d8d8d -2px 2px 4px -3px;
}

.openbtn::after {
  bottom: 21px;
  right: -15px;
  border-top: none;
  border-radius: 0 0 22px 0;
  box-shadow: inset #8d8d8d -2px -2px 4px -3px;
}

.openbtn:hover {background-color: #bdbdbd;color: white;}

.openbtn:hover::before,
.openbtn:hover::after {
  border-color: #BDBDBD;
}

#main {
  transition: margin-left 0.5s;
  padding: 0;
  position: absolute;
  top: 200px;
  right: 0;
  display: none;
}

.file-section {
    margin-bottom: 15px;
    margin-right: 2px;
    margin-left: 2px;
    max-width: 420px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 2px 2px 4px 0px rgb(0 0 0 / 20%), 0 -1px 2px 0px rgba(0, 0, 0, 0.1);
}

.file-header {
    position: sticky;
    top: 9px;
    height: 29px;
    background-color: #f0f0f0;
    font-weight: bold;
    padding: 10px 18px 10px 10px;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    font-family: calibri;
    font-size: 16px;
    display: flex;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-wrap: nowrap;
    align-items: center;
    box-shadow: 2px 2px 4px 0px rgb(0 0 0 / 20%), 0 -1px 2px 0px rgba(0, 0, 0, 0.1);
}

.file-header:hover {
    background-color: #e0e0e0;
}

.file-body {
    padding: 10px;
}

.row-details {
	padding: 5px; 
	border-top: 2px solid #ccc; 
	margin-top: 10px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: #8d8d8d 0px 0px 4px 0px;
    box-shadow: 2px 2px 4px 0px rgb(0 0 0 / 20%), 0 -1px 2px 0px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    flex-direction: column;
}

.table-row:hover {
    background-color: #f2f2f2;
    box-shadow: #8d8d8d 0px 0px 4px 1px;
}

.table-cell-number {
    display: flex;
    width: 25px;
    height: 25px;
    font-weight: bold;
    text-align: center;
    background-color: #EEEEEE;
    border-radius: 1rem;
    align-items: center;
    justify-content: center;
    box-shadow: #8d8d8d 0px 0px 4px 0px;
}

.table-cell-info {
    width: 90%;
    padding-left: 10px;
    display: flex;
    align-items: center;
    overflow: auto;
}

.hidden {
    display: none;
}

.file-popup {
	margin-bottom: 60px !important;
}

#upload-icon {
    position: relative;
    top: 0px;
    width: 25px;
    height: 25px;
    border: none;
    padding: 0;
    margin-right: 10px;
    background-color: #ffffff00;
}

#closeFileCont {
	position: absolute;
	display: flex;
	right: 1px;
	top: -1px;
	height: 23px;
	width: 23px;
	justify-content: space-evenly;
	font-size: 15px;
	align-items: flex-end;
	cursor: pointer;
	z-index: 10;
}

#closeFileCont:hover {
    font-weight: bold;
}

#FileInfoButton {
	width: 30px;
	height: 30px;
	border-radius: 2rem;
	border: solid 1px #fff;
	font-weight: bold;
	background-color: #dddddd29;
	font-size: 15px;
	color: white;
	box-shadow: #8d8d8d 0px 0px 7px 2px;
	text-shadow: -1px 0px 1px #666666, 0 1px 1px #666666, 1px 0 1px #666666, 0 -1px 1px #666666 !important;
}

#FileInfoContainer {
	position: absolute;
	top: 10px;
	right: 0px;
	max-width: 55%;
}

#fileDataTable {
    min-width: 250px;
    max-width: 400px;
    border: 0px solid grey;
    padding: 0pt 3pt 3pt 3pt;
}

.vaihde {
    border-radius: 2rem;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
}

.vaihde-haku {
    background-color: #aaaaaac4;
    border-radius: 2rem;
    border: 1px solid #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
}

.vaihde img {
    width: 32px;
    height: 32px;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.5s;
}

#errorMessage {
  margin-left: 10px;
  font-size: 18px !important;
}

.train-animate {
    width: 8em;
    height: 10em;
    font-size: 20px;
}

.train {
    width: 6em;
    height: 6em;
    background: radial-gradient(circle at 20% 80%, currentColor 0.5em, transparent 0.7em), radial-gradient(circle at 80% 80%, currentColor 0.5em, transparent 0.7em), #f8f6f3;
    border-radius: 1em;
    position: relative;
    left: 1em;
    color: #ffc1079e;
    animation: train-animate 1.5s infinite ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 23px 5px;
}

@keyframes train-animate {
    0%, 100% {
        transform: rotate(0deg);
    }

    25%, 75% {
        transform: rotate(1deg);
    }

    50% {
        transform: rotate(-1deg);
    }
}

.train::before {
    content: '';
    position: absolute;
    width: 40%;
    height: 2.2em;
    background-color: #bee1ff;
    border-radius: 0.65rem;
    top: 1.4em;
    left: 8.5px;
    box-shadow: 55px 0 0 0 #bee1ff;
}

.train::after {
    content: '';
    position: absolute;
    width: 25%;
    height: 0.4em;
    background-color: black;
    border-radius: 0.3em;
    top: 0.4em;
    left: calc((100% - 25%) / 2);
}

.track {
    width: 8em;
    position: relative;
}

.track::before,
.track::after {
    content: '';
    position: absolute;
    width: 0.4em;
    height: 4em;
    background-color: #bbb;
    border-radius: 0 0 0.4em 0.4em;
    transform-origin: bottom;
}

.track::before {
    z-index: 1;
    left: 0;
    transform: skewX(-27deg);
    box-shadow: rgba(0, 0, 0, 0.5) -1px 4px 8px 0px, inset rgba(0, 0, 0, 0.5) 0px 0px 2px 1px;
}

.track::after {
    right: 0;
    transform: skewX(27deg);
    box-shadow: rgba(0, 0, 0, 0.5) 1px 4px 8px 0px, inset rgba(0, 0, 0, 0.5) 0px 0px 2px 1px;
}

.track span {
    border: 1px inset;
    width: inherit;
    height: 0.65rem;
    background-color: #ddd;
    position: absolute;
    top: 4em;
    animation: track-animate 1.6s linear infinite;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px, inset rgba(0, 0, 0, 0.5) 0px -1px 2px 1px;
}

.track span:nth-child(2) {
    animation-delay: -0.4s;
}

.track span:nth-child(3) {
    animation-delay: -0.8s;
}

.track span:nth-child(4) {
    animation-delay: -1.2s;
}

@keyframes track-animate {
    0% {
        transform: translateY(-0.5em) scaleX(0.9);
        filter: opacity(0);
    }

    35%, 90% {
        filter: opacity(1);
    }

    100% {
        transform: translateY(-4em) scaleX(0.5);
        filter: opacity(0);
    }
}

.loader {
  color: #000;
  display: inline-block;
  position: relative;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  padding-right: 1px;
}
.loader::after {
  top: 11.5px;
  content: '';
  width: 3px;
  height: 3px;
  background: currentColor;
  position: absolute;
  bottom: 10px;
  right: -5px;
  box-sizing: border-box;
  border-radius: 2rem;
  animation: animloader 1s linear infinite;
}

@keyframes animloader {
  0% {
    box-shadow: 7px 0 rgb(0 0 0 / 0%), 15px 0 rgb(0 0 0 / 0%);
  }
  50% {
    box-shadow: 7px 0 black, 15px 0 rgb(0 0 0 / 0%);
  }
  100% {
    box-shadow: 7px 0 black, 15px 0 black;
  }
}

.geojson-layer:hover {
    stroke: #FF9800;
    fill-opacity: 0.7;
}

a {
    color: #0078A8;
}

b {
    font-size: 12px !important;
}

#VirheInfo {
    display: block;
    font-family: calibri;
    position: absolute;
    top: 10px;
    z-index: 10000;
    background-color: white;
    left: 63px;
    width: 305px;
    padding: 5px 10px 10px 10px;
    border-radius: 0.5rem;
    box-shadow: 2px 2px 4px rgb(0 0 0 / 20%), -1px -1px 2px 0px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    font-size: 18px;
    border-top-width: 35px;
    border-top-color: #fde3de;
}

#closeVirhe {
    position: absolute;
    display: flex;
    right: 5px;
    top: -29px;
    height: 23px;
    width: 23px;
    justify-content: space-evenly;
    font-size: 18px;
    align-items: flex-end;
    cursor: pointer;
}

#closeVirhe:hover {
    font-weight: bold;
}

#VirheInfoIcon {
    position: absolute;
    display: flex;
    left: 10px;
    top: -29px;
    height: 23px;
    width: 23px;
    justify-content: space-evenly;
    font-size: 20px;
    align-items: flex-end;
	cursor: default;
}

#coords:hover {
    text-decoration: underline;
}

#coords img {
    display: none;
    position: absolute;
    vertical-align: middle;
    width: 14px;
    height: 14px;
    padding: 2px 0px 0px 3px;
    opacity: 0.6;
}

#coords:hover img {
    display: inline;
}

#type {
	font-size: 20px !important; 
	text-decoration: underline;
}

#type2 {
	font-size: 16px !important; 
	text-decoration: underline;
}

#cont {
	font-size: 16px; 
}

.backButton {
    display: none;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 1px 2px 1px;
    margin-right: 5px;
    position: absolute;
    right: 40px;
}

#ch1 {
	vertical-align: middle;
	width: 15px;
	height: 15px;
	padding: 0px 5px 3px 0px;
	opacity:0;
}

#ch2 {
	vertical-align: middle;
	width: 15px;
	height: 15px;
	padding: 0px 5px 3px 0px;
	opacity:0;
}

#ch3 {
	vertical-align: middle;
	width: 15px;
	height: 15px;
	padding: 0px 5px 3px 0px;
	opacity:0;
}

#infoContainer {
    position: absolute;
    top: 10px;
    right: 10px;
    max-width: 55%;
}

#infoButton {
    font-family: "Calibri" !important;
    width: 23px;
    height: 23px;
    border-radius: 2rem;
    border-width: 1px;
    border: solid 1px #fff;
    font-weight: bold;
    background-color: #dddddd5e;
    font-size: 15px;
    color: white !important;
    box-shadow: #8d8d8d 0px 0px 7px 2px;
    text-shadow: -1px 0px 1px #666666, 0 1px 1px #666666, 1px 0 1px #666666, 0 -1px 1px #666666 !important;
}

#infoButton:hover {
	border: solid 2px #fff;
	font-weight: bold;
	box-shadow: #8d8d8d 0px 0px 5px 5px;
}

#infoContent {
    border-radius: 0.5rem;
    position: relative;
    bottom: 0px;
    left: 0px;
    list-style-type: none;
    padding: 15px;
    background-color: white;
    border: 1px solid rgb(153, 153, 153);
    box-shadow: rgb(153, 153, 153) 3px 3px 5px;
    border-top-width: 35px;
    border-top-color: #e3e3e3;
}

#closeInfo {
    position: absolute;
    display: flex;
    right: 5px;
    top: -29px;
    height: 23px;
    width: 23px;
    justify-content: space-evenly;
    font-size: 20px;
    align-items: flex-end;
    cursor: pointer;
}

#infoIcon {
    position: absolute;
    display: flex;
    left: 5px;
    top: -29px;
    height: 23px;
    width: 23px;
    justify-content: space-evenly;
    font-size: 20px;
    align-items: flex-end;
	cursor: default;
}

#closeInfo:hover {
    font-weight: bold;
}


.leaflet-control-locate a .leaflet-control-locate-location-arrow {position: unset;}

.leaflet-container b {
    font-size: 16px;
}

.groupHeader {
    border-top: 0px solid black;
    font-weight: bold;
    background-color: #eeeeee;
    padding: 0px 0px 3px 5px;
}

#closeSearchBtn {
    margin-left: 10px;
    padding: 6px 8px 11px 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: white;
    position: absolute;
    right: 1px;
}

#fa-download {
    display: none;
    position: absolute;
    bottom: 10px;
}

tbody {
    width: 100%;
}

.tasoristeys-haku {
    background-color: #aaaaaac4;
    border-radius: 2rem;
    border: 1px solid #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
	z-index: 10000 !important;
}

.tasoristeys-haku img {
    width: 32px;
    height: 32px;
}

.silta-haku {
    background-color: #aaaaaac4;
    border-radius: 2rem;
    border: 1px solid #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
}

.silta-haku img {
    width: 32px;
    height: 32px;
}

.SA-haku {
    background-color: #aaaaaac4;
    border-radius: 2rem;
    border: 1px solid #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
}

.SA-haku img {
    width: 32px;
    height: 32px;
}

.VK-haku {
    background-color: #aaaaaac4;
    border-radius: 2rem;
    border: 1px solid #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
}

.VK-haku img {
    width: 32px;
    height: 32px;
}

.LP-haku {
    background-color: #aaaaaac4;
    border-radius: 2rem;
    border: 1px solid #ffffff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
}

.LP-haku img {
    width: 32px;
    height: 32px;
}

.leaflet-pm-draw {
    display: none;
}

.leaflet-pm-edit {
    display: none;
}


.leaflet-right .leaflet-pm-toolbar .button-container .leaflet-pm-actions-container {
    right: auto !important;
    left: 100% !important;
}

.context-menu-item {
  padding: 8px;
  border-bottom: 1px solid #ccc;
}

.context-menu-item:first-child {
  border-radius: 0.5rem 0.5rem 0rem 0rem;
}

.context-menu-item:last-child {
  border-bottom: none;
  border-radius: 0rem 0rem 0.5rem 0.5rem;
}

.context-menu-item:hover {
  background-color: #e0e0e0;
}

.leaflet-control-geocoder-icon-close {
  background: url('path_to_your_close_icon.png') no-repeat center center;
  background-size: cover;
}

.leaflet-control-geocoder-expanded {
    left: 304px !important;
}

.leaflet-control-geocoder {
    display: none;
}

.mitta {
    display: none;
}

.leaflet-control-zoom {
    top: 0px !important;
	left: 0px !important;
	display: block !important;
	transform: translateX(0) !important;
}

.leaflet-bar.leaflet-control {
	top: 184px;
    left: 54px;

    transform: translateX(-100vw);
}

.leaflet-control-locate {
	position: absolute !important;
    top: 146px !important;
	left: 0px !important;
	transform: translateX(0) !important;
}

.polyline-measure-tooltip {
    font: 12px Calibri, Helvetica, sans-serif !important;
    line-height: 12px !important;
    background-color: #ffffffd1 !important;
    border-radius: 0.5em !important;
    margin: 0 !important;
    padding: 4px !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4) !important;
    width: auto !important;
    height: auto !important;
    white-space: nowrap !important;
    text-align: right !important;
}

.kayttokeskusalueet:hover {
    fill-opacity: 0.3;
}

#file-input {
    display: none;
}

#drop-zone.highlight {
    border-color: #333;
    background-color: #ccc;
}

.custom-file-upload {
    display: grid;
    padding: 0px 8px;
    cursor: pointer;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 2px rgb(0 0 0 / 20%), -2px -2px 2px 0px rgb(0 0 0 / 5%);
}

.custom-file-upload:hover {
    display: grid;
    padding: 0px 12px;
    cursor: pointer;
    background-color: #ddd;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
}

.custom-file-upload:active {
    box-shadow: inset 2px 2px 2px 0px rgb(0 0 0 / 20%), inset -1px -1px 2px 0px rgba(0, 0, 0, 0.1);
    font-size: 95%;
    background-color: #ccc;
}
	
.leaflet-shadow-pane img {
	display: none;
}

.file-tooltip {
	z-index: 1000 !important;
    background-color: #fff0 !important;
    border: 1px solid #ddd0 !important;
    border-radius: 4px !important;
    padding: 6px !important;
    box-shadow: 0 3px 14px rgb(0 0 0 / 0%) !important;
    margin-top: -3px !important;
    font-weight: bold;
    text-shadow: -1px 0 #fff, 0 1px white, 1px 0 white, 0 -1px white !important;
}

#files {
    display: contents;
}

.filelabel {
    display: -webkit-inline-box;
    height: auto;
    max-width: 95%;}

.painike {
    position: relative;
    right: 0;
    background-color: #df1200;
    color: white !important;
    font-size: 15px;
    width: 17px;
    height: 17px;
    border-width: 0;
    border-radius: 1rem;
    padding: 0px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.painike:hover {
    background-color: #9b0d00;
}

input[type="checkbox" i] {
	vertical-align: middle;
}

:root {
    --leaflet-tile-filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
}

#trainLegend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.legend-icon {
  width: 16px;
  height: 16px;
}

@media (prefers-color-scheme: dark) {
    .leaflet-tile {
        filter: var(--leaflet-tile-filter, none);
    }

    .leaflet-container {
        background: #303030;
    }
}

label {
    display: block;
    height: 20px;
}

.custom-div-icon .marker-pin {
    width: 30px;
    height: 50px;
    background-size: cover;
}

.custom-div-icon-hover .marker-pin {
    width: 30px;
    height: 50px;
    background-size: cover;
}

.custom-div-icon-hover {
    z-index: 10000 !important;
}

.custom-div-icon .marker-number {
	position: absolute;
	top: 5px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
	color: white;
}

.custom-div-icon-hover .marker-number-hover {
	position: absolute;
	top: 5px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 15px;
	font-weight: bold;
	color: black;
}

.custom-marker .marker-icon {
    background-color: blue;
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.modal {
    display: none;
    align-content: center;
    position: fixed;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0 0 0 / 15%);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    padding: 20px;
    top: 5%;
    margin: 0px 30% 10% 30%;
    border-width: 0;
    border-radius: 0.7rem;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px;
}

.close {
	position: relative;
	top: -20px;
	right: -12px;
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

/* Salasana input */
input[type=password] {
    width: -webkit-fill-available;
    width: -moz-available;
    padding: 7px 20px;
    margin: 10px 0px;
    display: inline-block;
    border-radius: 0.7rem;
    box-shadow: 2px 2px 4px rgb(0 0 0 / 20%), -1px -1px 2px 0px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    font-size: 20px;
}

h1 {
    font-size: x-large;
    margin-bottom: 5px;
    margin-top: 0;
}

#passwordButton {
    height: 35px;
    width: 160px;
    position: static;
    font-size: 100%;
    border: 1px solid #ccc;
    border-radius: 0.6rem;
    padding: 5px 10px 5px 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 2px 2px 4px rgb(0 0 0 / 20%), 0 -1px 2px 0px rgba(0, 0, 0, 0.1);
}

#passwordButton:hover {
    background-color: #ccc;
}

#passwordButton:active {
    box-shadow: inset 2px 2px 4px rgb(0 0 0 / 20%), inset -1px -1px 0px rgb(255 255 255 / 50%);
    background-color: #ccc;
    font-size: 108%;
}

.heading-icon {
    transform-origin: center;
}

.marker-icon {
    transform-origin: center !important;
	width: 24px !important;
	height: 24px !important;
	margin-left: -12px !important;
    margin-top: -12px !important;
}

#removeMarkersButton {
    display: block;
    position: absolute;
    top: 10px;
    left: 388px;
    background-color: #df1200;
    color: white;
    font-weight: normal;
    font-family: calibri;
    font-size: medium;
    height: 2.75em;
    z-index: 2000;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
    padding: 7pt;
    cursor: pointer;
}

#removeMarkersButton:hover{
    background-color: #9b0d00;
	color: white;
}

#layerControl {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 5px;
    z-index: 1000;  /* Asetetaan korkea z-indeksi varmistaaksemme, että se näkyy muiden elementtien päällä */
}

#map {
	width: 100%;
    height: 100%;
    margin: 0;
	transform: translate3d(0, 0, 0);
	cursor: auto;
	opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.resultItem {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    column-width: 10px;
    width: -webkit-fill-available;
    width: -moz-available;
    text-align: left;
    display: flex;
}

.resultItem:hover {
    background-color: #ccc;
}

.ExtResultItem {
    padding: 10px 5px;
    border-top: 0px solid #ccc;
    margin: 0 5px;
    column-width: 10px;
    width: -webkit-fill-available;
    width: -moz-fill-available;
    text-align: left;
    display: inline-table;
}

.kmItem {
    padding: 5px 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    column-width: 10px;
    width: -webkit-fill-available;
    width: -moz-available;
    text-align: left;
    display: flex;
}

.kmItem:hover {
    background-color: #ccc;
}

.result:hover {
    background-color: rgb(54 142 233 / 22%);
}

.active-result {
    background-color: rgb(54 142 233 / 22%);
}

p {
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-top: 0px;
    margin-bottom: 0px;
    font-weight: bold;
}

th {
    display: table-cell;
    vertical-align: inherit;
    font-weight: unset;
    text-align: center;
    background-color: #00000017;
    border-radius: 1rem 1rem 1rem 1rem;
    width: 25px;
    border: 1px solid #ccc;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2), 0 -1px 0px rgba(0, 0, 0, 0.02);
}

td {
    display: table-cell;
    vertical-align: inherit;
    padding-left: 10px;
}

.searchContainer {
    position: absolute;
    z-index: 1000;
    top: 0.6em;
    left: 4em;
    overflow: hidden;
    width: 20em;
    top: 10px;
    border-radius: 10px;
    border-width: 0px;
    border: 2px solid rgba(0,0,0,0.2);
    background-clip: padding-box;
}

.searchBox {
    display: flex;
    align-items: center;
    background-color: white;
    height: 2.5em;
    border-width: 0px;
    background-clip: padding-box;
}

#searchInput {
    padding-left: 1em;
    border: none;
    flex-grow: 1;
    border-radius: 2em 0 0 2em;
	outline: none;
}

#searchButton {
    background: transparent;
    border: none;
    cursor: pointer;
    padding-top: 0;
    padding-left: 0;
    border-radius: 0 2em 2em 0;
    font-size: 12pt;
    position: absolute;
    right: 7pt;
    height: 20px;
    width: 20px;
}

#searchButton:hover .close-icon img {
    content: url('close-icon_hov.png');
}

#searchButton:hover .magnifier img {
    content: url('magnifier-hov.png');
}

.backButton:hover #back img {
    content: url('arrow_hov.png');
}

#toggleView {
    position: absolute;
    z-index: 2000;
    top: 80px;
    left: 10px;
    background-color: white;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    border-width: 0px;
    border: 2px solid rgba(0,0,0,0.2);
    background-clip: padding-box;
    padding: 3pt 3pt 3pt 3pt;
    cursor: pointer;
}

#toggleView:hover {
    background-color: #eeeeee;
}

#locateUser:hover {
    background-color: #eeeeee;
}

.locate-button {
    background: none;
    border: none;
    cursor: pointer;
}

.locate-button img {
    width: 30px;
    height: 30px;
}

.magnifier-icon {
    color: black;
    cursor: pointer;
}

#searchButton .close-icon {
    position: relative;
    color: black;
    font-weight: bold;
}

#results {
    z-index: 1001;
    width: 100%;
    max-height: 86vh;
    font-family: calibri;
    display: none;
    background-color: white;
    max-height: 88vh;
    overflow: auto;
}

#km {
    z-index: 1001;
    width: 100%;
    font-family: calibri;
    display: none;
    background-color: white;
	max-height: 90vh;
    overflow: auto
}

.leaflet-tooltip::before {
    border: none !important;
    background-color: transparent !important;
}

.tooltip-gm {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: bold !important;
    font-size: 12px !important;
    color: black !important;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white !important;
}

.tooltip-satellite {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: bold !important;
    font-size: 12px !important;
    color: white !important;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black !important;
}

.ptooltip-gm {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 12px !important;
    color: black !important;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white !important;
}

.ptooltip-satellite {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 12px !important;
    color: white !important;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black !important;
}

.leaflet-tooltip.rataosat {
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 6px !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.4) !important;
}

.leaflet-tooltip.rataosat::before {
  border-top-color: #fff;
}

.leaflet-tooltip.rataosat:hover {
  background-color: #f8f8f8;
}

.rataosat.leaflet-interactive {
	stroke: rgb(51, 136, 255);
    stroke-opacity: 1;
    stroke-width: 3;
    fill: rgb(51, 136, 255);
    fill-opacity: 0.2;
	z-index: 2;
}

.rataosat.leaflet-interactive:hover {
	stroke: #5eff00;
    stroke-opacity: 1;
    stroke-width: 3;
    fill: #5eff00;
    fill-opacity: 0.2;
}

.radat-normal {
	stroke: black;
    stroke-opacity: 0.3;
    stroke-width: 2;
	z-index: 2;
	pointer-events: auto !important;
    cursor: pointer;
}

.radat-normal:hover {
	stroke: black;
    stroke-opacity: 1;
    stroke-width: 4;
	z-index: 2;
}

.radat-satellite {
	stroke: white;
    stroke-opacity: 0.7;
    stroke-width: 2;
	z-index: 2;
	pointer-events: auto !important;
    cursor: pointer;
}

.radat-satellite:hover {
	stroke: white;
    stroke-opacity: 1;
    stroke-width: 4;
	z-index: 2;
}

.leaflet-tooltip.kayttokeskusalueet {
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 6px !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.4) !important;
}

.leaflet-tooltip.kayttokeskusalueet::before {
  border-top-color: #fff;
}

.leaflet-tooltip.kayttokeskusalueet:hover {
  background-color: #f8f8f8;
}

.leaflet-touch .leaflet-bar a {
    height: 30px;
}

.custom-tooltip {
  z-index: 1000 !important;
  background-color: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 6px !important;
  box-shadow: 0 3px 14px rgba(0,0,0,0.4) !important;
  margin-top: -3px !important;
}

.search-tooltip {
	z-index: 1000 !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 1rem !important;
    padding: 6px !important;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4) !important;
    margin-top: -12px !important;
    font-size: larger;
    font-weight: bold;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#menuContainer {
    position: absolute;
    font-size: 14px;
    top: 118px;
    left: 10px;
    z-index: 1001;
    background-color: white;
    border-radius: 5px;
    border: 2px solid rgba(0,0,0,0.2);
    background-clip: padding-box;
}

#menuButton {
    display: flex;
    background-color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    padding: 0px;
    justify-content: center;
    align-items: center;
}

#menuButton:hover {
    background-color: #eeeeee;
}

#menuContent {
    position: relative;
    margin-top: 5px;
    padding: 0px 5px 3px 5px;
    max-height: 70vh;
    overflow-y: auto;
}

.collapsible {
  background: white;
  cursor: pointer;
  width: 100%;
  border: none;
  border-top: 1px solid #ccc;
}

.collapsible:hover {
  background-color: #ccc;
}

.collapsible:after {
  content: '\25BC';
  font-size: 13px;
  color: black;
}

.collapsible.active:after {
  content: '\25B2';
}

.collapsible + .content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible.active + .content {
  max-height: 86vh;
}

.content {
  display: block;
  overflow: hidden;
}

.resultbox {
  display: flex;
  flex-direction: column-reverse;
}


@media (max-width: 900px) {
.tooltip-gm {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: bold !important;
    font-size: 15px !important;
    color: black !important;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white !important;
}

.tooltip-satellite {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: bold !important;
    font-size: 15px !important;
    color: white !important;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black !important;
}

.ptooltip-gm {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 12px !important;
    color: black !important;
    text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white !important;
}

.ptooltip-satellite {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 12px !important;
    color: white !important;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black !important;
}
	
.leaflet-control-locate{
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0 0 0 / 15%);
}

.modal-content {
	position: relative;
	background-color: #fefefe;
	padding: 20px;
	top: 15%;
	margin: 0 10% 0 10%;
	border-width: 0;
	border-radius: 0.7rem;
	box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px;
}

.close {
	position: relative;
	top: -20px;
	right: -12px;
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

input[type=password] {
    width: -webkit-fill-available;
    width: -moz-available;
    padding: 8px 20px;
    margin-top: 0;
    display: inline-block;
    border-radius: 0.7rem;
    font-size: 15px;
}

h1 {
    font-size: medium;
    margin-bottom: 5px;
    margin-left: 2px;
}

th {
    display: table-cell;
    vertical-align: middle;
    font-weight: unset;
    text-align: center;
    background-color: #00000017;
    border-radius: 1rem 1rem 1rem 1rem;
    padding: 0px 6px 0 6px;
    width: 30px;
}

#passwordButton {
    height: 30px;
    width: 140px;
    position: relative;
    color: black;
    font-size: 95%;
    border-radius: 0.6rem;
    margin-bottom: 5px;
    margin-top: 5px;
}

#passwordButton:hover {
}

#passwordButton:active {font-size: 90%;}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: 2px solid rgba(0,0,0,0.2);
    background-clip: padding-box;
    display: none;
}

.searchContainer {
    position: absolute;
    z-index: 1000;
    top: 1rem;
    left: 0;
    margin-left: 3.5em;
    margin-right: 3.5em;
    overflow: auto;
    border-radius: 10px;
    border: 0;
    width: -webkit-fill-available;
    width: -moz-available;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.8);
}

.searchBox {
    display: flex;
    align-items: center;
    border-radius: 10px 10px 0 0;
    background-color: white;
    height: 2.5em;
}

#searchInput {
    padding-left: 1em;
    border: none;
    flex-grow: 1;
    border-radius: 2em 0 0 2em;
	font-size: 16px;
}

#searchButton {
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 8px 0px 0;
    border-radius: 0 2em 2em 0;
}

#results {
    z-index: 1001;
    width: 100%;
    font-family: calibri;
    background-color: white;
    max-height: 170pt;
    overflow: auto;
}

#km {
    z-index: 1001;
    width: 100%;
    font-family: calibri;
    background-color: white;
    max-height: 168pt;
    overflow: auto;
}

#virhe {
    color: red;
	background-color: white;
    padding: 0px 0px 5px 15px;
    font-family: calibri;
	font-weight: bold;
}

#loading {
	background-color: white;
    padding: 0px 0px 5px 15px;
    font-family: calibri;
	font-weight: bold;
}

.resultItem {
    padding: 5px 10px;
    border: 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    width: 100%;
    background-color: white;
    text-align: left;
    font-size: 14px;
}

.resultItem:hover {
    background-color: white;
}

.resultItem:active {
    background-color: #ccc;
}

#menuContainer {
    position: absolute;
    max-width: 95vw;
    left: 10px;
    top: 1rem;
    right: unset;
    z-index: 2000;
    background-color: white;
    padding: 4.5px 3.5px 5px 3.5px;
    border-radius: 10px;
    border-width: 0px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.8);
}

#toggleView {
    position: absolute;
    right: 10px;
    top: 1rem;
    left: unset;
    z-index: 1000;
    background-color: white;
    padding: 4pt;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border-width: 0px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.8);
}

#locateUser {
    z-index: 1000;
    position: absolute;
    left: 10px;
    bottom: 10px;
    top: unset;
    right: unset;
    z-index: 1000;
    background-color: white;
    padding: 3pt 3pt 3pt 3pt;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border-width: 0px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.8);
}

#menuButton {
    background-color: white;
    border: 1px;
    border-radius: 3px;
    cursor: pointer;
    width: 33px;
    height: 30.5px;
}

#removeMarkersButton {
    position: absolute;
    top: 56px;
    left: 0;
    background-color: #df1200;
    color: white;
    font-weight: normal;
    font-family: calibri;
    font-size: inherit;
    height: 23px;
    z-index: 998;
    background-clip: padding-box;
    cursor: pointer;
    border-width: 1px;
    border-color: #ccc;
    border-radius: 13px;
    overflow: hidden;
    width: -webkit-fill-available;
    width: -moz-available;
    padding: 0;
    margin-left: 3.5em;
    margin-right: 3.5em;
}

.collapsible {
  background: white;
  cursor: pointer;
  width: 100%;
  height: 22px;
  display: none;
  margin-top: 0px;
}

.collapsible.active {
  background: white;
  cursor: pointer;
  width: 100%;
  height: 22px;
  display: none;
  margin-top: 0px;
}

.collapsible:hover {
  background-color: #ffffff;
}

.collapsible:after {
  content: '\25BC';
  font-size: 13px;
  color: black;
}

.collapsible.active:after {
  content: '\25B2';
}

.content {
  display: block;
  overflow: hidden;
}

.resultbox {
  display: flex;
  flex-direction: column-reverse;
}

* {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    font-family: 'Calibri', sans-serif !important;
    box-sizing: border-box;
}

ol, ul {
        padding-left: 30px;
}

h1, .tooltip-gm, .tooltip-satellite, #passwordInput, #passwordButton, button, textarea, select {
    font-family: 'Calibri', sans-serif !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none!important;
}

a {
    text-decoration: none;
    color: none;
    font-size: 12px;
}


.leaflet-container b {
    font-size: 12px;
}

button {
	-webkit-tap-highlight-color: #ccc;
	font-family: calibri;
}

.leaflet-control-locate {
    background-color: white;
    display: block !important;
    top: 54px !important;
    border: 0 !important;
    padding: 4px;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    border-width: 0px !important;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.8) !important;
    background-clip
Determines the background painting area.

Saatavilla useimmissa selaimissa (Baseline tammikuu 2018 lähtien)
Lue lisää

Älä näytä: unset;
    background-clip
Determines the background painting area.

Saatavilla useimmissa selaimissa (Baseline tammikuu 2018 lähtien)
Lue lisää

Älä näytä: unset;
    background-clip: unset !important;
}

.leaflet-control-locate:hover {
    background-color: white;
    top: 54px;
    display: block !important;
    padding: 3pt 27pt 27pt 3pt !important;
    border: 0 !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    border-width: 0px !important;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.8) !important;
}

.leaflet-control-locate a .leaflet-control-locate-location-arrow .leaflet-control-locate-spinner{
    margin: 0 !important;
}

.leaflet-control-zoom {
	opacity: 0 !important;
}

.leaflet-bar.leaflet-control {
    top: 110px;
    left: 54px;
    transform: translateX(-100vw);
}

.leaflet-container a {
    color: #0078A8;
    font-size: 12px;
}

.leaflet-touch .leaflet-bar a {
    height: 0px !important;
    width: 0px !important;
}

.leaflet-control-locate a .leaflet-control-locate-location-arrow {position: 
absolute;right: 0px;bottom: 0px;margin: 12px !important;}
	
#loadData{
	display: none;
}

#infoContainer {
    position: absolute;
    top: unset;
    bottom: 30px;
    left: 8px;
    max-width: 100%;
    font-size: 16px !important;
}

#infoContent {
    border-radius: 0.5rem;
    position: relative;
    bottom: 5px;
    left: 0px;
    list-style-type: none;
    padding: 15px;
    background-color: white;
    border: 1px solid rgb(153, 153, 153);
    box-shadow: rgb(153, 153, 153) 3px 3px 5px;
    border-top-width: 35px;
    border-top-color: #e3e3e3;
}

#searchButton .close-icon {
    display: flex;
    bottom: 0pt;
    align-items: center;
}

.backButton {
    position: relative;
}

#infoIcon {
    left: 7px;
}

#VirheInfo {
    top: 14px;
    left: 0;
    right: 0;
    font-size: 16px;
    border-radius: 0.8rem;
    width: -webkit-fill-available;
    width: -moz-available;
    margin-left: 3.4em;
    margin-right: 3.4em;
}

#VirheInfoIcon {
	left: 10px;
}

#type {
	font-size: 16px !important; 
	text-decoration: underline;
}

#cont {
	font-size: 12px; 
}

.track span {
    height: 0.58em;
    box-shadow: #00000033 0px -1px 4px 0px, inset rgb(0 0 0 / 50%) 0px -2px 4px 0px;
}

#errorMessage {
  margin-left: 10px;
  font-size: 16px !important;
}

.sidebar {
	position: absolute;
	top: 60%;
	border-radius: 1rem 0rem 0rem 0rem;
	height: auto;
	max-width: 100%;
	padding-top: 0;
}

.sidebar a {
	font-size: 18px;
}

.openbtn {
    top: 52vh;
}

.openbtn .icon {
    padding: 5px 9px 5px 10px;
}

#fileDataTable {
}

#upload-icon {
    bottom: 5px;
}

.table-cell-info {
    font-size: 14px;
}

.file-header {
    font-size: 14px;
    height: 36px;
    top: 9px;
}

.table-cell-number {
    font-size: 14px;
}

.file-section {
    max-width: 97vw;
}

.AddedFiles{
	top: -24px;
}

.checkbox{
    margin-right: 3px;
}

.important-tooltip-gm {
    font-size: small;
}

.important-tooltip-sat {
    font-size: small;
}

.virheilmoitus {
    font-size: 14px !important;
}

.APIvirhe {
    font-size: 14px !important;
}

#menuContent{
    max-height: 36vh;
}

#menuContent::after {
  display: block;
  content: "";
  position: sticky;
  bottom: 0;
  left: 0;
  width: -webkit-fill-available;
  width: -moz-available;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2));
  pointer-events: none;
  box-shadow: rgb(255 255 255) 0px 0px 26px 18px;
  transition: opacity 0.2s;
}

#menuContent.at-bottom::after {
  opacity: 0;
}
	
#drop-zone {
    display: none;
}

label {
    height: 25px;
}

kpalue-legend-toggle leaflet-control {
    background: white;
    display: block;
    max-width: 95vw;
    z-index: 2000;
    background-color: white;
    padding: 0px 10px 0px 10px;
    border-radius: 10px;
    border-width: 0px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.8);
}

@font-face {
  font-family: "San Francisco"!important;
  font-weight: 400;
  src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-regular-webfont.woff");
}
}