/* tree */

.pith_sidebar { 
    background: #FFFFFF; 
    border: 0;
    box-sizing: border-box;
    color: #111111; 
    flex-shrink: 0;
    height: auto;
    margin: 0;
    padding: 0;
    width: 100%;
}

.pith_table ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pith_table li {
    margin: 0;
    padding: 0;
}

.pith_table summary,
.pith_table .file_row {
    border-color: #DFDFDF;
    border-style: solid;
    border-width: 1px 0 0 0;
    box-sizing: border-box;
    cursor: pointer;
    font-family: Verdana, "Bitstream Vera Sans", "DejaVu Sans", Geneva, Sans-serif;
    font-size: 14px;
    outline: none;
    padding: 8px 12px 8px calc(12px + var(--depth, 0) * 12px);
    text-decoration: none;
    width: 100%;
}

.pith_tree > li:first-child > details > summary,
.pith_tree > li:first-child > .file_row {
    border-top-width: 0;
}

.pith_table summary {
    align-items: center;
    color: #444444 !important;
    display: flex;
    font-style: italic !important;
    font-weight: normal;
}

.pith_table summary::before {
    background-image: url('../images/icons/folder.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    display: inline-block;
    flex-shrink: 0;
    height: 16px;
    margin-right: 7px;
    width: 16px;
}

.pith_table .file_row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.pith_table .file_row,
.pith_table .file_row:visited,
.pith_table .file_row:active,
.pith_table .file_row:hover {
    color: #111111;
}

.pith_table summary:hover,
.pith_table .file_row:hover {
    background-color: #EFEFEF;
}

.pith_table .active-file > .file_row {
    background-color: #EFEFEF;
}

.file_name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.file_size {
    color: #111111;
    flex-shrink: 0;
    font-size: 12px;
    min-width: 60px;
    text-align: right;
    white-space: nowrap;
}

.file_time {
    color: #999999;
    flex-shrink: 0;
    font-size: 12px;
    min-width: 90px;
    text-align: right;
    white-space: nowrap;
}

body.mobile .file_name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* copy */

.pith_code {
    border-top: 1px solid #DFDFDF;
    position: relative;
}

.copy_btn {
    background-color: rgba(223, 223, 223, 0.2);
    border-radius: 5px;
    border: 1px solid #DFDFDF;
    color: #333333;
    cursor: pointer;
    font-family: Verdana, "Bitstream Vera Sans", "DejaVu Sans", Geneva, Sans-serif;
    font-size: 12px;
    padding: 6px 16px;
    position: absolute;
    right: 32px;
    top: 20px;
    transition: background 0.2s;
    z-index: 1;
}

.copy_btn:hover {
    background-color: rgba(207, 207, 207, 0.4);
}

/* file-viewer */

.main_content { 
    background: #FFFFFF; 
    border-bottom-left-radius: 0;
    border-bottom-right-raidus: 0;
    border: 0;
    box-sizing: border-box;
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    flex: 1;
    overflow: hidden;
    width: 100%;
}

.pith_viewer { 
    background: #FFFFFF;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    height: 600px;
    overflow-x: auto;
    overflow-y: auto; 
    padding: 0;
}

.pith_viewer_inner {
    min-height: 100%;
    overflow-x: visible;
    display: inline-block;
    min-width: 100%;
}

.pith_viewer pre { 
    background: #FFFFFF;
    border-bottom-left-radius: 0;
    border-bottom-right-raidus: 0;
    border: 0;
    box-sizing: border-box;
    color: #000000;
    display: block;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; 
    font-size: 13px; 
    font-style: normal;
    height: auto;
    letter-spacing: 1px;
    line-height: 1.6; 
    margin: 0; 
    max-height: none;
    overflow: visible;
    padding: 16px; 
    white-space: pre;
    word-break: normal;
    word-wrap: normal;
}

.pith_viewer pre code.hljs {
    display: block;
    overflow-x: visible;
    padding: 1em;
}

.pith_viewer code { 
    background: transparent !important; 
    color: #24292f;
    padding: 0 !important; 
}

.pith_viewer code.hljs {
    padding: 3px 5px;
}

.image_viewport {
    align-items: center; 
    box-sizing: border-box;
    display: flex;
    height: 100%; 
    justify-content: center; 
    padding: 20px; 
}

.image_viewport img {
    max-height: 100%; 
    max-width: 100%; 
    object-fit: contain;
}

.hljs-ln {
    border-collapse: collapse;
    min-width: 100%;
    table-layout: auto;
    width: max-content;
}

.hljs-ln-numbers {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    color: #afb8c1;
    padding-right: 10px !important;
    text-align: right;
    user-select: none;
    vertical-align: top;
    width: 30px;
}

.hljs-ln-code { 
    overflow-wrap: normal;
    padding-left: 15px !important;
    white-space: pre !important;
    word-break: normal;
}

.empty_state { 
    align-items: center; 
    color: #6e7781; 
    display: flex; 
    height: 100%; 
    justify-content: center; 
}

/*  maintainer: @Hirse */

.hljs {
  color: #24292e;
  background: #ffffff;
}

.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  color: #d73a49;
}

.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  color: #6f42c1;
}

.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
  color: #005cc5;
}

.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
  color: #032f62;
}

.hljs-built_in,
.hljs-symbol {
  color: #e36209;
}

.hljs-comment,
.hljs-code,
.hljs-formula {
  color: #6a737d;
}

.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
  color: #22863a;
}

.hljs-subst {
  color: #24292e;
}

.hljs-section {
  color: #005cc5;
  font-weight: bold;
}

.hljs-bullet {
  color: #735c0f;
}

.hljs-emphasis {
  color: #24292e;
  font-style: italic;
}

.hljs-strong {
  color: #24292e;
  font-weight: bold;
}

.hljs-addition {
  background-color: #f0fff4;
  color: #22863a;
}

.hljs-deletion {
  background-color: #ffeef0;
  color: #b31d28;
}

.hljs-char.escape_,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-punctuation,
.hljs-tag {
}
