/* IMPORTANT NOTE The way that the below style classes (e.g. ".c") are aligned to the token (e.g. "Comment") is in the Token.rb file here https://github.com/rouge-ruby/rouge/blob/master/lib/rouge/token.rb. If you need to add a new style, add the token first in our own copy of the token.rb file at doc-generation/jekyll/_plugins/token.rb (see example of RecordType). Then it can be referenced in sail.rb. */
.highlight    { background: #ffffff; position: relative;}
.highlight    .c     { color: #50B900; font-style: normal } /*  Comment */
.highlight    .err   { color: #a61717; background-color: #e3d2d2 } /*  Error */
.highlight    .k     { color: #24B0ED } /*  Keyword */
.highlight    .o     { color: #687687; font-weight: normal } /*  Operator */
.highlight    .cm    { color: #50B900; font-style: normal } /*  Comment.Multiline */
.highlight    .cp    { color: #50B900 } /*  Comment.Preproc */
.highlight    .c1    { color: #50B900; font-style: normal } /*  Comment.Single */
.highlight    .cs    { color: #999; font-style: normal } /*  Comment.Special */
.highlight    .gd    { color: #000; background-color: #fdd } /*  Generic.Deleted */
.highlight    .gd .x { color: #000; background-color: #faa } /*  Generic.Deleted.Specific */
.highlight    .ge    { font-style: italic } /*  Generic.Emph */
.highlight    .gr    { color: #a00 } /*  Generic.Error */
.highlight    .gh    { color: #999 } /*  Generic.Heading */
.highlight    .gi    { color: #000; background-color: #dfd } /*  Generic.Inserted */
.highlight    .gi .x { color: #000; background-color: #afa } /*  Generic.Inserted.Specific */
.highlight    .go    { color: #888 } /*  Generic.Output */
.highlight    .gp    { color: #555 } /*  Generic.Prompt */
.highlight    .gs    { background-color: #fdff00; } /*  Generic.Strong */
.highlight    .gu    { color: #FFB6C1; display:none; } /*  Generic.Subheading */
.highlight    .gt    { color: #a00 } /*  Generic.Traceback */
.highlight    .kc    { color: #005BD0; font-weight: normal } /*  Keyword.Constant */
.highlight    .kd    { color: #999999 } /*  Keyword.Declaration */
.highlight    .kp    { color: #999999 } /*  Keyword.Pseudo */
.highlight    .kr    { font-weight: bold } /*  Keyword.Reserved */
.highlight    .kt    { color: #458; font-weight: bold } /*  Keyword.Type */
.highlight    .m     { color: #099 } /*  Literal.Number */
.highlight    .s     { color: #9269C9 } /*  Literal.String */
.highlight    .na    { color: #008080 } /*  Name.Attribute */
.highlight    .nb    { color: #4271AE } /*  Name.Builtin */

/* Simple references to recordType, Portal, PortalPage, Site, Translation in sail */
.highlight .r, .highlight .prt, .highlight .pp, .highlight .site, .highlight .trz { 
  border: 1px solid green;
  color: #3f3f3f;
  font-size: 11px;
  background-color: #efefef;
  border-radius: 0.1429rem; 
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  border-left: 1px solid #d9d9d9;
  border-right: 1px solid #d9d9d9;
  cursor: default;
  padding: 1px 4px 1px 4px;
  background-position: 3px 50%, center;
  background-repeat: no-repeat;
  background-size: 15px 15px;
  vertical-align: middle;
}

/* Complex references in sail that include UUIDs for recordType, Portal, PortalPage, Site, Translation */
.highlight .rc, .highlight .pc, .highlight .ppc, .highlight .sitec, .highlight .trzc { 
   color: #3f3f3f;
   font-size: 11px;
   background-color: #efefef;
   border-top-left-radius: 0.1429rem;
   border-bottom-left-radius: 0.1429rem;
   border-top: 1px solid #d9d9d9;
   border-bottom: 1px solid #d9d9d9;
   border-left: 1px solid #d9d9d9;
   cursor: default;
   padding: 1px 0px 1px 4px;
   background-position: 3px 50%, center;
   background-repeat: no-repeat;
   background-size: 15px 15px;
   vertical-align: middle;
 }

/* Add icon before RecordType  */
.highlight .r:before, .highlight .rc:before {
  background-image: url(../images/recordtypeicon.png);
  content: "";
  background-size: 13px 13px;
  width: 13px;
  height: 13px;
  background-repeat: no-repeat;
  display: inline-block;
  text-decoration: inherit;
  vertical-align: middle;
  padding-top: 2px;
  padding-right: 3px;
}

 /* Add icon before Portal  */
.highlight .pc:before, .highlight .prt:before {
  background-image: url(../images/portalicon3.png);
  content: "";
  background-size: 13px 13px;
  width: 13px;
  height: 13px;
  background-repeat: no-repeat;
  display: inline-block;
  text-decoration: inherit;
  vertical-align: middle;
  padding-top: 2px;
  padding-right: 3px;
} 

 /* Add icon before PortalPage  */
 .highlight .ppc:before, .highlight .pp:before {
  background-image: url(../images/portalpage3.png);
  content: "";
  background-size: 13px 13px;
  width: 13px;
  height: 13px;
  background-repeat: no-repeat;
  display: inline-block;
  text-decoration: inherit;
  vertical-align: middle;
  padding-top: 2px;
  padding-right: 3px;
} 

 /* Add icon before Translation  */
 .highlight .trzc:before, .highlight .trz:before {
  background-image: url(../images/translationobj.png);
  content: "";
  background-size: 13px 13px;
  width: 13px;
  height: 13px;
  background-repeat: no-repeat;
  display: inline-block;
  text-decoration: inherit;
  vertical-align: middle;
  padding-top: 2px;
  padding-right: 3px;
} 

 /* Add icon before PortalPage  */
 .highlight .sitec:before, .highlight .site:before {
  background-image: url(../images/sitepage.png);
  content: "";
  background-size: 13px 13px;
  width: 13px;
  height: 13px;
  background-repeat: no-repeat;
  display: inline-block;
  text-decoration: inherit;
  vertical-align: middle;
  padding-top: 2px;
  padding-right: 3px;
} 

/* For .notation object references within complex references that have UUID */
.highlight  .objectname { 
   color: #3f3f3f;
   font-size: 11px;
   background-color: #efefef;
   border-top: 1px solid #d9d9d9;
   border-bottom: 1px solid #d9d9d9;
   cursor: default;
   padding: 1px 1px 1px 1px;
   margin-right: 0px;
 } 
 
 /* for the ' at the end of complex references with UUID. Will hide the ' and put correct border on end of box */
 .highlight .objectend { 
   font-size: 0;
   cursor: default;
   padding-left: 1px;
   padding-right: 2px;
   padding-top: 1px;
   padding-bottom: 1px; 
 } 
 .objectend::after {
   content: "";
   font-size: 11px;
   border-right: 1px solid #d9d9d9;
   border-top: 1px solid #d9d9d9;
   border-bottom: 1px solid #d9d9d9;
   background-color: #efefef;
   padding: 1px 2px 1px 1px;
   margin-right: 0px;
   margin-left: -2px;
   border-bottom-right-radius: 1.1429rem;
   border-top-right-radius: 1.1429rem;
 }

 /* to hide UUID (though still copy/pastable) in complex references with UUIDs */
.highlight .hideuuid   { font-size: 0 }


.highlight    .nc    { color: #458; font-weight: bold } /*  Name.Class */
.highlight    .no    { color: #FF812B } /*  Name.Constant */
.highlight    .ni    { color: #800080 } /*  Name.Entity */
.highlight    .ne    { color: #900; font-weight: bold } /*  Name.Exception */
.highlight    .nf    { color: #005BD0; line-height: unset; } /*  Name.Function */
.highlight    .nn    { color: #555 } /*  Name.Namespace */
.highlight    .nt    { color: #000080 } /*  Name.Tag */
.highlight    .nv    { color: #008080 } /*  Name.Variable */
.highlight    .ow    { font-weight: normal } /*  Operator.Word */
.highlight    .w     { color: #bbb } /*  Text.Whitespace */
.highlight    .mf    { color: #999999 } /*  Literal.Number.Float */
.highlight    .mh    { color: #999999 } /*  Literal.Number.Hex */
.highlight    .mi    {color: #005BD0;} /*  Literal.Number.Integer */
.highlight    .mo    { color: #999999 } /*  Literal.Number.Oct */
.highlight    .sb    { color: #d14 } /*  Literal.String.Backtick */
.highlight    .sc    { color: #d14 } /*  Literal.String.Char */
.highlight    .sd    { color: #d14 } /*  Literal.String.Doc */
.highlight    .s2    { color: #9269C9 } /*  Literal.String.Double */
.highlight    .se    { color: #d14 } /*  Literal.String.Escape */
.highlight    .sh    { color: #d14 } /*  Literal.String.Heredoc */
.highlight    .si    { color: #d14 } /*  Literal.String.Interpol */
.highlight    .sx    { color: #d14 } /*  Literal.String.Other */
.highlight    .sr    { color: #009926 } /*  Literal.String.Regex */
.highlight    .s1    { color: #d14 } /*  Literal.String.Single */
.highlight    .ss    { color: #999999 } /*  Literal.String.Symbol */
.highlight    .bp    { color: #999 } /*  Name.Builtin.Pseudo */
.highlight    .vc    { color: #008080 } /*  Name.Variable.Class */
.highlight    .vg    { color: #008080 } /*  Name.Variable.Global */
.highlight    .vi    { color: #008080 } /*  Name.Variable.Instance */
.highlight    .il    { color: #099 } /*  Literal.Number.Integer.Long */


/* ANCHOR syntax highlighting and line numbers */

figure.highlight>pre {
  background-color: #FFFFFF !important;
}

/* for code with no line numbers, give a margin */
figure.highlight>pre:not(:has(pre.lineno)){
  margin: 10px !important;
  padding-right: 22px;
}

div.highlighter-rouge,
figure.highlight {
  margin-top: 10px;
  margin-bottom: 10px;
}

.highlight,
figure.highlight pre {
  margin: 0px;
  padding: 0px;
  line-height: 1.42857;
  border: 0px solid #ccc;
}

div.highlight,
figure.highlight {
  border: 1px solid #808080;
  /* padding: 10px; */
}

table.rouge-table {
  /* margin: -10px; */
}

.rouge-code>pre,
.rouge-gutter>pre,
td.gutter.gl,
td.code {
  margin: 0px;
  padding: 5px;
  white-space: pre;
  word-wrap: normal;
  resize: none;
  box-sizing: border-box;
  border: 0px;
}

.rouge-gutter,
.gutter {
  border: 0px;
  border-right: 1px solid #ddd;
  vertical-align: top;
  background-color: #f0f0f0;
  text-align: right;
}

.lineno {
  border: 0px;
  background-color: transparent;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  color: #3f3f3f;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.rouge-code>pre,
td.code>pre {
  background-color: white;
  overflow-x: auto;
  min-width: 500px;
}

.rouge-code,
td.code {
  border: 0px solid #e7e7e7;
  background-color: white;
  display: inline-grid;
}

/* Copy code button (and copy popup) for code blocks */

.copycode-button {
  width: 20px; 
  height: 20px; 
  background: url(/suite/help/25.4/images/clone.png);
  background-size: cover;   
  background-color: #ffffff;
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  transition: background 1000ms;
}

.copycode-button-hover {
  background: url(/suite/help/25.4/images/clone-hover.png);
  background-size: cover;
  transition: none;
}

.copycode-button-clicked {
  transition: none;
  background: url(/suite/help/25.4/images/clone-check.png);
  background-size: cover;
}

.copycode-popup {
  opacity: 0;
  visibility: hidden;
  transition: visibility 0s 500ms, opacity 500ms linear;
  padding-right: 5px;
  padding-left: 5px;
  padding-top: 0.5px;
  padding-bottom: 0.5px;
  color: rgb(255, 255, 255);
  border: 1.5px solid grey;
  background-color: grey;
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  position: absolute;
  top: 6px;
  right: 29px;
  border-radius: 3px;
}

.copycode-popup-open {
  display: inline-block;
  transition: none; 
  visibility: visible;
  opacity: 1.0;
}

/* overrides for code blocks with no line numbers */

/* figure.highlight > pre:not(:has(code table.rouge-table)) .copycode-button {
  top: -5px; 
  right: -5px;
} */

/* figure.highlight > pre:not(:has(code table.rouge-table)) .copycode-popup {
  top: -5px;
  right: 18px; 
} */