:root {
    --body-fonts: "Arial", "Helvetica", sans-serif;
    --main-bg-color : whitesmoke;
    --main-border-color: rgb(0, 0, 0);
    --scr-maxwidth:1600px;
    --palkki-bg-color:lightyellow;
    --bg-color:lightblue;
    --main-font-color:black;
    --input-bg-color:whitesmoke;
    --main-btn-color:blue;
    --omaTable-bg-color:lightyellow;
    --omaTable-txt-color:black;
    --omaTable-th-color:#fc322c;
    --omaTable-row-bg-color:whitesmoke;
    --omaTable-rowODD-bg-color:white; 
    --button-disabled-bg-color:grey;

}


.container {
    display: block;
    position: relative;
    /* padding-left: 35px; */
    margin-bottom: 12px;
    /* cursor: pointer; */
    font-size: 15px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
  }

  .kokosivu {
    height: 99vh;
  }
  
  /* Hide the browser's default checkbox */
  /* .container input {
    position: absolute;
    opacity: 0;hidden
    cursor: pointer;
    height: 0;
    width: 0;
  } */
  
  /* Create a custom checkbox */
  .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
  }
  
  /* On mouse-over, add a grey background color */
  .container:hover input ~ .checkmark {
    background-color: whitesmoke;
  }
  
  /* When the checkbox is checked, add a blue background */
  .container input:checked ~ .checkmark {
    background-color: #2196F3;
  }
  
  /* 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: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .hidden {
    display: none;
  }

  .einayteta {
    visibility: hidden;
  }

  .logoZoom {
    zoom:0.06;
    -ms-zoom: 0.06;
    -webkit-zoom: 0.06;
    -moz-transform:  scale(0.06,0.06);
    -moz-transform-origin: top left ;
    width: 200;
    height: 200;
  }
  
  
.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.5); */
  backdrop-filter: blur(3px);
  z-index: 1;
 
}

.vainPc {
  display: block;
}


  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
  
  html, body {
    width: 100%;
    height: 100%;
    background: var(--main-bg-color);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden; 
    max-width: 1600px;
    align-content: center;
    margin:auto;
    color:var(--main-font-color);
  }
  


body {
    font-family: var(--body-fonts);  
    height:100%;
    align-content: center;
    margin:auto;
 
  }


  .narrow-panel {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto; 
}  

.nappialue {
  float: right;
}



#page-shadow {
    opacity: 0.3;
    background: #000;
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20; }
  
  

    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        background-color: #111;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
      }
      
      .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        /* font-size: 25px; */
        color: #818181;
        display: block;
        transition: 0.3s;
      }
      
      .sidenav a:hover {
        color: #f1f1f1;
      }
      
      .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
      }
 

input {
    display: block;
    width: 100%;
    font-size: 15px;
    outline: none;
    font-family: 'Roboto', sans-serif; }
  
  input[type=text],
  input[type=password] {
    background:var(--input-bg-color);
    color:var(--main-font-color);
    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: var(--main-btn-color);
    box-shadow: 0px 1px 10px -5px #000; }
  
  /* input[type=submit]:hover, button:hover {
    background: #cc6600; } */
  
  input[type=date],  input[type=time], input[type=tunnit] {
    width:150px
  }

  input[type=popUp] {
   
    margin-left: auto;
    margin-right: auto;
    height: 25px;
  }  

  input[type=projtunnit] {
    width: 100px;
    text-align: right;
  }
  
 
  /* .combo:read-only {
    background-color: lightgray;
    cursor: none;
  } */


.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; }
  

  
.content {
    background-color: var(--main-bg-color);
    max-width: var(--scr-maxwidth);
    margin: auto;
    height:100vh ;
    border: 2px solid var(--main-border-color);
   
  }

.tunnitOsa {
  height:100%;
}

