@import url("/css/seat-plan.css");
/* FW-Gastro Cloud: one tinted frame (the menu on the stone ground), the work on a sheet set into it. One typeface (Geist),
   flat surfaces, one gap (--gap) between blocks; the brigade's red on the mark, the active tab and the figures that
   matter, colour otherwise only says something (ok, warning, problem).
   Wide screens: the menu is a sidebar and the sheet is inset 8px; phones: the sheet is the screen, the menu folds. */
@font-face {
    font-family: "Geist";
    src: url("/fonts/Geist-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --bg: #f3f1ec;
    --sheet: #ffffff;
    --surface: #ffffff;
    --surface-2: #f5f3ef;
    --surface-3: #e9e6e0;
    --text: #161514;
    --muted: #5d5955;
    --border: #e8e5df;
    --rule: #f0eeea;
    --control: #d2cec8;
    --primary: #1c1b1a;
    --on-primary: #ffffff;
    --accent: #b71c1c;
    --accent-text: #ffffff;
    --ok: #1f7a4a;
    --ok-bg: #e3f6ea;
    --ok-ink: #0d3d22;
    --warn: #a35a00;
    --warn-bg: #fff6e0;
    --warn-ink: #7a3e00;
    --warn-edge: #f3d27a;
    --bad: #c4242a;
    --bad-bg: #fdecea;
    --bad-ink: #831c1e;
    --info: #1d5fbf;
    --info-bg: #eaf1fc;
    --info-ink: #133e7c;
    --code-bg: #f0eeeb;
    /* the payment methods as shades of one ink: the share reads without a rainbow */
    --cash: #161514;
    --card: #6b6966;
    --twint: #a3a09c;
    --voucher: #cfccc7;
    --off: #e4e1dd;
    --radius: 10px;
    --radius-s: 8px;
    --radius-sheet: 16px;
    --gap: 20px;
    --float: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .16);
    --sidebar: 244px;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0f0f0f;
        --sheet: #161616;
        --surface: #1b1b1b;
        --surface-2: #242424;
        --surface-3: #2e2e2e;
        --text: #f4f4f4;
        --muted: #b4b4b4;
        --border: #2a2a2a;
        --rule: #222222;
        --control: #444444;
        --primary: #f4f4f4;
        --on-primary: #111111;
        --accent: #f05252;
        --accent-text: #1a0606;
        --ok: #4cc584;
        --ok-bg: #12291c;
        --ok-ink: #9fe3bd;
        --warn: #f0b14a;
        --warn-bg: #2e2208;
        --warn-ink: #f6d59a;
        --warn-edge: #5c4512;
        --bad: #f07178;
        --bad-bg: #2f1517;
        --bad-ink: #f7b3b6;
        --info: #7fb0f5;
        --info-bg: #15243a;
        --info-ink: #b9d4fb;
        --code-bg: #222222;
        --cash: #f4f4f4;
        --card: #a8a8a8;
        --twint: #6e6e6e;
        --voucher: #444444;
        --off: #2e2e2e;
        --float: 0 12px 32px rgba(0, 0, 0, .6);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------------------------------------------------------------- the menu */
header.top {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

header.top .bar {
    padding: 8px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

header.top .brand {
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-right: auto;
    display: flex;
    align-items: center;
    letter-spacing: -.01em;
}

header.top .brand span { color: var(--muted); font-weight: 500; margin-left: 5px; }

header.top .brand img { width: 30px; height: 30px; margin-right: 10px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; }

.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-button { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.menu-button:hover { background: var(--surface-2); }
.menu-button span, .menu-button span::before, .menu-button span::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--text);
    position: relative; transition: transform .2s, background-color .2s; }
.menu-button span::before, .menu-button span::after { content: ""; position: absolute; left: 0; }
.menu-button span::before { top: -6px; }
.menu-button span::after { top: 6px; }
.menu-toggle:checked + .menu-button span { background: transparent; }
.menu-toggle:checked + .menu-button span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle:checked + .menu-button span::after { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle:focus-visible + .menu-button { outline: 2px solid var(--primary); }

header.top nav { display: none; flex-direction: column; gap: 2px; flex: 1 1 100%; padding: 6px 0 4px; }
header.top .user { display: none; flex: 1 1 100%; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 14px;
    border-top: 1px solid var(--border); padding: 10px 10px 4px; }
.menu-toggle:checked ~ nav, .menu-toggle:checked ~ .user { display: flex; }

header.top nav a, header.top nav .nav-fold > summary {
    color: var(--muted);
    text-decoration: none;
    padding: 0 10px;
    min-height: 32px;
    border-radius: var(--radius-s);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background-color .15s, color .15s;
}

header.top nav svg.i { width: 16px; height: 16px; margin: 0; border-radius: 0; overflow: visible; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
header.top nav a:hover, header.top nav .nav-fold > summary:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
header.top nav a.active { color: var(--text); background: color-mix(in srgb, var(--text) 9%, transparent); font-weight: 500; }
header.top nav a .badge { margin-left: auto; }
header.top nav .nav-group { font-size: 12px; color: var(--muted); padding: 14px 10px 4px; }
header.top .user a { color: var(--text); font-weight: 500; }
header.top .user .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
header.top .user .who a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; text-decoration: none; }
header.top .user .who a.small { color: var(--muted); font-weight: 400; font-size: 12px; }

@media (max-width: 1023px) {
    /* the sheet is the screen */
    body:has(header.top) { background: var(--sheet); }
}

@media (min-width: 1024px) {
    header.top { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar); border-bottom: 0; overflow-y: auto; scrollbar-width: thin; }
    header.top .bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; min-height: 100%; padding: 14px 10px 0 12px; gap: 0; }
    header.top .brand { margin: 0 0 14px; padding: 0 8px; }
    .menu-button { display: none; }
    header.top nav { display: flex; flex: 1; padding: 0; }
    header.top .user { display: flex; flex: none; padding: 10px 8px 12px; position: sticky; bottom: 0; background: var(--bg); }
    body:has(header.top) main {
        margin: 8px 8px 8px var(--sidebar);
        min-height: calc(100vh - 16px);
        max-width: none;
        padding: 32px 40px 64px;
        background: var(--sheet);
        border: 1px solid var(--border);
        border-radius: var(--radius-sheet);
    }
    body:has(header.top) main > * { max-width: 1320px; }
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 56px;
}

h1 { font-size: 24px; margin: 0 0 20px; font-weight: 650; letter-spacing: -.018em; line-height: 1.25; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; letter-spacing: -.005em; line-height: 1.35; }
h3 { font-size: 14.5px; margin: 20px 0 8px; font-weight: 600; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

.title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: var(--gap);
}

.title-row h1 { margin: 0; }
.title-row > a:not(.button) { color: var(--muted); font-size: 14px; text-decoration: none; }
.title-row > a:not(.button):hover { color: var(--text); }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: -8px 0 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs a + a::before { content: "›"; margin-right: 8px; color: var(--muted); }
/* the choice of a day on the left, what applies to the whole plan on the right */
.plan-bar { margin-bottom: 16px; }
.plan-bar nav.tabs { margin: 0; }
.plan-bar .actions { margin-left: auto; }
p.plan-hint { margin: -8px 0 16px; }
.title-row h2 { margin: 0; }

.grid {
    display: grid;
    gap: var(--gap);
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    align-items: start;
}

.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    min-width: 0;
}

