body {
    margin-left: auto;
    margin-right: auto;
    width: 44rem;
}

#tabs {
    display: flex;
    justify-content: space-evenly;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.tab-button {
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 2rem 0.5rem 2rem;
    border: 2px solid #000;
    border-radius: 4px;
    background-color: #FFF;
}

.tab {
    display: none;
}

.tab.active {
    display: contents;
}

.inactive {
    display: none;
}

#tab-content {
    overflow-y: auto;
    padding: 2rem;
    border: 2px solid #000;
    border-radius: 4px;
}

.slim {
    margin-left: auto;
    margin-right: auto;
    width: 24rem;
}

.raw {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.raw-category {
    border: 2px solid #000;
    margin: 1em;
    padding: 1em;
    
    margin-top: 0.5em;
}

.raw-category-title {
    display: inline-block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.error-message {
    color: #900;
    display: none;
}

.error-message.active {
    display: contents;
}

.title {
    text-align: center;
    font-weight: bold;
    font-size: 1.75em;
}

.subtitle {
    text-align: center;
    font-weight: bold;
    font-size: 1.25em;
}

.unknown {
    color: #888;
    /* font-style: italic; */
}

.grid-1 {
    display: grid;
    /* margin-left: 0.5em; */
    grid-template-columns: 5fr 2fr;
}

.grid-3 {
    display: grid;
    grid-template-columns: auto auto auto auto;
}

.grid-4 {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
}

.grid-5 {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto;
}

.grid-6 {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto auto;
}

.grid-7 {
    display: grid;
    max-width: 100%;
    grid-template-columns: auto auto auto auto auto auto auto auto;
}

.divider {
    padding-bottom: 0.5rem;
}

.even {
    background: #FEF
}

.odd {
    background: #EEE
}

.grid-top {
    border-bottom: 1px solid #000;
    padding-top: 2px;
    padding-bottom: 2px;
    align-content: center;
}

.grid-left {
    border-right: 1px solid #000;
    padding-left: 0.5em;
}

.grid > div:not(.grid-left) {
    text-align: center;
}

.centered {
    text-align: center;
}

.sortable {
    display: block;
    cursor: pointer;
    user-select: none;
    /* background-color: #F99; */
}

.fullrow {
    grid-column: 1 / -1;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.box {
    padding: 1em;
    margin-top: 1em;
    margin-bottom: 1em;
    border-radius: 4px;
}

.tab-button.active {
    background-color: #DDD;
}

.default-sort {
    display: flex;
    justify-content: center;
    align-items: center;
    float: left;
    justify-self: start;
    border: 1px solid #000;
    border-radius: 2px;
    width: 1em;
    height: 1em;
    align-content: center;

}

.sortbox:not(.default-sort) {
    display: none;
}
.sortbox.active:not(.default-sort) {
    display: contents;
}