div.search, div.results {
  padding-top: 20px;
}

div.graybar {
  margin: 16px 0px;
  background-color: #585E5C;
  height: 3px;
  line-height: 3px;
  font-size: 1px;
}
div.search div.header,
div.search h3 {
  margin: 0px 0px 16px 0px;
}
div.search div.header {
  padding: 0px;
  line-height: 16px;
  height: 16px;
}
div.search div.header img {
  display: block;
}
div.search h4 {
  font-size: 8pt;
  margin: 8px 0px;
  text-transform: uppercase;
  color: #A05B00;
}
div.search table.search td {
  padding: 0px 4px 0px 0px;
}
div.search table.search td div.optional {
  float: right;
  text-align: right;
  color: silver;
}
div.search table.adv-search {
  width: 100%;
  border-collapse: collapse;
}
div.search table.adv-search th {
  text-transform: uppercase;
}
div.search table.adv-search tr.separator th {
  padding: 0px 3px;
}
div.search table.adv-search tr.separator th img {
  display: block;
  width: 100%;
  background-color: #A4ABAC;
}
div.search table.adv-search tr.separator th,
div.search table.adv-search tr.separator th img {
  height: 4px;
}
div.search table.adv-search th, div.search table.adv-search td.column {
  border-left: 4px solid #D6D6D6;
  border-right: 4px solid #D6D6D6;
}
div.search table.adv-search td.column {
  vertical-align: top;
}
div.search table.adv-search table.categories {
  width: 100%;
  border-collapse: collapse;
}
div.search table.adv-search table.categories td {
  width: 50%;
  padding: 2px;
  border-color: #D6D6D6;
}
div.search table.adv-search table.categories td img {
  display: block;
  /*border: 1px dashed gray;*/
  margin-left: auto;
  margin-right: auto;
}
div.search table.adv-search table.categories, div.search table.adv-search table.categories td {
  /*border: 1px dashed orange;*/
}
div.search table.adv-search table.categories td div label {
  display: block;
  vertical-align: middle;
  padding-top: 2px;
}
div.search table.adv-search table.categories td div {
  position: relative;
  margin-right: 20px;
  left: 20px;
  /*font-weight: bolder;*/
}
div.search table.adv-search table.categories td div input {
  position: absolute;
  top: auto;
  left: -20px;
}
div.search table.adv-search table.categories td div.child {
  position: relative;
  margin-right: 30px;
  left: 30px;
  font-weight: normal;
}
div.search table.adv-search table.categories td div.child input {
  position: absolute;
  top: auto;
  left: -20px;
}
div.search table.adv-search #dataTypes p {
  margin: 8px 0px;
  position: relative;
  margin-right: 20px;
  left: 20px;
  clear: both;
  vertical-align: bottom;
}
div.search table.adv-search #dataTypes p input {
  position: absolute;
  top: auto;
  left: -20px;
}
#tinySubmit input {
  width: 1px;
  height: 1px;
}

/* add/edit/remove/save/new */
#searchActions {
  background-color: white;
  border-top: 2px solid #A6CAF0;
  border-bottom: 2px solid #A6CAF0;
  padding: 6px 0px;
}
#searchActions p {
  text-align: center;
  margin: 6px 0px;
}
#searchActions p img.buttonAdd {
  width: 73px;
  height: 34px;
}
#searchActions p img.buttonEdit {
  width: 73px;
  height: 33px;
}
#searchActions p img.buttonRemove {
  width: 73px;
  height: 33px;
}
#searchActions p img.buttonSave {
  width: 73px;
  height: 34px;
}
#searchActions p img.buttonNew {
  width: 73px;
  height: 35px;
}


#adv-search-keywords td, #adv-search-keywords th {
  padding: 2px;
}
#adv-search-keywords th {
  border: none;
  font-weight: normal;
  text-transform: none;
  text-align: left;
  white-space: nowrap;
}

