.autocomplete {
    position: relative;
    display: inline-flex;
    width: 300px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    outline: 0;
}
.scheme_search {
    width: 50%;
    margin: 10px 0 0 10px;
}
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 20rem;
    overflow-y: auto;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
    background-color: #e9e9e9;
}
.autocomplete-active {
    background-color: #1e90ff !important;
    color: #fff;
}
input[type="text"]:focus {
    border-color: var(--contrast-2) !important;
}
#nav-table-form > div:first-child,
#nav-table-form > div:nth-child(2),
#nav-table-form > div:nth-child(2) > div {
    display: flex;
    padding: 0 10px;
    font-size: 0.85rem;
    justify-content: space-around;
    column-gap: 5px;
}
#nav-table-form > div:first-child {
    margin-bottom: 15px;
}
#nav-table-form > div:nth-child(2) {
    justify-content: space-between;
}
#nav-table-form > div:nth-child(2) > label:first-child {
    display: flex;
    flex-direction: column;
}
#nav-table-form > div:first-child > label {
    width: 33%;
}
#fund_house_input,
#nav-table-form > div:first-child > label > select,
#nav-table-form > div:nth-child(2) > div > label > select,
#nav-table-form > div:nth-child(2) > label > select,
#searchInput {
    width: 100%;
    display: block;
    height: calc(1.1em + 0.75rem + 2px);
    padding: 0 5px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--contrast-2);
    background-color: var(--base-3);
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    outline: 0;
}
#fund_house_input,
#searchInput {
    border: none;
}
.fhAll,
.nav-search-icon {
    padding: 5px;
}
select option {
    padding: 5px;
    line-height: 20px;
    font-size: 0.85rem;
}
/*.nav-table tbody tr:hover,*/
.nav-table th,
.nav-table thead {
    background-color: var(--accent-2);
}

table tr:nth-child(odd) {
    background-color: rgba(255,255,255,.05);
}

table tr:nth-child(even) {
    background-color: rgba(0,0,0,.05);
}

#load-more,
.nav-table table {
    background-color: var(--base-3);
}
.nav-table {
    padding: 10px 0 1px;
    overflow-x: auto;
    margin-left: 10px;
    margin-right: 10px;
}
.nav-table thead {
    font-weight: 700;
    color: var(--contrast);
}
.nav-table tbody tr {
    transition: background-color 0.3s;
}
.nav-table td {
    border-bottom: 1px solid #e0e0e0;
    color: var(--contrast-2);
}
.nav-table table {
    margin-bottom: 0;
    font-size: 12px;
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    transition: 0.5s;
}
.nav-table tbody td:first-child,
.nav-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
}
.nav-table.scrolled tbody td:first-child:after,
.nav-table.scrolled thead th:first-child:after {
    content: "";
    z-index: 9;
    position: absolute;
    top: 0;
    right: -3px;
    width: 4px;
    height: 100%;
    background-color: transparent;
    background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.12), transparent);
    background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.12)), to(transparent));
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.12), transparent);
}
.nav-table td,
.nav-table th {
    padding: 8px;
    border: 2px solid var(--base);
}
.nav-table table tbody td {
    font-size: 14px;
}
.nav-table > table > tbody > tr > td {
    white-space: pre-wrap;
    min-width: 100px;
}
.nav-table > table > tbody > tr > td:first-child {
    min-width: 300px;
}

table tr:nth-child(odd) {
    background-color: var(--base-2);
}

table tr:nth-child(even) {
    background-color: var(--base-3);
}

.nav-table > table > tbody > tr:nth-child(odd) > td:first-child {
    background-color: var(--base-2);
}

.nav-table > table > tbody > tr:nth-child(even) > td:first-child {
    background-color: var(--base-3);
}

.nav-table > table > tbody > tr > td:nth-child(2) {
    min-width: 60px;
}
#load-more {
    width: 100%;
    color: var(--accent-2);
    font-weight: 400;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px var(--contrast-3);
}
#nav-filter {
    display: block;
}
#show-filter,
tr.hide {
    display: none;
}
@media (max-width: 768px) {
    #filter-icon,
    .nav-table table tbody td {
        font-size: 12px;
    }
    #nav-filter-overlay.active,
    #nav-filter-overlay.active #nav-filter,
    #show-filter {
        display: block;
    }
    #nav-table-form > div:first-child {
        flex-direction: column;
        row-gap: 1rem;
    }
    #nav-table-form > div:nth-child(2) {
        flex-direction: column;
        padding: 0 10px;
    }
    .autocomplete {
        width: 95%;
    }
    #nav-table-form > div:first-child > label {
        width: 100%;
    }
    #nav-table-form > div:nth-child(2) > div {
        width: 100%;
        padding: 10px 0;
        justify-content: space-between;
    }
    .nav-table {
        margin-left: 0;
        margin-right: 0;
    }
    .nav-table > table > tbody > tr > td {
        min-width: 90px;
    }
    .nav-table > table > tbody > tr > td:first-child {
        min-width: 220px;
    }
    #nav-filter {
        display: none;
    }
    #filter-icon {
        cursor: pointer;
        display: inline-block !important;
        line-height: 46px;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 3px;
        background-color: var(--contrast-2);
        -webkit-box-shadow: 0 -1px 4px 2px rgb(0 0 0 / 18%);
        box-shadow: 0 -1px 4px 2px rgb(0 0 0 / 18%);
        padding: 2px !important;
        text-align: center;
        float: left;
        margin-left: 20px;
        position: sticky;
        margin-top: -41px;
        bottom: 30px;
        opacity: 0.8;
        z-index: 3;
    }
    #nav-filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    #nav-filter-overlay .filter-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: var(--base-3);
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        width: 90%;
    }
    #show-filter {
        width: 100%;
        margin-top: 15px;
        border-radius: 20px;
    }
}