.card + .card { margin-top: var(--gap); }
/* groups of cards side by side keep the same gap to the cards before and after them */
:is(.grid, .two-cols) + :is(.card, .grid, .two-cols), .card + :is(.grid, .two-cols) { margin-top: var(--gap); }
select.person-pick { min-width: 11em; }
/* plain forms (no layout class): the field groups, notes and the buttons keep a gap */
form:not([class]) > :is(div, label, fieldset, details, p, .table-wrap) + :is(div, label, fieldset, details, p, .table-wrap) {
    margin-top: 12px;
}
/* a row of buttons above the first card of a page */
main > .actions + .card, main > .actions + section { margin-top: var(--gap); }
.card + .builder { margin-top: var(--gap); }
main > :is(form:not(.inline), .row, label) + :is(.card, section) { margin-top: var(--gap); }
.grid > .card + .card { margin-top: 0; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
/* blocks without a margin of their own (forms, rows, tables, fold-outs) keep a gap to the one before */
.card > :is(form:not(.inline), .row, .grid-form, .table-wrap, details, fieldset, .actions, .qr-grid, .add-people, .stats)
    + :is(form:not(.inline), .row, .grid-form, .table-wrap, details, fieldset, .actions, .qr-grid, .add-people, .stats, label) {
    margin-top: 14px;
}

.stat { font-size: 1.6rem; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }

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

th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th { font-size: 13px; color: var(--muted); font-weight: 500; padding-top: 4px; padding-bottom: 8px; border-bottom-color: var(--border); }
tr:last-child td { border-bottom: 0; }
td.right, th.right { text-align: right; }
td a:not(.button) { text-decoration: none; font-weight: 500; }
td a:not(.button):hover { text-decoration: underline; }
/* controls in a row stay small and on the row's middle; the row's own actions are quiet until hovered */
tr:has(> td select) > td { vertical-align: middle; }
td select { height: 34px; min-height: 34px; padding: 4px 8px; width: auto; min-width: min(9em, 28vw); }
td button.link { color: var(--muted); text-decoration: none; }
td button.link:hover { color: var(--text); text-decoration: underline; }
tbody tr { transition: background-color .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    min-height: 21px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--surface-2);
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.bad { background: var(--bad-bg); color: var(--bad-ink); }
.badge.info { background: var(--info-bg); color: var(--info-ink); }
header.top nav .badge.bad { background: var(--bad); color: #fff; }

.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: var(--gap);
    border: 1px solid transparent;
    animation: flash-in .25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes flash-in { from { opacity: 0; transform: translateY(-4px); } }

.flash.ok { background: var(--ok-bg); color: var(--ok-ink); }
.flash.bad { background: var(--bad-bg); color: var(--bad-ink); }
.flash.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-edge); }
.flash.info { background: var(--info-bg); color: var(--info-ink); }

form.stack { display: grid; gap: var(--gap); }
form.inline { display: inline; }

.row { display: flex; flex-wrap: wrap; gap: 12px var(--gap); align-items: flex-end; }
.row > label { flex: 1 1 180px; }

label { display: grid; gap: 6px; font-size: 14px; color: var(--text); font-weight: 500; }

input, select, textarea {
    font: inherit;
    font-weight: 400;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--control);
    border-radius: var(--radius-s);
    padding: 9px 11px;
    min-height: 40px;
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}

input:not([type=checkbox], [type=radio], [type=color], [type=file]), select { height: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }

input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--primary); box-shadow: none; }

label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text); }

textarea.code {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 13px;
    min-height: 480px;
    white-space: pre;
    background: var(--code-bg);
}

button, .button {
    font: inherit;
    font-weight: 600;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--on-primary);
    border-radius: var(--radius-s);
    padding: 0 14px;
    min-height: 40px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, transform .12s cubic-bezier(.2, .8, .2, 1);
}

button:hover, .button:hover { background: color-mix(in srgb, var(--primary) 86%, var(--bg)); }
button:active, .button:active { transform: scale(.97); }
button.secondary, .button.secondary { background: var(--surface); color: var(--text); border-color: var(--control); }
button.secondary:hover, .button.secondary:hover { background: var(--surface-2); }
button.link { background: none; border: 0; color: var(--text); padding: 0; min-height: 0; font-weight: 500; text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); text-underline-offset: 3px; }
button.link:hover { background: none; }
button.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
button.danger:hover { background: var(--bad-bg); }

.actions { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }

pre, code.block {
    display: block;
    background: var(--code-bg);
    border-radius: var(--radius-s);
    padding: 12px;
    overflow-x: auto;
    font-size: 13px;
    margin: 0;
}
pre.notes { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 14px; }
tr.sub td { border-top: 0; padding-top: 2px; }

