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

/*
  Paragraph Style
*/

.paragraph-space {
  margin-bottom: 5px !important;
  padding: 10px 10px 10px 10px !important;
  min-height: 30px;
}

.paragraph-margin {
  margin-right: 2px;
  margin-left: 2px;
}

/*
  Paragraph Results
*/

.paragraph .text {
  display: block !important;
  font-family: "Monaco","Menlo","Ubuntu Mono","Consolas","source-code-pro",monospace;
  font-size: 12px !important;
  line-height: 1.42857143 !important;
  margin: 0 0 5px !important;
  padding-top: 2px;
  unicode-bidi: embed;
  white-space: pre-wrap;
  word-break: break-all !important;
  word-wrap: break-word !important;
}

.paragraph table:not(.markdown-body table) {
  margin-bottom: 0;
}

.paragraph div svg {
  width: 100%;
}

.plainTextContainer {
  font-family: "Monaco","Menlo","Ubuntu Mono","Consolas","source-code-pro",monospace;
  font-size: 12px !important;
}

.plainTextContent{
  white-space:pre-wrap; /** to preserve white-space and newlines of result */
}

.plainTextContent div {
  min-height:17px;
}

.graphContainer {
  position: relative;
  margin-bottom: 5px;
  overflow: visible;
}

.graphContainer .table {
  overflow: hidden;
  margin-bottom: 5px !important;
}

.resizable-helper {
  border: 3px solid #DDDDDD;
}

.paragraph .executionTime {
  color: #999;
  font-size: 10px;
  font-family: 'Roboto', sans-serif;
}

.paragraph .elapsedTime {
  color: #999;
  font-size: 10px;
  font-family: 'Roboto', sans-serif;
}

.paragraph .resultContained {
  overflow: auto;
}

/*
  Paragraph as Iframe CSS
*/

.paragraphAsIframe {
  padding: 0;
  margin-top: -79px;
  margin-left: 0px;
  margin-right: -10px;
}

.paragraphAsIframe .control {
  background: rgba(255,255,255,0.9);
  border-top: 1px solid #EFEFEF;
  display: none;
  float: right;
  color: #999;
  margin-right: 0;
  position: absolute;
  clear: both;
  right: 25px;
}

.paragraphAsIframe table {
  margin-bottom: 0;
}

.paragraphAsIframe .editor {
  width: 100%;
  border-left: 4px solid #EEEEEE;
  background: rgba(255, 255, 255, 0.9);
}

.paragraphAsIframe .text {
  white-space: pre;
  display: block;
  unicode-bidi: embed;
  display: block !important;
  margin: 0 10px 5px!important;
  font-size: 12px!important;
  line-height: 1.42857143!important;
  word-break: break-all!important;
  word-wrap: break-word!important;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
}

.paragraphAsIframe .title {
  width: 80%;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
  font-size: 17px !important;
  margin: 0 10px !important;
}

/*
  Paragraph Controls CSS
*/

.paragraph .runControl {
  font-size: 1px;
  color: #AAAAAA;
  height:4px;
  margin: 0px 0px 0px 0px;
}

.paragraph .runControl .progress {
  position: relative;
  width: 100%;
  height: 4px;
  z-index: 100;
  border-radius: 0;
}

.paragraph .control span {
  margin-left: 4px;
}

.paragraph .control {
  position: absolute;
  float: right;
  background: rgba(255,255,255,0.85);
  color: #999;
  margin-top: 1px;
  margin-right: 5px;
  position: absolute;
  clear: both;
  right: 15px;
  top: 16px;
  text-align: right;
  font-size: 12px;
  padding: 4px;
}

.paragraph .control li {
  font-size: 12px;
  margin-bottom: 4px;
  color: #333333;
}

.paragraph .control .tooltip {
  z-index: 10003;
}

/*
  Paragraph Menu
*/

.dropdown-menu > li > a {
  cursor: pointer;
}

.dropdown-menu .shortcut-icon {
  padding-right: 7px;
  float: left;
}

.item-disable {
  color: rgba(128, 128, 128, 0.61) !important;
  cursor: default !important;
}

.dropdown-menu .shortcut-keys {
  float: right;
  color: #999;
}

.modal-dialog .table-scroll {
  max-height: 70vh;
  min-width: 160px;
  overflow: auto;
  overflow-y: scroll;
}

.shortcut-modal-header {
  min-height: 16.428571429px;
  padding: 15px;
  border-bottom: 1px solid #9cb4c5;
  background-color: #3071a9;
  border: 2px solid #3071a9;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.shortcut-modal-header .close {
  color: #cfcfcf;
  opacity: 1;
}

.shortcut-modal-title {
  color: white;
  margin-top: 2px;
  margin-bottom: 2px;
}

