.main-content {
    min-height: 100vh;
    overflow-y: auto;
}
/* Prevent table containers from clipping dropdown menus and allow scrolling inside long menus */
.table-responsive {
    overflow-x: auto;
    overflow-y: visible !important;
}
/* Let dropdowns open fully without internal scrollbars */
.table-responsive .dropdown-menu,
.dropdown-menu.show {
    max-height: none;
    overflow: visible;
}
.table-responsive .dropdown-menu.show {
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
    transform: translate3d(0, 0, 0) !important;
}
/* Dim and disable background while onboarding modal is open */
.onboard-modal-open .sidenav,
.onboard-modal-open .navbar,
.onboard-modal-open .main-content,
.onboard-modal-open .header {
    pointer-events: none;
    filter: blur(1px);
}
/* Hide sidebar (Argon uses .sidenav and .navbar-vertical) so the wizard iframe can use full width */
.onboard-modal-open .sidenav,
.onboard-modal-open .navbar-vertical {
    display: none !important;
}
.onboard-modal-open .main-content {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.onboard-modal-open {
    overflow: hidden;
}
.onboard-modal-open .modal-backdrop {
    background-color: #0b1624;
    opacity: 0.85;
}
/* Ensure modal backdrops are dimmed even if class is missing */
.modal-backdrop.show {
    background-color: #0b1624;
    opacity: 0.95;
}
/* When directly on the onboard page (iframe content), hide nav/side and expand */
.onboard-page .sidenav,
.onboard-page .navbar-vertical,
.onboard-page .navbar {
    display: none !important;
}
.onboard-page .main-content {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.onboard-page .header.bg-htp-head {
    display: none;
}

/* Fullscreen modal for onboarding */
#onboardModal .modal-dialog {
    max-width: 95vw;
    width: 95vw;
    max-height: 95vh;
    margin: 2vh auto;
}
#onboardModal .modal-content {
    width: 100%;
    height: auto;
    max-height: 95vh;
    border-radius: 12px;
    border: none;
}
#onboardModal .modal-body {
    padding: 0;
    max-height: calc(95vh - 56px);
    overflow: auto;
}
#onboardModal iframe {
    width: 100%;
    min-height: 80vh;
    border: 0;
}