/* PSIS */
/* Default to Large */
.psi {
    display: flex;
    flex-direction: column;
    padding: 7px 0px;
    width: 54px;
    height: 51px;

    justify-content: center;
    align-items: center;
    font-size: 29px;
    line-height: normal;
    border-radius: 8px;
    font-weight: 700;
    margin: 0;

    color: var(--main-greyblue-shades-50); 
    background-color: var(--main-greyblue-shades-95);
    border: 2px var(--main-greyblue-shades-80) solid;

    transition: background-color 100ms;
}
.psi.hundred {
    font-size: 24px;
}
.psi.medium {
    width: 48px;
    height: 46px;
    font-size: 24px;
}
.psi.medium.hundred {
    font-size: 20px;
}
.psi.small {
    width: 38px;
    height: 38px;
    font-size: 22px;
    font-weight: 800;
    border-width: 1px;
    border-radius: 6px;
}
.psi.small.hundred {
    font-size: 17px;
}
.psi.tiny {
    width: 30px;
    height: 30px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 4px;
    border-width: 1px;
}
.psi.tiny.hundred {
    font-size: 12px;
}

.psi.micro {
    width: 22px;
    height: 21px;
    padding: 2.5px 3px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 12px;
    border-width: 1px;
}
.psi.micro.hundred {
    font-size: 9px;
}

.psi.darkgreen {
    color: var(--ratings-dark-green); 
    background-color: var(--ratings-dark-green-shades-90);
    border-color: var(--ratings-dark-green-shades-70);
}
.psi.darkgreen.nohover:hover {
    background-color: var(--ratings-dark-green-shades-90);
}
.psi.darkgreen:hover {
    background-color: var(--ratings-dark-green-shades-85);
}
.psi.green {
    color: var(--ratings-green); 
    background-color: var(--ratings-green-shades-95);
    border-color: var(--ratings-green-shades-80);
}
.psi.green.nohover:hover {
    background-color: var(--ratings-green-shades-95);
    border-color: var(--ratings-green-shades-80);
}
.psi.green:hover {
    background-color: var(--ratings-green-shades-90);
    border-color: var(--ratings-green-shades-70);
}
.psi.yellow {
    color: var(--ratings-yellow); 
    background-color: var(--ratings-yellow-shades-95);
    border-color: var(--ratings-yellow-shades-80);
}
.psi.yellow.nohover:hover {
    background-color: var(--ratings-yellow-shades-95);
    border-color: var(--ratings-yellow-shades-80);
}
.psi.yellow:hover {
    background-color: var(--ratings-yellow-shades-90);
    border-color: var(--ratings-yellow-shades-70);
}
.psi.red {
    color: var(--ratings-red); 
    background-color: var(--ratings-red-shades-95);
    border-color: var(--ratings-red-shades-80);
}
.psi.red.nohover:hover {
    background-color: var(--ratings-red-shades-95);
    border-color: var(--ratings-red-shades-80);
}
.psi.red:hover {
    background-color: var(--ratings-red-shades-90);
    border-color: var(--ratings-red-shades-70);
}
.psi.gray {
    color: var(--main-greyblue-shades-50); 
    background-color: var(--main-greyblue-shades-95);
    border-color: var(--main-greyblue-shades-80);
}
.psi.gray.nohover:hover {
    background-color: var(--main-greyblue-shades-95);
    border-color: var(--main-greyblue-shades-80);
}
.psi.gray:hover {
    background-color: var(--main-greyblue-shades-90);
    border-color: var(--main-greyblue-shades-70);
}
.psilabel, .ratinglabel {
    text-align: center;
    font-size: 8px;
    font-weight: 800;
    line-height: normal;
    letter-spacing: 0.16px;
}
.psi.label, .rating.label {
    padding: 2px 0 2px 0;
    gap: 0;
}
.psi.label .psipsi, .rating.label .ratingrating {
    margin-top: -4px;
}


/* RATINGS */
/* Default to Large */
.rating {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 54px;
    height: 51px;
    font-size: 29px;
    line-height: normal;
    border-radius: 8px;
    font-weight: 700;
    color: white;
    margin: 0;
    border: 2px solid var(--main-greyblue-shades-80);

    /* Default to gray */
    background-color: var(--main-greyblue); 
}
.rating.hundred {
    font-size: 24px;
}
.rating.medium {
    width: 48px;
    height: 46px;
    font-size: 26px;
}
.rating.medium.hundred {
    font-size: 20px;
}
.rating.small {
    width: 38px;
    min-width: 38px;
    height: 38px;
    font-size: 22px;
    font-weight: 800;
    border-width: 1px;
}
.rating.small.hundred {
    font-size: 17px;
    line-height: 24px;
}
.rating.small.hundred .ratingrating {
    margin-top: -2px;
}

.rating.tiny {
    width: 30px;
    height: 30px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 4px;
    border-width: 0;
}
.rating.tiny.hundred {
    font-size: 12px;
}

.rating.micro {
    width: 22px;
    height: 21px;
    padding: 2.5px 3px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 12px;
    border-width: 0;
}
.rating.micro.hundred {
    font-size: 9px;
}

.rating.darkgreen {
    background-color: var(--ratings-dark-green-shades-35) !important;
    border-color: var(--ratings-dark-green-shades-30);
}
.rating.darkgreen:hover {
    background-color: var(--ratings-dark-green-shades-40) !important;
    border-color: var(--ratings-dark-green-shades-35);
}
.rating.green {
    background-color: var(--ratings-green-shades-50) !important;
    border-color: var(--ratings-green-shades-45);
}
.rating.green:hover {
    background-color: var(--ratings-green-shades-60) !important;
    border-color: var(--ratings-green-shades-50);
}
.rating.yellow {
    background-color: var(--ratings-yellow-shades-50) !important;
    border-color: var(--ratings-yellow-shades-45);
}
.rating.yellow:hover {
    background-color: var(--ratings-yellow-shades-60) !important;
    border-color: var(--ratings-yellow-shades-50);
}
.rating.red {
    background-color: var(--ratings-red-shades-50) !important;
    border-color: var(--ratings-red-shades-45);
}
.rating.red:hover {
    background-color: var(--ratings-red-shades-60) !important;
    border-color: var(--ratings-red-shades-50);
}
.rating.gray {
    background-color: var(--main-greyblue-shades-50) !important;
    border-color: var(--main-greyblue-shades-40);
}
.rating.gray:hover {
    background-color: var(--main-greyblue-shades-60) !important;
    border-color: var(--main-greyblue-shades-50);
}

.rating.withlabel.large {
    line-height: 28px;
}
.rating.withlabel.medium {
    line-height: 23px;
}
.rating.withlabel.small {
    line-height: 20px;
}
.rating.withlabel.large .ratingheader {
    font-weight: 800;
    font-size: 10px;
    line-height: 10px;
}
.rating.withlabel.medium .ratingheader {
    font-size: 9.5px;
    line-height: 13px;
}
.rating.withlabel.small .ratingheader {
    font-size: 9px;
    line-height: 8px;
}
.ratingheader {
    display: none;
}
.withlabel .ratingheader {
    display: block;
}