ul.progressbar {
    height: 75px;
    padding: 0;
    counter-reset: step;
    direction: rtl;
}

    ul.progressbar li {
        list-style-type: none;
        color: rgb(165,165,165);
        float: right;
        position: relative;
        text-align: center;
        font-size: 12px;
        z-index: 1;
    }

        ul.progressbar li:before {
            content: counter(step);
            counter-increment: step;
            color: #333;
            width: 42px;
            height: 42px;
            line-height: 42px;
            border-radius: 50%;
            display: block;
            text-align: center;
            margin: 0 auto 10px auto;
            background: rgb(216,216,216);
        }

        ul.progressbar li:after {
            content: "";
            background: #ddd;
            right: 50%;
            position: absolute;
            width: 100%;
            height: 14px;
            top: 14px;
            z-index: -1;
        }

        ul.progressbar li:last-child:after {
            content: none;
        }

        ul.progressbar li.done:before, ul.progressbar li.done:after {
            background: rgb(21,219,158);
            color: #fff;
        }

        ul.progressbar li.current:before {
            background: rgb(104, 191, 250);
            color: #fff;
        }

        ul.progressbar li.fail:before {
            background: rgb(229, 48, 40);
        }
@media print {
    ul.progressbar li:before {
        content: counter(step);
        counter-increment: step;
        color: #333 !important;
        width: 42px !important;
        height: 42px !important;
        line-height: 42px !important;
        border-radius: 50% !important;
        display: block !important;
        text-align: center !important;
        margin: 0 auto 10px auto !important;
        background: rgb(216,216,216) !important;
    }

    ul.progressbar li:after {
        content: "";
        background: #ddd !important;
        right: 50% !important;
        position: absolute !important;
        width: 100% !important;
        height: 14px !important;
        top: 14px !important;
        z-index: -1 !important;
    }

    ul.progressbar li:last-child:after {
        content: none !important;
    }

    ul.progressbar li.done:before, ul.progressbar li.done:after {
        background: rgb(21,219,158) !important;
        color: #fff !important;
    }

    ul.progressbar li.current:before {
        background: rgb(104, 191, 250) !important;
        color: #fff !important;
    }

    ul.progressbar li.fail:before {
        background: rgb(229, 48, 40) !important;
    }
}