.labels-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,1fr);gap:20px}.label-search{width:100%;padding:12px;border:1px solid var(--line);border-radius:6px;margin-bottom:12px}.label-product{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.label-product label{display:flex;gap:12px;align-items:center;flex:1;min-width:0}.label-product b{display:block;font-size:12px}.label-product small{display:block;font-size:10px;color:var(--muted);overflow-wrap:anywhere}.label-product input[type=number]{width:65px;border:1px solid var(--line);padding:8px;border-radius:5px}.label-checks{display:flex;gap:18px;flex-wrap:wrap;margin:18px 0;font-size:12px}.label-preview{padding:24px 12px;background:#f1f4f3;border-radius:8px;overflow:auto;display:flex;align-items:center;justify-content:center;min-height:160px}.barcode-label{background:white;color:black;text-align:center;padding:1mm 2mm;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:none;overflow:hidden;font-family:Arial,sans-serif;box-sizing:border-box}.label-preview .barcode-label{box-shadow:0 5px 14px #0001}.barcode-label svg{display:block;flex:none;max-width:none}.label-brand{font-size:6pt;line-height:2.5mm;width:100%;white-space:nowrap;overflow:hidden}.label-name{font-size:7pt;font-weight:bold;line-height:3mm;white-space:nowrap;overflow:hidden;width:100%;margin-bottom:1mm}.label-code{font-size:6.5pt;line-height:2.8mm;white-space:nowrap}.label-price{font-size:8pt;font-weight:700;line-height:3.3mm}.label-actions{display:flex;gap:10px;flex-wrap:wrap}.labels-config .form-note{font-size:11px;line-height:1.8}#labelPrintRoot{display:none}.auth-panel{min-height:100dvh;display:grid;place-items:center;padding:28px;background:linear-gradient(130deg,#e4f0ec,#f7f9f8)}.auth-card{width:100%;max-width:450px;background:white;border:1px solid var(--line);padding:36px;border-radius:14px;box-shadow:0 15px 50px #163b3110}.auth-card>img{width:140px;display:block;margin-bottom:28px}.auth-card h1{font-size:28px;letter-spacing:-1px}.auth-card p{color:var(--muted);font-size:13px;line-height:1.8}.auth-card .field{margin:18px 0}.auth-card .btn{width:100%;margin:8px 0}.auth-card .auth-links{display:flex;justify-content:space-between;gap:10px;margin-top:22px;font-size:12px}.auth-error{color:#a23b31!important;background:#fff1e9;padding:12px;border-radius:6px;white-space:pre-line}.working{cursor:progress}.working:before{content:'';height:3px;background:#74c8b6;position:fixed;top:0;left:0;width:100%;z-index:300;animation:processing 1s ease-in-out infinite}@keyframes processing{50%{opacity:.25}}.camera-box{min-height:230px;background:#0b2027;border-radius:9px;overflow:hidden}.camera-box video{width:100%;max-height:350px}.camera-feedback{font-size:12px;color:var(--teal);padding:12px 0;min-height:42px}.scanner-list{max-height:180px;overflow:auto}.scanner-list>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:8px 0;font-size:12px}.cloud-note{font-size:10px;color:var(--muted);padding:0 0 10px}.sync-warning{color:#996920!important}.topbar .logout-btn{font-size:10px}.auth-panel .field input{font-size:16px}#authStatus:empty{display:none}.data-help{font-size:11px;color:var(--muted);line-height:1.7}.preview-toolbar.live-toolbar{font-size:10px;background:#edf5f2}.preview-toolbar.live-toolbar>.toolbar-actions{display:flex;gap:16px}.preview-toolbar.live-toolbar .text-btn{font-size:10px}
@media(max-width:1000px){.labels-layout{grid-template-columns:1fr}.labels-config{max-width:none}.label-preview{justify-content:flex-start}.label-preview .barcode-label{margin:auto}}@media(max-width:620px){.auth-panel{padding:18px}.auth-card{padding:26px 22px}.label-actions .btn{flex:1}.preview-toolbar.live-toolbar{font-size:8px}.preview-toolbar.live-toolbar .text-btn{font-size:9px}.labels-layout .panel-body{padding:16px}.label-preview{padding:12px;min-height:150px}.label-product b{font-size:12px}}
/* V22 — receipts, customer delivery and product photos */
.product-photo{display:grid;place-items:center;aspect-ratio:1.2;background:#f1f5f3;overflow:hidden;width:100%;padding:8px;border-radius:9px}.product-photo img{width:100%;height:100%;object-fit:contain;min-height:0;max-height:180px}.product-photo.small{width:46px;height:46px;aspect-ratio:1;padding:3px;flex:none}.product-photo.small img{height:40px}.photo-editor{display:flex;gap:18px;align-items:center;border:1px dashed var(--line);border-radius:10px;padding:16px;margin:18px 0}.photo-editor>div:last-child{min-width:0;flex:1}.photo-editor input{max-width:100%;font-size:12px}.photo-preview{width:100px;height:100px;display:grid;place-items:center;background:#eef5f1;border-radius:8px;flex:none;font-size:11px;color:var(--muted);text-align:center}.photo-preview img{width:100%;height:100%;object-fit:contain;border-radius:8px}.delivery-button{margin:0 18px;width:calc(100% - 36px);justify-content:flex-start}.delivery-summary{font-size:10px;color:var(--muted);margin:8px 18px 14px}.delivery-editor{margin:10px 0 18px}.delivery-editor h3,.receipt-share h3,.receipt-delivery h3{font-size:14px;margin:0 0 15px;color:var(--ink)}#deliveryAddress{margin-top:16px}.gps-details{padding:14px;background:#f2f7f5;border-radius:9px;margin-top:16px}.gps-details summary{font-size:12px;font-weight:600;cursor:pointer}.gps-details .label-actions{margin-top:14px}.receipt-share,.receipt-delivery{border:1px solid var(--line);background:#f5f9f7;border-radius:10px;padding:18px;margin-top:18px}.receipt-share .field{margin:18px 0 10px}.receipt-share .label-actions{align-items:stretch}.receipt-share .btn{flex:1}.receipt-delivery p,.receipt-delivery a{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.receipt-data dd{overflow-wrap:anywhere}.inventory .btn.danger,.btn.danger{color:#ac423a;border-color:#e9c7c4;background:#fff}.table-wrap td:last-child .btn{margin:3px;white-space:nowrap}.gps-details .field input{background:white}.photo-editor .field{margin:0}.receipt-share .data-help{margin:12px 0 0}.receipt-totals{break-inside:avoid}
@media(max-width:620px){.photo-editor{gap:12px;padding:12px}.photo-preview{width:72px;height:72px}.receipt-share .label-actions{flex-direction:column}.delivery-editor .form-grid{grid-template-columns:1fr}.receipt-share,.receipt-delivery{padding:14px}.gps-details .label-actions{flex-direction:column}}
@media print{.receipt-share,.form-actions,.delivery-button{display:none!important}}
