/* Shop-floor screens shared by both panels (scan roll, print done, tag and stage). Plain CSS. */
.pp-wedge { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pp-scan, .pp-floor { display: flex; flex-direction: column; gap: 14px; position: relative; }
.pp-scan-bar { display: flex; flex-direction: column; gap: 10px; }
.pp-manual { display: flex; gap: 8px; }
.pp-manual-input { flex: 1; min-height: 48px; padding: 0 12px; border-radius: 10px; border: 1px solid #d1d5db; font-size: 1.05rem; background: transparent; }
.pp-manual-go { min-width: 64px; border-radius: 10px; background: #374151; color: #fff; font-weight: 600; }
.pp-camera { width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
.pp-scan-error { color: #b91c1c; font-size: .95rem; }
.pp-scan-hint { color: #6b7280; font-size: .95rem; }
.pp-scan-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; border: 1px solid #e5e7eb; background: #fff; }
.pp-scan-item { display: flex; gap: 14px; align-items: center; }
.pp-swatch { width: 56px; height: 56px; border-radius: 50%; flex: none; border: 2px solid rgba(0,0,0,.1); }
.pp-scan-name { font-size: 1.2rem; font-weight: 700; }
.pp-scan-counts { font-size: 1rem; }
.pp-scan-code { font-family: ui-monospace, monospace; color: #6b7280; font-size: .9rem; }
.pp-big-button { width: 100%; min-height: 64px; border-radius: 14px; background: #0d9488; color: #fff; font-size: 1.2rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.pp-big-button:disabled { opacity: .5; }
.pp-big-secondary { background: #374151; }
.pp-big-success { background: #15803d; }
.pp-big-button:active { transform: scale(.99); }
.pp-badge { background: rgba(255,255,255,.25); border-radius: 999px; padding: 2px 10px; font-size: 1rem; }
.pp-link-button { color: #0d9488; font-weight: 600; padding: 8px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chip { min-height: 44px; min-width: 64px; padding: 0 14px; border-radius: 999px; border: 2px solid #d1d5db; font-weight: 600; background: transparent; }
.pp-chip-on { border-color: #0d9488; background: #0d9488; color: #fff; }
.pp-scan-form { display: flex; flex-direction: column; gap: 12px; }
.pp-stepper { display: flex; align-items: center; gap: 10px; }
.pp-stepper button { width: 56px; height: 56px; border-radius: 12px; background: #e5e7eb; font-size: 1.6rem; font-weight: 700; }
.pp-stepper output, .pp-stepper input { min-width: 64px; text-align: center; font-size: 1.6rem; font-weight: 700; background: transparent; border: 0; }
.pp-low-list { display: flex; flex-direction: column; gap: 6px; }
.pp-low-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; text-decoration: none; }
.pp-low-row .pp-swatch { width: 22px; height: 22px; }
.pp-section-title { font-size: 1.05rem; font-weight: 700; }
.dark .pp-scan-card { background: #111827; border-color: #374151; }
.dark .pp-manual-input { border-color: #4b5563; }
.dark .pp-chip { border-color: #4b5563; }
.dark .pp-stepper button { background: #374151; color: #fff; }
.dark .pp-low-row { background: #450a0a; color: #fecaca; }
.pp-row-voided td { text-decoration: line-through; opacity: .55; }
/* Shop panel copy of the admin red row (the shop panel does not load admin.css). */
.pp-row-below-cost, .pp-row-below-cost > td { background-color: rgb(254 226 226) !important; }
.dark .pp-row-below-cost, .dark .pp-row-below-cost > td { background-color: rgb(127 29 29 / 0.35) !important; }
.pp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pp-pick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; border: 2px solid #e5e7eb; background: #fff; text-align: center; font-size: .85rem; line-height: 1.15; }
.pp-pick button.pp-on { border-color: #0d9488; }
.pp-pick img, .pp-pick .pp-noimg { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #f3f4f6; }
.pp-pick strong { font-size: .95rem; }
.pp-recent { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pp-recent button { flex: none; width: 96px; }
.pp-selected { display: flex; gap: 12px; align-items: center; }
.pp-selected img, .pp-selected .pp-noimg { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #f3f4f6; }
.pp-selected .pp-item { font-size: 1.4rem; font-weight: 800; }
.pp-field-label { font-weight: 600; font-size: .95rem; }
.pp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.pp-row:last-child { border-bottom: 0; }
.pp-row-main { display: flex; flex-direction: column; min-width: 0; }
.pp-row-name { font-weight: 700; }
.pp-row-meta { font-size: .85rem; color: #6b7280; }
.pp-row-meta a, .pp-qty-link { color: #0d9488; text-decoration: underline; }
.pp-roll { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid #e5e7eb; }
.pp-roll label { display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.pp-search { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid #d1d5db; font-size: 1.1rem; background: transparent; }
.dark .pp-pick button, .dark .pp-roll, .dark .pp-row { background: transparent; border-color: #374151; }
.dark .pp-search { border-color: #4b5563; }
/* Phase 4: clock, booth run, counts, my time. */
.pp-clock { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; border: 2px solid #e5e7eb; background: #fff; }
.pp-clock-working { border-color: #0d9488; }
.pp-clock-on_break { border-color: #d97706; }
.pp-clock-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; align-items: baseline; }
.pp-clock-state { font-size: 1.15rem; font-weight: 700; }
.pp-clock-since, .pp-clock-totals { font-size: .95rem; color: #4b5563; font-weight: 400; }
.pp-clock-button { width: 100%; min-height: 80px; border-radius: 16px; background: #0d9488; color: #fff; font-size: 1.5rem; font-weight: 800; }
.pp-clock-working .pp-clock-button { background: #d97706; }
.pp-clock-on_break .pp-clock-button { background: #15803d; }
.pp-clock-button:disabled { opacity: .6; }
.pp-clock-out { width: 100%; min-height: 52px; border-radius: 12px; border: 2px solid #b91c1c; color: #b91c1c; font-weight: 700; background: transparent; }
.pp-banner { padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.pp-banner-amber { background: #fef3c7; color: #92400e; }
.pp-banner-red { background: #fee2e2; color: #991b1b; }
.pp-banner-info { background: #e0f2fe; color: #075985; font-weight: 500; }
.pp-trip-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 2px solid #0d9488; text-decoration: none; color: inherit; }
.pp-attention { border: 2px solid #d97706; }
.pp-chip-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 999px; background: #fff; color: #0d9488; font-size: .8rem; }
.pp-trip-legs { display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.pp-stops { display: flex; flex-direction: column; gap: 4px; padding-left: 1.2rem; list-style: decimal; }
.pp-stop-done { color: #15803d; }
.pp-stop-skipped { color: #9ca3af; text-decoration: line-through; }
.pp-tabs { display: flex; gap: 6px; border-bottom: 1px solid #e5e7eb; }
.pp-tab { flex: 1; min-height: 48px; font-weight: 600; border-bottom: 3px solid transparent; color: #4b5563; }
.pp-tab-on { border-bottom-color: #0d9488; color: #0d9488; }
.pp-count-row { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.pp-count-changed { background: #fffbeb; margin: 0 -16px; padding: 10px 16px; }
.pp-count-main { display: flex; align-items: center; gap: 10px; }
.pp-count-main .pp-row-main { flex: 1; }
.pp-count-img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #f3f4f6; flex: none; }
.pp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pp-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.pp-file { position: relative; cursor: pointer; }
.pp-notes { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #d1d5db; background: transparent; font-size: 1rem; }
.pp-week-nav { display: flex; align-items: center; justify-content: space-between; }
.pp-week-nav .pp-link-button { font-size: 1.6rem; min-width: 48px; }
.pp-punch-void { text-decoration: line-through; opacity: .6; }
.pp-punch-flag { color: #b45309; font-weight: 600; }
.dark .pp-clock { background: #111827; border-color: #374151; }
.dark .pp-clock-working { border-color: #0d9488; }
.dark .pp-clock-since, .dark .pp-clock-totals { color: #9ca3af; }
.dark .pp-banner-amber { background: #451a03; color: #fde68a; }
.dark .pp-banner-red { background: #450a0a; color: #fecaca; }
.dark .pp-banner-info { background: #082f49; color: #bae6fd; }
.dark .pp-count-changed { background: #292524; }
.dark .pp-tabs, .dark .pp-count-row { border-color: #374151; }
.dark .pp-notes { border-color: #4b5563; }
/* Phase 5: unmatched sales queue, planner, reports. */
.pp-queue-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pp-queue-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex: none; }
.pp-plan-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e5e7eb; }
.pp-plan-row:last-child { border-bottom: 0; }
.pp-plan-row img, .pp-plan-row .pp-noimg { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #f3f4f6; flex: none; }
.pp-plan-qty { margin-left: auto; text-align: right; flex: none; }
.pp-plan-qty strong { font-size: 1.4rem; display: block; }
.pp-plan-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-report { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pp-report th, .pp-report td { padding: 6px 8px; border-bottom: 1px solid #e5e7eb; text-align: right; white-space: nowrap; }
.pp-report th:first-child, .pp-report td:first-child { text-align: left; white-space: normal; }
.pp-report tfoot td { font-weight: 700; }
.pp-report .pp-neg { color: #b91c1c; }
.pp-report .pp-est { color: #92400e; font-size: .75rem; }
.pp-report-wrap { overflow-x: auto; }
.pp-spark { width: 120px; height: 28px; }
.pp-spark polyline { fill: none; stroke: #0d9488; stroke-width: 2; }
.dark .pp-report th, .dark .pp-report td, .dark .pp-plan-row { border-color: #374151; }

/* Phase 6 AI assists: the AI's pick in the Unmatched Sales queue, and Count from photos. */
.pp-ai-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pp-pick button.pp-ai-pick { border-color: #7c3aed; box-shadow: 0 0 0 2px rgb(124 58 237 / .2); position: relative; }
.pp-ai-badge { font-size: .7rem; font-weight: 700; color: #fff; background: #7c3aed; border-radius: 999px; padding: 1px 8px; }
.pp-count-ai-look { background: #fef3c7; border-left: 4px solid #d97706; margin: 0 -16px; padding: 10px 12px; }
.pp-ai-qty { font-size: .8rem; color: #92400e; font-weight: 600; }
.pp-ai-ok { font-size: .75rem; color: #6d28d9; }
.dark .pp-count-ai-look { background: rgb(120 53 15 / .35); }
.dark .pp-ai-qty { color: #fcd34d; }
.dark .pp-ai-ok { color: #c4b5fd; }
