.admin-history-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 18px;
    background: rgba(15, 23, 42, .72);
}

.admin-history-filters label {
    display: grid;
    gap: 6px;
    min-width: 190px;
}

.admin-history-filters > .button {
    align-self: end;
}

.admin-history-filters label > span {
    color: #9aa9c1;
    font-size: .75rem;
    font-weight: 750;
}

.admin-history-filters input,
.admin-history-filters select {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 12px;
    color: #eef2ff;
    background: #111d34;
}

.admin-history-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-history-heading > span,
.admin-history-type {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, .13);
    font-size: .68rem;
    font-weight: 800;
}

.admin-history-list {
    display: grid;
    gap: 0;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.admin-history-list li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid rgba(148, 163, 184, .1);
}

.admin-history-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #93c5fd;
    background: rgba(59, 130, 246, .12);
}

.admin-history-list header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-history-list time {
    color: #7f8ea7;
    font-size: .72rem;
}

.admin-history-list p {
    margin: 7px 0 0;
    color: #b7c2d4;
    overflow-wrap: anywhere;
}

.admin-history-empty {
    display: block !important;
    color: #8d9bb2;
    text-align: center;
}

.admin-history-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, .1);
}

.admin-history-pagination a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 9px 12px;
    border: 1px solid rgba(99, 102, 241, .24);
    border-radius: 11px;
    color: #dbeafe;
    background: rgba(99, 102, 241, .12);
    text-decoration: none;
    font-weight: 750;
}

.admin-history-pagination a:last-child {
    justify-self: end;
}

.admin-history-pagination span {
    color: #9aa9c1;
    font-size: .78rem;
    font-weight: 750;
}

@media (max-width: 760px) {
    .admin-history-filters {
        grid-template-columns: 1fr;
    }

    .admin-history-filters label {
        min-width: 0;
    }

    .admin-history-list header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .admin-history-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .admin-history-pagination span {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }
}
