.admin-toolbar { flex-wrap: wrap; }
.admin-tabs { flex: 1 1 100%; overflow-x: auto; max-width: 100%; }
.admin-tabs button { white-space: nowrap; flex-shrink: 0; min-height: 44px; }
.scan-row { display: flex; align-items: end; gap: 10px; margin: 20px 0; }
.scan-row label { flex: 1; min-width: 0; margin: 0; }
.scan-row input, #receiveForm input, #receiveForm select { font-size: 16px; }
.sale-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-wrap: anywhere; }
.sale-row p { color: var(--muted); font-size: .85rem; margin: 5px 0 0; }
.sale-row .unit-actions { flex-wrap: wrap; }
.pos-layout { display: grid; gap: 24px; margin-top: 18px; }
.pos-layout > div { min-width: 0; }
.checkout-card { background: white; padding: 22px; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.checkout-card h3 { margin-bottom: 12px; }
.checkout-card .subtle { font-size: .82rem; }
.checkout-card > button { width: 100%; margin-top: 8px; }
.pos-total { font-size: 1.5rem; font-weight: 700; margin: 20px 0; }
.cart-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; margin-top: 12px; overflow-wrap: anywhere; }
.cart-item p { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.cart-item button { grid-column: 2; }
.pos-result { display: flex; justify-content: space-between; text-align: left; gap: 16px; width: 100%; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 8px; }
.pos-result small { display: block; color: var(--muted); }
.qc-actions { padding: 18px; margin-top: 20px; border: 1px solid #d7e4ff; border-radius: 12px; background: var(--blue-wash); }
.qc-actions h3 { margin-bottom: 12px; }
.qc-actions .inline-group { flex-wrap: wrap; }
#saleSuccess { margin-top: 24px; }
#receiveSuccess .unit-actions { display: flex; flex-wrap: wrap; margin-top: 12px; }
.admin-unit .unit-actions { flex-wrap: wrap; }
.admin-unit .unit-price { flex-wrap: wrap; min-width: 0; }
.admin-unit .unit-price .subtle { overflow-wrap: anywhere; }
@media (min-width: 900px) { .pos-layout { grid-template-columns: minmax(0,1fr) minmax(300px,.7fr); align-items: start; } }
@media (max-width: 400px) { .scan-row { flex-wrap: wrap; } .scan-row label { flex-basis: 100%; } .checkout-card { padding: 16px; } }

.sales-pages { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sales-pages p { margin: 0; color: var(--muted); font-size: .85rem; }
.gallery-upload-row { grid-template-columns: minmax(0, 1fr); }
.gallery-photo-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin-bottom: 12px; }
.gallery-photo-actions .button, .gallery-photo-actions .upload-box { min-height: 48px; margin: 0; padding: 12px 8px; font-size: .8rem; }
.gallery-photo-actions .upload-box { display: flex; align-items: center; justify-content: center; }
.gallery-photo-actions .upload-box:has(input:disabled) { opacity: .55; cursor: not-allowed; }
@media (min-width: 650px) { .gallery-upload-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.camera-dialog { width: min(560px, calc(100% - 24px)); max-height: 94dvh; padding: 0; border: 0; border-radius: 16px; overflow: auto; }
.camera-body { padding: 20px; }
.camera-preview { background: #182433; border-radius: 12px; overflow: hidden; }
.camera-preview video, .camera-preview canvas { display: block; width: 100%; max-height: 48dvh; aspect-ratio: 4 / 3; object-fit: contain; }
#cameraSubject, #cameraStatus { font-size: .85rem; overflow-wrap: anywhere; }
#cameraStatus { margin: 16px 0; }
#cameraStatus.danger { color: #b42318; }
.camera-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.camera-actions .button { flex: 1; min-height: 48px; padding: 12px 8px; font-size: .85rem; }
#cameraFallback { margin-top: 20px; }
#cameraFallback p { font-size: .8rem; }
.currency-input { position: relative; display: block; min-width: 0; }
.currency-input > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.currency-input > input { padding-left: 42px; width: 100%; font-variant-numeric: tabular-nums; }
.identity-scan-button { align-self: flex-start; font-size: .75rem; min-height: 38px; margin-top: 6px; }
#scanForm .identity-input-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#scanForm .identity-scan-button { min-height: 44px; margin-top: 0; }
#scanForm small { font-size: .78rem; color: var(--muted); font-weight: 400; }
.identity-review { padding: 20px; }
.identity-review input { font-family: ui-monospace, monospace; font-size: 1rem; }
.identity-review pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; }
.identity-review img { max-width: 100%; max-height: 220px; object-fit: contain; background: var(--wash); }
