/* udf editor - CodeMirror */
#vp-wrapper .vp-udf-page  .CodeMirror { border: 1px solid silver; }
#vp-wrapper .vp-udf-page  .CodeMirror-empty { outline: 1px solid #c22; }
#vp-wrapper .vp-udf-page  .CodeMirror-empty.CodeMirror-focused { outline: none; }
#vp-wrapper .vp-udf-page  .CodeMirror pre.CodeMirror-placeholder { color: #999; }

#vp-wrapper .vp-udf-page  .CodeMirror-scroll { min-height: 80px; max-height: 250px;}

/* udf option header */
.vp-option-header {
    padding-bottom: 3px;
}
.vp-option-header label {
    width: 73px;
}
.vp-option-header input {
    width: calc(100% - 160px);
}
.vp-option-header button {
    width: 70px;
}

/* udf list table */
#vp_udfList tr:not(:first-child):hover,
#vp_udfList tr.selected {
    color:  var(--font-hightlight);
    background-color: #F5F5F5;
}
#vp_udfList .vp-udf-check:checked + span {
    color:  var(--font-hightlight);
}
.vp-udf-key {
    cursor: pointer;
}
.vp-udf-key.selected {
    color:  var(--font-hightlight);
}
.vp-udf-key span {
    text-overflow: ellipsis;
    width: 100%;
    overflow: hidden;
}

/* code td 긴 문자열 생략 */
.vp-udf-code,
.vp-udf-code pre {
    text-overflow: ellipsis; 
    overflow: hidden;
    white-space: nowrap;
    max-width: 250px;
    margin: 0px;
    padding: 0px;

    background: #ffffff00;
    border: 0px;
}

/* 새로고침 버튼 */
#vp_udfRefresh {
    padding: 5px;
}
#vp_udfRefresh:hover {
    cursor: pointer;
}

/* 삭제 버튼 */
.vp-del-col {
    background-image: url(../../resource/close_big.svg);
    cursor: pointer;
    width: 15px;
    height: 15px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* 버튼 */
.vp-btn {
    background: #F5F5F5;
    border: 0.25px solid #C4C4C4;
    box-sizing: border-box;
    border-radius: 2px;
    height: 24px;
    width: 70px;
    min-width: fit-content;
}
.vp-option-btn-box {
    height: 30px;
    padding: 5px 0px 5px 0px;
}
.vp-create-btn {
    float: left;
}
.vp-delete-btn {
    float: right;
}

/* code block add popup menu */
.vp-cm-popup {
    display:none;
    position: absolute;
    background-color: #8b8b8b;
    box-shadow: 1px 1px 3px 0px grey;
    z-index: 999;
}
.vp-cm-popup-menu {
    min-height: 20px;
    cursor: pointer;
}


/** new */
.vp-sn-body {
    padding: 10px;
}
.vp-sn-header {
    height: 30px;
}
.vp-sn-header label {
    font-weight: bold;
    font-size: 13px;
    line-height: 16px;
}
.vp-sn-menu {
    float: right;
    cursor: pointer;
}
.vp-sn-menu-box {
    display: none;
    position: absolute;
    top: 0px;
    right: 40px;
    width: 70px;
    height: 50px;
    border: 0.25px solid var(--border-gray-color);
    background: #FFFFFF;
}
.vp-sn-menu-item {
    height: 25px;
    line-height: 25px;
    padding: 0px 5px;
    cursor: pointer;
}

.vp-sn-search-box {

}
.vp-sn-search {
    width: 100%;
    height: 30px;
}
.vp-sn-search-box i {
    position: absolute;
    color: #C4C4C4;
    right: 20px;
    padding-top: 8px;
}
.vp-sn-func-box {
    height: 50px;
    padding: 10px 0px;
}
.vp-sn-func-left {
    float: left;
}
.vp-sn-func-right {
    float: right;
}
.vp-sn-filter {
    cursor: pointer;
}
.vp-sn-filter-menu-box {
    display: none;
    position: absolute;
    width: 80px;
    height: 50px;
    border: 0.25px solid var(--border-gray-color);
    background: #FFFFFF;
}
.vp-sn-filter-menu-item {
    height: 25px;
    line-height: 25px;
    padding: 0px 5px;
    cursor: pointer;
}

.vp-sn-func-export-mode {
    display: none;
}

.vp-sn-item-check {
    display: none;
    float: right;
    margin: 7px 7px !important;
}

/* export mode */
.vp-sn-export-mode .vp-sn-menu {
    display: none;
}
.vp-sn-export-mode .vp-sn-func-export-mode {
    display: block;
}
.vp-sn-export-mode .vp-sn-func-default-mode {
    display: none;
}
.vp-sn-export-mode .vp-sn-item-menu {
    display: none;
}
#vp-wrapper .vp-sn-export-mode input.vp-sn-checkbox {
    display: inline-block;
    position: relative !important;
    width: 13px;
    height: 13px;
    border: 1px solid #828282;
    margin: 0px 15px;
}


/* if snippets list empty */
.vp-sn-table:empty::after {
    content: '(No saved snippets)';
    color: #C4C4C4;
}
.vp-sn-item {
    min-height: 30px;
}
.vp-sn-item.selected {
    background: #F5F5F5;
}
.vp-sn-item-header {
    height: 30px;
    line-height: 30px;
    padding: 0px 7px;
    border: 0.25px solid var(--border-gray-color);
    box-sizing: border-box;
}
.vp-sn-item-header .vp-sn-indicator {
    display: inline-block;
    cursor: pointer;
    background-image: url(../../resource/chevron_big_right.svg);
    background-size: contain;
    background-repeat: no-repeat;
    width: 10px;
    height: 10px;
}
.vp-sn-item-header .vp-sn-indicator.open {
    background-image: url(../../resource/chevron_big_down.svg) !important;
}
.vp-sn-item-title {
    width: calc(100% - 80px);
    outline: none;
    border: 0.5px solid white !important;
}
.vp-sn-item.selected .vp-sn-item-title {
    background: #F5F5F5;
    color: var(--font-hightlight);
}
.vp-sn-item-title:focus {
    transition: 0.7s;
    border: 1px solid #FFCF73;
    border: 0.5px solid var(--hightlight-color) !important;
}
.vp-sn-imported-item {
    color: var(--hightlight-color);
}
.vp-sn-item-menu {
    float: right;
}
.vp-sn-item-menu-item {
    display: inline-block;
    cursor: pointer;
}
.vp-sn-item-code {
    display: none;
    border: 0.25px solid var(--border-gray-color);
}