/* Styling for the match review table */

.match-review-table thead {
    background-color: var(--bg-tertiary);
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.match-review-table {
    margin-bottom: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.match-review-table tbody tr:hover {
    background-color: var(--brand-purple-light);
}

/* Highlight row when hovering on checkbox */
.match-review-table tbody tr:has(input[type="checkbox"]:hover) {
    background-color: var(--brand-purple-light) !important;
}

/* Style for the row dividers */
.match-review-table tbody tr:last-child {
    border-bottom: none;
}

/* Style for the description columns to better handle long text */
.match-review-table td:nth-child(4),
.match-review-table td:nth-child(10) {
    word-break: break-word;
    max-width: 200px;
}

/* Style for the amount columns */
.match-review-table td:nth-child(6),
.match-review-table td:nth-child(12) {
    font-weight: bold;
    text-align: right;
}

/* Style for the category columns */
.match-review-table td:nth-child(5),
.match-review-table td:nth-child(11) {
    text-align: center;
}

/* Add some spacing to the stats section */
#match-review-stats {
    margin-top: 15px;
    padding: 10px;
    background-color: var(--bg-tertiary);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#match-review-stats p {
    margin-bottom: 5px;
    color: var(--text-primary);
}

/* Make sure the table headers are visible when scrolling */
#match-review-table-container {
    overflow-y: auto;
    max-height: 400px;
    border: 1px solid var(--border-secondary);
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

/* Style the arrow in the middle */
.fa-arrow-right {
    color: var(--brand-purple-active);
    transition: color 0.3s ease;
}

/* Style the type header row */
.match-review-table tr:first-child td {
    border-top: 1px solid var(--border-secondary);
}

/* Style for partially categorized rows */
.match-review-table tbody tr[data-partially-categorized="true"]:hover {
    background-color: var(--brand-yellow, #FFF2D9) !important;
}

/* Style for checkbox cells */
.match-review-table td:first-child {
    text-align: center;
    vertical-align: middle;
}
