html, body {
    width: 100%;
    height: 100%;
}

* {
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: "IBM Plex Sans", sans;
    font-weight: 400;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    background: white;
}

input {
    user-select: auto;
}

input[readonly] {
    outline: none;
    border: solid 1px #f5f0ea;
}

input[type=text], input[type=number] {
    border: solid 1px #a9a9a9;
    background: white;
    color: black;
    padding: 2px;
    cursor: text;
}

input[type=text][disabled], input[type=number][disabled] {
    color: #808080;
    text-shadow: 1px 1px 0 #f7f3f2;
}

input:focus {
    outline: none;
    box-shadow: 0 0 3px 1px #5a8dce;
}

input.null {

}

textarea {
    font-family: "IBM Plex Mono", monospace;
    cursor: text;
}

.has-error {
    box-shadow: 0 0 2px 1px rgba(255, 0, 0, 0.5) !important;
}

#loader {
    background: #5a8dce;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    z-index: 10000;
}

#container {
    flex-grow: 1;
    border: solid 0.5em #5a8dce;
    color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
    pointer-events: none;
    transition: border-width 1s;
}

#maincontainer {
    flex-grow: 1;
    flex-shrink: 1;
    border: solid 3px #2c73c8;;
    display: flex;
    overflow: hidden;
    margin-top: 0;
    transition: border-width 1s, margin-top 1s;
}

#top {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    flex-shrink: 0;
    padding-left: 2px;
    padding-right: 2px;
    position: relative;
    pointer-events: auto;
    background: #5a8dce;
    top: 0;
    border-left: solid 0 #5a8dce;
    border-right: solid 0 #5a8dce;
    transition: top 1s, border-left-width 1s, border-right-width 1s;
}

#top .main-toolbar {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    overflow: hidden;
}

#top h1 {
    margin: 0.2em 1em 0.2em 0;
    font-size: 1.5em;
}

#top li {
    display: block;
}

#top .main-toolbar>li button {
    display: block;
    background: #2c73c8;
    padding: 0.5em 1em;
    margin-right: 0.2em;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    outline: none;
    height: 100%;
    white-space: nowrap;
}

#top li button.with-icon {
    padding: 0.2em 0.5em;
}

#top li button.selected {
    background: #2768b3;
}

#top .main-toolbar .localtime {
    padding-right: 0.5em;
    font-weight: bold;
    align-self: center;
    font-size: 1.1em;
}

#top .overflow-pages {
    position: relative;
}

#top .overflow-pages ul {
    position: fixed;
    display: none;
    z-index: 1000;
    padding: 0;
    margin: 0;
    top: 0;
    bottom: 1em;
    overflow: auto;
}

#top .overflow-pages ul button {
    margin: 0;
    width: 100%;
    text-align: left;
}

.main-toolbar-spacer {
    flex-grow: 1;
}

#top li.websocket-indicator {
    align-self: center;
    padding-left: 0.5em;
    padding-right: 0.5em;
    position: relative;
}

#top li.websocket-indicator.with-error:after {
    content: "";
    display: block;
    background-image: url('icons/badge_error.png');
    width: 10px;
    height: 10px;
    background-position: center;
    position: absolute;
    right: 0.5em;
    margin-right: -5px;
    top: 0;
}

#main {
    flex-grow: 1;
    flex-shrink: 1;
    background: white;
    display: flex;
    color: black;
    overflow: auto;
    flex-direction: row;
    position: relative;
    height: 100%;
    pointer-events: auto;
}

#main.fullscreen {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-width: 0;
}

#main .page {
    background-color: #eeeee6;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
    margin: auto;
    transform-box: view-box;
}

#main .editor {
    flex-grow: 1;
    background: #eeeee6;
    max-width: 100%;
    height: 100%;
}

.editor .toolbar {
    background: #eeeee6;
    flex-shrink: 0;
    padding: 1px;
}

