.vp-ds {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%; 
    z-index: 1200;
    background-color: rgba(0,0,0,.4);
}
.vp-ds-button {
    width: 45px;
}
.vp-ds-container {
    position: relative;
    left: 50%;
    top: 50%;
    transform:translate(-50%, -50%);
    min-width: 400px;
    min-height: 400px;
    width: 90%;
    height: 85%;
    background-color: white;
}
.vp-ds-title {
    height: 40px;
    padding: 5px 0px 5px 10px;
    background-color: #EEE;
    border:  1px solid #ddd;;
    display: flex; 
    flex-direction: row;
    position: relative;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}
.vp-ds-close {
    position: fixed;
    z-index: 3;
    right: 5px;
    width: 30px;
    height: 20px;
    line-height: 20px;
    top: 10px;
    text-align: center;
    cursor: pointer;
}
.vp-ds-body {
    width: 100%;
    height: calc(98% - 80px);
    padding: 10px;
    overflow: auto;
}
.vp-ds-body > table {
    width: 100%;
}
.vp-ds-body > table tr td {
    padding-bottom: 5px;
}

/* Code Preview */
.vp-ds-preview {
    width: 100%;
    height: 35px;
    background-image: repeating-linear-gradient( to right, var(--grid-line-color) 0, var(--grid-line-color) 0.25px, transparent 1px, transparent 5px ), repeating-linear-gradient( to bottom, var(--grid-line-color) 0, var(--grid-line-color) 0.25px, transparent 1px, transparent 5px );
    background-color: white;
    border: 0.25px solid #E4E4E4;
}
.vp-ds-preview textarea {
    display: none;
}
.vp-ds-preview .CodeMirror-code .cm-variable {
    background-color: rgba(47, 133, 90, 0.2);
}
.vp-ds-preview .CodeMirror-code .cm-string {
    background-color: rgba(246, 173, 85, 0.2);
}
.vp-ds-label {
    font-weight: bold;
    margin-left: 20px;
}
.vp-ds-pandas-object-box {
    display: inline-block;
}
.vp-vs-data-type{
    width: 116px;
}
.vp-vs-variables{
    width: 116px;
}
.vp-ds-subset-type{
    width: 236px;
}
.vp-ds-allocate-to{
    width: 236px;
}
.vp-col-list{
    width: 116px;
}
.vp-oper-list{
    width: 116px;
}
.vp-oper-connect{
    width: 100px;
}


/* Tab Selector */
.vp-ds-tab-selector-box {
    width: 100%;
    height: 25px;
    border-bottom: 0.25px solid #E4E4E4;
}
.vp-ds-tab-selector-btn {
    display: inline-block;
    width: 70px;
    height: 25px;
    line-height: 23px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}
.vp-ds-tab-selector-btn.selected {
    color: var(--font-hightlight);
    background-color: white;
    border: 0.25px solid #E4E4E4;
    border-bottom: 2px solid #FFCF73;
}

/* Tab Page */
.vp-ds-tab-page {
    width: 100%;
    height: calc(100% - 150px);
}
.vp-ds-tab-page.subset {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
    grid-auto-rows: 100%;
}
.vp-ds-tab-page.data {
    border: 0.25px solid #E4E4E4;
    border-top: 0.25px solid transparent;
}
.vp-ds-tab-page-box {
    display: grid;
    grid-template-rows: 30px calc(100% - 50px);
    grid-row-gap: 20px;
    border: 0.25px solid #E4E4E4;
    padding: 15px;
}
.vp-ds-tab-page-box.subset-row {
    border-right: 0px;
}
/* .vp-ds-tab-page-box.subset-condition {
    grid-column-start: 1;
    grid-column-end: 3;
    overflow: auto;
} */
.vp-ds-rowcol-subset-title {
    font-weight: bold;
    margin: 5px 0px 0px 5px;
}
.vp-ds-rowtype-box.condition .vp-vs-box {
    padding-bottom: 5px;
}
.vp-ds-rowtype-box.condition .vp-td-line {
    padding-bottom: 5px;
}
.vp-ds-rowtype-box.condition table td {
    padding-bottom: 20px;
}
.vp-ds-rowtype-box.condition .vp-del-col {
    float: right;
}
.vp-ds-rowtype-box.condition .vp-condition {
    width: 85px;
}
.vp-ds-rowtype-box.condition .vp-condition-use-text {
    float: right;
    margin-right: 42px;
}
.vp-ds-rowtype,
.vp-ds-coltype {
    float: right;
    width: 140px;
}

