/* Resetting default margin and padding for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body styling */
body {
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Centering the table */
table {
    margin: 20px auto;
    border-collapse: collapse;
    width: 95%;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Styling table headers */
th {
    background-color: #93c7ff;
    color: #000000;
    font-weight: bold;
    font-size: 16px;
    padding: 5px;
    text-align: center;
}

/* Styling table cells */
td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

/* Styling for IDs */
#key_status_box,
#key_status_warehouse,
#latest_name_box,
#latest_name_warehouse {
    font-weight: bold;
    color: #007bff;
}

/* Styling note */
.note {
    margin-top: 20px;
    border: 1px solid #ddd;
    width: 95%;
    margin: 20px auto;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Styling note list */
.note ul {
    list-style-type: none;
    padding: 0;
}

/* Styling note list items */
.note li {
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Styling the update button */
.note button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.note button:hover {
    background-color: #0056b3;
}

/* Styling log display */

.logTitle {
    font-size: 20px;
    font-weight: bold;
}

.boxLogParent,
.warehouseLogParent {
    width: 100%;
}

.log_display {
    display: flex;
    flex-direction: row;
    font-size: 14px;
    width: 95%;
    border: solid 1px #ddd;
    margin: 20px auto;
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Styling log entries */
.log-entry {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
}

.log-entry:last-child {
    border-bottom: none;
}

/* Styling log details */
.log-time,
.log-name,
.log-status,
.log-key,
.log-note {
    flex-basis: 20%;
    padding: 5px;
}

/* Styling log containers */
#boxLog,
#warehouseLog {
    overflow-y: scroll;
    max-height: 300px;
    width: 100%;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {

    table,
    td {
        font-size: 14px;
        padding: 8px;
    }

    .log_display {
        flex-direction: row;
    }

    .log-entry {
        flex-direction: column;
        align-items: flex-start;
    }

    .log-time,
    .log-name,
    .log-status,
    .log-key,
    .log-note {
        flex-basis: 100%;
        padding: 2px 0;
    }
}