.breadcrumb {
    width: 100%;
    overflow: hidden;
    counter-reset: flag;
    background: #e7e7e7;
    display: inline-block;
}

    .breadcrumb a {
        text-decoration: none;
        outline: none;
        display: block;
        float: left;
        font-size: 12px;
        line-height: 36px;
        color: white;
        padding: 0 10px 0 30px;
        background: #666;
        background: linear-gradient(#666, #333);
        position: relative;
    }

        .breadcrumb a:first-child {
            padding-left: 20px;
        }

            .breadcrumb a:first-child:before {
                left: 14px;
            }

        .breadcrumb a:last-child {
            padding-right: 20px;
        }

        /*hover/active styles*/
        /*.breadcrumb a.active,
        .breadcrumb a:hover {
            background: #333;
            background: linear-gradient(#333, #000);
        }

            .breadcrumb a.active:after,
            .breadcrumb a:hover:after {
                background: #333;
                background: linear-gradient(135deg, #333, #000);
            }*/

        /*adding the arrows for the breadcrumbs using rotated pseudo elements*/
        .breadcrumb a:after {
            content: "";
            position: absolute;
            top: 0;
            right: -18px; /*half of square's length*/
            /*same dimension as the line-height of .breadcrumb a */
            width: 36px;
            height: 36px;
            /*
            as you see the rotated square takes a larger height. 
            which makes it tough to position it properly. 
            So we are going to scale it down so that the diagonals 
            become equal to the line-height of the link.
            We scale it to 70.7% because if square's: 
	        length = 1; diagonal = (1^2 + 1^2)^0.5 = 1.414 (pythagoras theorem)
	        if diagonal required = 1; length = 1/1.414 = 0.707
            */
            transform: scale(0.707) rotate(45deg);
            /*we need to prevent the arrows from getting buried under the next link*/
            z-index: 1;
            /*stylish arrow design using box shadow*/
            box-shadow: 2px -2px 0 1px rgb(255, 255, 255), 3px -3px 0 2px rgba(255, 255, 255, 0.1);
            /*
		    5px - for rounded arrows and 
		    50px - to prevent hover glitches on the border created using shadows*/
            border-radius: 0 5px 0 50px;
        }
        /*we dont need an arrow after the last link*/
        .breadcrumb a:last-child:after {
            content: none;
        }
        /*we will use the :before element to show numbers*/
        .breadcrumb a:before {
            counter-increment: flag;
            border-radius: 100%;
            width: 20px;
            height: 20px;
            line-height: 20px;
            margin: 8px 0;
            position: absolute;
            top: 0;
            left: 30px;
            background: #444;
            background: linear-gradient(#444, #222);
            font-weight: bold;
        }

.flat a,
.flat a:after {
    color: #444444;
    background: #e7e7e7;
    transition: all 0.5s;
}

    .flat a:before {
        background: white;
        box-shadow: 0 0 0 1px #ccc;
    }

    .flat a.active,
    .flat a.active:after {
        background: #cccccc;
        margin-left: 1px;
    }

    .flat a.start,
    .flat a.start:after {
        background: #808080;
        color: #FFFFFF !important;
        margin-left: 1px;
    }

    .flat a.pending,
    .flat a.pending:after {
        background: #1a7bb9;
        color: #FFFFFF !important;
        margin-left: 1px;
    }

    .flat a.approved,
    .flat a.approved:after {
        background: #18a689;
        color: #FFFFFF !important;
        margin-left: 1px;
    }

    .flat a.query,
    .flat a.query:after {
        background: #FFA500;
        color: #FFFFFF !important;
        margin-left: 1px;
    }

    .flat a.rejected,
    .flat a.rejected:after {
        background: #ec4758;
        color: #FFFFFF !important;
        margin-left: 1px;
    }

    .flat a:hover,
    .flat a:hover:after {
    }
