/* ============================================
   JOUGA GROUP — Picker Panel Design System
   Speed-focused dark-store staff interface
   ============================================ */

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(72px + var(--safe-bottom));
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
ul, ol { list-style: none; }

:root {
  --primary: #F8CB46;
  --primary-light: #FBD96B;
  --primary-dark: #D9A400;
  --primary-ink: #7A6200;
  --primary-bg: rgba(248,203,70,0.15);
  --bg: #F5F5F5;
  --bg-light: #FFFFFF;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --card-hover: #EEEEEE;
  --text: #212121;
  --text-secondary: #616161;
  --text-muted: #9E9E9E;
  --success: #22C55E;
  --success-bg: rgba(34,197,94,0.15);
  --error: #EF4444;
  --error-bg: rgba(239,68,68,0.15);
  --warning: #F59E0B;
  --warning-bg: rgba(245,158,11,0.15);
  --border: rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.12);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 24px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --transition: 0.15s ease;
}

/* ============================================
   TOUCH TARGETS
   ============================================ */

.touch-target {
  min-height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.touch-btn {
  min-height: 56px;
  padding: 16px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition);
  width: 100%;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.touch-btn:active { transform: scale(0.97); }

.touch-btn-primary {
  background: var(--primary);
  color: #212121;
}
.touch-btn-primary:active { background: var(--primary-dark); }

.touch-btn-success {
  background: var(--success);
  color: #fff;
}

.touch-btn-outline {
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--text);
}

.touch-btn-danger {
  background: var(--error);
  color: #fff;
}

.touch-btn-ghost {
  background: rgba(0,0,0,0.04);
  color: var(--text-secondary);
}

.touch-btn-sm {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  width: auto;
}

/* ============================================
   TOP TAB NAVIGATION
   ============================================ */

.top-tabs {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  padding: 0;
}

.top-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
  min-height: 56px;
}

.top-tab svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.top-tab.active {
  color: var(--primary-ink);
}

.top-tab.active svg {
  opacity: 1;
}

.top-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.tab-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 20px);
  min-width: 18px;
  height: 18px;
  background: var(--error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ============================================
   PAGE CONTAINER
   ============================================ */

.page {
  padding: 16px;
  display: none;
}

.page.active {
  display: block;
}

/* ============================================
   HEADER BAR
   ============================================ */

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-bar h1 {
  font-size: 18px;
  font-weight: 700;
}

.header-back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.05);
}

/* ============================================
   PROGRESS COUNTER — Big & Visible
   ============================================ */

.progress-counter {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.progress-counter .counter-text {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-ink);
  line-height: 1;
  letter-spacing: -1px;
}

.progress-counter .counter-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.progress-bar-wrap {
  height: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  margin-top: 16px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ============================================
   QUEUE LIST — Urgency Color Coding
   ============================================ */

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  border-left: 4px solid var(--success);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.queue-card:active {
  transform: scale(0.98);
  background: var(--card-hover);
}

.queue-card.sla-danger {
  border-left-color: var(--error);
  animation: pulse-danger 2s infinite;
}

.queue-card.sla-warning {
  border-left-color: var(--warning);
}

.queue-card.sla-safe {
  border-left-color: var(--success);
}

@keyframes pulse-danger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.queue-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.queue-order-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.queue-items-count {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.queue-sla-badge {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.queue-sla-badge.danger {
  background: var(--error-bg);
  color: var(--error);
}

.queue-sla-badge.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.queue-sla-badge.safe {
  background: var(--success-bg);
  color: var(--success);
}

.queue-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.queue-time-remaining {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.queue-time-remaining .countdown {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.queue-card-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-ink);
}

/* ============================================
   PICK LIST ITEMS — Scan Confirmation Indicators
   ============================================ */

.pick-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition);
  position: relative;
}

.pick-item.picked {
  opacity: 0.5;
  border: 1px solid var(--success);
}

.pick-item.not-found {
  opacity: 0.5;
  border: 1px solid var(--error);
}

.pick-item-scan-status {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.pick-item-scan-status.pending {
  background: rgba(0,0,0,0.04);
  border: 2px dashed var(--text-muted);
  color: var(--text-muted);
}

.pick-item-scan-status.scanned {
  background: var(--success-bg);
  border: 2px solid var(--success);
  color: var(--success);
}

.pick-item-scan-status.error {
  background: var(--error-bg);
  border: 2px solid var(--error);
  color: var(--error);
}

.pick-item-info {
  flex: 1;
  min-width: 0;
}

.pick-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pick-item-qty {
  font-size: 13px;
  color: var(--text-secondary);
}

.pick-item-bin {
  background: var(--primary-bg);
  color: var(--primary-ink);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
  white-space: nowrap;
}

.pick-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.scan-btn {
  min-height: 44px;
  padding: 8px 20px;
  background: var(--primary);
  color: #212121;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

.scan-btn:active { transform: scale(0.95); }

.flag-btn {
  min-height: 36px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.05);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   BIN LOCATION DISPLAY — Prominent
   ============================================ */

.bin-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.bin-display .bin-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.bin-display .bin-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-ink);
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 2px;
}

/* ============================================
   SCAN OVERLAY — Full-Screen Camera
   ============================================ */

.scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: none;
  flex-direction: column;
}

