:root {
    --primary-color: #004e7d;
    --heading-color: #444;
    --secondary-blue: #3cb4e5;

}

body {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        url("/assets/img/login-img/ROS_RI_BG_DotPattern_Login.png");
    background-size: 990px 619px;
    background-position: left -100px top 100px;
    background-color: #fafafad9;
    height: 100dvh !important;
    width: 100% !important;
    background-repeat: no-repeat;
    position: absolute !important;
    background-attachment: fixed !important;
    background-blend-mode: overlay;
    font: 400 14px / 1.42857143 Roboto, sans-serif;
    margin: 0px !important;
}

#preloader-mobile {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ababab;
    opacity: 0.7;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1003;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#preloader-mobile div {
    width: 60px;
    height: 60px;
    margin: -25px 0 0 -25px;
    border: 15px solid #ccc;
    border-radius: 80%;
    border-top: 15px solid #455a64;
    /*border-bottom: 16px solid #455a64;*/
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.h-screen {
    height: 90dvh;
}

.border {
    border: 1px solid;
}

.border-lightgray {
    border-color: lightgray;
}

.p-0 {
    padding: 0px !important;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-color: rgba(128, 128, 128, 0.5);
    /* semi-transparent gray */
    z-index: 5;
    display: none;
}

.p-5 {
    padding: 5%;
}

.m-0 {
    margin: 0px !important;
}

.m-5 {
    margin: 5%;
}

.bg-white {
    background-color: white;
}

.icon-size {
    height: 30px;
    width: 30px;
}

.home-card {
    height: 45vh;
    min-width: 80vw;
}

.justify-start {
    justify-content: start;
}

.items-start {
    align-items: start;
}

.heading {
    font-size: 34px;
}

.justify-between {
    justify-content: space-between;
}

.space-y-4>* {
    padding-top: 5px;
    padding-bottom: 5px;
}

.custom-href {
    font-size: 21px;
    text-decoration: none;
    color: black;
    font-weight: 400;
}

#scanner-body {
    margin: 0px !important;
    padding: 0px !important;
}

#scanner-section {
    height: 100dvh;
}

.count-section {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    z-index: 999;
    padding: 10px 15px;
    color: white;
    font-weight: 500;
    border-radius: 11px;
}

.scanner-left-float {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon {
    background-color: var(--primary-color);
    padding: 10px 10px 4px 10px;
    color: white;
    font-weight: 500;
    border-radius: 11px;
}

.back-btn {
    height: 25px;
    padding-right: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* display: flex; */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
    /* text-align: center; */
}

.close {
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}



.modal-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin: auto;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
}

.box {
    border-radius: 6px;
    padding: 4px;
}

.red-border {
    background: #ffdddd;
    border: 2px solid #ff4d4d;
}

.blue-border {
    background: #ddeeff;
    border: 2px solid #4d94ff;
}

.green-border {
    background: #ddffdd;
    border: 2px solid #4dff4d;
}

.orange-border {
    background: #ffeecc;
    border: 2px solid #ffaa33;
}

.title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.close-btn {
    background: red;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.close-btn:hover {
    background: darkred;
}

#show-scan-result {
    position: absolute;
    bottom: calc(env(safe-area-inset-bottom) + 30px);
    right: 25px;
    padding: 18px 19px 16px 19px;
    background-color: var(--primary-color);
    color: white;
    border: 0px;
    border-radius: 25px;
}

.btn-disabled {
    background-color: gray !important;
}

.result-order-info {
    padding: 10px;
}

.result-order-info .group-info {
    background-color: var(--primary-color);
    padding: 12px;
    margin: 0px;
    color: white;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);

}

.group-serial-info {
    padding: 0px 12px;
    background-color: whitesmoke;
}

.custom-checkbox {
    height: 15px;
    width: 15px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    width: 100px;
    height: 35px;
    border: 0px;
    border-radius: 6px;
}

.fixed {
    position: fixed;
}

.my-2 {
    margin: 2% 0px;
}

.m-3 {
    margin: 3%;
}

.my-5 {
    margin: 5% 0px;
}

.justify-end {
    justify-content: end;
}

.px-4 {
    padding: 0px 4%;
}

.float-right {
    float: right;
}

.text-right {
    text-align: end;
}

/* drawer menu */

.drawer {
    position: fixed;
    top: 0;
    z-index: 130;
    left: -220px;
    width: 220px;
    height: 100%;
    background-color: white;
    color: black;
    padding: 20px 0px;
    transition: left 0.3s ease-in-out;
}

.drawer.open {
    left: 0;
}

