/* The member selector, the member chosen and «Esiste già?» («Tessera viva», wave 2b; viste/app/_selettore.php,
   _scelto.php, _esiste.php, pubblico/s/selettore.js and esiste.js). One look wherever a member is chosen. */

.gx .sel { position: relative; min-width: 0 }
.gx .sel-form { position: relative; margin: 0 }
.gx .sel-et { display: block }
.gx .sel-riga { display: flex; gap: 8px; align-items: center }
.gx .sel-box { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0 }
.gx .sel-box svg { position: absolute; left: 12px; color: var(--ink-3); pointer-events: none }
.gx .sel-box input { width: 100%; padding-left: 38px; min-height: 46px }
.gx [data-sel-pronto] .sel-vai, .gx [data-sel-pronto] .sel-nuovo { display: none }
.gx .sel[data-sel-pronto] ~ .sel-statico { display: none }
.gx .sel-nuovo { margin: 8px 0 0; font-size: 14.5px; font-weight: 600 }
.gx .sel-nuovo a { display: inline-flex; align-items: center; min-height: 44px }

.gx .sel-lista { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; min-width: min(22rem, 100%); padding: 6px; border: 1px solid #c9ced6;
  border-radius: 13px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 40px -14px rgba(12, 18, 30, .38); max-height: min(26rem, 62vh); overflow: auto;
  overscroll-behavior: contain }
.gx .sel-lista[hidden] { display: none }
/* inside a layer the list takes its place in the page: the layer grows with it instead of cutting it */
.gx .st-corpo .sel-lista { position: static; margin-top: 8px; max-height: none; box-shadow: 0 10px 26px -16px rgba(12, 18, 30, .35) }
.gx .sel-intesta, .gx .sel-vuoto { padding: 6px 10px 4px; font-size: 13px; color: var(--ink-3) }
.gx .sel-vuoto { padding: 10px }
.gx .sel-opz { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 6px 8px; border-radius: 10px; cursor: pointer }
.gx .sel-opz:hover, .gx .sel-opz--attiva { background: var(--brand-primary-soft) }
.gx .sel-opz--attiva { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand-primary) 45%, transparent) }
.gx .sel-av { flex: none; width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: var(--brand-primary-soft) }
.gx .sel-av--iniziali, .gx .sel-av--piu { display: grid; place-items: center; color: var(--brand-primary); font-weight: 700; font-size: 13px }
.gx .sel-av--piu { background: var(--brand-primary); color: var(--brand-on-primary); font-size: 20px; font-weight: 500 }
.gx .sel-opz-t { min-width: 0; line-height: 1.3 }
.gx .sel-opz-t b { display: block; font-weight: 650 }
.gx .sel-opz-t small { display: block; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.gx .sel-nota { flex: none; margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 600 }
.gx .sel-opz--crea { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--brand-primary); font-weight: 700 }
.gx .sel-opz--crea:hover, .gx .sel-opz--crea.sel-opz--attiva { border-radius: 10px }

/* the member chosen (the sale, booking a lesson): the field shows who, with «Cambia» */
.gx .sel-scelto { margin: 0 0 14px }
.gx .sel-scelto-et { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--ink-2) }
.gx .sel-scelto-riga { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; min-height: 60px; padding: 8px 10px 8px 8px;
  border: 1.5px solid var(--brand-primary); border-radius: 13px; background: var(--brand-primary-soft) }
.gx .sel-scelto-riga .sel-av { width: 44px; height: 44px; background: #fff }
.gx .sel-scelto-t { flex: 1 1 10rem; min-width: 0; line-height: 1.3 }
.gx .sel-scelto-t b { display: block; font-size: 16.5px }
.gx .sel-scelto-t small { display: block; font-size: 13.5px; color: var(--ink-2) }
.gx .sel-scelto .btn { min-height: 44px }
.gx .sel-scelto > .st-esito { margin-top: 8px }

/* «Esiste già?» */
.gx .es:empty { display: none }
.gx .es { margin: 16px 0 4px }
.gx .es-box { padding: 14px 16px; border: 1.5px solid var(--brand-accent); border-radius: 14px; background: color-mix(in srgb, var(--brand-accent) 7%, #fff) }
.gx .es-box h3 { margin: 0 0 4px; font-size: 16.5px }
.gx .es-box > p { margin: 0; font-size: 14.5px; color: var(--ink-2) }
.gx .es-lista { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px }
.gx .es-lista li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 11px; background: var(--surface) }
.gx .es-chi { min-width: 0; flex: 1 1 14rem; line-height: 1.35 }
.gx .es-chi b { display: block; font-size: 16px }
.gx .es-chi span { display: block; font-size: 13.5px; color: var(--ink-2) }
.gx .es-chi .es-stato--archiviato { color: var(--warn); font-weight: 600 }
.gx .es-lista .btn { min-height: 44px }
.gx .es-usata { padding: 12px 14px; border-radius: 13px; background: var(--ok-soft, #e6f4ec); color: #0e4f31; font-size: 14.5px;
  border: 1px solid color-mix(in srgb, var(--ok, #157347) 25%, transparent) }
.gx .es-usata p { margin: 0 0 10px }
.gx .es-usata-az { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center }
.gx .es-usata-az .btn { min-height: 44px }
.gx .es-usata-az .btn.ghost { background: #fff }

/* the wall's «Crea nuovo associato «…»» while searching (viste/app/soci.php) */
.gx .mu-crea { margin: 0 0 12px }
.gx .mu-crea .btn { min-height: 44px; gap: 8px; border-style: dashed; color: var(--brand-primary) }
