:root {
    --pico-font-size: 16px;
}

nav {
    margin-bottom: 2rem;
    & div#title {
        & h1 {
            font-size: 1.25rem;
            margin-bottom: 0;
        }
        & h2 {
            font-size: 1rem;
            font-weight: normal;
        }
    }
}

form div {
    display: flex;
    align-items: flex-start;
}

div#people-header form {
    display: flex;
    justify-content: space-between;
    align-items: end;
    & input[type="search"] {
        width: 25rem;
    }
    & ul {
        display: flex;
        gap: 1rem;
        & li {
            list-style: none;
        }
    }
}

table#peopleTable tr.inactive {
    opacity: 0.5;
}

.sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}

.sortable-header:hover {
    text-decoration: underline;
}

.sortable-header::after {
    content: ' ↕';
    position: absolute;
    right: 0;
    opacity: 0.5;
}

.sortable-header.asc::after {
    content: ' ↑';
    opacity: 1;
}

.sortable-header.desc::after {
    content: ' ↓';
    opacity: 1;
}

.error {
    color: red;
}

span.has_user {
    display: inline-block;
    background-color: var(--pico-primary-background);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    margin-left: 5px;
}