/* --- yhteinen.css (scoped) --- */
:root{
    --bg:#f4f7fb;    
    --card:#fff;
    --accent:black;
    --muted:#6b7280
}

.legacy body{
    display: block;
    font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    background:var(--bg);
    margin:0;
    /* padding:32px;
    display:flex;
    align-items:center;
    justify-content:center; */
    /* max-height:90vh; */
    /* max-width: 85vw; */
}

.legacy .page{
 
  margin: 0 auto;      /* ← tämä keskittää */
  padding: 16px;
  max-width: 85vw;
}

.legacy .loginpage{
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center; /* vaaka */
  align-items: center;     /* pysty */
}

.legacy .card{
    background:var(--card);
    border-radius:12px;
    box-shadow:0 6px 24px rgba(15,23,42,0.08);
    width:100%;
    max-width:380px;
    padding:24px
}

.legacy h1{
    margin:0 0 12px;
    font-size:22px;
    font-weight:600
}

.legacy p.lead{
    margin:0 0 16px;
    color:var(--muted);
    font-size:14px
}


.legacy form{
    display:grid;
    gap:14px
}


.legacy label{
    font-size:14px;   
    color:#111827
}

.legacy button{
    background:var(--accent);
    color:#fff;
    padding:10px 14px;
    border:none;
    border-radius:10px;
    font-weight:600;
    cursor:  pointer
}


.legacy button[disabled]{
    opacity:0.6;
    cursor:not-allowed
}

.legacy .suljeBtn{
    background-color: red;
    color: black;
}

.legacy .error{
    color:#b91c1c;
    font-size:13px
}


.legacy .success{
    color:#166534;
    font-size:14px
}

.legacy .sormi{
    cursor: pointer;
}


.legacy .piilota{
    display: none !important;
}

.legacy .eiNayteta{
    visibility:  hidden;
}

.legacy .oikealle{
    justify-content: end;
    display: flex;
}


.legacy .keskelle{
    justify-content: center;
    display: flex;
}



.legacy .row{
    display:flex;
    gap:12px
}

.legacy .row > *{
    flex:1
}

.legacy .otsikko{
    background-color: darkgray;
    border-radius: 12px;
    padding-left: 10px;
    margin-top: 2px;
}


.legacy .grid02{
    display: grid;
    grid-template-columns: 30% 70%;
    padding-top: 20px;
   
}


.legacy .grid-item{   
    width:90%;
    border: 0px solid;
    height: 20px;
}


.legacy .grid-item input{
    border-radius: 5px;
    width:90%;
    border: 1px solid;
}



.legacy .material-icons2{
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* display: inline-block; */
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    cursor: pointer;
    fill: 1;
    color: black;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "liga";
  
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
  
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
  
    /* Support for IE. */
    font-feature-settings: "liga";
  }

  
.legacy .omaTable{
    width: 100%;
    border-collapse: collapse;
   
}


.legacy .omaTh{   
    text-align: left;
    background-color: lightblue;
}

.legacy .omaTd{   
    border-bottom: 1px solid black;
    border-collapse: collapse;
}

.legacy .combo{
    width: 90%;
    height: 30px;
    border-radius: 5px;
}


.legacy input{
   background-color: white;
   
}


.legacy .leimat-grid{
    display: grid;
    grid-template-columns:repeat(6, auto); 
   
}

.legacy .yksiLeima{
    background-color: aqua;
    border: solid 1px black;
    text-align: center;

}

.legacy #confirmOverlay, .legacy #inputOverlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .legacy #confirmBox{
    background: #fff;
    padding: 20px;
    min-width: 300px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
  }
  
  .legacy #confirmBox h3{
    margin-top: 0;
  }

  .legacy #inputField{
    width: 100%;
    padding: 8px;
    margin-top: 10px;
  }

  .legacy #inputBox{
    background: #fff;
    padding: 20px;
    min-width: 320px;
    position: relative;
  }

  .legacy #inputClose{
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 20px;
  }

  .legacy .suorita{
    text-decoration: underline blue;
  }

  
