/* body { */
/*     font-family: 'Akkurat Pro', sans-serif; */
/*     font-size: 14px; */
/*     font-weight: normal; */

/*     -webkit-font-smoothing: antialiased; */
/*     -moz-osx-font-smoothing: grayscale; */
/* } */

/* a:link, a:visited { */
/*     color: #F0F090; */
/* } */

:root {
    --canvas-z: 10000;
}

.data-graph-editor-blocker {
    z-index: calc(var(--canvas-z) + 1);
}

.data-graph-editor-blocker-progress {
    height: 30px;
    width: 80%;
    opacity: 1;
}

.data-graph-editor {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
}

.data-graph-editor .toolbar {
    /* background: var(--whispr-dark-blue); */
}

.data-graph-editor .toolbar select {
    width: 200px;
}

#workspace {
    background: black;

    /* NOTE(jan): element must be positioned for iframe / toolbox positions to be correct. */
    position: relative;

    display: flex;
    flex-grow: 1;

    /* NOTE(jan): This keeps the workspace from growing. */
    overflow: hidden;
}

#workspace canvas {
    /* NOTE(jan): element must be positioned for z-index to take effect. */
    position: relative;
    
    pointer-events: none;
    z-index: var(--canvas-z);
}

#workspace #previews {
    pointer-events: none;

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

    overflow: visible;
}

#workspace #inline-property-editors {
    pointer-events: none;

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

    overflow: auto;
}

#workspace #previews .preview-scroller,
/* TODO(jan): Rename */
#workspace #inline-property-editors .preview-scroller {
    pointer-events: none;

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

    overflow: auto;
}

#workspace #previews .preview-container,
/* TODO(jan): Rename */
#workspace #inline-property-editors .preview-container {
    pointer-events: none;

    width: 50000px;
    height: 50000px;
}

/* TODO(jan): Rename */
#workspace #inline-property-editors .preview-container div.preview {
    background: white;

    position: absolute;
    z-index: 0;

    pointer-events: all;

    transform-origin: 0 0;
}

#workspace #previews iframe {
    background: white;
    border: none;
    pointer-events: all;
    transform-origin: top left;

    will-change: transform;

    position: absolute;
    top: 0;
    left: 0;

    contain: strict;
    content-visibility: auto;
}

#workspace #inline-property-editors .preview-container div.preview {
    background-color: var(--whispr-panel-background);
}

#workspace #inline-property-editors .preview-container div.preview cmp-node-property-editor {
    display: block;
    padding: 0.25em;
}

/* #workspace #inline-property-editors .property-editor-grid {
    row-gap: 0;
    margin: 0;
}

#workspace #inline-property-editors .property-editor-grid div[data-bind-style-padding-left="content.indentStyle"] {
    padding-left: 0 !important;
}

#workspace #inline-property-editors .property-editor-grid div.text {
    display: none;
} */

.time-of-day {
    font-size: 18px;
    color: blue;
}

/* .title-bar { */
/*     display: none; */
/*     position: fixed; */
/*     top: 0; */
/*     left: 0; */
/*     right: 0; */
/*     height: 30px; */
/*     background: #404040; */
/*     color: #E0E0E0; */
/*     border-bottom: 1px solid black; */
/* } */

/* .title-bar .title { */
/*     position: absolute; */
/*     font-size: 14px; */
/*     vertical-align: middle; */
/*     margin-left: 40px; */
/*     margin-top: 5px; */
/* } */

/* .title-bar svg { */
/*     height: 30px; */
/* } */

/* .status-bar { */
/*     position: fixed; */
/*     bottom: 0; */
/*     left: 0; */
/*     right: 0; */
/*     height: 14px; */
/*     background: #303030; */
/*     color: #E0E0E0; */
/*     text-align: center; */
/*     font-size: 10px; */
/*     border-top: 1px solid black; */
/* } */

.fa-save-all::before {
    position: relative;
    top: -3px;
    left: -3px;
    content: "\f0c7";
}

.fa-save-all::after {
    position: absolute;
    top: 10px;
    left: 10px;
    content: "\f0c7";
}

.fa-trash-all::before {
    position: relative;
    top: -3px;
    left: -3px;
    content: "\f1f8";
}

.fa-trash-all::after {
    position: absolute;
    top: 10px;
    left: 10px;
    content: "\f1f8";
}

.fa-sync-all::before {
    position: relative;
    top: -3px;
    left: -3px;
    content: "\f021";
}

.fa-sync-all::after {
    position: absolute;
    top: 10px;
    left: 10px;
    content: "\f021";
}

