/* Premium Stock Analyzer Design System - Updated July 31, 2025 - 06:55 UTC */

/* CSS Custom Properties for Premium Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4facfe;
    --warning-color: #ffc107;
    --danger-color: #ff6b6b;
    
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #8e9aaf;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    
    --border-color: #e3e6f0;
    --border-radius: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Premium Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-size: 0.875rem;
}

/* Extra Small Button Class */
.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    line-height: 1.2;
    border-radius: 0.2rem;
}

/* Compact Form Controls */
.form-select-sm, .form-control-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* Compact Table Styling */
.table-sm th, .table-sm td {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* The Infozine Brand Text Styling */
.infozine-brand-text {
    /* font-weight: 800; */
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #0d4f8c 0%, #1e88e5 25%, #0d4f8c 50%, #1e88e5 75%, #0d4f8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.infozine-brand-text:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* CL AVG Date Link Styling */
.cl-avg-date-link {
    color: #0d6efd;
    text-decoration: underline;
    cursor: pointer;
}

/* Show scrollbars for all scanner result containers - User requested visible scrollbars */
.scanner-results-container,
.ticker-analysis-container,
[id*="results"]:not([id*="button"]):not([id*="text"]),
[id*="scanner"]:not([id*="button"]):not([id*="text"]) {
    /* Show scrollbars for webkit browsers (Chrome, Safari, Edge) */
    -webkit-scrollbar: auto !important;
    -webkit-scrollbar-track: auto !important;
    -webkit-scrollbar-thumb: auto !important;
    
    /* Show scrollbars for Firefox */
    scrollbar-width: auto !important;
    scrollbar-color: auto !important;
    
    /* Show scrollbars for IE and Edge legacy */
    -ms-overflow-style: auto !important;
    
    /* Ensure smooth scrolling is maintained */
    scroll-behavior: smooth !important;
}

/* Specific targeting for all Report-II scanner result containers */
#infozine-magic-open-382-results,
#infozine-ac-dc-382-brk-results,
#infozine-safari-rvsl-strt-results,
#infozine-thar-m-p1-results,
#infozine-thar-m-p2-results,
#infozine-opposite-trend-results {
    -webkit-scrollbar: auto !important;
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

/* Apply visible scrollbars to any div with overflow scrolling */
div[style*="overflow"]:not([class*="btn"]):not([class*="input"]) {
    -webkit-scrollbar: auto !important;
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

/* Universal Ticker Symbol Styling for ALL Scanner Result Tables */
.scanner-results-table .ticker-symbol,
.scanner-ticker-symbol,
.ticker-symbol,
/* Admin Dashboard Scanner Tables */
#admin-scanner-results-body .ticker-symbol,
#duple-scanner-results-body .ticker-symbol,
#master-report-scanner-results-body .ticker-symbol,
#opposite-trend-scanner-results-body .ticker-symbol,
#third-leg-magic-hb-ht-results-body .ticker-symbol,
#third-leg-magic-lt-lb-results-body .ticker-symbol,
#top-bottom-scanner-results-body .ticker-symbol,
#ac-dc-382-brk-results-body .ticker-symbol,
#safari-rvsl-strt-results-body .ticker-symbol,
/* Dashboard Scanner Tables */
#scanner-results-body .ticker-symbol,
#area-slot-results-body .ticker-symbol,
#top-bottom-results-body .ticker-symbol,
#master-report-results-body .ticker-symbol,
#third-leg-magic-results-body .ticker-symbol,
#opposite-trend-results-body .ticker-symbol,
#duple-decker-results-body .ticker-symbol,
#magic-open-382-results-body .ticker-symbol,
/* INFOZINE Testing Lab Scanner Tables */
#infozine-scanner-results-body .ticker-symbol,
#infozine-duple-decker-results-body .ticker-symbol,
#infozine-master-report-results-body .ticker-symbol,
#infozine-opposite-trend-results-body .ticker-symbol,
#infozine-safari-rvsl-strt-results-body .ticker-symbol,
#infozine-third-leg-magic-hb-ht-results-body .ticker-symbol,
#infozine-third-leg-magic-lt-lb-results-body .ticker-symbol,
#infozine-top-bottom-results-body .ticker-symbol,
#infozine-ac-dc-382-brk-results-body .ticker-symbol,
#infozine-area-slot-results-body .ticker-symbol,
#infozine-magic-open-382-results-body .ticker-symbol,
/* Catch-all for any scanner table ticker cells */

[id*="scanner"] .ticker-symbol,
td.ticker-symbol,
td[class*="ticker"],
/* Target ticker symbols by position - 2nd column in scanner tables only (exclude ticker analysis) */
[id*="scanner-results-body"] tr td:nth-child(2),
.scanner-results-table tbody tr td:nth-child(2) {
    font-size: 12px !important;
    color: #2c3e50 !important;
}

/* Serial Number Column Styling - Apply to all Sr. columns */
.serial-number,
table th:first-child,
table td:first-child {
    width: 50px !important;
    max-width: 50px !important;
    min-width: 50px !important;
    text-align: center !important;
}

/* Scanner Tables Only - Bold Dark Black Numbers (excludes ticker analysis) */
.scanner-results-table tbody td:nth-child(n+4):nth-child(-n+14),
[id*="scanner-results-body"] tbody td:nth-child(n+4):nth-child(-n+14) {
    color: #000000 !important;
    font-weight: bold !important;
}

/* TICKER ANALYSIS TABLE - Complete Reset of all styling overrides with maximum specificity */
body #ticker-analysis-table tbody td,
body #ticker-analysis-table tbody td:nth-child(n),
body table[id="ticker-analysis-table"] tbody td,
body table[id="ticker-analysis-table"] tbody td:nth-child(n),
body .ticker-analysis-container #ticker-analysis-table tbody td,
body .ticker-analysis-container #ticker-analysis-table tbody td:nth-child(n),
body .ticker-analysis-container table[id="ticker-analysis-table"] tbody td,
body .ticker-analysis-container table[id="ticker-analysis-table"] tbody td:nth-child(n) {
    font-weight: normal !important;
    color: #212529 !important;
    font-size: 0.90rem !important;
}

/* Override any modal-specific rules for ticker analysis */
#tickerAnalysisModal #ticker-analysis-table tbody td,
#tickerAnalysisModal table[id="ticker-analysis-table"] tbody td {
    font-weight: normal !important;
    color: #212529 !important;
}

/* Sr. column header styling */
table th:first-child {
    font-size: 0.7rem !important;
    padding: 0.25rem !important;
}



/* Universal Scanner Result Table Styling - Apply SAFARI RVSL STRT styling to ALL scanners */
/* Admin Dashboard Scanner Tables */
#admin-scanner-results-body,
#duple-scanner-results-body,
#master-report-scanner-results-body,
#opposite-trend-scanner-results-body,
#third-leg-magic-hb-ht-results-body,
#third-leg-magic-lt-lb-results-body,
#top-bottom-scanner-results-body,
#ac-dc-382-brk-results-body,
#safari-rvsl-strt-results-body,
/* Dashboard Scanner Tables */
#scanner-results-body,
#area-slot-results-body,
#top-bottom-results-body,
#master-report-results-body,
#third-leg-magic-results-body,
#opposite-trend-results-body,
#duple-decker-results-body,
#magic-open-382-results-body,
/* INFOZINE Testing Lab Scanner Tables */
#infozine-scanner-results-body,
#infozine-duple-decker-results-body,
#infozine-master-report-results-body,
#infozine-opposite-trend-results-body,
#infozine-safari-rvsl-strt-results-body,
#infozine-third-leg-magic-hb-ht-results-body,
#infozine-third-leg-magic-lt-lb-results-body,
#infozine-top-bottom-results-body,
#infozine-ac-dc-382-brk-results-body,
#infozine-area-slot-results-body,
#infozine-magic-open-382-results-body {
    font-family: inherit !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

/* Apply table styling to all scanner result table cells */
[id*="results-body"] td,
[id*="scanner-results-body"] td,
table[class*="scanner"] tbody td,
.scanner-results-table tbody td {
    /* font-weight: bold !important;
    color: #000000 !important; */
    padding: 8px 12px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #dee2e6 !important;
}

/* Universal scanner table container styling - same as SAFARI RVSL STRT */
[id*="results-body"] table,
[id*="scanner-results-body"] table,
.scanner-results-table {
    width: 100% !important;
    min-width: max-content !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 0.85rem !important;
}

/* Universal column width management for all scanner tables */
[id*="results-body"] th,
[id*="results-body"] td,
[id*="scanner-results-body"] th,
[id*="scanner-results-body"] td,
.scanner-results-table th,
.scanner-results-table td {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    padding: 8px 12px !important;
    min-width: fit-content !important;
    max-width: none !important;
    border-right: 1px solid #dee2e6 !important;
}

/* Enhanced responsive design for scanner tables */
@media (max-width: 1200px) {
    [id*="results-body"] th,
    [id*="results-body"] td,
    [id*="scanner-results-body"] th,
    [id*="scanner-results-body"] td {
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 768px) {
    [id*="results-body"] th,
    [id*="results-body"] td,
    [id*="scanner-results-body"] th,
    [id*="scanner-results-body"] td {
        padding: 6px 8px !important;
        font-size: 0.75rem !important;
    }
}

/* Exception for badge elements - keep their original colors */
table tbody td .badge {
    font-weight: normal !important;
    color: white !important;
}

/* Specific badge color overrides */
table tbody td .badge.bg-success {
    color: white !important;
    background-color: #198754 !important;
}

table tbody td .badge.bg-danger {
    color: white !important;
    background-color: #dc3545 !important;
}

table tbody td .badge.bg-secondary {
    color: white !important;
    background-color: #6c757d !important;
}

table tbody td .badge.bg-info {
    color: white !important;
    background-color: #0dcaf0 !important;
}

/* Ensure symbol/ticker columns are bold dark black (exclude ticker analysis) */
.scanner-results-table tbody tr td:nth-child(2),
[id*="scanner-results-body"] tbody tr td:nth-child(2) {
    color: #000000 !important;
    font-weight: bold !important;
}

/* Apply to all NSE stock table cells for consistency */
#nse-stock-table tbody td,
#infozine-nse-stock-table tbody td {
    /* color: #000000 !important;
    font-weight: bold !important; */
}

/* Exception for NSE stock table badge elements */
#nse-stock-table tbody td .badge,
#infozine-nse-stock-table tbody td .badge {
    color: white !important;
    font-weight: normal !important;
}

/* Responsive table column text wrapping */
table {
    table-layout: auto !important;
    width: 100% !important;
}

table th,
table td {
    word-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 200px !important;
}

/* Specific column width constraints for better responsiveness */
table th:first-child,
table td:first-child {
    max-width: 50px !important;
    min-width: 40px !important;
}

table th:nth-child(2),
table td:nth-child(2) {
    max-width: 120px !important;
    min-width: 80px !important;
}

/* Responsive container for all tables */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Badge elements should not wrap */
.badge {
    white-space: nowrap !important;
    word-break: normal !important;
}

/* Long text truncation with ellipsis for very small screens */
@media (max-width: 768px) {
    table th,
    table td {
        max-width: 120px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    /* Symbol column should be wider on mobile */
    table th:nth-child(2),
    table td:nth-child(2) {
        max-width: 100px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    table th,
    table td {
        max-width: 80px !important;
        font-size: 0.8rem !important;
    }
}

/* Additional fixes for wide scanner tables */
.scanner-results-table,
#infozine-ac-dc-382-brk-results table,
#admin-ac-dc-382-brk-results table {
    min-width: 1400px !important;
    width: max-content !important;
}

/* Ensure specific scanner column widths override */
.scanner-results-table th:nth-child(1) { width: 60px !important; min-width: 60px !important; }
.scanner-results-table th:nth-child(2) { width: 120px !important; min-width: 120px !important; }
.scanner-results-table th:nth-child(3) { width: 110px !important; min-width: 110px !important; }
.scanner-results-table th:nth-child(4) { width: 100px !important; min-width: 100px !important; }
.scanner-results-table th:nth-child(5) { width: 80px !important; min-width: 80px !important; }
.scanner-results-table th:nth-child(6) { width: 80px !important; min-width: 80px !important; }
.scanner-results-table th:nth-child(7) { width: 100px !important; min-width: 100px !important; }
.scanner-results-table th:nth-child(8) { width: 90px !important; min-width: 90px !important; }
.scanner-results-table th:nth-child(9) { width: 90px !important; min-width: 90px !important; }
.scanner-results-table th:nth-child(10) { width: 90px !important; min-width: 90px !important; }
.scanner-results-table th:nth-child(11) { width: 90px !important; min-width: 90px !important; }
.scanner-results-table th:nth-child(12) { width: 120px !important; min-width: 120px !important; }
.scanner-results-table th:nth-child(13) { width: 90px !important; min-width: 90px !important; }
.scanner-results-table th:nth-child(14) { width: 90px !important; min-width: 90px !important; }
.scanner-results-table th:nth-child(15) { width: 100px !important; min-width: 100px !important; }

/* Force table cells to respect column widths */
.scanner-results-table td {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}
    /* font-weight: 500; */
}

.cl-avg-date-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Sticky Header Enhancement */
.sticky-top {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Searchable Dropdown Styling */
.position-relative .dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    background: var(--bg-primary);
    z-index: 99999 !important;
    margin-top: 2px;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure dropdown container has proper stacking */
.position-relative {
    z-index: 99998 !important;
    position: relative !important;
}

/* Override any modal or card z-index that might interfere */
#tickerAnalysisModal .modal-content {
    z-index: 1050;
}

/* Ensure modal allows sticky positioning */
#tickerAnalysisModal .modal-body {
    position: relative !important;
    overflow: visible !important;
}

