﻿/* =========================================
            RH MODERN THEME Start 
   ========================================= */

body.rh-modern #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    padding: 0 30px;
    box-shadow: none !important;
    transition: border-color .2s ease;
}

body.rh-modern.header-scrolled #header {
    border-bottom: 1px solid #e5e5e5;
}

body.rh-modern #siteNameText {
    margin-left: 10px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

body.rh-modern #main {
    margin-top: 64px !important;
    margin-bottom: 0 !important;
}

body.rh-modern #header .pull-right {
    margin-left: auto;
}

/* Header right alignment fix */
body.rh-modern #header .header-dropdown-list {
    display: flex;
    align-items: center;
    margin: 0 !important;
}

    body.rh-modern #header .header-dropdown-list > li {
        display: flex;
        align-items: center;
    }

/* Remove bullets + underline */
body.rh-modern #left-panel ul,
body.rh-modern #left-panel ul li {
    list-style: none !important;
}

    body.rh-modern #left-panel ul li a {
        text-decoration: none !important;
    }

body.rh-modern .mega-container ul,
body.rh-modern .mega-container ul li {
    list-style: none !important;
    margin: 0;
    padding-left: 0 !important;
}

body.rh-modern .mega-container a {
    text-decoration: none !important;
}

/* Hide fullscreen */
body.rh-modern #fullscreen {
    display: none !important;
}

/* Hide Mobile Nav */
body.rh-modern #rh-modern-mobile-nav {
    display: none;
}

/* Logo */
body.rh-modern #header .logo-group {
    height: 64px;
    display: flex;
    align-items: center;
}

    body.rh-modern #header .logo-group img.site-logo {
        height: 32px !important;
        width: auto !important;
        max-height: 32px !important;
    }

body.rh-modern #header .logo-group {
    width: auto !important;
    max-width: 220px;
}

body.rh-modern #logo {
    width: auto !important;
}

    body.rh-modern #logo img {
        max-width: 220px;
        height: auto;
    }

body.rh-modern #siteNameText {
    margin-left: 12px !important;
}

body.rh-modern #header .logo-group {
    flex-shrink: 0;
}

body.rh-modern #siteNameText {
    white-space: nowrap;
}


/* --------------------- Desktop Top Nav ------------------------ */

