/* Strong horizontal separation at the start of each Auction block */
.ag-theme-alpine .ag-row.group-start .ag-cell {
  border-top: 2px solid #e6e9ef !important;  /* gray divider */
}

/* Optional: underline the end of each block (makes blocks feel boxed) */
.ag-theme-alpine .ag-row.group-end .ag-cell {
  border-bottom: 1px solid #eff2f6 !important;
}

/* Optional: soft zebra banding by group */
.ag-theme-alpine .ag-row.group-alt .ag-cell {
  background-color: #fbfdff;
}

/* Keep your risk rows readable above the banding */
.ag-theme-alpine .ag-row.row-risk .ag-cell {
  background-color: #fff7e0 !important;      /* warning tint */
}

/* Effective (off‑paper) checkbox tint — no JS, theme‑friendly */
.ag-theme-alpine .effective-check .ag-checkbox-input-wrapper {
  color: #20c997;        /* checkmark/icon color (AG Grid uses currentColor) */
  accent-color: #20c997; /* native checkbox fallback where applicable */
}

/* Optional: tighten alignment to match other pinned cells */
.ag-theme-alpine .effective-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Effective wins: make the checkbox teal (no JS). */
.ag-theme-alpine .ag-cell.win-effective .ag-checkbox-input-wrapper {
  color: #20c997 !important;   /* checkmark color (AG Grid uses currentColor) */
  accent-color: #20c997;       /* native checkbox fallback */
}

/* Optional: add a subtle star after the checkbox for effective wins
.ag-theme-alpine .ag-cell.win-effective .ag-checkbox-input-wrapper::after {
  content: '★';
  font-size: 11px;
  margin-left: 4px;
  color: #20c997;
  vertical-align: middle;
}
*/

/* Effective wins: tint the checkbox teal (no JS) */
.custom-ag-grid .ag-cell.win-effective {
  /* AG Grid v29+ uses CSS variables for checkbox color */
  --ag-checkbox-checked-color: #20c997;         /* checkmark color */
  --ag-checkbox-background-color: #e6f4f1;      /* optional subtle box bg */
  --ag-icon-color: #20c997;                     /* fallback for older builds */
}

/* Fallbacks for older AG Grid builds */
.custom-ag-grid .ag-cell.win-effective .ag-checkbox-input-wrapper::after {
  /* box outline / fill for some theme versions */
  border-color: #20c997 !important;
  background-color: #e6f4f1 !important;
}

.custom-ag-grid .ag-cell.win-effective .ag-icon.ag-icon-checkbox-checked::before {
  /* the actual tick glyph (mask) */
  background-color: #20c997 !important;
}
/* assets/auctions.css */

/* Status cell: one line, scannable, with a colored band chip */
.ag-theme-alpine .status-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Prepend a small filled pill that shows the risk band text */
.ag-theme-alpine .status-cell::before {
  content: var(--risk-chip-text, "");
  display: inline-block;
  padding: 0 6px;
  margin-right: 8px;
  line-height: 18px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background-color: var(--risk-chip-bg, #6b6b6b);
  border-radius: 999px;
  vertical-align: middle;
}
.ag-theme-alpine .ag-tooltip{
  background: #111827;
  color: #F9FAFB;
  border: 1px solid #1F2937;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  padding: 10px 12px;
  max-width: 380px;
}
.ag-theme-alpine .ag-tooltip .ag-tooltip-text{
  white-space: pre; /* respect \n from Python */
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .25px;
  line-height: 1.25;
}
/* Optional: emphasize first line */
.ag-theme-alpine .ag-tooltip .ag-tooltip-text::first-line{
  font-weight: 650;
}
