/* Raw | Tree/Table tabs on the file page. Light, because the raw <pre> beside them is light. */

.structured-file-tabs {
    align-items: center;
    border-bottom: 1px solid #d0d7de;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 10px 0 0;
    padding-bottom: 0;
}

.structured-file-tab {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    color: #3d3d3d;
    font-size: 14px;
    line-height: 1.4;
    padding: 6px 14px;
    text-decoration: none;
}

a.structured-file-tab:hover,
a.structured-file-tab:focus {
    text-decoration: none;
}

.structured-file-tab:hover:not([disabled]) {
    background: #f2f5f8;
}

.structured-file-tab[disabled] {
    color: #98a2ae;
    cursor: default;
}

.structured-file-tab-active {
    border-bottom-color: #337ab7;
    color: #1b4f7e;
    font-weight: 600;
}

.structured-file-tab:focus-visible {
    outline: 2px solid #337ab7;
    outline-offset: -2px;
}

.structured-file-status {
    color: #57606a;
    font-size: 13px;
    margin-left: auto;
    padding: 0 4px;
}

.structured-file-pane[hidden],
#structuredRawPane[hidden] {
    display: none;
}

.structured-file-pane {
    border: 1px solid #d0d7de;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    margin-bottom: 12px;
}

.structured-file-toolbar {
    align-items: center;
    background: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px 8px;
}

