/* THIS FILE IS COPIED FROM THE COMMON LIBRARY AS OF 2025-09-23 17:36:17 GMT. DO NOT EDIT THIS FILE. EDIT THE ORIGINAL IN THE COMMON LIBRARY INSTEAD. */
.script-editor-container {
    display: flex;
    position: relative;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    border: solid 2px gray;
    background: black;
    color: white;
    overflow: hidden;
    padding: 0;
    
    --page-width: 8.5in;
    --page-height: 11in;
    --margin: 1in;
    --header-height: 0.5in;
    --header-margin: calc(var(--margin) - var(--header-height));
    --footer-height: 0.5in;
    --footer-margin: calc(var(--margin) - var(--footer-height));
    --page-gap: 0.25in;
    
    --page-zoom: 1;
    
    --page-height-zoomed: calc(var(--page-height) * var(--page-zoom));
    --page-width-zoomed: calc(var(--page-width) * var(--page-zoom));
    --margin-zoomed: calc(var(--margin) * var(--page-zoom));
    --header-height-zoomed: calc(var(--header-height) * var(--page-zoom));
    --header-margin-zoomed: calc(var(--header-margin) * var(--page-zoom));
    --footer-height-zoomed: calc(var(--footer-height) * var(--page-zoom));
    --footer-margin-zoomed: calc(var(--footer-margin) * var(--page-zoom));
    --page-gap-zoomed: calc(var(--page-gap) * var(--page-zoom));
    
}
.script-editor-container > * {
    margin: 0;
    
}
.script-editor-container .buttons {
    min-width: 40px;
    z-index: 1;
    padding: 4px;
}

.script-editor-container .options {
    min-width: 100px;
    width: 200px;
    overflow: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    line-height: 1;
    padding: 4px;
}
.script-editor-container .options ~ .options {
    margin-top: 4px;
}
.script-editor-container .options .options-scripts {
    flex-grow: 1;
    min-height: 0;
    overflow: auto;
    padding: 0 0 0 4px;
    min-height: 2em;
}
.script-editor-container .options .options-script {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    user-select: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 8px;
    padding: 2px 4px 2px 4px;
}
.script-editor-container .options .options-script ~ .options-script{
    margin-top: 2px;
}
.script-editor-container .options .options-script:is(:hover, .selected) {
    background: var(--primary-color);
}

.script-editor-container .spacer {
    width: 2px;
    background: gray;
}
.script-editor-container .spacer.resize-handle {
    cursor: ew-resize;
    width: 4px;
    z-index: 2;
}

.script-editor-container .editor {
    flex: 1;
    overflow: auto;
    min-width: 300px;
    z-index: 1;
    padding: 4px;
}
.script-editor-container .editor page-ajax {
    height: 100%;
    display: block;
}
.script-editor-container .editor .script-editor-script {
    height: 100%;
    display: block;
    display: flex;
    flex-direction: column;
}
.script-editor-container .editor .script-editor-controls {
    text-align: center;
    font-size: 1.5em;
}
.script-editor-container .editor .script-editor-controls .button:hover {
    color: white;
}

.script-editor-container .editor .script-editor-pages {
    text-align: center;
    flex-grow: 1;
    min-height: 0;
}
.script-editor-container .editor .script-editor-pages-layout {
    margin: 0 auto;
    background: inherit;
    overflow: auto;
    height: 100%;
    width: fit-content;
    max-width: 100%;
}
.script-editor-container .editor .script-editor-page {
    position: relative;
    background: white;
    color: black;
    margin: var(--page-gap-zoomed);
    width: var(--page-width-zoomed);
    height: var(--page-height-zoomed);
}
.script-editor-container .editor .script-editor-page-scaled {
    position: relative;
    transform-origin: 0 0;
    transform: scale(var(--page-zoom));
    
    width: var(--page-width);
    height: var(--page-height);
    overflow: auto;
}
.script-editor-container .editor .script-editor-page-scaled > * {
    position: relative;
    display: block;
    left: var(--margin);
    width: calc(var(--page-width) - 2 * var(--margin));
    margin: 0;
    box-sizing: border-box;
}
.script-editor-container .editor .script-editor-page-header {
    top: var(--header-margin);
    height: var(--header-height);
    display: flex;
    align-items: flex-start;
    z-index: 1;
    background: blue;
}
.script-editor-container .editor .script-editor-page-body {
    margin-top: var(--header-margin);
    min-height: calc(var(--page-height) - 2 * var(--margin));
    z-index: 2;
    background: green;
}
.script-editor-container .editor .script-editor-page-footer {
    _margin-top: var(--header-margin);
    _bottom: var(--footer-margin);
    height: var(--footer-height);
    display: flex;
    align-items: flex-end;
    z-index: 1;
    background: purple;
}

.script-editor-container .script-editor-element {
    _overflow: auto;
    box-sizing: border-box;
    position: relative;
    margin: 0;
}
.script-editor-container .script-editor-element .handle {
    position: absolute;
    font-size: 1.2em;
    right: calc(100% + 2px);
    top: 2px;
    opacity: 0;
    visibility: hidden;
    user-select: none;
    cursor: grab;
    color: gray;
    transition: 0.3s;
}
.script-editor-container .script-editor-element.focused .handle {
    opacity: 1;
    visibility: visible;
    color: var(--primary-color);
}
.script-editor-container .script-editor-element .content {
    position: relative;
    
}
.script-editor-container .script-editor-element.focused {
    background-color: yellow;
    z-index: 3;
}
.script-editor-container .script-editor-element .content > div {
    margin: 0;
}
.script-editor-container .script-editor-element .content > div ~ div {
    margin-top: 0.1in;
}