 
 /*====== table menu ========
  1.index
  2.position
  3.inventory
  4.inventory-detail
*/


/*==========index==========*/
.main-index{
    min-height: 100vh;
    background: url("../image/index-bg.jpg") no-repeat;
    background-size: cover;
    padding: 30px 20px;
}
.main-index .content{
    display: flex;
    flex-direction: column;
}
.caption{
    text-align: center;
    padding: 40px 0px 90px;
}
.caption p{
    color: #fff;
    font-weight: 500;
}
.login{
    background-color: #fff;
    border-radius: 10px;
    padding: 20px 40px;
}
.login h3{
    text-align: center;
}
.field{
    display: flex;
    align-items: center;
    margin: 40px 0px;
    border-bottom: 1px solid #ae9294;
}
.field .fa-solid, .field input{
    color: #ae9294;
    padding: 10px 6px;
}
::placeholder {
    font-size: 18px;
    color: #ae9294;
}
.login-btn{
    text-align: center;
    margin: 50px 0  40px;
}
.login-btn .btn{
    width: 100%;
    font-size: 18px;
    padding: 10px;
    color: #fff;
    background-color: #ff99a2;
    border:1px solid transparent;
    border-radius: 50px;
    transition: all .2s;
}
.login-btn .btn:hover{
    color: #ff99a2;
    background-color: #fff;
    border: 1px solid #ff99a2;
}



/*==========position==========*/

.banner img{
    max-width: 100%;
    vertical-align: middle;
    padding-top: 70px;
}
.sort{
    position: relative;
    top: -50px;
    background-color: #fff;
    text-align: center;
    padding: 30px 45px 200px;
    margin: 0 20px;
    border-radius: 10px;
}
.btn-wrap{
    display: flex;
    justify-content: center;
}
.sort-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    background-color: #fff;
    border-radius: 50%;
    border: 2px solid #ff99a2;
    margin: 10px;
    padding: 40px;
    box-shadow: 0px 0px 6px rgba(174, 146, 148, .7);
}
.sort-btn p{
    color: #ae9294;
    font-size: 18px;
    font-weight: 500;
}
.sort-btn:hover{
    background-color: #ff99a2;
    box-shadow: none;
    border-radius: 50%;
}
.sort-btn:hover p{
    color: #fff;
}
.sort-btn:hover img{
    filter: brightness(100);
}


/*==========inventory==========*/

.item-title{
    display: flex;
    align-items: center;
    margin: 20px 15px;
}
.item-title h3::before{
    content: '\f054';
    font-weight: 900;
    font-size: 16px;
    margin: auto 15px;
}
#item-select{
    margin-left: auto;
    width: 180px;
    height: 40px;
    font-size: 16px;
    color: #6f494a;
    outline: none;
    border: 1px solid #ae9294;
    border-radius: 4px;
    padding: 0px 10px;
}
.time{
    display: flex;
    background-color: #fff;
    padding: 25px 15px;
    margin: 20px 15px;
    border-radius: 10px;
    align-items: flex-start;
}
.time p{
    margin: 0px 10px;
}
.time::before{
    content: '\f017';
    font-weight: 900;
    font-size: 18px;
    color: #ff99a2;
}
.item-content{
    background-color: #fff;
    margin: 20px 15px 100px;
    padding: 15px;
    border-radius: 10px;
}
.item-content .txt{
    display: flex;
}
.item-content .note{
    display: flex;
    align-items: center;
    margin-left: auto;
}
.note p{
    font-size: 14px;
    color: #ae9294;
    margin-right: 5px;
}
.fa-circle-check{
    color: #55b755;
    margin: 0px 2px;
}
.fa-triangle-exclamation{
    color: #fdcc3a;
    margin: 0px 2px;
}
table{
    color: #6f494a;
    width: 100%;
    font-size: 18px;
    border-collapse: collapse;
    border: none;
    table-layout: fixed;
    word-break: break-all;
}
th{
    background-color: #faf0f0;
    padding: 10px 5px;
    font-weight: 400;
    border:2px solid #fff;
}




/*==========inventory-detail==========*/

tr th:nth-of-type(1){
    width: 10%; 
}
tr th:nth-of-type(2){
    width: 25%;
}
tr th:nth-of-type(3){
    width: 40%;
}
tr th:nth-of-type(4){
    width: 25%;
}
tr td:nth-child(1), 
tr td:nth-child(4){
    text-align: center;
}
tr + tr {
    border-top: 1px solid #e3dada;
}
td{
    padding: 4px 10px;
}
.amount{
    display: flex;
    align-items: center;
    justify-content: end;
    margin: 10px 0px;
}
.amount p{
    margin-right: 7px;
}
.amount input{
    width: 100%;
    text-align: right;
    padding: 10px 5px;
    margin-right: 5px;
    font-size: 18px;
    color: #6f494a;
    background-color: #fff;
}
.amount input:focus{
    border: 2px solid #ae9294;
    border-radius: 6px;
}
tr:focus-within{
    background-color: #ff99a2;
    color: #fff;
}

.save-btn{
    width: 100%;
    position: fixed;
    bottom: 0;
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 153, 162, .3);
    z-index: 2;
}
.save-btn .btn{
    color: #fff;
    background-color: #ff99a2;
    padding: 10px 120px;
    border:1px solid transparent;
    border-radius: 50px;
    font-size: 18px;
    transition: all .2s;
}
.save-btn .btn:hover{
    color: #ff99a2;
    background-color: #fff;
    border: 1px solid #ff99a2;
}

@media screen and (min-width: 768px) {
    .main-index{
        padding: 80px;
    }
    .main-index .logo{
        position: absolute;
        top: 30px;
        left: 30px;
    }

}

@media screen and (min-width: 1024px) {
    .main-index{
        background-image: none;
        position: relative;
        padding: 0px;
    }
    .main-index .content{
        flex-direction: row;
        width: 100%;
        height: 100vh;
    }
    .caption{
        flex: none;
        width: 50%;
        background-image: url("../image/index-bg-c.jpg");
        background-repeat: no-repeat;
        background-size: cover;
        padding: 100px 0px;
    }
    .login{
        flex: none;
        width: 50%;
        position: static;
        border-radius: 0px;
        padding: 80px 100px;
    }
    .main-position{
        padding: 10px 50px 0px 350px;
    }
    .banner img{
        padding-top: 0px;
    }
    .sort-content{
        top: -120px;
    }
    .save-btn{
        position: static;
        background-color: rgba(255, 153, 162, 0);
    }

}
