/* public/css/card-headers.css
 *
 * Global fix: keep card headers/footers visually inside the card border radius,
 * and prevent button shadows (from our global .btn styling) from "bleeding"
 * outside the card boundary.
 */

.card > .card-header:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.card > .card-footer:last-child {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

/* Buttons inside headers/footers should not cast outer shadows beyond the card. */
.card-header .btn,
.card-footer .btn {
    box-shadow: none !important;
}

.card-header .btn:focus,
.card-header .btn:active,
.card-footer .btn:focus,
.card-footer .btn:active {
    box-shadow: none !important;
}

/* Common accordion pattern: card-header contains a btn-link collapse toggle. */
.card-header .btn.btn-link {
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 0;
}