#tickerAnalysisModal .card-body {
    position: relative !important;
    overflow: visible !important;
}

.card {
    z-index: auto;
}

.position-relative .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.position-relative .dropdown-item:hover,
.position-relative .dropdown-item.active {
    background: var(--primary-gradient);
    color: white;
    border-radius: 4px;
    margin: 2px 4px;
    width: calc(100% - 8px);
}

.position-relative .dropdown-item strong {
    color: var(--primary-color);
}

.position-relative .dropdown-item:hover strong,
.position-relative .dropdown-item.active strong {
    color: white;
}

#analysis-ticker-search {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

#analysis-ticker-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Premium Navigation */
.navbar {
    background: var(--primary-gradient) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem !important;
    border-radius: 6px;
    transition: var(--transition);
    margin: 0 0.125rem;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Premium Cards */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.card-body {
    padding: 1rem;
}

/* Premium Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-gradient);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--success-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    background: var(--success-gradient);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

.btn-purple {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-purple:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Premium Tables */
.table {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Premium Table Container with Fixed Height and Scrolling */
.premium-table-container {
    max-height: 480px !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    border: 1px solid #ddd !important;
    margin: 15px 0 !important;
    white-space: nowrap !important;
}

/* Enhanced Table Layout for Proper Column Distribution */
.table-responsive table,
.premium-table-container table {
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

/* Column Width Management for Proper Stretching */
.table-responsive th,
.table-responsive td,
.premium-table-container th,
.premium-table-container td {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    padding: 8px 12px !important;
    min-width: fit-content !important;
    max-width: none !important;
}

/* AC-DC 38.2 BRK Scanner Specific Column Widths */
.table-responsive thead th:nth-child(1) { min-width: 60px !important; }   /* Sr. */
.table-responsive thead th:nth-child(2) { min-width: 120px !important; }  /* Symbol */
.table-responsive thead th:nth-child(3) { min-width: 110px !important; }  /* Current Trend */
.table-responsive thead th:nth-child(4) { min-width: 100px !important; }  /* Trend Date */
.table-responsive thead th:nth-child(5) { min-width: 80px !important; }   /* Area */
.table-responsive thead th:nth-child(6) { min-width: 80px !important; }   /* HTR/LTR */
.table-responsive thead th:nth-child(7) { min-width: 100px !important; }  /* HTF Trend */
.table-responsive thead th:nth-child(8) { min-width: 90px !important; }   /* HTF Area */
.table-responsive thead th:nth-child(9) { min-width: 90px !important; }   /* High */
.table-responsive thead th:nth-child(10) { min-width: 90px !important; }  /* Low */
.table-responsive thead th:nth-child(11) { min-width: 90px !important; }  /* Close */
.table-responsive thead th:nth-child(12) { min-width: 120px !important; } /* Fiboview */
.table-responsive thead th:nth-child(13) { min-width: 90px !important; }  /* AC38.2T */
.table-responsive thead th:nth-child(14) { min-width: 90px !important; }  /* DC38.2T */
.table-responsive thead th:nth-child(15) { min-width: 100px !important; } /* Senti Rvsl */

/* NSE Stock Table Column Widths */
#nse-stock-explorer-table thead th:nth-child(1) { min-width: 60px !important; }   /* Sr. */
#nse-stock-explorer-table thead th:nth-child(2) { min-width: 120px !important; }  /* Symbol */
#nse-stock-explorer-table thead th:nth-child(3) { min-width: 200px !important; }  /* Company Name */
#nse-stock-explorer-table thead th:nth-child(4) { min-width: 150px !important; }  /* Sector */
#nse-stock-explorer-table thead th:nth-child(5) { min-width: 100px !important; }  /* Current Price */
#nse-stock-explorer-table thead th:nth-child(6) { min-width: 100px !important; }  /* Volume */
#nse-stock-explorer-table thead th:nth-child(7) { min-width: 120px !important; }  /* Listing Date */
#nse-stock-explorer-table thead th:nth-child(8) { min-width: 200px !important; }  /* Indices */
#nse-stock-explorer-table thead th:nth-child(9) { min-width: 80px !important; }   /* Status */

/* Ensure all table containers support sticky headers */
.table-responsive,
.premium-table-container,
.modal-body,
.card-body,
div[style*="overflow-y: auto"],
div[style*="max-height"],
div[class*="table"] {
    position: relative !important;
    contain: layout style paint !important;
}

/* Enhanced scrollbar for all table containers INCLUDING scanner result tables */
.table-responsive::-webkit-scrollbar,
.premium-table-container::-webkit-scrollbar,
[id*="results-body"]::-webkit-scrollbar,
[id*="scanner-results-body"]::-webkit-scrollbar,
.scanner-results-table::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
}

.table-responsive::-webkit-scrollbar-track,
.premium-table-container::-webkit-scrollbar-track,
[id*="results-body"]::-webkit-scrollbar-track,
[id*="scanner-results-body"]::-webkit-scrollbar-track,
.scanner-results-table::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 7px;
}

.table-responsive::-webkit-scrollbar-thumb,
.premium-table-container::-webkit-scrollbar-thumb,
[id*="results-body"]::-webkit-scrollbar-thumb,
[id*="scanner-results-body"]::-webkit-scrollbar-thumb,
.scanner-results-table::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 7px;
    border: 2px solid #f1f1f1;
}

.table-responsive::-webkit-scrollbar-thumb:hover,
.premium-table-container::-webkit-scrollbar-thumb:hover,
[id*="results-body"]::-webkit-scrollbar-thumb:hover,
[id*="scanner-results-body"]::-webkit-scrollbar-thumb:hover,
.scanner-results-table::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.table-responsive::-webkit-scrollbar-corner,
.premium-table-container::-webkit-scrollbar-corner,
[id*="results-body"]::-webkit-scrollbar-corner,
[id*="scanner-results-body"]::-webkit-scrollbar-corner,
.scanner-results-table::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* Mandatory sticky headers for ALL tables - comprehensive coverage */
table th,
table thead th,
.table th,
.table thead th,
.table thead.sticky-top th,
.table thead th.sticky-top,
.premium-table-container table th,
.premium-table-container table thead th,
.premium-table-container .table thead th,
#nse-stock-explorer-table thead th,
#ticker-analysis-table thead th,
#tickerDetailsModal table thead th,
#tickerAnalysisModal table thead th,
#scripts-selection-table thead th,
#existing-csv-table thead th,
#scanner-results-table thead th,
#stock-data-table thead th,
#nse-stocks-table thead th,
tbody + thead th,
tr:first-child th,
.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1001 !important;
    background-color: #343a40 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 6px !important;
    text-align: center !important;
    font-weight: 500 !important;
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(2px) !important;
}

/* Universal table header rule - catches any th element in any table */
* th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1002 !important;
    background-color: #343a40 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 6px !important;
    font-weight: 500 !important;
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    white-space: nowrap !important;
}

/* Extra specific modal table rules for ticker analysis */
#tickerAnalysisModal th,
#tickerDetailsModal th,
.modal th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1025 !important;
    background-color: #343a40 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 6px !important;
    font-weight: 500 !important;
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
    text-align: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
    white-space: nowrap !important;
}

/* Modal table headers specific fix */
.modal .table th,
.modal-body .table th,
#tickerDetailsModal table th,
#tickerAnalysisModal table th,
#tickerAnalysisModal .table thead th,
#tickerDetailsModal .table thead th,
.modal .table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1020 !important;
    background-color: #343a40 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 6px !important;
    font-weight: 500 !important;
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
    text-align: center !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    white-space: nowrap !important;
}

/* Ticker analysis modal specific table container */
#tickerAnalysisModal .table-responsive,
#tickerDetailsModal .table-responsive {
    max-height: calc(100vh - 300px) !important;
    overflow-y: auto !important;
}

/* Specific rule for ticker analysis table sticky headers */
#ticker-analysis-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important;
    background-color: #212529 !important;
    color: white !important;
    border: 1px solid #444 !important;
    font-weight: bold !important;
    font-size: 0.7rem !important;
    padding: 8px !important;
    text-align: center !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5) !important;
    white-space: nowrap !important;
}

