/* Texteditor */
.textEditor fieldset {
 border: none;
 width: 99%;
}
.textEditor .editorCtl {
 text-align: right;
}
.textEditor textarea {
 width: 100%;
 min-height: 2em;
}
.textEditor button {
 font-size: .8em;
 border: none;
 background-color: #fff;
 color: #000;
 text-decoration: underline;
 cursor: pointer;

 margin: 0 1em;
}
.textEditor .textwikiLegacyControl {
 display: none;
}
div.editorCtl {
 position: fixed;
 right: 15px;
 z-index: 80
}
div.ctl {
 position: relative;
 text-align: right;
}
div.ctl button {
    background-color: transparent;
}
div.ctl button.ifc {
 font-size: .75em;
 line-height: 1em;
 background: transparent;
 color: #f00;
 padding: 0;
 cursor: pointer;
 white-space: nowrap;
  width: auto;
 position: initial;
}

.charTable {
 position: absolute;
 border: 1px solid;
 padding: 16px 24px 3px 3px;
 background-color: transparent;
 z-index: 1;
 background-color: #fff;
}
.charTable span {
 display: block;
 width: 2em;
 float: left;
 border: 1px solid;
 padding: .3em;
 text-align: center;
 background-color: #eee;
 margin: .3em;
 height: 20px;
 cursor: pointer;
}
.charTable span.closeChT {
 width: 10px;
  height: 10px;
  line-height: 8px;
  float: none;
  position: absolute;
  top: -3px;
  right: -3px;
  color: red;
  padding: 1px;
  border-top: none;
  border-right: none;

}

.initCharTable {
 padding: 0 1em;
 cursor:pointer
}
.properties .title {
 position: relative;
}
.hidden {
 display: none;
}

div.toggleText{
  cursor: pointer;
}

/* TextWiki syntax highlighting. The original textarea remains the submitted
   form control and CodeMirror keeps its value synchronized. */
