/* frontend/mvt_entree.css */

/* General Modal Styles (if not already in styles.css) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.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;
}

/* Filter bar within the modal */
.modal-content .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.modal-content .filters label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    color: #333;
}

.modal-content .filters input[type="date"],
.modal-content .filters input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    margin-top: 5px;
}

.modal-content .filters .btn {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: auto; /* Align button to the bottom of the filter group */
}

/* Table container for split view */
.table-container {
    display: flex;
    gap: 20px; /* Space between the two tables */
    margin-top: 20px;
}

.table-wrapper {
    flex: 1; /* Each table wrapper takes equal width */
    overflow-x: auto; /* Enable horizontal scrolling for tables if content overflows */
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: #fff;
}

.table-wrapper h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Highlight for selected rows */
.inventory-table tbody tr.selected {
    background-color: #e0e0e0; /* Light grey background */
    font-weight: bold;
}

/* Ensure buttons in tables are styled correctly */
.inventory-table .btn {
    padding: 5px 10px;
    font-size: 0.85em;
    border-radius: 3px;
    cursor: pointer;
}