li.court-style-li:not(:has(*)),
li.court-style-li:has(> ul.level-1:empty):not(:has(:not(ul.level-1))) {
    padding: 0 !important;
    border-bottom: none !important;
}