:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#10232c;color:#f3f8fa}*{box-sizing:border-box}body{margin:0}main{max-width:1120px;margin:auto;padding:28px 20px}header,nav,.actions,.line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}header{justify-content:space-between;margin-bottom:26px}h1{font-size:30px;margin:4px 0}h2{font-size:21px;margin:0 0 14px}h3{font-size:17px;margin:0 0 12px}.eyebrow,.muted,small{color:#b2c7d0;font-size:13px}button,.button,input,select,textarea{font:inherit;border:1px solid #54717e;border-radius:9px;padding:11px 14px}button,.button{cursor:pointer;background:#24424e;color:#f6fafb;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-weight:650;min-height:44px}button:hover,.button:hover{filter:brightness(1.15)}button:disabled{opacity:.45;cursor:default}button.primary{background:#f0ce92;color:#272117;border-color:#f0ce92}button.danger{color:#ffd4d4;background:#533239;border-color:#af737c}button.small{padding:6px 10px;font-size:13px}input,textarea,select{background:#102630;color:#fff;min-width:0;width:100%}input[type=checkbox],input[type=radio]{width:20px;height:20px;accent-color:#8ee5d7}label{display:grid;gap:6px;font-size:14px}.check{display:flex;align-items:center;gap:8px}.card{background:#193541;border:1px solid #41616e;border-radius:15px;padding:22px;margin:16px 0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.full{grid-column:1/-1}.actions{justify-content:flex-end;margin-top:20px}.ticket-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1.4fr auto;gap:10px;margin:12px 0;align-items:end}.badge{display:inline-block;background:#284957;padding:5px 10px;border-radius:20px;font-size:12px;margin-right:8px}.badge.good{background:#235647;color:#bef4d7}.badge.wait{background:#655127;color:#ffe7b6}.lead{white-space:pre-line;color:#d2e1e7;line-height:1.5}.total{font-size:23px;font-weight:750}.map{position:relative;background-color:#102730;background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);border:1px solid #58727e;border-radius:12px;overflow:hidden;margin:12px 0}.map button,.map .object{position:absolute;padding:2px;min-height:0;font-size:clamp(10px,1.4vw,16px);text-align:center;overflow:hidden}.map button{background:#204b3e;border:2px solid #8cd2b3;display:flex;flex-direction:column}.map button.selected{background:#efd08e;color:#13232b;outline:2px solid #efd08e;outline-offset:2px}.map .object{background:#4d6071;display:grid;place-items:center;border:1px solid #7894a4;color:#dae5e9}.table-options{display:flex;flex-wrap:wrap;gap:8px}.table-options button.selected{background:#efd08e;color:#172831}details{margin:12px 0}summary{cursor:pointer;padding:10px 0;color:#a3e5db}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}th,td{padding:12px 8px;border-bottom:1px solid #45606d;font-size:14px}th{color:#b8ccd5}td .actions{margin:0;flex-wrap:nowrap}dialog{background:#193541;color:#f5fafa;border:1px solid #8da9b6;border-radius:16px;padding:26px;max-width:min(92vw,520px)}dialog::backdrop{background:#0009}dialog p{white-space:pre-line;line-height:1.6}:focus-visible{outline:3px solid #ffe399;outline-offset:3px}.empty{padding:40px;text-align:center;color:#b4cbd4}.sticky{position:sticky;bottom:0;background:#10232cf5;border-top:1px solid #526976;padding:14px 0;margin-top:18px}.ticket-qty{display:grid;grid-template-columns:1fr 110px;gap:16px;align-items:center;margin:12px 0}.table-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.stage-note{border-left:4px solid #e5c58c;padding:10px 16px;color:#e7d4b1}.status-panel{max-width:760px;margin:auto}.slot-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}@media(max-width:650px){main{padding:16px 12px}.grid,.grid.three{grid-template-columns:1fr}.card{padding:16px}.ticket-row{grid-template-columns:1fr 1fr}.ticket-row label:first-child{grid-column:1/-1}.ticket-row button{align-self:end}.map button{font-size:11px}header{gap:16px}h1{font-size:26px}.actions .primary{flex:1}td,th{padding:9px 6px}.table-picker{grid-template-columns:1fr 1fr}}



