.child-lid.lm-modal {
  overflow: hidden;
  align-items: center;
}

.child-lid #lm-modal-container {
  max-width: 800px;
  max-height: 100vh;
  height: fit-content;
}

.child-lid #lm-modal-body {
  flex: 1 1 auto;
  min-height: unset;
}

.child-lid #lm-modal-main-scroll {
  height: auto;
  max-height: calc(100vh - 215px);
}

.child-lid h3 {
  font-size: 14px;
  margin: 0 0 10px;
  line-height: 1em;
  font-weight: normal;
  text-transform: inherit;
  color: var(--color-default-text);
}

.child-lid .content-wrap {
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  background-color: white;
}

.child-lid .content-wrap:last-of-type {
  margin: 0;
}

.child-lid .content-wrap.empty {
  padding: 0;
  display: flex;
  align-items: center;
}

.child-lid .content-wrap.empty .none {
  flex: 1;
}

.child-lid .none {
  padding: 20px;
  display: inline-block;
  color: var(--color-grey);
}

.child-lid .add-child-container {
  float: right;
}

.child-lid .add-child-btn {
  width: 35px;
  height: 35px;
  color: white;
  margin-right: 20px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.child-search-container {
  padding: 15px;
  border-radius: 4px;
  background-color: var(--color-grey-bg);
}

.child-search-container .lm-input-text.search {
  display: flex;
  box-shadow: none;
  padding: 11px 15px;
  border-radius: 4px;
  margin: 0 0 15px 0;
  box-sizing: border-box;
  background-color: white;
}

.child-search-container .lm-input-text.search::before {
  top: 2px;
  left: -1px;
  content: '';
  width: 14px;
  height: 14px;
  position: relative;
  display: inline-block;
  background-image: url(../../images/lm2/search.svg);
}

.child-search-container .lm-input-text.search input {
  flex: 1;
  padding: 0;
  height: 15px;
  border: none;
  outline: none;
  font-size: 13px;
  margin-left: 10px;
  padding-right: 15px;
  background-color: transparent;
  color: var(--color-default-text);
  font-family: var(--lm-font-stack);
}

.child-search-container .lm-input-text.search input::placeholder {
  color: var(--color-grey);
}

.lm-input-text.search .clear-search {
  opacity: 0;
  cursor: pointer;
  margin-top: 3px;
  line-height: 0px;
  color: var(--color-default-text);
}

.lm-input-text.search .clear-search:hover {
  color: black;
}

.child-search-container .lm-input-text.search input:not(:placeholder-shown) + .clear-search {
  opacity: 1;
}

.child-list-container {
  overflow: auto;
  max-height: 247px;
  position: relative;
  border-radius: 4px;
  margin-bottom: 20px;
  background-color: white;
}

.child-list-container.primary {
  max-height: none;
  overflow: hidden;
  margin-bottom: 30px;
}

.child-list-item {
  display: flex;
  padding: 15px;
  cursor: pointer;
  position: relative;
  align-items: center;
  border-bottom: 1px solid var(--color-grey-lightest);
}

.child-list-item:last-of-type {
  border-bottom: none;
}

.child-search-container .parent-list-container {
  height: 220px;
}

.child-list-item:hover {
  color: black;
}

.child-list-item:hover .child-fid {
  color: #808080;
}

.child-list-item > div {
  flex: 1;
  margin: 0 10px;
  font-size: 14px;
}

.child-list-item .child-type.location::before {
  content: '';
  width: 11px;
  height: 14px;
  margin-right: 8px;
  display: inline-block;
  background-image: url(/images/lm2/pin.svg);
}

.child-list-item .child-type.person::before {
  content: '';
  width: 14px;
  height: 14px;
  margin-right: 8px;
  display: inline-block;
  background-image: url(/images/lm2/user.svg);
}

.child-list-item .child-name {
  white-space: normal;
}

.child-list-item .child-fid {
  font-size: 13px;
  color: var(--color-grey);
}

.child-search-container .child-list-item > div {
  font-size: 13px;
}

.child-search-container .child-fid {
  font-size: 12px;
}

.child-list-item .make-primary {
  right: 60px;
  display: none;
  font-size: 12px;
  line-height: 13px;
  position: absolute;
  text-align: center;
  text-decoration: none;
}

.child-list-item:hover .make-primary {
  display: block;
}

.child-list-item .child-link::before {
  width: 7px;
  content: '';
  height: 11px;
  transition: 200ms;
  display: inline-block;
  background-image: url(/images/lm2/more.svg);
}

hr.child-list-divider {
  margin: 0;
}

.child-search-container .make-primary {
  font-size: 11px;
  line-height: 12px;
}

.add-child-container {
  text-align: right;
}

.add-child-container .add-child-btn {
  margin: 0;
}

.remove-child {
  margin-right: 20px;
  color: var(--color-default-text);
}

.remove-child:hover {
  color: black;
}

.child-lid .child-fields {
  gap: 10px;
  margin: 15px;
  padding: 15px;
  display: flex;
  flex-wrap: wrap;
  border-radius: 4px;
  background-color: var(--color-grey-bg);
}

.child-lid .child-fields > div {
  flex: 1;
  font-size: 13px;
  line-height: 1em;
  border-radius: 4px;
  white-space: nowrap;
  background-color: white;
  padding: 10px 15px 11px;
}

.child-lid .child-fields > div > h4 {
  font-size: 11px;
  margin: 0 0 4px 0;
  font-weight: normal;
  color: var(--color-grey);
  text-transform: uppercase;
}

.child-lid .child-fields > h3 {
  margin: 0;
  font-size: 13px;
  flex-basis: 100%;
  text-transform: none;
  color: var(--color-default-text);
}

.child-lid .child-fields > .specialty-group > span:not(:first-of-type)::before {
  content: ',';
  display: inline-block;
}

.child-fields-collapse {
  padding: 10px;
  cursor: pointer;
  margin-top: -15px;
  text-align: center;
  margin-bottom: 5px;
}

.child-fields-collapse:hover {
  color: black;
}

.child-fields-collapse.more svg {
  transform: rotate(90deg);
}

.child-fields-collapse.less svg {
  transform: rotate(-90deg);
}

.child-lid h3 {
  display: flex;
  justify-content: space-between;
}

.child-lid span.new {
  top: -2px;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  position: relative;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg width='14px' height='14px' viewBox='0 0 14 14' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cpath d='M7,0 C10.866,0 14,3.134 14,7 C14,10.866 10.866,14 7,14 C3.134,14 0,10.866 0,7 C0,3.134 3.134,0 7,0 Z M7,1.25 C3.8295,1.25 1.25,3.8295 1.25,7 C1.25,10.1705 3.8295,12.75 7,12.75 C10.1705,12.75 12.75,10.1705 12.75,7 C12.75,3.8295 10.1705,1.25 7,1.25 Z M7,2.9 C7.331,2.9 7.6,3.169 7.6,3.5 L7.6,3.5 L7.6,6.7515 L10.0745,9.226 C10.309,9.46 10.309,9.84 10.0745,10.0745 C9.957,10.192 9.804,10.2505 9.65,10.2505 C9.4965,10.2505 9.3425,10.1915 9.2255,10.0745 L9.2255,10.0745 L6.5755,7.424 C6.463,7.312 6.4,7.159 6.4,7 L6.4,7 L6.4,3.5 C6.4,3.1685 6.669,2.9 7,2.9 Z' fill='%23F76E26'%3E%3C/path%3E%3C/svg%3E");
}

.add-new-child-container {
  text-align: right;
}

.add-new-child-container .add-new-child-btn {
  margin: 0;
  width: 35px;
  height: 35px;
  color: white;
  border-radius: 50%;
  background-color: var(--color-primary);
}
