div.text-screen {
    display: none;
    margin-right: 20px;
}

div.text-toolbar {
    display: none;
}

div.text-panes-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
}

div.text-open-files-pane,
div.text-folder-view-pane {
    background-color: ghostwhite;
    border: 2px solid #111111;
    border-radius: 4px;
}

div.text-open-files-pane {
    width: 25%;
    padding: 8px;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

div.text-open-files-pane::-webkit-scrollbar {
    display: none;
}

div.text-folder-view-pane {
    width: 75%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

div.text-folder-view-pane.split-half {
    width: auto;
    flex: 1 1 0;
}

div.text-editor-pane {
    background-color: ghostwhite;
    border: 2px solid #111111;
    border-radius: 4px;
    box-sizing: border-box;
    width: 75%;
    min-width: 0;
    flex-direction: column;
}

div.text-editor-pane.split-half {
    width: auto;
    flex: 1 1 0;
}

div.text-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 2px solid navy;
}

span.text-editor-path {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Open Sans", "IBM Plex Sans", sans-serif;
    font-weight: bold;
    color: navy;
    font-size: 1.35em;
    padding-left: 8px;
}

span.path-separator {
    color: #888;
}

span.text-editor-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

textarea.text-editor-textarea {
    flex: 1;
    box-sizing: border-box;
    overflow-y: auto;
    resize: none;
    border: none;
    outline: none;
    padding: 8px 12px;
    background: none;
    color: black;
    font-family: "Open Sans", "IBM Plex Sans", sans-serif;
    font-size: 1em;
    margin-left: 4px;
}

div.text-folder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 2px solid navy;
}

span.text-folder-path {
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Open Sans", "IBM Plex Sans", sans-serif;
    font-weight: bold;
    color: navy;
    font-size: 1.35em;
}

div.text-folder-body {
    flex: 1;
    overflow-y: auto;
}

button.text-folder-entry {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: 6px 12px;
    border: none;
    background: none;
    color: black;
    font-family: "Open Sans", "IBM Plex Sans", sans-serif;
}

@media(hover: hover) and (pointer: fine) {
    button.text-folder-entry:hover {
        background-color: gainsboro;
    }
}

button.text-folder-entry-folder {
    font-weight: bold;
}

div.text-folder-menu {
    position: fixed;
    right: auto;
    visibility: visible;
    font-family: "Open Sans", "IBM Plex Sans", sans-serif;
    font-weight: bold;
    font-size: small;
}

button.text-folder-entry.selected {
    background-color: gold;
}

div.text-open-file-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    margin-bottom: 5px;
}

button.text-open-file-name {
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 4px;
    outline: none;
    font-weight: bold;
    border: 1px solid darkgray;
    background: none;
    color: black;
    font-family: "Open Sans", "IBM Plex Sans", sans-serif;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

@media(hover: hover) and (pointer: fine) {
    button.text-open-file-name:hover {
        background-color: gainsboro;
    }
}

button.text-open-file-name.active {
    background-color: gold;
}

button.text-open-file-close,
button.text-open-file-split {
    flex: 0 0 auto;
}

div.text-open-files-empty {
    color: #666;
    text-align: center;
    margin: 8px;
    font-family: "Open Sans", "IBM Plex Sans", sans-serif;
    font-size: 0.9em;
}
