/* Native mobile navigation: full-screen sheet + contextual glass tab bar. */

.pc-nav-back,
.pc-tabbar,
.pc-sidebar-sheet__handle {
    display: none;
}

/*
 * Vuexy deja .sidenav-overlay con display:block + opacity:0 + visibility:hidden
 * pero SIN pointer-events:none. En desktop bloquea todos los clicks del sidebar
 * y del contenido. Solo debe capturar clicks cuando el drawer móvil está abierto.
 */
.sidenav-overlay,
.drag-target {
    pointer-events: none !important;
}

body.menu-open .sidenav-overlay,
body.pc-nav-open .sidenav-overlay,
.sidenav-overlay.show {
    pointer-events: auto !important;
}

@media (min-width: 992px) {
    .pc-infinite__more {
        display: none !important;
    }

    .sidenav-overlay,
    .drag-target {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }
}

/* The SVG only owns reusable filter definitions. Keep it out of layout on every
   breakpoint; otherwise desktop browsers give the empty SVG a 300x150 box. */
.pc-tabbar__defs {
    height: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    width: 0;
}

@property --navbar-height {
    syntax: "<length>";
    inherits: true;
    initial-value: 52px;
}

@media (max-width: 991.98px) {
    :root {
        --pc-tabbar: calc(72px + max(10px, calc(env(safe-area-inset-bottom, 0px) - 6px)));
        --navbar-height: 62px;
    }

    body.pc-chrome-compact {
        --navbar-height: 52px;
    }

    /* height:100% + overflow-x:hidden (Vuexy) convierte html/body en un
       scrollport del alto de la pantalla y en iOS el documento deja de
       moverse. Las páginas que no son la bandeja crecen con el contenido. */
    html,
    html body {
        height: auto !important;
        max-height: none !important;
        min-height: 100%;
        overflow-x: clip !important;
        overflow-y: visible !important;
        overscroll-behavior-y: none;
    }

    html:has(#crmInbox),
    html:has(#crmTemplates),
    html:has(#crmInbox) body,
    html:has(#crmTemplates) body,
    body.pc-crm-inbox,
    body.pc-nav-open,
    body.menu-open {
        height: var(--vvh, 100dvh) !important;
        max-height: var(--vvh, 100dvh) !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .pc-ptr {
        align-items: flex-end;
        display: flex;
        height: var(--pc-ptr, 0px);
        justify-content: center;
        left: 0;
        overflow: hidden;
        pointer-events: none;
        position: fixed;
        right: 0;
        top: calc(var(--navbar-height, 76px) + env(safe-area-inset-top, 0px));
        z-index: 35;
    }

    body.pc-crm-inbox .pc-ptr,
    body.pc-crm-thread .pc-ptr {
        top: calc(env(safe-area-inset-top, 0px) + var(--wa-head, 76px));
        transition: top .38s cubic-bezier(.22, 1, .36, 1);
    }

    body.pc-crm-inbox:has(.crm-wa__list-head.is-compact) .pc-ptr {
        top: calc(env(safe-area-inset-top, 0px) + 52px);
    }

    .pc-ptr__track {
        align-items: center;
        color: var(--gray-50, #71717a);
        display: flex;
        height: 56px;
        justify-content: center;
        opacity: .35;
        transform: scale(.86);
        transition: opacity .18s ease, transform .18s ease;
    }

    .pc-ptr.is-ready .pc-ptr__track,
    .pc-ptr.is-busy .pc-ptr__track {
        opacity: 1;
        transform: scale(1);
    }

    .crm-wa__list,
    .crm-tpl__shell,
    .app-content.content,
    .header-navbar,
    .pc-appbar,
    .crm-wa__list-head,
    body.pc-ptr-active .header-navbar,
    body.pc-ptr-active .pc-appbar,
    body.pc-ptr-active .crm-wa__list-head,
    body.pc-ptr-active .app-content.content,
    body.pc-ptr-active .crm-wa__list {
        transform: none !important;
    }

    #threadList,
    .crm-tpl__rows {
        transition: transform .2s cubic-bezier(.22, 1, .36, 1);
    }

    body.pc-ptr-active #threadList,
    body.pc-ptr-active .crm-tpl__rows {
        transition: none;
    }

    /* Listas de página: el scroll es del documento; no crear scrollport ni
       atrapar el gesto con transform/overflow. */
    .pc-mlist-host,
    .dataTables_wrapper,
    .content-body:has(.pc-mlist-host),
    .pc-table-wrapper.pc-mlist-host,
    .pc-mlist-host .pc-table-wrapper {
        overflow-x: clip;
        overflow-y: visible;
        touch-action: pan-y;
        transform: none !important;
    }

    [data-ptr-hides],
    li:has(> [data-ptr-hides]) {
        display: none !important;
    }

    .crm-wa__threads,
    .crm-tpl__rows,
    .app-content.content {
        overscroll-behavior-y: none;
    }

    body.pc-nav-open {
        overflow: hidden !important;
    }

    .sidenav-overlay,
    .drag-target {
        display: none !important;
    }

    .header-navbar .menu-toggle,
    .header-navbar .pc-appbar__menu,
    .header-navbar .nav-item:has(> .menu-toggle),
    .header-navbar .pc-appbar__wa,
    .header-navbar .nav-item:has(> .pc-appbar__wa),
    .header-navbar .pc-appbar__overflow,
    .pc-appbar__menu,
    .pc-appbar__wa,
    .pc-appbar__overflow,
    #pcMenuToggle,
    .crm-wa__nav-menu {
        display: none !important;
    }

    .header-navbar,
    .header-navbar.navbar-light,
    .header-navbar.pc-navbar,
    .header-navbar.pc-appbar,
    .pc-navbar,
    .pc-appbar,
    .header-navbar .navbar-container,
    html.theme-rose .header-navbar,
    html.theme-rose .pc-navbar,
    html.theme-rose .navbar-container,
    html.theme-melon .header-navbar,
    html.theme-melon .pc-navbar,
    html.theme-melon .navbar-container,
    [data-theme="rose"] .header-navbar,
    [data-theme="rose"] .navbar-container,
    [data-theme="melon"] .header-navbar,
    [data-theme="melon"] .navbar-container {
        background: var(--body-bg) !important;
        background-color: var(--body-bg) !important;
        border: 0 !important;
        border-bottom: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .header-navbar::before,
    .header-navbar-shadow {
        display: none !important;
    }

    .pc-appbar,
    .pc-appbar.header-navbar,
    .pc-navbar,
    .pc-appbar .navbar-container,
    .pc-appbar .pc-appbar__bar {
        transition: min-height .38s cubic-bezier(.22, 1, .36, 1), padding .38s cubic-bezier(.22, 1, .36, 1);
    }

    .pc-appbar__title {
        font-size: 28px !important;
        font-weight: 600 !important;
        letter-spacing: -0.03em;
        line-height: 1.1 !important;
        transition: font-size .38s cubic-bezier(.22, 1, .36, 1), font-weight .38s ease, letter-spacing .38s ease;
    }

    .pc-appbar__back,
    .pc-appbar__search-btn,
    .pc-appbar__filter-btn,
    .pc-appbar__search-back,
    .pc-appbar__search-clear {
        height: 44px;
        transition: height .38s cubic-bezier(.22, 1, .36, 1), width .38s cubic-bezier(.22, 1, .36, 1);
        width: 44px;
    }

    .pc-appbar__back i[data-lucide],
    .pc-appbar__back svg,
    .pc-appbar__search-btn i[data-lucide],
    .pc-appbar__search-btn svg,
    .pc-appbar__filter-btn i[data-lucide],
    .pc-appbar__filter-btn svg {
        height: 22px;
        transition: height .38s cubic-bezier(.22, 1, .36, 1), width .38s cubic-bezier(.22, 1, .36, 1);
        width: 22px;
    }

    .pc-appbar__actions .pc-cc-toolbar__btn,
    .pc-appbar__actions .btn,
    .pc-appbar__add {
        height: 40px;
        min-width: 40px;
        transition: height .38s cubic-bezier(.22, 1, .36, 1), width .38s cubic-bezier(.22, 1, .36, 1), min-width .38s cubic-bezier(.22, 1, .36, 1);
        width: 40px;
    }

    .pc-appbar__actions .pc-cc-toolbar__btn i,
    .pc-appbar__actions .pc-cc-toolbar__btn svg,
    .pc-appbar__actions .btn i,
    .pc-appbar__actions .btn svg,
    .pc-appbar__add i,
    .pc-appbar__add svg {
        height: 18px;
        width: 18px;
    }

    html .content.app-content,
    html body .content.app-content {
        transition: padding-top .38s cubic-bezier(.22, 1, .36, 1);
    }

    body.pc-chrome-compact .pc-appbar__title {
        font-size: 17px !important;
        font-weight: 500 !important;
        letter-spacing: inherit;
    }

    body.pc-chrome-compact .pc-appbar__back,
    body.pc-chrome-compact .pc-appbar__search-btn,
    body.pc-chrome-compact .pc-appbar__filter-btn,
    body.pc-chrome-compact .pc-appbar__search-back,
    body.pc-chrome-compact .pc-appbar__search-clear {
        height: 40px;
        width: 40px;
    }

    body.pc-chrome-compact .pc-appbar__back i[data-lucide],
    body.pc-chrome-compact .pc-appbar__back svg,
    body.pc-chrome-compact .pc-appbar__search-btn i[data-lucide],
    body.pc-chrome-compact .pc-appbar__search-btn svg,
    body.pc-chrome-compact .pc-appbar__filter-btn i[data-lucide],
    body.pc-chrome-compact .pc-appbar__filter-btn svg {
        height: 20px;
        width: 20px;
    }

    body.pc-chrome-compact .pc-appbar__actions .pc-cc-toolbar__btn,
    body.pc-chrome-compact .pc-appbar__actions .btn,
    body.pc-chrome-compact .pc-appbar__add {
        height: 32px;
        min-width: 32px;
        width: 32px;
    }

    body.pc-chrome-compact .pc-appbar__actions .pc-cc-toolbar__btn i,
    body.pc-chrome-compact .pc-appbar__actions .pc-cc-toolbar__btn svg,
    body.pc-chrome-compact .pc-appbar__actions .btn i,
    body.pc-chrome-compact .pc-appbar__actions .btn svg,
    body.pc-chrome-compact .pc-appbar__add i,
    body.pc-chrome-compact .pc-appbar__add svg {
        height: 16px;
        width: 16px;
    }

    html .content.app-content,
    html body .content.app-content {
        padding-bottom: var(--pc-tabbar) !important;
    }

    body:not(.pc-crm-inbox):not(:has(#crmInbox)):not(:has(#crmTemplates)) .app-content.content,
    body:not(.pc-crm-inbox):not(:has(#crmInbox)):not(:has(#crmTemplates)) .content-wrapper,
    body:not(.pc-crm-inbox):not(:has(#crmInbox)):not(:has(#crmTemplates)) .content-body {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        touch-action: pan-y;
    }

    body.pc-crm-inbox .app-content.content,
    html body.pc-crm-inbox .content.app-content,
    body:has(#crmInbox) .app-content.content,
    html body:has(#crmInbox) .content.app-content,
    body:has(#crmTemplates) .app-content.content,
    html body:has(#crmTemplates) .content.app-content {
        height: var(--vvh, 100dvh) !important;
        max-height: var(--vvh, 100dvh) !important;
        padding-bottom: 0 !important;
    }

    body:has(#crmInbox.is-open),
    body:has(#crmInbox.is-compose),
    body:has(#crmInbox.is-profile),
    body:has(#crmTemplates.is-open),
    body.pc-crm-thread,
    body.pc-crm-compose {
        --pc-tabbar: 0px;
    }

    body:has(#crmInbox.is-open) .pc-tabbar,
    body:has(#crmInbox.is-compose) .pc-tabbar,
    body:has(#crmInbox.is-profile) .pc-tabbar,
    body:has(#crmTemplates.is-open) .pc-tabbar,
    body.pc-crm-thread .pc-tabbar,
    body.pc-crm-compose .pc-tabbar {
        display: none !important;
    }

    body.vertical-overlay-menu .main-menu,
    body.vertical-overlay-menu.menu-hide .main-menu,
    body.vertical-layout .main-menu,
    body.vertical-layout.vertical-menu-modern .main-menu,
    body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu,
    body.menu-hide .main-menu,
    body.menu-collapsed .main-menu {
        background: var(--cc-surface, #fff) !important;
        background-color: var(--cc-surface, #fff) !important;
        border: 0 !important;
        border-radius: 0 !important;
        bottom: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        height: 100dvh !important;
        left: 0 !important;
        margin: 0 !important;
        max-width: 100vw !important;
        opacity: 1 !important;
        overflow: hidden !important;
        pointer-events: none;
        position: fixed !important;
        right: 0 !important;
        top: 0 !important;
        transform: translate3d(100%, 0, 0) !important;
        transition: transform .38s cubic-bezier(.22, 1, .36, 1) !important;
        width: 100vw !important;
        will-change: transform;
        z-index: 1200 !important;
    }

    body.menu-open .main-menu,
    body.pc-nav-open .main-menu,
    body.vertical-overlay-menu.menu-open .main-menu,
    body.menu-collapsed.menu-open .main-menu,
    body.vertical-layout.vertical-menu-modern.menu-collapsed.menu-open .main-menu,
    body.vertical-layout.vertical-menu-modern.menu-collapsed.pc-nav-open .main-menu {
        left: 0 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translate3d(0, 0, 0) !important;
        visibility: visible !important;
    }

    body.menu-open .main-menu .main-menu-content,
    body.pc-nav-open .main-menu .main-menu-content,
    body.menu-collapsed.menu-open .main-menu:not(.expanded) .main-menu-content,
    body.vertical-layout.vertical-menu-modern.menu-collapsed.menu-open .main-menu:not(.expanded) .main-menu-content {
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    html.theme-rose .main-menu,
    html.theme-rose .main-menu .navbar-header,
    html.theme-rose .main-menu .navbar-container,
    html.theme-rose .main-menu .main-menu-content,
    html.theme-rose .main-menu .navigation,
    html.theme-rose .main-menu .pc-sidebar-dock,
    html.theme-melon .main-menu,
    html.theme-melon .main-menu .navbar-header,
    html.theme-melon .main-menu .navbar-container,
    html.theme-melon .main-menu .main-menu-content,
    html.theme-melon .main-menu .navigation,
    html.theme-melon .main-menu .pc-sidebar-dock,
    [data-theme="rose"] .main-menu,
    [data-theme="rose"] .main-menu .navbar-header,
    [data-theme="rose"] .main-menu .navbar-container,
    [data-theme="rose"] .main-menu .main-menu-content,
    [data-theme="rose"] .main-menu .navigation,
    [data-theme="rose"] .main-menu .pc-sidebar-dock,
    [data-theme="melon"] .main-menu,
    [data-theme="melon"] .main-menu .navbar-header,
    [data-theme="melon"] .main-menu .navbar-container,
    [data-theme="melon"] .main-menu .main-menu-content,
    [data-theme="melon"] .main-menu .navigation,
    [data-theme="melon"] .main-menu .pc-sidebar-dock,
    html.dark-layout .main-menu,
    html.dark-layout .main-menu .navbar-header,
    html.dark-layout .main-menu .main-menu-content,
    html.dark-layout .main-menu .navigation,
    html.dark-layout .main-menu .pc-sidebar-dock,
    html.dark .main-menu,
    html.dark .main-menu .navbar-header,
    html.dark .main-menu .main-menu-content,
    html.dark .main-menu .navigation,
    html.dark .main-menu .pc-sidebar-dock {
        background: var(--cc-surface, #fff) !important;
        background-color: var(--cc-surface, #fff) !important;
    }

    .main-menu .navbar-header,
    .main-menu .main-menu-content,
    .main-menu .navigation,
    .main-menu .pc-sidebar-dock {
        background: var(--cc-surface, #fff) !important;
        background-color: var(--cc-surface, #fff) !important;
    }

    .vertical-layout .main-menu .navbar-header,
    body.menu-collapsed .main-menu .navbar-header,
    body.menu-open .main-menu .navbar-header {
        align-items: center !important;
        display: flex !important;
        flex: 0 0 auto !important;
        gap: .25rem;
        height: auto !important;
        justify-content: flex-start !important;
        max-width: 100% !important;
        min-height: calc(52px + env(safe-area-inset-top, 0px));
        min-width: 0 !important;
        overflow: visible !important;
        padding: calc(env(safe-area-inset-top, 0px) + 6px) 12px 8px !important;
        width: 100% !important;
    }

    .vertical-layout .main-menu .navbar-header .navbar-nav,
    .vertical-layout .main-menu .navbar-header .nav-item,
    .vertical-layout .main-menu .navbar-header .navbar-brand {
        max-width: none !important;
        min-width: 0 !important;
        overflow: visible !important;
        width: auto !important;
    }

    .pc-nav-back {
        align-items: center;
        background: transparent;
        border: 0;
        border-radius: 0;
        color: var(--gray-0);
        cursor: pointer;
        display: inline-flex !important;
        flex: 0 0 40px;
        height: 40px;
        justify-content: center;
        margin: 0;
        padding: 0;
        width: 40px;
        -webkit-appearance: none;
        appearance: none;
    }

    .pc-nav-back i[data-lucide],
    .pc-nav-back svg {
        height: 22px;
        width: 22px;
    }

    .vertical-layout .main-menu .navbar-header .navbar-brand {
        align-items: center !important;
        display: flex !important;
        flex: 1 1 auto;
        gap: .55rem !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        min-width: 0;
    }

    .vertical-layout .main-menu .navbar-header .brand-logo,
    body.menu-collapsed .main-menu .navbar-header .brand-logo {
        flex: 0 0 36px !important;
        height: 28px !important;
        margin: 0 !important;
        max-width: 36px !important;
        overflow: hidden !important;
        width: 36px !important;
    }

    .vertical-layout .main-menu .navbar-header .brand-logo img,
    body.menu-collapsed .main-menu .navbar-header .navbar-brand .brand-logo img {
        display: block !important;
        height: 28px !important;
        max-height: 28px !important;
        max-width: 36px !important;
        min-width: 0 !important;
        object-fit: contain !important;
        width: 36px !important;
    }

    .vertical-layout .main-menu .navbar-header .brand-text,
    body.menu-collapsed .main-menu .navbar-header .brand-text {
        display: block !important;
        flex: 1 1 auto;
        font-size: 17px !important;
        font-weight: 500 !important;
        height: auto !important;
        letter-spacing: inherit !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        text-overflow: ellipsis;
        white-space: nowrap !important;
        width: auto !important;
    }

    .main-menu .shadow-bottom {
        display: none !important;
    }

    .main-menu .main-menu-content {
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Collapsed rail: no scrollbar until hover-expand */
    body.menu-collapsed .main-menu:not(.expanded) .main-menu-content,
    body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .main-menu-content {
        overflow: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    body.menu-collapsed .main-menu:not(.expanded) .main-menu-content::-webkit-scrollbar,
    body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .main-menu-content::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    body.menu-collapsed .main-menu:not(.expanded) .ps__rail-y,
    body.menu-collapsed .main-menu:not(.expanded) .ps__rail-x,
    body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .ps__rail-y,
    body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .ps__rail-x {
        display: none !important;
        opacity: 0 !important;
    }

    body.menu-open.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .menu-title,
    body.menu-open.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .menu-item,
    body.pc-nav-open.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .menu-title,
    body.pc-nav-open.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .menu-item,
    body.menu-open .main-menu .menu-title,
    body.menu-open .main-menu .menu-item,
    body.pc-nav-open .main-menu .navigation-header span,
    body.menu-open .main-menu .pc-sidebar-dock__label,
    body.menu-open .main-menu .pc-sidebar-dock__hint,
    body.menu-open .main-menu .pc-sidebar-dock__user-meta {
        display: inline !important;
        height: auto !important;
        max-width: none !important;
        opacity: 1 !important;
        overflow: hidden !important;
        visibility: visible !important;
        width: auto !important;
    }

    body.menu-open.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .navigation-header,
    body.pc-nav-open.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .navigation-header,
    body.menu-open .main-menu .navigation-header {
        display: block !important;
        margin: 0 !important;
        padding: 18px 18px 6px !important;
        text-align: left !important;
    }

    body.menu-open.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .navigation > li > a,
    body.menu-open.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .pc-sidebar-nav > li > a,
    body.pc-nav-open.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .navigation > li > a,
    body.pc-nav-open.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .pc-sidebar-nav > li > a,
    body.menu-open .main-menu .navigation > li > a,
    body.menu-open .main-menu .menu-content > li > a {
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 46px;
        padding: 10px 18px !important;
        text-align: left !important;
    }

    body.menu-open .main-menu .navigation > li > a i[data-lucide],
    body.menu-open .main-menu .navigation > li > a svg,
    body.menu-open .main-menu .menu-content > li > a i[data-lucide],
    body.menu-open .main-menu .menu-content > li > a svg,
    body.pc-nav-open .main-menu .navigation > li > a i[data-lucide],
    body.pc-nav-open .main-menu .navigation > li > a svg {
        flex: 0 0 20px;
        margin-left: 0 !important;
        margin-right: 14px !important;
    }

    .main-menu .pc-sidebar-dock {
        border-top: 1px solid var(--border, #e4e4e7);
        display: flex !important;
        flex: 0 0 auto;
        flex-direction: column;
        gap: 2px;
        padding: 8px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .main-menu .pc-sidebar-dock__btn {
        align-items: center;
        background: transparent;
        border: 0;
        color: var(--gray-40);
        cursor: pointer;
        display: flex;
        gap: 12px;
        min-height: 44px;
        padding: 8px 16px;
        text-align: left;
        text-decoration: none;
        width: 100%;
    }

    .main-menu .pc-sidebar-dock__btn i[data-lucide],
    .main-menu .pc-sidebar-dock__btn svg {
        flex: 0 0 auto;
        height: 18px;
        width: 18px;
    }

    .main-menu .pc-sidebar-dock__label {
        flex: 1 1 auto;
        font-size: 14px;
        font-weight: 500;
    }

    .main-menu .pc-sidebar-dock__user-meta {
        display: flex !important;
        flex: 1 1 auto;
        flex-direction: column;
        min-width: 0;
    }

    .main-menu .pc-sidebar-dock__hint {
        color: var(--gray-40);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .main-menu .pc-sidebar-dock__avatar {
        align-items: center;
        background: var(--gray-0);
        border-radius: 3px;
        color: var(--gray-100);
        display: inline-flex;
        flex: 0 0 auto;
        height: 28px;
        justify-content: center;
        overflow: hidden;
        width: 28px;
    }

    .main-menu .pc-sidebar-dock__avatar img {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    body.pc-kb-open {
        --pc-tabbar: 0px;
    }

    .pc-tabbar {
        --pc-tab-h: 62px;
        --lg-bg: rgba(255, 255, 255, .58);
        --lg-highlight: rgba(255, 255, 255, .9);
        --lg-rim: rgba(255, 255, 255, .55);
        --lg-ink: #1c1c1e;
        --lg-on: var(--accent, #fb4268);
        --lg-thumb: rgba(0, 0, 0, .07);
        --lg-thumb-press: rgba(255, 255, 255, .22);
        --lg-shadow: 0 10px 30px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .08);
        align-items: center;
        background: transparent;
        border: 0;
        bottom: max(10px, calc(env(safe-area-inset-bottom, 0px) - 6px));
        box-shadow: none;
        box-sizing: border-box;
        column-gap: 10px;
        display: flex !important;
        height: var(--pc-tab-h);
        justify-content: space-between;
        left: 14px;
        overflow: visible;
        padding: 0;
        pointer-events: none;
        position: fixed;
        right: 14px;
        transform: none;
        transition: opacity .28s ease;
        width: auto;
        z-index: 1080;
    }

    .pc-tabbar__pill,
    .pc-tabbar__profile {
        background: transparent;
        border: 0;
        box-sizing: border-box;
        box-shadow: var(--lg-shadow);
        color: var(--lg-ink);
        isolation: isolate;
        pointer-events: auto;
        position: relative;
        transition: transform .32s cubic-bezier(.34, 1.56, .64, 1);
    }

    .pc-tabbar__filter,
    .pc-tabbar__overlay,
    .pc-tabbar__specular {
        border-radius: inherit;
        inset: 0;
        pointer-events: none;
        position: absolute;
    }

    .pc-tabbar__filter {
        -webkit-backdrop-filter: blur(18px) saturate(180%);
        backdrop-filter: blur(18px) saturate(180%);
        z-index: 0;
    }

    .pc-tabbar__overlay {
        background: var(--lg-bg);
        z-index: 1;
    }

    .pc-tabbar__specular {
        box-shadow:
            inset 0 1px 0 var(--lg-highlight),
            inset 0 -1px 1px rgba(255, 255, 255, .08),
            inset 0 0 0 .5px var(--lg-rim);
        z-index: 2;
    }

    .pc-tabbar__pill {
        align-items: stretch;
        border-radius: 999px;
        display: flex;
        flex: 1 1 auto;
        height: var(--pc-tab-h);
        min-width: 0;
        overflow: visible;
        width: auto;
    }

    .pc-tabbar__pill:has(.pc-tabbar__content[data-lg-press]) {
        transform: scale(1.025);
    }

    .pc-tabbar__content {
        align-items: stretch;
        display: grid;
        flex: 1 1 auto;
        grid-template-columns: repeat(var(--pc-tab-n, 4), minmax(0, 1fr));
        min-width: 0;
        padding: 4px;
        position: relative;
        touch-action: none;
        width: 100%;
        z-index: 3;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        user-select: none;
    }

    .pc-tabbar__thumb {
        --pc-thumb-tx: calc(var(--pc-tab-i, 0) * 100%);
        --pc-thumb-s: 1;
        border-radius: 999px;
        bottom: 4px;
        left: 4px;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        position: absolute;
        top: 4px;
        transform: translateX(var(--pc-thumb-tx)) scale(var(--pc-thumb-s));
        transform-origin: center;
        transition:
            transform .52s cubic-bezier(.34, 1.36, .5, 1),
            opacity .2s ease;
        width: calc((100% - 8px) / var(--pc-tab-n, 4));
        will-change: transform;
        z-index: 0;
    }

    .pc-tabbar.has-thumb .pc-tabbar__thumb,
    .pc-tabbar__thumb[data-free] {
        opacity: 1;
    }

    .pc-tabbar__thumb[data-free] {
        --pc-thumb-tx: var(--pc-thumb-x, 0px);
    }

    .pc-tabbar__thumb .pc-tabbar__filter {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .pc-tabbar__thumb .pc-tabbar__overlay {
        background: var(--lg-thumb);
        transition: background-color .25s ease;
    }

    .pc-tabbar__thumb .pc-tabbar__specular {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 .5px rgba(255, 255, 255, .06);
        transition: box-shadow .25s ease;
    }

    .pc-tabbar__content[data-lg-press] .pc-tabbar__thumb {
        --pc-thumb-s: 1.32;
        box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
        opacity: 1;
        transition:
            transform .3s cubic-bezier(.34, 1.56, .64, 1),
            opacity .2s ease,
            box-shadow .25s ease;
    }

    .pc-tabbar__content[data-lg-drag] .pc-tabbar__thumb {
        transition: opacity .2s ease;
    }

    .pc-tabbar__content[data-lg-press] .pc-tabbar__thumb .pc-tabbar__overlay {
        background: var(--lg-thumb-press);
    }

    .pc-tabbar__content[data-lg-press] .pc-tabbar__thumb .pc-tabbar__specular {
        box-shadow:
            inset 0 1px 1px rgba(255, 255, 255, .55),
            inset 0 -1px 2px rgba(255, 255, 255, .18),
            inset 0 0 0 .5px rgba(255, 255, 255, .35);
    }

    html.pc-lg-refract .pc-tabbar__content[data-lg-press] .pc-tabbar__thumb {
        z-index: 4;
    }

    .pc-tabbar__profile {
        align-items: center;
        appearance: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex !important;
        flex: 0 0 var(--pc-tab-h);
        height: var(--pc-tab-h) !important;
        justify-content: center;
        overflow: hidden;
        padding: 0;
        text-decoration: none;
        width: var(--pc-tab-h) !important;
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
    }

    .pc-tabbar__profile-face {
        align-items: center;
        background: rgba(0, 0, 0, .08);
        border-radius: 50%;
        color: var(--lg-ink);
        display: flex;
        font-size: 13px;
        font-weight: 700;
        height: 40px;
        justify-content: center;
        letter-spacing: -0.03em;
        overflow: hidden;
        position: relative;
        width: 40px;
        z-index: 3;
    }

    .pc-tabbar__profile.is-on {
        box-shadow: var(--lg-shadow), 0 0 0 2px var(--lg-on);
    }

    .pc-tabbar__profile.is-on .pc-tabbar__profile-face {
        box-shadow: 0 0 0 2px var(--lg-on);
        transform: scale(1.06);
    }

    .pc-tabbar__profile-face img {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .pc-tabbar__profile:active {
        transform: scale(.94);
    }

    body.pc-chrome-end .pc-tabbar {
        opacity: 1;
        pointer-events: none;
        transform: none;
    }

    body.pc-chrome-end .pc-tabbar .pc-tabbar__pill,
    body.pc-chrome-end .pc-tabbar .pc-tabbar__profile {
        pointer-events: auto;
    }

    .scroll-top,
    .btn.scroll-top,
    .btn-icon.scroll-top {
        align-items: center;
        background: var(--accent) !important;
        border: 0 !important;
        border-radius: 50% !important;
        bottom: calc(var(--pc-tabbar, 82px) + 4px);
        box-shadow: 0 10px 32px rgba(0, 0, 0, .14);
        box-sizing: border-box;
        height: 44px !important;
        justify-content: center;
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 0 !important;
        right: 16px;
        width: 44px !important;
        z-index: 1075;
    }

    .scroll-top i[data-lucide],
    .scroll-top svg {
        height: 22px !important;
        width: 22px !important;
    }

    .pc-tabbar[hidden] {
        display: none !important;
    }

    html.dark-layout .pc-tabbar,
    html.dark .pc-tabbar {
        --lg-bg: rgba(44, 44, 48, .52);
        --lg-highlight: rgba(255, 255, 255, .22);
        --lg-rim: rgba(255, 255, 255, .12);
        --lg-ink: #f4f4f5;
        --lg-thumb: rgba(255, 255, 255, .13);
        --lg-thumb-press: rgba(255, 255, 255, .08);
        --lg-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .35);
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    html.dark-layout .pc-tabbar__profile-face,
    html.dark .pc-tabbar__profile-face {
        background: rgba(255, 255, 255, .1);
    }

    body.menu-open .pc-tabbar,
    body.pc-nav-open .pc-tabbar,
    body.pc-profile-open .pc-tabbar,
    body.pc-kb-open .pc-tabbar,
    body.menu-open .scroll-top,
    body.pc-nav-open .scroll-top,
    body.pc-kb-open .scroll-top {
        display: none !important;
    }

    .pc-tabbar__btn {
        align-items: center;
        background: transparent;
        border: 0;
        border-radius: 999px;
        color: var(--lg-ink);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 3px;
        height: 100%;
        justify-content: center;
        max-width: none;
        min-width: 0;
        padding: 0 2px;
        position: relative;
        text-align: center;
        text-decoration: none;
        transition: color .25s ease;
        width: auto;
        z-index: 1;
        -webkit-appearance: none;
        appearance: none;
        -webkit-tap-highlight-color: transparent;
    }

    .pc-tabbar__btn .pc-crm-badge {
        right: -12px;
        top: -6px;
    }

    .pc-tabbar__btn.is-on,
    html.dark-layout .pc-tabbar__btn.is-on,
    html.dark .pc-tabbar__btn.is-on,
    .pc-tabbar__content .pc-tabbar__btn[data-lg-target] {
        background: transparent;
        color: var(--lg-on);
    }

    .pc-tabbar__content[data-lg-press] .pc-tabbar__btn.is-on:not([data-lg-target]),
    .pc-tabbar__content[data-lg-pending] .pc-tabbar__btn.is-on:not([data-lg-target]) {
        color: var(--lg-ink);
    }

    .pc-tabbar__btn i[data-lucide],
    .pc-tabbar__btn svg,
    .pc-tabbar__btn .pc-wa-svg {
        color: inherit;
        height: 23px;
        width: 23px;
    }

    .pc-tabbar__btn .pc-wa-svg {
        display: block;
        flex: 0 0 23px;
        margin: 0;
    }

    .pc-tabbar__ico {
        align-items: center;
        display: flex;
        height: 24px;
        justify-content: center;
        position: relative;
        transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
        width: 24px;
        z-index: 1;
    }

    .pc-tabbar__btn:active .pc-tabbar__ico {
        transform: scale(.9);
    }

    .pc-tabbar__label {
        display: block;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .01em;
        line-height: 1.1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.pc-profile-open {
        overflow: hidden;
    }

    .pc-profile-scrim {
        appearance: none;
        background: rgba(15, 15, 18, .42);
        border: 0;
        bottom: 0;
        cursor: pointer;
        display: block;
        left: 0;
        opacity: 0;
        padding: 0;
        position: fixed;
        right: 0;
        top: 0;
        transition: opacity .28s cubic-bezier(.22, 1, .36, 1);
        width: 100%;
        z-index: 1205;
        -webkit-appearance: none;
    }

    .pc-profile-scrim[hidden],
    .pc-profile-sheet[hidden] {
        display: none !important;
    }

    .pc-profile-scrim.is-visible {
        opacity: 1;
    }

    .pc-profile-scrim.is-closing {
        opacity: 0;
    }

    .pc-profile-sheet {
        background: var(--body-bg, var(--cc-surface, #fff));
        border-radius: 18px 18px 0 0;
        bottom: 0;
        box-shadow: 0 -16px 48px rgba(9, 9, 11, .28);
        color: var(--gray-0, #111);
        display: flex;
        flex-direction: column;
        left: 0;
        max-height: min(78dvh, 680px);
        overflow: hidden;
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        position: fixed;
        right: 0;
        transform: translateY(108%);
        transition: transform .34s cubic-bezier(.22, 1, .36, 1);
        z-index: 1210;
    }

    .pc-profile-sheet__scroll {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 12px;
    }

    .pc-profile-sheet .crm-cfg {
        gap: 10px;
        padding: 0 14px 8px;
    }

    .pc-profile-sheet .crm-cfg__brand-ico,
    .pc-profile-sheet .crm-cfg__sync,
    .pc-profile-sheet .crm-cfg__head p {
        display: none;
    }

    .pc-profile-sheet .crm-cfg__head {
        padding: 2px 2px 0;
    }

    .pc-profile-sheet .crm-cfg__head h2 {
        font-size: 22px;
        letter-spacing: -.03em;
        margin: 0;
    }

    .pc-profile-sheet .crm-cfg__stats {
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .pc-profile-sheet .crm-cfg__card,
    .pc-profile-sheet .crm-cfg__stat {
        border-radius: 14px;
    }

    .pc-profile-sheet__out {
        align-items: center;
        color: var(--danger, #ef4444);
        display: flex;
        font-size: 15px;
        font-weight: 650;
        gap: 10px;
        justify-content: center;
        margin: 4px 14px 8px;
        min-height: 48px;
        text-decoration: none;
    }

    .pc-profile-sheet__out svg {
        height: 18px;
        width: 18px;
    }

    .pc-profile-sheet.is-visible {
        transform: translateY(0);
    }

    .pc-profile-sheet.is-closing {
        transform: translateY(108%);
    }

    .pc-profile-sheet__handle {
        background: var(--gray-80, #d4d4d8);
        border-radius: 999px;
        display: block;
        flex: 0 0 auto;
        height: 4px;
        margin: 8px auto 10px;
        width: 36px;
    }

    .pc-profile-sheet__who {
        align-items: center;
        display: flex;
        gap: 12px;
        min-width: 0;
        padding: 4px 4px 12px;
    }

    .pc-profile-sheet__face {
        align-items: center;
        background: rgba(0, 0, 0, .06);
        border-radius: 50%;
        display: flex;
        flex: 0 0 44px;
        font-size: 14px;
        font-weight: 700;
        height: 44px;
        justify-content: center;
        overflow: hidden;
        width: 44px;
    }

    .pc-profile-sheet__face img {
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .pc-profile-sheet__id {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .pc-profile-sheet__id strong,
    .pc-profile-sheet__id small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pc-profile-sheet__id strong {
        font-size: 15px;
        font-weight: 650;
        letter-spacing: -.02em;
    }

    .pc-profile-sheet__id small {
        color: var(--gray-70, #71717a);
        font-size: 12px;
    }

    .pc-profile-sheet__list {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .pc-profile-sheet__list a,
    .pc-profile-sheet__list button {
        align-items: center;
        background: transparent;
        border: 0;
        border-radius: 12px;
        color: inherit;
        cursor: pointer;
        display: flex;
        font-size: 15px;
        font-weight: 600;
        gap: 12px;
        min-height: 48px;
        padding: 0 12px;
        text-align: left;
        text-decoration: none;
        width: 100%;
    }

    .pc-profile-sheet__list a:active,
    .pc-profile-sheet__list button:active {
        background: rgba(0, 0, 0, .06);
    }

    .pc-profile-sheet__list i,
    .pc-profile-sheet__list svg {
        height: 20px;
        width: 20px;
    }

    .pc-profile-sheet__list .is-out {
        color: var(--danger, #b42318);
    }

    .pc-profile-sheet .pc-profile-sheet__list button.pc-dark-mode-toggle {
        align-items: center !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 12px !important;
        color: inherit !important;
        display: flex !important;
        gap: 12px;
        height: auto !important;
        justify-content: flex-start !important;
        min-height: 48px !important;
        padding: 0 12px !important;
        width: 100% !important;
    }

    .pc-profile-sheet .pc-profile-sheet__list button.pc-dark-mode-toggle:hover,
    .pc-profile-sheet .pc-profile-sheet__list button.pc-dark-mode-toggle:focus {
        background: transparent !important;
        border-color: transparent !important;
        color: inherit !important;
    }

    .pc-profile-sheet .pc-profile-sheet__list button.pc-dark-mode-toggle:active {
        background: rgba(0, 0, 0, .06) !important;
    }

    .pc-profile-sheet .pc-dark-mode-toggle__label {
        flex: 1 1 auto;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.2;
        min-width: 0;
        overflow: hidden;
        text-align: left;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pc-profile-sheet .pc-profile-sheet__list button.pc-dark-mode-toggle i,
    .pc-profile-sheet .pc-profile-sheet__list button.pc-dark-mode-toggle svg {
        flex: 0 0 20px;
        height: 20px !important;
        width: 20px !important;
    }

    html.dark-layout .pc-profile-sheet,
    html.dark .pc-profile-sheet {
        background: #18181b;
        color: #f4f4f5;
    }

    html.dark-layout .pc-profile-sheet__list a:active,
    html.dark .pc-profile-sheet__list a:active,
    html.dark-layout .pc-profile-sheet__list button:active,
    html.dark .pc-profile-sheet__list button:active,
    html.dark-layout .pc-profile-sheet .pc-profile-sheet__list button.pc-dark-mode-toggle:active,
    html.dark .pc-profile-sheet .pc-profile-sheet__list button.pc-dark-mode-toggle:active {
        background: rgba(255, 255, 255, .08) !important;
    }

    /* El menu del boton de modulos sube como tarjeta, no entra desde la derecha. */
    .pc-sidebar-sheet__handle {
        background: var(--gray-80, #d4d4d8);
        border-radius: 999px;
        display: block;
        flex: 0 0 auto;
        height: 4px;
        margin: 8px auto 4px;
        position: relative;
        touch-action: none;
        width: 36px;
    }

    .pc-sidebar-sheet__handle::before {
        content: "";
        inset: -14px -48px -18px;
        position: absolute;
    }

    .main-menu.pc-sidebar .pc-nav-back {
        display: none !important;
    }

    body.vertical-overlay-menu .main-menu.pc-sidebar,
    body.vertical-overlay-menu.menu-hide .main-menu.pc-sidebar,
    body.vertical-layout .main-menu.pc-sidebar,
    body.vertical-layout.vertical-menu-modern .main-menu.pc-sidebar,
    body.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu.pc-sidebar,
    body.menu-hide .main-menu.pc-sidebar,
    body.menu-collapsed .main-menu.pc-sidebar,
    body.menu-open .main-menu.pc-sidebar,
    body.pc-nav-open .main-menu.pc-sidebar,
    body.vertical-overlay-menu.menu-open .main-menu.pc-sidebar,
    body.menu-collapsed.menu-open .main-menu.pc-sidebar,
    body.vertical-layout.vertical-menu-modern.menu-collapsed.menu-open .main-menu.pc-sidebar,
    body.vertical-layout.vertical-menu-modern.menu-collapsed.pc-nav-open .main-menu.pc-sidebar {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: min(78dvh, 680px) !important;
        border-radius: 18px 18px 0 0 !important;
        box-shadow: 0 -16px 48px rgba(9, 9, 11, .22) !important;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        transform: translate3d(0, 110%, 0) !important;
        transition: transform .32s cubic-bezier(.22, 1, .36, 1);
    }

    body.menu-open .main-menu.pc-sidebar,
    body.pc-nav-open .main-menu.pc-sidebar,
    body.vertical-overlay-menu.menu-open .main-menu.pc-sidebar,
    body.menu-collapsed.menu-open .main-menu.pc-sidebar,
    body.vertical-layout.vertical-menu-modern.menu-collapsed.menu-open .main-menu.pc-sidebar,
    body.vertical-layout.vertical-menu-modern.menu-collapsed.pc-nav-open .main-menu.pc-sidebar {
        pointer-events: auto !important;
        transform: translate3d(0, var(--pc-sheet-y, 0px), 0) !important;
        visibility: visible !important;
    }

    body.pc-sheet-drag.vertical-layout .main-menu.pc-sidebar,
    body.pc-sheet-drag.menu-open .main-menu.pc-sidebar,
    body.pc-sheet-drag.pc-nav-open .main-menu.pc-sidebar {
        transition: none !important;
    }

    body:not(.menu-open):not(.pc-nav-open) .main-menu.pc-sidebar {
        pointer-events: none !important;
        visibility: hidden !important;
    }

    body:not(.menu-open):not(.pc-nav-open) .sidenav-overlay,
    body:not(.menu-open):not(.pc-nav-open) .content-overlay,
    body:not(.menu-open):not(.pc-nav-open) .drag-target {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    body.menu-open .main-menu.pc-sidebar .main-menu-content,
    body.pc-nav-open .main-menu.pc-sidebar .main-menu-content {
        flex: 1 1 auto;
        min-height: 0;
        max-height: calc(78dvh - 88px);
        overflow-y: auto !important;
    }

    body.menu-open .sidenav-overlay,
    body.pc-nav-open .sidenav-overlay {
        background: rgba(15, 15, 18, .42);
        display: block !important;
        inset: 0;
        opacity: 1 !important;
        position: fixed;
        visibility: visible !important;
        z-index: 1100;
    }

    .pc-pager-desktop {
        display: none !important;
    }

    .pc-infinite__more {
        align-items: center;
        background: transparent;
        border: 0;
        color: var(--gray-40, #a1a1aa);
        display: flex;
        font-size: 13px;
        font-weight: 600;
        height: 44px;
        justify-content: center;
        margin: 0 auto 12px;
        width: 100%;
    }

    .pc-infinite__more:disabled {
        opacity: .7;
    }
}

@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    body.vertical-layout .main-menu,
    body.vertical-overlay-menu .main-menu,
    .pc-tabbar,
    .pc-tabbar__pill,
    .pc-tabbar__thumb,
    .pc-tabbar__ico,
    .pc-appbar,
    .pc-appbar.header-navbar,
    .pc-navbar,
    .pc-appbar .navbar-container,
    .pc-appbar .pc-appbar__bar,
    .pc-appbar__title,
    .pc-appbar__back,
    .pc-appbar__search-btn,
    html .content.app-content,
    html body .content.app-content {
        transition: none !important;
    }
}
