@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input[type="text"],
input[type="date"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}

.section-title {
  font-weight: 600;
  margin-bottom: 12px;
}

/* Item Table Styles */
.item-table {
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.item-header {
  display: flex;
  background-color: #f9f9f9;
  padding: 12px 0;
  font-weight: 600;
  font-size: 14px;
}

.item-row {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
  align-items: center;
}

.item-details {
  flex: 0 0 40%;
  padding: 0 10px;
}

.quantity,
.rate {
  flex: 0 0 20%;
  padding: 0 10px;
  text-align: center;
}

.amount {
  flex: 0 0 15%;
  padding: 0 10px;
  text-align: right;
}

.remove {
  flex: 0 0 5%;
  text-align: center;
}

.item-row input {
  border: none;
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
  background: transparent;
}

.item-row input:focus {
  outline: none;
}

.item-row input[type="number"] {
  text-align: center;
}

.item-row input.amount-input {
  text-align: right;
}

.remove-btn {
  background: none;
  border: none;
  color: #a1a1a1;
  cursor: pointer;
  font-size: 16px;
}

.add-row-btn {
  background: none;
  border: none;
  color: #0062ff;
  font-weight: 600;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
}

.plus-icon {
  margin-right: 5px;
}

/* Notes Section */
textarea {
  resize: vertical;
  min-height: 100px;
  border-radius: 20px;
  border-color: #e8e8e8;
}

/* Totals Section */
.totals-section {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.total-label {
  font-weight: 500;
}

.total-value input {
  border: none;
  background: transparent;
  text-align: right;
  font-weight: 500;
  width: 120px;
}

.total-final {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}

.total-final .total-label,
.total-final .total-value input {
  font-weight: 700;
  font-size: 18px;
}

/* Button Group */
.button-group {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.cancel-btn,
.save-btn {
  padding: 10px 24px;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  min-width: 120px;
}

.cancel-btn {
  background-color: #f6f7f9;
  color: #a1a1a1;
}

.save-btn {
  background-color: #3162ff;
  color: white;
}
