.room-plan-top{display:flex;align-items:center;gap:24px;margin-bottom:18px}.room-plan-top>div:first-child{min-width:180px}.room-stat{display:flex;flex-direction:column;gap:4px}.room-stat strong{font-size:24px}.room-stat span{font-size:12px;color:var(--muted)}.room-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:18px;align-items:start}.room-reservations{background:var(--white);border:1px solid var(--line);border-radius:14px;overflow:hidden}.room-reservations>input{margin:14px;width:calc(100% - 28px)}.room-list-tabs{display:flex;border-bottom:1px solid var(--line);gap:2px;padding:6px}.room-list-tabs button{background:none;color:var(--muted);padding:14px 8px;flex:1;border-bottom:3px solid transparent;border-radius:0}.room-list-tabs button.selected{color:var(--petrol);border-bottom-color:var(--petrol)}.room-booking-list{max-height:calc(100dvh - 370px);min-height:200px;overflow:auto}.room-booking{border-top:1px solid var(--line);border-left:4px solid transparent;padding:8px 12px}.room-booking>button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;padding:10px 0;width:100%;background:none;color:inherit}.room-booking small,.room-booking span{font-size:12px}.room-booking.selected{background:var(--paper);box-shadow:inset 0 0 0 2px var(--petrol)}.room-booking.checked-in{border-left-color:#268773}.room-booking.waiting{border-left-color:#df982f}.room-booking.late{border-left-color:#bf4345}.room-booking-actions{display:flex;gap:10px;padding:10px 0}.room-booking-actions button{min-height:40px;padding:8px 12px;font-size:12px}.room-map{min-width:0}.room-time{display:flex;align-items:center;gap:14px;margin-bottom:12px;font-size:12px}.room-time input{flex:1;min-width:0;width:100%;accent-color:var(--petrol)}.room-surface{background:var(--paper);border:1px solid var(--line);border-radius:14px;width:100%;overflow:hidden}.room-surface svg{width:100%;height:auto;min-height:0;display:block}.room-surface .plan-tabletop,.room-surface .plan-chair{fill:#d9e3e1;stroke:#819b97}.room-surface .plan-table-label{fill:#21494c}.room-surface .plan-table-seats{fill:#426366}.room-surface .occupied .plan-tabletop,.room-surface .occupied .plan-chair{fill:#e69a83;stroke:#b87765}.room-surface .checked-in .plan-tabletop,.room-surface .checked-in .plan-chair{fill:#308879;stroke:#236b60}.room-surface .waiting .plan-tabletop,.room-surface .waiting .plan-chair{fill:#efb44e;stroke:#bb8b33}.room-surface .late .plan-tabletop,.room-surface .late .plan-chair{fill:#c64e50;stroke:#a42f33}.room-surface .checked-in text,.room-surface .late text{fill:white}.room-surface .room-selected .plan-tabletop{stroke:#152f34;stroke-width:5}.room-time-tag{fill:#174c4f}.room-next-tag{fill:#e0efeb;stroke:#9cbfb5}.room-surface .room-time-label{fill:white;font-size:13px;font-weight:600}.room-surface .room-next-tag+text{fill:#174c4f}.room-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;padding:16px 0}.room-legend span:before{content:'';display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:7px;background:#aabdb7}.room-legend .booked:before{background:#e69a83}.room-legend .checked-in:before{background:#308879}.room-legend .waiting:before{background:#efb44e}.room-legend .late:before{background:#c64e50}.room-mobile-tabs{display:none}.plan-editor-toolbar{display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap;padding:12px 0 18px}.plan-editor-toolbar>div{display:flex;gap:8px}.plan-editor-toolbar .check-row{margin:0}.plan-tools{background:var(--paper);border-radius:12px;padding:16px}.plan-tool-actions{display:flex;flex-wrap:wrap;gap:10px}.plan-tool-actions>button{flex:1;min-width:90px}.floorplan-dialog{width:calc(100vw - 32px)!important;max-width:1800px!important}.floorplan-dialog .dialog-body{padding-right:0}.floorplan-dialog .plan-workspace{grid-template-columns:250px minmax(0,1fr);gap:18px}.floorplan-dialog #floorplan-surface{min-width:0;width:100%;background:var(--paper);border-radius:12px 0 0 12px}.floorplan-dialog .floorplan-canvas{width:100%;height:auto;min-height:0;touch-action:none}.floorplan-dialog .plan-grid{opacity:.3}.floorplan-dialog .dialog-body>.plan-editor-toolbar{padding-right:18px}
@media(max-width:800px){.room-plan-top{gap:16px;flex-wrap:wrap}.room-plan-top>div:first-child{flex:1;min-width:150px}.room-layout{grid-template-columns:1fr}.room-mobile-tabs{display:flex;gap:10px;width:100%}.room-mobile-tabs>button{flex:1}.room-mobile-tabs>button[aria-pressed=true]{background:var(--petrol);color:white}.room-layout[data-mobile-view=plan]>.room-reservations,.room-layout[data-mobile-view=list]>.room-map{display:none}.room-booking-list{max-height:none}.room-stat strong{font-size:20px}.room-stat span{font-size:10px}.room-time{gap:8px}.floorplan-dialog{width:calc(100vw - 12px)!important}.floorplan-dialog .plan-workspace{display:flex;flex-direction:column-reverse}.floorplan-dialog .plan-tools{width:calc(100% - 14px);box-sizing:border-box}.plan-editor-toolbar{gap:12px}.plan-editor-toolbar button{font-size:12px;padding:8px}.plan-editor-toolbar .check-row{font-size:12px}}
@media(min-width:1100px){.shift-board-scroll{max-height:calc(100dvh - 235px);min-height:360px}.planning-summary{padding:8px 14px;gap:16px;margin-bottom:8px;align-items:center}.planning-summary>span strong{display:inline;font-size:18px;margin-right:6px}.planning-summary>small{flex-basis:auto;font-size:11px}.shift-controls{margin-bottom:10px;gap:8px}#staffing-insights{margin:8px 0 10px}#staffing-insights>button{padding:8px 12px;min-height:36px;font-size:12px}.shift-legend{margin:8px 0}}
/* Contain the drawing surface and fit the editor to the actual viewport. */
.floorplan-dialog{box-sizing:border-box;max-width:calc(100vw - 24px)!important;margin:auto;overflow:hidden}.floorplan-dialog #editor-form,.floorplan-dialog .dialog-body,.floorplan-dialog .plan-workspace,.floorplan-dialog .plan-tools{min-width:0;max-width:100%;box-sizing:border-box}.floorplan-dialog .dialog-body{padding-right:18px;overflow:auto}.floorplan-dialog #floorplan-surface{box-sizing:border-box;max-width:100%;width:100%;overflow:hidden;border-radius:12px}.floorplan-dialog .floorplan-canvas{display:block;max-width:100%;width:100%}.floorplan-dialog .plan-editor-toolbar>div{min-width:0;flex-wrap:wrap}.floorplan-dialog .plan-summary{flex-wrap:wrap}.room-layout,.room-map,.room-surface{max-width:100%;min-width:0;box-sizing:border-box}
@media(min-width:801px){.floorplan-dialog{width:calc(100vw - 24px)!important;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.floorplan-dialog #editor-form{height:100%;display:flex;flex-direction:column}.floorplan-dialog .dialog-heading,.floorplan-dialog .dialog-footer{flex-shrink:0}.floorplan-dialog .dialog-body{flex:1;min-height:0;display:flex;flex-direction:column}.floorplan-dialog .dialog-body>label,.floorplan-dialog .plan-summary,.floorplan-dialog .plan-editor-toolbar{flex-shrink:0}.floorplan-dialog .plan-workspace{flex:1;min-height:180px;grid-template-columns:230px minmax(0,1fr);align-items:stretch}.floorplan-dialog .plan-tools{overflow:auto;min-height:0}.floorplan-dialog #floorplan-surface{height:100%;align-self:stretch}.floorplan-dialog .floorplan-canvas{height:100%;max-height:100%}.floorplan-dialog .plan-workspace:not(:has(.plan-tools)){grid-template-columns:1fr}.floorplan-dialog .dialog-body>.check-row{margin:12px 0 0}}
/* Keep the form bounded on mobile so its body, rather than the locked page, scrolls. */
@media(max-width:800px){.floorplan-dialog{max-width:calc(100vw - 12px)!important;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.floorplan-dialog #editor-form{height:100%;min-height:0;display:flex;flex-direction:column}.floorplan-dialog .dialog-heading,.floorplan-dialog .dialog-footer{flex-shrink:0}.floorplan-dialog .dialog-body{padding:14px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.floorplan-dialog .plan-tools{width:100%}.floorplan-dialog .floorplan-canvas{touch-action:pan-y}.floorplan-dialog .floorplan-canvas [data-table-id]{touch-action:none}}
@media(min-width:1100px){.content:has(#occupancy-content){display:grid;grid-template-columns:minmax(0,1fr);gap:0}.content:has(#occupancy-content)>.page-heading{margin-bottom:16px}.occupancy-controls{gap:14px;margin-bottom:14px;align-items:center}.occupancy-controls>label,.room-plan-top>div:first-child>label{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;white-space:nowrap}.occupancy-controls input,.occupancy-controls select,.room-plan-top select{min-height:40px;padding:8px 12px}.occupancy-controls button{min-height:40px;padding:8px 14px}.room-plan-top{gap:22px;margin-bottom:14px}.room-stat{flex-direction:row;align-items:baseline;gap:7px}.room-stat strong{font-size:20px}.room-stat span{font-size:11px}.room-surface svg{height:clamp(400px,calc(100dvh - 335px),1000px);width:100%;object-fit:contain}.room-booking-list{max-height:calc(100dvh - 385px)}}
@media(min-width:1500px){.content:has(#occupancy-content){grid-template-columns:minmax(0,1fr) auto;column-gap:24px}.content:has(#occupancy-content)>.page-heading{grid-column:1/-1}.content:has(#occupancy-content)>.occupancy-controls{grid-column:1;grid-row:2;margin:0 0 18px}.content:has(#occupancy-content)>#occupancy-content{display:contents}.content:has(#occupancy-content) .room-plan-top{grid-column:2;grid-row:2;margin:0 0 18px;justify-content:flex-end}.content:has(#occupancy-content) .room-layout{grid-column:1/-1}.room-plan-top>div:first-child{min-width:0}.room-plan-top select{max-width:200px}.room-stat span{max-width:80px;line-height:1.3}}
@media(min-width:801px){.floorplan-dialog #floorplan-surface{overflow:auto;overscroll-behavior:contain}.floorplan-dialog .floorplan-canvas{width:100%;height:auto;max-height:none;min-height:100%;aspect-ratio:10/7}.floorplan-dialog .dialog-body>label:first-child{max-width:600px}.floorplan-dialog .plan-summary{margin:8px 0}.floorplan-dialog .plan-editor-toolbar{padding:5px 0 12px}.floorplan-dialog .dialog-body{padding-top:14px;padding-bottom:10px}}

/* After zooming, reserve canvas gestures for table drag and two-finger panning. */
.floorplan-dialog .floorplan-canvas[data-plan-zoomed="true"]{touch-action:none;}

.plan-list-entry{display:flex;gap:12px;align-items:center;min-width:0}.plan-list-entry .plan-list-row{flex:1;min-width:0}.plan-list-entry .plan-list-row strong{overflow-wrap:anywhere}.plan-list-entry>[data-plan-delete]{flex:none;min-height:44px}.floorplan-dialog .plan-summary{flex-wrap:wrap}

.plan-editor-toolbar .plan-history{display:flex;gap:8px;min-width:0}.plan-editor-toolbar .plan-history button{display:inline-flex;gap:8px;min-height:44px;padding:10px 12px;justify-content:center}.plan-history svg{width:20px;height:20px;flex:none}.plan-history button:disabled{opacity:.4;cursor:default}@media(max-width:600px){.plan-editor-toolbar .plan-history{width:100%;flex:1 1 100%}.plan-editor-toolbar .plan-history button{flex:1;min-width:0;font-size:13px;padding:10px}.plan-history button span{white-space:nowrap}}

/* Keep the mobile arrangement selector on its own line, above readable figures. */
@media(max-width:800px){#occupancy-content .room-plan-top{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}#occupancy-content .room-plan-top>div:first-child{grid-column:1/-1;width:100%;min-width:0;max-width:none}#occupancy-content .room-plan-top>div:first-child>label{display:grid;gap:8px;align-items:stretch;margin:0;width:100%;white-space:normal}#occupancy-content .room-plan-top select{display:block;width:100%;max-width:100%;min-width:0;min-height:44px}#occupancy-content .room-stat{min-width:0;padding:12px 10px;border:1px solid var(--line);border-radius:12px;gap:6px}#occupancy-content .room-stat span{font-size:12px;line-height:1.4;overflow-wrap:anywhere}#occupancy-content .room-mobile-tabs{grid-column:1/-1;min-width:0}.room-mobile-tabs button{min-width:0;padding:12px 8px}.room-time input{min-width:0}.room-map .room-surface svg{aspect-ratio:10/7}}

.plan-neighbor-summary{margin-top:1rem;padding:1rem;border:1px solid var(--line);border-radius:14px;min-width:0}.plan-neighbor-summary p{margin:.6rem 0}.plan-combination-chips{display:flex;gap:.5rem;flex-wrap:wrap}.plan-combination-chips>span{display:flex;align-items:center;gap:.5rem;padding:.5rem .7rem;border:1px solid var(--line);border-radius:10px;font-weight:600}.plan-combination-chips small{font-weight:400;color:var(--muted)}.plan-neighbor-links{stroke:var(--petrol);stroke-width:5;stroke-dasharray:10 6;opacity:.7;pointer-events:none}.plan-neighbor-options{display:grid;gap:.4rem;max-height:16rem;overflow:auto}.plan-neighbor-options .check-row{margin:.2rem 0}@media(max-width:600px){.plan-neighbor-summary{padding:.8rem}.plan-combination-chips>span{font-size:.85rem}}

/* Compact, full-row neighbor selection, independent of global checkbox forms. */
.floorplan-dialog #table-inspector{display:grid;gap:12px;margin-top:12px}
.floorplan-dialog #table-inspector .form-grid{gap:10px;min-width:0;margin:0}
.floorplan-dialog #table-inspector .plan-table-basics{grid-template-columns:minmax(0,1fr) 80px}
.floorplan-dialog #table-inspector label{min-width:0;margin:0}
.floorplan-dialog #table-inspector details{margin:0;padding:12px;min-width:0}
.floorplan-dialog #table-inspector summary{font-size:14px;line-height:1.4;margin:0;cursor:pointer}
.floorplan-dialog #table-inspector details[open]>summary{margin-bottom:12px}
.floorplan-dialog #table-inspector input:not([type=checkbox]){min-width:0;max-width:100%;width:100%;box-sizing:border-box;min-height:44px;padding:10px 12px;margin-top:6px}
.floorplan-dialog .plan-neighbor-controls{display:grid;gap:8px;margin-bottom:8px}
.floorplan-dialog .plan-neighbor-controls button{width:100%;min-height:44px;padding:10px 8px;font-size:13px}
.floorplan-dialog .plan-neighbor-controls button[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--petrol)}
.floorplan-dialog #table-inspector .plan-neighbor-controls input{margin:0;font-size:14px}
.floorplan-dialog .plan-neighbor-options{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;max-height:280px;overflow:auto;overscroll-behavior:contain;align-content:start;padding:2px}
.floorplan-dialog #table-inspector .plan-neighbor-option{display:flex;flex-direction:row;align-items:center;gap:10px;min-height:48px;box-sizing:border-box;padding:8px 10px;border:1px solid var(--line);border-radius:10px;cursor:pointer;line-height:1.3;background:var(--white);transition:background-color .15s,border-color .15s}
.floorplan-dialog #table-inspector .plan-neighbor-option input{width:22px;height:22px;min-width:22px;min-height:22px;margin:0;flex:none;accent-color:var(--petrol)}
.floorplan-dialog .plan-neighbor-option>span{display:flex;align-items:center;justify-content:space-between;flex:1;gap:8px;min-width:0}
.floorplan-dialog .plan-neighbor-option strong{font-size:13px;overflow-wrap:anywhere}
.floorplan-dialog .plan-neighbor-option small{font-size:12px;color:var(--muted);white-space:nowrap}
.floorplan-dialog #table-inspector .plan-neighbor-option.is-linked{border-color:var(--petrol);box-shadow:inset 3px 0 var(--petrol);background:var(--paper)}
.floorplan-dialog .plan-neighbor-option:focus-within{outline:2px solid var(--petrol);outline-offset:1px}
.floorplan-dialog .plan-neighbor-option[hidden],.floorplan-dialog .plan-neighbor-empty[hidden],.floorplan-dialog .plan-neighbor-mapbar[hidden]{display:none}
.floorplan-dialog [data-plan-neighbor-count]{display:inline-block;padding:1px 7px;border:1px solid var(--line);border-radius:20px;font-size:12px;margin-left:4px}
.floorplan-dialog .plan-neighbor-empty{font-size:13px;margin:8px 0}
.floorplan-dialog .plan-neighbor-mapbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line);background:var(--paper);font-size:14px;position:sticky;top:0;z-index:1}
.floorplan-dialog .plan-neighbor-mapbar button{min-height:44px;flex:none;padding:10px 14px}
.floorplan-dialog .plan-choosing-neighbors{outline:2px solid var(--petrol);outline-offset:-2px}
.floorplan-dialog .plan-choosing-neighbors .plan-table{cursor:crosshair}
.floorplan-dialog .plan-choosing-neighbors .plan-linked .plan-tabletop{fill:#bce4d8;stroke:#287666;stroke-width:5}
.floorplan-dialog .plan-choosing-neighbors .plan-table.selected .plan-tabletop{stroke:#d78339;stroke-width:6}
.floorplan-dialog .plan-choosing-neighbors .plan-linked text{fill:#173f39}
@media(min-width:801px){.floorplan-dialog .plan-workspace{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:800px){.floorplan-dialog .plan-neighbor-options{grid-template-columns:repeat(2,minmax(0,1fr));max-height:260px}.floorplan-dialog .plan-neighbor-option>span{display:grid;gap:2px}.floorplan-dialog #table-inspector details{padding:10px}.floorplan-dialog .plan-neighbor-mapbar{font-size:13px}.floorplan-dialog .plan-choosing-neighbors .floorplan-canvas{min-height:240px}}
@media(prefers-reduced-motion:reduce){.floorplan-dialog #table-inspector .plan-neighbor-option{transition:none}}
@media(min-width:801px){.floorplan-dialog #floorplan-surface.plan-choosing-neighbors{display:flex;flex-direction:column}.floorplan-dialog .plan-choosing-neighbors .plan-neighbor-mapbar{flex:none}.floorplan-dialog .plan-choosing-neighbors .floorplan-canvas{height:0;flex:1;min-height:180px;aspect-ratio:auto;max-height:none}}

/* View-only occupancy zoom; ordinary page scrolling stays available when fitted. */
body.ge-app #app .room-camera-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:0 0 8px;min-width:0}
body.ge-app #app .room-camera-toolbar button{min-height:44px;min-width:44px;padding:10px 14px}
body.ge-app #app .room-camera-toolbar output{min-width:56px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted)}
body.ge-app #app .room-camera-help{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 12px}
body.ge-app #app .room-surface[data-room-zoomed=true] [data-room-camera]{touch-action:none;cursor:grab;user-select:none}
body.ge-app #app .room-surface[data-room-zoomed=true] [data-room-camera]:active{cursor:grabbing}
body.ge-app #app [data-room-camera]:focus-visible{outline:3px solid var(--petrol);outline-offset:-4px}
@media(max-width:700px){body.ge-app #app .room-camera-toolbar{justify-content:flex-start}body.ge-app #app .room-camera-help{font-size:11px}}

#editor.floorplan-dialog .dialog-body {
  overflow-y: auto;
  overscroll-behavior: contain;
}
#editor.floorplan-dialog .plan-workspace {
  flex-shrink: 0;
}
#editor.floorplan-dialog #floorplan-surface {
  height: clamp(320px, 60dvh, 760px);
}
#editor.floorplan-dialog .floorplan-canvas {
  height: 100%;
  min-height: 0;
  max-height: 100%;
}
#editor.floorplan-dialog .plan-choosing-neighbors .floorplan-canvas {
  height: 0;
  flex: 1;
}
.plan-resize-handle {
  fill: #fff;
  stroke: #a04c20;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  cursor: grab;
  pointer-events: all;
}
.plan-resize-handle:hover {
  fill: #ffcc9f;
}
@media (max-width: 800px) {
  #editor.floorplan-dialog #floorplan-surface {
    height: clamp(280px, 54dvh, 550px);
  }
}

.plan-approved-combinations{display:grid;gap:10px;margin:14px 0 0;padding:14px;border:1px solid var(--line);border-radius:12px;min-width:0}
.plan-approved-combinations legend{padding:0 5px;font-weight:650}
.plan-approved-combinations .check-row{margin:0}
.plan-approved-combinations>button{justify-self:start}
.plan-approved-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;border-top:1px solid var(--line);padding:10px 0}
.plan-approved-row>div{flex:1 1 220px;overflow-wrap:anywhere}
.plan-approved-row p{margin:3px 0 0}
.plan-approved-edit{border-top:1px solid var(--line);padding-top:10px}
