
/* ---- Override some entries from digar.css ---- */

/* Link colour from digar.css is too light */
a { color: #005e6e; text-decoration: underline; }

/* More generous line height (same as default Veridian) */
body { line-height: 1.5; font-size: 16px; }

/* Reduce large left padding */
ol, ul { padding-left: 20px; }

/* Undo massive buttons */
.btn { min-width: initial !important; }
.btn-sm { padding-left: 0.625rem; padding-right: 0.625rem; }

/* Don't want fixed footer height, or absolute positioning, or very high z-index */
footer#footer { height: auto !important; padding-bottom: 1rem; position: static; z-index: auto !important; }

/* Image paths that work with Veridian */
#footer { background-image: url(../images/digar/top-gr-f0023425a8ce2b5330a61caac5dac3fd.png); }
.main-nav li { background-image: url(../images/digar/right-gr-e17fce06801ef0db8ff999ffdc7a95ae.png); background-repeat: no-repeat; background-size: 100% 100%; }
.sidebar-nav .sidebar-nav-user, .sidebar-nav .sidebar-nav-user a { color: #ff9571; background-image: url(../images/digar/left-gr-black-3b031f9d47b9c00eb81f263d08788869.png); }
.site-header a { display: inline; }
.site-header a:focus { outline:thin dotted; }

.search-box { background: #efefef; }
.search-box-inputs { margin:0;padding-block:10px;padding-inline:10px;}
@media (max-width: 700px)
{
  .search-box-inputs {padding-inline:5px;}
}
.search-box-inputs-label { width: 120px; margin: 0; }
/* Needs to be wider to fit the "Article headlines" item */
.search-box-inputs-box { padding-left: 150px; padding: 0 45px 0 161px; margin: 10px 10px 10px 125px; }
.tip-box li {padding: unset;}
.tip-box.tip-box-invert { font-size:90%;color:#999;background: #fff;}
/* Improved small-screen behaviour: remove "FIND" label, and tighten up margins */
@media (max-width: 700px)
{
  .search-box-inputs-box { margin: 5px; }
  .search-box-inputs-label { display: none; }
}

/* Background image works strangely, so just use a block colour */
.site-header { background: #ddd; }

.btn-search-detail { color: #005e6e; font-size: 14px; }
.search-box-filter-includes { font-size: 14px; }
.search-box-filter-includes label { color: #000; opacity: .6; }

/* ---- Override some entries from cookies.css ---- */

a#deacookienotificationbarreadmorelink { color: #005e6e; }

button#deacookienotificationbaracceptallbutton { background-color: #FF7A4D; border: none; -webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px; }

button#deacookienotificationbarsetpreferencesbutton { background-color: #78D9E4; color: black; border: none; -webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px; }

/* Change to fit into the Veridian z-index values -- needs to be high, but less than the .modal-backdrop value */
div#deacookienotificationbar { z-index: 1035; }

.hiddenspan { color: #000; }

/* ---- New primary colour -- override all veridian.css entries referencing "brand-primary" ---- */

a svg, button svg { fill: #005e6e; }
a:hover { color: #145b63; text-decoration: none; }
a:hover svg, button:enabled:hover svg { fill: #006F7D; /* Darkened by 15% */ }
.btn-light { color: #005e6e; }
.maincolor, .textcorrectblockcolor { background-color: #005e6e; }
.textcorrectcompletelycorrectblockcolor.transparent { border: solid 2px #005e6e; /* Not lightened because it's already quite light */ }
.autocomplete-suggestion b { color: #005e6e; } /* Used for the term highlighting */
div.qapageblock { background-color: #47BBC9; /* Lightened by 15% */ }
#searchresultyeargraphtitle { background-color: #005e6e; }
.page-item.current .page-link { background-color: #005e6e; border-color: #005e6e; }
span.percentageindicator { background-color: #005e6e; }

/* Light grey background, to match old version */
body, div#deaheaderseparatelogocontainer { background-color: #F9F9F9; }

/* ---- New layout for better display on Bootstrap 5.3 ---- */

div.widthrestrictiondefault { max-width: 1200px; }

/* Social media styling */
.jssocials-share-link { border-radius: 0; }

/* Fix bad vertical alignment of the checkboxes and radio buttons */
input[type="checkbox"], input[type="radio"] { margin-top: 1px; }

/* Some changes by NLE from last version */
select[disabled="disabled"] { color: gray; }
input[type="text"].trap{ display: none;}

/* ---- Header ---- */

/* To align user/language links at right */
div#deanavscontainer { display: flex; justify-content: space-between; }
div#deanavscontainer a { text-decoration: none; }
div#deanavscontainer a:hover { text-decoration: underline; }

/* Custom header display */
div#deaheaderintegratedlogocontainer { flex-grow: 1; padding: 2px; }  /* To left align */
div#deaheaderseparatelogocontainer { padding: 5px; }
div#navbarcollapsed { flex-grow: 0; }
div#navbarcollapsed .dropdown-toggle { line-height: 40px; padding: 0 10px; }
#sidebar-nav { height: 40px; }
#sidebar-nav a:hover { text-decoration: underline; color: #78D9E4}

/* For full width */
#navbarcollapseddropdown a { display: block; }

/* Responsiveness behaviour desired for the navigation bar */
@media (max-width: 520px)
{
  /* Hidden altogether on very small screens */
  #deaheaderintegratedlogocontainer { display: none; }
}
@media (max-width: 850px)
{
  /* On smallish screens the main navigation bar collapses and the logo is integrated into the navigation bar */
  #deaheaderseparatelogocontainer { display: none; }
  #main-nav { display: none !important; }
  .site-header { background: none; }
}
@media (min-width: 851px)
{
  /* On larger screens the normal display applies and the small-screen-only elements are hidden */
  #deaheaderintegratedlogocontainer { display: none; }
  div#navbarcollapsed { display: none; }
}

/* Take up the full width, to match the old site */
header#header > div:first-child { margin: 0; width: 100%; }

/* To put the background images in the right place with two user links */
nav.sidebar-nav li.my-account-link { background-image: none; }
nav.sidebar-nav li.my-account-link a { padding-right: 0px; }
nav.sidebar-nav li.logout-link a { background-image: none; }

/* ---- Home page ---- */

@media (max-width: 800px) {
  div#homepagecontent { display: block; }
}

div#homepageleftcolumn { flex: 1; }
div#homepagemiddlecolumn { flex: 1.5; }

/* Need padding before the text correction stats */
div#homepagesampler { padding-bottom: 20px; }

/* Formatting of blue boxes in middle of home page */
ul#deahomepagepublicationtypeslist { font-size: 12pt; list-style-type: none; margin: 0; padding: 0 0 1em 0; }
ul#deahomepagepublicationtypeslist li { margin-top:0.5em; display: block; background-color: #78D9E4; border:1px solid #5BBECA; border-radius: 6px; font-size:18px; text-align: center; }
ul#deahomepagepublicationtypeslist li a { color: #3f3f3f; padding:8px; display: block; text-decoration: none; }

div.deahomepagedateselectorcell { padding-top: 15px; }

fieldset#puq-field-set > legend { font-size: 1rem; font-weight: 400; }

/* ---- Help page ---- */

/* Help page styling */
#allContent img { margin-bottom:1rem; max-width:100%;}

/* ---- Search page ---- */

#search-box-dropdown-button { width: 150px; color: #fff; background: #3f3f3f; border: 1px solid #999; border-radius: 10px 0 0 10px; text-align: left; font-size: 90%; }
#search-box-dropdown-button:hover { color: #fff; }

.search-box-inputs-select-box {position:relative;display:flex;border:0;height:unset;}
.search-box-inputs-select {padding: 0 20px 0 15px;}
.search-box-inputs-input { color: #3f3f3f; height: unset; }
.search-box-inputs-select:after {right:6px;}
.search-box-inputs-submit { position: relative; height: unset; }

/* Match background colour from old site */
.autocomplete-suggestion.dictionary-tag { background-color: #e6ffe6; }

/* Copied from the www.ester.ee CSS file and modified to suit Veridian */
.keyboardInputInitiator { cursor: pointer; position: absolute; right: 58px; top: 17px; z-index: 5; }

#searchhistorylabel {float:right;padding:5px 3px;position:relative;}
#searchhistorylink {margin-right:7px;}

#deasearchboxadvancedsearchcontent {margin-left:auto;margin-right:auto;}

/* Extra definitions for the custom "sort" box, similar to those from the www.digar.ee CSS file */
#sort-box-dropdown-button {color:#fff;background-color:#3f3f3f;position:relative;line-height:40px;overflow:hidden;width:173px;text-overflow:ellipsis;white-space:nowrap;padding:0 30px 0 15px;border:1px solid #fff;text-align:left;}
#sort-box-dropdown-button::after {display:block;position: absolute;top:18px;right:12px;}

/* Formatting of the access possibilities table cells */
div.deaaccesspossibilitiesdivtable > div > div:first-child { padding: 0 1rem; }

/* Include the social bookmarks at the far right of the breadcrumbs */
div#deabreadcrumbsandsocialbookmarkscontainer { background-color: #F7F7F9; display: flex; justify-content: space-between; flex-direction: column;  }
@media (min-width: 700px)
{
  div#deabreadcrumbsandsocialbookmarkscontainer { flex-direction: row; }
}

/* No padding on this cell, to match the main cell */
div.searchresultnumbercell { padding-top: 0px; }

/* Override left padding from digar.css */
ol.searchresults { padding-left: 0px; }

/* Format the number and main link of the search results, similarly to www.digar.ee */
ol.searchresults div.searchresultnumbercell { font-family: "Roboto Condensed",Arial,Helvetica,sans-serif; font-size:20px; color:#3f3f3f; margin-bottom:0.3em; }
ol.searchresults .vlistentrymaincell{ color:#3f3f3f; line-height: 1.4; }
ol.searchresults .vlistentrymaincell div:first-child { font-family: "Roboto Condensed",Arial,Helvetica,sans-serif; font-size:20px; font-weight: bold; line-height: normal; margin-bottom:0.1em;}
ol.searchresults .vlistentrymaincell div:first-child a{ color:#3f3f3f;}

.pager { height: 40px; }
/* Remove pager link underline */
.pager a {text-decoration: none;}
.pager li.disabled { color: #ccc; }

/* A bit more padding at the left, but none for the search results list */
section#searchpagesearchresults { padding-left: 1rem; }

a.permalink {word-wrap:anywhere;}

/* ---- Cookies page ---- */

/* Cookies page heading colour, as requested by Frank */
div#deacookiespagecontentcontainer h2, div#deacookiespagecontentcontainer h3 { color: #c73200; }

/* Cookie selection popup styles */
div#deacookieselectionpopup section p { font-size: inherit !important; }
div#deacookieselectionpopupbuttoncontainer { padding: 1.5rem 0 0.5rem 0; text-align: center; }
div#deacookieselectionpopupbuttoncontainer button { -webkit-border-radius:4px;-moz-border-radius:4px;-ms-border-radius:4px;-o-border-radius:4px;border-radius:4px; }
div#deacookieselectionpopupbuttoncontainer button:hover { opacity: 0.7; }
button#deacookieselectionpopupsavebutton { background-color: #78D9E4; color: black; border: none; }
button#deacookieselectionpopupacceptallbutton, button#deacookieselectionpopuprejectallbutton { background-color: #FF7A4D; border: none; }

p#deacookieselectionpopupnecessarytext, p#deacookieselectionpopuppreferencestext, p#deacookieselectionpopupstatisticstext { font-size: 14px; }

/* ---- Date browser page ---- */

#deadatetable { display: flex; flex-direction: row; }
#deadatebrowsercell { flex: 1; }
#deadocumentselectorcell { flex: 2; }
@media (max-width: 700px)
{
  #deadatetable { flex-direction: column; }
  #deadocumentselectorcell { flex: 1; }
}

/* Formatting of the date browser legend cells */
div.deadatebrowserlegendwrap { padding-top: 10px; padding-bottom: 10px; }
div.deadatebrowserlegend > div > div:first-child { padding-bottom: 5px; padding-right: 5px; width: 30px; }

div.deadatebrowsercell {display: flex; flex-direction: row;}
div.deadatebrowsercell > * {flex: 1;}
div.deadatebrowsercell > #datebrowserwhitneymonthselectorcontainer {flex: 1.25;}

/* Change where margin is, and make the days of week bold */
ul.datebrowserwhitneydaysofweek { margin: 0.5rem 0 0 0; }
ul.datebrowserwhitneydaysofweek li { font-weight: bold; }

ul.datebrowserwhitneydayselector li > span { word-wrap: break-word; }

/* Orange border around selected day */
ul.datebrowserwhitneydayselector li.datebrowserwhitneyselectedday { border: solid 2px #FF7A4D; }

/* No border on day selector links, white text (due to the dark background colour), and bold */
ul.datebrowserwhitneydayselector li.datebrowserwhitneyselectedday a { border: none; color: white; background-color: transparent; font-weight: bold; }

ul.datebrowserwhitneydayselector li a { color: white; background-color: transparent; border: solid 2px #FF7A4D;  border-radius: 0;}

/* Override top margin from digar.css */
ul.datebrowserwhitneydocuments { margin-top: 0; }

/* Reduced padding and no internal border in document list, to reduce vertical space usage */
ul.datebrowserwhitneydocuments li.list-group-item { border: none; padding: 0.5rem; }
/* Extra space between the "(i)" link and the document link */
ul.datebrowserwhitneydocuments li.list-group-item a:first-child { margin-right: 0.3rem; }

div.deadocumentselectcell { padding-left: 30px; }
div.deadocumentselectcell > h3 { margin-top: 0px; }
div.deadocumentselectedcell { margin-bottom: 20px; }
@media (max-width: 700px)
{
  div.deadocumentselectcell { padding-left: 0; }
}

/* ---- Publication page ---- */

div.deapublicationaboutpagedivtable { width: 100%; }

/* Responsiveness behaviour desired for the publication-level page */
@media (max-width: 850px)
{
  div.deapublicationaboutpagedivtable > div > div { display: block; width: 100% !important; }
  div.deapublicationdetailsforlargescreensonly { display: none !important; }
  div.deapublicationdetailsforsmallerscreensonly { display: block !important; }
}
@media (min-width: 851px)
{
  div.deapublicationdetailsforlargescreensonly { display: block !important; }
  div.deapublicationdetailsforsmallerscreensonly { display: none !important; }
}

/* Metadata table on publication page */
div.deapublicationmetadatainfo { display: table; }
div.deapublicationmetadatainfo > div { display: table-row; }
div.deapublicationmetadatainfo > div > div { display: table-cell; padding-bottom: 0.2rem; vertical-align: top; }
div.deapublicationmetadatainfo > div > div:first-child { padding-right: 1em; white-space: nowrap; width: 1%; } /* Take up minimum space without wrapping */

/* Want the two date controls next to each other */
div#deasearchcontrolsdacontainer { display: flex; align-items: center; flex-direction: column; }
@media (min-width: 851px)
{
  div#deasearchcontrolsdacontainer { flex-direction: row; }
}

/* Custom display of search filters */
div#deasearchfilterscontainer { float: left; }
div#deasearchfilterscontainer a:first-child { margin-right: 0.5rem; text-transform: uppercase; vertical-align: middle; }
div#deasearchfilterscontainer .badge { margin-top: 5px; }

/* Make these links look like buttons */
div.vlistentryactioncell a { background-color: #ddd; border:1px solid #bbb; padding:4px 8px; font-family: "Roboto Condensed",Arial,Helvetica,sans-serif; border-radius: 6px; color: #3f3f3f; display: inline-block; margin-bottom:0.5em; text-decoration: none; }

/* Publicaiton browser filters */
#deapublicationfilterform {background-color: #CCC; margin-bottom: 10px; padding: 5px;}

div.deapublicationfilterrow { display: flex; flex-wrap: wrap; justify-content: space-around; }
div.deapublicationfilterrow > * { width: unset; }
@media (max-width: 701px)
{
  div.deapublicationfilterrow > * { width: 100%; }
}

div.deapublicationfiltercell { display: flex; flex-direction: row; }
div.deapublicationfilterheader { display: flex; margin-right: 0.5rem; align-items: center; justify-content: flex-end; font-size: 90%; width: 110px; }
div.deapublicationfilterrow select { font-size: 90%; }

/* To separate the document list from the dropdown selector */
ul#deapublicationyearbrowserdocuments { margin-top: 10px; }

/* Custom publication/tag browser hlist entry styling */
ul#publicationbrowserhlist, ul#sectionclassifierhlist { justify-content: start; -webkit-box-pack: start; -webkit-justify-content: start; -ms-flex-pack: start; }
ul#publicationbrowserhlist > li.page-item, ul#sectionclassifierhlist > li.page-item { min-width: 36px; }
ul#publicationbrowserhlist > li.page-item > a.page-link, ul#sectionclassifierhlist > li.page-item > a.page-link { display: inline-block; white-space: nowrap; border:1px solid #ddd; border-radius: 8px; color: #666; font-size: 14px;  line-height: 20px; padding: 3px 10px; text-transform: uppercase; }
ul#sectionclassifierhlist > li.page-item > a#sectionclassifierhlistentryselected { background-color: #78D9E4; border:1px solid #5BBECA; color: #3f3f3f; } /* Colours match deahomepagepublicationtypeslist above */

/* ---- Document page ---- */

div.persistentlinkurl { color: #3f3f3f; }

/* Custom context menu item */
div#viewercontextmenupopup div.deareportpageproblemlinkcontainer a { background-image: url(../../../../web/images/icontext_invert.gif); }

/* Logical section/page TOC nodes have a 21x18 icon as a background image */
/* Custom image for "disabled" nodes */
span.deasectionlinkwithinviewerdisabled { background-image: url(../images/icontext_disabled.gif); background-position: center left; background-repeat: no-repeat; margin-left: -27px; /* Crucial to get the background image in the right place */ padding-left: 27px; }

/* ---- User account ---- */

/* Format custom "make administrator" links the same as other links in user admin table */
a.deamakeadministratorlink { font-size: 0.8rem; font-weight: normal; vertical-align: top; /* For superscript-style display */ }

/* Cookie information table (on "cookies" page) */
table.deacookieinfotable { margin-bottom: 1.5rem; width: 100%; word-wrap:anywhere;}
table.deacookieinfotable th { background-color: rgba(204,204,204,255); }
