/* ---------------------------------------------------------- Debugging */
@media (min-width: 1000000px) {
* {
  border: 1px solid #f00 !important;
}

@media (min-width: 1025px) {
  body {
    /* padding-top: 60px; 60px to make the container go all the way to the bottom of the topbar */
  }
}

/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

.container {
  /* padding: 60px 15px 0; */
  /* padding: 0px 15px 0px 0px; */
}
.container .text-muted {
  margin: 20px 0;
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

.navbar-right {
  margin-right: 0px;
}

/* Bootstrap only provides this for <a> */
.navbar-inverse .navbar-nav > li > div {
  color: #ddd;
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-right {
  /* margin-right: 0px; */
}

} /* end debugging */

/* ---------------------------------------------------------- Overall janware bootstrap style */

/* -- remove URL appended to links in printed documents */
@media print {
  a[href]:after {
    content: none !important;
  }
}

/* -- bootstrap introduces a margin-bottom of 15px, but no margin top to .jumbotron p */
.jw-msg p {
  margin-top: 7px;
  margin-bottom: 7px;
}

/* -- Indent text to align navbar text */
@media(min-width: 1024px) {
  .jw-large-text,
  .jw-contact-grid-container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 1350px) {
  .container {
    width: 85%;
  }
}

/* -- sticky footer styles */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  /* margin-bottom: 60px; */
}

.footer {
  position: absolute;
  bottom: 0px; /* without that, a vertical scrollbar appears */
  /* bottom: 5px; *//* without that, a vertical scrollbar appears */
  width: 100%;
  /* Set the fixed height of the footer here */
  /* height: 60px; */
  background-color: #f5f5f5;
}

/* ---------------------------------------------------------- janware navbar adaptations */

/* -- Position image in navbar, only visible on mobile */
.jw-img-navbar-brand svg {
  margin-top: 8px;
  height: 30px;
  margin-bottom: 8px;
}

/* -- Push navbar entries a bit further together */
#navbarCollapse a > span.janware-text {
  display: inline; /* inline-block will give the thing a height and break alignment with other navbar menu headers */
}

/* -- Higher navbar, with centered menu label row */
/* outer */
.navbar {
  /* min-height: 0; */ /* is set to 48 px by bootstrap, but that make the labels scoot to top, non-aligned to middle */
  /* min-height: 60px; */
  /* display: table; has the inner (container-fluid) element scoot to top */
  width: 100%;
}

.navbar div.jw-container {
  line-height: 1.15;
}

/* -- Add some space between glyphicons and the following text */
.glyphicon::before {
  margin-right: 4px;
}

/* -- Push navbar entries a bit further together */
.nav > li > a {
  padding-left: 10px;
  padding-right: 10px;
}

/* -- navbar text is too dark to be readable, make it lighter */
.navbar-inverse .navbar-nav > li > a {
  color: #ddd;
}

.navbar-form .navbar-nav > li {
  color: #ddd;
}

#navbarCollapse li.dropdown.open > ul > li.dropdown-menu-item.link-to-current > a {
  color: #666;
}

.navbar-inverse .navbar-nav > .link-to-current > a::before {
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  line-height: 1;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* content: "\002a"; */ /* asterisk */
  /* content: "\e092"; */ /* rightarrow */
  content: "\e258";       /* > */
}

.navbar-inverse .navbar-nav .open .dropdown-menu > .link-to-current > a::before,
.navbar-inverse .navbar-nav .open .dropdown-menu > .link-to-current > a:hover::before,
.navbar-inverse .navbar-nav .open .dropdown-menu > .link-to-current > a:focus::before
{
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  line-height: 1;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* content: "\002a"; */
  /* content: "\e092"; */ /* rightarrow */
  content: "\e258";       /* > */
  color: #888;
  margin-right: 3px;
  margin-left: -18px;
}

.navbar-inverse .navbar-nav .open .dropdown-menu > .link-to-current > a::after
{
  color: #888;
}

