# css_tables_reset_inline.py - Strong reset for inline backgrounds/shadows inside table cells CSS_TABLES_RESET_INLINE = """ /* Remove inline backgrounds/shadows inside cells */ .gradio-container .gradio-dataframe th *, .gradio-container .gradio-dataframe td *, .gradio-container .gr-dataframe th *, .gradio-container .gr-dataframe td *, .gradio-container [data-testid="dataframe"] th *, .gradio-container [data-testid="dataframe"] td *, .gradio-container .dataframe th *, .gradio-container .dataframe td *{ background:transparent!important; background-color:transparent!important; background-image:none!important; box-shadow:none!important; filter:none!important; color:inherit!important; } /* Neutralize inline style backgrounds */ .gradio-container .gradio-dataframe [style*="background"], .gradio-container .gradio-dataframe [style*="background-color"], .gradio-container .gradio-dataframe [style*="background-image"], .gradio-container .gr-dataframe [style*="background"], .gradio-container .gr-dataframe [style*="background-color"], .gradio-container .gr-dataframe [style*="background-image"], .gradio-container [data-testid="dataframe"] [style*="background"], .gradio-container [data-testid="dataframe"] [style*="background-color"], .gradio-container [data-testid="dataframe"] [style*="background-image"], .gradio-container .dataframe [style*="background"], .gradio-container .dataframe [style*="background-color"], .gradio-container .dataframe [style*="background-image"]{ background:transparent!important; background-color:transparent!important; background-image:none!important; box-shadow:none!important; filter:none!important; color:inherit!important; } /* Highlight/code tags */ .gradio-container .gradio-dataframe mark, .gradio-container .gradio-dataframe code, .gradio-container .gr-dataframe mark, .gradio-container .gr-dataframe code, .gradio-container [data-testid="dataframe"] mark, .gradio-container [data-testid="dataframe"] code, .gradio-container .dataframe mark, .gradio-container .dataframe code{ background:transparent!important; background-color:transparent!important; background-image:none!important; box-shadow:none!important; filter:none!important; color:inherit!important; border:none!important; } /* Pseudo-elements */ .gradio-container .gradio-dataframe th::before, .gradio-container .gradio-dataframe th::after, .gradio-container .gradio-dataframe td::before, .gradio-container .gradio-dataframe td::after{ background:transparent!important; background-color:transparent!important; background-image:none!important; box-shadow:none!important; filter:none!important; } """