<style>
	 
html, body {
    margin: 0;
    padding: 0;
    width: 100% !important;
    overflow-x: hidden !important;
}

@media (max-width: 600px) {

    #searchButton,
    #showAllButton,
    #orderListButton {
        padding: 10px 2px !important; 
        width: calc(25% - 5px) !important; 
        box-sizing: border-box !important; 
        margin: 5px 0 !important; 
    }

    .table-container {
        width: 100% !important;
        overflow-x: auto !important;
    }
	
    #itemsTable {
        width: 100% !important;
        max-width: 100% !important; 
    }


    .table-cell, .add-button, .info-button {
        padding: 5px !important;
        margin: 0 !important;
		font-size: 11px !important;
    }

	.modal-content {
    background-color: #fefefe;
    margin: 15% auto !important;
    padding: 20px !important;
    border: 1px solid #888 !important;
    width: 80% !important; 
    border-radius: 10px !important;
	 position: fixed !important;
     left: 5% !important;
	 height: 66% !important;
	
}

.modal-content2 {
    background-color: #fefefe;
    margin: 15% auto !important;
    padding: 20px !important;
    border: 1px solid #888 !important;
    width: 80% !important; 
    border-radius: 10px !important;
	 position: fixed !important;
     left: 5% !important;
	 height: 40% !important;
	
}
}
	 
	 .thead {
	 max-width: 100% !important
	 }
	 
	 #bestillingContainer {
	 max-width: 17% !important;
	 }
	 
        body, div, table, th, td {
         margin: 0;
		 max-width: 99% !important
        }

        .search-container {
            display: flex;
            justify-content: left;
            align-items: Center;
            margin-top: 20px; 
			max-width: 100px;
        }

         #closeOrderList {
            background-color: green;
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 14px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px; 
        }
		

        #exportToPDFButton {
            background-color: blue; 
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 14px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px; 
        }

        #exportToExcelButton {
            background-color: green;
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 14px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }

        #clearOrderListButton {
            background-color: red;
			color: white;
            border: none;
            padding: 10px 20px;
            font-size: 14px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px; 
        }

        #searchInput {
            padding: 10px;
            font-size: 16px;
            border: 1px solid #ccc;
            border-radius: 5px;
            width: 150px;
            margin-right: 5px;
			margin-left: 5px;
        }

        #orderListContainer li {
            font-size: 12px;
        }

        #searchButton {
            padding: 10px 15px;
            font-size: 16px;
			background: green;
            color: white;
            border: none;
            border-radius: 40px;
            cursor: pointer;
            margin-right: 100px;
			margin-bottom: 10px;
        }

		#showAllButton {
            padding: 10px 15px;
            font-size: 16px;
            background-color: orange;
            color: white;
            border: none;
            border-radius: 40px;
            cursor: pointer;
            margin-right: 5px;
			margin-bottom: 10px;
        }

        #orderListButton {
			position: relative;
            padding: 10px 15px;
            font-size: 16px;
            background-color: green;
            color: white;
            border: none;
            border-radius: 40px;
            cursor: pointer;
            margin-right: 5px;
            margin-bottom: 10px;
		}
		

        #missingProductBadge, #orderListBadge {
    position: absolute;
	top: -10px;
	right: -10px;
	background-color: red;
	color: white;
	border-radius: 50%;
	padding: 5px 10px;
	font-size: 12px;
}

        #searchButton:hover, #showAllButton:hover {
            background-color: #45a049;
        }

}

        table {
		width: 100%; 
}

		.button-cell {
    text-align: center;
    padding: 0;
    box-sizing: border-box;
}

.add-button {
    background: green;
	color: white;
	margin: 0;
    padding: 8px 12px;
    font-size: 24px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease-in;
    white-space: nowrap;
}

.add-button:hover {
    background-color: red;
}

.info-button:hover {
    background-color: #1976D2; 
}

