/* .new-product-container {
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.new-product-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.new-product-form label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
}

.new-product-form input,
.new-product-form select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.new-product-form button {
  background-color: #007bff;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.new-product-form button:hover {
  background-color: #0056b3;
} */


.new-expense-container {
  color: #213547;
  padding: 20px;
}

.form-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #213547;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.form-id {
  font-weight: bold;
  margin-bottom: 0;
  font-size: 24px;
  color: #213547;
  border-bottom: none;
  padding-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.form-grid > div {
  min-width: 0;
}

.form-grid label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
  display: block;
  color: #213547;
}

.form-grid input,
.form-grid select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background-color: #f9f9f9;
  color: #213547;
  box-sizing: border-box;
  height: 38px;
  min-width: 0; /* Prevent inputs from overflowing grid cells */
}

.form-grid input[type="file"] {
  padding: 6px 4px;
  height: auto;
  background-color: transparent;
  cursor: pointer;
}

.form-grid input:focus,
.form-grid select:focus {
  outline: none;
  border-color: #ffcb05;
  background-color: #fff;
}

form > div:not(.form-grid):not(.save-button-wrapper) {
  min-width: 0;
}

form > div:not(.form-grid):not(.save-button-wrapper) input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background-color: #f9f9f9;
  color: #213547;
  box-sizing: border-box;
  height: 38px;
}

form > div:not(.form-grid):not(.save-button-wrapper) input[type="file"] {
  padding: 6px 4px;
  height: auto;
  background-color: transparent;
  width: 100%;
  box-sizing: border-box;
}

form > div:not(.form-grid):not(.save-button-wrapper) label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
  display: block;
  color: #213547;
}

.save-button-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.save-button {
  background-color: #ffcb05;
  color: #fff;
  padding: 10px 30px;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.save-button:hover {
  background-color: #f4b400;
}

.save-button:disabled {
  background-color: #a0aec0;
  cursor: not-allowed;
  opacity: 0.6;
}

.back-button {
  background-color: #718096;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-button:hover {
  background-color: #4a5568;
}

.back-button:active {
  transform: translateY(1px);
}

.feedback-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
}

.feedback-message.success {
  background-color: #c6f6d5;
  color: #22543d;
}

.feedback-message.error {
  background-color: #fed7d7;
  color: #742a2a;
}

.product-table-section {
  margin-top: 25px;
  overflow-x: auto;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
}

.product-table th, .product-table td {
  border: 1px solid #d4af37; /* dorado */
  padding: 8px;
  text-align: center;
}

.product-table th {
  background-color: #800020; /* bordo/morado oscuro, según tus imágenes */
  color: white;
  font-weight: bold;
}

.add-product-row {
  cursor: pointer;
  color: #d4af37; /* dorado */
  text-align: center;
  padding: 10px;
  font-style: italic;
}

.tax-pill {
  background-color: white;
  border: 1px solid #d4af37;
  border-radius: 12px;
  padding: 2px 6px;
  color: #800020;
}

.product-table tfoot td {
  border-top: 2px solid #d4af37;
  padding: 8px;
}