.scroll {
  overflow-y: auto;
  height: calc(100% - 200px);

}

  
#alkusisalto, #muusisalto {
    background-color: var(--user-bg-color);
    border: 2px solid var(--chat-border-color);
}

  
 .otsikko {
    width:90%;
    font-size:large;
    font-weight: bold;
    text-align: center;
    padding-bottom: 5px;
    padding-top: 15px;
  } 


  .yleinen-popup {
    display: none;
    position: absolute;
    top: 50%; 
    left:50%;
    width:600px;
    max-width:60%;
    min-width:500px;
    /* transform: translate(25%, -50%); */
    transform: translateY(-50%) translateX(-50%);
    border-radius: 4px;
    border: 3px solid black;
    background: var(--user-bg-color);
    z-index: 9; 
    color:var(--user-txt-color);
    box-shadow: 5px 3px 3px gray;
  } 

  .login-popoup {
    border: 3px solid var(--main-border-color);
    padding-bottom: 20px;
    background-color: lightgray;
    border-radius: 10px;
    /* display: none; */
    box-shadow: 5px 3px 3px gray;
    /* height: 30%; */
    min-width:400px
  }

  .popUpOtsikko {
    color:var(--user-txt-color);
    font-size: 24px;
    font-weight :bold;
    text-align: center;
  }

  .pop-alaOtsikko {
    padding-left: 10px;
  }

  .user-palkki {
    background-color:var(--palkki-bg-color);
   
    margin-left: auto;
    margin-right: auto;
    height:30px;
  }
  .user-ylapalkki { 
    color: black; 
    font-size: 20px;
    font-weight: bold;
    border: none;  
    top:0;
    left:0;
    right: 0;
    
    display: flow-root;
    
  }  

  
.txtKeskelle {
    text-align: center;
  }
  
  .txtOikealle {
    text-align: right !important;
  }
  
  
  .txtVasemmalle {
    text-align: left;
  }


  .himmenna {
    opacity: 0;
  }

  .kuitattu {
    font-weight: bold;
    color: rgb(14, 121, 14);
  }

  .tupla {
    font-weight:  bold;
  }

  
  .kirjaaBtn {
    padding-top: 10px;
    width: 90%;
    display: flex; 
    margin-left: auto;
    margin-right: auto;
  }

  .combo {
    width:100%;
    height:25px;
  }

  .multicombo {
    width:100%;
    height:100px;
  }



  .popCombo {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    height:25px;
  }

  
 
.grid-container {
    display: grid;
    grid-template-columns: 100%;
    /* grid-template-rows: min-content; */
    grid-template-rows: auto auto ifr;
    grid-gap: 1px;
    background-color: var(--main-bg-color);
    padding: 1px;
    width:100%;
    height: 100%;
}


.chkGrid4 {
  display: grid;
  grid-template-columns: 25% 25% 25% 25% ;
  /* padding-left: 20px; */
 
    
  padding-bottom: 2px;
  margin-top: 2px;
  padding-top: 2px;
}

.chkGrid2 {
  display: inline-flex;
  grid-template-columns: auto ;
  /* padding-left: 20px; */
    
  padding-bottom: 2px;
  margin-top: 2px;
  padding-top: 2px;
}

.chkItem {
  font-size: 15px;  
}

.chkItemchk {
  font-size: 15px;  
  margin-left: 10px;
}

.gridBtn {
  display: grid;
  grid-template-columns: 100%;
}




.grid4 {
  display: grid;
  grid-template-columns: 20% 30%  20% 30%;
  padding-left: 20px;
  border: 1px solid lightgray;       
  padding-bottom: 2px;
  margin-top: 2px;
  padding-top: 2px;
}


.grid2 {
    display: grid;
    grid-template-columns: 50% 50%;
    padding-left: 20px;
    border: 1px solid lightgray;       
    padding-bottom: 2px;
    margin-top: 2px;
    padding-top: 2px;
}

.grid4060 {
  grid-template-columns: 40% 60% !important;
}


.grid3070 {
  grid-template-columns: 30% 70% !important;
}


.grid1 {
  display: grid;
  grid-template-columns: auto;
  padding-left: 20px;
  border: 1px solid lightgray;       
  padding-bottom: 2px;
  margin-top: 2px;
  padding-top: 2px;
}

.gridItem {
    font-size: 15px;
    padding-bottom: 5px;
}

.gridItemPop{
  padding-right: 10px;
}


 #menu {
    display: none;
} 


#menu2 {
  display: block;
} 

