body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  padding: 18px;
  color: #111;
}

.page-content{
  padding-top: 70px;
  padding-bottom: 30px;
}

.form-container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card {
  max-width: 1100px;
  margin: 18px auto;
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

h1 {
  font-size: 1.6rem;
  margin: 6px 0 12px;
  text-align: center;
  font-weight: 800;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.col {
  flex: 1;
  min-width: 0;
}

label {
  display: block;
  font-weight: 700;
  margin: 8px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fbfbfb;
  box-sizing: border-box;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th,
.table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.table th {
  background: #000;
  color: #fff;
  font-weight: 800;
}

.btn {
  padding: 12px 16px;
  border-radius: 10px;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn.secondary {
  background: #fff;
  color: #000;
}

.small {
  font-size: 0.9rem;
  color: #666;
}

.inline {
  display: inline-block;
}

.right {
  text-align: right;
}

.summary {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}



.icon {
  font-weight: 900;
}

.add-row {
  margin-top: 10px;
}

.success {
  padding: 12px;
  background: #e6ffef;
  border: 1px solid #8be0a8;
  border-radius: 8px;
  color: #0a7a3d;
}

.error {
  padding: 12px;
  background: #ffecec;
  border: 1px solid #f3a3a3;
  border-radius: 8px;
  color: #a40000;
}

.small-muted {
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
}

.deliveryCell {
  font-size: 0.9rem;
  color: #444;
}

.table-wrap {
  max-width: 100%;
  border: 3px solid #000;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  margin-top: 12px;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .row {
    flex-direction: column;
  }

  .summary {
    justify-content: space-between;
    flex-direction: column;
    align-items: flex-end;
  }

  #itemsTable {
    min-width: 980px;
  }
}  /* <-- ADD THIS CLOSING BRACE */

.important-points {
  background: #f3f9ff;
  border: 1px solid #cfe6ff;
  padding: 14px 16px;
  border-radius: 10px;
  color: #0b3a66;
  margin-top: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.important-points h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.important-points ul {
  margin: 8px 0 0;
  padding-left: 40px;
}

.important-points li {
  margin-bottom: 8px;
  padding-left: 4px;
  font-size: 0.96rem;
}

/* Layout spacing */
.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-6 {
  margin-top: 6px;
}

.mt-8-total {
  margin-top: 8px;
}

.ml-12 {
  margin-left: 12px;
}

/* Table */
.service-col {
  min-width: 160px;
}

/* Discount input */
.discount-input {
  width: 120px;
  margin-top: 6px;
}

/* Bottom buttons */
.button-row {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Preview section */
#previewArea {
  margin-top: 18px;
  display: none;
  border-top: 1px dashed #ddd;
  padding-top: 12px;
}

#previewContent {
  background: #fff;
  padding: 12px;
  border-radius: 8px;
}

/* Center align preview table text */
#previewContent table {
  width: 100%;
  border-collapse: collapse;
}

#previewContent th,
#previewContent td {
  text-align: center;
  vertical-align: middle;
  padding: 8px;
}