* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: #F5F5F5;
  margin: 0;
  padding: 16px;
  color: #333;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

header h1 {
  font-size: 20px;
  margin: 0 0 4px;
}

#producerLine {
  color: #666;
  font-size: 14px;
  margin: 0 0 16px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #DDD;
  border-radius: 8px;
  font-size: 15px;
}

.item-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.item-row select.item-name {
  flex: 2 1 110px;
}
.item-row .item-qty {
  flex: 1 1 70px;
}
.item-row select.item-unit {
  flex: 1 1 70px;
}
.item-row .item-price {
  flex: 1 1 90px;
}

.remove-item-btn {
  background: #FBE9E7;
  color: #C62828;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.secondary-btn {
  width: 100%;
  padding: 10px;
  background: #E8F5E9;
  color: #2E7D32;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 4px;
}

.primary-btn {
  width: 100%;
  padding: 14px;
  background: #2E7D32;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.primary-btn:disabled {
  background: #A5D6A7;
}

#targetsContainer label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  padding: 8px 0;
  border-bottom: 1px solid #F0F0F0;
}

#targetsContainer input[type="checkbox"] {
  width: auto;
}

.hint {
  color: #999;
  font-size: 12px;
  margin: 6px 0 0;
}

#statusMsg {
  text-align: center;
  font-size: 14px;
  min-height: 20px;
}

#statusMsg.success {
  color: #2E7D32;
}

#statusMsg.error {
  color: #C62828;
}
