* {
    box-sizing: border-box;
}

body {
    margin: 0 auto;
    max-width: 720px;
    padding: 24px 16px 48px;
    font: 16px/1.4 system-ui, sans-serif;
    color: #111;
    background: #fff;
}

header,
footer {
    margin-bottom: 24px;
}

footer {
    margin-top: 40px;
    color: #555;
    font-size: 0.9rem;
}

h1 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 16px;
}

h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 4px;
}

a {
    color: #06c;
}

header a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: end;
}

.field {
    position: relative;
}

label {
    display: block;
    margin-bottom: 4px;
}

input,
button {
    font: inherit;
    padding: 6px 8px;
}

input[type="text"] {
    width: 220px;
}

input[type="number"] {
    width: 90px;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    min-width: 100%;
    max-height: 240px;
    overflow: auto;
}

.suggestions button,
.suggestions .empty {
    display: block;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    padding: 6px 8px;
    cursor: pointer;
}

.suggestions button:hover {
    background: #eee;
}

.error {
    color: #a40000;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.filters a.active {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

th,
td {
    text-align: left;
    padding: 6px 8px 6px 0;
    border-bottom: 1px solid #ddd;
}

th {
    font-weight: 600;
}
