/*
  Custom CSS for Django Unfold.
  This script adds additional styling to the Django Unfold admin interface.
*/

/* Custom list view row hover effects */
#result_list tbody tr {
    transition: background-color 0.3s ease;
}

#result_list tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.07);
    box-shadow: none !important;
}

#result_list tbody:hover {
    box-shadow: none !important;
}

/* Fix the select2 min field width (gets too narrow when empty) */
.select2-selection__rendered {
    min-width: 200px;
}

/* Hide the "view related" link in inline forms. */
.inline-group .related-widget-wrapper-link.view-related {
    display: none !important;
}

/* Override the unfold icon styles */
.material-symbols-outlined.icon {
    font-size: 20px;
    vertical-align: middle;
    transition: color 0.2s ease-in-out;
}

.material-symbols-outlined.icon:hover {
    color: rgb(157, 212, 13);
}