/* Ensure proper scrolling container for sticky headers */
#ticker-analysis-results .table-responsive {
    max-height: 70vh !important;
    overflow-y: auto !important;
    position: relative !important;
}

/* COMPREHENSIVE STICKY HEADER SOLUTION FOR TICKER ANALYSIS MODAL */

/* Fix modal container to allow sticky positioning */
#tickerAnalysisModal {
    z-index: 1055 !important;
}

#tickerAnalysisModal .modal-dialog {
    max-width: 95vw !important;
    margin: 1rem !important;
}

#tickerAnalysisModal .modal-content {
    height: 95vh !important;
    overflow: hidden !important;
}

#tickerAnalysisModal .modal-body {
    padding: 0 !important;
    overflow: hidden !important;
    height: calc(95vh - 120px) !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Create proper scrolling container */
#tickerAnalysisModal #ticker-analysis-results {
    flex: 1 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

#tickerAnalysisModal #ticker-analysis-results .card {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#tickerAnalysisModal #ticker-analysis-results .card-body {
    flex: 1 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#tickerAnalysisModal .table-responsive {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    height: 100% !important;
    border: none !important;
    /* Show scrollbar while maintaining scroll functionality */
    scrollbar-width: auto !important; /* Firefox */
    -ms-overflow-style: auto !important; /* Internet Explorer 10+ */
}

/* Show scrollbar for WebKit browsers (Chrome, Safari, Edge) */
#tickerAnalysisModal .table-responsive::-webkit-scrollbar {
    display: block !important;
    width: auto !important;
    height: auto !important;
}

/* Show scrollbar for simplified table container */
#tickerAnalysisModal .table-container {
    scrollbar-width: auto !important; /* Firefox */
    -ms-overflow-style: auto !important; /* Internet Explorer 10+ */
}

#tickerAnalysisModal .table-container::-webkit-scrollbar {
    display: block !important;
    width: auto !important;
    height: auto !important;
}

/* Ultimate sticky header rules with maximum specificity */
#tickerAnalysisModal #ticker-analysis-table,
#tickerAnalysisModal table[id="ticker-analysis-table"] {
    margin-bottom: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

#tickerAnalysisModal #ticker-analysis-table thead,
#tickerAnalysisModal table[id="ticker-analysis-table"] thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 2100 !important;
}

#tickerAnalysisModal #ticker-analysis-table thead th,
#tickerAnalysisModal table[id="ticker-analysis-table"] thead th,
#tickerAnalysisModal #ticker-analysis-table th,
#tickerAnalysisModal table[id="ticker-analysis-table"] th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2101 !important;
    background-color: #212529 !important;
    background-image: none !important;
    color: white !important;
    border: 1px solid #444 !important;
    font-weight: bold !important;
    font-size: 0.7rem !important;
    padding: 8px !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6) !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}
    border: 1px solid #dee2e6 !important;
}

/* Modal table body cells */
#tickerAnalysisModal table tbody td,
#tickerDetailsModal table tbody td {
    padding: 6px 4px !important;
    font-size: 0.75rem !important;
    border-bottom: 1px solid #dee2e6 !important;
}

/* Force sticky headers in all modal tables */
.modal-fullscreen .table th,
.modal-lg .table th,
.modal-xl .table th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1020 !important;
    background-color: #343a40 !important;
    color: #ffffff !important;
}

/* Dashboard table headers text visibility fix */
.premium-table-container th,
.table-responsive th {
    color: #ffffff !important;
    background-color: #343a40 !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
}

/* Force visible text on ALL table headers */
th {
    color: #ffffff !important;
    background-color: #343a40 !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    text-shadow: none !important;
}

/* Ensure modal tables have proper container positioning */
.modal-body {
    position: relative !important;
}

/* Fix for any table in modal that should have sticky headers */
.modal table,
.modal .table {
    position: relative !important;
}

/* Additional fallback for modal table headers */
.modal thead,
.modal .table thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Ticker Analysis Modal - Force sticky headers on hover and scroll */
#tickerAnalysisModal .table-responsive,
#tickerDetailsModal .table-responsive {
    position: relative !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
}

#tickerAnalysisModal table thead th,
#tickerDetailsModal table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1005 !important;
    background-color: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    padding: 8px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2) !important;
    backdrop-filter: blur(5px) !important;
}

/* Ensure ticker analysis table container has proper scroll behavior */
#tickerAnalysisModal .modal-body {
    padding: 0 !important;
    position: relative !important;
}

#tickerAnalysisModal .table-responsive {
    max-height: calc(100vh - 200px) !important;
    min-height: 400px !important;
    position: relative !important;
    border: 1px solid #ddd !important;
}

/* Removed modal table hover effects to prevent header color change */

/* Removed additional hover enhancement to prevent header color change */

/* Enhanced sticky headers for ticker analysis popup - ensure behavior matches dashboard */
#tickerAnalysisModal table thead th,
#tickerDetailsModal table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1005 !important;
    background: #343a40 !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    border: none !important;
    padding: 8px 6px !important;
    text-transform: none !important;
    letter-spacing: 0.1px !important;
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-shadow: none !important;
}

/* MAXIMUM PRIORITY: Force table cell content visibility */
#tickerAnalysisModal table tbody td,
#tickerDetailsModal table tbody td {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #dee2e6 !important;
    font-size: 12px !important;
}

#tickerAnalysisModal table tbody tr:nth-child(even) td,
#tickerDetailsModal table tbody tr:nth-child(even) td {
    background-color: #f8f9fa !important;
    color: #000000 !important;
}

/* Force all nested elements to be visible */
#tickerAnalysisModal table tbody td *,
#tickerDetailsModal table tbody td * {
    color: #000000 !important;
}

/* Ensure ticker analysis table container has proper scroll behavior and sticky headers */
#tickerAnalysisModal .modal-body {
    padding: 0 !important;
    position: relative !important;
}

#tickerAnalysisModal .table-responsive {
    max-height: calc(100vh - 200px) !important;
    min-height: 400px !important;
    position: relative !important;
    border: 1px solid #ddd !important;
    overflow-y: auto !important;
}

/* Ensure sticky headers work in modal fullscreen */
.modal-fullscreen .modal-body {
    overflow: visible !important;
}


}

/* Prevent page refresh on modal close */
.modal {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Remove modal fade effect to prevent page refresh issues */
.modal.fade .modal-dialog {
    transition: none !important;
}

/* Ensure ESC key works for closing modals */
.modal[data-bs-keyboard="true"] {
    outline: none !important;
}

.premium-table-container .table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 21;
    background: var(--primary-gradient);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Simple table row styling */
.premium-table-container .table tbody tr,
.table tbody tr {
    border-bottom: 1px solid #ddd !important;
}

/* Force sticky headers on ALL tables */
.table,
.premium-table-container .table,
table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: relative !important;
}

/* Override any existing thead styling to force sticky */
thead,
.table thead,
.premium-table-container thead,
table thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Alternative approach for proper scrolling */
.premium-table-container {
    position: relative !important;
    height: 480px !important;
    display: block !important;
}

.premium-table-container .table {
    height: 100% !important;
    display: block !important;
    overflow: visible !important;
}

.premium-table-container .table thead {
    display: block !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    width: 100% !important;
}

.premium-table-container .table tbody {
    display: block !important;
    height: calc(480px - 50px) !important; /* Subtract header height */
    overflow-y: auto !important;
    overflow-x: auto !important;
    width: 100% !important;
}

.premium-table-container .table thead tr,
.premium-table-container .table tbody tr {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
}

/* Standard Table Headers (for backwards compatibility) */
.table thead th {
    background: #343a40;
    color: #ffffff;
    font-weight: 500;
    border: none;
    padding: 8px 6px;
    text-transform: none;
    letter-spacing: 0.1px;
    font-size: 0.7rem;
    line-height: 1.1;
    white-space: nowrap;
}

/* Simple table cell styling */
.premium-table-container .table tbody td,
.table tbody td {
    border: 1px solid #ddd !important;
    padding: 6px 8px !important;
    background-color: white !important;
}

.premium-table-container .table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    background: inherit;
    box-shadow: 2px 0 4px rgba(0,0,0,0.05);
}

/* Removed hover effect for first column to prevent header color change */

/* Standard Table Cell Styling (for backwards compatibility) */
.table tbody td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Removed table row hover effect to prevent header color change */

/* Premium Modals */
.modal-content {
    border-radius: var(--border-radius-xl);
    border: none;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-body {
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
}

.modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Premium Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--bg-primary);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    background: var(--bg-primary);
}

.form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--bg-primary);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Premium Badges */
.badge {
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%) !important;
    color: #000 !important;
}

.bg-info {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%) !important;
}

/* Premium Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.1) 0%, rgba(56, 239, 125, 0.1) 100%);
    color: #11998e;
    border-left: 4px solid #11998e;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 36, 0.1) 100%);
    color: #ff6b6b;
    border-left: 4px solid #ff6b6b;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 143, 0, 0.1) 100%);
    color: #e65100;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1) 0%, rgba(58, 123, 213, 0.1) 100%);
    color: #0277bd;
    border-left: 4px solid #00d2ff;
}

/* Premium Loading Animations */
.spinner-border {
    border-width: 3px;
    border-color: var(--primary-color);
    border-right-color: transparent;
}

/* Premium Progress Bars */
.progress {
    height: 10px;
    border-radius: var(--border-radius);
    background: var(--bg-tertiary);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.progress-bar {
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    transition: width 0.6s ease;
}

/* Premium Dropdown */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 0.25rem 0;
    background: var(--bg-primary);
    font-size: 0.875rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: var(--transition);
    border-radius: 0;
    color: var(--text-primary);
    font-size: 0.875rem;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(3px);
}

/* Premium Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Premium Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Apply animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.pulse-effect {
    animation: pulse 2s infinite;
}

/* Premium Footer */
.footer {
    background: var(--dark-gradient);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer p, .footer li {
    color: rgba(255,255,255,0.8);
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
    transform: translateX(5px);
}

/* Premium Home Page Hero */
.hero-section {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,100 1000,0 1000,100"/></svg>') no-repeat center center;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Premium Feature Cards */
.feature-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* NSE Stock Explorer Style Filtering */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.card.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header.bg-gradient-primary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.form-control-sm, .form-select-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.form-control-sm:focus, .form-select-sm:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.btn-group .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-outline-secondary.btn-sm.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.fa-cog.fa-lg {
    font-size: 1.25rem;
}

/* Filter form enhancement */
.form-label.fw-bold.text-dark {
    color: var(--text-color) !important;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Button group spacing */
.btn-group.flex-grow-1 {
    margin-right: 0.5rem;
}

/* Modal fullscreen enhancement */
.modal-fullscreen .modal-body {
    padding: 1.5rem;
}

.modal-fullscreen .card-body {
    padding: 1rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Sticky Table Headers - Enhanced for Full Modal */
.table-responsive {
    position: relative;
    overflow-y: auto;
    overflow-x: auto;
}

/* Enhanced sticky headers for modal popup */
.modal-fullscreen .table thead th.sticky-top,
.table thead th.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    background: linear-gradient(135deg, #434343 0%, #000000 100%) !important;
    border-bottom: 2px solid var(--primary-color) !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    padding: 0.6rem 0.4rem !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

.modal-fullscreen .table thead th.sticky-top:first-child,
.table thead th.sticky-top:first-child {
    border-top-left-radius: 8px !important;
}

.modal-fullscreen .table thead th.sticky-top:last-child,
.table thead th.sticky-top:last-child {
    border-top-right-radius: 8px !important;
}

/* Force sticky behavior in modal */
.modal-fullscreen .table-responsive {
    max-height: calc(100vh - 250px) !important;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: auto !important;
    position: relative !important;
}

.modal-fullscreen .table {
    margin-bottom: 0 !important;
    font-size: 0.75rem !important;
    position: relative !important;
}

.modal-fullscreen .table td {
    padding: 0.3rem 0.5rem !important;
    white-space: nowrap !important;
    font-size: 0.75rem !important;
}

.modal-fullscreen .table th {
    font-size: 0.75rem !important;
    padding: 0.6rem 0.4rem !important;
}

/* Specific fix for ticker analysis modal table */
#ticker-analysis-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 1020 !important;
    background: linear-gradient(135deg, #434343 0%, #000000 100%) !important;
    color: white !important;
    border-bottom: 2px solid #667eea !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

/* NSE Stock Explorer table sticky headers */
#nse-stocks-table thead th.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: linear-gradient(135deg, #434343 0%, #000000 100%) !important;
    color: white !important;
    border-bottom: 2px solid #667eea !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

/* NSE Stock Explorer table column width fixes */
#nse-stocks-table th:nth-child(1), /* Symbol */
#nse-stocks-table td:nth-child(1) {
    width: 12% !important;
    max-width: 120px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

#nse-stocks-table th:nth-child(2), /* Company Name */
#nse-stocks-table td:nth-child(2) {
    width: 30% !important;
    max-width: 250px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    padding-right: 15px !important;
}

#nse-stocks-table th:nth-child(3), /* Sector */
#nse-stocks-table td:nth-child(3) {
    width: 18% !important;
    max-width: 150px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    padding-right: 15px !important;
}

#nse-stocks-table th:nth-child(4), /* Current Price */
#nse-stocks-table td:nth-child(4) {
    width: 15% !important;
    max-width: 120px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    text-align: center !important;
}

#nse-stocks-table th:nth-child(5), /* Volume */
#nse-stocks-table td:nth-child(5) {
    width: 12% !important;
    max-width: 120px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    text-align: center !important;
}

#nse-stocks-table th:nth-child(6), /* Listing Date */
#nse-stocks-table td:nth-child(6) {
    width: 8% !important;
    max-width: 100px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    text-align: center !important;
}

#nse-stocks-table th:nth-child(7), /* Indices */
#nse-stocks-table td:nth-child(7) {
    width: 15% !important;
    max-width: 150px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
}

#nse-stocks-table th:nth-child(8), /* Status */
#nse-stocks-table td:nth-child(8) {
    width: 10% !important;
    max-width: 100px !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    text-align: center !important;
}

/* Scripts Selection Table - Enhanced Styling */
.scripts-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.scripts-table thead th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    padding: 12px 8px !important;
    vertical-align: middle !important;
    text-align: center !important;
}

.scripts-table tbody tr.scripts-table-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    background: white !important;
}

/* Removed scripts table row hover to prevent header color change */

.scripts-table tbody tr.scripts-table-row:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
}

/* Removed scripts table even row hover to prevent header color change */

.scripts-table td {
    padding: 10px 8px !important;
    vertical-align: middle !important;
    border: none !important;
    font-size: 0.85rem !important;
}

/* Specific column widths for scripts table */
.scripts-table th:nth-child(1), /* Checkbox */
.scripts-table td:nth-child(1) {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    text-align: center !important;
    padding: 8px !important;
}

.scripts-table th:nth-child(2), /* Symbol */
.scripts-table td:nth-child(2) {
    width: 100px !important;
    min-width: 80px !important;
    max-width: 120px !important;
    text-align: center !important;
    /* font-weight: 600 !important; */
}

.scripts-table th:nth-child(3), /* Company Name */
.scripts-table td:nth-child(3) {
    width: 300px !important;
    min-width: 200px !important;
    max-width: 400px !important;
    text-align: left !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.scripts-table th:nth-child(4), /* Sector */
.scripts-table td:nth-child(4) {
    width: 120px !important;
    min-width: 100px !important;
    max-width: 140px !important;
    text-align: center !important;
}

.scripts-table th:nth-child(5), /* Listing Date */
.scripts-table td:nth-child(5) {
    width: 120px !important;
    min-width: 100px !important;
    max-width: 140px !important;
    text-align: center !important;
}

.scripts-table th:nth-child(6), /* Status */
.scripts-table td:nth-child(6) {
    width: 80px !important;
    min-width: 70px !important;
    max-width: 90px !important;
    text-align: center !important;
}

/* Company name cell styling */
.company-name-cell {
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    line-height: 1.3 !important;
}

/* Enhanced form check styling */
.scripts-table .form-check-input {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #6c757d !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.scripts-table .form-check-input:checked {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Enhanced badge styling for scripts table */
.scripts-table .badge {
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}

.scripts-table .badge.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    color: white !important;
    border: none !important;
}

.scripts-table .badge.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border: none !important;
}

/* Stock symbol link styling */
.scripts-table .stock-symbol-link {
    font-family: 'Monaco', 'Consolas', monospace !important;
    font-weight: 700 !important;
    color: #007bff !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

.scripts-table .stock-symbol-link:hover {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%) !important;
    color: white !important;
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3) !important;
}

/* Admin dashboard ticker analysis table with frozen headers */
#tickerDetailsModal .table-responsive {
    overflow-y: auto !important;
    overflow-x: auto !important;
    border: 2px solid #007bff !important;
    scrollbar-width: thin !important;
    scrollbar-color: #007bff #f8f9fa !important;
    max-height: 500px !important;
    min-height: 400px !important;
}

/* Analysis Results card height and scrolling for admin dashboard */
#tickerDetailsModal .card {
    max-height: 80vh !important;
    overflow: hidden !important;
}

#tickerDetailsModal .card-header {
    padding: 8px 15px !important;
    min-height: auto !important;
    height: auto !important;
}

#tickerDetailsModal .card-header h6 {
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
}

#tickerDetailsModal .card-body {
    max-height: calc(80vh - 80px) !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    padding: 15px !important;
}

/* Simple popup table styling for admin dashboard */
#tickerDetailsModal .modal-body {
    overflow-y: auto !important;
    overflow-x: auto !important;
    max-height: 90vh !important;
}

#tickerDetailsModal .table-responsive {
    max-height: 600px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    border: 1px solid #ddd !important;
}

/* Simple frozen headers for admin dashboard popup tables */
#tickerDetailsModal table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

#tickerDetailsModal table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ddd !important;
    padding: 8px !important;
    text-align: left !important;
    font-weight: bold !important;
}

#tickerDetailsModal table tbody td {
    border: 1px solid #ddd !important;
    padding: 6px 8px !important;
    background-color: white !important;
}

#tickerDetailsModal .table-responsive::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
}

#tickerDetailsModal .table-responsive::-webkit-scrollbar-track {
    background: #e9ecef !important;
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
}

#tickerDetailsModal .table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#tickerDetailsModal .table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2) !important;
}

#tickerDetailsModal .table {
    margin-bottom: 0 !important;
}

#tickerDetailsModal .table thead th {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;
    background-color: #212529 !important;
    color: #ffffff !important;
    border-top: none !important;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4) !important;
}

/* Ensure thead has proper background for admin */
#tickerDetailsModal .table thead {
    background-color: #212529 !important;
}

/* INFOZINE TESTING LAB ticker analysis table with frozen headers */
#tickerAnalysisModal .table-responsive {
    overflow-y: auto !important;
    overflow-x: auto !important;
    border: 2px solid #28a745 !important;
    scrollbar-width: thin !important;
    scrollbar-color: #28a745 #f8f9fa !important;
    max-height: 500px !important;
    min-height: 400px !important;
}

/* Analysis Results card height and scrolling for INFOZINE TESTING LAB */
#tickerAnalysisModal .card {
    max-height: 85vh !important;
    overflow: hidden !important;
}

#tickerAnalysisModal .card-header {
    padding: 8px 15px !important;
    min-height: auto !important;
    height: auto !important;
}

#tickerAnalysisModal .card-header h6 {
    margin: 0 !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
}

#tickerAnalysisModal .card-body {
    max-height: calc(85vh - 80px) !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    padding: 15px !important;
}

/* Simple popup table styling for INFOZINE TESTING LAB */
#tickerAnalysisModal .modal-body {
    overflow-y: auto !important;
    overflow-x: auto !important;
    max-height: 90vh !important;
}

#tickerAnalysisModal .table-responsive {
    max-height: 600px !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    border: 1px solid #ddd !important;
}

/* Simple frozen headers for INFOZINE TESTING LAB popup tables */
#tickerAnalysisModal table {
    border-collapse: collapse !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

#tickerAnalysisModal table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ddd !important;
    padding: 8px !important;
    text-align: left !important;
    font-weight: bold !important;
}

#tickerAnalysisModal table tbody td {
    border: 1px solid #ddd !important;
    padding: 6px 8px !important;
    background-color: white !important;
}

#tickerAnalysisModal .table-responsive::-webkit-scrollbar {
    width: 14px !important;
    height: 14px !important;
}

#tickerAnalysisModal .table-responsive::-webkit-scrollbar-track {
    background: #e9ecef !important;
    border-radius: 8px !important;
    border: 1px solid #dee2e6 !important;
}

#tickerAnalysisModal .table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
    border-radius: 8px !important;
    border: 2px solid #e9ecef !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

#tickerAnalysisModal .table-responsive::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
    box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Custom scrollbar styling for Analysis Results card bodies */
#tickerDetailsModal .card-body::-webkit-scrollbar,
#tickerAnalysisModal .card-body::-webkit-scrollbar {
    width: 12px !important;
}

#tickerDetailsModal .card-body::-webkit-scrollbar-track,
#tickerAnalysisModal .card-body::-webkit-scrollbar-track {
    background: #f8f9fa !important;
    border-radius: 6px !important;
    border: 1px solid #e9ecef !important;
}

#tickerDetailsModal .card-body::-webkit-scrollbar-thumb,
#tickerAnalysisModal .card-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    border-radius: 6px !important;
    border: 2px solid #f8f9fa !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

#tickerDetailsModal .card-body::-webkit-scrollbar-thumb:hover,
#tickerAnalysisModal .card-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Simple scrollbar styling for admin dashboard */
#tickerDetailsModal .table-responsive::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

