
input {
  white-space: no-wrap;
}

div {
  margin-right: auto;
  margin-left: auto;
}

/*
 *
 * search container elements
 * searchBarContainer width is the total width of the search bar.
 * searchBarBackgroundContainer is the available width for the components inside (takes into consideration RHS padding)
 *
 */
 
.searchBarContainer {
  width: 800px;
  position: relative;
  background-color: white;
  height: 34px;
  vertical-align: bottom;
  z-index: 999999;
}

.searchBarBackgroundContainer {
  position: absolute;
  background-color: white;
  border-style: inset;
  border-color: gray;
  border-width: 1px 1px 1px 1px;
  padding: 0;
  width: 785px;
  height: 20px;
  z-index: 999999;
}

.searchBarComponentsContainer {
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 999999;
}

.searchBarComponentLHS {
  background-color: white;
  float: left;
  /* width: 200px; */
}

.searchBarComponentRHS {
  background-color: white;
  float: right;
  padding-right: 4px;
  padding-top: 2px;
}


/* 
 *
 * pattern field items 
 * patternField is the current pattern, its width is the max visible portion
 * patternNameField is the the edit box when naming a saved search, its width is the max visible portion (less the border)
 * patternNameLabel is for displaying the saved search name when a saved search is selected
 *
 * - the combined width of patternField + patternNameField + all other RHS components (the star and
 *   arrow images) must equal the width of searchBarBackgroundContainer in order for everything to be seen when 
 *   patternNameField (or patternNameLabel) are being shown.
 * - the width of patternNameField and patternNameLabel must be the same.
 *
 */

.patternField {
  font-size: 13px;
  font-family: arial, sans-serif;
  width: 600px;
  padding: 0;
  margin: 0;
  border-color: white;
  border-style: none;
  outline: none;
  z-index: 999999;
}

.patternNameField {
  font-size: 11px;
  color: green;
  width: 150px;
  white-space: no-wrap;
  border-color: gray;
  border-style: dotted;
  border-width: thin;
  outline: none;
  z-index: 999999;
}

.patternNameLabel {
  background-color: rgb(192, 236, 207);
  color: rgb(51, 106, 63);
  font-weight: bold;
  white-space: nowrap;
  text-align: left;
  border-style: none;
  font-size: 11px;
  width: 150px;
  z-index: 999999;
}


/*
 *
 * saved search items
 *
 */

.savedSearchesPanel {
  background-color: white;
  border-style: none;
  padding: 0;
  margin: 0;
  width: 785px;
  z-index: 999999;
}

.savedSearchesPanel-row {
  background-color: white;
  border-style: none;  
  border-bottom-width: thin;
  border-bottom-style: solid;
  border-bottom-color: gray;
  padding: 0px 0px 0px 0px;
  margin: 0px 5px 0px 5px;
  width: 785px;
}

.savedSearchesGrid {
  background-color: white;
  border-style: solid;
  border-width: thin;
  border-color: buttonshadow;

  border-style: outset;
  border-top-color: silver;
  border-left-color: silver;
  border-bottom-color: gray;
  border-right-color: gray;
  border-width: 1px 1px 1px 1px;
  
  padding: 0;
  margin: 0;
}

.savedSearchesPanel-top {
  color: green;	
  font-size: 12px;      
  position: relative;
  padding: 0;
  margin: 0;
  top: 1px;
}

.savedSearchesPanel-bottom {
  font-size: 10px;	
  position: relative;
  padding: 0;
  margin: 3px;
  bottom: 1px;
}


/* 
 *
 * suggest items
 * suggestPanel spans the width of the container, all of the relevant widths must equal that of .searchBarBackgroundContainer
 * 
 */
 
.suggestPanel {
  width: 785px;
  background: white;
  border-style: outset;
  border-top-color: silver;
  border-left-color: silver;
  border-bottom-color: gray;
  border-right-color: gray;
  border-width: 1px 1px 1px 1px;
  
  z-index: 999999;
}

.suggestData {
  width: 785px;
  margin: 0;
  padding: 0;
  border: none;
}

.suggestData-selected {
  width: 785px;
  background: rgb(222,222,222);
}

.suggestDataSimple {
  color: black;
}

.suggestDataAdvanced {
  color: blue;
}

.suggestDataSavedSearch {
  color: green;
}


/*
 * Rounded Corners
 * http://articles.sitepoint.com/article/rounded-corners-css-javascript
 *
 * Applied to the patternNameLabel, so the width should be set the same
 */
 
div.rounded {
  /* just a container for rounded2 div replacement algorithm */
}
div.rounded2 {
  width: 150px;
  z-index: 999999;
  background: rgb(192, 236, 207) url(/coregui/images/search/corner-upper-right-8.png) no-repeat top right;
}
div.rounded2 div {
  background: transparent url(/coregui/images/search/corner-upper-left-8.png) no-repeat top left;
}
div.rounded2 div div {
  background: transparent url(/coregui/images/search/corner-lower-right-8.png) no-repeat bottom right;
}
div.rounded2 div div div {
  background: transparent url(/coregui/images/search/corner-lower-left-8.png) no-repeat bottom left;
}

div.rounded2 div div div div {
  background-image: none;
}