/* Contrast fixes for the participant detail sheet in the light backoffice theme. */
html[data-backoffice-theme="light"] [role="dialog"]:has([role="tablist"][aria-label="Seções da ficha do participante"]) {
  color: #282721 !important;
}

html[data-backoffice-theme="light"] [role="dialog"]:has([role="tablist"][aria-label="Seções da ficha do participante"]) [role="tablist"] {
  background: #E8DFD0 !important;
  border: 1px solid #D3C8B4 !important;
}

html[data-backoffice-theme="light"] [role="dialog"]:has([role="tablist"][aria-label="Seções da ficha do participante"]) [role="tablist"] [role="tab"] {
  color: #4C493F !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

html[data-backoffice-theme="light"] [role="dialog"]:has([role="tablist"][aria-label="Seções da ficha do participante"]) [role="tablist"] [role="tab"][data-state="active"] {
  color: #282721 !important;
  background: #FBF8F1 !important;
  box-shadow: 0 1px 3px rgb(46 39 25 / 14%) !important;
}

html[data-backoffice-theme="light"] [role="dialog"]:has([role="tablist"][aria-label="Seções da ficha do participante"]) [role="tablist"] [role="tab"]:hover:not([data-state="active"]) {
  color: #282721 !important;
  background: #F1E9DC !important;
}

html[data-backoffice-theme="light"] [role="dialog"]:has([role="tablist"][aria-label="Seções da ficha do participante"]) :is(.text-novo-ds-cinza, [class*="text-gray-400"], [class*="text-gray-500"], [class*="text-gray-600"], dt, label) {
  color: #514D43 !important;
}

html[data-backoffice-theme="light"] [role="dialog"]:has([role="tablist"][aria-label="Seções da ficha do participante"]) :is(input, textarea, select, [role="combobox"]) {
  color: #282721 !important;
  background-color: #FFFFFF !important;
  border-color: #BDB5A6 !important;
}

html[data-backoffice-theme="light"] [role="dialog"]:has([role="tablist"][aria-label="Seções da ficha do participante"]) :is(input, textarea, select, [role="combobox"])::placeholder {
  color: #625E52 !important;
  opacity: 1 !important;
}

html[data-backoffice-theme="light"] [role="dialog"]:has([role="tablist"][aria-label="Seções da ficha do participante"]) :is(input, textarea, select, [role="combobox"]):disabled {
  color: #514D43 !important;
  background-color: #F0ECE3 !important;
  opacity: 1 !important;
}

html[data-backoffice-theme="light"] [role="dialog"]:has([role="tablist"][aria-label="Seções da ficha do participante"]) :is(input, textarea, select, [role="combobox"]):focus-visible {
  outline: 2px solid #8A712D !important;
  outline-offset: 1px !important;
  border-color: #8A712D !important;
}