#tickerDetailsModal .table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

#tickerDetailsModal .table-responsive::-webkit-scrollbar-thumb {
    background: #888 !important;
}

#tickerDetailsModal .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555 !important;
}

/* Simple scrollbar styling for INFOZINE TESTING LAB */
#tickerAnalysisModal .table-responsive::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

#tickerAnalysisModal .table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

#tickerAnalysisModal .table-responsive::-webkit-scrollbar-thumb {
    background: #888 !important;
}

#tickerAnalysisModal .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555 !important;
}

#tickerAnalysisModal .table {
    margin-bottom: 0 !important;
}



/* Admin dashboard stock table column width fixes */
.stock-data-table th:nth-child(1), /* Symbol */
.stock-data-table td:nth-child(1) {
    width: 8% !important;
    max-width: 80px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.stock-data-table th:nth-child(2), /* Company Name */
.stock-data-table td:nth-child(2) {
    width: 20% !important;
    max-width: 180px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding-right: 10px !important;
    line-height: 1.3 !important;
    vertical-align: top !important;
}

.stock-data-table th:nth-child(3), /* Sector */
.stock-data-table td:nth-child(3) {
    width: 15% !important;
    max-width: 120px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding-right: 15px !important;
}

.stock-data-table th:nth-child(4), /* Segment */
.stock-data-table td:nth-child(4) {
    width: 15% !important;
    max-width: 120px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Ensure table has proper layout */
#nse-stocks-table,
.stock-data-table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* Add hover tooltips for truncated text */
#nse-stocks-table td[title],
.stock-data-table td[title] {
    cursor: help !important;
}

/* Additional column spacing fixes for better separation */
#nse-stocks-table td,
.stock-data-table td {
    border-right: 1px solid #dee2e6 !important;
    vertical-align: middle !important;
}

/* Ensure proper text wrapping and overflow handling for all columns */
#nse-stocks-table td,
#nse-stocks-table th,
.stock-data-table td,
.stock-data-table th {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    vertical-align: top !important;
    line-height: 1.3 !important;
}

/* Specific styling for company name cells to handle long text */
#nse-stocks-table td:nth-child(2),
.stock-data-table td:nth-child(2) {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
    padding: 8px 6px !important;
    max-height: none !important;
}

/* Fix for very long company names */
#nse-stocks-table {
    table-layout: fixed !important;
}

.stock-data-table {
    table-layout: fixed !important;
}

/* Sticky header cells for modal fullscreen */
.sticky-header-cell {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: linear-gradient(135deg, #434343 0%, #000000 100%) !important;
    color: white !important;
    border-bottom: 2px solid #667eea !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    padding: 0.6rem 0.4rem !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Ensure sticky positioning works in modal */
.modal-fullscreen .table-responsive {
    max-height: calc(100vh - 300px) !important;
    overflow-y: auto !important;
    position: relative !important;
}



/* Ensure modal body doesn't interfere with sticky positioning */
.modal-fullscreen .modal-body {
    overflow: visible !important;
}



/* Sticky table container */
.sticky-table-container {
    max-height: calc(100vh - 300px) !important;
    overflow-y: auto !important;
    position: relative !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
}

/* Removed enhanced hover effects for table rows to prevent header color change */

/* Premium Pagination Styling */
.pagination {
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-primary);
}

/* Master Report table specific styling to prevent overlapping */
#master-report-scanner-results .premium-table-container {
    overflow-x: auto;
    white-space: nowrap;
}

#master-report-scanner-results table {
    min-width: 1400px; /* Ensure minimum width to prevent cramping */
    table-layout: auto;
}

#master-report-scanner-results td,
#master-report-scanner-results th {
    padding: 3px 2px !important;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 80px;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    box-sizing: border-box !important;
}

/* ULTRA HIGH SPECIFICITY OVERRIDE FOR MASTER REPORT */
table#master-report-analysis-table tbody tr,
div#infozine-master-report-results table#master-report-analysis-table tbody tr {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
}

table#master-report-analysis-table tbody td,
div#infozine-master-report-results table#master-report-analysis-table tbody td {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 3px 2px !important;
    font-size: 0.65rem !important;
    line-height: 1.0 !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

/* Make numeric values bold and dark black */
#master-report-scanner-results td:nth-child(5),  /* TOP/BOTTOM Number 1 */
#master-report-scanner-results td:nth-child(8),  /* TOP/BOTTOM Number 2 */
#master-report-scanner-results td:nth-child(11), /* TOP/BOTTOM Number 3 */
#master-report-scanner-results td:nth-child(12), /* Close */
#master-report-scanner-results td:nth-child(13)  /* Average */
{
    font-weight: bold !important;
    color: #000000 !important;
    font-size: 0.9rem;
}

/* Symbol column bold styling */
#master-report-scanner-results td:nth-child(2) {
    font-weight: bold !important;
    color: #000000 !important;
}

/* Wider columns for important data */
#master-report-scanner-results th:nth-child(2),  /* Ticker */
#master-report-scanner-results td:nth-child(2) {
    min-width: 100px;
}

#master-report-scanner-results th:nth-child(3),  /* Trend-1 Date */
#master-report-scanner-results td:nth-child(3),
#master-report-scanner-results th:nth-child(6),  /* Trend-2 Date */
#master-report-scanner-results td:nth-child(6),
#master-report-scanner-results th:nth-child(9),  /* Trend-3 Date */
#master-report-scanner-results td:nth-child(9),
#master-report-scanner-results th:nth-child(15), /* HTF TREND DATE */
#master-report-scanner-results td:nth-child(15) {
    min-width: 90px;
}

#master-report-scanner-results th:nth-child(5),  /* TOP/BOTTOM Number 1 */
#master-report-scanner-results td:nth-child(5),
#master-report-scanner-results th:nth-child(8),  /* TOP/BOTTOM Number 2 */
#master-report-scanner-results td:nth-child(8),
#master-report-scanner-results th:nth-child(11), /* TOP/BOTTOM Number 3 */
#master-report-scanner-results td:nth-child(11),
#master-report-scanner-results th:nth-child(12), /* Close */
#master-report-scanner-results td:nth-child(12),
#master-report-scanner-results th:nth-child(13), /* Average */
#master-report-scanner-results td:nth-child(13) {
    min-width: 85px;
    text-align: right;
}

/* INFOZINE TESTING LAB Master Report table styling */
#infozine-master-report-results .table-responsive {
    overflow-x: auto;
    white-space: nowrap;
}

#infozine-master-report-results table {
    min-width: 1400px;
    table-layout: auto;
}

#infozine-master-report-results td,
#infozine-master-report-results th {
    padding: 8px 6px !important;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 80px;
}

/* Make numeric values bold and dark black for INFOZINE */
#infozine-master-report-results td:nth-child(5),  /* TOP/BOTTOM Number 1 */
#infozine-master-report-results td:nth-child(8),  /* TOP/BOTTOM Number 2 */
#infozine-master-report-results td:nth-child(11), /* TOP/BOTTOM Number 3 */
#infozine-master-report-results td:nth-child(12), /* Close */
#infozine-master-report-results td:nth-child(13)  /* Average */
{
    font-weight: bold !important;
    color: #000000 !important;
    font-size: 0.9rem;
}

/* Symbol column bold styling for INFOZINE */
#infozine-master-report-results td:nth-child(2) {
    font-weight: bold !important;
    color: #000000 !important;
}

/* Wider columns for important data in INFOZINE */
#infozine-master-report-results th:nth-child(2),  /* Ticker */
#infozine-master-report-results td:nth-child(2) {
    min-width: 100px;
}

#infozine-master-report-results th:nth-child(3),  /* Trend-1 Date */
#infozine-master-report-results td:nth-child(3),
#infozine-master-report-results th:nth-child(6),  /* Trend-2 Date */
#infozine-master-report-results td:nth-child(6),
#infozine-master-report-results th:nth-child(9),  /* Trend-3 Date */
#infozine-master-report-results td:nth-child(9),
#infozine-master-report-results th:nth-child(15), /* HTF TREND DATE */
#infozine-master-report-results td:nth-child(15) {
    min-width: 90px;
}

#infozine-master-report-results th:nth-child(5),  /* TOP/BOTTOM Number 1 */
#infozine-master-report-results td:nth-child(5),
#infozine-master-report-results th:nth-child(8),  /* TOP/BOTTOM Number 2 */
#infozine-master-report-results td:nth-child(8),
#infozine-master-report-results th:nth-child(11), /* TOP/BOTTOM Number 3 */
#infozine-master-report-results td:nth-child(11),
#infozine-master-report-results th:nth-child(12), /* Close */
#infozine-master-report-results td:nth-child(12),
#infozine-master-report-results th:nth-child(13), /* Average */
#infozine-master-report-results td:nth-child(13) {
    min-width: 85px;
    text-align: right;
}

.pagination .page-item .page-link {
    border: none;
    color: var(--text-primary);
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 0;
}

.pagination .page-item .page-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: var(--shadow-sm);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background: var(--bg-tertiary);
}

/* Pagination container styling */
.pagination-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* Premium styling for badges in table */
.table .badge {
    font-size: 0.65rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem !important;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table thead th {
        font-size: 0.65rem;
        padding: 4px 3px;
        line-height: 1.0;
    }
    
    .table tbody td {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }
}

/* Statistics Cards - Clean styling without hover effects */
.project-stats-card {
    transition: all 0.3s ease !important;
}

/* Ensure Statistics Cards display horizontally */
#project-stats-cards {
    display: flex !important;
    flex-wrap: wrap !important;
}

#project-stats-cards .col-xl-3,
#project-stats-cards .col-lg-3,
#project-stats-cards .col-md-6,
#project-stats-cards .col-sm-12 {
    flex: 0 0 auto !important;
    max-width: 25% !important;
}

@media (max-width: 991.98px) {
    #project-stats-cards .col-xl-3,
    #project-stats-cards .col-lg-3,
    #project-stats-cards .col-md-6,
    #project-stats-cards .col-sm-12 {
        max-width: 50% !important;
    }
}

@media (max-width: 575.98px) {
    #project-stats-cards .col-xl-3,
    #project-stats-cards .col-lg-3,
    #project-stats-cards .col-md-6,
    #project-stats-cards .col-sm-12 {
        max-width: 100% !important;
    }
}

/* Additional Compact Styling */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.3rem;
}

h3 {
    font-size: 1.1rem;
}

h4 {
    font-size: 1rem;
}

h5 {
    font-size: 0.9rem;
}

h6 {
    font-size: 0.8rem;
}

/* Navbar compact styling */
.navbar-collapse {
    text-align: center;
}

.navbar-nav {
    align-items: center;
}

/* Admin Dashboard Button Group Enhancement */
.btn-group.flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.btn-group.flex-wrap .btn {
    flex: 1 1 auto;
    min-width: 120px;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin: 0;
}