.legacy #container{
    text-align: center;
    margin: 0;
  }
  
  .legacy #qr-canvas{
    margin: auto;
    width: calc(100% - 20px);
    max-width: 400px;
  }
  
  .legacy #btn-scan-qr{
    cursor: pointer;
  }
  
  .legacy #btn-scan-qr img{
    height: 10em;
    padding: 15px;
    margin: 15px;
    background: white;
  }
  
  .legacy #qr-result{
    font-size: 1.2em;
    margin: 20px auto;
    padding: 20px;
    max-width: 700px;
    background-color: white;
  }

  .legacy .topbar{
    display: flex;
    justify-content:  space-between; /* oikeaan reunaan */
    align-items: center;
    padding: 10px 15px;
  }
  
  .legacy .right-icons{
    display: flex;
    gap: 12px; /* väli ikonien väliin */
    margin-right: 20px;
   
  }

  .legacy .isoIkoni{
    font-size: 40px !important;
  }

  .legacy .vinkki{
    margin-top: 6px;
    font-size: small;
    color: blue;
  }

  .legacy .huom{
    color: red;
  }

  .legacy .info{
    color: blue;
  }

  .legacy .kehykset{
    border: solid 1px black;
    border-radius: 12px;
    margin: 5px;
    padding: 5px;
    position: relative;
  }

  .legacy .alaoikea{
    position: absolute;
    right: 10px;
    bottom: 10px;
}

/* LEIMAT */
.legacy .stamps{
  display: grid;
  grid-template-columns: repeat(5, 1fr) ;
  gap: 2px;
  justify-items: center;
}