.viimVko {
    display: block;
}
.hakuAlue {
    margin-top: 20px;
    margin-left: 10px;
    border: 1px solid black;
    border-radius: 5px;
    margin-right: 10px;
}

.kapea {
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  min-width:600px;

}

.hakuOsa {
    display: grid;
    grid-template-columns: 50% 50%;
}

.hakuGrid2 {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: center;
}

.hakuItem {
    font-size: 15px;
    padding: 5px;
}


.hakuKnt {
    width:100%;
    border-radius: 5px;
    margin:2px 0;
    padding:2px 2px;
    display: inline-block;
    border: 1px solid lightgray;
    /* background-color: var(--box-bg-color); */
  
  }

  /* .vainLevea {
    display: table-cell;
  } */

  @media screen and (max-width: 450px)  {
    .vainLevea {
      width:0px;
      display: table-column;
    }

    .grid-container {      
      grid-template-columns:auto;
      padding: 1px;
     
  }

    .grid2 {
      width: 60%;
      margin-left: auto;
      margin-right: auto;
      min-width:200px ;
      grid-template-columns: 100%;
  }

  .yleinen-popup {
    /* max-width: 95%; */
    min-width: 300px;

  }
}

@media screen and (min-width:451px) and (max-width: 1024px)  {

  .grid-container {      
    grid-template-columns:auto;
    padding: 1px;
    width:100%;
    height: 100%;
    grid-gap: 1px;
    background-color: var(--main-bg-color);
    grid-template-rows: 280px 50% 350px;
}
  .yleinen-popup {
    max-width: 95%;
    min-width: 350px;

  }

    .grid2 {
        width: 60%;
        margin-left: auto;
        margin-right: auto;
        min-width:400px ;
    }

    .grid4 {
      grid-template-columns: 40% 60% ;
    }

    .hakuOsa {        
        grid-template-columns: auto;
    }

    .vainPc {
      display: none !important;
    }
    
    

    
.gridBtn {
  display: grid;
  grid-template-columns: 50% 50%;
}


.kirjaaCombo {
  height: 40px;
  font-size: 2rem;
}

    
}

@media screen and (min-width: 1025px)  {
    .grid-container {      
        grid-template-columns: 75% 25%;
        padding: 1px;
        width:100%;
        height: 100%;
        grid-gap: 1px;
        background-color: var(--main-bg-color);
        grid-template-rows: 350px 70% 0%;
    }
    grid-item:nth-child(1) { order: 2;}
    grid-item:nth-child(3) { order: 3;  }
    grid-item:nth-child(2) { order: 1;  grid-row:1/3; }
    /* grid-template-rows: 20% 50% 30%; */ 
      
    .kirjaaBtn {
        width: 90%;
    } 
        
    .grid2 {
        display: grid;
        grid-template-columns: 50% 50%;       
        
    }
    #menu {
        display: block;
    }
    #menu2 {
      display: none;
  }


    .viimVko {
        display: none;
    }
    
    
   
}

@media screen and (min-width: 1200px) {
    .grid2 {       
        grid-template-columns: 50% 50%;       
    }
    .arvo {
        text-align: right;
        margin-right: 20px;
    }
  


 }

grid-item {
    border: 1px solid gray;       
    /* display: flex; */
    align-items: center;
    justify-content: center;
    }
    /* grid-item:nth-child(2) {
    font-size: 15px;
    } */
          
  
  .grid-container > div {
    background-color: var(--main-bg-color);   
    font-size: 15px;
  }  

  .tietoOsa {
     
      align-items: center;
  }

  .login-button{
    width:50%;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
  }
/* 
  .otsikko {
    font-weight: bold;
    font-size: 1.1rem;
    padding-bottom: 20px;
  } */
  .viimTieto {
    /* padding-top:20px; */
    display: inherit;
  }

  .viimAika {
    margin-left: 10px;
    color:blue;
  }

  .green {
    color:green;
  }

  .red {
    color:red;
  }

  .lihavoi {
    font-weight: bold;
  }

  .pyha {
    color: red;
  }

  