.add-button:hover {
    background-color: red;
}

        #orderListModal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            display: none; 
            justify-content: center;
            align-items: center;
        }

        #orderListContainer {
            background-color: white;
            padding: 20px;
			position: fixed;
            border-radius: 5px;
            width: 80%;
            max-height: 80%;
            overflow-y: auto;
            word-wrap: break-word;
            margin-left: 0px;
        }

        #orderModal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
			width: 85%;
            transform: translate(-50%, -50%);
            background-color: blue;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 10px;
            color: white;
        }

        #orderModal h3 {
            text-align: center;
            margin: 0;
            font-size: 24px; 
        }
		
        #modalItemName {
            font-size: 16px;
            font-weight: bold;
            display: block;
        }

        #quantityInput {
            margin-top: 10px;
            padding: 10px;
            font-size: 14px;
            border: 1px solid #ddd;
            border-radius: 5px;
            width: calc(100% - 22px);
            box-sizing: border-box;
        }

        button {
            display: inline-block;
        }

        #addItemButton {
			padding: 10px 15px;
            font-size: 16px;
            background-color: green;
            color: white;
            border: none;
            border-radius: 40px;
            cursor: pointer;
			margin-top: 5px;
            margin-right: 5px;
			margin-bottom: 10px;
        }

        #closeModalButton {
            padding: 10px 15px;
            font-size: 16px;
            background-color: red;
            color: white;
            border: none;
            border-radius: 40px;
            cursor: pointer;
			margin-top: 5px;
            margin-right: 5px;
			margin-bottom: 10px;
        }

        #notificationModal {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #ff4d4d !important;
            color: white;
            padding: 50px 50px;
            border-radius: 10px;
            box-shadow: 0px 0px 20px rgba(0,0,0,0.5);
            font-size: 18px;
            z-index: 1000;
        }

        th.table-cell {
		border: 2px solid #ddd;
    padding: 10px;
	text-align: center;
	background: white;
}

td.table-cell {
    padding: 10px;
}


.info-button {
	margin-left: 50px;
    padding: 8px;
    font-size: 20px;
    background-color: #2196F3; 
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    width: 45px; 
    height: 30px;
}

.info-button:hover {
    background-color: #1976D2; 
}

        .table-cell {
            text-align: Left;
            vertical-align: middle;
            background-color: #33FF99;
            font-family: Calibri, sans-serif;
            color: #000000;
            font-size: 20px;
            font-weight: bold;
            overflow: hidden;
            text-overflow: ellipsis;
			width: 10px;
        }

        .item-name {
            width: 300px;
            font-size: 16px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .hidden {
            display: none;
        }

        #itemsTable {
            width: 100%;
            border-collapse: collapse;
        }

        #itemsTable td {
            border: 2px solid #ddd;
        }

		#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 32px;
    border: none;
    outline: none;
    background-color: red;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 70%;
    transition: background-color 0.3s ease;
}

#backToTopBtn:hover {
    background-color: #333;
}

#missingProductButton {
            position: relative;
			background-color: red;
			color: white;
			padding: 10px;
			border-radius: 5px;
			border: none;
			cursor: pointer;
        }

#addMissingProduct {
            padding: 10px 15px;
            font-size: 16px;
            background-color: green;
            color: white;
            border: none;
            border-radius: 40px;
            cursor: pointer;
            margin-right: 5px;
			margin-bottom: 10px;
        }
		
		#confirmClearMissingProducts {
            padding: 10px 15px;
            font-size: 16px;
            background-color: red;
            color: white;
            border: none;
            border-radius: 40px;
            cursor: pointer;
            margin-right: 5px;
			margin-bottom: 10px;
        }
		
		#clearMissingProductsButton {
		position: relative;
			background-color: red;
			color: white;
			padding: 10px;
			border-radius: 5px;
			border: none;
			cursor: pointer;
        }


#sendEmailButton {
            background-color: green;
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 14px;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 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); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%; 
    border-radius: 10px;
}

.modal-content2 {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

 #scanner-container {
            display: none; 
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.8); 
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        #scanner-preview {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
		
        .red-dot {
            position: absolute;
            width: 8px;
            height: 8px;
            background-color: red;
            border-radius: 50%;
            z-index: 1001;
        }


        #dot-top-left {
            top: 42%; 
            left: 25%; 
        }
        #dot-top-right {
            top: 42%;
            right: 25%;
        }
        #dot-bottom-left {
            bottom: 42%;
            left: 25%;
        }
        #dot-bottom-right {
            bottom: 42%;
            right: 25%;
        }

         #close-scanner, #toggle-flashlight {
            position: absolute;
            top: 20px;
            font-size: 20px;
            color: white;
            background: red;
            border: none;
            padding: 10px;
            border-radius: 5px;
            cursor: pointer;
            z-index: 1001;
        }
		 #close-scanner { right: 20px; }
        #toggle-flashlight { left: 20px; background: blue; }
		
		#guide-box {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 65%;
            height: 16%;
            transform: translate(-50%, -50%);
            border: 3px dashed #00ff00;
            box-sizing: border-box;
            pointer-events: none;
            z-index: 1002;
        }
		
		#start-scanner {
            padding: 10px 15px;
            font-size: 16px;
			background: green;
            color: white;
            border: none;
            border-radius: 40px;
            cursor: pointer;
            margin-right: 100px;
			margin-bottom: 10px;
        }

    </style>