.editor-pane {
    /*flex-grow: 1;*/
    height: 100%;
    overflow: auto;
    background: white;
    border: solid 1px #808080;
    border-right-color: white;
    border-bottom-color: white;
    position: relative;
}

.editor-pane>.function {
    width: 100%;
    height: 100%;
    display: flex;
    flex-grow: 1;
}

.editor-pane>.function>.placer {
    margin: auto;
    flex-grow: 0;
    flex-shrink: 0;
    position: relative;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

.panel {
    display: flex;
    flex-direction: column;
    background-color: #eeeee6;
    position: relative;
}

.panel-inset {
    border: solid 1px #808080;
    border-right-color: white;
    border-bottom-color: white;
}

.panel-outset {
    border: solid 1px #808080;
    border-left-color: white;
    border-top-color: white;
}

.panel-white {
    background: white;
}

.panel-left, .panel-right {
    width: 15%;
    min-width: 2em;
}

.panel .panel-body {
    flex-grow: 1;
    overflow: auto;
    position: relative;
}

.panel .panel-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    flex-basis: 0;
    overflow: hidden;
}

.panel .panel-body-white {
    background: white;
}

.panel .panel-header {
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
}

.panel .panel-header h2 .icon {
    margin-top: -8px;
    vertical-align: 6px;
    margin-bottom: -8px;
    margin-left: -4px;
}

.panel .panel-header h2 {
    margin: 0;
    font-size: 1em;
    padding: 0.2em 0.5em;
    font-weight: normal;
    flex-grow: 1;
}

.panel *+.panel-header h2 {
    border-top: solid 1px #9c9c97;
}

.ui-table-wrapper {
    display: block;
    background: white;
}

table.ui-table {
    border-collapse: collapse;
    width: 100%;
    user-select: auto;
}

table.ui-table td, table.ui-table th {
    padding: 0.2em 0.5em;
}

table.ui-table thead th {
    background: #eeeee6;
    border: solid 1px #808080;
    border-left-color: white;
    border-top-color: white;
}

table.ui-table tbody td {
    background: white;
    border: solid 1px #eeeee6;
}

ul.button-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

ul.button-list li {
    width: 50%;
}

ul.button-list li button {
    width: 100%;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.2em 0.4em;
}

ul.list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: auto;
    background: white;
    border: solid 1px #808080;
    border-right-color: white;
    border-bottom-color: white;
    position: relative;
}


ul.list li>.ui-list-row {
    padding: 2px;
    cursor: default;
    min-height: 1.2em;
}

ul.list li>.ui-list-row a {
    color: inherit;
    text-decoration: none;
    display: block;
    padding: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
}

ul.list li.selected>.ui-list-row {
    background: #040479;
    color: white;
}

ul.list li.has-focus>.ui-list-row a {
    outline: dotted 1px black;
}

ul.list li.selected.has-focus>.ui-list-row a {
    outline: dotted 1px white;
}

.properties {
    table-layout: fixed;
}

.properties th.name, .properties th.value {
    overflow: hidden;
    text-overflow: ellipsis;
}

.properties td.name {
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: text;
}

.properties td.value {
    padding: 0;
    height: 24px;
}

.btn {
    border-top: solid 1px white;
    border-left: solid 1px white;
    border-bottom: solid 1px #9c9c97;
    border-right: solid 1px #9c9c97;
    background: #eeeee6;
    color: black;
    text-decoration: none;
    padding: 0.2em 0.7em;
    outline: none;
    width: auto;
    height: auto;
    display: inline-block;
}

.btn:active:not([disabled]), .btn.btn-down {
    border-bottom: solid 1px white;
    border-right: solid 1px white;
    border-left: solid 1px #9c9c97;
    border-top: solid 1px #9c9c97;
}

.btn:focus {
    outline: 1px dotted black;
    outline-offset: -3px;
}