.legacy .stamp{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.legacy .stamp.filled{
  background: #5a5ad6;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  
}

.legacy .stampPvm{
  font-size: 9px;
}

.legacy .vahvistettuLeima{
  font-size: 40px;
}



  @media print
  {
      .legacy button{
          display: none;
      }
  }
/* --- menu.css (scoped) --- */
.legacy .hamburger{
    font-size: 28px;
    cursor: pointer;
    padding: 15px;
    
  }
  
  .legacy .menu{
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #333;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
  }
  
  .legacy .menu a{
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    display: block;
  }

  .legacy .close-btn{
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
  }

  .legacy .qrcode{      
    /* position: fixed; */
    top: 15px;
    right: 15px;
    /* font-size: 28px; */
    color: black;
  }


  
  
  
/* --- asiakas.css (scoped) --- */
/* body {
    background:var(--bg);
    margin:0;
    /padding:0px; 
    display:block;
    align-items:unset;
    justify-content:unset; 
    
} */

.legacy input{
    height:25px;
   
}

.legacy .grid2{
    display: grid;
    grid-template-columns: 50% 50%;

}


.legacy .grid4{
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;

}


.legacy .grid02{
    display: grid;
    grid-template-columns: 30% 70%;
    padding-top: 20px;   
}


.legacy .grid-item{   
    width:90%;
    border: 0px solid;
    height: 20px;
}

.legacy .aukiooloGrid{
  display: grid;
  grid-template-columns: 0.5fr 1fr;

}


.legacy .grid-item input{
    border-radius: 5px;
    width:90%;
    border: 1px solid;
}

.legacy .fa-eye:before{
    content: "";
}
.legacy :before{
    box-sizing: border-box;
}

.legacy .password-wrapper{
    position: relative;
    /* width: 250px; */
  }


.legacy .password-wrapper .toggle-password{
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    /* font-size: 18px; */
  }

.legacy .omatiedot{
    width: 100%;
    border: 1px solid black;
    padding-bottom: 20px;
    border-radius: 12px;
}



/* 
 th, td {
    border-bottom: 1px solid black;
    border-collapse: collapse;
} */

.legacy .aikaa2Vko, .legacy .aikaa1Kk{
    color: red;    
}
/* 
.aikaa2Vko:after {
    content: " !!";    
} */

.legacy .asitem{
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
  }

.legacy .asnum{
    grid-row: 1 / span 2;   /* ⬅️ kahden rivin korkuinen */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
  
.legacy .astext{
    display: grid;
    grid-template-rows: auto auto;
}
  
.legacy .astitle{
    font-weight: 600;
}
  
.legacy .assub{
    color: #666;
    font-size: 0.9em;
}


/* .page { */
    /* width: 600px; */
    /* max-width: 90%;
    margin: 0 auto; */
    /* padding: 10px; */
    /* display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 90vh;
    min-height: 90svh;
    display: grid; */
    /* place-items: center; */
  /* } */
  
  
  /* YLEINEN KORTTI */
  .legacy .ascard{
    /* display: grid; */
    grid-template-columns: 1fr;
    background: #fff;
    border-radius: 16px;
    padding: 5px;
    border: 2px solid #333;
  }

  .legacy .yleisInfo{
    min-height: 50px;
  }

  .legacy .nappiOsa{
    display: flex;
    justify-content: center;   
    align-items: center;     
    /* grid-auto-flow: column;
    justify-content: center;
    gap: 12px; */
    max-height: 50px;
  }

  
  .legacy .nappiOsa .asbtn{
    width:40%;
    min-width: 200px;
    margin: 5px;
  }
  
  /* YRITYSKORTTI */
  .legacy .company-card{
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px;
  }

  .legacy .company-grid{
    display: grid;
    /* grid-template-rows: 0.8fr auto; */
    gap:10px
  }

  .legacy .company-grid-item{
    min-height: 20px;
  }
  
  .legacy .company-info h2{
    margin: 0 0 8px 0;
  }
  
  .legacy .company-address, .legacy .company-contact{
    margin-bottom: 8px;
  }
  
  .legacy .asemail{
    text-decoration: underline;
  }
/*   
  .company-map img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
  } */
  .legacy .map-container{
    width: 100%;
    /* height: 300px;     */
    border-radius: 12px;
    overflow: hidden;
  }
  
  .legacy .map-container iframe{
    width: 100%;
    height: 100%;
    border: 0;
    right: 0px;
    position: relative;
  }
  
 

  .legacy .asOtsikko{
    /* display: block; */
    font-size: 1.17em;
    margin-block-start: 0.2em;
    margin-block-end: 0.2em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
  }

  .legacy .otsikkokeskelle{
    display: flex;
    justify-content: center;
  }
  
  /* KAKSI SARAKETTA */
  .legacy .two-cols{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  
  
  /* BUTTONIT */
  
  .legacy .buttons{ 
    display: grid;
    grid-auto-flow: column;
    justify-content: center;
    gap: 12px;   
    width: inherit;  
      
  }

  .legacy .asbtn.primary{
    background: black;
    color: white;
   
  }
  
  .legacy .asbtn.secondary{
    background: black;
    color: white;
   
  }


  
  








@media screen and (max-width: 600px) {
    .legacy .grid2{
        display: grid;
        grid-template-columns: 100% ;
    }

        
    .legacy .leimat-grid{
        display: grid;
        grid-template-columns:repeat(3, auto); 
    
    }

        
    .legacy .grid4{
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 15px;
    }

        
  



}



@media screen and (max-width: 480px) {
                
      
    .legacy .aukiooloGrid{
      display: grid;
      grid-template-columns: 1fr;
    }
    .legacy .leimat-grid{
        display: grid;
        grid-template-columns:repeat(2, auto);     
    }

          
    .legacy .grid4{
        display: grid;
        grid-template-columns: 100%;

    }

    .legacy .two-cols{
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width:85vw
      }

    .legacy .company-card{
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }  
      
    .legacy .stamps{
        display: grid;
        grid-template-columns: repeat(4, 1fr)  ;
        gap: 2px;
        justify-items: center;
    }

    .legacy .ascard{     
      width: 85vw;
    }

    .legacy .company-grid{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap:10px
    }

 

}
@media (max-width: 360px) {
    .legacy .nappiOsa{
      flex-direction: column;
    }
  }
  
/* --- yritys.css (scoped) --- */
/* body {
    background:var(--bg);
    margin:0;
    padding:32px;
    display:block;
    align-items:unset;
    justify-content:unset;
    
} */

.legacy input{
    height:25px;    
    border-radius: 5px;
     border: 1px solid;

   
}

.legacy .gridYritys{
    display: grid;
    grid-template-columns: auto auto auto auto;

}


.legacy .gridEtu{
    display: grid;
    grid-template-columns: auto auto ;

}


.legacy .grid-Maarittely{
    display: grid;
    grid-template-columns: auto auto auto auto;
}


.legacy .grid-ehto-Maarittely{
    display: grid;
    grid-template-columns:  auto;

}

.legacy .grid2-maar{
    display: grid;
    grid-template-columns: 50% 50%;
}


.legacy .grid-item-maar{   
    width:90%;
    border: 0px solid;
    height: 20px;
}

.legacy .grid-item-maar-input{
    border-radius: 5px;
    width:90%;
    border: 1px solid;
}


.legacy .grid02-maar{
    display: grid;
    grid-template-columns: 30% 70%;
    padding-top: 20px;
   
}


.legacy .grid02-maar-ehdot{
    display: grid;
    grid-template-columns: auto auto;   
    padding-top: 5px; 
}

.legacy .grid04-maar-ehdot{
    display: grid;
    grid-template-columns: auto auto auto auto;  
    padding-top: 5px;   
}

.legacy .maar-napit{
    display: inline-flex;
    float: right;
    padding-top: 20px;
}
  



.legacy .yritystiedot{
    width: 100%;
    border: 1px solid black;
    padding-bottom: 20px;
    border-radius: 12px;
}

.legacy .password-wrapper{
    position: relative;
    /* width: 250px; */
  }


.legacy .password-wrapper .toggle-password{
    position: absolute;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    /* font-size: 18px; */
  }

.legacy .tdAika{
    width: 80px;
    font-size: 1rem;
}

.legacy .tdPvm{
    width:auto;
}

.legacy #aukioloajat-div{
    padding-top: 20px;
  
}


.legacy textarea{
    position: static;
    /* width: inherit; */
 
    border-radius: 6px;
    width: 100%;
    min-height: 25px;
    resize: vertical;   /* käyttäjä voi venyttää */
    box-sizing: border-box;
}

.legacy .poista{
    color: red;
    font-weight: bolder;

}

.legacy .grid02Y{
    display: block;
    padding-top: 20px;
}

.legacy .gridSelitys{
    width: 200%;
}

  



@media screen and (max-width: 800px) {
    .legacy .gridYritys{
        display: grid;
        grid-template-columns: auto auto ;
    }

    
.legacy .gridEtu{
    display: grid;
    grid-template-columns:  auto ;

}


      

}



@media screen and (max-width:600px) {
            
    .legacy .gridYritys{
        display: grid;
        grid-template-columns:100%;     
    }


}
/* --- admin.css (scoped) --- */
/* body {
    background:var(--bg);
    margin:0;
    padding:0px;
    display:block;
    align-items:unset;
    justify-content:unset;
    
} */

.legacy .tilaajaNimiTd{
    width: 25%;
}
.legacy .tilaajaAlkuTd{
    width: 20%;
}
.legacy .tilaajaTestiTd{
    width: 20%;
}
.legacy .tilaajaMyyjaTd{
    width: 25%;
}
.legacy .tilaajaLeimatTd{
    width: 10%;
}


.legacy .laskuNimiTd{
    width: 30%;
}
.legacy .laskuPvmTd{
    width: 10%;
}
.legacy .laskuSelitysTd{
    width: 40%;
}
.legacy .laskuSummaTd{
    width: 10%;
}
.legacy .laskuMaksettuTd{
    width: 10%;
}

.legacy .provMyyjaTd{
    width: 20%;
}

.legacy .provMaksettuTd{
    width: 20%;
}




.legacy .testiLoppuu{
    background-color: lightcoral;
}

.legacy .testiPvm{
    font-style: italic;
}

.legacy .itseMyyty{
    font-weight: bold;
}

.legacy .entinen{
    font-style: italic;
}

.legacy .disabloi{
    background-color: lightgray;
}












@media screen and (max-width: 600px) {  

    .legacy .tilaajaNimiTd{
        width: 60%;
    }
    .legacy .tilaajaAlkuTd{
        /* width: 20%; */
        display: none;
    }
    .legacy .tilaajaTestiTd{
        width: 30%;
    }
    .legacy .tilaajaMyyjaTd{
        display: none;
    }
    .legacy .tilaajaLeimatTd{
        width: 10%;
    }
    

}
/* --- popUp.css (scoped) --- */
.legacy .modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .legacy .modal{
    background: #fff;
    width: 400px;
    max-width: 90%;
    border-radius: 8px;
    padding: 15px;
  }
  
  .legacy .modal-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .legacy .modal-footer{
    padding-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap:10px;
  }
  
  .legacy .modal-body input{
    width: 100%;
    margin-bottom: 8px;
  }
  
  .legacy .hidden{
    display: none;
  }

  
/* --- login.css (scoped) --- */


.legacy input[type="email"], .legacy input[type="password"]{
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #e6e9ef;
  font-size:14px
}

.legacy .error{
 
    margin-top:-6px
}
.legacy .success{
 
    margin-top:8px
}
/* --- rekisteroi.css (scoped) --- */

.legacy *{
    box-sizing:border-box
}

.legacy .card{    
    max-width:480px;
}

.legacy input[type="text"], .legacy input[type="email"], .legacy input[type="password"], .legacy select{
    width:100%;
    padding:10px 12px;
    border:1px solid #e6e9ef;
    border-radius:8px;
    font-size:14px
}
.legacy .row{
    display:flex;gap:12px
}
.legacy .row > *{
    flex:1
}
.legacy .small{
    font-size:12px;
    color:var(--muted)
}


/* --- leimat.css (scoped) --- */
/* body {
    background:var(--bg);
    margin:0;
    padding:0px;
    display:block;
    align-items:unset;
    justify-content:unset;
    
} */

.legacy .vihrea{
    color:green
}
.legacy .punainen{
    color: red;
}

.legacy .taysi{
    font-weight: 900;
}

.legacy .leimaNimiTd{
    width: 15%;
}

.legacy .leimaEtuTd{
    width: 40%;
}



@media screen and (max-width: 800px) {  

    .legacy .leimat-grid{
        display: grid;
        grid-template-columns:repeat(4,auto); 
    
    }


}



@media screen and (max-width: 600px) {  

    .legacy .leimat-grid{
        display: grid;
        grid-template-columns:repeat(3,auto); 
    
    }

    
        
    .legacy .leimaNimiTdKapea{
        width: 25%;
    }

    .legacy .leimaEtuTdKapea{
        width: 60%;
    }

    .legacy .eiListaKapea{
        display: none;
    }
}



@media screen and (max-width: 480px) {  

    .legacy .leimat-grid{
        display: grid;
        grid-template-columns:repeat(2,auto); 
    
    }
}
/* --- kortti.css (scoped) --- */
:root{
    --bg:#f4f7fb;
    --card:#fff;
    --accent:#4f46e5;
    --muted:#6b7280
}

.legacy body{
    font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    background:var(--bg);
    margin:0;
    padding:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:100vh
}

.legacy .card{
    background:var(--card);
    border-radius:12px;
    box-shadow:0 6px 24px rgba(15,23,42,0.08);
    width:100%;
    max-width:380px;
    padding:24px
}

.legacy h1{
    margin:0 0 12px;
    font-size:22px;
    font-weight:600
}

.legacy p.lead{
    margin:0 0 16px;
    color:var(--muted);
    font-size:14px
}


.legacy form{
    display:grid;
    gap:14px
}


.legacy label{
    font-size:14px;
    color:#111827
}

.legacy button{
    background:var(--accent);
    color:#fff;
    padding:10px 14px;
    border:none;
    border-radius:10px;
    font-weight:600;
    cursor:  pointer
}


.legacy button[disabled]{
    opacity:0.6;
    cursor:not-allowed
}

.legacy .suljeBtn{
    background-color: red;
    color: black;
}

.legacy .error{
    color:#b91c1c;
    font-size:13px
}


.legacy .success{
    color:#166534;
    font-size:14px
}

.legacy .sormi{
    cursor: pointer;
}


.legacy .piilota{
    display: none !important;
}

.legacy .eiNayteta{
    visibility:  hidden;
}

.legacy .oikealle{
    justify-content: end;
    display: flex;
}


.legacy .row{
    display:flex;
    gap:12px
}

.legacy .row > *{
    flex:1
}

.legacy .otsikko{
    background-color: darkgray;
    border-radius: 12px;
    padding-left: 10px;
    margin-top: 2px;
}


.legacy .grid02{
    display: grid;
    grid-template-columns: 30% 70%;
    padding-top: 20px;
   
}


.legacy .grid-item{   
    width:90%;
    border: 0px solid;
    height: 20px;
}


.legacy .grid-item input{
    border-radius: 5px;
    width:90%;
    border: 1px solid;
}



.legacy .material-icons2{
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* display: inline-block; */
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    cursor: pointer;
    fill: 1;
    color: black;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "liga";
  
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
  
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
  
    /* Support for IE. */
    font-feature-settings: "liga";
  }

  
.legacy .omaTable{
    width: 100%;
    border-collapse: collapse;
   
}


.legacy .omaTh{   
    text-align: left;
    background-color: lightblue;
}

.legacy .omaTd{   
    border-bottom: 1px solid black;
    border-collapse: collapse;
}

.legacy .combo{
    width: 90%;
    height: 30px;
    border-radius: 5px;
}


.legacy input{
   background-color: white;
   
}


.legacy .leimat-grid{
    display: grid;
    grid-template-columns:repeat(6, auto); 
   
}

.legacy .yksiLeima{
    background-color: aqua;
    border: solid 1px black;
    text-align: center;
}

.legacy #confirmOverlay, .legacy #inputOverlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .legacy #confirmBox{
    background: #fff;
    padding: 20px;
    min-width: 300px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
  }
  
  .legacy #confirmBox h3{
    margin-top: 0;
  }

  .legacy #inputField{
    width: 100%;
    padding: 8px;
    margin-top: 10px;
  }

  .legacy #inputBox{
    background: #fff;
    padding: 20px;
    min-width: 320px;
    position: relative;
  }

  .legacy #inputClose{
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 20px;
  }

  



  