@media (min-width:1026px) {

    body.rh-modern.menu-on-top #left-panel {
        transform: translateX(-100%) !important;
        visibility: hidden !important;
    }

    body.rh-modern.menu-on-top #main {
        margin-left: 0 !important;
    }

    body.rh-modern.menu-on-top #Nav1 {
        display: block !important;
    }

    /* Profile Avatar */
    body.rh-modern #mobile-profile-img img {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        object-fit: cover;
        border: 2px solid #eaeaea;
        transition: all .2s ease;
    }

        body.rh-modern #mobile-profile-img img:hover {
            transform: scale(1.05);
            border-color: #000;
        }

    /* Avatar circle fix */
    body.rh-modern #mobile-profile-img img {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50%;
        object-fit: cover;
        object-position: center;
        padding: 0;
        margin: 0;
        display: block;
    }

    /* Dropdown Profile */
    body.rh-modern .dropdown-menu {
        border-radius: 14px !important;
        border: 1px solid #eee !important;
        box-shadow: 0 15px 35px rgba(0,0,0,.08) !important;
        padding: 8px !important;
        min-width: 200px;
        opacity: 0;
        transform: translateY(8px);
        transition: all .2s ease;
        display: block;
        visibility: hidden;
    }

    body.rh-modern .open > .dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    body.rh-modern .dropdown-menu li a {
        border-radius: 8px;
        padding: 8px 12px !important;
        transition: all .2s ease;
        font-size: 13px;
    }

        body.rh-modern .dropdown-menu li a:hover {
            background: #f5f5f5 !important;
        }

    /* Top nav */
    body.rh-modern #Nav1 nav > ul.lh-menu {
        display: flex !important;
        align-items: center;
        gap: 14px;
        margin: 0 12px;
        padding: 0;
        height: 64px;
    }

        body.rh-modern #Nav1 nav > ul.lh-menu > li {
            position: relative;
            float: none !important;
        }

            body.rh-modern #Nav1 nav > ul.lh-menu > li > a {
                display: flex !important;
                align-items: center;
                justify-content: center;
                gap: 8px;
                padding: 6px 16px !important;
                border-radius: 999px;
                font-size: 14px;
                font-weight: 500 !important;
                color: #444 !important;
                background: transparent !important;
                border: 1px solid transparent;
                transition: all .25s cubic-bezier(.4,0,.2,1);
                white-space: nowrap;
            }

                body.rh-modern #Nav1 nav > ul.lh-menu > li > a:hover {
                    background: #f2f2f2 !important;
                    border: 1px solid #e5e5e5;
                    color: #000 !important;
                }

            body.rh-modern #Nav1 nav > ul.lh-menu > li:hover > a {
                background: #f2f2f2 !important;
                border: 1px solid #e5e5e5;
                color: #000 !important;
            }

            body.rh-modern #Nav1 nav > ul.lh-menu > li.mega-open > a {
                background: #e8e8e8 !important;
                border: 1px solid #e5e5e5 !important;
                color: #000 !important;
            }

            /* hide original dropdown */
            body.rh-modern #Nav1 nav > ul.lh-menu > li > ul {
                display: none !important;
            }

    /* Mega container */
    body.rh-modern .mega-container {
        position: absolute;
        top: 64px;
        left: auto;
        transform: translateY(10px);
        max-width: 95%;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 25px 60px rgba(0,0,0,0.12);
        padding: 40px 50px;
        display: grid !important;
        gap: 40px;
        min-height: 380px;
        max-height: 75vh;
        overflow-y: auto;
        overflow-x: hidden;
        align-items: start;
        opacity: 0;
        visibility: hidden;
        transition: all .25s cubic-bezier(.4,0,.2,1);
        z-index: 999;
    }

        body.rh-modern .mega-container ul,
        body.rh-modern .mega-container ul li,
        body.rh-modern .mega-container li {
            list-style: none !important;
            margin-left: 0 !important;
            padding-left: 0 !important;
        }

        body.rh-modern .mega-container.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

    body.rh-modern .mega-col {
        display: flex;
        flex-direction: column;
    }

    /* slide animation */
    body.rh-modern .mega-col {
        animation: slideIn .25s ease;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(15px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    body.rh-modern .mega-col {
        gap: 6px;
    }

        body.rh-modern .mega-col ul:empty {
            display: none;
        }

    body.rh-modern .mega-title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
        font-size: 14px;
        padding: 6px 0;
        border-radius: 8px;
        margin: 0;
        color: #000;
        cursor: pointer;
        transition: all .2s ease;
    }

        body.rh-modern .mega-title::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 2px;
            background: #ddd;
            display: inline-block;
        }

        body.rh-modern .mega-title:hover {
            background: #f5f5f5;
            padding-left: 14px;
            color: #000;
        }

    body.rh-modern .mega-col ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        body.rh-modern .mega-col ul li a {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            padding: 6px 0;
            color: #444 !important;
            transition: all .2s ease;
        }

            body.rh-modern .mega-col ul li a::before,
            body.rh-modern .mega-title::before {
                display: none !important;
                content: none !important;
            }

            body.rh-modern .mega-col ul li a:hover {
                background: #f5f5f5;
                border-radius: 6px;
                padding-left: 8px;
                color: #000 !important;
            }

    /* Remove hover from level 2 if it has level 3 */
    body.rh-modern .mega-col:has(ul) > .mega-title:hover {
        background: transparent !important;
        padding-left: 0 !important;
        color: #000 !important;
    }

    /* Prevent invisible dropdown from blocking page */
    body.rh-modern .mega-container {
        pointer-events: none;
    }

        body.rh-modern .mega-container.active {
            pointer-events: auto;
        }

    /* SEARCH */
    body.rh-modern .header-search {
        position: relative;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        z-index: 10000;
    }

        body.rh-modern .header-search #SearchBox {
            position: absolute;
            right: 40px;
            width: 0;
            opacity: 0;
            padding: 6px 0 !important;
            border: none !important;
            transition: all .3s ease;
            white-space: nowrap;
        }

        body.rh-modern .header-search:hover #SearchBox {
            width: min(220px, 25vw);
            opacity: 1;
            padding: 6px 12px !important;
            border: 1px solid #ddd !important;
            border-radius: 20px;
            background: #fff;
        }

    body.rh-modern #Nav1 nav > ul.lh-menu {
        flex-wrap: nowrap !important;
    }

    /* LEVEL 4+ SIDE DROPDOWN  */

    body.rh-modern .mega-container ul li {
        position: relative;
    }

        body.rh-modern .mega-container ul li > ul {
            position: absolute;
            left: calc(100% + 3px);
            top: 0;
            min-width: 220px;
            min-height: 220px;
            background: #fff;
            padding: 12px;
            border-radius: 10px;
            box-shadow: 0 15px 35px rgba(0,0,0,0.08);
            opacity: 0;
            visibility: hidden;
            transform: translateX(10px);
            transition: all .2s ease;
            z-index: 10;
        }

        body.rh-modern .mega-container ul li:hover > ul {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }

        /* Hidden by default */
        body.rh-modern .mega-container ul li > ul {
            opacity: 0;
            visibility: hidden;
            transform: translateX(10px);
            transition: all .2s ease;
        }

        body.rh-modern .mega-container ul li.open > ul {
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
        }

        body.rh-modern .mega-container ul li > ul {
            padding: 8px 0 !important;
        }

            body.rh-modern .mega-container ul li > ul li > a {
                display: flex;
                align-items: center;
                gap: 10px;
                font-size: 14px;
                padding: 6px 12px;
                color: #444 !important;
                transition: all .2s ease;
            }

                body.rh-modern .mega-container ul li > ul li > a:hover {
                    background: #f5f5f5;
                    border-radius: 6px;
                    color: #000 !important;
                }

    /* REMOVE every SmartAdmin generated arrow on top menu */
    body.rh-modern #Nav1 nav > ul.lh-menu > li > a .collapse-sign,
    body.rh-modern #Nav1 nav > ul.lh-menu > li > a b,
    body.rh-modern #Nav1 nav > ul.lh-menu > li > a em,
    body.rh-modern #Nav1 nav > ul.lh-menu > li > a span.collapse-sign {
        display: none !important;
    }
    /* Remove SmartAdmin default triangle */
    body.rh-modern #Nav1 nav > ul.lh-menu > li > a:after {
        display: none !important;
        content: none !important;
    }
    /* SmartAdmin arrows on state change fix */
    body.rh-modern.menu-on-top #Nav1 nav > ul.lh-menu > li > a:after,
    body.rh-modern.menu-on-top #Nav1 nav > ul.lh-menu > li > a:before {
        display: none !important;
        content: none !important;
    }

    /* Chevron for ANY level that has submenu */
    body.rh-modern .mega-container ul li > a {
        display: flex;
        align-items: center;
    }

    body.rh-modern .mega-container ul li.has-children > a::after {
        content: "";
        margin-left: auto;
        width: 7px;
        height: 7px;
        border-right: 2px solid #666;
        border-top: 2px solid #666;
        transform: rotate(45deg); /* > */
        transition: transform .2s ease;
    }

    body.rh-modern .mega-container ul li.has-children:hover > a::after,
    body.rh-modern .mega-container ul li.has-children.open > a::after {
        transform: rotate(-135deg);
    }

    /*body.rh-modern #Nav1 nav ul ul {
        display: none !important;
    }*/

    /* text in dropdown */
    body.rh-modern .mega-description {
        grid-column: span 5;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 60px;
    }

        body.rh-modern .mega-description h3 {
            width: 100%;
            text-align: left;
            font-size: 22px;
            font-weight: 600;
            margin-bottom: 18px;
        }

        body.rh-modern .mega-description p {
            width: 100%;
            text-align: left;
            font-size: 15px;
            color: #666;
            line-height: 1.8;
        }
}

/* --------------------- Desktop Side Nav ------------------------ */

