@font-face {
  font-family: "SoPartIcons";
  src: url("./fonts/SoPartIcons.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face{
  font-family: "MaterialIcons";
  src: url("./fonts/MaterialIcons-Regular.ttf") format('truetype');
  font-weight: 400;
  font-style: normal;
}
/*prosemirror styling*/

/* Add space around the hr to make clicking it easier */

.ProseMirror-example-setup-style hr {
    padding: 2px 10px;
    border: none;
    margin: 1em 0;
}

.ProseMirror-example-setup-style hr:after {
    content: "";
    display: block;
    height: 1px;
    background-color: silver;
    line-height: 2px;
}

.ProseMirror ul,
.ProseMirror ol {
    padding-left: 30px;
}

.ProseMirror blockquote {
    padding-left: 1em;
    border-left: 3px solid #eee;
    margin-left: 0;
    margin-right: 0;
}

.ProseMirror-example-setup-style img {
    cursor: default;
}

.ProseMirror-prompt {
    background: white;
    padding: 5px 10px 5px 15px;
    border: 1px solid silver;
    position: fixed;
    border-radius: 3px;
    z-index: 11;
    box-shadow: -.5px 2px 5px rgba(0, 0, 0, .2);
}

.ProseMirror-prompt h5 {
    margin: 0;
    font-weight: normal;
    font-size: 100%;
    color: #444;
}

.ProseMirror-prompt input[type="text"],
.ProseMirror-prompt textarea {
    background: #eee;
    border: none;
    outline: none;
}

.ProseMirror-prompt input[type="text"] {
    padding: 0 4px;
}

.ProseMirror-prompt-close {
    position: absolute;
    left: 2px;
    top: 1px;
    color: #666;
    border: none;
    background: transparent;
    padding: 0;
}

.ProseMirror-prompt-close:after {
    content: "✕";
    font-size: 12px;
}

.ProseMirror-invalid {
    background: #ffc;
    border: 1px solid #cc7;
    border-radius: 4px;
    padding: 5px 10px;
    position: absolute;
    min-width: 10em;
}

.ProseMirror-prompt-buttons {
    margin-top: 5px;
    display: none;
}

/*prosemirror Menue*/

.ProseMirror-textblock-dropdown {
    min-width: 3em;
}

.ProseMirror-menu {
    margin: 0 -4px;
    line-height: 1;
}

.ProseMirror-tooltip .ProseMirror-menu {
    width: -webkit-fit-content;
    width: fit-content;
    white-space: pre;
}

.ProseMirror-menuitem {
    margin-right: 3px;
    display: inline-block;
}

.ProseMirror-menuseparator {
    border-right: 1px solid #ddd;
    margin-right: 3px;
}

.ProseMirror-menu-dropdown,
.ProseMirror-menu-dropdown-menu {
    font-size: 90%;
    white-space: nowrap;
}

.ProseMirror-menu-dropdown {
    vertical-align: 1px;
    cursor: pointer;
    position: relative;
    padding-right: 15px;
}

.ProseMirror-menu-dropdown-wrap {
    padding: 1px 0 1px 4px;
    display: inline-block;
    position: relative;
}

.ProseMirror-menu-dropdown:after {
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: .6;
    position: absolute;
    right: 4px;
    top: calc(50% - 2px);
}

.ProseMirror-menu-dropdown-menu,
.ProseMirror-menu-submenu {
    position: absolute;
    background: white;
    color: #666;
    border: 1px solid #aaa;
    padding: 2px;
}

.ProseMirror-menu-dropdown-menu {
    z-index: 15;
    min-width: 6em;
}

.ProseMirror-menu-dropdown-item {
    cursor: pointer;
    padding: 2px 8px 2px 4px;
}

.ProseMirror-menu-dropdown-item:hover {
    background: #f2f2f2;
}

.ProseMirror-menu-submenu-wrap {
    position: relative;
    margin-right: -4px;
}

.ProseMirror-menu-submenu-label:after {
    content: "";
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid currentColor;
    opacity: .6;
    position: absolute;
    right: 4px;
    top: calc(50% - 4px);
}

.ProseMirror-menu-submenu {
    display: none;
    min-width: 4em;
    left: 100%;
    top: -3px;
}

.ProseMirror-menu-active {
    background: #eee;
    border-radius: 4px;
}

.ProseMirror-menu-disabled {
    opacity: .3;
}

.ProseMirror-menu-submenu-wrap:hover .ProseMirror-menu-submenu,
.ProseMirror-menu-submenu-wrap-active .ProseMirror-menu-submenu {
    display: block;
}

.ProseMirror-menubar {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    position: relative;
    min-height: 1em;
    color: #666;
    padding: 1px 6px;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid silver;
    background: white;
    z-index: 10;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    overflow: visible;
}

.ProseMirror-icon {
    display: inline-block;
    line-height: .8;
    vertical-align: -2px;
    /* Compensate for padding */
    padding: 2px 8px;
    cursor: pointer;
}

.ProseMirror-menu-disabled.ProseMirror-icon {
    cursor: default;
}

.ProseMirror-icon svg {
    fill: currentColor;
    height: 1em;
}

.ProseMirror-icon span {
    vertical-align: text-top;
}


/** prosemirror-view/style/prosemirror.css*/
.ProseMirror {
    position: relative;
  }

  .ProseMirror {
    word-wrap: break-word;
    white-space: pre-wrap;
    white-space: break-spaces;
    -webkit-font-variant-ligatures: none;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
  }

  .ProseMirror pre {
    white-space: pre-wrap;
  }

  .ProseMirror li {
    position: relative;
  }

  .ProseMirror-hideselection *::selection { background: transparent; }
  .ProseMirror-hideselection *::-moz-selection { background: transparent; }
  .ProseMirror-hideselection { caret-color: transparent; }

  /* See https://github.com/ProseMirror/prosemirror/issues/1421#issuecomment-1759320191 */
  .ProseMirror [draggable][contenteditable=false] { user-select: text }

  .ProseMirror-selectednode {
    outline: 2px solid #8cf;
  }

  /* Make sure li selections wrap around markers */

  li.ProseMirror-selectednode {
    outline: none;
  }

  li.ProseMirror-selectednode:after {
    content: "";
    position: absolute;
    left: -32px;
    right: -2px; top: -2px; bottom: -2px;
    border: 2px solid #8cf;
    pointer-events: none;
  }

  /* Protect against generic img rules */

  img.ProseMirror-separator {
    display: inline !important;
    border: none !important;
    margin: 0 !important;
  }
  /*ende prosemirror-view/style/prosemirror.css*/


.editor>.dynamic_content {
    font-family: 'Courier New', Courier, monospace;
}


/* You actually should do the UI with a mouse enter event rather than css hover */
#suggestion:hover .selected {
  background-color: white;
}
#suggestion:hover > div:hover,
#suggestion .selected {
  background-color: wheat;
  cursor: pointer;
}

