/* Basic styling for views and lists */
.view {
    float: left;
    width: 45%;
    padding: 20px;
    border: 1px solid #ccc;
    margin: 10px;
}


/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    text-align: center;
}

/* Other styling as needed */

.BuyList table {
    display: flex;
    border-collapse: collapse; /* Collapse borders to ensure outside borders */
    /*margin: 20px auto;*/
    margin: 0 auto;
}
.BuyList tr {
    border: 1px solid #ccc;
}

.BuyList img {
    height: 50px;
    text-align: center; /* Center horizontally */
    vertical-align: middle; /* Center vertically */
}

.BuyList th, td {
    padding: 5px;
}

.BuyList th.number-header {
    /*width: 1%; /* Set a fixed width for the header cell */
}
.BuyList th.total-header {
    /*width: 5%; /* Set a fixed width for the header cell */
}

.BuyList input[type="number"] {
    width: 10%; /* Make the input field take the full width of the cell */
    box-sizing: border-box;
}
.BuyList td:first-child, th:first-child {
    /*text-align: left; /* Left-align the content of the first cell in each row */
}
.BuyList td:not(:first-child) {
    /* width: 1%; /* Set a fixed width for the header cell */
    /*padding-left: 0px;  /* Add 10px of padding to the left */
    /*padding-right: 10px; /* Add 10px of padding to the right */
    margin-left: 10px;
    text-align: right;
    white-space: nowrap; /* Prevent text wrap */
}
.BuyList td:last-child {
    width: 1%; /* Set a fixed width for the header cell */
    white-space: nowrap; /* Prevent text wrap */
}

button {
    margin-right: 10px; /* Adjust the value according to your preference */
}

.center-button {
    text-align: center;
    padding-top: 10px;
}

/* Optional styles for the button */
#Update {
    /*padding: 10px 20px;
    font-size: 16px;*/
}

.buylist_image {
    max-width: 100px; /* Set the maximum width of the image */
    max-height: 100%; /* Set the maximum height of the image */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
}

.product-info a {
    display: block;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break words when necessary */
    text-align: left; /* Align text to the left */
}

/* Target the input[type="number"] inside .BuyList table and remove the arrows */
.BuyList input[type="number"]::-webkit-inner-spin-button,
.BuyList input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.BuyList input[type="number"] {
    -moz-appearance: textfield; /* Firefox support */

    /* Set minimum width to 2 characters and allow auto-expansion */
    width: 5ch; /* Minimum width of 2 characters */
}

/*.BuyList tbody tr:hover {
    box-shadow: var(--hover-shadow);
    border-radius: 5px;
    /*background-color: #f2f2f2; /* Background color when hovering */
    /*transition: background-color 0.3s ease; /* Smooth transition for the background color change */
/*}*/


.list-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    /*border-bottom: 1px solid #ccc; /* Optional: Add a border between list items */
    transition: background-color 0.3s ease; /* Smooth transition for the background color */
}

.list-item:hover {
    box-shadow: var(--hover-shadow);
    /*background-color: #f2f2f2; /* Background color on hover */
    border-radius: 5px;
}

.list-item span {
    margin-right: auto; /* Pushes the delete button to the right */
}

.filter-box:hover {
    box-shadow: var(--hover-shadow);
}