@media (min-width:1026px){
    body.rh-modern:not(.menu-on-top) #Nav1 {
        display: none !important;
    }

    body.rh-modern:not(.menu-on-top) .mega-container {
        display: none !important;
    }

    body.rh-modern:not(.menu-on-top) #header {
        background: #fff !important;
        border-bottom: 1px solid #eaeaea !important;
        display: flex;
        align-items: center;
        padding: 0 16px;
    }

        body.rh-modern:not(.menu-on-top) #header .pull-right {
            margin-left: auto !important;
            display: flex !important;
            align-items: center;
            gap: 14px;
        }

    /* same order as desktop */
    body.rh-modern:not(.menu-on-top) #header {
        display: flex;
        align-items: center;
    }

        body.rh-modern:not(.menu-on-top) #header .logo-group {
            order: 0;
        }

        body.rh-modern:not(.menu-on-top) #header .pull-right {
            margin-left: auto !important;
            display: flex !important;
            align-items: center;
            gap: 14px;
        }

    body.rh-modern:not(.menu-on-top) .header-search {
        order: 1;
    }

    body.rh-modern:not(.menu-on-top) #hide-menu {
        order: 2;
    }

    body.rh-modern:not(.menu-on-top) #mobile-profile-img {
        order: 3;
    }

    /* Remove SmartAdmin old mobile icons */
    body.rh-modern:not(.menu-on-top) #search-mobile,
    body.rh-modern:not(.menu-on-top) #fullscreen,
    body.rh-modern:not(.menu-on-top) #logout,
    body.rh-modern:not(.menu-on-top) .btn-header:not(#hide-menu) {
        display: none !important;
    }
    /* Hide SmartAdmin helper icons */
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a .collapse-sign,
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a b,
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a em {
        display: none !important;
    }

    /* Same modern hamburger */
    body.rh-modern:not(.menu-on-top) #hide-menu {
        background: transparent !important;
        border: none !important;
    }

        body.rh-modern:not(.menu-on-top) #hide-menu > span > a {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            padding: 0 !important;
            cursor: pointer !important;
        }

        body.rh-modern:not(.menu-on-top) #hide-menu i {
            font-size: 18px;
            color: #000 !important;
            cursor: pointer !important;
        }

    body.rh-modern:not(.menu-on-top).hidden-menu #main {
        margin-left: 0 !important;
    }

    body.rh-modern:not(.menu-on-top):not(.hidden-menu) #main {
        margin-left: 280px !important;
    }

    /* same avatar as desktop */
    body.rh-modern:not(.menu-on-top) #mobile-profile-img img {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        border: 2px solid #eaeaea !important;
    }

    /* force vertical profile dropdown */
    body.rh-modern:not(.menu-on-top) .dropdown-menu {
        border-radius: 14px !important;
        border: 1px solid #eee !important;
        box-shadow: 0 15px 35px rgba(0,0,0,.08) !important;
        padding: 8px !important;
        min-width: 200px;
        opacity: 0;
        transform: translateY(8px);
        transition: all .2s ease;
        display: block;
        visibility: hidden;
    }

    body.rh-modern:not(.menu-on-top) .open > .dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    body.rh-modern:not(.menu-on-top) #mobile-profile-img .dropdown-menu {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        min-width: 220px !important;
        display: block !important;
    }

        body.rh-modern:not(.menu-on-top) #mobile-profile-img .dropdown-menu li {
            display: block !important;
            width: 100% !important;
            float: none !important;
        }

            body.rh-modern:not(.menu-on-top) #mobile-profile-img .dropdown-menu li a {
                display: flex !important;
                align-items: center;
                gap: 10px;
                width: 100%;
            }

    /* search like desktop */
    body.rh-modern:not(.menu-on-top) .header-search {
        position: relative;
        width: 36px;
        height: 100%;
        display: flex;
        align-items: center;
    }

        body.rh-modern:not(.menu-on-top) .header-search i {
            font-size: 16px;
            line-height: normal;
        }

        body.rh-modern:not(.menu-on-top) .header-search #SearchBox {
            position: absolute;
            right: 0;
            height: 34px;
            margin: auto 0;
            width: 0;
            opacity: 0;
            transition: all .3s ease;
            border-radius: 20px;
        }

        body.rh-modern:not(.menu-on-top) .header-search.active #SearchBox {
            width: 220px;
            opacity: 1;
            padding: 6px 12px !important;
            border: 1px solid #ddd !important;
            background: #fff;
            right: 40px;
        }

        body.rh-modern:not(.menu-on-top) .header-search:hover #SearchBox {
            width: 220px;
            opacity: 1;
            padding: 6px 12px !important;
            border: 1px solid #ddd !important;
            background: #fff;
            right: 45px;
        }

    /* Hide old SmartAdmin nav */
    body.rh-modern:not(.menu-on-top) #left-panel {
        display: none !important;
    }

    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav {
        display: block;
    }

        /* forc submenus in mobile to be normal */
        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav ul ul {
            position: static !important;
            float: none !important;
            width: 100% !important;
            min-width: 0 !important;
            box-shadow: none !important;
            border: none !important;
            background: transparent !important;
        }

    /* Slide container */
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 280px;
        height: calc(100vh - 64px);
        background: #ffffff;
        transition: transform .25s ease;
        z-index: 999;
    }

    /* default visible state */
    body.rh-modern:not(.menu-on-top):not(.hidden-menu) #rh-modern-mobile-nav {
        transform: translateX(0);
    }

    /* collapsed state */
    body.rh-modern:not(.menu-on-top).hidden-menu #rh-modern-mobile-nav {
        transform: translateX(-280px);
    }

    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.rh-modern:not(.menu-on-top) .rh-mobile-inner {
        padding: 20px;
    }

    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li {
        border-bottom: 1px solid #f0f0f0;
    }

        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 0;
            font-size: 16px;
            font-weight: 700 !important;
            color: #111;
            text-decoration: none;
        }

        /* Chevron */
        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li.has-children > a::after {
            content: "";
            margin-left: auto;
            width: 8px;
            height: 8px;
            margin-right: 6px;
            border-right: 2px solid #666;
            border-bottom: 2px solid #666;
            transform: rotate(45deg);
            transition: transform .25s ease;
        }

        /* Rotate up */
        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li.open > a::after {
            transform: rotate(-135deg);
        }

        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li.has-children > a::after {
            display: inline-block !important;
            content: "" !important;
        }

    /* Show submenu */
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav ul ul {
        display: none !important;
    }

    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li.open > ul {
        display: block !important;
    }

    /* Level 2 */
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li ul li > a {
        font-size: 14px;
        font-weight: 600 !important;
        padding: 12px 0 12px 20px;
        color: #555;
    }

    /* Level 3 */
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li ul li ul li > a {
        font-weight: 400 !important;
        padding-left: 35px;
        font-size: 13px;
        color: #777;
    }

    /* Sitemap Name Wrapping into 2 lines fix */
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Tap feedback */
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a {
        transition: background .15s ease, color .15s ease;
    }

        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a:active {
            background: #eeeeee !important;
            color: #111 !important;
        }

        /* Remove ALL SmartAdmin active styles */
        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a,
        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a:visited,
        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a:focus,
        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a:hover,
        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li.active > a,
        body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li.open > a {
            background: transparent !important;
            color: #111 !important;
            box-shadow: none !important;
        }

            /* Soft grey tap */
            body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav li > a:active {
                background: #f1f1f1 !important;
                color: #111 !important;
            }

    /* remove red tap flash completely */
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav a {
        -webkit-tap-highlight-color: transparent;
    }

    /* remove vertical lines */
    body.rh-modern #rh-modern-mobile-nav ul,
    body.rh-modern #rh-modern-mobile-nav li {
        border-left: none !important;
    }

        body.rh-modern #rh-modern-mobile-nav ul:before,
        body.rh-modern #rh-modern-mobile-nav ul:after {
            display: none !important;
        }

    body.rh-modern #rh-modern-mobile-nav {
        overflow-x: hidden !important;
    }

        body.rh-modern #rh-modern-mobile-nav ul {
            width: 100%;
            box-sizing: border-box;
        }

        body.rh-modern #rh-modern-mobile-nav li > a {
            width: 100%;
            box-sizing: border-box;
        }
}