@media (max-width: 1200px) {
    .btn-group.flex-wrap .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .btn-group.flex-wrap .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .btn-group.flex-wrap .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.4rem;
        min-width: 70px;
    }
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Dropdown toggle styling */
.dropdown-toggle::after {
    font-size: 0.75rem;
}

/* Compact spacing for all elements */
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-5 { margin-top: 1.25rem !important; }

.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-5 { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }

/* Ensure proper modal positioning */
.modal-content {
    position: relative;
}

#column-settings-panel {
    position: relative;
}

/* Premium Footer Styling */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ecf0f1 !important;
    font-size: 0.875rem;
}

.footer h5 {
    color: #fff !important;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: #bdc3c7 !important;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.footer .text-muted {
    color: #95a5a6 !important;
}

.footer .text-muted:hover {
    color: #ecf0f1 !important;
    text-decoration: none;
}

.footer a {
    color: #3498db !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #2980b9 !important;
}

.footer .social-links a {
    color: #ecf0f1 !important;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: #3498db !important;
}

.footer hr {
    border-color: #34495e !important;
    opacity: 0.8;
}

/* Ensure footer text is always visible */
.footer * {
    color: #ecf0f1 !important;
}

.footer .text-muted {
    color: #95a5a6 !important;
}

.footer .text-white {
    color: #fff !important;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #e9ecef;
        --text-secondary: #adb5bd;
        --text-muted: #6c757d;
        --bg-primary: #212529;
        --bg-secondary: #343a40;
        --bg-tertiary: #495057;
        --border-color: #495057;
    }
    
    body {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
}

/* Frozen/Sticky Headers for Tables */
.sticky-header, .sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: linear-gradient(135deg, #343a40 0%, #495057 100%) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.sticky-header th, .sticky-top th {
    background: transparent !important;
    border-bottom: 2px solid rgba(255,255,255,0.1) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.75rem 0.5rem !important;
    white-space: nowrap !important;
}

/* Removed enhanced table hover styling to prevent header color change */

/* ========== SCANNER RESULT TABLES STYLING ========== */

/* Universal styling for all scanner result tables */
#master-report-scanner-results table,
#infozine-master-report-results table,
#area-slot-scanner-results table,
#infozine-scanner-results table,
#top-bottom-scanner-results table,
#infozine-top-bottom-results table,
#third-leg-magic-results table,
#opposite-trend-scanner-results table,
#duple-decker-scanner-results table,
#magic-open-scanner-results table,
.scanner-results-table {
    text-align: center !important;
    vertical-align: middle !important;
    table-layout: auto !important;
    width: 100% !important;
}

/* TOP-BOTTOM Display Scanner specific column widths for content autofitting */
#top-bottom-scanner-results table,
#infozine-top-bottom-results table {
    table-layout: auto !important;
    width: auto !important;
    margin: 0 auto !important;
    min-width: fit-content !important;
}

/* Third Leg Magic Scanner specific column widths for content autofitting */
#third-leg-magic-results table,
#infozine-third-leg-magic-results table {
    table-layout: auto !important;
    width: 100% !important;
    min-width: fit-content !important;
    white-space: nowrap !important;
}

#third-leg-magic-results th,
#third-leg-magic-results td,
#infozine-third-leg-magic-results th,
#infozine-third-leg-magic-results td {
    white-space: nowrap !important;
    width: auto !important;
    min-width: fit-content !important;
    padding: 8px 12px !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Third Leg Magic Scanner specific column width optimizations */
#third-leg-magic-results th:nth-child(1), /* S.No */
#third-leg-magic-results td:nth-child(1),
#infozine-third-leg-magic-results th:nth-child(1),
#infozine-third-leg-magic-results td:nth-child(1) {
    min-width: 50px !important;
    max-width: 60px !important;
}

#third-leg-magic-results th:nth-child(2), /* Symbol */
#third-leg-magic-results td:nth-child(2),
#infozine-third-leg-magic-results th:nth-child(2),
#infozine-third-leg-magic-results td:nth-child(2) {
    min-width: 100px !important;
    max-width: 120px !important;
    font-weight: bold !important;
}

#third-leg-magic-results th:nth-child(3), /* HB Date */
#third-leg-magic-results td:nth-child(3),
#third-leg-magic-results th:nth-child(5), /* HT Date */
#third-leg-magic-results td:nth-child(5),
#third-leg-magic-results th:nth-child(7), /* LT Date */
#third-leg-magic-results td:nth-child(7),
#third-leg-magic-results th:nth-child(9), /* LB Date */
#third-leg-magic-results td:nth-child(9),
#infozine-third-leg-magic-results th:nth-child(3),
#infozine-third-leg-magic-results td:nth-child(3),
#infozine-third-leg-magic-results th:nth-child(5),
#infozine-third-leg-magic-results td:nth-child(5),
#infozine-third-leg-magic-results th:nth-child(7),
#infozine-third-leg-magic-results td:nth-child(7),
#infozine-third-leg-magic-results th:nth-child(9),
#infozine-third-leg-magic-results td:nth-child(9) {
    min-width: 95px !important;
    max-width: 110px !important;
}

#third-leg-magic-results th:nth-child(4), /* HB Value */
#third-leg-magic-results td:nth-child(4),
#third-leg-magic-results th:nth-child(6), /* HT Value */
#third-leg-magic-results td:nth-child(6),
#third-leg-magic-results th:nth-child(8), /* LT Value */
#third-leg-magic-results td:nth-child(8),
#third-leg-magic-results th:nth-child(10), /* LB Value */
#third-leg-magic-results td:nth-child(10),
#infozine-third-leg-magic-results th:nth-child(4),
#infozine-third-leg-magic-results td:nth-child(4),
#infozine-third-leg-magic-results th:nth-child(6),
#infozine-third-leg-magic-results td:nth-child(6),
#infozine-third-leg-magic-results th:nth-child(8),
#infozine-third-leg-magic-results td:nth-child(8),
#infozine-third-leg-magic-results th:nth-child(10),
#infozine-third-leg-magic-results td:nth-child(10) {
    min-width: 90px !important;
    max-width: 100px !important;
    font-weight: bold !important;
    color: #000000 !important;
}

#third-leg-magic-results th:nth-child(11), /* CL AVG SETUP */
#third-leg-magic-results td:nth-child(11),
#third-leg-magic-results th:nth-child(12), /* THAR MAGIC P2 */
#third-leg-magic-results td:nth-child(12),
#infozine-third-leg-magic-results th:nth-child(11),
#infozine-third-leg-magic-results td:nth-child(11),
#infozine-third-leg-magic-results th:nth-child(12),
#infozine-third-leg-magic-results td:nth-child(12) {
    min-width: 120px !important;
    max-width: 140px !important;
}

#third-leg-magic-results th:nth-child(13), /* HTF TREND */
#third-leg-magic-results td:nth-child(13),
#third-leg-magic-results th:nth-child(14), /* HTF DATE */
#third-leg-magic-results td:nth-child(14),
#infozine-third-leg-magic-results th:nth-child(13),
#infozine-third-leg-magic-results td:nth-child(13),
#infozine-third-leg-magic-results th:nth-child(14),
#infozine-third-leg-magic-results td:nth-child(14) {
    min-width: 100px !important;
    max-width: 120px !important;
}

/* Third Leg Magic Scanner table responsive container */
#third-leg-magic-results .table-responsive,
#infozine-third-leg-magic-results .table-responsive {
    overflow-x: auto !important;
    overflow-y: visible !important;
    width: 100% !important;
}

#top-bottom-scanner-results th,
#top-bottom-scanner-results td,
#infozine-top-bottom-results th,
#infozine-top-bottom-results td {
    white-space: nowrap !important;
    width: auto !important;
    min-width: fit-content !important;
    padding: 8px 12px !important;
}

/* TOP-BOTTOM Display Scanner table responsive container - centered */
#top-bottom-scanner-results .table-responsive,
#infozine-top-bottom-results .table-responsive {
    overflow-x: auto !important;
    overflow-y: visible !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* TOP-BOTTOM Display Scanner container centering */
#top-bottom-scanner-results,
#infozine-top-bottom-results {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

/* Specific column width optimization for TOP-BOTTOM scanner - compact content-based */
#top-bottom-scanner-results th:nth-child(1), /* TOP TREND */
#top-bottom-scanner-results td:nth-child(1),
#infozine-top-bottom-results th:nth-child(1),
#infozine-top-bottom-results td:nth-child(1) {
    width: auto !important;
    min-width: fit-content !important;
}

#top-bottom-scanner-results th:nth-child(2), /* DATE(TOP) */
#top-bottom-scanner-results td:nth-child(2),
#top-bottom-scanner-results th:nth-child(5), /* DATE(BOTTOM) */
#top-bottom-scanner-results td:nth-child(5),
#infozine-top-bottom-results th:nth-child(2),
#infozine-top-bottom-results td:nth-child(2),
#infozine-top-bottom-results th:nth-child(5),
#infozine-top-bottom-results td:nth-child(5) {
    width: auto !important;
    min-width: fit-content !important;
}

#top-bottom-scanner-results th:nth-child(3), /* TOP INFO */
#top-bottom-scanner-results td:nth-child(3),
#top-bottom-scanner-results th:nth-child(4), /* BOTTOM INFO */
#top-bottom-scanner-results td:nth-child(4),
#infozine-top-bottom-results th:nth-child(3),
#infozine-top-bottom-results td:nth-child(3),
#infozine-top-bottom-results th:nth-child(4),
#infozine-top-bottom-results td:nth-child(4) {
    width: auto !important;
    min-width: fit-content !important;
}

#top-bottom-scanner-results th:nth-child(6), /* BOTTOM TREND */
#top-bottom-scanner-results td:nth-child(6),
#infozine-top-bottom-results th:nth-child(6),
#infozine-top-bottom-results td:nth-child(6) {
    width: auto !important;
    min-width: fit-content !important;
}

/* SAFARI RVSL STRT Scanner - THAR P2 column visibility control */
.thar-p2-cell {
    display: none;
}

#infozine-safari-rvsl-strt-results .thar-p2-cell {
    display: table-cell;
}

/* Center align all cells in scanner result tables */
#master-report-scanner-results td,
#master-report-scanner-results th,
#infozine-master-report-results td,
#infozine-master-report-results th,
#area-slot-scanner-results td,
#area-slot-scanner-results th,
#infozine-scanner-results td,
#infozine-scanner-results th,
#top-bottom-scanner-results td,
#top-bottom-scanner-results th,
#infozine-top-bottom-results td,
#infozine-top-bottom-results th,
#third-leg-magic-results td,
#third-leg-magic-results th,
#opposite-trend-scanner-results td,
#opposite-trend-scanner-results th,
#duple-decker-scanner-results td,
#duple-decker-scanner-results th,
#magic-open-scanner-results td,
#magic-open-scanner-results th,
#infozine-safari-rvsl-strt-results td,
#infozine-safari-rvsl-strt-results th,
.scanner-results-table td,
.scanner-results-table th {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 8px 6px !important;
}

