:root {
   /* Font families */
   /* ----------------------------------------------------------------------*/

   /* Used for interface elements */
   --t-interface-font: 'Inter UI', system-ui, sans-serif;
   /* Used for flowing text, such as paragraphs */
   --t-text-font: 'Inter UI', system-ui, sans-serif;
   /* used for code, URLS, etc */
   --t-code-font: Monaco, 'Courier New';

   /* Font sizes */
   /* ----------------------------------------------------------------------*/

   /* Used for main text */
   --t-text-font-size: 17px;
   /* Used for authors list */
   --t-large-font-size: 19px;
   /* Table of contents */
   --t-small-font-size: 14px;
   /* Used in toolbars and section labels */
   --t-tiny-font-size: 12px;
   /* Used in toolbar dropdown menus */
   --t-dropdown-font-size: 11px;
   /* E.g. article title */
   --t-title-font-size: 36px;
   /* Heading level 1 */
   --t-h1-font-size: 23px;
   /* Heading level 2 */
   --t-h2-font-size: 21px;
   /* Heading level 3 */
   --t-h3-font-size: 19px;
   /* Heading level 4 */
   --t-h4-font-size: 17px;

   /* Font weights */
   /* ----------------------------------------------------------------------*/

   --t-normal-font-weight: 400; /* Normal text weight */
   --t-bold-font-weight: 500; /* Strong emphasis */

   /* Line heights */
   /* ----------------------------------------------------------------------*/

   /* Used in main text */
   --t-default-line-height: 1.5;

   /* Colors */
   /* ----------------------------------------------------------------------*/

  /* Default background color, used when we need to cover content, e.g. in overlays */
  --t-background-color: #fff;
  /* Light (greyish) background color */
  --t-light-background-color: #2E72EA0a;
  /* Background for action buttons */
  --t-action-background-color: #4e4e4e;
  /* Button backgorund */
  --t-default-button-background: #f7f7f9;
  /* Main text color, used in the article */
  --t-text-color: #111;
  /* Used to display error message */
  --t-error-text-color: #c80000;
  /* Inverted text color, to put on dark elements */
  --t-inverted-text-color: #fff;
  /* Used for section labels, card labels etc. */
  --t-light-text-color: #888;
  /* Used for input placeholders */
  --t-placeholder-text-color: #ccc;
  /* Used for focus border, e.g. selected card, or text input */
  --t-focus-color: rgb(145, 189, 240);
  /* E.g. citations of references, figures, etc. */
  --t-action-color: #2e72ea;
  /* Used to display warning icons */
  --t-warning-color: #ffaf46;
  /* Used to display error message */
  --t-error-color: rgba(200, 0, 0, 0.25);
  /* Default light border color */
  --t-border-color: #ddd;

   /* Paddings */
   /* ----------------------------------------------------------------------*/
  --t-half-spacing: 10px; /* Half of the default spacing */
  --t-default-spacing: 20px; /* Default padding to create some whitespace, e.g. in figure */
  --t-text-spacing: 15px; /* Used as the margin between content elements */
  --t-double-spacing: 40px; /* Double of the default spacing */
  --t-input-padding: 4px; /* Padding used input boxes */
  --t-cell-padding: 6px; /* Padding used table cells */
  --t-button-padding: 7px; /* Padding used by buttons */

   /* Margins */
   /* ----------------------------------------------------------------------*/

  --t-flowing-content-margin: 20px 0; /* Space between content elements, e.g. between two paragraphs */

   /* Borders */
   /* ----------------------------------------------------------------------*/

  --t-input-default-border: 2px solid transparent;
  --t-input-outline-border: 2px solid var(--t-border-color);
  --t-input-focus-border: 2px solid rgb(145, 189, 240);
  --t-negative-input-padding: -6px; /* This must be the negative of input padding + default border width */
  --t-negative-list-padding: -4px; /* Same, but without borders. Used in comma-separated lists. */
  --t-border-radius: 5px; /* Default border radius for rounded corners */
  --t-tool-border-radius: 3px; /* Default border radius for tools */
  --t-default-border: 1px solid var(--t-border-color);

   /* Box shadows */
   /* ----------------------------------------------------------------------*/

  --t-default-box-shadow: 0 0 0 0.75pt #d1d1d1, 0 0 3pt 0.75pt #ccc;
  --t-popup-box-shadow: 0 2px 10px -2px rgba(0,0,0,0.8);

   /* Substance Styles */
   /* ----------------------------------------------------------------------*/
  --t-small-layout-width: 300px;
  --t-medium-layout-width: 620px;
  --t-large-layout-width: 960px;
  --t-separator-color: rgba(0,0,0,0.05);
}

.sc-texture {
  line-height: var(--t-default-line-height);
  height: 100%;
  position: relative;
  font-family: var(--t-interface-font)
}

.sc-texture a {
  color: var(--t-action-color);
  text-decoration: none;
}

/* TODO: move these in specific files for sake of consistency */

.sc-texture .sc-annotation.sm-italic {
  font-style: italic;
}

.sc-texture .sc-annotation.sm-bold {
  font-weight: bold;
}

.sc-texture .sc-annotation.sm-small-caps {
  font-variant: small-caps;
}

.sc-texture .sc-annotation.sm-subscript {
  vertical-align: sub;
  font-size: smaller;
}

.sc-texture .sc-annotation.sm-superscript {
  vertical-align: super;
  font-size: smaller;
}

.sc-texture .sc-annotation.sm-monospace, .sc-texture .sm-preformat {
  /* Attention: double monospace here for correcting the inheritance
  and scaling of font size in all browsers */
  font-family: monospace, monospace;
}

.sc-texture .sm-overline {
  text-decoration: overline;
}

.sc-texture .sm-strike-through {
  text-decoration: line-through;
}

.sc-texture .sm-underline {
  text-decoration: underline;
}

.sc-button.sm-theme-light {
  position: relative;
  height: 24px;
  min-width: 24px;
  line-height: var(--t-default-line-height);
  text-align: center;
  font-size: var(--t-tiny-font-size);
  font-weight: 600;
  border-radius: var(--t-tool-border-radius);
  padding-left: var(--t-button-padding);
  padding-right: var(--t-button-padding);
}

.sc-button.sm-theme-light > .se-dropdown {
  padding-left: 5px;
}

.sc-button.sm-theme-light[disabled=true] {
  opacity: 0.4;
  cursor: default;
}

.sc-button.sm-theme-light.sm-active {
  background: var(--t-action-color);
  color: white;
}

.sc-button.sm-theme-light:hover:not(.sm-active):not([disabled]),
.sc-button.sm-theme-light:focus {
  background: var(--t-default-button-background);
  color: var(--t-action-color);
}

.sc-context-menu {
  position: absolute;
  background: var(--t-background-color);
  border-radius: var(--t-border-radius);
  font-size: var(--t-small-font-size);
  z-index: 1000;
  box-shadow: var(--t-default-box-shadow);
  padding: 4px;
}

.sc-context-menu.sm-hidden {
  /* we don't use display none because we want to determine the content's width */
  visibility: hidden;
  left: 0px;
  top: 0px;
}

.sc-find-and-replace-dialog {
  position: relative;
  padding: var(--t-half-spacing);
  margin-left: 270px;
  max-width: 710px;
}

.sc-find-and-replace-dialog.sm-hidden {
  display: none;
}

.sc-find-and-replace-dialog > .se-header {
  display: flex;
  justify-content: space-between;
}

