@media screen {
  .no-print { 
    display: block; 
  }
}

@media print {
  body {
    width: 85mm;
    font-family: Impact, fantasy; 
    font-weight: bold;
    font-size: 14pt; 
    margin: 0;
    padding: 0;
  }

  body, container * {
    visibility: hidden;
  }

  #printSection, #printSection * {
    visibility: visible;
  }

  #printSection {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.1); 
  }

  .total-amount, h2 {
    text-align: center;
  }

  ul {
    padding: 0;
    list-style-type: none;
  }

  li {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
  }

  button {
    display: none;
  }
}

body {
    font-family: Arial, sans-serif;
    color: #000000;
    background-color: #ffffff; 
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    background-color: #f5f5f5; 
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
    border: 1px solid #ddd;
    box-sizing: border-box;
}

h2, h3 {
    color: #e50402; 
}

form {
    display: flex;
    flex-direction: column;
}

.notes-options span.note-option {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0 10px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
    color: black;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.notes-options span.note-option:hover {
    background-color: #e50402;
    color: white;
}

.notes-options span.note-option.active {
    background-color: #e50402;
    color: white;
}

.customer-notes textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.modal-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 300px;
    z-index: 1001;
    text-align: center;
}

.modal button {
    margin-top: 10px;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="submit"] {
    width: 100%;
    padding: 20px;
    margin: 5px 0; 
    border-radius: 5px; 
    border: 1px solid #ddd;
    box-sizing: border-box;
}

input[type="time"] {
    width: auto;
    padding: 20px;
    margin: 5px 0; 
    border-radius: 5px; 
    border: 1px solid #ddd;
    box-sizing: border-box;
}

select {
    width: 100%;
    padding: 10px;
    margin: 5px 0; 
    border-radius: 5px; 
    border: 1px solid #ddd;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #e50402; 
    color: white; 
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #cc0301; 
}

input[type='checkbox'] {
    -webkit-appearance: none; 
    -moz-appearance: none;   
    appearance: none;        
    background-color: #fff;  
    border: 2px solid #000;  
    padding: 10px;            
    display: inline-block;    
    position: relative;     
    top: 5px;                
    margin-right: 5px;      
    cursor: pointer;       
}

input[type='checkbox']:checked::before {
    content: '✓';           
    position: absolute;      
    left: 4px;               
    top: -2px;              
    color: #e50402;         
    font-size: 16px;    
}

.product-item {
    border: 1px solid #ddd; 
    padding: 10px;
    margin-bottom: 10px; 
    border-radius: 5px; 
    display: flex; 
    align-items: center;
    font-weight: bold;	
    justify-content: space-between;
}

.product-item input[type='checkbox'] {
    margin-right: 10px;
}

.product-item span {
    flex-grow: 1;
}

.quantity-control {
    display: inline-block;
    margin-left: 10px;
    align-items: center;
}

.quantity-control button {
    padding: 0 10px;
    height: 30px;
	width: 30px;
    line-height: 30px;
    vertical-align: middle;
}

.product-item {
    margin-bottom: 10px;
}

header, footer {
    background-color: #000000;
    color: #ffffff;
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
	font-weight: bold;
}

footer {
    font-size: 0.8em;
}

.buttons {
    display: flex; 
    justify-content: space-around; 
}

button {
    padding: 20px;
    font-size: 16px;
    width: 50%; 
    cursor: pointer;
    background-color: #e50402;
    color: white;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
}

button:hover {
    background-color: #cc0301;
}

.edit-symbol {
    cursor: pointer;
    font-weight: bold;
    padding: 20px;
    display: inline-block;
    transform: translateX(20px);
    margin-left: 5px;
    font-size: 20px; 
    border-radius: 50%; 
    touch-action: manipulation;
}

.earnings_button {
    float: right;	
    padding: 20px;
    cursor: pointer;
    background-color: #e50402;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
	font-weight: bold;
}

.earnings_button:hover {
    background-color: #cc0301;
}

.earnings_button a {
    text-decoration: none; 
    color: white;
	font-weight: bold;	
}


.product p {
    margin: 0;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

.category {
    display: flex;
    flex-direction: column;	
    flex-wrap: wrap;
    justify-content: space-between;
}

.category > div {
    flex-basis: 48%;
    background-color: #f0f0f0; 
    margin-bottom: 10px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    padding: 15px;
    border-radius: 8px; 
}

.category h3 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    padding: 20px;
    border-radius: 8px;	
}

.arrow {
    display: inline-block;
}

.containerr {
    max-width: 100%;
    width: auto;
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.nav-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    list-style: none;
    padding: 0;
    background-color: #000;
    margin-bottom: 20px;
    /* overflow-x: auto; */
    border: 1px solid #ddd;	
    border-radius: 8px;
    height: 50px;	
}

.nav-categories li {
    margin: 10px 10px 10px 0;
    white-space: nowrap;
}

.nav-categories a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 15px;
    min-width: 120px;
    text-align: center;
    text-transform: uppercase;	
}

.category-content {
    display: none;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.category-content.active {
    display: block;
}

.nav-categories a.active {
    background-color: #e50402;
    color: white;
    border: 1px solid #ddd;
}

.item-name {
    text-align: left;
    float: left;
}

.item-price {
    text-align: right;
    float: right;
    font-weight: bold;	
}

.change-from {
    width: 100%;
    max-width: 1200px;
    background-color: #f5f5f5; 
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
    border: 1px solid #ddd;
    box-sizing: border-box;
	font-weight: bold;
}

.order-type-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    padding: 20px;	
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
    border: 1px solid #ddd;
    box-sizing: border-box;	
}
.order-type-button {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0 10px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
    color: black;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.order-type-button:checked, .order-type-button.active, .order-type-button:hover {
    background-color: #e50402;
    color: white;
}

label.order-type-button {
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

#selected-products ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    padding: 0;
}

#selected-products li {
    flex: 1 1 50%;
    box-sizing: border-box;
    padding: 5px;
    border-bottom: 1px solid #ccc;
}

@media (min-width: 1200px) {
    .container {
        padding: 40px; 
    }

    .product-item, .total-amount, form input, button {
        font-size: larger; 
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 10px;
    }

    input[type="text"],
    input[type="number"],
    input[type="submit"] {
        width: 100%;
        margin: 5px 0;
    }
	
	select {
		width: 100%;
	}
	
    .nav-categories {
        height: auto;	
    }	
}
