:root { color-scheme: light; --anthracite:#283442; --anthracite-soft:#eceff3; --accent:#cc4a28; --accent-strong:#b23f20; --accent-ink:#ffffff; --accent-tint:color-mix(in srgb, var(--accent) 8%, #ffffff); --ring:color-mix(in srgb, var(--accent) 45%, transparent); --ink:#222b29; --ink-2:#48514d; --muted:#69716c; --line:#e6e4dd; --line-strong:#d3d0c6; --paper:#f8f7f3; --background:#f8f7f3; --ok:#2d6a43; --ok-tint:#e9f2ec; --font:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Roboto,Arial,sans-serif; --font-display:"Segoe UI Variable Display","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Roboto,Arial,sans-serif; font-family:var(--font); color:var(--ink); font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; }
* { box-sizing:border-box; }
body { margin:0; background:var(--background); }
a { color:var(--accent-strong); text-underline-offset:.2em; }
button, input, select { font:inherit; }
button, select, summary, .nav-item, .logout-link { min-height:44px; }
button { background:var(--accent); color:var(--accent-ink); border:1px solid var(--accent); border-radius:12px; padding:10px 18px; font-weight:600; display:inline-flex; align-items:center; justify-content:center; gap:10px; cursor:pointer; }
button:hover:enabled { background:var(--accent-strong); border-color:var(--accent-strong); }
button:disabled { opacity:.55; cursor:default; }
:focus-visible { outline:3px solid var(--ring); outline-offset:4px; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3,.brand { font-family:var(--font-display); }
h1 { font-size:36px; line-height:1.15; letter-spacing:-.025em; font-weight:750; margin-bottom:8px; }
h2 { font-size:28px; line-height:1.3; letter-spacing:-.6px; }
h3 { font-size:21px; line-height:1.4; letter-spacing:-.3px; }
small { font-size:13px; }
.icon { width:23px; height:23px; flex-shrink:0; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; left:16px; top:-100px; padding:12px; background:white; z-index:5; }
.skip-link:focus { top:10px; }
.admin-shell { display:grid; grid-template-columns:278px minmax(0,1fr); grid-template-rows:auto 1fr; min-height:100dvh; }
.admin-header { grid-column:1/-1; display:flex; align-items:center; gap:24px; background:white; border-bottom:1px solid var(--line); padding:18px 30px; min-height:84px; }
.brand { text-decoration:none; font-size:29px; font-weight:700; line-height:1.15; margin-right:auto; }
.brand span { display:block; font-size:15px; font-weight:400; color:var(--muted); }
.location-control { display:flex; align-items:center; gap:14px; min-width:0; }
.location-control label { font-size:14px; color:var(--muted); }
select { background:white; color:var(--ink); border:1px solid var(--line-strong); border-radius:10px; padding:8px 30px 8px 12px; width:190px; max-width:100%; }
.account-control { display:flex; gap:14px; align-items:center; border-left:1px solid var(--line); padding-left:24px; }
.user-symbol { display:grid; place-items:center; background:var(--paper); width:42px; height:42px; border-radius:50%; }
.user-link { display:flex; flex-direction:column; color:var(--ink); text-decoration:none; font-size:14px; }
.user-link span { color:var(--muted); font-size:13px; }
.logout-link { border-left:1px solid var(--line); padding:10px 0 10px 24px; margin-left:8px; text-decoration:none; font-weight:600; font-size:14px; }
.desktop-navigation { background:white; border-right:1px solid var(--line); padding:24px 14px; }
.nav-item { display:flex; align-items:center; gap:13px; padding:11px 12px; margin-bottom:9px; color:var(--ink-2); text-decoration:none; border-radius:10px; font-size:14px; }
.nav-item.selected { color:var(--ink); background:var(--accent-tint); font-weight:650; box-shadow:inset 3px 0 var(--accent); }
.nav-item.selected .icon { color:var(--accent); }
.nav-item.future { gap:11px; }
.nav-item.future small { margin-left:auto; font-size:10px; border-radius:20px; background:var(--paper); padding:4px 7px; }
.nav-item .icon { width:20px; height:20px; }
.nav-item:hover:not(.future):not(.selected) { background:var(--paper); }
.nav-divider { height:1px; background:var(--line); margin:26px 8px 20px; }
.mobile-navigation { display:none; }
.dashboard-content { min-width:0; padding:40px; }
.page-heading { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:32px; }
.page-heading p { color:var(--muted); font-size:18px; margin-bottom:0; }
.refresh-control { display:flex; flex-direction:column; align-items:flex-end; gap:8px; flex-shrink:0; }
.refresh-control small { color:var(--muted); }
.site-panel { border:1px solid var(--line); border-radius:16px; padding:24px; background:white; }
.site-title { display:flex; align-items:center; gap:20px; margin-bottom:25px; flex-wrap:wrap; }
.site-title h2 { margin:0; }
.site-title>span { border-left:1px solid var(--line); padding-left:20px; font-weight:600; }
.active-state { color:var(--ok); }
.inactive-state { color:#77431c; }
.metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:22px; }
.metric { display:flex; align-items:center; gap:16px; border:1px solid var(--line); padding:22px 18px; border-radius:12px; min-width:0; }
.metric h3 { font-size:16px; font-weight:400; letter-spacing:0; margin-bottom:2px; color:var(--ink-2); }
.metric strong { font-size:30px; line-height:1.1; }
.metric-icon { width:48px; height:48px; border-radius:50%; display:grid; place-items:center; background:var(--paper); flex-shrink:0; }
.metric-icon.success { color:var(--ok); background:var(--ok-tint); }
.metric-icon.warning { color:#b4233f; background:#fce9ed; }
.empty-state { display:flex; min-height:150px; flex-direction:column; align-items:center; justify-content:center; text-align:center; color:var(--muted); gap:14px; padding:18px; }
.empty-state .icon { width:28px; height:28px; }
.empty-state p { margin:0; }
.deliveries-empty { border:1px solid var(--line); border-radius:12px; min-height:120px; margin-bottom:26px; }
.diagnostic-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.diagnostic-panel { border:1px solid var(--line); border-radius:12px; padding:18px; min-width:0; }
.diagnostic-panel h3 { margin-bottom:18px; }
.facts { margin:0; font-size:15px; }
.facts>div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:16px; padding:11px 0; border-top:1px solid var(--line); }
dt { color:var(--muted); }
dd { margin:0; overflow-wrap:anywhere; }
.technical-id { display:block; font-size:11px; color:var(--muted); margin-top:4px; }
.explanation { color:var(--muted); font-size:13px; margin:16px 0 0; }
.explanation strong { font-weight:600; }
table { width:100%; border-collapse:collapse; font-size:15px; }
th,td { padding:10px 6px; text-align:left; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
th { font-weight:600; } td:last-child, thead th:last-child { text-align:right; }
.information { display:flex; align-items:center; gap:16px; margin:24px 0 0; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--paper); font-size:13px; color:var(--muted); }
/* ADR-0023: the test-mail line on the e-mail card. */
.inline-form { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:12px; }.inline-form label { font-size:13px; color:var(--muted); }.inline-form input { flex:1 1 220px; min-width:0; padding:8px 10px; border:1px solid var(--line-strong); border-radius:8px; }
.information .icon { color:var(--ink); }
.feedback { display:flex; gap:16px; align-items:flex-start; padding:28px; background:white; border:1px solid var(--line); border-radius:16px; }
.feedback h2 { font-size:21px; margin-bottom:8px; }.feedback p { margin-bottom:0; }.feedback a { display:inline-block; margin-top:14px; }
.feedback.error { border-color:#dbb2bc; }
#blazor-error-ui { display:none; position:fixed; bottom:0; left:0; right:0; z-index:10; background:#fff2dc; padding:16px; color:#412e0c; border-top:1px solid #d4b578; }
.mfa-qr { margin:24px 0; text-align:center; }
.mfa-qr img { display:block; width:320px; max-width:100%; height:auto; margin:0 auto 12px; background:white; image-rendering:pixelated; }
.mfa-qr figcaption, .mfa-secret-notice { color:var(--muted); font-size:14px; }
.mfa-manual { border:1px solid var(--line); border-radius:12px; padding:14px; margin:20px 0 28px; }
.mfa-manual summary { cursor:pointer; font-weight:600; }
.mfa-manual p { margin-top:12px; font-size:14px; }
.mfa-manual dd { margin:4px 0 12px; }
.mfa-key { font-size:17px; user-select:all; }
.mfa-confirm-heading { font-size:23px; }
.action-row { display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin:20px 0; }
.button-link { display:inline-flex; min-height:44px; align-items:center; padding:10px 18px; background:var(--accent); color:var(--accent-ink); text-decoration:none; border-radius:12px; font-weight:600; }
.permission-copy { color:var(--muted); font-size:14px; }
/* Block K3: a short plain-language explanation on the technical pages ("Technik") and the Live overview. */
.page-intro { border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:12px; background:var(--paper); padding:14px 18px; margin-bottom:22px; max-width:60rem; }
.page-intro p { margin:0; font-size:15px; color:var(--ink-2); }
.page-intro p + p { margin-top:6px; }
.metric small { display:block; color:var(--muted); font-size:13px; margin-top:4px; }
.live-details { border:1px solid var(--line); border-radius:12px; padding:0 18px; margin-top:26px; }
.live-details summary { cursor:pointer; padding:16px 0; font-weight:600; }
.live-details[open] summary { border-bottom:1px solid var(--line); margin-bottom:16px; }
.live-details .entity-table { margin-bottom:18px; }
/* Block K3: option groups as one folded block each; open a group to see and add its options. */
.option-group { border:1px solid var(--line); border-radius:12px; margin-bottom:12px; background:white; }
.option-group summary { display:flex; flex-wrap:wrap; gap:6px 18px; align-items:baseline; padding:14px 18px; cursor:pointer; font-weight:600; }
.option-group-meta { color:var(--muted); font-weight:400; font-size:14px; }
.option-group[open] summary { border-bottom:1px solid var(--line); }
.option-group-actions { padding:14px 18px 4px; }
.option-group .entity-table { border:0; border-radius:0 0 12px 12px; }
.option-group > .permission-copy { padding:10px 18px 16px; }
.inactive-group summary .option-group-name { color:var(--muted); }
.entity-table { table-layout:fixed; width:100%; background:white; border:1px solid var(--line); border-radius:16px; border-spacing:0; border-collapse:separate; }
.entity-table th, .entity-table td { padding:16px; text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.entity-table thead { background:var(--paper); }
.entity-card td:first-child { font-weight:600; }
.registration-panel { max-width:46rem; }
.registration-panel fieldset { border:0; padding:0; margin:0 0 22px; min-width:0; }
.registration-panel label { display:block; font-weight:600; margin-top:18px; }
.registration-panel input, .registration-panel select, .search-form input { display:block; width:100%; max-width:100%; padding:10px; border:1px solid var(--line-strong); border-radius:10px; background:white; color:var(--ink); }
.registration-panel small { display:block; margin-top:5px; }
.field-error { color:#9c243b; }
[aria-invalid="true"] { border-color:#9c243b!important; }
.pagination, .search-form { display:flex; align-items:center; flex-wrap:wrap; gap:14px; margin:24px 0; }
.search-form input { width:22rem; }
.success-message { padding:16px; border:1px solid color-mix(in srgb, var(--ok) 30%, #fff); background:var(--ok-tint); border-radius:12px; }
.section-heading { margin:30px 0 20px; }
.resource-actions { margin-top:30px; padding:24px; background:white; border:1px solid var(--line); border-radius:16px; }
.sync-section { margin-top:30px; min-width:0; }
.review-note { white-space:pre-wrap; overflow-wrap:anywhere; }
.case-location { margin:24px 0; }
.case-location h2 { margin-bottom:4px; }
.case-status { display:inline-block; padding:6px 10px; border:1px solid var(--line); border-radius:10px; background:var(--paper); font-size:14px; overflow-wrap:anywhere; }
.case-summary h3 { margin:24px 0 8px; }
.case-empty { border:1px solid var(--line); background:white; border-radius:16px; margin-top:20px; }
.case-empty h3 { margin:0; }
.technical-details { margin-top:18px; font-weight:400; overflow-wrap:anywhere; }
.technical-details summary { cursor:pointer; padding:12px 0; font-weight:600; min-height:44px; }
.technical-details[open] { border-top:1px solid var(--line); }
.technical-details dd { overflow-wrap:anywhere; }
.technical-details li { margin-bottom:12px; line-height:1.5; }
.review-dialog select, .review-filter { max-width:100%; min-height:44px; padding:10px; font:inherit; border:1px solid var(--line); border-radius:10px; }
.review-dialog select { width:100%; }
.sync-section select { max-width:100%; min-height:44px; padding:10px; font:inherit; border:1px solid var(--line); border-radius:10px; }
.action-dialog { width:min(46rem, calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:28px; border:1px solid var(--line); border-radius:10px; color:var(--ink); }
.action-dialog::backdrop { background:rgba(15, 30, 40, .65); }
.action-dialog h2 { font-size:24px; overflow-wrap:anywhere; }
.action-dialog fieldset { min-width:0; border:1px solid var(--line); border-radius:12px; padding:18px; margin:20px 0; }
.action-dialog legend { font-weight:600; }
.action-dialog label { display:block; margin:12px 0 6px; }
.action-dialog input:not([type=checkbox]), .action-dialog textarea { display:block; box-sizing:border-box; width:100%; padding:12px; border:1px solid var(--line-strong); border-radius:10px; font:inherit; }
.action-dialog textarea { min-height:90px; resize:vertical; }
.action-dialog button { margin-top:16px; white-space:normal; overflow-wrap:anywhere; }
.action-warning { padding:16px; background:#fff4df; border-left:4px solid #a36a10; line-height:1.6; }
.danger-button { background:#9c243b; border-color:#9c243b; }
.enrollment-once[hidden] { display:none!important; }
.enrollment-once { border:2px solid var(--accent); padding:18px; border-radius:12px; margin:18px 0; }
.enrollment-secret { display:block; font-family:monospace; font-size:18px; overflow-wrap:anywhere; user-select:all; padding:16px; background:var(--paper); border-radius:10px; }
.confirmation-label { line-height:1.6; }
.confirmation-label input { width:22px; height:22px; vertical-align:middle; }
@media(max-width:600px) { .action-dialog { padding:18px; }.action-dialog fieldset { padding:12px; }.resource-actions { padding:18px; } }
@media(max-width:800px) {
    .entity-table, .entity-table tbody, .entity-table tr, .entity-table td { display:block; width:100%; }
    .entity-table { background:transparent; border:0; }.entity-table thead { display:none; }
    .entity-card { padding:6px 18px; margin-bottom:18px; border:1px solid var(--line); border-radius:16px; background:white; }
    .entity-table td { padding:12px 0; }.entity-table td:last-child { border-bottom:0; }
    .entity-table td::before { content:attr(data-label); display:block; margin-bottom:5px; color:var(--muted); font-size:14px; font-weight:400; }
    .search-form input { width:100%; }.registration-panel { padding:18px; }
}
@media(max-width:1200px) {
    .admin-shell { grid-template-columns:218px minmax(0,1fr); }.admin-header { padding:16px 22px; gap:18px; }.dashboard-content { padding:26px; }
    .page-heading { flex-wrap:wrap; }.refresh-control { align-items:flex-start; }.metric { padding:18px 12px; gap:10px; }.metric-icon { width:38px; height:38px; }.diagnostic-columns { grid-template-columns:1fr; }
    .account-control { padding-left:16px; gap:10px; }.user-symbol { display:none; }.logout-link { padding-left:16px; margin-left:0; }
}
@media(max-width:800px) {
    .admin-shell { display:block; }.admin-header { flex-wrap:wrap; gap:16px; }.brand { font-size:26px; }.account-control { border:0; padding:0; }.user-link { max-width:180px; overflow-wrap:anywhere; }.logout-link { padding-left:14px; }
    .location-control { order:3; width:100%; }.location-control select { flex:1; width:auto; min-width:0; }.desktop-navigation { display:none; }
    .mobile-navigation { display:block; background:white; border-bottom:1px solid var(--line); padding:0 18px; }.mobile-navigation summary { cursor:pointer; padding:12px 0; font-weight:600; }.mobile-navigation nav { padding-bottom:12px; }
    .dashboard-content { padding:24px 18px; }h1 { font-size:34px; }.page-heading p { font-size:16px; }.page-heading { margin-bottom:24px; }.metrics { grid-template-columns:1fr; }.metric { padding:18px; gap:16px; }.metric h3 { font-size:15px; }.metric-icon { width:44px; height:44px; }
    .site-panel { padding:18px; }.site-title h2 { font-size:25px; }.site-title { gap:12px; }.site-title>span { padding-left:12px; }.diagnostic-panel { padding:16px; }.facts>div { grid-template-columns:1fr; gap:4px; }.information { align-items:flex-start; }
    .account-card { padding:24px 20px; }
}
@media(max-width:420px) { .admin-header { padding:16px; }.brand { font-size:23px; }.brand span { font-size:13px; }.account-control { gap:0; }.user-link { max-width:130px; font-size:12px; }.user-link span { font-size:11px; }.logout-link { font-size:12px; margin-left:10px; padding-left:10px; }.dashboard-content { padding:22px 14px; }.site-panel { padding:14px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; } }
/* Master data pages (Block B1) */
.master-form { max-width:60rem; }
.master-form .grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
.master-form .grid-3 { display:grid; grid-template-columns:repeat(3, 1fr); gap:0 18px; }
.master-form textarea { display:block; width:100%; box-sizing:border-box; min-height:7rem; padding:10px; border:1px solid var(--line-strong); border-radius:10px; background:white; color:var(--ink); font:inherit; }
.choice-grid { display:flex; flex-wrap:wrap; gap:10px 22px; margin-top:10px; }
.choice-grid label { display:inline-flex; align-items:center; gap:8px; margin:0; font-weight:400; }
.choice-grid input { width:20px; height:20px; }
.option-rows { margin:8px 0 0; padding:0; list-style:none; }
.option-rows li { display:grid; grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr)); gap:10px; align-items:center; padding:6px 0; border-top:1px solid var(--line); }
.option-rows label { margin:0; font-weight:400; display:inline-flex; gap:8px; align-items:center; }
.hours-grid { display:grid; grid-template-columns:9rem minmax(0,1fr); gap:8px 12px; align-items:center; margin-top:10px; }
.hours-grid label { margin:0; }
.inline-actions { display:flex; gap:8px; flex-wrap:wrap; }
.inline-actions button { min-height:36px; padding:6px 12px; font-size:14px; }
.inactive-row td { color:var(--muted); }
.master-tables { display:grid; gap:26px; margin-top:26px; }
@media (max-width:800px) { .master-form .grid-2, .master-form .grid-3 { grid-template-columns:1fr; } .option-rows li { grid-template-columns:1fr 1fr; } .hours-grid { grid-template-columns:1fr; } }
/* Liefergebiete (2026-11-09): postal code with suggestion button, district check list with a hand-typed addition. */
.master-form .postal-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.master-form .postal-row input { flex:1 1 8rem; min-width:0; }
.master-form .postal-row button { min-height:36px; padding:6px 12px; font-size:14px; white-space:nowrap; }
.master-form .district-box { margin:14px 0 4px; padding:10px 14px 14px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.master-form .district-box legend { font-weight:600; padding:0 6px; }
.master-form .district-box .field-hint { margin:4px 0 8px; }
.master-form .district-list label { align-items:baseline; }
.master-form .district-exists { color:var(--muted); font-size:13px; }
.master-form .district-add { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; }
.master-form .district-add input { flex:1 1 12rem; min-width:0; margin:0; }
.master-form .district-add button { min-height:36px; padding:6px 12px; font-size:14px; white-space:nowrap; }
.master-form .area-hint { margin-top:10px; }
/* Simplified master data forms (Block F4) */
.quiet-button, .quiet-button:hover:enabled { background:white; color:var(--ink); border-color:var(--line-strong); }
.quiet-button:hover:enabled { background:var(--paper); border-color:var(--ink); }
.hours-day { font-weight:600; align-self:start; padding-top:10px; }
.hours-editor .choice-grid { margin-top:0; }
.hours-window { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-top:8px; }
.master-form .hours-window select { display:inline-block; width:7.5rem; }
.hours-editor .inline-actions { margin-top:8px; }
.hours-exception { border:1px solid var(--line); border-radius:16px; padding:4px 16px 16px; margin-top:16px; }
.master-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-top:26px; border-bottom:1px solid var(--line); }
.master-tab { display:inline-flex; align-items:center; min-height:44px; padding:8px 16px; text-decoration:none; font-weight:600; border-bottom:3px solid transparent; }
.master-tab.selected { color:var(--ink); border-bottom-color:var(--accent); }
.master-breadcrumb { margin:0; color:var(--muted); }
.search-form label { display:block; font-weight:600; margin-bottom:6px; }
.search-form input { max-width:32rem; padding:10px; border:1px solid var(--line-strong); border-radius:10px; }
.color-picker { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:8px; }
.master-form .color-picker input[type=color] { display:inline-block; width:56px; height:44px; padding:2px; }
.master-form .color-picker input[type=color]:disabled { opacity:.4; }
.color-swatch { width:44px; min-height:44px; padding:0; border:2px solid white; box-shadow:0 0 0 1px var(--line-strong); }
.color-swatch[aria-pressed=true] { box-shadow:0 0 0 3px var(--ink); }
.color-swatch.swatch-2563eb, .color-swatch.swatch-2563eb:hover:enabled { background:#2563EB; }
.color-swatch.swatch-d97706, .color-swatch.swatch-d97706:hover:enabled { background:#D97706; }
.color-swatch.swatch-059669, .color-swatch.swatch-059669:hover:enabled { background:#059669; }
.color-swatch.swatch-dc2626, .color-swatch.swatch-dc2626:hover:enabled { background:#DC2626; }
.color-swatch.swatch-7c3aed, .color-swatch.swatch-7c3aed:hover:enabled { background:#7C3AED; }
.color-swatch.swatch-0891b2, .color-swatch.swatch-0891b2:hover:enabled { background:#0891B2; }
.color-value { font-family:monospace; color:var(--muted); }
/* 2026-11-17: category colour (POS tab and tile bar) as a small dot before the category name. */
.category-color-dot { display:inline-block; width:12px; height:12px; border-radius:50%; margin-right:8px; vertical-align:-1px; box-shadow:0 0 0 1px var(--line-strong); }
@media (max-width:800px) { .hours-day { padding-top:0; } .search-form input { max-width:100%; } }
.inline-actions button { white-space:nowrap; }
/* Block F7: driver app QR code on the device page (server-side SVG, address only). */
.driver-app-qr svg { display:block; width:240px; max-width:100%; height:auto; margin:0 auto 12px; background:white; }
/* Block F8: webshop look */
.color-row { display:flex; align-items:center; gap:12px; }
.color-row input[type=color] { width:56px; height:40px; padding:2px; }
.inline-choice { display:inline-flex; align-items:center; gap:6px; font-weight:400; }
.color-swatch { display:inline-block; width:16px; height:16px; border-radius:4px; vertical-align:middle; margin-right:6px; border:1px solid rgba(0,0,0,.15); }
.image-slots { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:16px; }
.image-slot { display:flex; flex-direction:column; gap:8px; align-items:flex-start; }
.image-thumb { max-width:160px; max-height:90px; object-fit:contain; border:1px solid rgba(0,0,0,.1); border-radius:10px; background:#fff; }
.image-preview { max-width:100%; max-height:220px; object-fit:contain; margin:0 0 12px; border-radius:16px; }

/* Block I1: voucher design preview – the sample code sits where the POS prints it. */
.voucher-preview { margin: 1rem 0; max-width: 38rem; }
.voucher-canvas { position: relative; width: 100%; min-height: 6rem; border: 1px dashed var(--line, #c9d1dc); cursor: crosshair; overflow: hidden; }
.voucher-canvas img { display: block; width: 100%; height: auto; }
.voucher-mark { position: absolute; white-space: nowrap; font-family: "Consolas", "Courier New", monospace; font-weight: 700; pointer-events: none; }
/* 2026-11-15: the QR code is only a chequered placeholder of its size (white border = quiet zone) left of the code; the POS draws the real symbol. */
.voucher-qr { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); pointer-events: none; background: repeating-conic-gradient(#333 0 25%, #fff 0 50%) 0 0 / 20% 20%; border-style: solid; border-color: #fff; box-sizing: border-box; outline: 1px dashed rgba(0,0,0,.35); }
.voucher-legal { white-space: normal; font-family: "Segoe UI", system-ui, sans-serif; font-weight: 400; line-height: 1.25; }
textarea[name="legalText"] { width: 100%; font: inherit; }
.ledger-list { margin: .5rem 0; padding-left: 1.2rem; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
/* Simplified navigation: the pages of a menu group as tabs above the content. */
.brand { display:inline-block; color:var(--ink); letter-spacing:-.02em; }
.brand::before { content:""; display:block; width:28px; height:4px; border-radius:2px; background:var(--accent); margin-bottom:6px; }
.section-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:-8px 0 28px; padding:4px; width:fit-content; max-width:100%; background:white; border:1px solid var(--line); border-radius:14px; }
.section-tab { display:inline-flex; align-items:center; min-height:40px; padding:8px 16px; border-radius:10px; color:var(--ink-2); font-size:15px; font-weight:600; text-decoration:none; }
.section-tab:hover { background:var(--paper); color:var(--ink); }
.section-tab.selected { background:var(--accent); color:var(--accent-ink); }
@media(max-width:800px) { .section-tabs { width:100%; margin-top:0; } .section-tab { flex:1 1 auto; justify-content:center; } }
/* Hub design 2.0: webshop page, product pictures in the menu, legal checklist. */
.shop-switch { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px; padding:22px 24px; background:white; border:1px solid var(--line); border-radius:16px; }
.shop-switch h2 { font-size:22px; margin:0 0 4px; }
.shop-switch .permission-copy { margin:0; }
.shop-switch-state { display:flex; gap:14px; align-items:flex-start; min-width:0; flex:1 1 22rem; }
.status-dot { width:12px; height:12px; flex:none; margin-top:9px; border-radius:50%; background:#d39b2a; box-shadow:0 0 0 4px #f8ecd2; }
.shop-switch.is-open .status-dot { background:var(--ok); box-shadow:0 0 0 4px var(--ok-tint); }
.shop-switch.is-open h2 span { color:var(--ok); }
.shop-switch.is-closed h2 span { color:#8a5800; }
.shop-look { display:grid; grid-template-columns:minmax(0,300px) minmax(0,1fr); gap:24px; align-items:start; padding:20px; background:white; border:1px solid var(--line); border-radius:16px; }
.shop-look .facts>div:first-child { border-top:0; }
.shop-preview { display:flex; flex-direction:column; gap:12px; padding:14px; border-radius:14px; background:var(--paper); border:1px solid var(--line); }
.shop-preview-head { display:flex; flex-direction:column; gap:6px; padding:18px 16px; border-radius:12px; min-height:110px; }
.shop-preview-head strong { font-family:var(--font-display); font-size:22px; line-height:1.15; letter-spacing:-.02em; }
.shop-preview-head small { opacity:.8; }
.shop-preview-bar { width:26px; height:4px; border-radius:2px; }
.shop-preview-button { align-self:flex-end; padding:9px 16px; border-radius:10px; font-size:14px; font-weight:650; }
.image-slots { grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); }
.image-slot { padding:16px; background:white; border:1px solid var(--line); border-radius:16px; }
.image-slot .image-thumb { max-height:110px; }
.image-empty { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; height:90px; border:1px dashed var(--line-strong); border-radius:10px; color:var(--muted); font-size:14px; }
.image-preview.favicon-preview { width:96px; height:96px; object-fit:cover; border-radius:20px; border:1px solid var(--line); }
.image-column { width:84px; }
.product-thumb { display:grid; place-items:center; width:56px; height:56px; border-radius:10px; object-fit:cover; background:var(--paper); }
.product-thumb.empty { color:var(--line-strong); border:1px dashed var(--line-strong); }
.checklist { list-style:none; margin:0; padding:0; background:white; border:1px solid var(--line); border-radius:16px; }
.checklist li { display:flex; gap:12px; align-items:center; padding:16px 20px; border-top:1px solid var(--line); }
.checklist li:first-child { border-top:0; }
.checklist li.done .icon { color:var(--ok); }
.checklist li.missing .icon { color:#b4233f; }
.checklist li.optional .icon { color:var(--muted); }
.information a { color:var(--accent-strong); }
@media(max-width:800px) { .shop-look { grid-template-columns:1fr; } .image-column { width:auto; } }
.refresh-control button { background:white; color:var(--ink); border-color:var(--line-strong); }
.refresh-control button:hover:enabled { background:var(--paper); border-color:var(--ink); }
.facts .color-swatch { width:16px; height:16px; min-height:0; padding:0; box-shadow:none; }
/* Row actions in tables stay quiet; only the main action of a section carries the accent. */
.inline-actions button, .inline-actions .button-link { background:white; color:var(--ink); border:1px solid var(--line-strong); }
.inline-actions button:hover:enabled, .inline-actions .button-link:hover { background:var(--paper); border-color:var(--ink); }
.inline-actions .button-link { min-height:36px; padding:6px 12px; font-size:14px; }
.entity-table td .inline-actions { justify-content:flex-end; }
/* ADR-0022: access values page. 2026-11-09: one wide section per service, stacked, with a "Feld | Wert | Quelle" table;
   the editor opens inside its section and uses the whole width. */
.integration-list { display:flex; flex-direction:column; gap:18px; margin-bottom:20px; }
.integration-section { display:flex; flex-direction:column; gap:14px; padding:20px 24px; background:white; border:1px solid var(--line); border-radius:16px; }
.integration-section.editing { border-color:var(--line-strong); }
.integration-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.integration-head h2 { font-size:20px; margin:0 0 2px; }
/* 2026-11-11: logo of the service before its name. */
.integration-title { display:flex; gap:14px; align-items:flex-start; min-width:0; }
.integration-logo { flex:none; width:32px; height:32px; margin-top:2px; border-radius:8px; }
.integration-logo.symbol { display:inline-flex; align-items:center; justify-content:center; background:var(--paper); border:1px solid var(--line); color:var(--ink); }
.integration-logo.symbol .icon { width:20px; height:20px; }
.integration-head p { margin:0; color:var(--muted); font-size:14px; }
.integration-tools { display:flex; flex:none; align-items:center; gap:12px; }
.integration-tools .quiet-button { min-height:36px; padding:6px 14px; font-size:14px; }
.integration-state { flex:none; padding:4px 10px; border-radius:999px; font-size:13px; font-weight:650; background:var(--paper); color:var(--muted); border:1px solid var(--line); }
.value-table { width:100%; border-collapse:collapse; font-size:14px; }
.value-table th, .value-table td { padding:8px 12px; text-align:left; vertical-align:top; border-top:1px solid var(--line); }
.value-table thead th { border-top:0; padding-top:0; color:var(--muted); font-size:12px; font-weight:650; text-transform:uppercase; letter-spacing:.04em; }
.value-table tbody th[scope=row] { width:22%; font-weight:600; }
.value-table td.value { width:48%; overflow-wrap:anywhere; }
.value-table td.value code { font-size:13px; padding:1px 6px; border-radius:6px; background:var(--paper); }
.value-table td.value.masked { letter-spacing:.08em; }
.value-table td.source { color:var(--muted); white-space:nowrap; }
.value-table tr.missing td { color:var(--muted); }
.value-table .group-row th { padding-top:16px; font-size:15px; font-weight:700; color:var(--ink); }
.value-table .group-row th .group-state { margin-left:8px; }
.value-group.inactive td, .value-group.inactive th[scope=row] { opacity:.6; }
.integration-foot { display:flex; flex-direction:column; gap:10px; }
.integration-foot .inline-form { margin-top:0; }
.integration-foot .inline-form input { max-width:22rem; }
@media (max-width:800px) { .integration-head { flex-direction:column; } .value-table td.source { white-space:normal; } .value-table tbody th[scope=row] { width:30%; } }
.integration-state.ready { background:var(--ok-tint); color:var(--ok); border-color:transparent; }
.integration-state.partial { background:#fff4df; color:#8a5800; border-color:transparent; }
.confirm-box { margin-top:24px!important; padding:16px 18px 6px!important; border:1px solid var(--line)!important; border-radius:12px; background:var(--paper); }
.confirm-box legend { font-weight:650; padding:0 6px; }
.master-form small.permission-copy { display:block; margin:4px 0 0; }
/* Header in anthracite blue, the same colour as the shop's intro block and the POS navigation bar. */
.admin-header { background:var(--anthracite); border-bottom:0; color:white; }
.admin-header .brand { color:white; }
.admin-header .location-control label { color:rgba(255,255,255,.72); }
.admin-header select { border-color:transparent; }
.admin-header .account-control { border-left-color:rgba(255,255,255,.18); }
.admin-header .user-symbol { background:rgba(255,255,255,.1); color:white; }
.admin-header .user-link, .admin-header .user-link strong { color:white; }
.admin-header .user-link span { color:rgba(255,255,255,.7); }
.admin-header .logout-link { color:#f6b39d; border-left-color:rgba(255,255,255,.18); }
.admin-header :focus-visible { outline-color:rgba(255,255,255,.7); }
/* Buttons in anthracite blue; orange stays an accent (menu marker, brand bar, links), not every button. */
button { background:var(--anthracite); border-color:var(--anthracite); color:white; }
button:hover:enabled { background:#34445a; border-color:#34445a; }
.button-link { background:var(--anthracite); color:white; }
.section-tab.selected { background:var(--anthracite); color:white; box-shadow:inset 0 -3px 0 var(--accent); }
.danger-button, .danger-button:hover:enabled { background:#9c243b; border-color:#9c243b; }
/* Webshop page (2026-11-03): area cards, tabbed editor, small text editor with preview, logo size sample. */
.shop-areas { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:18px; }
.shop-area { display:flex; flex-direction:column; gap:14px; padding:20px; background:white; border:1px solid var(--line); border-radius:16px; }
.shop-area-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.shop-area-head h2 { font-size:20px; margin:0; }
.shop-area .facts { margin:0; }
.shop-area .facts>div:first-child { border-top:0; }
.image-slots.compact { grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:10px; }
.image-slots.compact .image-slot { padding:12px; }
.editor-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 18px; padding:4px; width:fit-content; max-width:100%; background:var(--paper); border:1px solid var(--line); border-radius:14px; }
.editor-tab { display:inline-flex; align-items:center; min-height:40px; margin:0; padding:8px 16px; border-radius:10px; color:var(--ink-2); font-size:15px; font-weight:600; cursor:pointer; }
.editor-tab:hover { background:white; color:var(--ink); }
.editor-tabs input:checked + .editor-tab { background:var(--anthracite); color:white; box-shadow:inset 0 -3px 0 var(--accent); }
.editor-tabs input:focus-visible + .editor-tab { outline:3px solid var(--ring); outline-offset:2px; }
.editor-panel { display:none; }
.shop-editor form:has(#tab-look:checked) [data-panel="look"], .shop-editor form:has(#tab-header:checked) [data-panel="header"],
.shop-editor form:has(#tab-start:checked) [data-panel="start"], .shop-editor form:has(#tab-footer:checked) [data-panel="footer"],
.shop-editor form:has(#tab-social:checked) [data-panel="social"] { display:block; }
.header-modes { flex-direction:column; gap:8px; }
.shop-editor input[type=range] { width:100%; max-width:28rem; accent-color:var(--anthracite); }
.logo-scale { display:flex; align-items:center; min-height:104px; margin-top:8px; padding:8px 14px; border-radius:12px; background:var(--anthracite); width:fit-content; max-width:100%; }
.logo-scale img { width:auto; max-width:280px; object-fit:contain; }
.rich-text { margin-top:18px; }
.rt-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:6px 0 8px; }
.rt-toolbar button { min-height:36px; padding:4px 12px; font-size:14px; }
.rt-toolbar button[aria-pressed="true"] { background:var(--anthracite); color:white; border-color:var(--anthracite); }
.rt-divider { width:1px; height:24px; background:var(--line); margin:0 4px; }
.rt-preview { margin-top:10px; padding:16px 18px; border:1px dashed var(--line-strong); border-radius:12px; background:white; line-height:1.65; color:var(--ink-2); }
.rt-preview p { margin:0 0 10px; }
.rt-preview p:last-child { margin-bottom:0; }
.rt-preview .rt-center { text-align:center; }
.rt-preview .rt-large { font-size:1.25em; font-weight:650; color:var(--ink); }
.rt-preview .rt-small { font-size:.875em; }
.rt-preview .rt-empty { color:var(--muted); }
/* Catalog: product description under the bold name, and labelled option-group numbers. */
.field-hint { margin:4px 0 0; color:var(--muted); font-size:13px; line-height:1.45; }
.field-hint strong { color:var(--ink); font-weight:600; }
.master-form #md-description { min-height:4.5rem; }
.product-name { font-weight:650; }
.product-description { display:block; margin-top:2px; color:var(--muted); font-size:13px; font-weight:400; line-height:1.4; }
.option-rows .option-head { padding:0 0 4px; border-top:0; color:var(--muted); font-size:12px; font-weight:600; }
.option-rows .option-field { display:block; }
.option-rows .option-field span { display:none; }
.option-rows .option-field input { width:100%; box-sizing:border-box; }
.option-rows input[type=checkbox] { width:20px; height:20px; flex:none; margin:0; padding:0; }
@media (max-width:800px) {
  .option-rows li { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .option-rows li > label:first-child { grid-column:1 / -1; }
  .option-rows .option-head { display:none; }
  .option-rows .option-field span { display:block; margin-bottom:2px; color:var(--muted); font-size:12px; }
}
/* Block J1 (2026-11-03): SnackTime in the same building blocks as the other pages: selected row, status pills, two-line
   figures, one detail card with facts, forms and history. */
tr.is-selected td { background:var(--accent-tint); }
.entity-table tr.is-selected td:first-child { box-shadow:inset 3px 0 var(--accent); }
.plain-list { list-style:none; padding:0; margin:0; }
.plain-list li { padding:10px 0; border-top:1px solid var(--line); }
.plain-list li:first-child { border-top:0; }
.pill-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.pill-row:empty { display:none; }
.status-pill { display:inline-block; padding:2px 10px; border-radius:999px; font-size:13px; font-weight:650; background:var(--paper); color:var(--muted); border:1px solid var(--line); white-space:nowrap; }
.status-pill.ok { background:var(--ok-tint); color:var(--ok); border-color:transparent; }
.status-pill.warn { background:#fff4df; color:#8a5800; border-color:transparent; }
.two-line { display:flex; flex-direction:column; }
.two-line small { color:var(--muted); font-size:13px; font-weight:400; }
.snacktime-table td:last-child .inline-actions { justify-content:flex-end; }
.snacktime-detail { margin-top:26px; }
.snacktime-detail-head { display:flex; flex-wrap:wrap; gap:14px 24px; align-items:flex-start; justify-content:space-between; }
.snacktime-detail-head h2 { margin:0; }
.snacktime-detail h3 { margin:28px 0 12px; font-size:18px; }
.snacktime-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:18px; }
.snacktime-facts > div { border:1px solid var(--line); border-radius:12px; padding:12px 14px; min-width:0; }
.snacktime-facts span { display:block; color:var(--muted); font-size:13px; }
.snacktime-facts strong { font-size:19px; }
.snacktime-facts small { color:var(--muted); }
.snacktime-form { max-width:none; margin-top:20px; padding:18px 20px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.snacktime-form h3 { margin:0; }
@media(max-width:1000px) { .snacktime-facts { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.group-state { padding:2px 8px; border-radius:999px; font-size:12px; font-weight:650; background:var(--paper); color:var(--muted); border:1px solid var(--line); }
.value-group:not(.inactive) .group-state { background:var(--ok-tint); color:var(--ok); border-color:transparent; }
/* The editor (2026-11-09): full width, fields in as many columns as fit; the e-mail editor shows the general part, then
   SMTP and Amazon SES side by side. Which provider is marked follows the select. The selectors carry .registration-panel so
   they win over its generic fieldset/label/input rules (border 0, block labels, 100 % inputs), which bent the group frames
   and the "entfernen" checkbox before. */
.integration-editor.registration-panel.master-form { max-width:none; padding:18px 20px 4px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.integration-editor h3 { font-size:18px; margin:0 0 4px; }
.integration-editor > .explanation { margin:0 0 14px; }
.integration-fields { display:grid; grid-template-columns:repeat(auto-fit, minmax(17rem, 1fr)); gap:0 20px; }
.registration-panel .field-group { margin:0 0 16px; padding:14px 16px 6px; border:1px solid var(--line); border-radius:12px; min-width:0; background:white; }
.registration-panel .field-group legend { display:flex; align-items:center; gap:8px; padding:0 6px; font-weight:700; }
.field-group .explanation { margin:0 0 10px; }
.integration-field { margin-bottom:12px; min-width:0; }
.integration-field input, .integration-field select { width:100%; }
.registration-panel .integration-field label:first-child { margin-top:10px; }
.registration-panel .integration-field .inline-choice { display:flex; align-items:center; gap:8px; margin-top:6px; font-size:14px; font-weight:400; color:var(--muted); }
.registration-panel .integration-field .inline-choice input { display:inline-block; width:auto; max-width:none; margin:0; padding:0; flex:none; }
.mail-providers { display:grid; grid-template-columns:repeat(auto-fit, minmax(22rem, 1fr)); gap:0 16px; }
.integration-editor .confirm-box { background:white; }
/* 2026-11-16: a field that carries a value is marked (admin.js sets data-changed, whoever filled it); a refused value is outlined;
   the outcome of a save stands at its service. */
.integration-field[data-changed] > label:first-child::after { content:" · wird geändert"; font-weight:400; color:var(--ok); }
.integration-field[data-changed] input, .integration-field[data-changed] select { border-color:var(--ok); }
.integration-field input[aria-invalid="true"] { border-color:#9c243b; }
.integration-field > .field-error { display:block; margin-top:4px; font-size:14px; }
.integration-notice { margin:12px 0 0; }
.integration-notice.feedback { padding:16px; border-radius:12px; color:#9c243b; }
.mail-form .group-state { display:none; background:var(--ok-tint); color:var(--ok); border-color:transparent; }
.mail-form.uses-smtp:has(option[value=""]:checked) .mail-smtp .group-state, .mail-form:has(option[value="smtp"]:checked) .mail-smtp .group-state,
.mail-form.uses-ses:has(option[value=""]:checked) .mail-ses .group-state, .mail-form:has(option[value="ses"]:checked) .mail-ses .group-state { display:inline-block; }
.mail-form.uses-smtp:has(option[value=""]:checked) .mail-ses, .mail-form:has(option[value="smtp"]:checked) .mail-ses,
.mail-form.uses-ses:has(option[value=""]:checked) .mail-smtp, .mail-form:has(option[value="ses"]:checked) .mail-smtp { opacity:.6; }

/* Account pages 2.0 (2026-11-06): brand panel on the left, the form in a card on the right; on the phone the panel shrinks to a
   header. Same frame for sign-in, MFA, recovery, setup and the account page (AdminAccountPage). */
.account-shell { min-height:100vh; display:grid; grid-template-columns:minmax(0, 1fr); background:var(--background); }
.account-aside { position:relative; overflow:hidden; display:flex; flex-direction:column; gap:20px; padding:22px 20px; color:#fff;
  background:radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 38%, var(--anthracite)) 0%, var(--anthracite) 55%, #1d2631 100%); }
.account-aside::after { content:""; position:absolute; right:-80px; bottom:-80px; width:260px; height:260px; border-radius:50%; background:color-mix(in srgb, var(--accent) 30%, transparent); filter:blur(40px); opacity:.6; pointer-events:none; }
.account-brand { display:inline-flex; align-items:center; gap:12px; width:fit-content; color:#fff; font-family:var(--font-display); font-size:22px; font-weight:750; letter-spacing:-.02em; text-decoration:none; }
.account-brand img { width:36px; height:36px; border-radius:9px; }
.account-claim { display:none; }
.account-claim h2 { max-width:22ch; margin:0 0 20px; font-size:34px; line-height:1.15; letter-spacing:-.025em; }
.account-claim ul { margin:0; padding:0; list-style:none; display:grid; gap:12px; color:rgba(255,255,255,.82); }
.account-claim li { display:flex; gap:10px; align-items:center; }
.account-claim li::before { content:""; width:8px; height:8px; flex:none; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.account-page { display:flex; align-items:flex-start; justify-content:center; padding:24px 16px 48px; }
.account-card { width:100%; max-width:30rem; padding:28px 24px; background:#fff; border:1px solid var(--line); border-radius:20px;
  box-shadow:0 1px 2px rgba(34,43,41,.05), 0 18px 48px rgba(34,43,41,.08); }
.account-card:has(.account-section) { max-width:44rem; }
.account-heading { display:flex; gap:16px; align-items:flex-start; margin-bottom:22px; }
.account-heading h1 { margin:0 0 6px; font-size:28px; overflow-wrap:anywhere; }
.account-heading p { margin:0; color:var(--muted); }
.account-eyebrow { margin:0 0 6px !important; color:var(--accent-strong) !important; font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.account-icon, .account-avatar { flex:none; display:inline-flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:14px;
  background:var(--accent-tint); color:var(--accent-strong); font-size:22px; font-weight:750; }
.account-icon .icon { width:24px; height:24px; }
.account-icon.warn { background:#fff4df; color:#8a5800; }
.account-icon.ok { background:var(--ok-tint); color:var(--ok); }
.account-avatar { width:56px; height:56px; border-radius:50%; background:var(--anthracite); color:#fff; font-size:24px; }
.account-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px !important; }
.account-badge { display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border-radius:999px; font-size:13px; font-weight:650; }
.account-badge .icon { width:15px; height:15px; }
.account-badge.ok { background:var(--ok-tint); color:var(--ok); }
.account-form { display:grid; gap:16px; }
.account-field { display:grid; gap:6px; min-width:0; }
.account-field label { font-weight:600; font-size:15px; }
.account-field input { width:100%; min-height:48px; padding:11px 14px; border:1px solid var(--line-strong); border-radius:12px; background:#fff; font-size:16px; transition:border-color .15s, box-shadow .15s; }
.account-field input:hover { border-color:#bdb9ad; }
.account-field input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 4px var(--ring); }
.account-field .hint { color:var(--muted); font-size:13px; }
.account-field .code-input { max-width:14rem; font-size:22px; font-variant-numeric:tabular-nums; letter-spacing:.3em; text-align:center; }
.account-submit { width:100%; min-height:50px; margin-top:4px; font-size:16px; border-radius:12px; }
.account-card .account-section .account-submit { width:auto; }
.account-note { display:flex; gap:10px; align-items:flex-start; margin:18px 0 0; padding:12px 14px; border-radius:12px; background:var(--paper); color:var(--ink-2); font-size:14px; }
.account-note .icon { width:18px; height:18px; flex:none; margin-top:1px; color:var(--muted); }
.account-alt { display:flex; flex-direction:column; gap:8px; margin-top:20px; padding-top:18px; border-top:1px solid var(--line); font-size:15px; }
.account-alt a { width:fit-content; font-weight:600; }
.account-actions { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:8px; }
.account-actions form { margin:0; }
.account-button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:10px 18px; border-radius:12px; background:var(--anthracite); border:1px solid var(--anthracite); color:#fff; font-weight:600; text-decoration:none; }
.account-button:hover { background:#34445a; border-color:#34445a; color:#fff; }
.account-button.quiet, button.account-button.quiet { background:#fff; color:var(--ink); border-color:var(--line-strong); }
.account-button.quiet:hover, button.account-button.quiet:hover:enabled { background:var(--paper); border-color:var(--ink); color:var(--ink); }
.account-section { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.account-section h2 { font-size:21px; margin-bottom:6px; }
.account-section .explanation { margin:0 0 18px; }
.account-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:16px; }
.account-message { margin:0 0 16px; padding:12px 14px; border-radius:12px; border:1px solid var(--line); }
.account-message p { margin:0; }
.account-message.ok { background:var(--ok-tint); border-color:transparent; color:var(--ok); }
.account-message.error, p.account-message { background:#fbf0f2; border-color:#e7c5cd; color:#8c2f43; }
.recovery-codes { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px 20px; margin:0 0 22px; padding:16px 16px 16px 36px; border-radius:12px; background:var(--paper); }
.recovery-codes code { font-size:15px; letter-spacing:.04em; user-select:all; }
.account-card .mfa-qr img { width:260px; }
/* 2026-11-10: one third brand, two thirds sign-in; the brand panel is more compact, the card a little wider and still centred. */
@media (min-width: 900px) {
  .account-shell { grid-template-columns:minmax(300px, 1fr) 2fr; }
  .account-aside { padding:32px 32px; gap:0; }
  .account-claim { display:block; margin:auto 0; }
  .account-claim h2 { margin-bottom:16px; font-size:28px; }
  .account-claim ul { gap:10px; font-size:15px; }
  .account-page { align-items:center; padding:48px 32px; }
  .account-card { max-width:32rem; padding:40px 40px 36px; }
}
@media (max-width: 420px) { .account-card { padding:24px 18px; border-radius:16px; } .account-heading h1 { font-size:24px; } .recovery-codes { grid-template-columns:1fr; } }
/* ADR-0034 (2026-11-06): SnackTime as a month report – month switch and export, six figures, all drivers with the use of
   their monthly limit, a total row. */
.snacktime-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; margin:-6px 0 20px; padding:10px 12px; background:white; border:1px solid var(--line); border-radius:14px; }
.month-switch { display:flex; align-items:center; gap:10px; }
.month-switch strong { min-width:11rem; text-align:center; font-family:var(--font-display); font-size:19px; }
.month-switch button { min-width:44px; padding:6px 12px; font-size:20px; line-height:1; }
.export-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.export-actions > span { color:var(--muted); font-size:14px; margin-right:4px; }
.export-actions .button-link { display:inline-flex; align-items:center; min-height:40px; padding:8px 16px; border-radius:10px; font-weight:600; text-decoration:none; }
.snacktime-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.snacktime-metrics .metric { padding:16px; align-items:flex-start; }
.snacktime-metrics .metric strong { font-size:25px; }
.snacktime-metrics .metric small { display:block; margin-top:2px; color:var(--muted); font-size:13px; }
.driver-name { display:inline-flex; align-items:center; gap:10px; }
.driver-name > span:last-child { display:flex; flex-direction:column; font-weight:600; }
.driver-name small { color:var(--muted); font-size:12px; font-weight:400; }
.driver-initial { display:inline-flex; align-items:center; justify-content:center; flex:none; width:32px; height:32px; border-radius:50%; background:var(--anthracite); color:white; font-size:14px; font-weight:700; }
.limit-use { display:flex; flex-direction:column; gap:4px; min-width:9rem; }
.limit-use small { color:var(--muted); font-size:12px; }
.limit-bar { display:block; height:8px; border-radius:999px; background:var(--anthracite-soft); overflow:hidden; }
.limit-bar > span { display:block; height:100%; border-radius:inherit; background:var(--ok); }
.limit-use.near .limit-bar > span { background:#c98a12; }
.limit-use.over .limit-bar > span { background:#b3261e; }
.limit-use.over small { color:#b3261e; font-weight:600; }
.snacktime-table tfoot th, .snacktime-table tfoot td { padding-top:12px; padding-bottom:12px; border-top:2px solid var(--line-strong); background:var(--paper); font-size:14px; }
@media(min-width:1280px) { .snacktime-metrics { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media(max-width:700px) { .snacktime-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .month-switch strong { min-width:8rem; } }/* ADR-0036: e-mail templates – what the hub adds by itself, the placeholders and the preview of the mail. */
.mail-automatic { padding:12px 14px; border:1px dashed var(--line-strong); border-radius:10px; background:#F7F6F2; color:var(--muted); font-size:14px; line-height:1.5; }
.mail-automatic strong { color:var(--ink); }
.mail-placeholders { font-size:14px; color:var(--muted); line-height:1.5; }
.mail-placeholders strong { color:var(--ink); }
.mail-placeholders ul { margin:6px 0; padding-left:18px; }
.mail-placeholders code { padding:1px 6px; border-radius:6px; background:#EFEDE7; color:var(--ink); font-size:13px; }
.mail-signature { white-space:pre-line; }
.mail-preview { display:flex; flex-direction:column; gap:12px; }
.mail-preview-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.mail-preview-head h2 { margin:0; }
.mail-preview-subject { margin:0; font-weight:600; }
.mail-preview-subject span { color:var(--muted); font-weight:400; }
.mail-preview iframe { width:100%; height:680px; border:1px solid var(--line); border-radius:12px; background:#F4F2EE; }
.mail-preview pre { white-space:pre-wrap; font-size:13px; padding:12px; background:#F7F6F2; border-radius:10px; }

/* ADR-0038: Übersicht › Bestellungen – period bar, filters, figures, order table and the detail dialog. */
.orders-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; margin:-6px 0 20px; padding:10px 12px; background:white; border:1px solid var(--line); border-radius:14px; }
.orders-toolbar .mode-tabs { display:flex; flex-wrap:wrap; gap:4px; }
.orders-toolbar .mode-tabs a { display:inline-flex; align-items:center; min-height:36px; padding:4px 14px; border-radius:999px; text-decoration:none; color:var(--ink); border:1px solid var(--line); font-size:14px; font-weight:600; }
.orders-toolbar .mode-tabs a[aria-current="true"] { background:var(--anthracite); color:white; border-color:var(--anthracite); }
.period-switch { display:flex; align-items:center; gap:10px; }
.period-switch strong { min-width:11rem; text-align:center; font-family:var(--font-display); font-size:19px; }
.period-switch .quiet-button { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:40px; padding:6px 12px; font-size:20px; line-height:1; text-decoration:none; border:1px solid var(--line-strong); border-radius:10px; }
.period-switch .quiet-button.disabled { opacity:.4; }
.orders-filter { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0; }
.orders-filter input, .orders-filter select { min-height:40px; padding:8px 10px; font:inherit; border:1px solid var(--line-strong); border-radius:10px; background:white; }
.orders-filter input[type=search] { min-width:15rem; }
.orders-filter .quiet-button { min-height:40px; padding:6px 14px; font-size:14px; }
.export-actions .button-link.disabled { opacity:.45; cursor:not-allowed; }
.orders-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.orders-table tr.clickable-row { cursor:pointer; }
.orders-table tr.clickable-row:hover td, .orders-table tr.clickable-row:focus-visible td { background:var(--paper); }
.orders-table tr.cancelled-row td { color:var(--muted); }
.orders-table tr.cancelled-row .amount { text-decoration:line-through; }
.orders-table .amount, .orders-table th.amount { text-align:right; white-space:nowrap; }
.paging { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; color:var(--muted); font-size:14px; }
.order-dialog { width:min(60rem, calc(100% - 24px)); }
.order-dialog .facts { margin-top:16px; }
.order-dialog .facts>div { grid-template-columns:minmax(0,.7fr) minmax(0,1.8fr); }
.order-dialog .facts small.technical-id { display:block; color:var(--muted); font-size:13px; }
.order-lines { width:100%; border-collapse:collapse; margin:18px 0; font-size:14px; }
.order-lines th, .order-lines td { padding:8px 6px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
.order-lines .amount, .order-lines th.amount { text-align:right; white-space:nowrap; }
.order-lines tfoot th { font-weight:400; color:var(--muted); border-bottom:0; }
.order-lines tfoot td { border-bottom:0; }
.order-lines td small { display:block; color:var(--muted); }
.order-dialog h3 { font-size:16px; margin:18px 0 8px; }
.order-events { list-style:none; margin:0; padding:0; }
.order-events li { padding:6px 0; border-top:1px solid var(--line); font-size:14px; }
.order-dialog .dialog-actions { display:flex; justify-content:flex-end; }
@media(max-width:800px) { .orders-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .orders-table .amount { text-align:left; } .period-switch strong { min-width:0; } }
/* 2026-11-09: SnackTime "pay all drivers" dialog – a wide modal with one editable row per driver; the hints sit under the amount. */
.bulk-payout-dialog { width:min(76rem, calc(100% - 24px)); }
.bulk-payout-dialog fieldset { border:0; padding:0; margin:12px 0 0; }
.bulk-payout-date { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }
.bulk-payout-date label { margin:0; }
.bulk-payout-dialog .bulk-payout-date input { display:inline-block; width:auto; }
.bulk-payout-table { margin-top:18px; }
.bulk-payout-dialog .bulk-payout-table input:not([type=checkbox]) { display:inline-block; width:7.5rem; padding:8px 10px; }
.bulk-payout-dialog .bulk-payout-table input[type=checkbox] { width:22px; height:22px; vertical-align:middle; }
.bulk-payout-table td[data-label="Betrag"] { min-width:12rem; }
.bulk-payout-table label.two-line { margin:0; cursor:pointer; }
.bulk-hint { display:block; margin-top:4px; font-size:12px; line-height:1.4; max-width:22rem; }
.bulk-hint.warn { color:#8a5800; }
.bulk-hint.error { color:#9c243b; }
.bulk-payout-dialog .action-row button { margin-top:0; }
@media(max-width:800px) { .bulk-payout-dialog .bulk-payout-table input:not([type=checkbox]) { width:100%; } .bulk-payout-table td[data-label="Betrag"] { min-width:0; } }
/* 2026-11-12: Technik › Hilfe – one guide per service of Zahlung & Dienste, chosen above; the hint on the settings page links here. */
.help-topics { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; }
.help-topic { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:6px 14px 6px 8px; border:1px solid var(--line); border-radius:999px; background:white; color:var(--ink); text-decoration:none; font-weight:600; font-size:14px; }
.help-topic .integration-logo { width:26px; height:26px; margin:0; }
.help-topic:hover { border-color:var(--ink); }
.help-topic.selected { border-color:var(--accent); background:var(--paper); box-shadow:inset 0 0 0 1px var(--accent); }
.help-overview { display:grid; grid-template-columns:repeat(auto-fill, minmax(16rem, 1fr)); gap:14px; }
.help-card { display:block; padding:18px 20px; border:1px solid var(--line); border-radius:16px; background:white; color:var(--ink); text-decoration:none; }
.help-card:hover { border-color:var(--ink); }
.help-card strong { display:block; margin-bottom:4px; }
.help-card .integration-title > span > span { color:var(--muted); font-size:14px; }
.help-guide { max-width:60rem; padding:22px 26px; background:white; border:1px solid var(--line); border-radius:16px; }
.help-guide header h2 { font-size:22px; margin:0 0 2px; }
.help-guide header p { margin:0; color:var(--muted); }
.help-guide .information { margin:18px 0 6px; font-size:14px; color:var(--ink-2); }
.help-guide h3 { margin:26px 0 10px; font-size:17px; }
.help-links { margin:0; padding-left:20px; }
.help-links li + li { margin-top:4px; }
.help-links a { color:var(--accent-strong); }
.help-steps { margin:0; padding-left:24px; }
.help-steps > li { margin-bottom:14px; padding-left:4px; }
.help-steps > li > strong { display:block; margin-bottom:4px; }
.help-steps p, .help-steps ul { margin:0; color:var(--ink-2); }
.help-steps ul { padding-left:18px; }
.help-steps ul li + li { margin-top:4px; }
.help-steps p, .help-steps li, .help-notes li { overflow-wrap:anywhere; }
.help-fields { font-size:14px; }
.help-fields th, .help-fields td { padding:10px 14px; }
.help-fields td:first-child { width:38%; font-weight:600; }
.help-notes { margin:0; padding-left:20px; color:var(--ink-2); }
.help-notes li + li { margin-top:6px; }
.settings-help { margin:0 0 20px; }
.integration-tools .help-link { font-size:14px; color:var(--accent-strong); }
@media (max-width: 640px) { .help-guide { padding:16px; } .help-fields td:first-child { width:auto; } }

/* 2026-11-13: edit windows (AdminEditDialog). Every edit form opens as a modal over the page instead of a block above the list;
   the form styles of .registration-panel/.master-form stay, the window adds frame, close button and its own scrolling. */
.edit-dialog { box-sizing:border-box; width:min(44rem, calc(100% - 24px)); max-width:none; max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain;
    margin:auto; padding:28px 30px 24px; border:1px solid var(--line); border-radius:16px; background:white; color:var(--ink); box-shadow:0 24px 60px rgba(15, 30, 40, .28); }
.edit-dialog.wide { width:min(64rem, calc(100% - 24px)); }
/* Until the script opens it, a window stays hidden even when one of its classes sets a display (e.g. .mail-preview). */
.edit-dialog:not([open]) { display:none !important; }
/* Classes that styled the old in-page blocks must not move or reframe the window. */
.edit-dialog.snacktime-detail { margin:auto; }
.edit-dialog.snacktime-detail .snacktime-detail-head { padding-right:48px; }
.edit-dialog.integration-editor.registration-panel.master-form { max-width:none; padding:28px 30px 24px; border:1px solid var(--line); border-radius:16px; background:white; }
.edit-dialog.mail-preview > h2:first-of-type { margin-bottom:0; }
.edit-dialog::backdrop { background:rgba(15, 30, 40, .55); }
.edit-dialog[open] { animation:edit-dialog-in .16s ease-out; }
@keyframes edit-dialog-in { from { opacity:0; transform:translateY(8px) scale(.985); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { .edit-dialog[open] { animation:none; } }
html:has(dialog.edit-dialog[open]) { overflow:hidden; }
.edit-dialog > h2:first-of-type, .edit-dialog > .dialog-error + h2 { margin:0 48px 14px 0; font-size:24px; line-height:1.25; overflow-wrap:anywhere; }
.edit-dialog .dialog-close { position:absolute; top:16px; right:16px; display:grid; place-items:center; width:40px; height:40px; min-height:0; margin:0; padding:0;
    border:1px solid transparent; border-radius:50%; background:white; color:var(--ink-2); z-index:2; }
.edit-dialog .dialog-close:hover:not(:disabled) { background:var(--paper); border-color:var(--line); }
.edit-dialog .dialog-close .icon { width:20px; height:20px; }
.edit-dialog .dialog-error { margin:0 48px 16px 0; }
.edit-dialog .dialog-error p { margin:0; }
.edit-dialog form > fieldset { margin-bottom:0; }
/* Save and cancel stay at the bottom edge of a long form. */
.edit-dialog > .action-row:last-child, .edit-dialog form > .action-row:last-child, .edit-dialog form > fieldset > .action-row:last-child {
    position:sticky; bottom:0; z-index:1; margin:22px -30px -24px; padding:14px 30px 18px; border-top:1px solid var(--line); background:white; }
@media (max-width:600px) {
    /* A sheet from the bottom edge on phones; !important beats the reframing rules above. */
    .edit-dialog { width:100% !important; max-height:calc(100dvh - 12px); margin:auto 0 0 !important; padding:20px 16px 16px !important; border-radius:16px 16px 0 0 !important; }
    .edit-dialog .dialog-close { top:10px; right:10px; }
    .edit-dialog > .action-row:last-child, .edit-dialog form > .action-row:last-child, .edit-dialog form > fieldset > .action-row:last-child { margin:18px -16px -16px; padding:12px 16px 14px; }
}

/* 2026-11-15 (operator request): Technik › Server – disk, memory and load with a bar each; orange from 75 %, red from 90 %. */
.server-metric > div { flex:1; min-width:0; }
.server-meter { display:block; height:8px; margin:10px 0 2px; border-radius:999px; background:var(--anthracite-soft); overflow:hidden; }
.server-meter > span { display:block; height:100%; border-radius:inherit; background:var(--ok); transition:width .4s ease; }
.server-meter.server-level-warning > span { background:#c27a00; }
.server-meter.server-level-critical > span { background:#b4233f; }
.server-metric.server-level-ok .metric-icon { color:var(--ok); background:var(--ok-tint); }
.server-metric.server-level-warning { border-color:#e8c58a; }
.server-metric.server-level-warning .metric-icon { color:#8a5600; background:#fbf0dc; }
.server-metric.server-level-critical { border-color:#dbb2bc; }
.server-metric.server-level-critical .metric-icon { color:#b4233f; background:#fce9ed; }
.server-disks { margin-top:18px; overflow-x:auto; }
.server-disks table { width:100%; }
.server-disk-meter { width:30%; min-width:90px; }
.server-disk-meter .server-meter { margin:0; }
/* 2026-11-19: eye button inside every password field (AdminPasswordToggle); admin.js switches the field. */
.password-field { position:relative; display:block; min-width:0; }
.password-field > input { width:100%; padding-right:48px !important; }
.password-field .password-toggle { position:absolute; top:50%; right:4px; transform:translateY(-50%); margin:0; min-height:0; width:40px; height:40px; padding:0; display:inline-grid; place-items:center; border:0; border-radius:10px; background:transparent; color:var(--muted); cursor:pointer; }
.password-field .password-toggle:hover:enabled { background:var(--anthracite-soft); border-color:transparent; color:var(--ink); }
.password-field .password-toggle:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.password-field .password-toggle .icon { width:20px; height:20px; }
.password-toggle .password-toggle-hide, .password-toggle[aria-pressed="true"] .password-toggle-show { display:none; }
.password-toggle[aria-pressed="true"] .password-toggle-hide { display:inline-grid; }
.password-toggle-show, .password-toggle-hide { display:inline-grid; place-items:center; }