/* -------- Desktop Side Nav Font Fix -------- */
@media (min-width:1026px) {

    /* level 1 */
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav > ul > li > a {
        font-weight: 700 !important;
    }

    /* level 2*/ 
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav ul ul li > a {
        font-weight: 600 !important;
    }

    /* level 3 */
    body.rh-modern:not(.menu-on-top) #rh-modern-mobile-nav ul ul ul li > a {
        font-weight: 400 !important;
    }
}

/* ------------------- MOBILE ---------------- */
@media (max-width:1025px) {

    body.rh-modern #Nav1 {
        display: none !important;
    }

    body.rh-modern .mega-container {
        display: none !important;
    }

    body.rh-modern #header {
        background: #fff !important;
        border-bottom: 1px solid #eaeaea !important;
        display: flex;
        align-items: center;
        padding: 0 16px;
    }

        body.rh-modern #header .pull-right {
            margin-left: auto !important;
            display: flex !important;
            align-items: center;
            gap: 14px;
        }

    /* same order as desktop */
    body.rh-modern #header {
        display: flex;
        align-items: center;
    }

        body.rh-modern #header .logo-group {
            order: 0;
        }

        body.rh-modern #header .pull-right {
            margin-left: auto !important;
            display: flex !important;
            align-items: center;
            gap: 14px;
        }

    body.rh-modern .header-search {
        order: 1;
    }

    body.rh-modern #hide-menu {
        order: 2;
    }

    body.rh-modern #mobile-profile-img {
        order: 3;
    }

    /* Remove SmartAdmin old mobile icons */
    body.rh-modern #search-mobile,
    body.rh-modern #fullscreen,
    body.rh-modern #logout,
    body.rh-modern .btn-header:not(#hide-menu) {
        display: none !important;
    }

    /* Same modern hamburger */
    body.rh-modern #hide-menu {
        background: transparent !important;
        border: none !important;
    }

        body.rh-modern #hide-menu > span > a {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            padding: 0 !important;
        }

        body.rh-modern #hide-menu i {
            font-size: 18px;
            color: #000 !important;
        }

    /* same avatar as desktop */
    body.rh-modern #mobile-profile-img img {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        border: 2px solid #eaeaea !important;
    }

    /* Site Logo Left Side on Mobile */
    body.rh-modern #logo,
    body.rh-modern #header .logo-group {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

        body.rh-modern #logo img,
        body.rh-modern .logo-group img.site-logo {
            display: block !important;
            height: 36px !important;
            max-height: 36px !important;
            width: auto !important;
        }

    /* force vertical profile dropdown */
    body.rh-modern .dropdown-menu {
        border-radius: 14px !important;
        border: 1px solid #eee !important;
        box-shadow: 0 15px 35px rgba(0,0,0,.08) !important;
        padding: 8px !important;
        min-width: 200px;
        opacity: 0;
        transform: translateY(8px);
        transition: all .2s ease;
        display: block;
        visibility: hidden;
    }

    body.rh-modern .open > .dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    body.rh-modern #mobile-profile-img .dropdown-menu {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        min-width: 220px !important;
        display: block !important;
    }

        body.rh-modern #mobile-profile-img .dropdown-menu li {
            display: block !important;
            width: 100% !important;
            float: none !important;
        }

            body.rh-modern #mobile-profile-img .dropdown-menu li a {
                display: flex !important;
                align-items: center;
                gap: 10px;
                width: 100%;
            }

    /* search like desktop */
    body.rh-modern .header-search {
        position: relative;
        width: 36px;
        height: 100%;
        display: flex;
        align-items: center;
    }

        body.rh-modern .header-search i {
            font-size: 16px;
            line-height: normal;
        }

        body.rh-modern .header-search #SearchBox {
            position: absolute;
            right: 0;
            height: 34px;
            margin: auto 0;
            width: 0;
            opacity: 0;
            transition: all .3s ease;
            border-radius: 20px;
        }

        body.rh-modern .header-search.active #SearchBox {
            width: 220px;
            opacity: 1;
            padding: 6px 12px !important;
            border: 1px solid #ddd !important;
            background: #fff;
            right: 40px;
        }

    /* Hide old SmartAdmin nav */
    body.rh-modern #left-panel {
        display: none !important;
    }

    body.rh-modern #rh-modern-mobile-nav {
        display: block;
    }

        /* forc submenus in mobile to be normal */
        body.rh-modern #rh-modern-mobile-nav ul ul {
            position: static !important;
            float: none !important;
            width: 100% !important;
            min-width: 0 !important;
            box-shadow: none !important;
            border: none !important;
            background: transparent !important;
        }

    /* Slide container */
    body.rh-modern #rh-modern-mobile-nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100vh - 64px);
        background: #ffffff;
        transform: translateX(-100%);
        transition: transform .3s ease;
        z-index: 999;
        overflow-y: auto;
    }

        body.rh-modern #rh-modern-mobile-nav.open {
            transform: translateX(0);
        }

    body.rh-modern #rh-modern-mobile-nav {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.rh-modern .rh-mobile-inner {
        padding: 20px;
    }

    body.rh-modern #rh-modern-mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    body.rh-modern #rh-modern-mobile-nav li {
        border-bottom: 1px solid #f0f0f0;
    }

        body.rh-modern #rh-modern-mobile-nav li > a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px 0;
            font-size: 16px;
            font-weight: 700 !important;
            color: #111;
            text-decoration: none;
        }

        /* Chevron */
        body.rh-modern #rh-modern-mobile-nav li.has-children > a::after {
            content: "";
            margin-left: auto;
            width: 8px;
            height: 8px;
            border-right: 2px solid #666;
            border-bottom: 2px solid #666;
            transform: rotate(45deg);
            transition: transform .25s ease;
        }

        /* Rotate up */
        body.rh-modern #rh-modern-mobile-nav li.open > a::after {
            transform: rotate(-135deg);
        }

        body.rh-modern #rh-modern-mobile-nav li.has-children > a::after {
            display: inline-block !important;
            content: "" !important;
        }

    /* Show submenu */
    body.rh-modern #rh-modern-mobile-nav ul ul {
        display: none !important;
    }

    body.rh-modern #rh-modern-mobile-nav li.open > ul {
        display: block !important;
    }

    /* Level 2 */
    body.rh-modern #rh-modern-mobile-nav li ul li > a {
        font-size: 14px;
        font-weight: 600 !important;
        padding: 12px 0 12px 20px;
        color: #555;
    }

    /* Level 3 */
    body.rh-modern #rh-modern-mobile-nav li ul li ul li > a {
        font-weight: 400 !important;
        padding-left: 35px;
        font-size: 13px;
        color: #777;
    }

    /* Sitemap Name Wrapping into 2 lines fix */
    body.rh-modern #rh-modern-mobile-nav li > a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Tap feedback */
    body.rh-modern #rh-modern-mobile-nav li > a {
        transition: background .15s ease, color .15s ease;
    }

        body.rh-modern #rh-modern-mobile-nav li > a:active {
            background: #eeeeee !important;
            color: #111 !important;
        }

        /* Remove ALL SmartAdmin active styles */
        body.rh-modern #rh-modern-mobile-nav li > a,
        body.rh-modern #rh-modern-mobile-nav li > a:visited,
        body.rh-modern #rh-modern-mobile-nav li > a:focus,
        body.rh-modern #rh-modern-mobile-nav li > a:hover,
        body.rh-modern #rh-modern-mobile-nav li.active > a,
        body.rh-modern #rh-modern-mobile-nav li.open > a {
            background: transparent !important;
            color: #111 !important;
            box-shadow: none !important;
        }

            /* Soft grey tap */
            body.rh-modern #rh-modern-mobile-nav li > a:active {
                background: #f1f1f1 !important;
                color: #111 !important;
            }

    /* remove red tap flash completely */
    body.rh-modern #rh-modern-mobile-nav a {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ------------ RH Modern Footer -------------- */

