/* =============================================================
   yv-bootstrap.css
   Bootstrap 5 replacement for YourViews2022.
   Covers every Bootstrap class found in .cshtml / .css files.
   No external dependency — pure CSS.
   ============================================================= */

/* ─────────────────────────────────────────
   1. BASE RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
}

img, svg { vertical-align: middle; max-width: 100%; }
a { color: #0d6efd; text-decoration: underline; }
a:hover { color: #0a58ca; }

hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.50);
  opacity: .25;
}

h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: .5rem; font-weight: 500; 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; }

p { margin-top: 0; margin-bottom: 1rem; }
ul, ol { padding-left: 2rem; margin-top: 0; margin-bottom: 1rem; }
label { display: inline-block; }

button {
  cursor: pointer;
  border-radius: 0;
}
button:focus:not(:focus-visible) { outline: 0; }

input, button, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

table { border-collapse: collapse; }

/* ─────────────────────────────────────────
   2. CONTAINER
───────────────────────────────────────── */
.container {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  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; } }

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

/* ─────────────────────────────────────────
   3. GRID — ROW & COLUMNS
───────────────────────────────────────── */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}
.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  box-sizing: border-box;
}

/* Gutters */
.row.g-1 { margin-right: -.125rem; margin-left: -.125rem; margin-top: -.125rem; }
.row.g-1 > * { padding-right: .125rem !important; padding-left: .125rem !important; margin-top: .25rem; }
.row.g-2 { margin-right: -.25rem;  margin-left: -.25rem;  margin-top: -.25rem; }
.row.g-2 > * { padding-right: .25rem  !important; padding-left: .25rem  !important; margin-top: .5rem; }
.row.g-3 { margin-right: -.5rem;   margin-left: -.5rem;   margin-top: -.5rem; }
.row.g-3 > * { padding-right: .5rem   !important; padding-left: .5rem   !important; margin-top: 1rem; }
.row.g-4 { margin-right: -.75rem;  margin-left: -.75rem;  margin-top: -.75rem; }
.row.g-4 > * { padding-right: .75rem  !important; padding-left: .75rem  !important; margin-top: 1.5rem; }
.row.g-5 { margin-right: -1.5rem;  margin-left: -1.5rem;  margin-top: -1.5rem; }
.row.g-5 > * { padding-right: 1.5rem  !important; padding-left: 1.5rem  !important; margin-top: 3rem; }

/* Columns — xs (default) */
.col      { flex: 1 0 0% !important; width: auto !important; }
.col-1    { flex: 0 0 auto; width:  8.3333% !important; }
.col-2    { flex: 0 0 auto; width: 16.6667% !important; }
.col-3    { flex: 0 0 auto; width: 25%      !important; }
.col-4    { flex: 0 0 auto; width: 33.3333% !important; }
.col-5    { flex: 0 0 auto; width: 41.6667% !important; }
.col-6    { flex: 0 0 auto; width: 50%      !important; }
.col-7    { flex: 0 0 auto; width: 58.3333% !important; }
.col-8    { flex: 0 0 auto; width: 66.6667% !important; }
.col-9    { flex: 0 0 auto; width: 75%      !important; }
.col-10   { flex: 0 0 auto; width: 83.3333% !important; }
.col-11   { flex: 0 0 auto; width: 91.6667% !important; }
.col-12   { flex: 0 0 auto; width: 100%     !important; }
.col-auto { flex: 0 0 auto; width: auto     !important; }

