﻿
.stage-pipeline-section {
    position: relative;
    display: flex;
    align-items: center;
}

.pipeline-right-gradient, .pipeline-left-gradient {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none; /* so that elements behind this div can be clicked or hovered etc. */
}
.pipeline-right-gradient {
    right: 0px;
    background: linear-gradient(270deg, var(--white) 0%, rgba(var(--rgb-white), 0) 96.95%);
}
.pipeline-left-gradient {
    background: linear-gradient(90deg, var(--white) 0%, rgba(var(--rgb-white), 0) 96.95%);
}

.bgc-blush .pipeline-right-gradient {
    background: linear-gradient(270deg, var(--whispering-blush) 0%, rgba(var(--rgb-whispering-blush), 0) 96.95%);
}
.bgc-blush .pipeline-left-gradient {
    background: linear-gradient(90deg, var(--whispering-blush) 0%, rgba(var(--rgb-whispering-blush), 0) 96.95%);
}

.bgc-grey-light .pipeline-right-gradient {
    background: linear-gradient(270deg, var(--grey-light) 0%, rgba(var(--rgb-grey-light), 0) 96.95%);
}
.bgc-grey-light .pipeline-left-gradient {
    background: linear-gradient(90deg, var(--grey-light) 0%, rgba(var(--rgb-grey-light), 0) 96.95%);
}

.bgc-cotton-ball .pipeline-right-gradient {
    background: linear-gradient(270deg, var(--cotton-ball) 0%, rgba(var(--rgb-cotton-ball), 0) 96.95%);
}
.bgc-cotton-ball .pipeline-left-gradient {
    background: linear-gradient(90deg, var(--cotton-ball) 0%, rgba(var(--rgb-cotton-ball), 0) 96.95%);
}

.pipeline-right-arrow, .pipeline-left-arrow {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    margin-top: 18px;
    pointer-events: auto; /* so that arrow button works even when it's parent div has pointer-events:none */
}
.pipeline-right-arrow {
    margin-right: 8px;
    margin-left: auto;
}
.pipeline-left-arrow {
    margin-left: 8px;
    margin-right: auto;
}

.pipeline-container {
    overflow: auto;
    width: 100%;
}
.pipeline-container::-webkit-scrollbar {
    display: none; /* Hide the scrollbar in WebKit browsers (Chrome, Safari, etc.) */
}

.stage-pipeline {
    display: flex;
    align-items: flex-start;
}
.stage-pipeline > .pipeline-item {
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: stretch;
}
.stage-pipeline > .pipeline-item:not(:last-of-type) {
    border-right: 0.5px solid var(--border-light);
}

.pipeline-item-title {
    color: var(--subdued);
    /*body-sm*/
    font-size: 12px;
    line-height: 16px;
    font-weight: var(--font-weight-light);
}
.pipeline-item-count {
    /*heading-md*/
    font-size: 16px;
    line-height: 24px;
    font-weight: var(--font-weight-semibold);
}
.pipeline-item-tag {
    color: var(--crimson-blaze);
    /*body-tag*/
    font-size: 11px;
    line-height: 16px;
    font-weight: var(--font-weight-regular);
}

/*large pipeline*/
.pipeline-lg.stage-pipeline-section {
    height: 92px;
}
.pipeline-lg .pipeline-right-gradient, .pipeline-lg .pipeline-left-gradient {
    width: 96px;
    height: 92px;
}
.pipeline-lg .pipeline-right-arrow, .pipeline-lg .pipeline-left-arrow {
    margin-top: 32px;
}

.pipeline-lg .stage-pipeline > .pipeline-item {
    width: 126px;
}
.pipeline-lg .pipeline-item-title {
    /*body-md*/
    font-size: 14px;
    line-height: 20px;
}
.pipeline-lg .pipeline-item-count {
    /*heading-lg*/
    font-size: 20px;
    line-height: 30px;
}
.pipeline-lg .pipeline-item-tag {
    /*body-sm*/
    font-size: 12px;
    line-height: 16px;
}

/*tabs pipeline*/
.pipeline-tabs .pipeline-right-arrow, .pipeline-tabs .pipeline-left-arrow {
    width: 20px;
    height: 20px;
}
.pipeline-tabs .pipeline-right-arrow {
    margin-right: 16px;
    margin-left: auto;
}
.pipeline-tabs .pipeline-left-arrow {
    margin-left: 16px;
    margin-right: auto;
}

.pipeline-tabs .pipeline-tabs-container {
    height: 72px;
    padding: 8px;
    border-bottom: 0.5px solid var(--border-medium);
}
.pipeline-tabs .stage-pipeline {
    width: 1458px;
    padding: 8px 0px;
    gap: 8px;
}

.pipeline-tab {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: var(--border-radius-default);
    flex: 1 0 0;
    cursor: pointer;
    color: var(--subdued);
    height: 40px;
    text-wrap: nowrap;
}
.pipeline-tab:hover {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.08) 100%), var(--white);
}
.pipeline-tab.active {
    background: var(--whispering-blush);
    color: var(--black);
}