.sc-find-and-replace-dialog > .se-header > .se-title {
  font-size: var(--t-small-font-size);
}

/* because we place the dialog at the bottom of the screen we must place tooltips above */

.sc-find-and-replace-dialog .sc-button .se-tooltip {
  top: -30px;
  left: 30px;
}

.sc-find-and-replace-dialog > .se-section {
  display: flex;
  margin-top: 5px;
}

.sc-find-and-replace-dialog > .se-section > .sm-input {
  position: relative;
  flex-grow: 1;
}

.sc-find-and-replace-dialog > .se-section > .sm-input > .se-status {
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: var(--t-tiny-font-size);
}

.sc-find-and-replace-dialog > .se-section > .sm-input > input {
  width: 100%;
  height: 100%;
  border: var(--t-input-outline-border);
  border-radius: var(--t-border-radius);
  padding: 2px 80px 2px 10px;
  color: var(--t-text-color);
}

.sc-find-and-replace-dialog > .se-section > .sm-input > input:focus {
  border: var(--t-input-focus-border);
}

.sc-find-and-replace-dialog > .se-section > .sm-actions {
  flex-grow: 0;
}

.sc-find-and-replace-dialog > .se-section > .sm-actions > .sc-button {
  width: 80px;
  height: 100%;
  /* border: var(--t-default-border); */
  border-radius: var(--t-border-radius);
  background: var(--t-border-color);
}

.sc-find-and-replace-dialog > .se-section > .sm-actions > .sc-button:not([disabled=true]):hover,
.sc-find-and-replace-dialog > .se-section > .sm-actions > .sc-button:not([disabled=true]):focus {
  background: var(--t-action-color);
  color: white;
}

.sc-find-and-replace-dialog .se-group {
  display: inline-block;
}

.sc-find-and-replace-dialog .se-group > * {
  display: inline-block;
  color: var(--t-light-text-color);
}

.sc-find-and-replace-dialog .se-group > .sm-active {
  background: var(--t-action-color);
  color: white;
}

.sc-find-and-replace-dialog .se-group + .se-group {
  margin-left: 5px;
}

.sc-find-and-replace-dialog .se-group > * + * {
  margin-left: 5px;
}

.sc-find-and-replace-dialog .se-group.sm-input > .se-label::after {
  content: ':';
}

.sc-annotation.sm-find-marker {
  background-color: rgb(255, 255, 182);
}

.sc-annotation.sm-find-marker.sm-active {
  background-color: darkgoldenrod;
}

.sc-input-with-button {
  display: flex;
}

.sc-input-with-button > .se-input {
  border: var(--t-default-border);
  border-radius: var(--t-border-radius);
  padding: var(--t-half-spacing);
  margin-right: var(--t-half-spacing);
  font-size: var(--t-small-font-size);
  flex-grow: 1;
}

.sc-input-with-button > .se-input::placeholder,
.sc-input-with-button > .se-input::-webkit-input-placeholder {
	color: var(--t-placeholder-text-color);
  font-weight: var(--t-normal-font-weight);
}

.sc-input-with-button > .se-button   {
  background: var(--t-action-background-color);
  color: var(--t-inverted-text-color);
  border-radius: var(--t-border-radius);
  padding: var(--t-input-padding) var(--t-half-spacing);
}

.sc-isolated-node {
  position: relative;
}

.sc-isolated-node.sm-default-style.sm-selected,
.sc-isolated-node.sm-default-style.sm-co-selected {
  /*background: rgba(163,205,253, 0.6);*/
  outline: 2px solid;
  outline-color: var(--t-focus-color);
}

.sc-isolated-node.sm-default-style.sm-focused,
.sc-isolated-node.sm-default-style.sm-co-focused {
  outline: 2px solid;
  outline-color: var(--t-focus-color);
}

/* Hide selection fragments when in selected-state */

.sc-isolated-node.sm-selected ::selection {
  background: transparent;
}

.sc-isolated-node.sm-selected {
  outline: 2px solid;
  outline-color: var(--t-focus-color);
}

.sc-isolated-node-blocker {
  position: absolute;
  top: 0px; bottom: 0px; left: 0px; right: 0px;
  cursor: default;
}

.sc-isolated-node.sm-no-blocker .sc-isolated-node-blocker {
  display: none;
}

.sc-isolated-node > .se-bracket {
  height: 1px;
  width: 1px;
  opacity: 0;
}

.sc-isolated-node.sm-no-blocker > .se-bracket {
  visibility: hidden;
}

.sc-isolated-node.sm-no-blocker.sm-selected > .se-bracket,
.sc-isolated-node.sm-no-blocker.sm-co-selected > .se-bracket {
  /*
    ATTENTION: we must not have brackets hidden
     when rendering a node selection, otherwise Chrome's DOM selection
     'leaks' into the previous/next line
  */
  visibility: visible;
}

/*
TODO: moving away from the old Overlay implementation
replacing it with OverlayCanvas, which is more generic, but also more low-level
*/

.sc-overlay-canvas { z-index: 200; position: absolute; }

.sc-overlay-canvas.sm-hidden { visibility: hidden; left: 0px; top: 0px; }

.sc-overlay-canvas > .se-canvas {
  margin: 5px;
  border-radius: 3px;
  background: #fff;
  display: flex;
  flex-wrap: nowrap;
  box-shadow: var(--t-default-box-shadow);
}

/*
  TODO: develop a CSS framework for overlays
  This is WIP
*/

.sc-overlay-canvas .sm-horizontal-layout {
  display: flex;
  align-items: center;
  font-size: var(--t-dropdown-font-size);
  font-weight: var(--t-bold-font-weight);
  padding: 0px var(--t-button-padding);
}

.sc-overlay-canvas .sm-horizontal-layout > * {
  flex: 0 0 0;
  margin: 2px;
}

.sc-overlay-canvas .sm-horizontal-layout .sc-text-property-editor {
  min-width: 200px;
  padding: var(--t-input-padding);
}

.sc-overlay-canvas .sm-monospace {
  font-family: var(--t-code-font);
  background: transparent;
  border: none;
}

.sc-overlay-canvas .sc-container-editor,
.sc-overlay-canvas .sc-text-property-editor {
  border: var(--t-input-default-border);
  border-radius: var(--t-border-radius);
  padding: var(--t-input-padding);
}

.sc-overlay-canvas .sc-container-editor:focus,
.sc-overlay-canvas .sc-text-property-editor:focus {
  border: var(--t-input-focus-border);
}

.sc-pinned-message {
  position: absolute;
  bottom: 0px;
  width: 100%;
  height: 40px;
  background: #fff;
  box-shadow: 3px 3px 5px 6px #ccc;
}

.sc-pinned-message > .se-msg-wrap {
  display: flex;
  max-width: 600px;
  margin: 7px auto;
  color: #000;
  text-align: center;
}

.sc-pinned-message > .se-msg-wrap > .se-icon {
  color: #ff0000;
  font-size: 26px;
  margin-right: 20px;
}

.sc-pinned-message > .se-msg-wrap > .se-msg {
  text-decoration: underline;
}

.sc-container-editor > .sc-text-node:only-child > .sc-text-property.sm-empty:before,
.sc-text-input .sc-text-property.sm-empty:before,
.sc-text-property-editor .sc-text-property.sm-empty:before {
  content: attr(data-placeholder);
  position: absolute;
  color: var(--t-placeholder-text-color);
  font-weight: var(--t-normal-font-weight);
}

/* ScrollPane
-----------------------------------------------------*/

