/*
Copyright (c) 2014 Marand (marand.com)
Author: Marko Pipan
Licensed under the GPLv3 license:
http://www.gnu.org/licenses/gpl.html
*/

.cm-s-ehrexplorer span.cm-meta {color: #FF1717;}
.cm-s-ehrexplorer span.cm-keyword { font-weight: bold; color: #7F0055; }
.cm-s-ehrexplorer span.cm-atom {color: #219;}
.cm-s-ehrexplorer span.cm-number {color: #164;}
.cm-s-ehrexplorer span.cm-def {color: #00f;}
.cm-s-ehrexplorer span.cm-variable {color: black;}
.cm-s-ehrexplorer span.cm-variable-2 {color: #0000C0;}
.cm-s-ehrexplorer span.cm-variable-3 {color: #0000C0;}
.cm-s-ehrexplorer span.cm-property {color: black;}
.cm-s-ehrexplorer span.cm-operator {color: black;}
.cm-s-ehrexplorer span.cm-comment {color: #3F7F5F;}
.cm-s-ehrexplorer span.cm-string {color: green;}
.cm-s-ehrexplorer span.cm-string-2 {color: #f50;}
.cm-s-ehrexplorer span.cm-property {color: #0000ff;}
.cm-s-ehrexplorer span.cm-error {color: #f00;}
.cm-s-ehrexplorer span.cm-qualifier {color: #555;}
.cm-s-ehrexplorer span.cm-builtin {color: #30a;}
.cm-s-ehrexplorer span.cm-bracket {color: #cc7;}
.cm-s-ehrexplorer span.cm-tag {color: #170;}
.cm-s-ehrexplorer span.cm-attribute {color: #00c;}
.cm-s-ehrexplorer span.cm-link {color: #219;}
.cm-s-ehrexplorer span.cm-macro {color: blue; font-weight: bold;}
.cm-s-ehrexplorer span.cm-aql-brackets {color: #6666ff;}
.cm-s-ehrexplorer span.cm-archetype-id {color: #007B85; font-style: italic;}
.cm-s-ehrexplorer span.cm-parameter {color: rgb(220 82 241);}
.cm-s-ehrexplorer span.cm-whitespace {color: #164;}

.cm-s-ehrexplorer .CodeMirror-matchingbracket {
	border:1px solid gray;
	color:black !important;;
}

/* openEHR example format badges (used in summary table) */
.openehr-format-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.75em;
  font-weight: bold;
  margin-right: 3px;
  white-space: nowrap;
}
.openehr-format-flat       { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.openehr-format-structured { background: #cce5ff; color: #004085; border: 1px solid #b8daff; }
.openehr-format-canonical  { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* openEHR instance example tabs */
.openehr-example-set {
  margin: 1.5em 0;
}
.openehr-example-set h4.openehr-example-title {
  margin-bottom: 0.5em;
}
.openehr-format-tabs {
  margin-bottom: 0 !important;
  border-bottom: 1px solid #ddd;
}
.openehr-tab-content {
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
}
.openehr-tab-pane {
  display: none;
}
.openehr-tab-pane.active {
  display: block;
}
.openehr-tab-copyrow {
  margin: 0.5em 1em 0;
  text-align: right;
}
.openehr-tab-pane pre {
  margin: 0;
  border: none;
  border-radius: 0 0 4px 4px;
  padding: 1em;
  background: #f8f8f8;
  max-height: 600px;
  overflow: auto;
}

/* Keep JSON line breaks after CodeMirror runMode (composition tabs + AQL response) */
.openehr-example-set pre.openehr-json-pre,
.openehr-example-set pre.openehr-json-pre code.openehr-json-code {
  white-space: pre !important;
  word-break: normal;
  overflow-wrap: normal;
}
.openehr-example-set pre.openehr-json-pre code.openehr-json-code {
  display: block;
  font-family: Consolas, Monaco, "Andale Mono", ui-monospace, monospace;
  font-size: 0.9em;
}
