/* ================================================================
   HelloServiceDesk — global.css
   ================================================================ */

/* ── Prevent horizontal overflow ── */
:root {
    --page-px: 1rem;
}
@media (min-width: 576px)  { :root { --page-px: 1.5rem; } }
@media (min-width: 992px)  { :root { --page-px: 3rem; } }

html{
    overflow-x: clip;
    max-width: 100vw;
    font-size: 16px;
    scroll-behavior: auto !important;
}

body {
    padding-top: 0;
    overflow-x: clip;
    max-width: 100vw;
    font-size: 16px;
    display: block !important; 
}


main {
    flex: unset;
}
body > main {
    min-height: calc(100vh - 58px);
}

/* ── Dashboard / iframe — no navbar offset ── */
body:has(.pv-sidebar),
body:has(.ad-sidebar),
body.in-iframe {
    padding-top: 0 !important;
}

/* ── Navbar font (legacy — kept for any remaining .navbar usage) ── */
.navbar .nav-link,
.navbar .navbar-nav .nav-link,
.navbar .dropdown-item,
.navbar .navbar-brand {
    font-size: 15px;
}

/* ── Hero section ── */
.hero-section {
    min-height: auto !important;
    height: auto !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    position: relative;
    background: #f8faf9;
    overflow-x: clip;
}

/* ── Hero mobile — widget ABOVE text ── */
@media (max-width: 991px) {
    .hero-right {
        order: 1 !important;
        margin-bottom: 1.5rem;
    }
    .hero-left {
        order: 2 !important;
    }
    .hd-wrap {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ── Dashboard widget card ── */
.hd-card {
    padding: 1.2rem !important;
}

/* ── Chat widget overflow ── */
.hsd-chat-box {
    max-width: calc(100vw - 32px) !important;
}

@media (max-width: 479px) {
    .hsd-chat-btn::before,
    .hsd-chat-btn::after {
        display: none;
    }
}

/* ── Hide reCAPTCHA badge ── */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ── Container max width ── */
.container-fluid {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Force override Bootstrap overflow-x hidden on html/body ── */
html, body {
    overflow-x: clip !important;
}
