*{
    margin: 0;
    padding: 0;
    box-sizing : border-box;
    font-family: 'Kanit', sans-serif;
    font-family: 'Prompt', sans-serif;
}
body{
    min-height : 100vh;
    background : url(../images/pngtree-single-tree-sits-on-the-grassy-hill-image_2967647.jpg) center / cover;
    display : flex;
    flex-direction: column;
    gap:50px;
    align-items : center;


}
a{
    color: white;
    text-decoration: none;
}
nav{
    display:flex;
    justify-content: center;
    flex-direction: row;
    align-items : center;
    width: 100%;
    background-color : rgba(51, 51, 51, 0.333);
    backdrop-filter : blur(7px);
    box-shadow : .0rem .3rem .1rem rgba(0, 0, 0, 0.333);
}
.menu{
    width: 50%;
    display:flex;
    justify-content: center;
    flex-direction: row;
    align-items : center;
}
.menu ul{
    width: 100%;
    display:flex;
    justify-content: center;
    flex-direction: row;
    align-items : center;
}
.menu ul li{
    text-align: center;
    width: 100%;
    list-style: none;
    padding:10px;
    border-radius: 10px;
}
.menu ul li:hover{
    background-color : rgba(0, 0, 0, 0.612);
}
.menu p{
    font-size:1.5rem;
    font-weight:800;
    color:white;
}
td img{
    width: 35px;
    height: 35px;
    margin-right: 0.5rem;
    border-radius : 50%;
    vertical-align : middle;

}
.table_body::-webkit-scrollbar{
    width: 0.5rem;
    height: 0.5rem;
}

.table_body::-webkit-scrollbar-thumb{
    border-radius: .5rem;
    background-color : #0004;
    visibility : hidden;
}
.table_body:hover::-webkit-scrollbar-thumb{
    visibility : visible;

}


table, th, td{
    padding : 1rem;
}
main.table{
    width: 92vw;
    height: auto;
    background-color : #fff5;
    backdrop-filter : blur(7px);
    box-shadow : .4rem .8rem #0005;
    border-radius : .8rem;
    overflow : hidden;
    padding-bottom:20px;
}

.table_header{
    width: 100%;
    height: 10%;
    background-color : #fff4;
    padding : .8rem  1rem;

}
.btn-edit{
    display: flex;
    box-sizing:border-box;
	flex-direction:row;
	flex-wrap:wrap;
	justify-content:space-between;
    align-items: center;
    margin-top : 1rem;
    margin-right : 1rem;
    padding : 0rem  1rem;
}
.filter-frm{
    display: flex;
	flex-direction:row;
    flex-wrap:wrap;
    padding : 0rem  1rem;
}
.filter-input{
    position: relative;
    width: 250px;
    margin: 0.5rem;
    
}

