/*
 * Le pastiglie dei mister di un gruppo.
 *
 * Stanno dove stava la tendina, e occupano lo stesso posto quando il mister e
 * uno solo - che resta il caso normale. Con due o tre vanno a capo invece di
 * stringere l'intestazione: un nome tagliato a meta non serve a nessuno.
 */

.mh-mg-guscio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mh-mg-pastiglie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.mh-mg-pastiglia {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px 4px 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mh-text, #f2eff0);
  background: var(--mh-surface-raised, #1c1a1b);
  border: 1px solid var(--mh-line-strong, #454041);
  border-radius: 999px;
}
.mh-mg-pastiglia > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
 * La crocetta e piccola da vedere e larga da premere: il quadratino visibile
 * sta dentro un bersaglio da un dito, che e quello che conta al campo.
 */
.mh-mg-togli {
  display: grid;
  place-items: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  color: var(--mh-text-muted, #9b9294);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.mh-mg-togli:hover { color: var(--mh-danger, #f2555a); background: #ffffff14; }

.mh-mg-nessuno {
  font-size: 11.5px;
  font-style: italic;
  color: var(--mh-text-muted, #9b9294);
}

.mh-mg-apri {
  min-height: 32px;
  padding: 4px 12px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--mh-text-secondary, #bdb5b7);
  background: transparent;
  border: 1px dashed var(--mh-line-strong, #454041);
  border-radius: 999px;
  cursor: pointer;
}
.mh-mg-apri:hover { color: var(--mh-accent, #ef002b); border-color: var(--mh-accent, #ef002b); }

.mh-mg-scelta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--mh-line, #2f2c2d);
  border-radius: var(--mh-radius, 10px);
  cursor: pointer;
}
.mh-mg-scelta input { width: 22px; height: 22px; }
.mh-mg-scelta-testi { display: grid; gap: 1px; min-width: 0; }
.mh-mg-scelta-testi strong { font-size: 13.5px; color: var(--mh-text, #f2eff0); }
.mh-mg-scelta-testi small { font-size: 11px; color: var(--mh-text-muted, #9b9294); }

.mh-mg-conferma {
  min-height: 44px;
  padding: 8px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--mh-accent, #ef002b);
  border: 1px solid var(--mh-accent, #ef002b);
  border-radius: 999px;
  cursor: pointer;
}

.mh-mg-annulla {
  min-height: 44px;
  padding: 8px 18px;
  font: inherit;
  font-size: 13px;
  color: var(--mh-text-secondary, #bdb5b7);
  background: transparent;
  border: 1px solid var(--mh-line, #2f2c2d);
  border-radius: 999px;
  cursor: pointer;
}

.mh-mg-vuoto {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--mh-text-muted, #9b9294);
}

@media (max-width: 520px) {
  .mh-mg-guscio { width: 100%; }
  .mh-mg-apri { flex: 1 1 auto; min-height: 44px; }
}
