/**
 * All instances of the search form.
 */
#SearchFormContainer
{
  border: solid 1px #ccd;
  background: #e0f0ff;
}

#SearchForm
{
  color: #555;
}

#SearchForm .search_field_title
{
  font-weight: bold;
}

#SearchForm table.search_field_value_ranged th
{
  text-align: right;
  font-weight: normal;
}  

#SearchForm table.search_field_value_ranged td,
#SearchForm table.search_field_value_ranged th
{
  font-size: 90%;
  padding: 1px;
  margin: 0;
  border-spacing: 0px;
}

/** 
 * Search Mode Tabs
 */

ul#SearchModeTabs
{
  margin: 0;
  padding: 0;
}

ul#SearchModeTabs li
{
  list-style: none;
  width: 8em;
  display: block;
  float: left;
  padding: 4px 0px;
  margin: 1px 5px 0 0;
  text-align: center;
  text-decoration: none;
  border: 1px solid #dde;
  border-bottom: 1px solid #ccd;
  -moz-border-radius-topright: 10px;
  -moz-border-radius-topleft: 10px;
}

ul#SearchModeTabs .current a,
ul#SearchModeTabs .current a:hover
{
  margin-top: 0;
  padding-bottom: 6px;
  border: 1px solid #ccd;
  border-bottom: none;
}

ul#SearchModeTabs a:hover 
{
  margin-top: 0;
  padding-bottom: 5px;
  text-decoration: none;
  border: 1px solid #ccd;
}

ul#SearchModeTabs li#DrillDownTab a
{
  background: #fffff0;
}

ul#SearchModeTabs li#SearchTab a
{
  background: #e0f0ff;
}

/**
 * All instances of the drill-down form.
 */

#DrillDownFormContainer
{
  background: #fffff0;
  border: solid 1px #ccd;
}
 
#DrillDownForm
{
  color: #555;
}

#DrillDownForm a:link,
#DrillDownForm a:visited
{
  text-decoration: none;
}  

#DrillDownForm a:hover
{
  text-decoration: underline;
}

#DrillDownForm ul.drill_down_values  li span.drill_down_value_title .remove_link 
{
  font-size: 90%;
}

#DrillDownForm ul.drill_down_values
{
  padding-left: 8px;
}

#DrillDownForm ul.drill_down_values li
{
  /* Avoid "white-space: nowrap" because of IE bug */
  /*display: inline;*/
  list-style-type: none;
}


#DrillDownForm .drill_down_value .drill_down_count
{
  font-size: 80%;
  color: #888;
}

#DrillDownForm .drill_down_child
{
  padding-left: 12px;
}

#DrillDownForm .search_field_title
{
  font-weight: bold;
}

#SearchPanel #DrillDownForm .drill_down_more_box li
{
  display: block;
}

#DrillDownForm span.drill_down_more_box ul
{
  padding-left: 0px;
}

#DrillDownForm .drill_down_more_link
{
  color: #349;
  font-size: 90%;
  font-weight: bold;
  display: inline;
}

#DrillDownForm .drill_down_more
{
  display: block;
}

#DrillDownForm .drill_down_more_link:hover
{
  text-decoration: underline;
}

#DrillDownForm .drill_down_more_box
{
  display: none;
  background: #fbfbeb;
  position: absolute;
  border: solid 1px #ccc;
  padding: 4px;
  z-index: 1001;
}

/**
 * Search panel styles.
 */

#SearchPanel
{
  float: left;
  margin-top: 2px;
  margin-right: 10px;
  margin-bottom: 8px;
  font-size: 90%;
  border: solid 1px white;
  width: 180px;
}

#SearchPanel.drop_hover 
{
  border: dotted 1px #55ff55;
}

#SearchPanel a:hover
{
  text-decoration: underline;
}  

/* Use normal link colour on visited links */
#SearchPanel a:visited
{
  color: #349;
}

#SearchPanel .title
{
  display: block;
  padding: 5px 7px;
  font-size: 110%;
  font-weight: bold;
  color: #white;
  background: #fffff0;
}

#SearchPanel  ul#SearchModeTab
{
  position: relative;
  bottom: -1px;
  z-index: 1000;
}

#SearchPanel ul#SearchModeTab a#DrillDownTab
{
  background: #f0f0e0;
}

#SearchPanel ul#SearchModeTab a#SearchTab
{
  background: #d0e0ef;
}

#SearchPanel ul#SearchModeTab a
{

}

#SearchPanel #SliderHeader
{
  display: block;
  margin: 0;
  border-left: solid 1px #ccc;
  padding: 0;
  padding-left: 4px;
  padding-right: 12px;
  float: right;
  font-size: 9px;
  font-weight: normal;
  background: url(../images/down-arrow-small.png) bottom right no-repeat;
}

#SearchPanel .search_field
{
  width: 160px;
}

#SearchPanel .search_field_title
{
  display: block;
  padding: 8px 3px 1px 8px;
}

#SearchPanel #DrillDownFreeText .search_field_value
{
  display: block;
  padding: 0 3px 0 8px;
}

#SearchPanel #DrillDownSubsets .search_field_value
{
  display: block;
  /* Specify 1px for left-padding to counteract the 8px padding in ul.drill_down_values since IE prevents from using the child selectors */ 
  padding: 0 3px 0 1px;
}

/**
 * Drill-down within search panel.
 */

#SearchPanel #DrillDownForm .search_field_title
{
  background: #f0f0e0;
}

#SearchPanel .drill_down_selected
{
  padding: 2px 3px;
  background: #ffffc0;
}

