﻿:root {
    --color-white: #fff;
    --color-black: #333;
    --color-gray: #75787b;
    --color-gray-light: #bbb;
    --color-gray-disabled: #d5d5d5;
    --color-blue: #24419e;
    --color-blue-dark: #383;
    --font-size-small: 2rem;
    --font-size-default: 1rem;
    --color-green: #64B857;
}

.ui-progress {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    margin-right: 2rem;
}

    .ui-progress li {
        flex: 2;
        position: relative;
        font-size: 12px;
        line-height: 1.5;
        color: transparent;
        font-weight: 500;
        white-space: nowrap;
        overflow: visible;
        min-width: 0;
        text-align: center;
        margin: 5px;
    }

        /*.ui-progress li:first-child,
.ui-progress li:last-child {
    flex: 1;
}
*/
        .ui-progress li:last-child {
            text-align: right;
        }

        .ui-progress li:before {
            content: "";
            display: block;
            width: 100%;
            background-color: var(--color-gray-disabled);
            border: 3px solid var(--color-gray-disabled);
            position: absolute;
            bottom: -20px;
            z-index: 3;
            transition: all 0.2s ease-in-out;
            border-radius: 5px;
        }

        .ui-progress li:first-child:before {
            left: 0;
        }

        .ui-progress li:last-child:before {
            right: 0;
            left: auto;
        }

    .ui-progress span {
        transition: opacity 0.3s ease-in-out;
    }

    .ui-progress li:not(.is-active) span {
        opacity: 0;
    }

    /*.ui-progress .is-complete:after,
    .ui-progress .is-active:after {
        content: "";
        display: block;
        width: 100%;
        position: absolute;
        bottom: -5px;*/
    /*left: -50%;*/
    /*z-index: 2;
        border-bottom: 6px solid var(--color-green);
        border-radius: 5px;

    }*/

    .ui-progress li:last-child span {
        width: 200%;
        display: inline-block;
        position: absolute;
        left: -100%;
    }

    /*.ui-progress .is-complete:last-child:after,
.ui-progress .is-active:last-child:after {
    width: 200%;
    left: -100%;
}*/

    .ui-progress .is-complete:before {
        background-color: var(--color-green);
        border-color: var(--color-green);
    }

    .ui-progress .is-active:before,
    .ui-progress li:hover:before,
    .ui-progress .is-hovered:before {
        background-color: var(--color-white);
        border-color: var(--color-green);
    }

    .ui-progress li:hover:before,
    .ui-progress .is-hovered:before {
        transform: scale(1.1);
    }

    .ui-progress li:hover span,
    .ui-progress li.is-hovered span {
        opacity: 1;
    }

    .ui-progress:hover li:not(:hover) span {
        opacity: 0;
    }

    .ui-progress .has-changes {
        opacity: 1 !important;
    }

        .ui-progress .has-changes:before {
            content: "";
            display: block;
            width: 8px;
            height: 8px;
            position: absolute;
            left: calc(50% - 4px);
            bottom: -20px;
            background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%208%208%22%3E%3Cpath%20fill%3D%22%23ed1c24%22%20d%3D%22M4%200l4%208H0z%22%2F%3E%3C%2Fsvg%3E");
        }
