:root {
  --main-bg-color: SteelBlue;
  --main-txt-color:white;
  --main-hover-color:lightgrey;
  --button-bg-color: #ff8000;;
  --button-txt-color:black;    
  --button-hover-color:lightgrey;
  --popFrm-border-color: grey;
  --popFrm-btn-bg-color: rgb(80, 220, 255);
  --border-color:black;
  --nappi-bg-color:whitesmoke;
  --box-bg-color: whitesmoke;
  --button-disabled-bg-color:grey;
  --body-fonts: "Arial", "Helvetica", sans-serif;
  --nav-active-bg-color:##04AA6D;
  --nav-bg-color:#333;
  --nav-bg-hover-color:#ddd;
  --omaTable-bg-color:lightyellow;
  --omaTable-txt-color:black;
  --omaTable-th-color: #ff8000;;
  --omaTable-row-bg-color:whitesmoke;
  --omaTable-rowODD-bg-color:white;    
  --asetus-bg-color: lightsteelblue;
  --hover-brightness:1.5;
    
  
  

}


.top-navbar {
  z-index: 10;
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 50px;
  box-shadow: 0px 0px 12px -4px #000;
  text-align: center;
  background: #ff8000;
  border-bottom: 2px solid #ee7000; }
  .top-navbar * {
    text-decoration: none;
    display: inline-block;
    width: auto; }
  .top-navbar h1 {
    vertical-align: middle;
    flex: 1 1 auto;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: normal;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }
  .top-navbar .action-button {
    width: 40px;
    margin: 5px;
    border-radius: 100%;
    flex: 0 0 auto;
    cursor: pointer;
    color: white;
    z-index: 120; }
    .top-navbar .action-button i {
      font-size: 28px;
      line-height: 40px; }

@media (min-width: 1000px) {
  .top-navbar {
    padding: 0px calc(50% - 500px); } }

#page-shadow {
  opacity: 0.3;
  background: #000;
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20; }

#side-navigation {
  position: fixed;
  width: 50vw;
  height: 100vh;
  left: -50vw;
  top: 0;
  z-index: 100;
  background: #505050;
  transition: left 300ms ease;
  padding-top: 2rem; }
  #side-navigation button {
    display: block;
    text-align: left;
    color: #ff8000;
    font-size: 1.1rem;
    padding: 0.9rem;
    padding-left: 1.2rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none; }
  #side-navigation button.active {
    background: #707070; }

#side-navigation.visible {
  position: fixed;
  left: 0;
  box-shadow: 1px 0px 15px -5px #000; }

#side-navigationAdmin {
  position: fixed;
  width: 50vw;
  height: 100vh;
  left: -50vw;
  top: 0;
  z-index: 100;
  background: #505050;
  -webkit-transition: left 300ms ease;
  -o-transition: left 300ms ease;
  transition: left 300ms ease;
  padding-top: 2rem; }
  #side-navigationAdmin button {
    display: block;
    text-align: left;
    color: #ff8000;
    font-size: 1.1rem;
    padding: 0.9rem;
    padding-left: 1.2rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none; }
  #side-navigationAdmin button.active {
    background: #707070; }

#side-navigationAdmin.visible {
  position: fixed;
  left: 0;
  -webkit-box-shadow: 1px 0px 15px -5px #000;
  box-shadow: 1px 0px 15px -5px #000; }

input {
  display: block;
  width: 100%;
  font-size: 1rem;
  outline: none;
  font-family: 'Roboto', sans-serif; }

input[type=text],
input[type=password] {
  background: #333;
  color: #fff;
  padding: 1rem;
  padding-left: 5rem;
  border: 0; }

input[type=text]::placeholder,
input[type=password]::placeholder {
  color: #ccc;
  margin: 0.5rem 0; }

.input-with-icon:first-child input[type=text],
.input-with-icon:first-child input[type=password] {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem; }

.input-with-icon:last-child input[type=text],
.input-with-icon:last-child input[type=password] {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem; }

.input-with-icon:not(:last-child) input[type=text],
.input-with-icon:not(:last-child) input[type=password] {
  margin-bottom: 2px; }

.input-with-icon {
  position: relative; }

.input-with-icon i {
  position: absolute;
  transform: translate(-50%, -50%);
  left: 2rem;
  top: 50%;
  border-right: 2px solid #444;
  padding: 0.3rem 1rem; }

