/* ═══════════════════════════════════════════════════════════════════
   header-sidebar.css
   All styles for <header> + <nav> (sidebar) + notifications + 
   workspace mega-menu + datasource modal.
   Extracted from theme.min.css + JS CSS injections.
   ═══════════════════════════════════════════════════════════════════ */
.nxl-header {
    right: 0;
    z-index: 1025;
    position: fixed;
    left: 230px;
    color: #eaebef;
    background: #fff;
    min-height: 60px;
    border-bottom: 1px solid var(--crm-gray-200, #e5e7eb)
}

/* ── App-shell height must follow the 60px header ─────────────────────
   The header above is 60px; the stock WRAPCODERS theme ships an 80px one
   and still sizes the full-content app shell against it:

     .nxl-container.apps-container .nxl-content.without-header
       .main-content .content-area,
     … .content-sidebar { height: calc(100vh - 80px) }   ← theme.min.css

   With a 60px header that leaves a permanent 20px dead strip along the
   bottom of every `apps-container` + `without-header` page (Tasks, Chat,
   Email, Automations, User Management, Flow Builder, Settings, Billing,
   Roles, Profile) — while plain `.nxl-content` pages such as Dashboards
   reach the viewport edge exactly. The header height is decided in this
   file, so the shell math that depends on it is corrected here rather
   than by editing the minified vendor theme.
   ─────────────────────────────────────────────────────────────────── */
.nxl-container.apps-container .nxl-content.without-header .main-content .content-area,
.nxl-container.apps-container .nxl-content.without-header .main-content .content-sidebar {
    height: calc(100vh - 60px);
}

.nxl-header .header-wrapper {
    display: flex;
    padding: 0 30px
}

.nxl-header .header-wrapper ul {
    margin-bottom: 0;
    display: inline-flex
}

.nxl-header .header-wrapper .nxl-h-item {
    min-height: 60px;
    display: flex;
    align-items: center;
    position: relative
}

.nxl-header .header-wrapper .nxl-head-link {
    margin-left: 3px;
    padding: 12px 12px;
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #6b7280;
    border-radius: 50px
}

.nxl-header .header-wrapper .nxl-head-link>i {
    font-size: 20px
}

.nxl-header .header-wrapper .nxl-head-link.active,
.nxl-header .header-wrapper .nxl-head-link:active,
.nxl-header .header-wrapper .nxl-head-link:focus,
.nxl-header .header-wrapper .nxl-head-link:hover {
    color: var(--crm-primary, #3454d1);
    text-decoration: none;
    background: #eaebef
}

.nxl-header .header-wrapper .nxl-head-link.active .hamburger .hamburger-inner,
.nxl-header .header-wrapper .nxl-head-link:active .hamburger .hamburger-inner,
.nxl-header .header-wrapper .nxl-head-link:focus .hamburger .hamburger-inner,
.nxl-header .header-wrapper .nxl-head-link:hover .hamburger .hamburger-inner {
    background-color: var(--crm-primary, #3454d1)
}

.nxl-header .header-wrapper .nxl-head-link.active .hamburger .hamburger-inner::after,
.nxl-header .header-wrapper .nxl-head-link.active .hamburger .hamburger-inner::before,
.nxl-header .header-wrapper .nxl-head-link:active .hamburger .hamburger-inner::after,
.nxl-header .header-wrapper .nxl-head-link:active .hamburger .hamburger-inner::before,
.nxl-header .header-wrapper .nxl-head-link:focus .hamburger .hamburger-inner::after,
.nxl-header .header-wrapper .nxl-head-link:focus .hamburger .hamburger-inner::before,
.nxl-header .header-wrapper .nxl-head-link:hover .hamburger .hamburger-inner::after,
.nxl-header .header-wrapper .nxl-head-link:hover .hamburger .hamburger-inner::before {
    background-color: var(--crm-primary, #3454d1)
}

.nxl-header .header-wrapper .nxl-head-link.nxl-language-link {
    padding: 15px 12px
}

.nxl-header .header-wrapper .nxl-head-link .nxl-h-badge {
    position: absolute;
    top: 0;
    right: 5px;
    font-size: 9px;
    border-radius: 50px
}

.nxl-header .header-wrapper .nxl-head-link .nxl-h-badge.dots {
    top: 8px;
    right: 12px;
    padding: 0;
    width: 8px;
    height: 8px
}

.nxl-header .header-wrapper .nxl-h-dropdown {
    width: 225px;
    top: 100% !important;
    transition: all .3s ease-in-out;
    transform: none !important;
    margin: 0 !important;
}

.nxl-header .header-wrapper .nxl-h-dropdown.dropdown-menu-end {
    right: 0 !important;
    left: auto !important
}

.nxl-header .header-wrapper .nxl-h-dropdown.nxl-user-dropdown {
    width: 300px
}

.nxl-header .header-wrapper .nxl-h-dropdown .dropdown-header {
    margin-bottom: 10px;
    padding-bottom: 20px;
    padding-left: 25px;
    padding-right: 25px;
    border-bottom: 1px solid var(--crm-gray-200, #e5e7eb)
}

.nxl-header .header-wrapper .nxl-h-dropdown .dropdown-item {
    margin: 0 10px;
    border-radius: 5px;
    width: -webkit-fill-available
}

.nxl-header .header-wrapper .nxl-h-dropdown .fa-circle {
    font-size: 5px;
    vertical-align: middle
}

.nxl-header .header-wrapper .nxl-level-menu {
    position: relative
}

.nxl-header .header-wrapper .nxl-level-menu:hover>.dropdown-menu {
    left: 100%;
    display: block;
    top: 0 !important;
    transition: all .3s ease-in-out
}

.nxl-header .header-wrapper .nxl-mega-menu {
    position: static;
    transition: all .3s ease-in-out
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown {
    left: 30px;
    width: 576px;
    max-width: 100%;
    padding: 0 0
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown.nxl-mega-menu-sm {
    width: 576px;
    max-width: 100%
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown.nxl-mega-menu-md {
    width: 768px;
    max-width: 100%
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown.nxl-mega-menu-lg {
    width: 992px;
    max-width: 100%
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown.nxl-mega-menu-xl {
    width: 1200px;
    max-width: 100%
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown.nxl-mega-menu-xxl {
    width: 1400px;
    max-width: 100%
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown.nxl-mega-menu-full {
    width: 100%;
    max-width: 100%;
    left: 0 !important;
    right: 0 !important
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs {
    width: 250px;
    min-width: 250px;
    max-width: 100%;
    padding: 25px 25px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs .nav-link {
    border: none;
    margin-bottom: 5px;
    padding: 10px 15px;
    text-align: left;
    color: var(--crm-heading, #283c50);
    font-size: .84rem;
    font-weight: 700;
    background-color: #fff;
    border-radius: 5px;
    transition: all .3s ease;
    display: flex;
    align-items: center
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs .nav-link.active {
    color: var(--crm-navy, #001327);
    background-color: #eaebef;
    transition: all .3s ease
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs .nav-link .menu-icon {
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs .nav-link .menu-icon i {
    font-size: 15px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs .nav-link .menu-title {
    flex-grow: 1;
    display: flex;
    align-items: center
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs .nav-link .menu-arrow {
    margin-left: 5px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: stretch
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content {
    width: 70%;
    padding: 30px 30px;
    border-left: 1px solid var(--crm-gray-200, #e5e7eb)
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .dropdown-item-title {
    color: var(--crm-navy, #001327);
    padding: 0 15px 5px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .dropdown-item {
    margin: 0 0
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .menu-item-heading {
    font-size: .84rem
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-image {
    margin: auto auto;
    text-align: center;
    border-radius: 15px;
    background-color: #eaebef
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-image img {
    width: 100%;
    border-radius: 15px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-image img.full-user-avtar {
    width: auto;
    height: 275px;
    padding: 25px 25px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-integrations .dropdown-item,
.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources-right .dropdown-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    border: 1px dashed var(--crm-gray-200, #e5e7eb);
    transition: all .3s ease
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-integrations .dropdown-item .menu-item-icon,
.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources-right .dropdown-item .menu-item-icon {
    width: 15px;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-integrations .dropdown-item .menu-item-icon i,
.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources-right .dropdown-item .menu-item-icon i {
    font-size: 15px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-integrations .dropdown-item .menu-item-title,
.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources-right .dropdown-item .menu-item-title {
    flex-grow: 1;
    display: flex;
    align-items: center
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-integrations .dropdown-item .menu-item-arrow,
.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources-right .dropdown-item .menu-item-arrow {
    margin-left: 5px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: stretch
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-integrations .dropdown-item .menu-item-arrow i,
.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources-right .dropdown-item .menu-item-arrow i {
    margin-right: 0
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources .dropdown-item,
.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources .dropdown-item-title {
    margin-bottom: 15px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources .dropdown-item:last-child {
    margin-bottom: 0
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources .carousel-inner .carousel-item .carousel-caption .carousel-caption-title {
    color: #fff
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources .carousel-inner .carousel-item .carousel-caption .carousel-caption-desc {
    color: #fff;
    font-size: 12px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous {
    margin-top: -30px;
    margin-left: -30px;
    margin-right: -30px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-tabs {
    width: 100%;
    margin-bottom: 25px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-tabs .nav-item .nav-link {
    border: none;
    text-align: left;
    color: var(--crm-heading, #283c50);
    font-size: .84rem;
    font-weight: 700;
    padding: 15px 25px;
    border-radius: 0;
    border-right: 1px solid var(--crm-gray-200, #e5e7eb);
    border-bottom: 1px solid var(--crm-gray-200, #e5e7eb);
    transition: all .3s ease;
    display: flex;
    align-items: center
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-tabs .nav-item .nav-link:first-child {
    margin-left: 0
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-tabs .nav-item .nav-link.active {
    color: var(--crm-primary, #3454d1);
    border-bottom: 1px solid var(--crm-primary, #3454d1)
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-tabs .nav-item .nav-link .menu-icon {
    width: 15px;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-tabs .nav-item .nav-link .menu-icon i {
    font-size: 15px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-tabs .nav-item .nav-link .menu-title {
    flex-grow: 1;
    display: flex;
    align-items: center
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-content {
    padding: 15px 30px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-content .nxl-mega-menu-miscellaneous-features i,
.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-content .nxl-mega-menu-miscellaneous-services i {
    font-size: 16px
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .carousel-inner .carousel-item .carousel-caption .carousel-caption-title {
    color: #fff
}

.nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown .carousel-inner .carousel-item .carousel-caption .carousel-caption-desc {
    color: #fff;
    font-size: 12px
}

/* The search icon is the FIRST item in the header-right cluster, so the theme's
   `dropdown-menu-end` (right:0 against the .nxl-h-item) pinned this 425px panel's
   right edge to the icon and threw the whole thing 425px off to the left. Anchor
   it to the header instead — the same `position:static` trick .nxl-mega-menu
   already uses below — so it drops under the header's right edge, in line with
   the other header dropdowns. `right` matches .header-wrapper's 30px padding. */
.nxl-header .header-wrapper .nxl-header-search {
    position: relative;
    display: flex;
    align-items: center;
}

/* Expandable search bar (replaces the old Bootstrap dropdown panel).
   `width` is the only animated property, and the panel is anchored to the
   icon's left edge — so it reads as the bar stretching out OF the icon rather
   than a menu dropping from it. visibility is delayed on close so the collapse
   animation is visible before it leaves the a11y tree. */
.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown {
    position: absolute;
    top: 50%;
    right: calc(100% + 6px);
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1021;
    transition: width .28s cubic-bezier(.4, 0, .2, 1), opacity .18s ease, visibility 0s linear .28s;
}

.nxl-header .header-wrapper .nxl-header-search.is-open .nxl-search-dropdown {
    width: min(420px, calc(100vw - 170px));
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: width .28s cubic-bezier(.4, 0, .2, 1), opacity .18s ease, visibility 0s;
}


/* The results list hangs under the bar and only exists while open. Size is
   owned here alone: the theme's old `max-height: 415px` rule and the injected
   one in header-sidebar.js were both dropped, so there is a single place to
   change it and no later rule silently overriding this one. */
/* The reference animated this with framer-motion: height 0 -> auto over .4s,
   opacity over .2s, reversed on exit. Expressed here as max-height + opacity so
   it stays a CSS transition — `display:none` would have cancelled it outright. */
.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-items-wrapper {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--crm-gray-200, #e5e7eb);
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, .05);
    padding: 4px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .2s ease,
                visibility 0s linear .4s;
}

.nxl-header .header-wrapper .nxl-header-search.is-open .nxl-search-dropdown .search-items-wrapper {
    max-height: min(420px, calc(100vh - 140px));
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
    transition: max-height .4s cubic-bezier(.4, 0, .2, 1), opacity .2s ease,
                visibility 0s;
}

/* Trailing icon slot: both icons occupy the same cell and slide through it on
   the y axis, matching the reference's AnimatePresence swap. */
.nxl-header .header-wrapper .nxl-header-search .gs-swap {
    position: relative;
    width: 30px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.nxl-header .header-wrapper .nxl-header-search .gs-swap-icon {
    grid-area: 1 / 1;
    width: 16px;
    height: 16px;
    color: var(--crm-gray-400, #9ca3af);
    transition: transform .2s ease, opacity .2s ease;
}

.nxl-header .header-wrapper .nxl-header-search .gs-swap-send,
.nxl-header .header-wrapper .nxl-header-search.has-query .gs-swap-search {
    opacity: 0;
    transform: translateY(-20px);
}

.nxl-header .header-wrapper .nxl-header-search.has-query .gs-swap-send {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .nxl-header .header-wrapper .nxl-header-search .gs-swap-icon {
        transition: opacity .2s ease;
        transform: none;
    }
}

/* On a narrow header the bar would collide with the workspace switcher; give
   it the width that's actually free instead of overflowing. */
@media (max-width: 640px) {
    .nxl-header .header-wrapper .nxl-header-search.is-open .nxl-search-dropdown {
        width: calc(100vw - 110px);
    }
}

html.app-skin-dark .nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-form {
    background: var(--crm-slate-900, #0f172a);
    border-color: var(--crm-dark-surface, #1c2438);
}

html.app-skin-dark .nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-items-wrapper {
    background: var(--crm-slate-900, #0f172a);
    border-color: var(--crm-dark-surface, #1c2438);
}


.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-form {
    padding: 0 4px;
    flex-wrap: nowrap;
    background: #fff;
    border: 1px solid var(--crm-gray-200, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .25);
}

/* Without min-width:0 the input keeps its intrinsic width and refuses to
   shrink inside the collapsing flex bar, so the close animation jumps. */
.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-form .search-input-field {
    min-width: 0;
}

.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-form .input-group-text,
.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-form .search-input-field {
    border: none;
    padding: 15px 10px;
    background: #fff
}

.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-form .input-group-text:active,
.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-form .input-group-text:focus,
.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-form .search-input-field:active,
.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-form .search-input-field:focus {
    box-shadow: none
}

.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-form .input-group-text .btn-close {
    opacity: 1;
    position: relative;
    background: 0 0
}

.nxl-header .header-wrapper .nxl-header-search .nxl-search-dropdown .search-form .input-group-text .btn-close:after {
    content: "Esc";
    position: absolute;
    top: 0;
    right: 0;
    height: 1.35rem;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 9px;
    color: var(--crm-heading, #283c50);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .25px;
    border-radius: 5px;
    border: 1px solid var(--crm-gray-200, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center
}


.nxl-header .header-wrapper .nxl-header-language .nxl-language-dropdown {
    width: 425px;
    padding-top: 0;
    overflow-x: hidden;
    max-height: calc(100vh - 150px)
}

.nxl-header .header-wrapper .nxl-header-language .nxl-language-dropdown .language_select a {
    color: var(--crm-heading, #283c50);
    padding: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    border-radius: 5px;
    border: 1px dashed var(--crm-gray-200, #e5e7eb);
    transition: all .3s ease
}

.nxl-header .header-wrapper .nxl-header-language .nxl-language-dropdown .language_select a:hover {
    background-color: #eaebef
}

.nxl-header .header-wrapper .nxl-header-language .nxl-language-dropdown .language_select.active a {
    position: relative
}

.nxl-header .header-wrapper .nxl-header-language .nxl-language-dropdown .language_select.active a:before {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    content: "âœ“";
    color: var(--crm-primary, #3454d1);
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eaebef
}

.nxl-header .header-wrapper .nxl-timesheets-menu {
    padding: 0;
    min-width: 20rem
}

.nxl-header .header-wrapper .nxl-timesheets-menu .timesheets-head {
    padding: 20px;
    border-radius: 2px 2px 0 0;
    border-bottom: 1px solid var(--crm-gray-200, #e5e7eb)
}

.nxl-header .header-wrapper .nxl-timesheets-menu .timesheets-body {
    padding: 30px 20px
}

.nxl-header .header-wrapper .nxl-timesheets-menu .timesheets-footer {
    padding: 15px 20px;
    border-radius: 0 0 2px 2px;
    border-top: 1px solid var(--crm-gray-200, #e5e7eb)
}

/* Notification dropdown — compact by design.
   The theme shipped a 20px/15px scale built for two-line rows with a 60px
   avatar. Our rows carry four stacked lines (title, badges, body, time) and no
   avatar, so that scale pushed three notifications past 400px and the footer
   below the fold. Padding is roughly halved and the vertical rhythm is stated
   once here rather than through utility margins in the renderer. */
.nxl-header .header-wrapper .nxl-notifications-menu {
    padding: 0;
    min-width: 25rem;
    max-width: min(26rem, 94vw)
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-head {
    padding: 10px 14px;
    border-radius: 2px 2px 0 0;
    border-bottom: 1px solid var(--crm-gray-200, #e5e7eb)
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-head h6 {
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: .01em
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-head span:empty {
    display: none
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-footer a {
    font-size: 12px;
    color: #6b7280 !important
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-footer a:hover {
    color: var(--crm-primary, #3454d1) !important
}

/* Bounded so a future "show more than 3" change scrolls instead of growing a
   dropdown taller than the viewport. */
.nxl-header .header-wrapper .nxl-notifications-menu #notifications-list {
    max-height: min(30rem, 70vh);
    overflow-y: auto;
    overscroll-behavior: contain
}

/* A row is: tone dot | title | one line of detail | one muted meta line.
   Three type sizes, one accent colour, no chips, no borders inside the row. */
.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
    padding: 9px 14px;
    transition: background-color .15s ease
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item+.notifications-item {
    border-top: 1px solid #eef1f6
}

/* The dot carries the whole colour budget of the row: which system spoke and
   whether it still needs the user. Read rows keep the dot's column so titles
   stay on one left edge, but drop its ink. */
.nxl-header .header-wrapper .nxl-notifications-menu .notifications-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    opacity: 0
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item.is-unread .notifications-dot {
    opacity: 1
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item img {
    width: 32px;
    height: 32px
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item .notifications-desc {
    flex: 1;
    min-width: 0
}

/* One row of vertical rhythm for every line after the title. */
.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item .notifications-desc > *+* {
    margin-top: 1px
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item .notifications-title {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
    color: #4b5563
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item.is-unread .notifications-title {
    font-weight: 600;
    color: #1f2937
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item .notifications-body,
.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item .notifications-desc .font-body {
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item .notifications-meta {
    font-size: 11px;
    line-height: 1.2;
    color: #9aa4b2
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item .notifications-desc .text-body {
    color: var(--crm-heading, #283c50) !important;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 400
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item:hover {
    background-color: #f6f8fb
}

.nxl-header .header-wrapper .nxl-notifications-menu .notifications-footer {
    padding: 8px 14px;
    border-radius: 0 0 2px 2px;
    border-top: 1px solid var(--crm-gray-200, #e5e7eb)
}

.nxl-header .header-wrapper .user-avtar {
    width: 40px;
    margin-right: 15px;
    border-radius: 50%
}

html.minimenu .nxl-header {
    left: 100px
}

.nxl-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background: rgba(0, 0, 0, .2)
}

html.app-header-dark .nxl-header,
html.app-skin-dark .nxl-header {
    color: #fff;
    background: var(--crm-slate-900, #0f172a);
    border-bottom: 1px solid var(--crm-dark-surface-alt, #1b2436)
}

html.app-header-dark .nxl-header .header-wrapper .hamburger-inner,
html.app-skin-dark .nxl-header .header-wrapper .hamburger-inner {
    background-color: #fff
}

html.app-header-dark .nxl-header .header-wrapper .hamburger-inner:after,
html.app-header-dark .nxl-header .header-wrapper .hamburger-inner:before,
html.app-skin-dark .nxl-header .header-wrapper .hamburger-inner:after,
html.app-skin-dark .nxl-header .header-wrapper .hamburger-inner:before {
    background-color: #fff
}

html.app-header-dark .nxl-header .header-wrapper .nxl-lavel-mega-menu-toggle a#nxl-lavel-mega-menu-open,
html.app-skin-dark .nxl-header .header-wrapper .nxl-lavel-mega-menu-toggle a#nxl-lavel-mega-menu-open {
    color: #fff
}

html.app-header-dark .nxl-header .header-wrapper .nxl-head-link,
html.app-skin-dark .nxl-header .header-wrapper .nxl-head-link {
    color: #fff
}

html.app-header-dark .nxl-header .header-wrapper .nxl-head-link.active,
html.app-header-dark .nxl-header .header-wrapper .nxl-head-link:active,
html.app-header-dark .nxl-header .header-wrapper .nxl-head-link:focus,
html.app-header-dark .nxl-header .header-wrapper .nxl-head-link:hover,
html.app-skin-dark .nxl-header .header-wrapper .nxl-head-link.active,
html.app-skin-dark .nxl-header .header-wrapper .nxl-head-link:active,
html.app-skin-dark .nxl-header .header-wrapper .nxl-head-link:focus,
html.app-skin-dark .nxl-header .header-wrapper .nxl-head-link:hover {
    color: var(--crm-primary, #3454d1);
    background-color: var(--crm-dark-surface, #1c2438) !important
}

html.app-header-dark .nxl-header .header-wrapper .nxl-lavel-mega-menu .nxl-lavel-mega-menu-wrapper .nxl-lavel-menu .avatar-image,
html.app-header-dark .nxl-header .header-wrapper .nxl-lavel-mega-menu .nxl-lavel-mega-menu-wrapper .nxl-lavel-menu .avatar-text,
html.app-skin-dark .nxl-header .header-wrapper .nxl-lavel-mega-menu .nxl-lavel-mega-menu-wrapper .nxl-lavel-menu .avatar-image,
html.app-skin-dark .nxl-header .header-wrapper .nxl-lavel-mega-menu .nxl-lavel-mega-menu-wrapper .nxl-lavel-menu .avatar-text {
    border-color: var(--crm-dark-surface-alt, #1b2436)
}

html.app-header-dark .nxl-header .header-wrapper .nxl-lavel-mega-menu .nxl-lavel-mega-menu-wrapper .nxl-mega-menu .btn-light,
html.app-header-dark .nxl-header .header-wrapper .nxl-lavel-mega-menu .nxl-lavel-mega-menu-wrapper .nxl-mega-menu .btn-light-brand,
html.app-skin-dark .nxl-header .header-wrapper .nxl-lavel-mega-menu .nxl-lavel-mega-menu-wrapper .nxl-mega-menu .btn-light,
html.app-skin-dark .nxl-header .header-wrapper .nxl-lavel-mega-menu .nxl-lavel-mega-menu-wrapper .nxl-mega-menu .btn-light-brand {
    color: #fff !important;
    border-color: var(--crm-dark-surface-alt, #1b2436) !important;
    background-color: var(--crm-dark-surface, #1c2438) !important
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-image {
    background-color: var(--crm-dark-surface, #1c2438)
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs .nav-link {
    color: #fff;
    background-color: var(--crm-dark-bg, #121a2d)
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs .nav-link.active,
html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs .nav-link:hover {
    color: var(--crm-primary, #3454d1);
    background-color: var(--crm-dark-surface, #1c2438)
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content {
    border-color: var(--crm-dark-surface-alt, #1b2436)
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-integrations .dropdown-item,
html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-resources-right .dropdown-item {
    border-color: var(--crm-dark-surface-alt, #1b2436)
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-tabs {
    border-color: var(--crm-dark-surface-alt, #1b2436)
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-tabs .nav-item .nav-link {
    color: #fff;
    border-color: var(--crm-dark-surface-alt, #1b2436)
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-tabs .nav-item .nav-link.active,
html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-tabs .nav-item .nav-link:hover {
    color: var(--crm-primary, #3454d1)
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content .nxl-mega-menu-miscellaneous .nxl-mega-menu-miscellaneous-content .nxl-mega-menu-miscellaneous-services i {
    color: #fff
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-lavel-mega-menu {
    border-color: var(--crm-dark-surface-alt, #1b2436);
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-lavel-mega-menu .nxl-lavel-mega-menu-toggle a#nxl-lavel-mega-menu-hide {
    border-color: var(--crm-dark-surface-alt, #1b2436)
}

html.app-skin-dark .nxl-header .header-wrapper .header-left .nxl-lavel-mega-menu .nxl-lavel-mega-menu-wrapper .nxl-mega-menu .nxl-h-dropdown .nxl-mega-menu-tabs-content {
    border-color: var(--crm-dark-surface-alt, #1b2436)
}

html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-header-language .nxl-h-dropdown.nxl-search-dropdown .avatar-text,
html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-header-search .nxl-h-dropdown.nxl-search-dropdown .avatar-text {
    color: #fff
}

html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-header-language .nxl-h-dropdown.nxl-language-dropdown .language_select a:hover,
html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-header-search .nxl-h-dropdown.nxl-language-dropdown .language_select a:hover {
    background-color: #151e34
}

html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-notifications-menu .notifications-item .notifications-desc .text-body {
    color: #fff !important
}

/* The compact rows lean on their separators, so those need a dark value —
   the theme only ever restyled the body text here. */
html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-notifications-menu .notifications-head,
html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-notifications-menu .notifications-footer {
    border-color: var(--crm-dark-surface, #1c2438)
}

html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-notifications-menu .notifications-item+.notifications-item {
    border-top-color: var(--crm-dark-surface, #1c2438)
}

html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-notifications-menu .notifications-item:hover {
    background-color: #151e34
}

html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-notifications-menu .notifications-item .notifications-title {
    color: var(--crm-slate-400, #94a3b8)
}

html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-notifications-menu .notifications-item.is-unread .notifications-title {
    color: var(--crm-slate-100, #f1f5f9)
}

html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-notifications-menu .notifications-item .notifications-body {
    color: var(--crm-slate-400, #94a3b8)
}

html.app-skin-dark .nxl-header .header-wrapper .header-right .nxl-notifications-menu .notifications-item .notifications-meta {
    color: var(--crm-slate-500, #64748b)
}

html.app-skin-dark .nxl-header .header-wrapper .header-right .timesheets-body i {
    color: #fff
}

/* Positioned parent so the dropdown anchors under the switcher button */
.account-mega-menu {
    position: relative !important;
}

/* Blurred page backdrop while the account mega-menu is open.
   z-index sits below the header (1025) and sidebar (1026), so those two — and
   the dropdown itself, which lives inside the header — stay crisp. */
body.account-menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1020;
    pointer-events: none;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background: rgba(15, 23, 42, .06);
    animation: account-menu-scrim-in .18s ease-out;
}

@keyframes account-menu-scrim-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Compact mega menu dropdown (anchored under the account switcher) */
.mega-menu-fullwidth {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    width: 880px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    /* Sits flush under the header: square top edge continuing the header rule,
       rounded only at the bottom. */
    border-radius: 0 0 14px 14px;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
    background: #fff;
    border: none;
    border-top: 1px solid var(--crm-gray-200, #e5e7eb);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .10), 0 1.5px 6px rgba(0, 0, 0, .06);
    overflow: hidden;
    transform: none !important;
    /* overrides popper js inline styles */
}

/* Small screens: stack panels vertically */
@media (max-width: 991.98px) {
    .mega-menu-fullwidth>.d-lg-flex.align-items-start {
        flex-direction: column;
    }

    .mega-menu-fullwidth .nxl-mega-menu-tabs {
        width: 100% !important;
        min-width: 100% !important;
        border-right: none;
        border-bottom: 1px solid #e8e9ee;
        padding: 16px !important;
    }

    #accountDetailsPane {
        padding: 16px !important;
        max-height: none;
    }
}

/* â”€â”€ Mega-menu inner flex layout â”€â”€ */
.mega-menu-fullwidth>.d-lg-flex.align-items-start {
    align-items: stretch !important;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* â”€â”€ Left panel: account list â”€â”€ */
.mega-menu-fullwidth .nxl-mega-menu-tabs {
    background: #f8f9fc;
    border-right: 1px solid #e8e9ee;
    padding: 16px 12px !important;
    width: 258px !important;
    min-width: 258px !important;
    gap: 2px;
    /* The column itself does not scroll — the search field and "Add New
       Workspace" stay put and only .workspace-scroll below moves. The cap is a
       small-viewport guard only. nowrap is required: .nav ships flex-wrap:wrap,
       so a capped column would spill items into a second column. */
    max-height: min(560px, calc(100vh - 110px));
    overflow-y: auto;
    flex-wrap: nowrap;
}

/* Scrolling workspace list: shows at least 7 rows, at most 8. */
.mega-menu-fullwidth .nxl-mega-menu-tabs .workspace-scroll {
    --ws-row-h: 40px;
    /* row gap = .nav-link margin-bottom (2px) + this container's gap (2px) */
    --ws-row-gap: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: calc(7 * var(--ws-row-h) + 6 * var(--ws-row-gap));
    max-height: calc(8 * var(--ws-row-h) + 7 * var(--ws-row-gap));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.mega-menu-fullwidth .nxl-mega-menu-tabs .workspace-scroll>* {
    flex-shrink: 0;
}

/* Keep rows at their natural height so the capped column scrolls, not squashes. */
.mega-menu-fullwidth .nxl-mega-menu-tabs>* {
    flex-shrink: 0;
}

.mega-menu-fullwidth .nxl-mega-menu-tabs .account-search {
    padding: 0 4px 12px !important;
    margin-bottom: 4px;
}

.mega-menu-fullwidth .nxl-mega-menu-tabs .account-search input {
    background: #f5f6fa;
    border: 1px solid #e8e9ee;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: .8rem;
    transition: border-color .2s, box-shadow .2s;
}

.mega-menu-fullwidth .nxl-mega-menu-tabs .account-search input:focus {
    background: #fff;
    border-color: #375de7;
    box-shadow: 0 0 0 3px rgba(55, 93, 231, .1);
}

.mega-menu-fullwidth .nxl-mega-menu-tabs .nav-link {
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: .82rem;
    font-weight: 600;
    color: #4a5568;
    background: transparent;
    transition: all .2s ease;
    margin-bottom: 2px;
}

.mega-menu-fullwidth .nxl-mega-menu-tabs .nav-link:hover {
    background: #f0f1f5;
    color: #1a202c;
}

.mega-menu-fullwidth .nxl-mega-menu-tabs .nav-link.active {
    background: #eef0ff !important;
    color: #375de7 !important;
    font-weight: 700;
}

.mega-menu-fullwidth .nxl-mega-menu-tabs .nav-link .status-dot {
    box-shadow: 0 0 0 2px #fff;
}

.mega-menu-fullwidth .nxl-mega-menu-tabs #addAccountBtn {
    border-top: 1px solid #e8e9ee;
    margin-top: 8px;
    padding-top: 12px !important;
    border-radius: 0 0 8px 8px !important;
    color: #375de7;
    font-weight: 600;
}

/* "Add New Workspace" leads the list, so it separates downward. */
.mega-menu-fullwidth .nxl-mega-menu-tabs #addNewWorkspaceBtn {
    border-bottom: 1px solid #e8e9ee;
    margin-bottom: 8px;
    padding-bottom: 12px !important;
    border-radius: 8px 8px 0 0 !important;
    color: #375de7;
    font-weight: 600;
}

.mega-menu-fullwidth .nxl-mega-menu-tabs #addAccountBtn:hover,
.mega-menu-fullwidth .nxl-mega-menu-tabs #addNewWorkspaceBtn:hover {
    background: #eef0ff;
}

/* â”€â”€ Right panel: account details â”€â”€ */
#accountDetailsPane {
    padding: 20px 22px !important;
    background: #fff;
    flex: 1 1 0%;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: min(560px, calc(100vh - 110px));
    display: flex;
    flex-direction: column;
}

#accountDetailsPane .mb-3.d-flex {
    padding-bottom: 16px;
    border-bottom: 1px solid #edf0f4;
    margin-bottom: 20px !important;
}

#accountDetailsPane #accountNameHeading {
    font-size: 1.15rem;
    color: #1a202c;
    letter-spacing: -.01em;
}

#accountDetailsPane #switchProfileTab {
    border-radius: 8px;
    padding: 6px 18px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Datasource tiles ──
   One tile per connected datasource ACCOUNT: brand logo + account name.
   auto-fill rather than a fixed column count so a workspace with one
   connection doesn't leave three empty cells. */
.ds-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

/* Empty state is a plain span; without this it is squeezed into column 1. */
.ds-tile-grid>.text-muted {
    grid-column: 1 / -1;
}

.ds-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 12px;
    background: #f8f9fc;
    border: 1px solid #e8e9ee;
    border-radius: 10px;
    transition: background .18s, border-color .18s;
}

.ds-tile:hover {
    background: #eef0ff;
    border-color: #c7d0ff;
}

.ds-tile-mark {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    /* White chip behind every mark: the brand SVGs are single-colour and a
       couple of them (TikTok, X) are near-black, which vanishes on the dark
       theme's card background. */
    background: #fff;
    border: 1px solid #e8e9ee;
}

.ds-tile-logo {
    display: block;
    width: 18px;
    height: 18px;
}

.ds-tile-logo-fallback {
    font-size: .8rem;
    font-weight: 700;
    color: #8a94a6;
    line-height: 1;
}

.ds-tile-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.ds-tile-name {
    font-size: .8rem;
    font-weight: 600;
    color: #1a202c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ds-tile-sub {
    font-size: .69rem;
    font-weight: 500;
    color: #8a94a6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Detail sections ──
   Every block (platforms, account count, members, created) is the same shape:
   an uppercase label with its value beneath, stacked at a fixed rhythm. */
#accountDetailsBody {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-section-value {
    display: flex;
    align-items: center;
    font-size: .85rem;
    font-weight: 600;
    color: #1a202c;
    min-height: 26px;
}

/* ── Member avatar stack ──
   Mirrors .ws-avatar / .ws-avatar-stack on the My Workspaces cards
   (workspace.css). Duplicated because workspace.css only loads on that page,
   and scoped to this pane so the two definitions can never fight where both
   stylesheets are present. */
#accountDetailsPane .ws-avatar-stack {
    display: inline-flex;
    align-items: center;
}

#accountDetailsPane .ws-avatar {
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    margin-left: -8px;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

#accountDetailsPane .ws-avatar.first {
    margin-left: 0;
}

#accountDetailsPane .ws-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

#accountDetailsPane .ws-avatar-extra {
    background: var(--bs-border-color) !important;
    color: var(--bs-body-color) !important;
    font-weight: 600;
}

/* â”€â”€ Section Labels â”€â”€ */
.account-section-label {
    font-size: .7rem;
    font-weight: 700;
    color: #8a94a6;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #adb5bd;
}

.status-ok {
    background: #28c76f;
}

.status-warn {
    background: #ff9f43;
}

.status-crit {
    background: #ea5455;
}

.account-search input {
    font-size: .75rem;
}

.quick-actions .btn {
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
}

.recent-activity {
    max-height: 150px;
    overflow: auto;
    font-size: .75rem;
}


/* Primary background for the actual current link */

.nxl-chat-cta {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff !important;
    transition: all 0.3s ease;
    border-radius: 10px 10px 0 0;
}

/* ── Bell ring animation (was JS-injected) ── */
@keyframes nxl-bell-swing {
    0% {
        transform: rotate(0)
    }

    15% {
        transform: rotate(14deg)
    }

    30% {
        transform: rotate(-12deg)
    }

    45% {
        transform: rotate(8deg)
    }

    60% {
        transform: rotate(-6deg)
    }

    75% {
        transform: rotate(3deg)
    }

    100% {
        transform: rotate(0)
    }
}

.nxl-bell-ring {
    animation: nxl-bell-swing .8s ease-in-out;
    transform-origin: top center;
}

/* ── Datasource modal styles (was JS-injected) ── */

/* Step indicator */
#addDatasourceModal .dsm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crm-slate-200, #e2e8f0);
    flex-shrink: 0;
    transition: all .25s;
}

#addDatasourceModal .dsm-dot-active {
    background: #6366f1;
    transform: scale(1.35);
}

#addDatasourceModal .dsm-dot-done {
    background: #22c55e;
}

#addDatasourceModal .dsm-step-line {
    height: 2px;
    width: 28px;
    background: var(--crm-slate-200, #e2e8f0);
    border-radius: 2px;
    flex-shrink: 0;
    transition: background .25s;
}

#addDatasourceModal .dsm-step-line.done {
    background: #22c55e;
}

/* Platform grid cards */
.dsm-platform-card {
    border: 2px solid var(--crm-slate-100, #f1f5f9);
    border-radius: 12px;
    /* extra top padding clears the half-overhanging .dsm-conn-badge */
    padding: 18px 10px 14px;
    cursor: pointer;
    text-align: center;
    transition: all .18s;
    position: relative;
    background: #fff;
    user-select: none;
}

.dsm-platform-card:hover:not(.dsm-connected):not(.dsm-soon) {
    border-color: #6366f1;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .14);
    transform: translateY(-2px);
}

.dsm-platform-card.dsm-connected {
    border-color: #22c55e;
    background: #f0fdf4;
}

.dsm-platform-card.dsm-connected:hover {
    border-color: #16a34a;
}

/* Status pill straddles the top border, centred — same treatment as the
   landing page's .cn-badge (frontend/connect.css). Centred with
   left/right/margin rather than a transform so a hover or scale on the
   card can't unseat it. One shape, two states: green = connected,
   grey = not shippable yet. */
.dsm-conn-badge,
.dsm-soon-badge {
    position: absolute;
    top: -9px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 999px;
}

.dsm-conn-badge::before,
.dsm-soon-badge::before {
    content: "";
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.dsm-conn-badge {
    color: #16803c;
    background: #e8f9ef;
    border: 1px solid #b8ecc9;
}

.dsm-conn-badge::before {
    background: #22c55e;
}

.dsm-soon-badge {
    color: var(--crm-slate-500, #64748b);
    background: var(--crm-slate-100, #f1f5f9);
    border: 1px solid var(--crm-slate-200, #e2e8f0);
}

.dsm-soon-badge::before {
    background: var(--crm-slate-400, #94a3b8);
}

/* Coming soon: readable, clearly not clickable. The logo keeps its brand
   colour at reduced opacity rather than going greyscale — a grey logo on a
   grey card reads as broken artwork instead of a deliberate state. */
.dsm-platform-card.dsm-soon {
    cursor: default;
    background: #fbfcfd;
    border-color: var(--crm-slate-100, #f1f5f9);
}

.dsm-platform-card.dsm-soon .dsm-plat-logo {
    opacity: .4;
}

.dsm-platform-card.dsm-soon .dsm-plat-name {
    color: var(--crm-slate-400, #94a3b8);
}

.dsm-platform-card.dsm-soon .dsm-plat-cat {
    color: #b9c3d0;
}

.dsm-disc-btn {
    font-size: .65rem;
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 5px;
    left: 7px;
    padding: 2px;
    opacity: 0;
    transition: opacity .15s;
    line-height: 1;
    border-radius: 4px;
}

.dsm-disc-btn:hover {
    background: #fef2f2;
}

.dsm-platform-card.dsm-connected:hover .dsm-disc-btn {
    opacity: 1;
}

.dsm-plat-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-bottom: 6px;
    border-radius: 6px;
}

.dsm-plat-name {
    font-size: .78rem;
    font-weight: 600;
    color: var(--crm-slate-800, #1e293b);
    line-height: 1.3;
}

.dsm-plat-cat {
    font-size: .65rem;
    color: var(--crm-slate-400, #94a3b8);
    margin-top: 2px;
}

/* Auth step */
.dsm-auth-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: var(--crm-slate-50, #f8fafc);
    border: 2px solid var(--crm-slate-100, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* The authorize button is the whole point of step 2, so when nothing else is
   on the screen the stage centres it on both axes instead of letting it hang
   from the top of a 380px-tall body. 356px = the body's min-height less its
   .py-3 padding, so the stage fills exactly one bodyful and never scrolls. */
#addDatasourceModal .dsm-auth-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 356px;
}

/* With connected accounts above it, the button centres in whatever room the
   list leaves rather than in the body: one account and it still lands near the
   middle, a full list and it sits just below without forcing a scroll. */
#addDatasourceModal .dsm-auth-stack {
    display: flex;
    flex-direction: column;
    min-height: 356px;
}

#addDatasourceModal .dsm-auth-cta {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 0 2px;
}

/* Connected accounts list (step 2, already-connected platform) */
#addDatasourceModal .dsm-acct-head {
    margin-bottom: 10px;
}

#addDatasourceModal .dsm-acct-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#addDatasourceModal .dsm-acct-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1.5px solid var(--crm-slate-100, #f1f5f9);
    border-radius: 10px;
    background: #fff;
}

#addDatasourceModal .dsm-acct-name {
    font-size: .86rem;
    font-weight: 600;
    color: var(--crm-slate-800, #1e293b);
}

#addDatasourceModal .dsm-acct-meta {
    font-size: .73rem;
    color: var(--crm-slate-500, #64748b);
    margin-top: 1px;
}

#addDatasourceModal .dsm-acct-status {
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
}

#addDatasourceModal .dsm-acct-status-ok {
    color: #16803c;
    background: #e8f9ef;
    border-color: #b8ecc9;
}

#addDatasourceModal .dsm-acct-status-busy {
    color: #4338ca;
    background: #eef2ff;
    border-color: #c7d2fe;
}

#addDatasourceModal .dsm-acct-status-warn {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

#addDatasourceModal .dsm-acct-status-danger {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

/* Identity (credential) cards — step 2 */
#addDatasourceModal .dsm-cred-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#addDatasourceModal .dsm-cred-card {
    border: 1.5px solid var(--crm-slate-200, #e2e8f0);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

#addDatasourceModal .dsm-cred-card.dsm-cred-reconnect {
    border-color: #fecaca;
    background: #fffafa;
}

#addDatasourceModal .dsm-cred-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

#addDatasourceModal .dsm-cred-head-toggle {
    cursor: pointer;
    user-select: none;
}

#addDatasourceModal .dsm-cred-chevron {
    flex-shrink: 0;
    color: var(--crm-slate-500, #64748b);
    display: inline-flex;
    transition: transform .15s ease;
}

#addDatasourceModal .dsm-cred-open .dsm-cred-chevron {
    transform: rotate(180deg);
}

#addDatasourceModal .dsm-cred-accounts {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--crm-slate-200, #e2e8f0);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#addDatasourceModal .dsm-acct-row-sub {
    border: none;
    background: var(--crm-slate-50, #f8fafc);
    padding: 7px 10px;
}

#addDatasourceModal .dsm-acct-taken {
    opacity: .65;
}

#addDatasourceModal .dsm-disc-inline {
    position: static;
    opacity: .6;
    flex-shrink: 0;
}

#addDatasourceModal .dsm-disc-inline:hover {
    opacity: 1;
}

.dsm-browser-bar {
    background: var(--crm-slate-100, #f1f5f9);
    border-radius: 10px 10px 0 0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dsm-browser-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.dsm-browser-url {
    flex: 1;
    background: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .68rem;
    color: var(--crm-slate-400, #94a3b8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dsm-oauth-body {
    background: #fff;
    border: 1px solid var(--crm-slate-200, #e2e8f0);
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 20px;
    text-align: center;
}

/* Connecting pulse */
.dsm-pulse-wrap {
    position: relative;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.dsm-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #6366f1;
    animation: dsmPulse 1.5s ease-out infinite;
}

.dsm-pulse:nth-child(2) {
    animation-delay: .55s;
}

@keyframes dsmPulse {
    0% {
        transform: scale(.65);
        opacity: 1
    }

    100% {
        transform: scale(1.7);
        opacity: 0
    }
}

/* Campaign checklist */
.dsm-camp-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--crm-slate-100, #f1f5f9);
    cursor: pointer;
    transition: all .15s;
}

.dsm-camp-item:hover {
    border-color: #c7d2fe;
    background: #f8f9ff;
}

.dsm-camp-item.dsm-sel {
    border-color: #6366f1;
    background: #eef2ff;
}

.dsm-camp-item input[type=checkbox] {
    margin-top: 3px;
    accent-color: #6366f1;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.dsm-camp-name {
    font-size: .83rem;
    font-weight: 600;
    color: var(--crm-slate-800, #1e293b);
}

.dsm-camp-meta {
    font-size: .71rem;
    color: var(--crm-slate-500, #64748b);
    margin-top: 2px;
}

/* Sync toggles */
.dsm-sync-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--crm-slate-100, #f1f5f9);
}

.dsm-sync-label {
    font-size: .83rem;
    font-weight: 500;
    color: var(--crm-slate-800, #1e293b);
}

.dsm-sync-item .form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

/* Upload flow — match columns (step 3). One row per sheet column: the header
   and its first cells on the left, what it becomes on the right. Role rows
   (date / series) are tinted so the metric rows stand out; a column that is
   not imported fades rather than disappears, because "this is not going in"
   is information too. */
#addDatasourceModal .dsm-map-table {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#addDatasourceModal .dsm-map-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 6px 14px;
    align-items: start;
    padding: 9px 12px;
    border: 1.5px solid var(--crm-slate-100, #f1f5f9);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s, opacity .15s;
}

#addDatasourceModal .dsm-map-row:focus-within {
    border-color: #c7d2fe;
}

#addDatasourceModal .dsm-map-row.dsm-map-role {
    background: var(--crm-slate-50, #f8fafc);
}

#addDatasourceModal .dsm-map-row.dsm-map-off {
    opacity: .7;
}

#addDatasourceModal .dsm-map-row.dsm-map-off:focus-within {
    opacity: 1;
}

.dsm-map-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--crm-slate-800, #1e293b);
    word-break: break-word;
    line-height: 1.3;
}

.dsm-map-samples {
    margin-top: 3px;
    font-size: .7rem;
    color: var(--crm-slate-500, #64748b);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dsm-map-badge {
    display: inline-block;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 999px;
    border: 1px solid transparent;
    line-height: 1.5;
}

.dsm-map-badge-auto {
    color: var(--crm-slate-600, #475569);
    background: var(--crm-slate-100, #f1f5f9);
    border-color: var(--crm-slate-200, #e2e8f0);
}

.dsm-map-badge-ai {
    color: #4338ca;
    background: #eef2ff;
    border-color: #c7d2fe;
    cursor: help;
}

.dsm-map-badge-new {
    color: #16803c;
    background: #e8f9ef;
    border-color: #b8ecc9;
}

.dsm-map-note {
    margin-top: 4px;
    font-size: .7rem;
    line-height: 1.35;
    color: var(--crm-slate-500, #64748b);
}

.dsm-map-note-warn {
    color: #b45309;
}

/* Inline definition of a new metric, under its column's picker. */
.dsm-map-custom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}

.dsm-map-custom .dsm-map-full {
    grid-column: 1 / -1;
}

#addDatasourceModal .dsm-map-ai {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: .76rem;
    color: #4338ca;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
}

@media (max-width: 575.98px) {
    #addDatasourceModal .dsm-map-row {
        grid-template-columns: 1fr;
    }
}



/* Success checkmark SVG animation */
.dsm-check-circle {
    fill: none;
    stroke: #22c55e;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: dsmCircle .65s ease forwards;
}

.dsm-check-path {
    fill: none;
    stroke: #22c55e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: dsmCheckmark .4s .6s ease forwards;
}

@keyframes dsmCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes dsmCheckmark {
    to {
        stroke-dashoffset: 0;
    }
}

/* ── crm-left-sidebar-dark ── */

/* =============================================== 
 * PERFECT SIDEBAR FROM FRONTEND-UPDATES 
 * =============================================== */

/*! <--!----------------------------------------------------------------!--> <--!----------------------------------------------------------------!--> * Template Name: NEXEL - CRM Admin Dashboard Template * Description: Fully Responsive MultipurposeCRM Admin Dashboard Template. * Copyright: WRAPCODERS * Author: WRAPCODERS * Version: 1.0.0 * File: theme.min.css <--!----------------------------------------------------------------!--> <--!----------------------------------------------------------------!--> */

.nxl-header .header-wrapper .nxl-lavel-mega-menu-toggle,
.nxl-header .header-wrapper .nxl-navigation-toggle {
    line-height: normal
}

.nxl-header .header-wrapper .nxl-lavel-mega-menu-toggle a,
.nxl-header .header-wrapper .nxl-navigation-toggle a {
    color: var(--crm-heading, #283c50)
}

.nxl-header .header-wrapper .nxl-lavel-mega-menu-toggle i,
.nxl-header .header-wrapper .nxl-navigation-toggle i {
    line-height: 1;
    font-size: 24px
}

.nxl-header .header-wrapper .nxl-lavel-mega-menu-toggle i.feather-arrow-left,
.nxl-header .header-wrapper .nxl-navigation-toggle i.feather-arrow-left {
    font-size: 20px
}

.nxl-navigation {
    top: 0;
    bottom: 0;
    z-index: 1026;
    position: fixed;
    background: var(--crm-slate-900, #0f172a);
    width: 230px;
}

.nxl-navigation-footer {
    position: sticky;
    bottom: 0;
    z-index: 1040;
    background: var(--crm-slate-900, #0f172a);
    border-right: 1px solid #16213d;
}

.nxl-navigation .m-header {
    z-index: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    padding: 15px 16px;
    align-items: center;
    justify-content: center;
    height: 60px;
    background: var(--crm-slate-900, #0f172a);
    border-right: 1px solid #16213d;
    border-bottom: 1px solid #16213d;
}

.nxl-navigation .m-header .logo-sm {
    display: none
}

.nxl-navigation .navbar-content {
    padding: 10px 0;
    position: relative;
    border-right: 1px solid #16213d;
    height: calc(100vh - 60px);
}

.nxl-navigation .navbar-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0
}

.nxl-navigation .navbar-content .nxl-caption {
    display: block;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    padding: 15px 20px 10px;
    text-transform: uppercase
}

.nxl-navigation .navbar-content .nxl-caption label {
    margin-bottom: 0
}

.nxl-navigation .navbar-content .nxl-caption span:not(.badge) {
    display: block;
    color: #67758a;
    text-transform: capitalize;
    font-size: 10px;
    font-weight: 500
}

.nxl-navigation .navbar-content .nxl-micon {
    margin-right: 12px;
    display: inline-block;
    vertical-align: middle
}

.nxl-navigation .navbar-content .nxl-micon i {
    font-size: 18px
}

/* Forelab navigation icons: inline SVG on a 24 grid at a 1.5 stroke
   (set: assets/images/icons/forelab-nav-icons.svg). The main strokes take
   the link colour through currentColor, so every hover/active/current rule
   that colours the link colours the icon too. The detached piece carries the
   brand tint, the same idea as the pill in the logo. */
.nxl-navigation .navbar-content .nxl-micon .dx-nav-icon {
    display: block;
    width: 18px;
    height: 18px;
    color: inherit;
    overflow: visible
}

.nxl-navigation .navbar-content .nxl-micon .dx-nav-accent {
    stroke: var(--dx-nav-accent, #7d92e8);
    transition: stroke .3s ease
}

/* On the primary-blue current row the tint would sit at about 2:1, so it
   goes to a translucent white there. */
.nxl-navigation .navbar-content .nxl-link.is-current .dx-nav-accent {
    stroke: rgba(255, 255, 255, .62)
}

.nxl-navigation .navbar-content .nxl-link {
    display: block;
    line-height: 1.2;
    padding: 10px 15px;
    font-size: 13px;
    color: #fff;
    font-weight: 600;

}

.nxl-navigation .navbar-content .nxl-link.active,
.nxl-navigation .navbar-content .nxl-link:hover {
    text-decoration: none;
    color: #263f59;
    transition: all .3s ease
}

.nxl-navigation .navbar-content .nxl-link.active .nxl-micon i,
.nxl-navigation .navbar-content .nxl-link:hover .nxl-micon i {
    color: var(--crm-heading, #283c50);
    transition: all .3s ease
}

.nxl-navigation .navbar-content .nxl-arrow {
    float: right;
    transition: all .2s ease-in-out
}

.nxl-navigation .navbar-content .nxl-badge {
    margin-left: 8px
}

.nxl-navigation .navbar-content .nxl-submenu .nxl-link {
    font-size: .8rem;
    padding: 10px 20px;
    margin-left: 35px !important;
    margin-right: 5px !important
}

.nxl-navigation .navbar-content .nxl-submenu .nxl-submenu .nxl-link {
    margin-left: 45px !important
}

.nxl-navigation .navbar-content .nxl-submenu .nxl-submenu .nxl-submenu .nxl-link {
    margin-left: 55px !important
}

.nxl-navigation .navbar-content .nxl-item.disabled a {
    cursor: not-allowed;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none
}

.nxl-navigation .navbar-content .nxl-item.active>.nxl-link,
.nxl-navigation .navbar-content .nxl-item:hover>.nxl-link {
    color: var(--crm-navy, #001327);
    background-color: #eaebef;
    transition: all .3s ease
}

.nxl-navigation .navbar-content .nxl-item.active>.nxl-link .nxl-micon i,
.nxl-navigation .navbar-content .nxl-item:hover>.nxl-link .nxl-micon i {
    color: #fff;
    transition: all .3s ease
}

.nxl-navigation .navbar-content .nxl-navbar>.nxl-item.active>.nxl-link,
.nxl-navigation .navbar-content .nxl-navbar>.nxl-item:hover>.nxl-link {

    color: #fff;
    background-color: var(--crm-heading, #283c50);
    transition: all .3s ease
}

.nxl-navigation .navbar-content .nxl-hasmenu.nxl-trigger>.nxl-submenu {
    display: block
}

.nxl-navigation .navbar-content .nxl-hasmenu.nxl-trigger>.nxl-link>.nxl-arrow {
    transform: rotate(90deg)
}

.nxl-navigation .navbar-content .card {
    margin: 20px;
    color: var(--crm-heading, #283c50);
    background: var(--crm-border-soft, #eff0f6);
    border-color: var(--crm-gray-200, #e5e7eb)
}

html:not(.minimenu) .nxl-navigation .nxl-link {
    margin: 3px 15px;
    border-radius: 5px
}

html:not(.minimenu) .nxl-navigation .nxl-submenu {
    position: relative
}

html:not(.minimenu) .nxl-navigation .nxl-submenu .nxl-item {
    margin: 3px 10px;
    border-radius: 5px
}

html:not(.minimenu) .nxl-navigation .nxl-submenu .nxl-submenu>.nxl-item:before {
    left: 60px
}

html:not(.minimenu) .nxl-navigation .nxl-submenu .nxl-submenu .nxl-submenu>.nxl-item:before {
    left: 80px
}

html.minimenu .nxl-navigation {
    width: 100px;

}

html.minimenu .nxl-navigation .logo-sm {
    width: 42px;
    display: block;

}

html.minimenu .nxl-navigation .card,
html.minimenu .nxl-navigation .logo-lg,
html.minimenu .nxl-navigation .nxl-arrow,
html.minimenu .nxl-navigation .nxl-mtext {
    display: none;

}

html.minimenu .nxl-navigation .navbar-content {
    width: 100px;

}

html.minimenu .nxl-navigation .navbar-content .nxl-link {
    margin: 0 20px;
    padding: 12px 20px;
    border-radius: 6px 6px
}

html.minimenu .nxl-navigation .navbar-content .nxl-hasmenu.nxl-trigger>.nxl-submenu {
    display: none
}

html.minimenu .nxl-navigation .navbar-content .nxl-caption {
    position: relative
}

html.minimenu .nxl-navigation .navbar-content .nxl-caption:before {
    top: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    font-size: 16px;
    padding-left: 20px;
    content: "\e9a4";
    position: absolute;
    font-family: feather !important
}

html.minimenu .nxl-navigation .navbar-content .nxl-caption label {
    display: none
}

body.modal-open .nxl-container,
body.modal-open .nxl-header,
body.modal-open .nxl-navigation,
body.modal-open .page-header {
    filter: blur(3px);
    transition: all .2s linear
}

/* A `filter` makes an element the containing block for its `position: fixed`
   descendants. The moment `.modal-open` lands, the fixed containing block stops
   being the viewport and becomes these blurred boxes, which are the size of the
   whole document. Measured on a 430x932 phone: the containing block jumps to
   710x1539, so `.modal { height: 100% }` resolves to 1539px and centres the
   dialog over the document rather than the screen, while Bootstrap's scrollbar
   compensation computes |710 - 430| and writes an inline `padding-right: 280px`
   onto `.modal` — the phantom horizontal scroll, with document.scrollWidth 710
   instead of 430.
   Desktop has room to absorb both and is left alone. Below 992px the blur is
   moved onto the backdrop via backdrop-filter, which looks the same and creates
   no containing block. */
@media (max-width: 991.98px) {
    body.modal-open .nxl-container,
    body.modal-open .nxl-header,
    body.modal-open .nxl-navigation,
    body.modal-open .page-header {
        filter: none;
    }

    .modal-backdrop.show {
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
    }
}

/*! <--!----------------------------------------------------------------!--> * Customizer CSS <--!----------------------------------------------------------------!--> */

html.app-navigation-dark .nxl-navigation {
    background: var(--crm-slate-900, #0f172a)
}

html.app-navigation-dark .nxl-navigation .m-header {
    background: var(--crm-slate-900, #0f172a);
    border-right: 1px solid var(--crm-dark-surface-alt, #1b2436);
    border-bottom: 1px solid #16213d
}

html.app-navigation-dark .nxl-navigation .m-header .logo-lg {
    filter: invert(1)
}

html.app-navigation-dark .nxl-navigation .navbar-content {
    border-right: 1px solid var(--crm-dark-surface-alt, #1b2436)
}

html.app-navigation-dark .nxl-navigation .navbar-content .nxl-caption {
    color: #fff
}

html.app-navigation-dark .nxl-navigation .navbar-content .nxl-link {
    color: var(--crm-muted-soft, #b1b4c0)
}

html.app-navigation-dark .nxl-navigation .navbar-content .nxl-link:active,
html.app-navigation-dark .nxl-navigation .navbar-content .nxl-link:focus,
html.app-navigation-dark .nxl-navigation .navbar-content .nxl-link:hover {
    color: #fff
}

html.app-navigation-dark .nxl-navigation .navbar-content .nxl-link:active .nxl-micon i,
html.app-navigation-dark .nxl-navigation .navbar-content .nxl-link:focus .nxl-micon i,
html.app-navigation-dark .nxl-navigation .navbar-content .nxl-link:hover .nxl-micon i {
    color: #fff
}

html.app-navigation-dark .nxl-navigation .navbar-content .nxl-navbar>.nxl-item.active>.nxl-link,
html.app-navigation-dark .nxl-navigation .navbar-content .nxl-navbar>.nxl-item:focus>.nxl-link,
html.app-navigation-dark .nxl-navigation .navbar-content .nxl-navbar>.nxl-item:hover>.nxl-link {
    background-color: var(--crm-dark-surface, #1c2438)
}

html.app-navigation-dark .nxl-navigation .navbar-content .nxl-item.active>.nxl-link,
html.app-navigation-dark .nxl-navigation .navbar-content .nxl-item:focus>.nxl-link,
html.app-navigation-dark .nxl-navigation .navbar-content .nxl-item:hover>.nxl-link {
    color: #fff;
    background-color: var(--crm-dark-surface, #1c2438)
}

html.app-navigation-dark .nxl-navigation .navbar-content .nxl-item.active>.nxl-link .nxl-micon i,
html.app-navigation-dark .nxl-navigation .navbar-content .nxl-item:focus>.nxl-link .nxl-micon i,
html.app-navigation-dark .nxl-navigation .navbar-content .nxl-item:hover>.nxl-link .nxl-micon i {
    color: #fff
}

html.app-navigation-dark .nxl-navigation .navbar-content .card {
    margin: 20px;
    border-color: var(--crm-heading, #283c50);
    color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15)
}

html.app-navigation-dark .nxl-navigation .navbar-content .card .text-dark {
    color: #fff !important
}

html.app-navigation-dark.minimenu .nxl-navigation:hover .navbar-content {
    background-color: var(--crm-slate-900, #0f172a);
    border-right: 1px solid var(--crm-dark-surface-alt, #1b2436)
}

html.app-header-dark .nxl-navigation .m-header {
    background: var(--crm-slate-900, #0f172a);
    border-bottom: 1px solid var(--crm-dark-surface-alt, #1b2436);
    border-right: 1px solid var(--crm-dark-surface-alt, #1b2436)
}

html.app-header-dark .nxl-navigation .m-header .logo-lg {
    filter: invert(1)
}

html.app-header-dark .nxl-header .header-wrapper .nxl-navigation-toggle a#menu-expend-button,
html.app-header-dark .nxl-header .header-wrapper .nxl-navigation-toggle a#menu-mini-button {
    color: #fff
}

html.app-skin-dark .nxl-navigation {
    background: var(--crm-slate-900, #0f172a)
}

html.app-skin-dark .nxl-navigation .m-header {
    background: var(--crm-slate-900, #0f172a);
    border-right: 1px solid var(--crm-dark-surface-alt, #1b2436);
    border-bottom: 1px solid #16213d
}

html.app-skin-dark .nxl-navigation .m-header .logo-lg {
    filter: invert(1)
}

html.app-skin-dark .nxl-navigation .navbar-content {
    border-right: 1px solid var(--crm-dark-surface-alt, #1b2436)
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-caption {
    color: #fff
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-link {
    color: var(--crm-muted-soft, #b1b4c0)
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-link:active,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-link:focus,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-link:hover {
    color: #fff
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-link:active .nxl-micon i,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-link:focus .nxl-micon i,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-link:hover .nxl-micon i {
    color: #fff
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-navbar>.nxl-item.active>.nxl-link,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-navbar>.nxl-item:focus>.nxl-link,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-navbar>.nxl-item:hover>.nxl-link {
    background-color: var(--crm-dark-surface, #1c2438)
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-item.active>.nxl-link,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:focus>.nxl-link,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:hover>.nxl-link {
    color: #fff;
    background-color: var(--crm-dark-surface, #1c2438)
}

html.app-skin-dark .nxl-navigation .navbar-content .nxl-item.active>.nxl-link .nxl-micon i,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:focus>.nxl-link .nxl-micon i,
html.app-skin-dark .nxl-navigation .navbar-content .nxl-item:hover>.nxl-link .nxl-micon i {
    color: #fff
}

html.app-skin-dark .nxl-navigation .navbar-content .card {
    margin: 20px;
    border-color: var(--crm-heading, #283c50);
    color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .05);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .15)
}

html.app-skin-dark .nxl-navigation .navbar-content .card .text-dark {
    color: #fff !important
}

html.app-skin-dark.minimenu .nxl-navigation:hover .navbar-content {
    background-color: var(--crm-slate-900, #0f172a);
    border-right: 1px solid var(--crm-dark-surface-alt, #1b2436)
}

/*! <--!----------------------------------------------------------------!--> * Responsive CSS <--!----------------------------------------------------------------!--> */

/* Widened from 1024px to 1199.98px so the nav-collapse / header-reset
   breakpoint matches the responsive layout system used elsewhere
   (page-header, nxl-container margin-left, etc.). Without this, the
   range 1024.01–1199.98px showed a full-width sidebar gap with no
   sidebar — `.nxl-header` kept `left: 230px` while content reflowed. */
@media (max-width: 1199.98px) {

    .nxl-header .nxl-navigation-toggle {
        display: none
    }

    /* Sidebar slides off-screen, so the header must span the full width */
    .nxl-header {
        left: 0 !important;
    }

    /* Show the hamburger toggle that opens the sidebar */
    .nxl-head-mobile-toggler {
        display: inline-flex !important;
        align-items: center;
    }

    .nxl-navigation {
        left: -280px;
        box-shadow: none;
        transition: all .15s ease-in-out
    }

    .nxl-navigation.mob-navigation-active {
        left: 0 !important
    }

    .nxl-navigation.mob-navigation-active .navbar-wrapper {
        position: relative;
        z-index: 5;
        background: inherit
    }

    /* `minimenu` offsets the content/page-header by 100px to clear the
       collapsed rail — but below 1200px the rail is off-canvas (left: -280px
       above), so that offset is a gap against a sidebar that isn't there.
       theme.min.css only zeroes `.minimenu .nxl-container` inside its own
       `@media (max-width:1024px)` block, which left 1024.01–1199.98px
       indented with blank space where the nav used to be. */
    html.minimenu .nxl-container {
        margin-left: 0;
    }

    html.minimenu .page-header {
        left: 0;
    }
}


/* Full width mega menu dropdown */

/* Small screens: stack panels vertically */

/* ── Mega-menu inner flex layout ── */

/* ── Left panel: account list ── */

/* ── Right panel: account details ── */

/* Tab headers */

/* Account info table */

/* Insights section */

/* Metric cards */

/* ── Platform Badges ── */

/* ── Section Labels ── */

/* 3-dot menu appears only on hover */

.nxl-navigation .navbar-profile {
    overflow: visible;
    display: flex;
    padding: 12px 16px;
    align-items: center;
    background: var(--crm-slate-900, #0f172a);
    border-right: 1px solid #16213d;
    width: 100%;
    color: var(--crm-muted-soft, #b1b4c0);
}

/* Hover only around the avatar + name link, not the whole footer */
.navbar-profile .sidebar-profile-link {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--crm-muted-soft, #b1b4c0);
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar-profile .sidebar-profile-link:hover {
    background: var(--crm-dark-surface, #1c2438);
    color: #fff;
}


/* When sidebar is collapsed, hide profile text and center the avatar */
html.minimenu .nxl-navigation .navbar-profile {
    justify-content: center;
    padding: 12px 0;
}

html.minimenu .nxl-navigation .navbar-profile .sidebar-profile-link {
    justify-content: center;
    width: 70px !important;
    padding: 6px !important;
    margin: 0 auto;
}

html.minimenu .nxl-navigation .navbar-profile #sidebar-username,
html.minimenu .nxl-navigation .navbar-profile #sidebar-role {
    display: none;
}

html.minimenu .nxl-navigation .navbar-profile .sidebar-profile-link .avatar-image {
    margin-right: 0 !important;
}

/* Primary background for the actual current link */
.nxl-navigation .navbar-content .nxl-link.is-current,
.nxl-navigation .navbar-content .nxl-link.is-current:hover {
    background-color: var(--bs-primary, var(--crm-primary, #3454d1)) !important;
    color: #fff !important;
}

.nxl-navigation .navbar-content .nxl-link.is-current .nxl-micon i {
    color: #fff !important;
}


.navbar-profile .dropdown-menu.nxl-user-dropdown {

    min-width: 250px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0.375rem !important;
}

.navbar-profile .dropdown-menu .dropend {
    position: relative;

}

.navbar-profile .dropdown-menu .dropend .dropdown-menu {
    position: absolute;
    top: 0 !important;
    left: 0% !important;
    margin-left: 0 !important;
}

/* Optional: make the border colour identical if it changed */

/* ================== SIDEBAR ================== */

/* ================== HEADER ================== */

/* ================== CHAT BODY ================== */

/* The Number Bubble */


/* 1. Progress Steps */

/* 2. Main Card */

/* 3. Radio Cards */

/* Selected State: Uses theme Primary Border + Soft Primary BG */

/* Icons */

/* Using Theme Colors for Icons */

/* Checkmark Badge */

/* Text Colors */

/* text-dark */




/*LOGIN ANIMATIONS*/

/* Dashboard Preview Container */




/* Social Media Icons Container */

/* Social Icon Positions and Colors */

/* Dashboard Header */

/* Metrics Row */

/* Charts Section */

/* Bar Chart */

/* Circular Progress */

/* Line Chart */

/* Keyframes */

/* Responsive */

/* ═══════════════════════════════════════════════════════════════
   Page Header: in-flow positioning
   ─────────────────────────────────────────────────────────────
   Previously .page-header was position:fixed globally, which forced
   every page to compensate with padding-top:95px on .main-content
   (65px fixed bar + 30px gap). That made it impossible to share a
   single canonical .main-content padding across pages.

   Now .page-header sits in normal document flow. Every page gets
   the theme's default `.nxl-container .nxl-content .main-content
   { padding: 30px }` and the header bar simply stacks above it.

   Pages that genuinely need a pinned/sticky header (e.g. dashboards,
   which has a scroll-locked grid) re-introduce `position: fixed`
   via their own page-scoped stylesheet — see
   dashboards-page.css → `body[data-page="dashboards"] .page-header`.
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   Content Sidebar: Pin-Close / Collapse Toggle
   ═══════════════════════════════════════════════════════════════ */

/* ── Dock the content sidebar on tablets too ───────────────────────────────
 * theme.min.css turns the content sidebar (settings / mail / chat menus) into
 * an off-canvas drawer for EVERY width below 1200px — absolute, translated
 * -100%, visibility hidden. On a landscape tablet (992-1199px) there is room
 * for a 250px menu beside the content, and hiding it there reads as the
 * settings menu having disappeared: the only way back is a 24px trigger next
 * to the page title. Below 992px the drawer is right (the main navigation is
 * a drawer there too), so this override stops at that breakpoint.
 * ------------------------------------------------------------------------ */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nxl-container.apps-container .nxl-content.without-header .main-content .content-sidebar {
        z-index: auto;
        opacity: 1;
        position: relative;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }
}

.content-sidebar {
    transition: width 0.22s ease, min-width 0.22s ease, max-width 0.22s ease;
}

.sidebar-pin-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--crm-gray-200, #e5e7eb);
    color: #6b7280;
    cursor: pointer;
    border-radius: 6px;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-pin-toggle:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.sidebar-pin-toggle i,
.sidebar-pin-toggle svg {
    width: 15px;
    height: 15px;
    pointer-events: none;
}

html.app-skin-dark .sidebar-pin-toggle {
    border-color: var(--crm-slate-700, #334155);
    color: var(--crm-slate-400, #94a3b8);
}

html.app-skin-dark .sidebar-pin-toggle:hover {
    background: var(--crm-slate-800, #1e293b);
    color: var(--crm-slate-200, #e2e8f0);
    border-color: var(--crm-slate-600, #475569);
}

.content-sidebar.sidebar-pinned-closed {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden !important;
    border-right: none !important;
    padding: 0 !important;
}

/* Open trigger visibility is managed by JS (initSidebarPinToggle in header-sidebar.js) */
/* Override theme.min.css which hides the open trigger on desktop with !important.
   When the sidebar is pinned-closed we must show the reopen trigger. */
@media (min-width: 1200px) {
    .nxl-container.apps-container .nxl-content.without-header .main-content .content-sidebar.sidebar-pinned-closed~.content-area .app-sidebar-open-trigger {
        display: inline-flex !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   ≤ 600px  Responsive tweaks
───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {

    /* 1. Header mega-menu trigger — keep only the chevron arrow */
    #activeAccountBtn .menu-title {
        display: none !important;
    }

    /* 2. Sidebar "Add New Workspace" btn — keep only the + icon */
    #addNewWorkspaceBtn .menu-title {
        display: none !important;
    }

    /* 3. Page-content "New Workspace" btn — keep only the + icon */
    #wsHeaderNewBtn span {
        display: none !important;
    }

    #wsHeaderNewBtn i {
        margin-right: 0 !important;
    }

}

/* ─────────────────────────────────────────────────────────────
   ≤ 767.98px  Account mega-menu becomes a full-screen sheet
   ─────────────────────────────────────────────────────────────
   On phones the 880px dropdown was clipped to `calc(100vw - 32px)` and the
   details pane was hidden outright, so a workspace name could not be read in
   full and its platforms/details were unreachable. Below the tablet break the
   menu leaves the popover model entirely: it pins under the 60px header and
   fills the rest of the viewport, both panels stacked in one scroll surface.

   The box rules carry the full `.nxl-header .header-wrapper …` prefix on
   purpose — chatbot.css caps `.mega-menu-fullwidth` width with `!important`
   when the assistant panel is open, and only a higher-specificity selector
   takes that back.
─────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    .nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown.mega-menu-fullwidth {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        /* Border colour is left to the base rule (and its dark-mode override). */
        box-shadow: none;
        overflow: hidden;
        /* Bootstrap toggles `display` on .show; keep the closed state hidden. */
        flex-direction: column;
    }

    .nxl-header .header-wrapper .nxl-mega-menu .nxl-h-dropdown.mega-menu-fullwidth.show {
        display: flex !important;
    }

    /* One scroll surface for both stacked panels. */
    .mega-menu-fullwidth>.d-lg-flex.align-items-start {
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Workspace list: full width, no inner cap — the sheet scrolls instead. */
    #accountTabList.nxl-mega-menu-tabs {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        max-height: none;
        overflow: visible;
        border-right: none;
        border-bottom: 1px solid #e8e9ee;
        padding: 14px !important;
    }

    .mega-menu-fullwidth .nxl-mega-menu-tabs .workspace-scroll {
        min-height: 0;
        max-height: none;
        overflow: visible;
    }

    /* Long workspace names must read in full, not ellipsize into the gutter. */
    .mega-menu-fullwidth .nxl-mega-menu-tabs .nav-link {
        padding: 12px 14px !important;
        white-space: normal;
        word-break: break-word;
    }

    /* No `!important`: `.d-none` (set until a workspace is picked) must still win. */
    #accountDetailsPane {
        display: block;
        width: 100% !important;
        max-height: none;
        overflow: visible;
        padding: 16px 14px !important;
    }

    #accountDetailsPane .mb-3.d-flex {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Label column of the details table stops squeezing the value at 130px. */
    #accountDetailsPane .table-borderless td:first-child {
        width: auto;
    }

    /* The sheet owns the viewport while open — stop the page scrolling under it. */
    body.account-menu-open {
        overflow: hidden;
    }
}

/* Note: the responsive sidebar collapse and `mob-navigation-active`
   open-state rule live in the canonical `@media (max-width: 1199.98px)`
   block above (the theme's own responsive block, widened from 1024px).
   The duplicate transform-based Option B that was here previously has
   been removed in favor of the `left`-based system the theme JS uses. */

/* ─────────────────────────────────────────────────────────────
   daterangepicker on a phone
   ─────────────────────────────────────────────────────────────
   The vendor plugin appends its panel to <body> with an inline `left` measured
   from the trigger, and lays the ranges list and two calendars out side by side
   — roughly 600px. Off a right-aligned button on a 390px screen that lands
   mostly off-screen. Pin it to the viewport and stack its columns.

   Global on purpose: the same picker is the dashboard date range, the report
   command bar's range control, and the activity/log filters.
───────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .daterangepicker {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: calc(100vw - 16px);
    overflow-x: auto;
  }

  .daterangepicker .ranges {
    float: none;
    width: 100%;
  }

  .daterangepicker .ranges ul {
    width: 100%;
  }

  .daterangepicker .drp-calendar {
    float: none;
    clear: both;
    max-width: 100%;
  }

  /* The little caret points at a trigger the panel is no longer aligned to. */
  .daterangepicker:before,
  .daterangepicker:after {
    display: none;
  }
}

/* Forelab symbol: fixed square in the sidebar header, and never
   color-inverted — the gradient mark must keep its colors in the dark
   navigation/header/skin themes (theme rules invert .logo-lg there). */
.nxl-navigation .m-header .logo-lg,
.nxl-navigation .m-header .logo-sm {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

html.app-navigation-dark .nxl-navigation .m-header .logo-lg,
html.app-header-dark .nxl-navigation .m-header .logo-lg,
html.app-skin-dark .nxl-navigation .m-header .logo-lg {
    filter: none;
}

/* Expanded sidebar shows only logo-lg; html.minimenu already swaps them
   (hides .logo-lg, sets .logo-sm display:block at higher specificity). */
.nxl-navigation .m-header .logo-sm {
    display: none;
}

/* Sora remains available to the monitor and other product surfaces. */
@font-face {
    font-family: "Sora";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/sora-700-latin.woff2") format("woff2");
}

.nxl-navigation .m-header .b-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.nxl-navigation .m-header .b-brand-wordmark {
    display: block;
    /* Forelab wordmark (457 x 100): 114px keeps the old 25px cap height. */
    width: 114px;
    height: auto;
    flex: 0 0 auto;
}

html.minimenu .nxl-navigation .b-brand-wordmark {
    display: none;
}

/* =============================================================
 * Tooltip helper ([data-tip])
 * -------------------------------------------------------------
 * Lives here, not in workspace.css, because dashboards.html never loads
 * workspace.css — so the datasource chips on dashboard cards had the markup
 * for a tooltip and no rule to render it. header-sidebar.css is on every
 * page, which makes this the only correct home for a shared helper.
 *
 * Self-contained colours on purpose: the old copy referenced --ws-tooltip-*,
 * which are declared in workspace.css and would be undefined anywhere else.
 * ============================================================= */
[data-tip] {
  position: relative;
}

[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: #f9fafb;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  /* Bounded and wrapping, NOT nowrap. These tips can carry a sync error from
     the provider, and a single unbroken line ran off both edges of the
     viewport — which read as a black band across the page rather than a
     tooltip. overflow-wrap catches the long URLs those errors contain. */
  max-width: 260px;
  width: max-content;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s;
  z-index: 50;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .25);
}

[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
}

/* Empty data-tip would otherwise paint a bare 4x8px chip on hover. */
[data-tip=""]::after {
  content: none;
}

html.app-skin-dark [data-tip]::after {
  background: var(--crm-slate-50, #f8fafc);
  color: var(--crm-slate-900, #0f172a);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .55);
}


/* ── Notifications: shared presentation (bell + notifications page) ──────
   Built by window.CRMNotificationView in header-sidebar.js. A notice reads
   like a mail in an inbox: who/what spoke (category icon), the headline, a
   severity chip only when it matters, the time, and the message itself —
   two lines in the list, the whole of it (bullets kept) once opened. */
:root {
    --ntf-text: var(--crm-heading, #283c50);
    --ntf-strong: #1f2937;
    --ntf-muted: #6b7280;
    --ntf-faint: #9aa4b2;
    --ntf-hover: #f6f8fb;
    --ntf-open: #f8fafc;
    --ntf-hairline: #eef1f6;
    --ntf-unread: var(--crm-primary, #3454d1);
}
html.app-skin-dark {
    --ntf-text: #cbd5e1;
    --ntf-strong: #f1f5f9;
    --ntf-muted: #94a3b8;
    --ntf-faint: #64748b;
    --ntf-hover: rgba(255, 255, 255, .04);
    --ntf-open: rgba(255, 255, 255, .03);
    --ntf-hairline: rgba(255, 255, 255, .08);
}

.ntf-ico {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    background: rgba(var(--crm-primary-rgb, 52, 84, 209), .1);
    color: var(--crm-primary, #3454d1)
}
.ntf-ico-danger { background: rgba(234, 77, 77, .12); color: var(--crm-danger, #ea4d4d) }
.ntf-ico-warning { background: rgba(255, 162, 29, .15); color: var(--crm-warning, #ffa21d) }
.ntf-ico.ntf-cat-tasks.ntf-ico-primary { background: rgba(32, 201, 151, .12); color: #20c997 }
.ntf-ico.ntf-cat-goals.ntf-ico-primary { background: rgba(102, 16, 242, .1); color: #6610f2 }
.ntf-ico.ntf-cat-team_messages.ntf-ico-primary,
.ntf-ico.ntf-cat-team.ntf-ico-primary { background: rgba(13, 202, 240, .12); color: #0aa2c0 }
.ntf-ico.ntf-cat-connections.ntf-ico-primary { background: rgba(253, 126, 20, .12); color: #fd7e14 }

.ntf-chip {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 3px 7px;
    vertical-align: 1px
}

.ntf-text { color: var(--ntf-text); font-size: 12.5px; line-height: 1.5; word-break: break-word }
.ntf-text p { margin: 0 }
.ntf-text p + p, .ntf-text p + ul, .ntf-text ul + p { margin-top: 4px }
/* The theme lays dropdown lists out in a row; a message's bullets are a
   plain vertical list wherever they render. */
.ntf-text ul { display: block !important; margin: 2px 0 0; padding-left: 16px; list-style: disc }
.ntf-text li { display: list-item !important; float: none; width: auto; margin: 1px 0; padding: 0 }
.ntf-text li::marker { color: var(--ntf-faint) }
.ntf-text .ntf-chip { margin-right: 5px }

.ntf-link {
    background: none;
    border: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--crm-primary, #3454d1);
    text-decoration: none;
    cursor: pointer
}
.ntf-link:hover { text-decoration: underline }
/* The dark header paints every link in a dropdown white; actions stay brand. */
html.app-skin-dark .ntf-link,
html.app-skin-dark .nxl-header .header-wrapper .nxl-notifications-menu .ntf-link { color: #8fa4f0 !important }

/* Bell rows */
.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item.ntf-row {
    gap: 11px;
    padding: 11px 14px 11px 16px;
    position: relative
}
.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item.ntf-row + .notifications-item {
    border-top-color: var(--ntf-hairline)
}
.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item.ntf-row:hover { background: var(--ntf-hover) }
.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item.ntf-row.is-expanded { background: var(--ntf-open) }
.nxl-header .header-wrapper .nxl-notifications-menu .notifications-item.ntf-row.is-unread::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 24px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ntf-unread)
}
.ntf-row-head { display: flex; align-items: baseline; gap: 6px; min-width: 0 }
.nxl-header .header-wrapper .nxl-notifications-menu .ntf-row .notifications-title {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ntf-text)
}
.nxl-header .header-wrapper .nxl-notifications-menu .ntf-row.is-unread .notifications-title { color: var(--ntf-strong) }
.ntf-time { margin-left: auto; flex: 0 0 auto; font-size: 11px; color: var(--ntf-faint); white-space: nowrap }
.ntf-source { font-size: 11.5px; color: var(--ntf-muted); margin-top: 1px }
.nxl-header .header-wrapper .nxl-notifications-menu .ntf-row .ntf-text { margin-top: 4px; font-size: 12px; color: var(--ntf-muted) }
.ntf-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}
.ntf-row.is-expanded .ntf-clamp {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    color: var(--ntf-text)
}
.ntf-row:not(.is-expanded) .ntf-clamp ul { padding-left: 14px }
.ntf-actions { display: flex; gap: 14px; margin-top: 6px }
.ntf-row:focus-visible { outline: 2px solid rgba(var(--crm-primary-rgb, 52, 84, 209), .5); outline-offset: -2px }

/* ── "Ask Buddy" outside the app header ───────────────────────────────────
   A dashboard or report in its own tab has no app header, and neither does
   edit mode, so the header's button also sits in the page header and in the
   edit bar (button.buddy-head-link.buddy-entry[data-buddy-open="panel"]). It
   is the SAME button: its look lives in buddy.css, in the rules the header
   button uses. Only where and when it shows is decided here: hidden until
   header-sidebar.js knows the user may use the assistant (html.buddy-allowed,
   set with buddy.css in loadChatbotWidget), and in the page header only
   where the app header is gone. */
.buddy-entry { display: none !important; }
html.buddy-allowed .edit-command-bar .buddy-entry,
html.buddy-allowed.dashboard-embed .page-header .buddy-entry,
html.buddy-allowed.report-embed .page-header .buddy-entry {
    display: inline-flex !important
}
/* The side panel is open: the page header lost the panel's width, and the
   button now only closes the panel, so it folds to its mark (as it does on a
   phone) and leaves the room to the filters, the date range and Edit. */
body.chatbot-open:not(.chatbot-fullscreen) .page-header .buddy-entry .buddy-head-label { display: none !important }
body.chatbot-open:not(.chatbot-fullscreen) .page-header .buddy-entry { padding: 0 6px }
/* The edit bars fold their labels by their own width (gridstack-custom.css
   `ecb`, report-edit.css `rcb`); this label goes at their first fold. */
@container ecb (max-width: 1320px) {
    .edit-command-bar .buddy-entry .buddy-head-label { display: none !important }
    .edit-command-bar .buddy-entry { padding: 0 6px }
}
@container rcb (max-width: 1260px) {
    #report-command-bar .buddy-entry .buddy-head-label { display: none !important }
    #report-command-bar .buddy-entry { padding: 0 6px }
}
/* Paid studio not on for this workspace: a small lock after the link text
   (header-sidebar.js markLockedStudios). Inside .nxl-mtext, so the mini menu hides it too. */
.nxl-navigation .nxl-studio-lock { margin-left: 6px; font-size: 11px; opacity: .6; vertical-align: 0; }
.nxl-navigation .nxl-link:hover .nxl-studio-lock { opacity: .85; }
