/*
 * ==============================================
 * Skin for oXygen generated WebHelp.
 * ==============================================
 */

@import (reference) "cobalt-props.less";

@import (css) url(@headersFontUrl);
@import (css) url(@contentFontUrl);

body {
  .content-font;
}

/*
 * ------------------------------------------------------------------
 *
 * Fight with bootstrap
 *
 */
.navbar-brand {
  height: auto;
}

.navbar {
  background-image: none;
  border: none;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}



.wh_header {
  .header-bgr;
  padding: 0;
  border-bottom: 1px solid @color-cool-blue-lightest;
}

a,
a:hover,
a:visited {
  color: @linkColor;
}

a:hover {
  text-decoration: none;
}

.wh_topic_content a {
  text-decoration: underline;
}

/*
 * ------------------------------------------------------------------
 *
 * Publication titles
 *
 */

.wh_publication_title > a {
  padding: 1em 0 ;
  color: @publicationTitleColor;
  font-weight: bold;
  line-height: 1em;
  font-size: 2em;
  .headers-font;
}

@media only screen and (min-width: 768px) {

  .wh_topic_page .wh_header {
    padding: 0;
  }
}


/*
 * ------------------------------------------------------------------
 *
 * Menu
 *
 */

.wh_top_menu {
  margin: .4em 0;
}

.wh_top_menu ul a {
  font-size: 1.3em !important;
  color: @menuColor;
}

/* The menu bar*/

.wh_top_menu > ul > li > .topicref {
  font-weight: bold;
  .headers-font;
}

/* The submenus */
.wh_top_menu ul ul {
  background-color: @submenuBgr;
}

@media only screen and (min-width: 768px) {

  .wh_top_menu > ul > li > .topicref > a {
    background-color: @menuBgr;
    text-transform: uppercase;
    margin: 0 2px;
    padding-top: 1em;
    padding-bottom: 1em;
    border: none;
  }

  /* Menu bar */
  .wh_top_menu ul li a:focus,
  .wh_top_menu ul li a:hover {
    background-color: @hoveredMenuBgr;
    color: @hoveredMenuColor;
  }

  /* Sub menus */
  .wh_top_menu ul ul li {
    border: none;
  }
  .wh_top_menu ul ul li a {
    color: @color-white;
  }

  .wh_top_menu ul li ul a:focus,
  .wh_top_menu ul li ul a:hover {
    color: @submenuColor;
    transition: background-color .25s ease-out 0s,
    color .3s ease-out 0s;
  }

  .wh_top_menu ul ul li a:focus,
  .wh_top_menu ul ul li a:hover {
    color: @hoveredSubmenuColor;
    background-color: @hoveredSubmenuBgr;
    text-decoration: underline;
  }

  .wh_top_menu ul ul li.has-children:after {
    color: @submenuColor;
  }
}

@media only screen and (max-width: 767px) {
  .wh_top_menu li a {
    color: @menuColor
  }

  .wh_top_menu li.active a {
    color: @hoveredMenuColor;
  }

  .wh_top_menu li.active {
    background-color: @hoveredMenuBgr;
  }

  .wh_top_menu li.active > span a {
    background-color: rgba(0, 0, 0, .07);
  }

  .wh_toggle_button.navbar-toggle,
  .wh_toggle_button.navbar-toggle:focus {
    border: none;
    border-color: @mobileMenuToggleColor;
    background-color: @mobileMenuToggleBgr;
  }

  .wh_toggle_button.navbar-toggle .icon-bar {
    background-color: @mobileMenuToggleColor;
  }

  .wh_top_menu ul ul li {
    border: none;
  }
}

@media only screen and (min-width: 768px) {
  .wh_topic_page .wh_top_menu_and_indexterms_link {
    display: inline-block !important;
    padding: 0;
  }
}

/*
 * ------------------------------------------------------------------
 *
 * Link to the index.
 *
 */

@media only screen and (min-width: 768px) {

  .wh_topic_page .wh_indexterms_link {
    float: none;
    display: inline-block;
  }
  .wh_topic_page .wh_indexterms_link a:before {
    position: relative;
    padding: 14px 14px 14px 0;
    top: 0;
    bottom: 0;
    margin: 0;
  }
}

