/*
 * Moro demo theme: accent contrast.
 *
 * build-theme.sh turns ThingsBoard's deep-orange accent into the logo's lime
 * (#84BD00), but Material still pairs the accent with white foregrounds, and
 * white on lime is ~2.2:1. Reset only the accent *contrast* tokens to the
 * logo's ink (#121314, ~9.5:1). Backgrounds and panels keep their values.
 *
 * Linked after styles-*.css in index.html; !important because the stock rules
 * use component selectors of higher specificity than these.
 */
.tb-default .mat-accent,
.tb-dark .mat-accent {
  --mat-button-filled-label-text-color: #121314 !important;
  --mat-button-filled-state-layer-color: #121314 !important;
  --mat-button-protected-label-text-color: #121314 !important;
  --mat-button-protected-state-layer-color: #121314 !important;
  --mat-button-tonal-label-text-color: #121314 !important;
  --mat-button-tonal-state-layer-color: #121314 !important;
  --mat-fab-foreground-color: #121314 !important;
  --mat-fab-state-layer-color: #121314 !important;
  --mat-fab-small-foreground-color: #121314 !important;
  --mat-fab-small-state-layer-color: #121314 !important;
  --mat-checkbox-selected-checkmark-color: #121314 !important;
  --mat-chip-label-text-color: #121314 !important;
  --mat-chip-selected-label-text-color: #121314 !important;
  --mat-chip-disabled-label-text-color: #121314 !important;
  --mat-chip-with-icon-icon-color: #121314 !important;
  --mat-chip-with-icon-selected-icon-color: #121314 !important;
  --mat-chip-with-icon-disabled-icon-color: #121314 !important;
  --mat-chip-selected-trailing-icon-color: #121314 !important;
  --mat-chip-selected-disabled-trailing-icon-color: #121314 !important;
  --mat-chip-with-trailing-icon-trailing-icon-color: #121314 !important;
  --mat-chip-with-trailing-icon-disabled-trailing-icon-color: #121314 !important;
  --mat-datepicker-calendar-date-selected-state-text-color: #121314 !important;
  --mat-slide-toggle-selected-icon-color: #121314 !important;
  --mat-slide-toggle-disabled-selected-icon-color: #121314 !important;
  --mat-stepper-header-icon-foreground-color: #121314 !important;
  --mat-stepper-header-selected-state-icon-foreground-color: #121314 !important;
  --mat-stepper-header-done-state-icon-foreground-color: #121314 !important;
  --mat-stepper-header-edit-state-icon-foreground-color: #121314 !important;
  --mat-slider-with-tick-marks-active-container-color: #121314 !important;
}

/*
 * Active sidebar item: a lime edge and icon, echoing the logo's brackets.
 * Stock marks it only with a faint white wash on the charcoal.
 */
.tb-side-menu a.mat-mdc-button.tb-active {
  box-shadow: inset 3px 0 0 #84BD00;
}
.tb-side-menu a.mat-mdc-button.tb-active .mat-icon {
  color: #84BD00 !important;
}
