/*
 * VERIDIAN CORE CSS
 *
 * These definitions apply to all Veridian installations, regardless of the interface being used.
 * All CSS class names must start with "veridian".
 *
 * Copyright (C) 2006-2014  DL Consulting Ltd.
 *
 */

/* General element styling */

html, body
{
  height: 100%;
}

a
{
  cursor: pointer;  /* For Javascript "links" */
  text-decoration: none;
}

/* To get consistent display in all browsers */
body, form, p, table
{
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
}

fieldset
{
  border: none;
}

h3
{
  font-size: 11pt;
  font-weight: bold;
  margin-bottom: 2px;
  margin-top: 13px;
  padding-bottom: 2px;
  padding-top: 0px;
}

img
{
  border: none;
}

/* To get consistent checkbox display in all browsers */
input
{
  margin: 0px 0px 0px 0px;
}

legend
{
  font-weight: bold;
}


/* General classes that can be applied to any element */

.veridianoverlay
{
  margin: 0px 0px 0px 0px;
  padding: 0px 0px 0px 0px;
  position: absolute;
}

.veridianprintshow
{
  display: none;
}

.veridiansemitransparent
{
  -moz-opacity: 0.5;
  opacity: 0.5;
}

.veridianspaceaboveandbelow
{
  padding: 8px 0px 8px 0px;
}

.veridiantransparent
{
  -moz-opacity: 0.0;
  opacity: 0.0;
}


/* Specific classes */

a.veridiandeleteusertaglink, a.veridianeditmetadatavaluelink
{
  font-size: 7pt;
  vertical-align: top;
}

a.veridianeditusergroupslink, a.veridianlistusersallowingcommunicationslink, a.veridianuntickusercommunicationslink
{
  font-size: 8pt;
  font-weight: normal;
  vertical-align: top;
}

/* PDF links have a 18x18 icon as a background image */
a.veridianpdflink
{
  background-position: top left;
  background-repeat: no-repeat;
  height: 18px;
  line-height: 18px;
  padding-left: 23px;
  white-space: nowrap;
}

/* This is part of the CSS to position the footer at the bottom of the screen */
div#bodydiv
{
  min-height: 100%;
  position: relative;
}

/* This is part of the CSS to position the footer at the bottom of the screen */
div#footerdiv
{
  bottom: 0px;
  position: absolute;
  width: 100%;
}

div.userscoreboard div
{
  padding: 3px;
}

div#veridianbackgroundblocker
{
  background-color: black;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 90;  /* Must be more than everything except veridianpopup's z-index */
}

div.veridiancollapsibleregion
{
  border-bottom: 1px solid #C0C0C0;
}

div#veridiandocumentdisplayleftpanecontent
{
  height: 0px;  /* This is set to the correct height to fill the screen by code in veridian-documentdisplay.js */
  overflow: auto;
  width: 100%;  /* Critical to get the scrollbars to appear properly in IE */
}

div#veridiandocumentdisplayleftpanesectionleveltabcontentinactive
{
  padding: 10px 10px 10px 10px;
}

div#veridiandocumentdisplayleftpanesectiontitlecontainer
{
  font-weight: bold;
  padding: 5px 5px 5px 5px;
}

div.veridiandocumentdisplaypaneheaderbar
{
  border-bottom: solid 1px black;
  padding-left: 4px;
  padding-right: 4px;
}

div.veridiandocumentdisplaypaneheaderbar h2
{
  margin-bottom: 0px;
  margin-top: 0px;
  padding-bottom: 0px;
  padding-top: 0px;
}

div.veridianimagecontainerdiv
{
  margin: 5px 5px 5px 5px;
  position: absolute;
}

/* This must be the same as "veridianimagecontainerdiv", but without "position: absolute" */
div.veridianimagespacerdiv
{
  margin: 5px 5px 5px 5px;
}

div.veridianlogicalsectiontocnodecontainer, div.veridianpagetocnodecontainer
{
  padding-bottom: 3px;
  padding-left: 27px;  /* Crucial to get the link background image in the right place */
  padding-top: 3px;
}

/* Logical section/page TOC nodes have a 21x18 icon as a background image */
div.veridianlogicalsectiontocnodecontainer a.veridianlogicalsectiontocnodelink, div.veridianlogicalsectiontocnodecontainer span.veridianlogicalsectiongroupingnode, div.veridianpagetocnodecontainer a.veridianpagetocnodelink
{
  background-position: top left;
  background-repeat: no-repeat;
  margin-left: -27px;  /* Crucial to get the background image in the right place */
  padding-left: 27px;
}

div.veridianpageblock
{
  cursor: pointer;
  z-index: 40;  /* Must be more than veridianquerytermarea's z-index */
}