/* Bold and dark black styling for numbers and dates in scanner results */
#master-report-scanner-results td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(4)):not(:nth-child(7)):not(:nth-child(10)):not(:nth-child(14)):not(:nth-child(16)),
#infozine-master-report-results td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(4)):not(:nth-child(7)):not(:nth-child(10)):not(:nth-child(14)):not(:nth-child(16)),
#area-slot-scanner-results td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(4)):not(:nth-child(5)):not(:nth-child(6)):not(:nth-child(7)):not(:nth-child(10)):not(:nth-child(11)),
#infozine-scanner-results td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(5)):not(:nth-child(6)):not(:nth-child(7)):not(:nth-child(8)),
#top-bottom-scanner-results td:not(:nth-child(1)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(6)),
#infozine-top-bottom-results td:not(:nth-child(1)):not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(6)),
#third-leg-magic-results td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(8)):not(:nth-child(9)),
#opposite-trend-scanner-results td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(5)),
#duple-decker-scanner-results td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(5)),
#magic-open-scanner-results td:not(:nth-child(1)):not(:nth-child(2)):not(:nth-child(3)):not(:nth-child(6)):not(:nth-child(9)),
.scanner-results-table td[data-type="number"],
.scanner-results-table td[data-type="date"],
.scanner-results-table td[data-type="price"] {
    font-weight: bold !important;
    color: #000000 !important;
    font-size: 0.9rem !important;
}

/* Specific styling for symbol columns to make them bold */
#master-report-scanner-results td:nth-child(2),
#infozine-master-report-results td:nth-child(2),
#area-slot-scanner-results td:nth-child(2),
#infozine-scanner-results td:nth-child(2),
#top-bottom-scanner-results td:nth-child(2),
#infozine-top-bottom-results td:nth-child(2),
#third-leg-magic-results td:nth-child(2),
#opposite-trend-scanner-results td:nth-child(2),
#duple-decker-scanner-results td:nth-child(2),
#magic-open-scanner-results td:nth-child(2),
.scanner-results-table td:first-child + td {
    font-weight: bold !important;
    color: #000000 !important;
    font-size: 0.95rem !important;
}

/* Date columns styling - make all date columns bold and dark */
#master-report-scanner-results td:nth-child(3), /* Trend-1 Date */
#master-report-scanner-results td:nth-child(6), /* Trend-2 Date */
#master-report-scanner-results td:nth-child(9), /* Trend-3 Date */
#master-report-scanner-results td:nth-child(15), /* HTF TREND DATE */
#infozine-master-report-results td:nth-child(3),
#infozine-master-report-results td:nth-child(6),
#infozine-master-report-results td:nth-child(9),
#infozine-master-report-results td:nth-child(15),
#area-slot-scanner-results td:nth-child(3), /* Trend Date */
#area-slot-scanner-results td:nth-child(9), /* HTF Trend Date */
#infozine-scanner-results td:nth-child(4), /* Trend Date */
#infozine-scanner-results td:nth-child(10), /* HTF Trend Date */
#top-bottom-scanner-results td:nth-child(2), /* Date TOP */
#top-bottom-scanner-results td:nth-child(5), /* Date BOTTOM */
#infozine-top-bottom-results td:nth-child(2), /* Date TOP */
#infozine-top-bottom-results td:nth-child(5), /* Date BOTTOM */
#third-leg-magic-results td:nth-child(3), /* HB Date */
#third-leg-magic-results td:nth-child(5), /* HT Date */
#third-leg-magic-results td:nth-child(7), /* LT/LB Date */
#opposite-trend-scanner-results td:nth-child(4), /* Date */
#duple-decker-scanner-results td:nth-child(4), /* Date */
#magic-open-scanner-results td:nth-child(4), /* Date */
#magic-open-scanner-results td:nth-child(7), /* HTF Date */
.scanner-results-table td[data-column="date"] {
    font-weight: bold !important;
    color: #000000 !important;
    font-size: 0.9rem !important;
}

/* Price and numeric value columns styling */
#master-report-scanner-results td:nth-child(5), /* TOP/BOTTOM Number 1 */
#master-report-scanner-results td:nth-child(8), /* TOP/BOTTOM Number 2 */
#master-report-scanner-results td:nth-child(11), /* TOP/BOTTOM Number 3 */
#master-report-scanner-results td:nth-child(12), /* Close */
#master-report-scanner-results td:nth-child(13), /* Average */
#infozine-master-report-results td:nth-child(5),
#infozine-master-report-results td:nth-child(8),
#infozine-master-report-results td:nth-child(11),
#infozine-master-report-results td:nth-child(12),
#infozine-master-report-results td:nth-child(13),
#area-slot-scanner-results td:nth-child(8), /* Close */
#area-slot-scanner-results td:nth-child(12), /* HTF Close */
#third-leg-magic-results td:nth-child(4), /* HB Value */
#third-leg-magic-results td:nth-child(6), /* HT Value */
#third-leg-magic-results td:nth-child(10), /* LT/LB Value */
#magic-open-scanner-results td:nth-child(5), /* Open */
#magic-open-scanner-results td:nth-child(8), /* HTF Open */
#magic-open-scanner-results td:nth-child(10), /* Close */
#magic-open-scanner-results td:nth-child(11), /* Prev Close */
.scanner-results-table td[data-column="price"],
.scanner-results-table td[data-column="value"] {
    font-weight: bold !important;
    color: #000000 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
}

/* Ensure all scanner result tables have consistent center alignment */
.scanner-results-table,
.scanner-results-table * {
    text-align: center !important;
    vertical-align: middle !important;
}

/* Additional styling for scanner result table headers */
.scanner-results-table th {
    text-align: center !important;
    vertical-align: middle !important;
    font-weight: 600 !important;
    background-color: #343a40 !important;
    color: white !important;
    padding: 8px 6px !important;
    font-size: 0.8rem !important;
}

/* Scanner results table container styling */
.scanner-results-container {
    overflow-x: auto;
    white-space: nowrap;
}

.scanner-results-container table {
    min-width: 100%;
    table-layout: auto;
}

/* Make all content in scanner tables centered by default */
.scanner-results-table tbody td {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 8px 6px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow: visible !important;
}

/* Override any existing text-left or text-right classes in scanner tables */
.scanner-results-table .text-left,
.scanner-results-table .text-right,
.scanner-results-table .text-start,
.scanner-results-table .text-end {
    text-align: center !important;
}

/* ========== STOCK CLASSIFY TABLE STYLING ========== */

/* Stock Classify Table Styling */
#stock-classify-table {
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Auto-height table container for STOCK CLASSIFY */
.auto-height-table-container {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    border: none !important;
    padding: 0 !important;
}

/* Remove height constraints from premium table container when used with auto-height */
.auto-height-table-container .premium-table-container {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

#stock-classify-table tbody tr {
    background: rgba(255, 255, 255, 0.95);
    border: none;
}

#stock-classify-table tbody tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.95);
}

#stock-classify-table tbody tr:hover {
    background: #f8f9fa !important;
    color: inherit !important;
    transform: scale(1.002) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

#stock-classify-table tbody tr:hover .symbol-text {
    color: #1976d2 !important;
}

#stock-classify-table tbody tr:hover .form-check-label {
    color: white !important;
}

#stock-classify-table tbody tr:hover .form-check {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Checkbox styling enhancements */
.index-checkbox:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
}

.index-checkbox:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25) !important;
}

/* Combined Cell Styling */
.combined-cell {
    padding: 16px !important;
    vertical-align: top !important;
    width: 100% !important;
}

/* Symbol Header Styling */
.symbol-header {
    text-align: center !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e3f2fd !important;
}

.symbol-text {
    font-size: 1.1rem !important;
    color: #1976d2 !important;
    font-weight: 700 !important;
    display: block !important;
    letter-spacing: 0.5px !important;
}

/* Associations Section Styling */
.associations-section {
    padding-top: 8px !important;
}

/* Index Associations Grid Container */
.index-associations-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 4px !important;
}

/* Grid Checkbox Item */
.grid-checkbox-item {
    display: flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%) !important;
    border: 1px solid #a5d6a7 !important;
    border-radius: 4px !important;
    padding: 4px 6px !important;
    transition: all 0.3s ease !important;
    min-height: 28px !important;
    justify-content: flex-start !important;
}

.grid-checkbox-item:hover {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3) !important;
}

.grid-checkbox-item:hover .grid-checkbox-label {
    color: white !important;
}

/* Grid Checkbox Styling */
.grid-checkbox {
    width: 14px !important;
    height: 14px !important;
    margin-right: 6px !important;
    margin-bottom: 0 !important;
    accent-color: #4caf50 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.grid-checkbox:checked {
    background-color: #4caf50 !important;
    border-color: #4caf50 !important;
}

/* Grid Checkbox Label Styling */
.grid-checkbox-label {
    font-size: 0.65rem !important;
    font-weight: 500 !important;
    color: #2e7d32 !important;
    cursor: pointer !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    user-select: none !important;
    line-height: 1.2 !important;
}

/* Enhanced checkbox container styling - legacy support */
.form-check.form-check-inline.me-3.mb-2 {
    transition: all 0.3s ease !important;
}

.form-check.form-check-inline.me-3.mb-2:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2) !important;
}
/* Cache buster: 1753959626 */
/* Cache buster: 1753959860 */
/* Auto height update: 1753960125 */
/* Full auto height fix: 1753960288 */
/* Symbol color fix: 1753960515 */
/* Ticker table visibility fix: 1754067351 */
/* EMERGENCY TICKER TABLE FIX: 1754067512 */
/* Ticker analysis table CSS removed: 1754067679 */

/* FORCE VISIBLE SCROLLBARS GLOBALLY - OVERRIDE ALL HIDING RULES */
div[class*="table-container"],
div[id*="results"],
.table-container,
.table-responsive,
.premium-table-container {
    scrollbar-width: thin !important; /* Firefox */
    scrollbar-color: #888 #f1f1f1 !important; /* Firefox */
    -ms-overflow-style: scrollbar !important; /* IE */
    overflow: auto !important;
}

div[class*="table-container"]::-webkit-scrollbar,
div[id*="results"]::-webkit-scrollbar,
.table-container::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.premium-table-container::-webkit-scrollbar {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    background: #f1f1f1 !important;
    -webkit-appearance: none !important;
}

div[class*="table-container"]::-webkit-scrollbar-track,
div[id*="results"]::-webkit-scrollbar-track,
.table-container::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.premium-table-container::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 8px !important;
}

div[class*="table-container"]::-webkit-scrollbar-thumb,
div[id*="results"]::-webkit-scrollbar-thumb,
.table-container::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.premium-table-container::-webkit-scrollbar-thumb {
    background: #888 !important;
    border-radius: 8px !important;
    border: 2px solid #f1f1f1 !important;
}