code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }
code.big { font-size: 1.4rem; font-weight: 700; letter-spacing: .08em; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
dl.facts dt { color: var(--muted); font-size: 13.5px; }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

ul.problems { margin: 0; padding-left: 20px; color: var(--bad); }

.menu-cat { margin-bottom: 12px; }
.menu-cat h3 { margin: 0 0 4px; }

/* many tabs (the box page has 14): they wrap onto a second row instead of running off the edge unseen */
nav.tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 var(--gap); box-shadow: inset 0 -1px 0 var(--border); }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs a {
    flex: none;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    padding: 0 10px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    transition: color .15s, box-shadow .15s;
}
nav.tabs a:first-child { padding-left: 2px; }
nav.tabs a:hover { color: var(--text); box-shadow: inset 0 -2px 0 var(--control); }
nav.tabs a.active { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
/* a second row inside a tab (the days of a plan): a quiet choice, so it does not read as another level of pages */
nav.tabs.days { box-shadow: none; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
nav.tabs.days a, nav.tabs.days a:first-child { padding: 0 12px; min-height: 34px; border-radius: var(--radius-s); }
nav.tabs.days a:hover { box-shadow: none; background: var(--surface-2); }
nav.tabs.days a.active { box-shadow: none; background: var(--surface-3); }

.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 400; }
/* the setup steps of an event or template: numbered, each a link with what is done */
.steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.steps li { padding-left: 4px; }
.steps li::marker { color: var(--muted); }
details > summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
details[open] > summary { margin-bottom: 8px; }
/* deleting for good (purge.html): set apart, the summary in the colour of danger */
details.purge { margin-top: var(--gap); border-top: 1px solid var(--border); padding-top: 8px; }
details.purge > summary { color: var(--bad); }

img.qr { display: block; background: #fff; padding: 8px; border-radius: var(--radius-s); margin: 8px 0; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--gap); margin: 8px 0; }
.qr-card { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qr-card img.qr { width: 100%; max-width: 220px; height: auto; }
.qr-card figcaption { display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }

/* figures on top of a page: one container split by hairlines, label over value */
.stats { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: var(--gap); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stats .card { margin: -1px 0 0 -1px; border: 0; border-left: 1px solid var(--border); border-top: 1px solid var(--border); border-radius: 0; }
.stats .card + .card { margin: -1px 0 0 -1px; }
.stats .card .small:first-child, .stats .card .muted:first-child { color: var(--muted); }

.login {
    max-width: 380px;
    margin: 12vh auto 0;
}
.login h1 { display: flex; align-items: center; gap: 10px; }
.login h1::before { content: ""; width: 44px; height: 44px; flex: none; border-radius: 50%; background: #fff url("/logo.png") center / 40px no-repeat; }

.pins { width: auto; min-width: 320px; }
.pins td.pin { font-family: ui-monospace, Consolas, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .1em; }

/* tiles: a card that is a link */
a.tile { color: inherit; text-decoration: none; display: block; transition: border-color .15s; }
a.tile:hover { border-color: var(--control); }
.stat.ok, .stat .ok { color: var(--ok); }
.stat.zero, .stat .zero { color: var(--muted); font-weight: 500; }
.grid > .span-all { grid-column: 1 / -1; }
.stat.warn { color: var(--warn); }
.stat.bad { color: var(--bad); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* box page: jump to a section, stays on top while scrolling */
nav.tabs.sections {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--sheet);
}
@media (max-width: 1023px) { nav.tabs.sections { top: 51px; } }
section[id], div[id] { scroll-margin-top: 64px; }

/* boxes list */
.filters { margin-bottom: var(--gap); }
.filters nav.tabs { flex: 1 1 100%; margin: 0; }
.filters label.search { flex: 1 1 240px; }
table.fleet ul.problems { padding-left: 16px; }
.bulk { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 4px; display: grid; gap: 8px; }
.bulk h3 { margin-bottom: 0; }

/* connection of the last days */
svg.uptime { display: block; width: 100%; height: 22px; margin-top: 12px; border-radius: 6px; overflow: hidden; }
svg.uptime rect.on { fill: var(--ok); }
svg.uptime rect.off { fill: var(--off); }
.uptime-axis { display: flex; justify-content: space-between; }

/* payment methods as one bar */
.bar svg { display: block; width: 100%; height: 10px; margin-top: 8px; border-radius: 5px; overflow: hidden; }
.method-CASH { fill: var(--cash); background: var(--cash); }
.method-CARD { fill: var(--card); background: var(--card); }
.method-TWINT { fill: var(--twint); background: var(--twint); }
.method-VOUCHER { fill: var(--voucher); background: var(--voucher); }
.legend { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; }
.legend i.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.card.running h3 { margin: 0; }
.card.running .title-row { margin-bottom: 4px; }

/* revenue by hour */
figure.hours { margin: 4px 0 12px; }
figure.hours svg { display: block; width: 100%; height: 90px; }
figure.hours rect { fill: var(--accent); }
figure.hours line.axis { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hours-axis { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.strong { font-weight: 700; }
.small-stat { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
table.compare td:first-child { color: var(--muted); }

/* rollout stages of a release */
ol.stages { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; flex-wrap: wrap; }
ol.stages li { flex: 1 1 90px; text-align: center; padding: 7px 8px; border-radius: var(--radius-s); background: var(--surface-2);
    color: var(--muted); font-size: 13px; font-weight: 600; }
ol.stages li.done { background: var(--ok-bg); color: var(--ok-ink); }
ol.stages li.current { background: var(--warn-bg); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--warn-edge); }

/* preset forms */
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px 14px; margin: 0; display: grid; gap: 10px; min-width: 0; }
legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.presets .card { margin: 0; }

@media print {
    header.top, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
    main { margin-left: 0 !important; }
    .card { border: 0; padding: 0; }
}

@media (max-width: 600px) {
    dl.facts { grid-template-columns: 1fr; gap: 0 0; }
    dl.facts dd { margin-bottom: 8px; }
}

/* shift plan */
.grid-form { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-items: end; }
/* fields with a hint under them: aligned at the top, the hints line up below */
.grid-form.top { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); align-items: start; }
td.bad { color: var(--bad); font-weight: 700; }
.print-only { display: none; }
@media print { .print-only { display: inline; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* phones: a long button label wraps instead of running out of its card */
@media (max-width: 600px) {
    button, .button { white-space: normal; text-align: center; padding-top: 7px; padding-bottom: 7px; max-width: 100%; }
}

/* ---------------------------------------------------------------- menu builder (menu-builder.js) */
main.wide { max-width: 1400px; }
p.lists { margin: -4px 0 10px; }
.builder .grow { flex: 1 1 auto; }
.builder .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.builder .toolbar .search { flex: 0 1 280px; }
.builder .callout { border-color: var(--warn-edge); background: var(--warn-bg); margin-bottom: var(--gap); }
.builder .empty { text-align: center; }
.builder .empty form.quick { max-width: 460px; margin: 0 auto; }
.builder form.quick { display: flex; gap: 8px; align-items: center; }
.builder form.quick input { flex: 1 1 auto; min-width: 0; }
.builder .categories { display: grid; gap: var(--gap); }
.builder .hint, .drawer .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.builder .error, .drawer .error { color: var(--bad); font-weight: 600; min-height: 1px; }
.builder .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s; }
.cat.off { opacity: .7; }
.cat.drop { box-shadow: 0 0 0 2px var(--primary); }
.cat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--surface-2); }
.cat-head h2 { margin: 0; font-size: 1.05rem; }
.handle { cursor: grab; color: var(--muted); letter-spacing: -2px; user-select: none; padding: 2px 4px; font-weight: 700; }
.cat .rows { display: grid; }
.cat .none { padding: 12px 16px; }

.prow { display: grid; grid-template-columns: 12px minmax(0, 2.2fr) minmax(90px, 1fr) minmax(0, 1.6fr); gap: 14px; align-items: center;
    padding: 10px 16px; border-bottom: 1px solid var(--rule); cursor: pointer; transition: background-color .12s; }
.prow:hover, .prow:focus-visible { background: color-mix(in srgb, var(--surface-2) 70%, transparent); outline: none; }
.prow.open { background: var(--info-bg); }
.prow.off { opacity: .55; }
.prow.dragging { opacity: .35; }
.prow.before { box-shadow: inset 0 3px 0 var(--primary); }
.prow[draggable=true] { cursor: grab; }
.prow .swatch { width: 12px; height: 28px; border-radius: 4px; background: var(--surface-3); }
.prow .pname { min-width: 0; }
.prow .size { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: var(--surface-2); font-size: 12.5px; font-weight: 600; }
.prow .short { font-weight: 600; color: var(--text); }
.prow .pprice { font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.prow .sizeprice { font-size: 13px; white-space: nowrap; }
.prow .pmeta { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
@media (max-width: 760px) {
    .prow { grid-template-columns: 10px minmax(0, 1fr) auto; }
    .prow .pmeta { grid-column: 2 / -1; justify-content: flex-start; }
}

form.quick.add { padding: 10px 16px 12px; background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
form.quick.add input.short { flex: 0 1 160px; }
form.quick.add input.price { flex: 0 0 96px; }
form.quick.add select { flex: 0 1 160px; width: auto; }
@media (max-width: 760px) { form.quick.add { flex-wrap: wrap; } form.quick.add input:first-child { flex-basis: 100%; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
button.chip { background: var(--surface); color: var(--text); border-color: var(--control); border-radius: 999px; min-height: 34px; font-weight: 500; }
button.chip:hover { background: var(--surface-2); }
button.chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 600; }

.segmented { display: inline-flex; border: 1px solid var(--control); border-radius: var(--radius-s); overflow: hidden; width: max-content; }
.segmented button { border: 0; border-radius: 0; background: var(--surface); color: var(--text); font-weight: 500; min-height: 34px; }
.segmented button + button { border-left: 1px solid var(--control); }
.segmented button.on { background: var(--primary); color: var(--on-primary); font-weight: 600; }

/* the product's side panel: on the right on wide screens, the whole screen on phones */
.drawer-back { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .28); display: flex; justify-content: flex-end; animation: fade-in .15s; }
@keyframes fade-in { from { opacity: 0; } }
.drawer { width: min(560px, 100%); height: 100%; background: var(--sheet); box-shadow: var(--float); display: flex; flex-direction: column;
    animation: drawer-in .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.drawer-head h2 { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-head button.link { font-size: 1.2rem; text-decoration: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px 0; display: grid; gap: 14px; align-content: start; }
.drawer-body fieldset { background: var(--surface); }
.drawer-foot { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 12px 0 16px; background: var(--sheet);
    border-top: 1px solid var(--border); margin-top: 4px; }
.drawer-foot .grow { flex: 1; }
.drawer .sizes, .drawer .options { display: grid; gap: 6px; }
.drawer .size-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 24px; gap: 8px; align-items: center; }
.drawer .size-row button.link { text-decoration: none; color: var(--muted); }
.drawer .choice { border: 1px solid var(--border); border-radius: var(--radius-s); padding: 10px; display: grid; gap: 8px; }
.drawer .row.tight, .builder .row.tight { gap: 8px; align-items: center; flex-wrap: nowrap; }
.drawer .row.tight > input { flex: 1 1 auto; }
.drawer .row.tight > label.check { flex: none; }
.colors input.color { width: 48px; height: 32px; min-height: 0; padding: 2px; }
.cat-head .swatch { flex: none; width: 12px; height: 22px; border-radius: 4px; background: var(--surface-3); }
.colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.colors label { position: relative; display: block; cursor: pointer; }
.colors input[type=radio] { position: absolute; width: 0; height: 0; opacity: 0; }
.colors label span { display: grid; place-items: center; min-width: 32px; height: 32px; overflow: hidden; border: 1px solid var(--control); border-radius: 8px; }
.colors label svg { display: block; width: 100%; height: 100%; }
.color-field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field-grid > .color-field { grid-column: 1 / -1; }
.colors .auto span { padding: 0 10px; background: var(--surface-2); font-size: 13px; }
.colors input:checked + span, .colors input.color.on { outline: 3px solid var(--primary); outline-offset: 1px; }
.colors input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
.colors input:disabled + span { cursor: default; opacity: .6; }
.drawer .stack, .modal .stack, form.stack { display: grid; gap: 12px; }

.modal-back { position: fixed; inset: 0; z-index: 210; background: rgba(0, 0, 0, .32); display: grid; place-items: center; padding: 16px; animation: fade-in .15s; }
.modal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--float); padding: 20px; width: min(440px, 100%); max-height: 90vh; overflow-y: auto; }
.modal.wide { width: min(640px, 100%); }
.modal h2 { margin-top: 0; }
.actions.end { justify-content: flex-end; }
.actions .left { margin-right: auto; }
button.link.bad { color: var(--bad); }

/* stations and printers side by side, tables by area */
.two-cols { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: start; }
.two-cols > .card + .card { margin-top: 0; }
.col-head { display: grid; gap: 2px; margin-bottom: 10px; }
.col-head h2 { margin: 0; }
.cards { display: grid; gap: 12px; }
.card.entity { display: grid; gap: 10px; }
.card.entity + .card.entity { margin-top: 0; }
.card.entity.off { opacity: .65; }
.card.entity.new { border-style: dashed; background: transparent; }
.card.entity.new h3 { margin: 0; }
.card.entity .actions .grow { flex: 1; }
.entity-head { display: flex; gap: 8px; align-items: center; }
.entity-head input.title { font-size: 1.05rem; font-weight: 600; border-color: transparent; background: transparent; padding-left: 4px; }
.entity-head input.title:hover, .entity-head input.title:focus { border-color: var(--control); background: var(--surface); }
.entity-head button.link { text-decoration: none; color: var(--muted); }
.tables-view { display: grid; gap: var(--gap); }
.tables-view .card + .card { margin-top: 0; }
.tables-view form.row + form.row { margin-top: 12px; }
.table-chips { display: flex; flex-wrap: wrap; gap: 8px; }
button.table-chip { background: var(--surface); color: var(--text); border-color: var(--control); min-width: 64px; min-height: 44px; font-weight: 600; }
button.table-chip:hover { background: var(--surface-2); }
button.table-chip.off { opacity: .5; text-decoration: line-through; }

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 220; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 999px; box-shadow: var(--float); font-weight: 600;
    animation: flash-in .2s cubic-bezier(.2, .8, .2, 1); max-width: min(560px, calc(100vw - 32px)); }
.toast.bad { background: var(--bad); color: #fff; border-radius: var(--radius); }
/* phones: the panel's fields and buttons stay inside the screen */
.drawer-body > *, .drawer fieldset > * { min-width: 0; }
.drawer .row > label { flex: 1 1 140px; min-width: 0; }
.drawer-foot { flex-wrap: wrap; }
@media (max-width: 600px) { .drawer-body { padding: 12px 12px 0; } .drawer .size-row { grid-template-columns: minmax(0, 1fr) 90px 24px; } .drawer-foot .grow { display: none; } }

/* courses, rules and settings in the builder */
.entity-head .order-no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2);
    font-weight: 700; font-size: 13px; }
.rules-view, .settings-view { display: grid; gap: var(--gap); }
.rules-view .card + .card, .settings-view .card + .card { margin-top: 0; }
.route-list, .rule-list { display: grid; gap: 8px; margin-bottom: 12px; }
.route { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border);
    border-radius: var(--radius-s); }
button.rule { display: grid; gap: 4px; text-align: left; justify-content: stretch; white-space: normal; background: var(--surface); color: var(--text);
    border-color: var(--border); padding: 12px 14px; min-height: 0; font-weight: 400; }
button.rule:hover { background: var(--surface-2); }
button.rule.off { opacity: .6; }
.rule-head { display: flex; gap: 8px; align-items: center; }
.rule .when { color: var(--muted); }
.rule .then { font-weight: 600; margin-left: 6px; }
.modal fieldset { display: grid; gap: 10px; }
.modal details > summary { color: var(--text); font-weight: 500; }
.settings-view { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.settings-view > p { grid-column: 1 / -1; }
.setting { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.setting:last-child { border-bottom: 0; }
.setting .hint { font-size: 12.5px; color: var(--muted); padding-left: 26px; }
.setting label > .hint { padding-left: 0; }

/* event page: the setup steps on top */
.setup { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-bottom: var(--gap);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.step { display: grid; gap: 4px; align-content: start; padding: 16px 20px; margin: -1px 0 0 -1px; border-left: 1px solid var(--border); border-top: 1px solid var(--border);
    background: var(--surface); text-decoration: none; color: var(--text); position: relative; transition: background-color .15s; }
.step:hover { background: var(--surface-2); }
.step .step-no { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px;
    background: var(--surface-2); margin-bottom: 6px; }
.step.done .step-no { background: var(--ok); color: #fff; }
.step.done .step-no::before { content: "✓"; }
.step.done .step-no { font-size: 0; }
.step.done .step-no::before { font-size: 13px; }
.step.todo { background: color-mix(in srgb, var(--warn-bg) 60%, var(--surface)); }
.step.todo .step-no { background: var(--warn-edge); color: var(--warn-ink); }
.step .step-go { margin-top: 8px; font-size: 13.5px; font-weight: 600; }
.add-people { display: grid; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius-s); background: var(--surface-2); }
.add-people .row { align-items: flex-end; }
label.narrow, .row > label.narrow { flex: 0 1 150px; }
.person-picks { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin: 8px 0; }
label.pick { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-s);
    background: var(--surface); font-weight: 400; cursor: pointer; }
label.pick:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
label.pick > span { display: grid; }
details.pin > summary { list-style: none; cursor: pointer; }
details.pin > summary::-webkit-details-marker { display: none; }
details.pin[open] > summary { margin-bottom: 6px; }
#more details { border-top: 1px solid var(--rule); padding: 6px 0; }
#more details > summary { color: var(--text); font-weight: 500; }

/* events list: one card per event with how far it is set up */
.event-cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-bottom: var(--gap); }
.event-card { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
    text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.event-card:hover { border-color: var(--control); background: var(--surface-2); }
.event-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.event-head strong { font-size: 1.05rem; }
ul.event-checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13.5px; }
ul.event-checks li::before { display: inline-block; width: 18px; font-weight: 700; }
ul.event-checks li.ok::before { content: "✓"; color: var(--ok); }
ul.event-checks li.open::before { content: "○"; color: var(--warn); }
ul.event-checks li.open { color: var(--warn-ink); }

/* shift plan: one card per shift */
section.day { margin-bottom: 20px; }
.shift-cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: start; }
.shift-cards .card + .card { margin-top: 0; }
.card.shift { display: grid; gap: 10px; padding: 16px 18px; }
.card.shift.short { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); }
.shift-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.shift-head strong { font-size: 1.05rem; }
.card.shift form.inline { justify-self: start; }
.title-row input.search { width: min(320px, 100%); }
@media print { .shift-cards { grid-template-columns: repeat(2, 1fr); } .card.shift { break-inside: avoid; } }

/* shift plan board: one column per area, the shifts of the day under it */
.board { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); align-items: start; margin-bottom: 18px; }
.board-column { display: grid; gap: 10px; }
.board-column > h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.board .card + .card { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-form { display: inline-flex; align-items: center; gap: 0; margin: 0; }
.chip-form .badge { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.chip-x { border: 0; background: var(--surface-2); color: var(--muted); padding: 2px 7px; min-height: 0; line-height: 1.4;
    border-radius: 0 999px 999px 0; cursor: pointer; font-size: 13px; }
.chip-x:hover { color: var(--bad); background: var(--bad-bg); }
.add-person select { width: 100%; }
.day-tools { max-width: 420px; }
.day-tools[open] { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); }
fieldset.days { display: flex; flex-wrap: wrap; gap: 8px 14px; border: 0; padding: 0; margin: 0; }
fieldset.days legend { padding: 0; margin-bottom: 4px; }
td a.bad, .small a.bad { color: var(--bad); font-weight: 600; }
@media print {
    .board { grid-template-columns: repeat(3, 1fr); }
    .board .card.shift { break-inside: avoid; padding: 8px; }
}

/* event readiness list */
ul.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
ul.checklist li { display: grid; grid-template-columns: 12px 120px 1fr; gap: 10px; align-items: baseline; }
ul.checklist .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); align-self: center; }
ul.checklist li.warn .dot { background: var(--warn); }
ul.checklist li.bad .dot { background: var(--bad); }
ul.checklist li a { color: inherit; }
@media (max-width: 600px) { ul.checklist li { grid-template-columns: 12px 1fr; } ul.checklist li a { grid-column: 2; } }

