.header{
  position: fixed;
  display: block;
  top: 0;
  height: 60px;
  width: 100%;
  z-index: 1;
  background: #FFF;
}

h1{
  text-align: center;
}

.box {
  flex-direction: column;
  display: flex; 
}

#location{
  margin-top: 60px;
}
.columns{
  display: flex;
  flex-flow: row wrap;
  width: 100%;
  text-align:center;
  margin-top: 60px;
}

.input{
  position:sticky;
  width: 480px;
  height: 100%;
  padding-right: 10px;
  text-align:right;
  margin-left: 200px;
}

.view{
  position: relative;
  width: 600px;
  margin-left: 10px;
}

.btn{
  margin: 5px;
  font-size: 1.5rem;
}  

.son {
  width: auto;
  display: flex;
  flex-direction: row;
}

.table{
  width:650px;
}

.table thead tr th{
  text-align:center;
  background-color:rgb(137, 137, 137);
  color:white;
  padding:5px;
  letter-spacing:2px;  
}
.table tbody td{
  text-align:center;
  overflow:hidden;
  padding:0px;
}

.material-icons{
  vertical-align: middle;
}

.form-control{
  font-size: 1.5rem;
  width: auto;
  margin-top: 5px;
  margin-bottom: 5px;
}

.form-select{
  font-size: 1.5rem;
  width: 300px;  
}

.table-header-fixed {
  width: 100%;
  background: #FFF;
  overflow-x: hidden;
  overflow-y: auto;
  vertical-align: middle;
}

thead tr th a span{
  color: red;
 }

.input-group {
  width: auto;
}

.form-check{
  font-size: 1.5rem;
}

/* 側邊欄CSS */

.sidenavButton{
  position:fixed;
  z-index: 1;
  margin: 5px;
  top:0;
  left: 0;
}

.sidenav {
  height: 100%;
  width: 250px; 
  position:fixed ;
  z-index: 2;
  top: 0;
  background-color: #CCC;
  transition: 0.5s;
  padding-top: 60px;
  left: -250px
}

/*側邊欄選項選擇器*/
.sidenav a {
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

/*側欄標籤和關閉按鈕光標的效果*/
.sidenav a:hover, .offcanvas a:focus{
  color: #f1f1f1;
}

/*側欄和關閉按鈕的位置選擇器*/
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

#barcode-keyboard {
  position: fixed;
  bottom: 0;
  background-color: #CCC;
  padding: 10px;
  width: 350px;
}

#quantity-keyboard {
  position: fixed;
  bottom: 0;
  background-color: #CCC;
  padding: 10px;
  width: 350px;
}

.keyboard table th {
  border-collapse: separate;
  border-spacing: 3px;
}

.keyboard td {
  width: 70px;
}

.key {
  display: inline-block;
  padding: 7px;
  cursor: pointer;
  width: 100%;
  height: 50px;
  text-align: center;
  border-radius: 5px;
  background-color: #EEE;
  box-shadow: 3px 3px 3px rgba(0,0,0,0.1);
  font-size: 1.5rem;
}

thead {
  position: sticky;
  top: 70px;
}

@media screen and (max-width: 767px) {
  .header{
    position: fixed;
    display: block;
    top: 0;
    height: 50px;
    width: 100%;
    z-index: 1;
    background: #FFF;
  }

  h1{
    text-align: center;
  }

  #location{
    margin-top: 55px;
    width: 70%;
  }

  .box {
    flex-direction: column;
    align-items: center;
    display: flex; 
  }
  .columns{
    display: block;
    flex-flow: row wrap;
    width: 100%;
    text-align:center;
    margin-top: 50px;
  }
  
  .input{
    margin-top: 0;
    width:100%;
    padding-left: 0px;
    margin-left: 0px;
    position: relative;
  }
  
  .view{
    width: 100%;
    padding-right: 0px;
    margin-left: 0px;
    top:0px;
  }

  .son {
    width: auto;
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap 
  }

  .input-group{
    width: 288px;
  }

  .table{
    width: 100%;
  }

  .table>thead {
    top: 50px;
  }
      
  .table thead tr th{
    text-align:center;
    background-color:rgb(137, 137, 137);
    color:white;
    padding:5px;
    letter-spacing:2px;  
  }
  .table tbody td{
    text-align:center;
    overflow:hidden;
    padding:0px;
  }
  .form-control{
    font-size: 1.5rem;
    width:auto;
  }

  .form-select{
    font-size: 1.5rem;
    width: 100%;
  }

  thead tr th {
    position:sticky;
    top:0;
    }

  thead tr th a span{
    color: red;
    }

  .form-check{
      font-size: 1.5rem;
    }

  .sidenavButton{
    position: fixed;
  }

  thead {
    position: sticky;
    top: 50px;
  }
    
  #barcode-keyboard {
    position: fixed;
    left: 0;
    bottom: 0;
    background-color: #CCC;
    padding: 10px;
    width: 100%;
  }

  #quantity-keyboard {
    position: fixed;
    left: 0;
    bottom: 0;
    background-color: #CCC;
    padding: 10px;
    width: 100%;
  }

  .keyboard td {
    width: 28%;
  }

  .key {
    display: inline-block;
    padding: 7px;
    cursor: pointer;
    width: 100%;
    height: 50px;
    text-align: center;
    border-radius: 5px;
    background-color: #EEE;
    box-shadow: 3px 3px 3px rgba(0,0,0,0.1);
    font-size: 1.5rem;
  }

  .litter{
    height: 230px;
  }

}

@media screen and (max-height: 500px) {
  #quantity-keyboard{
    max-height: 40%;
  }
  
  #barcode-keyboard{
    max-height: 40%;
  }

  #productDetails{
    width: 240px;
  }

  #barcodekeyboard{
    width: 240px;
  }

  .key {
    height: 35px;
    padding: 0px;
  }

  .form-control{
    font-size: 1rem;
  }

  .btn{
    font-size: 1rem;
  } 

}