/* Force high visibility for links in the change list table */
#result_list tbody tr td a, 
#result_list tbody tr th a {
    color: var(--color-primary-600) !important; /* Force primary blue color */
    font-weight: 600 !important;             /* Make text bold */
    text-decoration: none;                   /* No underline by default */
}

#result_list tbody tr td a:hover, 
#result_list tbody tr th a:hover {
    text-decoration: underline !important;   /* Underline only on hover */
    color: var(--color-primary-700) !important; /* Slightly darker on hover */
}

/* Fix for datepicker interaction when sidebar is open */
/* The sidebar has a high z-index and backdrop blur. */
/* We set a very high z-index to ensure the datepicker sits on top of the sidebar overlay. */
.flatpickr-calendar,
.flatpickr-wrapper {
    z-index: 2147483647 !important; /* Max safe 32-bit integer */
    pointer-events: auto !important; /* Ensure it captures clicks */
}

/* Ensure Django's default calendar/clock widgets also stay on top if used */
.calendarbox, .clockbox {
    z-index: 2147483647 !important;
}
