* {
    box-sizing: border-box;
    font-size: inherit;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    line-height: 1.5;
    color: #333333;
    overflow-y: scroll;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

nav {
    display: flex;
    gap: 1rem;
}

footer {
    position: sticky;
    top: 100vh;
    padding: 1rem 0;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    text-align: left;
    padding: 0.5rem;
    border-bottom: 1px solid #dddddd;
    vertical-align: top;
}

th {
    font-weight: 600;
}

.meta-table td:first-child {
    font-weight: 600;
    width: 10rem;
    white-space: nowrap;
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filters label {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    gap: 0.25rem;
}

.filters select {
    padding: 0.3rem 0.5rem;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.pill {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.status-success { background-color: #2e7d32; }
.status-failure { background-color: #c62828; }
.status-canceled { background-color: #757575; }
.status-preempted { background-color: #ef6c00; }
.status-running { background-color: #1565c0; }
.status-unknown { background-color: #9e9e9e; }

.diag-level-0 { color: #2e7d32; font-weight: 600; }
.diag-level-1 { color: #ef6c00; font-weight: 600; }
.diag-level-2 { color: #c62828; font-weight: 600; }
.diag-level-3 { color: #757575; font-weight: 600; }
.diag-level-unknown { color: #333333; font-weight: 600; }