body.rh-modern .page-footer a,
body.rh-modern .page-footer .btn {
    transition: all .18s ease;
}

/* inherit footer color */
body.rh-modern .page-footer {
    color: inherit;
}


    body.rh-modern .page-footer a,
    body.rh-modern .page-footer .btn,
    body.rh-modern .page-footer i,
    body.rh-modern .page-footer svg,
    body.rh-modern .page-footer svg path {
        color: currentColor !important;
        fill: currentColor !important;
    }

    /*body.rh-modern .page-footer .social-icons .btn {
        border: 1px solid currentColor !important;
    }*/

    body.rh-modern .page-footer .txt-color-white {
        color: inherit !important;
    }

@media (min-width:1026px) {

    body.rh-modern .page-footer {
        height: 64px !important;
        display: flex;
        align-items: center;
        padding: 0 30px !important;
        margin-top: 60px !important;
        border: 0 !important;
        border-top: 1px solid #e5e5e5 !important;
        box-shadow: none !important;
    }

        body.rh-modern .page-footer .row {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 0 !important;
        }

        body.rh-modern .page-footer .col-xs-6 {
            display: flex;
            align-items: center;
            padding: 0 !important;
        }

    body.rh-modern .footer-links {
        display: flex;
        gap: 18px;
        margin: 0 !important;
    }

        body.rh-modern .footer-links a {
            font-size: 13px;
            display: inline-block;
            text-decoration: none !important;
        }

    body.rh-modern .social-icons {
        margin-left: auto;
        display: flex;
        justify-content: flex-end;
    }

        body.rh-modern .social-icons ul {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0;
        }

        body.rh-modern .social-icons .btn {
            width: 32px;
            height: 32px;
            padding: 6px;
            border-radius: 50%;
            background: transparent !important;
        }
}

@media (hover: hover) and (pointer: fine) {
    body.rh-modern .footer-links a:hover {
        transform: translateY(-2px);
    }

    body.rh-modern .social-icons .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 18px rgba(0,0,0,.12);
    }
}

@media (max-width:1025px) {

    body.rh-modern .page-footer {
        min-height: 64px !important;
        padding: 0 20px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-top: 1px solid #e5e5e5 !important;
    }

        body.rh-modern .page-footer .row {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin: 0 !important;
        }

    body.rh-modern .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
        margin: 6px 0 !important;
    }

        body.rh-modern .footer-links a {
            font-size: 13px;
            text-decoration: none !important;
        }

    body.rh-modern .social-icons {
        display: flex;
        justify-content: center;
        width: 100%;
    }

        body.rh-modern .social-icons ul {
            display: flex;
            gap: 10px;
            margin: 0;
        }

        body.rh-modern .social-icons .btn:active {
            background: currentColor !important;
            border-color: currentColor !important;
        }

        body.rh-modern .social-icons .btn {
            width: 32px;
            height: 32px;
            padding: 6px;
            border-radius: 50%;
            background: transparent !important;
        }
}

/* ---------- RH MODERN (Login / Register / Reset Password) Fix ---------- */

body.rh-modern .forms-container {
    background: #ffffff !important;
}

body.rh-modern .fuze-login,
body.rh-modern .fuze-forgotPwd,
body.rh-modern .fuze-changePwd,
body.rh-modern .fuze-regisgter {
    color: #000 !important;
}

body.rh-modern .smart-form .label,
body.rh-modern .smart-form header,
body.rh-modern .smart-form h5,
body.rh-modern .smart-form footer a {
    color: #000 !important;
}

body.rh-modern .smart-form .input input {
    color: #000 !important;
}

/* new font style sitename */
/*body.rh-modern #siteNameText,
body.rh-modern .logo-container span,
body.rh-modern .logo-container label {
    font-family: 'Satisfy', cursive !important;
    font-weight: 600;
    letter-spacing: 0.5px;
}*/

/* RH Modern Auth Pages Text Fix */
body.rh-modern .login-container,
body.rh-modern .login-container small,
body.rh-modern .login-container .note,
body.rh-modern .login-container .note a,
body.rh-modern .login-container label,
body.rh-modern .login-container span {
    color: #000 !important;
}

    body.rh-modern .login-container .checkbox,
    body.rh-modern .login-container .checkbox i {
        color: #000 !important;
    }

body.rh-modern .terms-text,
body.rh-modern .terms-text span,
body.rh-modern .txt-color-white,
body.rh-modern .checkbox,
body.rh-modern .checkbox + label,
body.rh-modern .checkbox label {
    color: #000 !important;
}

/* RH Modern Auth Pages Buttons */
body.rh-modern .login-container .btn,
body.rh-modern .login-container .btn-primary {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

    body.rh-modern .login-container .btn:hover {
        background: #222 !important;
        border-color: #222 !important;
    }

/* RH Modern Auth Pages Input Icon Fix */
body.rh-modern .smart-form .icon-append,
body.rh-modern .smart-form .input i,
body.rh-modern .smart-form .fa {
    color: #000 !important;
}

/* RH Modern Auth Pages Site Logo */
body.rh-modern .login-container .logo-container img {
    height: 64px !important;
    width: auto !important;
    max-width: 220px !important;
}

/* RH Modern Auth Pages Logo Align Fix */
body.rh-modern .login-container .logo-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px;
    height: 80px;
}

    body.rh-modern .login-container .logo-container img {
        height: 64px !important;
        width: auto !important;
        max-width: 220px !important;
    }

body.rh-modern .login-container #lblPageHeader {
    display: flex !important;
    align-items: center !important;
/*    font-family: 'Satisfy', cursive !important;*/
    font-size: 26px !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* RH Modern Auth Pages Link Fix */
body.rh-modern .login-container .note a.btn-link,
body.rh-modern .login-container .note a.btn-link:hover,
body.rh-modern .login-container .note a.btn-link:focus,
body.rh-modern .login-container .note a.btn-link:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #000 !important;
    text-decoration: underline !important;
    padding: 0 !important;
}
/* RH Modern remove underline from auth links */
body.rh-modern .login-container .note a {
    text-decoration: none !important;
}
    body.rh-modern .login-container .note a:hover {
        text-decoration: none !important;
    }