.wh_indexterms_link a:before {
  color: @indextermsLinkCol;
  font-size: 1.6em;
  position: relative;
}

.wh_indexterms_link a span {
  display: none;
}

@media only screen and (max-width: 767px) {
  .wh_indexterms_link a:before {
    bottom: 0;
  }
}

/* 
 * Welcome area
 */
 .wh_welcome:not(:empty) {
     color: @welcomeAreaColor;
     text-shadow: none;
 }

/*
 * ------------------------------------------------------------------
 *
 * Tiles
 *
 */

.wh_tile_shortdesc {
  color: @tileShortDescColor;
  font-weight: 400;
  font-size: 1.4em;
  margin-top: 0.5em;
  text-align: left;
}

.wh_tile_title a {
  text-decoration: none;
  text-transform: none;
  text-align: left;
  color: @tileTitleColor !important;
  font-size: 1.5em;
  font-weight: bold;
  .headers-font;
}

@media only screen and (max-width: 767px) {
  .wh_tile > div {
    height: auto;
  }
}

/*
 * ------------------------------------------------------------------
 *
 * Tree TOC for the main page.
 *
 */
.wh_main_page_toc {
  padding-left: 2em;
  border: none;
  background-color: @tocEntryBgr;
}

.wh_main_page_toc a {
  color: @tocEntryColor;
  font-size: 1.5em;
}

.wh_main_page_toc .wh_main_page_toc_accordion_header:before {
  content: "b"; /* expand symbol */
  left: -0.5em !important;
  background-color: @tocEntryBgr;
  font-size: 1.5em;
}

.wh_main_page_toc .wh_main_page_toc_accordion_header.expanded:before {
  content: "c"; /* collapse symbol */
}


.wh_main_page_toc > .wh_main_page_toc_accordion_header,
.wh_main_page_toc > .wh_main_page_toc_entry {
  padding:0.5em;
  margin: 0.5em;
  font-weight: bold;
  border-bottom: 1px solid @tocBorderColor;
}

.wh_main_page_toc > .wh_main_page_toc_accordion_header .topicref,
.wh_main_page_toc > .wh_main_page_toc_entry .topicref {
  .headers-font;
}

.wh_main_page_toc_accordion_header.expanded {
  border-bottom: none !important;
  margin-bottom: 0;
}
.wh_main_page_toc_accordion_header.expanded + .wh_main_page_toc_accordion_entries {
  margin: 0 .5em .5em .5em;
  border-top: none;
}

.wh_main_page_toc_accordion_entries{
  border-bottom: 1px solid @tocBorderColor;
}

.wh_main_page_toc .wh_main_page_toc_accordion_header:hover,
.wh_main_page_toc > .wh_main_page_toc_entry:hover{
  background-color: @tocEntryBgr;
}

.wh_main_page_toc .wh_main_page_toc_accordion_header:hover .topicref,
.wh_main_page_toc > .wh_main_page_toc_entry:hover .topicref{
  text-decoration: underline;
}

.wh_main_page_toc .wh_main_page_toc_accordion_header,
.wh_main_page_toc > .wh_main_page_toc_entry,
.wh_main_page_toc_accordion_entries {
  background-color: @tocEntryBgr;
  text-align: left;
}

.wh_main_page_toc .wh_toc_shortdesc {
  color: @tocShortDescColor;
  background-color: transparent;
  font-weight: normal;
  font-size: 1.4em;
}

.wh_main_page_toc_accordion_header:before {
  color: @tocEntryColor;
}

.wh_main_page_toc .expanded {
  border: none;
}

/* ---------------------------------   */

.wh_main_page .wh_content_area {
  background-color: @mainPageContentBgr;
  padding: 4em 0 2em 0;
  color: @mainPageContentColor;
  text-align: center;
  align-items: center;
}

/*
 * ------------------------------------------------------------------
 *
 * Search area
 *
 */


.wh_search_input {
  padding: 4em 0;
  margin: 0;
  align-items: center;
  color: @searchFieldColor;
  background-color: @searchBgr;
  text-align: center;
}

