/* WCAG 1.4.3: igGrid "select columns" link uses #4897aa (3.34:1 on white); override to #007090 (~5.2:1) */
#grid_link_selectcolumns,
#grid_groupbyarea,
#grid_groupbyarea a {
    color: #007090 !important;
}

/* WCAG 1.4.3: igGrid column header white text on #888888 bg (3.54:1).
   Rule source: .ui-widget-header.ui-state-default{background:#888} in infragistics.theme.css
   Fix: target th elements inside .ui-iggrid with higher specificity (3 classes + 1 element = 0,3,1 > 0,2,0) */
.ui-iggrid th.ui-widget-header.ui-state-default {
    background: #767676 !important;
}

/* ============================================================
   WCAG 2 AA color-contrast overrides for DaisyUI components.
   These correct theme-variable combinations that fall below the
   required 4.5:1 ratio at normal text size.
   ============================================================ */

/* badge-info: bg #af4670 — white gives 4.88:1 (was 3.93:1) */
.badge-info {
    color: #ffffff !important;
}

/* btn-success: bg #16a34a — black gives 6.78:1 (was 2.89:1) */
.btn-success,
.btn-success:hover,
.btn-success.btn-active {
    color: #000000 !important;
}

/* btn-info: pin background to #1565C0 so white text gives 5.74:1 across all DaisyUI themes.
   The default theme produces #2563eb (3.82:1 with #cfdeff) and other themes produce
   #2094f3 (3.18:1 with #ffffff) — neither reliably passes. A fixed dark blue resolves both. */
.btn-info,
.btn-info:hover,
.btn-info.btn-active {
    background-color: #1565C0 !important;
    border-color: #1565C0 !important;
    color: #ffffff !important;
}

/* btn-accent: bg #37cdbe — black gives 10.62:1 (was 1.97:1) */
.btn-accent,
.btn-accent:hover,
.btn-accent.btn-active {
    color: #000000 !important;
}
