/* Pull Station. Plain single-column form, in the style of an Airtable form: grey page, white card,
   bold label above each value, one blue main button. Large touch targets for use on a phone. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 12px;
  background: #f2f4f8; color: #1d1f25;
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.card { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid #e0e3ea; border-radius: 12px; padding: 20px 18px 28px; }
h1 { font-size: 26px; margin: 2px 0 6px; }
h2 { font-size: 21px; margin: 22px 0 6px; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: #5c6370; text-transform: uppercase; letter-spacing: .04em; }
.progress { margin: 0 0 4px; font-weight: 600; color: #166ee1; }
.help { margin: 4px 0 12px; color: #5c6370; font-size: 15px; }
.field { margin: 20px 0; }
.field > label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.req { font-weight: 400; font-size: 13px; color: #b3261e; margin-left: 4px; }
.value { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.check { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid #b9bfcb; border-radius: 8px; cursor: pointer; }
.check input { width: 28px; height: 28px; flex: none; }
.info-row { margin: 16px 0; }
.info-row img { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; border: 1px solid #e0e3ea; }
input[type=text], input[type=date], select {
  width: 100%; min-height: 50px; padding: 10px 12px; font: inherit; color: inherit;
  background: #fff; border: 1.5px solid #b9bfcb; border-radius: 8px;
}
input:focus, select:focus, button:focus-visible { outline: 3px solid #9cc4f8; outline-offset: 1px; }
button, .filebutton {
  display: inline-block; min-height: 50px; padding: 12px 18px; font: inherit; font-weight: 600; text-align: center;
  color: #1d1f25; background: #fff; border: 1.5px solid #b9bfcb; border-radius: 8px; cursor: pointer;
}
button.primary { color: #fff; background: #166ee1; border-color: #166ee1; }
button.danger { color: #b3261e; border-color: #b3261e; }
button:disabled { opacity: .45; cursor: not-allowed; }
.filebutton input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.row { display: flex; gap: 10px; margin-top: 8px; }
.row > input { flex: 1; min-width: 0; }
.actions { display: flex; gap: 12px; margin-top: 28px; }
.actions button { flex: 1; }
.actions button.primary { flex: 2; }

.notice { margin: 14px 0; padding: 12px 14px; border-radius: 8px; background: #fdecea; color: #7a1a14; border: 1px solid #f3b8b3; font-weight: 600; white-space: pre-wrap; }
.notice.info { background: #eaf2fd; color: #0f4a99; border-color: #b5d2f7; }

.camera { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 60vh; margin: 0 auto; background: #111; border-radius: 12px; overflow: hidden; border: 5px solid #111; }
.camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.camera .target { position: absolute; left: 20%; top: 20%; width: 60%; height: 60%; border: 3px solid rgba(255,255,255,.85); border-radius: 12px; }
.camera.good { border-color: #1e8e3e; }
.camera.bad { border-color: #d93025; }
.result { margin: 12px 0; padding: 14px; border-radius: 8px; font-size: 19px; font-weight: 700; }
.result.good { background: #e6f4ea; color: #14602a; border: 1px solid #a8d5b5; }
.result.bad { background: #fdecea; color: #7a1a14; border: 1px solid #f3b8b3; }
.result.warn { background: #fff4e0; color: #7a4b00; border: 1px solid #f0cf94; }
.panel { margin: 12px 0; padding: 14px; border: 1.5px solid #f0cf94; background: #fffaf0; border-radius: 8px; }
.panel button { display: block; width: 100%; margin-top: 10px; }
.count { font-size: 19px; font-weight: 700; margin: 16px 0 8px; }
.units { list-style: none; margin: 0; padding: 0; }
.units li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; margin: 8px 0; border: 1.5px solid #e0e3ea; border-radius: 8px; }
.units .sku { font-weight: 700; font-size: 19px; }
.units .note { display: block; font-size: 14px; color: #7a4b00; font-weight: 400; }
.chip { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.chip.todo { background: #eef0f4; color: #5c6370; }
.chip.correct { background: #e6f4ea; color: #14602a; }
.chip.flagged { background: #fff4e0; color: #7a4b00; }

.signature { display: block; width: 100%; height: auto; border: 1.5px dashed #8a92a0; border-radius: 8px; background: #fff; touch-action: none; }
.signature-saved { display: block; max-width: 100%; max-height: 140px; border: 1px solid #e0e3ea; border-radius: 8px; margin-bottom: 8px; }
.photos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.photo { position: relative; width: 96px; height: 96px; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid #e0e3ea; }
.photo button { position: absolute; top: -8px; right: -8px; min-height: 0; width: 32px; height: 32px; padding: 0; border-radius: 50%; line-height: 1; background: #fff; }

.success { padding: 18px; border-radius: 10px; background: #e6f4ea; color: #14602a; border: 1px solid #a8d5b5; }
.success h2 { margin-top: 0; }
.busy { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.75); z-index: 10; }
.busy span { padding: 16px 22px; background: #1d1f25; color: #fff; border-radius: 10px; font-weight: 700; }
[hidden] { display: none !important; }