/* sm ≥576 */
@media (min-width: 576px) {
  .col-sm-1    { flex: 0 0 auto; width:  8.3333% !important; }
  .col-sm-2    { flex: 0 0 auto; width: 16.6667% !important; }
  .col-sm-3    { flex: 0 0 auto; width: 25%      !important; }
  .col-sm-4    { flex: 0 0 auto; width: 33.3333% !important; }
  .col-sm-5    { flex: 0 0 auto; width: 41.6667% !important; }
  .col-sm-6    { flex: 0 0 auto; width: 50%      !important; }
  .col-sm-7    { flex: 0 0 auto; width: 58.3333% !important; }
  .col-sm-8    { flex: 0 0 auto; width: 66.6667% !important; }
  .col-sm-9    { flex: 0 0 auto; width: 75%      !important; }
  .col-sm-10   { flex: 0 0 auto; width: 83.3333% !important; }
  .col-sm-11   { flex: 0 0 auto; width: 91.6667% !important; }
  .col-sm-12   { flex: 0 0 auto; width: 100%     !important; }
  .col-sm-auto { flex: 0 0 auto; width: auto     !important; }
  .row-cols-sm-2 > * { flex: 0 0 auto; width: 50% !important; }
  .d-sm-none  { display: none !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex  { display: flex !important; }
  .text-sm-start  { text-align: left !important; }
  .text-sm-center { text-align: center !important; }
  .text-sm-end    { text-align: right !important; }
}

/* md ≥768 */
@media (min-width: 768px) {
  .col-md-1    { flex: 0 0 auto; width:  8.3333% !important; }
  .col-md-2    { flex: 0 0 auto; width: 16.6667% !important; }
  .col-md-3    { flex: 0 0 auto; width: 25%      !important; }
  .col-md-4    { flex: 0 0 auto; width: 33.3333% !important; }
  .col-md-5    { flex: 0 0 auto; width: 41.6667% !important; }
  .col-md-6    { flex: 0 0 auto; width: 50%      !important; }
  .col-md-7    { flex: 0 0 auto; width: 58.3333% !important; }
  .col-md-8    { flex: 0 0 auto; width: 66.6667% !important; }
  .col-md-9    { flex: 0 0 auto; width: 75%      !important; }
  .col-md-10   { flex: 0 0 auto; width: 83.3333% !important; }
  .col-md-11   { flex: 0 0 auto; width: 91.6667% !important; }
  .col-md-12   { flex: 0 0 auto; width: 100%     !important; }
  .col-md-auto { flex: 0 0 auto; width: auto     !important; }
  .row-cols-md-2 > * { flex: 0 0 auto; width: 50%      !important; }
  .row-cols-md-3 > * { flex: 0 0 auto; width: 33.3333% !important; }
  .d-md-none  { display: none !important; }
  .d-md-block { display: block !important; }
  .d-md-flex  { display: flex !important; }
  .d-md-inline-block { display: inline-block !important; }
  .flex-md-row    { flex-direction: row !important; }
  .flex-md-column { flex-direction: column !important; }
  .justify-content-md-start   { justify-content: flex-start !important; }
  .justify-content-md-center  { justify-content: center !important; }
  .justify-content-md-end     { justify-content: flex-end !important; }
  .justify-content-md-between { justify-content: space-between !important; }
  .text-md-start  { text-align: left !important; }
  .text-md-center { text-align: center !important; }
  .text-md-end    { text-align: right !important; }
  .mt-md-0 { margin-top: 0 !important; }
  .mt-md-2 { margin-top: .5rem !important; }
  .mt-md-3 { margin-top: 1rem !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
  .ms-md-auto { margin-left: auto !important; }
  .me-md-1 { margin-right: .25rem !important; }
  .mx-md-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
  .mx-md-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
  .my-md-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
  .my-md-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
  .p-md-1  { padding: .25rem !important; }
  .p-md-2  { padding: .5rem !important; }
  .pt-md-0 { padding-top: 0 !important; }
  .pt-md-2 { padding-top: .5rem !important; }
  .ps-md-0 { padding-left: 0 !important; }
  .ps-md-2 { padding-left: .5rem !important; }
  .px-md-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .px-md-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .px-md-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
  .p-sm-0  { padding: 0 !important; }
}

/* lg ≥992 */
@media (min-width: 992px) {
  .col-lg-1    { flex: 0 0 auto; width:  8.3333% !important; }
  .col-lg-2    { flex: 0 0 auto; width: 16.6667% !important; }
  .col-lg-3    { flex: 0 0 auto; width: 25%      !important; }
  .col-lg-4    { flex: 0 0 auto; width: 33.3333% !important; }
  .col-lg-5    { flex: 0 0 auto; width: 41.6667% !important; }
  .col-lg-6    { flex: 0 0 auto; width: 50%      !important; }
  .col-lg-7    { flex: 0 0 auto; width: 58.3333% !important; }
  .col-lg-8    { flex: 0 0 auto; width: 66.6667% !important; }
  .col-lg-9    { flex: 0 0 auto; width: 75%      !important; }
  .col-lg-10   { flex: 0 0 auto; width: 83.3333% !important; }
  .col-lg-11   { flex: 0 0 auto; width: 91.6667% !important; }
  .col-lg-12   { flex: 0 0 auto; width: 100%     !important; }
  .col-lg-auto { flex: 0 0 auto; width: auto     !important; }
  .row-cols-lg-3 > * { flex: 0 0 auto; width: 33.3333% !important; }
  .row-cols-lg-4 > * { flex: 0 0 auto; width: 25%      !important; }
  .d-lg-none  { display: none !important; }
  .d-lg-block { display: block !important; }
  .d-lg-flex  { display: flex !important; }
  .d-lg-inline-block { display: inline-block !important; }
  .flex-lg-row    { flex-direction: row !important; }
  .flex-lg-column { flex-direction: column !important; }
  .justify-content-lg-start   { justify-content: flex-start !important; }
  .justify-content-lg-center  { justify-content: center !important; }
  .justify-content-lg-end     { justify-content: flex-end !important; }
  .justify-content-lg-between { justify-content: space-between !important; }
  .text-lg-start  { text-align: left !important; }
  .text-lg-center { text-align: center !important; }
  .text-lg-end    { text-align: right !important; }
  .mt-lg-auto { margin-top: auto !important; }
  .my-lg-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
  .my-lg-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
  .mx-lg-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
  .me-lg-2 { margin-right: .5rem !important; }
  .p-lg-2  { padding: .5rem !important; }
  .pt-lg-2 { padding-top: .5rem !important; }
}

/* xl ≥1200 */
@media (min-width: 1200px) {
  .col-xl-1  { flex: 0 0 auto; width:  8.3333% !important; }
  .col-xl-2  { flex: 0 0 auto; width: 16.6667% !important; }
  .col-xl-3  { flex: 0 0 auto; width: 25%      !important; }
  .col-xl-4  { flex: 0 0 auto; width: 33.3333% !important; }
  .col-xl-6  { flex: 0 0 auto; width: 50%      !important; }
  .col-xl-8  { flex: 0 0 auto; width: 66.6667% !important; }
  .col-xl-9  { flex: 0 0 auto; width: 75%      !important; }
  .col-xl-12 { flex: 0 0 auto; width: 100%     !important; }
  .row-cols-xl-3 > * { flex: 0 0 auto; width: 33.3333% !important; }
  .row-cols-xl-4 > * { flex: 0 0 auto; width: 25%      !important; }
  .me-xl-4 { margin-right: 1.5rem !important; }
}

/* xxl ≥1400 */
@media (min-width: 1400px) {
  .col-xxl-3 { flex: 0 0 auto; width: 25%      !important; }
  .col-xxl-4 { flex: 0 0 auto; width: 33.3333% !important; }
  .col-xxl-6 { flex: 0 0 auto; width: 50%      !important; }
  .row-cols-xxl-3 > * { flex: 0 0 auto; width: 33.3333% !important; }
  .me-xxl-5 { margin-right: 3rem !important; }
}

/* row-cols base */
.row-cols-1 > * { flex: 0 0 auto; width: 100%     !important; }
.row-cols-2 > * { flex: 0 0 auto; width: 50%      !important; }
.row-cols-3 > * { flex: 0 0 auto; width: 33.3333% !important; }
.row-cols-4 > * { flex: 0 0 auto; width: 25%      !important; }

/* ─────────────────────────────────────────
   4. DISPLAY
───────────────────────────────────────── */
.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; }
.d-table-cell   { display: table-cell !important; }

/* ─────────────────────────────────────────
   5. FLEXBOX UTILITIES
───────────────────────────────────────── */
.flex-row            { flex-direction: row !important; }
.flex-column         { flex-direction: column !important; }
.flex-column-reverse { flex-direction: column-reverse !important; }
.flex-row-reverse    { flex-direction: row-reverse !important; }
.flex-wrap           { flex-wrap: wrap !important; }
.flex-nowrap         { flex-wrap: nowrap !important; }
.flex-wrap-reverse   { flex-wrap: wrap-reverse !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-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; }
.align-content-around  { align-content: space-around !important; }

.align-self-auto     { align-self: auto !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-baseline { align-self: baseline !important; }
.align-self-stretch  { align-self: stretch !important; }

.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; }

/* ─────────────────────────────────────────
   6. 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; }

.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; }

.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; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

/* ─────────────────────────────────────────
   7. 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; }

.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; }

.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; }

/* ─────────────────────────────────────────
   8. TEXT UTILITIES
───────────────────────────────────────── */
.text-start   { text-align: left !important; }
.text-center  { text-align: center !important; }
.text-end     { text-align: right !important; }
.text-justify { text-align: justify !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-wrap     { white-space: normal !important; }
.text-nowrap   { white-space: nowrap !important; }
.text-truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.text-break { word-wrap: break-word !important; word-break: break-word !important; }

.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; }

.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; }

