/* Field forms share the existing console theme and use stored server quantities. */
.field-scan-alternatives { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.field-scan-alternatives > button { flex: 1 1 max-content; min-width: 0; max-width: 100%; min-height: 44px; white-space: nowrap; }
.field-card-picker { border-top: 1px solid var(--border, #dfe5ed); margin-top: 16px; padding-top: 16px; }
.field-card-picker .demo-card-button { min-height: 64px; }
.field-card-picker .demo-card-button strong { overflow-wrap: anywhere; }
.field-card-picker .demo-card-button small { line-height: 1.5; }
.field-quantity-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; margin: 12px 0 16px; background: var(--surface-soft, #f1f6fc); border: 1px solid var(--border, #dfe5ed); border-radius: 8px; }
.field-quantity-preview span { display: block; color: var(--muted, #526478); font-size: 13px; margin-bottom: 4px; }
.field-quantity-preview strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.field-quantity-preview strong small { font-size: 14px; font-weight: 400; }
.field-quantity-preview p { grid-column: 1 / -1; margin: 0; color: var(--muted, #526478); font-size: 13px; line-height: 1.6; }
.field-quantity-preview.is-invalid { border-color: var(--danger, #b42318); }
.field-quantity-preview.is-invalid p { color: var(--danger, #b42318); }
#report-form .quantity-tools button, #scan-report-form .quantity-tools button { min-height: 44px; }
#report-form .quantity-input, #scan-report-form .quantity-input { min-height: 64px; font-size: 36px; }
#report-form input[aria-invalid="true"], #scan-report-form input[aria-invalid="true"] { border-color: var(--danger, #b42318); }
#action-dialog .result-view > .button-wide + .button-wide { margin-top: 12px; }
#action-dialog:focus-visible, #camera-dialog:focus-visible { outline: 2px solid var(--primary, #155eef); outline-offset: 2px; }
#camera-video { width: 100%; max-height: 55vh; object-fit: contain; background: #142030; border-radius: 8px; }
@media (max-width: 600px) {
  .field-workbench .stats-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .field-workbench .stat { padding: 12px 8px; min-height: 0; border-radius: 8px; }
  .field-workbench .stat-label { font-size: 11px; white-space: nowrap; }
  .field-workbench .stat-number { font-size: 22px; line-height: 1.25; margin-top: 8px; }
  .field-workbench .stat-number small { font-size: 11px; margin-left: 2px; }
  #action-dialog, #camera-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 24px); padding: 16px; }
  #action-dialog .modal-head { gap: 12px; }
  #action-dialog .modal-head h2 { font-size: 22px; overflow-wrap: anywhere; }
  #action-dialog .modal-card-detail { overflow-wrap: anywhere; }
  #report-form .modal-actions, #scan-report-form .modal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  #report-form .modal-actions, #scan-report-form .modal-actions { position: sticky; bottom: -16px; z-index: 2; margin-top: 16px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--paper, #fff); border-top: 1px solid var(--line, #dfe5ed); }
  #report-form .modal-actions > button, #scan-report-form .modal-actions > button { flex: 1 1 120px; min-height: 48px; }
}

.direct-report-choices{display:grid;gap:12px;margin:16px 0 20px}.direct-report-choice{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;min-height:84px;width:100%;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);text-align:left;font:inherit;cursor:pointer}.direct-report-choice:hover,.direct-report-choice:focus-visible{border-color:var(--teal);background:var(--pale)}.direct-report-choice strong{display:block;font-size:19px}.direct-report-choice small{display:block;font-size:12px;color:var(--muted);margin-top:6px;line-height:1.5}.direct-report-choice>span{min-width:0;max-width:100%;overflow-wrap:anywhere}.direct-report-choice>span:first-child{flex:1 1 8em}.direct-report-choice>span:last-child{text-align:right;flex:0 1 auto}.direct-report-choice b{font-size:24px;font-variant-numeric:tabular-nums}
#card-all-events{flex-shrink:0;white-space:nowrap}
.event-actions{flex-wrap:wrap}
.event-actions>button{flex:1 1 max-content;max-width:100%;white-space:nowrap}

/* Keep the server-selected operation visible before product and quantity on phones. */
#action-dialog .modal-head .report-operation-label { color: var(--teal, #123f3b); font-size: 13px; letter-spacing: .04em; margin-bottom: 8px; }
#action-dialog .modal-head h2.report-operation-name { font-size: clamp(28px, 6vw, 34px); line-height: 1.3; color: var(--teal, #123f3b); overflow-wrap: anywhere; }
#action-dialog .report-operation-location { margin-top: 8px; color: var(--muted, #526478); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }

.order-route-missing { margin: 12px 0 0; padding: 12px; background: #fff6e7; border: 1px solid #e3c58e; border-radius: 8px; color: #74511d; font-size: 13px; line-height: 1.6; }
.scan-blocker + .button-wide { margin-bottom: 12px; }