input[type=submit] {
  margin-top: 2rem; }

input[type=submit], button {
  border: 0;
  outline: none;
  display: block;
  font-size: 1rem;
  width: 100%;
  font-family: 'Roboto', sans-serif;
  border-radius: 0.5rem;
  color: #fff;
  padding: 0.8rem;
  cursor: pointer;
  background: #ff8000;
  box-shadow: 0px 1px 10px -5px #000; }

input[type=submit]:hover, button:hover {
  background: #cc6600; }

/*
button {
    display: block;
    width: 100%;
    outline: none;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0.5rem;
    text-align: center;
    background: $theme-color;
    border-radius: $round-amount;
    cursor: pointer;
}
*/
/* Customize the label (the container) */
.container {
  display: block;
  position: relative;
  padding-left: 5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  line-height: 30px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-align: left;
  background: #333;
  border-radius: 0.5rem; }

/* Hide the browser's default checkbox or radiobutton */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer; }

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  height: 30px;
  width: 30px;
  background-color: #eee; }

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc; }

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #ff8000; }

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none; }

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block; }

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 12px;
  top: 7px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg); }

.container.radio {
  margin: 0;
  background: none;
  padding-left: 4rem; }

/* Create a custom radiobutton */
.radiomark {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  height: 30px;
  width: 30px;
  border-radius: 100%;
  background-color: #eee; }

/* On mouse-over, add a grey background color */
.container:hover input ~ .radiomark {
  background-color: #ccc; }

/* Create the radiomark/indicator (hidden when not checked) */
.radiomark:after {
  content: "";
  position: absolute;
  display: none;
  box-sizing: border-box; }

/* Show the radiomark when checked */
.container input:checked ~ .radiomark:after {
  display: block; }

/* Style the radiomark/indicator */
.container .radiomark:after {
  left: 6px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 100%;
  background-color: #ff8000;
  /*border-bottom: 2px solid darken($theme-color, 5%);*/
  box-shadow: 0px 1px 6px -1px #000; }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

html, body {
  width: 100%;
  height: 100%;
  background: #3a3a3a;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden; 
  max-width: 1600px;
  align-content: center;
  margin:auto;
  color:whitesmoke;
}

.page {
  width: 100%;
  min-height: 100%;
  text-align: center;
  background: #3a3a3a;
  color: #fff;
  overflow-x: hidden; }

#login-page {
  background: url("../assets/background_template2.jpg");
  background-size: cover;
  background-position: center;
  overflow-x: hidden; }

.page-content {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5rem;
  padding-top: 50px; }
  .page-content p {
    text-align: left;
    padding: 0.5rem; }
    .page-content p span {
      padding-left: 0.5rem; }
  .page-content h1 {
    text-align: left;
    padding: 0.6rem 1rem;
    font-size: 1.5rem;
    font-weight: normal; }

.page-content.without-top-navbar {
  padding-top: 0px; }

.narrow-panel {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto; }

img {
  max-width: 100%;
  height: auto; }

div.table-header,
div.table-row {
  display: flex;
  width: 100%; }

div.table-header > div,
div.table-row > div {
  width: 49%;
  text-align: left;
  flex: 1 1 auto;
  padding: 0.4rem 0.4rem; }

div.table-header > div.small-cell,
div.table-row > div.small-cell {
  width: 20px;
  padding: 0;
  flex: 0 1 auto; }

div.table-header > div {
  background: #e08010;
  border-bottom: 2px solid #d06000; }

div.table-content {
  background: #606060;
  margin-bottom: 2rem; }

div.content-row, div.table-row {
  display: inline-block;
  width: 100%;
  border-bottom: 1px solid #3a3a3a; }
  div.content-row.noudettu:not(.jatto) {
    background: #999344;
    border-bottom: 1px solid #496622; }
  div.content-row.noudettu.haku {
    background: #494;
    border-bottom: 1px solid #262; }
  div.content-row.valmis:not(.haku) {
    background: #494;
    border-bottom: 1px solid #262; }
    div.content-row.valmis:not(.haku) div.additional-info-box {
      background: #383; }
  div.content-row.uusi {
    animation: uusiBlink 1.5s linear 0s infinite; }

.tarkea {
  background-color: red; }

@keyframes uusiBlink {
  0% {
    color: #eee;
    background: #606060; }
  50% {
    color: #fc7;
    background: #763; }
  100% {
    color: #eee;
    background: #606060; } }

div.table-row {
  cursor: pointer; }

div.additional-info-box {
  background: #4a4a4a;
  box-shadow: inset 0px 0px 6px -2px #000;
  padding: 0.5rem;
  padding-bottom: 1.5rem;
  margin: 0.3rem;
  border-radius: 2px; }
  div.additional-info-box .button-wrapper {
    margin-bottom: -1rem;
    margin-top: 1rem; }
  div.additional-info-box p {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem; }
    div.additional-info-box p span {
      padding-left: 0.1rem;
      color: #fb8; }
  div.additional-info-box p.faded {
    color: #ccc;
    font-style: italic; }

.button-wrapper {
  text-align: right; }
  .button-wrapper button:not(:last-child) {
    margin-right: 0.5rem; }
  .button-wrapper button {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    width: initial;
    margin-left: auto;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2); }
  .button-wrapper button.green {
    background: #494; }
  .button-wrapper button.green:hover, .button-wrapper button.green:active {
    background: #383; }

div.additional-info-box.closed {
  display: none; }

#ilmoitukset-div {
  margin-top: 2rem; }

[id^="ilmoitus"] {
  background: #606060;
  border-bottom: 1px solid #3a3a3a; }
  [id^="ilmoitus"] .otsikko p {
    margin: 0;
    padding: 0.5rem 0.6rem;
    font-size: 1.2rem; }
  [id^="ilmoitus"] .otsikko p:first-child {
    color: #ccc;
    font-style: italic;
    text-align: right;
    padding-bottom: 0rem;
    font-size: 0.9rem; }
  [id^="ilmoitus"] .viesti {
    padding-top: 0.9rem;
    padding-bottom: 1.5rem;
    background: #505050; }
    [id^="ilmoitus"] .viesti p {
      padding: 0.6rem;
      margin: 0; }

[id^="ilmoitus"].uusi {
  background: #70705a; }
  [id^="ilmoitus"].uusi .otsikko p:nth-child(2) {
    color: #ff8000; }

#hakuEhdot-div {
  background: #2a2a2a;
  padding: 0.5rem;
  margin: 0 -0.5rem 0.5rem -0.5rem; }

div.paivaValitsin-div {
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: center; }
  div.paivaValitsin-div label {
    display: inline-block;
    text-align: center;
    font-weight: bold;
    margin: 0 3rem; }
  div.paivaValitsin-div div {
    display: inline-table;
    margin: auto; }
    div.paivaValitsin-div div button {
      display: table-cell;
      width: 3rem;
      font-size: 1.5em;
      padding: 0.5rem;
      font-weight: bold;
      background: #444; }
    div.paivaValitsin-div div span {
      display: table-cell;
      min-width: 100px;
      text-align: center; }

div#paivanTiedot-div {
  margin-top: 1.5rem;
  padding: 0.5rem;
  border-radius: 2px;
  background: #4a4a4a;
  box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.2); }
  div#paivanTiedot-div p {
    padding: 0.2rem; }

.btnLogin {
  border: 1px;
  background-color: inherit;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
  display: inline-block;
  width: auto; }

.btnLogin {
  background: #eee; }

.sisaan {
  color: green;
  width: 80px;
  height: 30px;
  padding: 0px 0px; }

.ulos {
  color: red;
  width: 80px;
  height: 30px;
  padding: 0px 0px; }

.yht {
  color: black;
  width: 60px;
  height: 30px;
  padding: 0px 0px; }

.tauolta {
  height: 35px;
  color: green;
  width: 80px;
  padding: 0px 0px; }

.reitti {
  color: black;
  width: 120px;
  height: 30px;
  padding: 0px 0px; }

.piilota {
  display: none; }

.nayta {
  display: block; }

.select {
  position: center;
  display: flex;
  width: 80%;
  height: 3em;
  line-height: 3;
  background: white;
  overflow: hidden;
  border-radius: .25em; }

.center {
  margin: auto;
  padding: 10px; }

#muokkaaFrm input {
  background-color: whitesmoke;
  color: black;
  padding-left: 0rem; }

.form-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  border: 3px solid #f1f1f1;
  z-index: 9; }

@media only screen and (max-width: 700px) {
  .form-popup {
    position: fixed;
    top: 10%;
    left: 5%;
    transform: translate(0%, 0%);
    width: 90%;
    border: 3px solid #f1f1f1;
    z-index: 9; } }

.formPop-container {
  max-width: 100%;
  padding: 10px;
  background-color: gray; }

.keikka-table {
  background-color: white; }

.keikka-table tr td label {
  height: 10px; }

.keikka-table input {
  color: black;
  background-color: whitesmoke;
  padding-left: 1rem;
  height: 15px; }

#pvmRivi #txtPvm {
  color: black;
  background-color: whitesmoke;
  padding-left: 1rem;
  height: 30px; }

#kloRivi #txtKlo {
  color: black;
  background-color: whitesmoke;
  padding-left: 1rem;
  height: 30px; }

#kirjat-tbl td {
  text-align: left;

}

#paikallis-tbl td {
  text-align: left;

}



@media screen and (-webkit-min-device-pixel-ratio: 0) {
  /*safari and chrome*/
  select {
    height: 30px;
    line-height: 30px;
    background: #f4f4f4;
    width: 100%; } }

select::-moz-focus-inner {
  /*Remove button padding in FF*/
  border: 0;
  padding: 0; }

@-moz-document url-prefix() {
  /* targets Firefox only */
  select {
    padding: 15px 0 !important; } }

@media screen\0 {
  /* IE Hacks: targets IE 8, 9 and 10 */
  select {
    height: 40px;
    line-height: 40px;
    width: 100%; } }

.btn-group button {
  /* background-color: #4CAF50; /* Green background */
  /*border: 1px solid green; /* Green border */
  /* color: white; /* White text */
  padding: 10px 24px;
  /* Some padding */
  cursor: pointer;
  /* Pointer/hand icon */
  float: left;
  /* Float the buttons side by side */
  margin-left: 6%;
  width: 25%; }

.btn-group button:not(:last-child) {
  border-right: none;
  /* Prevent double borders */ }

/* Clear floats (clearfix hack) */
.btn-group:after {
  content: "";
  clear: both;
  display: table; }

.modal-wrapper {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem; }

.modal {
  background: #eee;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
  padding: 0.5rem;
  width: 100%;
  max-width: 600px; }

.modal textarea {
  width: 100%;
  min-height: 100px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem; }

.button-wrapper .icon-button {
  vertical-align: bottom;
  height: 2.2rem;
  padding: 0.3rem; }

#liitteet-container {
  padding-top: 1rem;
  padding-bottom: 1rem; }

.liite {
  padding: 0.5rem; }

.paiva-row {
  display: flex;
  margin-bottom: 0.5rem;
  flex-wrap: wrap; }

.paiva-row > * {
  flex: 1 1 30%; }

#kartta-div a {
  color: #ffffff; }

#kartta-div a:visited {
  color: #ffffff; }

  .otsikko {
    color:var(--omaTable-th-color );
    font-size: 3.5rem;
    font-weight:700;
    padding-bottom: 20px;
    -webkit-text-stroke: 1px black;
  }

.nappiAlue {
  padding: 10px;
  display: inline-flex;
  flex-direction: row-reverse;
  position: absolute;
  right: 0;

}

.yleisBtn {
  padding: 10px;
  float: right;
}

.tauluAlue {
  width:95%;
  margin: auto;
}

.omaTable {
  background-color: var(--omaTable-bg-color); 
  width:100%;  
  color:var(--omaTable-txt-color); 
  border-collapse:collapse;
  border:solid black 1px;
  border-radius:6px;
  border-spacing: 0px;
  /* margin-top:10px; */
}

.omaTable >tr ,  th , thead{ 
  height: 25px;   
  overflow: hidden !important; 
  background-color: var(--omaTable-row-bg-color);
  text-align:left;
  vertical-align: left;
}

.omaTable .thKnt {
  font-weight:bold;
  text-align: left;
  background-color: var(--omaTable-th-color);  

}
.omaTable tr  {
  border: solid lightgray 1px;
  background-color: var(--omaTable-row-bg-color); 
 
  ; 
}
.vaihto {
  border-bottom-color: black !important;
}


.omaTable tr:nth-of-type(odd)  { 
  background-color: var(--omaTable-rowODD-bg-color);
}   

.aliTable {
  width:90%;
  margin-left: 8%;
}

.paikalliset {
  background-color: var(--main-txt-color); 
}

.laskuTable {
  background-color: var(--omaTable-bg-color); 
  width:100%;  
  color:var(--omaTable-txt-color); 
  border-collapse:collapse;
  border:solid black 1px;
  border-radius:6px;
  border-spacing: 0px;
  
  /* margin-top:10px; */
}


.laskuTable  >tr {
  background-color: var(--omaTable-rowODD-bg-color);
  border: 1px solid lightgray;
}


.laskuTable .thKnt {
  font-weight:bold;
  text-align: left;
  background-color: var(--omaTable-row-bg-color);

}



.gridTausta {
  background-color:var(--main-bg-color);
  padding: 5px;   
  color: var(--button-txt-color);
  /* border-radius: 10px; */
  margin:auto;
  margin-bottom:2px;
  width:90%;
}


.grid4 {
  display: grid; 
  grid-template-columns: 20% 30% 20% 30%;
}

@media screen and (max-width: 768px) {
  .grid4 {
    display: grid; 
    grid-template-columns: 30% 70%;
  }
}


.grid3 {
  display: grid; 
  grid-template-columns: 33% 33% 34%;
  padding-top:10px;
}


.grid2 {
  display: grid; 
  grid-template-columns: 50% 50%;
  padding-top:10px;
}

.grid1 {
  display: grid; 
  grid-template-columns: auto;
  padding-top:10px;
}


.grid-item {
  border:1px, solid var(--main-txt-color);
  color:var(--main-txt-color);
  font-size:large; 
  margin-left:10px; 
}
.grid-item input{
  border-radius: 10px;
  width:90%;
  height:2rem;
  padding-left:10px
}


.grid8020 {
  grid-template-columns: 80% 20%; 
}


.grid3K {
  grid-template-columns: 50% 10% 40%; 
}

.musta {
  color: black;
  margin-left:0;
  padding-right: 3px;

}

.pikkuOtsikko {
  padding-bottom: 20px;
  text-align: center;
  font-size: 1.5rem;

}

.alue {
  border: white;
  padding: 5px;
  border-style: groove;
  border-radius: 12px;
  margin-top:5px;
}

.klikattava {
  cursor: pointer;
}

#hakuOsa-div {
  padding-top: 10px;;
}

.info {
  color:white;

}

.rkInfo {
  margin-top: 15px;
  margin-bottom:15px;
  background: whitesmoke;
  color: black;
  border-radius: 6px;
  line-height: 2;
}

.combo {
  border-radius: 0.5rem;
  width: 90%;

}

.pvKnt {
  width:100px;
}

.kohdeKnt {
  width:70%
}

.kloKnt{
  width:80px;
}

.yla {
  border-bottom: solid 1px lightgray;
}


.yleinen-popup {
  /* display: none; */
  position: absolute;
  top: 50%; 
  left:50%;
  width:600px;
  max-width:40%;
  /* transform: translate(25%, -50%); */
  transform: translateY(-50%) translateX(-50%);
  border-radius: 4px;
  border: 3px solid var(--chat-border-color);
  background: var(--user-bg-color);
  z-index: 9; 
  color:var(--user-txt-color);
}  

.laskut-popup {
  width:70%;
  max-width: 1000px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  min-height:200px;
  background-color: beige;
  /* transform: translateY(-50%) translateX(10%); */

}

.rkAvaa {
  cursor: pointer;
  text-decoration: underline;
  color: blue;
  padding-left:4px;
}

.reunat{
  border-left: solid 1px lightgray;
  border-right: solid 1px lightgray;

}

.sis {
  padding-left: 4px;
}

.lukuTd {
 
  padding-right: 10px;
  align-items: center;
}

.txtOikealle {
  text-align: right !important;
}

.laskuYht {
  border-top: solid 2px black;
  font-weight: bold;
}

.txtKeskelle {
  text-align: center;
}

.valittuRivi {
  height:1.5 rem;
  font-size: larger;
  font-weight: bold;
}
/* .ala{

} */