#tooltip {
    background-color: var(--whispr-teal);
    color: var(--whispr-white);

    font-size: 10px;

    display: none;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 100002;

    border-radius: 2px;
    padding: 0.5em;

    pointer-events: none;
    z-index: var(--tooltip-z);
}

.workspace-columns {
    /* NOTE(jan): create a scrolling block context so height will be correct regardless floating children. */
    overflow: hidden;
    position: sticky;
    top: 0;
    right: 0;
    background: #efefed;
    border-bottom: 0.5px dotted black;
    margin: 0;
    padding: 0;
    box-sizing: content-box;
    margin-left: 20px;
}

.workspace-columns div {
    height: 25px;
    line-height: 25px;
    text-align: center;
    float: left;
}

.workspace-rows-container {
    position: sticky;
    left: 0;
    right: 20px;
}

.workspace-rows {
    position: absolute;
    top: 26px;
    background: #efefed;
    border-right: 0.5px dotted black;
    margin: 0;
    padding: 0;
}

.workspace-rows div {
    height: 100px;
    width: 20px;
    text-align: center;
    font-weight: bold;
    line-height: 100px;
    border-top: 0.5px dotted black;
    stroke-dasharray: 1,3;
    box-sizing: border-box;
}

.workspace-rows div:first-child {
    border-top: 0;
}

.workspace-content {
    margin-left: 20px;
}

.node-header {
    transition: all 0.2s;
}

.component-warning-message {
    background-color: var(--whispr-yellow);
}

.graph-connection {
    cursor: pointer;
}

.toolbox-container {
    position: absolute;
    background: var(--whispr-panel-background);
    color: #E0E0E0;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-right: 1px solid #303030;
    border-radius: 5px;
    box-shadow: 4px 4px 5px 5px rgba(0, 0, 0, .3);
    font-size: 10px;
    z-index: 10001;

    overflow: auto;
    resize: both;
}

.toolbox-body {
    position: absolute;
    top: 32px;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    overflow: auto;
}

.toolbox-category-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

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

.toolbox-deselect-category {
    max-height: 1em;
    max-width: 1em;
}

.toolbox-search {
    box-sizing: border-box;
    padding: 2px;
    flex-grow: 1;
}

.toolbox-search input {
    border: 1px solid black;
    background: #303030;
    color: #EFEFEF;
    box-shadow: inset 1px 1px 2px 0px black;
    box-sizing: border-box;
    width: 100%;
    padding: 5px;
}

.toolbox-item {
    background: #d0d0ca;
    padding: 5px;
    color: white;
    margin: 3px;
    border-radius: 3px;
    border: 1px solid #202020;
    text-shadow: 1px 1px 2px black;
    cursor: pointer;
}

.toolbox-item:hover {
    mix-blend-mode: screen;
}

.toolbox-item[data-category-name="Data"] {
    background: #368B64;
}

.toolbox-item[data-category-name="Visualize"] {
    background: #8B648B;
}

.toolbox-item[data-category-name="Layout"] {
    background: #64368B;
}

.toolbox-item[data-category-name="Report"] {
    background: #8B3664;
}

.toolbox-item[data-category-name="Compute"] {
    background: #36648B;
}

.toolbox-item[data-category-name="Parse"] {
    background: #648B36;
}

.toolbox-item[data-category-name="Transform"] {
    background: #64648B;
}

.toolbox-item[data-category-name="Module"] {
    background: #648B8B;
}

.toolbox-item[data-category-name="Reports"] {
    background: #E55BBF;
}

.toolbox-item[data-category-name="Pages"] {
    background: #E887CD;
}

.toolbox-item[data-category-name="Elements"] {
    background: #ECBADE;
}

.toolbox-item[data-category-name="Help"] {
    background: #E5AE5B;
}

.toolbox-item[data-category-name="Special"] {
    background: var(--whispr-panel-background);
}

.toolbox-item[data-category-name="Validate"] {
    background: #A2594C;
}

.toolbox-item[data-category-name="Other"] {
    background: #638C8C;
}

.toolbox-item.selected {
    background: black;
    color: white;
}


.property-pane {
    /* font-family: 'Akkurat Light Pro', sans-serif; */
    /* background: var(--whispr-panel-background); */
    color: #E0E0E0;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
}

.property-pane-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    /* height: 100%; */
    /* font-size: 12px; */
    /* overflow-y: scroll; */
    /* overflow-x: hidden; */
    /* padding: 5px; */
}

.property-pane-content h3 {
    margin-block-end: 0;
}

.property-pane-content .property-pane-section {
    margin-block-end: 1em;
}

.selected-node-tab {
    height: 100%;
}

.selected-node-footer {
    margin-top: 2px;
    border-top: 1px solid #202020;
}

