/* Radzen Brand Theme Override
 * Aligns Material 3 theme with Lippert brand guidelines.
 * See .cursor/rules/rule-ui-design.md
 */

:root {
  /* Primary - Red-Orange from brand guidelines */
  --rz-primary: #DC3513 !important;
  --rz-primary-lighter: #E85A3A !important;
  --rz-primary-light: #E34727 !important;
  --rz-primary-dark: #B82B10 !important;
  --rz-primary-darker: #942209 !important;

  /* Secondary - Charcoal from brand guidelines */
  --rz-secondary: #2C2C2C !important;
  --rz-secondary-lighter: #4A4A4A !important;
  --rz-secondary-light: #3A3A3A !important;
  --rz-secondary-dark: #1A1A1A !important;
  --rz-secondary-darker: #0A0A0A !important;

  /* Semantic colors - derived from palette (not in guidelines) */
  --rz-info: #97999B !important;
  --rz-success: #2E7D32 !important;
  --rz-warning: #E65100 !important;
  --rz-danger: #DC3513 !important;

  /* Typography - from brand guidelines */
  --rz-font-family: 'DIN OT', 'Helvetica Neue LT Std', -apple-system, BlinkMacSystemFont, sans-serif  !important;

  /* ListBox / DropDown / multi-select — selected rows: no row background (checkbox shows state) */
  --rz-dropdown-item-selected-background-color: transparent !important;
  --rz-dropdown-item-selected-color: var(--rz-text-color) !important;
  --rz-dropdown-item-selected-shadow: none !important;
  --rz-dropdown-item-selected-hover-background-color: transparent !important;
  --rz-dropdown-item-selected-hover-color: var(--rz-text-color) !important;
}

/* Selected list/dropdown rows — suppress theme highlight background */
.rz-listbox-item.rz-state-highlight,
.rz-multiselect-item.rz-state-highlight,
.rz-dropdown-item.rz-state-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

.rz-listbox-item.rz-state-highlight:hover,
.rz-multiselect-item.rz-state-highlight:hover,
.rz-dropdown-item.rz-state-highlight:hover {
  background-color: transparent !important;
  color: var(--rz-text-color) !important;
}

html, body {
  font-family: var(--rz-font-family);
}

/* Selected sidebar menu item - white text for contrast on dark background */
.rz-navigation-item-wrapper-active .rz-navigation-item-link,
.rz-navigation-item-wrapper-active .rz-navigation-item-text,
.rz-navigation-item-wrapper-active .rz-navigation-item-icon {
  color: white !important;
}

/* Selected item on hover - switch to dark text (hover background is lighter) */
.rz-navigation-item-wrapper-active:hover .rz-navigation-item-link,
.rz-navigation-item-wrapper-active:hover .rz-navigation-item-text,
.rz-navigation-item-wrapper-active:hover .rz-navigation-item-icon {
  color: var(--rz-text-color) !important;
}

/* Hover on non-selected items - keep original dark text color */
.rz-navigation-item-wrapper:not(.rz-navigation-item-wrapper-active):hover .rz-navigation-item-link,
.rz-navigation-item-wrapper:not(.rz-navigation-item-wrapper-active):hover .rz-navigation-item-text,
.rz-navigation-item-wrapper:not(.rz-navigation-item-wrapper-active):hover .rz-navigation-item-icon {
  color: var(--rz-text-color) !important;
}