/* --- koodi.css (scoped) --- */
.legacy body{
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: #fff;
  }
  
  .legacy .container{
    display: flex;
    flex-direction: column;
    height: 90vh;
    padding: 10px;
    position: relative;
  }
  
  .legacy #koodi{
    font-size: 2.5rem;
    padding: 15px;
    text-align: center;
    margin-bottom: 10px;
    border-radius: 8px;
    border: none;
  }
  
  .legacy .nappaimisto{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex-grow: 1;
  }
  
  .legacy button{
    font-size: 2rem;
    padding: 20px;
    border-radius: 10px;
    border: none;
    background: #333;
    color: #fff;
  }
  
  .legacy button:active{
    background: #555;
  }
  
  .legacy .toiminnot{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
  }
  
  .legacy .send{
    grid-column: span 2;
    background: #1e88e5;
    font-size: 2.2rem;
  }
  
  .legacy .virhe{
    min-height: 2.5rem;
    margin-top: 5px;
    text-align: center;
    font-size: 1.2rem;
    color: #ff5252;
  }

  .legacy .sulje{
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

.legacy .sulje:hover{
    color: #000;
}

  
/* --- yhteinen02.css (scoped) --- */
:root{
    --bg:#f4f7fb;    
    --card:#fff;
    --accent:black;
    --muted:#6b7280
}

.legacy body{
    display: block;
    font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    background:var(--bg);
    margin:0;
    /* padding:32px;
    display:flex;
    align-items:center;
    justify-content:center; */
    /* max-height:90vh; */
    /* max-width: 85vw; */
}

.legacy .page{
 
  margin: 0 auto;      /* ← tämä keskittää */
  padding: 16px;
  max-width: 85vw;
}

.legacy .loginpage{
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center; /* vaaka */
  align-items: center;     /* pysty */
}

.legacy .card{
    background:var(--card);
    border-radius:12px;
    box-shadow:0 6px 24px rgba(15,23,42,0.08);
    width:100%;
    max-width:380px;
    padding:24px
}

.legacy h1{
    margin:0 0 12px;
    font-size:22px;
    font-weight:600
}

.legacy p.lead{
    margin:0 0 16px;
    color:var(--muted);
    font-size:14px
}


.legacy form{
    display:grid;
    gap:14px
}


.legacy label{
    font-size:14px;   
    color:#111827
}

.legacy button{
    background:var(--accent);
    color:#fff;
    padding:10px 14px;
    border:none;
    border-radius:10px;
    font-weight:600;
    cursor:  pointer
}


.legacy button[disabled]{
    opacity:0.6;
    cursor:not-allowed
}

.legacy .suljeBtn{
    background-color: red;
    color: black;
}

.legacy .error{
    color:#b91c1c;
    font-size:13px
}


.legacy .success{
    color:#166534;
    font-size:14px
}

.legacy .sormi{
    cursor: pointer;
}


.legacy .piilota{
    display: none !important;
}

.legacy .eiNayteta{
    visibility:  hidden;
}

.legacy .oikealle{
    justify-content: end;
    display: flex;
}


.legacy .keskelle{
    justify-content: center;
    display: flex;
}



.legacy .row{
    display:flex;
    gap:12px
}

.legacy .row > *{
    flex:1
}

.legacy .otsikko{
    background-color: darkgray;
    border-radius: 12px;
    padding-left: 10px;
    margin-top: 2px;
}


.legacy .grid02{
    display: grid;
    grid-template-columns: 30% 70%;
    padding-top: 20px;
   
}


.legacy .grid-item{   
    width:90%;
    border: 0px solid;
    height: 20px;
}


.legacy .grid-item input{
    border-radius: 5px;
    width:90%;
    border: 1px solid;
}



.legacy .material-icons2{
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* display: inline-block; */
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    cursor: pointer;
    fill: 1;
    color: black;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "liga";
  
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
  
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
  
    /* Support for IE. */
    font-feature-settings: "liga";
  }

  

.legacy .combo{
    width: 90%;
    height: 30px;
    border-radius: 5px;
}


.legacy input{
   background-color: white;
   
}


.legacy .leimat-grid{
    display: grid;
    grid-template-columns:repeat(6, auto); 
   
}

.legacy .yksiLeima{
    background-color: aqua;
    border: solid 1px black;
    text-align: center;

}

.legacy #confirmOverlay, .legacy #inputOverlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .legacy #confirmBox{
    background: #fff;
    padding: 20px;
    min-width: 300px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
  }
  
  .legacy #confirmBox h3{
    margin-top: 0;
  }

  .legacy #inputField{
    width: 100%;
    padding: 8px;
    margin-top: 10px;
  }

  .legacy #inputBox{
    background: #fff;
    padding: 20px;
    min-width: 320px;
    position: relative;
  }

  .legacy #inputClose{
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 20px;
  }

  .legacy .suorita{
    text-decoration: underline blue;
  }

  