.omaTable {
    background-color: var(--omaTable-bg-color); 
    width:95%;  
    color:var(--omaTable-txt-color); 
    border-collapse:collapse;
    border:solid black 1px;
    border-radius:6px;
    border-spacing: 0px;
    margin-top:10px;
    margin-left: auto;
    margin-right: auto;
  }

  .aliTable {
    margin-top: 0;
    width:90%;
    margin-right: 0px;
  }
  
  .omaTable tr td th { 
    /* height: 15px;    */
    overflow: hidden !important; 
  }
  
  .omaTable .thKnt {
    font-weight:bold;
    text-align: left;
    background-color: var(--palkki-bg-color);  
  
  }
  .omaTable tr  {
    border: solid lightgray 1px;
    height: 25px;
    background-color: var(--omaTable-row-bg-color); 
   
  }
  
.omaTable tr:nth-of-type(odd)  {
    /* background-color: var(--omaTable-row-bg-color) */
    background-color: var(--omaTable-rowODD-bg-color);
  }  
  
.tdOik {
    text-align: right !important;
    padding-right: 10px;
}

.solu {
  display: inline-block;
 
}

.virheInfo {
    color: red;
    width:60%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 10px;
}

.eiReunat {
  border: 0;
}


.reunat {
  border: 1px solid black;
  border-radius: 10px;
  padding: 10px;
}


.klikattava {
    cursor: pointer;   
}

.sisFun {
    text-decoration: underline;
}

.admin {
    display: block !important;
}

.esimies {
    display: block !important
}

.perus {
    display: none !important;
}

.eiAkt {
    font-style: italic;
}

.omaBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
}

.syottoBtn {
  width:200px;
  height: 40px;
  margin-left: 5px;
 
}

.projBtn{
  width:100px;
  height: 30px;
  margin-left:5px;
}

.pieniBtn {
    width:50%;
    height: 30px;
}

.alaOtsikko {
    font-size: 18px;
    font-weight: bold;
    padding: 5px;
    background-color: white;
}


.disabloi{
  cursor:none;
  color:var(--button-disabled-bg-color);
  filter: blur(3px);
 }


 .buttonit {
  display: flex;
  justify-content: flex-end;
  width:90%;
  align-items: center;
 }

 .jaksoBtn {
  width: 100px;
  height: 20px;
  display: flex;
  align-items: center;
  margin-left: 10px;
}
 

 .hloPop {
  padding-right: 10px;;
 }
  
 .readonly {
  background-color: lightgray;
 }

 .laske {
  display: inline-table;
 }

 
 .piilota {
  display: none;
}

.omaInfo {
  padding-top: 10px;
    width: 90%;
    margin: auto;
    color: red;
}

.kehys {
  border: 1px solid lightgray;
  border-radius: 5px;
  margin-bottom: 10px;
}

.valisumma {
  background-color: white;
  font-weight: bold;
}

.osaSumma {
  background-color: antiquewhite;
  font-weight: bold;
}

.aikaTd{
  display: table-cell;
  text-align: right;  
}

.lisat {
  width: 100%;
  font-size: 0.8rem;
}

#versio-div {
  font-size: 10px;
  float: right;
  padding-right: 5px;
}

.containerRB {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 15px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.containerRB input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Create a custom radio button */
.checkmarkRB {
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
  width: 16px;
  /* background-color: #eee; */
  background-color: #bfdbf1;
  border-radius: 50%;
}


.containerRB:hover input ~ .checkmarkRB {
  /* background-color: #ccc; */
  background-color: #2196F3;
}

/* When the radio button is checked, add a blue background */
.containerRB input:checked ~ .checkmarkRB {
  background-color: #2196F3;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmarkRB:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.containerRB input:checked ~ .checkmarkRB:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.containerRB .checkmarkRB:after {
 	top: 4px;
	left: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: white;
}

.korkeus0 {
  height: 0 !important;
}

.korkeusOletus {
  height: auto;
}

.listanEnnuste {
  float:right;
  margin-right: 20px;


}


.maanantai {
  border-top: 2px black solid !important;
}

.saldoinfo {
  justify-content: end;
  float: right;
  display: inline-grid;
  justify-items: end;
  margin-right: 25px;
  padding: 5px;
  border: 1px black solid;
  background-color: cornsilk;
}

.nega {
  color:red;
}





  

  

  


  
  
  