﻿/* Title */
.cdCentreTitle {
    font-size: 250%;
    color: #676767;
    font-family: 'Trebuchet MS', sans-serif;
}

.cdCentreSubTitle {
    font-size: 180%;
    color: #676767;
    font-family: 'Trebuchet MS', sans-serif;
}

.welcomeTitle {
    font-size: 200%;
    color: #a6a6a6;
    font-family: 'Trebuchet MS', sans-serif;
    margin-bottom: 25px;
}

/* Flex Menu */
.cdFlexContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center; /* Determines alignment with each other */
    justify-content: center;
}

.cdFlexMenu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    list-style: none;
    width: 380px;
    
    margin: 0px 10px 10px 0px;
    background-color: #f7f7f7;
    border-radius: 30px;
    border: 10px solid #d5d5d5;
    /* Transitions added 25/11/2019 */
    -webkit-transition: all 3.0s ease;
    -moz-transition: all 3.0s ease;
    -o-transition: all 3.0s ease;
    transition: all 3.0s ease;
}

.cdFlexMenuItem {
    list-style: none;
    padding: 6px 8px;
    font-size: 140%;
    font-family: 'Trebuchet MS', sans-serif;
    margin: 0;
    box-shadow: 0px 10px 8px -10px #d5d5d5;
}

    .cdFlexMenuItem:last-child {
        box-shadow: none !important; /* Remove box shadow from last list item */
    }

    .cdFlexMenuItem > a {
        color: #1C94C4;
        text-decoration: none;
        border-radius: 25px;
        display: block;
        cursor: pointer;
        /*Hover effect*/
        -o-transition: 0.2s;
        -ms-transition: 0.2s;
        -moz-transition: 0.2s;
        -webkit-transition: 0.2s;
        transition: 0.2s;
    }

        .cdFlexMenuItem > a:hover {
            color: #c41c40;
            background-color: white;
        }

.cdFlexMenuItemIcon {
    padding: 10px;
    color: #676767;
    margin-right: 8px;
    font-size: 130%;
}

.cdFlexMenuTitle {
    font-size: 140%;
    text-align: center;
    margin: 0;
    padding: 5px;
    color: #676767;
    font-family: 'Trebuchet MS', sans-serif;
    font-weight: bold;
}

.cdFlexMenu:first-child {
    border-radius: 25px;
}

.cdFlexMenuHeader {
    text-align: center;
    margin-bottom: 0;
    font-weight: 100;
}

    .cdFlexMenuHeader.ActionRequired {
        color: #c41c40;
    }

    .cdFlexMenuHeader.Warning {
        color: #ffbf00;
    }

    .cdFlexMenuHeader.OK {
        color: #1cc44c;
    }

    .cdFlexMenuHeader.New {
        color: #1c94c4;
    }

    .cdFlexMenuHeader.ActionRequired:after {
        content: 'Attention - Action Required';
    }

    .cdFlexMenuHeader.Warning:after {
        content: 'Caution - Outstanding Items';
    }

    .cdFlexMenuHeader.OK:after {
        content: 'No Action Needed';
    }

    .cdFlexMenuHeader.New:after {
        content: 'New';
    }

.cdAdminOnly {
    display: inline;
    margin-left: 10px;
    font-size: 60%;
    color: #c41c40;
    vertical-align: middle;
    background-color: #f9d3db;
    padding: 5px 7px;
    border-radius: 10px;
}

.cdInfoTag {
    display: inline;
    margin-left: 10px;
    font-size: 60%;
    color: #ddf2fa;
    vertical-align: middle;
    background-color: #1C94C4;
    padding: 5px 7px;
    border-radius: 10px;
}


.cdPortalTag {
    display: inline;
    margin-left: 10px;
    font-size: 60%;
    color: #16973b;
    vertical-align: middle;
    background-color: #d3f9de;
    padding: 5px 7px;
    border-radius: 10px;
}

#dashSwitch {
    font-size: 120%;
    padding-left: 15px;
    margin-bottom: 10px;
}

/* Dynamic CSS classes */
.cdFlexMenuActionRequired {
    border-color: #c41c40 !important;
}

.cdFlexMenuWarning {
    border-color: #ffbf00 !important;
}

.cdFlexMenuOK {
    border-color: #1cc44c !important;
}

.cdFlexMenuNew {
    border-color: #1c94c4 !important;
}

.cdFlexMenuItemActionRequired a {
    color: #c41c40 !important;
    border: 1px solid #c41c40;
    background-color: #fbe4e9;
}

.cdFlexMenuItemBadge {
    position: relative;
}


    /* Red badge - action required */
    .cdFlexMenuItemBadge[data-badge]:after {
        content: attr(data-badge);
        position: absolute;
        top: 2px;
        right: 10px;
        font-size: 1em;
        background: #c41c40;
        color: white;
        width: 40px;
        height: 40px;
        text-align: center;
        line-height: 40px;
        border-radius: 50%;
    }

/* Grey badge - information only */
.infoBadge.cdFlexMenuItemBadge[data-badge]:after,
.infoBadgeExcl.cdFlexMenuItemBadge[data-badge]:after {
    content: attr(data-badge);
    position: absolute;
    top: 2px;
    right: 10px;
    font-size: 1em;
    background: #d5d5d5;
    color: #676767;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}



/* Red badge - action required - font size small (for large numbers - ie. PV audit inbox) */
.cdFlexMenuItemBadgeSmall {
    position: relative;
}

.cdFlexMenuItemBadgeSmall[data-badge]:after {
    content: attr(data-badge);
    position: absolute;
    top: 2px;
    right: 10px;
    font-size: 0.7em;
    background: #c41c40;
    color: white;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
}

/* Empty data badge - hide badge altogether */
.cdFlexMenuItemBadge[data-badge=""]:after,
.infoBadge.cdFlexMenuItemBadge[data-badge=""]:after {
    content: none;
}


/* Animated pulsing border colour */

.cdFlexMenuAnimateBorder {
    border-color: #d5d5d5;
    animation-name: FlexMenuAnimateBorder;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

@keyframes FlexMenuAnimateBorder {
    0% {
        border-color: #d5d5d5;
    }
    50% {
        border-color: #ffbf00;
        /* Amber: #ffbf00
           Red: #c41c40
           Green:#1cc44c
        */
    }
    100% {
        border-color: #d5d5d5;
    }
}