.list-search { margin: 0; padding: 0; }
.list-search-toolbar { display: flex; flex: 1 1 100%; width: 100%; min-width: 0; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 8px; }
.list-search-toolbar .list-search-button { flex: 0 0 auto; width: auto; margin: 0; }
.list-search-total { margin: 0 0 0 auto; text-align: right; }
.list-search-total .paginator-stats, .paginator-stats.list-search-total { margin: 0; padding: 0; }
@media (max-width: 650px) {
    .list-search-toolbar { flex-wrap: wrap; }
    .list-search-toolbar .list-search-button { flex-basis: 100%; box-sizing: border-box; }
    .list-search-total { width: 100%; }
}
.filter-modal {
    width: min(560px, calc(100% - 24px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow-y: auto;
    border: 1px solid #557799;
    border-radius: 8px;
    background: #ffffff;
    color: var(--font-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.filter-modal::backdrop {
    background: rgba(25, 40, 55, .55);
}

.filter-modal h2 {
    margin: 0;
    padding: 14px 20px;
    background: #557799;
    color: #ffffff;
    font-size: 1.2rem;
}

.filter-modal form {
    display: grid;
    gap: 16px;
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.filter-modal label {
    display: grid;
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin: 0;
    color: #34495e;
    font-weight: 600;
}

.filter-modal input,
.filter-modal select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #c4cfd9;
    border-radius: 6px;
    background: #ffffff;
    color: #34495e;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}

.filter-modal input::placeholder {
    color: #6b7785;
    font-size: inherit;
    font-weight: 400;
    opacity: 1;
}

.filter-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.filter-modal-actions button {
    flex: 1;
    min-height: 44px;
    margin: 0;
    font: inherit;
    cursor: pointer;
}

.filter-modal :focus-visible {
    outline: 2px solid #557799;
    outline-offset: 2px;
}

html.filter-modal-open {
    overflow: hidden;
}