.legacy #container{
    text-align: center;
    margin: 0;
  }
  
  .legacy #qr-canvas{
    margin: auto;
    width: calc(100% - 20px);
    max-width: 400px;
  }
  
  .legacy #btn-scan-qr{
    cursor: pointer;
  }
  
  .legacy #btn-scan-qr img{
    height: 10em;
    padding: 15px;
    margin: 15px;
    background: white;
  }
  
  .legacy #qr-result{
    font-size: 1.2em;
    margin: 20px auto;
    padding: 20px;
    max-width: 700px;
    background-color: white;
  }

  .legacy .topbar{
    display: flex;
    justify-content:  space-between; /* oikeaan reunaan */
    align-items: center;
    padding: 10px 15px;
  }
  
  .legacy .right-icons{
    display: flex;
    gap: 12px; /* väli ikonien väliin */
    margin-right: 20px;
   
  }

  .legacy .isoIkoni{
    font-size: 40px !important;
  }

  .legacy .vinkki{
    margin-top: 6px;
    font-size: small;
    color: blue;
  }

  .legacy .huom{
    color: red;
  }

  .legacy .info{
    color: blue;
  }

  .legacy .kehykset{
    border: solid 1px black;
    border-radius: 12px;
    margin: 5px;
    padding: 5px;
    position: relative;
  }

  .legacy .alaoikea{
    position: absolute;
    right: 10px;
    bottom: 10px;
}