.wh_search_textfield {
  border: solid 1px @searchFieldBorderColor;
  color: @searchFieldColor;
  background-color: @searchFieldBgr;
  padding: 0 .4em;
  height: 2.1em;
  font-size: 1.1em;
}

.wh_search_textfield {
  border-radius: @searchFieldBorderRadius;
}

.wh_search_button {
  border-radius:  0 @searchFieldBorderRadius @searchFieldBorderRadius 0 !important;
  background-color: @searchButtonBgr;
  color: @searchButtonColor;
  padding: 0.3em 1.1em;
}

.wh_search_button:hover {
  background-color: @searchButtonHoverBgr;
}

@media only screen and (min-width: 768px) {

  .wh_search_textfield {
    height: 2em;
    font-size: 2em;
  }

  .wh_search_button {
    height: 2em;
    font-size: 2em;
  }
}

/* Search autocomplete icons */
.search-autocomplete-proposal-type-history a,
.search-autocomplete-proposal-type-history a:hover,
.search-autocomplete-proposal-type-history a:visited,
.search-autocomplete-proposal-type-history a:active{
  text-decoration: none;
  color:@mainPageContentColor;
  font-size: 0.8em;
}
.ui-state-active .search-autocomplete-proposal-type-history a,
.ui-state-active .search-autocomplete-proposal-type-history a:hover,
.ui-state-active .search-autocomplete-proposal-type-history a:visited,
.ui-state-active .search-autocomplete-proposal-type-history a:active{
  color: @searchPageBgr;
}

/* Do not allow the text to go beneath the search button  */
@media only screen and (min-width: 768px) {
  .wh_search_textfield {
    padding-right: 3em;
  }
}

/* Search field placeholder */

::-webkit-input-placeholder {
  color: @searchFieldColor;
}

:-moz-placeholder { /* Firefox 18- */
  color: @searchFieldColor;
}

::-moz-placeholder { /* Firefox 19+ */
  color: @searchFieldColor;
}

:-ms-input-placeholder {
  color: @searchFieldColor;
}

/* Change Autocomplete styles in Chrome */
:-webkit-autofill,
:-webkit-autofill:hover,
:-webkit-autofill:focus {
  border: 1px solid @searchFieldBorderColor;
  -webkit-text-fill-color: @searchFieldColor;
  -webkit-box-shadow: none;
  transition: background-color 5000s ease-in-out 0s;
}

/*
 * ------------------------------------------------------------------
 *
 * Footer
 *
 */
.wh_footer {
  background-color: @footerBgr;
  padding: 4em 0em;
  color: @footerColor;
  text-align: center;
  align-items: center;
  font-size: 1.2em;
}

.wh_footer a {
  color: @footerLinkColor;
}

/*
 * ------------------------------------------------------------------
 *
 * Topic content
 *
 */
.wh_content_area {
  background-color: @topicContentBgr;
  padding: 0;
  font-size: 1.4em;
  padding-bottom: 2em;
  line-height: 1.7em;
}

.wh_topic_content {
  color: @topicContentColor;
}

/*
 * Title & subtitles
 */

.topictitle1 {
  font-weight: normal;
}

.topictitle1,
.topic > .title {
  .headers-font;
  color : @topicTitlesColor;
}


/*
 * ------------------------------------------------------------------
 *
 * Breadcrumb
 *
 */

.wh_breadcrumb ol {
  padding: .5em;
}

.wh_breadcrumb ol,
.wh_breadcrumb ol a {
  color: @breadcrumbColor;
  font-size: 1.1em;
}

.wh_breadcrumb ol .active a {
  color: @breadcrumbActiveLinkColor;
  font-weight: bold;
  text-decoration: underline;
}

.home a span {
  display: none;
}

.home a:before {
  font-family: "oXygen WebHelp", serif;
  content: "o";
}

/*
 * ------------------------------------------------------------------
 *
 * Tools and navigation
 *
 */
