@font-face {
    font-family: 'Inter';
    src: local('Inter'),
         url('../font/Inter.woff') format('woff');
}
*{
    box-sizing: border-box;
    margin: 0;
    font-family: 'Inter';
}
.grid{
    max-width: 1380px;
    margin: 50px auto;
    padding: 0 24px;
}

.table-container {
    display: grid;
    width: 100%;
    margin-top: 120px;
    border-bottom: 1px solid lightgray;
    padding-bottom: 50px;
    max-height: 800px;
    overflow-y: auto;
}
h2{
    margin-bottom: 40px;
}
.spacer {
    height: 10px; 
    border: 1px solid #ddd; 
}
tr{
    cursor: pointer;
}

/* Adjust spacing for the last row */
tr:last-child .spacer {
    border-bottom: none; /* Remove bottom border for the last spacer cell */
}
tbody input[type='checkbox']{
    width: 24px;
    height: 24px;
    margin: 0 auto;
    display: block;
}
table {
    width: 100%;
}
th, td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}
th, td:last-of-type{
    border-color: transparent;
}
img {
    max-width: 100px;
    height: auto;
}

.searchInput{
    padding: 5px;
}

tbody::before
{
  content: '';
  display: block;
  height: 15px;
}
button{
    width: 220px;
    padding: 5px 4px;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
}
button:hover{
    background-color: lightgray;
}
button.invoice{
    margin-left: auto;
    margin-right: 0;
    display: block;
    height: 40px;
    font-size: 18px;
    letter-spacing: 0.02rem;
}
.search-wrapper{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    padding: 24px;
}
#customerForm{
    margin: 150px 0;
}
#popup{
    display: none;
    position: fixed;
    top: 0;
    background: #fff;
    width: 100%;
    padding: 24px;
    height: 100%;
    overflow-y: scroll;
}
.closeIcon{
    margin-left: auto;
    margin-right: 0;
    width: 32px;
    height: 32px;
    margin-bottom: 20px;
}
.closeIcon img{
    width: 100%;
    height: auto;
}
.searchInput{
    background: url(../icons/search.png) no-repeat scroll 0 0;
    padding-left: 48px;
    background-size: 24px;
    background-position: 10px center;
    width: 300px;
    height: 40px;
    border-radius: 4px;
}
.search-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid lightgray;
}
fieldset{
    margin-bottom: 10px;
}
fieldset.spacing{
    padding: 20px 10px 10px 10px;
}
fieldset.spacing label{
    width: 100%;
    display: block;
    margin-bottom: 10px;
}
.wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#existingCustomers{
    padding: 6px 12px;
    margin-top: 10px;
}
.customer{
    display: flex;
    flex-wrap: wrap;
}
.customer label{
    width: 100%;
}
.spacing input{
    width: 220px;
    height: 30px;
}
.table-container button{
    margin-top: 40px;
}
#productTable3 input[type="text"]{
    width: 100%;
    height: 40px;
    padding: 5px;
}
#customerForm, #popup{
    margin-bottom: 10px;
}
#customerForm .flex, #popup .flex{
    display: flex;
    margin-bottom: 10px;
}
#customerForm p,
 #popup p{
    margin-bottom: 10px;
}
#customerForm .box, #popup .box{
    max-width: 300px;
    width: 100%;
}
#customerForm .box.big, #popup .box.big{
    max-width: 630px;
    width: 100%;
}
#popup button{
    margin-top: 24px;
}

#customerForm .box:nth-of-type(2), #popup .box:nth-of-type(2){
    margin-left: 30px;
}
#customerForm input, #popup input{
    width: 100%;
    padding: 5px;
    font-size: 16px;
}
#customerForm .wrapperBox, #popup .wrapperBox{
    padding: 10px;
    border: 1px solid #000;
}

.loginForm{
    padding: 24px;
}


#successMessage{
    margin-top: 24px;
}
#dropdownOptions{
    padding: 10px 5px;
    margin-bottom: 24px;
}
#searchCustomers{
    margin-top: 10px;
}
.button-wrapper{
    display: flex;
    justify-content: space-between;
}

button.remove {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 26px;
    line-height: 0;
    margin-right: 30px;
    background: transparent;
}
button.remove:hover{
    background-color: lightgray;
}
#saveChangesButton{
    margin-left: auto;
    margin-right: 0;
    display: block;
}
.wrapperBox{
    position: relative;
}

p#saveChangesButtonText {
    position: absolute;
    margin: 0;
    top: 20px;
    right: 20px;
    color: green;
}
#successMessage{
    color: green;
}
.invoice{
    display: flex;
    align-items: center;
    border: 1px solid #000;
    width: 220px;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: auto;
    margin-right: 0;
    cursor: pointer;
    margin-top: 24px;
}
.invoice:hover{
    background-color: lightgray;
}

.invoice img{
    width: 32px;
    margin-right: 10px;
}