.sc-scroll-pane.sm-default-style {
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
}

/* Substance scrollbar active */

/* Make space for Substance Scrollbar on the left side */

.sc-scroll-pane.sm-default-style.sm-substance-scrollbar.sm-scrollbar-position-left .se-scrollable {
  left: 20px;
}

/* Patches the scrollbar to stick on the right side */

.sc-scroll-pane.sm-default-style.sm-substance-scrollbar.sm-scrollbar-position-right .sc-scrollbar {
  right: 0px; left: auto;
}

.sc-scroll-pane.sm-default-style.sm-substance-scrollbar.sm-scrollbar-position-right .se-scrollable {
  right: 20px;
}

/* Hide native scroll bar in content panel */

.sc-scroll-pane.sm-default-style.sm-substance-scrollbar .se-scrollable::-webkit-scrollbar {
  width: 0px; height: 0px;
}

.sc-scroll-pane.sm-default-style.sm-substance-scrollbar .se-scrollable::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0);
}

/* Hide native scrollbar in Internet Explorer/Edge */

.sc-scroll-pane.sm-default-style.sm-substance-scrollbar .se-scrollable {
  -ms-overflow-style: none;
}

/* Firefox-specific hack for hiding the scrollbar */

.sc-scroll-pane.sm-default-style.sm-substance-scrollbar.sm-firefox .se-scrollable {
  margin-right: -15px;
  overflow-y: scroll;
  overflow-x: hidden;
}

/* Patches the scrollbar to stick on the right side */

.sc-scroll-pane.sm-default-style > .se-scrollable {
  position: absolute;
  top: 0px;
  bottom: 0px;
  left: 0px;
  right: 0px;
  overflow: auto;
}

.sc-scroll-pane.sm-default-style > .se-scrollable > .se-content { position: relative; }

/* For debugging purposes
.sc-scroll-pane .se-scanline {
  position: absolute;
  display: none;
  top: 50px;
  left: 40px;
  width: 10px;
  height: 2px;
  background: #ccc;
} */

/* Surface
----------------------------------------------------*/

/* Non-Editables should have a regular cursor */

.sc-surface *[contenteditable="false"] { cursor: default; }

.sc-surface *[contenteditable="true"] { cursor: text; }

/* We want Firefox to have a transparent native selection */

::-moz-selection { background: rgba(77, 149, 233, 0.46); }

.sm-selected-node { outline: 2px solid; outline-color: var(--t-focus-color); }

.sc-text-input {
  line-height: var(--t-input-line-height);
}

.sc-text-input .se-input {
  width: 100%;
  height: var(--t-input-height);
  border-radius: 5px;
  padding: var(--t-input-padding);
  border: var(--t-input-default-border);
  margin: var(--t-negative-input-padding);
}

/*.sc-text-input.sm-editable .se-input:hover*/

.sc-text-input:focus .se-input {
  border: var(--t-input-focus-border);
}

.sc-text-input .se-input.sm-empty {
  color: var(--t-placeholder-text-color);
  font-weight: var(--t-normal-font-weight);
}

.sc-text-input.sm-warning {
  color: var(--warning-color);
}

.sc-text-input.sm-warning .se-input {
  border: 1px solid var(--warning-color);
  background-color: var(--warning-bg-color);
}

.sc-text-input.sm-size-small {
  width: var(--width-small);
}

.sc-text-input.sm-size-medium {
  width: var(--width-medium);
}

.sc-text-input.sm-size-large {
  width: var(--width-large);
}

.sc-toggle-tool {
  position: relative;
}

/* Position tooltip */

.sc-toggle-tool > .sc-tooltip {
  display: none;
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translate(-50%);
}

.sc-toggle-tool:hover > .sc-tooltip {
  display: block;
}

.sc-tool {
  display: flex;
  justify-content: space-between;
  white-space: nowrap;
  line-height: 2.1;
  font-size: var(--t-dropdown-font-size);
  font-weight: var(--t-bold-font-weight);
  width: 100%;
  border-radius: var(--t-tool-border-radius);
  padding: 0px 5px;
}

.sc-tool:hover {
  background: var(--t-default-button-background);
}

.sc-tool > .se-icon {
  flex: 0 0 0;
  padding-right: 7px;
}

.sc-tool > .se-keyboard-shortcut {
  color: rgba(0,0,0,0.4);
  font-weight: var(--t-normal-font-weight);
  font-size: 10px;
  padding-left: var(--t-default-spacing);
}

/* Disabled tools */

.sc-tool[disabled=true] {
  opacity: 0.3;
}

.sc-tool[disabled=true] > .se-keyboard-shortcut {
  color: rgba(255,255,255,0.4);
}

.sc-toolbar > .se-active-tools {
  display: flex;
  /*flex-wrap: nowrap;*/
  padding: 2px;
  justify-content: center;
}

.sc-toolbar > .se-active-tools .sc-tool-group {
  flex: 0 0 0;
  display: flex;
}

.sc-toolbar > .se-active-tools .sc-tool-group .sc-button {
  flex: 0 0 0;
  margin: 2px;
}

.sc-toolbar > .se-active-tools .sc-tool-dropdown .sc-button {
  margin: 2px;
}

.sc-toolbar .sc-tool-group {
  display: inline-block;
}

.sc-toolbar .sc-tool-group .sc-button {
  margin: 0px 1px;
}

.sc-tooltip {
  background: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 12px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5)
}

.sc-tool-dropdown {
  position: relative;
}

.sc-tool-dropdown > .se-choices {
  position: absolute;
  top: 30px;
  left: -3px;
  padding: 4px;
  background: #fff;
  box-shadow: var(--t-default-box-shadow);
  border-radius: var(--t-tool-border-radius);
}

.sc-tool-dropdown > .se-choices .sc-tool-group {
  display: block!important;
}

.sc-tool-dropdown.sm-disabled > .se-toggle {
  opacity: 0.3;
}

/* Position tooltip */

.sc-tool-dropdown > .sc-tooltip {
  display: none;
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translate(-50%);
}

.sc-tool-dropdown:hover > .sc-tooltip {
  display: block;
}

.sc-tool-separator {
  position: relative;
  border: var(--t-default-border);
  margin: var(--t-half-spacing) 0;
  cursor: default;
}

.sc-tool-separator > .se-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 var(--t-half-spacing);
  background: var(--t-background-color);
  color: var(--t-light-text-color);
  font-size: var(--t-tiny-font-size);
  flex: 0 0 0;
}

.sc-tool-spacer {
  flex-grow: 1;
}

.sc-abstract.sm-hidden {
  display: none;
}

.sc-abstract .sc-heading {
  cursor: default;
}

.sc-abstract .sc-abstract-content .container-node {
  border: var(--t-input-default-border);
  border-radius: var(--t-border-radius);
}

.sc-acknowledgement.sm-hidden {
  display: none;
}

.sc-acknowledgement .sc-heading {
  cursor: default;
}

.sc-acknowledgement .sc-acknowledgement-content .container-node {
  border: var(--t-input-default-border);
  border-radius: var(--t-border-radius);
}

.sc-add-reference .se-manual-add > .se-reftypes-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style: none;
  margin: 0 -5px;
  padding: 0;
}

.sc-add-reference .se-manual-add > .se-reftypes-list > .se-type {
  flex-grow: 1;
  width: 30%;
  height: var(--t-double-spacing);
  margin: 5px;
  padding: var(--t-half-spacing) 0;
  border: var(--t-default-border);
	border-radius: var(--t-border-radius);
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
}

