/* _content/DataTouch.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════════════════════
   MainLayout Styles - Light Enterprise Theme + Electric Blue Navigation
   Palette: #183EEB · #040813 · #807DFE · #DCDEDD
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   GLOBAL OVERFLOW PREVENTION - Prevent any page from causing horizontal scroll
   ══════════════════════════════════════════════════════════════════════════════ */

html[b-s7ztdedxrb],
body[b-s7ztdedxrb] {
    max-width: 100vw;
    overflow-x: hidden;
}

.page[b-s7ztdedxrb] {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    overflow-x: hidden;
}

main[b-s7ztdedxrb] {
    flex: 1;
    max-width: 100%;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PREMIUM HEADER — Dark navy bar
   ══════════════════════════════════════════════════════════════════════════════ */

.header-wrapper[b-s7ztdedxrb] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1100 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.premium-header[b-s7ztdedxrb] {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    height: 56px !important;
    padding: 0 24px !important;
    background: #183EEB !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(220, 222, 221, 0.10) !important;
    box-shadow: 0 2px 12px rgba(24, 62, 235, 0.3) !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Hamburger Menu Button - Hidden on mobile (< 768px), shown on tablet */
.header-menu-btn[b-s7ztdedxrb] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.header-menu-btn:hover[b-s7ztdedxrb] {
    background: rgba(220, 222, 221, 0.10);
}

.header-menu-btn:active[b-s7ztdedxrb] {
    background: rgba(220, 222, 221, 0.16);
}

/* Logo/Title - Shown on mobile, hidden on tablet/desktop */
.header-logo[b-s7ztdedxrb] {
    display: block;
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Spacer */
.header-spacer[b-s7ztdedxrb] {
    flex: 1;
}

/* User Container (Avatar + Popover) */
.header-user-container[b-s7ztdedxrb] {
    position: relative;
}

/* Avatar Button */
.header-avatar[b-s7ztdedxrb] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #183EEB;
    border: 2px solid rgba(220, 222, 221, 0.25);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(24, 62, 235, 0.35);
}

.header-avatar:hover[b-s7ztdedxrb] {
    transform: scale(1.05);
    border-color: rgba(220, 222, 221, 0.45);
    box-shadow: 0 4px 12px rgba(24, 62, 235, 0.45);
}

.header-avatar--photo[b-s7ztdedxrb] {
    background: transparent;
    padding: 0;
    overflow: hidden;
}

.header-avatar-img[b-s7ztdedxrb] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Login Button (for unauthenticated users) */
.header-login-btn[b-s7ztdedxrb] {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #183EEB;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.header-login-btn:hover[b-s7ztdedxrb] {
    background: #1234CC;
}

/* ══════════════════════════════════════════════════════════════════════════════
   USER POPOVER (Dropdown Menu) — dark navy surface
   ══════════════════════════════════════════════════════════════════════════════ */

.popover-overlay[b-s7ztdedxrb] {
    position: fixed;
    inset: 0;
    z-index: 1099;
    background: transparent;
}

.header-popover[b-s7ztdedxrb] {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 260px;
    padding: 16px;
    background: #183EEB;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(24, 62, 235, 0.5);
    z-index: 1200;
    animation: popoverSlideDown-b-s7ztdedxrb 0.2s ease-out;
}

/* Arrow pointing to avatar */
.popover-arrow[b-s7ztdedxrb] {
    position: absolute;
    top: -8px;
    right: 18px;
    width: 16px;
    height: 16px;
    background: #183EEB;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transform: rotate(45deg);
}

/* Popover Rows */
.popover-row[b-s7ztdedxrb] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.popover-row:not(:last-child)[b-s7ztdedxrb] {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Environment Info */
.popover-environment[b-s7ztdedxrb] {
    flex-wrap: wrap;
}

.env-label[b-s7ztdedxrb] {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.875rem;
}

.env-value[b-s7ztdedxrb] {
    color: #FFFFFF;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Theme Toggle */
.popover-theme[b-s7ztdedxrb] {
    justify-content: space-between;
}

.theme-label[b-s7ztdedxrb] {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.875rem;
}

.theme-toggle[b-s7ztdedxrb] {
    display: flex;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.theme-btn[b-s7ztdedxrb] {
    padding: 6px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-btn:hover:not(.active)[b-s7ztdedxrb] {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.10);
}

.theme-btn.active[b-s7ztdedxrb] {
    background: #FFFFFF;
    color: #183EEB;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.25);
}

/* Logout Link */
.popover-logout[b-s7ztdedxrb] {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    border-bottom: none !important;
}

.popover-logout:hover[b-s7ztdedxrb] {
    color: #FFFFFF;
}

/* ══════════════════════════════════════════════════════════════════════════════
   DRAWER - Electric Blue sidebar
   ══════════════════════════════════════════════════════════════════════════════ */

[b-s7ztdedxrb] .drawer-dark {
    background: var(--dt-nav-bg, #183EEB) !important;
}

/* Logo inside drawer (mobile/tablet only) */
.drawer-logo-container[b-s7ztdedxrb] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer-logo[b-s7ztdedxrb] {
    width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

[b-s7ztdedxrb] .drawer-premium {
    display: none !important;
    margin-top: 56px !important;
    height: calc(100vh - 56px) !important;
    border-right: 1px solid rgba(220, 222, 221, 0.10);
    z-index: 1000 !important;
}

[b-s7ztdedxrb] .mud-drawer {
    z-index: 1000 !important;
}

[b-s7ztdedxrb] .mud-drawer-content {
    z-index: 1000 !important;
}

.sidebar[b-s7ztdedxrb] {
    background: var(--dt-nav-bg, #183EEB);
}

[b-s7ztdedxrb] .fluent-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    flex: 0 0 auto;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

[b-s7ztdedxrb] .fluent-icon-dashboard {
    -webkit-mask-image: url("/icons/fluent/dashboard-24-regular.svg");
    mask-image: url("/icons/fluent/dashboard-24-regular.svg");
}

[b-s7ztdedxrb] .fluent-icon-leads {
    -webkit-mask-image: url("/icons/fluent/leads-24-regular.svg");
    mask-image: url("/icons/fluent/leads-24-regular.svg");
}

[b-s7ztdedxrb] .fluent-icon-appointments {
    -webkit-mask-image: url("/icons/fluent/appointments-24-regular.svg");
    mask-image: url("/icons/fluent/appointments-24-regular.svg");
}

[b-s7ztdedxrb] .fluent-icon-quotes {
    -webkit-mask-image: url("/icons/fluent/quotes-24-regular.svg");
    mask-image: url("/icons/fluent/quotes-24-regular.svg");
}

[b-s7ztdedxrb] .fluent-icon-card {
    -webkit-mask-image: url("/icons/fluent/card-24-regular.svg");
    mask-image: url("/icons/fluent/card-24-regular.svg");
}

[b-s7ztdedxrb] .fluent-icon-templates {
    -webkit-mask-image: url("/icons/fluent/templates-24-regular.svg");
    mask-image: url("/icons/fluent/templates-24-regular.svg");
}

[b-s7ztdedxrb] .fluent-icon-analytics {
    -webkit-mask-image: url("/icons/fluent/analytics-24-regular.svg");
    mask-image: url("/icons/fluent/analytics-24-regular.svg");
}

.enterprise-sidebar[b-s7ztdedxrb] {
    display: none;
}

.enterprise-sidebar-header[b-s7ztdedxrb] {
    height: auto;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(220, 222, 221, 0.12);
}

.enterprise-logo-link[b-s7ztdedxrb] {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    width: 100%;           /* Restringe a ancho del padre */
    overflow: hidden;      /* Clipea contenido desbordado */
    justify-content: center; /* Centra logo/isotipo */
}

.enterprise-logo[b-s7ztdedxrb] {
    display: block;
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.enterprise-isotipo[b-s7ztdedxrb] {
    display: block;
    height: 40px;
    width: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.enterprise-nav[b-s7ztdedxrb] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 12px 22px;
    overflow-y: auto;
    flex: 1;
}

.enterprise-nav-item[b-s7ztdedxrb] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 10px 12px 10px 18px;
    border-radius: 12px;
    color: #FFFFFF;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.enterprise-nav-item:hover[b-s7ztdedxrb] {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.10);
}

.enterprise-nav-item.active[b-s7ztdedxrb] {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}

.enterprise-nav-indicator[b-s7ztdedxrb] {
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background-color 0.2s ease;
}

.enterprise-nav-item.active .enterprise-nav-indicator[b-s7ztdedxrb] {
    background: #FFFFFF;
}

.enterprise-nav-icon[b-s7ztdedxrb] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

[b-s7ztdedxrb] .enterprise-nav-icon .fluent-icon {
    width: 20px;
    height: 20px;
}

.enterprise-nav-item.active .enterprise-nav-icon[b-s7ztdedxrb] {
    color: #FFFFFF;
}

.enterprise-nav-text[b-s7ztdedxrb] {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SIDEBAR COLLAPSE BUTTON
   ══════════════════════════════════════════════════════════════════════════════ */

.sidebar-toggle[b-s7ztdedxrb] {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 0 6px 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.50);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.sidebar-toggle:hover[b-s7ztdedxrb] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.20);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sidebar-toggle:active[b-s7ztdedxrb] {
    transform: translateY(-50%) scale(0.96);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-toggle svg[b-s7ztdedxrb] {
    width: 14px;
    height: 14px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-width: 2.5;
}

/* ══════════════════════════════════════════════════════════════════════════════
   COLLAPSED STATE
   ══════════════════════════════════════════════════════════════════════════════ */

.enterprise-sidebar.collapsed[b-s7ztdedxrb] {
    width: 80px;
}

.enterprise-sidebar.collapsed .enterprise-sidebar-header[b-s7ztdedxrb] {
    width: 80px;
    padding: 18px 8px;  /* Reduce padding horizontal: 8px + 8px = 16px total */
    overflow: hidden;    /* Previene sangrado de contenido */
}

.enterprise-sidebar.collapsed .enterprise-nav-item[b-s7ztdedxrb] {
    padding: 10px 12px;
    justify-content: center;
}

.enterprise-sidebar.collapsed .enterprise-nav-text[b-s7ztdedxrb] {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.enterprise-sidebar.collapsed .enterprise-nav-indicator[b-s7ztdedxrb] {
    display: none;
}

.enterprise-sidebar.collapsed .enterprise-nav-icon[b-s7ztdedxrb] {
    margin: 0;
}

[b-s7ztdedxrb] .mud-nav-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
}

[b-s7ztdedxrb] .mud-nav-link .drawer-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    width: 20px;
    height: 20px;
}

[b-s7ztdedxrb] .mud-nav-link .drawer-nav-icon .fluent-icon {
    width: 20px;
    height: 20px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MUDBLAZOR ROOT OVERRIDES — Force light background on MudBlazor containers
   ══════════════════════════════════════════════════════════════════════════════ */

[b-s7ztdedxrb] .mud-layout {
    background: var(--dt-bg-canvas, #F5F4F1) !important;
}

[b-s7ztdedxrb] .mud-main-content {
    background: var(--dt-bg-canvas, #F5F4F1) !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MAIN CONTENT - Canvas bone background, proper offset for fixed Header
   ══════════════════════════════════════════════════════════════════════════════ */

[b-s7ztdedxrb] .main-content-wrapper {
    padding-top: 72px !important;
    /* 56px header + 16px spacing */
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 24px;
    min-height: calc(100vh - 56px);
    background: var(--dt-bg-canvas, #F5F4F1);
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════════════════════════
   LEGACY STYLES
   ══════════════════════════════════════════════════════════════════════════════ */

.top-row[b-s7ztdedxrb] {
    background-color: var(--dt-surface-2, #F3F4F8);
    border-bottom: 1px solid var(--dt-border-default, #DCDEDD);
    justify-content: flex-end;
    height: 64px;
    display: flex;
    align-items: center;
}

.top-row[b-s7ztdedxrb]  a,
.top-row[b-s7ztdedxrb]  .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row[b-s7ztdedxrb]  a:hover,
.top-row[b-s7ztdedxrb]  .btn-link:hover {
    text-decoration: underline;
}

.top-row[b-s7ztdedxrb]  a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE STYLES - MOBILE (< 600px)
   ══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 599.98px) {
    .header-wrapper[b-s7ztdedxrb] {
        padding: 0;
    }

    [b-s7ztdedxrb] .premium-header {
        height: 52px;
        padding: 0 14px;
        gap: 12px;
        border-radius: 0;
    }

    /* Logo hidden on mobile - shown only in drawer */

    .header-menu-btn[b-s7ztdedxrb] {
        width: 36px;
        height: 36px;
    }

    .header-menu-btn svg[b-s7ztdedxrb] {
        width: 20px;
        height: 20px;
    }

    .header-avatar[b-s7ztdedxrb] {
        width: 38px;
        height: 38px;
        font-size: 0.875rem;
    }

    /* Mobile popover - dropdown from avatar with smooth animation */
    .header-popover[b-s7ztdedxrb] {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: auto;
        bottom: auto;
        min-width: 260px;
        border-radius: 12px;
        padding: 16px;
        animation: popoverSlideDown-b-s7ztdedxrb 0.2s ease-out;
    }

    .popover-arrow[b-s7ztdedxrb] {
        display: block;
    }

    [b-s7ztdedxrb] .drawer-premium {
        margin-top: 52px !important;
        height: calc(100vh - 52px) !important;
    }

    [b-s7ztdedxrb] .main-content-wrapper {
        padding-top: 64px !important;
    }
}

/* Popover animation */
@keyframes popoverSlideDown-b-s7ztdedxrb {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE STYLES - MOBILE LARGE (600px - 767px)
   Same as mobile: Logo in header, no drawer, only bottom nav
   ══════════════════════════════════════════════════════════════════════════════ */

@media (min-width: 600px) and (max-width: 767.98px) {
    .header-wrapper[b-s7ztdedxrb] {
        padding: 0;
    }

    [b-s7ztdedxrb] .premium-header {
        height: 54px;
        padding: 0 20px;
        gap: 14px;
        border-radius: 0;
    }

    /* Keep logo visible (mobile behavior) */
    .header-logo[b-s7ztdedxrb] {
        height: 36px;
    }

    /* Keep hamburger hidden (mobile behavior) */
    .header-menu-btn[b-s7ztdedxrb] {
        display: none;
    }

    .header-avatar[b-s7ztdedxrb] {
        width: 42px;
        height: 42px;
    }

    /* Keep drawer hidden (mobile behavior) */
    [b-s7ztdedxrb] .drawer-premium {
        display: none !important;
    }

    [b-s7ztdedxrb] .main-content-wrapper {
        padding-top: 70px !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE STYLES - DESKTOP (> 960px)
   ══════════════════════════════════════════════════════════════════════════════ */

@media (min-width: 960px) {
    .header-wrapper[b-s7ztdedxrb] {
        padding: 0;
    }

    [b-s7ztdedxrb] .premium-header {
        height: 56px;
        padding: 0 28px;
        border-radius: 0;
    }

    .page[b-s7ztdedxrb] {
        flex-direction: row;
    }

    .sidebar[b-s7ztdedxrb] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

}

/* ══════════════════════════════════════════════════════════════════════════════
   EXTRA WIDE SCREENS (> 1920px)
   ══════════════════════════════════════════════════════════════════════════════ */

@media (min-width: 1920px) {
    .header-wrapper[b-s7ztdedxrb] {
        padding: 16px 32px;
    }

    [b-s7ztdedxrb] .premium-header {
        max-width: 1800px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   BLAZOR ERROR UI
   ══════════════════════════════════════════════════════════════════════════════ */

#blazor-error-ui[b-s7ztdedxrb] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-s7ztdedxrb] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SWIPE NAVIGATION - Instagram Stories-style module navigation
   ══════════════════════════════════════════════════════════════════════════════ */

/* Swipe wrapper */
.swipe-navigation-wrapper[b-s7ztdedxrb] {
    will-change: transform;
    touch-action: pan-y pinch-zoom;
    position: relative;
    min-height: 100%;
}

/* Peek containers - hidden on desktop */
.swipe-peek-container[b-s7ztdedxrb] {
    display: none;
}

/* Navigation dots - hidden on desktop */
.swipe-nav-indicators[b-s7ztdedxrb] {
    display: none;
}

/* Mobile styles for swipe navigation */
@media (max-width: 767.98px) {
    .swipe-navigation-wrapper[b-s7ztdedxrb] {
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .swipe-navigation-wrapper.swiping[b-s7ztdedxrb] {
        transition: none;
    }

    /* Peek containers */
    .swipe-peek-container[b-s7ztdedxrb] {
        display: flex;
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
        background: rgba(24, 62, 235, 0.12);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.15s ease, transform 0.15s ease;
        z-index: 100;
        pointer-events: none;
    }

    .swipe-peek-left[b-s7ztdedxrb] {
        left: 8px;
    }

    .swipe-peek-right[b-s7ztdedxrb] {
        right: 8px;
    }

    .swipe-peek-icon[b-s7ztdedxrb] {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .swipe-peek-icon svg[b-s7ztdedxrb] {
        width: 24px;
        height: 24px;
        color: #807DFE;
    }

}

/* Extra small mobile */
@media (max-width: 599.98px) {
    .swipe-peek-container[b-s7ztdedxrb] {
        width: 40px;
        height: 40px;
    }

    .swipe-peek-icon svg[b-s7ztdedxrb] {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 768px) {
    .enterprise-sidebar[b-s7ztdedxrb] {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 252px;
        height: 100dvh;
        background: #183EEB;
        border-right: 1px solid rgba(220, 222, 221, 0.12);
        z-index: 1250;
        box-sizing: border-box;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header-wrapper[b-s7ztdedxrb] {
        left: 252px !important;
        right: 0 !important;
        width: calc(100% - 252px) !important;
        max-width: calc(100% - 252px) !important;
        padding: 0 !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Header adjustment when sidebar is collapsed */
    .layout-root.sidebar-collapsed .header-wrapper[b-s7ztdedxrb] {
        left: 80px !important;
        width: calc(100% - 80px) !important;
        max-width: calc(100% - 80px) !important;
    }

    [b-s7ztdedxrb] .premium-header {
        height: 64px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 32px 0 24px !important;
        gap: 0 !important;
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    .header-menu-btn[b-s7ztdedxrb],
    .header-logo[b-s7ztdedxrb] {
        display: none;
    }

    .header-spacer[b-s7ztdedxrb] {
        flex: 1;
    }

    .header-avatar[b-s7ztdedxrb] {
        width: 38px;
        height: 38px;
        border-color: rgba(24, 62, 235, 0.35);
        box-shadow: none;
    }

    .header-user-container[b-s7ztdedxrb] {
        margin-right: 4px;
    }

    [b-s7ztdedxrb] .mud-main-content.main-content-wrapper {
        margin-left: 252px !important;
        width: calc(100% - 252px) !important;
        max-width: calc(100% - 252px) !important;
        padding-top: calc(64px + 16px) !important;
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: 32px;
        min-height: 100dvh;
        box-sizing: border-box;
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Main content adjustment when sidebar is collapsed */
    .layout-root.sidebar-collapsed[b-s7ztdedxrb]  .mud-main-content.main-content-wrapper {
        margin-left: 80px !important;
        width: calc(100% - 80px) !important;
        max-width: calc(100% - 80px) !important;
    }

    .swipe-navigation-wrapper[b-s7ztdedxrb] {
        width: 100%;
        box-sizing: border-box;
        min-height: calc(100dvh - 64px);
    }

    [b-s7ztdedxrb] .drawer-premium,
    [b-s7ztdedxrb] .mud-drawer,
    [b-s7ztdedxrb] .mud-drawer-content,
    [b-s7ztdedxrb] .mud-overlay-drawer {
        display: none !important;
    }

    .mobile-bottom-nav[b-s7ztdedxrb],
    .more-sheet[b-s7ztdedxrb],
    .more-sheet-overlay[b-s7ztdedxrb],
    .swipe-peek-container[b-s7ztdedxrb],
    .drawer-logo-container[b-s7ztdedxrb] {
        display: none !important;
    }
}
/* _content/DataTouch.Web/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-1x9s3euhit] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(220, 222, 221, 0.15);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28220, 222, 221, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(220, 222, 221, 0.08);
}

.navbar-toggler:checked[b-1x9s3euhit] {
    background-color: rgba(220, 222, 221, 0.20);
}

.top-row[b-1x9s3euhit] {
    min-height: 3.5rem;
    background-color: rgba(24, 62, 235, 0.6);
}

.navbar-brand[b-1x9s3euhit] {
    font-size: 1.1rem;
}

.bi[b-1x9s3euhit] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-1x9s3euhit] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-1x9s3euhit] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-1x9s3euhit] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-1x9s3euhit] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-1x9s3euhit] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-1x9s3euhit] {
        padding-bottom: 1rem;
    }

    .nav-item[b-1x9s3euhit]  .nav-link {
        color: #FFFFFF;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-1x9s3euhit]  a.active {
    background-color: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
}

.nav-item[b-1x9s3euhit]  .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
}

.nav-scrollable[b-1x9s3euhit] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-1x9s3euhit] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-1x9s3euhit] {
        display: none;
    }

    .nav-scrollable[b-1x9s3euhit] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* _content/DataTouch.Web/Components/Pages/Dashboard.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════════════════════
   Dashboard Page Styles - Light Enterprise Theme with Dark Sidebar
   Pixel-perfect implementation matching mockup
   ══════════════════════════════════════════════════════════════════════════════ */

.dashboard-page[b-uj8r836w4y] {
    padding: 24px 32px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    box-sizing: border-box;
    background: transparent;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MOBILE-ONLY ELEMENTS - Hidden on desktop
   ══════════════════════════════════════════════════════════════════════════════ */

.mobile-header[b-uj8r836w4y],
.mobile-hero-card[b-uj8r836w4y],
.mobile-bottom-nav[b-uj8r836w4y],
.mobile-chart-toggle[b-uj8r836w4y],
.locations-section-header[b-uj8r836w4y] {
    display: none;
}


/* ══════════════════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════════════════ */

.date-selector[b-uj8r836w4y] {
    position: relative;
    display: flex;
    align-items: center;
}

.date-dropdown[b-uj8r836w4y] {
    appearance: none;
    background: var(--dt-surface-2, #F3F4F8);
    border: 1px solid var(--dt-border-default, #DCDEDD);
    border-radius: var(--dt-radius-lg, 12px);
    padding: 10px 40px 10px 16px;
    color: var(--dt-text-primary, #01033E);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 140px;
    transition: all var(--dt-transition-fast, 150ms ease);
}

.date-dropdown:hover[b-uj8r836w4y] {
    border-color: var(--dt-primary-500, #183EEB);
}

.date-dropdown:focus[b-uj8r836w4y] {
    outline: none;
    border-color: var(--dt-primary-500, #183EEB);
    box-shadow: 0 0 0 3px rgba(24, 62, 235, 0.15);
}

.dropdown-icon[b-uj8r836w4y] {
    position: absolute;
    right: 12px;
    width: 16px;
    height: 16px;
    color: var(--dt-text-secondary, #3E4188);
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════════════
   LOADING STATE
   ══════════════════════════════════════════════════════════════════════════════ */

.loading-overlay[b-uj8r836w4y] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   KPI SECTION - Premium Cards with Mobile Carousel
   ══════════════════════════════════════════════════════════════════════════════ */

.kpi-section[b-uj8r836w4y] {
    margin: 8px 0 24px;
    background: transparent;
}

/* Carousel Wrapper */
.kpi-carousel[b-uj8r836w4y] {
    overflow: visible;
    background: transparent;
}

/* Card Track - Grid on Desktop */
.kpi-track[b-uj8r836w4y] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Allow grid children to shrink below intrinsic content width */
.kpi-track > *[b-uj8r836w4y],
.main-row > *[b-uj8r836w4y],
.insights-row > *[b-uj8r836w4y] {
    min-width: 0;
}

/* Premium Card Design - Vertical Hierarchy */
.kpi-card-premium[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: all 200ms ease;
    cursor: default;
    min-height: 160px;
}

.kpi-card-premium:hover[b-uj8r836w4y] {
    border-color: #C0C1C8;
    box-shadow: 0 8px 32px rgba(1, 3, 62, 0.10);
    transform: translateY(-2px);
}

/* Header: Icon + Centered Title */
.kpi-header[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Circular Icon - Increased size */
.kpi-icon-circle[b-uj8r836w4y] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #DCDEDD;
    background: #F3F4F8;
}

.kpi-icon-circle svg[b-uj8r836w4y] {
    width: 18px;
    height: 18px;
}

.kpi-icon-circle.interactions[b-uj8r836w4y] {
    background: rgba(24, 62, 235, 0.12);
    color: #183EEB;
    border-color: rgba(24, 62, 235, 0.2);
}

.kpi-icon-circle.leads[b-uj8r836w4y] {
    background: rgba(128, 125, 254, 0.12);
    color: #807DFE;
    border-color: rgba(128, 125, 254, 0.2);
}

.kpi-icon-circle.meetings[b-uj8r836w4y] {
    background: rgba(128, 125, 254, 0.08);
    color: #807DFE;
    border-color: rgba(128, 125, 254, 0.15);
}

.kpi-icon-circle.conversion[b-uj8r836w4y] {
    background: rgba(217, 119, 6, 0.12);
    color: #D97706;
    border-color: rgba(217, 119, 6, 0.2);
}

/* Title - Centered in remaining space */
.kpi-title[b-uj8r836w4y] {
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    color: #6B6E8F;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    padding-right: 36px;
    /* Balance for icon width */
}

/* Body: Centered Number */
.kpi-body[b-uj8r836w4y] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}

.kpi-number[b-uj8r836w4y] {
    font-size: 2.5rem;
    font-weight: 700;
    color: #01033E;
    line-height: 1;
    letter-spacing: -0.02em;
    font-feature-settings: "tnum";
    text-align: center;
}

.kpi-number.kpi-na[b-uj8r836w4y] {
    color: rgba(1, 3, 62, 0.35);
    font-style: italic;
    font-size: 1.75rem;
}

/* Divider - Visible separator */
.kpi-divider[b-uj8r836w4y] {
    height: 1px;
    background: #DCDEDD;
    margin: 12px 0;
    width: 100%;
}

/* Footer: Delta Pill */
.kpi-footer[b-uj8r836w4y] {
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.kpi-delta-pill[b-uj8r836w4y] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.kpi-delta-pill.positive[b-uj8r836w4y] {
    background: rgba(22, 163, 74, 0.12);
    color: #16A34A;
}

.kpi-delta-pill.negative[b-uj8r836w4y] {
    background: rgba(220, 38, 38, 0.12);
    color: #DC2626;
}

.kpi-delta-pill.neutral[b-uj8r836w4y] {
    background: rgba(1, 3, 62, 0.06);
    color: #6B6E8F;
}

.delta-arrow[b-uj8r836w4y] {
    font-weight: 600;
}

.delta-value[b-uj8r836w4y] {
    font-weight: 600;
}

.delta-label[b-uj8r836w4y] {
    color: inherit;
    opacity: 0.8;
}

/* Carousel Indicators - Hidden on Desktop */
.kpi-indicators[b-uj8r836w4y] {
    display: none;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MAIN ROW (Chart + Locations)
   ══════════════════════════════════════════════════════════════════════════════ */

.main-row[b-uj8r836w4y] {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-page .panel[b-uj8r836w4y] {
    padding: 20px;
}

/* Keep all dashboard widgets at the same hierarchy/surface level */
.dashboard-page .locations-panel[b-uj8r836w4y],
.dashboard-page .smart-summary-panel[b-uj8r836w4y],
.dashboard-page .links-panel[b-uj8r836w4y],
.dashboard-page .high-intent-panel[b-uj8r836w4y] {
    background: #FFFFFF;
    position: relative;
    overflow: visible; /* CRÍTICO: Dropdowns no deben ser cortados */
}

.panel-header[b-uj8r836w4y] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-title[b-uj8r836w4y] {
    font-size: 16px;
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
    margin: 0;
}

.panel-actions[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative; /* Permite que dropdowns se anclen aquí */
}

.section-title[b-uj8r836w4y] {
    font-size: 14px;
    font-weight: 600;
    color: var(--dt-text-secondary, #3E4188);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CHART PANEL
   ══════════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════════
   CHART PANEL - PREMIUM REDESIGN
   ══════════════════════════════════════════════════════════════════════════════ */

.chart-panel[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
}

.chart-header[b-uj8r836w4y] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.chart-title[b-uj8r836w4y] {
    font-size: 16px;
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
    margin: 0 0 4px 0;
}

.chart-subtitle[b-uj8r836w4y] {
    font-size: 12px;
    color: #6B6E8F;
}

.chart-toggle[b-uj8r836w4y] {
    display: flex;
    background: var(--dt-bg-subtle, #F3F4F8);
    border-radius: var(--dt-radius-full, 9999px);
    padding: 2px;
    border: 1px solid var(--dt-border-default, #DCDEDD);
}

.toggle-btn[b-uj8r836w4y] {
    padding: 4px 12px;
    border: none;
    background: transparent;
    color: var(--dt-text-secondary, #3E4188);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--dt-radius-full, 9999px);
    cursor: pointer;
    transition: all var(--dt-transition-fast, 150ms ease);
}

.toggle-btn:hover[b-uj8r836w4y] {
    color: var(--dt-text-primary, #01033E);
}

.toggle-btn.active[b-uj8r836w4y] {
    background: var(--dt-surface-3, #ECEDF3);
    color: var(--dt-text-primary, #01033E);
    box-shadow: 0 1px 2px rgba(1, 3, 62, 0.08);
}

/* KPI Bar Inline */
.chart-kpi-bar[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--dt-bg-subtle, #F7F8FC);
    border-radius: var(--dt-radius-md, 8px);
    border: 1px solid var(--dt-border-subtle, #ECEDF3);
}

.chart-kpi[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kpi-divider[b-uj8r836w4y] {
    color: var(--dt-border-default, #DCDEDD);
    opacity: 0.5;
}

.kpi-label[b-uj8r836w4y] {
    font-size: 13px;
    color: var(--dt-text-secondary, #3E4188);
    font-weight: 500;
}

.kpi-value[b-uj8r836w4y] {
    font-size: 15px;
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
    font-feature-settings: "tnum";
}

.kpi-delta[b-uj8r836w4y] {
    font-size: 12px;
    font-weight: 500;
}

.kpi-delta.positive[b-uj8r836w4y] {
    color: var(--dt-success, #16A34A);
}

.kpi-delta.negative[b-uj8r836w4y] {
    color: var(--dt-danger, #DC2626);
}

/* Chart SVG Area */
.chart-container[b-uj8r836w4y] {
    position: relative;
    margin: 0 -10px;
    /* Slight overflow correction */
}

.chart-svg[b-uj8r836w4y] {
    width: 100%;
    height: auto;
    overflow: visible;
}

.grid-line[b-uj8r836w4y] {
    stroke: #01033E;
    stroke-width: 1;
    opacity: 0.06;
}

.axis-label[b-uj8r836w4y] {
    font-size: 11px;
    fill: #3E4188;
    /* Navy secondary on light */
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.axis-label.y-label-left[b-uj8r836w4y] {
    text-anchor: end;
}

.axis-label.y-label-right[b-uj8r836w4y] {
    text-anchor: start;
}

.axis-label.x-label[b-uj8r836w4y] {
    text-anchor: middle;
}

/* Series Lines */
.chart-line[b-uj8r836w4y] {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(1, 3, 62, 0.12));
}

.chart-line.interactions[b-uj8r836w4y] {
    stroke: var(--dt-primary-500, #183EEB);
}

.chart-line.leads[b-uj8r836w4y] {
    stroke: var(--dt-secondary-400, #807DFE);
}

/* Interactive Elements */
.hover-zone[b-uj8r836w4y] {
    cursor: crosshair;
    pointer-events: all;
    fill: transparent;
}

.hover-zone:hover[b-uj8r836w4y] {
    fill: rgba(1, 3, 62, 0.02);
}

.data-point[b-uj8r836w4y] {
    transition: r 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    stroke: var(--dt-bg-surface-2, #FFFFFF);
    /* Match card bg for ring effect */
    stroke-width: 2px;
}

.data-point.interactions-point[b-uj8r836w4y] {
    fill: var(--dt-primary-500, #183EEB);
}

.data-point.leads-point[b-uj8r836w4y] {
    fill: var(--dt-secondary-400, #807DFE);
}


/* Premium Floating Tooltip */
.chart-tooltip[b-uj8r836w4y] {
    position: absolute;
    top: 20px;
    transform: translateX(-50%);
    background: var(--dt-bg-card, #FFFFFF);
    border: 1px solid var(--dt-border-accent, #C0C1C8);
    border-radius: var(--dt-radius-md, 8px);
    padding: 12px;
    box-shadow: 0 10px 25px -5px rgba(1, 3, 62, 0.12);
    z-index: 20;
    min-width: 160px;
    pointer-events: none;
    animation: tooltip-fade-b-uj8r836w4y 0.2s ease-out;
}

@keyframes tooltip-fade-b-uj8r836w4y {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.tooltip-date[b-uj8r836w4y] {
    font-size: 12px;
    color: #01033E;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--dt-border-default, #DCDEDD);
    font-weight: 500;
}

.tooltip-row[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
}

.tooltip-dot[b-uj8r836w4y] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.tooltip-dot.interactions[b-uj8r836w4y] {
    background: var(--dt-primary-500, #183EEB);
}

.tooltip-dot.leads[b-uj8r836w4y] {
    background: var(--dt-secondary-400, #807DFE);
}

.tooltip-label[b-uj8r836w4y] {
    flex: 1;
    color: var(--dt-text-secondary, #3E4188);
}

.tooltip-value[b-uj8r836w4y] {
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
}

.tooltip-conversion[b-uj8r836w4y] {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed var(--dt-border-default, #DCDEDD);
    font-size: 12px;
    color: var(--dt-text-secondary, #3E4188);
    text-align: right;
}

.tooltip-conversion strong[b-uj8r836w4y] {
    color: var(--dt-text-primary, #01033E);
}

/* Footer & Legend */
.chart-footer[b-uj8r836w4y] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--dt-border-subtle, #ECEDF3);
}

.chart-legend[b-uj8r836w4y] {
    display: flex;
    gap: 16px;
}

.legend-item[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #01033E;
    font-weight: 500;
}

.legend-dot[b-uj8r836w4y] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.interactions[b-uj8r836w4y] {
    background: var(--dt-primary-500, #183EEB);
}

.legend-dot.leads[b-uj8r836w4y] {
    background: var(--dt-secondary-400, #807DFE);
}

.chart-insights[b-uj8r836w4y] {
    font-size: 11px;
    color: #6B6E8F;
}

.chart-insights strong[b-uj8r836w4y] {
    color: #01033E;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ANALYTICS WIDGET - Premium Mockup Redesign
   ══════════════════════════════════════════════════════════════════════════════ */

.analytics-widget[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: relative;
}

.analytics-widget.loading[b-uj8r836w4y] {
    min-height: 400px;
}

/* Header */
.analytics-header[b-uj8r836w4y] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.analytics-header-left[b-uj8r836w4y] {
    flex: 1;
    min-width: 200px;
}

.analytics-title[b-uj8r836w4y] {
    font-size: 1.5rem;
    font-weight: 600;
    color: #01033E;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.analytics-subtitle[b-uj8r836w4y] {
    font-size: 13px;
    color: #6B6E8F;
}

.analytics-header-right[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Segmented Control */
.analytics-segmented[b-uj8r836w4y] {
    display: flex;
    background: #F3F4F8;
    border-radius: 24px;
    padding: 4px;
    border: 1px solid #DCDEDD;
}

.seg-btn[b-uj8r836w4y] {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #6B6E8F;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.seg-btn:hover[b-uj8r836w4y] {
    color: #01033E;
}

.seg-btn.active[b-uj8r836w4y] {
    background: linear-gradient(135deg, #183EEB, #040813);
    color: #fff;
    box-shadow: 0 2px 8px rgba(24, 62, 235, 0.25);
}

/* Range Dropdown Pill */
.analytics-range-dropdown[b-uj8r836w4y] {
    position: relative;
}

.range-pill[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(24, 62, 235, 0.4);
    border-radius: 24px;
    color: #01033E;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.range-pill:hover[b-uj8r836w4y] {
    border-color: #183EEB;
    background: rgba(24, 62, 235, 0.06);
}

.range-pill .chevron[b-uj8r836w4y] {
    width: 16px;
    height: 16px;
    transition: transform 200ms ease;
}

.range-pill .chevron.open[b-uj8r836w4y] {
    transform: rotate(180deg);
}

/* Dropdown para widgets Pattern B (map, links, summary, high-intent) */
.range-dropdown[b-uj8r836w4y] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #FFFFFF;
    border: 1px solid #DCDEDD;
    border-radius: 12px;
    padding: 8px;
    z-index: 100;
    box-shadow: 0 16px 48px rgba(1, 3, 62, 0.12);
    backdrop-filter: blur(16px);
}

/* Dropdown para chart widget (Pattern A) */
.range-dropdown-menu[b-uj8r836w4y] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #FFFFFF;
    border: 1px solid #DCDEDD;
    border-radius: 12px;
    padding: 8px;
    z-index: 100;
    box-shadow: 0 16px 48px rgba(1, 3, 62, 0.12);
    backdrop-filter: blur(16px);
}

.range-option[b-uj8r836w4y] {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #3E4188;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 150ms ease;
}

.range-option:hover[b-uj8r836w4y] {
    background: #EDF0FD;
    color: #01033E;
}

.range-option.selected[b-uj8r836w4y] {
    background: #D5DCFA;
    color: #183EEB;
}

/* Export Menu */
.analytics-export[b-uj8r836w4y] {
    position: relative;
}

.export-btn[b-uj8r836w4y] {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #DCDEDD;
    border-radius: 10px;
    color: #6B6E8F;
    cursor: pointer;
    transition: all 150ms ease;
}

.export-btn:hover[b-uj8r836w4y] {
    background: #F3F4F8;
    color: #01033E;
}

.export-btn svg[b-uj8r836w4y] {
    width: 18px;
    height: 18px;
}

.export-dropdown[b-uj8r836w4y] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #FFFFFF;
    border: 1px solid #DCDEDD;
    border-radius: 12px;
    padding: 8px;
    z-index: 100;
    box-shadow: 0 16px 48px rgba(1, 3, 62, 0.12);
}

.export-option[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #3E4188;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 150ms ease;
}

.export-option:hover[b-uj8r836w4y] {
    background: #EDF0FD;
    color: #01033E;
}

.export-option svg[b-uj8r836w4y] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   Pattern B Export Menus (for widget panels: Map, Links, Summary, High-Intent)
   ══════════════════════════════════════════════════════════════════════════════ */

.export-menu-button[b-uj8r836w4y] {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #DCDEDD;
    border-radius: 10px;
    color: #6B6E8F;
    cursor: pointer;
    transition: all 150ms ease;
    flex-shrink: 0;
}

.export-menu-button:hover[b-uj8r836w4y] {
    background: #F3F4F8;
    color: #01033E;
}

.export-menu-button svg[b-uj8r836w4y] {
    width: 18px;
    height: 18px;
}

.export-menu[b-uj8r836w4y] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #FFFFFF;
    border: 1px solid #DCDEDD;
    border-radius: 12px;
    padding: 8px;
    z-index: 100;
    box-shadow: 0 16px 48px rgba(1, 3, 62, 0.12);
}

.menu-item[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #3E4188;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 150ms ease;
}

.menu-item:hover[b-uj8r836w4y] {
    background: #EDF0FD;
    color: #01033E;
}

.menu-item svg[b-uj8r836w4y] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Mobile Controls (hidden on desktop) */
.analytics-mobile-controls[b-uj8r836w4y] {
    display: none;
}

/* KPI Cards */
.analytics-kpis[b-uj8r836w4y] {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.analytics-kpi-card[b-uj8r836w4y] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    background: #F7F8FC;
    border: 1px solid #DCDEDD;
    border-radius: 12px;
}

.kpi-title[b-uj8r836w4y] {
    font-size: 11px;
    font-weight: 600;
    color: #6B6E8F;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-number[b-uj8r836w4y] {
    font-size: 2rem;
    font-weight: 700;
    color: #01033E;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.kpi-change[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.kpi-change.positive[b-uj8r836w4y] {
    color: #16A34A;
}

.kpi-change.negative[b-uj8r836w4y] {
    color: #DC2626;
}

.kpi-change .info-icon[b-uj8r836w4y] {
    margin-left: 4px;
    cursor: help;
}

.kpi-change .info-icon svg[b-uj8r836w4y] {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

.kpi-change .info-icon:hover svg[b-uj8r836w4y] {
    opacity: 1;
}

/* ─── Mobile-only elements: hidden on desktop ─── */
.analytics-conv-badge[b-uj8r836w4y] {
    display: none;
}

.kpi-change-compact[b-uj8r836w4y] {
    display: none;
}

.kpi-change-full[b-uj8r836w4y] {
    display: inline;
}

/* Legend */
.analytics-legend[b-uj8r836w4y] {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

/* Legend al pie del widget, centrada */
.analytics-legend.bottom-centered[b-uj8r836w4y] {
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 0;
    padding-top: 16px;
    border-top: 1px solid #ECEDF3;
}

.legend-item[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #3E4188;
}

.legend-dot[b-uj8r836w4y] {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-dot.interactions[b-uj8r836w4y] {
    background: linear-gradient(135deg, #183EEB, #040813);
}

.legend-dot.leads[b-uj8r836w4y] {
    background: linear-gradient(135deg, #807DFE, #183EEB);
}

/* Chart Container - Legacy (keeping for reference) */
.analytics-chart[b-uj8r836w4y] {
    position: relative;
    margin: 0 -10px;
}

/* ECharts Container - Auto-responsive */
.analytics-echart[b-uj8r836w4y] {
    width: 100%;
    height: 280px;
    /* Taller since legend moved to footer */
    margin: 0.5rem 0;
}

/* Taller on mobile for better visibility */
@media (max-width: 768px) {
    .analytics-echart[b-uj8r836w4y] {
        height: clamp(300px, 50vh, 420px);
        margin: 0.5rem 0;
    }
}

/* ─── Premium Footer Strip with Legend Pills ─── */
.analytics-footer-strip[b-uj8r836w4y] {
    margin-top: 0.5rem;
}

.footer-divider[b-uj8r836w4y] {
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(128, 125, 254, 0.3) 20%,
            rgba(24, 62, 235, 0.2) 80%,
            transparent);
    margin-bottom: 12px;
}

.footer-content[b-uj8r836w4y] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
}

.legend-pills[b-uj8r836w4y] {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex: 1;
}

.legend-pill[b-uj8r836w4y] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #F7F8FC;
    border: 1px solid #DCDEDD;
    border-radius: 9999px;
    cursor: default;
    transition: all 150ms ease;
}

.legend-pill:hover[b-uj8r836w4y] {
    background: #EDF0FD;
    border-color: #C0C1C8;
}

.pill-dot[b-uj8r836w4y] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pill-dot.interactions[b-uj8r836w4y] {
    background: linear-gradient(135deg, #183EEB, #040813);
    box-shadow: 0 0 6px rgba(24, 62, 235, 0.3);
}

.pill-dot.leads[b-uj8r836w4y] {
    background: linear-gradient(135deg, #807DFE, #183EEB);
    box-shadow: 0 0 6px rgba(128, 125, 254, 0.3);
}

.pill-label[b-uj8r836w4y] {
    font-size: 12px;
    font-weight: 500;
    color: #3E4188;
}

.footer-insights[b-uj8r836w4y] {
    font-size: 11px;
    color: #6B6E8F;
    text-align: right;
    flex-shrink: 0;
}

.footer-insights strong[b-uj8r836w4y] {
    color: #01033E;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-content[b-uj8r836w4y] {
        flex-direction: column;
        gap: 8px;
    }

    .footer-insights[b-uj8r836w4y] {
        text-align: center;
    }
}

.analytics-svg[b-uj8r836w4y] {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* ─── HTML Labels (outside SVG - NEVER stretch) ─── */
.chart-y-labels[b-uj8r836w4y] {
    position: absolute;
    /* Grid lines en SVG: y=20 (top) a y=220 (bottom) de viewBox 280 = 7.1% a 78.6% */
    top: 7%;
    bottom: 21%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.chart-y-labels.left[b-uj8r836w4y] {
    left: 0;
    width: 50px;
    align-items: flex-end;
    padding-right: 10px;
}

.chart-y-labels.right[b-uj8r836w4y] {
    right: 0;
    width: 50px;
    align-items: flex-start;
    padding-left: 10px;
}

.chart-y-labels .y-label[b-uj8r836w4y] {
    font-size: 11px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    line-height: 1;
}

.chart-y-labels.left .y-label[b-uj8r836w4y] {
    color: rgba(24, 62, 235, 0.85);
}

.chart-y-labels.right .y-label[b-uj8r836w4y] {
    color: rgba(128, 125, 254, 0.85);
}

.chart-x-labels[b-uj8r836w4y] {
    position: absolute;
    bottom: 3%;
    /* Align with bars area: 8.75% left (70/800) to 91.25% right (730/800) */
    left: 8.5%;
    right: 8.5%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    pointer-events: none;
    z-index: 5;
}

.chart-x-labels .x-label[b-uj8r836w4y] {
    font-size: 12px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    color: rgba(1, 3, 62, 0.7);
    text-transform: uppercase;
}

.chart-gridline[b-uj8r836w4y] {
    stroke: rgba(1, 3, 62, 0.06);
    stroke-width: 1;
}

.axis-label[b-uj8r836w4y] {
    font-size: 11px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    fill: rgba(1, 3, 62, 0.45);
}

.axis-label.y-left[b-uj8r836w4y] {
    text-anchor: end;
}

.axis-label.y-right[b-uj8r836w4y] {
    text-anchor: start;
}

.axis-label.x-label[b-uj8r836w4y] {
    text-anchor: middle;
}

.axis-label-vertical[b-uj8r836w4y] {
    font-size: 10px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
    fill: rgba(24, 62, 235, 0.7);
    letter-spacing: 0.5px;
}

.chart-bar[b-uj8r836w4y] {
    transition: all 200ms ease;
    filter: drop-shadow(0 2px 6px rgba(1, 3, 62, 0.12));
}

/* Glow effect for interactions bar (brand blue) */
.chart-bar[fill*="interactionsBarGradient"][b-uj8r836w4y] {
    filter: drop-shadow(0 4px 12px rgba(24, 62, 235, 0.25));
}

/* Glow effect for leads bar (lavender) */
.chart-bar[fill*="leadsBarGradient"][b-uj8r836w4y] {
    filter: drop-shadow(0 4px 12px rgba(128, 125, 254, 0.3));
}

.chart-bar.hovered[b-uj8r836w4y] {
    filter: drop-shadow(0 6px 16px rgba(24, 62, 235, 0.35)) brightness(1.1);
}

.bar-hover-zone[b-uj8r836w4y] {
    cursor: crosshair;
    pointer-events: all;
}

/* Premium Tooltip */
.analytics-tooltip[b-uj8r836w4y] {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    background: #FFFFFF;
    border: 1px solid rgba(24, 62, 235, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 160px;
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 16px 48px rgba(1, 3, 62, 0.12);
    backdrop-filter: blur(12px);
    animation: tooltipFadeIn-b-uj8r836w4y 150ms ease-out;
}

@keyframes tooltipFadeIn-b-uj8r836w4y {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.tooltip-header[b-uj8r836w4y] {
    font-size: 13px;
    font-weight: 600;
    color: #01033E;
    margin-bottom: 4px;
}

.tooltip-subheader[b-uj8r836w4y] {
    font-size: 11px;
    color: #6B6E8F;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #DCDEDD;
}

.tooltip-occurrences[b-uj8r836w4y] {
    color: #6B6E8F;
    font-weight: 400;
}

.tooltip-row[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.tooltip-dot[b-uj8r836w4y] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tooltip-dot.interactions[b-uj8r836w4y] {
    background: linear-gradient(135deg, #183EEB, #040813);
}

.tooltip-dot.leads[b-uj8r836w4y] {
    background: linear-gradient(135deg, #807DFE, #183EEB);
}

.tooltip-label[b-uj8r836w4y] {
    color: #3E4188;
}

.tooltip-footer[b-uj8r836w4y] {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #DCDEDD;
    font-size: 12px;
    color: #6B6E8F;
    text-align: right;
}

.tooltip-footer strong[b-uj8r836w4y] {
    color: #01033E;
}

/* Footer */
.analytics-footer[b-uj8r836w4y] {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ECEDF3;
}

.footer-insights[b-uj8r836w4y] {
    font-size: 12px;
    color: #6B6E8F;
}

.footer-insights strong[b-uj8r836w4y] {
    color: #01033E;
    font-weight: 600;
}

/* States: Loading */
.analytics-loading[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 0;
}

.kpi-skeleton-row[b-uj8r836w4y] {
    display: flex;
    gap: 20px;
}

.kpi-skeleton[b-uj8r836w4y] {
    flex: 1;
    height: 100px;
    background: linear-gradient(90deg, rgba(1, 3, 62, 0.04) 25%, rgba(1, 3, 62, 0.08) 50%, rgba(1, 3, 62, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer-b-uj8r836w4y 1.5s infinite;
    border-radius: 12px;
}

.chart-skeleton[b-uj8r836w4y] {
    height: 200px;
    background: linear-gradient(90deg, rgba(1, 3, 62, 0.04) 25%, rgba(1, 3, 62, 0.08) 50%, rgba(1, 3, 62, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer-b-uj8r836w4y 1.5s infinite;
    border-radius: 12px;
}

@keyframes shimmer-b-uj8r836w4y {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* States: Empty */
.analytics-empty[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.analytics-empty svg[b-uj8r836w4y] {
    width: 48px;
    height: 48px;
    color: rgba(1, 3, 62, 0.25);
    margin-bottom: 16px;
}

.empty-title[b-uj8r836w4y] {
    font-size: 16px;
    font-weight: 600;
    color: #01033E;
    margin-bottom: 4px;
}

.empty-subtitle[b-uj8r836w4y] {
    font-size: 13px;
    color: #6B6E8F;
    margin-bottom: 20px;
}

.empty-cta[b-uj8r836w4y] {
    padding: 10px 20px;
    background: linear-gradient(135deg, #183EEB, #040813);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.empty-cta:hover[b-uj8r836w4y] {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(24, 62, 235, 0.3);
}

/* States: Error */
.analytics-error[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.analytics-error svg[b-uj8r836w4y] {
    width: 48px;
    height: 48px;
    color: #EF4444;
    margin-bottom: 16px;
}

.error-title[b-uj8r836w4y] {
    font-size: 16px;
    font-weight: 600;
    color: #01033E;
    margin-bottom: 16px;
}

.error-cta[b-uj8r836w4y] {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 10px;
    color: #EF4444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.error-cta:hover[b-uj8r836w4y] {
    background: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BAR CHART WIDGET - Premium Redesign (Legacy - keeping for backwards compat)
   ══════════════════════════════════════════════════════════════════════════════ */

.bar-chart-widget[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
}

/* Header with Pill Tabs */
.bar-chart-header[b-uj8r836w4y] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.bar-chart-header-left[b-uj8r836w4y] {
    flex: 1;
    min-width: 0;
}

.bar-chart-title[b-uj8r836w4y] {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
    margin: 0 0 4px 0;
}

.bar-chart-subtitle[b-uj8r836w4y] {
    font-size: 12px;
    color: #6B6E8F;
}

/* Pill/Segmented Tabs */
.bar-chart-tabs[b-uj8r836w4y] {
    display: flex;
    background: #F3F4F8;
    border-radius: 20px;
    padding: 3px;
    border: 1px solid #DCDEDD;
    flex-shrink: 0;
}

.bar-tab[b-uj8r836w4y] {
    padding: 6px 16px;
    border: none;
    background: transparent;
    color: #6B6E8F;
    font-size: 13px;
    font-weight: 500;
    border-radius: 17px;
    cursor: pointer;
    transition: all 150ms ease;
    min-width: 60px;
    text-align: center;
}

.bar-tab:hover[b-uj8r836w4y] {
    color: #01033E;
}

.bar-tab.active[b-uj8r836w4y] {
    background: linear-gradient(135deg, #183EEB, #040813);
    color: #fff;
    box-shadow: 0 2px 8px rgba(24, 62, 235, 0.25);
}

/* Mobile toggle - hidden on desktop */
.bar-chart-mobile-tabs[b-uj8r836w4y] {
    display: none;
}

/* KPI Cards Row */
.bar-chart-kpis[b-uj8r836w4y] {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.bar-kpi-card[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
}

.bar-kpi-label[b-uj8r836w4y] {
    font-size: 12px;
    color: #6B6E8F;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bar-kpi-value[b-uj8r836w4y] {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dt-text-primary, #01033E);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.bar-kpi-delta[b-uj8r836w4y] {
    font-size: 13px;
    font-weight: 500;
}

.bar-kpi-delta.positive[b-uj8r836w4y] {
    color: var(--dt-success, #16A34A);
}

.bar-kpi-delta.negative[b-uj8r836w4y] {
    color: var(--dt-danger, #DC2626);
}

/* Bar Chart Container */
.bar-chart-container[b-uj8r836w4y] {
    position: relative;
    margin: 0 -10px;
}

.bar-chart-svg[b-uj8r836w4y] {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Grid and Axis */
.bar-grid-line[b-uj8r836w4y] {
    stroke: rgba(1, 3, 62, 0.06);
    stroke-width: 1;
}

.bar-axis-label[b-uj8r836w4y] {
    font-size: 11px;
    fill: rgba(1, 3, 62, 0.45);
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 500;
}

.bar-y-label[b-uj8r836w4y] {
    text-anchor: end;
}

.bar-x-label[b-uj8r836w4y] {
    text-anchor: middle;
}

/* Bar Rectangles */
.bar-rect[b-uj8r836w4y] {
    transition: all 200ms ease;
    filter: drop-shadow(0 2px 4px rgba(1, 3, 62, 0.10));
}

.bar-rect.hovered[b-uj8r836w4y] {
    filter: drop-shadow(0 4px 12px rgba(1, 3, 62, 0.15)) brightness(1.05);
}

.bar-hover-zone[b-uj8r836w4y] {
    cursor: crosshair;
    pointer-events: all;
}

.bar-hover-zone:hover[b-uj8r836w4y] {
    fill: rgba(1, 3, 62, 0.02);
}

/* Bar Chart Tooltip */
.bar-chart-tooltip[b-uj8r836w4y] {
    position: absolute;
    top: 20px;
    transform: translateX(-50%);
    background: #FFFFFF;
    border: 1px solid #C0C1C8;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 10px 25px -5px rgba(1, 3, 62, 0.12);
    z-index: 20;
    min-width: 160px;
    pointer-events: none;
    animation: bar-tooltip-fade-b-uj8r836w4y 200ms ease-out;
    backdrop-filter: blur(8px);
}

@keyframes bar-tooltip-fade-b-uj8r836w4y {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.bar-tooltip-date[b-uj8r836w4y] {
    font-size: 12px;
    color: #01033E;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #DCDEDD;
    font-weight: 500;
}

.bar-tooltip-row[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
}

.bar-tooltip-dot[b-uj8r836w4y] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bar-tooltip-dot.interactions[b-uj8r836w4y] {
    background: linear-gradient(135deg, #183EEB, #040813);
}

.bar-tooltip-dot.leads[b-uj8r836w4y] {
    background: linear-gradient(135deg, #807DFE, #183EEB);
}

.bar-tooltip-label[b-uj8r836w4y] {
    flex: 1;
    color: #3E4188;
}

.bar-tooltip-value[b-uj8r836w4y] {
    font-weight: 600;
    color: #01033E;
}

.bar-tooltip-conversion[b-uj8r836w4y] {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed #DCDEDD;
    font-size: 12px;
    color: #6B6E8F;
    text-align: right;
}

.bar-tooltip-conversion strong[b-uj8r836w4y] {
    color: #01033E;
}

/* Footer and Legend */
.bar-chart-footer[b-uj8r836w4y] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ECEDF3;
}

.bar-chart-legend[b-uj8r836w4y] {
    display: flex;
    gap: 20px;
}

.bar-legend-item[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #01033E;
    font-weight: 500;
}

.bar-legend-dot[b-uj8r836w4y] {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.bar-legend-dot.interactions[b-uj8r836w4y] {
    background: linear-gradient(135deg, #183EEB, #040813);
}

.bar-legend-dot.leads[b-uj8r836w4y] {
    background: linear-gradient(135deg, #807DFE, #183EEB);
}

.bar-chart-insights[b-uj8r836w4y] {
    font-size: 12px;
    color: #6B6E8F;
}

.bar-chart-insights strong[b-uj8r836w4y] {
    color: #01033E;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════════════════════
   LOCATIONS PANEL
   ══════════════════════════════════════════════════════════════════════════════ */

.location-highlight[b-uj8r836w4y] {
    margin-bottom: 16px;
}

.location-title-row[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.location-flag[b-uj8r836w4y] { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }

.location-name[b-uj8r836w4y] {
    font-size: 24px;
    font-weight: 700;
    color: var(--dt-text-primary, #01033E);
}

.location-delta[b-uj8r836w4y] {
    font-size: 13px;
    font-weight: 500;
}

.location-delta.positive[b-uj8r836w4y] {
    color: var(--dt-success, #16A34A);
}

.location-delta.negative[b-uj8r836w4y] {
    color: var(--dt-danger, #DC2626);
}

.delta-arrow[b-uj8r836w4y] {
    margin-left: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PREMIUM MAP CONTAINER - MapLibre GL Integration
   ══════════════════════════════════════════════════════════════════════════════ */

.map-container[b-uj8r836w4y] {
    margin-bottom: 16px;
    overflow: hidden;
    transition: all var(--dt-transition-normal, 250ms ease);
    position: relative;
    border-radius: var(--dt-radius-lg, 12px);
    background: #F3F4F8;
}

.map-container.collapsed[b-uj8r836w4y] {
    height: 200px;
}

.map-container.expanded[b-uj8r836w4y] {
    height: 320px;
}

/* MapLibre GL map container */
.maplibre-map[b-uj8r836w4y] {
    width: 100%;
    height: 100%;
    min-height: 180px;
    border-radius: var(--dt-radius-lg, 12px);
    z-index: 1;
}

/* Subtle overlay for theme integration */
.map-overlay[b-uj8r836w4y] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 3, 62, 0.02);
    pointer-events: none;
    z-index: 2;
    border-radius: var(--dt-radius-lg, 12px);
}

/* Top Location Pill - contextual overlay */
.map-top-pill[b-uj8r836w4y] {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(220, 222, 221, 0.6);
    border-radius: var(--dt-radius-full, 9999px);
    font-size: 12px;
    color: var(--dt-text-primary, #01033E);
    box-shadow: 0 4px 16px rgba(1, 3, 62, 0.10);
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.map-top-pill .pill-icon[b-uj8r836w4y] {
    font-size: 14px;
}

.map-top-pill .pill-text strong[b-uj8r836w4y] {
    color: var(--dt-primary-600, #183EEB);
    font-weight: 600;
}

/* Override MapLibre GL Navigation Control */
[b-uj8r836w4y] .maplibregl-ctrl-group {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(220, 222, 221, 0.6) !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(1, 3, 62, 0.08) !important;
    backdrop-filter: blur(8px) !important;
    overflow: hidden;
}

[b-uj8r836w4y] .maplibregl-ctrl-group button {
    width: 30px !important;
    height: 30px !important;
    border-bottom: 1px solid rgba(220, 222, 221, 0.4) !important;
}

[b-uj8r836w4y] .maplibregl-ctrl-group button:hover {
    background: var(--dt-hover-surface, #EDF0FD) !important;
}

[b-uj8r836w4y] .maplibregl-ctrl-group button:last-child {
    border-bottom: none !important;
}

/* Attribution styling */
[b-uj8r836w4y] .maplibregl-ctrl-attrib {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    font-size: 10px !important;
    border-radius: 4px !important;
}

/* ── MapLibre Premium Markers ── */

[b-uj8r836w4y] .dt-gl-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s ease;
}

[b-uj8r836w4y] .dt-gl-marker:hover {
    filter: brightness(1.1);
}

/* Pulsing ring for top location marker */
[b-uj8r836w4y] .dt-gl-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    border-radius: 50%;
    background: rgba(24, 62, 235, 0.15);
    animation: dt-gl-pulse-ring-b-uj8r836w4y 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes dt-gl-pulse-ring-b-uj8r836w4y {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    70% {
        opacity: 0.2;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* ── MapLibre Premium Popups (Glassmorphism) ── */

[b-uj8r836w4y] .dt-gl-popup-wrapper .maplibregl-popup-content {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(220, 222, 221, 0.5) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    box-shadow: 0 12px 40px rgba(1, 3, 62, 0.14),
                0 4px 12px rgba(1, 3, 62, 0.06) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    font-family: 'Inter', sans-serif !important;
    overflow: hidden;
}

[b-uj8r836w4y] .dt-gl-popup-wrapper .maplibregl-popup-tip {
    border-top-color: rgba(255, 255, 255, 0.95) !important;
}

[b-uj8r836w4y] .dt-gl-popup-wrapper .maplibregl-popup-close-button {
    font-size: 18px;
    color: var(--dt-text-muted, #6B6E8F);
    padding: 4px 8px;
    right: 2px;
    top: 2px;
}

[b-uj8r836w4y] .dt-gl-popup-wrapper .maplibregl-popup-close-button:hover {
    color: var(--dt-text-primary, #01033E);
    background: transparent;
}

[b-uj8r836w4y] .dt-gl-popup {
    padding: 14px 16px;
    min-width: 220px;
}

[b-uj8r836w4y] .dt-gl-popup__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(220, 222, 221, 0.5);
}

[b-uj8r836w4y] .dt-gl-popup__pin {
    font-size: 16px;
}

[b-uj8r836w4y] .dt-gl-popup__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
    flex: 1;
}

[b-uj8r836w4y] .dt-gl-popup__badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    background: linear-gradient(135deg, #183EEB, #807DFE);
    color: white;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

[b-uj8r836w4y] .dt-gl-popup__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

[b-uj8r836w4y] .dt-gl-popup__stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

[b-uj8r836w4y] .dt-gl-popup__stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--dt-text-primary, #01033E);
    font-variant-numeric: tabular-nums;
}

[b-uj8r836w4y] .dt-gl-popup__stat-label {
    font-size: 10px;
    color: var(--dt-text-muted, #6B6E8F);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 500;
}

[b-uj8r836w4y] .dt-gl-popup__delta--positive {
    color: #10B981 !important;
    display: flex;
    align-items: center;
    gap: 3px;
}

[b-uj8r836w4y] .dt-gl-popup__delta--negative {
    color: #EF4444 !important;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Map placeholder overlay */
.map-placeholder[b-uj8r836w4y] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(247, 248, 252, 0.92);
    color: var(--dt-text-muted, #6B6E8F);
    font-size: 13px;
    z-index: 5;
    pointer-events: none;
    border-radius: var(--dt-radius-lg, 12px);
}

.map-placeholder svg[b-uj8r836w4y] {
    opacity: 0.5;
}

.map-notice[b-uj8r836w4y] {
    position: absolute;
    bottom: 40px;
    left: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(24, 62, 235, 0.2);
    color: var(--dt-text-secondary, #3E4188);
    font-size: 11px;
    padding: 5px 10px;
    border-radius: var(--dt-radius-sm, 4px);
    z-index: 10;
    backdrop-filter: blur(4px);
}

.map-toggle[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 8px;
    border: none;
    background: transparent;
    color: var(--dt-text-secondary, #3E4188);
    font-size: 12px;
    cursor: pointer;
    transition: color var(--dt-transition-fast, 150ms ease);
}

.map-toggle:hover[b-uj8r836w4y] {
    color: var(--dt-text-primary, #01033E);
}

.map-toggle svg[b-uj8r836w4y] {
    width: 14px;
    height: 14px;
    transition: transform var(--dt-transition-fast, 150ms ease);
}

.map-toggle svg.rotated[b-uj8r836w4y] {
    transform: rotate(180deg);
}

/* Location Table */
.location-table[b-uj8r836w4y] {
    margin-bottom: 12px;
}

.table-header-row[b-uj8r836w4y],
.table-row[b-uj8r836w4y] {
    display: grid;
    grid-template-columns: 1.8fr 1fr 0.8fr 0.8fr 0.8fr;
    gap: 8px;
    padding: 8px 0;
    align-items: center;
}

.table-header-row[b-uj8r836w4y] {
    border-bottom: 1px solid var(--dt-border-default, #DCDEDD);
    font-size: 11px;
    font-weight: 600;
    color: var(--dt-text-muted, #6B6E8F);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row[b-uj8r836w4y] {
    font-size: 13px;
    color: var(--dt-text-primary, #01033E);
    border-bottom: 1px solid rgba(220, 222, 221, 0.7);
}

.col-location[b-uj8r836w4y] {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
}

.loc-flag[b-uj8r836w4y] { font-size: 1.05rem; line-height: 1; flex-shrink: 0; margin-right: 0.1rem; }
.loc-name[b-uj8r836w4y]  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.col-stat[b-uj8r836w4y] {
    text-align: right;
}

.col-stat.conversion[b-uj8r836w4y] {
    color: var(--dt-primary-400, #807DFE);
    font-weight: 600;
}

/* Volume bar */
.vol-cell[b-uj8r836w4y]    { display: flex; flex-direction: column; gap: 2px; min-width: 52px; }
.vol-number[b-uj8r836w4y]  { font-size: 0.8rem; color: var(--dt-text-primary, #01033E); text-align: right; }
.vol-track[b-uj8r836w4y]   { display: block; height: 3px; background: color-mix(in srgb, var(--dt-accent-primary, #183EEB) 15%, transparent); border-radius: 2px; }
.vol-fill[b-uj8r836w4y]    { display: block; height: 100%; background: var(--dt-accent-primary, #183EEB); border-radius: 2px; transition: width 0.4s ease; }

/* Delta column */
.delta-pos[b-uj8r836w4y]      { color: #22c55e; font-weight: 500; font-size: 0.78rem; }
.delta-neg[b-uj8r836w4y]      { color: #ef4444; font-weight: 500; font-size: 0.78rem; }
.delta-zero[b-uj8r836w4y]     { color: var(--dt-text-muted, #9ca3af); font-size: 0.78rem; }
.delta-arrow-sm[b-uj8r836w4y] { font-size: 0.7rem; margin-left: 1px; }

/* Conversion color coding */
.conv-high[b-uj8r836w4y] { color: #22c55e; font-weight: 600; }
.conv-mid[b-uj8r836w4y]  { color: #f59e0b; font-weight: 500; }

/* Sort Controls */
.sort-controls[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.sort-label[b-uj8r836w4y] {
    font-size: 12px;
    color: var(--dt-text-muted, #6B6E8F);
}

.sort-btn[b-uj8r836w4y] {
    padding: 4px 10px;
    border: 1px solid var(--dt-border-default, #233044);
    background: transparent;
    color: var(--dt-text-secondary, #6B6E8F);
    font-size: 11px;
    border-radius: var(--dt-radius-sm, 4px);
    cursor: pointer;
    transition: all var(--dt-transition-fast, 150ms ease);
}

.sort-btn:hover[b-uj8r836w4y] {
    border-color: var(--dt-primary-500, #183EEB);
    color: var(--dt-text-primary, #01033E);
}

.sort-btn.active[b-uj8r836w4y] {
    background: var(--dt-primary-600, #183EEB);
    border-color: var(--dt-primary-600, #183EEB);
    color: white;
}

/* ══════════════════════════════════════════════════════════════════════════════
   INSIGHTS ROW (3 Panels)
   ══════════════════════════════════════════════════════════════════════════════ */

.insights-row[b-uj8r836w4y] {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 20px;
}

/* ── Smart Summary Panel ── */

.smart-summary-panel[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
}

.ss-header[b-uj8r836w4y] {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.ss-header-spacer[b-uj8r836w4y] {
    display: flex;
}

.ss-header .section-title[b-uj8r836w4y] {
    margin: 0;
    text-align: center;
}

/* Quality Badge */
.ss-quality-badge[b-uj8r836w4y] {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ss-quality-alta[b-uj8r836w4y] {
    background: rgba(22, 163, 74, 0.12);
    color: #16A34A;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.ss-quality-media[b-uj8r836w4y] {
    background: rgba(217, 119, 6, 0.12);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.ss-quality-baja[b-uj8r836w4y] {
    background: rgba(107, 110, 143, 0.12);
    color: #6B6E8F;
    border: 1px solid rgba(107, 110, 143, 0.2);
}

/* Cards Container */
.ss-cards[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Card Base */
.ss-card[b-uj8r836w4y] {
    padding: 14px;
    border-radius: 8px;
    background: var(--dt-bg-subtle, #F7F8FC);
    border-left: 3px solid rgba(107, 110, 143, 0.25);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ss-card-full[b-uj8r836w4y] {
    width: 100%;
}

/* Card Pair (Canal + Fricción) */
.ss-card-pair[b-uj8r836w4y] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

/* Chip */
.ss-chip[b-uj8r836w4y] {
    display: inline-block;
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 2px 7px;
    border-radius: 6px;
    width: fit-content;
}

.chip-perf[b-uj8r836w4y] {
    background: rgba(24, 62, 235, 0.10);
    color: #183EEB;
    border: 1px solid rgba(24, 62, 235, 0.2);
}

.chip-channel[b-uj8r836w4y] {
    background: rgba(128, 125, 254, 0.12);
    color: #807DFE;
    border: 1px solid rgba(128, 125, 254, 0.2);
}

.chip-friction[b-uj8r836w4y] {
    background: rgba(217, 119, 6, 0.12);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.chip-action[b-uj8r836w4y] {
    background: rgba(22, 163, 74, 0.12);
    color: #16A34A;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

/* Card Title */
.ss-card-title[b-uj8r836w4y] {
    font-size: 13px;
    font-weight: 700;
    color: var(--dt-text-primary, #01033E);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Description */
.ss-card-desc[b-uj8r836w4y] {
    font-size: 11px;
    line-height: 1.5;
    color: var(--dt-text-secondary, #6B6E8F);
    margin: 0;
}

/* Card Baseline */
.ss-card-base[b-uj8r836w4y] {
    font-size: 10px;
    color: var(--dt-text-muted, #6B6E8F);
    letter-spacing: 0.2px;
    cursor: default;
}

/* CTA Button */
.ss-cta-btn[b-uj8r836w4y] {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--dt-primary-400, #183EEB);
    background: transparent;
    border: 1px solid rgba(24, 62, 235, 0.25);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    width: fit-content;
    margin-top: 2px;
}

.ss-cta-btn:hover[b-uj8r836w4y] {
    background: rgba(24, 62, 235, 0.08);
    border-color: rgba(24, 62, 235, 0.4);
    color: #183EEB;
}

/* ── Scenario Border-Left Colors ── */

/* Rendimiento scenarios */
.ss-scenario-low-data[b-uj8r836w4y] {
    border-left-color: #6B6E8F;
}
.ss-scenario-decline[b-uj8r836w4y] {
    border-left-color: #DC2626;
}
.ss-scenario-exploring[b-uj8r836w4y] {
    border-left-color: #D97706;
}
.ss-scenario-interest-no-contact[b-uj8r836w4y] {
    border-left-color: #D97706;
}
.ss-scenario-good[b-uj8r836w4y] {
    border-left-color: #183EEB;
}

/* Canal scenarios */
.ss-scenario-no-channel[b-uj8r836w4y] {
    border-left-color: #6B6E8F;
}
.ss-scenario-balanced[b-uj8r836w4y] {
    border-left-color: #807DFE;
}
.ss-scenario-dominant[b-uj8r836w4y] {
    border-left-color: #183EEB;
}

/* Fricción scenarios */
.ss-scenario-no-data[b-uj8r836w4y] {
    border-left-color: #6B6E8F;
}
.ss-scenario-form-abandon[b-uj8r836w4y] {
    border-left-color: #DC2626;
}
.ss-scenario-explore-friction[b-uj8r836w4y] {
    border-left-color: #D97706;
}
.ss-scenario-click-no-capture[b-uj8r836w4y] {
    border-left-color: #D97706;
}
.ss-scenario-no-friction[b-uj8r836w4y] {
    border-left-color: #16A34A;
}

/* Próximo Paso scenarios */
.ss-scenario-action-share[b-uj8r836w4y] {
    border-left-color: #807DFE;
}
.ss-scenario-action-form[b-uj8r836w4y] {
    border-left-color: #807DFE;
}
.ss-scenario-action-cta[b-uj8r836w4y] {
    border-left-color: #183EEB;
}
.ss-scenario-action-funnel[b-uj8r836w4y] {
    border-left-color: #183EEB;
}
.ss-scenario-action-maintain[b-uj8r836w4y] {
    border-left-color: #16A34A;
}
.ss-scenario-action-optimize[b-uj8r836w4y] {
    border-left-color: #807DFE;
}

.ss-scenario-empty[b-uj8r836w4y] {
    border-left-color: rgba(107, 110, 143, 0.2);
}

/* ── Mini Channel Breakdown ── */

.ss-mini-breakdown[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 4px;
}

.ss-mini-bar[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ss-mini-label[b-uj8r836w4y] {
    font-size: 9px;
    color: var(--dt-text-muted, #6B6E8F);
    min-width: 60px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.ss-mini-track[b-uj8r836w4y] {
    flex: 1;
    height: 4px;
    background: rgba(1, 3, 62, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.ss-mini-fill[b-uj8r836w4y] {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.ss-type-contact[b-uj8r836w4y] {
    background: #183EEB;
}

.ss-type-exploration[b-uj8r836w4y] {
    background: #807DFE;
}

.ss-type-mixed[b-uj8r836w4y] {
    background: #6B6E8F;
}

.ss-mini-pct[b-uj8r836w4y] {
    font-size: 9px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    color: var(--dt-text-muted, #6B6E8F);
    min-width: 28px;
    text-align: right;
}

/* Microcopy explaining what "acciones" means */
.ss-microcopy[b-uj8r836w4y] {
    font-size: 9px;
    color: var(--dt-text-muted, #6B6E8F);
    font-style: italic;
    letter-spacing: 0.2px;
    line-height: 1.4;
    margin-top: 2px;
}

/* Hint for "Otros" aggregation */
.ss-otros-hint[b-uj8r836w4y] {
    font-size: 9px;
    color: var(--dt-text-muted, #6B6E8F);
    opacity: 0.75;
    letter-spacing: 0.1px;
    margin-top: 1px;
    display: block;
}

/* ── Loading State ── */

.ss-loading[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ss-skeleton[b-uj8r836w4y] {
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        rgba(107, 114, 128, 0.08) 0%,
        rgba(107, 114, 128, 0.15) 50%,
        rgba(107, 114, 128, 0.08) 100%
    );
    background-size: 200% 100%;
    animation: ss-shimmer-b-uj8r836w4y 1.5s ease-in-out infinite;
}

.ss-skeleton-full[b-uj8r836w4y] {
    height: 90px;
    width: 100%;
}

.ss-skeleton-row[b-uj8r836w4y] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ss-skeleton-half[b-uj8r836w4y] {
    height: 110px;
}

@keyframes ss-shimmer-b-uj8r836w4y {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Empty State ── */

.ss-empty[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
    gap: 8px;
}

.ss-empty-icon[b-uj8r836w4y] {
    width: 36px;
    height: 36px;
    color: var(--dt-text-muted, #6B6E8F);
    opacity: 0.5;
}

.ss-empty-text[b-uj8r836w4y] {
    font-size: 13px;
    font-weight: 600;
    color: var(--dt-text-secondary, #6B6E8F);
}

.ss-empty-sub[b-uj8r836w4y] {
    font-size: 11px;
    color: var(--dt-text-muted, #6B6E8F);
}

/* ── Error State ── */

.ss-error[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
    gap: 10px;
}

.ss-error-text[b-uj8r836w4y] {
    font-size: 12px;
    color: var(--dt-text-muted, #6B6E8F);
}

.ss-retry-btn[b-uj8r836w4y] {
    font-size: 11px;
    font-weight: 600;
    color: var(--dt-primary-400, #183EEB);
    background: transparent;
    border: 1px solid rgba(24, 62, 235, 0.25);
    border-radius: 6px;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ss-retry-btn:hover[b-uj8r836w4y] {
    background: rgba(24, 62, 235, 0.08);
    border-color: rgba(24, 62, 235, 0.4);
}

/* ══════════════════════════════════════════════════════════════════════════════
   TOP LINKS PANEL
   ══════════════════════════════════════════════════════════════════════════════ */

.links-table[b-uj8r836w4y] {
    margin-bottom: 16px;
}

.links-header[b-uj8r836w4y] {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr 0.8fr;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--dt-border-default, #DCDEDD);
    font-size: 11px;
    font-weight: 600;
    color: var(--dt-text-muted, #6B6E8F);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.link-row[b-uj8r836w4y] {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr 0.8fr;
    gap: 8px;
    padding: 10px 0;
    align-items: center;
    border-bottom: 1px solid rgba(220, 222, 221, 0.7);
}

.col-link[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Icon badge for links - circular container */
.link-icon-badge[b-uj8r836w4y] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--dt-transition-fast, 150ms ease);
}

.link-name[b-uj8r836w4y] {
    font-size: 14px;
    font-weight: 500;
    color: var(--dt-text-primary, #01033E);
}

.col-clicks[b-uj8r836w4y] {
    font-size: 14px;
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
}

.col-conversion[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.conversion-bar[b-uj8r836w4y] {
    flex: 1;
    height: 6px;
    background: var(--dt-bg-subtle, #F3F4F8);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill[b-uj8r836w4y] {
    height: 100%;
    background: linear-gradient(90deg, var(--dt-primary-600, #183EEB), var(--dt-primary-400, #807DFE));
    border-radius: 3px;
    transition: width var(--dt-transition-normal, 250ms ease);
}

.conversion-value[b-uj8r836w4y] {
    font-size: 13px;
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
    min-width: 40px;
    text-align: right;
}

.col-trend[b-uj8r836w4y] {
    font-size: 12px;
    font-weight: 600;
}

.col-trend.positive[b-uj8r836w4y] {
    color: var(--dt-success, #16A34A);
}

.col-trend.negative[b-uj8r836w4y] {
    color: var(--dt-danger, #DC2626);
}

.col-trend.na[b-uj8r836w4y] {
    color: var(--dt-text-muted, #9ca3af);
}

.links-category-header[b-uj8r836w4y] {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dt-text-muted, #9ca3af);
    padding: 8px 0 4px 0;
    margin-top: 4px;
    border-top: 1px solid var(--dt-border-subtle, rgba(0,0,0,0.06));
}

.links-category-header:first-of-type[b-uj8r836w4y] {
    border-top: none;
    margin-top: 0;
}

.col-conversion--na[b-uj8r836w4y] {
    color: var(--dt-text-muted, #9ca3af);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}

/* Links Actions */
.links-actions[b-uj8r836w4y] {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.action-btn[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--dt-border-default, #233044);
    background: transparent;
    color: var(--dt-text-secondary, #6B6E8F);
    font-size: 12px;
    border-radius: var(--dt-radius-md, 8px);
    cursor: pointer;
    transition: all var(--dt-transition-fast, 150ms ease);
}

.action-btn:hover[b-uj8r836w4y] {
    border-color: var(--dt-primary-500, #183EEB);
    color: var(--dt-text-primary, #01033E);
    background: rgba(24, 62, 235, 0.05);
}

.action-icon[b-uj8r836w4y] {
    font-size: 14px;
}

/* Links Footer */
.links-footer[b-uj8r836w4y] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--dt-border-default, #DCDEDD);
}

.sync-status[b-uj8r836w4y] {
    font-size: 12px;
    color: var(--dt-success, #16A34A);
}

.view-details-btn[b-uj8r836w4y] {
    padding: 8px 16px;
    border: none;
    background: var(--dt-primary-600, #183EEB);
    color: white;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--dt-radius-md, 8px);
    cursor: pointer;
    transition: background var(--dt-transition-fast, 150ms ease);
}

.view-details-btn:hover[b-uj8r836w4y] {
    background: var(--dt-primary-500, #183EEB);
    filter: brightness(1.1);
}

/* ══════════════════════════════════════════════════════════════════════════════
   HIGH-INTENT PANEL
   ══════════════════════════════════════════════════════════════════════════════ */

.high-intent-panel .panel-header[b-uj8r836w4y] {
    margin-bottom: 20px;
}

.sort-dropdown[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--dt-text-secondary, #6B6E8F);
    cursor: pointer;
}

.sort-dropdown svg[b-uj8r836w4y] {
    width: 14px;
    height: 14px;
}

.high-intent-summary[b-uj8r836w4y] {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dt-border-default, #DCDEDD);
}

.hi-value[b-uj8r836w4y] {
    font-size: 48px;
    font-weight: 700;
    color: var(--dt-text-primary, #01033E);
    line-height: 1;
}

.hi-label[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
}

.hi-text[b-uj8r836w4y] {
    font-size: 14px;
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
}

.hi-sublabel[b-uj8r836w4y] {
    font-size: 11px;
    color: var(--dt-text-muted, #6B6E8F);
}

/* High-Intent Breakdown */
.hi-breakdown[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--dt-border-default, #DCDEDD);
}

.hi-item[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

/* Icon badge for high-intent items */
.hi-icon-badge[b-uj8r836w4y] {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hi-name[b-uj8r836w4y] {
    flex: 1;
    color: var(--dt-text-secondary, #6B6E8F);
}

.hi-count[b-uj8r836w4y] {
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
}

.hi-count.positive[b-uj8r836w4y] {
    color: var(--dt-success, #16A34A);
}

/* Recent Activity */
.activity-title[b-uj8r836w4y] {
    font-size: 12px;
    font-weight: 600;
    color: var(--dt-text-muted, #6B6E8F);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.activity-item[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--dt-bg-subtle, #F7F8FC);
    border-radius: var(--dt-radius-md, 8px);
    margin-bottom: 8px;
    transition: background var(--dt-transition-fast, 150ms ease);
}

.activity-item.clickable[b-uj8r836w4y] {
    cursor: pointer;
}

.activity-item.clickable:hover[b-uj8r836w4y] {
    background: var(--dt-hover-surface, #EDF0FD);
}

/* Icon wrapper for activity feed */
.activity-icon-wrapper[b-uj8r836w4y] {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content[b-uj8r836w4y] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.activity-name[b-uj8r836w4y] {
    font-size: 13px;
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-action[b-uj8r836w4y] {
    font-size: 11px;
    color: var(--dt-text-muted, #6B6E8F);
}

.activity-time[b-uj8r836w4y] {
    font-size: 11px;
    color: var(--dt-text-muted, #6B6E8F);
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════════
   DRAWER-OPEN GRID REFLOW
   When the sidebar drawer is open on desktop (~240px push), the content area
   shrinks but CSS @media still measures the viewport. These compound selectors
   fire ~240px earlier than normal breakpoints to reflow the grid properly.
   ══════════════════════════════════════════════════════════════════════════════ */

/* Viewport ≤1660px + drawer open → insights goes to 2 columns (normal: ≤1400px) */
@media (max-width: 1660px) {
    .drawer-open .insights-row[b-uj8r836w4y] {
        grid-template-columns: 1fr 1fr;
    }

    .drawer-open .high-intent-panel[b-uj8r836w4y] {
        grid-column: span 2;
    }

    /* Panel wider with 2-col → card pair side-by-side */
    .drawer-open .ss-card-pair[b-uj8r836w4y] {
        grid-template-columns: 1fr 1fr;
    }
}

/* Viewport ≤1536px + drawer open → KPIs go to 2 columns (normal: ≤1200px) */
@media (max-width: 1536px) {
    .drawer-open .kpi-track[b-uj8r836w4y] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Viewport ≤1440px + drawer open → main-row stacks to 1 column (normal: ≤1200px) */
@media (max-width: 1440px) {
    .drawer-open .main-row[b-uj8r836w4y] {
        grid-template-columns: 1fr;
    }
}

/* Viewport ≤1140px + drawer open → insights goes to 1 column (normal: ≤900px) */
@media (max-width: 1140px) {
    .drawer-open .insights-row[b-uj8r836w4y] {
        grid-template-columns: 1fr;
    }

    .drawer-open .high-intent-panel[b-uj8r836w4y] {
        grid-column: span 1;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1400px) {
    .insights-row[b-uj8r836w4y] {
        grid-template-columns: 1fr 1fr;
    }

    .high-intent-panel[b-uj8r836w4y] {
        grid-column: span 2;
    }

    /* Panel is wider in 2-col → card pair goes side-by-side */
    .ss-card-pair[b-uj8r836w4y] {
        grid-template-columns: 1fr 1fr;
    }
}

/* Content-driven: sidebar 252px + padding 48px → content at 1350px ≈ 1050px, still 2-col */
@media (max-width: 1350px) {
    .main-row[b-uj8r836w4y] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .kpi-track[b-uj8r836w4y] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .insights-row[b-uj8r836w4y] {
        grid-template-columns: 1fr;
    }

    .high-intent-panel[b-uj8r836w4y] {
        grid-column: span 1;
    }

    .dashboard-page[b-uj8r836w4y] {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    /* ═══════════════════════════════════════════════════════════════════════
       MOBILE FINTECH REDESIGN - App Shell Structure
       ═══════════════════════════════════════════════════════════════════════ */

    /* Hide desktop elements on mobile */
    .desktop-only[b-uj8r836w4y] {
        display: none !important;
    }

    /* Dashboard page adjustments for mobile app feel */
    .dashboard-page[b-uj8r836w4y] {
        padding: 0;
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
        /* Space for bottom nav */
        background: transparent;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
        max-width: 100vw;
        min-height: 100dvh;
        overflow-x: hidden !important;
    }

    /* Main Row - Stack widgets vertically on mobile */
    .main-row[b-uj8r836w4y] {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    /* ═══════════════════════════════════════════════════════════════════════
       MOBILE HEADER - Fintech Style
       ═══════════════════════════════════════════════════════════════════════ */
    .mobile-header[b-uj8r836w4y] {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(24, 62, 235, 0.08);
    }

    .mobile-user[b-uj8r836w4y] {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-avatar[b-uj8r836w4y] {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: linear-gradient(135deg, #183EEB 0%, #040813 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        color: white;
        box-shadow: 0 0 20px rgba(24, 62, 235, 0.2);
    }

    .mobile-user-info[b-uj8r836w4y] {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-user-name[b-uj8r836w4y] {
        font-size: 14px;
        font-weight: 600;
        color: #01033E;
    }

    .mobile-user-role[b-uj8r836w4y] {
        font-size: 11px;
        color: #6B6E8F;
    }

    .mobile-actions[b-uj8r836w4y] {
        display: flex;
        gap: 8px;
    }

    .mobile-action-btn[b-uj8r836w4y] {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #F3F4F8;
        border: 1px solid rgba(24, 62, 235, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-action-btn svg[b-uj8r836w4y] {
        width: 20px;
        height: 20px;
        color: #6B6E8F;
    }

    .mobile-action-btn:active[b-uj8r836w4y] {
        background: rgba(24, 62, 235, 0.12);
    }

    /* ═══════════════════════════════════════════════════════════════════════
       HERO CARD - Main KPI with Glow
       ═══════════════════════════════════════════════════════════════════════ */
    .mobile-hero-card[b-uj8r836w4y] {
        margin: 16px;
        padding: 24px 20px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(24, 62, 235, 0.12);
        border-radius: 24px;
        box-shadow:
            0 0 60px rgba(24, 62, 235, 0.06),
            0 8px 32px rgba(1, 3, 62, 0.08),
            inset 0 1px 0 rgba(1, 3, 62, 0.04);
    }

    .hero-kpi[b-uj8r836w4y] {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin-bottom: 20px;
    }

    .hero-value[b-uj8r836w4y] {
        font-size: 48px;
        font-weight: 700;
        color: #01033E;
        line-height: 1;
        text-shadow: 0 0 30px rgba(24, 62, 235, 0.12);
    }

    .hero-label[b-uj8r836w4y] {
        font-size: 14px;
        font-weight: 500;
        color: #6B6E8F;
    }

    .hero-delta[b-uj8r836w4y] {
        font-size: 14px;
        font-weight: 600;
        padding: 4px 12px;
        border-radius: 20px;
        margin-top: 4px;
    }

    .hero-delta.positive[b-uj8r836w4y] {
        background: rgba(22, 163, 74, 0.12);
        color: #16A34A;
    }

    .hero-delta.negative[b-uj8r836w4y] {
        background: rgba(220, 38, 38, 0.12);
        color: #DC2626;
    }

    .hero-date-chips[b-uj8r836w4y] {
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .date-chip[b-uj8r836w4y] {
        padding: 8px 16px;
        border: 1px solid rgba(24, 62, 235, 0.2);
        background: transparent;
        color: #6B6E8F;
        font-size: 13px;
        font-weight: 500;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .date-chip.active[b-uj8r836w4y] {
        background: linear-gradient(135deg, #183EEB 0%, #040813 100%);
        color: white;
        border-color: transparent;
        box-shadow: 0 4px 15px rgba(24, 62, 235, 0.25);
    }

    .date-chip:active[b-uj8r836w4y] {
        transform: scale(0.95);
    }

    /* ═══════════════════════════════════════════════════════════════════════
       KPI SECTION - Premium Carousel on Mobile
       ═══════════════════════════════════════════════════════════════════════ */
    .kpi-section[b-uj8r836w4y] {
        margin: 16px 0 16px 0;
        padding: 0 8px;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .kpi-carousel[b-uj8r836w4y] {
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0;
        margin: 0;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .kpi-carousel[b-uj8r836w4y]::-webkit-scrollbar {
        display: none;
    }

    .kpi-track[b-uj8r836w4y] {
        display: flex;
        gap: 12px;
        padding-right: 8px;
        width: max-content;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .kpi-card-premium[b-uj8r836w4y] {
        flex: 0 0 clamp(272px, 52vw, 320px);
        scroll-snap-align: start;
        padding: 16px;
        min-width: 260px;
        max-width: 320px;
        min-height: 150px;
        height: auto;
        border-radius: 20px;
        border-top: 1px solid #DCDEDD;
        box-shadow:
            0 2px 4px rgba(1, 3, 62, 0.06),
            0 8px 24px rgba(1, 3, 62, 0.08),
            0 20px 48px rgba(1, 3, 62, 0.05),
            0 0 0 0.5px rgba(1, 3, 62, 0.04);
    }

    .kpi-header[b-uj8r836w4y] {
        margin-bottom: 8px;
    }

    .kpi-icon-circle[b-uj8r836w4y] {
        width: 32px;
        height: 32px;
    }

    .kpi-icon-circle svg[b-uj8r836w4y] {
        width: 16px;
        height: 16px;
    }

    .kpi-title[b-uj8r836w4y] {
        font-size: 10px;
        padding-right: 32px;
    }

    .kpi-body[b-uj8r836w4y] {
        padding: 6px 0;
    }

    .kpi-number[b-uj8r836w4y] {
        font-size: 2.25rem;
    }

    .kpi-divider[b-uj8r836w4y] {
        height: 1px !important;
        min-height: 1px !important;
        margin: 12px 0 !important;
        background: #DCDEDD !important;
        display: block !important;
        width: 100% !important;
    }

    .kpi-footer[b-uj8r836w4y] {
        padding-top: 4px;
    }

    .kpi-delta-pill[b-uj8r836w4y] {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Carousel Indicators - Visible on Mobile */
    .kpi-indicators[b-uj8r836w4y] {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
    }

    .kpi-indicators .indicator[b-uj8r836w4y] {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(1, 3, 62, 0.15);
        transition: all 200ms ease;
        cursor: pointer;
    }

    .kpi-indicators .indicator.active[b-uj8r836w4y] {
        width: 24px;
        border-radius: 4px;
        background: linear-gradient(90deg, #183EEB 0%, #807DFE 100%);
    }

    /* ═══════════════════════════════════════════════════════════════════════
       MAIN ROW - Stack vertically
       ═══════════════════════════════════════════════════════════════════════ */
    .main-row[b-uj8r836w4y] {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 8px;
        margin-bottom: 12px;
    }

    /* Chart Panel Mobile */
    .chart-panel[b-uj8r836w4y] {
        padding: 16px !important;
        border-radius: 20px !important;
        background: #FFFFFF !important;
        border: 1px solid #DCDEDD !important;
        border-top: 1px solid #C0C1C8 !important;
        box-shadow:
            0 2px 4px rgba(1, 3, 62, 0.06),
            0 8px 24px rgba(1, 3, 62, 0.08),
            0 20px 48px rgba(1, 3, 62, 0.05),
            0 0 0 0.5px rgba(1, 3, 62, 0.04) !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 420px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Header: Title and subtitle only, toggles hidden here */
    .chart-header[b-uj8r836w4y] {
        flex-direction: column !important;
        gap: 4px !important;
        margin-bottom: 12px !important;
    }

    .chart-header-left[b-uj8r836w4y] {
        width: 100% !important;
    }

    .chart-title[b-uj8r836w4y] {
        font-size: 18px !important;
        font-weight: 600 !important;
        margin-bottom: 2px !important;
    }

    .chart-subtitle[b-uj8r836w4y] {
        font-size: 12px !important;
        color: #6B6E8F !important;
    }

    /* Hide toggle in header - will show it after KPIs */
    .chart-header .chart-toggle[b-uj8r836w4y] {
        display: none !important;
    }

    /* KPI Bar - VERTICAL STACK - Each KPI as full-width card */
    .chart-kpi-bar[b-uj8r836w4y] {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 0 !important;
        margin-bottom: 12px !important;
        background: transparent !important;
        border: none !important;
        overflow: visible !important;
    }

    .chart-kpi[b-uj8r836w4y] {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 12px 14px !important;
        background: #F7F8FC !important;
        border-radius: 10px !important;
        border: 1px solid rgba(24, 62, 235, 0.08) !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    /* Hide 3rd KPI (Conversión) on mobile - it's the 5th child (after 2 KPIs and 2 dividers) */
    .chart-kpi-bar>.chart-kpi:nth-of-type(3)[b-uj8r836w4y] {
        display: none !important;
    }

    /* Hide chart-kpi dividers on mobile (not the KPI card dividers) */
    .chart-kpi .kpi-divider[b-uj8r836w4y],
    .chart-kpi-bar .kpi-divider[b-uj8r836w4y] {
        display: none !important;
    }

    .chart-kpi .kpi-label[b-uj8r836w4y] {
        font-size: 13px !important;
        color: #6B6E8F !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .chart-kpi .kpi-value[b-uj8r836w4y] {
        font-size: 20px !important;
        font-weight: 700 !important;
        color: #01033E !important;
        white-space: nowrap !important;
        margin-left: auto !important;
    }

    .chart-kpi .kpi-delta[b-uj8r836w4y] {
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .chart-kpi .kpi-delta.positive[b-uj8r836w4y] {
        color: #16A34A !important;
    }

    .chart-kpi .kpi-delta.negative[b-uj8r836w4y] {
        color: #DC2626 !important;
    }

    /* Toggle buttons - Create a separate row after KPI bar via ::after pseudo or JavaScript */
    /* Since we can't move DOM, we need to add a mobile toggle in HTML or use different approach */

    /* Chart container - Fixed height for stable layout */
    .chart-container[b-uj8r836w4y] {
        height: 160px !important;
        min-height: 160px !important;
        overflow: visible !important;
        margin: 0 !important;
        position: relative !important;
    }

    .chart-svg[b-uj8r836w4y] {
        width: 100% !important;
        height: 160px !important;
        max-height: 160px !important;
    }

    .chart-footer[b-uj8r836w4y] {
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 16px !important;
        margin-top: 8px !important;
    }

    .chart-legend[b-uj8r836w4y] {
        font-size: 12px !important;
    }

    .legend-dot[b-uj8r836w4y] {
        width: 8px !important;
        height: 8px !important;
    }

    /* Mobile Chart Toggle - Centered pill buttons */
    .mobile-chart-toggle[b-uj8r836w4y] {
        display: none !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0 !important;
        margin-bottom: 16px !important;
        background: #F3F4F8 !important;
        border-radius: 999px !important;
        padding: 4px !important;
        width: fit-content !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .mobile-chart-toggle .toggle-btn[b-uj8r836w4y] {
        padding: 8px 16px !important;
        border: none !important;
        background: transparent !important;
        color: #6B6E8F !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        border-radius: 999px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .mobile-chart-toggle .toggle-btn:hover[b-uj8r836w4y] {
        color: #01033E !important;
    }

    .mobile-chart-toggle .toggle-btn.active[b-uj8r836w4y] {
        background: #183EEB !important;
        color: #FFFFFF !important;
    }

    /* ═══════════════════════════════════════════════════════════════════════
       ANALYTICS WIDGET - Mobile Responsive (Mockup Match)
       Target: 342px+ width, premium look, legible at a glance
       ═══════════════════════════════════════════════════════════════════════ */

    .analytics-widget[b-uj8r836w4y] {
        padding: 20px 16px !important;
        border-radius: 16px !important;
        background: #FFFFFF !important;
        border: 1px solid #DCDEDD !important;
    }

    /* Header - title centered top, controls row below */
    .analytics-header[b-uj8r836w4y] {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        margin-bottom: 16px !important;
        gap: 8px !important;
    }

    .analytics-header-left[b-uj8r836w4y] {
        width: 100% !important;
        text-align: center !important;
        min-width: 0 !important;
    }

    .analytics-title[b-uj8r836w4y] {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: #6B6E8F !important;
        margin: 0 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.06em !important;
    }

    .analytics-subtitle[b-uj8r836w4y] {
        display: none !important;
    }

    .analytics-header-right[b-uj8r836w4y] {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .range-pill[b-uj8r836w4y] {
        padding: 8px 14px !important;
        font-size: 12px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(24, 62, 235, 0.25) !important;
        background: #F7F8FC !important;
    }

    /* Hide mobile controls (we show desktop header on mobile now) */
    .analytics-mobile-controls[b-uj8r836w4y] {
        display: none !important;
    }

    /* Hide export button on mobile */
    .analytics-export[b-uj8r836w4y] {
        display: none !important;
    }

    /* ─── Conversion Badge in Header ─── */
    .analytics-conv-badge[b-uj8r836w4y] {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        padding: 5px 10px !important;
        border-radius: 20px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        background: rgba(24, 62, 235, 0.10) !important;
        border: 1px solid rgba(24, 62, 235, 0.18) !important;
    }

    .conv-badge-label[b-uj8r836w4y] {
        font-size: 9px !important;
        font-weight: 700 !important;
        letter-spacing: 0.05em !important;
        color: #6B6E8F !important;
    }

    .conv-badge-value[b-uj8r836w4y] {
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #01033E !important;
    }

    /* ─── KPI Cards: 2 Horizontal Mini-Cards ─── */
    .analytics-kpis[b-uj8r836w4y] {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .analytics-kpi-card[b-uj8r836w4y] {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 14px 16px !important;
        background: #F7F8FC !important;
        border: 1px solid #DCDEDD !important;
        border-radius: 12px !important;
        gap: 4px !important;
        min-height: 0 !important;
    }

    /* Hide 3rd card (Conversión) — now lives as badge in header */
    .analytics-kpi-conversion[b-uj8r836w4y] {
        display: none !important;
    }

    .analytics-kpi-card .kpi-title[b-uj8r836w4y] {
        font-size: 10px !important;
        font-weight: 600 !important;
        color: #6B6E8F !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        order: 1 !important;
        margin-bottom: 2px !important;
    }

    .analytics-kpi-card .kpi-number[b-uj8r836w4y] {
        font-size: 1.75rem !important;
        font-weight: 700 !important;
        color: #01033E !important;
        line-height: 1.1 !important;
        order: 2 !important;
        margin: 0 !important;
    }

    /* Show compact delta, hide full text */
    .kpi-change-compact[b-uj8r836w4y] {
        display: inline !important;
    }

    .kpi-change-full[b-uj8r836w4y] {
        display: none !important;
    }

    .analytics-kpi-card .kpi-change[b-uj8r836w4y] {
        font-size: 12px !important;
        font-weight: 600 !important;
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
    }

    .analytics-kpi-card .kpi-change.positive[b-uj8r836w4y] {
        color: #22C55E !important;
    }

    .analytics-kpi-card .kpi-change.negative[b-uj8r836w4y] {
        color: #EF4444 !important;
    }

    /* ─── Chart Container ─── */
    .analytics-chart[b-uj8r836w4y] {
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow: visible !important;
        /* CRITICAL: Fixed height for mobile so dynamic viewBox can fill it */
        min-height: 320px !important;
        height: clamp(280px, 45vh, 400px) !important;
    }

    .analytics-svg[b-uj8r836w4y] {
        width: 100% !important;
        /* CRITICAL: height:100% so SVG fills container, not auto */
        height: 100% !important;
        display: block !important;
    }

    /* Axis labels - ensure readability */
    .axis-label[b-uj8r836w4y] {
        font-size: 11px !important;
    }

    .axis-label.y-left[b-uj8r836w4y] {
        fill: rgba(24, 62, 235, 0.8) !important;
    }

    .axis-label.y-right[b-uj8r836w4y] {
        fill: rgba(128, 125, 254, 0.8) !important;
    }

    .axis-label.x-label[b-uj8r836w4y] {
        fill: rgba(1, 3, 62, 0.7) !important;
        font-weight: 600 !important;
        font-size: 12px !important;
    }

    /* Chart bars - PROMINENT GLOW like mockup */
    .chart-bar[b-uj8r836w4y] {
        transition: all 200ms ease !important;
    }

    /* Interactions bar - brand blue glow */
    .chart-bar[fill*="interactionsBarGradient"][b-uj8r836w4y] {
        filter: drop-shadow(0 6px 16px rgba(24, 62, 235, 0.35)) !important;
    }

    /* Leads bar - lavender glow */
    .chart-bar[fill*="leadsBarGradient"][b-uj8r836w4y] {
        filter: drop-shadow(0 6px 16px rgba(128, 125, 254, 0.35)) !important;
    }

    .chart-bar.hovered[b-uj8r836w4y] {
        filter: drop-shadow(0 8px 24px rgba(24, 62, 235, 0.45)) brightness(1.1) !important;
    }

    /* ─── Tooltip - Premium Style ─── */
    .analytics-tooltip[b-uj8r836w4y] {
        position: absolute !important;
        bottom: calc(100% + 12px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: 160px !important;
        max-width: 200px !important;
        padding: 12px 14px !important;
        background: #FFFFFF !important;
        border: 1px solid #DCDEDD !important;
        border-radius: 12px !important;
        box-shadow: 0 12px 40px rgba(1, 3, 62, 0.12) !important;
        z-index: 50 !important;
    }

    .tooltip-header[b-uj8r836w4y] {
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #01033E !important;
        margin-bottom: 4px !important;
    }

    .tooltip-subheader[b-uj8r836w4y] {
        font-size: 10px !important;
        color: #6B6E8F !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
        border-bottom: 1px solid #DCDEDD !important;
    }

    .tooltip-row[b-uj8r836w4y] {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 4px !important;
        font-size: 12px !important;
    }

    .tooltip-footer[b-uj8r836w4y] {
        font-size: 11px !important;
        color: #6B6E8F !important;
        margin-top: 8px !important;
        padding-top: 8px !important;
        border-top: 1px dashed #DCDEDD !important;
    }

    /* ─── Legend - Centered at Bottom ─── */
    .analytics-legend[b-uj8r836w4y] {
        display: flex !important;
        justify-content: center !important;
        gap: 24px !important;
        margin-top: 20px !important;
        margin-bottom: 0 !important;
        padding-top: 16px !important;
        border-top: 1px solid #DCDEDD !important;
    }

    .analytics-legend.bottom-centered[b-uj8r836w4y] {
        margin-top: 20px !important;
    }

    .legend-item[b-uj8r836w4y] {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        font-size: 13px !important;
        color: #3E4188 !important;
    }

    .legend-dot[b-uj8r836w4y] {
        width: 10px !important;
        height: 10px !important;
        border-radius: 3px !important;
    }

    /* ─── Footer with Insights ─── */
    .analytics-footer[b-uj8r836w4y] {
        margin-top: 16px !important;
        text-align: right !important;
    }

    .footer-insights[b-uj8r836w4y] {
        font-size: 12px !important;
        color: #6B6E8F !important;
    }

    .footer-insights strong[b-uj8r836w4y] {
        color: #01033E !important;
        font-weight: 600 !important;
    }

    /* ─── Loading/Empty/Error States ─── */
    .kpi-skeleton-row[b-uj8r836w4y] {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .kpi-skeleton[b-uj8r836w4y] {
        height: 80px !important;
        border-radius: 12px !important;
    }

    .chart-skeleton[b-uj8r836w4y] {
        height: 200px !important;
        border-radius: 12px !important;
    }

    /* ═══════════════════════════════════════════════════════════════════════
       BAR CHART WIDGET - Mobile Responsive (Legacy)
       ═══════════════════════════════════════════════════════════════════════ */

    .bar-chart-widget[b-uj8r836w4y] {
        padding: 16px !important;
    }

    /* Header - Stack title and subtitle */
    .bar-chart-header[b-uj8r836w4y] {
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }

    .bar-chart-header-left[b-uj8r836w4y] {
        width: 100% !important;
    }

    .bar-chart-title[b-uj8r836w4y] {
        font-size: 1rem !important;
    }

    /* Hide desktop tabs on mobile */
    .bar-chart-tabs[b-uj8r836w4y] {
        display: none !important;
    }

    /* Show mobile tabs */
    .bar-chart-mobile-tabs[b-uj8r836w4y] {
        display: flex !important;
        justify-content: center !important;
        background: #F3F4F8 !important;
        border-radius: 20px !important;
        padding: 4px !important;
        margin-bottom: 16px !important;
        width: 100% !important;
        border: 1px solid #DCDEDD !important;
    }

    .bar-chart-mobile-tabs .bar-tab[b-uj8r836w4y] {
        flex: 1 !important;
        padding: 10px 8px !important;
        font-size: 12px !important;
        min-width: auto !important;
    }

    /* KPI Cards - Stack vertically */
    .bar-chart-kpis[b-uj8r836w4y] {
        flex-direction: column !important;
        gap: 12px !important;
        margin-bottom: 16px !important;
    }

    .bar-kpi-card[b-uj8r836w4y] {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 14px !important;
        background: #F7F8FC !important;
        border-radius: 10px !important;
        border: 1px solid #DCDEDD !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .bar-kpi-label[b-uj8r836w4y] {
        font-size: 13px !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        color: #6B6E8F !important;
    }

    .bar-kpi-value[b-uj8r836w4y] {
        font-size: 1.25rem !important;
        margin-left: auto !important;
        margin-right: 8px !important;
    }

    .bar-kpi-delta[b-uj8r836w4y] {
        font-size: 12px !important;
    }

    /* Bar Chart Container */
    .bar-chart-container[b-uj8r836w4y] {
        height: 160px !important;
        min-height: 160px !important;
        overflow: visible !important;
        margin: 0 !important;
    }

    .bar-chart-svg[b-uj8r836w4y] {
        width: 100% !important;
        height: 160px !important;
        max-height: 160px !important;
    }

    /* Tooltip - Fixed position on mobile */
    .bar-chart-tooltip[b-uj8r836w4y] {
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: -10px !important;
        width: auto !important;
        min-width: 140px !important;
        max-width: 200px !important;
    }

    /* Footer */
    .bar-chart-footer[b-uj8r836w4y] {
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 16px !important;
        margin-top: 8px !important;
        padding-top: 12px !important;
    }

    .bar-chart-legend[b-uj8r836w4y] {
        gap: 12px !important;
    }

    .bar-legend-item[b-uj8r836w4y] {
        font-size: 11px !important;
    }

    .bar-legend-dot[b-uj8r836w4y] {
        width: 8px !important;
        height: 8px !important;
    }

    .bar-chart-insights[b-uj8r836w4y] {
        font-size: 10px !important;
    }

    /* Locations Panel Mobile */
    .locations-panel[b-uj8r836w4y] {
        padding: 16px !important;
        border-radius: 20px !important;
        background: #FFFFFF !important;
        backdrop-filter: blur(12px) !important;
        border: 1px solid #DCDEDD !important;
        border-top: 1px solid #C0C1C8 !important;
        box-shadow:
            0 2px 4px rgba(1, 3, 62, 0.06),
            0 8px 24px rgba(1, 3, 62, 0.08),
            0 20px 48px rgba(1, 3, 62, 0.06),
            0 0 0 0.5px rgba(1, 3, 62, 0.04) !important;
        overflow: visible !important;
        min-height: 400px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .locations-panel .panel-header[b-uj8r836w4y] {
        margin-bottom: 8px !important;
    }

    .locations-panel .panel-title[b-uj8r836w4y] {
        font-size: 16px !important;
    }

    /* Location Highlight */
    .location-highlight[b-uj8r836w4y] {
        margin-bottom: 12px !important;
    }

    .location-name[b-uj8r836w4y] {
        font-size: 22px !important;
        font-weight: 700 !important;
    }

    .location-delta[b-uj8r836w4y] {
        font-size: 12px !important;
    }

    /* Map Container - Full width, increased height for visibility */
    .map-container[b-uj8r836w4y] {
        width: calc(100% + 32px) !important;
        /* Full width + padding compensation */
        margin-left: -16px !important;
        margin-right: -16px !important;
        height: 280px !important;
        min-height: 280px !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        margin-bottom: 12px !important;
        position: relative !important;
    }

    .map-container.expanded[b-uj8r836w4y] {
        height: 380px !important;
    }

    .map-top-pill[b-uj8r836w4y] {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }

    /* Map toggle button - centered pill below map */
    .map-toggle[b-uj8r836w4y] {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        width: fit-content !important;
        margin: 0 auto 16px !important;
        padding: 10px 24px !important;
        background: #F7F8FC !important;
        border: 1px solid rgba(24, 62, 235, 0.2) !important;
        border-radius: 999px !important;
        color: #01033E !important;
        font-size: 13px !important;
        font-weight: 500 !important;
    }

    .map-toggle svg[b-uj8r836w4y] {
        width: 16px !important;
        height: 16px !important;
    }

    /* ═══ Locations Analysis Section ═══ */
    .locations-analysis-section[b-uj8r836w4y] {
        margin-top: 20px !important;
        padding-top: 16px !important;
        border-top: 1px solid #DCDEDD !important;
    }

    .locations-analysis-title[b-uj8r836w4y] {
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #01033E !important;
        margin: 0 0 16px 0 !important;
    }

    /* Location Table - Full table layout with visible headers */
    .location-table[b-uj8r836w4y] {
        font-size: 12px !important;
        overflow-x: auto !important;
    }

    /* Show table header on mobile - Grid layout */
    .table-header-row[b-uj8r836w4y] {
        display: grid !important;
        grid-template-columns: 1.5fr 1fr 0.7fr 0.8fr 0.5fr !important;
        gap: 8px !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #DCDEDD !important;
    }

    .table-header-row span[b-uj8r836w4y] {
        font-size: 11px !important;
        font-weight: 500 !important;
        color: #6B6E8F !important;
        text-transform: none !important;
    }

    /* Location row - Grid layout matching headers */
    .table-row[b-uj8r836w4y] {
        display: grid !important;
        grid-template-columns: 1.5fr 1fr 0.7fr 0.8fr 0.5fr !important;
        gap: 8px !important;
        padding: 12px 0 !important;
        align-items: center !important;
        border-bottom: 1px solid #DCDEDD !important;
    }

    .table-row:last-child[b-uj8r836w4y] {
        border-bottom: none !important;
    }

    .col-location[b-uj8r836w4y] {
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #01033E !important;
    }

    /* Stats columns */
    .col-stat[b-uj8r836w4y] {
        font-size: 13px !important;
        color: #6B6E8F !important;
        text-align: center !important;
    }

    /* Remove ::before labels for grid layout */
    .table-row .col-stat[b-uj8r836w4y]::before {
        content: none !important;
    }

    /* Conversion in green */
    .col-stat.conversion[b-uj8r836w4y] {
        color: #22C55E !important;
        font-weight: 500 !important;
        margin-left: 0 !important;
    }

    /* Tendencia column */
    .col-action[b-uj8r836w4y] {
        font-size: 14px !important;
        color: #807DFE !important;
        text-align: center !important;
        cursor: pointer !important;
    }

    /* Sort Controls - Visible with pill buttons */
    .sort-controls[b-uj8r836w4y] {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 12px !important;
        padding-top: 12px !important;
        border-top: 1px solid #DCDEDD !important;
        flex-wrap: wrap !important;
    }

    .sort-label[b-uj8r836w4y] {
        font-size: 12px !important;
        color: #6B6E8F !important;
    }

    .sort-btn[b-uj8r836w4y] {
        padding: 6px 12px !important;
        font-size: 11px !important;
        border-radius: 999px !important;
        background: transparent !important;
        border: 1px solid rgba(24, 62, 235, 0.2) !important;
        color: #6B6E8F !important;
    }

    .sort-btn.active[b-uj8r836w4y] {
        background: #183EEB !important;
        border-color: #183EEB !important;
        color: #FFFFFF !important;
    }

    /* ═══════════════════════════════════════════════════════════════════════
       INSIGHTS ROW - Stack vertically
       ═══════════════════════════════════════════════════════════════════════ */
    .insights-row[b-uj8r836w4y] {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 8px 16px;
    }

    .panel[b-uj8r836w4y] {
        padding: 12px;
        border-radius: 20px;
        background: #FFFFFF;
        backdrop-filter: blur(12px);
        border: 1px solid #DCDEDD;
        border-top: 1px solid #C0C1C8;
        overflow: hidden;
        max-width: 100%;
        box-shadow:
            0 2px 4px rgba(1, 3, 62, 0.06),
            0 8px 24px rgba(1, 3, 62, 0.08),
            0 20px 48px rgba(1, 3, 62, 0.06),
            0 0 0 0.5px rgba(1, 3, 62, 0.04);
    }

    .panel-title[b-uj8r836w4y] {
        font-size: 15px;
    }

    /* Smart Summary mobile overrides */
    .ss-card[b-uj8r836w4y] {
        padding: 10px;
    }

    .ss-card-title[b-uj8r836w4y] {
        font-size: 12px;
    }

    .ss-card-desc[b-uj8r836w4y] {
        font-size: 10px;
    }

    .ss-card-pair[b-uj8r836w4y] {
        grid-template-columns: 1fr;
    }

    /* ═══════════════════════════════════════════════════════════════════════
       LINKS PANEL - Convert Table to Card List
       ═══════════════════════════════════════════════════════════════════════ */
    .links-panel[b-uj8r836w4y] {
        padding: 12px;
        overflow: hidden;
    }

    .links-header[b-uj8r836w4y] {
        display: none !important;
    }

    .link-row[b-uj8r836w4y] {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px;
        margin-bottom: 8px;
        background: #F7F8FC;
        border-radius: 12px;
        border: 1px solid #DCDEDD;
    }

    .link-row:last-child[b-uj8r836w4y] {
        margin-bottom: 0;
    }

    .link-info[b-uj8r836w4y] {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .link-icon-badge[b-uj8r836w4y] {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .link-name[b-uj8r836w4y] {
        font-size: 14px;
        font-weight: 600;
        color: #01033E;
        flex: 1;
    }

    .link-stats[b-uj8r836w4y] {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 12px;
        color: #6B6E8F;
        padding-left: 42px;
    }

    .link-clicks[b-uj8r836w4y],
    .link-conversion[b-uj8r836w4y] {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .link-trend[b-uj8r836w4y] {
        margin-left: auto;
        font-size: 11px;
    }

    .trend-badge[b-uj8r836w4y] {
        font-size: 11px;
        padding: 2px 6px;
    }

    .links-actions[b-uj8r836w4y] {
        flex-direction: column;
    }

    .action-btn[b-uj8r836w4y] {
        width: 100%;
        justify-content: center;
    }

    /* High-Intent Panel Mobile */
    .hi-value[b-uj8r836w4y] {
        font-size: 36px;
    }

    .hi-item[b-uj8r836w4y] {
        font-size: 12px;
    }

    .hi-icon-badge[b-uj8r836w4y] {
        width: 24px;
        height: 24px;
    }

    .activity-item[b-uj8r836w4y] {
        padding: 8px;
    }

    .activity-icon-wrapper[b-uj8r836w4y] {
        width: 28px;
        height: 28px;
    }

    .activity-name[b-uj8r836w4y] {
        font-size: 12px;
    }

    .activity-action[b-uj8r836w4y],
    .activity-time[b-uj8r836w4y] {
        font-size: 10px;
    }

    /* ═══════════════════════════════════════════════════════════════════════
       BOTTOM NAVIGATION - Fixed App Nav
       ═══════════════════════════════════════════════════════════════════════ */
    .mobile-bottom-nav[b-uj8r836w4y] {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 64px;
        background: rgba(247, 248, 252, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid #DCDEDD;
        padding-bottom: env(safe-area-inset-bottom);
        z-index: 1000;
    }

    .nav-item[b-uj8r836w4y] {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 12px;
        text-decoration: none;
        color: #6B6E8F;
        font-size: 10px;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .nav-item svg[b-uj8r836w4y] {
        width: 22px;
        height: 22px;
        stroke-width: 1.5;
    }

    .nav-item.active[b-uj8r836w4y] {
        color: #183EEB;
    }

    .nav-item.active svg[b-uj8r836w4y] {
        filter: drop-shadow(0 0 8px rgba(24, 62, 235, 0.4));
    }

    .nav-item:active[b-uj8r836w4y] {
        transform: scale(0.95);
    }

    /* ═══════════════════════════════════════════════════════════════════════
       LOADING OVERLAY Mobile
       ═══════════════════════════════════════════════════════════════════════ */
    .loading-overlay[b-uj8r836w4y] {
        border-radius: 0;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   ICON BADGE COLOR CLASSES
   Unified styling for all icon badges across dashboard widgets
   ══════════════════════════════════════════════════════════════════════════════ */

/* Default badge style */
.badge-default[b-uj8r836w4y] {
    background: var(--dt-bg-subtle, #F7F8FC);
    color: var(--dt-text-secondary, #3E4188);
    border: 1px solid var(--dt-border-default, #DCDEDD);
}

/* Brand-specific badge colors */
.badge-whatsapp[b-uj8r836w4y] {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.badge-linkedin[b-uj8r836w4y] {
    background: rgba(10, 102, 194, 0.12);
    color: #0A66C2;
    border: 1px solid rgba(10, 102, 194, 0.2);
}

.badge-instagram[b-uj8r836w4y] {
    background: linear-gradient(135deg, rgba(253, 29, 29, 0.1), rgba(131, 58, 180, 0.1));
    color: #E4405F;
    border: 1px solid rgba(228, 64, 95, 0.2);
}

.badge-facebook[b-uj8r836w4y] {
    background: rgba(24, 119, 242, 0.12);
    color: #1877F2;
    border: 1px solid rgba(24, 119, 242, 0.2);
}

.badge-twitter[b-uj8r836w4y],
.badge-x[b-uj8r836w4y] {
    background: rgba(1, 3, 62, 0.06);
    color: var(--dt-text-primary, #01033E);
    border: 1px solid rgba(1, 3, 62, 0.12);
}

.badge-youtube[b-uj8r836w4y] {
    background: rgba(255, 0, 0, 0.1);
    color: #FF0000;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.badge-tiktok[b-uj8r836w4y] {
    background: rgba(1, 3, 62, 0.06);
    color: var(--dt-text-primary, #01033E);
    border: 1px solid rgba(1, 3, 62, 0.12);
}

.badge-telegram[b-uj8r836w4y] {
    background: rgba(0, 136, 204, 0.12);
    color: #0088CC;
    border: 1px solid rgba(0, 136, 204, 0.2);
}

/* Action badge colors */
.badge-email[b-uj8r836w4y] {
    background: rgba(24, 62, 235, 0.10);
    color: var(--dt-primary-400, #183EEB);
    border: 1px solid rgba(24, 62, 235, 0.2);
}

.badge-call[b-uj8r836w4y] {
    background: rgba(128, 125, 254, 0.10);
    color: var(--dt-accent-teal-400, #807DFE);
    border: 1px solid rgba(128, 125, 254, 0.2);
}

.badge-calendar[b-uj8r836w4y] {
    background: rgba(128, 125, 254, 0.10);
    color: #807DFE;
    border: 1px solid rgba(128, 125, 254, 0.2);
}

.badge-portfolio[b-uj8r836w4y] {
    background: rgba(217, 119, 6, 0.10);
    color: #D97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-website[b-uj8r836w4y] {
    background: rgba(24, 62, 235, 0.08);
    color: var(--dt-primary-400, #183EEB);
    border: 1px solid rgba(24, 62, 235, 0.15);
}

/* Event type badge colors */
.badge-contact[b-uj8r836w4y] {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-form[b-uj8r836w4y] {
    background: rgba(59, 130, 246, 0.12);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-time[b-uj8r836w4y] {
    background: rgba(24, 62, 235, 0.10);
    color: var(--dt-primary-400, #183EEB);
    border: 1px solid rgba(24, 62, 235, 0.2);
}

.badge-inactive[b-uj8r836w4y] {
    background: rgba(107, 110, 143, 0.10);
    color: var(--dt-text-muted, #6B6E8F);
    border: 1px solid rgba(107, 110, 143, 0.2);
}

.badge-qr[b-uj8r836w4y] {
    background: rgba(128, 125, 254, 0.12);
    color: #807DFE;
    border: 1px solid rgba(128, 125, 254, 0.2);
}

.badge-nfc[b-uj8r836w4y] {
    background: rgba(34, 197, 94, 0.12);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-lead[b-uj8r836w4y] {
    background: rgba(14, 165, 233, 0.12);
    color: #0EA5E9;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-location[b-uj8r836w4y] {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ══════════════════════════════════════════════════════════════════════════════
   DATE RANGE PICKER MODAL (Personalizado)
   ══════════════════════════════════════════════════════════════════════════════ */

.date-picker-overlay[b-uj8r836w4y] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 3, 62, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: overlay-fade-b-uj8r836w4y 150ms ease-out;
}

@keyframes overlay-fade-b-uj8r836w4y {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.date-picker-modal[b-uj8r836w4y] {
    background: #FFFFFF;
    border: 1px solid #DCDEDD;
    border-radius: 16px;
    padding: 0;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 24px 48px rgba(1, 3, 62, 0.12);
    animation: modal-slide-b-uj8r836w4y 200ms ease-out;
}

@keyframes modal-slide-b-uj8r836w4y {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.date-picker-header[b-uj8r836w4y] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #ECEDF3;
}

.date-picker-header h3[b-uj8r836w4y] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #01033E;
}

.date-picker-header .close-btn[b-uj8r836w4y] {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #6B6E8F;
    cursor: pointer;
    border-radius: 8px;
    transition: all 150ms ease;
}

.date-picker-header .close-btn:hover[b-uj8r836w4y] {
    background: #F3F4F8;
    color: #01033E;
}

.date-picker-header .close-btn svg[b-uj8r836w4y] {
    width: 18px;
    height: 18px;
}

.date-picker-body[b-uj8r836w4y] {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.date-field[b-uj8r836w4y] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-field label[b-uj8r836w4y] {
    font-size: 13px;
    font-weight: 500;
    color: #3E4188;
}

.date-field input[type="date"][b-uj8r836w4y] {
    width: 100%;
    padding: 12px 16px;
    background: #F7F8FC;
    border: 1px solid #DCDEDD;
    border-radius: 10px;
    color: #01033E;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 150ms ease;
}

.date-field input[type="date"]:hover[b-uj8r836w4y] {
    border-color: rgba(24, 62, 235, 0.4);
}

.date-field input[type="date"]:focus[b-uj8r836w4y] {
    border-color: #183EEB;
    box-shadow: 0 0 0 3px rgba(24, 62, 235, 0.12);
}

/* Estilo para el icono del calendario en navegadores webkit */
.date-field input[type="date"][b-uj8r836w4y]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}

.date-error[b-uj8r836w4y] {
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #EF4444;
    font-size: 13px;
}

.date-picker-footer[b-uj8r836w4y] {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #ECEDF3;
}

.date-picker-footer .btn-cancel[b-uj8r836w4y],
.date-picker-footer .btn-accept[b-uj8r836w4y] {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms ease;
}

.date-picker-footer .btn-cancel[b-uj8r836w4y] {
    background: transparent;
    border: 1px solid #DCDEDD;
    color: #3E4188;
}

.date-picker-footer .btn-cancel:hover[b-uj8r836w4y] {
    background: #F3F4F8;
    color: #01033E;
}

.date-picker-footer .btn-accept[b-uj8r836w4y] {
    background: linear-gradient(135deg, #183EEB, #040813);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(24, 62, 235, 0.25);
}

.date-picker-footer .btn-accept:hover[b-uj8r836w4y] {
    background: linear-gradient(135deg, #807DFE, #183EEB);
    box-shadow: 0 4px 12px rgba(24, 62, 235, 0.3);
}

/* Mobile full-width range pill */
.mobile-range-pill.full-width[b-uj8r836w4y] {
    width: 100%;
}

.mobile-range-pill.full-width .range-pill[b-uj8r836w4y] {
    width: 100%;
    justify-content: space-between;
}

/* Responsive date picker */
@media (max-width: 768px) {
    .date-picker-modal[b-uj8r836w4y] {
        min-width: auto;
        width: calc(100vw - 32px);
        margin: 16px;
    }

    .date-picker-header[b-uj8r836w4y] {
        padding: 16px 20px;
    }

    .date-picker-body[b-uj8r836w4y] {
        padding: 20px;
    }

    .date-picker-footer[b-uj8r836w4y] {
        padding: 16px 20px;
        flex-direction: column;
    }

    .date-picker-footer .btn-cancel[b-uj8r836w4y],
    .date-picker-footer .btn-accept[b-uj8r836w4y] {
        width: 100%;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LARGE MOBILE (430–599px) - Deterministic Chart Height
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 599px) and (min-width: 430px) {

    /* Widget full-width */
    .main-row[b-uj8r836w4y] {
        padding: 0 12px !important;
    }

    .analytics-widget[b-uj8r836w4y],
    .chart-panel[b-uj8r836w4y] {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    /* ChartBody - DETERMINISTIC HEIGHT */
    .analytics-chart[b-uj8r836w4y] {
        height: clamp(260px, 34vh, 320px) !important;
        min-height: 260px !important;
    }

    .analytics-svg[b-uj8r836w4y] {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SMALL TABLET (600–767px) - Deterministic Chart Height
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) and (min-width: 600px) {

    .analytics-widget[b-uj8r836w4y],
    .chart-panel[b-uj8r836w4y] {
        width: 100% !important;
        max-width: none !important;
    }

    /* ChartBody - DETERMINISTIC HEIGHT */
    .analytics-chart[b-uj8r836w4y] {
        height: clamp(240px, 30vh, 300px) !important;
        min-height: 240px !important;
    }

    .analytics-svg[b-uj8r836w4y] {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SM MOBILE (360–429px) - Chart Height Proportional
   SVG viewBox 800:280 = 2.86:1 ratio. At 360px → natural height = 126px
   We use min-height 160px to give more space while keeping labels crisp
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 431px) and (min-width: 360px) {
    .analytics-widget[b-uj8r836w4y] {
        padding: 16px 14px !important;
    }

    .analytics-title[b-uj8r836w4y] {
        font-size: 0.8rem !important;
    }

    .range-pill[b-uj8r836w4y] {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }

    .analytics-conv-badge[b-uj8r836w4y] {
        padding: 4px 8px !important;
    }
    .conv-badge-label[b-uj8r836w4y] { font-size: 8px !important; }
    .conv-badge-value[b-uj8r836w4y] { font-size: 11px !important; }

    .analytics-kpi-card[b-uj8r836w4y] {
        padding: 10px 12px !important;
    }

    .analytics-kpi-card .kpi-title[b-uj8r836w4y] {
        font-size: 9px !important;
    }

    .analytics-kpi-card .kpi-number[b-uj8r836w4y] {
        font-size: 1.5rem !important;
    }

    .analytics-kpi-card .kpi-change[b-uj8r836w4y] {
        font-size: 11px !important;
    }

    .mobile-chart-toggle .toggle-btn[b-uj8r836w4y] {
        padding: 6px 14px !important;
        font-size: 11px !important;
    }

    /* ChartBody - DETERMINISTIC HEIGHT */
    .analytics-chart[b-uj8r836w4y] {
        height: clamp(270px, 38vh, 340px) !important;
        min-height: 270px !important;
    }

    .analytics-svg[b-uj8r836w4y] {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

    .legend-item[b-uj8r836w4y] {
        font-size: 11px !important;
        gap: 6px !important;
    }

    .analytics-legend[b-uj8r836w4y] {
        gap: 18px !important;
    }

    /* SM Mobile Glow Effect - Prominent like mockup */
    .chart-bar[fill*="interactionsBarGradient"][b-uj8r836w4y] {
        filter: drop-shadow(0 8px 20px rgba(24, 62, 235, 0.4)) !important;
    }

    .chart-bar[fill*="leadsBarGradient"][b-uj8r836w4y] {
        filter: drop-shadow(0 8px 20px rgba(128, 125, 254, 0.4)) !important;
    }

    /* Axis labels - crisp and readable */
    .axis-label[b-uj8r836w4y] {
        font-size: 12px !important;
        font-weight: 500 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   XS MOBILE (320–359px) - Deterministic Chart Height
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 359px) and (min-width: 320px) {
    .analytics-widget[b-uj8r836w4y] {
        padding: 14px 10px !important;
    }

    .analytics-title[b-uj8r836w4y] {
        font-size: 0.75rem !important;
    }

    .range-pill[b-uj8r836w4y] {
        padding: 5px 10px !important;
        font-size: 10px !important;
    }

    .analytics-conv-badge[b-uj8r836w4y] { padding: 3px 6px !important; gap: 2px !important; }
    .conv-badge-label[b-uj8r836w4y] { font-size: 7px !important; }
    .conv-badge-value[b-uj8r836w4y] { font-size: 10px !important; }

    .analytics-kpi-card[b-uj8r836w4y] {
        padding: 8px 10px !important;
        gap: 2px !important;
    }

    .analytics-kpi-card .kpi-title[b-uj8r836w4y] {
        font-size: 8px !important;
    }

    .analytics-kpi-card .kpi-number[b-uj8r836w4y] {
        font-size: 1.3rem !important;
    }

    .analytics-kpi-card .kpi-change[b-uj8r836w4y] {
        font-size: 10px !important;
    }

    .mobile-chart-toggle .toggle-btn[b-uj8r836w4y] {
        padding: 5px 12px !important;
        font-size: 10px !important;
    }

    /* ChartBody - DETERMINISTIC HEIGHT */
    .analytics-chart[b-uj8r836w4y] {
        height: clamp(240px, 36vh, 300px) !important;
        min-height: 240px !important;
    }

    .analytics-svg[b-uj8r836w4y] {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

    .legend-item[b-uj8r836w4y] {
        font-size: 10px !important;
        gap: 5px !important;
    }

    .analytics-legend[b-uj8r836w4y] {
        gap: 14px !important;
    }

    .footer-insights[b-uj8r836w4y] {
        font-size: 10px !important;
    }

    /* Glow Effect */
    .chart-bar[fill*="interactionsBarGradient"][b-uj8r836w4y] {
        filter: drop-shadow(0 6px 16px rgba(24, 62, 235, 0.38)) !important;
    }

    .chart-bar[fill*="leadsBarGradient"][b-uj8r836w4y] {
        filter: drop-shadow(0 6px 16px rgba(128, 125, 254, 0.38)) !important;
    }

    .axis-label[b-uj8r836w4y] {
        font-size: 11px !important;
        font-weight: 500 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MICRO MOBILE (0–319px) - Deterministic Chart Height (Degraded but readable)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 319px) {
    .analytics-widget[b-uj8r836w4y] {
        padding: 12px 8px !important;
    }

    .analytics-title[b-uj8r836w4y] {
        font-size: 0.7rem !important;
    }

    .range-pill[b-uj8r836w4y] {
        padding: 4px 8px !important;
        font-size: 9px !important;
    }

    .conv-badge-label[b-uj8r836w4y] { display: none !important; }
    .conv-badge-value[b-uj8r836w4y] { font-size: 9px !important; }

    .analytics-kpi-card[b-uj8r836w4y] {
        padding: 6px 8px !important;
        gap: 2px !important;
    }

    .analytics-kpi-card .kpi-title[b-uj8r836w4y] {
        font-size: 7px !important;
    }

    .analytics-kpi-card .kpi-number[b-uj8r836w4y] {
        font-size: 1.1rem !important;
    }

    .analytics-kpi-card .kpi-change[b-uj8r836w4y] {
        font-size: 9px !important;
    }

    .mobile-chart-toggle .toggle-btn[b-uj8r836w4y] {
        padding: 4px 10px !important;
        font-size: 9px !important;
    }

    /* ChartBody - DETERMINISTIC HEIGHT (never franja) */
    .analytics-chart[b-uj8r836w4y] {
        height: clamp(210px, 34vh, 260px) !important;
        min-height: 210px !important;
    }

    .analytics-svg[b-uj8r836w4y] {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }

    .legend-item[b-uj8r836w4y] {
        font-size: 9px !important;
        gap: 4px !important;
    }

    .analytics-legend[b-uj8r836w4y] {
        gap: 10px !important;
    }

    .footer-insights[b-uj8r836w4y] {
        font-size: 9px !important;
    }

    .axis-label[b-uj8r836w4y] {
        font-size: 10px !important;
        font-weight: 500 !important;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   WIDGET: Interacciones vs. Leads — Responsive overrides (scoped) v5
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Base (applies to all sizes) ── */
#widget-interactions-leads[b-uj8r836w4y] {
    padding: 20px 20px 14px;
    overflow: hidden;
    /* align-self not set → CSS Grid stretch (matches neighbor height in 2-col) */
}

#widget-interactions-leads .analytics-header[b-uj8r836w4y] {
    margin-bottom: 14px;
    align-items: center;
}

#widget-interactions-leads .analytics-kpis[b-uj8r836w4y] { gap: 10px; margin-bottom: 8px; }

#widget-interactions-leads .analytics-kpi-card[b-uj8r836w4y] {
    padding: 10px 14px;
    border-color: rgba(1, 3, 62, 0.08);
    border-radius: 10px;
    gap: 4px;
}

#widget-interactions-leads .kpi-title[b-uj8r836w4y]  { font-size: 10px; letter-spacing: 0.5px; }
#widget-interactions-leads .kpi-number[b-uj8r836w4y] { font-size: 1.6rem; }

/* ── 2-col zone (≥1351px): chart grows to fill grid-stretched widget height ── */
#widget-interactions-leads .analytics-echart[b-uj8r836w4y] {
    flex: 1;
    min-height: 220px;
    margin: 0;
}

#widget-interactions-leads .analytics-footer-strip[b-uj8r836w4y] { margin-top: 4px; }
#widget-interactions-leads .footer-divider[b-uj8r836w4y]        { margin-bottom: 8px; }
#widget-interactions-leads .legend-pill[b-uj8r836w4y]  { padding: 5px 10px; font-size: 12px; gap: 6px; }
#widget-interactions-leads .footer-insights[b-uj8r836w4y] { font-size: 11px; }

/* ── Stacked zone (≤1350px): .main-row is 1-col, no neighbor → fixed height ── */
@media (max-width: 1350px) {
    #widget-interactions-leads .analytics-echart[b-uj8r836w4y] {
        flex: none;
        height: 280px;
        min-height: unset;
    }
    #widget-interactions-leads .analytics-kpis[b-uj8r836w4y] { gap: 8px; }
    #widget-interactions-leads .analytics-kpi-card[b-uj8r836w4y] { padding: 9px 12px; }
    #widget-interactions-leads .kpi-number[b-uj8r836w4y] { font-size: 1.5rem; }
    #widget-interactions-leads .legend-pill[b-uj8r836w4y] { padding: 4px 9px; }
}

/* ── Narrow stacked (≤900px): slightly smaller chart ── */
@media (max-width: 900px) {
    #widget-interactions-leads .analytics-echart[b-uj8r836w4y] { height: 260px; }
}

/* ── Mobile (≤600px): compact + hide Conversión KPI (badge in header covers it) ── */
@media (max-width: 600px) {
    #widget-interactions-leads[b-uj8r836w4y] { padding: 14px !important; }
    #widget-interactions-leads .analytics-header[b-uj8r836w4y] { margin-bottom: 10px !important; }
    #widget-interactions-leads .analytics-kpis[b-uj8r836w4y] { gap: 6px !important; margin-bottom: 14px !important; }
    #widget-interactions-leads .analytics-kpi-card[b-uj8r836w4y] { padding: 8px 10px !important; }
    #widget-interactions-leads .kpi-number[b-uj8r836w4y] { font-size: 1.375rem !important; }
    #widget-interactions-leads .analytics-echart[b-uj8r836w4y] { height: 260px !important; }
    #widget-interactions-leads .analytics-kpi-conversion[b-uj8r836w4y] { display: none !important; }
    #widget-interactions-leads .legend-pill[b-uj8r836w4y] { padding: 4px 8px !important; font-size: 11px !important; }
    #widget-interactions-leads .footer-insights[b-uj8r836w4y] { font-size: 10px !important; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   LOCAL FILTER INDICATORS - Enterprise Two-Level Filter Architecture
   Visual indicators for widgets with active local filters
   ══════════════════════════════════════════════════════════════════════════════ */

/* Range pill with active local filter */
.range-pill.local-active[b-uj8r836w4y] {
    border-color: var(--dt-accent-primary, #807DFE);
    background: rgba(128, 125, 254, 0.08);
    position: relative;
}

.range-pill.local-active[b-uj8r836w4y]::before {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--dt-accent-primary, #807DFE);
    border-radius: 50%;
    border: 2px solid var(--dt-surface-card, #FFFFFF);
    z-index: 1;
}

/* Local filter indicator dot inside button */
.local-indicator[b-uj8r836w4y] {
    margin-left: 4px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Divider before reset option */
.range-option-divider[b-uj8r836w4y] {
    height: 1px;
    background: var(--dt-divider, rgba(0, 0, 0, 0.08));
    margin: 4px 0;
}

/* Reset button in dropdown */
.range-option.reset[b-uj8r836w4y] {
    border-top: 1px solid var(--dt-divider, rgba(0, 0, 0, 0.08));
    color: var(--dt-accent-primary, #807DFE);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding-top: 8px;
}

.range-option.reset svg[b-uj8r836w4y] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.range-option.reset:hover[b-uj8r836w4y] {
    background: rgba(128, 125, 254, 0.08);
    color: var(--dt-accent-primary, #807DFE);
}

/* Mobile adjustments for local indicators */
@media (max-width: 600px) {
    .range-pill.local-active[b-uj8r836w4y]::before {
        width: 6px;
        height: 6px;
        top: -1px;
        right: -1px;
    }

    .local-indicator[b-uj8r836w4y] {
        width: 6px;
        height: 6px;
    }
}

/* ── Interacciones de la Tarjeta widget (Phase 21) ── */
.links-empty-state[b-uj8r836w4y] {
    font-size: 0.85rem;
    color: #9ca3af;
    padding: 20px 0 8px;
}

.links-interactions-widget[b-uj8r836w4y] {
    padding: 4px 0 0;
}

.an-section-block[b-uj8r836w4y] {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.an-section-block--last[b-uj8r836w4y] {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.an-section-header[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.an-section-icon[b-uj8r836w4y] {
    color: #183EEB;
}

.an-section-title[b-uj8r836w4y] {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.an-device-row[b-uj8r836w4y] {
    display: grid;
    grid-template-columns: auto 1fr 40px;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.an-device-label[b-uj8r836w4y] {
    font-size: 0.8rem;
    color: #374151;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    max-width: 130px;
}

.an-row-icon[b-uj8r836w4y] { flex-shrink: 0; color: #6b7280; }
.an-row-icon .icon-svg[b-uj8r836w4y] { display: block; }

.an-device-track[b-uj8r836w4y] {
    height: 8px;
    background: #f3f4f6;
    border-radius: 99px;
    overflow: hidden;
}

.an-device-fill[b-uj8r836w4y] {
    height: 100%;
    background: linear-gradient(90deg, #183EEB, #807DFE);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.an-fill-save[b-uj8r836w4y] {
    background: #22c55e !important;
}

.an-device-pct[b-uj8r836w4y] {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: right;
}

.an-commercial-row[b-uj8r836w4y] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.an-commercial-row--highlight .an-commercial-label[b-uj8r836w4y] {
    font-weight: 600;
}

.an-commercial-label[b-uj8r836w4y] {
    font-size: 0.875rem;
    color: #374151;
}

.an-commercial-value[b-uj8r836w4y] {
    font-size: 0.875rem;
    font-weight: 600;
    color: #01033E;
}

.an-commercial-value-group[b-uj8r836w4y] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.an-conversion-badge[b-uj8r836w4y] {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    border-radius: 9999px;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.an-commercial-cta[b-uj8r836w4y] {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.4rem;
}
/* _content/DataTouch.Web/Components/Pages/Leads.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════════════════════
   LEADS MODULE - RESPONSIVE STYLES
   DT Table Pattern: dt-filter-bar + DtTableShell + MudTable + DtStatusChip
   ══════════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   DESKTOP PAGE HEADER
   ───────────────────────────────────────────────────────────────────────────── */
.btn-create-lead[b-qf617kvbls] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms ease;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.btn-create-lead:hover[b-qf617kvbls] {
    background: linear-gradient(135deg, #22D3EE 0%, #06B6D4 100%);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
    transform: translateY(-1px);
}

.btn-create-lead .mud-icon-root[b-qf617kvbls] {
    font-size: 1rem;
}

[b-qf617kvbls] .leads-container {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FILTER BAR — DT Table Standard
   ───────────────────────────────────────────────────────────────────────────── */
.dt-filter-bar[b-qf617kvbls] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--dt-surface-1, #FFFFFF);
    border: 1px solid var(--dt-border-default, #DCDEDD);
    border-radius: var(--dt-radius-lg, 12px);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dt-filter-bar__search[b-qf617kvbls] {
    flex: 0 1 380px;
    min-width: 180px;
}

.dt-filter-bar__spacer[b-qf617kvbls] {
    flex: 1;
    min-width: 0;
}

.dt-filter-bar__advanced[b-qf617kvbls] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .dt-filter-bar__spacer[b-qf617kvbls] {
        display: none;
    }

    .dt-filter-bar[b-qf617kvbls] {
        gap: 8px;
    }

    .dt-filter-bar__search[b-qf617kvbls] {
        flex: 1 1 100%;
    }

    .dt-filter-bar__advanced[b-qf617kvbls] {
        flex: 1 1 100%;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   PREMIUM TOOLBAR (desktop)
   ───────────────────────────────────────────────────────────────────────────── */
.toolbar-card[b-qf617kvbls] {
    background: var(--dt-surface-1, #FFFFFF);
    border: 1px solid var(--dt-border-default, #DCDEDD);
    border-radius: var(--dt-radius-lg, 12px);
    margin-bottom: 20px;
}

.search-input[b-qf617kvbls] { min-width: 260px; max-width: 360px; }
.status-filter[b-qf617kvbls] { width: 150px; }

/* ─────────────────────────────────────────────────────────────────────────────
   MOBILE TOOLBAR (Compact)
   ───────────────────────────────────────────────────────────────────────────── */
.mobile-toolbar[b-qf617kvbls] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.toolbar-left[b-qf617kvbls] {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.toolbar-title[b-qf617kvbls] {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--dt-text-primary, #01033E);
}

.toolbar-count[b-qf617kvbls] {
    font-size: 0.875rem;
    color: var(--dt-text-secondary, #6B6E8F);
    background: var(--dt-surface-2, #ECEDF3);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   FILTER CHIPS ROW (Mobile)
   ───────────────────────────────────────────────────────────────────────────── */
.filter-chips-row[b-qf617kvbls] {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-chip-compact[b-qf617kvbls] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    height: 36px;
    background: var(--dt-surface-2, #F3F4F8);
    border: 1px solid var(--dt-border-default, #DCDEDD);
    border-radius: 18px;
    font-size: 0.8125rem;
    color: var(--dt-text-secondary, #6B6E8F);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.filter-chip-compact:hover[b-qf617kvbls] {
    background: var(--dt-hover-surface, #EDF0FD);
    border-color: var(--dt-border-strong, #C0C1C8);
}

.filter-chip-compact .chip-value[b-qf617kvbls] {
    color: var(--dt-text-primary, #01033E);
    font-weight: 500;
    margin-left: 0.25rem;
}

.filter-chip-compact .mud-icon-root[b-qf617kvbls] {
    font-size: 0.875rem;
    opacity: 0.6;
}

.filter-chip-clear[b-qf617kvbls] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.625rem;
    height: 36px;
    background: transparent;
    border: 1px dashed var(--dt-border-default, #DCDEDD);
    border-radius: 18px;
    font-size: 0.8125rem;
    color: var(--dt-text-secondary, #6B6E8F);
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-chip-clear:hover[b-qf617kvbls] {
    border-color: var(--dt-danger, #DC2626);
    color: var(--dt-danger, #DC2626);
}

.filter-chip-clear .mud-icon-root[b-qf617kvbls] {
    font-size: 0.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LEAD CARDS (Mobile)
   ───────────────────────────────────────────────────────────────────────────── */
.leads-cards-container[b-qf617kvbls] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lead-card-link[b-qf617kvbls] {
    text-decoration: none;
    color: inherit;
    display: block;
}

.lead-card[b-qf617kvbls] {
    background: var(--dt-surface-1, #FFFFFF);
    border: 1px solid var(--dt-border-default, #DCDEDD);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    transition: all 0.2s ease;
}

.lead-card:hover[b-qf617kvbls] {
    border-color: var(--dt-border-strong, #C0C1C8);
    background: var(--dt-hover-surface, #EDF0FD);
}

.lead-card:active[b-qf617kvbls] {
    transform: scale(0.99);
}

.lead-card-header[b-qf617kvbls] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.375rem;
    gap: 0.5rem;
}

.lead-name[b-qf617kvbls] {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dt-text-primary, #01033E);
    margin: 0;
}

.lead-meta[b-qf617kvbls] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--dt-text-secondary, #6B6E8F);
    margin-bottom: 0.625rem;
}

.lead-meta .meta-divider[b-qf617kvbls] {
    font-size: 0.375rem;
    opacity: 0.5;
}

.lead-card-actions[b-qf617kvbls] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-actions[b-qf617kvbls] {
    display: flex;
    gap: 0.375rem;
}

.quick-action-btn[b-qf617kvbls] {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--dt-border-default, #DCDEDD);
    background: var(--dt-surface-2, #F3F4F8);
    color: var(--dt-text-secondary, #6B6E8F);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.quick-action-btn:hover[b-qf617kvbls] {
    border-color: var(--dt-border-strong, #C0C1C8);
    color: var(--dt-text-primary, #01033E);
    transform: scale(1.1);
}

.quick-action-btn.phone-btn:hover[b-qf617kvbls] {
    background: rgba(24, 62, 235, 0.10);
    border-color: rgba(24, 62, 235, 0.35);
    color: #183EEB;
}

.quick-action-btn.whatsapp-btn[b-qf617kvbls] {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.28);
    color: #16A34A;
}

.quick-action-btn.whatsapp-btn:hover[b-qf617kvbls] {
    background: rgba(37, 211, 102, 0.18);
    border-color: rgba(37, 211, 102, 0.45);
    color: #15803D;
}

.quick-action-btn.email-btn:hover[b-qf617kvbls] {
    background: rgba(24, 62, 235, 0.10);
    border-color: rgba(24, 62, 235, 0.35);
    color: #183EEB;
}

.card-chevron[b-qf617kvbls] {
    color: var(--dt-text-secondary, #6B6E8F);
    transition: transform 0.15s ease;
}

.lead-card:hover .card-chevron[b-qf617kvbls] {
    transform: translateX(2px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FILTERS MODAL
   ───────────────────────────────────────────────────────────────────────────── */
.filters-modal-content[b-qf617kvbls] {
    padding: 1.5rem;
}

.filter-field[b-qf617kvbls] {
    margin-bottom: 1.25rem;
}

.filter-field-label[b-qf617kvbls] {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dt-text-secondary, #6B6E8F);
    margin-bottom: 0.5rem;
    display: block;
}

.filter-actions[b-qf617kvbls] {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.filter-actions .btn-clear[b-qf617kvbls] {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--dt-border-strong, #C0C1C8);
    border-radius: 8px;
    color: var(--dt-text-secondary, #6B6E8F);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-actions .btn-clear:hover[b-qf617kvbls] {
    background: var(--dt-surface-2, #F3F4F8);
}

.filter-actions .btn-apply[b-qf617kvbls] {
    flex: 1;
    padding: 0.75rem;
    background: var(--dt-primary-500, #183EEB);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-actions .btn-apply:hover[b-qf617kvbls] {
    background: var(--dt-primary-600, #1234CC);
}

/* ─────────────────────────────────────────────────────────────────────────────
   METRIC CARDS ROW
   ───────────────────────────────────────────────────────────────────────────── */
.leads-metrics-row[b-qf617kvbls] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card[b-qf617kvbls] {
    background: var(--dt-surface-1, #FFFFFF);
    border: 1px solid var(--dt-border-default, #DCDEDD);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 150ms ease;
    box-shadow: var(--dt-shadow-sm);
}

.metric-card:hover[b-qf617kvbls] {
    border-color: var(--dt-border-strong, #C0C1C8);
    box-shadow: var(--dt-shadow-md);
}

.metric-icon[b-qf617kvbls] {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-icon .mud-icon-root[b-qf617kvbls] {
    font-size: 1.5rem;
}

.metric-card.total .metric-icon[b-qf617kvbls] {
    background: var(--dt-primary-100, #D5DCFA);
    color: var(--dt-primary-500, #183EEB);
}

.metric-card.new .metric-icon[b-qf617kvbls] {
    background: rgba(6, 182, 212, 0.15);
    color: #0891B2;
}

.metric-card.qualified .metric-icon[b-qf617kvbls] {
    background: var(--dt-success-bg, rgba(22, 163, 74, 0.1));
    color: var(--dt-success, #16A34A);
}

.metric-card.closed .metric-icon[b-qf617kvbls] {
    background: var(--dt-warning-bg, rgba(217, 119, 6, 0.1));
    color: var(--dt-warning, #D97706);
}

.metric-content[b-qf617kvbls] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metric-value[b-qf617kvbls] {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dt-text-primary, #01033E);
    line-height: 1.1;
}

.metric-label[b-qf617kvbls] {
    font-size: 11px;
    color: var(--dt-text-muted, #6B6E8F);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MUDTABLE STYLES (leads-mud-table)
   ───────────────────────────────────────────────────────────────────────────── */
[b-qf617kvbls] .leads-mud-table {
    border: 1px solid var(--dt-table-border, #DCDEDD);
    border-radius: var(--dt-radius-lg, 12px);
    overflow: hidden;
}

[b-qf617kvbls] .leads-mud-table th {
    background: var(--dt-table-header-bg, #F3F4F8) !important;
    color: var(--dt-text-muted, #6B6E8F);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

[b-qf617kvbls] .leads-mud-table tr:hover td {
    background: var(--dt-table-hover, #EDF0FD) !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TABLE COLUMN STYLES (used in MudTd cells)
   ───────────────────────────────────────────────────────────────────────────── */
.col-date[b-qf617kvbls] {
    font-variant-numeric: tabular-nums;
    color: var(--dt-text-secondary, #3E4188);
    font-size: 12px;
}

.col-name[b-qf617kvbls] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.col-name .avatar[b-qf617kvbls] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.col-name .name-info[b-qf617kvbls] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.col-name .name[b-qf617kvbls] {
    font-weight: 500;
    color: var(--dt-text-primary, #01033E);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-name .email[b-qf617kvbls] {
    font-size: 12px;
    color: var(--dt-text-muted, #6B6E8F);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-phone[b-qf617kvbls] {
    font-variant-numeric: tabular-nums;
    color: var(--dt-text-secondary, #3E4188);
    font-size: 12px;
}

.col-card[b-qf617kvbls] {
    color: var(--dt-text-secondary, #3E4188);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Source badge */
.source-badge[b-qf617kvbls] {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    background: var(--dt-primary-100, #D5DCFA);
    border: 1px solid rgba(24, 62, 235, 0.20);
    border-radius: var(--dt-radius-sm, 4px);
    font-size: 11px;
    font-weight: 500;
    color: var(--dt-primary-600, #1234CC);
}

/* Kebab menu icon */
.menu-icon[b-qf617kvbls] {
    margin-right: 8px;
    opacity: 0.7;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LAYOUT WRAPPERS
   ───────────────────────────────────────────────────────────────────────────── */
.leads-desktop-wrapper[b-qf617kvbls] {
    display: block;
}

.leads-mobile-wrapper[b-qf617kvbls] {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────────────────────────────── */

/* Hide desktop header on mobile */
@media (max-width: 1024px) {
    .leads-page-header[b-qf617kvbls] {
        display: none !important;
    }

    .leads-desktop-wrapper[b-qf617kvbls] {
        display: none;
    }

    .leads-mobile-wrapper[b-qf617kvbls] {
        display: block;
        padding-top: 6px;
    }
}

@media (max-width: 1024px) and (min-width: 601px) {
    [b-qf617kvbls] .leads-container {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        overflow-x: hidden !important;
    }
}

@media (min-width: 1025px) {
    .leads-mobile-wrapper[b-qf617kvbls] {
        display: none;
    }

    .leads-desktop-wrapper[b-qf617kvbls] {
        display: block;
    }
}

/* Metric cards: 2 columns on tablets */
@media (max-width: 1280px) and (min-width: 1025px) {
    .leads-metrics-row[b-qf617kvbls] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smaller desktop: adjust avatar and padding */
@media (max-width: 1400px) and (min-width: 1025px) {
    .col-name .avatar[b-qf617kvbls] {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .metric-card[b-qf617kvbls] {
        padding: 16px;
    }

    .metric-value[b-qf617kvbls] {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    [b-qf617kvbls] .leads-container {
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: hidden !important;
    }

    .mobile-toolbar[b-qf617kvbls] {
        padding: 14px 0 10px;
        margin-bottom: 10px;
    }

    .filter-chips-row[b-qf617kvbls] {
        margin-bottom: 0.875rem;
    }
}

@media (max-width: 480px) {
    .filter-chips-row[b-qf617kvbls] {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .filter-chip-compact[b-qf617kvbls] {
        flex-shrink: 0;
    }
}
/* _content/DataTouch.Web/Components/Shared/DtStatusChip.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════════════════════
   DtStatusChip — Unified status badge for all CRM admin tables
   Colors injected via inline style using --dt-status-{variant}-{bg|border|text}
   tokens defined in wwwroot/design-tokens.css
   ══════════════════════════════════════════════════════════════════════════════ */

.dt-status-chip[b-u5jr3hw7zi] {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: var(--dt-radius-sm, 4px);
    border: 1px solid; /* color set via inline style */
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    line-height: 1.4;
    font-family: var(--dt-font-family);
    /* background, border-color, color — all set via inline style from tokens */
}

/* Compact variant: mobile card headers */
.dt-status-chip--compact[b-u5jr3hw7zi] {
    padding: 3px 8px;
    font-size: 10px;
}
/* _content/DataTouch.Web/Components/Shared/DtTableShell.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════════════════════
   DtTableShell — Container for CRM admin tables
   Handles loading / empty / data states with consistent layout and styling.
   All colors via var(--dt-*) tokens — no hardcoded hex.
   ══════════════════════════════════════════════════════════════════════════════ */

.dt-table-shell[b-l03tsgdbh7] {
    width: 100%;
    min-height: 120px;
}

/* ── Loading state ────────────────────────────────────────────────────────── */
.dt-table-shell__loading[b-l03tsgdbh7] {
    padding: 16px;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.dt-table-shell__empty[b-l03tsgdbh7] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    text-align: center;
    border: 1px dashed var(--dt-border-default, #DCDEDD);
    border-radius: var(--dt-radius-lg, 12px);
    background: var(--dt-surface-1, #FFFFFF);
}

.dt-table-shell__empty-icon[b-l03tsgdbh7] {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--dt-surface-2, #F3F4F8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--dt-text-muted, #6B6E8F);
}

.dt-table-shell__empty-icon .mud-icon-root[b-l03tsgdbh7] {
    font-size: 2rem !important;
}

.dt-table-shell__empty-title[b-l03tsgdbh7] {
    color: var(--dt-text-primary, #01033E) !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
}

.dt-table-shell__empty-subtitle[b-l03tsgdbh7] {
    color: var(--dt-text-muted, #6B6E8F) !important;
    max-width: 52ch;
    margin-bottom: 0 !important;
}

.dt-table-shell__empty-actions[b-l03tsgdbh7] {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
/* _content/DataTouch.Web/Components/Shared/IconRegistry.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════════════════════
   IconRegistry Styles - Enterprise Icon System
   ══════════════════════════════════════════════════════════════════════════════ */

.icon-wrapper[b-cp6l3e1mo9] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.icon-svg[b-cp6l3e1mo9] {
    display: block;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ICON BADGES - Circular container for icons
   ══════════════════════════════════════════════════════════════════════════════ */

.icon-badge[b-cp6l3e1mo9] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all var(--dt-transition-fast, 150ms ease);
}

/* Default badge style */
.badge-default[b-cp6l3e1mo9] {
    background: var(--dt-bg-subtle, #0E141B);
    border: 1px solid var(--dt-border-default, #233044);
}

/* Brand-specific badge colors */
.badge-whatsapp[b-cp6l3e1mo9] {
    background: rgba(37, 211, 102, 0.12);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.badge-linkedin[b-cp6l3e1mo9] {
    background: rgba(10, 102, 194, 0.12);
    color: #0A66C2;
    border: 1px solid rgba(10, 102, 194, 0.2);
}

.badge-instagram[b-cp6l3e1mo9] {
    background: linear-gradient(135deg, rgba(253, 29, 29, 0.1), rgba(131, 58, 180, 0.1));
    color: #E4405F;
    border: 1px solid rgba(228, 64, 95, 0.2);
}

.badge-facebook[b-cp6l3e1mo9] {
    background: rgba(24, 119, 242, 0.12);
    color: #1877F2;
    border: 1px solid rgba(24, 119, 242, 0.2);
}

.badge-twitter[b-cp6l3e1mo9],
.badge-x[b-cp6l3e1mo9] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--dt-text-primary, #E5E7EB);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-youtube[b-cp6l3e1mo9] {
    background: rgba(255, 0, 0, 0.1);
    color: #FF0000;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.badge-tiktok[b-cp6l3e1mo9] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--dt-text-primary, #E5E7EB);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-telegram[b-cp6l3e1mo9] {
    background: rgba(0, 136, 204, 0.12);
    color: #0088CC;
    border: 1px solid rgba(0, 136, 204, 0.2);
}

.badge-email[b-cp6l3e1mo9] {
    background: rgba(99, 102, 241, 0.12);
    color: var(--dt-primary-400, #818CF8);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-call[b-cp6l3e1mo9] {
    background: rgba(20, 184, 166, 0.12);
    color: var(--dt-accent-teal-400, #2DD4BF);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.badge-calendar[b-cp6l3e1mo9] {
    background: rgba(167, 139, 250, 0.12);
    color: #A78BFA;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.badge-portfolio[b-cp6l3e1mo9] {
    background: rgba(251, 191, 36, 0.12);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-website[b-cp6l3e1mo9] {
    background: rgba(99, 102, 241, 0.1);
    color: var(--dt-primary-400, #818CF8);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.badge-contact[b-cp6l3e1mo9] {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-form[b-cp6l3e1mo9] {
    background: rgba(59, 130, 246, 0.12);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-time[b-cp6l3e1mo9] {
    background: rgba(99, 102, 241, 0.12);
    color: var(--dt-primary-400, #818CF8);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-inactive[b-cp6l3e1mo9] {
    background: rgba(107, 114, 128, 0.12);
    color: var(--dt-text-muted, #6B7280);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.badge-qr[b-cp6l3e1mo9] {
    background: rgba(139, 92, 246, 0.12);
    color: #8B5CF6;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-nfc[b-cp6l3e1mo9] {
    background: rgba(34, 197, 94, 0.12);
    color: #22C55E;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-lead[b-cp6l3e1mo9] {
    background: rgba(14, 165, 233, 0.12);
    color: #0EA5E9;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-location[b-cp6l3e1mo9] {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Hover effects for interactive badges */
.icon-badge:hover[b-cp6l3e1mo9] {
    transform: scale(1.05);
}

/* ══════════════════════════════════════════════════════════════════════════════
   SIZE VARIANTS
   ══════════════════════════════════════════════════════════════════════════════ */

.icon-sm .icon-svg[b-cp6l3e1mo9] {
    width: 14px;
    height: 14px;
}

.icon-md .icon-svg[b-cp6l3e1mo9] {
    width: 18px;
    height: 18px;
}

.icon-lg .icon-svg[b-cp6l3e1mo9] {
    width: 22px;
    height: 22px;
}

.icon-xl .icon-svg[b-cp6l3e1mo9] {
    width: 28px;
    height: 28px;
}
/* _content/DataTouch.Web/Components/Shared/ModulePageHeader.razor.rz.scp.css */
.module-page-header[b-t2v57r1l6l] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 0 0 24px;
}

.module-page-header__text[b-t2v57r1l6l] {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.module-page-header__title[b-t2v57r1l6l] {
    margin: 0;
    font-family: "Sora", "Plus Jakarta Sans", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.625rem, 1.36rem + 0.72vw, 2rem);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.014em;
    color: var(--dt-text-primary, #01033E);
}

.module-page-header__subtitle[b-t2v57r1l6l] {
    margin: 0;
    max-width: 110ch;
    font-family: "Sora", "Plus Jakarta Sans", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--dt-text-secondary, #5A6096);
}

.module-page-header__actions[b-t2v57r1l6l] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .module-page-header[b-t2v57r1l6l] {
        margin-bottom: 20px;
    }

    .module-page-header__title[b-t2v57r1l6l] {
        font-size: clamp(1.45rem, 1.24rem + 0.9vw, 1.75rem);
    }

    .module-page-header__subtitle[b-t2v57r1l6l] {
        font-size: 0.875rem;
    }
}

@media (max-width: 600px) {
    .module-page-header[b-t2v57r1l6l] {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px;
    }

    .module-page-header__actions[b-t2v57r1l6l] {
        width: 100%;
        justify-content: flex-start;
    }
}