.wh_tools {
  border-bottom: solid 1px @breadcrumbBorderColor;
  border-top: solid 1px @breadcrumbBorderColor;
  background-color: @breadcrumbBgr;
  padding: 0;
  margin: 0 0 2em 0;
  font-size: 1.2em;
  color: @breadcrumbColor;

  /* Flex layout */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wh_print_link button,
.webhelp_expand_collapse_sections,
.wh_hide_highlight,
.wh_navigation_links a,
.wh_navigation_links a:hover,
.wh_navigation_links a:active,
.wh_navigation_links a:visited,
.wh_print_link a:before,
.wh_navigation_links a:before,
.wh_navigation_links a:hover:before,
.wh_navigation_links a:active:before,
.wh_navigation_links a:visited:before {
  color: @breadcrumbColor;
  text-decoration: none;
  vertical-align: baseline;
}

.wh_right_tools {
  padding: 0;
  position: initial;
}

/*
 * Other content
 */

.wh_topic_content .shortdesc {
  font-style: italic;
}


/*
 * ------------------------------------------------------------------
 *
 * Publication TOC
 *
 */
.wh_publication_toc {
  border-left: 10px solid @sideTocBorderColor;
  border-radius: 4px;
  background-color: @sideTocBgr;
  padding: 1em;
  line-height: 2em;
}
.close-toc-button:hover {
  background-color: unset;
}
#wh_close_publication_toc_button {
  margin-top: 4px;
  margin-left: 10px;
  background-color: black;
}
#wh_close_topic_toc_button {
  margin-top: 4px;
  margin-right: 4px;
  background-color: @topicTocCloseButtonColor;
}
.close-toc-icon {
  border: 2px solid @color-white;
}

/* x more */
.dots-after span, .dots-before span{
  border: 1px solid @sideTocColor;
}

.wh_publication_toc > ul {
  padding-left: 0;
}

.wh_publication_toc .active > .topicref a {
  font-weight: bold;
}

.wh_publication_toc div, .wh_publication_toc a, .wh_publication_toc a:visited, .wh_publication_toc a:hover {
  color: @sideTocColor;
  text-decoration: none;
}

@media only screen and (max-width: 767px) {
  .wh_publication_toc {
    padding: 1em;
    margin-left: 0;
    margin-top: 1em;
  }
}

.wh_publication_toc .wh-expand-btn:before {
  margin-right: 10px;
  opacity: 1;
}

/* Publication TOC tooltip */
.wh_breadcrumb .topicref .wh-tooltip,
.wh-toc-tooltip {
  background-color: @tooltipBgr;
  color: @tooltipColor;
}

.wh_breadcrumb .topicref .wh-tooltip a,
.wh-toc-tooltip a {
  color: @tooltipColor;
  text-decoration: underline;
}

/* Tooltip arrow. */

[data-tooltip-position="left"] .topicref .wh-tooltip::before,
[data-tooltip-position="left"] .wh-toc-tooltip::before {
  border-left-color: @tooltipBgr;
}

[data-tooltip-position="right"] .topicref .wh-tooltip::before,
[data-tooltip-position="right"] .wh-toc-tooltip::before {
  border-right-color: @tooltipBgr;
}

[data-tooltip-position="bottom"] .topicref .wh-tooltip::before,
[data-tooltip-position="bottom"] .wh-toc-tooltip::before {
  border-bottom-color: @tooltipBgr;
}

[data-tooltip-position="top"] .topicref .wh-tooltip::before,
[data-tooltip-position="top"] .wh-toc-tooltip::before {
  border-top-color: @tooltipBgr;
}

/* Topic TOC */
.wh_topic_toc {
  border-left: 5px solid @topicTocBorderColor;
  border-radius: 4px;
  background-color: @topicTocBgr;
  padding: 0;
}


.wh_topic_toc .wh_topic_label {
  color: @topicTocLabelColor;
  background-color: @topicTocLabelBgr;
  .headers-font;
  padding-left: 0.5em;
}

.wh_topic_toc > ul {
  padding-left: 0.5em !important;
}

.wh_topic_toc .topic-title a {
  color: @topicTocTopicTitleColor;
}

.wh_topic_toc .topic-title .current_node {
  font-weight: bold;
  color: @topicTocCurrentTopicTitleColor;
  text-decoration: underline;
}

/* Related links */

.linklist > strong:nth-child(1) {
  .headers-font;
  color : @relLinksHdrColor;
}