/* live view of a box (remote support) */
.live-grid { align-items: start; }
.live-table { max-height: 70vh; overflow-y: auto; }
.live-table td code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
pre.live-log { max-height: 40vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.stat.bad { color: var(--bad); }

/* home: the next event as the lead block, the to-do list in a rail beside it (1fr + 384px, 24px gap) */
.page-title { align-items: flex-end; margin-bottom: 24px; }
.page-title h1 { margin-bottom: 4px; }
p.lead { margin: 0; color: var(--muted); font-size: 16px; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 24px; align-items: start; }
.dash-main { display: grid; gap: 24px; }
.dash-main > .card + .card { margin-top: 0; }
.dash-rail { display: grid; gap: 8px; }
.dash-rail .card + .rail-title { margin-top: var(--gap); }
.rail-title { font-size: 16px; margin: 0; }
.next-event .countdown { text-align: center; min-width: 72px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--surface-2); }
.next-event .countdown.bad { background: var(--bad-bg); color: var(--bad-ink); }
.next-event .countdown.warn { background: var(--warn-bg); color: var(--warn-ink); }
.next-event .countdown.ok { background: var(--ok-bg); color: var(--ok-ink); }
.countdown-n { display: block; font-size: 32px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.next-event .checklist { margin: 8px 0 16px; }
ul.todo-list { list-style: none; margin: 0; padding: 0; }
ul.todo-list li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: baseline; padding: 10px 0; }
ul.todo-list li + li { border-top: 1px solid var(--rule); }
ul.todo-list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); align-self: center; }
ul.todo-list li.warn .dot { background: var(--warn); }
ul.todo-list li.bad .dot { background: var(--bad); }
ul.todo-list a { color: inherit; text-decoration: none; }
ul.todo-list a:hover { text-decoration: underline; }
.small-button { margin-top: 8px; }
.card.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card.quick a { padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); text-decoration: none; color: var(--text); font-weight: 500; }
.card.quick a:hover { background: var(--surface-3); }
@media (max-width: 1023px) { .dash { grid-template-columns: 1fr; } }

