﻿/* LEFT: TEMPLATES */
.templates-panel {
    width: 340px;
    background: #fff;
    border-right: 1px solid #dee2e6;
    padding: 1.25rem;
}

    .templates-panel h5 {
        font-weight: 600;
        margin-bottom: 1rem;
    }

/* TEMPLATE LIST */
/* TEMPLATE LIST WRAPPER */
.template-list {
    padding: 0;
    margin: 0;
    height:83vh;
    overflow-y:auto;
}

.inner-wrapper{
    overflow:unset;
}
/* TEMPLATE ROW */
.template-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

    .template-item:last-child {
        border-bottom: none;
    }

/* TEMPLATE HEADER */
.template-header {
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    display: flex;
    align-items: center;
}

/* VARIANT LIST */
.variant-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;

}

/* VARIANT ITEM */
.variant-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: #0088CC;

}

    /* ICON */
    .variant-item i {
        font-size: 0.45rem;
        color: #adb5bd;
    }

    /* HOVER – no background, just emphasis */
    .variant-item:hover {
        color: dodgerblue;
    }

    /* ACTIVE STATE */
    .variant-item.active {
        color: #0d6efd;
        font-weight: 600;
    }

        .variant-item.active i {
            color: #0d6efd;
        }

    .variant-item span {
        cursor: pointer;
    }


/* RIGHT: JOBS */
/* RIGHT JOBS PANEL */



.jobs-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 60vh;
    height: 89vh;
    background: lightgray;
    color: black;
    border-left: 1px solid #ccc;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    font-size: 1.0rem;
}

.job-downlaod {
    color: black;
}

.jobs-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.job-card {
    background: #f5f5f5;
    border-radius: 6px;
    padding: .75rem;
    border: 1px solid #e0e0e0;
    font-size: .85rem;
    color: #222;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.job-id {
    color: black;
}

.job-status {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
}

.job-meta {
    margin-top: .25rem;
    color: #666;
    font-size: .75rem;
}

.job-actions {
    margin-top: .5rem;
}

.job-queued .job-status {
    color: #888;
}

.job-running .job-status {
    color: #0dcaf0;
}

.job-completed .job-status {
    color: #198754;
}

.job-failed .job-status {
    color: #dc3545;
}

.jobs-empty {
    padding: 1rem;
    text-align: center;
    opacity: .7;
    color: #666;
}

.jobs-condition {
    color: black;
}

.job-params-list {
    font-size: 0.80rem;
    line-height: 1.4;
    color:black;
}

.section {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    background: #fff;
    max-height: 570px;
    height: fit-content;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #495057;
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
    font-family: sans-serif;
}

hr {
    margin: 15px;
}

/* Dynamic filter blocks */
.filter-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.data-source-filter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

    .data-source-filter label {
        margin: 0;
        font-weight: 500;
        white-space: nowrap;
    }

    .data-source-filter select {
        min-width: 240px;
    }

.fetchDatabtn {
    cursor: pointer;
    font-size: 18px;
    color: #555;
}

    .fetchDatabtn:hover {
        color: #000;
    }

.nice-select {
    width: 200px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background-color: #f1f3f5;
    border: 1px solid #dee2e6;
    color: #343a40;
    font-size: 0.85rem;
    line-height: 1;
    cursor: default;
}

    .filter-chip:hover {
        background-color: #e9ecef;
    }

    .filter-chip .chip-remove {
        font-size: 0.75rem;
        color: #868e96;
        cursor: pointer;
    }

        .filter-chip .chip-remove:hover {
            color: #dc3545;
        }

.selected-values {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-top: 0px;
}

.filter-section {
    overflow-y: scroll;
}


#dataSourceLoader {
    display: none;
}

.pivot-select{
    width: 140px !important;
}

.fa-arrow-rotate-right {
    cursor: pointer;
}