html,body{
    height: 100%;
    overflow-x: hidden;
}

body>footer {
    position: sticky;
    top: 100vh;
}

footer {
    display: block;
    text-align: center;
    background: rgb(255, 151, 40);
    line-height: 80px;
    color: #fff;
    word-break: break-word;
    width: 100%;
    margin-bottom: 0;
  }


  p.footer {
    line-height: 20px;
    width: 100%;
    height: 50px;
    word-break: break-word;
    margin-top: 40px;
    padding: 10px;
}

/*Back Btn*/
.back_btn {
    position: relative;
    bottom: -50px;
}

/*Navbar*/
nav.navbar.navbar-expand-lg {
    height: 80px; 
    background: rgb(208, 255, 252);
}

/*Louout Btn*/
span.badge.bg-secondary.logout {
    position: absolute; 
    right: 120px; 
    top: 25px;
}

/*Change Password Btn*/
span.badge.bg-danger.change_password {
    position: absolute; 
    right: 200px; 
    top: 25px;
}

.form-container, .data-container {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    border: none;
    cursor: pointer;
}


.data-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 20px;
}
.data-section {
    flex: 1 1 0;
    min-width: 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}
.data-section h2 {
    margin-top: 0;
}
.data-section .btn {
    margin-top: auto;
}


#itemsContainer .row {
    margin-top: 10px;
    align-items: center;
}

.btn-remove {
    margin-left: 10px;
}

.item-number {
    font-weight: bold;
    padding-right: 10px;
}

.container{
    max-width: 1320px;
    padding: 40px;
}

h1{
    margin: 0 0 35px 0;
    font-size: 2.5rem;
    text-align: center;
    letter-spacing: 5px;
}

h2 {
    margin: 20px 0;
    font-size: 2rem;
    letter-spacing: 1px;
}

h3 {
    margin: 20px 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

label {
    margin: 10px 0;
    font-size: 19px;
    letter-spacing: 3px;
    color: rgb(0, 137, 242);
}


@media (max-width: 768px) {
    .data-container {
        flex-direction: column;
    }
    .data-section {
        width: 100%;
    }
}

/* New styles for product dropdown */
.product-select {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-select option {
    padding: 5px 10px;
}

.product-select option:hover,
.product-select option:focus,
.product-select option:active,
.product-select option:checked {
    background-color: #007bff;
    color: white;
}


/*XX-Large devices (larger desktops, 1400px and up)*/
@media (min-width: 1400px) {
    /*Navbar*/
    nav.navbar.navbar-expand-lg {
        height: 80px; 
        background: rgb(219, 248, 255);
    }

    /*Louout Btn*/
    span.badge.bg-secondary.logout {
        position: absolute; 
        right: 120px; 
        top: 25px;
    }

    /*Change Password Btn*/
    span.badge.bg-danger.change_password {
        position: absolute; 
        right: 200px; 
        top: 25px;
    }

    /*Back Btn*/
    .back_btn {
        position: relative;
        bottom: -50px;
    }
}

/*X-Large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px)  and (max-width: 1399.98px) {
    /*Navbar*/
    nav.navbar.navbar-expand-lg {
        height: 80px; 
        background: rgb(219, 248, 255);
    }

    /*Louout Btn*/
    span.badge.bg-secondary.logout {
        position: absolute; 
        right: 60px; 
        top: 25px;
    }

    /*Change Password Btn*/
    span.badge.bg-danger.change_password {
        position: absolute; 
        right: 160px; 
        top: 25px;
    }

    /*Back Btn*/
    .back_btn {
        position: relative;
        bottom: -50px;
    }
}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) and (max-width: 1199.98px) {
    /*Navbar*/
    nav.navbar.navbar-expand-lg {
        height: 80px; 
        background: rgb(219, 248, 255);
    }

    /*Louout Btn*/
    span.badge.bg-secondary.logout {
        position: absolute; 
        right: 50px; 
        top: 25px;
    }

    /*Change Password Btn*/
    span.badge.bg-danger.change_password {
        position: absolute; 
        right: 140px; 
        top: 25px;
    }
    /*Back Btn*/
    .back_btn {
        position: relative;
        bottom: -50px;
    }
}

/* Medium devices*/
@media (min-width: 768px) and  (max-width: 991.98px) {
    /*Navbar*/
    nav.navbar.navbar-expand-lg {
        height: 80px; 
        background: rgb(219, 248, 255);
    }

    /*Louout Btn*/
    span.badge.bg-secondary.logout {
        position: absolute; 
        right: 120px; 
        top: 25px;
    }

    /*Change Password Btn*/
    span.badge.bg-danger.change_password {
        position: absolute; 
        right: 200px; 
        top: 25px;
    }
    /*Back Btn*/
    .back_btn {
        position: relative;
        bottom: -50px;
    }
}

/*Small devices */
@media (min-width: 576px) and (max-width: 767.98px) {
    /*Navbar*/
    nav.navbar.navbar-expand-lg {
        height: 80px; 
        background: rgb(219, 248, 255);
    }

    /*Louout Btn*/
    span.badge.bg-secondary.logout {
        position: absolute; 
        right: 120px; 
        top: 25px;
    }

    /*Change Password Btn*/
    span.badge.bg-danger.change_password {
        position: absolute; 
        right: 200px; 
        top: 25px;
    }
    /*Back Btn*/
    .back_btn {
        position: relative;
        bottom: 0px;
    }
}

/*X-Small devices */
@media (min-width: 375px) and (max-width: 575.98px) {
    /*Navbar*/
    nav.navbar.navbar-expand-lg {
        height: 80px; 
        background: rgb(219, 248, 255);
    }
    /*Back Btn*/
    .back_btn {
        position: relative;
        bottom: 0px;
    }
    h2 {
        margin: 20px 0;
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
}

/*XX-Small devices */
@media (min-width: 320px) {
    /*Navbar*/
    nav.navbar.navbar-expand-lg {
        height: 80px; 
        background: rgb(219, 248, 255);
    }

    h2 {
        margin: 20px 0;
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
}