.submit-row a.deletelink, .submit-row a.deletelink:visited, .submit-row a.deletelink:hover {
    height: 32px !important;
}
img[src$="admin/img/icon-yes.gif"], img[src$="admin/img/icon-yes.svg"], img[src$="admin/img/icon-no.gif"], img[src$="admin/img/icon-no.svg"], img[src$="admin/img/icon-unknown.gif"], img[src$="admin/img/icon-unknown.svg"] {
    display: inline !important;
}

/* Fix broken styles for Select2 multiple selections in admin */
.select2-container .select2-selection--multiple,
.select2-container--default .select2-selection--multiple,
.select2-container--admin-autocomplete .select2-selection--multiple {
    min-height: 32px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.select2-container--admin-autocomplete .select2-selection--multiple .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
}

.select2-container .select2-selection--multiple .select2-search--inline .select2-search__field {
    height: 24px !important;
    line-height: 24px !important;
}

/* Ensure native <select multiple> displays as a list, not a 1-line control */
select[multiple] {
    height: auto !important;
    min-height: 120px;
}

/* Django 5.x добавил в админку a11y-заголовки <thead class="visually-hidden"> (главная — app_list).
   jet-reboot не содержит это правило → заголовки видны. Скрываем визуально (как на проде / Django 4.2),
   сохраняя доступность для скринридеров. */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