div#veridianpanojscontextmenu
{
  background-color: #333333;
  border: 2px solid #666666;
  display: none;
  padding: 4px;
  position: absolute;
  z-index: 60;  /* Must be more than all other PanoJS overlays we add */
}

/* Each PanoJS context menu link is expected to have a 18x18 icon as a background image */
div#veridianpanojscontextmenu a, div#veridianpanojscontextmenu a:link, div#veridianpanojscontextmenu a:visited
{
  background-position: top left;
  background-repeat: no-repeat;
  color: #BBBBBB;
  display: inline-block;
  font-size: 9pt;
  height: 18px;
  line-height: 18px;
  margin-bottom: 1px;
  margin-top: 1px;
  padding-left: 23px;
}

div#veridianpanojscontextmenu a:hover
{
  color: white;
}

div#veridianpanojscontextmenu div
{
  white-space: nowrap;  /* It's important everything is on one line, for the link icon display in particular */
}

div#veridianpanojscontextmenu div.veridianpanojscontextmenuheader
{
  color: white;
  padding-bottom: 4px;
  white-space: normal;  /* We want the header divs to wrap normally, otherwise long titles mess things up */
}

div#veridianpanojscontextmenuseparator
{
  border: 1px solid #666666;
  margin-bottom: 6px;
  margin-top: 6px;
}

div.veridianpanojscrosshair
{
  background-color: #444444;
  z-index: 50;  /* Must be more than most PanoJS overlays we add, except for veridianpanojscontextmenu */
}

div.veridianpanojsinverthighlight
{
  background-color: #404040;
  z-index: 25;  /* Must be less than the other PanoJS overlays we add (e.g. veridianquerytermarea, veridianpageblock) */
}

div.veridianpanojspagelabel
{
  background-color: white;
  z-index: 45;  /* Must be less than veridianpanojscrosshair's z-index */
}

div#veridianpanojstextcorrectionstatus
{
  padding-left: 10px;
}

div.veridianpopup
{
  background-color: white;
  border: 2px solid #CECECE;
  display: none;
  position: fixed;
  z-index: 100;  /* Must be more than everything else including veridianbackgroundblocker */
}

div.veridianpopupcontent
{
  padding: 10px 10px 10px 10px;
}

div.veridianpopupheader
{
  padding-bottom: 3px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 1px;
  text-align: center;
}

div.veridianpopupheader img.veridianpopupclose
{
  cursor: pointer;
  position: absolute;
  right: 0px;
  top: 4px;
}

div.veridianpopupheader span.veridianpopuptitle
{
  font-size: 11pt;
  font-weight: bold;
}

div.veridianquerytermarea
{
  z-index: 30;  /* Must be less than veridianpageblock's z-index */
}

div.veridianruntimeloggraph
{
  margin-bottom: 30px;
}

div#veridiansearchhistorydiv
{
  background-color: #F0F0F0;
  border: 3px solid #888888;
  display: none;
  padding: 20px;
  position: absolute;
  right: 0px;
  top: 22px;
}

div.veridiansearchpagecellheader
{
  background-color: #C0C0C0;
  color: #333333;
  font-size: 10pt;
  font-weight: bold;
  height: 30px;
  line-height: 30px;
  padding-left: 5px;
  min-width: 150px;
}

div.veridiansearchresultscontainer
{
  padding-left: 5px;
  padding-right: 5px;
}

div.veridianseparatedcollapsibleregion div.veridiancollapsibleregionheader
{
  border-left: 1px solid #C0C0C0;
  border-right: 1px solid #C0C0C0;
  border-top: 1px solid #C0C0C0;
}

div.veridianseparatedcollapsibleregion div.veridiancollapsibleregioncontent
{
  border-left: 1px solid #C0C0C0;
  border-right: 1px solid #C0C0C0;
}

div.veridiansnippettextcontainerdiv
{
  font-size: 90%;
  padding-top: 10px;
}

div#veridiantextcorrectselectedlinebox
{
  border-color: red;
  border-style: solid;
  z-index: 35;  /* Must be more than veridianquerytermarea's z-index and less than veridianpageblock's z-index */
}

div#veridianuseraccountpageuserinfotabcontent div
{
  padding: 3px;
}

div.veridianusercommentslistentry
{
  padding-bottom: 10px;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 10px;
}

div.veridianvlistentry
{
  padding-bottom: 15px;
  padding-top: 15px;
}

form#authenticateuserform div
{
  padding: 3px;
}

form#changeuserpasswordform div
{
  padding: 3px;
}

form#confirminvitenewuserform div
{
  padding: 3px;
}

form#edituserdetailsform div
{
  padding: 3px;
}

form#edituserpreferencesform div
{
  padding: 3px;
}

form#registernewuserform div
{
  padding: 3px;
}

form#resetuserpasswordform div
{
  padding: 3px;
}

