:root {
  --grey-1-primary: #393149;
  --grey-2-secondary: #756f86;
  --grey-4-shade: #dddbe0;
  --sequra-green: #14A38b;
  --sequra-green-light: #d2ece6;
  --grey-background: #f7f7f7;
  --warning-background: #ef902a;
  --warning-background-lighter: #faddbf;
  --white: #fff;
}

body {
  font-weight: 200;
  font-family: "Roboto", sans-serif;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  color: var(--grey-1-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5em;
}

code, span.url {
  border: none;
  border-radius: 5px;
  color: var(--grey-1-primary);
  background-color: var(--grey-background);
  font-size: 0.9em;
}

pre {
  border: none;
  padding: 25px;
  border-radius: 5px;
}

pre code {
  color: var(--grey-1-primary);
  font-size: 1em;
}

#content a:link,
#content a:hover,
#content a:visited {
  color: var(--sequra-green);
  text-decoration: none;
}

#content a:link > code,
#content a:hover > code,
#content a:visited > code {
  color: var(--sequra-green);
  text-decoration: none;
}

#content a code:hover {
  color: var(--sequra-green);
  text-decoration: underline;
}

code.highlighter-rouge {
  background-color: var(--grey-background);
  margin: 20px 0;
}

.alert.alert-warning pre code {
  background: var(--warning-background-lighter);
  color: var(--grey-2-secondary);
}

.alert.alert-warning code.highlighter-rouge {
  background: var(--warning-background-lighter);
  color: var(--grey-2-secondary);
}

.container {
  width: 100%;
  height: 100vh;
}

.middle {
  display: flex;
  flex-grow: 1;
  height: 100vh;
  position: fixed;
  overflow-y: scroll;
  padding-top: 60px;
}

#content {
  padding: 25px 55px;
  overflow-y: scroll;
  flex-grow: 2;
}

#header {
  border-top: 5px solid var(--sequra-green);
  border-bottom: 1px solid var(--grey-4-shade);
  padding: 10px 25px;
  position: fixed;
  background: var(--white);
  z-index: 10;
}

#header h4 {
  color: var(--grey-2-secondary);
}

#header a:hover {
  text-decoration: none;
}

#footer {
  margin: 20px 0;
  font-size: 0.85em;
  color: var(--grey-2-secondary);
  text-align: center;
}

#content > .page-header:first-child {
  margin-top: 0;
}

#content > .page-header:first-child h2 {
  margin-top: 0;
}

a:link,
a:hover,
a:visited {
  color: var(--grey-1-primary);
}

#content a:link,
#content a:visited {
  color: var(--sequra-green);
}

#content a:hover {
  color: var(--sequra-green);
  text-decoration: underline;
}

#content .alert {
  color: var(--white);
}

#content .alert strong {
  color: var(--white);
}

#content .alert a:link,
#content .alert a:hover,
#content .alert a:visited {
  color: var(--warning-background-lighter);
  text-decoration: none;
}

#content .alert a:hover {
  text-decoration: underline;
}

#content .alert.alert-warning {
  background: var(--warning-background);
}

#navigation {
  font-size: 1em;
  background: var(--grey-background);
  border-right: 1px solid var(--grey-4-shade);
  padding: 25px;
  overflow-y: scroll;
  line-height: 1.3em;
}

/* Restore circles in the sublists */
#navbar-toc ul.nav > li {
  margin-left: 40px;
  list-style-type: disc;
  display: list-item
}

#navbar-toc li::marker {
  color: var(--grey-2-secondary);
}

#navigation li.current a:link,
#navigation li.current a:visited,
#navigation li.current a:hover {
  color: var(--sequra-green);
  font-weight: bold;
}

#navigation li.current .content_toc a:link,
#navigation li.current .content_toc a:visited,
#navigation li.current .content_toc a:hover {
  color: var(--grey-2-secondary);
  font-weight: normal;
  padding-left: 0;
}

#navigation li.current .content_toc li.active a:link,
#navigation li.current .content_toc li.active a:visited,
#navigation li.current .content_toc li.active a:hover {
  color: var(--sequra-green);
}

#navigation li a:link {
  padding: 2px 10px 2px;
  color: var(--grey-1-primary);
}

#navigation a:visited,
a:active {
  text-decoration: none;
  background: none;
}

#navigation a:hover {
  text-decoration: underline;
  background: none;
}

