/* ===== TABLES AND DATA DISPLAY ===== */
.table-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.table-container {
    overflow-x: auto;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    max-width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    white-space: nowrap;
}

.data-table th {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    background-color: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table tbody tr:hover {
    background-color: #f9f9f9;
}

.table-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* ===== MHL REPORT TABLES ===== */
.report-mhl-table, .report-opportunities-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.report-mhl-table th, .report-mhl-table td,
.report-opportunities-table th, .report-opportunities-table td {
    padding: 6px 8px;
    border: 1px solid #e3e6f0;
    text-align: left;
    vertical-align: middle;
}

.report-mhl-table.compact th, .report-mhl-table.compact td,
.report-opportunities-table.compact th, .report-opportunities-table.compact td {
    padding: 4px 6px;
}

.report-mhl-table th, .report-opportunities-table th {
    background-color: #f8f9fc;
    font-weight: bold;
}

.report-mhl-item-image, .report-opportunity-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.report-category-separator {
    background-color: #343a40;
    height: 8px;
    border: none;
}

.report-category-separator td {
    padding: 0 !important;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#pageInfo {
    font-weight: bold;
}

/* ===== VISIT HISTORY TABLES ===== */
.history-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.history-date {
    font-weight: bold;
}

.history-type {
    background-color: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.history-view-btn {
    padding: 3px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.history-view-btn:hover {
    background-color: #45a049;
}