/* LEIMAT */
.legacy .stamps{
  display: grid;
  grid-template-columns: repeat(5, 1fr) ;
  gap: 2px;
  justify-items: center;
}

.legacy .stamp{
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.legacy .stamp.filled{
  background: #5a5ad6;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
  
}

.legacy .stampPvm{
  font-size: 9px;
}

.legacy .vahvistettuLeima{
  font-size: 40px;
}



  @media print
  {
      .legacy button{
          display: none;
      }
  }
/* --- yritys02.css (scoped) --- */
/* ===================================================
   Uusi siistitty yritys-tyyli Bootstrap 5:n rinnalle
   - ei globaalisti input-borderia
   - ei ylimääräisiä mustia laatikkobordereita
   =================================================== */

/* Perus: älä sotke Bootstrapin .form-control -tyylejä */
.legacy input, .legacy textarea, .legacy select{
  font: inherit;
}

/* Jos yritysTiedot.php sisältää "paljaita" inputteja ilman .form-control,
   tämä tekee niistä bootstrap-tyylisiä ilman että rikotaan jo valmiiksi
   .form-control -luokalla olevia. */
.legacy .yritystiedot input:not(.form-control), .legacy .yritystiedot textarea:not(.form-control), .legacy .yritystiedot select:not(.form-select){
  display: block;
  width: 100%;
  padding: .375rem .75rem;
  line-height: 1.5;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-body-bg);
}