table.table-shortcut {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.table-shortcut > tbody > tr > th {
  background-color: #d6dde7;
  border-color: 1px solid #9cb4c5;
  color: #383a3c;
  font-size: 15px !important;
  font-weight: 500;
}

.table-shortcut > tbody > tr > td {
  border-top: 0px;
  padding: 5px;
  vertical-align: middle;
  font-size: 14px !important;
}

.kbd-default {
  border: 1;
  font-size: 10px !important;
}

/*
  Paragraph Title
*/

.paragraph .title {
  margin: 0;
  font-size: 12px;
}

.paragraph .title div {
  width: 80%;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
  font-size: 17px !important;
}

.paragraph .title input {
  width: 80%;
  height: 24px;
  line-height: 1.42857143;
  color: #555;
  background: #fff none;
  border: 1px solid #ccc;
  border-radius: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  font-family: 'Roboto', sans-serif;
  font-size: 17px !important;
  font-weight: bold;
  padding: 0 2px;
  margin-left: -3px;
}

/*
  Ace Text Editor CSS
*/

.paragraph .editor {
  width: 100%;
  border-left: 4px solid #DDDDDD;
  background: rgba(255, 255, 255, 0.0);
  margin: 7px 0 2px 0;
}

.paragraph-text--dirty {
  border-left: 4px solid #E67E22 !important;
}

.paragraph .ace_print-margin {
  background: none !important;
}

.paragraph-disable {
  opacity : 0.6!important;
}

.ace_marker-layer .ace_selection {
    z-index: 0 !important;
}

.ace_marker-layer .ace_selected-word {
    z-index: 0 !important;
}

.ace-tm {
  background: #FFFFFF;
  color: black;
}

.ace_editor {
  position: relative;
  overflow: hidden;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  font-size: 12px;
  line-height: normal;
  direction: ltr;
}

/** set highlight line color */
#main .ace-chrome .ace_marker-layer .ace_active-line,
#main .ace-chrome .ace_gutter-active-line {
  background: rgba(114, 127, 222, 0.15);
}

/** hide not focused cursors */
.ace_hidden-cursors {
  opacity: 0;
}

/** set cursor color */
#main .emacs-mode .ace_cursor {
  background: #000 !important;
  border: none !important;
  width: 2px !important;
}

.ace_text-input, .ace_gutter, .ace_layer,
.emacs-mode, .ace_text-layer, .ace_cursor-layer,
.ace_cursor, .ace_scrollbar {
  z-index: auto !important;
}

.ace_text-input.ace_composition {
 opacity: 0 !important;
}

/*
  Table Display CSS
*/

.tableDisplay {
  margin-top: 2px;
}

.tableDisplay div {
}

.tableDisplay img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tableDisplay .btn-group span {
  margin: 10px 0 0 10px;
  font-size: 12px;
}
.tableDisplay .btn-group span a {
  cursor: pointer;
}

.tableDisplay .option {
  padding: 5px 5px 5px 5px;
  font-size: 12px;
  height: auto;
  overflow: auto;
  border-top: 1px solid #ecf0f1;

}

.tableDisplay .option .columns {
  height: 100%;
}

.tableDisplay .option .columns ul {
  background: white;
  overflow: auto;
  width: auto;
  padding: 3px 3px 3px 3px;
  height: 150px;
  border: 1px solid #CCC;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.tableDisplay .option .columns ul li {
  margin: 3px 3px 3px 3px;
}

.tableDisplay .option .columns ul li span {
  cursor: pointer;
  margin-left: 3px;
  margin-top: 3px;
}

.tableDisplay .option .columns ul li div ul {
  width: auto;
  height: auto;
}

.tableDisplay .option .columns ul li div ul li a {
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.tableDisplay .option .columns a:focus,
.tableDisplay .option .columns a:hover {
  text-decoration: none;
  outline: 0;
  outline-offset: 0;
}

.paragraph .tableDisplay .hljs {
  background: none;
}

/*
  Pivot CSS
*/

.allFields {
  margin-bottom: 10px;
}

.noDot {
  list-style-type: none;
  padding-left: 5px;
}

.liVertical {
  display: block;
  float: left;
  padding: 5px;
}

/*
  Paragraph Font CSS
*/

.lightBold {
  font-weight: 500;
}

table.table-striped {
  border-top: 1px solid #ddd;
}

.scroll-paragraph-down {
  position: absolute;
  right: 10px;
  cursor: pointer;
}

.scroll-paragraph-up {
  bottom: 5px;
  cursor: pointer;
  position: absolute;
  right: 15px;
}

.appSuggestion {
  width: 200px;
  padding: 5px 10px 5px 10px;
}

/* DSV download toggle button */
.caretBtn {
  padding-right: 4px !important;
  padding-left: 4px !important;
  width: 20px;
}

/*
  Overwrite github-markdown-css for Markdown interpreter
*/

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin-top: 16px;
  margin-bottom: 16px;
}

.markdown-body {
  font-size: 14px;
}

.markdown-body h2 {
  font-size: 26px;
}

.markdown-body h3 {
  font-size: 20px;
}

.markdown-body h4 {
  font-size: 16px;
}

.network-labels {
  margin: 0.2em;
}
