﻿.x-card {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

    .x-card > hr {
        margin-right: 0;
        margin-left: 0;
    }

    .x-card > .list-group:first-child .list-group-item:first-child {
        border-top-left-radius: 0.25rem;
        border-top-right-radius: 0.25rem;
    }

    .x-card > .list-group:last-child .list-group-item:last-child {
        border-bottom-right-radius: 0.25rem;
        border-bottom-left-radius: 0.25rem;
    }

.x-card-body {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1.25rem;
}

.x-card-title {
    margin-bottom: 0.75rem;
}

.x-card-subtitle {
    margin-top: -0.375rem;
    margin-bottom: 0;
}

.x-card-text:last-child {
    margin-bottom: 0;
}

.x-card-link:hover {
    text-decoration: none;
}

.x-card-link + .x-card-link {
    margin-left: 1.25rem;
}

.x-card-header {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

    .x-card-header:first-child {
        border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
    }

    .x-card-header + .list-group .list-group-item:first-child {
        border-top: 0;
    }

.x-card-footer {
    padding: 0.75rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

    .x-card-footer:last-child {
        border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
    }

.x-card-header-tabs {
    margin-right: -0.625rem;
    margin-bottom: -0.75rem;
    margin-left: -0.625rem;
    border-bottom: 0;
}

.x-card-header-pills {
    margin-right: -0.625rem;
    margin-left: -0.625rem;
}

.x-card-img-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 1.25rem;
}

.x-card-img {
    width: 100%;
    border-radius: calc(0.25rem - 1px);
}

.x-card-img-top {
    width: 100%;
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
}

.x-card-img-bottom {
    width: 100%;
    border-bottom-right-radius: calc(0.25rem - 1px);
    border-bottom-left-radius: calc(0.25rem - 1px);
}

.x-card-deck {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

    .x-card-deck .x-card {
        margin-bottom: 15px;
    }

@media (min-width: 576px) {
    .x-card-deck {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
        margin-right: -15px;
        margin-left: -15px;
    }

        .x-card-deck .x-card {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-flex: 1;
            -ms-flex: 1 0 0%;
            flex: 1 0 0%;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            -ms-flex-direction: column;
            flex-direction: column;
            margin-right: 15px;
            margin-bottom: 0;
            margin-left: 15px;
        }
}

.x-card-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

    .x-card-group > .x-card {
        margin-bottom: 15px;
    }

@media (min-width: 576px) {
    .x-card-group {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
        flex-flow: row wrap;
    }

        .x-card-group > .x-card {
            -webkit-box-flex: 1;
            -ms-flex: 1 0 0%;
            flex: 1 0 0%;
            margin-bottom: 0;
        }

            .x-card-group > .x-card + .x-card {
                margin-left: 0;
                border-left: 0;
            }

            .x-card-group > .x-card:first-child {
                border-top-right-radius: 0;
                border-bottom-right-radius: 0;
            }

                .x-card-group > .x-card:first-child .x-card-img-top,
                .x-card-group > .x-card:first-child .x-card-header {
                    border-top-right-radius: 0;
                }

                .x-card-group > .x-card:first-child .x-card-img-bottom,
                .x-card-group > .x-card:first-child .x-card-footer {
                    border-bottom-right-radius: 0;
                }

            .x-card-group > .x-card:last-child {
                border-top-left-radius: 0;
                border-bottom-left-radius: 0;
            }

                .x-card-group > .x-card:last-child .x-card-img-top,
                .x-card-group > .x-card:last-child .x-card-header {
                    border-top-left-radius: 0;
                }

                .x-card-group > .x-card:last-child .x-card-img-bottom,
                .x-card-group > .x-card:last-child .x-card-footer {
                    border-bottom-left-radius: 0;
                }

            .x-card-group > .x-card:only-child {
                border-radius: 0.25rem;
            }

                .x-card-group > .x-card:only-child .x-card-img-top,
                .x-card-group > .x-card:only-child .x-card-header {
                    border-top-left-radius: 0.25rem;
                    border-top-right-radius: 0.25rem;
                }

                .x-card-group > .x-card:only-child .x-card-img-bottom,
                .x-card-group > .x-card:only-child .x-card-footer {
                    border-bottom-right-radius: 0.25rem;
                    border-bottom-left-radius: 0.25rem;
                }

            .x-card-group > .x-card:not(:first-child):not(:last-child):not(:only-child) {
                border-radius: 0;
            }

                .x-card-group > .x-card:not(:first-child):not(:last-child):not(:only-child) .x-card-img-top,
                .x-card-group > .x-card:not(:first-child):not(:last-child):not(:only-child) .x-card-img-bottom,
                .x-card-group > .x-card:not(:first-child):not(:last-child):not(:only-child) .x-card-header,
                .x-card-group > .x-card:not(:first-child):not(:last-child):not(:only-child) .x-card-footer {
                    border-radius: 0;
                }
}

.x-card-columns .x-card {
    margin-bottom: 0.75rem;
}

@media (min-width: 576px) {
    .x-card-columns {
        -webkit-column-count: 3;
        -moz-column-count: 3;
        column-count: 3;
        -webkit-column-gap: 1.25rem;
        -moz-column-gap: 1.25rem;
        column-gap: 1.25rem;
    }

        .x-card-columns .x-card {
            display: inline-block;
            width: 100%;
        }
}