/* Ei enää "musta laatikko" — accordion-body toimii kehyksenä */
.legacy .yritystiedot{
  width: 100%;
  border: 0;
  padding: 0;          /* accordion-body antaa paddingin */
  border-radius: 0;
}

/* Gridit: selkeät sarakkeet + gap */
.legacy .gridYritys{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legacy .gridEtu{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legacy .grid-Maarittely{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legacy .grid-ehto-Maarittely{
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

.legacy .grid2-maar{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* Vanhojen "grid02..." blockien siistiminen */
.legacy .grid02-maar{
  display: grid;
  grid-template-columns: minmax(140px, 30%) 1fr;
  gap: .75rem 1rem;
  align-items: center;
  padding-top: .75rem; /* oli 20px -> kevyempi */
}

.legacy .grid02-maar-ehdot{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem 1rem;
  padding-top: .25rem;
}

.legacy .grid04-maar-ehdot{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem 1rem;
  padding-top: .25rem;
}

/* Nappirivi: ei floatteja */
.legacy .maar-napit{
  display: inline-flex;
  gap: .5rem;
  justify-content: flex-end;
  padding-top: .75rem;
}

/* Näitä voi jättää, mutta ilman turhia bordereita */
.legacy .grid-item-maar{
  width: 100%;
  border: 0;
  min-height: 1.25rem;
}

.legacy .grid-item-maar-input{
  width: 100%;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: .375rem .75rem;
}

/* Password wrapper (jos joskus käytössä ilman input-groupia) */
.legacy .password-wrapper{
  position: relative;
}

.legacy .password-wrapper .toggle-password{
  position: absolute;
  top: 50%;
  right: .75rem;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--bs-secondary-color);
}

/* Taulukon sarakeleveyksiä (jos käytössä) */
.legacy .tdAika{ width: 80px; }
.legacy .tdPvm{ width: auto; }

.legacy #aukioloajat-div{
  padding-top: 1rem;
}

.legacy textarea{
  width: 100%;
  min-height: 2.25rem;
  resize: vertical;
  box-sizing: border-box;
  border-radius: var(--bs-border-radius);
  border: 1px solid var(--bs-border-color);
  padding: .375rem .75rem;
}

/* "poista" punaiseksi */
.legacy .poista{
  color: var(--bs-danger);
  font-weight: 700;
}

/* Erikoiset leveydet: 200% rikkoo responsiivisuuden -> poistetaan */
.legacy .gridSelitys{
  width: 100%;
  max-width: 100%;
}

/* Pienemmät näytöt */
@media (max-width: 800px) {
  .legacy .gridYritys{ grid-template-columns: 1fr; }
  .legacy .gridEtu{ grid-template-columns: 1fr; }
  .legacy .grid-Maarittely{ grid-template-columns: 1fr; }
  .legacy .grid04-maar-ehdot{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .legacy .grid02-maar{
    grid-template-columns: 1fr;
    align-items: start;
  }
}