#navigation .nav-header {
  padding: 10px 0px 2px;
  font-family: 'Oxygen', sans-serif;
  font-weight: bold;
  color: var(--grey-2-secondary);
}

.second-nav-header {
  font-family: 'Oxygen', sans-serif;
  color: var(--grey-1-primary);
  margin-top: 30px;
  padding: 5px 10px 0px 10px;
}

.second-nav {
  line-height: 1em;
  font-size: 0.9em;
}

#navigation li.nested {
  font-size: 0.9em;
  padding-left: 10px;
}

body.rtl {
  direction: rtl;
}

body.rtl #header .brand {
  float: right;
  margin-left: 5px;
  color: var(--sequra-green);
}

body.rtl .row-fluid [class*="span"] {
  float: right !important;
  margin-left: 0;
  margin-right: 2.564102564102564%;
}

body.rtl .row-fluid [class*="span"]:first-child {
  margin-right: 0;
}

body.rtl ul,
body.rtl ol {
  margin: 0 25px 10px 0;
}

table {
  margin-bottom: 1rem;
  border: 1px solid var(--grey-4-shade);
  border-collapse: collapse;
}

td,
th {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--grey-4-shade);
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--grey-1-primary);
  font-family: 'Oxygen', sans-serif;
  font-weight: bold;
}

strong {
  color: var(--grey-1-primary);
  font-weight: bold;
}

/* Copied from style.css */

table {
  width: 100%;
}

td {
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid var(--grey-2-secondary);
  vertical-align: top;
}

th {
  text-align: left;
  padding: 5px 10px;
  border-bottom: 1px solid var(--grey-2-secondary);
  vertical-align: top;
  font-weight: 500;
  background-color: #f5f5f5;
}

dt {
  color: var(--grey-1-primary);
  font-weight: 700;
}

th {
  color: var(--grey-1-primary);
}

small {
  font-size: 11px;
}

hr {
  border: 0;
  background: var(--grey-2-secondary);
  height: 1px;
  margin: 0 0 20px;
}

tr.orders-0-delivery_address,
tr.orders-0-invoice_address,
tr.orders-0-customer,
tr.orders-0-merchant_reference,
tr.orders-0-cart,
tr.orders-0-cart-items,
tr.orders-0-remaining_cart,
tr.orders-0-remaining_cart-items {
  background-color: var(--white);
}

.mermaid {
  margin-bottom: 30px;
}

.mermaid#ipn-flow {
  background: var(--white);
}

.mermaid#ipn-flow .actor {
  stroke: var(--sequra-green-light);
  fill: var(--sequra-green-light);
}
.mermaid#ipn-flow text.actor {
  fill: var(--grey-1-primary);
  stroke: none;
  font-family: Helvetica;
}

.mermaid#ipn-flow .actor-line {
  stroke: var(--grey-2-secondary)
}

.mermaid#ipn-flow .messageLine0 {
  stroke-width: 1.5;
  stroke-dasharray: '2 2';
  marker-end: 'url(#arrowhead)';
  stroke: var(--grey-1-primary);
}

.mermaid#ipn-flow .messageLine1 {
  stroke-width: 1.5;
  stroke-dasharray: '2 2';
  stroke: var(--grey-1-primary);
}

.mermaid#ipn-flow #arrowhead {
  fill: var(--grey-1-primary);
}

.mermaid#ipn-flow .messageText {
  fill: var(--grey-1-primary);
  stroke: none;
  font-family: 'trebuchet ms', verdana, arial;
  font-size: 14px;
}

.mermaid#ipn-flow .labelBox {
  stroke: var(--sequra-green-light);
  fill: var(--sequra-green-light);
}

.mermaid#ipn-flow .labelText {
  fill: var(--grey-1-primary);
  stroke: none;
  font-family: 'trebuchet ms', verdana, arial;
}

.mermaid#ipn-flow .loopText {
  fill: var(--grey-1-primary);
  stroke: none;
  font-family: 'trebuchet ms', verdana, arial;
}

.mermaid#ipn-flow .loopLine {
  stroke-width: 2;
  stroke-dasharray: '2 2';
  marker-end: 'url(#arrowhead)';
  stroke: var(--sequra-green-light);
}

.mermaid#ipn-flow .note {
  stroke: #decc93;
  fill: #fff5ad;
}

.mermaid#ipn-flow .noteText {
  fill: var(--grey-1-primary);
  stroke: none;
  font-family: 'trebuchet ms', verdana, arial;
  font-size: 14px;
}