main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.6rem;
}

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    width: 100%;
}

table {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    overflow-y: auto;
    width: 100%;
    height: 100%;
}

thead, tbody {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: normal;
}

thead {
    background-color: var(--surface2);
    position: sticky;
    top: 0;
}

tbody {
    flex: 1;
}

tr {
    display: flex;
    justify-content: space-between;
    padding: 0 0.4rem;
    border-bottom: 0.05rem solid var(--text1);
    gap: 1rem;
}

tfoot {
    position: sticky;
    bottom: 0;

    border-top: 0.05rem solid var(--text1);

    background-color: var(--surface3);
}

th, td {
    line-height: calc(var(--font-size) * 1.3);
}

th {
    text-align: left;
    font-size: calc(var(--font-size) * 1.1);
}

td:nth-of-type(2),
th:nth-of-type(2) {
    text-align: right;
}

#error {
    margin: auto;
}