/*
 * Copyright 2018 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;
  padding-right: 10px;
}

.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: inherit;
  padding-right: inherit;
}

@media (min-width: 1024px) {
  .container {
    width: 100%;
  }
}

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

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


@media (max-width: 1024px) {
  .sidebar {
    width: 100%;
    display: inline-block;
    padding: 10px;
    margin-bottom: 20px;
  }
}

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

.sidebar>ul,.sidebar>li {
  margin: 11px;
  padding-left: 5px;
}

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

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

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

/* F5 Yellow: Caution */
.caution {
  border: 1px #FFF200 solid;
  background-color: #FFF;
}

.caution>.admonition-title {
  background-color: #FFF200;
  color: black;
  padding: 6px;
}

/* F5 Orange: Attention, Warning */
.attention, .warning {
  border: 1px #f66e41 solid;
  background-color: #FFF;
}

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

/* F5 Red */
.danger, .error {
  border: 1px #e4002b solid;
  background-color: #FFF;
}

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

/* Green */
.hint,
.admonition-tmsh {
  border: 1px #51af4a solid;
  background-color: #FFF;
}

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

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

/* F5 Purple */
.tip,
.note {
  border: 1px #8547AD solid;
  background-color: #FFF;
}

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


/* F5 Blue */
.important,
.seealso {
  border: 1px #00A1E4 solid;
  background-color: #FFF;
}

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

.attention>.last,
.caution>.last,
.warning>.last,
.danger>.last,
.error>.last,
.hint>.last,
.tip>.last,
.note>.last,
.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,
.admonition-tmsh p {
    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;
  margin-bottom: 20px;
}

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

.literal-block-wrapper + .docutils + .container {
  background-color: rgba(0,0,0,0);
  border: none;
}

.code-block-caption {
  font-weight: bold;
}

/*
/ 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
}

/*end elements from sphinx-rtd-theme*/

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

h1,
h2,
h3 {
  font-family: 'TabletGothicSemiBold', 'Colaborate', Arial, sans-serif;
  font-weight: normal !important;
  color: #333;
}
h4 {
  font-family: Arial, sans-serif;
  font-weight: normal !important;
  color: #000;
}
h1 {
  font-size: 25px;
}
h2 {
  font-size: 22px;
  line-height: 26px;
  margin-bottom: 20px;
  width: 100%;
}
h3 {
  font-size: 20px;
}
h4 {
  font-size: 18px;
  margin: 18px 0 10px 0;
  width: 100%;
}
h5,
.h5,
p.first.sidebar-title {
  font-size: 16px;
  font-weight: bold;
}
h6,
.h6 {
  font-size: 15px;
  font-style: italic;
  font-weight: bold;
}

caption {
  display: table-caption;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-style: italic;
  color: #000;
}

ol.arabic {
  padding-left: 20px;
}

/*
formatting for sphinx pullquote directive
*/
blockquote.pull-quote {
  padding: 11px !important;
  border-color: grey;
  border-width: 4px;
  font-size: 95%;
  background-color: #E3E3E3;
}

/*
formatting for using sidebar class with admonitions
 */
.sidebar.admonition {
  padding: 0 !important;
}

@media (max-width: 768px) {
.sidebar.admonition {
    padding: 0 !important;
  }
}

table {
  width: 100%;
  overflow-x: scroll;
}

img {
  object-fit: scale-down;
  max-width: 100%;
  height: auto;
}

ul.simple {
  padding-left: 20px;
}

/*
override bootstrap pre settings in sphinx literal blocks
 */
div[class^='highlight'] pre {
  white-space: pre;
  margin-top: 5px;
  margin-bottom: 5px;
  font-family: Menlo,Monaco,Consolas,Courier New,monospace;
  font-size: 85%;
  line-height: 1.5;
  display: block;
  overflow: auto;
  color: #404040;
  border-radius: 0;
}

/*
override table borders and spacing in literal blocks using line numbers
 */
.highlight,
table[class^='highlight'] tbody tr,
table[class^='highlight'] tbody tr:nth-child(odd),
table[class^='highlight'] th,
table[class^='highlight'] td {
  background: rgba(0,0,0,0) !important;
  padding: 0;
}

pre {
  padding-right: 0;
  border: 0;
}

/*div[class~='.docutils'] .literal {
}
*/

code {
    padding: 2px;
    font-size: 85%;
    color: #FFFFFF;
    background-color: #757677;
    border-radius: 2px;
}

code.xref.download.docutils.literal,
span.icon.fa.fa-download {
  color: #0083c0;
  background-color: transparent;
}
