body {
    background-image: url('../img/background_1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center
}

.no-click {
    pointer-events: none
}

#backdropMain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4)
}

#mainButtonContainer {
    width: 388px;
    max-height: calc(calc(var(--vh, 1vh) * 100) - 2rem);
    overflow-y: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px;
    /*transition: all 500ms*/
}

#brand {
    border-bottom: 1px solid #b0b0b0
}

#brand div:not(.btn-group) {
    flex: 0 0 45px;
    background-color: #d5d5d5;
    border-radius: 100%
}

#brand div.btn-group {
    flex: 0 0 40px;
    border-radius: 100%
}

#brand div.btn-group ul {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px)
}

#brand div.btn-group .dropdown-toggle::after {
    content: "\f007";
    font-family: "Font Awesome 6 Pro", serif;
    border-top: none
}

#brand h1 {
    flex: 1 0 0;
    font-weight: bold;
    font-size: 2em;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none
}

#brand h1 > span:nth-of-type(1) {
    color: #fff
}

#brand h1 > span:nth-of-type(2) {
    color: #b5b5b5
}

#mainButtonGroup {
    flex: 0 0 100%;
    height: calc(100% - 55px);
    border-radius: 16px;
    row-gap: 6px;
    column-gap: 6px
}

#mainButtonGroup.hide {
    height: 0 !important;
    overflow: hidden
}

#mainButtonGroup button {
    font-size: 28px;
    font-weight: 600;
    padding-top: 0.1em;
    padding-bottom: 0.1em
}

#itemContainer {
    position: relative;
    display: none;
    overflow: hidden;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.9)
}

#outerContainer {
    height: calc(var(--vh, 1vh) * 100)
}

#outerContainer.expanded #mainButtonContainer {
    width: 100%
}

#outerContainer.expanded #itemContainer {
    display: block;
    width: 100%;
    height: calc(100% - 114px)
}

#itemContainer > div:nth-of-type(1) {
    height: 100%;
    overflow-y: auto;
    padding-top: 40px
}

#outerContainer.expanded #mainButtonGroup {
    height: fit-content;
    margin-bottom: 0.5rem
}

#outerContainer.full-height #mainButtonContainer {
    height: calc(var(--vh, 1vh) * 100) !important
}

.mw-fit-content {
    min-width: fit-content
}

.row-control {
    padding-top: 1px;
    padding-bottom: 1px
}

/*jlt button standard start*/

.btn-jlt-standard {
    border: 1px solid #1779ba;
    background-color: transparent;
    color: #1779ba;
    border-radius: 40px;
    padding-left: 1rem;
    padding-right: 3rem;
    transition: color 300ms ease-in-out, border 300ms ease-in-out;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.btn-jlt-standard::after {
    content: "\f061";
    font-family: "Font Awesome 6 Pro", serif;
    font-weight: 600;
    margin-left: 8px;
    position: absolute;
    right: 22px;
    animation-name: btnJltStandardBackward;
    animation-duration: 300ms;
    animation-fill-mode: forwards
}

.btn-jlt-standard:hover {
    border-color: #0c3d5d;
    color: #0c3d5d
}

.btn-jlt-standard:hover::after {
    animation-name: btnJltStandardForward
}

@keyframes btnJltStandardForward {
    0% {
        transform: translateX(0)
    }
    100% {
        transform: translateX(8px)
    }
}

@keyframes btnJltStandardBackward {
    0% {
        transform: translateX(8px)
    }
    100% {
        transform: translateX(0)
    }
}

/*jlt button standard end*/

.on-scroll-make-space{
    overscroll-behavior-y: none
}

.input-rows {
    border: 1px solid #cecece;
    padding: 5px;
    margin-bottom: 1rem !important
}

#inOutFormSubmit {
    font-size: 32px;
    font-weight: 600;
    width: 150px
}

.main-input-row > div {
    flex-basis: 25%
}

.serial-num-row > div:nth-of-type(1), .serial-num-row > div:nth-of-type(2) {
    flex-basis: calc(50% - 140px);
}

.serial-num-row .error {
    font-size: 12px
}

.serial-num-row .error i {
    cursor: pointer
}

.serial-num-row .loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 5px
}

.serial-num-row .loading::after {
    content: '';
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    width: 50px;
    height: 50px;
    border-radius: 50px;
    border: 5px solid #d8d8d8;
    border-top-color: #306bfa;
    animation: customLoadingAnimation 2s linear infinite
}

#camOpen.btn-warning > i::before {
    content: "\e0d9"
}

#camOpen.btn-warning > i::after {
    content: "\e0d9\e0d9"
}

@keyframes customLoadingAnimation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#loginRow {
    position: relative;
    overflow-y: auto
}

.loginFromBeginning #loginRow {
    height: calc(100% - 56px);
    background: rgba(255, 255, 255, 0.8);
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
    margin-right: 0;
    margin-left: 0
}

#progressDetails {
    position: absolute;
    top: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto
}

#progressDetails .progress-background {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: #fff;
    font-weight: 600;
    padding-bottom: 10px
}