.btn[disabled], .disabled {
    color: #808080;
    text-shadow: 1px 1px 0 #f7f3f2;
}

.btn:focus .btn-label {
    outline: dotted 1px black;
}

.btn.btn-flat {
    border-color: transparent;
}

.btn.btn-flat:hover, .btn.btn-flat:focus {
    border-color: #808080;
}

.btn.btn-close {
    margin: 0.2em;
    padding: 0.2em;
    line-height: 0.5em;
}

.ui-table-wrapper.disabled {
    background: #efefef;
}

.btn[disabled] .icon {
    filter: grayscale(100%);
}

.btn-group {
    background: #eeeee6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

.btn-group-separator {
    border-left: solid 1px #9c9c97;
    margin-left: 0.4em;
    margin-right: 0.4em;
    height: 60%;
}

.btn-group .btn {
    border-color: #eeeee6;
}

.btn-group .btn:hover:not([disabled]) {
    border-top-color: white;
    border-left-color: white;
    border-bottom-color: #9c9c97;
    border-right-color: #9c9c97;
}

.btn-group .btn:active:not([disabled]) {
    border-bottom: solid 1px white;
    border-right: solid 1px white;
    border-left: solid 1px #9c9c97;
    border-top: solid 1px #9c9c97;
}

.label-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.label {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    background-position: center center;
    background-size: 100% 100%;
}

.function-block .panel, .page .panel {
    background: #cbc6be;
    display: flex;
    flex-direction: column;
    border: solid 1px #5e5c5a;
}

.function-block .panel>.panel-header, .page .panel>.panel-header {
    background: #5e5c5a;
    color: white;
    cursor: default;
    border: none;
}

.function-block .panel>.panel-header h2, .page .panel>.panel-header h2 {
    color: inherit;
    text-align: center;
    padding: 0.3em 0.5em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    font-size: small;
    font-weight: bold;
}

.function-block .panel-function {
    font-size: x-small;
    font-style: italic;
    padding: 2px;
    border-bottom: solid 1px #aaaaaa;
    text-align: center;
}

.function-block .panel-io {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
}

.function-block .panel-io>.panel-inputs, .function-block .panel-io>.panel-outputs {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background: #e7e4e1;
}

.function-block .panel-io>.panel-inputs {
    border-right: solid 1px #aaaaaa;
}

.function-block .panel-io>.panel-outputs {
    border-left: solid 1px #aaaaaa;
}

.function-block .panel-io>.panel-inputs li .io, .function-block .panel-io>.panel-outputs li .io {
    border-bottom: solid 1px #aaaaaa;
    cursor: default;
}

.function-block .panel-io>.panel-inputs li:hover, .function-block .panel-io>.panel-outputs li:hover {
    background-color: #D9D6D3;
}

.function-block .panel-io>.panel-inputs li.header, .function-block .panel-io>.panel-outputs li.header {
    display: flex;
    align-items: center;
    padding: 0.2em 0.5em;
    border-bottom: solid 1px #aaaaaa;
}

.function-block .panel-io>.panel-inputs li.header>span, .function-block .panel-io>.panel-outputs li.header>span {
    display: inline-block;
    flex-grow: 1;
    margin-left: 0.5em;
    margin-right: 0.5em;
    font-weight: bold;
}

.function-block .panel-io>.panel-inputs .io.has-focus, .function-block .panel-io>.panel-outputs .io.has-focus {
    outline: dotted 1px black;
}

.function-block .panel-io .io {
    padding: 0.2em 0.5em;
    display: block;
    position: relative;
    margin: 1px;
}

.function-block .panel-io .io.io-input:after, .function-block .panel-io .io.io-output:before {
    content: "";
    background: black;
    width: 6px;
    height: 6px;
    position: absolute;
    top: 50%;
    margin-top: -3px;
    right: 100%;
    margin-right: -2px;
    border-radius: 3px;
}

.function-block .panel-io .io.io-output:before {
    right: initial;
    left: 100%;
    margin-right: 0;
    margin-left: -2px;
}

.function-block .panel-body {
    overflow: hidden;
}

.function-block .panel-body>svg {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.function-block .panel-body>.placer {
    z-index: 2;
}

.function-block:hover, .function-block.has-focus:hover {
    z-index: 20 !important;
}

.function-block.has-focus {
    z-index: 10 !important;
}

.io {
    font-size: small;
    position: relative;
}

.io .io-datatype {
    display: block;
    font-size: x-small;
    color: #040479;
    font-family: 'IBM Plex Mono', courier;
    font-style: italic;
    text-align: right;
}

.io.io-hidden {
    display: none !important;
}

.io.io-hidden.io-connected {
    display: block !important;
}

.io.io-connected .io-value {
    display: none;
    z-index: 10;
}

.io.io-connected .io-value.io-value-visible, .io .io-value.io-value-visible {
    display: inline-block;
    top: auto;
    bottom: -2px;
    margin: 0;
    padding: 0.1em 0.3em;
}

.io.io-big .io-value.io-value-visible {
    bottom: -1px;
}

.io.io-input .io-value.io-value-visible {
    right: -2px;
}

.io.io-big.io-input .io-value.io-value-visible {
    right: -1px;
}

.io.io-output .io-value.io-value-visible {
    left: -2px;
}

.io.io-big.io-output .io-value.io-value-visible {
    left: -1px;
}

.io .io-value {
    display: inline-block;
    position: absolute;
    top: 50%;
    background: #efeaa2;
    color: black;
    border: solid 1px black;
    padding: 0.2em 0.5em;
    z-index: 5;
    margin-top: -0.9em;
    white-space: nowrap;
    font-size: x-small;
}

.io.io-input .io-value {
    right: 100%;
    margin-right: 1px;
}

.io.io-output .io-value {
    left: 100%;
    margin-left: 1px;
}

.placer.function-block>.placer-body {
    overflow: visible;
}

.placer[data-io]>.placer-body {
    overflow: visible;
}

.page.editable .placer {
    cursor: default !important;
}

.page.editable .placer>.placer-body {
    pointer-events: none;
}

.page.editable.has-focus {
    outline: dotted 1px black;
}

.placer {
    position: absolute;
}

.placer.static {
    position: relative;
}

.placer>.placer-body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.placer-body>* {
    width: 100%;
    height: 100%;
}

.placer.has-focus {
    outline: dotted 1px black;
}

.placer.has-focus .resize-handler {
    position: absolute;
    width: 6px;
    height: 6px;
    background: black;
    z-index: 1000;
}

.placer.has-focus .resize-handler-n, .placer.has-focus .resize-handler-s {
    left: 50%;
    margin-left: -3px;
}

.placer.has-focus .resize-handler-n {
    top: -1px;
    cursor: ns-resize;
}

.placer.has-focus .resize-handler-s {
    bottom: -1px;
    cursor: ns-resize;
}

.placer.has-focus .resize-handler-e, .placer.has-focus .resize-handler-w {
    top: 50%;
    margin-top: -3px;
}

.placer.has-focus .resize-handler-e {
    right: -1px;
    cursor: ew-resize;
}

.placer.has-focus .resize-handler-w {
    left: -1px;
    cursor: ew-resize;
}

.placer.has-focus .resize-handler-nw {
    left: -1px;
    top: -1px;
    cursor: nwse-resize;
}

.placer.has-focus .resize-handler-ne {
    top: -1px;
    right: -1px;
    cursor: nesw-resize;
}

.placer.has-focus .resize-handler-sw {
    bottom: -1px;
    left: -1px;
    cursor: nesw-resize;
}

.placer.has-focus .resize-handler-se {
    bottom: -1px;
    right: -1px;
    cursor: nwse-resize;
}

.icon {
    width: 16px;
    height: 16px;
    background-position: center center;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: text-bottom;
}

.icon.icon-22 {
    height: 22px;
    width: 22px;
}

.icon.icon-32 {
    width: 32px;
    height: 32px;
}

.icon-margin {
    margin-right: 0.2em;
}

.icon.disabled, [disabled] .icon {
    opacity: 0.5;
}

.icon.icon-send-to-back {
    background-image: url('icons/send_to_back.png');
}

.icon.icon-send-backward {
    background-image: url('icons/send_backward.png');
}

.icon.icon-bring-to-front {
    background-image: url('icons/bring_to_front.png');
}

.icon.icon-bring-forward {
    background-image: url('icons/bring_forward.png');
}

.icon.icon-button {
    background-image: url('icons/button.png');
}

.icon.icon-panel {
    background-image: url('icons/panel.png');
}

.icon.icon-label {
    background-image: url('icons/label.png');
}

.icon.icon-page {
    background-image: url('icons/page.png');
}

.icon.icon-page-add {
    background-image: url('icons/page-add.png');
}

.icon.icon-add {
    background-image: url('icons/add.png');
}

.icon.icon-delete {
    background-image: url('icons/delete.png');
}

.icon.icon-zoom-fill {
    background-image: url('icons/zoom-fit-best.svg');
    background-size: 100% 100%;
}

.icon.icon-zoom-1on1 {
    background-image: url('icons/zoom-original.svg');
    background-size: 100% 100%;
}

.icon.icon-zoom-fullscreen {
    background-image: url('icons/zoom-fullscreen.svg');
    background-size: 100% 100%;
}

.icon.icon-editor {
    background-image: url('icons/editor.svg');
    background-size: 100% 100%;
}

.icon.icon-properties {
    background-image: url('icons/properties.png');
}

.icon.icon-solution {
    background-image: url('icons/solution.png');
}

.icon.icon-move-up {
    background-image: url('icons/move_up.gif');
}

.icon.icon-move-down {
    background-image: url('icons/move_down.gif');
}

.icon.icon-save {
    background-image: url('icons/save.png');
}

.icon.icon-cut {
    background-image: url('icons/cut.png');
}

.icon.icon-copy {
    background-image: url('icons/copy.png');
}

.icon.icon-paste {
    background-image: url('icons/paste.png');
}

.icon.icon-spinner {
    background-image: url('icons/spinner.png');
}

.icon.icon-functions {
    background-image: url('icons/functions.gif');
}

.icon.icon-function {
    background-image: url('icons/function.gif');
}

.icon.icon-function-add {
    background-image: url('icons/function-add.png');
}

.icon.icon-resources {
    background-image: url('icons/resources.gif');
}

.icon.icon-resources-add {
    background-image: url('icons/resources-add.png');
}

.icon.icon-package {
    background-image: url('icons/package.gif');
}

.icon.icon-exit {
    background-image: url('icons/exit.png');
}

.icon.icon-alert, .icon.icon-warning {
    background-image: url('icons/alert.png');
}

.icon.icon-error {
    background-image: url('icons/error.png');
}

.icon.icon-question {
    background-image: url('icons/question.png');
}

.icon.icon-deploy {
    background-image: url('icons/deploy.png');
}

.icon.icon-info {
    background-image: url('icons/info.png');
}

.icon-32.icon-alert {
    background-image: url('icons/alert_large.png');
}

.icon-32.icon-error {
    background-image: url('icons/error_large.png');
}

.icon-32.icon-question {
    background-image: url('icons/question_large.png');
}

.icon-32.icon-info {
    background-image: url('icons/info_large.png');
}

.icon.icon-input {
    background-image: url('icons/input.gif');
}

.icon.icon-output {
    background-image: url('icons/output.gif');
}

.icon.icon-plc {
    background-image: url('icons/plc.png');
}

.icon.icon-variable {
    background-image: url('icons/variable.png');
}

.icon.icon-list {
    background-image: url('icons/list.gif');
}

.icon.icon-debug {
    background-image: url('icons/debug.png');
}

.icon.icon-checkbox {
    background-image: url('icons/checkbox.gif');
}

.icon.icon-checkbox-true {
    background-image: url('icons/checkbox-true.png');
}

.icon.icon-checkbox-false {
    background-image: url('icons/checkbox-false.png');
}

.icon.icon-checkbox-null {
    background-image: url('icons/checkbox-null.png');
}

.icon.icon-page-template {
    background-image: url('icons/page_template.png');
}

.icon.icon-playpause {
    background-image: url('icons/playpause.png');
}

.icon.icon-plc-add {
    background-image: url('icons/plc_add.png');
}

.icon.icon-program {
    background-image: url('icons/program.png');
}

.icon.icon-table {
    background-image: url('icons/table.gif');
}

.icon.icon-filter {
    background-image: url('icons/filter.png');
}

.icon.icon-chart-line {
    background-image: url('icons/chart-line.png');
}

.icon.icon-chart-bar {
    background-image: url('icons/chart-bar.png');
}

.icon.icon-gauge {
    background-image: url('icons/gauge.png');
}

.icon.icon-linear-gauge {
    background-image: url('icons/linear-gauge.png');
}

.icon.icon-help {
    background-image: url('icons/help.png');
}

.icon.icon-undo {
    background-image: url('icons/undo.png');
}

.icon.icon-redo {
    background-image: url('icons/redo.png');
}

.pages-list {
    display: flex;
    flex-direction: column;
}

.pages-list>ul {
    flex-grow: 1;
}

.function-library {
    display: flex;
}

.function-library>ul {
    flex-grow: 1;
}

.property-editor {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.property-editor>input {
    flex-grow: 1;
    width: 100%;
    margin: 0.2em;
    background: white;
    color: black;
    border: solid 1px #5e5c5a;
    padding: 0.1em 0.2em;
}

.property-editor>select {
    flex-grow: 1;
    margin: 0.2em;
    width: 100%;
}

.property-editor>input[readonly] {
    border-color: #eeeee6;
}

.property-editor>.icon.icon-checkbox-null, .property-editor>.icon.icon-checkbox-true, .property-editor>.icon.icon-checkbox-false {
    width: auto;
    height: auto;
    display: block;
    flex-grow: 1;
}

.property-editor-readonly, .property-editor-readonly input {
    color: #808080;
}

.property-color-editor-display {
    display: inline-block;
    flex-grow: 1;
    margin: 0.2em;

    border: solid 1px #5e5c5a;
    min-height: 1em;
    position: relative;
}

/* Transparent checker grid under the color */
.property-color-editor-display:before {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: url('transparent.svg');
    z-index: 0;
}

/* Actual color display inherited from the element. */
.property-color-editor-display:after {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: inherit;
    z-index: 1;
}

.property-color-editor-null {
    background: repeating-linear-gradient(-45deg, transparent, transparent 5px, rgba(0, 0, 0, 0.2) 6px, rgba(0, 0, 0, 0.2) 6px), repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0, 0, 0, 0.2) 6px, rgba(0, 0, 0, 0.2) 6px);
}

.property-color-editor-null:before, .property-color-editor-null:after {
    display: none;
}

#websocket-indicator {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

#websocket-indicator.open.active circle {
    fill: #92E670;
    transition: fill 0.5s;
}

