.index-groups {
  position: relative;
  min-height: 500px;

  h2 {
    text-align: center;
  }

  .split-columns > * {
    padding: 20px;
  }

  .import-speech {
    right: -55px;
    top: 50px;
    position: absolute;
  }

  .email-speech {
    width: 310px;
    top: 300px;
    left: 300px;
    position: absolute;
  }
}

.new-contact-speech {
  left: 120px;
  top: 55px;
  position: absolute;
}

.group-action-dialog {
  display: none;
  width: 360px;
  max-width: calc(100% - 40px);

  &[open] {
    display: block;
  }

  &::backdrop {
    background-color: rgba(0, 0, 0, .4);
  }

  input[type=text], select {
    box-sizing: border-box;
    width: 100%;
    font-size: 14px;
  }

  .group-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
  }
}

.send-email-dialog {
  display: none;
  position: absolute;
  top: 17px;
  left: 0;
  margin: 0;
  width: 300px;

  &[open] {
    display: block;
  }

  input[type=submit] {
    margin-top: 20px;
    margin-bottom: 15px;
  }
}

.import-dialog {
  display: none;
  position: absolute;
  top: 17px;
  right: 0px;
  width: 360px;
}

.data-table.groups-list td {
  font-size: 13px;
}

@media (max-width: 767px) {
  .index-groups .groups-list {
    width: 100%;
    margin-right: 0;
  }
}

/* "Cidade [Porto Alegre ▾]": picks the city whose neighborhoods are listed */
.region-city {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 10px 12px;
  color: var(--color-grey-medium);
  font-size: 14px;
}

.region-city-trigger {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #000;
  font-size: 16px;
  font-weight: bold;

  .fa-chevron-down {
    color: var(--color-grey-medium);
    font-size: 11px;
  }

  &:hover {
    text-decoration: underline;
  }
}

/* Accounts can have hundreds of cities, so the list scrolls */
.popover.region-cities-popover {
  position-area: bottom span-right;
  margin-top: 6px;
  min-width: 240px;
  max-height: 60vh;
  overflow-y: auto;

  a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 14px;

    &[aria-current] {
      color: #000;
      font-weight: bold;
    }
  }
}

/* The actions button sits at the right edge, so open the menu leftwards, right under it */
.index-groups .people-actions-popover {
  position-area: bottom span-left;
  margin-top: 6px;
}
