body {
    font-family: Arial, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
  }
  h1 {
    text-align: center;
    color: #333;
  }
  .header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  .header button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  .header button:hover {
    background-color: #0056b3;
  }
  .section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
  }
  .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 每行两列 */
    gap: 10px; /* 设置列之间的间距 */
}
  .info-grid label {
    font-weight: bold;
  }
  .info-grid input, .info-grid select {
    width: 50%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }/* 设置订单编号、房屋地址、联系人、电话输入框的统一宽度 */
#orderId,
#address,
#contact,
#phone {
    width: 100%; /* 占据父容器的全部宽度 */
    max-width: 400px; /* 设置最大宽度 */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }
  th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  th {
    background-color: #007bff;
    color: white;
    font-size: 14px;
  }
  td {
    font-size: 14px;
  }
  input[type="number"], input[type="text"] {
    width: 100px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
  }
  input[type="text"].description {
    width: 200px;
  }
  .total-section {
    text-align: right;
    font-size: 18px;
    margin-top: 20px;
  }
  .total-section input {
    width: 60px;
  }
  .note {
    font-size: 14px;
    color: #777;
    margin-top: 20px;
    text-align: center;
  }
  select.product-option {
    width: 120px;
    padding: 3px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
  }
  .product-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  input[type="checkbox"].product-checkbox {
    margin-right: 8px;
    vertical-align: middle;
  }
  .product-name {
    display: flex;
    align-items: center;
  }
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
  }
  .modal-content h3 {
    margin-top: 0;
    color: #333;
  }
  .modal-content p {
    margin: 10px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
  }
  .modal-content input[type="number"] {
    width: 60px;
    margin-left: 10px;
  }
  .modal-content button {
    padding: 10px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  .modal-content button.confirm {
    background-color: #007bff;
    color: white;
  }
  .modal-content button.confirm:hover {
    background-color: #0056b3;
  }
  .modal-content button.cancel {
    background-color: #6c757d;
    color: white;
  }
  .modal-content button.cancel:hover {
    background-color: #5a6268;
  }
  @media print {
    .no-print {
      display: none !important;
    }
    table {
      border-collapse: collapse;
    }
    th, td {
      border: 1px solid #ddd;
    }
  }