#websocket-indicator.open circle {
    fill: #77c657;
    transition: fill 0.5s;
}

.text-yellow {
    color: #997E1F;
}

.text-green {
    color: #43991F;
}

.text-red {
    color: #991F1F;
}

.text-gray {
    color: #3f4647;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

#websocket-indicator.closed circle {
    fill: #E65C5C;
}

#websocket-indicator.connecting circle {
    fill: #E6CE70;
}

.panel .panel-body>svg {
    z-index: 1;
}

svg g.connection polyline, svg g.connection path {
    stroke-width: 2px;
    stroke: #000000;
    fill: none;
}

svg g.connection polyline.bg, svg g.connection path.bg {
    stroke-width: 7px;
    stroke: rgba(0, 0, 0, 0);
}

svg g.connection circle {
    fill: #000000;
    stroke: none;
}

svg g.connection-error polyline.fg, svg g.connection-error path.fg {
    stroke: #FF0000 !important;
}

svg g.connection-error circle {
    fill: #FF0000 !important;
}

svg g.connection.highlight polyline.fg, svg g.connection.highlight path.fg {
    stroke: #00AA00;
}

svg g.connection.highlight circle {
    fill: #00AA00;
}

svg g.connection:hover polyline.fg, svg g.connection.drawing polyline.fg, svg g.connection:hover path.fg, svg g.connection.drawing path.fg {
    stroke: #00AA00;
}