.textEditor .CodeMirror.textwiki-editor {
 width: 100%;
 min-height: 240px;
 border: 1px solid #767676;
 background: #fff;
 color: #202124;
 font: 15px/1.55 monospace;
}
.textEditor .textwiki-toolbar {
 display: flex;
 flex-wrap: wrap;
 gap: .5rem;
 margin: .5rem 0;
 padding: .5rem;
 border: 1px solid #767676;
 background: #f3f5f6;
}
.textEditor .textwiki-toolbar-group {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: .25rem;
 padding-right: .5rem;
 border-right: 1px solid #aeb5b9;
}
.textEditor .textwiki-toolbar-group:last-child {
 padding-right: 0;
 border-right: 0;
}
.textEditor .textwiki-toolbar-group-label {
 color: #42484c;
 font-size: .75rem;
 font-weight: 700;
}
.textEditor .textwiki-toolbar .textwiki-format-button {
 margin: 0;
 padding: .35rem .55rem;
 border: 1px solid #59636a;
 border-radius: 2px;
 background: #fff;
 color: #202124;
 font: inherit;
 font-size: .875rem;
 font-weight: 600;
 line-height: 1.2;
 text-decoration: none;
}
.textEditor .textwiki-toolbar .textwiki-format-button:hover {
 background: #dceff7;
}
.textEditor .textwiki-toolbar .textwiki-format-button:focus-visible {
 outline: 3px solid #005a9c;
 outline-offset: 2px;
}
.textwiki-media-dialog {
 position: fixed;
 inset: 0;
 box-sizing: border-box;
 width: min(34rem, calc(100% - 2rem));
 max-height: calc(100% - 2rem);
 margin: auto;
 padding: 1rem;
 border: 2px solid #59636a;
 background: #fff;
 color: #202124;
 overflow: auto;
}
.textwiki-media-dialog::backdrop {
 background: rgba(0, 0, 0, .55);
}
.textwiki-media-dialog h2 {
 margin-top: 0;
}
.textwiki-media-dialog label {
 display: grid;
 gap: .2rem;
 margin: .7rem 0;
 font-weight: 700;
}
.textwiki-media-dialog input,
.textwiki-media-dialog select {
 box-sizing: border-box;
 width: 100%;
 padding: .45rem;
 border: 1px solid #767676;
 font: inherit;
}
.textwiki-media-dialog input:focus-visible,
.textwiki-media-dialog select:focus-visible {
 outline: 3px solid #005a9c;
 outline-offset: 2px;
}
.textwiki-media-dialog .textwiki-checkbox-label {
 display: flex;
 align-items: center;
}
.textwiki-media-dialog .textwiki-checkbox-label input {
 width: auto;
}
.textwiki-media-dialog .textwiki-image-select {
 margin: -.25rem 0 .5rem;
 padding: .45rem .75rem;
 border: 1px solid #59636a;
 background: #f3f5f6;
 color: #202124;
 font: inherit;
 text-decoration: none;
}
.textwiki-media-dialog .textwiki-video-dialog-actions,
.textwiki-media-dialog .textwiki-media-dialog-actions {
 display: flex;
 justify-content: flex-end;
 gap: .5rem;
 margin-top: 1rem;
}
.textwiki-media-dialog .textwiki-video-dialog-actions button,
.textwiki-media-dialog .textwiki-media-dialog-actions button {
 margin: 0;
 padding: .45rem .75rem;
 border: 1px solid #59636a;
 background: #f3f5f6;
 color: #202124;
 font: inherit;
 text-decoration: none;
}
.textEditor .textwiki-editor.CodeMirror-focused {
 outline: 3px solid #005a9c;
 outline-offset: 2px;
}
.textEditor .textwiki-editor .CodeMirror-gutters {
 border-right: 1px solid #c7c7c7;
 background: #f4f4f4;
}
.textEditor .textwiki-editor .CodeMirror-linebackground.textwiki-table-row-odd {
 background: #f8fbfc;
 border-bottom: 1px solid #c7d6dc;
}
.textEditor .textwiki-editor .textwiki-table-line {
 padding-top: .18rem;
 padding-bottom: .18rem;
}
.textEditor .textwiki-editor .CodeMirror-linebackground.textwiki-table-row-even {
 background: #eaf3f6;
 border-bottom: 1px solid #c7d6dc;
}
.textEditor .textwiki-editor .CodeMirror-linebackground.textwiki-table-caption-row {
 background: #fff4cf;
}
.textEditor .textwiki-editor .CodeMirror-linebackground.textwiki-table-header-row {
 background: #dcecf3;
}
.textEditor .textwiki-editor .cm-header { color: #8a2c0d; font-weight: 700; }
.textEditor .textwiki-editor .cm-strong { color: #202124; font-weight: 700; }
.textEditor .textwiki-editor .cm-em { color: #5b2c83; font-style: italic; }
.textEditor .textwiki-editor .cm-link { color: #005a9c; text-decoration: underline; }
.textEditor .textwiki-editor .cm-keyword { color: #6b207f; font-weight: 700; }
.textEditor .textwiki-editor .cm-video-tag {
 color: #6b207f;
 font-weight: 700;
 cursor: pointer;
}
.textEditor .textwiki-editor .textwiki-image-tag {
 margin: 0 .12em;
 padding: .08em .2em;
 border-radius: .2em;
 background: #e8f3e8;
 box-shadow: inset 0 0 0 1px #9ab79a;
 color: #245b24;
 font-weight: 700;
 cursor: pointer;
 -webkit-box-decoration-break: clone;
 box-decoration-break: clone;
}
.textEditor .textwiki-editor .textwiki-image-tag:hover {
 background: #ffe29a;
 box-shadow: inset 0 0 0 2px #9b5b00;
 color: #563100;
}
.textEditor .textwiki-editor .cm-variable-2 { color: #1b5e20; font-weight: 700; }
.textEditor .textwiki-editor .cm-table-delimiter {
 color: #004f71;
 background-color: #dceff7;
 font-weight: 700;
}
.textEditor .textwiki-editor .cm-table-marker {
 color: #7a3500;
 background-color: #fff0c2;
 font-weight: 700;
}
.textEditor .textwiki-editor .cm-attribute { color: #8a2c0d; font-weight: 700; }
.textEditor .textwiki-editor .cm-hr { color: #555; font-weight: 700; }
