/* 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%;
}

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

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