.toggle-btn {
    border: none;
    cursor: pointer;
    background-color: transparent;
}

.toggle-btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    display: block;
    background-color: transparent;
    color: var(--primary-color);
}

@media (min-width: 768px) {

    .drawer,
    .toggle-btn {
        display: none;
    }
}

.drawer-navigation-option {
    padding: 10px;
    margin: 0px;
    font-weight: 550;
}

.drawer-navigation-option.active {
    background-color: lightgray;
    color: var(--primary-color);
}

.py-5 {
    padding: 5% 0px;
}

.header {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    flex-grow: 1;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn {
    border: 0;
    color: var(--primary-color);
    background-color: transparent;
    font-weight: 600;
}

#result-section {
    height: 77vh;
    overflow-y: auto;
    padding-bottom: calc(env(safe-area-inset-bottom) + 50px)
}

.custom-select {
    width: 190px;
    padding: 6px;
    border: 1px solid lightgray;
}

.custom-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    padding-left: 10px;
    padding-right: 10px;

    border: 0;
    border-radius: 4px;
    /* width: 130px; */

    white-space: nowrap;
}

.toastify-div {
    position: fixed;
    bottom: 12%;
    display: none;
    justify-content: center;
    left: 0;
    right: 0;

}

#toast-msg {
    padding-left: 5px;
}

.toast-sec {
    background-color: var(--secondary-blue);
    color: white;
    min-width: 190px;
    text-align: center;
    padding: 12px;
}

.custom-input {
    width: 168px;
    height: 3.5vh;
    padding: 0px 10px;
    border: 1px solid gray;
}

.hide {
    display: none;
}

.show {
    display: block !important;
}

.order-line-card {
    padding: 20px;
    background-color: whitesmoke;
    margin: 10px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.order-line-card .grid-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.order-line-card .grid-section span {
    margin: 5px 0px;
}

.font-bold {
    font-weight: 550;
}

.text-primary {
    color: var(--primary-color);
}



.input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}

/* Prefix button styling */
.prefix-btn {
    background-color: #f4f4f4;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    border-right: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    transition: background-color 0.3s;
}

.prefix-btn:hover {
    background-color: #eaeaea;
}

/* Input box styling */
.input-box {
    width: 100%;
    padding: 10px;
    border: none;
    font-size: 16px;
    outline: none;
    border-radius: 0 5px 5px 0;
}

.input-box::placeholder {
    color: #888;
}

.input-box:focus {
    border: 1px solid #007bff;
}

.p-3 {
    padding: 3%;
}

.search-icon {
    height: 23px;
}

.text-center {
    text-align: center;
}

.custom-anchor-tag {
    text-decoration: none;
    color: black;
}

.button-anchor-tag {
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    padding: 9px 13px;
    border-radius: 5px;
    max-width: 120px;
}

.order-details-heading {
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 3px;
}

.mt-3 {
    margin-top: 3%;
}

.mb-3 {
    margin-bottom: 3%;
}

.item-list-card {
    justify-content: space-between;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    margin: 20px 0px;
    padding: 15px;
    background-color: white;
}

.w-100 {
    width: 100%;
}

.item-list-card div {
    margin: 5px 0px;
}

#item-list-section {
    max-height: 58vh;
    overflow-y: auto;
}

.pt-4 {
    padding-top: 4%;
}

.px-3 {
    padding: 0px 3%;
}

.text-muted {
    color: gray;
}

.status-bar {
    padding: 6px 17px;
    color: white;
}

.received-card {
    border: 1px solid lightgray;
    background-color: white;
    margin: 13px;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    padding: 15px 18px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    display: none;
}

.modal-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0px 12px;
}

.modal-box h2 {
    margin-top: 0;
}

.modal-close {
    margin-top: 1rem;
    padding: 8px 16px;
    color: black;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.modal-close:hover {
    background-color: #0056b3;
}

.modal-ok {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
}

.disable-btn {
    background-color: darkgray;
}

.px-5 {
    padding: 0px 40px;
}

.font-bold {
    font-weight: bold;
}

.text-white {
    color: white;
}

.px-2 {
    padding: 0px 2%;
}

.rounded-lg {
    border: 1px;
    border-radius: 7px;
}

.bottom-btn {
    position: fixed;
    bottom: 0;
    padding: 10px 0px;
    right: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
}

.w-50 {
    width: 50%;
}

.my-2 {
    margin: 10px 0px !important;
}

.active-tab {
    background-color: #4169E1 !important;
    color: white !important;
}

.hidden {
    display: none;
}

.show {
    display: block !important;
}

.trueup-tab {
    background-color: #D3D3D3;
    color: black;
}