/* Remove Seprator on login */
body.rh-modern .login-container .smart-form footer {
    border-top: none !important;
}
body.rh-modern #chkShowPassword {
    margin-bottom: 10px;
}
    body.rh-modern #chkShowPassword + label {
        margin-bottom: 10px;
        display: inline-block;
    }

/*  RH Modern Toggle Login Page  */
body.rh-modern .toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* Toggle Switch */
body.rh-modern .toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
}
    body.rh-modern .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }
body.rh-modern .toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 20px;
}
    body.rh-modern .toggle-slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 2px;
        bottom: 2px;
        background: #fff;
        transition: .3s;
        border-radius: 50%;
    }
body.rh-modern .toggle-switch input:checked + .toggle-slider {
    background-color: #000;
}
    body.rh-modern .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(18px);
    }
body.rh-modern .toggle-row span {
    cursor: pointer;
}

/* Center toggle row on register page */
body.rh-modern .fuze-regisgter .toggle-row {
    justify-content: center;
    text-align: center;
}

/* Space below Show Password toggle */
body.rh-modern .login-container .toggle-row {
    margin-bottom: 12px;
}
/* Space above Login button */
body.rh-modern .login-container .btn-container {
    margin-top: 10px;
    text-align: center;
}
@media (min-width: 768px) {
    /* Login button */
    body.rh-modern .login-container #btnSignIn {
        width: 260px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* Google button */
    body.rh-modern .login-container .social-login .btn {
        width: 260px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    /* Center the social buttons */
    body.rh-modern .login-container .social-login li {
        display: block;
        text-align: center;
    }
}

/* =========================================
            RH MODERN THEME End 
   ========================================= */

/* ------------ Login / Register / Reset Password ALL Themes Fix ------------ */

/* Fix checkbox tick */
.toggle-row span {
    font-size: 14px !important;
    color: #ffffff;
}

@media (max-width: 767px) {

    .forms-container {
        position: relative !important;
        min-height: 100vh !important;
    }

    .fuze-login,
    .fuze-forgotPwd,
    .fuze-changePwd,
    .fuze-regisgter {
        position: relative !important;
        width: 95% !important;
        max-width: 100% !important;
        margin: 40px auto !important;
        left: auto !important;
        top: auto !important;
    }

/*    .login-container .btn-container .btn {
        width: 100% !important;
    }*/
}

/* ------------ Logout Dialog Box Fix ----------- */

/*.divMessageBox {
    display: table !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10000 !important;
}

    .divMessageBox .MessageBoxContainer {
        display: table-cell !important;
        vertical-align: middle !important;
        text-align: center !important;
    }

.divMessageBox {
    background: rgba(0, 0, 0, 0.6) !important;
}

    .divMessageBox,
    .divMessageBox .MsgTitle,
    .divMessageBox .pText,
    .divMessageBox button,
    .divMessageBox span:not(.fa),
    .divMessageBox strong {
        font-family: "Open Sans", Arial, sans-serif !important;
    }

        .divMessageBox .MsgTitle {
            display: block !important;
            margin-bottom: 18px !important;
        }

        .divMessageBox .pText {
            margin-top: 0 !important;
            margin-bottom: 22px !important;
            line-height: 1.6 !important;
        }*/


/* =====================================================
   RH MODERN – CONTENT PAGE STYLING Start
===================================================== */

/* Buttons */
body.rh-modern #content .btn {
    border-radius: 6px !important;
}

/* content starts below fixed header */
body.rh-modern #mvc-page {
    margin-top: 64px;
}
/* When ribbon (comments/rating) */
body.rh-modern.fixed-ribbon #mvc-page {
    margin-top: 104px; /* 64 header + 40 ribbon */
}

body.rh-modern.fixed-ribbon #ribbon {
    top: 64px !important;
}

body.rh-modern.fixed-ribbon #content {
    padding-top: 0 !important;
}

/* If ribbon empty, collapse */
body.rh-modern #ribbon:empty {
    display: none !important;
}
/* If metadata empty, collapse */
body.rh-modern #contentMetaData:empty {
    display: none !important;
}
/* If comment button container empty */
body.rh-modern #content .text-center {
    padding: 0 !important;
    margin: 0 !important;
}
    body.rh-modern #content .text-center:has(#ContentEditButton),
    body.rh-modern #content .text-center:has(#btnLoginRedirect) {
        padding: 3px 12px 30px 12px !important;
        margin-top: 15px !important;
    }

/* Remove Extra Spacing Around Metadata & Edit Button */
body.rh-modern #contentMetaData {
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

body.rh-modern #mvc-page hr {
    margin: 10px 0 !important;
}

body.rh-modern #ContentEditButton,
body.rh-modern #btnLoginRedirect {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* Content Pages Use Full Width */
body.rh-modern #mvc-page > * {
    max-width: 100%;
}

body.rh-modern .rh-adaptive-block {
    width: 100%;
    margin: 0;
}

/* Froala Sticky Fix */
body.rh-modern .fr-sticky-on {
    top: 64px !important;
}

/* Remove extra nav vertical spacing */
body.rh-modern #header nav {
    margin: 0 !important;
    padding: 0 !important;
}

/* Prevent Nav1 from adding extra height */
body.rh-modern #Nav1 {
    height: auto !important;
    min-height: 0 !important;
    line-height: normal !important;
}

    /* Remove extra space from ul */
    body.rh-modern #Nav1 nav > ul.lh-menu {
        margin: 0 !important;
        padding: 0 !important;
        height: 64px !important;
    }

/* Disable SmartAdmin automatic content push */
body.rh-modern.fixed-header #main,
body.rh-modern.fixed-header #mvc-page {
    margin-top: 0 !important;
}

/* small spacing below header for non content pages */
body.rh-modern .custm-page-header {
    margin-top: 12px;
}

/* Move Bootstrap Notify below header */
body.rh-modern [data-notify="container"] {
    top: 66px !important;
}
    /* If ribbon is active */
    body.rh-modern.fixed-ribbon [data-notify="container"] {
        top: 110px !important;
    }

/* Remove header border when ribbon is present */
/*body.rh-modern.fixed-ribbon #header {
    border-bottom: none !important;
}*/
/* Only show header border when NO ribbon */
/*body.rh-modern:not(.fixed-ribbon).header-scrolled #header {
    border-bottom: 1px solid #e5e5e5;
}*/


/* ----------- RIBBON --------------- */

body.rh-modern #ribbon {
    background: #ffffff !important;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}
