/* Basic styling for the production table */
#production-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#production-table th,
#production-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#production-table th {
    background-color: #f2f2f2;
}

/* Styling for the details modal (reusing existing modal classes) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* 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 */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 800px;
    position: relative;
}

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

/* Styling for content within the modal */
.modal-content h3, .modal-content h4, .modal-content h5, .modal-content h6 {
    margin-top: 15px;
    margin-bottom: 5px;
}

.modal-content p {
    margin-bottom: 5px;
}

.modal-content ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

.modal-content li {
    margin-bottom: 3px;
}

/* Added styling for dynamic content */
.dynamic-content {
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.dynamic-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.dynamic-content th,
.dynamic-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.dynamic-content th {
    background-color: #f2f2f2;
}

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

#lot-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

#lot-details-table th,
#lot-details-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#lot-details-table th {
    background-color: #f2f2f2;
}

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