.wh_related_links .related-links,
.wh_topic_content .related-links,
.wh_child_links {
  margin: 1em 0 1em 0;
  background-color: @relLinksBgr;
  border: @relLinksBorderColor solid 1px;
  border-radius: 4px;
  padding: 0 1em;
  color: @relLinksHdrColor;
}

.wh_related_links .related-links a,
.wh_topic_content .related-links a,
.wh_child_links a {
  color: @relLinksLinkColor;
  font-weight: bold;
}

.wh_child_links {
  padding: 1em;
}

.wh_topic_content .related-links {
  font-size: .8em;
}

/*
 * ------------------------------------------------------------------
 *
 * Search results.
 *
 */
.searchresult {
  list-style: none;
}

.searchresult li {
  padding: .5em;
}

.searchresult li a {
  color: @searchResultLinkColor;
}


/*--------- Search results breadcrumb ----------*/
.search-breadcrumb li a {
  color: @search-breadcrumb-color;
  background: @search-breadcrumb-bgr;
}

.search-breadcrumb li .title:before,
.search-breadcrumb li .title:after {
  border-color: @search-breadcrumb-bgr;
}

.search-breadcrumb li .title:before {
  border-left-color: transparent;
}

.search-breadcrumb li .title:after {
  border-color: transparent;
  border-left-color: @search-breadcrumb-bgr;
}
/*----------- Search facets -----------------------*/
.wh-facet-label-header, .wh_facet_label {
    font-size: 19px;
}
.wh_facet_label_checkbox {
    font-size: 19px;
}
.wh_facet_value_count {
  font-size: 16px;
    height: 22px;
}
.wh_reset_facets_button {
  font-size: 16px;
  height: 24px;
}
.wh_facet_label_checkbox_disabled {
    color: #767575;
}
/* Responsive styles for the facet widget*/
@media screen and (max-width: 767px) {
  .wh_search_results_facets {
    background-color: #fafafa;
  }
  .wh_facet_label_checkbox_disabled {
    color: #757070;
  }
}

/*-------------------*/
.showSimilarPages:hover {
  color: @searchResultLinkColor;
}

.searchresult .shortdesclink {
  margin: 0 .5em 0 0;
  color: @searchResultShortdescColor;
  line-height: 1.2em;
  font-size: .9em;
}

/* Search relative path */
.searchresult li .relativePath a {
  color: @searchResultRelativePathColor;
}

.searchresult .wh_missing_words {
  color: @missingWordsColor;
}

.wh_search_expression {
  color: @searchExpressionColor;
}

.wh_search_expression {
  font-weight: bold;
}

/* Search results pagination */

.wh-search-pagination li a {
  color: @searchPaginationColor;
}

.wh-search-pagination .active a {
  color: @searchPaginationActiveColor;
  background-color: @searchPaginationActiveBgr;
}

.wh-search-pagination .disabled a,
.wh-search-pagination .disabled a:focus,
.wh-search-pagination .disabled a:hover {
  color: @searchPaginationDisabledColor;
}

.pagination > .disabled > a,
.pagination > .disabled > a:focus,
.pagination > .disabled > a:hover {
  border-color: @searchPaginationBorderColor;
}


/* Highlights */
.highlight {
  background-color: @searchTermHighlightBgr;
  color: @searchTermHighlightColor !important;
  border-radius: 4px;
  padding: 0 1px;
}
.wh-h{padding: 0 1px}

/* Index terms */

.wh-letters {
  background-color: @color-white;
}

.wh-letters a {
  color: @lettersHdrColor;
  text-decoration: underline;
  .headers-font;
}

.wh_term_group {
  border-bottom: 1px solid @indexTermGroupBorderColor;
  background-color: @indexTermGroupBgr;
  margin: 1em 0;
  padding: 1em;
}

.wh_term > span {
  color: @indexTermColor;
  font-style: italic;
  font-size: 1.2em;
}

.wh_term .wh_term_target {
  color: @indextermTargetColor;
  font-size: 1.2em;
}

.wh_index_terms span.wh_first_letter {
  color: @indexTermFirstLetterColor;
  border: none;
  font-size: 1.5em;
  margin: 0;
  .headers-font;
}

.wh_index_terms #indexList {
  padding: 0;
}
