.card.dashboard-card {
    position: relative;

    &.dimmed .card-img::after {
        content: '';
        position: absolute;
        background-color: rgba(0,0,0,0.5);
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        border-top-left-radius: .5rem;;
        border-top-right-radius: .5rem;;
    }

    .card-img.dashboard-card-img {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .dashboard-card-footer {
        border-radius: .5rem;
    }

    .card-body {
        padding: .8rem;
    }

    .customfields {
        .customfield {
            font-size: 80%;
            margin-bottom: .25rem;

            &:last-of-type {
                margin-bottom: 0;
            }

            .customfieldname,
            .customfieldseparator {
                font-weight: 500;
            }
        }
    }

    .enrolmenticons {
        position: absolute;
        bottom: 8px;
        right: 0;

        .enrolmenticon {
            padding: 4px 8px;
            background-color: #fff;
            color: $brand-primary;
            border-radius: .5rem;
            margin: 0 4px;

            .icon {
                margin-right: 0;
            }
        }
    }

    .course-contacts {
        padding: 0 0.8rem 0.8rem 0.8rem;

        .contact {
            display: flex;

            &:not(:first-of-type) {
                margin-top: .4rem;
            }

            img {
                width: 48px;
                height: 48px;
                border: 1px solid var(--bs-border-color);
            }

            p {
                margin-left: .4rem;
                margin-bottom: 0;

                &.role {
                    color: var(--bs-body-color);
                    font-size: 80%;
                }
            }
        }
    }

    .dashboard-card-footer {
        padding: 0 .8rem .8rem .8rem;
    }
}