@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

:root {
/*    --background: #071016;*/
/*    --primary: #91C7E9;*/
/*    --secondary: #106396;*/
/*    --accent: #35affa;*/
    --background: #111111;
    --primary: #91C7E9;
    --secondary: #106396;
    --accent: #35affa;
}

body {
    background-color: var(--background);
    color: white;
    text-align: center;
    font-family: 'Poppins';

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

    padding: 2rem 5rem;
    overflow: auto;
}

.table-wrapper {
    width: 100%;
    height: calc(100dvh - 1.6rem);
    border-radius: .8rem;

/*    overflow: hidden;*/
}

.table-header {
    max-width: 100%;
    height: clamp(2rem, 5%, 10rem);
/*    background-color: #fff4;*/
    padding: .8rem 1rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-header .input-group {
    width: clamp(5rem, 30%, 40rem);
    height: 2rem;
    padding: 0 .8rem;
    background-color: #333;
    border-radius: 2rem;

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

    transition: .1s;
}

.table-header .input-group:hover,
.table-header .input-group:focus-within {
    width: clamp(5rem, calc(30% + 2rem), 40rem);
    background-color: #aaa;
}

.table-header .input-group img {
    width: 1.2rem;
    height: 1.2rem;
}

.table-header .input-group input {
    width: 100%;
    padding: 0 .5rem 0 .3rem;
    background-color: transparent;
    border: none;
    outline: none;
}

.table-body {
    width: 100%;
    max-height: calc(90% - 2rem);

    margin: 2rem auto;
    border-radius: .6rem;
/*    overflow: auto;*/
}

.table-body::-webkit-scrollbar {
    width: 0.5rem;
    height: 0.5rem;
    background: #fff8;
    border-radius: .5rem;
}

.table-body::-webkit-scrollbar-thumb {
    border-radius: 0.5rem;
    background-color: var(--background);
}

table {
    width: 100%;
}

table, th, td {
    border-collapse: collapse;
    padding: 1rem;
}

tbody tr:nth-child(odd) {
    background-color: #ccf1;
}

tbody tr.hidden {
    display: none;
/*    visibility: collapse;*/
/*    opacity: 0;*/
/*    transform: translateX(100%);*/
}

thead th {
    position: sticky;
    top: 0;
    height: 4rem;

    background-color: var(--background);
    color: #aaa;

    font-size: medium;
    font-weight: normal;

    box-shadow: 1px 1px 2px white;
}

th {
    font-size: 150%;
    font-weight: bold;
}

td:not(:last-child) {
    border-right: 0.8px solid #888;
}

td {
    min-width: 10rem;

    font-size: 1rem;
    text-align: right;
}

td:first-child {
    text-align: left;
    border-radius: .5rem 0 0 .5rem;
}

td:last-child {
    border-radius: 0 .5rem .5rem 0;
}

td:not(:first-child) {
    font-family: 'Roboto Mono';
}

.info-tag {
    min-width: 3rem;
}

.limit {
    font-weight: bold;
}

td:has(.suspicious) {
    color: #fbb;
}


/* SORTING */

th:hover {
    cursor: pointer;
}

.sort-icon {
    display: inline-block;
    width: 1.3rem;
    height: 1.3rem;
    margin-left: .5rem;

    font-family: 'consolas';
    text-align: center;
    font-size: 1rem;

    cursor: pointer;
}

.active {
    color: var(--accent);
}

.active .sort-icon {
    animation: rotate .5s ease-out backwards;
    font-weight: bold;
    transition: .5s ease-out;
}

@keyframes rotate {
    from {
        rotate: 0;
    }
    to {
        rotate: 360deg;
    }
}

.active .sort-icon.reversed {
    rotate: 180deg;
}

.copied {
    animation: pulse .5s ease-out backwards;
}

@keyframes pulse {
    from {
        color: var(--secondary);
    }

    to {
        color: currentcolor;
    }
}