body {
  font-family: sans-serif;
  padding: 20px;
  background: #fdf6e3;
}
h1, h2 {
  color: #333;
  text-align: center;
}
button {
  margin: 10px 5px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #ccc;
}
button:hover:not(:disabled) {
  background-color: #f0f0f0;
}
button:disabled {
    cursor: default;
    opacity: 0.6;
}

.navigation-bar {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}
.nav-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #6c757d;
  color: white;
  border: none;
  margin: 0 8px;
}
.nav-button:hover {
  background-color: #5a6268;
}
.nav-button.current-page-button {
  background-color: #007bff;
  font-weight: bold;
  cursor: default;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
th, td {
  border: 1px solid #aaa;
  padding: 10px;
  text-align: center;
}
th {
  background-color: #e9e9e9;
}

tr.status-cooked td:not(:last-child):not(:nth-last-child(2)) {
  background-color: #d4edda;
  color: #155724;
}
tr.status-served td:not(:last-child):not(:nth-last-child(2)) {
  text-decoration: line-through;
  background-color: #ddd;
}

.action-button {
  padding: 6px 10px;
  font-size: 14px;
  margin: 2px;
  min-width: 90px;
}
.action-button.cook-button {
  background-color: #28a745;
  color: white;
  border-color: #1e7e34;
}
.action-button.cook-button:hover:not(:disabled) {
  background-color: #218838;
}
.action-button.serve-button {
  background-color: #17a2b8;
  color: white;
  border-color: #117a8b;
}
.action-button.serve-button:hover:not(:disabled) {
  background-color: #138496;
}

#order-form-container {
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#order-input-table .quantity-button-cell {
  padding: 5px;
}
#order-input-table .quantity-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
#order-input-table .quantity-button {
  min-width: 40px;
  height: 40px;
  padding: 8px 10px;
  margin: 4px;
  font-size: 16px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  border-radius: 5px;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
#order-input-table .quantity-button.selected {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#order-input-table .item-price-cell {
  min-width: 90px;
  font-weight: bold;
}
#current-order-total-price {
  font-weight: bold;
}

#finalize-order-button, #reset-all-orders-button, #reset-sales-data-button {
  display: block;
  width: auto;
  min-width: 200px;
  margin: 20px auto 0;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 18px;
}
#finalize-order-button:hover, #reset-all-orders-button:hover, #reset-sales-data-button:hover {
  background-color: #218838;
}
#reset-all-orders-button, #reset-sales-data-button {
  background-color: #dc3545;
}
#reset-all-orders-button:hover, #reset-sales-data-button:hover {
  background-color: #c82333;
}

#sales-summary {
  max-width: 700px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  line-height: 1.8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
#sales-summary h3 {
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
#sales-summary strong {
  color: #333;
}

#order-table th:nth-child(1),
#order-table td:nth-child(1) {
  width: 12%;
  min-width: 70px;
  text-align: left;
  padding-left: 15px;
}
#order-table th:nth-child(2),
#order-table th:nth-child(3) {
  width: 18%;
  min-width: 90px;
  text-align: center;
}
#order-table td:nth-child(2),
#order-table td:nth-child(3) {
  text-align: right;
  padding-right: 15px;
}
#order-table th:nth-child(4),
#order-table td:nth-child(4) {
  width: 20%;
  min-width: 100px;
  text-align: right;
  padding-right: 15px;
}
#order-table td:nth-child(4) {
  font-weight: bold;
}
#order-table th:nth-child(5),
#order-table td:nth-child(5) {
  width: 12%;
  min-width: 80px;
  text-align: center;
  font-style: italic;
}
#order-table th:nth-child(6),
#order-table td:nth-child(6) {
  width: 20%;
  min-width: 200px;
  text-align: center;
}