.structure-heading .structure-tree-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.structure-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: min(360px, 42vw);
}

.structure-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 62px 8px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, .92);
  color: var(--sheet-dark-green);
  font: inherit;
  font-size: 12px;
  box-shadow: 0 5px 18px rgba(56, 46, 39, .05);
}

.structure-search input:focus {
  outline: none;
  border-color: #8eaaa3;
  box-shadow: 0 0 0 3px rgba(61, 99, 90, .10);
}

.structure-search-clear {
  position: absolute;
  right: 7px;
  min-height: 28px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: #eef4f2;
  color: var(--sheet-dark-green);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.structure-search-clear:hover {
  background: #e5efec;
}

.sv4-card.is-search-match {
  border-color: #6f988f !important;
  box-shadow: 0 0 0 3px rgba(61, 99, 90, .13), 0 14px 34px rgba(56, 74, 69, .12) !important;
}

@media (max-width: 760px) {
  .structure-heading {
    align-items: stretch;
  }

  .structure-heading .structure-tree-controls {
    justify-content: stretch;
  }

  .structure-search {
    min-width: 100%;
    flex: 1 1 100%;
  }
}
