/* Bitrix-style stage funnel on lead/deal card */
.crm-funnel {
    display: flex;
    width: 100%;
    gap: 2px;
    overflow-x: auto;
    padding: 2px 0;
}
.crm-funnel.is-busy {
    pointer-events: none;
    opacity: 0.75;
}
.crm-funnel__step {
    position: relative;
    flex: 1 1 0;
    min-width: 5.5rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem 0 1.1rem;
    margin: 0;
    border: 0;
    background: #f0f0f0;
    color: #525c69;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
    box-shadow: inset 0 -3px 0 var(--stage-color, #c6cdd3);
    transition: filter 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.crm-funnel__step:first-child {
    padding-left: 0.75rem;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}
.crm-funnel__step:last-child {
    padding-right: 0.75rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
}
.crm-funnel__step:first-child:last-child {
    clip-path: none;
    border-radius: 0.25rem;
}
.crm-funnel__step.is-done {
    background: #bdedc9;
    color: #1e7a3a;
    box-shadow: none;
}
.crm-funnel__step.is-current {
    background: #9ae6b4;
    color: #146c2e;
    box-shadow: none;
}
.crm-funnel__step.is-pending {
    background: #f0f0f0;
    color: #828b95;
}
.crm-funnel__step:hover:not(:disabled) {
    filter: brightness(0.97);
}
.crm-funnel__step:disabled {
    cursor: default;
}
.crm-funnel__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