/* Select Box */
.vp-ds-select-container {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: calc(47% - 15px) 50px calc(47% - 15px);
    grid-auto-rows: 100%;
}
.vp-ds-select-search {
    width: 100%;
}
.vp-ds-select-search::after {
    content: '';
    background-image: url(../../resource/close_big.svg);
}
.vp-ds-select-box {
    width: 100%;
    height: 100%;
    border: 0.25px solid #E4E4E4;
    overflow-y: auto;
    overflow-x: hidden;
}
.vp-ds-select-box.left {
    height: calc(100% - 30px);
}
.vp-ds-select-item {
    width: 100%;
    height: 25px;
    padding: 0px 10px;
    border-bottom: 0.25px solid #E4E4E4;
    line-height: 25px;
    background-color: white;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.vp-ds-select-item:hover {
    cursor: pointer;
    background-color: #E4E4E4;
}
.vp-ds-select-item.selected {
    color:  var(--font-hightlight);
    background-color: #F5F5F5;
}
/* Item Sorting FIXME: change span to class */
.right .vp-ds-select-item span {
    padding: 0px 10px 0px 0px;
}
/* TODO: If sortable, apply this style */
/* .right .vp-ds-select-item span:hover {
    cursor: n-resize;
} */

/* Select Boxes */
.vp-ds-select-btn-box {
    margin: auto;
    display: inherit;
}
.vp-ds-select-add-btn {
    height: 24px;
    background: #FFFFFF;
    border: 0.25px solid #E4E4E4;
}
.vp-ds-select-del-btn {
    height: 24px;
    background: #FFFFFF;
    border: 0.25px solid #E4E4E4;
    margin-top: 5px;
}
.vp-ds-btn-add-condition {
    width: 95px;
    height: 30px;
    background: #FFFFFF;
    border: 0.25px solid #E4E4E4;
    box-sizing: border-box;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}
.vp-icon-btn {
    cursor: pointer;
    width: 15px;
    height: 15px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.vp-del-col {
    background-image: url(../../resource/close_big.svg);
}
.vp-ds-preview-box {
    display: none;
    width: 100%;
    height: 100px;
    position: absolute;
    bottom: 50px;
    
    background: #F7F7F7;
    border: 0.25px solid #E4E4E4;
    padding: 10px;
}

/** Buttons */
.vp-ds-btn-box {
    position: relative;
    height: 50px;
    border-top: 0.25px solid var(--border-gray-color);
}
.vp-ds-btn {
    position: absolute;
}
.vp-ds-btn-preview {
    left: 15px;
    top: 9px;
}
.vp-ds-btn-dataview {
    left: 105px;
    top: 9px;
}
.vp-ds-btn-cancel {
    top: 9px;
    right: 105px;
}
.vp-ds-btn-runadd {
    position: absolute;
    top: 9px;
    right: 15px;
    width: fit-content;
    height: 30px;
    background: #F38504;
    border-radius: 2px;
}
.vp-ds-btn-apply {
    position: absolute;
    top: 9px;
    right: 15px;
}
.vp-ds-btn-run {
    display: inline-block;
    width: 60px;
    border-radius: 2px 0px 0px 2px;
    border-right: 0.25px solid var(--border-gray-color) !important;
}
.vp-ds-btn-detail {
    display: inline-block;
    width: 20px;
    height: 28px;
    border-radius: 0px 2px 2px 0px;
    padding: 0;
}
.vp-ds-detail-box {
    display: none;
    background: white;
    border: 0.25px solid var(--border-gray-color);
    position: absolute;
    bottom: 35px;
    right: 1px;
    width: 84px;
    height: 62px;
    text-align: center;
    line-height: 30px;
}
.vp-ds-detail-item {
    color: var(--font-primary);
}
.vp-ds-detail-item:hover {
    color: var(--font-hightlight);
    background: var(--light-gray-color);
}

/* data page */
.vp-ds-data {
    display: none;
    position: absolute;
    width: 100%;
    height: 300px;
    bottom: 50px;
    background: #F7F7F7;
    border: 0.25px solid #E4E4E4;
    padding: 10px;
}
.vp-ds-data-title {
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-weight: bold;
    background: #F5F5F5;
    padding: 0px 10px;
}
.vp-ds-data-content {
    width: 100%;
    height: calc(100% - 20px);
    overflow: auto;
}
.vp-ds-data-view-all-div {
    padding: 3px;
}
.vp-ds-data-view-box {
    height: calc(100% - 30px);
    overflow: auto;
}
.vp-ds-data-view-box table {
    height: 100%;
}
.vp-ds-data-error-box {
    margin: 7px;
    padding: 10px;
    background: #FFFFFF;
    border: 0.25px solid #E4E4E4;
    box-shadow: 1px 1px 2px rgb(0 0 0 / 10%);
    border-radius: 2px;
}
.vp-ds-data-error-box i.fa-exclamation-triangle {
    color: #F37704;
}
.vp-ds-data-error-box-title {
    color: #F37704;
    font-weight: bold;
}
.vp-ds-data-error-box pre {
    background: #eeeeee;
    margin: 0px;
    padding: 7px;
}