.sc-add-reference .se-manual-add > .se-reftypes-list > .se-type:hover {
  background: var(---t-default-button-background);
}

.sc-affiliations-list {
}

.sc-affiliations-list > .sc-affiliation {
  display: flex;
  flex-direction: row;
  margin-top: var(--t-half-spacing);
  align-items: baseline;
}

.sc-affiliations-list > .sc-affiliation > .se-label {
  align-self: flex-start;
}

.sc-affiliations-list > .sc-affiliation > .se-text {
  flex-grow: 1;
  margin-left: var(--t-button-padding);
}

.sc-affiliations-list > .sc-affiliation > .se-icon {
}

.sc-affiliations-list > .se-add-affiliation {
  margin-top: var(--t-half-spacing);
  padding: 2px 0px;
  color: var(--t-action-color);
}

.sc-affiliations-list > .se-add-affiliation > .se-label {
  margin-left: var(--t-button-padding);
}

.sc-article-panel {
  display: flex;
  flex-flow: row nowrap;
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
}

.sc-article-panel .se-nav-bar {
  flex: 0 0 auto;
  width: 40px;
  height: 100%;
  border-right: 1px solid #b5b5b5;
  z-index: 99;
}

.sc-article-panel .se-nav-bar > .sc-toolbar > .se-active-tools .sc-tool-group {
  display: block;
}

.sc-article-panel .sc-manuscript-view {
  flex-grow: 1;
}

.sc-article-panel .sc-toolbar .se-active-tools {
  position: relative;
}

/* View switcher hacks */

.sc-article-panel .sc-toolbar .se-active-tools .sm-mode {
  flex: 0 0 260px;
  height: 24px;
  margin: 2px;
}

.sc-article-panel .sc-toolbar .se-active-tools .sm-mode .se-keyboard-shortcut {
  padding: 0;
}

.sc-toolbar .se-active-tools .sm-mobile-mode,
.sm-compact .sc-toolbar .se-active-tools .sm-mode {
  display: none;
}

.sm-compact .sc-toolbar .se-active-tools .sm-mobile-mode {
  display: block;
}

/* Context menu dropdown */

.sc-article-panel .sc-toolbar .sc-tool-dropdown.sm-context-tools > .se-choices {
  position: absolute;
  top: 30px;
  left: initial;
  right: 0;
}

.sc-article-panel > .sm-compact .sc-find-and-replace-dialog {
  margin: 0 auto;
}

.se-author-details {
  margin-top: var(--t-default-spacing);
}

.se-author-details:first-child {
  margin-top: var(--t-half-spacing);
}

.se-author-details-fullname {
  font-weight: var(--t-bold-font-weight);
}

.se-author-details-orchid {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

.se-author-details-orchid > p {
  margin-left: var(--t-button-padding);
}

.se-author-details-orchid > i {
  color: #a6ce39;
}

.sc-authors-list.sm-hidden {
  display: none;
}

.sc-authors-list {
  cursor: default;
}

.sc-authors-list .se-contrib {
  padding: var(--t-input-padding);
  margin: var(--t-negative-list-padding);
  cursor: default;
}

.sc-authors-list .se-contrib.sm-empty {
  color: var(--t-light-text-color);
}

.sc-authors-list .se-contrib.sm-selected {
  outline: var(--t-input-focus-border);
}

.sc-authors-list > .se-content {
  font-size: var(--t-large-font-size);
}

.sc-authors-list > .se-content > .se-empty-list {
  color: var(--t-light-text-color);
}

.sc-block-formula > .se-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sc-block-formula > .se-content > .se-formula {
  margin: 0px auto;
}

.sc-block-formula > .se-content > .se-label {
  padding-left: 10px;
}

.sc-block-formula.sm-error {
  background: var(--t-error-color);
}

.sc-block-formula-editor {
  min-width: 500px;
  padding: var(--t-half-spacing);
}

.sc-block-quote {
  /* TODO: use variables */
  border-left: 3px solid #444;
  padding-left: var(--t-default-spacing);
}

.sc-block-quote .sc-text {
  padding-top: var(--t-default-spacing);
  font-size: var(--t-small-font-size);
}

.sc-box
{
  position: relative;
  max-width: 800px;
  box-shadow: var(--t-default-box-shadow);
  margin: var(--t-half-spacing) 0;
  font-size: var(--t-small-font-size);
  padding: var(--t-default-spacing);
}

.sc-box.sm-selected {
  outline: var(--t-input-focus-border)
}

.sc-box > * {
  padding: 0px;
}

.sc-box .sc-title
{
  display: flex;
  flex-direction: row;
}

.sc-box .sc-title .sc-section-label
{
  align-self: flex-start;
  flex-grow: 1;
  margin-top: 0px;
}

.sc-box .sc-title .se-remove-value
{
  align-self: flex-start;
  margin-top: -15px;
  margin-right: -10px;
}

.sc-box .sc-text
{
  padding-top: var(--t-default-spacing);
  font-size: var(--t-small-font-size);
}

.sc-card {
  position: relative;
  max-width: 800px;
  box-shadow: var(--t-default-box-shadow);
  margin: var(--t-double-spacing) 0;
  font-size: var(--t-small-font-size);
}

.sc-card.sm-selected {
  outline: var(--t-input-focus-border);
}

.sc-card > .se-label {
  position: absolute;
  top: -10px;
  left: var(--t-double-spacing);
  padding: 0px var(--t-default-spacing);
  background: var(--t-background-color);
  color: var(--t-light-text-color);
  cursor: default;
}

.sc-card > .sc-header {
  display: flex;
  flex-direction: row-reverse;
  padding: var(--t-half-spacing);
}

.sc-card > .se-button {
  position: absolute;
  top: -10px;
  right: -10px;
}

.sc-card.sm-selected > .se-label {
  background: var(--t-focus-color);
  color: var(--t-inverted-text-color);
}

.sc-card .sc-form-row {
  margin: var(--t-default-spacing) 0;
}

.sc-card > * {
  padding: var(--t-default-spacing);
}

.sc-card > * > .se-header {
  font-size: var(--t-text-font-size);
  margin-bottom: var(--t-default-spacing);
  margin-top: 0px;
  cursor: default;
}

.sc-card > * > .se-header > * > i {
  font-style: italic;
}

.sc-card > * > .se-header > * > b {
  font-weight: bold;
}

.sc-card > * > .se-header > * > a {
  color: var(--t-action-color);
  text-decoration: none;
}

.sc-card > * > .se-footer {
  display: flex;
  justify-content: space-between;
  margin: 0;
}

.sc-card > * > .se-footer > .se-control {
  font-size: 12px;
  color: var(--t-action-color);
  cursor: pointer;
  margin-bottom: 0px;
}

.sc-card > * > .se-footer > .se-control > .se-icon {
  margin-right: 10px;
}

.sc-checkbox {
  width: 100%;
  cursor: pointer;
  padding: 4px;
  margin: -4px -2px;
}

.sc-context-section {
  display: flex;
  flex-direction: column;
}

.sc-context-section > .se-context-content {
  flex: 1 1 0;
  overflow: auto;
}

.sc-manuscript-editor .sc-container-editor .sc-isolated-node {
  margin: 30px 0;
}

.sc-manuscript-editor .sc-isolated-node.sm-default-style.sm-selected {
  outline: var(--t-input-focus-border);
}

.sc-manuscript-editor .sc-container-editor .sc-isolated-node.sm-focused,
.sc-manuscript-editor .sc-container-editor .sc-isolated-node.sm-co-focused {
  outline: none;
}

.sc-manuscript-editor > .se-main-section > .sc-workflow-pane {
  flex: 0 0 0;
}

.sc-edit-math-tool {
  display: flex;
  align-items: center;
}

.sc-edit-link-tool > * {
  flex: 0 0 0;
}

.sc-edit-math-tool .sc-input {
  height: 24px;
  font-size: 11px;
  min-width: 200px;
  font-family: Monaco, 'Courier New';
  padding: 5px;
  background: transparent;
  border: none;
  margin: 2px;
}

.sc-edit-math-tool .sc-input.sm-big-input {
  min-width: 500px;
}

/* TODO: this is a hack. Instead we should use defined configurations for modals */

.sc-modal-dialog.sm-workflow-edit-reference .se-body {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  max-width: 100%;
  max-height: 100%;
}

.sc-modal-dialog.sm-workflow-edit-reference .se-body .sc-card {
  margin: 2px;
}

.sc-edit-xref-tool {
  max-width: 440px;
  max-height: 500px;
  overflow: auto;
}

.sc-edit-xref-tool .se-option {
  padding: 5px;
  cursor: pointer;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--t-separator-color);
}