[hidden]{display:none!important}

.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.summary-grid>div{background:#24424e;border:1px solid #54717e;border-radius:12px;padding:16px;font-size:13px}.summary-grid strong{display:block;font-size:25px;margin-bottom:5px}.scan-line,.filter-line,.guest-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.scan-line input,.filter-line input{flex:1;min-width:180px}.filter-line select{width:auto}.guest-actions button{white-space:nowrap}.ticket{text-align:center;background:#f7faf9;color:#142c36;padding:24px;border-radius:12px;margin-top:20px}.ticket code{display:block;overflow-wrap:anywhere;font-size:12px;margin:12px 0}.ticket img,.ticket canvas{margin:auto}.ticket #ticketQR{background:white;padding:16px;width:max-content;max-width:100%;margin:12px auto}dialog p{overflow-wrap:anywhere;max-height:60vh;overflow:auto}@media(max-width:650px){.summary-grid{grid-template-columns:1fr 1fr}.scan-line button{width:100%}.filter-line select{width:100%}.ticket{padding:12px}}@media print{body,main,.card{background:white;color:black}header,nav,.actions,.stage-note,button{display:none!important}.ticket{break-inside:avoid}.status-panel{border:0;max-width:100%}}



.event-cover{display:block;width:100%;max-height:260px;object-fit:cover;border-radius:12px;margin:12px 0}.price-from{font-size:22px;font-weight:700;color:#f5d99b}



.ticket-scanner,.admission-dialog{width:min(520px,calc(100vw - 40px));box-sizing:border-box}.ticket-scanner video{width:100%;max-height:48vh;object-fit:cover;background:#081b22;border-radius:12px}.admission-count{font-size:20px}.admission-dialog input{font-size:28px;width:100%;box-sizing:border-box}.admission-dialog .actions{margin-top:20px}#scanCamera{margin-bottom:16px}



/* Participant overview: five compact totals and prominent name lookup. */

.summary-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.summary-grid .arrival-waiting{background:#4b402a;border-color:#cfae6c;color:#ffe3ab}.filter-line{align-items:end}.filter-line>label:first-child{flex:1;min-width:230px}.filter-line>label:last-child{flex:1;min-width:220px}.filter-line select{width:100%}@media(max-width:650px){.summary-grid{grid-template-columns:1fr 1fr}.filter-line>label{min-width:0!important;flex-basis:100%!important}}



.event-layout-work{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:16px;align-items:start}.event-layout-work .card{padding:14px}.event-layout-work label{margin-bottom:10px}.layout-canvas button{touch-action:none;cursor:grab}.layout-canvas{background-size:10% 10%}.event-layout-work [data-canvas]{min-width:0}@media(max-width:700px){.event-layout-work{grid-template-columns:1fr}.event-layout-work [data-properties]{margin-top:0}.event-layout-work .map{min-height:280px}}



.layout-canvas .chair,.event-map-viewport .map .object.chair{background:#5e486e;border:2px solid #b899ca;border-top-width:6px}.layout-canvas .sofa,.event-map-viewport .map .object.sofa{background:#426477;border:3px solid #8db2c5;border-left-width:7px;border-right-width:7px}.alignment-guide{position:absolute;pointer-events:none;background:#ffcf6e;z-index:10}.alignment-guide.x{top:0;bottom:0;width:1px}.alignment-guide.y{left:0;right:0;height:1px}



/* Event map controls: bottom-align labels and buttons, keep optional tasks folded. */

.event-map-editor .layout-mode{max-width:540px}

.event-map-editor .layout-section{border:1px solid #486674;border-radius:12px;padding:14px 16px;margin:14px 0;background:#122b35}

.event-map-editor .layout-section h3{margin-bottom:12px}

.event-map-editor .layout-section summary{font-weight:700;padding:0}

.event-map-editor .layout-row{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-top:12px}

.event-map-editor .layout-row>label:not(.check){flex:1 1 180px;max-width:330px;margin:0}

.event-map-editor .layout-row button,.event-map-editor .layout-row input:not([type=checkbox]),.event-map-editor .layout-row select{height:44px;margin:0}

.event-map-editor .layout-size>label:not(.check){flex:0 1 110px}

.event-map-editor .layout-tools{margin:16px 0 8px}

.event-map-editor .layout-checks{align-items:center}

.event-map-editor .layout-checks small{margin-left:auto}

.event-map-editor .event-layout-work .map{width:100%;min-height:0;margin:0}

.event-map-editor [data-properties]{margin:0}

.event-map-editor .layout-save-note{border-top:1px solid #486674;padding-top:14px;font-size:14px}

@media(max-width:600px){.event-map-editor .layout-row>label:not(.check){max-width:none}.event-map-editor .layout-section{padding:12px}.event-map-editor .layout-checks small{margin-left:0}}



.event-description{white-space:normal;overflow-wrap:anywhere}.event-description p{margin:0 0 .85em;white-space:pre-wrap}.event-description h3,.event-description h4,.event-description h5{color:inherit;line-height:1.3;margin:1em 0 .4em;font-family:inherit;font-weight:750}.event-description h3{font-size:1.35em}.event-description h4{font-size:1.15em}.event-description h5{font-size:1em}.event-description>:first-child{margin-top:0}.event-description>:last-child{margin-bottom:0}



.event-map-zoom{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.event-map-zoom span{flex:1;min-width:160px;font-size:13px}.event-map-zoom button{min-width:44px}.event-map-viewport{height:min(52dvh,400px);overflow:auto;touch-action:pan-x pan-y;overscroll-behavior:contain;border:1px solid #58727e;border-radius:12px;background:#102730}.event-map-viewport>.map{min-height:0;max-width:none;margin:0;border:0;border-radius:0}.event-map-viewport .map button{font-size:clamp(12px,1.4vw,16px)}



#selectedCapacity{white-space:pre-line;font-weight:600;line-height:1.7}.map button.too-small{background:#754922;color:#fff3df;border-color:#e3a855}.map button:disabled{opacity:.55}



.event-map-viewport{margin:0 auto;max-width:100%}

.event-map-viewport .map button{gap:2px;line-height:1.15;padding:2px;word-break:normal}

.event-map-viewport .map button strong{font-size:clamp(15px,2vw,23px);white-space:nowrap}

.event-map-viewport .map button .seat-count{font-size:11px;font-weight:500;line-height:1.1}

.event-map-viewport .map button.full-table,.event-map-viewport .map button.full-table:disabled{background:#742f3a;color:#fff1f3;border-color:#e49aa5;opacity:1}

.seat-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin:8px 0 12px;font-size:12px}

.seat-legend span{display:inline-flex;align-items:center;gap:6px}.seat-legend span:before{content:'';width:12px;height:12px;border-radius:3px;background:#204b3e}.seat-legend .seat-partial:before{background:#a56426}.seat-legend .seat-full:before{background:#742f3a}.seat-legend .seat-selected:before{background:#efd08e}

.table-alternatives{margin-top:12px}.table-alternatives summary{font-size:14px}



/* Explicit status palette, readable on both staff and storefront backgrounds. */

.badge[class*="status-"]{font-weight:700;border:1px solid;padding:5px 10px;line-height:1.3}

.badge.status-cancelled{background:#66313d;color:#ffe0e5;border-color:#c67585}

.badge.status-paid,.badge.status-published{background:#1d513a;color:#d2fbe1;border-color:#58aa7c}

.badge.status-confirmed{background:#204c70;color:#d9efff;border-color:#75aed9}

.badge.status-pending{background:#67501b;color:#fff1bd;border-color:#c6a452}

.badge.status-arrived{background:#145853;color:#cbfff6;border-color:#58b7aa}

.badge.status-refunded{background:#533d70;color:#f0e2ff;border-color:#b296d1}

.badge.status-expired,.badge.status-closed,.badge.status-draft,.badge.status-unknown{background:#424d57;color:#edf1f5;border-color:#8b98a4}



@media print {

 @page { size:A4 portrait; margin:12mm; }

 html,body.event-storefront {height:auto!important;min-height:0!important;background:#fff!important;color:#111!important;overflow:visible!important}

 body.event-storefront header,body.event-storefront nav,.intro,dialog,button,.actions,.stage-note {display:none!important}

 body.event-storefront main,#app {padding:0!important;margin:0!important;max-width:none!important;width:auto!important;min-height:0!important}

 .status-panel {box-sizing:border-box;break-inside:avoid;page-break-inside:avoid;margin:0!important;padding:5mm!important;border:1px solid #aaa!important;border-radius:3mm!important;background:white!important;color:#111!important;font:11pt/1.3 Arial!important;box-shadow:none!important}

 .status-panel h2{font: bold 20pt/1.2 Georgia!important;margin:0 0 4mm!important}

 .status-panel p,.status-panel ul {margin:3mm 0!important;line-height:1.3!important}

 .status-panel .total{font-size:17pt!important}

 .status-panel .ticket{margin:4mm 0 0!important;padding:3mm!important;color:black!important;background:white!important;border:0!important}

 .status-panel .ticket h3{font-size:13pt!important;margin:2mm!important}

 .status-panel .ticket #ticketQR{padding:3mm!important;margin:2mm auto!important}

 .status-panel .ticket img,.status-panel .ticket canvas{width:42mm!important;height:42mm!important}

 .status-panel .ticket code{font-size:8pt!important;margin:2mm!important}

 .status-panel .badge{color:#111!important;background:white!important}

}



/* Customer map: compact seat availability, with table identity in selection details. */

.event-map-viewport .map button{container-type:inline-size}

.event-map-viewport .map button .seat-ratio{white-space:nowrap;line-height:1;font-variant-numeric:tabular-nums;font-size:clamp(10px,30cqw,22px);letter-spacing:-.03em}



.booking-status-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.booking-status-heading h2{margin:0;min-width:0;overflow-wrap:anywhere}.booking-status-heading button{flex-shrink:0;margin-left:auto}



.guest-map-dialog{width:min(960px,94vw);max-width:94vw;max-height:92vh;overflow:auto}.guest-map-dialog .stage-note{margin:10px 0}.map button.guest-map-other{background:#193541;border-color:#54717e;opacity:.65}.map button.guest-map-table{cursor:default}.guest-map-dialog .seat-ratio{font-size:clamp(12px,2vw,24px)}



/* Booking section spacing must live in external CSS: CSP disallows inline styles. */

.event-slot-field{display:block;padding-bottom:24px}

.event-slot-field>label{display:grid;gap:6px;margin:0}

.ticket-section-title{margin:0 0 16px}



#autoAllocation{white-space:pre-line}





/* Table reassignment: fixed header, map and table list side by side. */

.table-change-dialog{padding:0;overflow:hidden}

.table-change-dialog[open]{display:flex;flex-direction:column}

.table-change-header{display:block;flex:0 0 auto;padding:18px 24px 12px;background:#193541;border-bottom:1px solid #54717e}

.table-change-heading{display:flex;align-items:center;justify-content:space-between;gap:8px 20px;flex-wrap:wrap}

.table-change-heading h2,.table-change-heading p{margin:0}

.table-change-header .original-tables{margin:8px 0;font-size:14px}

.table-change-header [data-change-controls]{display:flex;align-items:center;justify-content:space-between;gap:12px}

.table-change-header select{margin:0;max-width:260px}

.table-change-header .event-map-zoom{margin:0;gap:6px;flex-wrap:nowrap}

.table-change-header .event-map-zoom>span{display:none}

.table-change-dialog>form{overflow:auto;min-height:0;padding:16px 24px 24px;margin:0}

.table-change-columns{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,1fr);gap:20px;align-items:start}

.table-change-dialog [data-change-map]{display:flex;flex-direction:column;min-width:0}

.table-change-dialog .event-map-viewport{margin:0;max-width:100%}

.table-change-dialog .seat-legend{display:flex;flex-wrap:nowrap;gap:10px;margin:0 0 10px;font-size:11px}

.table-change-dialog .seat-legend span{gap:4px}

.table-change-dialog .seat-legend span:before{flex-shrink:0}

.table-change-list>p{margin:0 0 10px}

.table-change-dialog .guest-table-choices{max-height:none;overflow:visible}

@media(max-width:640px){.table-change-columns{grid-template-columns:minmax(0,1fr)}.table-change-header{padding:14px}.table-change-dialog>form{padding:14px}.table-change-dialog .seat-legend{flex-wrap:wrap}.table-change-header select{max-width:180px;min-width:0}.table-change-header .event-map-zoom button{padding:8px;min-width:36px}}



.table-change-heading>.actions{margin:0;display:flex;gap:8px;flex-wrap:wrap}



/* Event-level paid ticket sales summary. */

.event-sales-section { padding:0 22px 8px; box-sizing:border-box; min-width:0; }

.event-sales-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; max-width:760px; gap:8px; margin:12px 0; }

.event-sales-summary .event-sales-stat { min-width:0; padding:10px 12px; border:1px solid #526e79; border-radius:10px; background:#203f4b; display:flex; flex-direction:column; gap:4px; line-height:1.35; }

.event-sales-stat > strong { display:block; font-size:22px; line-height:1.2; }

.event-sales-stat > span { display:block; overflow-wrap:anywhere; }

.event-sales-stat > small { display:block; color:#a9cbd8; }

.event-sales-section > .muted { margin:8px 0 0; font-size:12px; }

@media(max-width:650px) { .event-sales-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }



.free-table-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.free-table-list .card{margin:0;padding:12px;display:grid;gap:6px}.free-tables-dialog{max-height:92vh;overflow:auto}.seating-heading [data-free-tables]{margin-left:auto}



.past-events>summary{cursor:pointer;font-weight:700;padding:4px 0}.past-events[open]>.admin-event-list{margin-top:18px}.past-events[hidden]{display:none}



/* maXXa shared popup backdrop. Keep dialog content sharp and printing unchanged. */

@media screen {

 dialog::backdrop {

  background: #020914b8 !important;

  -webkit-backdrop-filter: blur(5px);

  backdrop-filter: blur(5px);

 }

}


/* maXXa illuminated windows: screen only, keep receipts white. */
@media screen {
 dialog {background:radial-gradient(ellipse at 45% 0%, #0a3044 0%, transparent 65%), #06111f !important;color:#eaf4f6;}
}

/* Staff module page background, matching the cashier shell. */
@media screen {
html:has(main[data-admin="true"]) {min-height:100%;background:#06111f;}
body:has(main[data-admin="true"]) {min-height:100vh;min-height:100dvh;background:radial-gradient(ellipse at 45% 0%,#0a3044 0%,transparent 65%),#06111f;background-repeat:no-repeat;background-size:100% 100%;}
}

/* Native date/time controls need enough space, including in embedded tablet views. */
body.maxxa-staff-ui .slot .grid.three,
body.maxxa-staff-ui dialog .grid:has(input[type="datetime-local"]) {
 grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));
 gap:16px 20px;align-items:start;
}
body.maxxa-staff-ui .slot .grid>label,
body.maxxa-staff-ui dialog .grid:has(input[type="datetime-local"])>label {
 min-width:0;max-width:100%;overflow-wrap:anywhere;
}
body.maxxa-staff-ui input[type="datetime-local"] {
 display:block;min-width:0;max-width:100%;width:100%;box-sizing:border-box;
}
body.maxxa-staff-ui .slot-title{flex-wrap:wrap;gap:10px}

/* iPad's native date-time control otherwise retains its intrinsic width. */
body.maxxa-staff-ui .slot .grid.three,
body.maxxa-staff-ui dialog .grid:has(input[type="datetime-local"]) {
 grid-template-columns:minmax(0,1fr);gap:18px 24px;
}
body.maxxa-staff-ui .slot .grid>label,
body.maxxa-staff-ui dialog .grid:has(input[type="datetime-local"])>label {
 display:block;min-width:0;width:100%;
}
body.maxxa-staff-ui .slot .grid>label>input,
body.maxxa-staff-ui dialog .grid:has(input[type="datetime-local"])>label>input {margin-top:6px}
body.maxxa-staff-ui input[type="datetime-local"] {
 -webkit-appearance:none;appearance:none;
 box-sizing:border-box!important;min-inline-size:0!important;
 inline-size:100%!important;max-inline-size:100%!important;
 min-height:46px;text-align:left;
}
body.maxxa-staff-ui input[type="datetime-local"]::-webkit-date-and-time-value {
 min-width:0;text-align:left;
}
@media(min-width:1000px){body.maxxa-staff-ui .slot .grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}
