:root {
    /* Nivexo Modern Core Blueprint (Derived directly from brand asset colors) */
    --nivexo-bg: #ffffff;
    --nivexo-surface: #f8fafc;
    --nivexo-border: #e2e8f0;
    --nivexo-border-light: #f1f5f9;
    
    /* Absolute Brand Color Injections */
    --nivexo-primary: #0084d6;      /* Vibrant Nivexo Blue Arrow Accent */
    --nivexo-navy: #091324;         /* Deep Elite Foundation Substrate */
    --nivexo-green: #00a852;        /* Brand Growth Green Ascent Tint */
    --nivexo-navy-light: #12223c;   /* Accent Layer for Drawers/Cards */
    
    /* Typographic Matrix Variables */
    --nivexo-text-main: #1e293b;
    --nivexo-text-muted: #64748b;
    --nivexo-up-color: #02c057;
    --nivexo-down-color: #ef4444;
    --nivexo-radius-premium: 16px;
    --nivexo-radius-control: 10px;
}

body {
    background-color: #f6f8fb;
    color: var(--nivexo-text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

.container-fluid-max {
    max-width: 1400px;
    margin: 0 auto;
}

/* Premium Dynamic Substrate Header Block */
.inner-page-hero {
    background: radial-gradient(circle at 90% 10%, rgba(0, 168, 82, 0.12) 0%, transparent 50%), 
                radial-gradient(circle at 10% 90%, rgba(0, 132, 214, 0.15) 0%, transparent 60%), 
                linear-gradient(135deg, var(--nivexo-navy) 0%, #030811 100%);
    border-bottom: 4px solid var(--nivexo-primary);
    padding: 3.5rem 0 5.5rem 0;
    position: relative;
}

.nivexo-hero-badge {
    background: linear-gradient(90deg, var(--nivexo-primary), var(--nivexo-green));
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.inner-page-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 650 !important;
    letter-spacing: -0.04em;
}

/* Brand Accent Underline for Fund Names (as marked in image_2bcbd5.png) */
.nivexo-title-underline {
    height: 2px;                     /* Thick, clear underline */
    width: 120px;                    /* Extends nicely underneath the text block */
    background-color: #0084d6;       /* Authentic Brand Logo Blue Accent Color */
    border-radius: 20px;             /* Smooth, pill-shaped edges */
    display: block;                  /* Ensures clean line breaking */
    transition: width 0.3s ease;     /* Smooth interactive transition */
}

/* Optional premium hover effect: broadens the line slightly when the row is hovered */
.fund-data-row:hover .nivexo-title-underline {
    width: 160px;
}

/* ==========================================================================
   DESKTOP & LAPTOP GRID TRANSFORMATION SYSTEM (Prevents Table Collapse Collisions)
   ========================================================================== */
@media (min-width: 768px) {
    .corporate-table-wrapper {
        border: 1px solid var(--nivexo-border);
        border-radius: var(--nivexo-radius-premium);
        background: #ffffff;
        box-shadow: 0 4px 20px -2px rgba(9, 19, 36, 0.02) !important;
        display: block;
        width: 100%;
    }

    .desktop-row-inner-layout {
        display: flex !important;
        padding: 12px;
        width: 100%;
        align-items: center;
        transition: background-color 0.15s ease-in-out;
    }
    
    .interactive-touch-surface:hover .desktop-row-inner-layout {
        background-color: rgba(0, 132, 214, 0.015);
    }
    
    .fund-data-row:not(:last-child) {
        border-bottom: 1px solid var(--nivexo-border-light);
    }

    /* Fixed Layout Alignment Percentages */
    .desktop-col-spec { 
        width: 40% !important; 
        text-align: left !important;
        padding-right: 1rem;
    }
    .desktop-col-cat { 
        width: 15% !important; 
        text-align: center !important;
    }
    .desktop-col-nav { 
        width: 13% !important; 
        text-align: right !important;
    }
    .desktop-col-1y { 
        width: 11% !important; 
        text-align: right !important;
    }
    .desktop-col-3y { 
        width: 11% !important; 
        text-align: right !important;
    }
    .desktop-col-btn { 
        width: 10% !important; 
        text-align: right !important;
    }
}

.inner-page-hero .lead {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 750px;
    font-weight: 400;
}

/* Float Filter Panel UI Refinement */
.filter-section-wrapper {
    margin-top: -3.5rem;
    position: relative;
    z-index: 99;
    margin-bottom: 1.7rem;
}

.filter-pane-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--nivexo-radius-premium);
    box-shadow: 0 20px 40px -15px rgba(9, 19, 36, 0.08) !important;
}

.nivexo-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nivexo-text-muted);
    display: block;
}

