/* Base styles */
body {
    font-family: 'Arial', sans-serif;
    padding: 20px;
    background-color: #f9f9f9;
}

h2, h3 {
    color: #333;
}

table {
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #4CAF50;
    color: white;
}

td {
    background-color: #f2f2f2;
}

/* Increase the size of clickable elements for touch screens */
button, a {
    padding: 10px 20px;
    font-size: 16px; /* Larger font size for better readability */
    margin: 2px;
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
}

button:hover, a:hover {
    background-color: #0056b3;
}

/* Responsive design for tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    body {
        padding: 30px;
    }

    /* Adjust table font size and padding for better readability on tablets */
    th, td {
        font-size: 18px;
        padding: 12px;
    }
}

/* Improve form inputs for touch interaction */
input[type="submit"], input[type="text"], select {
    font-size: 16px;
    padding: 10px;
    margin: 5px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Layout adjustments for specific tablet orientations or further refinements can be added here */
.tables-container {
    display: flex;
    flex-wrap: wrap;
    margin: -15px; /* Adjust spacing around the tables if necessary */
}

#add-products-table, #current-bill-table {
    padding: 10px; /* Adjust spacing within each table container */
    width: 100%;
}

#add-products-table {
    flex: 6; /* 60% width */
    max-width: 60%;
}

#current-bill-table {
    flex: 4; /* 40% width */
    max-width: 40%;
}

.text-area {
    padding: 5px;
    width: calc(100vw - 30px);
    height: calc(100vh - 295px);
}

.keyboard {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 5px 0;
    background: #004134;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transition: bottom 0.4s;
}

.keyboard__keys {
    text-align: center;
}

.keyboard__key {
    height: 45px;
    width: 6%;
    max-width: 90px;
    margin: 3px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.05rem;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    vertical-align: top;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.keyboard__key:active {
    background: rgba(255, 255, 255, 0.12);
}

.keyboard__key--wide {
    width: 12%;
}

.keyboard__key--extra--wide {
    width: 36%;
    max-width: 500px;
}

.keyboard__key--activatable::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
}

.keyboard__key--active::after {
    background: #08ff00;
}

.keyboard__key--dark {
    background: rgba(0, 0, 0, 0.25);
}

.logged-in-info {
    position: absolute;
    right: 10px;
    top: 10px;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;  /* Ensures content inside it can also be flexed if needed */
}

.footer {
    background-color: #f8f9fa; /* Light gray background, similar to Bootstrap's bg-light */
    color: #6c757d; /* Muted text color, similar to Bootstrap's text-muted */
    text-align: right;
    padding: 20px 0; /* Padding above and below text */
    margin-top: auto; /* Pushes the footer to the bottom */
    position: fixed;
    bottom: 0;
    right: 10px;
}

@media (max-width: 768px) {
    .footer {
        padding: 10px 0;
    }

}

.btn-link {
    display: block; /* Makes the link fill the cell for easier clicking */
    padding: 10px; /* Adds some space around the text for aesthetics */
    color: blue; /* Style as needed */
}

.product-button-add {
    width: 80px;
    height: 50px;
    background: green;
}

.product-button-remove {
    width: 80px;
    height: 50px;
    background: red;
}

.table-full-page {
    width: 100%;
}

.table-total-cell {
    text-align: right;
}

.btn-add-items {
    height: 40px;
    width: 80px;
    background-color: green;
}

.btn-remove-items {
    height: 40px;
    width: 80px;
    background-color: darkred;
}

.padding-bottom {
    padding-bottom: 60px;
}

.container {
    width: 100%;
}

.accordion-toggle {
    background-color: #f1f1f1;
    color: #444;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: background-color 0.4s ease;
}

.accordion-toggle:hover {
    background-color: #ccc;
}

.accordion-content {
    padding: 0 18px;
    background-color: white;
    display: none;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.product-info, .product-actions, .inline-form {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

.inline-form button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.inline-form button.btn-remove-items {
    background-color: #f44336; /* Red */
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table-header, .product-table-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}

.product-table-header > div, .product-table-row > div {
    padding: 8px;
}

.product-price {
    text-align: left;
    flex: 1;
}

.product-name {
    text-align: left;
    flex: 3;
}

.product-actions {
    text-align: left;
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.product-action-form {
    display: inline-block;
}

.product-action-form button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.product-action-form button:hover {
    background-color: #45a049;
}



.product-action-form:last-child button:hover {
    background-color: #e31b0c;
}

.table-products {
    width: 100%;
}