.venue-floor{background:#fff;border:1px solid #dfe5ed;border-radius:16px;overflow:hidden;margin:10px 0;box-shadow:0 4px 18px #1e293b08}.floor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 18px}.floor-toolbar small{font-size:9px;letter-spacing:1.7px;color:#78859a;font-weight:800}.floor-toolbar h2{font-size:19px;margin:3px 0;color:#192a40}.floor-toolbar-actions{display:flex;gap:8px}.floor-toolbar button,.floor-edit-tools button,.floor-edit-tools select{border:1px solid #d8e1ec;border-radius:8px;background:white;color:#253751;padding:9px 13px;font-weight:700;cursor:pointer;min-height:44px}.floor-toolbar #floorSave{background:#1e5dce;color:white;border-color:#1e5dce}.floor-toolbar button:disabled{opacity:.45;cursor:default}.floor-legend{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:0 18px 12px;font-size:11px;color:#58697e}.floor-legend>span{display:flex;align-items:center;gap:5px}.floor-legend i{width:8px;height:8px;border-radius:50%;background:#829e8b}.floor-legend i.busy{background:#eaaa55}.floor-legend i.selected{background:#4274df}.floor-legend .floor-help{margin-left:auto;max-width:300px}.floor-edit-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:10px 15px;background:#eef5ff;border-top:1px solid #dce8f7}.floor-edit-tools span{font-size:12px;font-weight:700;margin-right:auto}.floor-edit-tools label{font-size:12px}.floor-scroll{overflow:auto;max-height:560px;-webkit-overflow-scrolling:touch}.venue-floor .floor-scene{position:relative!important;min-width:480px!important;min-height:var(--scene-height)!important;height:auto!important;padding:32px 26px 20px!important;background:linear-gradient(155deg,#f5f1e9,#ecebe4 65%,#e3e8e6)!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:hidden!important}.floor-room-wall{position:absolute;inset:0 0 auto;height:30px;border-bottom:4px solid #d0d5d2;background:linear-gradient(#d9e4e8,#f1f4f2);box-shadow:0 6px 12px #20374710}.venue-floor .floor-label{position:absolute;top:42px;left:20px;font-size:10px;font-weight:850;letter-spacing:3px;color:#7b8b8c;z-index:0}.venue-floor .floor-map{position:relative!important;display:block!important;min-height:var(--scene-height)!important;width:100%!important;padding:0!important;transform:none!important;background-image:linear-gradient(30deg,#98a3a40d 1px,transparent 1px),linear-gradient(150deg,#98a3a40d 1px,transparent 1px);background-size:44px 26px}.venue-floor .floor-object{position:absolute!important;left:var(--floor-x)!important;top:var(--floor-y)!important;right:auto!important;bottom:auto!important;width:106px!important;height:120px!important;min-height:120px!important;min-width:106px!important;margin:0!important;padding:0!important;transform:translate(-50%,-50%)!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;overflow:visible!important;cursor:pointer!important;transition:filter .15s}.venue-floor .floor-object:hover{filter:brightness(1.04)}.floor-object svg{width:104px;height:106px;overflow:visible}.floor-object .table-surface{fill:#e6d1ae;stroke:#b29873;stroke-width:1.3}.floor-object .table-edge{fill:#a6865f;stroke:#a6865f;stroke-width:1.3}.floor-object.busy .table-surface{fill:#f5d090;stroke:#cf9d49}.floor-object.selected .table-surface{fill:#bad6f2;stroke:#377dd0;stroke-width:2}.floor-object-label{position:absolute;top:88px;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;width:110px;line-height:1.2;border-radius:7px;padding:5px 4px;background:#ffffffe8;box-shadow:0 2px 7px #172a4210;color:#24384c}.venue-floor .floor-object b{font-size:13px!important;color:#24384c!important;line-height:1.2}.venue-floor .floor-object small{font-size:9px!important;color:#738092!important;margin:0!important}.venue-floor .floor-object strong{font-size:10px!important;color:#476a54!important;flex-basis:100%;margin:0!important}.venue-floor .floor-object.busy strong{color:#8d651b!important}.venue-floor .floor-object.selected .floor-object-label{outline:2px solid #4281cd}.venue-floor.is-editing .floor-object{touch-action:none!important;cursor:grab!important;user-select:none!important}.venue-floor.is-editing .floor-object:active{cursor:grabbing!important}.venue-floor.is-editing .floor-map{outline:1px dashed #83a6c6}.floor-status{margin:0;padding:9px 16px;background:#f9fbfd;color:#60758a;font-size:11px;min-height:34px}.floor-empty{padding:60px;text-align:center;color:#768799}.floor-object:focus-visible{outline:3px solid #2769c3!important;outline-offset:2px;border-radius:12px!important}@media(max-width:767px){.floor-toolbar{padding:12px}.floor-legend{padding:0 12px 10px;gap:9px}.floor-legend .floor-help{margin:0;flex-basis:100%}.floor-toolbar h2{font-size:17px}.floor-scroll{max-height:420px}.floor-edit-tools{padding:8px}.floor-edit-tools span{flex-basis:100%}.floor-toolbar button{padding:8px 10px;font-size:12px}body.tpv-phone .venue-floor .floor-scene{padding:32px 26px 20px!important;min-height:var(--scene-height)!important;background:linear-gradient(155deg,#f5f1e9,#ecebe4 65%,#e3e8e6)!important}body.tpv-phone .venue-floor .floor-label{display:block!important}body.tpv-phone .venue-floor .floor-map{display:block!important;position:relative!important;width:100%!important;transform:none!important}body.tpv-phone .venue-floor .floor-object{position:absolute!important;transform:translate(-50%,-50%)!important;min-height:120px!important}}
.floor-column:has(>.venue-floor){display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;gap:10px;scrollbar-gutter:stable}
.floor-column>.venue-floor{flex:0 0 auto;min-height:0;margin:0}
.floor-column:has(>.venue-floor)>.zone-tabs,.floor-column:has(>.venue-floor)>.quick-actions{flex:0 0 auto}
.floor-column:has(>.venue-floor)>.catalog{flex:0 0 auto;min-height:260px;max-height:520px}
.venue-floor .floor-scroll{max-height:none;overflow:auto}
.venue-floor .floor-toolbar-actions{flex-wrap:wrap;justify-content:flex-end}
.venue-floor .floor-object.selected{outline:none}
.venue-floor.is-expanded{position:fixed!important;inset:8px!important;z-index:90!important;margin:0!important;display:flex!important;flex-direction:column!important;max-width:none!important;min-height:0!important;box-shadow:0 0 0 100vmax #12213baa}
.venue-floor.is-expanded>.floor-toolbar,.venue-floor.is-expanded>.floor-legend,.venue-floor.is-expanded>.floor-edit-tools,.venue-floor.is-expanded>.floor-status{flex:0 0 auto}
.venue-floor.is-expanded>.floor-scroll{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}
body.tpv-phone[data-mobile-screen="products"] .venue-floor{display:none!important}
/* Keep the spatial layout independent of the legacy mobile table cards. */
body.tpv-phone[data-mobile-screen="tables"]{touch-action:pan-x pan-y}
body.tpv-phone .venue-floor .floor-scroll{touch-action:pan-x pan-y}
body.tpv-phone .venue-floor .floor-object{left:var(--floor-x)!important;top:var(--floor-y)!important;right:auto!important;bottom:auto!important;width:106px!important;height:120px!important;min-width:106px!important;min-height:120px!important;padding:0!important;border-radius:0!important;display:flex!important;gap:0;align-content:normal;box-shadow:none!important}
body.tpv-phone .venue-floor .floor-object b:before,body.tpv-phone .venue-floor .floor-object:after{content:none!important;display:none!important}
body.tpv-phone .venue-floor .floor-object.selected{outline:none}
body.tpv-phone .venue-floor.is-expanded{inset:calc(8px + env(safe-area-inset-top)) 8px calc(78px + env(safe-area-inset-bottom))!important;z-index:501!important}
.workspace-view-switch{display:none}
.ticket-head [data-choose-table]{grid-column:1/-1;min-height:44px;text-align:center}
@media(min-width:768px){
 .floor-column[data-workspace-pane=products]>.venue-floor,
 .floor-column[data-workspace-pane=products]>.zone-tabs,
 .floor-column[data-workspace-pane=tables]>.catalog{display:none!important}
 .workspace-view-switch{display:flex;gap:8px;background:white;padding:6px;border-radius:12px;flex:0 0 auto}
 .workspace-view-switch button{flex:1;padding:11px;border:0;border-radius:9px;background:#f1f5f9;color:#24384c;font:inherit;font-weight:800;cursor:pointer;min-height:44px}
 .workspace-view-switch button[aria-pressed=true]{background:#1769ef;color:white}
}
.venue-floor .floor-counter{width:var(--counter-width,220px)!important;min-width:0!important;height:130px!important;min-height:130px!important;opacity:1!important;cursor:default!important}
.venue-floor .floor-counter svg{width:100%;height:auto;max-height:none;flex:none}
body.tpv-phone .venue-floor .floor-counter{width:var(--counter-width,220px)!important;min-width:0!important;height:130px!important;min-height:130px!important}
.venue-floor .floor-counter .floor-object-label{top:95px;width:auto;min-width:70px}
.venue-floor.is-editing .floor-counter{cursor:grab!important}
.venue-floor .floor-counter.selected .floor-object-label{outline:2px solid #4281cd}
.floor-edit-tools [hidden]{display:none!important}
.floor-edit-tools #floorCounterSize{display:flex;align-items:center;gap:8px}
.floor-edit-tools #floorCounterWidth{width:120px}
@media(min-width:951px){
 .floor-column:has(>.venue-floor){display:grid!important;grid-template-rows:auto auto minmax(300px,36%) minmax(180px,1fr) auto;overflow:hidden!important;gap:8px;height:100%;min-height:0}
 .floor-column:has(>.venue-floor)>.venue-floor{min-height:0;display:flex;flex-direction:column;overflow:hidden}
 .floor-column:has(>.venue-floor)>.venue-floor>.floor-scroll{flex:1;min-height:0;overflow:auto}
 .floor-column:has(>.venue-floor)>.catalog{min-height:0!important;max-height:none!important;height:100%;overflow:hidden}
 .floor-column:has(>.venue-floor)>.catalog>.product-grid{min-height:0;overflow:auto}
 .workspace-view-switch{display:flex;gap:8px;background:white;padding:6px;border-radius:12px}
 .workspace-view-switch button{flex:1;padding:11px;border:0;border-radius:9px;background:#f1f5f9;color:#24384c;font:inherit;font-weight:800;cursor:pointer;min-height:44px}
 .workspace-view-switch button[aria-pressed=true]{background:#1769ef;color:white}
 .floor-column[data-workspace-pane=products]{grid-template-rows:auto minmax(0,1fr) auto!important}
 .floor-column[data-workspace-pane=products]>.venue-floor{display:none!important}
 .floor-column[data-workspace-pane=tables]{grid-template-rows:auto auto minmax(0,1fr) auto!important}
 .floor-column[data-workspace-pane=tables]>.catalog{display:none!important}
 .venue-floor .floor-object b{font-size:15px!important}
 .venue-floor .floor-object strong{font-size:13px!important}
 .venue-floor .floor-object small{font-size:11px!important}
 .floor-object-label{width:124px;padding:7px 4px}
 .ticket-panel .empty{padding:20px 12px;flex:0 0 auto}
}
.floor-legend i.free{background:#a6adb7}
.floor-legend i.commanded{background:#22965b}
.floor-object.commanded .table-surface{fill:#83d4a2;stroke:#258451}
.venue-floor .floor-object.commanded strong{color:#187342!important}
.venue-floor .floor-object.commanded.selected .table-surface{fill:#83d4a2;stroke:#377dd0;stroke-width:2}


/* Mesa screen: use the available workspace without changing persisted coordinates. */
.floor-column[data-workspace-pane="tables"]>.venue-floor{flex:1 1 auto!important;min-height:0!important}
.floor-column[data-workspace-pane="tables"]>.venue-floor>.floor-scroll{flex:1 1 auto!important;min-height:0!important;height:100%!important}
.floor-column[data-workspace-pane="tables"] .floor-scene{min-height:max(var(--scene-height),100%)!important}
.floor-column[data-workspace-pane="tables"] .floor-object-label{background:#fffffff5;box-shadow:0 3px 10px #172a4218}
.floor-column[data-workspace-pane="tables"] .floor-object b{font-size:15px!important}
.floor-column[data-workspace-pane="tables"] .floor-object small{font-size:11px!important}
.floor-column[data-workspace-pane="tables"] .floor-object strong{font-size:12px!important}
.floor-expanded-zones{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center}
.floor-expanded-zones button{min-height:42px;padding:9px 16px;border:1px solid #d8e1ec;border-radius:10px;background:#f1f5f9;color:#24384c;font:inherit;font-weight:850;cursor:pointer}
.floor-expanded-zones button.active{background:#1769ef;color:#fff;border-color:#1769ef}
.floor-expanded-zones button:disabled{opacity:.5;cursor:default}
.venue-floor.is-expanded .floor-toolbar{display:grid;grid-template-columns:auto minmax(240px,1fr) auto;align-items:center}
.venue-floor.is-expanded .floor-scroll{overflow:auto}
.venue-floor.is-expanded .floor-scene{min-height:max(var(--scene-height),calc(100vh - 210px))!important}
.venue-floor .floor-object[aria-label*="Barra"] svg{overflow:visible}
@media(max-width:950px){
 .venue-floor.is-expanded .floor-toolbar{grid-template-columns:1fr auto}
 .venue-floor.is-expanded .floor-expanded-zones{grid-column:1/-1;grid-row:2;justify-content:flex-start}
}
