@font-face { font-family: "HuS Grotesk"; src: url('/fonts/HuSGrotesk-Regular.ttf'); font-weight: 400; }
@font-face { font-family: "HuS Grotesk"; src: url('/fonts/HuSGrotesk-Bold.ttf'); font-weight: 700; }
:root { --brand: #244AA5; --brand-dark: #1B3A85; --tint: #E8EEF8; --text: #0E2334; --muted: #5A6B78; --slate: #5B7A93; --surface: #FFFFFF; --backdrop: #E6EDF3; --nav-text: rgba(255,255,255,.82); --nav-line: rgba(255,255,255,.3); --nav-hover: rgba(255,255,255,.12); --shadow: rgba(20,44,102,.18); --dialog-backdrop: rgba(14,35,52,.55); --ok: #0B7A57; --ok-tint: #E6F7F1; --error: #C62828; --error-back: #FDECEC; --warning: #8A5300; --warning-back: #FFF4E0; --alt: #F5F7F9; --line: #E4E8EC; --border: #778592; }
* { box-sizing: border-box; border-radius: 0; }
body { margin: 0; padding: 12px; font: 14px "HuS Grotesk", sans-serif; color: var(--text); background: var(--backdrop); }
button, input, select, textarea { font: inherit; }
button, a { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.shell { display: flex; align-items: flex-start; gap: 12px; }
nav { position: sticky; top: 12px; width: 232px; height: calc(100vh - 24px); flex: 0 0 232px; display: flex; flex-direction: column; overflow-y: auto; padding: 20px 12px 12px; background: var(--brand); color: var(--surface); border-radius: 12px; box-shadow: 0 4px 16px var(--shadow); }
.nav-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 8px 12px; }
.nav-menu { display: flex; flex: 1; flex-direction: column; }
.nav-toggle { display: none; }
.nav-brand #logo { height: 24px; width: auto; display: block; }
.product { font-size: 18px; }
.context { color: var(--nav-text); font-size: 12px; text-transform: uppercase; }
.nav-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--nav-text); padding: 16px 12px 4px; }
nav a { display: flex; align-items: center; min-height: 36px; padding: 0 12px; color: var(--nav-text); text-decoration: none; }
nav a:hover { background: var(--nav-hover); }
nav a.on { background: var(--surface); color: var(--brand); font-weight: 700; }
nav :focus-visible { outline-color: var(--surface); outline-offset: -2px; }
.nav-footer { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--nav-line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.user { flex: 1; overflow-wrap: break-word; hyphens: manual; }
.bar-button { color: var(--surface); border: 1px solid var(--surface); background: transparent; min-height: 32px; padding: 0 8px; }
.bar-button:hover { background: var(--nav-hover); }
.nav-report { flex: 0 0 100%; padding: 0; border: 0; background: transparent; color: var(--nav-text); font-size: 12px; text-align: left; }
.nav-report:hover, .nav-report:focus-visible { background: var(--nav-hover); }
.nav-report-error { flex: 0 0 100%; color: var(--surface); font-size: 12px; }
.nav-report-error:empty { display: none; }
.embedded .nav-footer .user, .embedded .nav-footer .bar-button { display: none; }
.workspace { flex: 1; min-width: 0; min-height: calc(100vh - 24px); display: flex; flex-direction: column; }
main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.cmd { min-height: 56px; display: flex; align-items: center; padding: 0 20px; background: var(--surface); box-shadow: 0 4px 16px var(--shadow); }
h1 { font-size: 20px; margin: 0; }
h2, .lab { font-size: 15px; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.content h2:first-child { margin-top: 0; }
.content { flex: 1; margin-top: 12px; padding: 24px; background: var(--surface); box-shadow: 0 4px 16px var(--shadow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.tiles { display: flex; gap: 8px; }
.tile { position: relative; flex: 1 1 0; min-width: 0; min-height: 80px; display: flex; align-items: center; gap: 12px; padding: 12px; text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.tile:hover:not(:disabled) { border-color: var(--brand); }
.tile-icon { width: 48px; height: 48px; padding: 11px; flex: none; background: var(--tint); color: var(--brand); }
.tile.on .tile-icon { background: var(--surface); }
.tile:disabled .tile-icon { background: var(--line); color: var(--muted); }
.tile-status { position: absolute; top: 6px; right: 6px; width: 16px; height: 16px; display: none; }
.tile.on .tile-status, .tile.locked .tile-status { display: block; }
.tile-name { font-size: 16px; font-weight: 700; }
.tile-hint { margin-top: 12px; padding: 12px; border: 1px solid var(--warning); background: var(--warning-back); }
.tile-hint p { margin: 6px 0; }
.tile-hint-link { display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 760px) { .tiles { flex-direction: column; } }
.tile.on { border: 2px solid var(--brand); background: var(--tint); color: var(--brand); font-weight: 700; }
.field { display: inline-flex; flex-direction: column; gap: 4px; margin: 0 12px 12px 0; color: var(--muted); }
.field input { height: 32px; border: 1px solid var(--border); padding: 0 8px; color: var(--text); background: var(--surface); }
.btn { min-height: 32px; padding: 0 12px; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.btn:hover, .chip:hover { background: var(--alt); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.btn.primary:hover { background: var(--brand-dark); }
.list .row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row .name { font-weight: 700; min-width: 160px; }
.row .details { color: var(--muted); flex: 1; }
.row.busy .name { color: var(--muted); font-weight: 400; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vehicle-document-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.message { background: var(--tint); border: 1px solid var(--brand); padding: 10px 12px; }
.message.error { border-color: var(--error); background: var(--error-back); }
.error { color: var(--error); font-weight: 700; }
dialog { border: 1px solid var(--border); padding: 24px; color: var(--text); max-width: min(500px, 95vw); width: 100%; }
dialog::backdrop { background: var(--dialog-backdrop); }
dialog h2 { font-size: 18px; text-transform: none; letter-spacing: normal; color: var(--text); margin: 0 0 16px; }
dialog .field { display: flex; margin-right: 0; }
dialog .actions { justify-content: flex-end; margin-top: 16px; }
.search-results { display: flex; flex-direction: column; align-items: stretch; }
.search-results button { text-align: left; padding: 8px; border: 1px solid var(--line); background: var(--surface); }
.field select { height: 32px; border: 1px solid var(--border); padding: 0 8px; color: var(--text); background: var(--surface); }
.admin-category { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--line); }
.admin-category form { flex: 1; }
.admin-attribute-list { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; align-items: center; gap: 8px; margin-bottom: 8px; }
.admin-attribute { display: contents; }
.admin-attribute button { justify-self: stretch; }
.field textarea { min-height: 90px; border: 1px solid var(--border); padding: 8px; color: var(--text); background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; text-align: left; }
.admin-table th, .admin-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tbody th { background: var(--alt); }
.admin-table small { display: block; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 760px) { .nav-toggle { display: block; } .nav-menu { display: none; flex-basis: 100%; } .nav-toggle[aria-expanded="true"] + .nav-menu { display: flex; } nav { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px; } .nav-brand { flex-direction: row; align-items: center; padding: 0; } .nav-brand .context { display: none; } .shell { flex-direction: column; } nav { position: static; width: 100%; height: auto; flex: none; } .nav-links, #admin-nav { display: flex; flex-wrap: wrap; align-items: center; } .nav-label { padding: 8px 12px; } .nav-footer { margin-top: 12px; } .workspace { width: 100%; } .grid2 { grid-template-columns: 1fr; gap: 0; } .row { flex-wrap: wrap; } }

.overview-controls { gap: 16px; flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; }
.overview-filters, .overview-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.overview-filters { flex: 1; }
.overview-chips { margin-right: auto; }
.chip { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.chip.on { background: var(--tint); border-color: var(--brand); color: var(--brand); font-weight: 700; }
.seg { display: inline-flex; }
.seg .chip + .chip { margin-left: -1px; }
.seg .chip.on { position: relative; z-index: 1; background: var(--tint); color: var(--brand); border-color: var(--brand); }
.timeline-scroll { overflow-x: auto; }
.timeline-table { min-width: 950px; }
.timeline-table.day { min-width: 950px; }
.timeline-row { display: flex; min-height: 42px; border-bottom: 1px solid var(--line); }
.timeline-heading { min-height: 30px; background: var(--alt); font-weight: 700; }
.timeline-resource { position: sticky; left: 0; z-index: 2; flex: 0 0 180px; padding: 6px 8px; background: var(--surface); }
.timeline-heading .timeline-resource { background: var(--alt); }
.timeline-resource small { display: block; color: var(--muted); }
.timeline-track { display: flex; position: relative; flex: 1; min-width: 0; }
.timeline-column { flex: none; border-left: 1px solid var(--line); padding: 6px 4px; }
.timeline-bar { position: absolute; z-index: 1; top: 6px; bottom: 6px; border: 0; padding: 0 8px; overflow: hidden; white-space: nowrap; text-align: left; background: var(--slate); color: var(--surface); }
.timeline-bar.mine { background: var(--brand); font-weight: 700; }

.booking-filters .filter-check { display: inline-flex; align-items: center; gap: 4px; margin: 0 12px 12px 0; }
.filter-choice { display: inline-block; border: 0; padding: 0; margin: 0 12px 0 0; }
.filter-choice legend { color: var(--muted); margin-bottom: 4px; }
.filter-reset { background: transparent; border: 0; padding: 0; color: var(--brand); text-decoration: underline; }
.filter-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.row .attrs { display: block; color: var(--muted); }
.calendar-subscription { padding: 16px; margin-bottom: 24px; border: 1px solid var(--line); background: var(--alt); }
.calendar-subscription h2 { margin-top: 0; }
.calendar-subscription input { width: 100%; height: 32px; margin-bottom: 12px; padding: 0 8px; border: 1px solid var(--border); color: var(--text); background: var(--surface); }

@media (max-width: 760px) {
  .admin-attribute-list { grid-template-columns: minmax(0, 1fr); }
  .admin-attribute { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
  .admin-attribute .details { flex: 0 0 100%; overflow-wrap: break-word; hyphens: manual; }
  .admin-attribute > span:not(.details) { display: none; }
}

.defect-hint { display: block; color: var(--warning); overflow-wrap: break-word; hyphens: manual; }
.defect-hint.unusable { color: var(--error); }
.defect-count { margin-left: 8px; padding: 2px 6px; background: var(--surface); color: var(--brand); }
.defect-controls { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }

.admin-mail-scroll { overflow-x: auto; }
.admin-mail-scroll td { overflow-wrap: break-word; hyphens: manual; }

.catering { margin: 12px 0; padding: 12px; border: 1px solid var(--line); }


.catering-items { margin: 0 0 12px; padding: 0; border: 0; }
.catering-items legend { margin-bottom: 4px; color: var(--muted); }
.catering-choice { display: flex; align-items: center; gap: 8px; margin: 4px 0; }

.admin-tabs { display: flex; flex-wrap: wrap; margin: 0 0 20px; }
.admin-tabs .chip { border-radius: 0; }

.btn.danger { color: var(--error); border-color: var(--error); }
.btn.danger:hover { background: var(--error); color: var(--surface); }

.tile span { display: block; }
.tile-count { margin-top: 4px; color: var(--muted); font-weight: 400; }
.tile:disabled { background: var(--alt); color: var(--muted); cursor: default; opacity: .55; }
.filter-equipment { display: block; }
.booking-filters .filter-reset { display: block; margin-bottom: 12px; }
.catering-choice-group { border: 0; padding: 0; margin: 0 0 12px; }
.catering-choice-group legend { font-weight: 700; margin-bottom: 4px; }
.catering-choice-group label { display: inline-flex; align-items: center; gap: 4px; margin-right: 16px; }
.field-error { margin: 4px 0 0; }
.booking-confirmation h2 { margin-top: 0; }

.booking-confirmation { border: 1px solid var(--brand); background: var(--tint); }
.booking-confirmation:focus:not(:focus-visible) { outline: none; }

.mine-list .row { align-items: flex-start; }
.mine-list .name { color: var(--text); }
.mine-list .details { min-width: 0; }
.mine-menu-wrap { position: relative; }
.mine-menu { position: absolute; right: 0; z-index: 3; min-width: min(220px, calc(100vw - 32px)); max-width: calc(100vw - 32px); padding: 4px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 4px 16px var(--shadow); }
.mine-menu .btn { display: block; width: 100%; text-align: left; }
.calendar-subscription { margin-top: 24px; }
.calendar-subscription summary { cursor: pointer; font-weight: 700; }

.overview-filters label { display: inline-flex; align-items: center; gap: 8px; }
.overview-filters select { min-height: 32px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.timeline-slot { border: 0; border-left: 1px solid var(--line); background: transparent; color: transparent; cursor: pointer; }
.timeline-slot:hover, .timeline-slot:focus-visible { color: var(--text); background: var(--tint); }
.timeline-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--error); pointer-events: none; z-index: 2; }
.timeline-bar.mine { background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--slate) 5px 7px); }
.timeline-table.week .timeline-bar { min-width: 28px; padding: 0; overflow: hidden; }
.timeline-bar-text { display: block; overflow: hidden; padding: 0 4px; text-overflow: ellipsis; white-space: nowrap; }
.overview-list-resource { padding: 12px 0; border-bottom: 1px solid var(--line); }
.overview-list-resource h2 { margin: 0 0 8px; }
.overview-list-booking { display: block; width: 100%; margin-bottom: 8px; padding: 8px; text-align: left; border: 1px solid var(--line); background: var(--alt); color: var(--text); }

.mine-group + .mine-group { margin-top: 32px; }


.overview-date-navigation { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.timeline-table.day .timeline-bar { text-overflow: ellipsis; }
.timeline-bar-short { display: inline; padding: 0 4px; }

.admin-back { color: var(--brand); text-decoration: underline; }



.logbook-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.logbook-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.logbook-table th, .logbook-table td { padding: .5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.logbook-void td:not(:last-child) { text-decoration: line-through; }
.logbook-print nav { display: none; }
@media (max-width: 760px) {
  .logbook-table, .logbook-table tbody, .logbook-table tr, .logbook-table td { display: block; }
  .logbook-table thead { display: none; }
  .logbook-table td.empty { display: none; }
  .logbook-table tr { margin-bottom: 1rem; }
  .logbook-table td[data-label]::before { content: attr(data-label) ': '; font-weight: bold; }
}
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  .logbook-print nav, .logbook-print .print-action { display: none; }
  .logbook-print .logbook-table { font-size: 9pt; }
  .logbook-print .logbook-table, .logbook-print .logbook-table tbody, .logbook-print .logbook-table tr, .logbook-print .logbook-table td { display: revert; }
  .logbook-print .logbook-table thead { display: table-header-group; }
  .logbook-print .logbook-table td.empty { display: table-cell; }
  .logbook-print .logbook-table td::before { content: none; }
}

.timeline-block { background: repeating-linear-gradient(135deg, var(--alt) 0 5px, var(--border) 5px 7px); color: var(--text); border-radius: 0; }
.timeline-block-label { display: inline-block; max-width: 100%; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; vertical-align: top; background: var(--surface); color: var(--text); }
dialog p { white-space: pre-line; }

.people-table td:last-child { width: 1%; white-space: nowrap; }
.people-table td:last-child .btn + .btn { margin-left: 8px; }
@media (max-width: 760px) {
  .people-table, .people-table tbody, .people-table tr, .people-table td { display: block; width: 100%; }
  .people-table thead { display: none; }
  .people-table tr { margin-bottom: 12px; }
  .people-table td { overflow-wrap: anywhere; }
  .people-table td[data-label]::before { content: attr(data-label) ': '; font-weight: 700; }
  .people-table td:last-child { width: 100%; white-space: normal; }
}

.people-import-dialog { width: min(1100px, calc(100vw - 32px)); max-width: min(1100px, calc(100vw - 32px)); }
.people-import-scroll { overflow-x: auto; }
.people-import-scroll .admin-table { min-width: 900px; }
.people-import-skipped { color: var(--muted); }

.driver-detail-dialog { width: min(1100px, 95vw); max-width: min(1100px, 95vw); }
.driver-detail-dialog img { max-height: 220px; max-width: 100%; }

.driver-detail-dialog img { margin: 0 12px 12px 0; }
.people-table td:last-child { text-align: right; }

.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--text); }
.checkbox-row input { flex: none; width: auto; height: auto; margin: 0; }
.settings-help { color: var(--muted); margin-top: 0; }
.admin-back { display: inline-block; margin-bottom: 16px; }
@media (max-width: 760px) {
  .stacked-table, .stacked-table tbody, .stacked-table tr, .stacked-table td, .stacked-table tbody th { display: block; width: 100%; }
  .stacked-table thead { display: none; }
  .stacked-table tr { margin-bottom: 12px; }
  .stacked-table td { overflow-wrap: anywhere; }
  .stacked-table td[data-label]::before { content: attr(data-label) ': '; font-weight: 700; }
}

.nav-links .nav-report { display: flex; align-items: center; width: 100%; min-height: 36px; padding: 0 12px; font-size: inherit; }
.nav-footer > a { flex-basis: 100%; color: var(--nav-text); }
.mine-list .mine-card { display: flex; flex-direction: column; align-items: stretch; gap: 8px; overflow-wrap: anywhere; }
.mine-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.mine-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 8px 0; font-size: 0.9em; }
.mine-facts dd { margin: 0; }
.mine-trips-title { margin: 8px 0 2px; font-size: 0.9em; }
.mine-trip { font-size: 0.9em; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--text); text-decoration: underline; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .nav-links { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
  .nav-label { width: 100%; }
  #admin-nav { display: block; }
  .mine-facts { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); }
}

[hidden] { display: none !important; }

.nav-footer a { padding-left: 0; }
.form-grid { gap: 0 24px; }
.form-grid .field { display: flex; margin-right: 0; min-width: 0; }
input[type=file] { height: auto; min-height: 32px; padding: 0; max-width: 100%; }
input[type=file]::file-selector-button { min-height: 30px; margin-right: 8px; padding: 0 12px; font: inherit; font-weight: 700; border: 0; border-right: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.permission-row span { flex: 1; }
.defect-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-table td:last-child, .admin-table th:last-child { text-align: right; }
.mine-facts { grid-template-columns: 9rem minmax(0, 1fr); }
.text-button { min-height: 32px; padding: 4px 8px; border: 0; background: transparent; color: var(--brand); text-decoration: underline; }
.status-ok { color: var(--ok); }
.status-error { color: var(--error); }
.content > h2 ~ h2, .content > section ~ h2, .content > form ~ h2, .content > h2 ~ section > h2, .content > section ~ section > h2, .content > h2 ~ form > h2, .content > section ~ form > h2 { border-top: 1px solid var(--line); padding-top: 20px; }
.mine-group:has(+ .mine-group) .mine-list .row:last-child { border-bottom: 0; }
@media (max-width: 760px) { .nav-links > .nav-label:first-child { padding-top: 16px; } }
.overview-empty { display: flex; align-items: center; gap: 12px; }
@media (max-width: 760px) { .overview-controls { flex-wrap: wrap; justify-content: flex-start; padding: 12px 20px; } .overview-controls h1 { flex-basis: 100%; } .overview-filters { justify-content: flex-start; } .mine-facts { grid-template-columns: 9rem minmax(0, 1fr); } }

.field input[type=file] { height: auto; min-height: 32px; padding: 0; }
.content > h3 { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }

.mine-list .mine-card { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.mine-main { flex: 1 1 280px; min-width: 0; }
.mine-header { justify-content: flex-start; align-items: baseline; }

[aria-invalid='true'], .field [aria-invalid='true'], .field select[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-error { display: block; color: var(--error); font-size: .875rem; }

.datetime-field { max-width: 100%; }
.datetime-controls { display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.datetime-controls input { min-width: 0; max-width: 100%; box-sizing: border-box; }
.datetime-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.datetime-flash { animation: datetime-flash 600ms ease-out; }
@keyframes datetime-flash { from { background: var(--tint); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .datetime-flash { animation: none; background: var(--tint); } }
.return-wizard { min-width: 0; }
.return-progress { display: block; width: 100%; height: 6px; }
.return-choices { display: grid; gap: 0.5rem; min-width: 0; }
.return-answer, .return-actions .btn, .return-summary .btn { min-height: 44px; }
.return-answer { width: 100%; white-space: normal; }
.return-answer[aria-pressed="true"] { border-color: var(--brand); background: var(--tint); }
.return-summary { display: grid; gap: 1rem; padding: 0; list-style: none; min-width: 0; }
.return-summary li { display: grid; gap: 0.25rem; overflow-wrap: anywhere; }
.return-summary .btn { justify-self: start; }
.return-actions { flex-wrap: wrap; }

.datetime-controls input[type="text"] { width: 5.5em; }
.datetime-chip-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.datetime-chip-label { color: var(--muted); font-size: 0.875em; }
.nav-footer > a.bar-login { flex-basis: auto; display: inline-flex; align-items: center; min-height: 32px; padding: 0 8px; color: var(--brand); background: var(--surface); border: 1px solid var(--surface); font-weight: 600; text-decoration: none; }
.nav-footer > a.bar-login:hover { background: var(--tint); }
.nav-footer > a.bar-login[hidden] { display: none; }
.signed-out .nav-links, .signed-out #report-bug, .signed-out #main > :not(.signed-out-note) { display: none; }
.signed-out-note h1 { margin: 0 0 4px; font-size: 1.25rem; }
.signed-out-note p { margin: 0; }
.photo-sides { gap: 12px; }
.photo-side { border: 1px solid var(--line); background: var(--surface); padding: 12px; }
.photo-side h3 { margin-top: 0; }
.photo-side > :last-child { margin-top: 8px; }
.photo-submit { justify-content: flex-end; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.category-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.category-icon-choice, .category-kind-choice { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 8px; border: 2px solid var(--line); background: transparent; color: inherit; cursor: pointer; font-size: .75rem; overflow-wrap: anywhere; }
.category-icon-choice[aria-checked="true"], .category-kind-choice[aria-checked="true"] { border-color: var(--brand); background: var(--tint); }
.category-icon-preview { width: 40px; height: 40px; }
.category-title, .category-group-label { display: flex; align-items: center; gap: 8px; }
.category-list-icon { width: 20px; height: 20px; flex: none; }
.category-group-icon { width: 24px; height: 24px; flex: none; }
.category-group th { background: var(--tint); color: var(--brand); border-top: 12px solid transparent; }
.category-group strong { font-size: 1.125rem; }
.category-group-count, .category-empty { color: var(--muted); }

.category-kind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.category-kind-label { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .category-kind-grid { grid-template-columns: 1fr; } }

@media (max-height: 900px) and (min-width: 761px) {
  nav { padding-top: 10px; }
  .nav-brand { gap: 4px; padding-bottom: 4px; }
  .nav-label { padding-top: 8px; }
  nav a, .nav-links .nav-report { min-height: 32px; }
  .nav-footer { padding-top: 6px; }
}
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tile { padding: 16px; }
.tile > span { min-width: 0; }
.tile-name { overflow-wrap: normal; word-break: normal; hyphens: auto; }
.tile-count { white-space: nowrap; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }
.timeline-category { padding: 10px; background: var(--tint); color: var(--brand); }
.timeline-category-row .timeline-category { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
/* Kacheln stehen in der halben Spalte: Icon über dem Namen, damit der Name die volle Breite hat. */
@media (min-width: 761px) { .tile { flex-direction: column; align-items: flex-start; gap: 8px; } }

.catering-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.catering-day { margin-bottom: 1.5rem; }
.catering-card { border: 1px solid var(--border); padding: 1rem; margin: 0.5rem 0; overflow-wrap: anywhere; }
.catering-card h3, .catering-card p { margin: 0.3rem 0; }
.catering-card.cancelled { opacity: 0.6; }
.catering-card.cancelled h3, .catering-card.cancelled p { text-decoration: line-through; }
.catering-badge { display: inline-block; border: 1px solid currentColor; padding: 0.1rem 0.4rem; margin-right: 0.4rem; font-size: 0.8rem; }
.catering-note { font-weight: bold; }
.catering-meta { font-size: 0.85rem; }
@media print {
  nav, .catering-controls, button { display: none !important; }
  .catering-card { padding: 0.3rem; margin: 0.2rem 0; }
  .catering-day { break-inside: avoid; }
}
.catering-print-head { display: none; }
@media print { .catering-print-head { display: block; margin: 0 0 8px; font-weight: 700; } }
