
.expense-detail {
  background-color: #fff;
  padding: 2rem;
  font-family: 'Montserrat';
  max-width: 1000px;
  margin: 2rem auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e0e0e0;
}

.expense-detail h2 {
  color: #000;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.8rem;
}

.expense-detail h3 {
  color: #000;
}

.expense-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 2rem;
}

.expense-detail label {
  font-weight: 600;
  color: #000;
  margin-bottom: 0.4rem;
  display: block;
}

.expense-detail p {
  color: #000;
}

.expense-detail input[type="text"],
.expense-detail input[type="number"],
.expense-detail input[type="date"] {
  width: 90%;
  max-width: 280px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Montserrat';
  background-color: #f9f9f9;
  transition: border-color 0.3s ease;
}

.expense-detail input:focus {
  outline: none;
  border-color: #f1c40f;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.2);
}

.expense-detail button {
  margin-top: 2rem;
  padding: 12px 24px;
  background-color: #f1c40f;
  border: none;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.expense-detail button:hover {
  background-color: #d4ac0d;
}

.products-section {
  margin-top: 2rem;
}

.products-section h3 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: #333;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid #f1c40f;
}

.product-table th,
.product-table td {
  border: 1px solid #f1c40f;
  padding: 12px;
  text-align: center;
}

.product-table th {
  background-color: #800020;
  color: #fff;
  font-weight: 700;
}

.product-table td {
  background-color: #fff;
}

.product-table input[type="number"] {
  width: 80px;
  padding: 6px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.success-message {
  color: green;
  margin-top: 1rem;
  font-weight: 600;
}

.loading,
.error {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.error {
  color: red;
}


/* .expense-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
} */

/* .expense-detail-container {
>>>>>>> Stashed changes
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  background: white;
  border-radius: 12px;
}

.expense-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.form-group {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 0.3rem;
  font-weight: 600;
}

input, select {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.save-button {
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  background-color: #f4b400;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: not-allowed;
}

.amount-warning-banner {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
}
.amount-warning-banner::before {
  content: "⚠️";
  margin-right: 0.5rem;
}