.admins-filters__heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.admins-filters__heading-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: 12px;
}

.admins-filters__count {
    background: rgba(255, 255, 255, .14);
    border-radius: 12px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 20px;
    margin-left: 10px;
    padding: 0 9px;
}

.admins-filters__manage-link {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 20px;
    padding: 0 8px;
}

.admins-filters__toolbar {
    align-items: end;
    background: #f7f9fb;
    border: 1px solid #dce3ea;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, .95fr) minmax(170px, .8fr) minmax(230px, 1.2fr) minmax(175px, .9fr) auto;
    margin: 10px 5px 12px;
    padding: 11px;
}

.admins-filters__field {
    display: block;
    margin: 0;
    min-width: 0;
}

.admins-filters__status {
    background: #f2f5f8;
    border: 1px solid #dce3ea;
    color: #486b91;
    margin: 10px 5px;
    padding: 12px;
    text-align: center;
}

.admins-filters__status.error {
    background: #fff1f0;
    border-color: #f2c4c0;
    color: #b42318;
}

.admins-filters__quick {
    display: flex;
    margin: 0;
}

.admins-filters__quick-btn {
    background: #f2f5f8;
    border: 1px solid #d5dde5;
    border-radius: 0;
    color: #3d4b59;
    cursor: pointer;
    flex: 1 1 0;
    font-size: 13px;
    line-height: 18px;
    margin-left: -1px;
    min-height: 34px;
    padding: 7px 8px;
    text-align: center;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.admins-filters__quick-btn:first-child {
    border-radius: 3px 0 0 3px;
    margin-left: 0;
}

.admins-filters__quick-btn:last-child {
    border-radius: 0 3px 3px 0;
}

.admins-filters__quick-btn:hover,
.admins-filters__quick-btn:focus {
    border-color: #486b91;
    outline: none;
}

.admins-filters__quick-btn.active {
    background: #486b91;
    border-color: #486b91;
    color: #fff;
    position: relative;
}

.admins-filters__label {
    color: #53606d;
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    margin: 0 0 5px;
}

.admins-filters__select {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.admins-filters__reset {
    height: 34px;
    margin: 0;
    min-width: 86px;
    width: 100%;
}

.admins-filters__table {
    table-layout: fixed;
    margin-bottom: 0 !important;
}

.admins-filters__table thead td {
    font-weight: 700;
    white-space: nowrap;
}

.admins-filters__table thead td:nth-child(1) { width: 40px; }
.admins-filters__table thead td:nth-child(2) { width: 19%; }
.admins-filters__table thead td:nth-child(3) { width: 21%; }
.admins-filters__table thead td:nth-child(4) { width: 18%; }

.admins-filters__table--server-hidden thead td:nth-child(2) { width: 24%; }
.admins-filters__table--server-hidden thead td:nth-child(4) { width: 25%; }

.admins-filters__table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.admins-filters__table tbody tr:hover {
    background: #f4f7fa;
}

.admins-filters__number {
    text-align: center;
    width: 40px;
}

.admins-filters__server {
    overflow-wrap: anywhere;
}

.admins-filters__identifier {
    overflow-wrap: anywhere;
}

.admins-filters__table--server-hidden th:nth-child(3),
.admins-filters__table--server-hidden td:nth-child(3) {
    display: none;
}

.admins-filters__services {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.admins-filters__services-cell {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.admins-filters__service {
    background: #eef1f4;
    border: 1px solid #dbe1e6;
    border-radius: 3px;
    color: #45515d;
    display: inline-block;
    font-size: 11px;
    line-height: 16px;
    max-width: 100%;
    overflow: hidden;
    padding: 2px 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admins-filters__service.vip {
    background: #fff8dc;
    border-color: #e8d991;
    color: #765c00;
}

.admins-filters__service.admin {
    background: #eaf1f8;
    border-color: #bfd0e1;
    color: #365b80;
}

.admins-filters__details {
    background: transparent;
    border: 0;
    color: #486b91;
    cursor: pointer;
    display: inline-block;
    font-size: 11px;
    margin: 0;
    padding: 0;
}

.admins-filters__paused {
    background: #fff3cd;
    border-radius: 3px;
    color: #73510d;
    display: inline-block;
    font-size: 10px;
    margin: 3px 0 0 5px;
    padding: 2px 4px;
}

.admins-filters__disabled {
    background: #f8d7da;
    border-radius: 3px;
    color: #842029;
    display: inline-block;
    font-size: 10px;
    margin: 3px 0 0 5px;
    padding: 2px 4px;
}

.admins-filters__disabled-info {
    color: #842029;
    font-size: 11px;
    line-height: 1.4;
    margin-top: 5px;
}

.admins-filters__pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 14px 5px 7px;
}

.admins-filters__pagination[hidden] {
    display: none;
}

.admins-filters__pagination .btn2:disabled {
    cursor: default;
    opacity: .45;
}

.admins-filters__empty {
    color: #65717d;
    padding: 24px !important;
    text-align: center;
}

.admins-filters__unknown {
    color: #6f7880;
}

@media (max-width: 1000px) {
    .admins-filters__toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admins-filters__field--quick {
        grid-column: 1 / -1;
    }

    .admins-filters__field--reset {
        align-self: end;
    }
}

@media (max-width: 767px) {
    .admins-filters__page {
        padding-left: 5px;
        padding-right: 5px;
    }

    .admins-filters__toolbar {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-right: 0;
        padding: 10px;
    }

    .admins-filters__field--quick {
        grid-column: auto;
    }

    .admins-filters__field--reset .admins-filters__label {
        display: none;
    }

    .admins-filters__quick {
        width: 100%;
    }

    .admins-filters__quick-btn {
        font-size: 12px;
        padding: 7px 5px;
    }

    .admins-filters__heading {
        white-space: normal;
    }

    .admins-filters__table,
    .admins-filters__table tbody,
    .admins-filters__table tr,
    .admins-filters__table td {
        display: block;
        width: 100%;
    }

    .admins-filters__table thead {
        display: none;
    }

    .admins-filters__table tbody tr {
        border: 1px solid #d9e0e6;
        border-radius: 3px;
        box-shadow: 0 1px 2px rgba(30, 50, 70, .06);
        margin-bottom: 10px;
        padding: 8px;
    }

    .admins-filters__table tbody td {
        border: 0 !important;
        min-height: 24px;
        padding: 5px 5px 5px 104px !important;
        position: relative;
    }

    .admins-filters__table tbody td::before {
        color: #74808b;
        font-size: 11px;
        font-weight: 700;
        left: 5px;
        position: absolute;
        top: 7px;
    }

    .admins-filters__table tbody td:nth-child(1) {
        display: none;
    }

    .admins-filters__table tbody td:nth-child(2) {
        border-bottom: 1px solid #edf0f2 !important;
        font-size: 14px;
        margin-bottom: 3px;
        padding-left: 5px !important;
        padding-bottom: 9px !important;
    }

    .admins-filters__table tbody td:nth-child(2)::before {
        content: '';
    }

    .admins-filters__table tbody td:nth-child(3)::before { content: 'Сервер'; }
    .admins-filters__table tbody td:nth-child(4)::before { content: 'Идентификатор'; }
    .admins-filters__table tbody td:nth-child(5)::before { content: 'Услуги'; }

    .admins-filters__services-cell {
        align-items: flex-start;
        flex-direction: column;
    }

    .admins-filters__table--server-hidden tbody td:nth-child(3) {
        display: none;
    }

    .admins-filters__empty {
        display: block !important;
        padding: 20px 8px !important;
    }

    .admins-filters__empty::before {
        content: '' !important;
    }
}

@media (max-width: 420px) {
    .admins-filters__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .admins-filters__heading-actions {
        margin-left: 0;
    }

    .admins-filters__table tbody td {
        padding-left: 94px !important;
    }
}
