/* Mobile receiving (/purchasing/receiving/scan). Bootstrap covers nearly everything; these are the
   exceptions. Every rule is scoped to .mobile-receiving so nothing leaks into the desktop pages. */

/* html5-qrcode injects a <video> that ignores Bootstrap's sizing. */
#barcode-reader video {
    width: 100% !important;
    border-radius: 0.375rem;
}

/* iOS zooms the whole page when a focused input's font-size is below 16px. */
.mobile-receiving input,
.mobile-receiving select,
.mobile-receiving textarea {
    font-size: 16px;
}

/* Every button on the page must clear the 44px minimum tap target on a phone - including the
   link-styled ones ("Remove", "Start over"), which Bootstrap sizes to their text. */
.mobile-receiving .btn {
    min-width: 44px;
    min-height: 44px;
}

/* The stepper's number box sits between two 44px buttons and must not collapse on a 320px phone. */
.mobile-receiving .stepper-input {
    min-width: 4.5rem;
}

/* Phone-first, but also opened on a desk: keep the single column readable on a wide screen. */
.mobile-receiving {
    max-width: 40rem;
}
