[data-role="progress-bar"] {
    display:inline-block;
    position:relative;
    box-sizing:border-box;
    width:100% !important;
    border-width:0px !important;
    vertical-align:top;
}

[data-role="progress-bar"] > label { /*label row*/
    position:relative;
    display:block;
    box-sizing:border-box;
    width:100%;
    font-size:inherit;
    min-height:2em;
}

/* HTML5 progress */

[data-role="progress-bar"] > progress { /*bar row*/
    position:relative;
    display:block;
    -webkit-appearance: none;
    -moz-appearance: initial;
    appearance: none;
    height:1.5em;
    width:100%;
    border-radius: 6px;
    overflow:hidden;
    border:none;
    background-color:var(--cv-gold-light);
}

[data-role="progress-bar"] > progress::-moz-progress-bar {
    position:relative;
    display:block; 
    border:none;
    background-color:var(--cv-gold-light); 
    border-radius: 6px;
}

[data-role="progress-bar"] > progress::-webkit-progress-bar {
    position:relative;
    display:block; 
    border:none;
    background-color:var(--cv-gold-light); 
    border-radius: 6px;
}

[data-role="progress-bar"] > progress::-webkit-progress-value {
    position:relative;
    display:block; 
    border:none;
    background-color:var(--cavelo-green);
    border-radius: 0px;
}

/* [data-role="progress-bar"] > progress::-moz-progress-value {
    position:relative;
    display:block; 
    border:none;
    background-color:var(--cavelo-green);
    border-radius: 0px;
} */

/* [data-role="progress-bar"] > progress::-ms-progress-value {
    position:relative;
    display:block; 
    border:none;
    background-color:var(--cavelo-green);
    border-radius: 0px;
} */

[data-role="progress-bar"] > progress::after {
    position:relative;
    display: grid;
    color:var(--cavelo-black);
    content:attr(value) '%';
    height:100%;
    width:fit-content;
    font-size:1em;
    left:50%;
    transform:translate(-50%, -100%);
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: center;
} 

[data-role="progress-bar"].minimal { column-gap:0px; grid-column: 1 / -1; width:100%; }
[data-role="progress-bar"].minimal,
[data-role="progress-bar"].minimal > progress { height:2px !important; width:100% !important; }
[data-role="progress-bar"].minimal > progress::-webkit-progress-bar { height:2px !important; width:100% !important; }
[data-role="progress-bar"].minimal > progress::-moz-progress-bar { height:2px !important; width:100% !important; }
[data-role="progress-bar"].minimal > label,
[data-role="progress-bar"].minimal > progress::after { height:0px !important; display:none !important; }

[data-role="progress-bar"].squared > progress { border-radius:0px; }
[data-role="progress-bar"].squared > progress::-webkit-progress-bar { border-radius:0px; }
[data-role="progress-bar"].squared > progress::-moz-progress-bar { background-color:var(--cavelo-green); border-radius:0px; }


/*ORIGINAL*/


[data-role="progress-bar"] > div { /*bar row*/
    display:flex;
    position:relative;
    box-sizing:border-box;
    width:100%;
    font-size:inherit;
    padding:0 !important;
    justify-content: space-between;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr;
    align-items: center;
    justify-content: center;  
    line-height:1;
    border-radius:6px;
    overflow:hidden;
    border-width:0px !important;

}

[data-role="progress-bar"] > div > div { /*bar wrapper*/
    display:block;
    position:relative;
    box-sizing:border-box;
    width:100%;
    height:1.5em;
    font-size:inherit;
    line-height:1;
    border-radius:4px;
    overflow:hidden;
    background-color:var(--cv-gold-light); 
}

[data-role="progress-bar"] > div > div > div:first-child { /*color*/
    position:absolute;
    display:block;
    min-height:1em;
    height:100%;
    /* background-color:var(--cv-blue);  */
    background-color:var(--cavelo-green);
    min-width:0%;
    max-width:100%;
    transition:width 1s, background-color 1s;
}

[data-role="progress-bar"] > div > div > div:last-child { /*pct%*/
    position:absolute;
    display: flex;
    text-align:center;
    top:0; right:0; bottom:0; left:0;
    height:auto; width:auto; 
    font-size:inherit;
    align-items: center;
    justify-content: center;  
    min-height:1em;
}

[data-role="progress-bar"] > div > button { /*refresh*/
    position:absolute;
    left:0; top:0;
    box-sizing:border-box !important;
    padding:0px 1em !important;
    min-height:100% !important;
    max-height:100% !important;
    min-width:1em !important;
    max-width:1em !important;
    display: none;
    align-items: center;
    justify-content: center;  
    text-align:center;
}
[data-role="progress-bar"]:hover > div > button { display:flex; }


[data-role="progress-bar"].minimal { grid-column: 1 / -1; }
[data-role="progress-bar"].minimal > label,
[data-role="progress-bar"].minimal > div > button, 
[data-role="progress-bar"].minimal:hover > div > button, 
[data-role="progress-bar"].minimal > div > div > div:last-child { display:none !important; }
[data-role="progress-bar"].minimal > div > div { width:100% !important; border-radius:0px; }
[data-role="progress-bar"].minimal > div { max-height:2px; border-radius:0px; }

[data-role="progress-bar"].squared { grid-column: 1 / -1; }
[data-role="progress-bar"].squared * { border-radius:0; }



[data-role="progress-bar"] > div > div > div[width^="1"] { width:10%; }
[data-role="progress-bar"] > div > div > div[width^="2"] { width:20%; }
[data-role="progress-bar"] > div > div > div[width^="3"] { width:30%; }
[data-role="progress-bar"] > div > div > div[width^="4"] { width:40%; }
[data-role="progress-bar"] > div > div > div[width^="5"] { width:50%; }
[data-role="progress-bar"] > div > div > div[width^="6"] { width:60%; }
[data-role="progress-bar"] > div > div > div[width^="7"] { width:70%; }
[data-role="progress-bar"] > div > div > div[width^="8"] { width:80%; }
[data-role="progress-bar"] > div > div > div[width^="9"] { width:90%; }
[data-role="progress-bar"] > div > div > div.complete { 
    width:100% !important;
    background-color:var(--cavelo-green); 
}