#progressDetails p {
    padding-top: 10px;
    text-align: center;
    margin-bottom: 0;
    margin-top: 10px
}

#progressDetails ul {
    font-size: 0.9em;
    color: #ff7f7f
}

#progressDetails .progress-fixed-content {
    position: fixed;
    z-index: 1;
    width: calc(100% - 1.75rem);
    text-align: end
}

#progressDetails .progress-fixed-content > .btn-group {
    margin-top: 8px
}

#progressDetails .progress-fixed-content > .btn-group > button {
    font-size: 10px;
    padding-top: 3px;
    padding-bottom: 3px
}

#progressDetails .progress {
    border-radius: 0;
    height: 10px
}

#viewMoreHistoryContainer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0;
    z-index: 3;
    padding: calc(1rem - 2px);
    overflow-y: hidden;
    color: #fff;
    animation-name: viewMoreHistoryAnime;
    animation-duration: 300ms;
    animation-fill-mode: forwards
}

#viewMoreHistoryContainer h4{
    color: #e2e2e2
}

#viewMoreHistoryContainer h4 {
    margin-bottom: 28px !important
}

#historyTableSelectedRow{
    margin-bottom: 28px !important
}

@keyframes viewMoreHistoryAnime {
    100% {
        height: 50%
    }
}

#viewMoreHistoryContainer > div {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1rem
}

#viewMoreHistoryContainer > div > div {
    width: 100%;
}

#closeMoreHistoryBtn {
    position: absolute;
    right: 2rem;
    bottom: calc(50% - 4rem);
    z-index: 4
}

#myQrContainer {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 5;
    color: #fff;
    overflow-y: hidden
}

#myQrContainer > div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow-y: auto
}

#myQrContainer > div > div {
    max-width: calc(100% - 1rem)
}

#myQrContainer p {
    text-align: center;
    font-size: 1.3em;
    margin-top: 10px
}

#myQrContainer p > span:nth-of-type(1) {
    color: #d9d9d9;
    font-weight: 300
}

#myQrContainer img {
    width: 300px;
    max-width: 100%;
    margin-bottom: 18px
}

#closeMyQrBtn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 6;
    width: auto
}

#submissionErrorContainer ul {
    margin-bottom: 0
}

.auto-validate-by-css label::after {
    content: '*';
    font-size: 2em;
    position: absolute;
    top: 0.24em;
    margin-left: 0.1em;
    color: #ed3b3b
}

.auto-validate-by-css input:valid + label::after, .auto-validate-by-css input.valid + label::after, .auto-validate-by-css select:valid + label::after {
    color: unset
}

#pendingSubmit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px)
}

#pendingSubmit > div {
    width: 50px;
    height: 50px
}

/*datatable start*/

.data-table-custom label {
    width: 100%
}

.filter-label::before {
    content: "Search"
}

.length-label::before {
    content: "Show"
}

.data-table-custom label > input,
.data-table-custom label > select {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 0.2rem 0.3rem;
    font-size: 12px !important
}

/*datatable end*/

@media only screen and (min-width: 576px) {
    #outerContainer:not(.expanded):not(.loginFromBeginning) #mainButtonContainer {
        height: 270px
    }
}

@media only screen and (max-width: 641.98px) {
    #outerContainer.expanded #mainButtonGroup button {
        font-size: 20px
    }

    #outerContainer.expanded #itemContainer {
        height: calc(100% - 102px)
    }
}

@media only screen and (max-width: 617.98px) {
    #outerContainer.expanded #itemContainer {
        height: calc(100% - 102px)
    }
}

@media only screen and (max-width: 575.98px) {
    #outerContainer.expanded #itemContainer {
        height: calc(100% - 100px)
    }

    #outerContainer > div > div {
        height: 100%;
        padding-left: 0;
        padding-right: 0
    }

    #mainButtonContainer {
        width: 100%;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        height: calc(var(--vh, 1vh) * 100);
        max-height: calc(var(--vh, 1vh) * 100);
        border-radius: 0
    }

    #outerContainer.expanded #brand div {
        flex: 0 0 40px
    }

    #mainButtonGroup:not(#outerContainer.expanded #mainButtonGroup) {
        height: 90px
    }
}

@media only screen and (max-width: 464.98px) {
    #brand h1, #mainButtonGroup button {
        font-size: 24px
    }
}

@media only screen and (max-width: 441.98px) {
    #outerContainer.expanded #itemContainer {
        height: calc(100% - 143px)
    }
}

@media only screen and (max-width: 383.98px) {
    #brand h1, #mainButtonGroup button {
        font-size: 22px
    }
}

@media only screen and (max-width: 371.98px) {
    #brand div:not(.btn-group) {
        flex: 0 0 12vw
    }

    #brand h1 {
        font-size: 6vw
    }

    #mainButtonGroup button {
        font-size: 6vw
    }

    #mainButtonGroup {
        height: fit-content
    }
}

@media only screen and (max-width: 358.98px) {

}