/* AIRE CRM readability overrides. Iteration 2. */

/* ---- Tweak these four per mode, the rest follows ---- */
.light {
  --aire-nav-bg: #e9ecf1;
  --aire-panel-bg: #f4f6f9;
  --aire-row-band: #ffffff;
  --aire-row-rule: #dfe3e9;
}

.dark {
  --aire-nav-bg: #0e0e0e;
  --aire-panel-bg: #191919;
  --aire-row-band: #212121;
  --aire-row-rule: #2e2e2e;
}

/* ---- Borders ---- */
.dark {
  --t-border-color-light: #2e2e2e !important;
  --t-border-color-medium: #3a3a3a !important;
  --t-border-color-strong: #565656 !important;
  --t-border-color-transparent-strong: #ffffff24 !important;
}

.light {
  --t-border-color-light: #dfe3e9 !important;
  --t-border-color-medium: #ccd2db !important;
  --t-border-color-strong: #a9b2bf !important;
}

/* ---- Left nav and app shell ---- */
.light,
.dark {
  --t-gray-scale-gray3: var(--aire-nav-bg) !important;
}

/* ---- Canvas and card surfaces ---- */
.dark {
  --t-background-primary: #1c1c1c !important;
  --t-background-secondary: #212121 !important;
  --t-background-tertiary: #262626 !important;
  --t-background-quaternary: #2d2d2d !important;
}

/* ---- Right record side panel ----
   These class names come from the v2.29.0 build and will change on upgrade. */
.s1kdkk32,
.s1r8f51e,
.s1e6tzef {
  background: var(--aire-panel-bg) !important;
}

/* ---- Record detail field rows: rules and zebra banding ----
   Matches any inline cell row, so it also applies on the full record page. */
div:has(> [id^='label-']) {
  padding: 3px 6px !important;
  border-radius: 4px;
  border-bottom: 1px solid var(--aire-row-rule) !important;
}

div:has(> [id^='label-']):nth-child(even) {
  background: var(--aire-row-band) !important;
}
