@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@100;300;400;500;700;800&display=swap');
/* font-family: 'Sarabun', sans-serif; */

*{
    font-family: 'Sarabun', sans-serif;
    box-sizing: border-box;
    padding: 0px;
    margin: 0px;
}
body{
    padding: 10px;
}
#form1{
    display: block;
    width: 100%;
    min-height: 100%;
    border: solid 1px #BBB;
    padding: 20px;
    border-radius: 10px;
}
#form1 .form-title{
    margin-bottom: 5px;
    /* border-bottom: solid 2px #BBB; */
    padding: 5px;
}
#form1 .form-sub-title{
    margin-bottom: 15px;
    border-bottom: solid 2px #BBB;
    padding: 5px;
}
#form1 .input-group{
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 5px;
    margin-bottom: 3px;
    align-items: center;
    padding: 5px;
}
#form1 .form-text{
    width: auto;
    min-width: max-content;
}
#form1 .form-input{
    width: 100%;
    padding: 3px;
    border-radius: 3px;
    border: solid 1px #DDD;

}
#form1 .form-button{
    display: block;
    padding: 5px 8px;
    border-radius: 3px;
    border: solid 1px #BBB;
    background-color: #FFF;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}
#form1 canvas{
    border: solid 1px #BBB;
    background-color: aquamarine;
}

/* ----------------------- */

#form1 table, #form1 tr{
    width: 100%;
    font-size: 14px;
}
#form1 th, #form1 td{
    padding: 3px;
    color: #333;

}
#form1 table th:nth-child(1), #form1 table td:nth-child(1){
    width: 120px;
}
#form1 thead>tr{
    background-color: aquamarine;
}
#form1 tbody>tr{
    background-color: rgb(241, 241, 241);
}
#form1 tr:hover{
    background-color: rgb(175, 175, 175);
    cursor: pointer;
}

#form1 .p_btn{
    display: inline-block;
    padding: 5px 8px;
    border-radius: 3px;
    border: solid 1px #BBB;
    background-color:aquamarine;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

/* ------------customModal-------------- */

#customModal{
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 100vw;
    min-height: 100vh;
    padding: 20px;
    background-color: rgba(96, 7, 7, 0.8);
}
#customModal #view{
    position: relative;
    display: block;
    min-width: 100%;
    background-color: #FFF;
    padding: 20px;
    border-radius: 10px
}
#customModal #view ul{
    margin-left: 20px;
    padding: 20px;
}
#customModal #view hr{
    margin: 20px 0px 20px 0px;
}
#customModal #view #closeView{
    width: 40px;
    height: 40px;
    position:absolute;
    top: 0;
    right: 0;
    padding: 10px;
    background-color: #EEE;
    border-radius: 10px;
    cursor: pointer;
}
#customModal #print{
    display: inline-block;
    padding: 5px 8px;
    border-radius: 3px;
    border: solid 1px #BBB;
    background-color:#BBB;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}
#customModal #delete-item{
    display: inline-block;
    padding: 5px 8px;
    border-radius: 3px;
    border: solid 1px #ffd080;
    background-color:#ffd080;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}
#logout{
    display: inline-block;
    padding: 5px 8px;
    border-radius: 3px;
    border: solid 1px #ff6542;
    background-color:#ff6542;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

@media only print
{
   body{visibility: hidden;}
   #view{visibility: visible;}
   #closeView{visibility: hidden;}
}