.card
{
    position: relative;

    display: block;

    margin-bottom: .75rem;

    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    background-color: #fff;
}

.card-block
{
    padding: 1.25rem;
}

.card-block::after
{
    display: table;
    clear: both;

    content: '';
}

.card-title
{
    margin-bottom: .75rem;
}

.card-subtitle
{
    margin-top: -.375rem;
    margin-bottom: 0;
}

.card-text:last-child
{
    margin-bottom: 0;
}

.card-link:hover
{
    text-decoration: none;
}

.card-link + .card-link
{
    margin-left: 1.25rem;
}

.card > .list-group:first-child .list-group-item:first-child
{
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.card > .list-group:last-child .list-group-item:last-child
{
    border-bottom-right-radius: .25rem;
    border-bottom-left-radius: .25rem;
}

.card-header
{
    margin-bottom: 0;
    padding: .75rem 1.25rem;

    border-bottom: 1px solid rgba(0, 0, 0, .125);
    background-color: #f5f5f5;
}

.card-header::after
{
    display: table;
    clear: both;

    content: '';
}

.card-header:first-child
{
    border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
}

.card-footer
{
    padding: .75rem 1.25rem;

    border-top: 1px solid rgba(0, 0, 0, .125);
    background-color: #f5f5f5;
}

.card-footer::after
{
    display: table;
    clear: both;

    content: '';
}

.card-footer:last-child
{
    border-radius: 0 0 calc(.25rem - 1px) calc(.25rem - 1px);
}

.card-header-tabs
{
    margin-right: -.625rem;
    margin-bottom: -.75rem;
    margin-left: -.625rem;

    border-bottom: 0;
}

.card-header-pills
{
    margin-right: -.625rem;
    margin-left: -.625rem;
}

.card-primary
{
    border-color: #62b3e5;
    background-color: #62b3e5;
}

.card-primary .card-header,
.card-primary .card-footer
{
    background-color: transparent;
}

.card-success
{
    border-color: #6cc04a;
    background-color: #6cc04a;
}

.card-success .card-header,
.card-success .card-footer
{
    background-color: transparent;
}

.card-info
{
    border-color: #9acaeb;
    background-color: #9acaeb;
}

.card-info .card-header,
.card-info .card-footer
{
    background-color: transparent;
}

.card-warning
{
    border-color: #f78d2d;
    background-color: #f78d2d;
}

.card-warning .card-header,
.card-warning .card-footer
{
    background-color: transparent;
}

.card-danger
{
    border-color: #e56385;
    background-color: #e56385;
}

.card-danger .card-header,
.card-danger .card-footer
{
    background-color: transparent;
}

.card-outline-primary
{
    border-color: #62b3e5;
    background-color: transparent;
}

.card-outline-secondary
{
    border-color: #ccc;
    background-color: transparent;
}

.card-outline-info
{
    border-color: #9acaeb;
    background-color: transparent;
}

.card-outline-success
{
    border-color: #6cc04a;
    background-color: transparent;
}

.card-outline-warning
{
    border-color: #f78d2d;
    background-color: transparent;
}

.card-outline-danger
{
    border-color: #e56385;
    background-color: transparent;
}

.card-inverse .card-header,
.card-inverse .card-footer
{
    border-color: rgba(255, 255, 255, .2);
}

.card-inverse .card-header,
.card-inverse .card-footer,
.card-inverse .card-title,
.card-inverse .card-blockquote
{
    color: #fff;
}

.card-inverse .card-link,
.card-inverse .card-text,
.card-inverse .card-subtitle,
.card-inverse .card-blockquote .blockquote-footer
{
    color: rgba(255, 255, 255, .65);
}

.card-inverse .card-link:focus,
.card-inverse .card-link:hover
{
    color: #fff;
}

.card-blockquote
{
    margin-bottom: 0;
    padding: 0;

    border-left: 0;
}

.card-img
{
    border-radius: calc(.25rem - 1px);
}

.card-img-overlay
{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    padding: 1.25rem;
}

.card-img-top
{
    border-top-left-radius: calc(.25rem - 1px);
    border-top-right-radius: calc(.25rem - 1px);
}

.card-img-bottom
{
    border-bottom-right-radius: calc(.25rem - 1px);
    border-bottom-left-radius: calc(.25rem - 1px);
}

@media (min-width: 576px)
{
    .card-deck
    {
        display: table;

        width: 100%;
        margin-bottom: .75rem;

        table-layout: fixed;
        border-spacing: 1.25rem 0;
    }
    .card-deck .card
    {
        display: table-cell;

        margin-bottom: 0;

        vertical-align: top;
    }
    .card-deck-wrapper
    {
        margin-right: -1.25rem;
        margin-left: -1.25rem;
    }
}

@media (min-width: 576px)
{
    .card-group
    {
        display: table;

        width: 100%;

        table-layout: fixed;
    }
    .card-group .card
    {
        display: table-cell;

        vertical-align: top;
    }
    .card-group .card + .card
    {
        margin-left: 0;

        border-left: 0;
    }
    .card-group .card:first-child
    {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    .card-group .card:first-child .card-img-top
    {
        border-top-right-radius: 0;
    }
    .card-group .card:first-child .card-img-bottom
    {
        border-bottom-right-radius: 0;
    }
    .card-group .card:last-child
    {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
    .card-group .card:last-child .card-img-top
    {
        border-top-left-radius: 0;
    }
    .card-group .card:last-child .card-img-bottom
    {
        border-bottom-left-radius: 0;
    }
    .card-group .card:not(:first-child):not(:last-child)
    {
        border-radius: 0;
    }
    .card-group .card:not(:first-child):not(:last-child) .card-img-top,
    .card-group .card:not(:first-child):not(:last-child) .card-img-bottom
    {
        border-radius: 0;
    }
}

@media (min-width: 576px)
{
    .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;
    }
    .card-columns .card
    {
        display: inline-block;

        width: 100%;
    }
}

/**
 * Panel styling.
 */
.panel-title
{
    display: block;

    margin: -10px -15px;
    padding: 10px 15px;
}

.panel-title,
.panel-title:hover,
.panel-title:focus,
.panel-title:hover:focus
{
    color: inherit;
}

.panel-title:focus,
.panel-title:hover
{
    text-decoration: none;
}
