body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    line-height: 1.6;
}


h1 {
    font-size: 1.4rem;
}

ul {
    padding: 0;
    list-style: none;
}

li {
    margin: 0.4rem 0;
}

a {
    color: #06c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 2rem;
    padding: 0 1rem;
    box-sizing: border-box;

    background: #f2f2f2;
    border-bottom: 1px solid #ddd;
}

.site-nav a {
    color: #06c;
    font-size: 0.85rem;
    text-decoration: none;
}

.site-nav a:hover {
    text-decoration: underline;
}

.page-content {
    margin: 2rem auto;
    padding: 0 1rem;
    max-width: 1000px;
}

.pager {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.pager input {
    width: 5em;
    padding: 0.3rem 0.5rem;
    box-sizing: border-box;
    text-align: center;
}

.pager button {
    width: 4em;
    padding: 0.3rem 0;
    cursor: pointer;
}

.number {
    display: inline-block;
    width: 3em;
    margin-right: 0.5em;
    color: #666;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.time {
    margin-right: 1em;
    color: #666;
    font-variant-numeric: tabular-nums;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem 1rem;
    max-width: 1000px;
    margin-bottom: 1.5rem;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.search-field label {
    font-size: 0.78rem;
    line-height: 1.2;
    color: #666;
}

.search-field input,
.search-field select {
    width: 100%;
    min-width: 0;
    padding: 0.35rem 0.5rem;
    box-sizing: border-box;
}

.search-field-wide {
    grid-column: 1 / -1;
}

.search-form .buttons {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.2rem;
}

.search-form .buttons .status {
    color: #666;
}

.search-form button {
    min-width: 4em;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .search-form {
        grid-template-columns: 1fr;
    }

    .search-field-wide {
        grid-column: auto;
    }

    .search-form .buttons {
        grid-column: auto;
    }
}


.page-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 2.6em;
}

.pager {
    margin-bottom: 0;
}

.status {
    color: #666;
}


.post-detail {
    margin: 0.8rem 0;
}

.post-detail-header {
    display: grid;
    grid-template-columns: 3em 1fr;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: #f3f3f3;
    box-sizing: border-box;
}

.post-detail-number {
    text-align: right;
    color: #666;
    font-variant-numeric: tabular-nums;
}

.post-detail-title {
    min-width: 0;
}

.post-detail-body {
    margin-left: 3.5em;
}

.post-detail-info {
    margin-top: 0.15rem;
}

.post-detail-resnum {
    color: #666;
    font-variant-numeric: tabular-nums;
}

.post-detail-msg {
    margin-top: 0.15rem;
}



.activity {
    overflow-x: auto;
    margin-top: 1rem;
}

.activity-hours, .activity-row {
    display: grid;
    grid-template-columns: 7.5rem repeat(24, minmax(1.8rem, 1fr));
    min-width: 900px;
}

.activity-hour-labels {
    display: contents;
}

.activity-date-header {
    grid-column: 1;
}

.activity-hour-label {
    text-align: center;
    font-size: 0.7rem;
    color: #666;
    padding-bottom: 0.25rem;
}

.activity-date {
    padding: 0.15rem 0.5rem;
    white-space: nowrap;
    font-size: 0.8rem;
    color: #555;
    font-variant-numeric: tabular-nums;
}

.activity-cell {
    height: 1.7rem;
    margin: 1px;
    background: #f1f1f1;
    border: 1px solid #e5e5e5;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-variant-numeric: tabular-nums;
}

.activity-row {
    align-items: center;
}
