/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Heading */
h1 {
  text-align: center;
  color: #d06e1f;
  margin-bottom: 20px;
}

/* Form Styles */
form {
  display: flex;
  flex-wrap: wrap; /* Ensures form elements wrap to the next line if space is insufficient */
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

form input, form button {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%; /* Makes inputs and button fill available width */
}

form button {
  background-color: #d06e1f;
  color: white;
  cursor: pointer;
  border: none;
  width: auto; /* Button's width adjusts according to its content */
  margin-top: 10px;
}

form button:hover {
  background-color: #8d0647;
}

/* Summary Section */
#summary {
  margin-bottom: 20px;
  font-size: 18px;
  text-align: center;
}

#summary p {
  margin: 5px 0;
}

/* Table Styles */
#transactionListContainer {
  max-height: 300px;
  overflow-y: auto;
}

#transactionList {
  width: 100%;
  border-collapse: collapse;
}

#transactionList th, #transactionList td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
  font-size: 14px;
}

#transactionList th {
  background-color: #8d0647;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}

#transactionList td button {
  background-color: #d06e1f;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 12px;
}

#transactionList td button:hover {
  background-color: #8d0647;
}
