/* Targeted Bootstrap utilities — replaces 190KB bootstrap.min.css.
   Only includes classes actually used in cprcard-child templates. */

/* === Grid ============================================================ */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}


@media (min-width: 768px) {
    .col-md-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3  { flex: 0 0 25%;        max-width: 25%; }
    .col-md-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6  { flex: 0 0 50%;        max-width: 50%; }
    .col-md-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-9  { flex: 0 0 75%;        max-width: 75%; }
    .col-md-12 { flex: 0 0 100%;       max-width: 100%; }
}

/* === Display / Flexbox =============================================== */
.d-flex  { display: flex  !important; }
.d-block { display: block !important; }
.flex-wrap       { flex-wrap: wrap         !important; }
.align-items-center { align-items: center  !important; }

/* === Spacing ========================================================= */
.p-0  { padding: 0        !important; }
.p-3  { padding: 1rem     !important; }
.m-0  { margin: 0         !important; }
.mb-0 { margin-bottom: 0       !important; }
.mb-1 { margin-bottom: .25rem  !important; }
.mb-2 { margin-bottom: .5rem   !important; }
.mb-3 { margin-bottom: 1rem    !important; }
.mb-4 { margin-bottom: 1.5rem  !important; }
.me-2 { margin-right: .5rem    !important; }
.ms-2 { margin-left:  .5rem    !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem  !important; }
.w-100 { width: 100% !important; }

/* === Typography ====================================================== */
.text-center { text-align: center !important; }
.fw-semibold { font-weight: 600   !important; }

/* === Border ========================================================== */
.border-0 { border: 0 !important; }

/* === Card ============================================================ */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}
.card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
}

/* === Form controls =================================================== */
.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
}
.form-label { margin-bottom: .5rem; }
.form-check {
    position: relative;
    display: block;
    padding-left: 1.25rem;
}
.form-check-input {
    position: absolute;
    margin-top: .3rem;
    margin-left: -1.25rem;
}
.form-check-label { margin-bottom: 0; }

/* === Modal =========================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}
.modal.show { display: block; }

.modal-dialog {
    position: relative;
    width: auto;
    margin: .5rem;
    pointer-events: none;
}
.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(0, -50px);
}
.modal.show .modal-dialog { transform: none; }

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}
.modal-lg { max-width: 800px; }

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: .3rem;
    outline: 0;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}
.modal-backdrop.fade  { opacity: 0; }
.modal-backdrop.show  { opacity: .5; }

/* === Fade transition ================================================= */
.fade { transition: opacity .15s linear; }
.fade:not(.show) { opacity: 0; }
