Custom background-color of selectbox elements

Your choices are to:

  1. Inspect the html and use a specifc class identifier that’s being generated for an element. I am always nervous about this approach as I am never sure how stable any such identifier is.
  2. Use relative positions of things combined with nth-child or nth-of-type to grab a specific one.

I usually use the second option, often using a set of containers to create boundaries around sections of the app to help me reliably get to a specific place. For example: