/* body {
    background:var(--bg);
    margin:0;
    /padding:0px; 
    display:block;
    align-items:unset;
    justify-content:unset; 
    
} */

input {
    height:25px;
   
}

.grid2 {
    display: grid;
    grid-template-columns: 50% 50%;

}


.grid4 {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;

}


.grid02 {
    display: grid;
    grid-template-columns: 30% 70%;
    padding-top: 20px;   
}


.grid-item {   
    width:90%;
    border: 0px solid;
    height: 20px;
}

.aukiooloGrid {
  display: grid;
  grid-template-columns: 0.5fr 1fr;

}


.grid-item input{
    border-radius: 5px;
    width:90%;
    border: 1px solid;
}

.fa-eye:before {
    content: "\f06e";
}
:before {
    box-sizing: border-box;
}

.password-wrapper {
    position: relative;
    /* width: 250px; */
  }


.password-wrapper .toggle-password {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    /* font-size: 18px; */
  }

.omatiedot {
    width: 100%;
    border: 1px solid black;
    padding-bottom: 20px;
    border-radius: 12px;
}



/* 
 th, td {
    border-bottom: 1px solid black;
    border-collapse: collapse;
} */

.aikaa2Vko, .aikaa1Kk  {
    color: red;    
}
/* 
.aikaa2Vko:after {
    content: " !!";    
} */

.asitem {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
  }

.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;
}
  
.astext {
    display: grid;
    grid-template-rows: auto auto;
}
  
.astitle {
    font-weight: 600;
}
  
.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 */
  .ascard {
    /* display: grid; */
    grid-template-columns: 1fr;
    background: #fff;
    border-radius: 16px;
    padding: 5px;
    border: 2px solid #333;
  }

  .yleisInfo {
    min-height: 50px;
  }

  .nappiOsa {
    display: flex;
    justify-content: center;   
    align-items: center;     
    /* grid-auto-flow: column;
    justify-content: center;
    gap: 12px; */
    max-height: 50px;
  }

  
  .nappiOsa .asbtn {
    width:40%;
    min-width: 200px;
    margin: 5px;
  }
  
  /* YRITYSKORTTI */
  .company-card {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px;
  }

  .company-grid {
    display: grid;
    /* grid-template-rows: 0.8fr auto; */
    gap:10px
  }

  .company-grid-item {
    min-height: 20px;
  }
  
  .company-info h2 {
    margin: 0 0 8px 0;
  }
  
  .company-address,
  .company-contact {
    margin-bottom: 8px;
  }
  
  .asemail {
    text-decoration: underline;
  }
/*   
  .company-map img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
  } */
  .map-container {
    width: 100%;
    /* height: 300px;     */
    border-radius: 12px;
    overflow: hidden;
  }
  
  .map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    right: 0px;
    position: relative;
  }
  
 

  .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;
  }

  .otsikkokeskelle {
    display: flex;
    justify-content: center;
  }
  
  /* KAKSI SARAKETTA */
  .two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  
  /* LEIMAT */
  .stamps {
    display: grid;
    grid-template-columns: repeat(5, 1fr) ;
    gap: 2px;
    justify-items: center;
  }
  
  .stamp {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
  }
  
  .stamp.filled {
    background: #5a5ad6;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
  }

  .stampPvm {
    font-size: 9px;
  }
  
  /* BUTTONIT */
  
  .buttons { 
    display: grid;
    grid-auto-flow: column;
    justify-content: center;
    gap: 12px;   
    width: inherit;  
      
  }

  .asbtn.primary {
    background: black;
    color: white;
   
  }
  
  .asbtn.secondary {
    background: black;
    color: white;
   
  }


  
  








@media screen and (max-width: 600px) {
    .grid2 {
        display: grid;
        grid-template-columns: 100% ;
    }

        
    .leimat-grid {
        display: grid;
        grid-template-columns:repeat(3, auto); 
    
    }

        
    .grid4 {
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 15px;
    }

        
  



}



@media screen and (max-width: 480px) {
            
    .leimat-grid {
        display: grid;
        grid-template-columns:repeat(2, auto);     
    }

          
    .grid4 {
        display: grid;
        grid-template-columns: 100%;

    }

    .two-cols {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width:85vw
      }

    .company-card {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }  
      
    .stamps {
        display: grid;
        grid-template-columns: repeat(4, 1fr)  ;
        gap: 2px;
        justify-items: center;
    }

    .ascard {     
      width: 85vw;
    }

    .company-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap:10px
    }

 

}
@media (max-width: 360px) {
    .nappiOsa {
      flex-direction: column;
    }
  }
  