.scan-overlay.active {
  display: flex;
}

.scan-video-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #111;
}

.scan-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-viewfinder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scan-bracket {
  width: 260px;
  height: 260px;
  position: relative;
}

.scan-bracket::before,
.scan-bracket::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--primary);
  border-style: solid;
}

.scan-bracket::before {
  top: 0; left: 0;
  border-width: 4px 0 0 4px;
  border-radius: 4px 0 0 0;
}

.scan-bracket::after {
  top: 0; right: 0;
  border-width: 4px 4px 0 0;
  border-radius: 0 4px 0 0;
}

.scan-bracket-bottom::before,
.scan-bracket-bottom::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--primary);
  border-style: solid;
}

.scan-bracket-bottom::before {
  bottom: 0; left: 0;
  border-width: 0 0 4px 4px;
  border-radius: 0 0 0 4px;
}

.scan-bracket-bottom::after {
  bottom: 0; right: 0;
  border-width: 0 4px 4px 0;
  border-radius: 0 0 4px 0;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(248,203,70,0.6);
  border-radius: 2px;
  animation: scanLineMove 2s ease-in-out infinite;
}

@keyframes scanLineMove {
  0%, 100% { top: 10%; }
  50% { top: 90%; }
}

.scan-result-bar {
  background: var(--surface);
  padding: 20px;
  text-align: center;
}

.scan-result-bar .scan-status-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.scan-result-bar .scan-product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.scan-result-bar .scan-barcode {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: 'SF Mono', monospace;
}

.scan-mismatch-flash {
  position: fixed;
  inset: 0;
  background: rgba(239,68,68,0.3);
  z-index: 1001;
  display: none;
  animation: flashFade 0.5s ease-out forwards;
}

@keyframes flashFade {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.scan-success-flash {
  position: fixed;
  inset: 0;
  background: rgba(34,197,94,0.2);
  z-index: 1001;
  display: none;
  animation: flashFade 0.4s ease-out forwards;
}

.scan-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0,0,0,0.8);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.scan-top-bar .scan-title {
  font-size: 16px;
  font-weight: 600;
}

.scan-close-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  font-size: 20px;
}

.scan-manual-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.8);
}

.scan-manual-input input {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text);
  font-family: 'SF Mono', monospace;
  text-align: center;
  letter-spacing: 2px;
}

.scan-manual-input input::placeholder {
  color: var(--text-muted);
  letter-spacing: 0;
}

.scan-manual-input button {
  padding: 12px 20px;
  background: var(--primary);
  color: #212121;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ============================================
   PACK & HANDOFF
   ============================================ */

.handoff-qr-section {
  text-align: center;
  padding: 24px 0;
}

.handoff-qr-section .qr-frame {
  width: 240px;
  height: 240px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.handoff-qr-section .qr-frame img,
.handoff-qr-section .qr-frame svg,
.handoff-qr-section .qr-frame canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.handoff-qr-section .qr-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.handoff-qr-section .qr-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.handoff-otp-display {
  text-align: center;
  margin-bottom: 20px;
}

.handoff-otp-display .otp-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.handoff-otp-display .otp-code {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary-ink);
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 6px;
}

.handoff-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-top: 16px;
}