.sc-edit-xref-tool .se-option.sm-selected {
  border-left: 3px solid var(--t-action-color);
  color: var(--t-text-color);
  background: var(--t-light-background-color);
}

.sc-external-link {
  color: inherit;
  text-decoration: underline;
}

.sc-figure.sm-manuscript {
  box-shadow: var(--t-default-box-shadow);
  padding: var(--t-default-spacing);
}

.sc-figure .sc-section-label:first-child {
  margin-top: 0;
}

.sc-figure > .se-label {
  font-weight: var(--t-bold-font-weight);
}

.sc-figure .se-title {
  font-weight: var(--t-bold-font-weight);
}

.sc-figure .sc-legend {
  font-size: var(--t-small-font-size);
}

.sc-figure .sc-attribution {
  font-size: var(--t-small-font-size);
}

.sc-figure .sc-permissions .sc-card:last-of-type
{
  margin-bottom: var(--t-default-spacing);
}

.sc-figure .sc-permissions .sc-card .sc-content
{
  display: flex;
  flex-direction: column;
}

.sc-figure .sc-permissions .sc-card .sc-content .se-remove-value
{
  align-self: flex-end;
  margin-top: calc(-1 * var(--t-half-spacing));
  margin-right: calc(-1 * var(--t-half-spacing));
}

.sc-figure .sc-permissions .sc-card .sc-content .sc-form-row
{
  margin: var(--t-half-spacing) 0;
}

.sc-figure .sc-permissions .se-add-value
{
  color: var(--t-action-color);
  font-size: var(--t-tiny-font-size);
}

.sc-figure .sc-permissions .se-add-value .se-label
{
  margin-left: var(--t-button-padding);
}

.sc-figure.sm-manuscript > .se-carousel > .se-navigation
{
  display: flex;
  float: right;
  font-size: var(--t-small-font-size);
}

.sc-figure.sm-manuscript > .se-carousel > .se-navigation > .se-current-position {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: var(--t-default-spacing);
}

.sc-figure.sm-manuscript > .se-carousel > .se-navigation > .se-controls {
  display: flex;
}

.sc-figure.sm-manuscript > .se-carousel > .se-navigation > .se-controls > .se-control {
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  height: 30px;
  width: 30px;
  margin-left: 2px;
  border: var(--t-default-border);
  border-radius: var(--t-border-radius);
  cursor: pointer;
}

.sc-figure.sm-manuscript > .se-carousel > .se-navigation > .se-controls > .se-control.sm-disabled {
  opacity: 0.5;
}

.sc-fig-preview {
  font-size: 12px;
  border-bottom: 1px solid var(--t-separator-color);
  padding: 5px 10px;
  cursor: pointer;
  position: relative;
  line-height: 1.5em;
  border-left: 3px solid transparent;
}

.sc-fig-preview .se-thumbnail {
  display: table-cell;
  width: 70px;
}

.sc-fig-preview .se-label {
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  padding-left: 10px;
}

.sc-fig-preview.sm-selected {
  border-left: 3px solid var(--t-focus-color);
  color: var(--t-text-color);
  background: var(--t-light-background-color);
}

.sc-fig-preview a {
  text-decoration: none;
}

.sc-file-upload {
  position: relative;
}

.sc-file-upload > .se-drop-import {
  border: 1px dotted var(--t-light-text-color);
  border-radius: var(--t-border-radius);
  padding: var(--t-half-spacing);
  text-align: center;
  color: var(--t-light-text-color);
}

.sc-file-upload > .se-drop-import > input {
  display: none;
}

.sc-file-upload > .se-drop-import > .se-select-trigger {
  color: var(--t-action-color);
  cursor: pointer;
}

.sc-footnote {
  margin: var(--t-half-spacing) 0;
}

.sc-footnote .se-container {
  position: relative;
  display: flex;
  align-items: baseline;
}

.sc-footnote .se-container .se-label {
  position: relative;
  min-width: var(--t-default-spacing);
  margin: 0 var(--t-default-spacing);
  font-weight: var(--t-bold-font-weight);
  text-align: center;
  cursor: default;
}

.sc-footnote > .se-container > .sc-container-editor {
  width: 100%;
}

.sc-footnote-group.sm-hidden {
  display: none;
}

.sc-footnote-group .sc-footnote  {
  margin: var(--t-text-spacing) 0;
}

.sc-footnote-group .sc-footnote:first-child {
  margin-top: 0 !important;
}

.sc-footnote-group .sc-footnote:last-child {
  margin-bottom: 0 !important;
}

.sc-form-row {
  position: relative;
  display: flex;
  align-items: baseline;
}

.sc-form-row > .se-label {
  cursor: default;
  display: block;
  flex: 1 0 200px;
  font-size: var(--t-tiny-font-size);
  color: var(--t-light-text-color);
}

.sc-form-row > .se-label::after {
  content: ':'
}

.sc-form-row > .se-editor {
  width: 100%;
}

.sc-form-row.sm-warning > .se-label > .se-warning {
  position: absolute;
  top: 2px;
  left: 175px;
}

.sc-form-row.sm-warning > .se-label > .se-warning > .se-icon {
  color: var(--t-warning-color);
}

.sc-form-row.sm-warning > .se-label > .se-warning > .sc-tooltip {
  display: none;
}

.sc-form-row.sm-warning > .se-label > .se-warning:hover > .sc-tooltip {
  display: block;
}

.sc-graphic img {
  display: block;
  /* Note: using max-width to avoid upscaling of smaller images */
  max-width: 100%;
  /* Centering too small graphics */
  margin: auto;
}

.sc-graphic .se-error {
  border: 1px solid #d95859;
  padding: 20px;
  color: #d95859;
}

.sc-graphic .se-error .se-icon {
  margin-right: 10px;
}

.sc-heading {
  /* padding-top: var(--t-half-spacing); */
  font-weight: var(--t-bold-font-weight);
}

h1.sc-heading {
  font-size: var(--t-h1-font-size);
}

h2.sc-heading {
  font-size: var(--t-h2-font-size);
}

h3.sc-heading {
  font-size: var(--t-h3-font-size);
}

.sc-jats-import-dialog {
  position: fixed;
  left: 50px;
  right: 50px;
  top: 50px;
  bottom: 50px;
  padding: 20px;
  background: #f1f1f1;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.50);
  overflow: auto;
}

