.modern-search-panel {
    display: grid;
    grid-template-columns:
        135px
        175px
        minmax(210px, 1fr)
        175px
        105px
        48px;

    align-items: end;
    gap: 10px;

    padding: 15px 17px;

    border: 1px solid #dfe7f1;
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fbff 100%
        );

    box-shadow:
        0 8px 28px rgba(37, 63, 95, .045);
}


.filter-field {
    min-width: 0;
}


.filter-field > label {
    display: block;
    margin: 0 0 6px 2px;

    color: #708097;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .7px;

    text-transform: uppercase;
}


.filter-input-shell,
.filter-select-shell {
    position: relative;

    height: 48px;

    border: 1px solid #d9e3ef;
    border-radius: 12px;

    background: #fff;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


.filter-input-shell:focus-within,
.filter-select-shell:focus-within {
    border-color: #1769e0;

    box-shadow:
        0 0 0 3px rgba(23, 105, 224, .08);
}


.filter-input-shell {
    display: flex;
    align-items: center;
}


.filter-input-icon {
    margin-left: 13px;

    color: #7c8ca2;
    font-size: 14px;
}


.filter-input-shell input {
    min-width: 0;
    width: 100%;
    height: 100%;

    padding: 0 11px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #25384e;

    font: inherit;
    font-size: 13px;
    font-weight: 650;
}


.filter-select-shell select {
    width: 100%;
    height: 100%;

    padding: 0 38px 0 13px;

    border: 0;
    outline: 0;

    appearance: none;

    background: transparent;

    color: #25384e;

    font: inherit;
    font-size: 13px;
    font-weight: 650;

    cursor: pointer;
}


.filter-select-shell::after {
    content: "";

    position: absolute;
    right: 15px;
    top: 50%;

    width: 7px;
    height: 7px;

    border-right: 1.5px solid #7d8ca0;
    border-bottom: 1.5px solid #7d8ca0;

    transform:
        translateY(-70%)
        rotate(45deg);

    pointer-events: none;
}


/* Toggle-Karten */

.filter-toggle {
    position: relative;

    height: 48px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 9px;

    border: 1px solid #d9e3ef;
    border-radius: 12px;

    background: #fff;
    color: #465a72;

    cursor: pointer;

    transition:
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}


.filter-toggle:hover {
    border-color: #bcd1ed;

    background: #f8fbff;

    transform: translateY(-1px);
}


.filter-toggle-icon {
    width: 29px;
    height: 29px;

    flex: 0 0 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #f0f4f8;
    color: #718298;

    transition: .16s ease;
}


.filter-toggle-icon svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.filter-toggle-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    line-height: 1.05;
}


.filter-toggle-copy small {
    margin-bottom: 3px;

    color: #94a0af;

    font-size: 8px;
    font-weight: 850;
    letter-spacing: .7px;
}


.filter-toggle-copy strong {
    color: #3f5168;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;
}


.filter-switch {
    width: 27px;
    height: 16px;

    flex: 0 0 27px;

    margin-left: auto;

    padding: 2px;

    border-radius: 20px;

    background: #dfe6ee;

    transition: .16s ease;
}


.filter-switch span {
    display: block;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 1px 3px rgba(25, 45, 69, .18);

    transition:
        transform .16s ease;
}


/* Aktiv */

.filter-toggle.is-active {
    border-color: #9fc4f5;

    background: #edf5ff;

    box-shadow:
        0 5px 16px rgba(23, 105, 224, .08);
}


.filter-toggle.is-active .filter-toggle-icon {
    background: #1769e0;
    color: #fff;
}


.filter-toggle.is-active .filter-toggle-copy small,
.filter-toggle.is-active .filter-toggle-copy strong {
    color: #1769e0;
}


.filter-toggle.is-active .filter-switch {
    background: #1769e0;
}


.filter-toggle.is-active .filter-switch span {
    transform: translateX(11px);
}


/* Buttons */

.modern-search-panel .search-button {
    height: 48px;

    border-radius: 12px;

    font-weight: 800;
}


.modern-search-panel .reset-button {
    width: 48px;
    height: 48px;

    padding: 0;

    border-radius: 12px;
}


.top-actions .nav-button {
    text-decoration: none;
}


.top-actions .nav-button.active {
    border-color: #bdd5f6;
    background: #edf5ff;
    color: #1769e0;
}


/* Responsive */

@media (max-width: 1050px) {

    .modern-search-panel {
        grid-template-columns:
            130px
            170px
            minmax(180px, 1fr)
            170px;
    }

    .modern-search-panel .search-button,
    .modern-search-panel .reset-button {
        margin-top: 2px;
    }
}


@media (max-width: 760px) {

    .modern-search-panel {
        grid-template-columns: 1fr 1fr;
    }

    .filter-specialty {
        grid-column: 1 / -1;
    }

    .modern-search-panel .search-button {
        width: 100%;
    }
}
