/* Minimal Bootstrap fallback for hosting environments where CDN assets fail. */
:root {
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #0dcaf0;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-white: #ffffff;
    --bs-border-color: #dee2e6;
    --bs-body-color: #212529;
    --bs-body-bg: #fff;
    --bs-border-radius: .375rem;
    --bs-border-radius-lg: .5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-xxl: 1.5rem;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
    margin: 0;
    font-family: var(--bs-font-sans-serif);
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    line-height: 1.5;
}
img { max-width: 100%; }
a { color: var(--bs-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }

.container, .container-fluid { width: 100%; margin-right: auto; margin-left: auto; padding-right: .75rem; padding-left: .75rem; }
.row { display: flex; flex-wrap: wrap; margin-right: -.75rem; margin-left: -.75rem; }
.row > * { width: 100%; padding-right: .75rem; padding-left: .75rem; }
.col, .col-12 { flex: 0 0 auto; width: 100%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-sm-6, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-7, .col-lg-8, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-7, .col-xl-8 { width: 100%; }

@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
}
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.333333%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
}
@media (min-width: 1200px) {
  .col-xl-3 { flex: 0 0 auto; width: 25%; }
  .col-xl-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-xl-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-xl-8 { flex: 0 0 auto; width: 66.666667%; }
}

.d-none { display: none !important; }
.d-block { display: block !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; }
.flex-fill { flex: 1 1 auto !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-stretch { align-items: stretch !important; }
.text-center { text-align: center !important; }
.text-end { text-align: right !important; }
.text-lg-end { text-align: inherit; }
.text-nowrap { white-space: nowrap !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.sticky-top { position: sticky; top: 0; z-index: 1020; }
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }
.small, small { font-size: .875em; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.h1, .h2, .h3, .h4, .h5, .h6 { margin-top: 0; margin-bottom: .5rem; font-weight: 600; line-height: 1.2; }
.h1 { font-size: 2.5rem; }
.h2 { font-size: 2rem; }
.h3 { font-size: 1.75rem; }
.h4 { font-size: 1.5rem; }
.h5 { font-size: 1.25rem; }
.h6 { font-size: 1rem; }
.text-muted { color: #6c757d !important; }
.text-white { color: #fff !important; }
.text-dark { color: #212529 !important; }
.text-primary { color: var(--bs-primary) !important; }
.text-success { color: var(--bs-success) !important; }
.text-danger { color: var(--bs-danger) !important; }
.text-warning { color: #997404 !important; }
.text-primary-emphasis { color: #084298 !important; }
.text-success-emphasis { color: #0f5132 !important; }
.text-danger-emphasis { color: #842029 !important; }
.text-warning-emphasis { color: #664d03 !important; }
.text-secondary-emphasis { color: #41464b !important; }
.bg-white { background-color: #fff !important; }
.bg-light { background-color: var(--bs-light) !important; }
.bg-dark { background-color: var(--bs-dark) !important; }
.bg-primary { background-color: var(--bs-primary) !important; color: #fff !important; }
.bg-success { background-color: var(--bs-success) !important; color: #fff !important; }
.bg-danger { background-color: var(--bs-danger) !important; color: #fff !important; }
.bg-warning { background-color: var(--bs-warning) !important; color: #212529 !important; }
.bg-secondary-subtle { background-color: #e2e3e5 !important; }
.bg-success-subtle { background-color: #d1e7dd !important; }
.bg-danger-subtle { background-color: #f8d7da !important; }
.bg-warning-subtle { background-color: #fff3cd !important; }
.bg-primary-subtle { background-color: #cfe2ff !important; }
.bg-dark-subtle { background-color: #ced4da !important; }
.rounded { border-radius: var(--bs-border-radius) !important; }
.rounded-4 { border-radius: 1rem !important; }
.rounded-pill { border-radius: 50rem !important; }
.border { border: 1px solid var(--bs-border-color) !important; }
.border-0 { border: 0 !important; }
.shadow, .shadow-sm { box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important; }

.m-0 { margin: 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; }
.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; }
.me-auto { margin-right: auto !important; }
.me-4 { margin-right: 1.5rem !important; }
.ms-2 { margin-left: .5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !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-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pb-0 { padding-bottom: 0 !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.g-2, .gx-2, .gy-2 { --_g: .5rem; }
.g-3, .gx-3, .gy-3 { --_g: 1rem; }
.g-4, .gx-4, .gy-4 { --_g: 1.5rem; }
.row.g-2 > *, .row.gx-2 > *, .row.gy-2 > *, .row.g-3 > *, .row.gx-3 > *, .row.gy-3 > *, .row.g-4 > *, .row.gx-4 > *, .row.gy-4 > * { padding-right: calc(var(--_g, 0) / 2); padding-left: calc(var(--_g, 0) / 2); margin-top: var(--_g, 0); }
.row.g-2, .row.g-3, .row.g-4 { margin-top: calc(var(--_g, 0) * -1); margin-right: calc(var(--_g, 0) / -2); margin-left: calc(var(--_g, 0) / -2); }

.card { position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word; background-color: #fff; border: 1px solid rgba(0,0,0,.125); border-radius: var(--bs-border-radius-lg); }
.card-body { flex: 1 1 auto; padding: 1rem; }
.alert { position: relative; padding: 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: var(--bs-border-radius-lg); }
.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-secondary { color: #41464b; background-color: #e2e3e5; border-color: #d3d6d8; }
.badge { display: inline-block; padding: .35em .65em; font-size: .75em; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .375rem; }
.btn { display: inline-block; font-weight: 400; color: #212529; text-align: center; vertical-align: middle; cursor: pointer; user-select: none; background-color: transparent; border: 1px solid transparent; padding: .375rem .75rem; font-size: 1rem; line-height: 1.5; border-radius: .375rem; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { color: #fff; background-color: var(--bs-primary); border-color: var(--bs-primary); }
.btn-success { color: #fff; background-color: var(--bs-success); border-color: var(--bs-success); }
.btn-danger { color: #fff; background-color: var(--bs-danger); border-color: var(--bs-danger); }
.btn-light { color: #212529; background-color: #f8f9fa; border-color: #f8f9fa; }
.btn-outline-primary { color: var(--bs-primary); border-color: var(--bs-primary); }
.btn-outline-danger { color: var(--bs-danger); border-color: var(--bs-danger); }
.btn-outline-success { color: var(--bs-success); border-color: var(--bs-success); }
.btn-outline-secondary { color: var(--bs-secondary); border-color: var(--bs-secondary); }
.btn-outline-dark { color: var(--bs-dark); border-color: var(--bs-dark); }
.btn-outline-light { color: #f8f9fa; border-color: #f8f9fa; }
.btn-sm { padding: .25rem .5rem; font-size: .875rem; }
.form-control, .form-select { display: block; width: 100%; padding: .6rem .9rem; font-size: 1rem; line-height: 1.5; color: #212529; background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; appearance: none; border-radius: .75rem; }
.form-label { display: inline-block; margin-bottom: .5rem; }
textarea.form-control { min-height: calc(1.5em + 1.2rem + 2px); }
.table { width: 100%; margin-bottom: 1rem; color: #212529; border-collapse: collapse; }
.table > :not(caption) > * > * { padding: .75rem; border-bottom: 1px solid var(--bs-border-color); }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(0,0,0,.02); }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.navbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: .5rem 1rem; }
.navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: stretch; }
.navbar-nav { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link { display: block; padding: .5rem 1rem; }
.navbar-toggler { padding: .25rem .75rem; font-size: 1.25rem; line-height: 1; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: .375rem; }
.navbar-collapse.collapse:not(.show) { display: none; }
.dropdown-menu { display: none; position: absolute; min-width: 10rem; padding: .5rem 0; margin: 0; background-color: #fff; border: 1px solid rgba(0,0,0,.15); border-radius: .375rem; z-index: 1000; }
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; width: 100%; padding: .25rem 1rem; clear: both; color: #212529; text-align: inherit; white-space: nowrap; background-color: transparent; border: 0; }
.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-dialog { position: relative; width: auto; margin: 1.75rem auto; max-width: 800px; }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0,0,0,.2); border-radius: .75rem; outline: 0; }
.modal-header, .modal-body, .modal-footer { padding: 1rem; }
.modal-header { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--bs-border-color); }
.modal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; border-top: 1px solid var(--bs-border-color); gap: .5rem; }
.btn-close { box-sizing: content-box; width: 1em; height: 1em; padding: .25em; color: #000; background: transparent; border: 0; opacity: .5; }
.fade { transition: opacity .15s linear; }
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }
@media (min-width: 992px) {
  .navbar-expand-lg { flex-wrap: nowrap; justify-content: flex-start; }
  .navbar-expand-lg .navbar-toggler { display: none; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; align-items: center; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .d-lg-block { display: block !important; }
  .d-lg-none { display: none !important; }
  .text-lg-end { text-align: right !important; }
  .flex-lg-row { flex-direction: row !important; }
  .justify-content-lg-center { justify-content: center !important; }
  .align-items-lg-center { align-items: center !important; }
  .align-items-lg-start { align-items: flex-start !important; }
}
