/* Cards */

.card {
    border: 1px solid $card-border-color;
    font-family: $type1;

    .card-body {
        padding: $card-padding-y $card-padding-x;

        .breadcrumb {
            background-color: unset;
            margin-top: -1rem;
            margin-bottom: 0;

            .breadcrumb-item {
                color: #007bff;

                >label {
                    cursor: pointer;
                    margin: 0;

                    input[type="radio"] {
                        display: none;
                    }

                    input[type="radio"]:checked+span {
                        color: $card-description-color;
                    }
                }
            }

            @include media-breakpoint-down(sm) {
                padding: 0;
            }
        }

        .card-title {
            color: $card-title-color;
            margin-bottom: .75rem;
            text-transform: capitalize;
            font-family: $type1;
            font-size: 16px;
        }

        .card-subtitle {
            font-family: $type1;
            margin-top: 0.625rem;
            margin-bottom: 0.625rem;
            font-size: 16px;
        }

        .card-description {
            color: $card-description-color;
            margin-bottom: 1.5rem;
            font-family: $type1;
        }

        &:first-child {
            .card-title:first-child {
                background-color: #FFEDD5;
                padding: 0.5rem 1rem;
                margin-top: calc(-#{$card-padding-y} - 20px);
                margin-bottom: 1.5rem;
                margin-left: -1rem;
                width: -moz-fit-content;
                width: fit-content;
                max-width: 300px;
                border-radius: 4px;
                box-shadow: -1px 3px 2px rgba(0, 0, 0, 15%);
            }
        }

        +.card-body {
            padding-top: 1rem;
        }

        .card-icon-indicator {
            width: 45px;
            height: 45px;
            font-size: 20px;
            color: $white;
            border-radius: 50px;
            text-align: center;
            line-height: 2.2;
        }
    }



    &.card-outline-success {
        border: 1px solid theme-color("success");
    }

    &.card-outline-primary {
        border: 1px solid theme-color("primary");
    }

    &.card-outline-warning {
        border: 1px solid theme-color("warning");
    }

    &.card-outline-danger {
        border: 1px solid theme-color("danger");
    }

    &.card-rounded {
        border-radius: 5px;
    }

    &.card-faded {
        background: #b5b0b2;
        border-color: #b5b0b2;
    }

    &.card-circle-progress {
        color: $white;
        text-align: center;
    }

    &.card-img-holder {
        position: relative;

        .card-img-absolute {
            position: absolute;
            top: 0;
            right: 0;
            height: 100%;
        }
    }
}

/* Utilities */

.grid-margin {
    margin-bottom: $card-spacing-y;
}

.grid-margin-sm-0 {
    @media (min-width: 576px) {
        margin-bottom: 0;
    }
}

.grid-margin-md-0 {
    @media (min-width: 768px) {
        margin-bottom: 0;
    }
}

.grid-margin-lg-0 {
    @media (min-width: 992px) {
        margin-bottom: 0;
    }
}

.grid-margin-xl-0 {
    @media (min-width: 1200px) {
        margin-bottom: 0;
    }
}

.stretch-card {
    @include display-flex;
    @include align-items(stretch);
    justify-content: stretch;

    >.card {
        width: 100%;
        min-width: 100%;
    }
}