.ProseMirror p{
  margin-bottom: 0;
}

.ProseMirror{
  outline: none;
}

/* eigenes Autocomplete */

.suggestionsDropdown {
  position: absolute;
  border-radius: 2px;
  border: 1px solid #333;
  min-width: 300px;
  background-color: white;
  padding: 10px;
  transform: translateY(-1px);
  max-height: 8lh;
  overflow-y: auto;
}

.autocomplete-input{
    color: crimson;
    background-color: white;
}


.suggestionElement{
    background-color: white;
}

.suggestionSelectedElement{
    color:black;
    background-color: #258cfb;
}

.simple-editor-container {
  border: thin;
}

.din-A4-width{
  width: 210mm;
}

.ProseMirror-menu span::before {
  font-size: larger;
  padding-left: 3px;
}

.ProseMirror-menu .undo-button::before {
  content: "\e166";
  font-family: MaterialIcons;
}

.ProseMirror-menu .redo-button::before {
  content: "\e15a";
  font-family: MaterialIcons;
}

.ProseMirror-menu .strong-button::before {
  content: "\e238";
  font-family: MaterialIcons;
}

.ProseMirror-menu .em-button::before {
  content: "\e23f";
  font-family: MaterialIcons;
}

.ProseMirror-menu .u-button::before {
  content: "\e249";
  font-family: MaterialIcons;
}

.ProseMirror-menu .strike-button::before {
  content: "\e246";
  font-family: MaterialIcons;
}

.ProseMirror-menu .special-character-button::before {
  content: "\ea1e";
  font-family: MaterialIcons;
}

.ProseMirror-menu .insert-if-button::before {
  content: "\e0b6";
  font-family: MaterialIcons;
}

.document-view{
  width: 230mm;
}

.ProseMirror {
  position: relative;
  padding-top: 25mm;
  padding-left: 20mm;
  padding-right: 20mm;
  padding-bottom: 20mm;
  scroll-behavior: auto;
  width: 210mm;
  min-height: 297mm;
  background-color: white;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.qrtfSharp {
  color: darkblue;
  font-family: Consolas;
}

.gauss-report, .qrtfSharp{
  color: darkblue;
  font-family: Consolas;
}

gauss-report-attribute{
  display: block;
}

.code-beginn, .code-ende {
  display: block;
}

.report-braces-begin{
  display: block;
}

.ProseMirror-selectednode .qrtfSharp, qrtfSharp-selected-nodeView {
  background-color: deeppink;
}
