* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body {
  margin: 0;
  background: #f5f5f5;
  color: #222;
}
header {
  padding: 12px 16px;
  background: #2f855a;
  color: #fff;
}
header h1 {
  margin: 0;
  font-size: 20px;
}
header p {
  margin: 4px 0 0;
  font-size: 12px;
}
main {
  padding: 8px;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.card h2 {
  margin-top: 0;
  font-size: 16px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
input[type="text"],
textarea {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}
textarea {
  resize: vertical;
}
.button-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
button {
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  background: #2b6cb0;
  color: #fff;
  font-size: 14px;
}
button.secondary {
  flex: 0 0 auto;
  background: #4a5568;
}
button:active {
  opacity: 0.8;
}
.status {
  font-size: 13px;
  color: #2d3748;
}
.note {
  font-size: 12px;
  color: #4a5568;
}
.table-wrapper {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th, td {
  border: 1px solid #ddd;
  padding: 4px 6px;
  text-align: left;
}
th {
  background: #edf2f7;
}
footer {
  text-align: center;
  font-size: 11px;
  color: #718096;
  padding: 8px;
}
.qr-area {
  margin-top: 8px;
}
#qrVideo {
  width: 100%;
  max-height: 240px;
  background: #000;
}
.checkbox {
  font-size: 14px;
}