.structured-file-search-label {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.structured-file-search {
    border: 1px solid #b8c1ce;
    border-radius: 3px;
    font-size: 13px;
    min-width: 140px;
    padding: 3px 7px;
}

.structured-file-matches {
    color: #57606a;
    font-size: 12px;
    min-width: 68px;
}

.structured-file-button {
    background: #fff;
    border: 1px solid #b8c1ce;
    border-radius: 3px;
    color: #24292f;
    font-size: 12px;
    padding: 3px 9px;
}

.structured-file-button:hover:not([disabled]) {
    background: #f2f5f8;
}

.structured-file-button[disabled] {
    color: #98a2ae;
    cursor: default;
}

.structured-file-toolbar-gap {
    flex: 1 1 auto;
}

.structured-file-body {
    font-family: Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12.5px;
    line-height: 1.55;
    /* Wide trees and tables scroll inside the pane; the page itself never scrolls sideways. */
    max-height: 72vh;
    overflow: auto;
    padding: 4px 0;
}

.structured-file-row {
    align-items: baseline;
    cursor: default;
    display: flex;
    gap: 6px;
    padding: 1px 8px 1px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.structured-file-row:hover {
    background: #f6f8fa;
}

.structured-file-selected {
    background: #ddeaf6;
}

.structured-file-match {
    background: #fff3c4;
}

.structured-file-toggle {
    background: transparent;
    border: 0;
    color: #57606a;
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    padding: 2px 3px;
    width: 18px;
}

.structured-file-toggle-spacer {
    flex: 0 0 auto;
    width: 18px;
}

.structured-file-key {
    color: #0b5394;
    flex: 0 0 auto;
    font-weight: 600;
}

.structured-file-type {
    color: #8a94a1;
    flex: 0 0 auto;
    font-size: 11.5px;
}

.structured-file-value-wrap,
.structured-file-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.structured-file-value-string,
.structured-file-value-text,
.structured-file-value-cdata,
.structured-file-value-attribute {
    color: #0a7c42;
}

.structured-file-value-number {
    color: #b1560f;
}

.structured-file-value-boolean,
.structured-file-value-null {
    color: #8250df;
}

.structured-file-value-comment,
.structured-file-value-pi {
    color: #8a94a1;
    font-style: italic;
}

.structured-file-more {
    background: transparent;
    border: 0;
    color: #0969da;
    font-size: 12px;
    padding: 1px 6px;
    text-align: left;
}

.structured-file-more[hidden] {
    display: none;
}

.structured-file-group[hidden] {
    display: none;
}

.structured-file-table-wrap {
    overflow-x: auto;
}

.structured-file-table {
    border-collapse: collapse;
    width: 100%;
}

.structured-file-table th,
.structured-file-table td {
    border-bottom: 1px solid #eaeef2;
    padding: 3px 10px;
    text-align: left;
    vertical-align: top;
    white-space: pre-wrap;
}

.structured-file-table th {
    background: #f6f8fa;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.structured-file-table tr:hover td {
    background: #f6f8fa;
}

.structured-file-rownum {
    color: #8a94a1;
    text-align: right;
    user-select: none;
    width: 1%;
}

.structured-file-reference {
    border: 0;
    background: transparent;
    color: #1769aa;
    padding: 0 4px;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.structured-file-reference-detail:not(:empty) {
    border: 1px solid #b8d5ed;
    background: #f6faff;
    margin: 12px 0;
    padding: 8px;
}

.structured-file-graph-note {
    white-space: normal;
    font-family: sans-serif;
}

.structured-file-original { display: inline-block; margin-bottom: 12px; }

@media (max-width: 600px) {
    .structured-file-body {
        font-size: 12px;
        max-height: 60vh;
    }

    .structured-file-search {
        min-width: 100px;
    }
}

/* Code follows the browser page, while Tree keeps its own viewport of visible rows. */
/* CodeMirror virtualizes code and wraps long values without an embedded scroll box. */
.json-code-pane, .json-tree-pane, .json-inspection-pane { min-width: 0; background: #fff; }
.json-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; background: #f6f8fa; border-bottom: 1px solid #d0d7de; font: 13px/1.5 system-ui, sans-serif; }
.json-document-size { margin-left: auto; color: #57606a; }
.json-notice { padding: 8px 12px; color: #57606a; font: 13px/1.5 system-ui, sans-serif; }
.json-notice:empty, .json-toolbar:empty, .json-value-detail:empty, .json-search-results:empty { display: none; }
.json-code-editor { min-width: 0; }
.json-code-editor .cm-editor { text-align: left; }
.json-code-editor .cm-search { font-family: system-ui, sans-serif; }
.json-search { width: 260px; max-width: 100%; padding: 5px 8px; border: 1px solid #b6c2cf; border-radius: 3px; }
.json-selected-path { max-width: 100%; overflow-wrap: anywhere; color: #57606a; }
.json-tree-viewport { position: relative; height: 65vh; min-height: 320px; max-height: 850px; overflow: auto; font: 13px/28px ui-monospace, SFMono-Regular, Consolas, monospace; }
.json-tree-rows { position: relative; min-width: 100%; }
.json-tree-row { position: absolute; left: 0; right: 0; height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.json-tree-row[aria-selected="true"] { background: #ddf4ff; }
.json-tree-row:focus { outline: 2px solid #0969da; outline-offset: -2px; }
.json-tree-toggle { display: inline-block; width: 22px; height: 26px; padding: 0; margin: 0; border: 0; background: none; color: #57606a; }
.json-tree-toggle:disabled { visibility: hidden; }
.json-tree-key { color: #0550ae; }
.json-tree-index { display: inline-block; min-width: 4ch; padding-right: 12px; color: #8c959f; font-size: 11px; }
.json-type-string { color: #0a3069; }
.json-type-number, .json-type-boolean, .json-type-null { color: #953800; }
.json-tree-count { color: #6e7781; font-size: 12px; }
.json-tree-loading { margin-left: 8px; color: #57606a; font-style: italic; }
.json-tree-loading:empty { display: none; }
.json-tree-page { display: flex; align-items: center; gap: 8px; color: #57606a; font: 12px/26px system-ui, sans-serif; }
.json-tree-page .structured-file-button { padding: 1px 6px; font-size: 12px; }
.json-value-detail { border-top: 1px solid #d0d7de; }
.json-value-detail pre { max-height: 220px; overflow: auto; margin: 0; border: 0; border-radius: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.json-search-results { padding: 8px 12px; border-bottom: 1px solid #d0d7de; font: 13px/1.5 system-ui, sans-serif; }
.json-search-list { max-height: 220px; overflow: auto; }
.json-search-hit { display: block; width: 100%; border: 0; background: none; color: #0969da; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 12px/26px ui-monospace, monospace; }
.json-inspection-facts { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 8px 24px; padding: 16px; margin: 0; font: 14px/1.6 system-ui, sans-serif; }
.json-inspection-facts dt, .json-inspection-facts dd { margin: 0; overflow-wrap: anywhere; }
.json-object-id { width: 120px; }
@media (max-width: 600px) { .json-document-size { width: 100%; margin-left: 0; } .json-toolbar { gap: 6px; } .json-tree-row { font-size: 12px; } .json-tree-page { gap: 4px; } }
