/* V2 Overrides - Hide Old Site Elements */

/* Aggressively hide old sidebar and search overlays */
.inner-sidebar-wrapper,
.sidebar-overlay,
.search-wrapper,
.search-modal,
#searchModal,
#sidebarMenu,
.offcanvas,
.modal-backdrop,
body > .sidebar,
body > .search-overlay,
[id*="sidebar"]:not(#agent-sidebar):not(#agent-sidebar-toggle):not(#agent-sidebar-close):not(#agent-sidebar-overlay),
[id*="search"]:not(#messengerSearch),
[class*="sidebar"]:not(.v2-mobile-menu):not([class*="agent-sidebar"]):not([class*="messenger-sidebar"]),
[class*="overlay"]:not(.v2-mobile-menu__overlay):not([class*="introjs"]):not(#v2-welcome-overlay):not(#v2-welcome-backdrop) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ensure V2 takes full viewport */
body {
    overflow-x: hidden !important;
}

main {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any transforms or positioning from body that might be from old modals */
body.modal-open,
body.sidebar-open {
    overflow: visible !important;
    padding-right: 0 !important;
}
