body {
  background: #f4f6f8;
  font-family: system-ui, sans-serif;
}

.container {
  max-width: 720px;
  margin: 40px auto;
}

h1 {
  margin-bottom: 20px;
}

.card {
  background: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

label {
  font-size: 14px;
  color: #555;
  display: block;
  margin-top: 10px;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-top: 4px;
  font-size: 14px;
}

.primary {
  margin-top: 14px;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6b7cff, #4a5cff);
  color: white;
  font-size: 15px;
  cursor: pointer;
}

.primary:hover {
  opacity: 0.9;
}

.list {
  list-style: none;
  padding: 0;
}

.list li {
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  background: #f9f9f9;
}

.service.warn {
  background: #fff4e5;
  border-left: 4px solid #ff9800;
}

.service.ok {
  border-left: 4px solid #4caf50;
}

.actions button {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}
.customer-select {
  position: relative;
}

.selected {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown {
  position: absolute;
  width: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-top: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  z-index: 10;
}

.dropdown.hidden {
  display: none;
}

.customer-item,
#customerSelected {
  display: flex;
  align-items: center;
  gap: 10px;
padding: 8px 12px;
 cursor: pointer;
}

.customer-item:hover {
  background: #f3f4f6;
}

/* รูปใน dropdown */
.customer-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

/* รูปที่เลือกแล้ว (ด้านบน) */
#customerSelected img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

#customerDropdown {
  max-height: 260px;
  overflow-y: auto;
}


