/*
 * BeldSign Bootstrap Compatibility Layer
 * Replaces bootstrap.min.css for BeldSign.Web.
 * Provides the utility classes and component structures used across the app.
 * Bootstrap Icons are loaded separately via CDN — this file has NO icon CSS.
 */

/* ═══════════════════════════════════════════════════
   1. BOX-SIZING
   ═══════════════════════════════════════════════════ */
*,
*::before,
*::after { box-sizing: border-box; }

/* ═══════════════════════════════════════════════════
   2. DISPLAY UTILITIES
   ═══════════════════════════════════════════════════ */
.d-none             { display: none !important; }
.d-block            { display: block !important; }
.d-inline           { display: inline !important; }
.d-inline-block     { display: inline-block !important; }
.d-flex             { display: flex !important; }
.d-inline-flex      { display: inline-flex !important; }
.d-grid             { display: grid !important; }
.d-table            { display: table !important; }

@media (min-width: 576px) {
    .d-sm-none  { display: none !important; }
    .d-sm-flex  { display: flex !important; }
    .d-sm-block { display: block !important; }
}
@media (min-width: 768px) {
    .d-md-none  { display: none !important; }
    .d-md-flex  { display: flex !important; }
    .d-md-block { display: block !important; }
    .d-md-inline-block { display: inline-block !important; }
}
@media (min-width: 992px) {
    .d-lg-none  { display: none !important; }
    .d-lg-flex  { display: flex !important; }
    .d-lg-block { display: block !important; }
}
@media (min-width: 1200px) {
    .d-xl-none  { display: none !important; }
    .d-xl-flex  { display: flex !important; }
    .d-xl-block { display: block !important; }
}

/* ═══════════════════════════════════════════════════
   3. FLEXBOX UTILITIES
   ═══════════════════════════════════════════════════ */
.flex-row            { flex-direction: row !important; }
.flex-column         { flex-direction: column !important; }
.flex-row-reverse    { flex-direction: row-reverse !important; }
.flex-wrap           { flex-wrap: wrap !important; }
.flex-nowrap         { flex-wrap: nowrap !important; }
.flex-grow-0         { flex-grow: 0 !important; }
.flex-grow-1         { flex-grow: 1 !important; }
.flex-shrink-0       { flex-shrink: 0 !important; }
.flex-shrink-1       { flex-shrink: 1 !important; }
.flex-fill           { flex: 1 1 auto !important; }