/* lists of points: the line is the link, quiet until hovered */
ul.checklist li a { text-decoration: none; }
ul.checklist li a:hover { text-decoration: underline; }
details.ok-points { margin: 0 0 16px; }
details.ok-points > summary { color: var(--muted); }
.num, td.right { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Finanzen */
.bad-card { border-color: var(--bad); background: var(--bad-bg); color: var(--bad-ink); }
.bad-card a { color: inherit; text-decoration: underline; }
table.totals { width: auto; min-width: min(100%, 360px); margin-left: auto; border-collapse: collapse; }
table.totals td { padding: 4px 0 4px 16px; border: 0; }
table.totals td:first-child { padding-left: 0; }
table.totals tr.strong td { border-top: 2px solid var(--text); padding-top: 8px; font-weight: 650; }
.row.tight { gap: 6px; align-items: center; flex-wrap: wrap; }
.row.tight input { min-width: 0; }
.row.tight input:not(.narrow) { flex: 1 1 160px; }
.row.tight input.narrow { width: 6.5em; flex: none; }
.settings-form { display: grid; gap: 12px; max-width: 760px; }
.settings-form textarea { min-height: 70px; }
img.doc-logo { max-width: 160px; max-height: 90px; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: #fff; }
dl.two-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; margin: 0; }
dl.two-cols dt { font-size: .8rem; color: var(--muted); }
dl.two-cols dd { margin: 2px 0 0; }
/* the expense's way: draft → requested → approved → with the treasurer → paid out */
ol.flow { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; }
ol.flow li { padding: 4px 10px; border-radius: 999px; background: var(--rule); color: var(--muted); }
ol.flow li.done { background: var(--ok-bg); color: var(--ok-ink); }
ol.flow li.now { background: var(--primary); color: var(--on-primary); }
/* money in and out per month */
.chart-wrap { overflow-x: auto; }
svg.month-chart { display: block; max-width: none; height: 160px; }
svg.month-chart .bar-in { fill: var(--ok); }
svg.month-chart .bar-out { fill: var(--accent); }
svg.month-chart .axis { fill: var(--muted); font-size: 12px; }
svg.month-chart .base { stroke: var(--control); stroke-width: 1; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: -1px; }
.key.in { background: var(--ok); }
.key.out { background: var(--accent); }
@media (max-width: 640px) {
    table.totals { min-width: 100%; }
    .row.tight input.narrow { width: 5.5em; }
}

/* ---------------------------------------------------------------- Finanzen: forms with fewer, grouped fields */
/* a choice of a few: radio buttons drawn as one control (the radio itself stays for keyboard and screen readers) */
.segmented label { position: relative; display: inline-flex; align-items: center; padding: 0 16px; min-height: 36px;
    cursor: pointer; font-weight: 500; background: var(--surface); }
.segmented label + label { border-left: 1px solid var(--control); }
.segmented label input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented label:has(input:checked) { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--info); outline-offset: -3px; }