.sc-import-stage.sm-initial {
  color: #eee;
}

.sc-import-stage.sm-errored {
  color: red;
}

.sc-import-stage.sm-finished {
  color: green;
}

.sc-import-stage > .se-errors > .se-error {
  margin-top: 5px;
  padding: 5px 10px;
  border: solid 1px red;
  background: rgba(200, 0, 0 , 0.25)
}

.sc-import-stage > .se-errors > .se-error > .se-element {
  color: #666;
}

/* TODO: this is not solved yet. Would be nice to have something that popsup when hovering over
   an errored inline-formula */

.sc-inline-formula.sm-error .se-message {
  display: none;
}

.sc-inline-graphic {
  display: inline-block;
}

.sc-inline-graphic img {
  max-height: var(--t-text-font-size);
}

.sc-inline-graphic .se-error { 
  border: 1px solid #d95859;
  padding: 2px 4px;
  color: #d95859;
}

.sc-math {
  position: relative;
  display: inline-block;
}

.sc-math > .se-blocker {
  position: absolute;
  left: 0px;
  right: 0px;
  top: 0px;
  bottom: 0px;
}

.sc-math ::-moz-selection { background: none; }

.sc-math ::selection { background: none; }

.sc-math .katex {
  display: inline-block;
}

.sc-math .katex-mathml {
  display: none;
}

.sc-inline-formula.sm-selected .sc-math .katex,
.sc-inline-formula.sm-co-selected .sc-math .katex  {
  background: var(--t-focus-color);
}

.sc-math .sm-error {
  background: var(--t-error-color);
}

.sc-manuscript {
  max-width: 760px;
  padding: 30px;
}

.sc-manuscript-view.sm-compact .sc-manuscript {
  margin: 0 auto;
}

.sc-manuscript .sc-string.sm-title {
  font-size: var(--t-title-font-size);
  font-weight: var(--t-bold-font-weight);
}

.sc-manuscript-view {
  flex-grow: 1;
}

