/* Table Styling */
/* Scrollable Table Container */
.tooltip-content .table-container {
    min-width: 1000px;
    min-height: 500px;
    position: relative;
    overflow-x: auto;
    overflow-y: auto;   /*Enable vertical scrolling */
    border-radius: 8px;
    background-color: #ffffff;
    padding: 10px;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#journal-table {
    width: 100%; /* Increased width */
    margin: 20px auto;
    font-family: Arial, sans-serif;
    background: #fff;
    border: 1px solid #000;
    border-collapse: collapse;
    text-align: center;
}

/* Table Borders & Row Alternation */
#journal-table th {
	position: sticky;
    top: 0;
    z-index: 100;
	border: 1px solid #000;
    padding: 10px;
    text-align: left;
    background: #2c7a2c;
    color: white;
}

#journal-table tr td {
	border: 1px solid #000;
}

/* Dropdown Filters */
.filter-dropdown {
    width: 100%;
    padding: 5px;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: white;
}

/* Zebra Striping */
#journal-table tr:nth-child(even) {
    background: #f2f2f2;
}

/* View Details Button */
.view-details {
    background-color: #2c7a2c;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
}

.view-details:hover {
    background-color: #cccc;
}

.tooltip-content {
    position: absolute;
    max-width: 1200px;
    width: auto;
    max-height: 400px;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    overflow-x: auto; /* Enable horizontal scroll inside if needed */
    overflow-y: auto; /* Enable vertical scroll */
    transform-origin: top right; /* Expand from right and bottom */
}

/* Ensure Table Does Not Shrink */
.tooltip-content .modern-table {
	border: 1px solid #000;
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

/* Table Headers */
.tooltip-content .modern-table th {
	border: 1px solid #000;
    background-color: green;
    color: white;
    padding: 10px;
    text-align: left;
    font-size: 14px;
    position: sticky;
    top: 0;
}

/* Table Cells */
.tooltip-content .modern-table td {
	border: 1px solid #000;
    padding: 8px;
    font-size: 13px;
}

/* Close Button */
.tooltip-content .close-table {
    display: block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #d9534f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.tooltip-content .close-table:hover {
    background-color: #c9302c;
}