
.header, .footer {
  height: 60px;
  background-color: #c0c0c0; /* This will set the background to a light gray color, feel free to adjust this */
  display: flex;

}

.header {
	justify-content: center;
	align-items: center;
}

/* Additional styles for header and footer content */
.header h2, .footer p {
  margin: 0;
}

.footer {
	height: 60px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
}




.container {
  margin: auto;
}

.keypad {
  margin: 20px;
  margin-right:10px;
  padding:10px;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  float:right;
}

.key,
#enter,
#clear {
  height: 50px;
}

#display {
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  grid-column: span 3;
  text-align: right;
  margin-bottom: 10px;
}

/* This will make the Sale Items list box and numeric keypad display side by side */
.flex-container {
  display: flex;
}

/* This will give a fixed height to the search results box so the other elements won't move when search results are displayed */
#items-list {
  height: 120px;
  overflow-y: auto; /* This will add a scrollbar when the content exceeds the height */
}

#subtotalDisplay {
    float: left;
}

input.quantity {
  width: 50px; /* adjust as needed */
}


 .modal-dialog,  {
  max-height: 80vh;
  height: 800px;
  display: flex;
  flex-direction: column;
  
}

#searchModal .modal-body,  {
  max-height: 80vh;
  height: 800px;
  display: flex;
  flex-direction: column;
}

.sale-container {
  margin-top:20px;
  width:100%;
  height: 550px;
  overflow-y: auto;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.sale-box {
  width:100%;
  height: 530px; /* Adjust to the fixed height you want */
  overflow: auto; /* This makes it scrollable if the content exceeds the fixed height */
}


.btn-footer {
	margin-top: 15px;
    white-space: nowrap;
    min-height: 40px;
}

.fast-keys-grid {
  /*width:100%;
  height: 550px;
  overflow-y: auto; */
  margin-top:15px;
  margin-right:30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(10, 1fr);
  gap: 10px;
  padding: 10px;
}

.fast-key {
  padding: 10px;
  font-size: 1em;
  border: none;
  background-color: #009879;
  color: white;
  cursor: pointer;
}

.fast-key:hover {
  background-color: #007f66;
}

.modal-product-detail {
  display: none; 
  position: fixed; 
  z-index: 1; 
  padding-top: 100px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.modal-content button {
  width: 100px;  /* adjust as needed */
  padding:5px;
  height: 30px;  /* adjust as needed */
  margin: 5px;
  display: inline-block; /* makes the buttons sit side by side */
}

/* Optional: add some styles to make the buttons look nicer */
.modal-content button {
  background-color: #007bff; /* blue */
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  transition-duration: 0.4s; /* makes the color change animation smoother */
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #007bff; /* dark green */
}



#tabContainer {
  margin-top:70px;
  position: fixed;
  right: 0;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tab {
  margin-top:20px;
  padding: 10px 20px;
  padding-bottom:10px;
  background-color: #ddd;
  border: 1px solid #ccc;
  width: 40px;
  height: 140px;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.tab:hover {
  background-color: #bbb;
}

.slideout {
  position: absolute;
  top: 0;
  right: -300px;
  width: 300px;
  height: 600px;
  transition: right 0.5s;
  overflow: hidden;
  background-color: #f9f9f9;
  padding: 20px;
  box-sizing: border-box;
  border-left: 1px solid #ccc;
}

.slideout.open {
  right: 40px;
}