div[class*="table-container"]::-webkit-scrollbar-thumb:hover,
div[id*="results"]::-webkit-scrollbar-thumb:hover,
.table-container::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.premium-table-container::-webkit-scrollbar-thumb:hover {
    background: #555 !important;
}

div[class*="table-container"]::-webkit-scrollbar-corner,
div[id*="results"]::-webkit-scrollbar-corner,
.table-container::-webkit-scrollbar-corner,
.table-responsive::-webkit-scrollbar-corner,
.premium-table-container::-webkit-scrollbar-corner {
    background: #f1f1f1 !important;
}

/* Force table size to ensure scrollbars appear */
.table-container table,
.table-responsive table,
.premium-table-container table {
    min-width: 1200px !important;
}

/* CONSISTENT ROW HEIGHT FOR ALL SCANNER TABLES */
.scanner-results-table tbody tr,
.table-container table tbody tr,
.table-responsive table tbody tr,
.premium-table-container table tbody tr,
#master-report-analysis-table tbody tr,
#area-slot-analysis-table tbody tr,
#duple-decker-analysis-table tbody tr,
#top-bottom-analysis-table tbody tr,
#third-leg-magic-analysis-table tbody tr,
#magic-open-analysis-table tbody tr,
#ac-dc-analysis-table tbody tr,
#safari-rvsl-analysis-table tbody tr,
#thar-m-p1-analysis-table tbody tr,
#thar-m-p2-analysis-table tbody tr,
#opposite-trend-analysis-table tbody tr {
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    line-height: 1.1 !important;
}

/* Consistent cell padding and alignment for all scanner tables */
.scanner-results-table tbody td,
.table-container table tbody td,
.table-responsive table tbody td,
.premium-table-container table tbody td,
#master-report-analysis-table tbody td,
#area-slot-analysis-table tbody td,
#duple-decker-analysis-table tbody td,
#top-bottom-analysis-table tbody td,
#third-leg-magic-analysis-table tbody td,
#magic-open-analysis-table tbody td,
#ac-dc-analysis-table tbody td,
#safari-rvsl-analysis-table tbody td,
#thar-m-p1-analysis-table tbody td,
#thar-m-p2-analysis-table tbody td,
#opposite-trend-analysis-table tbody td {
    height: 35px !important;
    min-height: 35px !important;
    max-height: 35px !important;
    padding: 6px 4px !important;
    vertical-align: middle !important;
    line-height: 1.1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Consistent header height for all scanner tables */
.scanner-results-table thead tr,
.table-container table thead tr,
.table-responsive table thead tr,
.premium-table-container table thead tr,
#master-report-analysis-table thead tr,
#area-slot-analysis-table thead tr,
#duple-decker-analysis-table thead tr,
#top-bottom-analysis-table thead tr,
#third-leg-magic-analysis-table thead tr,
#magic-open-analysis-table thead tr,
#ac-dc-analysis-table thead tr,
#safari-rvsl-analysis-table thead tr,
#thar-m-p1-analysis-table thead tr,
#thar-m-p2-analysis-table thead tr,
#opposite-trend-analysis-table thead tr {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
}

.scanner-results-table thead th,
.table-container table thead th,
.table-responsive table thead th,
.premium-table-container table thead th,
#master-report-analysis-table thead th,
#area-slot-analysis-table thead th,
#duple-decker-analysis-table thead th,
#top-bottom-analysis-table thead th,
#third-leg-magic-analysis-table thead th,
#magic-open-analysis-table thead th,
#ac-dc-analysis-table thead th,
#safari-rvsl-analysis-table thead th,
#thar-m-p1-analysis-table thead th,
#thar-m-p2-analysis-table thead th,
#opposite-trend-analysis-table thead th {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 10px 6px !important;
    vertical-align: middle !important;
    line-height: 1.2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Row height consistency fix: 1754880610 - ULTRA HIGH SPECIFICITY */

/* UNIVERSAL SCROLLBAR STYLING FOR ALL SCANNERS - Cross-browser support */
#third-leg-magic-scanner .table-container,
#master-report-scanner .table-container,
#opposite-trend-scanner .table-container,
#duple-decker-scanner .table-container,
#top-bottom-display .table-container,
#safari-rvsl-strt-scanner .table-container,
#ac-dc-382-brk-scanner .table-container,
#magic-open-382-scanner .table-container,
#thar-m-p1-scanner .table-container,
#thar-m-p2-scanner .table-container,
.ticker-analysis-container,
.premium-table-container {
    height: 70vh !important;
    overflow-y: auto !important;
    scrollbar-width: auto !important; /* Firefox */
    -ms-overflow-style: auto !important; /* Internet Explorer 10+ */
    border: 1px solid #dee2e6 !important;
}

/* WebKit scrollbar styling for all scanners */
#third-leg-magic-scanner .table-container::-webkit-scrollbar,
#master-report-scanner .table-container::-webkit-scrollbar,
#opposite-trend-scanner .table-container::-webkit-scrollbar,
#duple-decker-scanner .table-container::-webkit-scrollbar,
#top-bottom-display .table-container::-webkit-scrollbar,
#safari-rvsl-strt-scanner .table-container::-webkit-scrollbar,
#ac-dc-382-brk-scanner .table-container::-webkit-scrollbar,
#magic-open-382-scanner .table-container::-webkit-scrollbar,
#thar-m-p1-scanner .table-container::-webkit-scrollbar,
#thar-m-p2-scanner .table-container::-webkit-scrollbar,
.ticker-analysis-container::-webkit-scrollbar,
.premium-table-container::-webkit-scrollbar {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
}

/* Scrollbar track styling */
#third-leg-magic-scanner .table-container::-webkit-scrollbar-track,
#master-report-scanner .table-container::-webkit-scrollbar-track,
#opposite-trend-scanner .table-container::-webkit-scrollbar-track,
#duple-decker-scanner .table-container::-webkit-scrollbar-track,
#top-bottom-display .table-container::-webkit-scrollbar-track,
#safari-rvsl-strt-scanner .table-container::-webkit-scrollbar-track,
#ac-dc-382-brk-scanner .table-container::-webkit-scrollbar-track,
#magic-open-382-scanner .table-container::-webkit-scrollbar-track,
#thar-m-p1-scanner .table-container::-webkit-scrollbar-track,
#thar-m-p2-scanner .table-container::-webkit-scrollbar-track,
.ticker-analysis-container::-webkit-scrollbar-track,
.premium-table-container::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 6px !important;
}

/* Scrollbar thumb styling */
#third-leg-magic-scanner .table-container::-webkit-scrollbar-thumb,
#master-report-scanner .table-container::-webkit-scrollbar-thumb,
#opposite-trend-scanner .table-container::-webkit-scrollbar-thumb,
#duple-decker-scanner .table-container::-webkit-scrollbar-thumb,
#top-bottom-display .table-container::-webkit-scrollbar-thumb,
#safari-rvsl-strt-scanner .table-container::-webkit-scrollbar-thumb,
#ac-dc-382-brk-scanner .table-container::-webkit-scrollbar-thumb,
#magic-open-382-scanner .table-container::-webkit-scrollbar-thumb,
#thar-m-p1-scanner .table-container::-webkit-scrollbar-thumb,
#thar-m-p2-scanner .table-container::-webkit-scrollbar-thumb,
.ticker-analysis-container::-webkit-scrollbar-thumb,
.premium-table-container::-webkit-scrollbar-thumb {
    background: #888 !important;
    border-radius: 6px !important;
}

/* Scrollbar thumb hover styling */
#third-leg-magic-scanner .table-container::-webkit-scrollbar-thumb:hover,
#master-report-scanner .table-container::-webkit-scrollbar-thumb:hover,
#opposite-trend-scanner .table-container::-webkit-scrollbar-thumb:hover,
#duple-decker-scanner .table-container::-webkit-scrollbar-thumb:hover,
#top-bottom-display .table-container::-webkit-scrollbar-thumb:hover,
#safari-rvsl-strt-scanner .table-container::-webkit-scrollbar-thumb:hover,
#ac-dc-382-brk-scanner .table-container::-webkit-scrollbar-thumb:hover,
#magic-open-382-scanner .table-container::-webkit-scrollbar-thumb:hover,
#thar-m-p1-scanner .table-container::-webkit-scrollbar-thumb:hover,
#thar-m-p2-scanner .table-container::-webkit-scrollbar-thumb:hover,
.ticker-analysis-container::-webkit-scrollbar-thumb:hover,
.premium-table-container::-webkit-scrollbar-thumb:hover {
    background: #555 !important;
}

/* AREA-SLOT SCANNER - Ultra High Specificity Sticky Headers */
#area-slot-infozine-table thead th,
div#infozine-scanner-results table#area-slot-infozine-table thead th,
body div#infozine-scanner-results table#area-slot-infozine-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 3001 !important;
    background-color: #212529 !important;
    background-image: none !important;
    color: white !important;
    border: 1px solid #444 !important;
    font-weight: bold !important;
    font-size: 0.7rem !important;
    padding: 8px !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8) !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

/* AREA-SLOT SCANNER - Force container setup */
#infozine-scanner-results .table-container,
#infozine-scanner-results .ticker-analysis-container {
    position: relative !important;
    height: 70vh !important;
    overflow-y: auto !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
}

/* AREA-SLOT TABLE BASIC STYLING - Replace Bootstrap classes in external CSS too */
table#area-slot-infozine-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    margin-bottom: 0 !important;
}

table#area-slot-infozine-table td {
    border: 1px solid #dee2e6 !important;
    padding: 8px !important;
    vertical-align: middle !important;
    font-size: 0.75rem !important;
    text-align: center !important;
}

table#area-slot-infozine-table tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

table#area-slot-infozine-table tbody tr:hover {
    background-color: #e9ecef !important;
}

/* UNIVERSAL SCANNER TABLE STYLING - Apply to all scanners */
table[data-scanner] {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    margin-bottom: 0 !important;
}

/* Universal scanner table headers - Ultra high specificity */
#duple-decker-analysis-table thead th,
#third-leg-magic-hb-ht-table thead th,
#third-leg-magic-lt-lb-table thead th,
#acdc-results-table thead th,
#safari-results-table thead th,
#thar-m-p1-results-table thead th,
#thar-m-p2-results-table thead th,
table[data-scanner] thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 3001 !important;
    background-color: #212529 !important;
    background-image: none !important;
    color: white !important;
    border: 1px solid #444 !important;
    font-weight: bold !important;
    font-size: 0.7rem !important;
    padding: 8px !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8) !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
}

/* Universal scanner table cells */
table[data-scanner] td {
    border: 1px solid #dee2e6 !important;
    padding: 8px !important;
    vertical-align: middle !important;
    font-size: 0.75rem !important;
    text-align: center !important;
}

/* Universal scanner alternating row colors */
table[data-scanner] tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

/* Universal scanner hover effects */
table[data-scanner] tbody tr:hover {
    background-color: #e9ecef !important;
}