.handoff-status .status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.handoff-status.ready .status-dot {
  background: var(--success);
  animation: none;
}

/* ============================================
   STOCK ALERTS
   ============================================ */

.alert-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  border-left: 4px solid var(--warning);
}

.alert-card.out-of-stock {
  border-left-color: var(--error);
}

.alert-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.alert-product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.alert-reason {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alert-reason.oos {
  background: var(--error-bg);
  color: var(--error);
}

.alert-reason.low {
  background: var(--warning-bg);
  color: var(--warning);
}

.alert-location {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.alert-actions {
  display: flex;
  gap: 8px;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   LOGIN SCREEN
   ============================================ */

.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-logo {
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #212121;
  margin-bottom: 16px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.login-form {
  width: 100%;
  max-width: 360px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--text);
  transition: border-color var(--transition);
  min-height: 52px;
}

.form-input:focus {
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238899AA' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  min-height: 52px;
}

.login-error {
  background: var(--error-bg);
  color: var(--error);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  display: none;
}

.login-error.visible {
  display: block;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: toastSlide 0.25s ease-out;
  max-width: 400px;
}

.toast.removing {
  animation: toastFade 0.3s ease-out forwards;
}

.toast-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 1px;
}

.toast-message {
  font-size: 13px;
  color: var(--text-secondary);
}

.toast-close {
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--error); }
.toast-warning .toast-icon { color: var(--warning); }

@keyframes toastSlide {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toastFade {
  to { transform: translateY(-20px); opacity: 0; }
}

/* ============================================
   PAGE LOADER
   ============================================ */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.page-loader .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0,0,0,0.12);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.page-loader .loader-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================
   PICK INFO HEADER
   ============================================ */

.pick-header {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.pick-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.pick-header .order-num {
  font-size: 16px;
  font-weight: 700;
}

.pick-header .customer-name {
  font-size: 14px;
  color: var(--text-secondary);
}

.pick-header .sla-timer {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pick-header .sla-timer.danger {
  background: var(--error-bg);
  color: var(--error);
}

.pick-header .sla-timer.warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.pick-header .sla-timer.safe {
  background: var(--success-bg);
  color: var(--success);
}

/* ============================================
   MISC UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-sm { font-size: 12px; }
.text-secondary { color: var(--text-secondary); }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }

/* ============================================
   SUBSTITUTION MODAL
   ============================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 900;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop.active {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-sheet h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ============================================
   VIBRATE ANIMATION — Wrong Scan
   ============================================ */

@keyframes vibrate {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.vibrate {
  animation: vibrate 0.3s ease-in-out;
}

/* ============================================
   PULL TO REFRESH INDICATOR
   ============================================ */

.pull-indicator {
  text-align: center;
  padding: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  display: none;
}

.pull-indicator.visible {
  display: block;
}

/* ============================================
   LOADING SKELETON
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 100px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

/* ============================================
   AUTO-CLOSE COUNTDOWN
   ============================================ */

.auto-close-countdown {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ============================================
   STORE SELECTOR
   ============================================ */

.store-selector {
  width: 100%;
  max-width: 360px;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-selector option {
  background: var(--surface);
  color: var(--text);
}

/* ============================================
   SLA TIMER — PICK LIST HEADER
   ============================================ */

.sla-timer {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   NEXT ITEM HIGHLIGHT
   ============================================ */

.pick-item.next-item {
  border: 2px solid var(--primary);
  background: rgba(248,203,70,0.05);
}

/* ============================================
   RESPONSIVE — Larger screens
   ============================================ */

@media (min-width: 480px) {
  .queue-card { padding: 20px; }
  .pick-item { padding: 20px; }
  .scan-bracket { width: 300px; height: 300px; }
}

@media (min-width: 768px) {
  .top-tabs { max-width: 480px; margin: 0 auto; }
  .page { max-width: 480px; margin: 0 auto; }
  .login-screen { max-width: 480px; margin: 0 auto; }
}