/* -- Don't have bootstrap push the right navbar entry to the edge,
      so use the same margin as margin-left  */
@media (min-width: 768px) {
  .navbar-right {
    margin-right: 0px;
  }
}

/* ---------------------------------------------------------- phpLDAPAdmin fixes */

/* -- label color is defined to be white in bootstrap lables.less for .label */
#template_choice_form td.label > label {
  color: black;
}

/* ---------------------------------------------------------- Bugzilla fixes */

/* -- Bootstrap's code.less redefines <pre> to word-break: break-all */
#bugzilla-body .bz_comment_text {
  word-break: normal;
}

/* -- Don't fiddle with line-heights */
#bugzilla-body input,
#bugzilla-body button,
#bugzilla-body select,
#bugzilla-body text-area
{
  line-height: normal;
}

/* -- Don't fiddle with table cell padding */
#bugzilla-body td,
#bugzilla-body th
{
  padding: 4px; /* Set back to 4px which are defined ... where? */
}

#bugzilla-body th.first-child,
#bugzilla-body td.first-child,
#bugzilla-body a.bz_secure
{
  padding-left: 20px;
}

#bugzilla-body td.spacer {
  padding: 0;
}

#bugzilla-body td#tab_specific {
  padding: 10px; /* no idea where that's defined in the original */
}

/* -- Don't mess with buttons */
#bugzilla-body .btn {
  padding: 1px 6px;
  vertical-align: baseline;
  /* border: ?; don't know what to reset this to */
  border-radius: 0;
}

/* ---------------------------------------------------------- DokuWiki fixes */

/* -- */
#plugin__struct_editor > table > tbody td.label input[type="text"] {
  color: #333;
}

/* -- keep ''content'' from melting into boxed <code>content</code> underneath */
#dokuwiki__content code {
  display: inline-block; /* default inline melts into content underneath */
}

/* -- Restore DokuWiki's defaults overridden on h1 h2 h3 by BT type.less */
.dokuwiki h3.toggle {
    padding: .5em 1em;
}

/* -- Keep dokuwiki from pushing menu bar entries apart */
li.dropdown-menu-item {
  margin: 0px;
}

li.dropdown {
  margin: 0px;
}

/* -- Don't push bootstrap navbar's <li> to the right */
nav ul li {
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
}

/* -- th and td's padding is zeroed by bootstrap's normalize.less */
#dokuwiki__content td,
#dokuwiki__content th,
.filelist-plugin th,
.filelist-plugin td
{
  padding: .3em .5em;
}

/* -- Fill up entire body bootstrap container */
#dokuwiki__site {
  max-width: 100%;
}

/* -- Hide logout and profile action links */
#dokuwiki__header .logout.logout {
  display: none;
}

#dokuwiki__header .profile.profile {
  display: none;
}

/* -- Push dokuwiki sidebar into the right clearance, aligning dokuwiki contents
 *    with header */
#dokuwiki__site > .site {
  padding-right: 0px;
  padding-left: 0px;
}

/* -- Have enough space for RHS pagetool bar, the min-width has to equal
 *    DokuWiki's breakpoint RHS / top toolbar  */
@media (min-width: 480px) {
  .container {
    padding-right: 35px;
    padding-left: 35px;
  }
}

/* -- LR-align DokuWiki header with navbar menu entries at navbar collapsing point */
@media (min-width: 1400px) {
  #dokuwiki__header > div > div.tools.group {
    padding-right: 35px;
  }
  #dokuwiki__header > div > div.headings.group {
    padding-left: 35px;
  }
}

/* ---------------------------------------------------------- Ticket system fixes */

/* -- th and td's padding is zeroed by bootstrap's normalize.less */
div#jw-bt-wrap div#header table#titles td,
div#jw-bt-wrap div#header table#titles th {
  padding: .3em .5em;
}

/* -- fix messed up group access table in editusers.cgi */
#bugzilla-body table.groups td {
  display: table-cell;
}

#bugzilla-body table.groups input[type="checkbox"] {
  margin: 0;
  position: static;

}