/* Inputs & Component Controls Overrides */
.nivexo-input-field {
    background-color: var(--nivexo-surface) !important;
    border: 1px solid var(--nivexo-border) !important;
    color: var(--nivexo-text-main) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border-radius: var(--nivexo-radius-control) !important;
    min-height: 48px; 
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease !important;
}

.nivexo-input-field:focus {
    border-color: var(--nivexo-primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(0, 132, 214, 0.12) !important;
}

/* ==========================================================================
   GLOBAL SEARCHABLE DROPDOWN CORE ARCHITECTURE (Shared Layout Rules)
   ========================================================================== */
.nivexo-searchable-dropdown-wrapper {
    position: relative;
}

.nivexo-searchable-dropdown-wrapper .search-menu-panel {
    position: absolute !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important; 
    margin-top: 4px !important;
    background: var(--nivexo-bg) !important;
    border-radius: 12px !important;
    border: 1px solid var(--nivexo-border) !important;
    box-shadow: 0 20px 45px -10px rgba(9, 19, 36, 0.2) !important;
    max-height: 380px !important;
    display: none;
    flex-direction: column;
}

.nivexo-searchable-dropdown-wrapper .show { 
    display: flex !important; 
}

.nivexo-searchable-dropdown-wrapper .dropdown-item {
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    color: var(--nivexo-text-main);
    border-radius: 8px;
    text-align: left;
    width: 100%;
    background: transparent;
    border: none;
    transition: all 0.15s ease;
}

.nivexo-searchable-dropdown-wrapper .dropdown-item:hover,
.nivexo-searchable-dropdown-wrapper .dropdown-item.active {
    background-color: rgba(0, 132, 214, 0.06);
    color: var(--nivexo-primary);
    padding-left: 1.25rem;
}

.nivexo-searchable-dropdown-wrapper .scrollable-dropdown-items {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 2px;
}

.nivexo-searchable-dropdown-wrapper .scrollable-dropdown-items::-webkit-scrollbar {
    width: 6px;
}
.nivexo-searchable-dropdown-wrapper .scrollable-dropdown-items::-webkit-scrollbar-track {
    background: transparent;
}
.nivexo-searchable-dropdown-wrapper .scrollable-dropdown-items::-webkit-scrollbar-thumb {
    background-color: var(--nivexo-border);
    border-radius: 10px;
}

/* Shared utility style targeting inner input lookups inside menus */
.standard-dropdown-search {
    font-size: 0.88rem !important;
    border-radius: 8px !important;
    border: 1px solid var(--nivexo-border) !important;
    padding: 0.6rem 0.8rem !important;
}

.nivexo-divider {
    height: 1px;
    background: radial-gradient(circle, var(--nivexo-border-light) 0%, rgba(241,245,249,0) 100%);
}

/* Fast Navigation Custom Engine System Architecture Buttons */
.btn-filter-engine {
    background: var(--nivexo-surface);
    border: 1px solid var(--nivexo-border);
    color: var(--nivexo-text-main);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-filter-engine:hover {
    background: #ffffff;
    border-color: var(--nivexo-primary);
    color: var(--nivexo-primary);
}

.btn-filter-engine.active {
    background: linear-gradient(135deg, var(--nivexo-navy) 0%, var(--nivexo-navy-light) 100%);
    border-color: var(--nivexo-navy);
    color: #ffffff;
    box-shadow: 0 8px 20px -6px rgba(9, 19, 36, 0.3);
}

/* Executive Institutional Grid Renders */
.nivexo-section-title {
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: var(--nivexo-primary);
    position: relative;
    background: rgba(0, 132, 214, 0.06);
    border: 1px solid rgba(0, 132, 214, 0.15);
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 3px;
}
.nivexo-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--nivexo-primary);
    border-radius: 2px;
}