/* choices with a line of explanation, as cards */
fieldset.choice-cards { border: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
fieldset.choice-cards legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.choice-cards label { position: relative; display: grid; gap: 3px; align-content: start; padding: 12px 14px; cursor: pointer;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-weight: 400; }
.choice-cards label input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-cards label:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--surface-2); }
.choice-cards label:has(input:focus-visible) { outline: 2px solid var(--info); outline-offset: 2px; }
.choice-cards label strong { font-size: 15px; }

/* the customer: name, address and contact side by side, the rarely needed parts folded */
.customer-form { display: grid; gap: var(--gap); }
.form-sections { display: grid; gap: 14px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
.form-sections fieldset { align-content: start; }
.form-sections fieldset legend { font-weight: 600; padding: 0 4px; }
.form-sections .fold { grid-column: 1 / -1; }
.pair { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.street { display: grid; gap: 10px; grid-template-columns: 1fr 88px; }
.town { display: grid; gap: 10px; grid-template-columns: 96px 1fr 64px; }
details.fold { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; display: grid; gap: 10px; }
details.fold[open] { padding-bottom: 14px; }
details.fold > summary { cursor: pointer; font-weight: 600; }
details.fold[open] > summary { margin-bottom: 8px; }
details.fold > * + * { margin-top: 10px; }
.customer-form:has(input[name=kind][value=PERSON]:checked) .org-only { display: none; }
.billing-only { display: none; gap: 10px; }
details.fold:has(input[name=ownBilling]:checked) .billing-only { display: grid; }

/* the settings: sections that open, the everyday ones first */
.settings { display: grid; gap: 12px; max-width: 900px; }
.settings-group > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.settings-group > summary::-webkit-details-marker { display: none; }
.settings-group > summary::after { content: "▾"; color: var(--muted); }
.settings-group[open] > summary::after { content: "▴"; }
.settings-group > summary h2 { margin: 0; }
.settings-group[open] > summary { margin-bottom: 10px; }
.settings-group > * + * { margin-top: 12px; }
.settings-grid { display: grid; gap: 12px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); align-items: end; }
.settings-grid .span-all { grid-column: 1 / -1; }
.settings-grid textarea { min-height: 70px; }
.qrr-only { display: none; }
.settings-group:has(input[name=qr-reference][value=QRR]:checked) .qrr-only { display: grid; }
.settings-group .vat-only { display: none; }
.settings-group:has(input[name=vat-enabled]:checked) .vat-only { display: grid; }
.save-bar { position: sticky; bottom: 0; padding: 12px 0; background: var(--sheet); display: flex; justify-content: flex-end; }
.logo-card { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: center; }
.logo-card .doc-logo { max-height: 56px; width: auto; }

/* Finanzen start: what to create, what is left to set up */
.quick-create { margin: 4px 0 16px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.quick-create a, .quick-create button { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; min-height: 0; }
.quick-create a:hover, .quick-create button:hover { border-color: var(--primary); }
.quick-create .muted { font-weight: 400; }
.setup-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.setup-list li { display: flex; gap: 10px; align-items: baseline; }
.setup-list li::before { content: "○"; color: var(--muted); }
.setup-list li.done::before { content: "✓"; color: var(--ok); font-weight: 700; }
.setup-list li.done a { color: var(--muted); }

@media (max-width: 560px) {
    .pair, .town { grid-template-columns: 1fr 1fr; }
    .town label:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
}
.new-doc { display: grid; gap: 14px; max-width: 900px; }
.new-doc .card > * + * { margin-top: 12px; }
.new-doc h2 { display: flex; align-items: center; gap: 10px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; line-height: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--primary);
    color: var(--on-primary); font-size: 13px; font-weight: 700; flex: none; }
.new-doc .mode-new { display: none; }
.new-doc:has(input[name=customerMode][value=new]:checked) .mode-new { display: grid; }
.new-doc:has(input[name=customerMode][value=new]:checked) .mode-existing { display: none; }
.setup-card { margin-bottom: var(--gap); }
.sub-legend { margin: 4px 0 -4px; font-weight: 600; font-size: 13px; color: var(--muted); }
.settings-grid .span-2 { grid-column: span 2; }
@media (max-width: 560px) { .settings-grid .span-2 { grid-column: 1 / -1; } }
.doc-head { display: grid; gap: 12px; }
.page-actions { margin-bottom: var(--gap); }

[hidden] { display: none !important; }

/* long lists: the first rows, the others behind a button */
table[data-paged]:not(.show-all) .over-page { display: none; }
.show-more { margin-top: 10px; }

/* the menu's long group folds; it opens by itself on one of its pages */
header.top nav details.nav-fold { display: flex; flex-direction: column; gap: 2px; }
header.top nav details.nav-fold[open] > a { display: flex; padding-left: 36px; }
header.top nav .nav-fold > summary { cursor: pointer; list-style: none; }
header.top nav .nav-fold > summary::-webkit-details-marker { display: none; }
header.top nav .nav-fold > summary::after { content: "›"; margin-left: auto; font-size: 16px; line-height: 1; transition: transform .15s; }
header.top nav .nav-fold[open] > summary::after { transform: rotate(90deg); }

/* a new event: what only a gastro event has */
form:has(input[name=kind][value=SHIFTS]:checked) .gastro-only { display: none; }

/* shift planning */
progress.meter { width: 100%; height: 6px; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-3); accent-color: var(--ok); }
progress.meter::-webkit-progress-bar { background: var(--surface-3); }
progress.meter::-webkit-progress-value { background: var(--ok); }
progress.meter::-moz-progress-bar { background: var(--ok); }
.shift-note { padding: 4px 8px; border-radius: var(--radius-s); background: var(--surface-2); overflow-wrap: anywhere; }
details.fold > .event-cards { margin-top: 12px; }
label.search { display: block; max-width: 360px; margin-bottom: 12px; }

/* ---------------------------------------------------------------- usability: every page */
/* a tick or a round choice sits beside its words */
label:where(:has(> input[type=checkbox], > input[type=radio])) { display: flex; align-items: center; gap: 8px; font-weight: 400; }
/* the file button looks like the other buttons */
input[type=file] { height: auto; padding: 6px 8px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--control);
    border-radius: 6px; padding: 5px 12px; margin-right: 10px; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--surface-2); }