.justify-content-start   { justify-content: flex-start !important; }
.justify-content-end     { justify-content: flex-end !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around  { justify-content: space-around !important; }
.justify-content-evenly  { justify-content: space-evenly !important; }

.align-items-start   { align-items: flex-start !important; }
.align-items-end     { align-items: flex-end !important; }
.align-items-center  { align-items: center !important; }
.align-items-baseline{ align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

.align-self-start    { align-self: flex-start !important; }
.align-self-end      { align-self: flex-end !important; }
.align-self-center   { align-self: center !important; }
.align-self-stretch  { align-self: stretch !important; }

.align-content-start   { align-content: flex-start !important; }
.align-content-end     { align-content: flex-end !important; }
.align-content-center  { align-content: center !important; }
.align-content-between { align-content: space-between !important; }

/* ═══════════════════════════════════════════════════
   4. GAP UTILITIES
   ═══════════════════════════════════════════════════ */
.gap-0 { gap: 0      !important; }
.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem  !important; }
.gap-3 { gap: 1rem   !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem   !important; }

.row-gap-0 { row-gap: 0      !important; }
.row-gap-1 { row-gap: .25rem !important; }
.row-gap-2 { row-gap: .5rem  !important; }
.row-gap-3 { row-gap: 1rem   !important; }

.column-gap-0 { column-gap: 0      !important; }
.column-gap-1 { column-gap: .25rem !important; }
.column-gap-2 { column-gap: .5rem  !important; }
.column-gap-3 { column-gap: 1rem   !important; }

/* ═══════════════════════════════════════════════════
   5. SPACING — MARGIN
   ═══════════════════════════════════════════════════ */
.m-0  { margin: 0 !important; }
.m-1  { margin: .25rem !important; }
.m-2  { margin: .5rem  !important; }
.m-3  { margin: 1rem   !important; }
.m-4  { margin: 1.5rem !important; }
.m-5  { margin: 3rem   !important; }
.m-auto { margin: auto !important; }

.mx-0  { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1  { margin-left: .25rem !important; margin-right: .25rem !important; }
.mx-2  { margin-left: .5rem  !important; margin-right: .5rem  !important; }
.mx-3  { margin-left: 1rem   !important; margin-right: 1rem   !important; }
.mx-4  { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-5  { margin-left: 3rem   !important; margin-right: 3rem   !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.my-0  { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1  { margin-top: .25rem !important; margin-bottom: .25rem !important; }
.my-2  { margin-top: .5rem  !important; margin-bottom: .5rem  !important; }
.my-3  { margin-top: 1rem   !important; margin-bottom: 1rem   !important; }
.my-4  { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5  { margin-top: 3rem   !important; margin-bottom: 3rem   !important; }

.mt-0  { margin-top: 0 !important; }
.mt-1  { margin-top: .25rem !important; }
.mt-2  { margin-top: .5rem  !important; }
.mt-3  { margin-top: 1rem   !important; }
.mt-4  { margin-top: 1.5rem !important; }
.mt-5  { margin-top: 3rem   !important; }
.mt-auto { margin-top: auto !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; }
.mb-5  { margin-bottom: 3rem   !important; }
.mb-auto { margin-bottom: auto !important; }

.ms-0  { margin-left: 0 !important; }
.ms-1  { margin-left: .25rem !important; }
.ms-2  { margin-left: .5rem  !important; }
.ms-3  { margin-left: 1rem   !important; }
.ms-4  { margin-left: 1.5rem !important; }
.ms-5  { margin-left: 3rem   !important; }
.ms-auto { margin-left: auto !important; }

.me-0  { margin-right: 0 !important; }
.me-1  { margin-right: .25rem !important; }
.me-2  { margin-right: .5rem  !important; }
.me-3  { margin-right: 1rem   !important; }
.me-4  { margin-right: 1.5rem !important; }
.me-5  { margin-right: 3rem   !important; }
.me-auto { margin-right: auto !important; }

/* ═══════════════════════════════════════════════════
   6. SPACING — PADDING
   ═══════════════════════════════════════════════════ */
.p-0  { padding: 0 !important; }
.p-1  { padding: .25rem !important; }
.p-2  { padding: .5rem  !important; }
.p-3  { padding: 1rem   !important; }
.p-4  { padding: 1.5rem !important; }
.p-5  { padding: 3rem   !important; }

.px-0  { padding-left: 0 !important; padding-right: 0 !important; }
.px-1  { padding-left: .25rem !important; padding-right: .25rem !important; }
.px-2  { padding-left: .5rem  !important; padding-right: .5rem  !important; }
.px-3  { padding-left: 1rem   !important; padding-right: 1rem   !important; }
.px-4  { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5  { padding-left: 3rem   !important; padding-right: 3rem   !important; }

.py-0  { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1  { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.py-2  { padding-top: .5rem  !important; padding-bottom: .5rem  !important; }
.py-3  { padding-top: 1rem   !important; padding-bottom: 1rem   !important; }
.py-4  { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5  { padding-top: 3rem   !important; padding-bottom: 3rem   !important; }

.pt-0  { padding-top: 0 !important; }
.pt-1  { padding-top: .25rem !important; }
.pt-2  { padding-top: .5rem  !important; }
.pt-3  { padding-top: 1rem   !important; }
.pt-4  { padding-top: 1.5rem !important; }
.pt-5  { padding-top: 3rem   !important; }

.pb-0  { padding-bottom: 0 !important; }
.pb-1  { padding-bottom: .25rem !important; }
.pb-2  { padding-bottom: .5rem  !important; }
.pb-3  { padding-bottom: 1rem   !important; }
.pb-4  { padding-bottom: 1.5rem !important; }
.pb-5  { padding-bottom: 3rem   !important; }

.ps-0  { padding-left: 0 !important; }
.ps-1  { padding-left: .25rem !important; }
.ps-2  { padding-left: .5rem  !important; }
.ps-3  { padding-left: 1rem   !important; }
.ps-4  { padding-left: 1.5rem !important; }
.ps-5  { padding-left: 3rem   !important; }

.pe-0  { padding-right: 0 !important; }
.pe-1  { padding-right: .25rem !important; }
.pe-2  { padding-right: .5rem  !important; }
.pe-3  { padding-right: 1rem   !important; }
.pe-4  { padding-right: 1.5rem !important; }
.pe-5  { padding-right: 3rem   !important; }

/* ═══════════════════════════════════════════════════
   7. TYPOGRAPHY UTILITIES
   ═══════════════════════════════════════════════════ */
.fw-lighter  { font-weight: lighter !important; }
.fw-light    { font-weight: 300 !important; }
.fw-normal   { font-weight: 400 !important; }
.fw-medium   { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold     { font-weight: 700 !important; }
.fw-bolder   { font-weight: bolder !important; }

.fst-normal  { font-style: normal  !important; }
.fst-italic  { font-style: italic  !important; }

.fs-1 { font-size: 2.5rem   !important; }
.fs-2 { font-size: 2rem     !important; }
.fs-3 { font-size: 1.75rem  !important; }
.fs-4 { font-size: 1.5rem   !important; }
.fs-5 { font-size: 1.25rem  !important; }
.fs-6 { font-size: 1rem     !important; }

.lh-1  { line-height: 1    !important; }
.lh-sm { line-height: 1.25 !important; }
.lh-base { line-height: 1.5 !important; }
.lh-lg { line-height: 2    !important; }

.text-start   { text-align: left    !important; }
.text-center  { text-align: center  !important; }
.text-end     { text-align: right   !important; }
.text-nowrap  { white-space: nowrap !important; }
.text-wrap    { white-space: normal !important; }
.text-uppercase   { text-transform: uppercase   !important; }
.text-lowercase   { text-transform: lowercase   !important; }
.text-capitalize  { text-transform: capitalize  !important; }
.text-decoration-none       { text-decoration: none      !important; }
.text-decoration-underline  { text-decoration: underline !important; }

.text-truncate {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
.text-break     { word-wrap: break-word !important; overflow-wrap: break-word !important; }

/* Text colours — actual values come from theme.css tokens; these are structural */
.text-primary   { color: var(--brand) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success   { color: var(--success) !important; }
.text-danger    { color: var(--error) !important; }
.text-warning   { color: var(--warning) !important; }
.text-info      { color: var(--info) !important; }
.text-light     { color: #f8f9fa !important; }
.text-dark      { color: #212529 !important; }
.text-white     { color: #ffffff !important; }
.text-black     { color: #000000 !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-reset     { color: inherit !important; }

/* Background colours */
.bg-primary    { background-color: var(--brand) !important; }
.bg-secondary  { background-color: var(--text-secondary) !important; }
.bg-success    { background-color: var(--success) !important; }
.bg-danger     { background-color: var(--error) !important; }
.bg-warning    { background-color: var(--warning) !important; }
.bg-info       { background-color: var(--info) !important; }
.bg-white      { background-color: #ffffff !important; }
.bg-light      { background-color: #f8f9fa !important; }
.bg-dark       { background-color: #212529 !important; }
.bg-transparent { background-color: transparent !important; }

/* ═══════════════════════════════════════════════════
   8. SIZING
   ═══════════════════════════════════════════════════ */
.w-25  { width: 25%   !important; }
.w-50  { width: 50%   !important; }
.w-75  { width: 75%   !important; }
.w-100 { width: 100%  !important; }
.w-auto{ width: auto  !important; }
.mw-100{ max-width: 100% !important; }
.vw-100{ width: 100vw !important; }
.min-vw-100 { min-width: 100vw !important; }

.h-25  { height: 25%   !important; }
.h-50  { height: 50%   !important; }
.h-75  { height: 75%   !important; }
.h-100 { height: 100%  !important; }
.h-auto{ height: auto  !important; }
.mh-100{ max-height: 100% !important; }
.vh-100{ height: 100vh !important; }
.min-vh-100 { min-height: 100vh !important; }

/* ═══════════════════════════════════════════════════
   9. POSITION
   ═══════════════════════════════════════════════════ */
.position-static   { position: static   !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed    { position: fixed    !important; }
.position-sticky   { position: sticky   !important; }

.top-0    { top:    0    !important; }
.top-50   { top:    50%  !important; }
.top-100  { top:    100% !important; }
.bottom-0 { bottom: 0    !important; }
.start-0  { left:   0    !important; }
.start-50 { left:   50%  !important; }
.end-0    { right:  0    !important; }

.translate-middle { transform: translate(-50%, -50%) !important; }

/* ═══════════════════════════════════════════════════
   10. OVERFLOW
   ═══════════════════════════════════════════════════ */
.overflow-auto    { overflow: auto    !important; }
.overflow-hidden  { overflow: hidden  !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll  { overflow: scroll  !important; }
.overflow-x-auto  { overflow-x: auto !important; }
.overflow-y-auto  { overflow-y: auto !important; }

/* ═══════════════════════════════════════════════════
   11. BORDER UTILITIES
   ═══════════════════════════════════════════════════ */
.border       { border: 1px solid #dee2e6 !important; }
.border-0     { border: 0 !important; }
.border-top   { border-top:    1px solid #dee2e6 !important; }
.border-bottom{ border-bottom: 1px solid #dee2e6 !important; }
.border-start { border-left:   1px solid #dee2e6 !important; }
.border-end   { border-right:  1px solid #dee2e6 !important; }

.border-primary   { border-color: var(--brand)   !important; }
.border-secondary { border-color: var(--text-secondary) !important; }
.border-success   { border-color: var(--success) !important; }
.border-danger    { border-color: var(--error)   !important; }
.border-warning   { border-color: var(--warning) !important; }
.border-info      { border-color: var(--info)    !important; }
.border-light     { border-color: #f8f9fa !important; }
.border-dark      { border-color: #212529 !important; }
.border-white     { border-color: #ffffff !important; }

.border-1 { border-width: 1px !important; }
.border-2 { border-width: 2px !important; }
.border-3 { border-width: 3px !important; }

.rounded        { border-radius: .375rem !important; }
.rounded-0      { border-radius: 0 !important; }
.rounded-1      { border-radius: .25rem  !important; }
.rounded-2      { border-radius: .375rem !important; }
.rounded-3      { border-radius: .5rem   !important; }
.rounded-4      { border-radius: 1rem    !important; }
.rounded-5      { border-radius: 2rem    !important; }
.rounded-circle { border-radius: 50%    !important; }
.rounded-pill   { border-radius: 50rem  !important; }
.rounded-top    { border-top-left-radius: .375rem !important; border-top-right-radius: .375rem !important; }
.rounded-bottom { border-bottom-left-radius: .375rem !important; border-bottom-right-radius: .375rem !important; }

/* ═══════════════════════════════════════════════════
   12. SHADOW
   ═══════════════════════════════════════════════════ */
.shadow-none { box-shadow: none !important; }
.shadow-sm   { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }
.shadow      { box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important; }
.shadow-lg   { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }

/* ═══════════════════════════════════════════════════
   13. VISIBILITY / OPACITY
   ═══════════════════════════════════════════════════ */
.visible   { visibility: visible !important; }
.invisible { visibility: hidden  !important; }
.opacity-0   { opacity: 0    !important; }
.opacity-25  { opacity: .25  !important; }
.opacity-50  { opacity: .5   !important; }
.opacity-75  { opacity: .75  !important; }
.opacity-100 { opacity: 1    !important; }

/* ═══════════════════════════════════════════════════
   14. MISCELLANEOUS UTILITIES
   ═══════════════════════════════════════════════════ */
.float-start { float: left  !important; }
.float-end   { float: right !important; }
.float-none  { float: none  !important; }

.clearfix::after { display: block; clear: both; content: ""; }

.user-select-none { user-select: none !important; }
.user-select-all  { user-select: all  !important; }

.pe-none { pointer-events: none !important; }
.pe-auto { pointer-events: auto !important; }

.cursor-pointer { cursor: pointer !important; }

.small, small { font-size: .875em !important; }

.vr {
    display: inline-block;
    align-self: stretch;
    width: 1px;
    min-height: 1em;
    background-color: currentcolor;
    opacity: .25;
}

.sr-only, .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ═══════════════════════════════════════════════════
   15. GRID SYSTEM
   ═══════════════════════════════════════════════════ */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}
.container       { max-width: 1320px; }
.container-sm    { max-width: 540px; }
.container-md    { max-width: 720px; }
.container-lg    { max-width: 960px; }
.container-xl    { max-width: 1140px; }
.container-xxl   { max-width: 1400px; }
.container-fluid { max-width: none; }

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
}
.g-0, .gx-0 { --bs-gutter-x: 0; }
.g-1, .gx-1 { --bs-gutter-x: .25rem; }
.g-2, .gx-2 { --bs-gutter-x: .5rem; }
.g-3, .gx-3 { --bs-gutter-x: 1rem; }
.g-4, .gx-4 { --bs-gutter-x: 1.5rem; }
.g-0, .gy-0 { --bs-gutter-y: 0; }
.g-1, .gy-1 { --bs-gutter-y: .25rem; }
.g-2, .gy-2 { --bs-gutter-y: .5rem; }
.g-3, .gy-3 { --bs-gutter-y: 1rem; }
.g-4, .gy-4 { --bs-gutter-y: 1.5rem; }

.col       { flex: 1 0 0%; }
.col-auto  { flex: 0 0 auto; width: auto; }
.col-1     { flex: 0 0 auto; width: 8.3333%; }
.col-2     { flex: 0 0 auto; width: 16.6667%; }
.col-3     { flex: 0 0 auto; width: 25%; }
.col-4     { flex: 0 0 auto; width: 33.3333%; }
.col-5     { flex: 0 0 auto; width: 41.6667%; }
.col-6     { flex: 0 0 auto; width: 50%; }
.col-7     { flex: 0 0 auto; width: 58.3333%; }
.col-8     { flex: 0 0 auto; width: 66.6667%; }
.col-9     { flex: 0 0 auto; width: 75%; }
.col-10    { flex: 0 0 auto; width: 83.3333%; }
.col-11    { flex: 0 0 auto; width: 91.6667%; }
.col-12    { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
    .col-sm       { flex: 1 0 0%; }
    .col-sm-auto  { flex: 0 0 auto; width: auto; }
    .col-sm-1     { flex: 0 0 auto; width: 8.3333%; }
    .col-sm-2     { flex: 0 0 auto; width: 16.6667%; }
    .col-sm-3     { flex: 0 0 auto; width: 25%; }
    .col-sm-4     { flex: 0 0 auto; width: 33.3333%; }
    .col-sm-5     { flex: 0 0 auto; width: 41.6667%; }
    .col-sm-6     { flex: 0 0 auto; width: 50%; }
    .col-sm-8     { flex: 0 0 auto; width: 66.6667%; }
    .col-sm-12    { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 768px) {
    .col-md       { flex: 1 0 0%; }
    .col-md-auto  { flex: 0 0 auto; width: auto; }
    .col-md-2     { flex: 0 0 auto; width: 16.6667%; }
    .col-md-3     { flex: 0 0 auto; width: 25%; }
    .col-md-4     { flex: 0 0 auto; width: 33.3333%; }
    .col-md-5     { flex: 0 0 auto; width: 41.6667%; }
    .col-md-6     { flex: 0 0 auto; width: 50%; }
    .col-md-7     { flex: 0 0 auto; width: 58.3333%; }
    .col-md-8     { flex: 0 0 auto; width: 66.6667%; }
    .col-md-9     { flex: 0 0 auto; width: 75%; }
    .col-md-10    { flex: 0 0 auto; width: 83.3333%; }
    .col-md-12    { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 992px) {
    .col-lg       { flex: 1 0 0%; }
    .col-lg-auto  { flex: 0 0 auto; width: auto; }
    .col-lg-2     { flex: 0 0 auto; width: 16.6667%; }
    .col-lg-3     { flex: 0 0 auto; width: 25%; }
    .col-lg-4     { flex: 0 0 auto; width: 33.3333%; }
    .col-lg-6     { flex: 0 0 auto; width: 50%; }
    .col-lg-8     { flex: 0 0 auto; width: 66.6667%; }
    .col-lg-9     { flex: 0 0 auto; width: 75%; }
    .col-lg-12    { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 1200px) {
    .col-xl       { flex: 1 0 0%; }
    .col-xl-auto  { flex: 0 0 auto; width: auto; }
    .col-xl-3     { flex: 0 0 auto; width: 25%; }
    .col-xl-4     { flex: 0 0 auto; width: 33.3333%; }
    .col-xl-6     { flex: 0 0 auto; width: 50%; }
    .col-xl-8     { flex: 0 0 auto; width: 66.6667%; }
    .col-xl-10    { flex: 0 0 auto; width: 83.3333%; }
    .col-xl-12    { flex: 0 0 auto; width: 100%; }
}

/* Vertical alignment inside table cells */
.align-top      { vertical-align: top     !important; }
.align-middle   { vertical-align: middle  !important; }
.align-bottom   { vertical-align: bottom  !important; }
.align-baseline { vertical-align: baseline !important; }

/* ═══════════════════════════════════════════════════
   16. CARD COMPONENT
   ═══════════════════════════════════════════════════ */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: var(--bs-card-height);
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0,0,0,.125);
    border-radius: .375rem;
}
.card-body {
    flex: 1 1 auto;
    padding: 1rem 1rem;
}
.card-header {
    padding: .5rem 1rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
}
.card-header:first-child { border-radius: calc(.375rem - 1px) calc(.375rem - 1px) 0 0; }
.card-footer {
    padding: .5rem 1rem;
    background-color: rgba(0,0,0,.03);
    border-top: 1px solid rgba(0,0,0,.125);
}
.card-footer:last-child  { border-radius: 0 0 calc(.375rem - 1px) calc(.375rem - 1px); }
.card-title    { margin-bottom: .5rem; }
.card-subtitle { margin-top: -.25rem; margin-bottom: 0; }
.card-text:last-child { margin-bottom: 0; }
.card-img-top  { width: 100%; border-top-left-radius: calc(.375rem - 1px); border-top-right-radius: calc(.375rem - 1px); }

/* ═══════════════════════════════════════════════════
   17. TABLE COMPONENT
   ═══════════════════════════════════════════════════ */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-color: inherit;
    --bs-table-striped-bg: rgba(0,0,0,.05);
    --bs-table-hover-color: inherit;
    --bs-table-hover-bg: rgba(0,0,0,.075);
    width: 100%;
    margin-bottom: 1rem;
    color: inherit;
    vertical-align: top;
    border-color: #dee2e6;
}
.table > :not(caption) > * > * {
    padding: .5rem .5rem;
    background-color: var(--bs-table-bg);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg, transparent);
}
.table > thead     { vertical-align: bottom; }
.table > :not(:first-child) { border-top: 2px solid currentcolor; }
.table th, .table td { border-bottom: 1px solid #dee2e6; }

.table-sm > :not(caption) > * > * { padding: .25rem .25rem; }

.table-hover > tbody > tr:hover > * { --bs-table-accent-bg: var(--bs-table-hover-bg, rgba(0,0,0,.075)); }

.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: var(--bs-table-striped-bg); }

.table-light {
    --bs-table-bg: #f8f9fa;
    --bs-table-striped-bg: #ecedee;
    --bs-table-hover-bg: #dfe0e1;
    color: #000;
    border-color: #dfe0e1;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-bordered > :not(caption) > * { border-width: 1px 0; }
.table-bordered > :not(caption) > * > * { border-width: 0 1px; }
.table-borderless > :not(caption) > * > * { border-bottom-width: 0; }
.table-borderless > :not(:first-child) { border-top-width: 0; }

/* ═══════════════════════════════════════════════════
   18. FORM COMPONENTS
   ═══════════════════════════════════════════════════ */
.form-label {
    margin-bottom: .5rem;
    display: block;
    font-size: inherit;
}
.form-text {
    margin-top: .25rem;
    font-size: .875em;
    color: #6c757d;
}

.form-control {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: .375rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}
.form-control::placeholder { color: #6c757d; opacity: 1; }
.form-control:disabled, .form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}
.form-control-sm {
    min-height: calc(1.5em + .5rem + 2px);
    padding: .25rem .5rem;
    font-size: .875rem;
    border-radius: .25rem;
}
.form-control-lg {
    min-height: calc(1.5em + 1rem + 2px);
    padding: .5rem 1rem;
    font-size: 1.25rem;
    border-radius: .5rem;
}
.form-control-plaintext {
    display: block;
    width: 100%;
    padding: .375rem 0;
    margin-bottom: 0;
    line-height: 1.5;
    background-color: transparent;
    border: 1px solid transparent;
}

.form-select {
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    appearance: none;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-select:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}
.form-select:disabled { background-color: #e9ecef; }
.form-select-sm {
    padding-top: .25rem;
    padding-bottom: .25rem;
    padding-left: .5rem;
    font-size: .875rem;
    border-radius: .25rem;
}
.form-select-lg {
    padding-top: .5rem;
    padding-bottom: .5rem;
    padding-left: 1rem;
    font-size: 1.25rem;
    border-radius: .5rem;
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: .125rem;
}
.form-check .form-check-input { float: left; margin-left: -1.5em; }
.form-check-inline { display: inline-block; margin-right: 1rem; }
.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: .25em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0,0,0,.25);
    appearance: none;
    print-color-adjust: exact;
}
.form-check-input[type=checkbox] { border-radius: .25em; }
.form-check-input[type=radio]    { border-radius: 50%; }
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.form-check-input:checked[type=radio] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}
.form-check-input:disabled { pointer-events: none; filter: none; opacity: .5; }
.form-check-label { cursor: pointer; }

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}
.input-group > .form-control,
.input-group > .form-select {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .input-group-text { font-size: .875rem; }
.input-group-lg > .form-control,
.input-group-lg > .form-select,
.input-group-lg > .input-group-text { font-size: 1.25rem; }
.input-group-text {
    display: flex;
    align-items: center;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: .375rem;
}

/* Rounded corners for joined inputs */
.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
.input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n+3) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ═══════════════════════════════════════════════════
   19. BADGE
   ═══════════════════════════════════════════════════ */
.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .375rem;
}
.badge.bg-primary    { background-color: #0d6efd !important; }
.badge.bg-secondary  { background-color: #6c757d !important; }
.badge.bg-success    { background-color: #198754 !important; }
.badge.bg-danger     { background-color: #dc3545 !important; }
.badge.bg-warning    { background-color: #ffc107 !important; color: #000 !important; }
.badge.bg-info       { background-color: #0dcaf0 !important; color: #000 !important; }
.badge.bg-light      { background-color: #f8f9fa !important; color: #000 !important; }
.badge.bg-dark       { background-color: #212529 !important; }

/* ═══════════════════════════════════════════════════
   20. BUTTON — BASE STRUCTURE
   (Colours are in app.css and theme.css, JS-driven buttons in app.css)
   ═══════════════════════════════════════════════════ */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: .375rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.btn:disabled, .btn.disabled { pointer-events: none; opacity: .65; }

.btn-sm { padding: .25rem .5rem; font-size: .875rem; border-radius: .25rem; }
.btn-lg { padding: .5rem 1rem;  font-size: 1.25rem; border-radius: .5rem; }

.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: .25em .25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") 50%/1em auto no-repeat;
    border: 0;
    border-radius: .375rem;
    opacity: .5;
    cursor: pointer;
    appearance: none;
}
.btn-close:hover  { opacity: .75; }
.btn-close:focus  { opacity: 1; outline: 0; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); }
.btn-link { font-weight: 400; text-decoration: underline; color: var(--brand, #0d6efd); }
.btn-link:hover { text-decoration: none; }

/* btn-group */
.btn-group,
.btn-group-sm,
.btn-group-lg {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}
.btn-group > .btn { position: relative; flex: 1 1 auto; }
.btn-group > .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-group > .btn:not(:first-child) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn-group-sm > .btn { padding: .25rem .5rem; font-size: .875rem; border-radius: .25rem; }

/* ═══════════════════════════════════════════════════
   21. LIST GROUP
   ═══════════════════════════════════════════════════ */
.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: .375rem;
}
.list-group-item {
    position: relative;
    display: block;
    padding: .5rem 1rem;
    color: #212529;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.125);
}
.list-group-item:first-child  { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.list-group-item:last-child   { border-bottom-right-radius: inherit; border-bottom-left-radius: inherit; }
.list-group-item + .list-group-item { border-top-width: 0; }
.list-group-item.active {
    z-index: 2;
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}
.list-group-item.disabled,
.list-group-item:disabled { color: #6c757d; pointer-events: none; background-color: #fff; }

.list-group-sm .list-group-item { padding: .25rem .5rem; font-size: .875rem; }

.list-group-flush { border-radius: 0; }
.list-group-flush > .list-group-item { border-width: 0 0 1px; }
.list-group-flush > .list-group-item:last-child { border-bottom-width: 0; }

/* ═══════════════════════════════════════════════════
   22. DROPDOWN
   ═══════════════════════════════════════════════════ */
.dropdown { position: relative; }
.dropdown-toggle::after {
    display: inline-block;
    margin-left: .255em;
    vertical-align: .255em;
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}
.dropdown-toggle:empty::after { margin-left: 0; }

.dropdown-menu {
    --bs-dropdown-zindex: 1000;
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: .5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .375rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}
.dropdown-menu.show { display: block; }
.dropdown-menu-end { right: 0; left: auto; }

.dropdown-item {
    display: block;
    width: 100%;
    padding: .25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}
.dropdown-item:hover,
.dropdown-item:focus { color: #1e2125; background-color: #e9ecef; }
.dropdown-item.active,
.dropdown-item:active { color: #fff; background-color: #0d6efd; }
.dropdown-item:disabled,
.dropdown-item.disabled { color: #adb5bd; pointer-events: none; background-color: transparent; }

.dropdown-divider {
    height: 0;
    margin: .5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,.15);
}
.dropdown-header {
    display: block;
    padding: .5rem 1rem;
    margin-bottom: 0;
    font-size: .875rem;
    color: #6c757d;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   23. NAV / TABS / PILLS
   ═══════════════════════════════════════════════════ */
.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}
.nav-link {
    display: block;
    padding: .5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #0d6efd;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    cursor: pointer;
}
.nav-link:hover, .nav-link:focus { color: #0a58ca; }
.nav-link.disabled { color: #6c757d; pointer-events: none; cursor: default; }

.nav-tabs { border-bottom: 1px solid #dee2e6; }
.nav-tabs .nav-link {
    margin-bottom: -1px;
    background: none;
    border: 1px solid transparent;
    border-top-left-radius: .375rem;
    border-top-right-radius: .375rem;
}
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus { border-color: #e9ecef #e9ecef #dee2e6; isolation: isolate; }
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}
.nav-tabs .dropdown-menu { margin-top: -1px; border-top-left-radius: 0; border-top-right-radius: 0; }

.nav-pills .nav-link { background: none; border: 0; border-radius: .375rem; }
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link { color: #fff; background-color: #0d6efd; }

.nav-item { flex: 0 0 auto; }
.nav-fill > .nav-link,
.nav-fill .nav-item { flex: 1 1 auto; text-align: center; }
.nav-justified > .nav-link,
.nav-justified .nav-item { flex-basis: 0; flex-grow: 1; text-align: center; }

/* ═══════════════════════════════════════════════════
   24. ALERT — BASE STRUCTURE
   (Colours are in theme.css)
   ═══════════════════════════════════════════════════ */
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .375rem;
}
.alert-heading { color: inherit; }
.alert-link    { font-weight: 700; }
.alert-dismissible { padding-right: 3rem; }
.alert-dismissible .btn-close { position: absolute; top: 0; right: 0; z-index: 2; padding: 1.25rem 1rem; }
.alert-success  { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.alert-danger   { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
.alert-warning  { color: #664d03; background-color: #fff3cd; border-color: #ffecb5; }
.alert-info     { color: #055160; background-color: #cff4fc; border-color: #b6effb; }
.alert-primary  { color: #084298; background-color: #cfe2ff; border-color: #b6d4fe; }
.alert-secondary{ color: #41464b; background-color: #e2e3e5; border-color: #d3d6d8; }

/* ═══════════════════════════════════════════════════
   25. MODAL — BASE STRUCTURE
   ═══════════════════════════════════════════════════ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
}
.modal.show   { display: block; }
.modal.d-block { display: block; }
.modal-dialog {
    position: relative;
    width: auto;
    margin: .5rem;
    pointer-events: none;
}
.modal.show .modal-dialog { transform: none; }
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}
.modal-dialog-scrollable { height: calc(100% - 1rem); }
.modal-dialog-scrollable .modal-content { max-height: 100%; overflow: hidden; }
.modal-dialog-scrollable .modal-body { overflow-y: auto; }
.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
}
.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
}
.modal-fullscreen .modal-body { overflow-y: auto; }
.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: .5rem;
    outline: 0;
}
.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(.5rem - 1px);
    border-top-right-radius: calc(.5rem - 1px);
}
.modal-title { margin-bottom: 0; line-height: 1.5; }
.modal-body  { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: .75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(.5rem - 1px);
    border-bottom-left-radius: calc(.5rem - 1px);
    gap: .5rem;
}
.modal-sm { max-width: 300px; }
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1140px; }
@media (min-width: 576px) {
    .modal-dialog { max-width: 500px; margin: 1.75rem auto; }
    .modal-dialog-centered { min-height: calc(100% - 3.5rem); }
    .modal-dialog-scrollable { height: calc(100% - 3.5rem); }
    .modal-sm { max-width: 300px; }
}
@media (min-width: 992px) {
    .modal-lg, .modal-xl { max-width: 800px; }
}
@media (min-width: 1200px) {
    .modal-xl { max-width: 1140px; }
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}
.modal-backdrop.show { opacity: .5; }

/* ═══════════════════════════════════════════════════
   26. SPINNER
   ═══════════════════════════════════════════════════ */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -.125em;
    border: .25em solid currentcolor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: .75s linear infinite spinner-border;
}
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .2em; }
.spinner-grow {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -.125em;
    background-color: currentcolor;
    border-radius: 50%;
    opacity: 0;
    animation: .75s linear infinite spinner-grow;
}
.spinner-grow-sm { width: 1rem; height: 1rem; }
@keyframes spinner-border { to { transform: rotate(360deg); } }
@keyframes spinner-grow   { 0% { transform: scale(0); } 50% { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════
   27. OFFCANVAS
   ═══════════════════════════════════════════════════ */
.offcanvas {
    position: fixed;
    bottom: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    color: inherit;
    visibility: hidden;
    background-color: #fff;
    background-clip: padding-box;
    outline: 0;
    transition: transform .3s ease-in-out;
}
.offcanvas.show { transform: none; visibility: visible; }
.offcanvas-start { top: 0; left: 0; width: 400px; border-right: 1px solid rgba(0,0,0,.2); transform: translateX(-100%); }
.offcanvas-end   { top: 0; right: 0; width: 400px; border-left:  1px solid rgba(0,0,0,.2); transform: translateX(100%); }
.offcanvas-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1rem; }
.offcanvas-title  { margin-bottom: 0; line-height: 1.5; }
.offcanvas-body   { flex-grow: 1; padding: 1rem 1rem; overflow-y: auto; }

.offcanvas-backdrop {
    position: fixed;
    top: 0; left: 0;
    z-index: 1040;
    width: 100vw; height: 100vh;
    background-color: #000;
}
.offcanvas-backdrop.show { opacity: .5; }

/* ═══════════════════════════════════════════════════
   28. PROGRESS BAR
   ═══════════════════════════════════════════════════ */
.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: .75rem;
    background-color: #e9ecef;
    border-radius: .375rem;
}
.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: #0d6efd;
    transition: width .6s ease;
}

/* ═══════════════════════════════════════════════════
   29. TOOLTIP / POPOVER
   ═══════════════════════════════════════════════════ */
.tooltip {
    position: absolute;
    z-index: 1080;
    display: block;
    margin: 0;
    font-size: .875rem;
    word-wrap: break-word;
    opacity: 0;
}
.tooltip.show { opacity: .9; }
.tooltip-inner {
    max-width: 200px;
    padding: .25rem .5rem;
    color: #fff;
    text-align: center;
    background-color: #000;
    border-radius: .375rem;
}

/* ═══════════════════════════════════════════════════
   30. PAGINATION
   ═══════════════════════════════════════════════════ */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
}
.page-link {
    position: relative;
    display: block;
    color: #0d6efd;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    padding: .375rem .75rem;
}
.page-link:hover { z-index: 2; color: #0a58ca; background-color: #e9ecef; border-color: #dee2e6; }
.page-item.active .page-link { z-index: 3; color: #fff; background-color: #0d6efd; border-color: #0d6efd; }
.page-item.disabled .page-link { color: #6c757d; pointer-events: none; background-color: #fff; border-color: #dee2e6; }
.page-item:first-child .page-link { border-top-left-radius: .375rem; border-bottom-left-radius: .375rem; }
.page-item:last-child .page-link  { border-top-right-radius: .375rem; border-bottom-right-radius: .375rem; }

/* ═══════════════════════════════════════════════════
   31. MISC LAYOUT HELPERS
   ═══════════════════════════════════════════════════ */
.text-end     { text-align: right  !important; }       /* repeated for specificity with tables */
.text-center  { text-align: center !important; }
.text-start   { text-align: left   !important; }

.float-start  { float: left  !important; }
.float-end    { float: right !important; }
.float-none   { float: none  !important; }

.ratio { position: relative; width: 100%; }
.ratio::before { display: block; padding-top: var(--bs-aspect-ratio); content: ""; }
.ratio > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.ratio-16x9 { --bs-aspect-ratio: 56.25%; }
.ratio-4x3  { --bs-aspect-ratio: 75%; }
.ratio-1x1  { --bs-aspect-ratio: 100%; }

/* ═══════════════════════════════════════════════════
   32. REBOOT — MINIMAL ELEMENT DEFAULTS
   (Replaces Bootstrap's _reboot.scss)
   ═══════════════════════════════════════════════════ */
:root { -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

hr { margin: 1rem 0; color: inherit; border: 0; border-top: 1px solid; opacity: .25; }

p { margin-top: 0; margin-bottom: 1rem; }
abbr[title] { text-decoration: underline dotted; cursor: help; text-decoration-skip-ink: none; }
address { margin-bottom: 1rem; font-style: normal; line-height: inherit; }
ol, ul { padding-left: 2rem; }
ol, ul, dl { margin-top: 0; margin-bottom: 1rem; }
ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; }
dt { font-weight: 700; }
dd { margin-bottom: .5rem; margin-left: 0; }
blockquote { margin: 0 0 1rem; }
b, strong { font-weight: bolder; }
small { font-size: .875em; }
mark  { padding: .1875em; background-color: #fff3cd; }
sub, sup { position: relative; font-size: .75em; line-height: 0; vertical-align: baseline; }
sub { bottom: -.25em; }
sup { top: -.5em; }

a { color: #0d6efd; text-decoration: underline; }
a:hover { color: #0a58ca; }
a:not([href]):not([class]), a:not([href]):not([class]):hover { color: inherit; text-decoration: none; }

code, kbd, samp, pre { font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 1em; }
pre { display: block; margin-top: 0; margin-bottom: 1rem; overflow: auto; font-size: .875em; }
pre code { font-size: inherit; color: inherit; word-break: normal; }
code { font-size: .875em; color: #d63384; word-wrap: break-word; }
a > code { color: inherit; }
kbd { padding: .1875rem .375rem; font-size: .875em; color: #fff; background-color: #212529; border-radius: .25rem; }
kbd kbd { padding: 0; font-size: 1em; }

img, svg { vertical-align: middle; }
table { caption-side: bottom; border-collapse: collapse; }
caption { padding-top: .5rem; padding-bottom: .5rem; color: #6c757d; text-align: left; }
th { text-align: inherit; text-align: -webkit-match-parent; }

label { display: inline-block; }
button { border-radius: 0; }
button:focus:not(:focus-visible) { outline: 0; }
input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
button, select { text-transform: none; }
[role="button"] { cursor: pointer; }
select { word-wrap: normal; }
select:disabled { opacity: 1; }
[list]::-webkit-calendar-picker-indicator { display: none; }
textarea { resize: vertical; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { float: left; width: 100%; padding: 0; margin-bottom: .5rem; font-size: 1.5rem; font-weight: 700; line-height: inherit; }
legend + * { clear: left; }
[type="search"] { outline-offset: -2px; -webkit-appearance: textfield; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-color-swatch-wrapper { padding: 0; }
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button { height: auto; }
output { display: inline-block; }
iframe { border: 0; }
summary { display: list-item; cursor: pointer; }
progress { vertical-align: baseline; }
[hidden] { display: none !important; }