.nivexo-counter-badge {
    background: rgba(0, 132, 214, 0.06);
    color: var(--nivexo-primary);
    border: 1px solid rgba(0, 132, 214, 0.15);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 30px;
}

.corporate-table-wrapper {
    border: 1px solid var(--nivexo-border);
    border-radius: var(--nivexo-radius-premium);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(9, 19, 36, 0.02) !important;
}

.institutional-grid th {
    background-color: var(--nivexo-surface);
    color: var(--nivexo-text-muted);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--nivexo-border);
}

.fund-data-row {
    border-bottom: 1px solid var(--nivexo-border-light);
    transition: background-color 0.15s ease;
}
.fund-data-row:hover {
    background-color: rgba(0, 132, 214, 0.01);
}

.scheme-title-text {
    font-size: 0.95rem;
    font-weight: 600 !important; 
    color: var(--nivexo-navy);
    letter-spacing: -0.01em;
}

.small-identifier {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--nivexo-text-muted);
    letter-spacing: 0.02em;
}

.badge-distribution-cat {
    background-color: #f1f5f9;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
}

.nivexo-perf-up { color: var(--nivexo-up-color); }
.nivexo-perf-down { color: var(--nivexo-down-color); }

/* Premium Action Control System Triggers */
.btn-institutional-action {
    background: #ffffff;
    border: 1px solid var(--nivexo-border);
    color: var(--nivexo-navy);
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-institutional-action:hover {
    background: var(--nivexo-primary);
    border-color: var(--nivexo-primary);
    color: #ffffff;
}

/* Interior Analytics Matrix Drawer */
.expanded-execution-layout {
    background-color: #D9FAD7;
    border-top: 1px solid var(--nivexo-border);
    border-bottom: 1px solid var(--nivexo-border);
}

.nivexo-drawer-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--nivexo-text-muted);
    margin-bottom: 1.25rem;
}

.nivexo-meta-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nivexo-text-muted);
}

.nivexo-meta-value {
    color: var(--nivexo-navy);
    font-size: 0.92rem;
    font-weight: 700;
}

