.barcode-camera-button{min-height:40px;flex-shrink:0;margin:0;white-space:nowrap}
.filter-search input{min-width:0}
#productForm .barcode-lookup{padding:10px 12px;border:1px solid #dce4df;border-radius:10px;background:#f4f7f5}
#productForm .barcode-lookup label>div{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;margin-top:6px}
#productForm .barcode-lookup input{min-width:0;width:100%;height:40px;padding:8px 10px;font-size:16px}
#productForm .barcode-lookup button{min-height:40px;margin:0;padding:8px 10px;font-size:12px}
#productForm .barcode-lookup em{display:block;margin-top:6px;font-size:11px;line-height:1.35}
#productForm #saveProductBarcode{width:auto;min-height:40px;margin-top:4px;padding:6px 0;background:transparent;border:0;box-shadow:none;font-size:12px;text-align:left;text-decoration:underline;text-underline-offset:3px}
.barcode-camera-dialog{box-sizing:border-box;width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #d9e4df;border-radius:14px;padding:12px;color:#203c32;background:#fff;box-shadow:0 20px 80px #0004;font-family:inherit;font-size:14px}
.barcode-camera-dialog::backdrop{background:#102a2280}
.barcode-camera-dialog header,.barcode-camera-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:8px}
.barcode-camera-dialog h2{font-size:16px!important;line-height:1.25;margin:0}
.barcode-camera-dialog button{min-height:40px;padding:8px 12px;font-size:13px;cursor:pointer}
.barcode-camera-dialog [data-close]{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;padding:0;margin:0;font-size:0;border:0;box-shadow:none}
.barcode-camera-dialog [data-close] svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.barcode-camera-preview{position:relative;margin-top:8px;height:clamp(130px,29dvh,220px);background:#14251d;border-radius:9px;overflow:hidden}
.barcode-camera-preview video{display:block;width:100%;height:100%;object-fit:cover}
.barcode-camera-guide{position:absolute;inset:23% 6%;border:2px solid #fff;border-radius:6px;box-shadow:0 0 0 100px #0002;pointer-events:none}
.barcode-camera-dialog p{margin:8px 0;font-size:13px;line-height:1.4}
.barcode-camera-dialog .barcode-camera-privacy{margin:8px 0 0;font-size:11px;color:#617267}
.barcode-camera-tools{display:flex;align-items:flex-start;gap:8px;margin:6px 0}
.barcode-camera-tools details{flex:1;min-width:0;font-size:12px}
.barcode-camera-tools summary{padding:10px 0;cursor:pointer}
.barcode-camera-dialog select{display:block;width:100%;min-height:40px;font-size:16px;margin-bottom:8px}
.barcode-camera-dialog [data-torch][aria-pressed=true]{background:#203c32;color:white}
.barcode-camera-dialog [hidden]{display:none!important}
@media(max-width:600px){#productForm .barcode-lookup label>div{grid-template-columns:1fr 1fr}#productForm .barcode-lookup input{grid-column:1/-1}.filter-search{flex-wrap:wrap}.filter-search input{flex:1 1 130px}}
@media(orientation:landscape) and (max-height:480px){.barcode-camera-dialog{width:min(680px,calc(100% - 24px));display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.barcode-camera-dialog header{grid-column:1/-1}.barcode-camera-preview{grid-row:2/6;height:160px}.barcode-camera-dialog footer{justify-content:flex-start}.barcode-camera-dialog .barcode-camera-privacy{grid-column:2}}
