/* --- 客户信息录入表单样式 --- */

.customer-form-shell {
  display: grid;
  gap: 18px;
}

.form-intro,
.form-panel,
.form-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.form-intro {
  padding: 30px;
}

.form-intro h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 56px);
}

.form-intro p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.customer-form {
  display: grid;
  gap: 14px;
}

.form-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.form-panel h2 {
  margin-bottom: 2px;
}

.panel-title-row,
.bom-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.small-action {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.bom-lines {
  display: grid;
  gap: 12px;
}

.bom-line {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(214, 222, 216, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.bom-line-head strong {
  font-size: 14px;
}

.remove-material:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 500;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(29, 110, 79, .20);
  border-color: rgba(29, 110, 79, .50);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

#notice {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

#notice.error {
  color: var(--red);
}

#notice.ok {
  color: var(--green);
}

@media (max-width: 680px) {
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .panel-title-row,
  .bom-line-head {
    align-items: stretch;
    flex-direction: column;
  }
}