.property-pane .selected-node-body {
    height: calc(100vh - 120px - 43px);
}

.horizontal-separator {
    display: block;
    height: 5px;
    border-bottom: 1px solid black;
}

.property-table {
    /* display: table; */
    /* border-spacing: 0px 10px; */
    width: 100%;
}

.property-container {
    margin-bottom: 10px;
}

.property-container .attribute-key {
    width: 30%;
}

.property-table .property-container .attribute-key input[type="text"] {
    width: 90%;
}

.property-container .attribute-value {
    width: 70%;
}

.property-container .property-label {
    font-family: 'Akkurat Pro', sans-serif;
    color: #e0e0e0;
    font-weight: bold;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-right: 5px;
    vertical-align: top;
    white-space: nowrap;
    width: 10px;
}

.property-container .property-label.is-dirty {
    font-weight: bold;
    text-decoration: underline;
}

.property-container .property-values {
    width: 100%;
}

.property-container .property-values .property-value {
    border: 1px solid transparent;
    display: flex;
    margin-bottom: 0px;
}

.property-container .property-values .property-value.property-value-drag-target {
    background-color: var(--whispr-bright-blue);
    border-color: var(--whispr-bright-blue);
    box-shadow: 0 0 10px var(--whispr-bright-blue);
}

/* NOTE(jan): Settings for buttons that go on the right of the input. */
.property-container .clear-value-button,
.property-container .insert-value-button,
.property-container .no-button,
.property-container .remove-value-button {
    cursor: pointer;

    text-align: right;

    padding-left: 2px;

    font-size: 12px;
    line-height: 20px;
    width: 12px;
}

.property-container .property-values .property-value-entry {
    width: 100%;
}

.user-property-pane .property-values .property-value-entry {
    width: 250px;
}

:root {
    --component-range-text-width: 40px;
}

.property-container .property-values .property-value-entry input {
    margin: 0;
    width: calc(100% - var(--component-range-text-width));
}

.property-container .property-values .property-value-entry input.api-valid-for-days {
    margin: 0;
    width: 3em;
}

.property-container .property-values .api-key-property-row {
    padding-bottom: 1em;
}

.property-container .property-values .api-key-property-row .property-value {
    margin-bottom: 0;
}

.property-container .property-values .group-color-display {
    min-height: 20px;
    min-width: 20px;
}

.property-container td {
    vertical-align: top;
}

.property-table td select {
    /* NOTE(jan): This is a hack that fixes select boxes being super small
       when they in the first row of a table. */
    min-width: 100px;
}

.property-table td.port-icon {
    vertical-align: middle;
}

.component-input-range span {
    text-align: right;
    float: right;
    width: var(--component-range-text-width);
}


.property-table select {
    /* -webkit-appearance: none; */
    /* -moz-appearance: none; */
    /* appearance: none; */
    /* font-family: 'Akkurat Pro', sans-serif; */
    /* font-size: 14px; */
    /* width: 100%; */
    width: 100%;
    background: #808080;
    color: white;
    text-shadow: 1px 1px 2px black;
}

.search-container input,
.property-table input[type="text"],
.property-table input[type="number"],
.property-table input[type="email"],
.property-table input[type="url"],
.property-table input[type="datetime-local"],
.property-table input[type="password"],
.property-table input[type="date"] {
    border: 1px solid black;
    background: #303030;
    color: #B0B0B0;
    box-shadow: inset 1px 1px 2px 0px black;
    box-sizing: border-box;
    width: 100%;
}

.filter-container-header {
    display: block;
    font-weight: bold;
    text-transform: uppercase;
}

.filter-container {
    white-space: nowrap;
}

.filter-container .entity-selector {
    display: inline-block;
}

.filter-container .entity-selector > div:before {
    content: "CLIENT:";
}

.filter-container select {
    background: #808080;
    color: white;
    text-shadow: 1px 1px 2px black;
}

.button-container-header {
    display: block;
    font-weight: bold;
    text-transform: uppercase;
}

.property-table textarea,
.comment-section textarea {
    /* font-family: 'Akkurat Light Pro', sans-serif; */
    background: #303030;
    color: #d0d0d0;
    box-shadow: inset 1px 1px 2px 0px black;
    box-sizing: border-box;
    width: 100%;
    height: 200px;
    box-sizing: border-box;
}

.comment-section .error-lines .error-line {
    margin-bottom: 0.5em;
}

.comment-section .error-lines .error-line a {
    color: var(--whispr-white);
}

.comment-section .error-lines .error-line a:visited {
    color: var(--whispr-white);
}