.sc-manuscript-view {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.sc-manuscript-view .se-toolbar-wrapper {
  z-index: 1000;
  padding: 4px;
  padding-bottom: 4px;
  box-shadow: var(--t-default-box-shadow);
}

.sc-manuscript-view.sm-compact .se-toolbar-wrapper {
  padding-left: 20px;
  padding-right: 20px;
}

.sc-manuscript-view .se-toolbar-wrapper .sc-toolbar {
  max-width: 980px; /* 760 - 50 for padding */
}

.sc-manuscript-view.sm-compact .se-toolbar-wrapper .sc-toolbar {
  margin: 0 auto;
  max-width: 710px;
}

.sc-manuscript-view > .se-context-pane {
  flex: 0 2 300px;
  border-left: var(--t-default-border);
  position: relative;
}

/* This seems to be obsolete
TODO: remove this if so
.sc-manuscript-view .sc-container-editor.sm-body {
  padding: 0;
  margin: 0 auto;
}
*/

.sc-manuscript-view .se-context-pane > .se-context-pane-content {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  overflow: auto;
}

.sc-manuscript-view > .se-main-section {
  flex: 1 1 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sc-manuscript-view > .se-main-section > .se-toolbar-wrapper {
  flex: 0 0 40px;
}

.sc-manuscript-view > .se-main-section > .se-content-section {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
}

.sc-manuscript-view > .se-main-section > .se-content-section > .se-toc-pane {
  flex: 0 0 250px;
  overflow: auto;
}

/* Do not display in compact mode to make more space for the rest */

.sc-manuscript-view.sm-compact > .se-main-section > .se-content-section > .se-toc-pane {
  display: none;
}

.sc-manuscript-view > .se-main-section > .se-content-section > .se-toc-pane.sm-hidden {
  display: none;
}

.sc-manuscript-view > .se-main-section > .se-content-section > .sc-scroll-pane {
  flex: 1 1 600px;
}

.sc-manuscript-view .se-main-section .sc-scroll-pane {
  position: relative;
}

.sc-manuscript-view .sc-container-editor:not(.sm-body):not(.sm-readonly) {
  border: var(--t-input-default-border);
  border-radius: var(--t-border-radius);
  padding: var(--t-input-padding);
  margin: var(--t-negative-input-padding);
}

.sc-manuscript-view .sc-container-editor:not(.sm-body):not(.sm-readonly):focus {
  border: var(--t-input-focus-border);
}

/* Add padding to each child except last one */

.sc-manuscript-view .sc-container-editor > * {
  margin: var(--t-text-spacing) 0;
}

.sc-manuscript-view .sc-container-editor > *:first-child {
  margin-top: 0 !important;
}

.sc-manuscript-view .sc-container-editor > *:last-child {
  margin-bottom: 0 !important;
}

.sc-manuscript-view .se-footer-pane {
  background: white;
  border-top: var(--t-default-border);
}

.sc-metadata-field {
  display: flex;
  margin: var(--t-half-spacing) 0;
  font-size: var(--t-small-font-size);
}

.sc-metadata-field > .sc-string {
  flex: 1;
}

.sc-metadata-field > .se-field-name {
  font-weight: var(--t-bold-font-weight);
}

/* Placeholder for empty custom fields set in metadata mode */

.sc-figure-metadata.sm-empty {
  color: var(--t-placeholder-text-color);
}

.sc-modal-dialog {
  z-index: 500000;
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  margin: 0;
  overflow: auto;
  background: rgba(0,0,0,0.7);
}

.sc-modal-dialog.sm-transparent-bg {
  background: transparent;
}

.sc-modal-dialog > .se-vertical-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sc-modal-dialog > .se-vertical-container > .se-vertical-spacer {
  height: calc(2*var(--t-default-spacing));
}

.sc-modal-dialog > .se-vertical-container > .se-horizontal-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
}

.sc-modal-dialog > .se-vertical-container > .se-horizontal-container > .se-horizontal-spacer {
  flex-grow: 0;
  width: var(--t-default-spacing);
  height: 100%;
}

.sc-modal-dialog > .se-vertical-container > .se-horizontal-container > .se-body {
  flex-grow: 1;
}

.sc-modal-dialog > .se-vertical-container > .se-horizontal-container > .se-body > .se-content {
  height: 100%;
}

.sc-modal-dialog .se-body {
  position: relative;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 25px 0 rgba(0,0,0,0.8);
}

.sc-modal-dialog .se-body .se-close-button {
  position: absolute;
  /* HACK: let's introduce some z-index guidelines */
  z-index: 10000;
  right: var(--t-button-padding);
  top: var(--t-button-padding);
  font-size: var(--t-large-font-size);
}

/* .sc-modal-dialog.sm-width-small .se-body { max-width: var(--t-small-layout-width); }
.sc-modal-dialog.sm-width-medium .se-body { max-width: var(--t-medium-layout-width); }
.sc-modal-dialog.sm-width-large .se-body { max-width: var(--t-large-layout-width); } */

.sc-multi-select-input {
  width: 100%;
  line-height: var(--t-input-line-height);
  cursor: pointer;
  padding: var(--t-input-padding);
  margin: var(--t-negative-input-padding);
  border-radius: var(--t-border-radius);
  border: var(--t-input-default-border);
}

.sc-multi-select-input.sm-active {
  border: var(--t-input-focus-border);
  background: #218df312;
}

.sc-multi-select-input.sm-empty .se-label {
  color: var(--t-placeholder-text-color);
  font-weight: var(--t-normal-font-weight);
}

.sc-multi-select-input .se-select-editor {
  position: absolute;
  top: 55px;
  left: 200px;
  background: #fff;
  border: 1px solid #8a8a8a;
  padding: 10px 20px;
  max-width: 100%;
  box-shadow: 0px 3px 7px 1px #777;
  z-index: 99;
}

.sc-multi-select-input .se-select-editor .se-select-label {
  text-align: center;
  font-size: 12px;
  color: #8a8a8a;
  margin-bottom: 10px;
}

.sc-multi-select-input .se-select-editor .se-select-item {
  display: flex;
  cursor: pointer;
}

.sc-multi-select-input .se-select-editor .se-select-item .se-icon {
  margin: 5px 0px;
  width: 20px;
}

.sc-multi-select-input .se-select-editor .se-select-item .se-item-label {
  margin-left: 10px;
}

.sc-multi-select-input .se-select-editor .se-arrow {
  width: 60px;
  height: 16px;
  overflow: hidden;
  position: absolute;
  left: 50%;
  margin-left: -30px;
  top: -16px;
}

.sc-multi-select-input .se-select-editor .se-arrow:after {
  content: "";
  position: absolute;
  left: 20px;
  top: 10px;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  border: 1px solid #8a8a8a;
  background: #fff;
}

.sc-text-node.sm-preformat {
  /* TODO: come up with a better design and use variables */
  border-left: 2px solid #777;
  padding-left: var(--t-default-spacing);
  background: #f8f8f8;
}

.sc-preview {
  display: flex;
  font-size: var(--t-tiny-font-size);
}

.sc-preview .se-thumbnail {
  max-width: 60px;
}

.sc-preview .se-label {
  white-space: nowrap;
  flex: 0 0 var(--t-double-spacing);
  padding-left: var(--t-half-spacing);
}

.sc-preview a {
  text-decoration: none;
  color: var(--t-text-color);
}

.sc-query {
	position: relative;
}

.sc-query.sm-error .se-button {
	background-color: var(--t-error-color);
  color: var(--t-error-text-color);
}

.sc-reference {
  display: flex;
  flex: 1 1 0;
  cursor: default;
}

/* HACK: this is a quick-fix. Without references were broken when displayed in Metadata view */

.sc-reference.sm-metadata {
  display: block;
}

.sc-reference > .se-label {
  flex-basis: var(--t-default-spacing);
  flex-grow: 0;
  flex-shrink: 0;
  margin: 0 var(--t-default-spacing);
  font-weight: var(--t-bold-font-weight);
  text-align: center;
}

.sc-reference > .se-text {
  flex-grow: 1;
  margin-right: 10px;
}

.sc-reference > .se-text i {
  font-style: italic;
}

.sc-reference > .se-text b {
  font-weight: bold;
}

.sc-reference > .se-icon {
  flex-basis: var(--t-default-spacing);
  flex-grow: 0;
  flex-shrink: 0;
  margin: 4px 0 0 var(--t-half-spacing);
  font-weight: var(--t-bold-font-weight);
  text-align: center;
}

.sc-reference > .fa-edit {
  padding-top: 1px;
}

.sc-reference-list.sm-hidden {
  display: none;
}

.sc-reference-list .sc-reference  {
  margin: var(--t-text-spacing) 0;
}

.sc-reference-list .sc-reference.sm-selected {
  outline: var(--t-input-focus-border);
}

.sc-reference-list .sc-reference:first-child {
  margin-top: 0 !important;
}

.sc-reference-list .sc-reference:last-child {
  margin-bottom: 0 !important;
}

.sc-inplace-ref-contrib-editor {
  font-size: var(--input-font-size);
  line-height: var(--input-line-height);
}

.sc-inplace-ref-contrib-editor > .sc-form-row {
  width: 100%;
}

.sc-inplace-ref-contrib-editor > .sc-form-row > .se-editor {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.sc-inplace-ref-contrib-editor > .sc-form-row > .se-editor > * {
  width: 100%;
  margin-right: 10px;
}

.sc-inplace-ref-contrib-editor > .sc-form-row > .se-editor > .se-remove-value {
  width: 10px;
}

.sc-card > .sc-related-article {
  padding-top: 0px;
}

.sc-card > .sc-related-article > .sc-form-row:first-child {
  margin-top: 0px;
}

.sc-card > .sc-related-article > .sc-form-row:last-child {
  margin-bottom: 0px;
}

.sc-section-label {
  font-weight: var(--t-bold-font-weight);
  font-size: var(--t-tiny-font-size);
  color: var(--t-light-text-color);
  margin-top: var(--t-default-spacing);
  margin-bottom: var(--t-half-spacing);
  cursor: default;
}

.sc-supplementary-file.sm-manuscript {
  box-shadow: var(--t-default-box-shadow);
  padding: var(--t-default-spacing);
}

.sc-supplementary-file > .se-header {
  display: flex;
  justify-content: space-between;
}

.sc-supplementary-file > .se-header > .se-label {
  flex-shrink: 0;
  margin-right: var(--t-default-spacing);
  font-weight: var(--t-bold-font-weight);
}

.sc-supplementary-file > .se-href {
  font-weight: var(--t-bold-font-weight);
  font-family: monospace, monospace;
}

.sc-supplementary-file > .sc-caption {
  font-size: var(--t-small-font-size);
}

.sc-supplementary-file.sm-preview > .sc-preview {
  display: block;
  padding-left: var(--t-half-spacing);
}

.sc-supplementary-file.sm-preview > .sc-preview > * {
  padding-left: 0;
}

.sc-table {
  position: relative;
}

.sc-table > .se-unclickable-overlays {
  height: 0;
  overflow: visible;
  pointer-events: none;
  background: none !important;
}

.sc-table > .se-clickable-overlays {
  height: 0;
  overflow: visible;
  background: none !important;
}

.sc-table > table {
  table-layout: fixed;
  overflow-wrap: break-word;
  border-collapse: collapse;
  width: 100%;
}

.sc-table > table th {
  background-color: var(--t-light-background-color);
  border: var(--t-default-border);
  font-weight: var(--t-bold-font-weight);
  padding: var(--t-cell-padding);
}

.sc-table > table td {
  border: var(--t-default-border);
  font-size: var(--t-small-font-size);
  padding: var(--t-cell-padding);
}

.sc-table .se-selection-overlay > .se-selection-anchor {
  position: absolute;
  border: var(--t-input-focus-border);
}

.sc-table .se-selection-overlay > .se-selection-range {
  position: absolute;
  border: var(--t-input-focus-border);
  border-width: 1px;
  background: rgba(38, 132, 252, 0.1)
}

.sc-table-figure {
  box-shadow: var(--t-default-box-shadow);
  padding: var(--t-default-spacing);
}

.sc-table-figure > .sc-section-label:first-child {
  margin-top: 0;
}

.sc-table-figure > .se-label {
  padding-bottom: var(--t-half-spacing);
  font-weight: var(--t-bold-font-weight);
}

.sc-table-figure > .se-title {
  font-weight: var(--t-bold-font-weight);
}

.sc-table-figure > .sc-caption {
  font-size: var(--t-small-font-size);
}

.sc-table-figure > .se-table-figure-footnotes {
  font-size: var(--t-small-font-size);
}

.sc-table-figure > .se-table-figure-footnotes > .sc-footnote {
  padding-bottom: var(--t-half-spacing);
}

.sc-table-figure > .se-table-figure-footnotes > .sc-footnote .se-label {
  margin: 0 var(--t-half-spacing) 0 0;
}

.sc-table-footnotes-editor {
  font-size: var(--input-font-size);
  line-height: var(--input-line-height);
}

.sc-table-footnotes-editor > .sc-footnote {
  padding-bottom: var(--t-half-spacing);
}

.sc-table-footnotes-editor > .sc-footnote .se-label {
  margin: 0 var(--t-half-spacing) 0 0;
}

/* TOC
-----------------------------------------------------*/

.sc-toc .se-toc-entries { padding: var(--t-default-spacing); }

.sc-toc .se-toc-entries .sc-toc-entry {
  text-decoration: none;
  color: var(--t-light-text-color);
  display: block;
  padding: 6px 0px;
  position: relative;
  cursor: pointer;
}

.sc-toc .se-toc-entries .sc-toc-entry.sm-hidden {
  display: none;
}

.sc-toc .se-toc-entries .sc-toc-entry.sm-active i.fa { visibility: visible; }

.sc-toc .se-toc-entries .sc-toc-entry:hover,
.sc-toc .se-toc-entries .sc-toc-entry.sm-active {
  color: var(--t-small-font-size);
}

.sc-toc .se-toc-entries .sc-toc-entry.sm-level-1 { font-size: var(--t-small-font-size); margin-left: 0px; }

.sc-toc .se-toc-entries .sc-toc-entry.sm-level-2 { font-size: var(--t-small-font-size); margin-left: var(--t-default-spacing); }

.sc-toc .se-toc-entries .sc-toc-entry.sm-level-3 { font-size: var(--t-small-font-size); margin-left: var(--t-double-spacing); }

.sc-unsupported {
  background: #ccc;
  margin: 5px 0px;
}

.sc-unsupported-inline-node {
  display: inline-block;
  background: #ccc;
  margin: 5px 0px;
}

.sc-unsupported-inline-node > pre {
  display: inline-block;
}

.sc-upload-tool > input {
  display: none;
}

.se-workflow-modal .sm-workflow {
  padding: var(--t-default-spacing);
}

.se-workflow-modal .sm-workflow > .se-title {
  font-size: var(--t-large-font-size);
  margin: 0 0 var(--t-default-spacing);
}

.se-workflow-modal .sm-workflow .sc-dialog-section {
  margin: var(--t-half-spacing) 0;
}

.se-workflow-modal .sm-workflow .se-dialog-section-title {
  display: flex;
  justify-content: space-between;
}

.se-workflow-modal .sm-workflow .se-dialog-section-title > .se-label {
  font-size: var(--t-text-font-size);
  color: var(--t-light-text-color);
  padding: var(--t-half-spacing) 0;
}

.se-workflow-modal .sm-workflow .se-dialog-section-title > .se-description {
  align-self: center;
  color: var(--t-light-text-color);
  font-size: var(--t-small-font-size);
}

/*
  TODO: When we will have a better understanding of 
  validation UI we should tidyup error popups or 
  replace them with something more general
*/

.se-workflow-modal .se-error-popup {
  position: absolute;
  top: var(--t-double-spacing);
  right: var(--t-default-spacing);
  width: var(--t-small-layout-width);
  background: var(--t-background-color);
  border-radius: var(--t-border-radius);
  box-shadow: var(--t-popup-box-shadow);
  font-size: var(--t-tiny-font-size);
  text-align: center;
  color: var(--t-error-text-color);
  z-index: 10;
}

.se-workflow-modal .se-error-popup > ul {
  list-style: none;
  padding: var(--t-half-spacing);
  text-align: left;
}

.sc-xref {
  color: var(--t-action-color);
  white-space: nowrap;
}

.sc-xref.sm-fn {
  vertical-align: super;
  font-size: smaller;
}

/* HACKZ:
  1. do not position the Edit dropdown on the right because ATM there is the
  modal close button.
  2. hide the save button
*/

.sc-modal-dialog .sc-metadata-editor .se-toolbar-wrapper .sc-tool-spacer,
.sc-modal-dialog .sc-metadata-editor .se-toolbar-wrapper button.sm-save {
  display: none;
}

.sc-metadata-editor {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: auto;
  flex-grow: 1;
}

.sc-metadata-editor > .se-main-section {
  flex: 1 1 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sc-metadata-editor .se-toolbar-wrapper {
  z-index: 1000;
  padding: 4px;
  padding-bottom: 4px;
  box-shadow: 0 0 0 0.75pt #d1d1d1, 0 0 3pt 0.75pt #ccc;
}

.sc-metadata-editor.sm-compact .se-toolbar-wrapper {
  padding-left: 20px;
  padding-right: 20px;
}

.sc-metadata-editor .se-toolbar-wrapper .sc-toolbar {
  max-width: 980px; /* 760 - 50 for padding */
}

.sc-metadata-editor.sm-compact .se-toolbar-wrapper .sc-toolbar {
  margin: 0 auto;
  max-width: 710px;
}

.sc-metadata-editor > .se-main-section > .se-content-section {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
}

/* Do not display in compact mode to make more space for the rest */

.sc-metadata-editor.sm-compact > .se-main-section > .se-content-section > .se-toc-pane {
  display: none;
}

.sc-metadata-editor > .se-main-section > .se-content-section > .se-toc-pane {
  flex: 0 0 250px;
  overflow: auto;
  padding: 30px;
}

.sc-metadata-editor > .se-main-section > .se-content-section > .sc-scroll-pane {
  flex: 1 1 600px;
  position: relative;
}

.sc-metadata-editor .sc-meta-section-toc-entry {
  position: relative;
  display: block;
  text-decoration: none;
  color: #888;
  display: block;
  padding: 2px 0px;
  font-size: 14px;
  line-height: 30px;
  cursor: pointer;
}

.sc-metadata-editor .sc-meta-section-toc-entry.sm-empty {
  display: none;
}

.sc-metadata-editor .sc-meta-section-toc-entry:hover {
  color: #111;
}

.sc-metadata-editor .se-sections {
  max-width: 760px;
  padding: 30px;
}

.sc-metadata-editor.sm-compact .se-sections {
  margin: 0 auto;
}

.sc-metadata-editor .se-workflow-modal.sm-hidden {
  display: none;
}

/* HACK: Overrides */

.sc-metadata-editor a {
  color: inherit;
  text-decoration: underline;
}

.sc-metadata-editor .se-toc a {
  text-decoration: none;
}

.sc-metadata-section.sm-empty {
  display: none;
}

.sc-metadata-section > .se-heading {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 30px 0px;
  border-radius: 4px;
  font-size: var(--t-h1-font-size);
  cursor: default;
}

.sc-metadata-editor .sc-container-editor {
  border: var(--t-input-default-border);
  border-radius: var(--t-border-radius);
  padding: var(--t-input-padding);
  margin: var(--t-negative-input-padding);
}

.sc-metadata-editor .sc-container-editor > * {
  margin: var(--t-half-spacing) 0;
}

.sc-metadata-editor .sc-container-editor > *:first-child {
  margin-top: 0 !important;
}

.sc-metadata-editor .sc-container-editor > *:last-child {
  margin-bottom: 0 !important;
}

.sc-metadata-editor .sc-container-editor:focus {
  border: var(--t-input-focus-border);
}

.sc-metadata-editor .se-footer-pane {
  background: white;
  border-top: var(--t-default-border);
}

/*# sourceMappingURL=texture.css.map */