body.rh-modern.header-scrolled #ribbon {
    border-bottom: 1px solid #e5e5e5;
}

    body.rh-modern #ribbon,
    body.rh-modern #ribbon a,
    body.rh-modern #ribbon i {
        color: #000 !important;
    }
        body.rh-modern #ribbon a,
        body.rh-modern #ribbon a:visited,
        body.rh-modern #ribbon a:hover,
        body.rh-modern #ribbon a:focus {
            text-decoration: none !important;
        }
        body.rh-modern #ribbon a,
        body.rh-modern .br-widget a {
            cursor: pointer !important;
        }
        body.rh-modern #ribbon a {
            transition: transform .18s ease, color .18s ease;
        }

/* text slide-up effect */
@media (hover:hover) {
    body.rh-modern #ribbon a:hover {
        transform: translateY(-2px);
    }
}

/* Remove SmartAdmin vertical offset */
body.rh-modern #DefaultContent_actionBarRow {
    position: static !important;
    bottom: auto !important;
    top: auto !important;
}
/* comment icon */
body.rh-modern #CommentCountSpan i.fa-comments {
    color: #000 !important;
}
body.rh-modern #CommentCount {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* star rating */
body.rh-modern .br-theme-fontawesome-stars .br-widget a {
    color: #ccc !important;
    transition: color .25s ease, transform .2s ease;
}
    body.rh-modern .br-theme-fontawesome-stars .br-widget a:hover,
    body.rh-modern .br-theme-fontawesome-stars .br-widget a.br-selected,
    body.rh-modern .br-theme-fontawesome-stars .br-widget a.br-active {
        color: #000 !important;
    }
    body.rh-modern .br-theme-fontawesome-stars .br-widget a:hover {
        transform: scale(1.15);
    }
/* Star rating pop animation */
body.rh-modern .br-theme-fontawesome-stars .br-widget a {
    display: inline-block;
    color: #ccc !important;
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), color .2s ease;
}

    body.rh-modern .br-theme-fontawesome-stars .br-widget a:hover {
        transform: scale(1.35);
    }

    body.rh-modern .br-theme-fontawesome-stars .br-widget a.br-selected,
    body.rh-modern .br-theme-fontawesome-stars .br-widget a.br-active {
        color: #000 !important;
        transform: scale(1.15);
    }

body.rh-modern #ratingsCounts {
    display: inline-flex !important;
    align-items: center;
    line-height: 1 !important;
    position: relative;
    top: -1px;
    font-weight: 600 !important;
    color: #000 !important;
}

/* Follow toggle */
body.rh-modern #ContentFollowDiv .tgl-flat + .tgl-btn {
    background: #e0e0e0 !important;
    border: 2px solid #ccc !important;
    transition: all .2s ease;
}
body.rh-modern #ContentFollowDiv .tgl-flat:checked + .tgl-btn {
    background: #000 !important;
    border: 2px solid #000 !important;
}
body.rh-modern #ContentFollowDiv .tgl-flat + .tgl-btn:after {
    background: #fff !important;
}
body.rh-modern #ContentFollowDiv label {
    color: #000 !important;
}

/* Fix FontAwesome stacked text blocking ribbon */
body.rh-modern #ribbon .fa-stack-1x,
body.rh-modern #ribbon .fa-stack-text {
    position: static !important;
    width: auto !important;
    height: auto !important;
    pointer-events: none;
}
/* ----------- METADATA ----------- */

body.rh-modern #contentMetaData {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
}

    /* Remove the dark footer */
    body.rh-modern #contentMetaData .footer-classic {
        background: #ffffff !important;
        color: #000 !important;
        border: none !important;
        box-shadow: none !important;
        padding: 40px 30px !important;
    }

    /* Remove bg-image overlay */
    body.rh-modern #contentMetaData .bg-image {
        background: #ffffff !important;
    }

    /* Remove context-dark behavior */
    body.rh-modern #contentMetaData .context-dark {
        color: #000 !important;
    }

/* Remove top gap from metadata */
body.rh-modern #contentMetaData {
    border-top: none !important;
}

    /* Remove space before footer */
    body.rh-modern #contentMetaData + .page-footer {
        margin-top: 0 !important;
    }

    body.rh-modern .page-footer {
        margin-top: 0 !important;
    }

/* Remove metadata divider lines */
body.rh-modern #contentMetaData .footer-classic,
body.rh-modern #contentMetaData .footer-classic * {
    border: none !important;
}
body.rh-modern #contentMetaData .row,
body.rh-modern #contentMetaData .row-30,
body.rh-modern #contentMetaData [class*="col-"] {
    border-top: none !important;
    border-bottom: none !important;
}

/* ---------- COMMENT SECTION ---------- */

/* Hide Rating */
body.rh-modern
#DefaultContent_ContentCommentsControl_ratingsSpace,
body.rh-modern
span[id*="ContentRating"] {
    display: none !important;
}

/* Outer Panel Box */
body.rh-modern .panel-smart-accordion-default,
body.rh-modern .panel {
    background: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    overflow: hidden;
}
body.rh-modern .panel-body {
    background: #ffffff !important;
}
body.rh-modern .panel-heading {
    background: #ffffff !important;
    border-bottom: 1px solid #eeeeee !important;
    padding: 16px 20px !important;
}

/* Header hover effect */
body.rh-modern .panel-heading {
    transition: all 0.2s ease;
    cursor: pointer;
}
    body.rh-modern .panel-heading:hover {
        background: #f2f2f2 !important;
        color: #333333 !important;
    }

/* Hide Sort button when accordion is collapsed */
body.rh-modern .panel-heading .row:has(.panel-title a.collapsed) .btn-group {
    display: none !important;
}

/* Remove bullets inside comments */
body.rh-modern .chat-body ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* Individual Comment Card */
body.rh-modern .chat-body {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
body.rh-modern .message {
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid #e9e9e9 !important;
    padding: 14px 16px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease;
}
    body.rh-modern .message:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.08) !important;
        border-color: #e0e0e0 !important;
    }

/* Remove spacing between stacked chat bodies */
body.rh-modern .chat-body.no-padding.profile-message {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
body.rh-modern .chat-body + .chat-body {
    margin-top: 0 !important;
}
body.rh-modern .chat-body ul {
    margin-bottom: 0 !important;
}
body.rh-modern .chat-body li.message {
    margin-bottom: 0 !important;
}

/* Avatar */
body.rh-modern
.ContentCommentsHistoryContainer li.message img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    border: 2px solid #eaeaea !important;
    object-fit: cover !important;
    display: inline-block !important;
}