input.veridiantextcorrectselectedline
{
  border-color: red;
}

/* Used for trapping bots submitting forms */
input.trap
{
  display: none;
}

span.veridiangrey
{
  color: #BBBBBB;
}

/* This is a span so we can include it in <a> tags without HTML validation errors */
span.veridianblockedimage
{
  background-color: #D8D8D8;
  display: block;
  margin: auto;
  text-align: left;
}

/* This is a span so we can include it in <a> tags without HTML validation errors */
span.veridiannothumbnailbox
{
  border: 1px solid #6D6D6D;
  color: #6D6D6D;
  display: block;
  margin: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
}

table.metadatainfotable
{
  /* This needs to be margin and not padding, for stupid IE */
  margin-bottom: 10px;
  margin-top: 10px;
}

table.metadatainfotable td
{
  padding-left: 5px;
  padding-right: 5px;
}

table.metadatainfotable td.content
{
  text-align: left;
  vertical-align: top;
}

table.metadatainfotable td.label
{
  font-weight: bold;
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
  width: 1%;
}

table#veridiandocumentdisplaytable
{
  border: solid 1px black;
}

table.veridiannextprevsearchresultpagelinks
{
  background-color: #F0F0F0;
  padding: 10px;
}

table#veridianpanojstextcorrectionleftpaneheadertable td
{
  white-space: nowrap;
}

table#veridiansearchpageadvancedsearchtabcontent td
{
  padding-bottom: 5px;
  padding-top: 5px;
}

table.veridianuseradmintable td
{
  border-top: solid 1px #C0C0C0;
}

table.veridianuseradmintable th
{
  text-align: left;
}

td.veridiancollapsibleregionheadercell, div.veridiancollapsibleregionheadercell
{
  background-color: #E0E0E0;
  color: #333333;
  cursor: pointer;
  font-family: Arial;
  font-size: 90%;
  line-height: 25px;
  padding: 5px;
  vertical-align: middle;
}

td#veridiandocumentdisplaypaneseparator
{
  background-color: #C2C2C2;
  border-left: solid 1px black;
  border-right: solid 1px black;
  cursor: w-resize;
}

td#veridiansearchpagetopleftcell
{
  background-color: #F0F0F0;
  border: 1px solid #909090;
  line-height: 25px;
  padding-bottom: 10px;
  text-align: left;
  vertical-align: top;
}

td#veridiansearchpagetopleftcell a
{
  font-size: 90%;
  white-space: nowrap;
}

td#veridiansearchpagetoprightcell
{
  background-color: #F0F0F0;
  border: 1px solid #909090;
  text-align: left;
  vertical-align: top;
}

td#veridiansearchpagebottomleftcell
{
  background-color: #F0F0F0;
  border: 1px solid #909090;
  line-height: 25px;
  text-align: left;
  vertical-align: top;
}

td#veridiansearchpagebottomleftcell a, td#veridiansearchpagebottomleftcell b
{
  font-size: 90%;
}

td#veridiansearchpagebottomrightcell
{
  border: 1px solid #909090;
  text-align: left;
  vertical-align: top;
}

td.veridiansearchtableleftcell
{
  padding-bottom: 2px;
  padding-left: 5px;
  padding-right: 2px;
  padding-top: 2px;
}

td.veridiansearchtablerightcell
{
  padding-bottom: 2px;
  padding-left: 2px;
  padding-right: 5px;
  padding-top: 2px;
}

td.veridiansearchtablesubcontrolcell
{
  background-color: #E0E0E0;
  color: #333333;
  padding: 5px;
  vertical-align: top;
  white-space: nowrap;
}

td.veridiantabcell
{
  background-color: #C0C0C0;
  border-bottom: 0px solid #909090;
  height: 30px;
  vertical-align: bottom;
}

td.veridiantabcell a
{
  border-left: 1px solid #909090;
  border-right: 1px solid #909090;
  border-top: 1px solid #909090;
  display: block;
  height: 22px;
  outline: 0px;
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
}

td.veridiantabcell a.veridiantabselected
{
  background-color: #F0F0F0;
  border-bottom: 1px solid transparent;
  color: #333333;
  padding-top: 2px;
}

td.veridiantabcell a.veridiantabnotselected
{
  background-color: #D0D0D0;
  border-bottom: 1px solid #909090;
  color: #505050;
  padding-top: 2px;
}

td.veridiantabcell a.veridiantabnotselected:hover
{
  background-color: #E8E8E8;
}

td.veridiantabspacercell
{
  background-color: #C0C0C0;
  border-bottom: 1px solid #909090;
  height: 30px;
}

td.veridiantcblockcell
{
  border-bottom: solid 1px grey;
  padding-bottom: 15px;
  padding-top: 15px;
}

