@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

textarea {
    resize: none;
}

hr {
    margin: 10px 0px;
    color: darkgray;
}

::-moz-selection {
    color: #ffffff;
    background: var(--bs-danger);
}

::selection {
    color: #ffffff;
    background: var(--bs-danger);
}

::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #fff;
}

::-webkit-scrollbar-thumb {
    background-color: #aab7cf;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
*:focus {
    box-shadow: none !important;
    outline: 0px !important;
}

.navbar {
    box-shadow: 0px 3px 7px -6px rgba(0, 0, 0, 0.5);
}

.card {
    border-radius: 8px;
    box-shadow: none;
    border: 0px;
}

.form-control,
.form-select {
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border: 1.8px solid var(--bs-danger);
    outline: 0;
    box-shadow: 0 0 0.25rem 0.05rem rgba(105, 108, 255, 0.1);
}

form {
    font-size: 14px;
}

/*--------------------------------------------------------------
# Select 2 Input
--------------------------------------------------------------*/
.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da;
}

.select2-container .select2-selection--single {
    height: 40px;
    outline: none;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 38px;
    font-size: 14px;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    top: 30%;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--bs-danger);
    outline: none;
}

.select2-search--dropdown .select2-search__field {
    padding: 5px;
}

.select2-container--default .select2-results > .select2-results__options {
    font-size: 0.9em;
    max-height: 350px;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    top: 12px;
    right: 7px;
}

.select2-container--default
    .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--bs-danger);
}

.select2-container *:focus { border: 1px solid var(--bs-danger); }

section {
    padding: 30px 0px;
}

.form-box {
    background: #f7f7f7;
}

/*--------------------------------------------------------------
# Product scan for barcode
--------------------------------------------------------------*/

#product-barcode-reader video {
    width: 100%;
    height: 70vh;
}

@media (max-width: 768px) {
    #product-barcode-reader {
        width: 100%;
        height: 70vh;
    }

    #product-barcode-reader video {
        width: 100%;
        height: 70vh;
    }
}