:root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --text: #20242a;
    --muted: #5f6b7a;
    --border: #d8dde5;
    --accent: #156f74;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}

.brand {
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.site-nav a,
.link-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    padding: 0;
    text-decoration: none;
}

.site-main {
    width: min(960px, calc(100% - 32px));
    margin: 40px auto;
}

.page-panel,
.display-placeholder {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.2;
}

p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.stack {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.field {
    display: grid;
    gap: 6px;
}

label {
    font-size: 14px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    font: inherit;
    padding: 8px 10px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

button,
.button {
    min-height: 40px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    padding: 8px 14px;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    background: #e7f2f3;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.button.secondary {
    background: #fff;
    color: var(--accent);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    border-bottom: 1px solid var(--border);
    padding: 10px;
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.checkbox-row input {
    width: auto;
    min-height: auto;
}

.location-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-form select {
    width: auto;
}

.menu-item-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.menu-row,
.display-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding: 14px 0;
}

.display-category {
    margin-top: 28px;
    text-align: left;
}

#display-content {
    width: min(900px, 100%);
    margin-top: 24px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.flash {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.flash-success {
    border-color: #9ac7a4;
    background: #edf8ef;
}

.flash-error {
    border-color: #daa0a0;
    background: #fff0f0;
}

.display-placeholder {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-main {
        margin: 24px auto;
    }

    .page-panel,
    .display-placeholder {
        padding: 24px;
    }

    h1 {
        font-size: 26px;
    }
}