div.selectedCategory p {
  margin: 0px;
  font-weight: bold;
  position: relative;
  margin-right: 20px;
  left: 20px;
}
div.selectedCategory p input {
  position: absolute;
  top: auto;
  left: -20px;
}
div.selectedCategory p.green {
  font-weight: normal;
}
div.selectedCategory p.green i {
  font-style: normal;
  white-space: nowrap;  
}
div.selectedCategory p.green, #search-results td i, table.search-details td.datatype {
  color: #6CB054;
}
#search-results tr th a img {
  border: none;
  width: 5px;
  height: 8px;
}
#search-results tr.odd th, #search-results tr.even th {
  font-weight: normal;
  text-align: left;
}
#search-results td i, table.search-details td.datatype  {
  font-weight: bold;
  font-style: normal;
  text-decoration: none;
}
#search-results td a {
  text-decoration: none;
}
#search-results td a:hover {
  text-decoration: underline;
}
#search-results td p {
  margin: 0px;
}
#search-results tr.odd td, #search-results tr.odd th {
  background-color: #DEE7ED;  
}
#search-results tr.even td, #search-results tr.even th {
  background-color: white;
}
#search-results tr.odd td, #search-results tr.even td {
  vertical-align: top;
}
#search-results tr.sub-header td {
  color: black;
  font-weight: bold;
  padding: 4px 0px 4px 32px;
}
table.search-details {
  border-collapse: collapse;
  width: 100%;
}
table.search-details th {
  width: 20%;
}
table.search-details td {
  width: 80%;
}
table.search-details td, table.search-details th {
  padding: 4px;
}
table.search-details td.category {
  font-weight: bold;
}
table.search-details th {
  text-transform: uppercase;
  vertical-align: top;
  text-align: right;
  border-right: 3px solid gray;  
}
table.search-details tr.email th {
  border-right: none;
}
table.search-details th.attachment {
  text-align: left;
  text-transform: none;
}
table.search-details th.attachment img {
  vertical-align: middle;
}
table.search-details tr.border td, table.search-details tr.border th {
  border-bottom: 3px solid gray;  
}
table.search-details tr.border .attachments {
  padding-top: 16px;
  font-weight: bold;
}
table.search-details tr td.buttons, table.search-details tr th.buttons {
  border-top: 3px solid gray;  
}

/* next/back/prev */
table.search-details td table.actions {
  width: 100%;
}
table.search-details td table.actions td {
  width: 33%;
  padding: 0px;
}
table.search-details td table.actions td.prev {
  text-align: left;
}
table.search-details td table.actions td.back {
  text-align: center;
}
table.search-details td table.actions td.next {
  text-align: right;
}
table.search-details td table.actions td a img {
  border: 0px;
  width: 40px;
  height: 20px;
}

table.search-details td div.actions {
  float: right;
}
table.search-details td div.actions a,
table.search-details td div.actions a:active, 
table.search-details td div.actions a:visited {
  color: gray;
  font-weight: normal;
  text-decoration: none;
}
table.search-details td div.actions a:hover {
  text-decoration: underline;
}
table.search-details td div.actions a img {
  border: none;
  vertical-align: middle;
}
table.search-details td div.actions a img.print {
  width: 25px;
  height: 20px;
}
table.search-details td div.actions a img.email	 {
  width: 20px;
  height: 13px;
}
table.search-details td div.form table {
  width: 90%;
}
table.search-details td div.form table th {
  border: none;
  text-align: left;
  vertical-align: middle;
}
/* unused */
table.search-details td.text-actions a {
  background-color: gray;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 4px;  
}