.filter-input input,select{
    border: 2px solid rgb(64, 64, 64);
    border-radius: 5px;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color:inherit;
    outline:none;
    font-size: 1.2rem;
    padding:10px;
    transition: 0.5s;

}
.filter-input button{
    background-color: deepskyblue;
    border: 1px solid #fff5;
    border-radius: 10px;
    height: 50px;
    width: 150px;
    font-size: 16px;
    color: white;
    padding: 0.5rem;

}
.btn-edit-head{
    display: flex;
    box-sizing:border-box;
	flex-direction:row;
	flex-wrap:wrap;
	justify-content:space-between;
    margin-top : 1rem;
    padding : 0rem  1rem;
}
.head-btn{
    margin : 0rem  1rem;
    border-radius: 10px;
    text-align: center;

}
.add{
    margin : 0rem  1rem;
    background-color:dodgerblue;
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    color:white;
}
.add.edit{

    background-color:forestgreen;

}
.add.del{
    background-color: brown;
}
.table_body{
    width : 95%;
    max-height : calc(89% - .8rem);
    background-color: #fffb;
    margin : .8rem auto;
    border-radius : .6rem;
    overflow : auto;
}
table{
    width: 100%;
    text-align: center;
}
table, th, td{
    border-collapse:collapse;
    padding: 1rem;
}
thead th{
    position : sticky;
    top : 0;
    left : 0;
    background-color: rgb(191, 197, 192);
}
tbody tr:nth-child(even){
    background-color: #0000000b;
}
tbody tr:hover{
    background-color: #fff6;
}
.status{
    background-color:limegreen;
    padding: .4rem 0;
    border-radius: 2rem;
}
.status.normal{
    background-color:dodgerblue;
    color:cornsilk;
}
.status.sell{
    background-color:tomato;
    color:cornsilk;
}
.upper_precent{
    color:forestgreen;
}
.lower_precent{
    color:darkred;
}
.insert_stk{
    max-width: 50%;
    margin: 20px auto;
    background-color:#e3e3e3;
    backdrop-filter : blur(7px);
    box-shadow: .1rem .2rem .5rem #212121;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}
.inputbox{
   display: flex;
   justify-content: center;
   align-items: center;
   flex-direction: column;
   max-height: 100hv;
   gap: 30px;

}

.frm-input{
    position: relative;
    width: 250px;
    width: 100%;
}

.frm-input input,select{
    border: 2px solid rgb(255, 255, 255);
    border-radius: 5px;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color:inherit;
    outline:none;
    font-size: 1.2rem;
    padding:10px;
    transition: 0.5s;

}
.frm-input span{
    position:absolute;
    left:0;
    padding:10px;
    pointer-events: none;
    font-size:1.2rem;
    color:rgb(121, 121, 121);
    transition : 0.5s;
}
.label-pic{
    position:absolute;
    left:0;
    color:rgb(121, 121, 121);
    font-weight:600;
    transform:translateX(10px) translateY(-15px);
    background-color: #e3e3e3;
    padding: 0 10px;

}


.frm-input input:valid ~ span,
.frm-input input:focus ~ span,
.frm-input select:valid ~ span,
.frm-input select:focus ~ span
{
    color:black;
    font-weight:600;
    transform:translateX(10px) translateY(-10px);
    font-size : 0.8rem;
    padding : 0 10px;
    background-color: #e3e3e3;
    border-left: 1px solid black;
    border-right: 1px solid black;
    letter-spacing: 0.2em;
}

.frm-input input:valid,
.frm-input input:focus,
.frm-input select:valid,
.frm-input select:focus
{
    border: 2px solid black;
}
.frm-input button{
    background-color: deepskyblue;
    border: 1px solid #fff5;
    border-radius: 10px;
    height: 50px;
    width: 100px;
    color: white;

}
.file-btn::-webkit-file-upload-button{
    visibility: hidden;
}

.file-btn::before{
    content:'เลือกภาพ';
    display:inline-block;
    border-radius: 10px;
    border: 1px solid #999;
    background-color:white;
    padding : 0 10px;

}
.icon-manage{
    display: flex;
    box-sizing:border-box;
	flex-direction:row;
	flex-wrap:wrap;
	justify-content:center;
}
.icon{
    margin : 0rem  0.5rem;
    background-color:dodgerblue;
    border-radius: 10px;
    padding: 0.5rem;
    text-align: center;
    color:white;
}
.icon.icon-edit{

    background-color:forestgreen;

}
.icon.icon-del{
    background-color: brown;
}
.per_green{
    font-weight:bold;
    color:rgb(0, 177, 0);
}
.per_red{
    font-weight:bold;
    color:rgb(193, 0, 0);
}
.pre_rvn{
    font-weight: bold;
}
.item-pop-up{
    display: none;
}
tbody tr td.pop-up.sub2:hover .item-pop-up{
    width: 80%;
    display: block;
    position: absolute;
    right: 5%;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.9);
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    
}
.update-popup{
    width: 70px;
    height: 20px;
    font-size:12px;
    font-weight: bold;
    display: block;
    position: absolute;
    left: 3%;
    color:rgba(0, 0, 0, 0.9);
    padding-top: 2px;
    box-shadow: 0px 2px 10px rgba(255, 130, 130, 0.9);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
}
.detail-data{
    font-weight: bold;
    text-align: center;
    
}
tbody tr td.pop-up a{
    color:black;
}


