/* Keep MUI's form value input invisible; login contrast sets opacity: 1. */
body:has(main > .MuiPaper-root > form) .MuiInputBase-root input.MuiSelect-nativeInput {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body:has(main > .MuiPaper-root > form) .MuiSelect-select {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
/* Local, deterministic black/red/green flag, including the open language menu. */
body:has(main > .MuiPaper-root > form) :is(.MuiSelect-select,.MuiMenuItem-root) img:is([src$="/ir.svg"],[src$="/af.svg"]) {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 60'%3E%3Cpath fill='%23000' d='M0 0h30v60H0z'/%3E%3Cpath fill='%23d32030' d='M30 0h30v60H30z'/%3E%3Cpath fill='%2300733d' d='M60 0h30v60H60z'/%3E%3C/svg%3E");
  width: 24px !important;
  height: 16px !important;
  object-fit: contain;
}

