/********************************
* Tabs
********************************/

.page-discovery > .discovery-editor .discovery-editor-tabs {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}
.page-discovery > .discovery-editor .data-query-result::before,
.page-discovery > .discovery-editor .discovery-editor-tabs::before {
    padding: 3px 4px;
    width: 40px;
    text-align: right;
    box-sizing: border-box;
    font-size: 11px;
    color: rgba(141, 141, 141, 0.75);
}
.page-discovery > .discovery-editor .discovery-editor-tab {
    display: inline-block;
    margin: 0 1px 1px 0;
    padding: 2px 12px;
    background: rgba(200, 200, 200, 0.2);
    font-size: 12px;
    user-select: none;
    cursor: pointer;
}
.page-discovery > .discovery-editor .discovery-editor-tab.active {
    margin-bottom: 0;
    background: rgba(108, 188, 241, 0.15);
    cursor: default;
}
.page-discovery > .discovery-editor .discovery-editor-tab:not(.active):hover {
    background: rgba(187, 187, 187, 0.4);
}
.page-discovery > .discovery-editor .discovery-editor-tab:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.page-discovery > .discovery-editor .discovery-editor-tab:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/********************************
* Editor
********************************/

.page-discovery > .discovery-editor .editor-toolbar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: baseline;
    gap: 10px;
}
.page-discovery > .discovery-editor .editor-toolbar label {
    padding: 4px;
    margin: 0 1ex;
    white-space: nowrap;
}
.page-discovery > .discovery-editor .editor-toolbar .syntax-hint {
    padding-left: 10px;
    flex: 1;
    color: rgba(141, 141, 141, 0.75);
    font-size: 12px;
    align-self: start;
}
.page-discovery > .discovery-editor .editor-toolbar .view-checkbox__label {
    margin-right: 0;
}

.page-discovery > .discovery-editor .discovery-editor-error {
    border-bottom: 1px solid rgba(255, 0, 0, .6);
    background: rgba(255, 215, 209, 0.3);
}

.page-discovery > .discovery-editor textarea {
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
    min-height: 9em;
    font-family: var(--discovery-monospace-font-family);
    font-size: 12px;
    line-height: 18px; 
    border-color: #aaa;
    border-radius: 3px;
    box-shadow: inset 0 1px 1px rgba(142, 142, 142, .2);
    resize: vertical;
}
.page-discovery > .discovery-editor textarea:focus {
    border-color: #0af;
    box-shadow: 0 0 1px 3px rgba(0, 170, 255, .2), inset 0 1px 1px rgba(142, 142, 142, .2) !important;
    outline: 0;
}
