.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.global-filters {
    justify-content: center;
}

.local-filters {
    justify-content: flex-start;
}

.table-container {
    display: flex;
    justify-content: center; /* Center the wrappers */
    gap: 20px; /* Add space between the table wrappers */
    align-items: flex-start; /* Align wrappers to the top */
}

.table-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px; /* Rounded corners */
    padding: 15px;
    background-color: #f9f9f9;
    flex: 1; /* Allow wrappers to grow */
    min-width: 45%; /* Ensure they don't get too small */
}



/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

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

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

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

/* Lot Details Modal Specific Styles */
#lot-details-modal .modal-content {
    max-width: 700px; /* Wider for the table */
}

.modal-button-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

/* Override main-content alignment for this page */
.main-content {
    align-items: flex-start; /* Align items to the left */
    position: relative; /* Added for absolute positioning of inventory-date */
}

.mismatch {
    background-color: #ffcccc; /* light red */
}

#reste-container {
    display: flex;
    align-items: center;
    font-weight: bold;
}

#reste-value {
    margin-left: 5px;
}

.back-btn {
    margin-bottom: 10px;
}

.inventory-table tbody tr.selected {
    background-color: #cce5ff; /* A light blue color */
}