.nivexo-exit-box {
    background-color: rgba(241, 245, 249, 0.6);
    border-left: 3px solid var(--nivexo-primary);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    color: #475569;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Primary Execution Button Accent (Nivexo Green Ascent Theme) */
.btn-execution-link {
    background: linear-gradient(135deg, var(--nivexo-green) 0%, #008f45 100%);
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 700;
    border: none;
    padding: 0.7rem 1.75rem !important;
    border-radius: 8px;
    box-shadow: 0 8px 20px -6px rgba(0, 168, 82, 0.4);
    transition: all 0.2s ease;
}

.btn-execution-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -5px rgba(0, 168, 82, 0.5);
}

/* Mobile Component Responsive Parameters Adjustments & Android-Style Native Layer Injections */
@media (max-width: 575.98px) {
    .inner-page-hero { padding: 1.75rem 0 3.5rem 0; }
    .filter-section-wrapper { margin-top: -2.5rem; }
    
    .inner-page-hero h1 {
        font-size: 2.25rem;
    }
    
    /* Anti-Crowding Collapse Switcher Logic for Mobile Headers */
    .mobile-filter-trigger {
        background: var(--nivexo-bg);
        border: 1px solid var(--nivexo-border);
        color: var(--nivexo-navy);
        font-weight: 700;
        font-size: 0.88rem;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(9, 19, 36, 0.05);
        width: 100%;
        padding: 0.9rem 1.2rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .mobile-filter-trigger[aria-expanded="true"] .trigger-arrow-icon {
        transform: rotate(180deg);
    }
    .trigger-arrow-icon {
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.8rem;
        color: var(--nivexo-text-muted);
    }
    
    /* Searchable Dropdown Overlay Mobile Overrides (Applies cleanly to both AMC & Categories) */
    .nivexo-searchable-dropdown-wrapper .search-menu-panel {
        position: absolute !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        margin-top: 6px !important;
        box-shadow: 0 25px 50px -12px rgba(9, 19, 36, 0.25) !important;
        max-height: 320px;
        background: var(--nivexo-bg) !important;
        border: 1px solid var(--nivexo-border) !important;
        border-radius: 12px !important;
    }
    .nivexo-searchable-dropdown-wrapper .scrollable-dropdown-items {
        overflow-y: auto;
        flex-grow: 1;
    }
    .nivexo-searchable-dropdown-wrapper .dropdown-item {
        padding: 0.8rem 1rem;
        border-radius: 8px;
    }
    .nivexo-searchable-dropdown-wrapper .dropdown-item:hover,
    .nivexo-searchable-dropdown-wrapper .dropdown-item.active {
        background-color: rgba(0, 132, 214, 0.06);
        color: var(--nivexo-primary);
        padding-left: 1.25rem;
    }

    .btn-filter-engine {
        width: 100%;
        text-align: left;
        border-radius: 10px;
    }
    
    /* Native App Adaptive Row Grid Overhauls */
    .corporate-table-wrapper {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .institutional-grid {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }
    .institutional-grid thead {
        display: none !important; 
    }
    .institutional-grid tbody {
        display: block !important;
        width: 100% !important;
    }
    
    /* Row Container Separations Matrix Setup */
    .institutional-grid tbody tr.fund-data-row {
        display: block !important;
        width: 100% !important;
        background: var(--nivexo-bg) !important;
        border: 1px solid rgba(226, 232, 240, 0.85) !important;
        box-shadow: 0 6px 16px rgba(9, 19, 36, 0.03) !important;
        border-radius: 14px !important;
        margin-bottom: 14px !important;
        overflow: hidden !important;
    }
    
    .institutional-grid tbody tr.detail-row {
        display: none; 
        width: 100% !important;
    }
    
    .institutional-grid tbody tr.detail-row.show {
        display: block !important;
    }

    /* FIX: Scope cell overrides strictly to immediate parents to protect rolling horizon engine data tables */
    .institutional-grid > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }
    
    /* RESTORES ACCORDION TABLES: Forces secondary dynamic analytical grid structures to keep native data dimensions */
    .expanded-execution-layout table {
        display: table !important;
        width: 100% !important;
    }
    .expanded-execution-layout thead {
        display: table-header-group !important;
    }
    .expanded-execution-layout tbody {
        display: table-row-group !important;
    }
    .expanded-execution-layout tr {
        display: table-row !important;
    }
    .expanded-execution-layout th,
    .expanded-execution-layout td {
        display: table-cell !important;
        padding: 0.5rem !important;
    }
    
    /* Interactive Touch Vectors */
    .mobile-card-touch-surface {
        padding: 1.1rem;
        background-color: var(--nivexo-bg);
        cursor: pointer;
    }
    .mobile-card-touch-surface[aria-expanded="true"] {
        background-color: rgba(0, 132, 214, 0.015);
    }
    
    /* Smooth Animated Icon Toggles */
    .nivexo-toggle-circle-btn {
        width: 30px;
        height: 30px;
        background: var(--nivexo-surface);
        border: 1px solid var(--nivexo-border-light);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    .mobile-card-touch-surface[aria-expanded="true"] .transition-arrow {
        transform: rotate(180deg);
    }
    .transition-arrow {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.75rem;
        color: var(--nivexo-text-muted);
    }
    
    /* Drawer Fluid Transformations */
    .expanded-execution-layout {
        background-color: #D9FAD7 !important;
        border-top: 1px solid var(--nivexo-border-light) !important;
        border-bottom: none !important;
        padding: 1.25rem 1rem !important;
        border-radius: 0 0 14px 14px !important;
    }
    .btn-execution-link {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.75rem 1.25rem !important;
    }
    .institutional-grid th, 
    .fund-data-row td {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Added clean mobile metrics matrix parameters for premium app tracking grids */
    .mobile-metrics-native-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        background-color: var(--nivexo-surface);
        border: 1px solid var(--nivexo-border-light);
        text-align: center;
        gap: 4px;
    }
    
    .mobile-metrics-native-grid .metric-col {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 10px;
    }
    
    .mobile-metrics-native-grid .metric-col:not(:last-child) {
        border-right: 1px solid var(--nivexo-border);
    }
    
    .mobile-metrics-native-grid .metric-label {
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        color: var(--nivexo-text-muted) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
        margin-bottom: 2px !important;
    }
    
    .mobile-metrics-native-grid .metric-value {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        font-family: monospace !important;
    }
}

/* ==========================================================================
   NIVEXO PREMIUM LOGO BRAND LOADER INTERFACE SYSTEM (Growing Ascent Effect)
   ========================================================================== */
.nivexo-loader-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(9, 19, 36, 0.75) !important; /* Premium Navy Tint Overlay */
    backdrop-filter: blur(8px) !important;              /* High-tech background blurring */
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important; /* Overrides priority stack over standard menus */
    transition: opacity 0.3s ease-in-out;
}

.nivexo-loader-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    padding: 3rem 3.5rem !important;
    border-radius: var(--nivexo-radius-premium, 16px) !important;
    box-shadow: 0 30px 70px -10px rgba(3, 8, 17, 0.45) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    position: relative;
}

/* Premium Dynamic "Growing & Expanding" Accent Animation */
.nivexo-loader-logo {
    width: 70px !important;
    height: 70px !important;
    object-fit: contain;
    animation: nivexoPremiumGrowth 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    position: relative;
    z-index: 2;
}

/* Glowing background growth ring behind the favicon logo */
.nivexo-loader-container::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    top: 38px; /* Perfectly centered relative to a 70px logo + text spacing */
    background: radial-gradient(circle, rgba(0, 132, 214, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: nivexoRingGrowth 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    z-index: 1;
}

.nivexo-loader-text {
    font-size: 0.75rem !important;
    color: var(--nivexo-navy, #091324) !important;
    letter-spacing: 0.12em !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}

/* Keyframe Core Animations */
@keyframes nivexoPremiumGrowth {
    0% {
        transform: scale(0.85);
        filter: drop-shadow(0 4px 8px rgba(0, 132, 214, 0.15)) grayscale(10%);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.12); /* Growing ascent effect */
        filter: drop-shadow(0 12px 24px rgba(0, 132, 214, 0.45)) cubic-bezier(0, 0, 0.2, 1);
        opacity: 1;
    }
    100% {
        transform: scale(0.85);
        filter: drop-shadow(0 4px 8px rgba(0, 132, 214, 0.15)) grayscale(10%);
        opacity: 0.7;
    }
}

@keyframes nivexoRingGrowth {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

/* Mobile Fine-Tuning Optimization */
@media (max-width: 575.98px) {
    .nivexo-loader-container {
        padding: 2.5rem 2.5rem !important;
        width: 85%; /* Ensures card scaling rules behave safely on small viewports */
        max-width: 290px;
    }
    .nivexo-loader-logo {
        width: 60px !important;
        height: 60px !important;
    }
    .nivexo-loader-container::before {
        width: 70px;
        height: 70px;
        top: 32px;
    }
}