:root {
    color-scheme: light;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f7f6f3;
    color: #222;
}

.page {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

.brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: inherit;
    text-decoration: none;
}

nav a {
    margin-left: 1rem;
}

nav a, main a {
    color: #205a86;
    text-decoration: none;
}

nav a:hover, main a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 1.6rem;
}

h2 {
    font-size: 1.2rem;
    margin-top: 2rem;
}

input, select, button {
    font: inherit;
    padding: 0.35rem 0.5rem;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
}

input[type="number"] {
    width: 6rem;
}

button {
    cursor: pointer;
    background: #205a86;
    border-color: #205a86;
    color: #fff;
}

button:hover {
    background: #17466b;
}

button.danger {
    background: #a33;
    border-color: #a33;
}

button.danger:hover {
    background: #822;
}

form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

label {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.checkbox {
    margin-right: 0.75rem;
}

.filter-row {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1rem;
}

.summary {
    flex: 1 1 20rem;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal {
    background: #fff;
    border-radius: 6px;
    padding: 1.25rem;
    width: 100%;
    max-width: 48rem;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    gap: 0.75rem;
}

.modal h3 {
    margin: 0;
    font-size: 1.1rem;
}

.criteria, .delivery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
}

.kinds {
    display: flex;
    flex-wrap: wrap;
}

.actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.status {
    color: #2a6f2a;
}

.error {
    color: #a33;
}

.hint {
    color: #666;
    font-size: 0.9rem;
}
