.custom-dataframe { width: 100% !important; overflow-x: auto !important; } .custom-dataframe table { width: auto !important; min-width: 100% !important; font-size: 14px !important; } .custom-dataframe thead th { padding: 4px 8px !important; text-align: center !important; vertical-align: middle !important; white-space: nowrap !important; overflow: visible !important; font-size: 12px !important; font-weight: bold !important; line-height: 1.2 !important; } .custom-dataframe tbody td { padding: 4px 8px !important; text-align: right !important; vertical-align: middle !important; white-space: nowrap !important; overflow: visible !important; line-height: 1.2 !important; } .custom-dataframe tbody td:first-child { text-align: left !important; } /* Adjust the sort indicator position */ .custom-dataframe thead th::after { font-size: 12px !important; line-height: 1 !important; margin-left: 4px !important; } /* Style for global result columns */ .custom-dataframe thead th:nth-child(-n+4), .custom-dataframe tbody td:nth-child(-n+4) { background-color: #f0f8ff !important; /* Light blue background */ } /* Style for dimension-specific result columns */ .custom-dataframe thead th:nth-child(n+5), .custom-dataframe tbody td:nth-child(n+5) { background-color: #f0fff0 !important; /* Light green background */ } /* Alternating row colors for better readability */ .custom-dataframe tbody tr:nth-child(even) td:nth-child(-n+4) { background-color: #e6f3ff !important; /* Slightly darker light blue */ } .custom-dataframe tbody tr:nth-child(even) td:nth-child(n+5) { background-color: #e6ffe6 !important; /* Slightly darker light green */ } /* Dark mode specific styles */ @media (prefers-color-scheme: dark) { .custom-dataframe { color: var(--body-text-color); } .custom-dataframe table { background-color: var(--background-fill-primary); } .custom-dataframe thead th { background-color: var(--background-fill-secondary); color: var(--body-text-color); } .custom-dataframe tbody td { color: var(--body-text-color); } /* Style for global result columns in dark mode */ .custom-dataframe thead th:nth-child(-n+4), .custom-dataframe tbody td:nth-child(-n+4) { background-color: rgba(0, 100, 200, 0.1); } /* Style for dimension-specific result columns in dark mode */ .custom-dataframe thead th:nth-child(n+5), .custom-dataframe tbody td:nth-child(n+5) { background-color: rgba(0, 150, 0, 0.1); } /* Hover effect for better row distinction in dark mode */ .custom-dataframe tbody tr:hover td { background-color: rgba(255, 255, 255, 0.05); } /* Alternating row colors for better readability in dark mode */ .custom-dataframe tbody tr:nth-child(even) td:nth-child(-n+4) { background-color: rgba(0, 100, 200, 0.15); } .custom-dataframe tbody tr:nth-child(even) td:nth-child(n+5) { background-color: rgba(0, 150, 0, 0.15); } }