/* -- ESTONIA CUSTOMISATION: Override some entries from digar.css */

/* Link colour from digar.css is too light */
a { color: #009cb8; }

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

/* 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 a { background-image: url(../images/digar/right-gr-e17fce06801ef0db8ff999ffdc7a95ae.png); }
.sidebar-nav .sidebar-nav-user, .sidebar-nav .sidebar-nav-user a { background-image: url(../images/digar/left-gr-black-3b031f9d47b9c00eb81f263d08788869.png); }

/* Needs to be wider to fit the "Article headlines" item */
.search-box-inputs-box { padding-left: 150px; }
.search-box-inputs-select { width: 150px; }

/* 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-color: #ddd; }

/* -- End digar.css overrides -- */

/* -- ESTONIA CUSTOMISATION: Override some entries from cookies.css */

a#deacookienotificationbarreadmorelink { color: #2195a3; text-decoration: none; }

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; }

/* -- End cookies.css overrides -- */

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

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

/* -- End primary colour changes -- */

/* ESTONIA CUSTOMISATION: Help page styling */
#allContent img { margin-bottom: 1rem; }

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

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

/* ESTONIA CUSTOMISATION: Extra definitions for the custom "sort" box, similar to those from the www.digar.ee CSS file */
.search-box-inputs-sort {display:block;position:relative;color:#fff;line-height:40px;overflow:hidden;width:165px;text-overflow:ellipsis;white-space:nowrap;padding:0 30px 0 15px}
.search-box-inputs-sort-box {background:#414141;display:block;height:40px;border:1px solid #fff;-webkit-border-radius:10px 10px 10px 10px;-moz-border-radius:10px 10px 10px 10px;-ms-border-radius:10px 10px 10px 10px;-o-border-radius:10px 10px 10px 10px;border-radius:10px 10px 10px 10px}

/* ESTONIA CUSTOMISATION: 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 */ }

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

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

/* ESTONIA CUSTOMISATION: Include the social bookmarks at the far right of the breadcrumbs */
div#deabreadcrumbsandsocialbookmarkscontainer { align-items: center; background-color: #F7F7F9; display: flex; justify-content: space-between; }

/* ESTONIA CUSTOMISATION: Cookies page heading colour, as requested by Frank */
div#deacookiespagecontentcontainer h2, div#deacookiespagecontentcontainer h3 { color: rgba(255,122,77,255); }

/* ESTONIA CUSTOMISATION: 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; }

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

/* ESTONIA CUSTOMISATION: To align user/language links at right */
div#deanavscontainer { display: flex; justify-content: space-between; }

/* ESTONIA CUSTOMISATION: 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; }
}

/* ESTONIA CUSTOMISATION: 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 */

/* ESTONIA CUSTOMISATION: Want the two date controls next to each other */
div#deasearchcontrolsdacontainer { display: flex; align-items: center; }

/* ESTONIA CUSTOMISATION: 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; }

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

/* ESTONIA CUSTOMISATION: 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; }

/* ESTONIA CUSTOMISATION: 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; }
}

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

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

/* ESTONIA CUSTOMISATION: 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; font-size:13px; }

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

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

/* ESTONIA CUSTOMISATION: 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; }

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

/* ESTONIA CUSTOMISATION: 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:#878787; 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;}

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

/* Logical section/page TOC nodes have a 21x18 icon as a background image */
/* ESTONIA CUSTOMISATION: 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; }

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

/* ESTONIA CUSTOMISATION: 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; }

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

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

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

/* ESTONIA CUSTOMISATION: 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; }
/* ESTONIA CUSTOMISATION: Extra space between the "(i)" link and the document link */
ul.datebrowserwhitneydocuments li.list-group-item a:first-child { margin-right: 0.3rem; }

/* ESTONIA CUSTOMISATION: 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;}

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

/* ESTONIA CUSTOMISATION: 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: 12px;  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 */

/* ESTONIA CUSTOMISATION: Some changes by NLE from last version */
select, input[type="text"], input[type="password"] { display: inline-block; background-color: #fff; box-shadow: #d5d5d5 0 0 0.15em 0.15em inset; border-radius: 6px; border: 1px solid #9a9a9a; vertical-align: top; }
select[disabled="disabled"] { color: gray; }
input[type="text"].trap{ display: none;}
