/* IEICII v216 · selector remoto compacto, flotante y global */
[data-system-picker],
[data-fetch-picker],
.system-picker-v216{
  position:relative!important;
  display:block!important;
  min-width:0!important;
  isolation:isolate;
}

[data-system-picker] > input[type="search"],
[data-fetch-picker] > input[type="search"],
.system-picker-v216 > input[type="search"]{
  width:100%!important;
  min-width:0!important;
  min-height:44px!important;
  height:44px!important;
  margin:0!important;
  padding:9px 42px 9px 40px!important;
  border:1px solid var(--line,#dbe3ef)!important;
  border-radius:12px!important;
  background:var(--surface,#fff)!important;
  color:var(--text,#172033)!important;
  box-shadow:none!important;
  outline:none!important;
  font:inherit!important;
  line-height:1.2!important;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease!important;
}
[data-system-picker] > input[type="search"]:focus,
[data-fetch-picker] > input[type="search"]:focus,
.system-picker-v216 > input[type="search"]:focus{
  border-color:color-mix(in srgb,var(--brand,#245be6) 58%,var(--line,#dbe3ef))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--brand,#245be6) 10%,transparent)!important;
}
.system-picker-v216.is-selected-v216 > input[type="search"]{
  font-weight:650!important;
  padding-right:42px!important;
  background:color-mix(in srgb,var(--brand,#245be6) 3%,var(--surface,#fff))!important;
}

/* Cualquier resultado/selección heredado v214 queda fuera de flujo. */
[data-system-picker] [data-fetch-selected],
[data-system-picker] [data-fetch-results],
[data-system-picker] [data-system-results],
[data-fetch-picker] [data-fetch-selected],
[data-fetch-picker] [data-fetch-results],
[data-fetch-picker] [data-system-results],
.system-picker-v216 .fetch-picker-selected-v214,
.system-picker-v216 .fetch-picker-results-v214{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

.system-picker-icon-v216{
  position:absolute!important;
  z-index:3!important;
  top:22px!important;
  left:13px!important;
  width:18px!important;
  height:18px!important;
  transform:translateY(-50%)!important;
  display:grid!important;
  place-items:center!important;
  pointer-events:none!important;
  color:var(--muted,#64748b)!important;
}
.system-picker-clear-v216{
  -webkit-appearance:none!important;
  appearance:none!important;
  position:absolute!important;
  z-index:4!important;
  top:22px!important;
  right:8px!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  margin:0!important;
  padding:0!important;
  transform:translateY(-50%)!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--muted,#64748b)!important;
  cursor:pointer!important;
}
.system-picker-clear-v216:hover,
.system-picker-clear-v216:focus-visible{
  background:color-mix(in srgb,var(--brand,#245be6) 8%,var(--surface,#fff))!important;
  color:var(--brand,#245be6)!important;
  outline:none!important;
}
.system-picker-clear-v216[hidden]{display:none!important}

/* Menú real: siempre se porta a body; nunca aumenta la altura del formulario. */
.ie-system-picker-menu-v216{
  position:fixed!important;
  z-index:2147483600!important;
  display:block!important;
  width:320px;
  max-width:calc(100vw - 16px)!important;
  margin:0!important;
  padding:5px!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  border:1px solid color-mix(in srgb,var(--line,#dbe3ef) 92%,#fff)!important;
  border-radius:13px!important;
  background:var(--surface,#fff)!important;
  color:var(--text,#172033)!important;
  box-shadow:0 16px 42px rgba(15,23,42,.16)!important;
  scrollbar-width:thin;
}
.ie-system-picker-menu-v216[hidden]{display:none!important}

.ie-system-picker-result-v216{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 22px!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  margin:0!important;
  padding:7px 8px!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:var(--text,#172033)!important;
  box-shadow:none!important;
  text-align:left!important;
  font:inherit!important;
  cursor:pointer!important;
}
.ie-system-picker-result-v216 + .ie-system-picker-result-v216{margin-top:1px!important}
.ie-system-picker-result-v216:hover,
.ie-system-picker-result-v216.is-active-v216,
.ie-system-picker-result-v216[aria-selected="true"]{
  background:color-mix(in srgb,var(--brand,#245be6) 7%,var(--surface,#fff))!important;
}
.ie-system-picker-avatar-v216{
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  background:color-mix(in srgb,var(--brand,#245be6) 9%,var(--surface,#fff))!important;
  color:color-mix(in srgb,var(--brand,#245be6) 82%,var(--text,#172033))!important;
  font-size:.72rem!important;
  font-weight:850!important;
  letter-spacing:.02em!important;
}
.ie-system-picker-copy-v216{
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
  line-height:1.18!important;
}
.ie-system-picker-copy-v216 strong{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:inherit!important;
  font-size:.88rem!important;
  font-weight:750!important;
}
.ie-system-picker-copy-v216 small{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:var(--muted,#64748b)!important;
  font-size:.74rem!important;
  font-weight:500!important;
}
.ie-system-picker-check-v216{
  display:grid!important;
  place-items:center!important;
  width:22px!important;
  height:22px!important;
  border-radius:7px!important;
  color:transparent!important;
}
.ie-system-picker-result-v216:hover .ie-system-picker-check-v216,
.ie-system-picker-result-v216.is-active-v216 .ie-system-picker-check-v216,
.ie-system-picker-result-v216[aria-selected="true"] .ie-system-picker-check-v216{
  color:var(--brand,#245be6)!important;
}

.ie-system-picker-state-v216{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:44px!important;
  padding:10px 11px!important;
  color:var(--muted,#64748b)!important;
  font-size:.82rem!important;
  line-height:1.35!important;
}
.ie-system-picker-state-v216.is-error-v216{color:var(--bad,#b42318)!important}
.ie-system-picker-spinner-v216{
  width:15px!important;
  height:15px!important;
  flex:0 0 15px!important;
  border:2px solid color-mix(in srgb,var(--brand,#245be6) 20%,transparent)!important;
  border-top-color:var(--brand,#245be6)!important;
  border-radius:999px!important;
  animation:ie-system-picker-spin-v216 .7s linear infinite!important;
}
@keyframes ie-system-picker-spin-v216{to{transform:rotate(360deg)}}

.system-picker-v216.is-multiple-v216{
  display:grid!important;
  gap:7px!important;
}
.system-picker-v216.is-multiple-v216 > input[type="search"]{grid-row:1!important}
.system-picker-selected-list-v216{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  min-width:0!important;
}
.system-picker-selected-list-v216:empty{display:none!important}
.system-picker-chip-v216{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  max-width:100%!important;
  min-height:28px!important;
  margin:0!important;
  padding:4px 6px 4px 9px!important;
  border:1px solid color-mix(in srgb,var(--brand,#245be6) 16%,var(--line,#dbe3ef))!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--brand,#245be6) 5%,var(--surface,#fff))!important;
  color:var(--text,#172033)!important;
  font-size:.79rem!important;
  line-height:1.1!important;
}
.system-picker-chip-v216 > span{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.system-picker-chip-v216 button{
  -webkit-appearance:none!important;
  appearance:none!important;
  display:grid!important;
  place-items:center!important;
  width:19px!important;
  height:19px!important;
  min-width:19px!important;
  min-height:19px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  color:var(--muted,#64748b)!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
.system-picker-chip-v216 button:hover{
  background:color-mix(in srgb,var(--brand,#245be6) 10%,transparent)!important;
  color:var(--brand,#245be6)!important;
}

@media(max-width:640px){
  .ie-system-picker-menu-v216{border-radius:12px!important;box-shadow:0 14px 34px rgba(15,23,42,.19)!important}
  .ie-system-picker-result-v216{grid-template-columns:32px minmax(0,1fr) 20px!important;min-height:46px!important;padding:7px!important}
  .ie-system-picker-avatar-v216{width:32px!important;height:32px!important}
}
