/* =========================================================
 * bootstrap-compat.css - Bootstrap 5 CSS compatibility layer
 * Replaces bootstrap.min.css (228KB) with only the classes
 * actually used in the engineering_web templates.
 * ========================================================= */

/* === Reset === */
*, ::after, ::before { box-sizing: border-box; }

/* === Grid System === */
.container, .container-fluid { width: 100%; padding-right: var(--bs-gutter-x, 0.75rem); padding-left: var(--bs-gutter-x, 0.75rem); 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; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.row { display: flex; flex-wrap: wrap; margin-top: calc(-1 * var(--bs-gutter-y, 0)); margin-right: calc(-.5 * var(--bs-gutter-x, 0.75rem)); margin-left: calc(-.5 * var(--bs-gutter-x, 0.75rem)); }
.row > * { flex-shrink: 0; width: 100%; max-width: 100%; padding-right: calc(var(--bs-gutter-x, 0.75rem) * .5); padding-left: calc(var(--bs-gutter-x, 0.75rem) * .5); margin-top: var(--bs-gutter-y, 0); }

.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 auto; width: 8.333333%; }
.col-2 { flex: 0 0 auto; width: 16.666667%; }
.col-3 { flex: 0 0 auto; width: 25%; }
.col-4 { flex: 0 0 auto; width: 33.333333%; }
.col-5 { flex: 0 0 auto; width: 41.666667%; }
.col-6 { flex: 0 0 auto; width: 50%; }
.col-7 { flex: 0 0 auto; width: 58.333333%; }
.col-8 { flex: 0 0 auto; width: 66.666667%; }
.col-9 { flex: 0 0 auto; width: 75%; }
.col-10 { flex: 0 0 auto; width: 83.333333%; }
.col-11 { flex: 0 0 auto; width: 91.666667%; }
.col-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
  .col-sm-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-sm-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-sm-3 { flex: 0 0 auto; width: 25%; }
  .col-sm-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-sm-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-sm-6 { flex: 0 0 auto; width: 50%; }
  .col-sm-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-sm-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-sm-9 { flex: 0 0 auto; width: 75%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-md-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-md-3 { flex: 0 0 auto; width: 25%; }
  .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%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-md-9 { flex: 0 0 auto; width: 75%; }
  .col-md-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-1 { flex: 0 0 auto; width: 8.333333%; }
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .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-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-9 { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* === Cards === */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word; background-color: var(--bs-card-bg, #fff); background-clip: border-box; border: var(--bs-card-border-width, 1px) solid var(--bs-card-border-color, rgba(0,0,0,.125)); border-radius: var(--bs-card-border-radius, 0.375rem); }
.card-body { flex: 1 1 auto; padding: var(--bs-card-spacer-y, 1rem) var(--bs-card-spacer-x, 1rem); color: var(--bs-card-color, inherit); }
.card-header { padding: var(--bs-card-cap-padding-y, 0.5rem) var(--bs-card-cap-padding-x, 1rem); margin-bottom: 0; color: var(--bs-card-cap-color, inherit); background-color: var(--bs-card-cap-bg, rgba(0,0,0,.03)); border-bottom: var(--bs-card-border-width, 1px) solid var(--bs-card-border-color, rgba(0,0,0,.125)); }
.card-footer { padding: var(--bs-card-cap-padding-y, 0.5rem) var(--bs-card-cap-padding-x, 1rem); color: var(--bs-card-cap-color, inherit); background-color: var(--bs-card-cap-bg, rgba(0,0,0,.03)); border-top: var(--bs-card-border-width, 1px) solid var(--bs-card-border-color, rgba(0,0,0,.125)); }
.card-title { margin-bottom: 0.5rem; }
.card-subtitle { margin-top: -0.25rem; margin-bottom: 0; }
.card-text:last-child { margin-bottom: 0; }
.card-img-top { width: 100%; }

/* === Buttons === */
.btn { display: inline-block; font-weight: 400; line-height: 1.5; text-align: center; text-decoration: none; vertical-align: middle; cursor: pointer; user-select: none; border: 1px solid transparent; padding: 0.375rem 0.75rem; font-size: 1rem; border-radius: 0.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:hover { text-decoration: none; }
.btn:disabled { pointer-events: none; opacity: 0.65; }
.btn-primary { color: #fff; background-color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { color: #fff; background-color: #0b5ed7; border-color: #0a58ca; }
.btn-secondary { color: #fff; background-color: #6c757d; border-color: #6c757d; }
.btn-secondary:hover { color: #fff; background-color: #5c636a; border-color: #565e64; }
.btn-success { color: #fff; background-color: #198754; border-color: #198754; }
.btn-success:hover { color: #fff; background-color: #157347; border-color: #146c43; }
.btn-danger { color: #fff; background-color: #dc3545; border-color: #dc3545; }
.btn-danger:hover { color: #fff; background-color: #bb2d3b; border-color: #b02a37; }
.btn-warning { color: #000; background-color: #ffc107; border-color: #ffc107; }
.btn-warning:hover { color: #000; background-color: #ffca2c; border-color: #ffc720; }
.btn-info { color: #000; background-color: #0dcaf0; border-color: #0dcaf0; }
.btn-info:hover { color: #000; background-color: #31d2f2; border-color: #25cff2; }
.btn-light { color: #000; background-color: #f8f9fa; border-color: #f8f9fa; }
.btn-light:hover { color: #000; background-color: #d3d4d5; border-color: #c6c7c8; }
.btn-dark { color: #fff; background-color: #212529; border-color: #212529; }
.btn-dark:hover { color: #fff; background-color: #424649; border-color: #373b3e; }
.btn-link { font-weight: 400; color: var(--color-accent); text-decoration: underline; }
.btn-link:hover { color: #0a58ca; }
.btn-outline-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-outline-primary:hover { color: #fff; background-color: var(--color-accent); border-color: var(--color-accent); }
.btn-outline-secondary { color: var(--color-text-body); border-color: var(--color-border-control); }
.btn-outline-secondary:hover { color: var(--color-text-heading); background-color: var(--color-bg-hover); border-color: var(--color-border-hover); }
.btn-outline-success { color: #198754; border-color: #198754; }
.btn-outline-success:hover { color: #fff; background-color: #198754; border-color: #198754; }
.btn-outline-danger { color: var(--color-red); border-color: var(--color-red); }
.btn-outline-danger:hover { color: #fff; background-color: #dc3545; border-color: #dc3545; }
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; border-radius: 0.25rem; }
.btn-lg { padding: 0.5rem 1rem; font-size: 1.25rem; border-radius: 0.5rem; }

/* === Forms === */
.form-control { display: block; width: 100%; padding: 0.375rem 0.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: 0.375rem; transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; }
.form-control:focus { color: #212529; background-color: #fff; border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25); }
.form-control:disabled { background-color: #e9ecef; opacity: 1; }
.form-select { display: block; width: 100%; padding: 0.375rem 2.25rem 0.375rem 0.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 0.75rem center; background-size: 16px 12px; border: 1px solid #ced4da; border-radius: 0.375rem; appearance: none; }
.form-select:focus { border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25); }
.form-label { margin-bottom: 0.5rem; }
.form-text { margin-top: 0.25rem; font-size: 0.875em; color: #6c757d; }
.form-check { display: block; min-height: 1.5rem; padding-left: 1.5em; margin-bottom: 0.125rem; }
.form-check-input { float: left; width: 1em; height: 1em; margin-left: -1.5em; margin-top: 0.25em; appearance: none; background-color: #fff; background-repeat: no-repeat; background-position: center; background-size: contain; border: 1px solid rgba(0,0,0,.25); }
.form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd; }
.form-check-input[type=checkbox] { border-radius: 0.25em; }
.form-check-input[type=radio] { border-radius: 50%; }
.form-check-label { color: inherit; }
.input-group { position: relative; display: flex; flex-wrap: wrap; align-items: stretch; width: 100%; }
.input-group > .form-control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group-text { display: flex; align-items: center; padding: 0.375rem 0.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: 0.375rem; }

/* === Modal (CSS 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-dialog { position: relative; width: auto; margin: 1.75rem auto; max-width: 500px; pointer-events: none; }
.modal.show .modal-dialog { pointer-events: 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: 0.5rem; outline: 0; }
.modal-backdrop { position: fixed; top: 0; left: 0; z-index: 1050; width: 100vw; height: 100vh; background-color: #000; }
.modal-backdrop.show { opacity: 0.5; }
.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: 0.5rem; border-top-right-radius: 0.5rem; }
.modal-title { margin-bottom: 0; line-height: 1.5; }
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-footer { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding: 0.75rem; border-top: 1px solid #dee2e6; border-bottom-right-radius: 0.5rem; border-bottom-left-radius: 0.5rem; gap: 0.5rem; }
.modal-lg { max-width: 800px; }
.modal-xl { max-width: 1140px; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 3.5rem); }
.modal-dialog-scrollable .modal-body { overflow-y: auto; }

/* === Nav / Tabs === */
.nav { display: flex; flex-wrap: wrap; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link { display: block; padding: 0.5rem 1rem; color: #0d6efd; text-decoration: none; }
.nav-link:hover { color: #0a58ca; }
.nav-link.disabled { color: #6c757d; pointer-events: none; cursor: default; }
.nav-tabs { border-bottom: 1px solid #dee2e6; }
.nav-tabs .nav-link { border: 1px solid transparent; border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem; margin-bottom: -1px; }
.nav-tabs .nav-link:hover { border-color: #e9ecef #e9ecef #dee2e6; }
.nav-tabs .nav-link.active { color: #495057; background-color: #fff; border-color: #dee2e6 #dee2e6 #fff; }
.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active { display: block; }

/* === Dropdown === */
.dropdown { position: relative; }
.dropdown-menu { position: absolute; z-index: 1000; display: none; min-width: 10rem; padding: 0.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: 0.375rem; }
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; width: 100%; padding: 0.25rem 1rem; clear: both; font-weight: 400; color: #212529; text-align: inherit; text-decoration: none; white-space: nowrap; background-color: transparent; border: 0; }
.dropdown-item:hover { color: #1e2125; background-color: #e9ecef; }
.dropdown-divider { height: 0; margin: 0.5rem 0; overflow: hidden; border-top: 1px solid rgba(0,0,0,.15); }

/* === Accordion === */
.accordion-item { background-color: #fff; border: 1px solid rgba(0,0,0,.125); }
.accordion-item:not(:first-of-type) { border-top: 0; }
.accordion-button { position: relative; display: flex; align-items: center; width: 100%; padding: 1rem 1.25rem; font-size: 1rem; color: #212529; text-align: left; background-color: #fff; border: 0; border-radius: 0; }
.accordion-button:not(.collapsed) { color: #0c63e4; background-color: #e7f1ff; }
.accordion-button::after { flex-shrink: 0; width: 1.25rem; height: 1.25rem; margin-left: auto; content: ""; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23212529' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-size: 1.25rem; transition: transform .2s ease-in-out; }
.accordion-button:not(.collapsed)::after { transform: rotate(-180deg); }
.accordion-body { padding: 1rem 1.25rem; }
.accordion-collapse { display: none; }
.accordion-collapse.show { display: block; }

/* === Alerts === */
.alert { position: relative; padding: 1rem 1rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0.375rem; }
.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; }

/* === Badge === */
.badge { display: inline-block; padding: 0.35em 0.65em; font-size: 0.75em; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: 0.375rem; }
.bg-primary { background-color: #0d6efd !important; }
.bg-secondary { background-color: #6c757d !important; }
.bg-success { background-color: #198754 !important; }
.bg-danger { background-color: #dc3545 !important; }
.bg-warning { background-color: #ffc107 !important; }
.bg-info { background-color: #0dcaf0 !important; }
.bg-light { background-color: #f8f9fa !important; }
.bg-dark { background-color: #212529 !important; }
.text-bg-primary { color: #fff !important; background-color: rgba(13,110,253,1) !important; }
.text-bg-success { color: #fff !important; background-color: rgba(25,135,84,1) !important; }
.text-bg-danger { color: #fff !important; background-color: rgba(220,53,69,1) !important; }
.text-bg-warning { color: #000 !important; background-color: rgba(255,193,7,1) !important; }
.text-bg-info { color: #000 !important; background-color: rgba(13,202,240,1) !important; }

/* === Table === */
.table { width: 100%; margin-bottom: 1rem; color: #212529; vertical-align: top; border-color: #dee2e6; }
.table > :not(caption) > * > * { padding: 0.5rem 0.5rem; border-bottom-width: 1px; }
.table > thead { vertical-align: bottom; }
.table-bordered > :not(caption) > * > * { border-width: 1px; }
.table-striped > tbody > tr:nth-of-type(odd) { background-color: rgba(0,0,0,.05); }
.table-hover > tbody > tr:hover { background-color: rgba(0,0,0,.075); }
.table-sm > :not(caption) > * > * { padding: 0.25rem 0.25rem; }

/* === Progress === */
.progress { display: flex; height: 1rem; overflow: hidden; font-size: 0.75rem; background-color: #e9ecef; border-radius: 0.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; }

/* === Close button === */
.btn-close { box-sizing: content-box; width: 1em; height: 1em; padding: 0.25em; color: #000; background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%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") center/1em auto no-repeat; border: 0; border-radius: 0.375rem; opacity: 0.5; cursor: pointer; }
.btn-close:hover { opacity: 0.75; }

/* === Text utilities === */
.text-muted { color: #6c757d !important; }
.text-success { color: #198754 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #0dcaf0 !important; }
.text-primary { color: #0d6efd !important; }
.text-secondary { color: #6c757d !important; }
.fw-bold { font-weight: 700 !important; }
.fw-normal { font-weight: 400 !important; }
.text-decoration-none { text-decoration: none !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === Spacing utilities === */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.ms-auto { margin-inline-start: auto !important; }
.me-auto { margin-inline-end: auto !important; }
.me-1 { margin-inline-end: 0.25rem !important; }
.me-2 { margin-inline-end: 0.5rem !important; }
.ms-1 { margin-inline-start: 0.25rem !important; }
.ms-2 { margin-inline-start: 0.5rem !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }

/* === Display utilities === */
.d-none { display: none !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }

/* === Flex utilities === */
.flex-fill { flex: 1 1 auto !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.flex-wrap { flex-wrap: wrap !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }

/* === Position === */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; }

/* === Float === */
.float-end { float: inline-end !important; }
.float-start { float: inline-start !important; }

/* === Border === */
.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; }
.rounded { border-radius: 0.375rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }

/* === Width/Height === */
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }
.h-100 { height: 100% !important; }
.mw-100 { max-width: 100% !important; }

/* === Overflow === */
.overflow-auto { overflow: auto !important; }
.overflow-hidden { overflow: hidden !important; }

/* === Shadow === */
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075) !important; }
.shadow { box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15) !important; }
.shadow-lg { box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important; }
.shadow-none { box-shadow: none !important; }

/* === List group === */
.list-group { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; border-radius: 0.375rem; }
.list-group-item { position: relative; display: block; padding: 0.5rem 1rem; color: #212529; text-decoration: none; background-color: #fff; border: 1px solid rgba(0,0,0,.125); }

/* === Spinner === */
.spinner-border { display: inline-block; width: 2rem; height: 2rem; vertical-align: text-bottom; border: 0.25em solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spinner-border .75s linear infinite; }
@keyframes spinner-border { to { transform: rotate(360deg); } }
.spinner-border-sm { width: 1rem; height: 1rem; border-width: 0.2em; }

/* ── 暗色模式 Bootstrap 类覆盖 ── */
[data-theme="dark"] .table { color: var(--color-text-body); }
[data-theme="dark"] .table-light,
[data-theme="dark"] .table-light th,
[data-theme="dark"] .table-light td { background: var(--color-bg-inset) !important; color: var(--color-text-body) !important; }
[data-theme="dark"] .text-muted { color: var(--color-text-muted) !important; }
[data-theme="dark"] .bg-light { background: var(--color-bg-inset) !important; }
[data-theme="dark"] .bg-white { background: var(--color-bg-card) !important; }
[data-theme="dark"] .border { border-color: var(--color-border-default) !important; }
[data-theme="dark"] .btn-outline-primary { color: var(--color-text-body); border-color: var(--color-border-control); }
[data-theme="dark"] .btn-outline-primary:hover { background: var(--color-bg-hover); color: var(--color-text-heading); }
[data-theme="dark"] .btn-outline-secondary { color: var(--color-text-secondary); border-color: var(--color-border-control); }
[data-theme="dark"] .dropdown-menu { background: var(--color-bg-card); border-color: var(--color-border-default); }
[data-theme="dark"] .dropdown-item { color: var(--color-text-body); }
[data-theme="dark"] .dropdown-item:hover { background: var(--color-bg-hover); }
[data-theme="dark"] .modal-content { background: var(--color-bg-card); border-color: var(--color-border-default); }
[data-theme="dark"] .form-control, [data-theme="dark"] .form-select { background: var(--color-bg-inset); border-color: var(--color-border-control); color: var(--color-text-body); }
[data-theme="dark"] select { background: var(--color-bg-inset); border-color: var(--color-border-control); color: var(--color-text-body); }
[data-theme="dark"] .form-control:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-bg); }
[data-theme="dark"] .accordion-button { background: var(--color-bg-card); color: var(--color-text-body); }
[data-theme="dark"] .accordion-button:not(.collapsed) { background: var(--color-bg-inset); color: var(--color-accent); }
[data-theme="dark"] .accordion-item { background: var(--color-bg-card); border-color: var(--color-border-default); }
[data-theme="dark"] .nav-tabs { border-bottom-color: var(--color-border-default); }
[data-theme="dark"] .nav-tabs .nav-link { color: var(--color-text-secondary); }
[data-theme="dark"] .nav-tabs .nav-link.active { color: var(--color-accent); }
[data-theme="dark"] .page-link { background: var(--color-bg-card); border-color: var(--color-border-default); color: var(--color-text-body); }
[data-theme="dark"] .card-header { background: transparent; border-bottom-color: var(--color-border-divider); }
[data-theme="dark"] .card { background-color: var(--color-bg-card); border-color: var(--color-border-default); }
[data-theme="dark"] .list-group-item { background-color: var(--color-bg-card); color: var(--color-text-body); border-color: var(--color-border-default); }
