:root{
    --bg:#f4f7fb;    
    --card:#fff;
    --accent:black;
    --muted:#6b7280
}

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;
    max-height:90vh;
    max-width: 85vw;
}

.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
}

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

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


form{
    display:grid;
    gap:14px
}


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

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


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

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

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


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

.sormi {
    cursor: pointer;
}


.piilota {
    display: none !important;
}

.eiNayteta {
    visibility:  hidden;
}

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


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



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

.row > *{
    flex:1
}

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


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


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


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



.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';
  }

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


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

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

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


input {
   background-color: white;
   
}


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

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

}

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

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

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

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

  .suorita {
    text-decoration: underline blue;
  }

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

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

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

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

  



  @media print
  {
      button {
          display: none;
      }
  }