/* RepuestoApp 6.2 · Fases 1, 2 y 3 */
.optional-mark{font-size:.72rem;font-weight:800;color:#6b7f78;background:#edf5f2;border-radius:999px;padding:2px 7px;margin-left:4px}.variant-family{color:#245b8d!important;font-weight:700}.inventory-search-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn-compact{padding:8px 12px!important;font-size:.86rem!important}.scanner-match{outline:3px solid rgba(33,165,133,.35);outline-offset:-3px;background:#effbf7!important}.barcode-scanner-modal{width:min(680px,calc(100vw - 28px))}.barcode-video-shell{position:relative;overflow:hidden;border-radius:18px;background:#0f1720;aspect-ratio:16/9;margin-top:12px}.barcode-video-shell video{width:100%;height:100%;object-fit:cover;display:block}.barcode-scan-guide{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}.barcode-scan-guide span{width:72%;height:34%;border:2px solid rgba(255,255,255,.85);border-radius:16px;box-shadow:0 0 0 999px rgba(3,13,20,.18)}.barcode-scanner-status{padding:12px 14px;border-radius:12px;background:#eef7f4;color:#31594f;margin:12px 0 0}.inventory-control-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:18px}.inventory-adjust-card,.inventory-products-summary{padding:22px}.current-stock-box{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border:1px solid #cfe4dd;border-radius:16px;background:#f6fbf9;margin:14px 0}.current-stock-box strong{font-size:1.35rem;color:#176b5a}.adjustment-mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.adjustment-mode-option{margin:0}.adjustment-mode-option input{position:absolute;opacity:0;pointer-events:none}.adjustment-mode-option span{display:block;border:1px solid #cfe4dd;border-radius:16px;padding:13px;height:100%;cursor:pointer;background:#fff}.adjustment-mode-option b,.adjustment-mode-option small{display:block}.adjustment-mode-option small{color:#688078;margin-top:4px;line-height:1.35}.adjustment-mode-option input:checked+span{border:2px solid #176b5a;background:#eef9f5;box-shadow:0 7px 18px rgba(23,107,90,.10)}.movement-product-list{max-height:470px;overflow:auto;display:grid;gap:8px;margin-top:12px}.movement-product-item{width:100%;display:flex;justify-content:space-between;gap:14px;align-items:center;text-align:left;border:1px solid #d7e7e1;background:#fff;border-radius:14px;padding:12px 14px;cursor:pointer;color:inherit}.movement-product-item:hover{background:#f1faf6;border-color:#a9d6c7}.movement-product-item span,.movement-product-item small{display:block}.movement-product-item small{color:#688078;margin-top:3px}.movement-product-item b{white-space:nowrap;color:#245b8d}.inventory-history-card{margin-top:18px}.movement-type{display:inline-flex;padding:5px 9px;border-radius:999px;font-weight:800;font-size:.78rem;background:#eef3f8;color:#245b8d}.movement-type.is-in{background:#e7f7f1;color:#14715d}.movement-type.is-out{background:#fff0f0;color:#a52121}.movement-type.is-count{background:#f3f0ff;color:#6448a7}.quick-qty-wrap{display:inline-flex;align-items:center;gap:5px}.quick-qty-input{width:64px!important;min-width:64px!important;padding:6px 7px!important;text-align:center;border-radius:10px!important}.cart-quick-add{border:1px solid #badbd0;background:#f3faf7;color:#176b5a;border-radius:10px;padding:6px 8px;cursor:pointer;font-weight:800}.cart-quick-add:hover{background:#e5f5ef}.product-search-meta{display:block;color:#688078;margin-top:4px}.product-tile-meta{display:block;color:#6b7f78;margin-top:3px}.scanner-usb-hint{font-size:.8rem;color:#688078;margin-top:7px}.inventory-search-box.compact{max-width:none}
@media(max-width:950px){.inventory-control-grid{grid-template-columns:1fr}.adjustment-mode-grid{grid-template-columns:1fr}.barcode-video-shell{aspect-ratio:4/3}}
@media(max-width:640px){.inventory-search-tools{width:100%;justify-content:space-between}.inventory-search-tools .btn{flex:1}.movement-product-item{align-items:flex-start}.movement-product-item b{white-space:normal;text-align:right}.barcode-scanner-modal{padding:14px}.quick-qty-wrap{flex-wrap:wrap}}

/* Lector USB persistente */
.usb-reader-button{position:relative;transition:.18s ease}
.usb-reader-button.is-active,.usb-reader-button[aria-pressed="true"]{border-color:#176b5a!important;color:#176b5a!important;background:#e9f8f2!important;box-shadow:0 0 0 3px rgba(23,107,90,.10)}
.usb-reader-button.is-active::after,.usb-reader-button[aria-pressed="true"]::after{content:"";width:8px;height:8px;border-radius:50%;background:#19a974;box-shadow:0 0 0 4px rgba(25,169,116,.12);margin-left:3px}
@media(max-width:640px){.inventory-search-tools .usb-reader-button{flex:1 1 100%}.catalog-head-actions .usb-reader-button{flex:1 1 auto}}