code { font-size: max(12px, .92em); }
.row > label.search { margin-bottom: 0; }
form:not([class]) > label > input[type=number] { max-width: 12em; }
td a[href*="/finance/documents/"] { white-space: nowrap; }

/* the way back: above the page title, always in the same place */
main > .title-row > a:not(.button) { order: -1; flex: 0 0 100%; margin-bottom: -4px; }
main > .title-row > a:not(.button)::before { content: "‹\00a0"; }
main > p.small:has(> a:only-child) { margin: 0 0 6px; }
main > p.small:has(> a:only-child) a { color: var(--muted); text-decoration: none; }
main > p.small:has(> a:only-child) a:hover { color: var(--text); }
/* links beside a title: quiet, the buttons do the work */
.title-row .actions > a:not(.button) { color: var(--muted); font-size: 14px; text-decoration: none; }
.title-row .actions > a:not(.button):hover { color: var(--text); text-decoration: underline; }

/* the fields of the menu editor: same width, words on top, hint below, the ticks together after them */
.field-grid { display: grid; gap: 16px var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); align-items: start; }
.field-grid > label.check { grid-column: 1 / -1; order: 2; }
.field-grid .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.menu-head { margin-bottom: var(--gap); }
.menu-head p:last-child { margin-bottom: 0; }

/* months without an event take one line; the columns of the months line up */
.card.empty-month { display: flex; align-items: baseline; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.card.empty-month h2, .card.empty-month p { margin: 0; }
.card.empty-month + .card { margin-top: 8px; }
.card:has(+ .card.empty-month) { margin-bottom: 0; }
.card.empty-month { margin-top: 8px !important; }
table.calendar { table-layout: fixed; }
table.calendar :is(th, td):nth-child(1) { width: 24%; }
table.calendar :is(th, td):nth-child(3) { width: 20%; }
table.calendar :is(th, td):nth-child(4) { width: 18%; }

/* a block that stands in a card: a step of tone, no line inside a line */
.card .card:not(.tile) { background: var(--surface-2); border-color: transparent; }

/* a list where the work comes first, the form for a new entry after it */
main.list-first { display: flex; flex-direction: column; gap: var(--gap); }
main.list-first > * { margin: 0 !important; width: 100%; }
main.list-first > .new-entry { order: 9; }

@media (max-width: 640px) {
    /* the setup steps as short rows: what, and how far */
    .setup { grid-template-columns: 1fr; }
    .step { grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 10px 14px; }
    .step .step-no { margin: 0; }
    .step .small.muted { display: none; }
    .step .step-go { margin: 0; white-space: nowrap; }

    /* fingers: everything that is pressed is at least 40px high */
    details > summary { padding: 10px 0; }
    button.link { min-height: 40px; display: inline-flex; align-items: center; }
    .crumbs a, main > .title-row > a:not(.button), main > p.small > a, .title-row a:not(.button), .title-row .actions > a:not(.button) {
        min-height: 40px; display: inline-flex; align-items: center; }
    .chip-x { padding: 7px 10px; }
    td select { min-width: 8em; }

    /* a wide table becomes one block per row, each value with its column's name (page.js gives them the names) */
    table.stack, table.stack > tbody, table.stack tr, table.stack td { display: block; width: 100%; }
    table.stack tr:has(> th) { display: none; }
    table.stack tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
    table.stack tr:last-child { border-bottom: 0; }
    table.stack td.blank { display: none; }
    table.stack :is(th, td) { width: 100% !important; }
    table.stack td ul { display: inline-block; margin: 0; padding: 0; list-style: none; text-align: right; }
    table.stack td { padding: 3px 0; border: 0; text-align: right; overflow-wrap: anywhere; }
    table.stack td::before { content: attr(data-label); float: left; color: var(--muted); font-size: 13px; padding-right: 12px; }
    table.stack td:first-child, table.stack td[colspan] { text-align: left; font-weight: 500; }
    table.stack td:first-child::before, table.stack td[colspan]::before { content: none; }
    table.stack td:has(input:not([type=checkbox]), select, textarea) { text-align: left; }
    table.stack td:has(input:not([type=checkbox]), select, textarea)::before { float: none; display: block; padding-bottom: 4px; }
}

/* the presets: what belongs to an area shows once the area is set, so nothing can be changed that would not be saved */
.presets .when-unset { display: none; }
.preset-network:has(input[name=ssid]:placeholder-shown) .when-set,
.preset-payments:has(select[name=provider] option[value=""]:checked) .when-set,
.preset-devices:has(select[name=registrationPolicy] option[value=""]:checked) .when-set,
.preset-payments:not(:has(select[name=provider] option[value=WORLDLINE_TWINT]:checked)) .when-worldline { display: none; }
.preset-network:has(input[name=ssid]:placeholder-shown) .when-unset,
.preset-payments:has(select[name=provider] option[value=""]:checked) .when-unset,
.preset-devices:has(select[name=registrationPolicy] option[value=""]:checked) .when-unset { display: block; }
.flashes { scroll-margin-top: 64px; }

/* Nachrichten */
pre.mail-text { white-space: pre-wrap; font: inherit; font-size: 14px; background: var(--surface-2); padding: 12px 14px;
    border-radius: var(--radius-s); max-height: 480px; overflow: auto; }
form.stack:not(:has(input[name=audience][value=SHIFT]:checked)) .msg-shift { display: none; }
form.stack:not(:has(input[name=audience][value=PEOPLE]:checked)) .msg-people { display: none; }

/* Versionen: what to do, progress, the way of a box release (Entwurf → Test → Stabil), release cards */
ul.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.todo li { display: grid; grid-template-columns: 10px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--surface); }
ul.todo li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); grid-row: span 2; }
ul.todo li.ok::before { background: var(--ok); }
ul.todo li.warn::before { background: var(--warn); }
ul.todo li.bad::before { background: var(--bad); }
ul.todo li.info::before { background: var(--info); }
ul.todo li .todo-text { min-width: 0; }
ul.todo li .todo-text strong { display: block; }
ul.todo li .todo-go { grid-row: span 2; white-space: nowrap; }
@media (max-width: 600px) { ul.todo li { grid-template-columns: 10px 1fr; } ul.todo li .todo-go { grid-column: 2; grid-row: auto; } }

.meter { display: grid; gap: 4px; }
.meter .bar { height: 8px; border-radius: 999px; background: var(--off); overflow: hidden; display: flex; }
.meter .bar span { display: block; height: 100%; }
.meter .bar .ok { background: var(--ok); }
.meter .bar .warn { background: var(--warn); }
.meter .bar .bad { background: var(--bad); }
.meter .legend { font-size: 13px; color: var(--muted); }

.component-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: var(--gap) 0; }
.component-cards .card { display: grid; gap: 10px; align-content: start; margin: 0; }
.component-cards .card h2 { margin: 0; font-size: 15px; color: var(--muted); font-weight: 600; }
.component-cards .big { font-size: 24px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }

ol.lifecycle { display: flex; list-style: none; padding: 0; margin: 0; gap: 0; counter-reset: step; flex-wrap: wrap; }
ol.lifecycle li { flex: 1 1 0; min-width: 90px; position: relative; padding: 0 8px 0 0; font-size: 13px; color: var(--muted); }
ol.lifecycle li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 26px; height: 26px;
    border-radius: 50%; border: 2px solid var(--control); background: var(--surface); font-weight: 700; margin-bottom: 6px; color: var(--muted); }
