/*
 * Copyright 2017 F5 Networks
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/*
 * Base structure
 */

body {
  padding-top: 0px;
}

/* Header paragraph links */
a.headerlink {
  color: #EBEBEB;
}

a.headerlink:hover {
  color: #0083c0;
}

/*
 * Global add-ons
 */

.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
  border: 0;
}

/*
 * Sidebar with ToC and search
 */

form.search {
  margin-left: 0px;
}

.sidebartoc {
  left: 0;
  height: 100%;
  background-color: #EBEBEB;
  font-size: 14px;
  z-index: 0;
}

.sidebartoc ul {
  padding-left: 15px;
}

/* Hide for mobile, show later */
.sidebartoc {
  display: none;
}
@media (min-width: 768px) {
  .sidebartoc {
    /* top: 126px; */
    border-bottom-right-radius: 6px;
    border-bottom: 1px #4D4F53 solid;
    border-right: 1px #4D4F53 solid;
    bottom: 0;
    left: 0;
    display: block;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
  }
}

/* Sidebar navigation */
.nav-sidebartoc {
  margin-right: -21px; /* 20px padding + 1px border */
  margin-bottom: 20px;
  margin-left: -20px;
}
.nav-sidebartoc > li > a {
  padding-right: 20px;
  padding-left: 20px;
}
.nav-sidebartoc > .active > a,
.nav-sidebartoc > .active > a:hover,
.nav-sidebartoc > .active > a:focus {
  color: #fff;
  background-color: #428bca;
}

/* Sidebar Search */
form.search {
  margin: 6px;
  padding-bottom: 6px;
}

.search .btn-primary {
  border-radius: 4px;
}
/*
 * Main content
 */

.main {
  padding: 20px;
}
@media (min-width: 768px) {
  .main {
    padding-right: 40px;
    padding-left: 40px;
  }
}
.main .page-header {
  margin-top: 0;
}

/*
* Panels for Tip, See also, Note etc
*/


.admonition {
  border-radius: 4px;
  background-color: white;
  margin-bottom: 20px;
}

ul.last {
  margin-left: 26px;
}

/* Yellow: Caution, Warning */
.caution, .warning {
  border: 1px #8a6d3b solid;
  background-color: #fcf8e3;
}

.caution>.admonition-title,
.warning>.admonition-title {
  background-color: #8a6d3b;
  color: white;
  padding: 6px;
}

.caution>.last, .warning>.last {
  padding: 6px;
}


/* Red */
.danger, .error {
  border: 1px #a94442 solid;
  background-color: #f2dede;
}

.danger>.admonition-title, .error>.admonition-title {
  background-color: #a94442;
  color: white;
  padding: 6px;
}

.danger>.last, .error>.last {
  padding: 6px;
}

/* Orange: attention */

.attention {
  border: 1px #d39017 solid;
  background-color: #fcf8e3;
}

.attention>.admonition-title {
  background-color: #d39017;
  color: white;
  padding: 6px;
}

.attention>.last {
  padding: 6px;
}

/* Green */
.hint,
.admonition-tmsh {
  border: 1px #3c763d solid;
  background-color: #dff0d8;
}

.hint>.admonition-title,
.admonition-tmsh>.admonition-title {
  background-color: #3c763d;
  color: white;
  padding: 6px;
}

.hint>.last {
  padding: 6px;
}

/* Lt. Blue */
.tip, .note {
  border: 1px #31708f solid;
  background-color: #D9EDF8;
}

.tip>.admonition-title, .note>.admonition-title {
  background-color: #31708f;
  color: white;
  padding: 6px;
}

.tip>.last, .note>.last {
  padding: 6px;
}

/* Blue */
.important, .seealso {
  border: 1px #337ab7 solid;
  background-color: #D9EDF8;
}

.important>.admonition-title,
.seealso>.admonition-title {
  color: #fff;
  background-color: #337ab7;
  padding: 6px;
}

.important>.last, .seealso>.last {
  padding: 6px;
}

/* Admonition icons */

.admonition-title:before {
  font-family: "FontAwesome";
  display: inline-block;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  text-decoration: inherit;
  margin-left: 8px;
  margin-right: 8px;
}
.attention>.admonition-title:before,
.caution>.admonition-title:before,
.warning>.admonition-title:before {
  content: "\f06a";
}

.important>.admonition-title:before,
.admonition-tmsh>.admonition-title:before,
.note>.admonition-title:before,
.tip>.admonition-title:before,
.hint>.admonition-title:before {
  content: "\f05a";
}

.danger>.admonition-title:before,
.error>.admonition-title:before {
  content: "\f071";
}

.admonition-tmsh>.admonition-title:after {
  content: " Command";
}

.admonition-tmsh p.last {
    display: block;
    padding: 10.5px;
    margin: 6px 6px 11px;
    font-size: 15px;
    line-height: 1.375;
    word-break: break-all;
    word-wrap: break-word;
    color: #4d4f53;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: Menlo,Monaco,Consolas,Courier New,monospace;
}

.admonition-todo>.admonition-title:before {
  content: "\f046";
}

.admonition-todo>.admonition-title {
  background-color: #ff3030;
  color: white;
  padding: 6px;
}

.admonition-todo {
  border: solid 1px red;
  background-color: #ffa0a0;
}

/*
 * Fix margins when .last element is not p in
 * admonition
 */

.admonition p.first {
  margin-left: 0px;
}

.admonition p {
  margin-left: 6px;
  padding: 6px;
}
/* End fix */

.admonition>ol,
.admonition>ul {
  margin-left: 30px;
}

/*
 * Tables
 */

th, td {
  padding: 4px;
}

th.stub {
  background: white;
  border-right: solid 3px grey;
}

thead {
  border-bottom: solid 3px grey;
}

.next-prev-btn-row {
  margin-top: 12px;
}

/*
/ Remove whitespace after code blocks
*/
.literal-block-wrapper:after {
    content: none;
}

/*
/ The below elements were adapted from the sphinx-rtd-theme
/ https://github.com/rtfd/sphinx_rtd_theme
/ Copyright (c) 2013 Dave Snider
*/
.guilabel {
    border: none;
    background: #ededed;
    font-size:90%;
    font-weight:700;
    border-radius:4px;
    padding:2.4px 6px;
    margin:auto 2px
}
.menuselection {
    border: none;
    background: #ededed;
    font-size:90%;
    font-weight:700;
    border-radius:4px;
    padding:2.4px 6px;
    margin:auto 2px
}

/* Content sidebar
*/
.sidebar {
  /*position: fixed;
  right: 0; */
  width: 35%;
  float: right;
  display: block;
  margin-left: 25px;
  background-color: #dee4ee;
  padding-top: 10px;
  padding-left: 10px;
  padding-bottom: 10px;
}

.sidebar>.p,.sidebar>.ul,.sidebar>.li {
  font-size: 90%;
  padding-left: 5px;
}

.sidebar-title {
  font-weight: bold;
  font-size: 100%;
}

/* footnote citations */
.footnote-reference, .citation-reference {
    vertical-align: super;
    font-size: 85%;
}
