*{box-sizing:border-box}body{margin:0;background:#f4f4f5;color:#171717;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}header{height:72px;background:#111;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 5%;position:sticky;top:0;z-index:3}.brand{font-weight:900;letter-spacing:.12em}.logout{color:#fff;text-decoration:none;font-size:14px}nav{background:#fff;display:flex;gap:8px;padding:12px 5%;overflow:auto;border-bottom:1px solid #ddd;position:sticky;top:72px;z-index:2}nav a{white-space:nowrap;text-decoration:none;color:#555;padding:10px 14px;border-radius:10px;font-weight:700}nav a.active{background:#111;color:#fff}main{max-width:1050px;margin:auto;padding:28px 5% 80px}h1{font-size:32px;margin:0 0 22px}h2{margin-top:0}.card{background:#fff;border-radius:18px;padding:22px;margin-bottom:20px;box-shadow:0 2px 14px #0000000d}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.stat{background:#111;color:#fff;border-radius:16px;padding:20px}.stat b{font-size:32px;display:block}.stat span{font-size:13px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.grid label{font-weight:700;font-size:14px}.wide{grid-column:1/-1}input,select{width:100%;padding:14px;border:1px solid #ccc;border-radius:10px;margin-top:7px;font-size:16px;background:#fff}button{border:0;border-radius:10px;background:#111;color:#fff;padding:13px 17px;font-weight:800;font-size:14px}.grid button{grid-column:1/-1}.row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0;border-bottom:1px solid #eee}.row:last-child{border-bottom:0}.row small{display:block;color:#777;margin-top:5px}.row.done{opacity:.55}.danger{background:#eee;color:#b00020}.muted{color:#777}.login{min-height:100vh;display:grid;place-items:center;padding:20px;background:#111}.loginbox{width:min(440px,100%);text-align:center}.loginbox .brand{font-size:25px}.loginbox input{margin:15px 0}.loginbox button{width:100%}.loginbox small{display:block;margin-top:18px;color:#777}.alert{background:#fee;padding:10px;border-radius:8px;color:#900}@media(max-width:700px){.stats{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}.wide{grid-column:auto}.row{align-items:flex-start;flex-direction:column}.row form,.row button{width:100%}h1{font-size:27px}}
.userbadge{margin-left:auto;font-size:.9rem;opacity:.8}.checks{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}.checks label{display:flex;align-items:center;gap:6px}.checks input{width:auto}.inactive{opacity:.55}

.password-wrap{position:relative;width:100%}.password-wrap input{padding-right:52px}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:40px;height:40px;padding:0;background:transparent;color:#555;border-radius:8px;display:grid;place-items:center}.password-toggle:hover{background:#f1f1f1}.password-toggle:focus-visible{outline:2px solid #111;outline-offset:1px}.eye-icon{position:relative;width:22px;height:14px;border:2px solid currentColor;border-radius:50%/65%;display:block}.eye-icon:after{content:"";position:absolute;width:6px;height:6px;border:2px solid currentColor;border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%);background:#fff}.password-toggle.is-visible .eye-icon:before{content:"";position:absolute;width:27px;height:2px;background:currentColor;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-45deg);z-index:2}.loginbox .password-wrap{margin:15px 0}.loginbox .password-wrap input{margin:0}.grid .password-wrap input{margin-top:7px}.grid .password-toggle{top:calc(50% + 3px)}

.login-logo{display:block;width:130px;max-width:42%;height:auto;margin:0 auto 18px;background:#111;border-radius:12px;padding:12px}
.password-wrap{position:relative!important}
.password-wrap input{padding-right:58px!important}
.password-toggle{position:absolute!important;right:10px!important;left:auto!important;top:50%!important;transform:translateY(-50%)!important;width:40px!important;height:40px!important;margin:0!important;padding:0!important;z-index:5}
.grid .password-toggle{top:calc(50% + 3px)!important}
.header-brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.12em}.header-brand img{width:52px;height:38px;object-fit:contain}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.pagehead h1{margin:0}.filter select{margin:0;min-width:210px}.loginbox h1{margin-bottom:8px}.loginbox p{color:#666}.login-logo{width:150px;max-width:55%;background:#111;border-radius:14px;padding:14px}
@media(max-width:700px){header{height:auto;min-height:68px;padding:10px 4%;gap:8px}.header-brand span{font-size:13px}.header-brand img{width:42px}.userbadge{display:none}nav{top:68px;padding-left:4%;padding-right:4%}.pagehead{align-items:stretch;flex-direction:column}.filter select{width:100%}.stats{gap:9px}.stat{padding:15px}.stat b{font-size:27px}.stat span{font-size:12px}}
.series-mark{width:54px;height:54px;border-radius:12px;object-fit:cover;background:#f3f3f3;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px;flex:0 0 54px}.row-main{display:flex;gap:12px;align-items:center;min-width:0}.status-pill{display:inline-block;padding:3px 8px;border-radius:999px;background:#eee;font-size:12px;margin-left:6px}.status-geplant{background:#fff1c7}.status-aktiv{background:#dff4e4}.status-abgeschlossen{background:#e7e7e7}.actions{display:flex;gap:6px;flex-wrap:wrap}.editbox{margin-top:12px;padding-top:12px;border-top:1px solid #eee}.logo-preview{max-width:160px;max-height:80px;object-fit:contain;background:#f5f5f5;border-radius:10px;padding:8px}
.event-filter select{min-width:min(100%,520px)}
.event-context{margin-top:18px;padding:16px 18px;border-radius:12px;background:#f3f3f3;display:flex;gap:8px;flex-direction:column}.event-context b{font-size:18px}.event-context span{color:#666}.actions button[disabled]{opacity:.4;cursor:not-allowed}
.field-help{display:block;color:#777;font-weight:500;margin-top:6px}.guest-info{min-width:0}.check-status{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}.check-status strong{background:#111;color:#fff;border-radius:999px;padding:6px 10px;font-size:13px}.check-status span{font-size:13px;color:#666}.check-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.check-controls form{margin:0}.counter-btn{width:42px;height:42px;padding:0;font-size:22px}.counter{font-weight:900;min-width:54px;text-align:center}.all-checkin button{white-space:nowrap}.check-controls button:disabled{opacity:.3;cursor:not-allowed}.check-history{margin-top:9px}.check-history summary{font-size:12px;color:#777;cursor:pointer}.check-history small{display:block!important;margin-top:4px!important}.guest-row.done{opacity:1;background:#f0faf2;margin:0 -10px;padding-left:10px;padding-right:10px;border-radius:10px}
@media(max-width:700px){.guest-row{gap:12px}.check-controls{width:100%;display:grid;grid-template-columns:42px 1fr 42px;gap:8px}.check-controls form{width:auto}.check-controls .counter-btn{width:42px}.check-controls .counter{align-self:center}.check-controls .all-checkin{grid-column:1/-1;width:100%}.check-controls .all-checkin button{width:100%}}

/* V9 Dashboard-Schnellzugriffe */
.event-quick-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.quick-btn{display:inline-flex;align-items:center;justify-content:center;background:#111;color:#fff;text-decoration:none;border-radius:9px;padding:10px 13px;font-weight:800;font-size:13px;white-space:nowrap}.quick-btn:hover{opacity:.82}
/* V9 schneller Check-in */
.counter-edit{display:flex;align-items:center;gap:5px;font-weight:900}.counter-edit .checkin-number{width:64px;margin:0;padding:9px 7px;text-align:center;font-weight:900;font-size:16px}.all-checkin-btn{white-space:nowrap}.ajax-checkin[data-busy="1"]{opacity:.72}
@media(max-width:700px){.event-dashboard-row{width:100%}.event-quick-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.event-quick-actions .quick-btn{width:100%}.ajax-checkin{grid-template-columns:42px minmax(90px,1fr) 42px!important}.ajax-checkin .all-checkin-btn{grid-column:1/-1;width:100%}.counter-edit{justify-content:center}}
/* V10: eventbezogenes Kassa-Dashboard */
.dashboard-event-focus{margin-bottom:18px}.event-focus-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.event-focus-head h2{margin:3px 0 6px}.event-focus-head p{margin:0;color:#666}.event-focus-head small{color:#777;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.focus-action{white-space:nowrap}.kassa-actions{display:flex;gap:10px;flex-wrap:wrap}.kassa-stats{margin-top:0}
@media(max-width:700px){.event-focus-head{align-items:stretch;flex-direction:column}.focus-action{text-align:center}.kassa-stats{grid-template-columns:repeat(2,1fr)}}
/* v11 – Kassa: Gästeliste priorisiert, Gast hinzufügen dezent */
.guest-add-toggle{width:100%;background:#fff;color:#111;border:1px solid #d8d8d8;text-align:left;padding:14px 16px;border-radius:10px;font-weight:700;cursor:pointer}
.guest-add-toggle:after{content:none;display:none}

/* V14 – Gästeliste: Fokus auf noch offene Gruppen */
.guest-search-wrap{display:flex;align-items:center;gap:12px;margin:4px 0 20px}.guest-search-wrap input{margin:0;background:#f7f7f7;border:1px solid #cfcfcf;padding-left:16px}.guest-search-count{white-space:nowrap;color:#666;font-size:13px;font-weight:700}.guest-section{margin-top:12px}.guest-section h3{font-size:18px;margin:0;padding:12px 0;border-bottom:2px solid #111;display:flex;align-items:center;gap:7px}.guest-section h3 span{color:#777;font-size:14px}.guest-section-help{font-size:13px;color:#777;margin:10px 0 2px}.guest-done-section{margin-top:28px;padding-top:2px}.guest-done-section h3{border-bottom-color:#d5d5d5;color:#555}.guest-row.done{background:#e2e4e3;border:1px solid #c8ccca;margin:8px 0;padding:14px;border-radius:12px;color:#555}.guest-row.done .check-status strong{background:#626765}.guest-row.done .check-controls{opacity:.65}.guest-row[hidden]{display:none!important}.guest-section.search-empty .guest-section-list:after{content:'Keine passenden Einträge.';display:block;color:#888;font-size:13px;padding:14px 0}.guest-done-section.search-empty .guest-section-help{display:none}
@media(max-width:700px){.guest-search-wrap{align-items:stretch;flex-direction:column;gap:7px}.guest-search-count{padding-left:2px}.guest-done-section{margin-top:22px}}

/* v15: Abstand zwischen Benutzername und Abmelden im Header */
header .userbadge{margin-left:auto;margin-right:24px;white-space:nowrap}
header .logout{white-space:nowrap}
@media(max-width:700px){header .userbadge{margin-right:16px}}

/* V16 – Kassa-Workflow: offene Personen, einklappbares Erledigt */
.guest-summary{display:inline-flex;align-items:baseline;gap:9px;background:#111;color:#fff;border-radius:12px;padding:11px 15px;margin:2px 0 16px}.guest-summary strong{font-size:24px}.guest-summary span{font-size:13px;font-weight:700}.guest-done-toggle{width:100%;padding:0;background:transparent;color:inherit;text-align:left;font-size:18px;display:flex;align-items:center;gap:7px}.guest-toggle-icon{margin-left:auto;transition:transform .15s ease}.guest-done-section.is-collapsed .guest-section-list,.guest-done-section.is-collapsed .guest-section-help{display:none}.guest-done-section:not(.is-collapsed) .guest-toggle-icon{transform:rotate(180deg)}

/* V17 – Erledigt-Bereich als deutlich erkennbarer Aufklapp-Button */
.guest-done-section h3{padding:0;border-bottom:0}
.guest-done-toggle{width:100%;min-height:54px;padding:14px 16px;background:#f1f1f1;border:1px solid #c9c9c9;border-radius:12px;color:#333;text-align:left;font-size:17px;font-weight:800;display:flex;align-items:center;gap:8px;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.guest-done-toggle:hover{background:#e8e8e8;border-color:#aaa}
.guest-done-toggle:focus-visible{outline:3px solid #111;outline-offset:2px}
.guest-done-toggle .guest-toggle-icon{margin-left:auto;width:28px;height:28px;border-radius:50%;background:#111;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:15px;line-height:1;transition:transform .15s ease}
.guest-done-section.is-collapsed .guest-done-toggle:before{content:'Erledigte Gruppen anzeigen';font-size:12px;font-weight:600;color:#777;order:2;margin-left:4px}
.guest-done-section:not(.is-collapsed) .guest-done-toggle:before{content:'Erledigte Gruppen ausblenden';font-size:12px;font-weight:600;color:#777;order:2;margin-left:4px}
.guest-done-toggle .guest-section-count{order:1}.guest-done-toggle .guest-toggle-icon{order:3}
@media(max-width:700px){.guest-done-toggle{min-height:58px;padding:15px;font-size:17px}.guest-done-section.is-collapsed .guest-done-toggle:before,.guest-done-section:not(.is-collapsed) .guest-done-toggle:before{display:none}}

/* V19: schneller Nachnamen-Workflow an der Kassa */
.guest-name .guest-last-name{font-weight:900;text-transform:uppercase;letter-spacing:.015em}
.guest-name .guest-first-name{font-weight:650;color:#555}
.guest-alpha{display:flex;flex-wrap:wrap;gap:5px;margin:-7px 0 18px}
.guest-alpha button{min-width:34px;height:34px;padding:0 8px;border:1px solid #d0d0d0;border-radius:8px;background:#fff;color:#111;font-size:13px;font-weight:800;cursor:pointer}
.guest-alpha button:hover,.guest-alpha button:focus-visible{background:#111;color:#fff;border-color:#111}
.guest-alpha button:disabled{opacity:.25;cursor:default;background:#f5f5f5;color:#777;border-color:#ddd}
.guest-row.alpha-target{scroll-margin-top:18px}
@media(max-width:700px){.guest-alpha{gap:4px}.guest-alpha button{min-width:31px;height:34px;padding:0 6px;font-size:12px}}

/* V21: Suchtreffer und A–Z-Sprung visuell hervorheben */
.guest-row{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.guest-row.search-match{background:#f2f2f2;border-radius:10px;box-shadow:inset 4px 0 0 #111;padding-left:12px;padding-right:10px}
.guest-row.done.search-match{background:#d9dddb;border-color:#aeb4b1;box-shadow:inset 4px 0 0 #111}
.guest-row.alpha-target{background:#ececec;border-radius:10px;box-shadow:inset 4px 0 0 #111,0 0 0 2px #d5d5d5;padding-left:12px;padding-right:10px}
.guest-alpha button.is-active{background:#111;color:#fff;border-color:#111}
@media(max-width:700px){.guest-row.search-match,.guest-row.alpha-target{padding-left:10px;padding-right:8px}}

/* V22: optischer Abstand zwischen Trennlinie und ersten offenen Gästetreffer */
.guest-open-section .guest-section-list{padding-top:10px}

/* V23 – Gästelisten-Kategorien: Frei, Friendship, VIP */
.guest-category-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}
.guest-category{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;letter-spacing:.035em;border:1px solid #cfcfcf;background:#f5f5f5;color:#333}
.guest-category-friendship{background:#111;color:#fff;border-color:#111}
.guest-category-vip{background:#fff;border:2px solid #111;color:#111}
.friendship-amount{font-size:13px;color:#111}
.guest-row.done .guest-category,.guest-row.done .friendship-amount{opacity:.75}
@media(max-width:700px){.guest-category-line{margin-top:6px}.friendship-amount{font-size:12px}}

/* V23 – Gästelisten-Kategorien: Frei, Friendship, VIP */
.guest-category-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}
.guest-category{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;letter-spacing:.035em;border:1px solid #cfcfcf;background:#f5f5f5;color:#333}
.guest-category-friendship{background:#111;color:#fff;border-color:#111}
.guest-category-vip{background:#fff;border:2px solid #111;color:#111}
.friendship-amount{font-size:13px;color:#111}
.guest-row.done .guest-category,.guest-row.done .friendship-amount{opacity:.75}
@media(max-width:700px){.guest-category-line{margin-top:6px}.friendship-amount{font-size:12px}}

/* V23 – Gästelisten-Kategorien: Frei, Friendship, VIP */
.guest-category-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}
.guest-category{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;letter-spacing:.035em;border:1px solid #cfcfcf;background:#f5f5f5;color:#333}
.guest-category-friendship{background:#111;color:#fff;border-color:#111}
.guest-category-vip{background:#fff;border:2px solid #111;color:#111}
.friendship-amount{font-size:13px;color:#111}
.guest-row.done .guest-category,.guest-row.done .friendship-amount{opacity:.75}
@media(max-width:700px){.guest-category-line{margin-top:6px}.friendship-amount{font-size:12px}}

/* V24 – dezente Farbcodierung der Gästelisten-Kategorien */
.guest-category-free{
  background:#eaf4ec;
  border-color:#b8d2bd;
  color:#315d39;
}
.guest-category-friendship{
  background:#f8eee1;
  border-color:#dfc19a;
  color:#80531f;
}
.guest-category-vip{
  background:#f6f0dc;
  border-color:#d8c27a;
  color:#6f5a18;
}
.guest-row.done .guest-category{opacity:.72}


/* V25 – Gästelisteneinträge löschen: nur Administrator/Gästeliste */
.guest-delete-form{margin-left:10px;align-self:center}
.guest-delete-btn{background:#fff;color:#8a2f2f;border:1px solid #d9bcbc;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800;white-space:nowrap}
.guest-delete-btn:hover,.guest-delete-btn:focus-visible{background:#f8eeee;border-color:#bd8585;color:#6f2020}
.guest-row.done .guest-delete-btn{background:#f4f4f4}
@media(max-width:700px){.guest-delete-form{margin:8px 0 0;width:100%}.guest-delete-btn{width:100%;padding:10px 12px}}


/* V26 – nur für Administratoren sichtbares Aktivitätsprotokoll */
.activity-log-help{margin-top:-4px;color:#666}
.activity-log-row{display:flex;gap:18px;padding:16px 0;border-bottom:1px solid #e5e5e5}
.activity-log-row:last-child{border-bottom:0}
.activity-log-time{min-width:88px;display:flex;flex-direction:column;gap:2px}
.activity-log-time span{font-size:12px;color:#777}
.activity-log-content{display:flex;flex-direction:column;gap:5px;min-width:0}
.activity-log-content small{color:#666;line-height:1.45}
@media(max-width:700px){.activity-log-row{gap:10px;flex-direction:column}.activity-log-time{min-width:0;flex-direction:row;gap:8px;align-items:baseline}}

/* V27: Gästelisteneinträge bearbeiten */
.guest-edit-btn{background:#fff;color:#222;border:1px solid #cfcfcf;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:800;white-space:nowrap;margin-left:10px}
.guest-edit-btn:hover,.guest-edit-btn:focus-visible{background:#f3f3f3;border-color:#999}
.guest-edit-dialog{width:min(620px,calc(100% - 28px));border:0;border-radius:16px;padding:0;box-shadow:0 20px 70px rgba(0,0,0,.28)}
.guest-edit-dialog::backdrop{background:rgba(0,0,0,.48)}
.guest-edit-form{padding:22px}.guest-edit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.guest-edit-head h2{margin:2px 0 0}.guest-edit-head small{color:#777;font-weight:700}
.guest-edit-close{width:38px;height:38px;border-radius:50%;padding:0;background:#f1f1f1;color:#222;font-size:24px;line-height:1;border:0}.guest-edit-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.guest-edit-actions .secondary{background:#eee;color:#222}
@media(max-width:700px){.guest-edit-btn{margin:8px 0 0;width:100%;padding:10px 12px}.guest-edit-dialog{width:calc(100% - 20px)}.guest-edit-form{padding:18px}.guest-edit-actions{flex-direction:column-reverse}.guest-edit-actions button{width:100%}}

/* V28 – VIP-Kategorien + Admin-Gästelisten-Auswertung */
.guest-category-vip_free{
  background:#f6f0dc;
  border-color:#d8c27a;
  color:#6f5a18;
}
.guest-category-vip_friendship{
  background:#eee9f7;
  border-color:#c8b9df;
  color:#5b4779;
}
.event-evaluation{margin:12px 0 22px;padding:0 14px;border:1px solid #e1e1e1;border-radius:12px;background:#fafafa}
.event-evaluation summary{cursor:pointer;padding:13px 0;font-weight:800}
.evaluation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 0 14px}
.evaluation-item{background:#fff;border:1px solid #e4e4e4;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:5px}
.evaluation-item span{font-size:13px;color:#666}
.evaluation-item strong{font-size:14px}
@media(max-width:700px){.evaluation-grid{grid-template-columns:1fr}}

/* V29 – Gesamtsumme Bareinnahmen Gästeliste */
.evaluation-total{margin-top:10px;padding:13px 16px;border:1px solid #e1e1e1;background:#f1f1f1;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-weight:700}
.evaluation-total strong{font-size:1.15rem;white-space:nowrap}
@media(max-width:640px){.evaluation-total{align-items:flex-start;flex-direction:column;gap:4px}}

/* V30 – Preise im Dashboard immer in eigener zweiter Zeile */
.event-dashboard-row .event-meta-line,.event-dashboard-row .event-price-line{display:block}
.event-dashboard-row .event-price-line{margin-top:4px}

/* V31 – Gästeliste: feste Spalten für Check-in und Admin-Aktionen */
@media(min-width:701px){
  .guest-row{
    display:grid;
    grid-template-columns:minmax(230px,1fr) 342px 94px 88px;
    column-gap:10px;
    align-items:center;
  }
  .guest-row .guest-info{grid-column:1;min-width:0}
  .guest-row .check-controls{
    grid-column:2;
    display:grid;
    grid-template-columns:42px 96px 42px 146px;
    gap:6px;
    align-items:center;
    width:342px;
    flex-wrap:nowrap;
  }
  .guest-row .counter-edit{justify-content:center;white-space:nowrap}
  .guest-row .all-checkin-btn{width:146px;padding-left:10px;padding-right:10px;white-space:nowrap}
  .guest-row .guest-edit-btn{grid-column:3;width:94px;margin-left:0}
  .guest-row .guest-delete-form{grid-column:4;width:88px;margin-left:0}
  .guest-row .guest-delete-btn{width:88px}
  /* Rollen ohne Bearbeiten/Löschen behalten dieselbe saubere Check-in-Spalte. */
  .guest-row:not(:has(.guest-edit-btn)){grid-template-columns:minmax(230px,1fr) 342px}
}

/* V32 – separate Berechtigung für Gästelisten-Auswertung */
.user-account{padding:16px 0;border-bottom:1px solid #ececec}.user-account:last-child{border-bottom:0}.user-account-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px}.user-account-head small{display:block;margin-top:4px}.user-permission-form{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}.user-permission-form .checks{display:flex;gap:14px;flex-wrap:wrap}.user-permission-form .secondary{width:auto;margin:0}.guest-report-card{border:1px solid #e5e5e5}.guest-report-card .event-evaluation{margin:0}
@media(max-width:700px){.user-permission-form{align-items:stretch}.user-permission-form .checks{display:grid;grid-template-columns:1fr}.user-permission-form .secondary{width:100%}}

/* V35: Event abschließen und archivieren */
.complete-event-btn{background:#222;color:#fff;border-color:#222}
.archive-card{margin-top:18px}
.event-archive>summary{cursor:pointer;font-weight:700;padding:4px 0;list-style:none}
.event-archive>summary::-webkit-details-marker{display:none}
.event-archive>summary:before{content:'▶';display:inline-block;margin-right:9px;font-size:.78em;transition:transform .15s ease}
.event-archive[open]>summary:before{transform:rotate(90deg)}
.archive-list{margin-top:14px}
.evaluation-attendance-total{margin-top:14px}
@media(max-width:700px){.complete-event-btn{width:100%}}

/* V36 – Sitzlounges & Stehtische */
.table-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.table-stats .stat{background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:16px}.table-stats .stat b{display:block;font-size:1.35rem}.table-stats .stat span{display:block;color:#666;font-size:13px;margin-top:4px}.table-form-help{margin:14px 0 0;color:#666;font-size:13px}.table-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:10px}.table-section-head h2{margin:0 0 3px}.table-section-head small,.table-section-head>span{color:#666}.table-row{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px 0;border-top:1px solid #ececec}.table-row:first-of-type{border-top:0}.table-row.done{opacity:.72}.table-number-badge{display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:10px;background:#111;color:#fff;font-weight:900;letter-spacing:.04em}.table-number-badge.standing{background:#efefef;color:#222;border:1px solid #d5d5d5}.table-main{min-width:0}.table-main b,.table-main small{display:block}.table-main small{margin-top:4px;color:#666}.table-main .envelope-meta{color:#397347;font-weight:700}.table-row button:disabled{background:#e9e9e9;color:#666;border-color:#ddd;cursor:default}.table-reservation-form .wide{grid-column:1/-1}
@media(max-width:800px){.table-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.table-row{grid-template-columns:62px minmax(0,1fr)}.table-row form{grid-column:1/-1}.table-row form button{width:100%}.table-section-head{flex-direction:column;gap:4px}}

/* V37 – Tische / Loungen: Kassa-Schnellzugriff, Namenssuche und Filter */
.focus-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.table-search-card{padding-bottom:18px}.table-search-line{display:flex;align-items:center;gap:12px}.table-search-line input{flex:1;min-width:0}.table-search-line span{font-size:13px;font-weight:700;color:#666;white-space:nowrap}.table-alpha{margin:12px 0 14px}.table-filter{display:flex;gap:7px;flex-wrap:wrap}.table-filter button{width:auto;background:#fff;color:#222;border:1px solid #d5d5d5;padding:9px 13px;border-radius:9px;font-weight:800}.table-filter button.is-active{background:#111;color:#fff;border-color:#111}.table-row.search-match{background:#f2f2f2;border-radius:10px;box-shadow:inset 4px 0 0 #111;padding-left:12px;padding-right:10px}.table-row.alpha-target{background:#ececec;border-radius:10px;box-shadow:inset 4px 0 0 #111;padding-left:12px;padding-right:10px}.table-filter-empty{display:none}
@media(max-width:700px){.focus-actions{width:100%;justify-content:stretch}.focus-actions .quick-btn{flex:1 1 100%;text-align:center}.table-search-line{align-items:stretch;flex-direction:column;gap:6px}.table-row.search-match,.table-row.alpha-target{padding-left:10px;padding-right:8px}}

/* V38 – Kassa: aktives Event und Ein-Klick-Wechsel zwischen Gästeliste und Tische/Loungen */
.kassa-event-context{padding-bottom:16px}.kassa-event-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.kassa-event-head small,.kassa-event-head b{display:block}.kassa-event-head small{color:#777;margin-bottom:4px}.change-event-link{font-size:13px;font-weight:700;color:#555;text-decoration:none;white-space:nowrap}.event-switch-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0 10px}.event-switch-tabs a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #d5d5d5;border-radius:10px;background:#fff;color:#222;text-decoration:none;font-weight:800}.event-switch-tabs a.active{background:#111;color:#fff;border-color:#111}.kassa-event-context .event-context{margin-top:8px}
@media(max-width:600px){.kassa-event-head{gap:10px}.kassa-event-head b{font-size:14px}.event-switch-tabs{gap:6px}.event-switch-tabs a{font-size:14px;padding:9px 8px}.change-event-link{font-size:12px}}

/* V39 – Lounge-Anwesenheit, Nummernsortierung und sichtbare Statistikwerte */
.table-stats .stat{color:#171717}.table-stats .stat b{color:#111}.lounge-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.lounge-attendance{display:flex;align-items:center;gap:7px;margin:0}.lounge-attendance .counter-btn{width:42px;height:42px;padding:0;font-size:22px}.lounge-attendance .lounge-number{width:58px;margin:0;padding:9px 6px;text-align:center;font-weight:900}.lounge-set-btn{padding:11px 12px}.lounge-envelope-form{margin:0}.lounge-envelope-form button{white-space:nowrap;padding-left:14px;padding-right:14px;font-size:14px}@media(max-width:800px){.lounge-actions{grid-column:1/-1;width:100%;justify-content:stretch}.lounge-attendance{flex:1 1 100%;display:grid;grid-template-columns:42px minmax(90px,1fr) 42px auto}.lounge-attendance .counter-edit{justify-content:center}.lounge-envelope-form{width:100%}.lounge-envelope-form button{width:100%}}

/* V40: Kuvertausgabe ist der wichtigste Lounge-Aktionsbutton. */
.lounge-envelope-form button:not(:disabled){background:#178447;border-color:#178447;color:#fff;font-weight:900;box-shadow:0 2px 8px rgba(0,0,0,.14)}
.lounge-envelope-form button:not(:disabled):hover{background:#126d3a;border-color:#126d3a}
.lounge-envelope-form button:disabled{background:#e7f3eb;border-color:#b9ddc5;color:#176a3c;opacity:1;font-weight:900}

/* V41 – vollständig erledigte Sitzlounges nach unten verschieben */
.lounge-done-section{margin-top:18px;border-top:1px solid #e3e3e3;padding-top:14px}.lounge-done-section summary{list-style:none;cursor:pointer;background:#f1f1f1;border:1px solid #c9c9c9;border-radius:12px;padding:14px 16px;font-weight:800;display:flex;align-items:center;gap:8px}.lounge-done-section summary::-webkit-details-marker{display:none}.lounge-done-section summary strong{background:#111;color:#fff;border-radius:999px;min-width:26px;padding:3px 8px;text-align:center;font-size:13px}.lounge-done-section summary small{color:#777;font-weight:600;margin-left:4px}.lounge-done-section[open] summary small:before{content:'Erledigte Lounges ausblenden';font-size:0}.lounge-done-section .table-row.done{background:#f3f5f3;border-radius:10px;padding-left:10px;padding-right:10px;opacity:.72}.lounge-done-section[hidden]{display:none!important}

/* V42 – Lounge-Gutscheinwert + Erledigt-Leiste wie Gästeliste */
.lounge-done-section summary{min-height:58px;padding:14px 16px;gap:10px}
.lounge-done-section summary .lounge-done-title{font-size:17px;font-weight:900;display:flex;align-items:center;gap:5px}
.lounge-done-section summary .lounge-done-title em{font-style:normal;color:#777;font-size:13px;font-weight:700}
.lounge-done-section summary small{font-size:12px;font-weight:700;color:#777}
.lounge-done-arrow{margin-left:auto;width:30px;height:30px;border-radius:50%;background:#111;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;line-height:1;transition:transform .15s ease}
.lounge-done-section[open] .lounge-done-arrow{transform:rotate(180deg)}
.lounge-done-section[open] summary small{font-size:0}
.lounge-done-section[open] summary small:after{content:'Erledigte Lounges ausblenden';font-size:12px}

/* V43 – Restpersonen, Tisch-Live-Sync und Lounge-Auswertung */
.lounge-open-meta{font-weight:800;color:#8a5a00}.table-row.done .lounge-open-meta{color:#397347}.lounge-evaluation{margin-top:12px}

/* V44 – Kassa-Dashboard als Live-Veranstaltungszentrale */
.kassa-live-overview{margin:0 0 20px}.kassa-live-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:0 0 10px}.kassa-live-head h2{margin:0;font-size:20px}.kassa-live-head small{color:#777}.kassa-live-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kassa-live-card{display:flex;flex-direction:column;min-height:158px;padding:18px;border-radius:16px;background:#fff;border:1px solid #dedede;color:#171717;text-decoration:none;box-shadow:0 2px 10px #00000008;transition:transform .12s ease,border-color .12s ease}.kassa-live-card:hover{transform:translateY(-1px);border-color:#999}.kassa-live-card .live-label{font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#666}.kassa-live-card>strong{font-size:38px;line-height:1;margin:14px 0 4px}.kassa-live-card .live-main{font-weight:800}.kassa-live-card small{margin-top:auto;padding-top:12px;color:#666}.kassa-live-card small b{color:#222}.kassa-live-card.live-attention{border:2px solid #111}.kassa-live-card.live-attention>strong{color:#111}@media(max-width:800px){.kassa-live-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kassa-live-card{min-height:145px}}@media(max-width:430px){.kassa-live-grid{gap:8px}.kassa-live-card{padding:14px;min-height:135px}.kassa-live-card>strong{font-size:34px}.kassa-live-head{align-items:flex-start;flex-direction:column;gap:2px}}
/* V46: finale Event-Auswertung im Archiv */
.archive-final-summary{margin:12px 0 20px;padding:18px;border:1px solid #ddd;border-radius:14px;background:#fafafa}
.archive-final-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.archive-final-head b{display:block;font-size:17px}.archive-final-head small{display:block;margin-top:3px;color:#6f6f6f}.archive-final-badge{font-size:11px;font-weight:800;letter-spacing:.08em;padding:6px 9px;border-radius:999px;background:#e8f4eb;color:#26743a}
.archive-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.archive-summary-item{background:#fff;border:1px solid #e3e3e3;border-radius:11px;padding:13px}.archive-summary-item span,.archive-summary-item small{display:block;color:#6c6c6c;font-size:12px}.archive-summary-item strong{display:block;font-size:22px;margin:5px 0 3px}.archive-final-details{margin-top:12px;border-top:1px solid #e1e1e1;padding-top:12px}.archive-final-details>summary{cursor:pointer;font-weight:700}.archive-detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:12px}.archive-detail-columns h4{margin:0 0 8px}.archive-detail-columns p{display:flex;justify-content:space-between;gap:12px;margin:0;padding:8px 0;border-bottom:1px solid #eee}.archive-detail-columns p span{text-align:right;color:#666}
@media(max-width:900px){.archive-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-detail-columns{grid-template-columns:1fr}}
@media(max-width:560px){.archive-summary-grid{grid-template-columns:1fr}.archive-final-head{align-items:flex-start}.archive-final-badge{white-space:nowrap}}

/* V47: Event-Export */
.event-export{margin-top:14px;padding:14px 16px;border:1px solid #e4e4e4;border-radius:12px;background:#fafafa;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.event-export>b{font-size:14px}.event-export-links{display:flex;gap:8px;flex-wrap:wrap}.event-export-links a{display:inline-block;text-decoration:none;background:#111;color:#fff;border-radius:9px;padding:9px 12px;font-size:13px;font-weight:800}.event-export-links a:hover{background:#333}.archive-export{margin-top:16px}
@media(max-width:700px){.event-export{align-items:stretch;flex-direction:column}.event-export-links{display:grid;grid-template-columns:1fr 1fr}.event-export-links a{text-align:center}.archive-export .event-export-links{grid-template-columns:1fr}}

/* V48 – Datensicherung & Wiederherstellung */
.backup-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.backup-head h2{margin-top:0}.backup-head p{margin-bottom:0;color:#666}.backup-download-main,.backup-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#111;color:#fff;border-radius:9px;padding:11px 14px;font-weight:800;white-space:nowrap}.backup-download-main:hover,.backup-link:hover{background:#333}.backup-note{margin-top:18px;padding:14px 16px;border-radius:11px;background:#f3f3f3;display:flex;flex-direction:column;gap:4px}.backup-note span{color:#666;font-size:13px}.backup-list{display:flex;flex-direction:column}.backup-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #e8e8e8}.backup-row:last-child{border-bottom:0}.backup-row b,.backup-row small{display:block}.backup-row small{margin-top:3px;color:#777}.backup-row .actions{display:flex;align-items:center;gap:8px}.backup-row form{margin:0}.backup-link{padding:9px 12px;font-size:13px}.backup-upload{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.backup-upload label{flex:1;min-width:260px}.backup-upload input[type=file]{width:100%;margin-top:6px}
@media(max-width:700px){.backup-head{flex-direction:column}.backup-download-main{width:100%}.backup-row{align-items:flex-start;flex-direction:column}.backup-row .actions{width:100%}.backup-row .actions>a,.backup-row .actions form,.backup-row .actions button{flex:1;width:100%}.backup-upload{align-items:stretch;flex-direction:column}.backup-upload label{min-width:0}}

/* V131: Wiederherstellen neutral, nur Löschen als Warnaktion rot */
.backup-restore{color:#111}

/* V49: Veranstaltung duplizieren */
.duplicate-event-btn{background:#f1f1f1;color:#111;border:1px solid #cfcfcf}
.duplicate-event-btn:hover{background:#e7e7e7}
.duplicate-event-box{margin:12px 0 18px;border:2px solid #111;background:#fafafa}
.duplicate-event-intro{display:flex;flex-direction:column;gap:4px;padding-bottom:4px}
.duplicate-event-intro small{color:#666;line-height:1.45}
.duplicate-event-actions{display:flex;gap:8px;align-items:end;justify-content:flex-end}
@media(max-width:720px){.duplicate-event-actions{grid-column:1/-1;justify-content:stretch}.duplicate-event-actions button{flex:1}}

/* V50 – sauberes Duplizieren-Modal */
.duplicate-event-modal{width:min(620px,calc(100vw - 32px));max-width:none;border:0;border-radius:18px;padding:0;background:#fff;color:#111;box-shadow:0 24px 80px rgba(0,0,0,.28)}
.duplicate-event-modal::backdrop{background:rgba(0,0,0,.48);backdrop-filter:blur(2px)}
.duplicate-event-form{padding:26px;display:flex;flex-direction:column;gap:20px}
.duplicate-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.duplicate-modal-head h3{font-size:24px;line-height:1.15;margin:0 0 7px}.duplicate-modal-head strong{font-size:14px;color:#666}
.duplicate-modal-close{width:36px;height:36px;min-width:36px;border-radius:50%;padding:0;background:#f1f1f1;color:#111;font-size:25px;font-weight:500;line-height:1;border:0}.duplicate-modal-close:hover{background:#e5e5e5}
.duplicate-modal-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.duplicate-modal-fields label{font-weight:800}.duplicate-modal-fields input{margin-top:7px}
.duplicate-modal-note{margin:0;padding:14px 16px;border-radius:11px;background:#f5f5f5;color:#666;font-size:13px;line-height:1.5}
.duplicate-event-modal .duplicate-event-actions{display:flex;justify-content:flex-end;gap:9px}.duplicate-event-modal .duplicate-event-actions button{min-height:42px}
@media(max-width:600px){.duplicate-event-form{padding:20px}.duplicate-modal-fields{grid-template-columns:1fr}.duplicate-event-modal .duplicate-event-actions{flex-direction:column-reverse}.duplicate-event-modal .duplicate-event-actions button{width:100%}}

/* v52 – kompakte Veranstaltungsverwaltung */
.events-create-card { padding: 0; overflow: hidden; }
.event-accordion { border: 1px solid #e2e2e2; border-radius: 14px; background: #fff; overflow: hidden; margin: 0 0 12px; }
.event-create-accordion { border: 0; margin: 0; border-radius: inherit; }
.event-accordion > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; user-select: none; }
.event-accordion > summary::-webkit-details-marker { display: none; }
.event-accordion > summary > span:first-child { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.event-accordion > summary b { font-size: 18px; line-height: 1.2; }
.event-create-accordion > summary b { font-size: 22px; }
.event-accordion > summary small { display: block; color: #6f6f6f; font-weight: 500; }
.event-accordion-arrow { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #111; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; transition: transform .18s ease; }
.event-accordion[open] > summary .event-accordion-arrow { transform: rotate(180deg); }
.event-accordion[open] > summary { border-bottom: 1px solid #ececec; }
.event-accordion-body { padding: 20px 22px 24px; }
.event-accordion-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.event-accordion-actions form { margin: 0; }
.event-accordion .editbox { margin-top: 10px; }
.archive-list .event-accordion { margin-bottom: 10px; }
@media (max-width: 700px) {
  .event-accordion > summary { padding: 16px; }
  .event-accordion-body { padding: 16px; }
  .event-accordion > summary b { font-size: 16px; }
  .event-create-accordion > summary b { font-size: 19px; }
}

/* v53: einheitliche Aufklapp-Logik für Eventreihen und Archiv */
.series-create-card{padding:0;overflow:hidden}
.series-list-card .series-item-accordion:last-child{margin-bottom:0}
.series-open-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid #ececec;margin-bottom:16px}
.series-open-head .row-main{display:flex;align-items:center;gap:12px;min-width:0}
.archive-card{padding:0;overflow:hidden}
.archive-outer-accordion{border:0!important;margin:0!important;border-radius:inherit!important}
.archive-outer-accordion>.archive-list{margin-top:0}
.archive-outer-accordion[open]>summary{border-bottom:1px solid #ececec}
.event-archive>summary:before{display:none!important;content:none!important}
@media(max-width:700px){.series-open-head{align-items:flex-start;flex-direction:column}.series-open-head .actions{width:100%}}

/* V55 – kompakter Kassa-Eventkontext + einklappbarer Bereich „Gast hinzufügen“ */
.guest-add-card{padding:0;overflow:hidden}
.guest-add-toggle{width:100%;min-height:64px;padding:16px 20px;border:0;border-radius:inherit;background:#fff;color:#111;display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;font-size:22px;font-weight:900;cursor:pointer}
.guest-add-toggle:hover{background:#fafafa}
.guest-add-toggle-icon{flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#111;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:13px;transition:transform .18s ease}
.guest-add-card:not(.is-collapsed) .guest-add-toggle-icon{transform:rotate(180deg)}
.guest-add-body{padding:0 20px 20px}
.guest-add-card.is-collapsed .guest-add-body{display:none}
@media(max-width:600px){
 .kassa-event-context{padding:14px 16px}
 .kassa-event-head small{font-size:12px;margin-bottom:2px}
 .kassa-event-head b{font-size:13px;line-height:1.25}
 .change-event-link{font-size:11px}
 .event-switch-tabs{margin:10px 0 7px}
 .event-switch-tabs a{min-height:40px;padding:8px 7px;font-size:13px}
 .kassa-event-context .event-context{margin-top:6px;padding:11px 13px;font-size:13px}
 .guest-add-toggle{min-height:58px;padding:13px 16px;font-size:19px}
 .guest-add-body{padding:0 16px 16px}
}

/* V57 – mobiler Kopfbereich: Benutzer + Abmelden bleiben auf iPhone/PWA erreichbar */
@media(max-width:700px){
  header{
    display:flex!important;
    visibility:visible!important;
    height:52px!important;
    min-height:52px!important;
    padding:6px 14px!important;
    gap:8px;
    background:#111;
    position:sticky;
    top:0;
    z-index:30;
  }
  header .header-brand{display:flex!important;align-items:center;gap:7px;min-width:0;margin-right:auto}
  header .header-brand img{display:block!important;width:34px!important;height:28px!important;object-fit:contain}
  header .header-brand span{display:inline!important;font-size:11px!important;letter-spacing:.11em;white-space:nowrap}
  header .userbadge{
    display:block!important;
    margin:0 6px 0 0!important;
    max-width:82px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
    opacity:.82;
  }
  header .logout{display:block!important;font-size:12px;font-weight:700;padding:8px 0;white-space:nowrap}
  nav{top:52px!important;z-index:20}
}
@media(max-width:390px){
  header .header-brand span{font-size:10px!important}
  header .userbadge{max-width:62px;font-size:11px}
  header .logout{font-size:11px}
}

/* V65: Sitzlounges – kompletter Gruppen-Check-in wie in der Gästeliste. */
.lounge-all-checkin{white-space:nowrap;padding:11px 14px}
.lounge-all-checkin:disabled{opacity:.3;cursor:not-allowed}
@media(max-width:800px){.lounge-attendance{grid-template-columns:42px minmax(90px,1fr) 42px!important}.lounge-all-checkin{grid-column:1/-1;width:100%}}

/* V66 – Sitzlounges wie Gästeliste in Noch offen / Erledigt gliedern. */
.lounge-open-heading{font-size:18px;font-weight:800;margin:22px 0 10px;padding-bottom:10px;border-bottom:2px solid #171717}.lounge-open-heading span{color:#777;font-weight:700}

/* V67 – Sitzlounges in derselben visuellen Reihenfolge wie die Gästeliste. */
.guest-style-lounge-card .lounge-title-head{margin-bottom:18px}
.lounge-summary{display:inline-flex;align-items:baseline;gap:9px;background:#111;color:#fff;border-radius:10px;padding:10px 15px;margin:0 0 18px}
.lounge-summary strong{font-size:27px;line-height:1;font-weight:900}
.lounge-summary span{font-size:13px;font-weight:800}
.guest-style-lounge-card .table-search-line{margin-top:0}
.guest-style-lounge-card .table-alpha{margin-top:12px}
.guest-style-lounge-card .table-filter{margin-bottom:4px}
.guest-style-lounge-card .lounge-open-heading{margin-top:28px}
.lounge-empty-note{margin:18px 0 0}
@media(max-width:700px){.lounge-title-head{align-items:flex-start}.lounge-title-head>span{white-space:nowrap}.lounge-summary{margin-bottom:16px}}

/* V69 – Bereichsnavigation Tische/Loungen: oberhalb der Bereiche, ohne Offen/Erledigt-Filter. */
.table-section-nav{display:flex;gap:7px;flex-wrap:wrap;margin:0 auto 18px;max-width:1000px;padding:0 2px;scroll-margin-top:150px}
.table-section-nav button{width:auto;background:#fff;color:#222;border:1px solid #d5d5d5;padding:9px 13px;border-radius:9px;font-weight:800}
.table-section-nav button.is-active{background:#111;color:#fff;border-color:#111}
#standing-card,.guest-style-lounge-card{scroll-margin-top:150px}


/* V75 – Reservierungs-Benutzer: Stehtische im Fokus, ohne Kassa/Check-in zu verändern. */
.standing-first-layout{display:flex;flex-direction:column}
.standing-first-layout>.table-section-nav{order:0}
.standing-first-layout>#standing-card{order:1}
.standing-first-layout>.guest-style-lounge-card{order:2}
.standing-first-layout>.table-section-nav [data-table-jump="all"]{order:0}
.standing-first-layout>.table-section-nav [data-table-jump="standing"]{order:1}
.standing-first-layout>.table-section-nav [data-table-jump="voucher-lounge"]{order:2}
.standing-first-layout>.table-section-nav [data-table-jump="call-lounge"]{order:3}

.standing-only-info{grid-column:1/-1;background:#f5f5f5;border:1px solid #e1e1e1;border-radius:10px;padding:12px 14px;color:#555;font-size:13px;line-height:1.45}.standing-only-info b{color:#222}

/* v79: Reservierungs-User – Stehtisch-Aktionen wie in der Gästeliste nebeneinander */
.standing-first-layout .standing-manage-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:nowrap;margin-left:auto}
.standing-first-layout .standing-manage-actions .guest-edit-btn{margin-left:0}
.standing-first-layout .standing-manage-actions .guest-delete-form{margin-left:0}
@media(max-width:700px){.standing-first-layout .standing-manage-actions{flex-wrap:nowrap;width:auto}.standing-first-layout .standing-manage-actions .guest-edit-btn,.standing-first-layout .standing-manage-actions .guest-delete-form{width:auto;margin:0}.standing-first-layout .standing-manage-actions .guest-delete-btn{width:auto}}

/* V83 – Gästeliste/Reservierungen: Vorbereitungsansicht ohne Check-in-Zusammenfassungen. */
.guest-prep-mode .guest-done-section{display:none!important}

/* V85 – Gästelisten-Vorbereitung: Gesamtbestand statt Check-in-Status. */
.guest-prep-mode .check-status,.guest-prep-mode .check-history{display:none!important}


/* V86 – Gästelisten-Vorbereitung: Legende für vollständig eingecheckte Gruppen. */
.guest-prep-mode .guest-attendance-legend{display:flex;align-items:center;gap:9px;margin:2px 0 10px;color:#666;font-size:13px;line-height:1.4}
.guest-prep-mode .guest-attendance-swatch{display:inline-block;width:18px;height:18px;flex:0 0 18px;background:#e2e4e3;border:1px solid #c8ccca;border-radius:5px}

/* V91 – Admin Tische/Loungen: Verwaltungsaktionen sauber integrieren, ohne Kassa-Logik zu ändern. */
.normal-table-layout .standing-manage-actions,
.normal-table-layout .lounge-manage-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:nowrap;
  margin-left:auto;
}
.normal-table-layout .standing-manage-actions .guest-edit-btn,
.normal-table-layout .lounge-manage-actions .guest-edit-btn,
.normal-table-layout .standing-manage-actions .guest-delete-form,
.normal-table-layout .lounge-manage-actions .guest-delete-form{
  width:auto;
  margin:0;
}
.normal-table-layout .standing-manage-actions .guest-delete-btn,
.normal-table-layout .lounge-manage-actions .guest-delete-btn{width:auto}

@media(min-width:801px){
  /* Stehtische: Bearbeiten/Löschen und Ankunft bleiben gemeinsam rechts in derselben Zeile. */
  .normal-table-layout #standing-card .table-row{
    grid-template-columns:70px minmax(0,1fr) auto auto;
  }
  .normal-table-layout #standing-card .standing-manage-actions{grid-column:3}
  .normal-table-layout #standing-card .standing-arrival-form{grid-column:4;margin:0}

  /* Sitzlounges: Verwaltung oben rechts, Check-in-Leiste darunter innerhalb der Karte. */
  .normal-table-layout .guest-style-lounge-card .table-row{
    grid-template-columns:70px minmax(0,1fr) auto;
  }
  .normal-table-layout .guest-style-lounge-card .lounge-manage-actions{grid-column:3;grid-row:1}
  .normal-table-layout .guest-style-lounge-card .lounge-actions{
    grid-column:2 / 4;
    grid-row:2;
    width:100%;
    justify-content:flex-end;
    margin-top:-2px;
  }
}

@media(max-width:800px){
  .normal-table-layout .standing-manage-actions,
  .normal-table-layout .lounge-manage-actions{
    grid-column:1/-1;
    width:100%;
    justify-content:flex-end;
  }
  .normal-table-layout .standing-manage-actions .guest-delete-form,
  .normal-table-layout .lounge-manage-actions .guest-delete-form{width:auto!important;grid-column:auto!important}
  .normal-table-layout .standing-manage-actions .guest-delete-btn,
  .normal-table-layout .lounge-manage-actions .guest-delete-btn{width:auto!important}
}

/* V93 – Stehtische nach Normal-/VIP-Bereich gliedern. */
.standing-area-field.is-hidden{display:none!important}
.standing-area-summary{display:flex;gap:18px;align-items:center;margin:4px 0 12px;color:#666;font-size:13px}
.standing-area-group+.standing-area-group{margin-top:22px}
.standing-area-title{font-size:1rem;margin:0;padding:0 0 8px;border-bottom:2px solid #222}
.standing-area-title span{color:#666;font-weight:600}
.standing-area-empty{color:#777;font-size:13px;margin:12px 0 0}

/* V97 – Admin: Reservierungsstand der Sitzlounges statt Check-in-Offen-Status. */
.lounge-reservation-summary{margin:8px 0 14px;color:#666;font-size:14px}.lounge-reservation-summary strong{color:#222}

/* V98 – Administrator kann Benutzerpasswörter sicher neu setzen; bestehende Passwörter bleiben unsichtbar. */
.user-password-change{margin-top:14px;border-top:1px solid #ececec;padding-top:12px}.user-password-change summary{cursor:pointer;font-weight:700;list-style:none;display:inline-flex;align-items:center;gap:8px}.user-password-change summary::-webkit-details-marker{display:none}.user-password-change summary:after{content:"▼";font-size:11px}.user-password-change[open] summary:after{content:"▲"}.user-password-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:12px;align-items:end;margin-top:14px}.user-password-form label{font-weight:600}.user-password-form .password-wrap{margin-top:7px}.user-password-form button[type="submit"]{margin:0;white-space:nowrap}@media(max-width:760px){.user-password-form{grid-template-columns:1fr}.user-password-form button[type="submit"]{width:100%}}
/* v99: kompakte Benutzeraktionen */
.user-account-actions{display:flex;gap:10px;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap}
.user-account-actions>form{margin:0}
.user-password-change{margin:0;border:0;padding:0;position:relative}
.user-password-change summary{list-style:none;cursor:pointer;font-weight:700;background:#111;color:#fff;border-radius:10px;padding:12px 16px;line-height:1.2;white-space:nowrap}
.user-password-change summary::-webkit-details-marker{display:none}
.user-password-change summary:after,.user-password-change[open] summary:after{content:none}
.user-password-change[open] .user-password-form{position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:min(680px,80vw);padding:16px;background:#fff;border:1px solid #e4e4e4;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.12)}
@media(max-width:760px){.user-account-head{align-items:flex-start}.user-account-actions{width:100%;justify-content:flex-start}.user-password-change[open] .user-password-form{position:fixed;left:16px;right:16px;top:120px;width:auto;max-height:calc(100vh - 150px);overflow:auto}}


/* V100 – Passwort ändern als sauberes Dialogfenster */
.user-password-change[open]::before{content:"";position:fixed;inset:0;background:rgba(0,0,0,.32);z-index:80}
.user-password-change[open] .user-password-form{position:fixed;left:50%;right:auto;top:50%;transform:translate(-50%,-50%);z-index:81;width:min(720px,calc(100vw - 32px));padding:22px;background:#fff;border:1px solid #e1e1e1;border-radius:16px;box-shadow:0 18px 55px rgba(0,0,0,.24);margin:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:14px;align-items:end}
.user-password-form-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid #ececec;font-size:20px}
.user-password-close{width:38px;height:38px;min-width:38px;margin:0;padding:0;border-radius:50%;background:#111;color:#fff;font-size:25px;font-weight:400;line-height:1;display:grid;place-items:center}
.user-password-close:hover{background:#333}
@media(max-width:760px){.user-password-change[open] .user-password-form{left:16px;right:16px;top:50%;transform:translateY(-50%);width:auto;max-height:calc(100vh - 40px);overflow:auto;grid-template-columns:1fr}.user-password-form-head{grid-column:1}.user-password-form button[type="submit"]{width:100%}}

/* V103 – Admin-Korrektur: ausgegebenen Kuvertstatus direkt in „Sitzlounge bearbeiten“ zurücksetzen. */
.lounge-envelope-reset-box{margin:14px 0 4px;padding:14px 16px;border:1px solid #d7e8dc;border-radius:12px;background:#f3faf5;display:flex;align-items:center;justify-content:space-between;gap:16px}.lounge-envelope-reset-box[hidden]{display:none}.lounge-envelope-reset-box b,.lounge-envelope-reset-box small{display:block}.lounge-envelope-reset-box small{margin-top:3px;color:#397347;font-weight:700}.lounge-envelope-reset-btn{background:#fff!important;color:#a22!important;border:1px solid #e3baba!important;white-space:nowrap}.lounge-envelope-reset-btn:hover{background:#fff4f4!important}@media(max-width:700px){.lounge-envelope-reset-box{align-items:stretch;flex-direction:column}.lounge-envelope-reset-btn{width:100%}}
/* V118 – Sitzlounges klar in verkaufte Gutschein-Lounges und Zuruf-Lounges trennen. */
.call-lounge-heading{margin-top:34px!important;padding-top:22px;border-top:3px solid #171717}
.call-lounge-arrival-form{margin-left:auto}.call-lounge-arrival-form button{white-space:nowrap}

/* V119 – drei klar getrennte Reservierungsbereiche */
.lounge-zone{margin-top:22px;padding:20px;border:1px solid #e2e2e2;border-radius:16px;background:#fff}
.lounge-zone .lounge-open-heading{margin-top:0!important}
.lounge-zone-call{margin-top:24px}
.lounge-zone-call .call-lounge-heading{padding-top:0!important;border-top:0!important}
#voucher-lounge-section,#call-lounge-section{scroll-margin-top:150px}
@media(max-width:700px){.lounge-zone{padding:14px}.table-section-nav{gap:7px}.table-section-nav button{font-size:13px}}
/* V120 – pro Veranstaltung steuerbare Kassa-Sichtbarkeit */
.kassa-area-settings{padding:14px 16px;border:1px solid #ddd;border-radius:12px;background:#f7f7f7}.kassa-area-settings>b,.kassa-area-settings>small{display:block}.kassa-area-settings .checks{margin-top:10px;display:flex;gap:14px;flex-wrap:wrap}.kassa-area-settings .checks label{display:flex;align-items:center;gap:7px;font-weight:700}

/* V123 – Kassa-Sichtbarkeit direkt bei den Bereichen verwalten */
.kassa-area-inline{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:4px 0 10px}.kassa-area-inline form{margin:0}.kassa-area-state{font-size:13px;font-weight:700;padding:7px 10px;border-radius:9px;background:#f3f4f4}.kassa-area-state.is-on{color:#16783b;background:#eaf6ee}.kassa-area-state.is-off{color:#6f7478;background:#f1f2f3}.kassa-area-toggle-btn{background:#fff!important;color:#111!important;border:1px solid #d7d9dc!important;padding:7px 11px!important;border-radius:9px!important;font-size:13px!important;font-weight:700!important}.kassa-area-toggle-btn:hover{background:#f5f5f5!important}.kassa-area-inline-standing{margin-top:-2px;margin-bottom:12px}@media(max-width:700px){.kassa-area-inline{justify-content:flex-start}.kassa-area-toggle-btn{width:auto!important}}

/* v132: Anzahl der Veranstaltungen in geöffneter Eventreihe unter dem Titel */
.series-open-head .row-main > div:last-child{display:flex;flex-direction:column;gap:4px}
.series-open-head .row-main > div:last-child small{display:block;color:#777}

/* v133: Anzahl in der geöffneten Eventreihe sicher in zweite Zeile setzen */
.series-open-title{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important}
.series-open-title b,.series-open-title small{display:block!important}

/* V135: Admin-Funktionen in der schwarzen Kopfzeile; operative Navigation bleibt einzeilig und übersichtlich. */
.admin-header-nav{display:flex;align-items:center;gap:6px;margin-left:auto;margin-right:24px}
.admin-header-nav a{color:#d8d8d8;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap;padding:8px 10px;border-radius:8px}
.admin-header-nav a:hover{background:#2a2a2a;color:#fff}
.admin-header-nav a.active{background:#fff;color:#111}
header .userbadge{margin-left:0}
@media(max-width:900px){.admin-header-nav{gap:2px;margin-right:12px}.admin-header-nav a{font-size:12px;padding:7px 7px}}
@media(max-width:700px){.admin-header-nav{display:none}header .userbadge{margin-left:auto}}

/* V136 – dezente Trennung von Admin-Navigation, Benutzer und Abmelden */
header .userbadge{position:relative;margin-left:0!important;margin-right:0!important;padding-left:22px;padding-right:22px}
header .userbadge:before,header .logout:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:1px;height:24px;background:rgba(255,255,255,.22)}
header .logout{position:relative;padding-left:22px}
@media(max-width:700px){header .userbadge{padding-left:0;padding-right:0}header .userbadge:before,header .logout:before{display:none}header .logout{padding-left:0}}

/* V277 – Desktop: bei Benutzern ohne Admin-Navigation Benutzername direkt rechts vor Abmelden */
@media(min-width:701px){
  header:not(:has(.admin-header-nav)) .userbadge{margin-left:auto!important}
}

/* V278 – Desktop: Nicht-Admin-Benutzername direkt links neben Abmelden */
@media(min-width:701px){
  header .header-brand + .userbadge{margin-left:auto!important}
}
/* v296 – zentrales Aktivitätenprotokoll */
.activity-log-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 20px}.activity-log-filters label{display:grid;gap:5px}.activity-log-area{display:inline-flex;padding:3px 8px;border-radius:999px;background:#f1f1f1;font-size:11px;font-weight:700;margin-bottom:4px}.activity-log-content small{display:block;margin-top:4px}@media(max-width:700px){.activity-log-filters{grid-template-columns:1fr}}
/* V297: PDF-Export - nur Kopfaktionen, keine bestehende Ansicht wird verändert. */
.page-title-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.page-title-actions h1{margin-bottom:0}.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;padding:10px 14px;border-radius:9px;font-weight:700}.button-link.secondary{background:#eef1f4;color:#20242a;border:1px solid #d8dde3}

/* v298 – PDF-Export bewusst unterhalb der operativen Seitenfunktionen */
.pdf-export-bottom{display:flex;justify-content:flex-end;gap:10px;margin:18px 0 4px}
@media(max-width:700px){.pdf-export-bottom{justify-content:stretch}.pdf-export-bottom a{width:100%;text-align:center}}

/* V40 – Tablet/Touch-PC 701–1200 px. Desktop >1200 px und bestehendes Mobile <=700 px bleiben unverändert. */
@media (min-width:701px) and (max-width:1200px){
  main{max-width:none;padding-left:24px;padding-right:24px}
  header{padding-left:24px;padding-right:24px}
  nav{padding-left:24px;padding-right:24px;gap:6px;-webkit-overflow-scrolling:touch}
  nav a{min-height:44px;display:flex;align-items:center;padding:11px 13px}
  button,.quick-btn{min-height:44px}
  input,select{min-height:46px}
  .card{padding:20px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pagehead{align-items:flex-end}
  .filter select{min-width:260px;max-width:100%}
  .guest-row{grid-template-columns:minmax(220px,1fr) 342px!important;row-gap:10px}
  .guest-row .guest-edit-btn{grid-column:1;width:100%;margin:0}
  .guest-row .guest-delete-form{grid-column:2;width:100%;margin:0}
  .guest-row .guest-delete-btn{width:100%}
  .table-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table-row{grid-template-columns:62px minmax(0,1fr)}
  .table-row form{grid-column:1/-1}
  .table-row form button{width:100%}
}

/* V179 – iPad Hochformat: Gästeliste zweizeilig, damit alle Aktionen vollständig sichtbar bleiben */
@media (min-width:701px) and (max-width:1100px) and (orientation:portrait){
  .guest-list-card .guest-row{
    grid-template-columns:minmax(0,1fr) 112px 100px;
    column-gap:10px;
    row-gap:12px;
    align-items:center;
  }
  .guest-list-card .guest-row .guest-info{
    grid-column:1 / -1;
    grid-row:1;
    width:100%;
  }
  .guest-list-card .guest-row .check-controls{
    grid-column:1;
    grid-row:2;
    width:auto;
    max-width:100%;
    grid-template-columns:48px 96px 48px minmax(150px,1fr);
    gap:8px;
    justify-self:start;
  }
  .guest-list-card .guest-row .counter-btn{
    width:48px;
    height:48px;
  }
  .guest-list-card .guest-row .all-checkin-btn{
    width:100%;
    min-height:48px;
  }
  .guest-list-card .guest-row .guest-edit-btn{
    grid-column:2;
    grid-row:2;
    width:112px;
    min-height:48px;
    margin:0;
  }
  .guest-list-card .guest-row .guest-delete-form{
    grid-column:3;
    grid-row:2;
    width:100px;
    margin:0;
  }
  .guest-list-card .guest-row .guest-delete-btn{
    width:100px;
    min-height:48px;
  }
  .guest-list-card .guest-row:not(:has(.guest-edit-btn)){
    grid-template-columns:minmax(0,1fr);
  }
  .guest-list-card .guest-row:not(:has(.guest-edit-btn)) .check-controls{
    grid-column:1;
  }
}

/* V180 – iPad Hochformat: Gästelisten-Aktionszeile mit festen, getrennten Aktionsbereichen */
@media (min-width:701px) and (max-width:1100px) and (orientation:portrait){
  .guest-list-card .guest-row{
    grid-template-columns:380px 120px 114px minmax(0,1fr)!important;
    column-gap:12px!important;
  }
  .guest-list-card .guest-row .guest-info{
    grid-column:1 / -1!important;
    grid-row:1!important;
  }
  .guest-list-card .guest-row .check-controls{
    grid-column:1!important;
    grid-row:2!important;
    display:grid!important;
    grid-template-columns:48px 96px 48px 164px!important;
    gap:8px!important;
    width:380px!important;
    min-width:380px!important;
    max-width:380px!important;
    justify-self:start!important;
    overflow:visible!important;
  }
  .guest-list-card .guest-row .all-checkin-btn{
    width:164px!important;
    min-width:164px!important;
    padding-left:8px!important;
    padding-right:8px!important;
    overflow:visible!important;
  }
  .guest-list-card .guest-row .guest-edit-btn{
    grid-column:2!important;
    grid-row:2!important;
    width:120px!important;
    min-width:120px!important;
    margin:0!important;
    justify-self:start!important;
  }
  .guest-list-card .guest-row .guest-delete-form{
    grid-column:3!important;
    grid-row:2!important;
    width:114px!important;
    margin:0!important;
    justify-self:start!important;
  }
  .guest-list-card .guest-row .guest-delete-btn{
    width:114px!important;
    min-width:114px!important;
  }
  .guest-list-card .guest-row:not(:has(.guest-edit-btn)){
    grid-template-columns:380px minmax(0,1fr)!important;
  }
}

/* V194 – iPad Hochformat: Dashboard-Schnellzugriffe unter den Veranstaltungsdaten */
@media (min-width:701px) and (max-width:1100px) and (orientation:portrait){
  .event-dashboard-row{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:14px!important;
  }
  .event-dashboard-row > div:first-child{
    width:100%!important;
    min-width:0!important;
  }
  .event-dashboard-row .event-quick-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:10px!important;
    justify-content:stretch!important;
  }
  .event-dashboard-row .event-quick-actions .quick-btn{
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    padding:10px 8px!important;
    white-space:normal!important;
    text-align:center!important;
    line-height:1.15!important;
  }
}

/* V195 – Tablet Dashboard: Schnellzugriffe unabhängig von Orientation unter den Eventdaten */
@media (min-width:701px) and (max-width:1100px){
  .event-dashboard-row{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:14px!important;
  }
  .event-dashboard-row > div:first-child{
    width:100%!important;
    min-width:0!important;
  }
  .event-dashboard-row .event-quick-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:10px!important;
    justify-content:stretch!important;
  }
  .event-dashboard-row .event-quick-actions .quick-btn{
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    padding:10px 8px!important;
    white-space:normal!important;
    text-align:center!important;
    line-height:1.15!important;
  }
}


/* RONADO v3.1: Kundenverwaltung – kritische Aktionen optisch vom Speichern trennen */
.customer-danger-actions { margin-top: 16px; }

/* RONADO v3.2: sichtbarer Abstand zwischen Speichern und Kunden-Aktionen */
.event-accordion-body > .customer-danger-actions {
  margin-top: 0 !important;
  padding-top: 16px !important;
}

/* RONADO v3.3: Branding + sicher sichtbarer Abstand der Kundenaktionen */
.customer-danger-actions{margin-top:18px!important;padding-top:0!important;}
.loginbox .brand{display:flex;flex-direction:column;align-items:center;gap:10px;}
.loginbox .login-ronado-logo{display:block;width:190px;max-width:70%;height:auto;object-fit:contain;}
.header-brand img{width:54px;height:30px;object-fit:contain;}
@media(max-width:700px){.header-brand img{width:44px!important;height:25px!important}.loginbox .login-ronado-logo{width:170px;max-width:68%}}

/* RONADO v4.1: vollständige Wortmarke ohne doppelte Textbeschriftung */
.header-brand img{width:100px!important;height:41px!important;object-fit:contain;object-position:left center;display:block;}
.loginbox .login-ronado-logo{width:190px!important;max-width:78%!important;height:auto!important;object-fit:contain;display:block;margin:0 auto;}
@media(max-width:700px){.header-brand img{width:92px!important;height:38px!important}.loginbox .login-ronado-logo{width:180px!important;max-width:76%!important}}

/* RONADO V6 – Superadmin Kundenfilter */
.superadmin-customer-filter{display:flex;justify-content:flex-end;align-items:center;margin:0 0 14px;padding:10px 12px;background:#fff;border-radius:12px;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.superadmin-customer-filter form{margin:0;min-width:240px}
.superadmin-customer-filter label{display:flex;align-items:center;gap:10px;margin:0;font-weight:700}
.superadmin-customer-filter label span{white-space:nowrap}
.superadmin-customer-filter select{margin:0;min-width:180px}
@media(max-width:600px){.superadmin-customer-filter{justify-content:stretch}.superadmin-customer-filter,[data-drink-prices] .cx-price-nav{
  border:2px solid #159bd7;
  border-left:6px solid #159bd7;
  border-radius:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}
.superadmin-customer-filter form{width:100%;min-width:0}.superadmin-customer-filter label{display:block}.superadmin-customer-filter label span{display:block;margin-bottom:5px}.superadmin-customer-filter select{width:100%;min-width:0}}

/* RONADO V7 – Superadmin-Kundenfilter deutlicher hervorheben + Abstand zur Seitenüberschrift */
.superadmin-customer-filter{
  justify-content:stretch;
  margin:0 0 28px;
  padding:12px 14px;
  background:#f4fbff;

}
.superadmin-customer-filter,[data-drink-prices] .cx-price-nav{
  border:2px solid #159bd7;
  border-left:6px solid #159bd7;
  border-radius:12px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}
.superadmin-customer-filter form{width:100%;min-width:0}
.superadmin-customer-filter label{display:grid;grid-template-columns:auto minmax(220px,1fr);align-items:center;gap:12px;margin:0;font-weight:800}
.superadmin-customer-filter label span::before{content:'Ansicht filtern · ';font-weight:800}
.superadmin-customer-filter select{width:100%;margin:0;background:#fff;border:1px solid #9bcfe7;font-weight:700}
@media(max-width:600px){
  .superadmin-customer-filter{margin-bottom:24px;padding:11px 12px}
  .superadmin-customer-filter label{display:block}
  .superadmin-customer-filter label span{display:block;margin-bottom:7px}
}

/* RONADO v8: Lizenz- und Modulfreigabe pro Kunde */
.customer-license-form{margin-top:18px;padding-top:18px;border-top:1px solid #e7e7e7}
.customer-license-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.customer-license-head b{font-size:15px}.customer-license-head small{display:block;margin-top:2px;color:#777}
.customer-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
.customer-module-grid>label{display:flex;align-items:flex-start;gap:9px;padding:10px 11px;border:1px solid #dedede;border-radius:10px;background:#fafafa;cursor:pointer}
.customer-module-grid>label:has(input:checked){border-color:#11aee8;background:#f2fbff}
.customer-module-grid input{margin-top:3px}.customer-module-grid span{display:block}.customer-module-grid b{display:block;font-size:13px}.customer-module-grid small{display:block;margin-top:2px;color:#777;font-size:11px}
.customer-license-form>button{width:100%}
@media(max-width:600px){.customer-module-grid{grid-template-columns:1fr}}

/* RONADO v8.1: Lizenzkarten – Checkboxen und Texte sauber innerhalb der Karten */
.customer-module-grid>label{
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  align-items:start;
  column-gap:10px;
  min-width:0;
  overflow:hidden;
  padding:12px 13px;
}
.customer-module-grid>label input[type="checkbox"]{
  width:16px !important;
  height:16px;
  min-width:16px;
  margin:2px 0 0 !important;
  padding:0;
}
.customer-module-grid>label>span{
  min-width:0;
  width:auto;
  overflow-wrap:anywhere;
}
.customer-module-grid>label b{
  display:block;
  font-size:13px;
  line-height:1.25;
}
.customer-module-grid>label small{
  display:block;
  margin-top:3px;
  color:#777;
  font-size:11px;
  line-height:1.3;
  white-space:normal;
}
/* RONADO v10: flexible Gästelisten-Kategorien */
.guest-category-settings{display:grid;gap:10px;margin:12px 0 16px}.guest-category-setting{display:grid;grid-template-columns:minmax(180px,2fr) minmax(120px,1fr) auto;gap:12px;align-items:end;padding:12px;border:1px solid #e3e7eb;border-radius:12px;background:#fff}.guest-category-setting label{margin:0}.guest-category-active{display:flex!important;align-items:center;gap:7px;padding-bottom:11px;white-space:nowrap}.guest-category-active input{width:auto!important;margin:0}@media(max-width:700px){.guest-category-setting{grid-template-columns:1fr}.guest-category-active{padding-bottom:0}}
/* RONADO v11: kompakte Gästelisten-Kategorien */
.guest-category-list{display:grid;gap:8px;margin:12px 0}.guest-category-row{border:1px solid #e3e7eb;border-radius:10px;background:#fff;overflow:hidden}.guest-category-row>summary{display:grid;grid-template-columns:minmax(0,1fr) 90px 70px 85px;gap:12px;align-items:center;padding:11px 13px;cursor:pointer;list-style:none}.guest-category-row>summary::-webkit-details-marker{display:none}.guest-category-name{font-weight:700;overflow:hidden;text-overflow:ellipsis}.guest-category-price{text-align:right;font-variant-numeric:tabular-nums}.guest-category-status{font-size:12px;font-weight:700;text-align:center;padding:4px 7px;border-radius:999px;background:#eef1f4}.guest-category-status.is-active{background:#e8f5ec}.guest-category-status.is-inactive{color:#777}.guest-category-edit{text-align:right;font-size:12px;font-weight:700}.guest-category-edit-form{display:grid;grid-template-columns:minmax(180px,2fr) minmax(120px,1fr) auto auto;gap:12px;align-items:end;padding:13px;border-top:1px solid #e8ebee;background:#fafbfc}.guest-category-edit-form label{margin:0}.guest-category-edit-form button{margin:0}.guest-category-add{margin-top:12px;border:1px dashed #bfc7cf;border-radius:10px;background:#fafbfc}.guest-category-add>summary{padding:11px 13px;font-weight:700;cursor:pointer;list-style:none}.guest-category-add>summary::-webkit-details-marker{display:none}.guest-category-add-form{display:grid;grid-template-columns:minmax(180px,2fr) minmax(120px,1fr) auto;gap:12px;align-items:end;padding:0 13px 13px}.guest-category-add-form label{margin:0}.guest-category-add-form button{margin:0}@media(max-width:700px){.guest-category-row>summary{grid-template-columns:minmax(0,1fr) 72px 62px}.guest-category-edit{display:none}.guest-category-edit-form,.guest-category-add-form{grid-template-columns:1fr}.guest-category-price{font-size:13px}.guest-category-status{font-size:11px}}

/* RONADO v11.1 – Gästekategorien: saubere kompakte Kartenzeilen */
.guest-category-list{display:grid;gap:9px;margin:14px 0}
.guest-category-row{border:1px solid #e1e5e9;border-radius:10px;background:#fff;overflow:hidden}
.guest-category-row>summary{display:flex!important;align-items:center!important;gap:14px!important;padding:11px 13px!important;cursor:pointer;list-style:none;min-height:44px}
.guest-category-row>summary::-webkit-details-marker{display:none}
.guest-category-name{flex:1 1 auto;min-width:0;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.guest-category-price{flex:0 0 92px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.guest-category-status{flex:0 0 68px;box-sizing:border-box;font-size:12px;font-weight:700;text-align:center;padding:5px 8px;border-radius:999px;background:#eef1f4;white-space:nowrap}
.guest-category-status.is-active{background:#e8f5ec}
.guest-category-status.is-inactive{color:#777}
.guest-category-edit{flex:0 0 82px;text-align:right;font-size:12px;font-weight:700;white-space:nowrap}
.guest-category-row>summary:before{content:'›';flex:0 0 auto;font-size:18px;line-height:1;transform:rotate(0deg);transition:transform .15s ease}
.guest-category-row[open]>summary:before{transform:rotate(90deg)}
.guest-category-row+ .guest-category-row{margin-top:0}
.guest-category-add{margin-top:11px;border:1px dashed #bfc7cf;border-radius:10px;background:#fafbfc}
.guest-category-add>summary{padding:11px 13px!important;font-weight:700;cursor:pointer;list-style:none}
@media(max-width:700px){
 .guest-category-row>summary{gap:9px!important;padding:10px 11px!important;flex-wrap:wrap}
 .guest-category-name{flex:1 1 calc(100% - 28px);white-space:normal}
 .guest-category-price{flex:1 1 auto;text-align:left;padding-left:27px}
 .guest-category-status{flex:0 0 auto}
 .guest-category-edit{flex:0 0 auto;margin-left:auto}
}

/* RONADO v12 – stabile 4-Spalten-Struktur der Gästekategorien */
.guest-category-list .guest-category-row > summary{
  display:grid !important;
  grid-template-columns:minmax(160px,1fr) 90px 82px 100px !important;
  column-gap:18px !important;
  align-items:center !important;
  padding:11px 14px !important;
  min-height:46px;
}
.guest-category-list .guest-category-row > summary:before{display:none !important;content:none !important}
.guest-category-list .guest-category-name{display:block !important;min-width:0;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.guest-category-list .guest-category-price{display:block !important;text-align:right !important;white-space:nowrap;font-variant-numeric:tabular-nums}
.guest-category-list .guest-category-status{display:block !important;width:auto !important;text-align:center;white-space:nowrap}
.guest-category-list .guest-category-edit{display:block !important;text-align:right !important;white-space:nowrap}
.guest-category-list .guest-category-edit::after{content:'  ›';font-size:16px;vertical-align:-1px}
.guest-category-list .guest-category-row[open] .guest-category-edit::after{content:'  ⌄'}
@media(max-width:700px){
 .guest-category-list .guest-category-row > summary{
   grid-template-columns:minmax(0,1fr) 76px !important;
   grid-template-areas:'name price' 'status edit';
   row-gap:8px !important;
   column-gap:12px !important;
 }
 .guest-category-list .guest-category-name{grid-area:name;white-space:normal}
 .guest-category-list .guest-category-price{grid-area:price}
 .guest-category-list .guest-category-status{grid-area:status;justify-self:start}
 .guest-category-list .guest-category-edit{grid-area:edit;justify-self:end}
}

.umsatz-basis-total{grid-column:1/-1;padding:12px 14px;border:1px solid #e3e6e8;border-radius:10px;background:#f7f8f8;display:flex;justify-content:space-between;gap:12px;align-items:center}.umsatz-basis-total small{font-weight:700}.umsatz-basis-total strong{font-size:14px}@media(max-width:600px){.umsatz-basis-total{align-items:flex-start;flex-direction:column;gap:4px}}

/* V15: erwarteter und tatsächlich realisierter Gästelisten-Umsatz */
.guest-revenue-values{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}
.guest-current-amount{font-size:12px;color:#166534;background:#ecfdf3;border-radius:999px;padding:2px 7px;white-space:nowrap}
.friendship-amount{white-space:nowrap}
@media(max-width:700px){.guest-revenue-values{display:flex;margin-top:3px;gap:4px}.guest-current-amount,.friendship-amount{font-size:11px}}

/* V14.3: Gästelisten-Umsatz sauber untereinander */
.guest-category-line{align-items:flex-start}
.guest-revenue-values{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:3px}
.guest-revenue-values .friendship-amount,.guest-revenue-values .guest-current-amount{display:block;white-space:nowrap;font-size:12px;line-height:1.35}
.guest-revenue-values .friendship-amount{font-weight:700}
.guest-revenue-values .guest-current-amount{color:#166534;background:#ecfdf3;border-radius:6px;padding:2px 6px;font-weight:700}
@media(max-width:700px){.guest-revenue-values{margin-top:4px;gap:2px}.guest-revenue-values .friendship-amount,.guest-revenue-values .guest-current-amount{font-size:11px}}

/* V14.4: Ist-Umsatz exakt links unter Erwartet, ohne eingerueckte Pillenflaeche */
.guest-revenue-values .guest-current-amount{background:transparent;border-radius:0;padding:0;color:#166534}
/* v295 – Konfiguration Tische/Lounges direkt im Modul */
.table-config-card{margin-bottom:18px}.table-config-card details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}.table-config-card details>summary::-webkit-details-marker{display:none}.table-config-card summary span:first-child{display:flex;flex-direction:column;gap:3px}.table-config-card summary small{font-weight:400;color:#6b7280}.table-config-form{margin-top:18px}.table-config-subhead{padding:10px 12px;background:#f5f6f7;border-radius:9px;display:flex;flex-direction:column;gap:2px}.table-config-subhead small{color:#6b7280;font-weight:400}
/* RONADO v16 – flexible Bereiche/Kategorien Tische & Lounges */
.table-area-config{padding:14px 0 2px}.table-area-config-head{margin-bottom:12px}.table-area-config-head small{display:block;color:#6b7280;margin-top:2px}.table-area-card{border:1px solid #e3e5e8;border-radius:12px;background:#fafafa;padding:12px;margin:0 0 12px}.table-area-title{display:flex;gap:8px;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e7eb;padding-bottom:10px;margin-bottom:10px}.table-area-name-form{display:flex;gap:8px;flex:1}.table-area-name-form input{font-weight:700;font-size:15px}.table-area-name-form input{flex:1}.table-category-list{display:grid;gap:8px}.table-category-row{display:grid;grid-template-columns:minmax(160px,1.8fr) minmax(110px,1fr) 70px 70px 90px 90px 120px 90px 90px auto;gap:7px;align-items:end;background:#fff;border:1px solid #e7e7e7;border-radius:10px;padding:9px}.table-category-row label{font-size:10px;font-weight:700}.table-category-row input,.table-category-row select{margin-top:4px}.table-cat-voucher .checks{min-height:34px;display:flex;align-items:center;gap:5px;font-size:12px}.table-category-actions{display:flex;gap:5px}.table-category-add,.table-area-add{border:1px dashed #cfd3d8;border-radius:9px;background:#fff}.table-category-add summary,.table-area-add summary{padding:10px 12px;font-weight:700;cursor:pointer}.table-category-add .table-category-row{border:0;border-top:1px solid #eee;border-radius:0}.table-area-add-form{display:flex;gap:8px;padding:0 12px 12px}.table-area-add-form input{flex:1}.table-config-help{margin:10px 2px 2px}@media(max-width:1050px){.table-category-row{grid-template-columns:repeat(3,minmax(0,1fr))}.table-category-actions{grid-column:span 3}}@media(max-width:650px){.table-area-title,.table-area-name-form,.table-area-add-form{align-items:stretch;flex-direction:column}.table-category-row{grid-template-columns:repeat(2,minmax(0,1fr))}.table-category-actions{grid-column:span 2}.table-category-actions button{flex:1}}
/* v17: Bereich/Kategorie-Konfiguration klarer und Reservierung direkt daran gekoppelt */
.table-area-card{padding:14px}.table-area-title{background:#f3f4f6;border:0;border-radius:9px;padding:9px;margin-bottom:12px}.table-category-list{gap:10px}.table-category-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:12px}.table-category-row label:first-of-type{grid-column:span 2}.table-category-row label{font-size:11px}.table-cat-voucher{grid-column:span 2}.table-category-actions{grid-column:5 / 7;justify-content:flex-end}.table-category-actions button{min-width:92px}.table-category-add .table-category-row button:last-child{align-self:end}.table-category-selection-info{background:#f5f6f7;border:1px solid #e5e7eb;border-radius:8px;padding:9px 11px;font-size:12px;color:#4b5563}.table-category-selection-info b{color:#111}.table-ticket-order.is-hidden{display:none!important}
@media(max-width:800px){.table-category-row{grid-template-columns:repeat(2,minmax(0,1fr))}.table-category-row label:first-of-type,.table-cat-voucher,.table-category-actions{grid-column:span 2}}

/* v17.2 – kompakte Kategorien in Tische/Loungen */
.table-category-item{background:#fff;border:1px solid #e7e7e7;border-radius:10px;overflow:hidden}
.table-category-item>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;cursor:pointer;list-style:none}
.table-category-item>summary::-webkit-details-marker{display:none}
.table-category-summary-main{display:flex;flex-direction:column;min-width:0}
.table-category-summary-main b{font-size:13px;color:#111}
.table-category-summary-main small{margin-top:3px;color:#6b7280;font-size:11px;font-weight:500}
.table-category-summary-edit{font-size:11px;font-weight:700;color:#111;white-space:nowrap}
.table-category-item[open]>summary{background:#f7f7f8;border-bottom:1px solid #e7e7e7}
.table-category-item>.table-category-row{border:0;border-radius:0;margin:0}
@media(max-width:650px){.table-category-item>summary{align-items:flex-start}.table-category-summary-main small{line-height:1.35}}

/* v17.3: einheitliche Auf-/Zuklapp-Pfeile für Tisch-/Loungenkategorien */
.table-category-summary-arrow{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#111;color:#fff;font-size:11px;font-weight:800;line-height:1;flex:0 0 26px;transition:transform .15s ease}
.table-category-item[open]>summary .table-category-summary-arrow{transform:rotate(180deg)}

/* RONADO v14.4 – Tische/Lounges Übersicht nach Bereich und Kategorie */
.table-overview{margin:0 0 18px}.table-overview-total{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.table-overview-total>div,.table-overview-vouchers{background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:16px}.table-overview-total b,.table-overview-vouchers b{display:block;font-size:1.35rem;color:#111}.table-overview-total span,.table-overview-vouchers span{display:block;color:#666;font-size:13px;margin-top:4px}.table-overview-vouchers{margin-bottom:12px}.table-area-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.table-area-stat{background:#fff;border:1px solid #e5e5e5;border-radius:12px;padding:14px}.table-area-stat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:9px;margin-bottom:5px;border-bottom:1px solid #ececec}.table-area-stat-head b{font-size:15px}.table-area-stat-head span{font-size:12px;color:#666;white-space:nowrap}.table-category-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0;font-size:13px}.table-category-stat span{color:#555}.table-category-stat b{white-space:nowrap;color:#111}@media(max-width:700px){.table-area-stats{grid-template-columns:1fr}.table-overview-total{grid-template-columns:repeat(2,minmax(0,1fr))}.table-area-stat-head{align-items:flex-start;flex-direction:column;gap:3px}}

/* v14.5: contextual save/error feedback */
.app-flash{position:fixed;top:var(--ronado-notification-top,146px);left:50%;transform:translateX(-50%);z-index:9999;width:min(720px,calc(100vw - 28px));box-sizing:border-box;padding:11px 14px;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.14);font-weight:700}
.app-flash.is-success{background:#eaf7ee;border:1px solid #b8dfc3;color:#176b35}
.app-flash.is-error{background:#fdecec;border:1px solid #efb8b8;color:#a52626}
@media(max-width:700px){.app-flash{top:var(--ronado-notification-top,146px)}}

/* v303: selbstschließende Feedback-Meldungen */
.app-flash{padding-right:44px;transition:opacity .25s ease,transform .25s ease}.app-flash.is-hiding{opacity:0;transform:translate(-50%,-8px);pointer-events:none}.app-flash-close{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:28px;height:28px;padding:0;border:0;border-radius:7px;background:transparent;color:inherit;font-size:21px;line-height:1;cursor:pointer}.app-flash-close:hover{background:rgba(0,0,0,.06)}

/* V14.4 – Bereich/Kategorie in Reservierungszeilen */
.table-row-context{font-weight:700;color:#222}

/* v14.5 – Reservierungen nach Bereich → Kategorie */
.dynamic-table-overview{margin-top:16px}.dynamic-table-area{border:1px solid #e1e3e6;border-radius:14px;background:#f7f8f9;padding:12px;margin-top:12px}.dynamic-table-area-head{display:flex;justify-content:space-between;align-items:center;padding:2px 4px 10px}.dynamic-table-area-head h3{margin:0;font-size:18px}.dynamic-table-area-head small{color:#6b7280}.dynamic-table-categories{display:grid;gap:10px}.dynamic-table-category{background:#fff;border:1px solid #e3e5e8;border-radius:11px;padding:11px}.dynamic-table-category-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #e5e7eb;padding-bottom:9px;margin-bottom:6px}.dynamic-table-category-head>div{display:flex;flex-direction:column;gap:2px}.dynamic-table-category-head small{color:#6b7280}.dynamic-table-category-head>span{white-space:nowrap;color:#555;font-size:13px}.dynamic-table-category .table-row{margin:0;border-left:0;border-right:0;border-radius:0}.dynamic-table-category .table-row:first-child{border-top:0}.dynamic-table-category .dynamic-empty{margin:8px 0 2px;color:#8a8f98;font-size:13px}.dynamic-table-category .dynamic-done{margin-top:8px}.dynamic-table-unassigned{border-style:dashed}@media(max-width:700px){.dynamic-table-category-head{flex-direction:column}.dynamic-table-category-head>span{white-space:normal}}

/* v14.7 – Dynamische Reservierungszeilen: Bedienung bleibt innerhalb der Karte. */
.dynamic-table-overview .table-row{
  display:grid;
  grid-template-columns:70px minmax(0,1fr) auto;
  column-gap:14px;
  row-gap:8px;
  align-items:center;
  width:100%;
  box-sizing:border-box;
  padding:14px 4px;
}
.dynamic-table-overview .table-row .table-number-badge{grid-column:1;grid-row:1;align-self:center}
.dynamic-table-overview .table-row .table-main{grid-column:2;grid-row:1;min-width:0}
.dynamic-table-overview .table-row .standing-manage-actions,
.dynamic-table-overview .table-row .lounge-manage-actions{
  grid-column:3;grid-row:1;
  display:flex;align-items:center;justify-content:flex-end;gap:10px;
  flex-wrap:nowrap;margin:0 0 0 auto;width:auto;
}
.dynamic-table-overview .table-row .lounge-actions{
  grid-column:2 / 4;grid-row:2;
  display:flex;align-items:center;justify-content:flex-start;gap:10px;
  flex-wrap:wrap;width:100%;margin:0;
}
.dynamic-table-overview .table-row .lounge-attendance{display:flex;align-items:center;gap:7px;margin:0}
.dynamic-table-overview .table-row .lounge-envelope-form{margin:0;width:auto}
.dynamic-table-overview .table-row .standing-arrival-form,
.dynamic-table-overview .table-row .call-lounge-arrival-form{
  grid-column:2 / 4;grid-row:2;margin:0;justify-self:start;width:auto;
}
.dynamic-table-overview .table-row form{width:auto}
.dynamic-table-overview .table-row form button{width:auto}
@media(max-width:800px){
  .dynamic-table-overview .table-row{grid-template-columns:62px minmax(0,1fr);column-gap:10px;row-gap:10px}
  .dynamic-table-overview .table-row .table-number-badge{grid-column:1;grid-row:1}
  .dynamic-table-overview .table-row .table-main{grid-column:2;grid-row:1}
  .dynamic-table-overview .table-row .standing-manage-actions,
  .dynamic-table-overview .table-row .lounge-manage-actions{grid-column:1/-1;grid-row:auto;width:100%;justify-content:flex-end;margin:0}
  .dynamic-table-overview .table-row .lounge-actions{grid-column:1/-1;grid-row:auto;width:100%;justify-content:flex-start;margin:0}
  .dynamic-table-overview .table-row .lounge-attendance{flex:1 1 100%;display:grid;grid-template-columns:42px minmax(90px,1fr) 42px auto}
  .dynamic-table-overview .table-row .lounge-envelope-form{width:100%}
  .dynamic-table-overview .table-row .lounge-envelope-form button{width:100%}
  .dynamic-table-overview .table-row .standing-arrival-form,
  .dynamic-table-overview .table-row .call-lounge-arrival-form{grid-column:1/-1;grid-row:auto;width:100%;justify-self:stretch}
  .dynamic-table-overview .table-row .standing-arrival-form button,
  .dynamic-table-overview .table-row .call-lounge-arrival-form button{width:100%}
}
/* RONADO v14.11 – flexible Gutschein-Stückelung */
.voucher-breakdown{grid-column:1/-1;border:1px solid #e5e7eb;border-radius:10px;background:#f8f9fa;padding:10px;display:none;gap:8px}.table-category-row:has(input[name="voucher"]:checked) .voucher-breakdown{display:grid}.voucher-line{display:grid;grid-template-columns:110px minmax(160px,220px) 36px;gap:8px;align-items:end}.voucher-line label{font-size:11px;font-weight:700}.voucher-remove{height:36px;padding:0!important;background:#fff!important;color:#c62828!important;border:1px solid #e5e7eb!important}.voucher-add{justify-self:start;background:#fff!important;color:#111!important;border:1px dashed #bfc5cc!important}.voucher-total{font-weight:700;font-size:12px;color:#166534;min-height:18px}.voucher-total:empty{display:none}@media(max-width:650px){.voucher-line{grid-template-columns:1fr 1fr 36px}}

/* v14.12 flexible Gutscheinwertigkeiten: verständlichere Eingabe */
.voucher-breakdown-head{display:flex;flex-direction:column;gap:2px;margin-bottom:2px}.voucher-breakdown-head b{font-size:12px}.voucher-breakdown-head small{font-size:11px;line-height:1.35;color:#6b7280;font-weight:500;max-width:720px}.voucher-line{grid-template-columns:minmax(110px,160px) minmax(190px,260px) 36px}.voucher-line input{width:100%;min-width:0}.voucher-add{margin-top:2px}
@media(max-width:650px){.voucher-line{grid-template-columns:minmax(90px,1fr) minmax(150px,1.4fr) 36px}.voucher-breakdown-head small{font-size:10.5px}}
/* RONADO v14.13 – Gutscheinwertigkeiten: klare Zeilen + kompakter Löschbutton */
.voucher-line{grid-template-columns:minmax(110px,160px) minmax(210px,280px) auto;gap:10px;align-items:end}
.voucher-line label{min-width:0}
.voucher-line label:nth-child(2){min-width:210px}
.voucher-remove{width:36px!important;min-width:36px!important;height:36px!important;padding:0!important;border:1px solid #f1c7c7!important;border-radius:8px!important;background:#fff5f5!important;color:#c62828!important;font-size:18px!important;font-weight:700!important;line-height:1!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:end}
.voucher-remove:hover{background:#fdeaea!important}
.voucher-line:only-of-type .voucher-remove{visibility:hidden;pointer-events:none}
@media(max-width:650px){.voucher-line{grid-template-columns:minmax(90px,1fr) minmax(150px,1.5fr) 36px}.voucher-line label:nth-child(2){min-width:0}}

/* RONADO v14.14 – kompakte Gutscheinwertigkeiten mit eindeutigem Hinzufügen */
.voucher-breakdown{gap:7px}
.voucher-line{grid-template-columns:90px 150px auto;gap:8px;align-items:end;justify-content:start}
.voucher-line label:nth-child(2){min-width:0}
.voucher-line input{height:36px}
.voucher-commit{height:36px!important;min-width:92px!important;padding:0 14px!important;white-space:nowrap}
.voucher-remove{width:32px!important;min-width:32px!important;height:32px!important;border-radius:7px!important;align-self:end;margin-bottom:2px}
.voucher-add{order:20;margin-top:1px!important}
.voucher-total{order:30}
@media(max-width:650px){.voucher-line{grid-template-columns:78px minmax(120px,150px) auto}.voucher-commit{min-width:82px!important;padding:0 10px!important}}

/* v14.15 – kompakter Gutschein-Workflow + Kategorie-Aktion hervorheben */
.voucher-line{grid-template-columns:64px 105px auto;gap:8px;align-items:end;justify-content:start}
.voucher-line label:nth-child(2){min-width:0}
.voucher-line .voucher-commit{height:36px;min-width:92px;padding:0 12px!important;white-space:nowrap;align-self:end}
.table-category-add{border:1px solid #7cc8ea;background:#eef9fe;box-shadow:0 0 0 1px rgba(14,165,233,.04)}
.table-category-add>summary{color:#075985;background:#eef9fe;border-radius:8px}
.table-category-add[open]>summary{border-bottom-left-radius:0;border-bottom-right-radius:0}
.table-category-add .table-category-row{background:#fff}
@media(max-width:650px){.voucher-line{grid-template-columns:58px 96px auto;gap:6px}.voucher-line .voucher-commit{min-width:84px;padding:0 9px!important}}
/* RONADO v14.16 – Gutschein-Standard je Kategorie, Anpassung je Reservierung */
.voucher-line{grid-template-columns:52px 86px auto!important;gap:8px!important;align-items:end!important;justify-content:start!important}
.voucher-line label:nth-child(2){min-width:0!important}
.voucher-line .voucher-commit{min-width:88px!important;width:auto!important;height:36px!important;margin:0!important;align-self:end!important}
.voucher-line .voucher-remove{width:34px!important;min-width:34px!important;height:36px!important;margin:0!important;align-self:end!important}
.reservation-voucher-box{border:1px solid #dfe3e8;border-radius:10px;background:#f8f9fa;padding:11px;display:grid;gap:8px}
#reservation-voucher-lines{display:grid;gap:7px}
.reservation-voucher-line{display:grid;grid-template-columns:52px 86px 34px;gap:8px;align-items:end;justify-content:start}
.reservation-voucher-line label{font-size:11px;font-weight:700;margin:0}.reservation-voucher-line input{width:100%;min-width:0;height:36px}
.reservation-voucher-remove{width:34px!important;min-width:34px!important;height:36px!important;padding:0!important;margin:0!important;border:1px solid #f1c7c7!important;border-radius:8px!important;background:#fff5f5!important;color:#c62828!important;font-size:18px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.reservation-voucher-add{justify-self:start;background:#fff!important;color:#111!important;border:1px dashed #bfc5cc!important;padding:8px 11px!important}
@media(max-width:650px){.voucher-line,.reservation-voucher-line{grid-template-columns:48px 82px auto!important}}

/* RONADO v14.17 – Reservierungs-Gutscheine: Anzahl breiter, Löschen in derselben Zeile */
.reservation-voucher-line{grid-template-columns:68px 86px 34px!important;gap:8px!important;align-items:end!important;justify-content:start!important}
.reservation-voucher-line label{margin:0!important;min-width:0!important}
.reservation-voucher-line input{width:100%!important;min-width:0!important;height:36px!important;box-sizing:border-box!important}
.reservation-voucher-remove{align-self:end!important;margin:0!important}
@media(max-width:650px){.reservation-voucher-line{grid-template-columns:68px 86px 34px!important}}

/* RONADO v14.18 – Gutscheinzeilen endgültig kompakt und einzeilig */
.voucher-line,
.reservation-voucher-line{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:100%!important;
}
.voucher-line>label,
.reservation-voucher-line>label{
  display:flex!important;
  flex-direction:column!important;
  flex:0 0 auto!important;
  min-width:0!important;
  margin:0!important;
}
.voucher-line>label:first-child{width:76px!important}
.voucher-line>label:nth-child(2){width:118px!important;min-width:118px!important}
.reservation-voucher-line>label:first-child{width:82px!important}
.reservation-voucher-line>label:nth-child(2){width:96px!important;min-width:96px!important}
.voucher-line>label input,
.reservation-voucher-line>label input{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  height:36px!important;
}
.voucher-line .voucher-commit{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:88px!important;
  height:36px!important;
  margin:0!important;
  align-self:flex-end!important;
}
.voucher-line .voucher-remove,
.reservation-voucher-remove{
  flex:0 0 34px!important;
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:36px!important;
  margin:0!important;
  align-self:flex-end!important;
}
@media(max-width:650px){
  .voucher-line>label:first-child{width:72px!important}
  .voucher-line>label:nth-child(2){width:108px!important;min-width:108px!important}
  .reservation-voucher-line>label:first-child{width:78px!important}
  .reservation-voucher-line>label:nth-child(2){width:92px!important;min-width:92px!important}
}

/* v14.19: Bereich hinzufügen wie Kategorie hinzufügen blau hervorheben */
.table-area-add{border:1px solid #7cc8ea;background:#eef9fe;box-shadow:0 0 0 1px rgba(14,165,233,.04)}
.table-area-add>summary{color:#075985;background:#eef9fe;border-radius:8px}
.table-area-add[open]>summary{border-bottom-left-radius:0;border-bottom-right-radius:0}

/* v14.25 – automatische optische Trennung der Reservierungs-Bereiche */
.dynamic-table-areas{} /* hook */
.dynamic-table-area{position:relative;overflow:hidden;border-width:1px;border-left-width:5px;}
.dynamic-table-area::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--area-accent,#7dd3fc);opacity:.72;}
.dynamic-table-area-head{margin:-12px -12px 8px;padding:14px 16px 11px;background:var(--area-soft,#eff8ff);border-bottom:1px solid var(--area-line,#cfe8f7);}
.dynamic-table-area{border-color:var(--area-line,#cfe8f7);border-left-color:var(--area-accent,#38a7dc);background:var(--area-bg,#f8fbfd);}
.dynamic-table-area:nth-child(6n+1){--area-accent:#38a7dc;--area-line:#b9def0;--area-soft:#eaf7fd;--area-bg:#f7fcfe;}
.dynamic-table-area:nth-child(6n+2){--area-accent:#4fa56a;--area-line:#c5e4cf;--area-soft:#eef9f1;--area-bg:#f9fdf9;}
.dynamic-table-area:nth-child(6n+3){--area-accent:#9a78c2;--area-line:#ddcfeb;--area-soft:#f5f0fa;--area-bg:#fcfafd;}
.dynamic-table-area:nth-child(6n+4){--area-accent:#d59a45;--area-line:#ecd9b9;--area-soft:#fcf5e9;--area-bg:#fffdf8;}
.dynamic-table-area:nth-child(6n+5){--area-accent:#42a9a2;--area-line:#c2e4e1;--area-soft:#edf9f8;--area-bg:#f9fdfd;}
.dynamic-table-area:nth-child(6n+6){--area-accent:#cf7180;--area-line:#eccbd1;--area-soft:#fbeff1;--area-bg:#fffafb;}
.dynamic-table-unassigned{--area-accent:#8b8f96!important;--area-line:#d7d9dc!important;--area-soft:#f1f2f3!important;--area-bg:#fafafa!important;}
@media(max-width:700px){.dynamic-table-area-head{margin:-12px -12px 8px;padding:14px 13px 10px}.dynamic-table-area{border-left-width:4px}}


/* v14.26 – Stehtisch-Kategorien dezent von Lounges abheben */
.dynamic-table-category-standing{background:#f3f4f5;border-color:#dfe2e5;}
.dynamic-table-category-standing .dynamic-table-category-head{border-bottom-color:#d9dde1;}
.dynamic-table-category-standing .table-row{background:#f8f9fa;}
.dynamic-table-category-lounge{background:#fff;}

/* v14.28 – Benutzerverwaltung nach Kunden gruppiert */
.user-groups-card{display:flex;flex-direction:column;gap:12px}
.user-customer-group{border:1px solid #dfe3e8;border-radius:14px;background:#f8f9fa;overflow:hidden}
.user-customer-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;background:#fff;font-size:16px}
.user-customer-group>summary::-webkit-details-marker{display:none}
.user-customer-group>summary span:first-child{display:flex;align-items:baseline;gap:10px;min-width:0}
.user-customer-group>summary strong{font-size:17px;color:#111}
.user-customer-group>summary small{color:#737b85;font-weight:600}
.user-group-chevron{flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:#111;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1;transition:transform .18s ease}
.user-customer-group[open] .user-group-chevron{transform:rotate(180deg)}
.user-customer-group-body{padding:12px;display:flex;flex-direction:column;gap:10px;border-top:1px solid #e5e7eb}
.user-customer-group-body .user-account{margin:0;background:#fff}
@media(max-width:650px){.user-customer-group>summary{padding:14px}.user-customer-group>summary span:first-child{flex-direction:column;gap:2px;align-items:flex-start}.user-customer-group-body{padding:8px}}

/* v14.33 – iOS/iPadOS Safe Area: Header unter Statusleiste halten */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 1100px) {
    header {
      padding-top: calc(6px + env(safe-area-inset-top)) !important;
      height: calc(52px + env(safe-area-inset-top)) !important;
      min-height: calc(52px + env(safe-area-inset-top)) !important;
      top: 0 !important;
    }
    nav {
      top: calc(52px + env(safe-area-inset-top)) !important;
    }
  }
}

/* RONADO v14.51 – kurze Bedienhinweise für Kassa/Admin */
.ronado-operation-info{margin-top:18px;border-left:4px solid #2f6fed;background:#f7f9fc}
.ronado-operation-info h3{margin:0 0 10px;font-size:17px}
.ronado-operation-info p{margin:7px 0;line-height:1.48}
.ronado-operation-info .operation-info-lock{margin-top:12px;padding-top:10px;border-top:1px solid #dce3ef}
@media(max-width:700px){.ronado-operation-info{margin-top:14px}.ronado-operation-info p{font-size:14px}}

/* v14.52 – Korrekturaktionen klar als Rücksetzen kennzeichnen */
.lounge-envelope-form .lounge-envelope-reset-inline{background:#c62828!important;border-color:#c62828!important;color:#fff!important;}
.lounge-envelope-form .lounge-envelope-reset-inline:hover{background:#a91f1f!important;border-color:#a91f1f!important;color:#fff!important;}
.tables-operation-info{margin-top:18px;}


/* RONADO v14.53 – Bedienhinweise kompakt und aufklappbar */
.ronado-operation-info-collapsible{padding:0!important;overflow:hidden;}
.ronado-operation-info-collapsible>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;cursor:pointer;font-weight:700;color:#111;user-select:none;}
.ronado-operation-info-collapsible>summary::-webkit-details-marker{display:none;}
.ronado-operation-info-collapsible .operation-info-arrow{display:inline-flex;align-items:center;justify-content:center;color:#111;font-size:12px;line-height:1;transition:transform .18s ease;flex:0 0 auto;}
.ronado-operation-info-collapsible[open] .operation-info-arrow{transform:rotate(180deg);}
.ronado-operation-info-collapsible .operation-info-body{padding:0 16px 14px;}
.ronado-operation-info-collapsible .operation-info-body p:first-child{margin-top:0;}
@media(max-width:700px){.ronado-operation-info-collapsible>summary{padding:12px 13px}.ronado-operation-info-collapsible .operation-info-body{padding:0 13px 13px}}
/* v14.55 – dynamische Kassa-Sichtbarkeit pro Benutzer / Event / Bereich / Kategorie */
.kassa-user-table-visibility{margin-top:14px;padding:14px;border:1px solid #dbe2e8;border-radius:12px;background:#f8fafc}
.kassa-user-table-visibility>small{display:block;margin:4px 0 10px;color:#5d6670}
.kassa-visibility-event{margin-top:8px;border:1px solid #e1e5e9;border-radius:9px;background:#fff;overflow:hidden}
.kassa-visibility-event>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;cursor:pointer;list-style:none}
.kassa-visibility-event>summary::-webkit-details-marker{display:none}.kassa-visibility-event>summary span:first-child{display:flex;flex-direction:column}.kassa-visibility-event>summary small{font-weight:400;color:#69717a}
.kassa-visibility-areas{padding:0 12px 10px}.kassa-visibility-area{padding:10px 0;border-top:1px solid #edf0f2}.kassa-visibility-area>.checks{margin-top:6px}

/* v14.58 – Superadmin Benutzergruppen: Innenfläche durchgehend grau */
.user-customer-group-body{
  background:#f8f9fa;
}
.user-customer-group-body .user-account{
  background:#f8f9fa;
}


/* v14.59 – Benutzerverwaltung: klare visuelle Hierarchie */
.kassa-user-table-visibility{
  border-left:4px solid #2f6fed;
  background:#f7f9fc;
  padding-left:16px;
}
.user-login-name{color:#2f6fed;font-weight:800}

/* v14.69 – Formular-Icons bleiben beim Scrollen unter dem fixierten Kopfbereich */
header{z-index:100}
nav{z-index:90}
.password-toggle{z-index:1!important}

/* RONADO v14.73 – Dashboard: geordnete Modul-Schnellzugriffe */
@media (min-width:1101px){
  .event-dashboard-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(300px,44%)!important;
    align-items:center!important;
    gap:18px!important;
  }
  .event-dashboard-row > div:first-child{
    min-width:0!important;
  }
  .event-dashboard-row .event-quick-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    justify-content:stretch!important;
    align-items:stretch!important;
  }
  .event-dashboard-row .event-quick-actions .quick-btn{
    width:100%!important;
    min-width:0!important;
    min-height:36px!important;
    padding:8px 9px!important;
    font-size:12px!important;
    line-height:1.15!important;
    text-align:center!important;
    white-space:normal!important;
  }
}

@media (max-width:700px){
  .event-dashboard-row .event-quick-actions{
    gap:7px!important;
  }
  .event-dashboard-row .event-quick-actions .quick-btn{
    min-height:42px!important;
    padding:8px!important;
    white-space:normal!important;
    line-height:1.15!important;
    text-align:center!important;
  }
}
\n/* V14.74 – dezente LIVE-Kennzeichnung der Dashboard-Kennzahl Eingecheckt. */
.dashboard-checked-live>span{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.dashboard-live-badge{display:inline-flex;align-items:center;gap:4px;font-size:9px;font-weight:900;letter-spacing:.08em;line-height:1;color:#fff;opacity:.9}
.dashboard-live-badge i{display:block;width:6px;height:6px;border-radius:50%;background:#e53935;box-shadow:0 0 0 2px rgba(229,57,53,.12)}

/* RONADO v14.76 – Gastro-Ereigniszentrale im Dashboard */
.stats:has(.dashboard-gastro-live){grid-template-columns:repeat(5,minmax(0,1fr))}
.dashboard-gastro-live{width:100%;text-align:left;font-family:inherit;cursor:pointer;border:0;box-shadow:none}
.dashboard-gastro-live:hover{background:#1d1d1d}.dashboard-gastro-live[aria-expanded="true"]{outline:2px solid #2f6fed;outline-offset:2px}
.dashboard-gastro-center{margin-top:-6px}.dashboard-gastro-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.dashboard-gastro-head h2{margin:0 0 4px}.dashboard-gastro-head small{color:#777}.dashboard-gastro-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dashboard-gastro-columns>div{min-width:0}.dashboard-gastro-columns h3{margin:0 0 10px;font-size:15px}.dashboard-gastro-item{padding:11px 0;border-top:1px solid #ececec}.dashboard-gastro-item:first-child{border-top:0}.dashboard-gastro-item b,.dashboard-gastro-item span,.dashboard-gastro-item small{display:block}.dashboard-gastro-item b{font-size:13px}.dashboard-gastro-item span{font-size:14px;margin-top:3px}.dashboard-gastro-item small{font-size:12px;color:#777;margin-top:4px}
@media(max-width:900px){.stats:has(.dashboard-gastro-live){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.stats:has(.dashboard-gastro-live){grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-gastro-columns{grid-template-columns:1fr}.dashboard-gastro-head{flex-direction:column}.dashboard-gastro-head .button-link{width:100%;text-align:center}}
/* V14.77 – Gastro-Live-Kachel exakt an bestehende Dashboard-Stat-Typografie angleichen. */
.dashboard-gastro-live.stat{font:inherit;color:#fff}
.dashboard-gastro-live.stat>b{font-size:32px;font-weight:700;line-height:normal;display:block}
.dashboard-gastro-live.stat>span{font-size:13px;font-weight:400;line-height:normal;display:inline}
@media(max-width:700px){.dashboard-gastro-live.stat>b{font-size:27px}.dashboard-gastro-live.stat>span{font-size:12px}}

/* V14.79 – Gastro-Live-Kachel als aufklappbares Dashboard-Element klar kennzeichnen. */
.dashboard-gastro-live.stat{position:relative;padding-bottom:15px;transition:background .15s ease,outline-color .15s ease}
.dashboard-gastro-live .dashboard-gastro-action{display:block;margin-top:8px;font-size:10px;font-weight:500;line-height:1.2;color:#bdbdbd;letter-spacing:0}
.dashboard-gastro-live:hover .dashboard-gastro-action{color:#fff}
.dashboard-gastro-live:focus-visible{outline:2px solid #2f6fed;outline-offset:2px}
@media(max-width:700px){.dashboard-gastro-live .dashboard-gastro-action{font-size:10px;margin-top:7px}}

/* v14.80 – Gastro-Dashboard: benutzerspezifischer Gelesen-Status */
.dashboard-gastro-alert-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px}.dashboard-gastro-alert-head h3{margin:0}.dashboard-gastro-read-all,.dashboard-gastro-read-one{appearance:none;border:0;border-radius:8px;background:#f0f1f3;color:#111;font:inherit;font-size:11px;font-weight:650;cursor:pointer;padding:7px 9px;white-space:nowrap}.dashboard-gastro-read-one:hover{background:#e3e5e8}.dashboard-gastro-read-all{background:#168bd2;color:#fff}.dashboard-gastro-read-all:hover{background:#1177b6}.dashboard-gastro-read-all:disabled,.dashboard-gastro-read-one:disabled{opacity:.55;cursor:default}.dashboard-gastro-alert{display:flex;align-items:center;justify-content:space-between;gap:12px}.dashboard-gastro-alert>div{min-width:0}.dashboard-gastro-more{margin:9px 0 0;padding-top:9px;border-top:1px solid #ececec;color:#777;font-size:12px;font-weight:600}.dashboard-gastro-read-all[hidden],.dashboard-gastro-more[hidden]{display:none!important}@media(max-width:700px){.dashboard-gastro-alert{align-items:flex-start}.dashboard-gastro-read-one{margin-top:1px}}

/* RONADO v15.00 – einheitlicher Stil fuer Suchfelder */
.guest-search-wrap input[type="search"],
.table-search-line input[type="search"]{
  background:#f7f7f7;
  border:1px solid #cfcfcf;
  border-radius:10px;
  color:#171717;
}
.guest-search-wrap input[type="search"]::placeholder,
.table-search-line input[type="search"]::placeholder{color:#8a8a8a;opacity:1}
.guest-search-wrap input[type="search"]:focus,
.table-search-line input[type="search"]:focus{background:#f7f7f7;border-color:#aeb4b1;outline:none}

/* Hauptüberschriften: gleicher Inhaltsabstand wie auf Veranstaltungen. */
main > .page-title-actions{margin-bottom:22px}
@media(min-width:701px){main > .gastro-module > .gastro-pagehead{margin-bottom:18px}}

/* Matching add-entry accordions, closed and open. */
.guest-add-card,.table-reservation-add-card{background:#EFF7FF;border:1px solid #c6def3}
/* Keep the login alert close button independent of full-width login buttons. */
.login .app-flash-close{width:28px}

/* Mobile dialogs begin below the visible application header, including iOS viewport changes. */
@media(max-width:700px){
 html body dialog[open]{position:fixed!important;inset:auto 0 auto!important;top:var(--ronado-dialog-top,72px)!important;margin:0 auto!important;max-height:var(--ronado-dialog-height,calc(100dvh - 84px))!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;}
 html body dialog[open] .gastro-modal-box{max-height:none!important;overflow:visible!important;}
 html body dialog[open] .gastro-modal-head{position:sticky!important;top:0!important;z-index:5;background:#fff;}
 html body dialog[open] .gastro-modal-close{flex:0 0 38px!important;}
}

/* Central RONADO popup buttons. No form or transaction behaviour is changed. */
html body :is(dialog,[role="dialog"],[role="alertdialog"]) .ronado-popup-button{
 box-sizing:border-box!important;min-width:0!important;max-width:100%!important;min-height:46px!important;
 padding:11px 18px!important;border:1px solid #111!important;border-radius:10px!important;
 background:#111!important;color:#fff!important;font-family:inherit!important;font-size:15px!important;font-weight:700!important;
 line-height:22px!important;white-space:normal!important;overflow-wrap:anywhere;vertical-align:middle;
}
html body :is(dialog,[role="dialog"],[role="alertdialog"]) .ronado-popup-cancel{background:#f0f1f3!important;color:#111!important;border-color:#e1e3e6!important}
html body :is(dialog,[role="dialog"],[role="alertdialog"]) .ronado-popup-danger{background:#fcecec!important;color:#b42318!important;border-color:#efc6c6!important}
html body :is(dialog,[role="dialog"],[role="alertdialog"]) .ronado-popup-close{width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;background:#f2f3f5!important;color:#333!important;border:0!important;border-radius:10px!important;font-size:26px!important;line-height:36px!important;flex:0 0 36px!important}
html body :is(dialog,[role="dialog"],[role="alertdialog"]) .ronado-popup-actions{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:12px!important}
html body :is(dialog,[role="dialog"],[role="alertdialog"]) .ronado-popup-actions>.ronado-popup-button{margin:0!important;flex-shrink:1}
html body dialog.opening-modal .gastro-modal-actions{display:flex!important;gap:12px!important;flex-wrap:wrap!important}
html body dialog.opening-modal .gastro-modal-actions button{border-radius:10px!important;min-height:46px!important}
html body dialog.opening-modal .gastro-modal-actions .gastro-secondary{background:#f0f1f3!important;color:#111!important;border:1px solid #e1e3e6!important}
html body dialog.opening-modal .gastro-modal-actions .gastro-primary{background:#111!important;color:#fff!important;border:1px solid #111!important}
html body dialog.opening-modal .gastro-modal-head .gastro-modal-close{border-radius:10px!important}
html body dialog.opening-reversal-modal .opening-reversal-note{margin:0;padding:16px;border:1px solid #e1e3e6;border-radius:14px;background:#fafafa;line-height:1.5}
html body dialog.opening-reversal-modal .opening-reversal-count-note{margin:14px 0 0;color:#4b5563;font-size:14px;line-height:1.5}
html body dialog.opening-reversal-modal .opening-stock-table th:first-child{width:38%}
@media(max-width:480px){
 html body :is(dialog,[role="dialog"],[role="alertdialog"]) .ronado-popup-actions{flex-direction:column!important}
 html body :is(dialog,[role="dialog"],[role="alertdialog"]) .ronado-popup-actions>.ronado-popup-button{width:100%!important}
 html body dialog.opening-modal .gastro-modal-actions{flex-direction:column!important}
 html body dialog.opening-modal .gastro-modal-actions button{width:100%!important}
}

/* Scoped unread badges: existing user-specific notification counts only. */
.gastro-unread-badge{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;padding:4px 8px;border-radius:999px;background:#b42318;color:#fff;font-size:12px;font-weight:800;line-height:1;white-space:nowrap}
.gastro-unread-badge[hidden]{display:none!important}
.dashboard-gastro-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;font-weight:800}
.dashboard-gastro-summary-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.dashboard-gastro-summary-arrow{flex:0 0 auto;margin-left:auto;transition:transform .15s ease}

/* Existing user forms, independently collapsible view only. */
.user-account-fold{padding:0!important;border:1px solid #e5e7eb!important;border-radius:14px;margin:12px 0!important;overflow:visible}
.user-account-fold>.user-account-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;cursor:pointer;list-style:none}
.user-account-fold>.user-account-summary::-webkit-details-marker{display:none}
.user-account-summary>span:first-child{min-width:0;overflow-wrap:anywhere}
.user-account-summary strong,.user-account-summary small{display:block}
.user-account-summary small{margin-top:5px;color:#6b7280;font-size:13px;line-height:1.45}
.user-account-arrow{flex:0 0 auto;font-size:12px;transition:transform .15s}
.user-account-fold[open]>.user-account-summary>.user-account-arrow{transform:rotate(180deg)}
.user-account-body{padding:0 16px 16px}

/* Benutzerverwaltung: kompakte Checkbox-Zeilen, ohne Freigaben oder Sichtbarkeit zu ändern. */
:is(.user-create-card,.user-groups-card) label:has(>input[type="checkbox"]){display:inline-grid;grid-template-columns:16px minmax(0,1fr);align-items:center!important;column-gap:8px!important;row-gap:0;max-width:100%;min-width:0;line-height:1.4;cursor:pointer}
:is(.user-create-card,.user-groups-card) label>input[type="checkbox"]{appearance:auto;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:16px;max-height:16px;margin:0!important;padding:0!important;flex:0 0 16px;align-self:center;vertical-align:middle;box-sizing:border-box}
:is(.user-create-card,.user-groups-card) label:has(>input[type="checkbox"])>span{min-width:0;overflow-wrap:anywhere}
:is(.user-create-card,.user-groups-card) .checks>label:has(>input[type="checkbox"]){margin:0}
:is(.user-create-card,.user-groups-card) :is([data-gastro-event-access],.user-door-access)>label:has(>input[type="checkbox"]){display:grid;margin:6px 0;}
@media(max-width:760px){.user-account-fold .user-account-head{flex-direction:column;align-items:stretch}.user-account-fold .user-account-head>div{min-width:0;overflow-wrap:anywhere}.user-account-fold .user-account-actions{max-width:100%;}}

/* Benutzerkonten: Suche und kompaktere Abstände. */
.user-account-fold{margin:6px 0!important}
.user-search{display:grid;gap:8px;margin:12px 0 16px;min-width:0}.user-search label{font-weight:600}.user-search input{width:100%;min-width:0;box-sizing:border-box}.user-search small{color:#6b7280}
.user-groups-card [hidden]{display:none!important}

/* Endgültige Kategorienlöschung: Darstellung, keine Berechtigungsänderung. */
.category-purge-dialog{width:min(560px,calc(100vw - 32px));box-sizing:border-box;border-radius:16px;max-height:calc(100dvh - 32px);overflow:auto;padding:0}.category-purge-body{padding:24px;display:flex;flex-direction:column;gap:18px;min-width:0}.category-purge-body h2{margin:0;line-height:1.35}.category-purge-body>p{margin:0;line-height:1.55;overflow-wrap:anywhere}.category-purge-body .category-purge-name{font-weight:600;background:#f4f5f7;border-radius:8px;padding:10px 12px}.category-purge-body>label{display:grid;gap:10px;font-weight:600;line-height:1.45}.category-purge-body input{margin:0;width:100%;min-width:0;box-sizing:border-box}.category-purge-body>.ronado-popup-actions{display:flex;gap:12px;flex-wrap:wrap;margin:4px 0 0;justify-content:flex-end}.category-purge-body>.ronado-popup-actions button{margin:0}.category-purge-body button.danger{color:#b42318;border:1px solid #f2c6c6;background:#fff1f1}.category-purge-body button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:480px){.category-purge-body{padding:20px;gap:16px}.category-purge-body h2{font-size:20px}.category-purge-body>.ronado-popup-actions{display:grid;grid-template-columns:1fr 1fr}.category-purge-body>.ronado-popup-actions button{width:100%;white-space:normal}}
@media(max-width:480px){.category-purge-body>.ronado-popup-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}.category-purge-body>.ronado-popup-actions button{min-width:0;max-width:100%;width:100%!important;white-space:normal!important}}

/* Existing edit conflict: visible, persistent warning inside the dialog. */
dialog [data-live-conflict]{grid-column:1/-1;margin:0 0 14px;padding:12px 14px;background:#fdecec;border:1px solid #efb8b8;border-left:4px solid #a52626;border-radius:8px;color:#a52626;line-height:1.45}dialog [data-live-conflict] strong,dialog [data-live-conflict] span{display:block}dialog [data-live-conflict] span{margin-top:6px}

/* Proven narrow-screen overflow: header links and event export actions. */
@media(min-width:701px) and (max-width:1100px){
 header{height:calc(80px + env(safe-area-inset-top,0px))!important;min-height:calc(80px + env(safe-area-inset-top,0px))!important}
 nav{top:calc(80px + env(safe-area-inset-top,0px))!important}
 header .admin-header-nav{min-width:0;flex:1 1 auto;flex-wrap:wrap;justify-content:flex-end;gap:0;margin-right:10px}
 header .admin-header-nav a{padding:4px 6px}
 header .header-brand{flex:0 0 auto}
 header .userbadge{margin-right:10px}
}
@media(max-width:700px){
 .evaluation-attendance-total{flex-wrap:wrap}
 .evaluation-attendance-total strong{min-width:0;white-space:normal}
 .pdf-export-bottom{flex-wrap:wrap}
}

/* V2: activity date ranges and long audit text remain inside their own cards. */
.activity-log-card .activity-clear-range{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.activity-log-card .activity-clear-range>label,.activity-log-card .activity-clear-range input{min-width:0;max-width:100%}
.activity-log-card .activity-log-content{overflow-wrap:anywhere}
@media(max-width:430px){.activity-log-card .activity-clear-range{grid-template-columns:minmax(0,1fr)!important}}

/* V3: let the name yield space before header controls overflow. */
@media(min-width:701px){
 header .userbadge{flex:0 1 auto;min-width:0}
 header .header-user-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 header .admin-header-nav{min-width:0;flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}
 header .header-brand,header .logout{flex-shrink:0}
}
@media(min-width:701px) and (max-width:1100px){
 header .userbadge{max-width:28vw}
 header .admin-header-nav{flex-shrink:1}
}
/* Select intrinsic widths must not enlarge the activity filter grid. */
.activity-log-filters>label{min-width:0}
.activity-log-filters :is(select,input){min-width:0;max-width:100%}

/* Korrekturblock A: shared notification presentation; existing owners retain their actions. */
html body :is(.app-flash,[data-live-conflict],.gastro-signature-error,[data-batch-error],[data-dialog-notice],.intake-feedback){box-sizing:border-box;border-radius:10px;font-size:14px;line-height:1.45;padding:14px 16px;overflow-wrap:anywhere}
html body .app-flash{padding-right:58px;border-radius:10px!important;max-width:calc(100% - 36px)}
html body .app-flash.is-success{background:#eaf7ee;border:1px solid #b8dfc3;color:#176b35}
html body .app-flash.is-info{background:#edf7ff;border:1px solid #b6d8f0;color:#145477}
html body :is(.app-flash.is-error,[data-live-conflict],.gastro-signature-error,[data-batch-error],[data-dialog-notice]){background:#fff0f0;border:1px solid #efb8b8;color:#a52626}
html body dialog .app-flash{position:relative!important;inset:auto!important;transform:none!important;width:auto!important;max-width:100%!important;margin:12px 0!important;grid-column:1 / -1;z-index:6}
html body :is(.app-flash-close,.gastro-request-notice-close,.ronado-receipt-notice .gastro-modal-close),html body :is(dialog,[role=dialog],[role=alertdialog]) .ronado-popup-close{min-width:44px!important;width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent!important;color:inherit!important;box-shadow:none!important;font-size:26px!important;line-height:44px!important;cursor:pointer}
html body .app-flash-close{right:5px;top:5px;transform:none}
html body .app-flash-close:hover,html body .ronado-popup-close:hover{background:transparent!important}
html body [data-session-warning] button[aria-label]{background:transparent!important;color:inherit!important;border:0!important;min-width:44px;min-height:44px;padding:0!important}
html body [data-session-warning]{max-width:100%;padding:14px 16px!important}
html body :is(.ronado-request-notice,.ronado-receipt-notice){border-radius:10px!important;font-size:14px;line-height:1.45}
html body .ronado-request-notice{background:#edf7ff;border-color:#b6d8f0;color:#145477}
html body .ronado-invalid-field{border-color:#b42318!important;outline:2px solid #b42318;outline-offset:1px}
/* Existing help contents and details/summary interaction remain unchanged. */
html body .ronado-operation-info{box-sizing:border-box;margin-block:16px!important;border-radius:10px!important;max-width:100%;min-width:0}
html body details.card>.ronado-operation-info{margin-inline:18px!important;max-width:calc(100% - 36px)}
html body .ronado-operation-info>summary{padding:14px 18px!important;gap:12px;display:flex;justify-content:space-between}
html body .ronado-operation-info>summary>.operation-info-arrow{margin-left:auto;flex:0 0 auto}
/* Short/long native dialogs share the visual viewport and safe-area bounds. */
html body dialog[open]:not(#plan-editor-dialog){position:fixed!important;inset:auto!important;left:50%!important;top:max(var(--ronado-dialog-top,20px),calc(env(safe-area-inset-top,0px) + 20px))!important;transform:translateX(-50%)!important;margin:0!important;height:auto!important;min-height:0!important;max-height:min(var(--ronado-dialog-height,calc(100dvh - 40px)),calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 40px))!important;max-width:calc(100vw - 36px)!important;border-radius:10px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;box-sizing:border-box}
html body dialog[open]:not(#plan-editor-dialog) .gastro-modal-box{max-height:none!important;overflow:visible!important;box-sizing:border-box;max-width:100%}
html body dialog[open]:not(#plan-editor-dialog) .gastro-modal-head{position:sticky;top:0;z-index:5;background:#fff}
/* Display only: mirror saved acceptance/finalization, never infer closure from a count. */
html body .gastro-stand-bar-card[data-stand-status=pending]{background:#fff}
html body .gastro-stand-bar-card[data-stand-status=accepted]{background:#edf7ff;border-color:#c4deef}
html body .gastro-stand-bar-card[data-stand-status=final]{background:#edf8ef;border-color:#bfdfc6}
html body .gastro-stand-bar-card[data-stand-status=accepted] .gastro-accept-card-status{color:#145477!important}
html body .gastro-stand-bar-card[data-stand-status=final] .gastro-accept-card-status{color:#176b35!important}

html body .ronado-request-notice .gastro-request-notice-icon{background:#145477;color:#fff}
html body .ronado-request-notice b{color:#145477}

/* Gastro block B: compact, authoritative saved status in existing overview cards. */
html body .gastro-stand-bar-card .gastro-accept-card-status{font-size:16px!important;font-weight:800!important;line-height:1.35;margin-top:10px}
html body .gastro-stand-bar-card .gastro-stand-status-meta{font-size:12px;line-height:1.45;margin-top:5px;overflow-wrap:anywhere}
html body .gastro-stand-bar-card>.ronado-signatures-open{background:transparent!important;border:0!important;box-shadow:none!important;color:#145477!important;text-decoration:underline;font-weight:500;font-size:12px;min-height:44px;padding:8px 0!important;justify-self:start;text-align:left}
html body .order-template-review-dialog [data-order-template-all]{margin:12px 22px;max-width:calc(100% - 44px)}
html body [data-package-info]{display:block;font-size:13px;font-weight:600;line-height:1.4}
html body [data-delivery-total]{grid-column:1/-1;line-height:1.4}

/* Block B / G21: gespeicherte Statusdaten und Bestände klar trennen. */
.gastro-end-accepted>div{min-width:0;display:flex;flex-direction:column;gap:6px}
.gastro-end-accepted b{display:block;font-size:16px;line-height:1.35;font-weight:800;overflow-wrap:anywhere}
.gastro-end-accepted span{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.gastro-end-accepted{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.gastro-end-accepted .ronado-signatures-open{background:transparent!important;border:0!important;box-shadow:none!important;padding:6px 0!important;text-decoration:underline;font-size:12px;white-space:normal}
.gastro-stand-product-row .gastro-stand-start,.gastro-stand-product-row .gastro-stand-end{padding:12px!important;border:1px solid #e5e7e9;border-radius:10px;background:#f4f5f6;align-self:stretch}
.gastro-stand-product-row .gastro-stand-end{background:#fafafa}
.gastro-stand-product-row .gastro-stand-end.is-counted{background:#eaf6ed;border-color:#d7e9dc}
.gastro-stock-heading{display:block;margin-bottom:8px;font-size:11px;line-height:1.4;font-weight:800;letter-spacing:.03em;color:#5e666a}
.gastro-stand-product-row .gastro-stand-start:before,.gastro-stand-product-row .gastro-stand-end:before{content:none!important}
.gastro-stand-product-row .gastro-stand-end .gastro-stand-sold{margin-top:12px;padding-top:9px;border-top:1px solid #cdd8d0;line-height:1.5;color:#48534c}

.gastro-stand-accepted .ronado-signatures-open{background:transparent!important;border:0!important;box-shadow:none!important;text-decoration:underline;font-size:12px;white-space:normal}

#end-count-modal [data-decimal-help]{margin-top:8px;font-size:13px;font-weight:400;max-width:100%;overflow-wrap:anywhere}
#end-count-modal [data-decimal-help] summary{cursor:pointer;color:#12627d;font-weight:700;min-height:32px;padding:6px 0}
#end-count-modal [data-decimal-help] p{margin:4px 0;line-height:1.5}
#end-count-modal [data-decimal-example]{display:block;margin-top:6px;font-size:12px;line-height:1.4;color:#59636a}
#end-count-modal [data-decimal-example][hidden],#end-count-modal [data-decimal-help][hidden]{display:none}

/* Block C: presentation only; saved acceptance and stock values remain authoritative. */
html body .gastro-stand-product-row .gastro-stand-value{border-left:0;padding-left:0}
html body .gastro-pouring-block{padding:0!important;border:0!important;background:transparent!important}
html body .gastro-pouring-block-head{padding:12px 15px!important;background:#eef1f4;border-radius:10px}
html body .gastro-stand-bar-card{grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:start}
html body .gastro-stand-bar-card>.gastro-link-button{grid-column:2;width:max-content;max-width:100%;white-space:normal}
html body .gastro-stand-bar-card>.ronado-signatures-open{grid-column:2;min-height:32px;margin-top:-6px}
html body .gastro-stand-bar-card .gastro-accept-card-status{display:flex;gap:5px;font-size:14px!important;line-height:1.4}
html body .gastro-accept-card-status>span:first-child{flex:none}
html body .gastro-accept-card-status>span:last-child{min-width:0}
html body .gastro-stand-accepted,html body .gastro-end-accepted{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:12px 0;padding:14px 16px;border:1px solid #c4deef;border-radius:12px;background:#edf7ff}
html body .gastro-stand-accepted b{color:#145477}
html body .gastro-end-accepted{background:#edf8ef;border-color:#bfdfc6}
html body .gastro-end-accepted b{color:#176b35}
html body .gastro-stand-accepted b,html body .gastro-end-accepted b{display:block;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
html body .gastro-stand-accepted span,html body .gastro-end-accepted span{display:block;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
html body :is(.gastro-stand-accepted,.gastro-end-accepted) .ronado-signatures-open{padding:3px 0!important;min-height:32px;font-size:12px;font-weight:400}
html body .gastro-returns-card .gastro-return-table{min-width:820px!important}
html body .gastro-returns-card .gastro-return-actual input{box-sizing:border-box;width:120px!important;min-width:120px;max-width:none;padding:10px 12px!important;font-size:16px!important}
html body .gastro-returns-card .gastro-return-table :is(th,td):last-child{min-width:144px;width:144px!important}
html body .gastro-movement-badges{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0}
html body .gastro-movement-badges>span{display:inline-block;font-size:12px;line-height:1.4;padding:3px 7px;border-radius:6px;background:#f4f5f6;color:#59636a;font-weight:700}
html body .gastro-movement-badges>.is-complete{background:#edf8ef;color:#176b35}
html body .gastro-movement-badges>.is-open{background:#fff2cc;color:#8a5b13}
html body .gastro-movement-badges>.is-cancelled{background:#fdecec;color:#b42318}
html body .gastro-signature-group{padding:10px 14px;border:1px solid #e1e3e5;border-radius:10px;font-size:12px}
html body :is(.gastro-signature-group,.gastro-request-delivery,.gastro-movement-log) .ronado-signatures-open{background:transparent!important;border:0!important;padding:4px 0!important;box-shadow:none!important;text-decoration:underline;font-size:12px!important;font-weight:400!important;min-height:32px}
html body[data-event-changing] main{pointer-events:none;opacity:.55}
.ronado-event-loading{position:fixed;inset:16px 16px auto;z-index:100000;padding:16px;border-radius:10px;background:#edf7ff;color:#145477;border:1px solid #c4deef;font-weight:700}
html body .gastro-returns-card .gastro-eval-scroll{overflow-x:auto!important;max-width:100%;overscroll-behavior-inline:contain}
html body .gastro-signature-group[hidden]{display:none!important}

html body .gastro-stand-bar-copy>.ronado-signatures-open{display:block;background:transparent!important;border:0!important;box-shadow:none!important;color:#145477!important;text-decoration:underline;font-size:12px!important;font-weight:400!important;padding:3px 0!important;min-height:32px;text-align:left;white-space:normal}

/* Explicit test-event cleanup controls only; existing event actions unchanged. */
.test-event-delete-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;max-width:100%;min-width:0}
.test-event-delete-controls form,.test-event-delete-preview form label{min-width:0;max-width:100%}
.test-event-delete-controls button,.test-event-delete-controls .button-link,.test-event-delete-preview button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.test-event-delete-preview .test-event-delete-confirm{grid-column:1/-1;display:flex;align-items:flex-start;gap:8px}
.test-event-delete-preview .test-event-delete-confirm input{width:auto;flex:0 0 auto;margin-top:4px}

/* Scoped test-event confirmation actions. */
.test-event-delete-actions{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:stretch;flex-wrap:wrap;gap:12px;margin-top:8px}
.test-event-delete-actions>.button-link,.test-event-delete-actions>button{box-sizing:border-box;min-height:44px;width:auto;margin:0;white-space:normal;text-align:center}
.test-event-delete-preview #test-event-name-help{display:block;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:600px){.test-event-delete-actions{display:grid;grid-template-columns:minmax(0,1fr)}.test-event-delete-actions>.button-link,.test-event-delete-actions>button{width:100%}}

/* Table-label export follows the reservation list and reuses the standard accordion. */
.table-label-export-card{padding:0}
.table-label-export-form{gap:18px;align-items:end;margin:0}
.table-label-export-form>label{display:grid;gap:8px;min-width:0}
.table-label-export-form select{width:100%;box-sizing:border-box;min-width:0}
.table-label-export-form>button{grid-column:1/-1;width:auto;justify-self:start;max-width:100%;white-space:normal;margin:0}
.table-label-export-help{margin:16px 0 0;color:#6f6f6f;font-size:13px;line-height:1.5}
@media(max-width:700px){.table-label-export-form{grid-template-columns:minmax(0,1fr)}.table-label-export-form>button{width:100%}}

/* E4: guest information must wrap inside its existing row, including unbroken names. */
.guest-list-card .guest-row .guest-info{min-width:0;width:100%;max-width:100%;overflow-wrap:anywhere}
/* The old portrait action columns exceed the available row at narrow tablet widths. */
@media(min-width:701px) and (max-width:760px) and (orientation:portrait){
 .guest-list-card .guest-row{grid-template-columns:minmax(0,1fr) 120px 114px!important}
 .guest-list-card .guest-row .check-controls{grid-template-columns:48px 96px 48px minmax(0,1fr)!important;width:100%!important;min-width:0!important;max-width:100%!important}
 .guest-list-card .guest-row .all-checkin-btn{width:100%!important;min-width:0!important;white-space:normal}
 .guest-list-card .guest-row:not(:has(.guest-edit-btn)){grid-template-columns:minmax(0,1fr)!important}
}

/* Compact number-swap confirmation only; the reservation editor is unchanged. */
html body dialog.number-swap-confirmation[open]:not(#plan-editor-dialog){width:calc(100% - 28px)!important;max-width:460px!important;height:fit-content!important;max-height:calc(100dvh - 28px)!important;position:fixed!important;inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important;overflow:auto}
html body dialog.number-swap-confirmation[open]:not(#plan-editor-dialog) .guest-edit-form{min-width:0;width:100%;box-sizing:border-box}
html body dialog.number-swap-confirmation[open]:not(#plan-editor-dialog) p{overflow-wrap:anywhere}
html body dialog.number-swap-confirmation[open]:not(#plan-editor-dialog) .guest-edit-actions{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:10px!important}
html body dialog.number-swap-confirmation[open]:not(#plan-editor-dialog) .guest-edit-actions button{flex:1;min-width:0!important;width:auto!important;white-space:nowrap!important;min-height:44px;padding:12px 14px}
