/* ---------------------------------------------------------- Disabled stuff */
@media (min-width: 1000000px) {

} /* end disabled */

/* ---------------------------------------------------------- Genuine janware styles */

/* -- Legacy dokwuwiki templates */
.table-logo {
  border:0;
}
.td-logo {
  border:0;
}

/* -- Miscellaneous */

code {
  font-size: 80%;
}

.jw-motto {
  text-align: center;
  font-size: 18px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  margin-block-start: 0.33em;
  margin-block-end: 0.33em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  vertical-align: middle;
  /* font-weight: bold; */
  display: block;
}

.jw-large-text {
  padding: 10px 20px 50px 20px;
}

.jw-splash-title {
  text-align: center;
  margin: 30px;
}

.jw-p-indent {
  padding-left: 30px;
  padding-right: 30px;
}

@media (max-width: 1024px) {
  .only-on-desktop {
    display: none;
  }
  body {
    padding-top: 10px;
  }
  .jw-motto {
    font-size: 18px;
  }
}
.only-on-mobile {
}

@media (min-width: 1024px) {
  .only-on-mobile {
    display: none;
  }
  .jw-motto {
    font-size: 25px;
  }
}

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

/*
.dokuwiki .page * {
  page-break-inside: avoid;
  page-break-after: avoid;
  page-break-before: avoid;
}
*/

/* -- Display list of translation flags inline with "Translations of this page" */
.dokuwiki div.plugin_translation > ul {
  display: inline-block;
  vertical-align: bottom;
}

/* -- DokuWiki TOC has -1.556em negative margin and overlaps translation, do the same thing there  */
@media (min-width: 481px) {
  .dokuwiki div.plugin_translation {
      margin-right: -11px;
      margin-top: -1em;
      margin-bottom: 2em;
  }
}
@media (min-width: 801px) {
  .dokuwiki div.plugin_translation {
      margin-right: -25px;
      margin-top: -1.556em;
      margin-bottom: 2em;
  }
}

/* -- Keep notifications clear from translation flags */
#dokuwiki__content div.page.group div.notify {
  float: left;
}

/* -- Remove dokuwiki background */
html, body {
  background: none;
  background-image: none;
}

/* -- Have wiki title and image be vertically centered on one line */
#dokuwiki__header h1 a {
  display: inline-block;
}

#dokuwiki__header h1 img {
  display: inline-block;
  float: none;
  vertical-align: middle;
}

#dokuwiki__header h1 > a > span {
  display: inline-block !important;
  vertical-align: middle;
  padding-top: 0;
  padding-bottom: 0;
}

#dokuwiki__header .logo img {
  height: 50px;
}

#dokuwiki__header span.janware-text {
  display: inline-block; /* override DokuWiki display: block on #dokuwiki__header h1 span */
}

/* -- Enclose search form symmetrically between action links */
form.search {
  margin-top: .1em;    /* DokuWiki proposes 0; */
  margin-bottom: .1em; /* DokuWiki proposes .5em; */
}

/* -- Move usertoolbar down from top */
#dokuwiki__usertools {
  position: static;
}

html {
  overflow-y: overlay;
  /* change overflow-y to auto, as soon as scrollbar-gutter has enough browser support */
  scrollbar-gutter: stable;
}

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

/* -- Take up more width for the comment table */
#bugzilla-body .bz_comment_text {
  width: 100%;
}

/* -- Don't squeeze comments together to 50 em, as global.css requires */
#bugzilla-body .bz_comment_table {
  width: 100%;
}

/* -- Don't break QA-Kontakt: jan@janware.com into two lines */
#bugzilla-body .search_description li {
  white-space: nowrap;
}

/* ---------------------------------------------------------- Gitweb fixes */

/* -- Keep page header from collapsing */
div.page_header {
  height: 45px;
}

table.project_list,
table.shortlog,
table.heads,
table.tags, /* found that action only in source code */
table.history,
.page_body table.tree
{
  width: 100%;
}

.page_body table.tree td {
  padding: 2px 5px;
}

body,
body div
{
  border: none;
}

/* -- Fix contents breaking out of footer container */
#jw-bt-wrap > div.page_footer {
  min-height: 27px; /* no idea why page_footer_text:after clear:both doesn't do the trick */
}

#jw-bt-wrap > div.page_footer_text:after {
  clear: both;
  content: "";
}

/* ---------------------------------------------------------- SOGo fixes */

body.main div#jw-bt-wrap {
  /* position: absolute; */
  /* bottom: 130px; */
  /* height: 100%; */
  /* align: center; */
  height: 75%;
}

/* -- Re-defined by SOGo to display: flex, pushes menu off visible area to the right */
header {
  display: block;
}

body.main {
  /* margin-bottom: 0; */
}

md-icon.material-icons.material-icons,
.md-icon.md-icon,
md-toolbar.md-default-theme:not(.md-menu-toolbar) .md-button[disabled] md-icon,
md-toolbar:not(.md-menu-toolbar) .md-button[disabled] md-icon,
md-sidenav md-checkbox.sg-folder .md-container:after,
md-toolbar.md-default-theme.md-hue-2:not(.md-menu-toolbar) md-icon,
md-toolbar.md-hue-2:not(.md-menu-toolbar) md-icon,
.sg-md-title,
.md-caption
{
  color: rgba(10,10,10,0.54);
  /* color: rgba(100,10,10,0.54); */
}

/* LHS part of top toolbar */
md-toolbar
md-toolbar.md-default-theme.md-hue-2:not(.md-menu-toolbar),
md-toolbar.md-hue-2:not(.md-menu-toolbar),

/* RHS part of top toolbar */
md-toolbar.md-default-theme:not(.md-menu-toolbar),
md-toolbar:not(.md-menu-toolbar)
{
  background-color: rgb(224, 224, 224);
}

@media (min-width: 960px) {
  .view-list {
     max-width: 30%;
  }
  md-sidenav.md-locked-open {
    max-width: 20%;
  }
}

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

/* -- Adapt background pieces to janware background */
table.page table.body,
table.page td.tree,
table.page td.body
{
  background-color: #ffffff;
}

/* -- Hide phpLDAPAdmin Logo */
#ajHEAD > table > tbody > tr > td:nth-child(1) {
  display: none;
}

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