.property-table textarea.small-textarea {
    /* font-family: 'Akkurat Light Pro', sans-serif; */
    width: 100%;
    height: 20px;
    box-sizing: border-box;
}

.property-table .property-value-entry[data-component-name="HTML Snippet"] textarea {
    font-family: monospace;
}

.property-table .property-value-entry[data-component-name="HTML Snippet"] textarea.small-textarea {
    font-family: monospace;
}

.property-table .property-value-entry[data-component-name="JSON"] textarea {
    font-family: monospace;
}

.property-table .property-value-entry[data-component-name="JSON"] textarea.small-textarea {
    font-family: monospace;
}

.comment-section {
    margin-top: 2em;
}

.comment-section:first-child {
    margin-top: 0;
}

.comment-section-header {
    font-family: 'Akkurat Pro', sans-serif;
    font-weight: bold;
    color: #e0e0e0;
}

/* .comment-section textarea { */
/*     width: 100%; */
/*     margin-right: 5px; */
/* } */


.comment-box {
    font-size: 12px;
    /* background: #285277; */
    /* background: #606060; */
    background: #EFEFE0;
    border: 1px dashed var(--whispr-panel-background);
    color: black;
}

.comment-content p {
    /* font-family: 'Akkurat Light Pro', sans-serif; */
    /* font-size: 12px; */
}

.comment-content p:first-child {
    /* font-family: 'Akkurat Pro', sans-serif; */
    /* font-weight: bold; */
}

.progress-bar-container {
    width: 100%;
    height: 100%;
    background: #303030;
}

.progress-bar {
    background: #285277;
    height: 100%;
    transition: all 0.2s;
}



.manual-classifier-window {
    font-size: 16px;
    position: fixed;
    background: #d0d0d0;
    opacity: 0.95;
    color: black;
    left: 100px;
    right: 100px;
    top: 100px;
    bottom: 100px;
    border: 1px solid black;
    box-shadow: 0px 0px 12px 12px rgba(0, 0, 0, .5);
}

.classifier-table {
    display: table;
    border-collapse: collapse;
}

.classifier-row {
    display: table-row;
    border-bottom: 1px solid black;
}

.classifier-row:first-child {
    display: table-row;
    border-bottom: 2px solid black;
}

.sentence-list {
    display: table-cell;
    padding: 10px;
}

.category {
    display: table-cell;
    padding: 10px;
    border-left: 1px solid #808080;
}

.category-highlighted {
    background: #285277;
}

.classifier-column-header {
    font-family: 'Akkurat Pro', sans-serif;
    font-size: 20px;
    display: table-cell;
    padding: 10px;
}

.sentence {
    background: var(--whispr-panel-background);
    color: #d0d0d0;
    text-shadow: 1px 1px 2px black;
    display: inline;
    border: 1px solid black;
    line-height: 30px;
    padding: 5px;
    margin: 5px;
    cursor: pointer;
}

.sentence:hover {
    background: #505050;
    color: white;
}

.sentence-selected {
    background: #285277;
    color: white; /*#303030;*/
    text-shadow: 1px 1px 2px black;
    border: 1px solid black;
}

.sentence-selected:hover {
    background: #386297;
    color: white; /*#303030;*/
}



.sentence-classification-list {
    position: absolute;
    display: inline;
    font-size: 10px;
    line-height: 10px;
    color: white;
}

.sentence-classification {
    display: inline;
    margin-left: 5px;
    background: #d9222f;
    border: 1px solid black;
    padding: 0px 2px 0px 2px;
}

.sentence-classification-list .sentence-classification:first-child {
    display: inline;
    margin-left: 0px;
}


.sentence-list .sentence:first-child {
    margin-left: 0px;
}

.sentence-list .sentence:last-child {
    margin-left: 0px;
}

.classifier-option {
    display: inline;
    background: #404040;
    color: white;
    text-shadow: 1px 1px 2px black;
    border: 1px solid black;
    cursor: pointer;
    padding: 5px;
    margin: 5px;
}

.category-highlighted .classifier-option {
    border: 1px solid white;
}

.classifier-option:hover {
    background: #505050;
}

.classifier-option-highlighted {
    background: #d9222f;
    color: white;
    text-shadow: 1px 1px 2px black;
    border: 1px solid black;
}


.classifier-option-highlighted:hover {
    background: #e9323f;
}

.error-message-preview {
    width: 100%;
    height: 100%;
}

.node-view-container {
    width: 100%;
    height: 100%;
}

s {
    border: 0;
    margin: 0;
    padding: 0;
    background-color: var(--whispr-white);
}

.monaco-editor {
    height: 500px;
}

.text-search-container {
    display: inline-block;
}