table.categoryTabs {
  width: 100%;
}
div.dataType-index,
div.results div.pageSize,
table.categoryTabs td.selected, table.categoryTabs td.selectedLink, table.results-header td {
  background-color: #66AAC1;
}
#search-results tr.sub-header td,
table.categoryTabs td {
  background-color: #AAC7CC;
}
table.categoryTabs td {
  text-align: center;
  width: 16%;
  padding: 1px;
  background-image: url('../../img/topleft.gif');
  background-position: top left;
  background-repeat: no-repeat;
  border-bottom: 1px solid #fff;
  border-right: 1px solid #fff;
  border-left: 1px solid #fff;
}
table.categoryTabs td.placeholder {
  background-color: white;
  background-image: none;
}
table.categoryTabs td.selected, 
table.categoryTabs td.selectedLink {
  border-bottom: none;
}
table.categoryTabs td.link,
table.categoryTabs td.tabLink,
table.categoryTabs td.selectedLink {
  width: 10%;
}
table.categoryTabs td.link {
  background-color: white;
  background-image: none;
  font-weight: bold;
}
table.categoryTabs td.link,
table.categoryTabs td.link a:link, 
table.categoryTabs td.link a:active, 
table.categoryTabs td.link a:visited {
  color: black;
}
table.categoryTabs td.link a:hover {
  color: black;
}
table.categoryTabs td, 
table.categoryTabs td a:link, 
table.categoryTabs td a:active, 
table.categoryTabs td a:visited {
  color: #58595B;
  text-decoration: none;
}
table.categoryTabs td a:hover {
  color: white;
  text-decoration: underline;
}
table.categoryTabs td.selected,
table.categoryTabs td.selected a:link, 
table.categoryTabs td.selected a:active, 
table.categoryTabs td.selected a:visited,
table.categoryTabs td.selectedLink,
table.categoryTabs td.selectedLink a:link, 
table.categoryTabs td.selectedLink a:active, 
table.categoryTabs td.selectedLink a:visited {
  color: white;
}
table.results-header {
  width: 100%;
}
table.results-header td.left, table.results-header td.right {
  width: 50%;
  padding: 4px;
  color: white;
}
table.results-header td.right {
  text-align: right;
}
table.results-header td b {
  text-transform: uppercase;
}
table.results-header td table.pagination {
  border-collapse: collapse;
}
table.results-header td table.pagination td {
  padding: 0px 4px;
}
table.results-header td table.pagination td.numbers b {
  color: black;
}
table.results-header td table.pagination td.numbers b, table.results-header td table.pagination td.numbers a {
  padding: 0px 4px;
}
table.results-header td table.pagination td.numbers a {
  color: white;
  text-decoration: underline;
}
table.results-header td table.pagination td.numbers a:hover {
  color: #58595B;
  background-color: #AAC7CC;
}
table.results-header td table.pagination td a img {
  border: none;
}
div.dotted-line {
  margin: 5px 10px;
  height: 8px;
  line-height: 8px;
  background-image: url('../../img/search/dotted_line.png');
  background-position: top left;
  background-repeat: repeat-x;
}
div.search h3 {
  padding: 0px;
}
select.jurisdiction {
  width: 150px;
}
img.attachment {
  border: none;
}

div.search p.presearch {
  margin: 0px 0px 4px 0px;
  padding: 4px 20px 4px 4px;
  text-align: right;
  background-color: #AAC7CC;
}

div.search p.error {
  text-align: center;
}
div.search p.confirm-all-results {
  text-align: center;
  padding: 8px;
  border: 2px solid royalblue;
}
#adv-search-keywords td.separator {
  background-color: lightgrey;
  height: 1px;
  padding: 0px 10px;
}


#exclude-regions td.column label {
  display: block;
  position: relative;
  left: 20px;
  margin: 0px 20px 4px 0px;
}
#exclude-regions td.column label input {
  position: absolute;
  left: -20px;
}
div.search input.button {
  width: 6em;
}


div.results div.pageSize {
  padding: 4px;
  text-align: right;
  vertical-align: middle;
}
div.results div.orderBy,
div.results div.pageSize {
  color: white;
}
div.results div.orderBy {
  text-align: center;
}
div.results div.top-border {
  border-top: 1px solid #70BBD4;
}
img.basic-search-png {
  width: 750px;
  height: 16px;
}
img.advanced-search-png {
  width: 750px;
  height: 17px;
}

div.results table.index {
  border-collapse: collapse;
}
div.results table.index td.column {
  width: 50%;
  vertical-align: top;
  padding: 0px;
}

div.dataType-index {
  padding: 4px;
}
div.dataType-index p a:hover {
  text-decoration: underline;
  color: white;
  text-decoration: underline !IMPORTANT;
}
div.dataType-index p a:link,
div.dataType-index p a:active,
div.dataType-index p a:visited {
  color: white;
  text-decoration: none;
}
div.dataType-index p {
  margin: 0px;
  padding: 0px 4px;
  display: inline;
  white-space: nowrap;
  color: white;
}
div.dataType-index span {
  border-right: 1px solid #444;
}
div.dataType-index p.selected {
  font-weight: bold;
}