td.veridianvlistentryactioncell
{
  padding-bottom: 15px;
  padding-left: 8px;
  padding-top: 15px;
  white-space: nowrap;
  vertical-align: top;
}

td.veridianvlistentryiconcell
{
  padding-bottom: 15px;
  padding-top: 18px;
  vertical-align: top;
}

td.veridianvlistentrymaincell
{
  padding-bottom: 15px;
  padding-top: 15px;
  vertical-align: top;
}


/* Richard's date browser stuff - top-level calendar */

span.datebrowserrichardmonth
{
  color: #BBBBBB;
}

td.datebrowserrichardyearmonths
{
  border-top: 1px solid black;
}


/* Richard's date browser stuff - month-level calendar */

div.datebrowserricharddayofmonth
{
  font-weight: bold;
}

div.datebrowserrichardmonthdaytext, div.datebrowserrichardmonthdaytext a, div.datebrowserrichardmonthdaytext a:link, div.datebrowserrichardmonthdaytext a:visited
{
  font-size: 8pt;
}

table.datebrowserrichardmonthtable
{
  border-bottom: 1px solid white;
  border-left: 1px solid white;
  border-right: 1px solid white;
}

td.datebrowserrichardmonthday
{
  border: 1px solid white;
  padding: 5px 5px 5px 5px;
}

th.datebrowserrichardmonthheader
{
  border: 1px solid white;
  padding-bottom: 5px;
  text-align: center;
  width: 90px;
}

tr.datebrowserrichardaltrow
{
  background-color: #E0E0E0;
  color: black;
}

ul.datebrowserricharddocuments
{
  margin-bottom: 4px;
  margin-left: 0px;
  margin-top: 4px;
  padding-left: 0px;
}

ul.datebrowserricharddocuments li
{
  list-style: none;
}

ul.datebrowserricharddocuments li a, ul.datebrowserricharddocuments li a:link, ul.datebrowserricharddocuments li a:visited
{
  font-size: 8pt;
}


/* Whitney's date browser stuff */

ul.datebrowserwhitneydayselector
{
  list-style: none;
  margin: 0px;
  padding: 0;
}

ul.datebrowserwhitneydayselector li
{
  float: left;
  text-align: center;
}

ul.datebrowserwhitneydaysofweek
{
  list-style: none;
  margin: 0px;
  padding: 0;
}

ul.datebrowserwhitneydaysofweek li
{
  float: left;
  text-align: center;
}

ul.datebrowserwhitneymonthselector
{
  list-style: none;
  margin: 0px;
  padding: 0;
}

ul.datebrowserwhitneymonthselector li
{
  text-align: center;
}


/* Home page styles */

#veridianhomepagecontent
{
  background-color: #F0F0F0;
  height: 100%;
  padding: 10px 0 10px 0;
  width: 100%;
}

#veridianhomepageleftcolumn
{
  padding: 0px 10px 0px 10px;
  width: 30%;
}

#veridianhomepagemiddlecolumn
{
  border-left: 2px dotted #696969;
  border-right: 2px dotted #696969;
  padding: 0px 10px 0px 10px;
  width: 33%;
}

#veridianhomepagemiddlecolumnwide
{
  border-right: 2px dotted #696969;
  padding: 0px 10px 0px 10px;
  width: 48%;
}

#veridianhomepagerightcolumn
{
  padding: 0px 10px 0px 10px;
  width: 30%;
}

#veridianhomepagerightcolumnwide
{
  padding: 0px 10px 0px 10px;
  width: 44%;
}

#veridianhomepagesearch
{
  text-align: center;
}

#veridianhomepageabout div
{
  margin-bottom: 10px;
}

#veridianhomepagesampler
{
  text-align: center;
}

#veridianhomepagetextcorrectscoreboard
{
  margin-bottom: 5px;
}

.veridianhomepageheading
{
  color: #474744;
  font-size: 15px;
  margin-bottom: 5px;
  min-height: 35px;
  text-align: center;
  text-transform: uppercase;
}

.veridianhomepagebrowseicon
{
  text-align: center;
}

.veridianhomepagebrowseicon img
{
  margin: 10px;
}



/* CSS changes for printing */
@media print
{
  .veridianprinthide
  {
    display: none;
  }

  .veridianprintshow
  {
    display: inline;
  }

  div.veridianquerytermarea
  {
    display: none;

    /* Use a black outline around query terms instead of semi-transparent highlighting
       Sadly this doesn't work on IE: the divs become white boxes covering the text!
      background-color: transparent;
      border: 1px solid black;
    */
  }

  div.veridianimagecontainerdiv
  {
    margin: 5px 5px 5px 5px;
    position: static;
  }

  div.veridianimagespacerdiv
  {
    display: none;
  }

  img.veridianimage
  {
    float: left;
    position: relative;
  }
}
