#searchBoxWrap {
    position: relative;
    display: none !important;
}
#searchForm:has(#field option[value="all_fields"]:checked) #searchBoxWrap,
#searchForm:has(#field option[value="toxin_name"]:checked) #searchBoxWrap,
#searchForm:has(#field option[value="toxin_description"]:checked) #searchBoxWrap,
#searchForm:has(#field option[value="toxin_synonym"]:checked) #searchBoxWrap,
#searchForm:has(#field option[value="accession_number"]:checked) #searchBoxWrap,
#searchForm:has(#field option[value="historic_taxonomy"]:checked) #searchBoxWrap,
#searchForm:has(#field option[value="journal_article_title"]:checked) #searchBoxWrap,
#searchForm:has(#field option[value="citation"]:checked) #searchBoxWrap,
#searchForm:has(#field option[value="author_list"]:checked) #searchBoxWrap,
#searchForm:has(#field option[value="deposition_authors"]:checked) #searchBoxWrap,
#searchForm:has(#field option[value="patent_id"]:checked) #searchBoxWrap,
#searchForm:has(#field option[value="molecular_target"]:checked) #searchBoxWrap {
    display: block !important;
}
#searchForm:has(#field option[value="all_fields"]:checked) #addFilterButton {
    display: none !important;
}
.filter-row:has(.extra-dropdown option[value="all_fields"]:checked) .extra-searchWrap,
.filter-row:has(.extra-dropdown option[value="toxin_name"]:checked) .extra-searchWrap,
.filter-row:has(.extra-dropdown option[value="toxin_description"]:checked) .extra-searchWrap,
.filter-row:has(.extra-dropdown option[value="toxin_synonym"]:checked) .extra-searchWrap,
.filter-row:has(.extra-dropdown option[value="accession_number"]:checked) .extra-searchWrap,
.filter-row:has(.extra-dropdown option[value="historic_taxonomy"]:checked) .extra-searchWrap,
.filter-row:has(.extra-dropdown option[value="journal_article_title"]:checked) .extra-searchWrap,
.filter-row:has(.extra-dropdown option[value="citation"]:checked) .extra-searchWrap,
.filter-row:has(.extra-dropdown option[value="author_list"]:checked) .extra-searchWrap,
.filter-row:has(.extra-dropdown option[value="deposition_authors"]:checked) .extra-searchWrap,
.filter-row:has(.extra-dropdown option[value="patent_id"]:checked) .extra-searchWrap,
.filter-row:has(.extra-dropdown option[value="molecular_target"]:checked) .extra-searchWrap {
    display: block !important;
}
#suggestionsList {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    max-width: 100%;
    margin-top: 0.25rem;
    z-index: 30;
    max-height: 16rem;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
}
#suggestionsList li {
    overflow-wrap: anywhere;
    word-break: break-word;
}
#suggestionsList .suggest-group {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e40af;
    background: #f8fafc;
    cursor: default;
    list-style: none;
}
#searchBoxWrap.is-collapsed,
.extra-searchWrap.is-collapsed {
    display: none !important;
}
#searchBoxWrap.is-collapsed #searchBox,
#searchBoxWrap.is-collapsed #suggestionsList {
    display: none !important;
}
.extra-searchWrap {
    position: relative;
    display: none !important;
    width: 100%;
    min-width: 0;
    flex: 1 1 12rem;
}
.search-query-controls > select[name="query[]"] {
    flex: 1 1 16rem;
    min-width: 12rem;
    width: auto;
    max-width: 20rem;
}
#searchForm:has(#field option[value="all_fields"]:checked) #searchBoxWrap #searchBox,
#searchForm:has(#field option[value="toxin_name"]:checked) #searchBoxWrap #searchBox,
#searchForm:has(#field option[value="toxin_description"]:checked) #searchBoxWrap #searchBox,
#searchForm:has(#field option[value="toxin_synonym"]:checked) #searchBoxWrap #searchBox,
#searchForm:has(#field option[value="accession_number"]:checked) #searchBoxWrap #searchBox,
#searchForm:has(#field option[value="historic_taxonomy"]:checked) #searchBoxWrap #searchBox,
#searchForm:has(#field option[value="journal_article_title"]:checked) #searchBoxWrap #searchBox,
#searchForm:has(#field option[value="citation"]:checked) #searchBoxWrap #searchBox,
#searchForm:has(#field option[value="author_list"]:checked) #searchBoxWrap #searchBox,
#searchForm:has(#field option[value="deposition_authors"]:checked) #searchBoxWrap #searchBox,
#searchForm:has(#field option[value="patent_id"]:checked) #searchBoxWrap #searchBox,
#searchForm:has(#field option[value="molecular_target"]:checked) #searchBoxWrap #searchBox {
    display: block !important;
    width: 100%;
    min-height: 2.5rem;
    background-color: #fff;
    color: #111827;
}
@media (min-width: 640px) {
    #searchBoxWrap {
        flex: 1 1 12rem;
        min-width: 12rem;
    }
}
#field,
#filterContainer select,
#filterContainer input,
.filter-row select,
.filter-row input {
    max-width: 100%;
    box-sizing: border-box;
}
.value-options,
.extra-valueOptions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    min-width: 0;
}
.value-options select,
.extra-valueOptions select {
    width: 4.75rem;
    flex: 0 0 auto;
    box-sizing: border-box;
}
.value-options input,
.extra-valueOptions input {
    width: 6.75rem;
    flex: 0 0 auto;
    box-sizing: border-box;
}
.value-options input[type="date"],
.extra-valueOptions input[type="date"] {
    width: 10.5rem;
}
.value-options-and {
    color: #4b5563;
    font-size: 0.875rem;
    flex: 0 0 auto;
}
.value-options--decimal input,
.extra-valueOptions.value-options--decimal input {
    width: 8rem;
}
#concentrationsDropdown,
.extra-concentrationsDropdown,
.concentration-unit {
    width: auto !important;
    min-width: 4.75rem;
    max-width: 7.5rem;
    flex: 0 0 auto;
    box-sizing: border-box;
}
@media (max-width: 639px) {
    #operatorExtendedDropdown,
    #searchBox {
        width: 100%;
    }
    .value-options,
    .extra-valueOptions {
        width: 100%;
    }
    .value-options select,
    .value-options input,
    .extra-valueOptions select,
    .extra-valueOptions input {
        width: 100%;
    }
    .value-options-and {
        width: 100%;
        text-align: center;
    }
}
@media (min-width: 640px) {
    .search-query-controls > select,
    .search-query-controls > select.extra-operatorExtendedDropdown {
        width: auto;
        min-width: 7rem;
        flex: 0 0 auto;
    }
    .search-query-controls > input[type="text"],
    .search-query-controls > input.extra-searchBox {
        flex: 1 1 12rem;
        min-width: 12rem;
        width: auto;
    }
}
.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.filter-row-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
}
.filter-row-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}
.filter-row .extra-operatorExtendedFilterDropdown,
.filter-row .extra-operatorDropdown,
.filter-row .extra-operatorExtendedDropdown {
    width: auto !important;
    min-width: 6.75rem;
    flex: 0 0 auto;
}
.filter-row .extra-dropdown {
    width: auto !important;
    min-width: 11rem;
    max-width: 16rem;
    flex: 0 1 16rem;
}
.filter-row .extra-toxinGroupDropdown,
.filter-row .extra-biologicalActivitiesDropdown,
.filter-row .extra-posttranslationalModificationsDropdown,
.filter-row .extra-speciesDropdown,
.filter-row .extra-familyDropdown,
.filter-row .extra-commonNameDropdown,
.filter-row .extra-searchWrap {
    flex: 1 1 12rem;
    min-width: 10rem;
    width: auto !important;
    max-width: none;
}
.filter-row-combo {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 12rem;
    min-width: 10rem;
}
.filter-row-combo select {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    max-width: none;
}
.filter-row-combo .extra-phyleticBrowseBtn {
    flex: 0 0 auto;
}
.filter-row-remove {
    flex: 0 0 auto;
}
@media (max-width: 639px) {
    .filter-row-fields {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .filter-row-fields > select,
    .filter-row-fields > .extra-searchWrap,
    .filter-row-combo {
        width: 100% !important;
        max-width: 100%;
        flex: 1 1 auto;
        min-width: 0;
    }
}
.mol-tree {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #f9f9f9;
}
.mol-tree ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.mol-tree li {
    margin: 5px 0;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}
.mol-tree li:hover {
    background-color: #f0f0f0;
}
.mol-tree li.selected {
    background-color: #d1e7dd;
    font-weight: bold;
}
.mol-tree li ul {
    display: none;
    margin-left: 20px;
}
.mol-tree li.open > ul {
    display: block;
}
.mol-tree .branch::before {
    content: "+ ";
    cursor: pointer;
    color: #007bff;
    font-weight: bold;
}
.mol-tree .branch.open::before {
    content: "- ";
    cursor: pointer;
    color: #a80000;
    font-weight: bold;
}
