@import 'ag-grid-community/styles/ag-grid.css';
@import 'ag-grid-community/styles/ag-theme-balham.css';

/* You can add global styles to this file, and also import other style files */
@tailwind base;
@tailwind components;
@tailwind utilities;

.react-markdown-container a {
  color: #ff077f;
  text-decoration: underline;
}

.react-markdown-container a:before {
  content: '🔗 ';
}

/* AG GRID - Do not edit without updating other global stylesheets for each app */

.vega-ag-grid .ag-root-wrapper {
  border: solid 0px;
}

.vega-ag-grid .ag-react-container {
  overflow: hidden;
  text-overflow: ellipsis;
}

.vega-ag-grid .ag-cell,
.vega-ag-grid .ag-full-width-row .ag-cell-wrapper.ag-row-group {
  line-height: calc(min(var(--ag-line-height, 26px), 26px) - 4px);
}

.vega-ag-grid .ag-row,
.vega-ag-grid .ag-cell {
  border-width: 0;
}

/* Light variables */
.ag-theme-balham {
  --ag-background-color: theme(colors.white);
  --ag-border-color: theme(colors.neutral[300]);
  --ag-header-background-color: theme(colors.white);
  --ag-odd-row-background-color: theme(colors.white);
  --ag-header-column-separator-color: theme(colors.neutral[300]);
  --ag-row-border-color: theme(colors.white);
  --ag-row-hover-color: theme(colors.neutral[100]);
}

/* Dark variables */
.ag-theme-balham-dark {
  --ag-background-color: theme(colors.black);
  --ag-border-color: theme(colors.neutral[700]);
  --ag-header-background-color: theme(colors.black);
  --ag-odd-row-background-color: theme(colors.black);
  --ag-header-column-separator-color: theme(colors.neutral[600]);
  --ag-row-border-color: theme(colors.black);
  --ag-row-hover-color: theme(colors.neutral[800]);
}

.voteicon svg {
  vertical-align: baseline;
}
