/* Estilos para scanner de productos */

.barcode-container-productos {
    flex-wrap: nowrap !important;
}

.btn-camera-barcode {
    background: linear-gradient(135deg, #143DD4 0%, #0f2a9e 100%);
    color: white;
    border: none;
    padding: 12px 14px;
    border-radius: 8px;
    display: none;
    flex-shrink: 0;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(20, 61, 212, 0.3);
}

.btn-camera-barcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20, 61, 212, 0.5);
}

.btn-camera-barcode:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(20, 61, 212, 0.4);
}

@media (max-width: 768px) {
    .barcode-container-productos {
        gap: 5px;
    }

    #btnCameraProductos {
        display: inline-block !important;
    }

    .barcode-container-productos .textos_ventasNegrita {
        flex: 1;
        min-width: 0;
    }
}

@media (min-width: 769px) {
    #btnCameraProductos {
        display: none !important;
    }
}

/* Estilos del modal */
#modalScanBarcodeProductos.modal {
    background-color: rgba(0,0,0,0.95) !important;
}

#html5-qrcode-productos .html5-qrcode-element-hr,
#html5-qrcode-productos .html5-qrcode-controls,
#html5-qrcode-productos button,
#html5-qrcode-productos select,
#html5-qrcode-productos .html5-qrcode-button-element,
#html5-qrcode-productos .html5-qrcode-scanner-status {
    display: none !important;
}

#html5-qrcode-productos video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

#html5-qrcode-productos > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#html5-qrcode-productos > div:first-child {
    display: none !important;
}