ol.lifecycle li::after { content: ""; position: absolute; top: 13px; left: 30px; right: 4px; height: 2px; background: var(--control); }
ol.lifecycle li:last-child::after { display: none; }
ol.lifecycle li strong { display: block; color: var(--text); font-size: 14px; }
ol.lifecycle li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: var(--on-primary); }
ol.lifecycle li.done::after { background: var(--ok); }
ol.lifecycle li.current::before { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
ol.lifecycle.withdrawn li { opacity: .5; }

.release-list { display: grid; gap: 10px; }
.release-card { display: grid; grid-template-columns: minmax(0, 1fr) 240px 290px; gap: 8px 20px; align-items: center; margin: 0; }
.release-card.withdrawn { opacity: .6; }
.release-card .rel-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.release-card .rel-title a { font-size: 17px; font-weight: 700; text-decoration: none; color: inherit; }
.release-card .rel-title a:hover { text-decoration: underline; }
.release-card .rel-meta { font-size: 13px; color: var(--muted); }
.release-card .rel-notes { font-size: 14px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.release-card .actions { justify-content: flex-end; }
@media (max-width: 860px) { .release-card { grid-template-columns: 1fr; } .release-card .actions { justify-content: flex-start; } }

.cloud-hero { display: grid; gap: 12px; }
.cloud-hero .big { font-size: 26px; font-weight: 700; }
.version-table td:first-child { white-space: nowrap; }
.version-table tr.current td { background: var(--ok-bg); }
.from-to { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 18px; }
.from-to code { font-size: 18px; padding: 4px 10px; }
.from-to .arrow { color: var(--muted); }
ul.plain { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.card > ol.lifecycle + * { margin-top: 18px; }
.card > ol.lifecycle { margin-top: 14px; }

/* the filters of the log (Protokoll): all five in one row on a PC */
.audit-filters .row > label { flex: 1 1 120px; min-width: 0; }
.audit-filters .row > label.wide-field { flex: 2 1 200px; }
.audit-filters .row > label.narrow { flex: 0 0 150px; }
/* a date field needs its room (the browser's calendar button): not squeezed into 150 px */
label.narrow:has(input[type=date]), .row > label.narrow:has(input[type=date]), .audit-filters .row > label.narrow:has(input[type=date]) { flex: 0 0 170px; }

/* guest feedback on the report: share of each star count */
.fb-bar { height: 10px; min-width: 2px; border-radius: 5px; background: var(--accent, #b71c1c); }

/* small helpers instead of style="…" (the admin pages allow no inline styles) */
.strike { text-decoration: line-through; }
.flush { margin: 0; }
.block { display: block; }
.spaced { margin-top: var(--gap); }
.full-width { width: 100%; }
/* checklist: a real box to tick (44 px), the text right beside it, "entfernen" set apart at the end */
.checklist li { display: flex; align-items: center; gap: 10px; }
.check-box { flex: none; width: 32px; height: 32px; min-height: 0; padding: 0; border: 2px solid var(--muted, #888); border-radius: 6px;
    background: transparent; color: inherit; font-weight: 800; cursor: pointer; display: grid; place-items: center; outline-offset: 6px; }
.check-box.on { background: var(--ok, #1b6b3a); border-color: var(--ok, #1b6b3a); color: #fff; }
.checklist li > span:last-child { flex: 1; min-width: 0; }
.checklist .remove { float: right; margin-left: 16px; }
/* document numbers and counts never break inside ("R- / 2026- / 003") */
.todo-list a, .doc-no { white-space: nowrap; }
.todo-list li { overflow-wrap: anywhere; }
/* the home rail holds sentences, not numbers: they wrap */
.dash-rail .todo-list a { white-space: normal; }
.dash-rail ul.todo-list .dot { align-self: start; margin-top: 7px; }



/* the entrance (EntryController): the helpers' link with its QR code */
.entry-link { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.entry-link img { width: 160px; height: 160px; border: 1px solid var(--border); border-radius: var(--radius-s); background: #fff; padding: 6px; }
.entry-link > div { flex: 1 1 260px; min-width: 0; }
.entry-link a.link { word-break: break-all; }

/* ---- Finanzen of an event (event-finance.html, finance-compare.html) */
.fin-table th.right, .fin-table td.right { white-space: nowrap; }
.fin-table tr.group th { background: var(--surface-2); text-align: left; font-weight: 650; padding-top: 10px; }
.fin-table tfoot tr.total td, .fin-table tr.strong td { font-weight: 650; border-top: 2px solid var(--text); }
.fin-table tr.from-elsewhere td { color: var(--muted); }
.fin-table input.narrow { width: 6.5em; text-align: right; }
.fin-category { margin-top: calc(var(--gap) * 1.5); }
.fin-category h3 { margin: 0; }
.fin-item { border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; margin: 8px 0; background: var(--surface); }
.fin-item > summary { cursor: pointer; padding: 4px 0; }
.fin-item h4 { margin: 14px 0 6px; font-size: 14px; }
.add-box { margin: 10px 0 14px; }
.add-box > summary { display: inline-flex; list-style: none; cursor: pointer; }
.add-box > summary::-webkit-details-marker { display: none; }
.add-box[open] > summary { margin-bottom: 10px; }
.close-box { margin-top: var(--gap); display: grid; gap: 10px; }
.report-list { display: grid; gap: 0; }
.report-list .report { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
    padding: 10px 0; border-top: 1px solid var(--border); }
.report-list .report:first-child { border-top: 0; }
ul.plain { list-style: none; padding: 0; margin: 4px 0; }
td.nowrap, .nowrap { white-space: nowrap; }
@media (max-width: 700px) {
    td.nowrap { white-space: normal; }
    .fin-table input.narrow { width: 5em; }
}
.fin-item .fin-table input[name=name] { width: 11em; }
.fin-item .fin-table input[name=reason] { width: 15em; }
.fin-item .fin-table td .small.muted { display: block; white-space: nowrap; }

/* ---- accounts, roles and rights (accounts.html) */
.rights { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rights fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px 10px; margin: 0; }
.rights legend { font-weight: 650; padding: 0 4px; }
.rights .right-item { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.rights .right-item input { margin-top: 3px; }
.matrix td.center, .matrix th.center { text-align: center; }
details.scope { margin-top: 6px; }
details.scope select { width: 100%; }
.rights-table td.center, .rights-table th.center { text-align: center; width: 6.5em; }
.rights-table input[type=radio] { width: 18px; height: 18px; }
.specials { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin: 0; }
.specials legend { font-weight: 650; padding: 0 4px; }
.matrix tr.group th { background: var(--surface-2); text-align: left; }
/* the event's state: the topic beside its dot, the message under the topic, never squeezed to a word per line */
ul.state-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
ul.state-list li > span:last-child { grid-column: 2; }
ul.state-list .dot { align-self: center; }
/* qualifications: the names in one column, «gültig bis» lined up beside them */
.qual-row { display: grid; grid-template-columns: minmax(0, 16rem) auto; align-items: center; justify-content: start; gap: 8px 16px; }
@media (max-width: 520px) { .qual-row { grid-template-columns: minmax(0, 1fr); } }