.font-italic  { font-style: italic !important; }
.font-normal  { font-style: normal !important; }
.fst-italic   { font-style: italic !important; }
.fst-normal   { font-style: normal !important; }

/* Typography display */
.display-1 { font-size: 5rem;   font-weight: 300; line-height: 1.2; }
.display-2 { font-size: 4.5rem; font-weight: 300; line-height: 1.2; }
.display-3 { font-size: 4rem;   font-weight: 300; line-height: 1.2; }
.display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }
.display-5 { font-size: 3rem;   font-weight: 300; line-height: 1.2; }
.display-6 { font-size: 2.5rem; font-weight: 300; line-height: 1.2; }

/* ─────────────────────────────────────────
   9. COLORS & BACKGROUNDS
───────────────────────────────────────── */
.text-primary   { color: #0d6efd !important; }
.text-secondary { color: #6c757d !important; }
.text-success   { color: #198754 !important; }
.text-danger    { color: #dc3545 !important; }
.text-warning   { color: #ffc107 !important; }
.text-info      { color: #0dcaf0 !important; }
.text-light     { color: #f8f9fa !important; }
.text-dark      { color: #212529 !important; }
.text-muted     { color: #6c757d !important; }
.text-white     { color: #fff !important; }
.text-black     { color: #000 !important; }
.text-black-50  { color: rgba(0,0,0,.5) !important; }
.text-body      { color: #212529 !important; }
.text-reset     { color: inherit !important; }

.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; }
.bg-white       { background-color: #fff !important; }
.bg-black       { background-color: #000 !important; }
.bg-transparent { background-color: transparent !important; }
.bg-body        { background-color: #fff !important; }
.bg-opacity-50  { --bs-bg-opacity: .5; }

.bg-danger-subtle  { background-color: #f8d7da !important; }
.bg-success-subtle { background-color: #d1e7dd !important; }
.bg-warning-subtle { background-color: #fff3cd !important; }
.bg-info-subtle    { background-color: #cff4fc !important; }

/* Link color variants */
.link-primary   { color: #0d6efd !important; }
.link-secondary { color: #6c757d !important; }
.link-success   { color: #198754 !important; }
.link-danger    { color: #dc3545 !important; }
.link-warning   { color: #ffc107 !important; }
.link-info      { color: #0dcaf0 !important; }
.link-light     { color: #f8f9fa !important; }
.link-dark      { color: #212529 !important; }

/* ─────────────────────────────────────────
   10. 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; }

.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; }

.vw-100  { width: 100vw !important; }
.vh-100  { height: 100vh !important; }
.min-vw-100 { min-width: 100vw !important; }
.min-vh-100 { min-height: 100vh !important; }

/* ─────────────────────────────────────────
   11. 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; }
.bottom-50 { bottom: 50% !important; }
.bottom-100 { bottom: 100% !important; }
.start-0  { left: 0 !important; }
.start-50 { left: 50% !important; }
.start-100 { left: 100% !important; }
.end-0    { right: 0 !important; }
.end-50   { right: 50% !important; }
.end-100  { right: 100% !important; }

.translate-middle   { transform: translate(-50%, -50%) !important; }
.translate-middle-x { transform: translateX(-50%) !important; }
.translate-middle-y { transform: translateY(-50%) !important; }

/* ─────────────────────────────────────────
   12. BORDERS
───────────────────────────────────────── */
.border      { border: 1px solid #dee2e6 !important; }
.border-0    { border: 0 !important; }
.border-1    { border-width: 1px !important; }
.border-2    { border-width: 2px !important; }
.border-3    { border-width: 3px !important; }
.border-4    { border-width: 4px !important; }
.border-5    { border-width: 5px !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-top-0    { border-top: 0 !important; }
.border-bottom-0 { border-bottom: 0 !important; }

.border-primary   { border-color: #0d6efd !important; }
.border-secondary { border-color: #6c757d !important; }
.border-success   { border-color: #198754 !important; }
.border-danger    { border-color: #dc3545 !important; }
.border-warning   { border-color: #ffc107 !important; }
.border-info      { border-color: #0dcaf0 !important; }
.border-light     { border-color: #f8f9fa !important; }
.border-dark      { border-color: #212529 !important; }
.border-white     { border-color: #fff !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; }

/* ─────────────────────────────────────────
   13. OVERFLOW & VISIBILITY
───────────────────────────────────────── */
.overflow-auto    { overflow: auto !important; }
.overflow-hidden  { overflow: hidden !important; }
.overflow-visible { overflow: visible !important; }
.overflow-scroll  { overflow: scroll !important; }

.visible   { visibility: visible !important; }
.invisible { visibility: hidden !important; }

/* ─────────────────────────────────────────
   14. FLOAT
───────────────────────────────────────── */
.float-start { float: left !important; }
.float-end   { float: right !important; }
.float-none  { float: none !important; }
.clearfix::after { display: block; clear: both; content: ""; }

/* ─────────────────────────────────────────
   15. 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; }

/* ─────────────────────────────────────────
   16. BUTTONS
───────────────────────────────────────── */
.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:hover { color: #212529; }
.btn:focus { outline: 0; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); }
.btn:disabled, .btn.disabled { opacity: .65; pointer-events: none; }

.btn-sm { padding: .25rem .5rem; font-size: .875rem; border-radius: .25rem; }
.btn-lg { padding: .5rem 1rem; font-size: 1.25rem; border-radius: .5rem; }

.btn-primary {
  color: #fff; background-color: #0d6efd; border-color: #0d6efd;
}
.btn-primary:hover { color: #fff; background-color: #0b5ed7; border-color: #0a58ca; }
.btn-primary:focus { box-shadow: 0 0 0 .25rem rgba(49,132,253,.5); }

.btn-secondary {
  color: #fff; background-color: #6c757d; border-color: #6c757d;
}
.btn-secondary:hover { background-color: #5c636a; border-color: #565e64; color: #fff; }

.btn-success {
  color: #fff; background-color: #198754; border-color: #198754;
}
.btn-success:hover { background-color: #157347; border-color: #146c43; color: #fff; }

.btn-danger {
  color: #fff; background-color: #dc3545; border-color: #dc3545;
}
.btn-danger:hover { background-color: #bb2d3b; border-color: #b02a37; color: #fff; }

.btn-warning {
  color: #000; background-color: #ffc107; border-color: #ffc107;
}
.btn-warning:hover { background-color: #ffca2c; border-color: #ffc720; }

.btn-info {
  color: #000; background-color: #0dcaf0; border-color: #0dcaf0;
}
.btn-info:hover { background-color: #31d2f2; border-color: #25cff2; }

.btn-light {
  color: #000; background-color: #f8f9fa; border-color: #f8f9fa;
}
.btn-light:hover { background-color: #d3d4d5; border-color: #c6c7c8; }

.btn-dark {
  color: #fff; background-color: #212529; border-color: #212529;
}
.btn-dark:hover { background-color: #1c1f23; border-color: #1a1e21; color: #fff; }

.btn-link {
  font-weight: 400; color: #0d6efd; text-decoration: underline;
  background-color: transparent; border-color: transparent;
}
.btn-link:hover { color: #0a58ca; }

/* Outline buttons */
.btn-outline-primary {
  color: #0d6efd; border-color: #0d6efd; background: transparent;
}
.btn-outline-primary:hover { color: #fff; background-color: #0d6efd; border-color: #0d6efd; }

.btn-outline-secondary {
  color: #6c757d; border-color: #6c757d; background: transparent;
}
.btn-outline-secondary:hover { color: #fff; background-color: #6c757d; border-color: #6c757d; }

.btn-outline-success {
  color: #198754; border-color: #198754; background: transparent;
}
.btn-outline-success:hover { color: #fff; background-color: #198754; border-color: #198754; }

.btn-outline-danger {
  color: #dc3545; border-color: #dc3545; background: transparent;
}
.btn-outline-danger:hover { color: #fff; background-color: #dc3545; border-color: #dc3545; }

.btn-outline-warning {
  color: #ffc107; border-color: #ffc107; background: transparent;
}
.btn-outline-warning:hover { color: #000; background-color: #ffc107; border-color: #ffc107; }

.btn-outline-info {
  color: #0dcaf0; border-color: #0dcaf0; background: transparent;
}
.btn-outline-info:hover { color: #000; background-color: #0dcaf0; border-color: #0dcaf0; }

.btn-outline-light {
  color: #f8f9fa; border-color: #f8f9fa; background: transparent;
}
.btn-outline-light:hover { color: #000; background-color: #f8f9fa; border-color: #f8f9fa; }

.btn-outline-dark {
  color: #212529; border-color: #212529; background: transparent;
}
.btn-outline-dark:hover { color: #fff; background-color: #212529; border-color: #212529; }

.btn-block { display: block; width: 100%; }

/* Button group */
.btn-group, .btn-group-sm {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}
.btn-group > .btn:not(:first-child) { margin-left: -1px; }
.btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
  border-top-right-radius: 0; border-bottom-right-radius: 0;
}
.btn-group > .btn:not(:first-child) {
  border-top-left-radius: 0; border-bottom-left-radius: 0;
}
.btn-group-sm > .btn { padding: .25rem .5rem; font-size: .875rem; border-radius: .25rem; }

/* btn-close */
.btn-close {
  box-sizing: content-box;
  width: 1em; height: 1em;
  padding: .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 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  border-radius: .375rem;
  opacity: .5;
  cursor: pointer;
}
.btn-close:hover { color: #000; opacity: .75; }
.btn-close:focus { outline: 0; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); opacity: 1; }

/* ─────────────────────────────────────────
   17. FORM CONTROLS
───────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }

.form-label {
  display: inline-block;
  margin-bottom: .5rem;
  font-weight: 500;
}

.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;
  border-radius: .375rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  outline: none;
  appearance: none;
}
.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}
.form-control::placeholder { color: #6c757d; opacity: 1; }
.form-control:disabled { background-color: #e9ecef; opacity: 1; }
.form-control-sm { padding: .25rem .5rem; font-size: .875rem; border-radius: .25rem; }
.form-control-lg { padding: .5rem 1rem; font-size: 1.25rem; border-radius: .5rem; }

textarea.form-control { min-height: calc(1.5em + .75rem + 2px); resize: vertical; }

.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 5l6 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;
  outline: none;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-select:focus { border-color: #86b7fe; box-shadow: 0 0 0 .25rem rgba(13,110,253,.25); }
.form-select:disabled { background-color: #e9ecef; }

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5em;
  margin-bottom: .125rem;
}
.form-check-input {
  float: left;
  margin-left: -1.5em;
  width: 1em; height: 1em;
  margin-top: .25em;
  vertical-align: top;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.25);
  appearance: none;
  cursor: pointer;
}
.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-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-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;
}
.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;
}
.input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Validation */
.input-validation-error { border-color: #dc3545 !important; }
.field-validation-error { color: #dc3545; font-size: .875rem; display: block; margin-top: .25rem; }
.validation-summary-errors { color: #dc3545; }

/* ─────────────────────────────────────────
   18. CARD
───────────────────────────────────────── */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  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; }
.card-title   { margin-bottom: .5rem; font-weight: 600; }
.card-subtitle { margin-top: -.25rem; margin-bottom: 0; }
.card-text:last-child { margin-bottom: 0; }
.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-footer  {
  padding: .5rem 1rem;
  background-color: rgba(0,0,0,.03);
  border-top: 1px solid rgba(0,0,0,.125);
}
.card-img-top { width: 100%; border-top-left-radius: calc(.375rem - 1px); border-top-right-radius: calc(.375rem - 1px); }

/* ─────────────────────────────────────────
   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;
  background-color: #6c757d;
}
.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; }
.badge.bg-info      { background-color: #0dcaf0 !important; color: #000; }
.badge.bg-light     { background-color: #f8f9fa !important; color: #000; }
.badge.bg-dark      { background-color: #212529 !important; }
.rounded-pill.badge { border-radius: 50rem; }

/* ─────────────────────────────────────────
   20. ALERT
───────────────────────────────────────── */
.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-primary   { color: #084298; background-color: #cfe2ff; border-color: #b6d4fe; }
.alert-secondary { color: #41464b; background-color: #e2e3e5; border-color: #d3d6d8; }
.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-light     { color: #636464; background-color: #fefefe; border-color: #fdfdfe; }
.alert-dark      { color: #141619; background-color: #d3d3d4; border-color: #bcbebf; }

/* ─────────────────────────────────────────
   21. MODAL
───────────────────────────────────────── */
.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.fade .modal-dialog { transition: transform .3s ease-out; transform: translate(0,-50px); }
.modal.fade.show .modal-dialog { transform: none; }

.modal-dialog {
  position: relative;
  width: auto;
  margin: .5rem;
  pointer-events: none;
}
@media (min-width: 576px) {
  .modal-dialog { max-width: 500px; margin: 1.75rem auto; }
}
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}
@media (min-width: 576px) {
  .modal-dialog-centered { min-height: calc(100% - 3.5rem); }
}
.modal-dialog-scrollable { height: calc(100% - 1rem); }
.modal-dialog-scrollable .modal-content { overflow: hidden; }
.modal-dialog-scrollable .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: 1rem;
  outline: 0;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}
.modal-backdrop {
  position: fixed; inset: 0;
  z-index: 1050;
  background-color: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .15s linear;
}
.modal-backdrop.show { opacity: 1; }
.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 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; font-size: 1.25rem; font-weight: 600; }
.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;
}
.modal-footer > * { margin: .25rem; }

.modal-sm  { max-width: 300px; }
.modal-lg  { max-width: 800px; }
.modal-xl  { max-width: 1140px; }
body.modal-open { overflow: hidden; }

/* ─────────────────────────────────────────
   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-menu {
  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,.175);
}
.dropdown-menu.show { display: block; }
.dropdown-menu-end  { right: 0; left: auto; }
.dropdown-menu-dark { color: #adb5bd; background-color: #343a40; border-color: rgba(255,255,255,.15); }
.dropdown-menu-dark .dropdown-item { color: #adb5bd; }
.dropdown-menu-dark .dropdown-item:hover { color: #fff; background-color: rgba(255,255,255,.15); }
.dropdown-menu-dark .dropdown-divider { border-color: rgba(255,255,255,.15); }

.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; text-decoration: none; background-color: #0d6efd; }
.dropdown-item.disabled, .dropdown-item:disabled { color: #adb5bd; pointer-events: none; background-color: transparent; }

.dropdown-item-action { width: 100%; }
.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. ACCORDION & COLLAPSE
───────────────────────────────────────── */
.accordion { --bs-accordion-border-color: rgba(0,0,0,.125); }
.accordion-item {
  background-color: #fff;
  border: 1px solid var(--bs-accordion-border-color, rgba(0,0,0,.125));
  margin-bottom: -1px;
}
.accordion-item:first-of-type { border-top-left-radius: .375rem; border-top-right-radius: .375rem; }
.accordion-item:last-of-type  { border-bottom-left-radius: .375rem; border-bottom-right-radius: .375rem; }

.accordion-header { margin-bottom: 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;
  overflow-anchor: none;
  transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s, border-radius .15s;
  cursor: pointer;
}
.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' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.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 { border-top: 1px solid rgba(0,0,0,.125); }

.collapse { display: none; }
.collapse.show { display: block; }
.collapsing {
  height: 0; overflow: hidden;
  transition: height .35s ease;
}
.collapsed { }

/* ─────────────────────────────────────────
   24. CAROUSEL
───────────────────────────────────────── */
.carousel { position: relative; }
.carousel-inner { position: relative; width: 100%; overflow: hidden; }
.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform .6s ease-in-out;
}
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev { display: block; }

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  color: #fff;
  text-align: center;
  background: none;
  border: 0;
  opacity: .5;
  transition: opacity .15s ease;
  cursor: pointer;
}
.carousel-control-prev { left: 0; }
.carousel-control-next { right: 0; }
.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: .9; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 2rem; height: 2rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
}
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 010 .708L5.707 8l5.647 5.646a.5.5 0 01-.708.708l-6-6a.5.5 0 010-.708l6-6a.5.5 0 01.708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 000 .708L10.293 8l-5.647 5.646a.5.5 0 00.708.708l6-6a.5.5 0 000-.708l-6-6a.5.5 0 00-.708 0z'/%3e%3c/svg%3e");
}
.carousel-indicators {
  position: absolute;
  right: 0; bottom: 0; left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-right: 15%; margin-left: 15%;
  list-style: none;
}
.carousel-indicators [data-bs-target] {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px; height: 3px;
  padding: 0;
  margin-right: 3px; margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: #fff;
  border: 10px solid transparent;
  border-top: 0; border-bottom: 0;
  opacity: .5;
  transition: opacity .6s ease;
}
.carousel-indicators .active { opacity: 1; }

/* ─────────────────────────────────────────
   25. PROGRESS
───────────────────────────────────────── */
.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;
}
.progress-bar-striped {
  background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
  background-size: 1rem 1rem;
}
.progress-bar-animated { animation: progress-bar-stripes 1s linear infinite; }
@keyframes progress-bar-stripes {
  from { background-position-x: 1rem; }
}

/* ─────────────────────────────────────────
   26. SPINNER
───────────────────────────────────────── */
.spinner-border {
  display: inline-block;
  width: 2rem; height: 2rem;
  vertical-align: text-bottom;
  border: .25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border .75s linear infinite;
}
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .2em; }
@keyframes spinner-border {
  to { transform: rotate(360deg); }
}
.spinner-grow {
  display: inline-block;
  width: 2rem; height: 2rem;
  vertical-align: text-bottom;
  background-color: currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: spinner-grow .75s linear infinite;
}
.spinner-grow-sm { width: 1rem; height: 1rem; }
@keyframes spinner-grow {
  0%  { transform: scale(0); }
  50% { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────
   27. TABLE
───────────────────────────────────────── */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  vertical-align: top;
  border-color: #dee2e6;
}
.table > :not(caption) > * > * {
  padding: .5rem;
  border-bottom-width: 1px;
  border-bottom-color: #dee2e6;
}
.table > tbody { vertical-align: inherit; }
.table > thead { vertical-align: bottom; }
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─────────────────────────────────────────
   28. 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;
  background-color: #fff;
  border: 1px solid rgba(0,0,0,.125);
  text-decoration: none;
}
.list-group-item:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.list-group-item:last-child  { border-bottom-left-radius: inherit; border-bottom-right-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 { color: #6c757d; pointer-events: none; background-color: #fff; }
.list-group-item-action { width: 100%; text-align: inherit; }
.list-group-item-action:hover { z-index: 1; color: #212529; background-color: #f8f9fa; }

/* ─────────────────────────────────────────
   29. NAV / NAVBAR (structural only)
   The site.css already styles .main-navbar.
   These cover generic Bootstrap nav classes
   that may appear in other views.
───────────────────────────────────────── */
.nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.nav-link {
  display: block;
  padding: .5rem 1rem;
  color: #0d6efd;
  text-decoration: none;
  transition: color .15s;
}
.nav-link:hover { color: #0a58ca; }
.nav-link.disabled { color: #6c757d; pointer-events: none; }

.nav-item { }

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }
@media (max-width: 991.98px) {
  .navbar-expand-lg .navbar-collapse { display: none; }
  .navbar-expand-lg .navbar-collapse.show { display: flex; }
  .navbar-expand-lg .navbar-toggler { display: block; }
}
.navbar-light .navbar-brand { color: rgba(0,0,0,.9); }
.navbar-light .nav-link     { color: rgba(0,0,0,.55); }
.navbar-light .nav-link:hover { color: rgba(0,0,0,.7); }

.navbar-toggler {
  padding: .25rem .75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: .375rem;
  transition: box-shadow .15s;
  cursor: pointer;
}
.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em; height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}
.navbar-nav { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; list-style: none; }
.navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: center; }

/* ─────────────────────────────────────────
   30. POPOVER
───────────────────────────────────────── */
.popover-body {
  padding: 1rem;
  color: #212529;
  background-color: #fff;
  border-radius: .3rem;
}

/* ─────────────────────────────────────────
   31. COOKIE CONSENT BANNER
───────────────────────────────────────── */
.cookie-consent {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 2rem);
  max-width: 760px;
  background: #fff;
  border: 1.5px solid rgba(233,150,10,.2);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  box-shadow: 0 8px 32px rgba(92,51,23,.13), 0 2px 8px rgba(217,95,59,.08);
}
.cookie-consent.show-consent { display: flex; }

.cookie-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217,95,59,.12), rgba(233,150,10,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #D95F3B;
}

.cookie-body {
  flex: 1;
  min-width: 0;
}
.cookie-title {
  font-size: .85rem;
  font-weight: 700;
  color: #3d1f0a;
  margin: 0 0 .2rem;
}
.cookie-text {
  font-size: .8rem;
  color: #7a5c40;
  line-height: 1.55;
  margin: 0;
}
.cookie-text a {
  color: #D95F3B;
  text-decoration: none;
  font-weight: 600;
}
.cookie-text a:hover { text-decoration: underline; }

.cookie-actions { flex-shrink: 0; }

.cookie-btn-accept {
  background: linear-gradient(135deg, #D95F3B, #E9960A);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .45rem 1.2rem;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(217,95,59,.3);
}
.cookie-btn-accept:hover {
  opacity: .9;
  box-shadow: 0 6px 20px rgba(217,95,59,.4);
  color: #fff;
}

@media (max-width: 540px) {
  .cookie-consent {
    flex-wrap: wrap;
    bottom: .75rem;
  }
  .cookie-icon { display: none; }
  .cookie-body { width: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-btn-accept { width: 100%; text-align: center; }
}

/* ─────────────────────────────────────────
   32. ACCESSIBILITY / SCREEN-READER ONLY
───────────────────────────────────────── */
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.visually-hidden-focusable:not(:focus):not(:focus-within),
.sr-only-focusable:not(:focus) {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