#SearchPanel .search_field_slider
{
  float: right;
  padding-top: 2px;
} 

#SearchPanel #DrillDownFormContainer
{
  overflow: hidden;
  /* Trick to force hasLayout in IE */
  width: 180px;
}

#SearchPanel #DrillDownForm
{
  border: solid 1px #efefe0;
}

#SearchPanel #DrillDownForm #DrillDownFreeText #DrillDownZipcodeInput
{
  width: 90px;
}

#SearchPanel #DrillDownForm #DrillDownFreeText #DrillDownFreeTextInput
{
  width: 90px;
}

#SearchPanel #DrillDownForm #DrillDownFreeText #FrontPageSearchButton
{
  display: none;
}

/**
 * Search form within search panel.
 */

#SearchPanel #SearchFormContainer
{
  overflow: hidden;
  /* Trick to force hasLayout in IE */
  width: 180px;
}

#SearchPanel #SearchForm
{
  background: #e0f0ff;
}

#SearchPanel #SearchForm .search_field_title
{
  background: #d0e0ef;
}

#SearchPanel #SearchForm #SearchFreeText #SearchFreeTextInput
{
  width: 100%;
}

#SearchPanel #SearchForm .search_field_value select
{
  width: 100%;
}

#SearchPanel #SearchForm #SearchButtons
{
  padding: 7px;
  background: #d0e0ef;
}

#SearchPanel #SearchButtons input
{
  font-size: 90%;
}

/**
 * Drill-down form on front page.
 */

#FrontPage #DrillDownFormContainer
{
  width: 560px;
  float: left;
  margin: 1ex 0;
  margin-left: auto;
  margin-right: auto;
  -moz-border-radius-topright: 10px;
  -moz-border-radius-bottomright: 10px;
  -moz-border-radius-bottomleft: 10px;
}

#FrontPage #DrillDownForm
{
  padding: 7px;
}

#FrontPage #DrillDownForm .search_field
{
  margin: 8px 0;
  width: 165px;
  height: 120px;
  float: left;
}

#FrontPage #DrillDownForm #DrillDownSubsets .search_field_value
{
  /* Hack to shift left the first level of a drilldown */
  margin-left: -8px;
}

#FrontPage #DrillDownForm .search_field_title
{
  display: block;
  margin-bottom: 3px;
}

#FrontPage #DrillDownForm .drill_down_value
{
  display: block;
}

#FrontPage #DrillDownForm .drill_down_value .drill_down_count
{
  color: #88a;
}

#FrontPage #DrillDownForm #DrillDownSubsets
{
  padding: 0 8px;
  clear: both;
}

/* text search widgets on front page */
#FrontPage #DrillDownForm #DrillDownFreeText
{
  padding: 0 8px;
  clear: both;
}

#FrontPage #DrillDownForm #DrillDownFreeText .search_field
{
  height: 35px;
}

#FrontPage #DrillDownForm #DrillDownFreeText #FrontPageSearchButton input
{
  margin-top: 17px;
}

#FrontPage #DrillDownForm #PanelSearchButton
{
  display: none;
}

#FrontPage #DrillDownFreeText #DrillDownTextBoxDiv
{
  padding: 0px;
}

#FrontPage #DrillDownForm .drill_down_more_link
{
  margin-top: 3px;
}

/**
 * Search form on front page.
 */

#FrontPage #SearchFormContainer
{
  width: 560px;
  float: left;
  margin: 1ex 0;
  margin-left: auto;
  margin-right: auto;
  -moz-border-radius-topright: 10px;
  -moz-border-radius-bottomright: 10px;
  -moz-border-radius-bottomleft: 10px;
}

#FrontPage #SearchForm
{
  padding: 7px;
}

#FrontPage #SearchForm #SearchSubsets
{
  clear: both;
}

#FrontPage #SearchForm .search_field
{
  float: left;
  margin: 4px;
  width: 171px;
}

#FrontPage #SearchForm .search_field_value
{
  padding: 0;
  margin: 0;
}

#FrontPage #SearchForm .search_field_value select
{
  width: 100%;
  height: 90px;
}  

#FrontPage #SearchForm #SearchButtons
{
  margin: 8px;
  padding-top: 15px;
  clear: both;
}

#FrontPage #SearchForm .search_field_title
{
  display: block;
  padding: 3px;
  color: #555;
  font-weight: bold;
}

#FrontPage #SearchForm .search_field_value
{
}

/**
 * FrontPage Text Search
 */
#DrillDownFreeText .search_field
{
  display: inline;
}

/** 
 * FrontPage Tabs
 */

#FrontPage ul#SearchModeTab
{
  float: left;
  position: relative;
  bottom: -7px;
  width: 560px;
}

/**
 * Rest of front page.
 */
 
/* Use normal link colour on visited links */
#FrontPage a:visited
{
  color: #349;
}

#FrontPage #JumboLogoContainer
{
  float: left;
  width: 203px;
  margin-right: 15px;
  padding-top: 10px;
}

/**
 * Search status box for async Ajax searches.
 */

#SearchStatusBox
{
  position: fixed;
  /* IE only, use absolute positioning */
  _position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2000;
}

#SearchStatusBox #SearchStatus
{
  width: 130px;
  white-space: nowrap;
  border: solid 1px #ccc;
  background: #fffff0;
  padding: 6px;
}

#SearchStatusBox #SearchStatus.error
{
  border: solid 1px #fcc;
}

#SearchStatusBox #SearchStatusText
{
  display: block;
  padding: 2px 0 0 20px;
}

#SearchStatusBox #SearchStatusIndicator
{
  display: block;
  float: left;
  overflow: hidden;
}