svg g.connection:hover circle, svg g.connection.drawing circle {
    fill: #00AA00;
}

svg g.connection.has-focus circle {
    fill: #b77400 !important;
}

svg g.connection.has-focus polyline.fg, svg g.connection.has-focus path.fg {
    stroke: #b77400 !important;
}

.editor-main {
    overflow: hidden;
}

.editor-messages {
    height: 20%;
    min-height: 2em;
    display: flex;
}

.editor-messages.hidden {
    display: none;
}

.editor-messages ul {
    list-style-type: none;
    background: white;
    margin: 0;
    padding: 0;
    overflow: auto;
    max-height: 100%;
}

.editor-messages li {
    display: block;
    border-bottom: solid 1px #eeeee6;
    padding: 0.2em 0.5em;
}

.editor-messages li span {
    margin-right: 0.2em;
}

.is-changed {
    font-weight: bold;
}

.page button {
    cursor: pointer;
}

.page button[disabled] {
    cursor: default;
}

.page .placer {
    cursor: default;
}

.ui-list-row-item>a[data-item-type=function] {
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ValueIndicator .label {
    user-select: text;
    cursor: text;
}

.page.editable .Template {
    border: dashed 1px black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
}

.page.editable .Template span {
    display: block;
    margin: auto;
    font-size: 3em;
    color: #5e5c5a;
    text-align: center;
}

.page.editable .Template span:before {
    content: "<<template>>";
    font-size: 0.2em;
    display: block;
    text-align: center;
}

.slider {

}

.slider.hidden {
    display: none;
}

.slider.slider-t, .slider.slider-b {
    height: 3px !important;
    min-height: 3px;
    max-height: 3px;
    cursor: ns-resize;
}

.slider.slider-l, .slider.slider-r {
    width: 3px !important;
    max-width: 3px;
    min-width: 3px;
    cursor: ew-resize;
}

.page .panel.disabled {
    opacity: 0.5;
}

.page .panel.disabled .panel-header h2 {
    text-shadow: none;
}

.DataTable .ui-table-wrapper {
    overflow: auto;
}

.DataTable td.value {
    padding: 0;
}

.DataTable td.value>div {
    padding: 0.2em 0.5em;
}

.ui-table-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 2px;
    top: 2px;
}
.ui-table-loader:after {
    content: " ";
    display: block;
    width: 14px;
    height: 14px;
    margin: 1px;
    border-radius: 50%;
    border: 2px solid black;
    border-color: black transparent black transparent;
    animation: ui-table-loader 1.2s linear infinite;
}

@keyframes ui-table-loader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.editable .ui-table-loader {
    display: none !important;
}

ul.ui-treeview li a.plc-disabled {
    text-decoration: line-through;
    color: #404040;
}

ul.ui-treeview li.selected a.plc-disabled {
    color: inherit;
}

.button-help {
    border: none;
    background: none;
    float: right;
    cursor: pointer;
    padding: 0;
}