/* TP001M1G288A8: Public fixed-night and Enquiries night choice, no plan layout changes */
body.tpG267PublicNightLocked .platformPlanNavigator,
body.tpG267PublicNightLocked .platformPlanHome,
body.tpG147EnquiriesMaster .platformPlanNavigator,
body.tpG147EnquiriesMaster .platformPlanHome {display:none!important}
#tpG267AvailabilityBar[hidden]{display:none!important}
/* G283: the existing night switcher is now inside the Availability/Tables
   drawer and is never an extra row in the plan column. This conserves every
   pixel of the approved plan window at desktop, tablet and phone widths. */
body.tpG147EnquiriesMaster #tpG267AvailabilityBar{display:none!important}
body.tpG147EnquiriesMaster #tpG108PublicApp #tpG267AvailabilityBar:not([hidden]){
 display:flex!important;gap:9px!important;align-items:center!important;
 justify-content:space-between!important;flex:0 0 auto!important;
 width:auto!important;min-height:48px!important;
 margin:0 12px 5px!important;padding:6px 2px 7px!important;
 border:0!important;border-bottom:1px solid var(--border,#d8e0e4)!important;
 border-radius:0!important;box-shadow:none!important;
 background:transparent!important;color:inherit!important;
}
body.tpG147EnquiriesMaster #tpG108PublicApp #tpG267AvailabilityBar label{
 flex:0 1 40%!important;min-width:0!important;
 font-size:12px!important;font-weight:800!important;line-height:1.25!important;
}
body.tpG147EnquiriesMaster #tpG108PublicApp #tpG147Night{
 display:block!important;flex:1 1 60%!important;min-width:0!important;
 min-height:36px!important;height:36px!important;padding:4px 8px!important;
 border-radius:8px!important;border:1px solid var(--border,#abb9b3)!important;
 background:var(--card,#fff)!important;color:var(--text,#17232c)!important;
 font-size:13px!important;font-weight:750!important;
}
@media(max-width:720px){
 body.tpG147EnquiriesMaster #tpG108PublicApp #tpG267AvailabilityBar:not([hidden]){
   margin:0 10px 5px!important;min-height:45px!important;gap:6px!important;
 }
 body.tpG147EnquiriesMaster #tpG108PublicApp #tpG267AvailabilityBar label{font-size:12px!important}
 body.tpG147EnquiriesMaster #tpG108PublicApp #tpG147Night{font-size:16px!important;min-height:38px!important;height:38px!important}
}
/* G283: restore the Public-style transparent control glass on Table Enquiries.
   The shared theme writer inserts #planCard .cardHead{background:menu} after
   CSS parsing. Scope this override to Enquiries ONLY; no Public/Guest/Admin
   appearance or interaction is altered. */
html body.tpG147EnquiriesMaster:not(.touchscreenMode) #planCard > .cardSurface > .cardHead,
html body.tpG147EnquiriesMaster:not(.touchscreenMode) #planCard > .cardSurface > .cardHead :is(.expoPlanitHeaderLayout,.expoPlanitHeaderMain,.expoPlanitHeaderControls,.expoPlanitHeaderLegend,.publicPlanActions,.expoPlanitPublicHeaderBrand){
 background:transparent!important;background-color:transparent!important;
 background-image:none!important;box-shadow:none!important;
}
/* Desktop fallback: a legacy Editor/Enquiries plan may have no navigator and
   therefore cannot qualify for the G95 measured underlay. Keep the plan full
   height beneath the header, rather than reserving an opaque header strip.
   When G95 is already active, leave its measured camera geometry untouched. */
@media (min-width:1000px) and (pointer:fine){
 html body.tpG147EnquiriesMaster:not(.touchscreenMode) #planCard:not([data-tp-g95-header-underlay="1"]) > .cardSurface{
   position:absolute!important;inset:0!important;display:block!important;
   height:100%!important;min-height:0!important;max-height:100%!important;
   overflow:hidden!important;
 }
 html body.tpG147EnquiriesMaster:not(.touchscreenMode) #planCard:not([data-tp-g95-header-underlay="1"]) > .cardSurface > .cardHead{
   position:absolute!important;top:0!important;left:0!important;right:0!important;
   width:100%!important;margin:0!important;border:0!important;
   z-index:85!important;pointer-events:none!important;
 }
 html body.tpG147EnquiriesMaster:not(.touchscreenMode) #planCard:not([data-tp-g95-header-underlay="1"]) > .cardSurface > .cardHead :is(button,a,input,select,[role="button"]){pointer-events:auto!important}
 html body.tpG147EnquiriesMaster:not(.touchscreenMode) #planCard:not([data-tp-g95-header-underlay="1"]) #zoomWrap{
   position:absolute!important;inset:0!important;display:block!important;
   width:100%!important;height:100%!important;min-height:0!important;
   max-height:100%!important;margin:0!important;padding:0!important;
 }
}
/* In single-plan legacy Enquiries the G95 measured underlay is not always
   activated. On phone-sized canvases, only in that case, use the same
   full-bleed header/plan stacking as the accepted Public compact template.
   If G95 *is* active its camera sizing, rotation and gestures retain control. */
@media (max-width:720px) and (orientation:portrait),
       (orientation:landscape) and (pointer:coarse) and (max-height:620px){
 html body.tpG147EnquiriesMaster:not(.touchscreenMode) #planCard:not([data-tp-g95-header-underlay="1"]) > .cardSurface{
   position:absolute!important;inset:0!important;display:block!important;
   height:100%!important;min-height:0!important;max-height:100%!important;
   overflow:hidden!important;
 }
 html body.tpG147EnquiriesMaster:not(.touchscreenMode) #planCard:not([data-tp-g95-header-underlay="1"]) > .cardSurface > .cardHead{
   position:absolute!important;top:0!important;left:0!important;right:0!important;
   width:100%!important;margin:0!important;border:0!important;
   z-index:85!important;pointer-events:none!important;
 }
 html body.tpG147EnquiriesMaster:not(.touchscreenMode) #planCard:not([data-tp-g95-header-underlay="1"]) > .cardSurface > .cardHead :is(button,a,input,select,label,[role="button"]){pointer-events:auto!important}
 html body.tpG147EnquiriesMaster:not(.touchscreenMode) #planCard:not([data-tp-g95-header-underlay="1"]) #zoomWrap{
   position:absolute!important;inset:0!important;display:block!important;
   width:100%!important;height:100%!important;min-height:0!important;
   max-height:100%!important;margin:0!important;padding:0!important;
 }
}