/* Reply Section */
body.rh-modern .wall-comment-reply.input-group {
    display: flex !important;
    width: 100% !important;
    max-width: 950px !important;
    margin: 10px auto 20px auto !important;
}
body.rh-modern .wall-comment-reply textarea {
    width: 85% !important;
    height: 42px !important;
    border-radius: 10px 0 0 10px !important;
    border: 1px solid #e6e6e6 !important;
    border-right: none !important;
    padding: 10px 14px !important;
    resize: none !important;
    background: #fafafa !important;
}
body.rh-modern .wall-comment-reply .input-group-btn,
body.rh-modern .wall-comment-reply .btn {
    width: 15% !important;
    min-width: 90px !important;
}
body.rh-modern .wall-comment-reply .btn {
    height: 42px !important;
    border-radius: 0 10px 10px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
    /* Focus effect */
    body.rh-modern .wall-comment-reply textarea:focus {
        background: #ffffff !important;
        border-color: #4c84ff !important;
        box-shadow: none !important;
    }

/* Add New Comment Section */
body.rh-modern
#DefaultContent_ContentCommentsControl_NewCommentSection > h4 {
    display: none !important;
}
body.rh-modern #addCommentTextArea {
    width: 100% !important;
    border-radius: 16px !important;
    border: 1px solid #e6e6e6 !important;
    padding: 14px 16px !important;
    background: #fafafa !important;
    resize: none !important;
}
    body.rh-modern #addCommentTextArea:focus {
        background: #ffffff !important;
        border-color: #4c84ff !important;
        box-shadow: 0 6px 18px rgba(76,132,255,0.15);
        transform: translateY(-2px);
    }
    /* body.rh-modern .ContentCommentsButtonControlSpace {
        margin-top: 12px !important;
        text-align: right !important;
    }*/

    body.rh-modern .ContentCommentsButtonControlSpace {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 15px !important;
    }
    body.rh-modern #commentInsertButton {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

/* Mobile Responsive Fix for Comment section */
@media (max-width: 768px) {

    body.rh-modern .panel-body {
        padding: 15px !important;
    }

    body.rh-modern .message {
        padding: 12px !important;
    }
        /* Fix timestamp overflow */
        body.rh-modern .message small,
        body.rh-modern .message .pull-right {
            float: none !important;
            display: block !important;
            text-align: left !important;
            margin-top: 6px !important;
            font-size: 12px !important;
        }

    /* Reply input */
    body.rh-modern .wall-comment-reply {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
    }

        body.rh-modern .wall-comment-reply textarea {
            width: 80% !important;
            height: 36px !important;
            border-radius: 8px 0 0 8px !important;
        }
        body.rh-modern .wall-comment-reply .input-group-btn,
        body.rh-modern .wall-comment-reply .btn {
            width: 20% !important;
            min-width: 45px !important;
        }
        body.rh-modern .wall-comment-reply .btn {
            height: 36px !important;
            border-radius: 0 8px 8px 0 !important;
            padding: 0 !important;
            justify-content: center !important;
        }
        /* Icon only */
        body.rh-modern .wall-comment-reply .btn {
            font-size: 0 !important;
        }
            body.rh-modern .wall-comment-reply .btn i {
                font-size: 14px !important;
            }

    /* Add comment textarea */
    body.rh-modern #addCommentTextArea {
        width: 100% !important;
    }

    /* Fix sort alignment */
    body.rh-modern .panel-heading .row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.rh-modern .panel-heading .panel-title,
    body.rh-modern .panel-heading .col-sm-10 {
        width: auto !important;
        padding-left: 0 !important;
        margin: 0 !important;
        flex: 1 !important;
        text-align: left !important;
    }
    body.rh-modern .panel-heading .btn-group {
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

}

/* Fixed the Custom Header on the Non Content Pages */

body.rh-modern .page-title {
    font-size: 18px;
    font-weight: 500;
    color: #444;
    display: flex;
    align-items: center;
    padding-right: 40px;
    gap: 10px;
}
    body.rh-modern .page-title span {
        font-size: 18px;
        font-weight: 500;
        color: #444;
    }
    body.rh-modern .page-title strong {
        font-weight: 500;
    }

    body.rh-modern .page-title i.fa-angle-right {
        font-size: 16px;
        color: #888;
        margin: 0 8px;
    }

body.rh-modern .custm-page-header {
    background: transparent !important;
    border: none !important;
    padding: 6px 40px 4px 20px;
}


/* =====================================================
   RH MODERN – CONTENT PAGE STYLING End
===================================================== */

/* Preserve SmartAdmin color utilities */

body.rh-modern .txt-color-white {
    color: #fff !important;
}

body.rh-modern .txt-color-red {
    color: #ff5252 !important;
}

body.rh-modern .txt-color-green {
    color: #4caf50 !important;
}

body.rh-modern .txt-color-blue {
    color: #b3e5fc !important;
}

/* ------------ Sitemap without Icon fixed older themes ------------ */
/* Allow top nav items to grow based on content */
.menu-on-top nav > ul.lh-menu > li {
    width: auto !important;
    min-width: 0 !important;
}

    /* Default SmartAdmin layout when icon exists */
    .menu-on-top nav > ul.lh-menu > li > a {
        text-align: center;
    }

        /* Only apply inline layout when NO icon exists */
        .menu-on-top nav > ul.lh-menu > li > a:not(:has(i)) {
            display: flex !important;
            align-items: center !important;
            justify-content: center;
            white-space: nowrap !important;
        }

            /* space between icon and text when inline */
            .menu-on-top nav > ul.lh-menu > li > a:not(:has(i)) > .menu-item-parent {
                margin-left: 0;
            }

/* Hide SmartAdmin top-level dropdown arrow */
.menu-on-top nav > ul > li > a:after {
    display: none !important;
    content: none !important;
}

/* FIX: datepicker not showing */
.datepicker,
.bootstrap-datetimepicker-widget {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 99999 !important;
}

/* FIX: roles dropdown */
body.rh-modern #rolesList + .btn-group .dropdown-menu {
    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
}
body.rh-modern #rolesList + .btn-group.open .dropdown-menu {
    display: block !important;
}
body.rh-modern #rolesList + .btn-group .dropdown-menu li,
body.rh-modern #rolesList + .btn-group .dropdown-menu li a,
body.rh-modern #rolesList + .btn-group .dropdown-menu li label {
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 3px 12px !important;
    background: transparent !important;
}

/* RH Modern Dashboard Section */
body.rh-modern .nav-tab-top-style {
    top: 120px !important;
}
body.rh-modern .tab-pane-style,
body.rh-modern .tab-content {
    padding-top: 20px;
}

/* FIX: row hover on List */
body.rh-modern .k-grid tr.k-state-selected,
body.rh-modern .k-grid tr:hover {
    background-color: #3e5368 !important;
    color: #fff !important;
}
    body.rh-modern .k-grid tr.k-state-selected td,
    body.rh-modern .k-grid tr:hover td {
        color: #fff !important;
    }
    body.rh-modern .k-grid tr.k-state-selected .k-icon,
    body.rh-modern .k-grid tr:hover .k-icon,
    body.rh-modern .k-grid th .k-icon {
        color: #fff !important;
        opacity: 1 !important;
    }
body.rh-modern .k-grid th:hover .k-icon,
body.rh-modern .k-grid th .k-icon {
    color: #666 !important;
}
body.rh-modern .k-grid th:hover .k-icon {
    color: #000 !important;
}