/*
 * Bootstrap 4 -> 5 compatibility bridge
 *
 * Re-implements the Bootstrap 4 (and a few legacy Bootstrap 3) class names that
 * were renamed or dropped in Bootstrap 5, so existing markup keeps its intended
 * layout without editing every view. Load this AFTER bootstrap.min.css.
 *
 * Covered: directional spacing (ml/mr/pl/pr), text alignment (text-left/right),
 * floats (float-left/right, pull-left/right), screen-reader (sr-only),
 * form-group / form-row, input-group-prepend / -append, custom-control family,
 * col-N on form controls, select arrows on select.form-control, link
 * underline-on-hover, transparent tables, and the .close dismiss button.
 */

/* ---- directional spacing: ml-*/mr-* -> ms-*/me-*, pl-*/pr-* -> ps-*/pe-* ---- */
.ml-0{margin-left:0!important}.ml-1{margin-left:.25rem!important}.ml-2{margin-left:.5rem!important}.ml-3{margin-left:1rem!important}.ml-4{margin-left:1.5rem!important}.ml-5{margin-left:3rem!important}.ml-auto{margin-left:auto!important}
.mr-0{margin-right:0!important}.mr-1{margin-right:.25rem!important}.mr-2{margin-right:.5rem!important}.mr-3{margin-right:1rem!important}.mr-4{margin-right:1.5rem!important}.mr-5{margin-right:3rem!important}.mr-auto{margin-right:auto!important}
.pl-0{padding-left:0!important}.pl-1{padding-left:.25rem!important}.pl-2{padding-left:.5rem!important}.pl-3{padding-left:1rem!important}.pl-4{padding-left:1.5rem!important}.pl-5{padding-left:3rem!important}
.pr-0{padding-right:0!important}.pr-1{padding-right:.25rem!important}.pr-2{padding-right:.5rem!important}.pr-3{padding-right:1rem!important}.pr-4{padding-right:1.5rem!important}.pr-5{padding-right:3rem!important}

/* responsive directional spacing variants */
@media (min-width:576px){
  .ml-sm-0{margin-left:0!important}.ml-sm-1{margin-left:.25rem!important}.ml-sm-2{margin-left:.5rem!important}.ml-sm-3{margin-left:1rem!important}.ml-sm-4{margin-left:1.5rem!important}.ml-sm-5{margin-left:3rem!important}.ml-sm-auto{margin-left:auto!important}
  .mr-sm-0{margin-right:0!important}.mr-sm-1{margin-right:.25rem!important}.mr-sm-2{margin-right:.5rem!important}.mr-sm-3{margin-right:1rem!important}.mr-sm-4{margin-right:1.5rem!important}.mr-sm-5{margin-right:3rem!important}.mr-sm-auto{margin-right:auto!important}
  .pl-sm-0{padding-left:0!important}.pl-sm-1{padding-left:.25rem!important}.pl-sm-2{padding-left:.5rem!important}.pl-sm-3{padding-left:1rem!important}.pl-sm-4{padding-left:1.5rem!important}.pl-sm-5{padding-left:3rem!important}
  .pr-sm-0{padding-right:0!important}.pr-sm-1{padding-right:.25rem!important}.pr-sm-2{padding-right:.5rem!important}.pr-sm-3{padding-right:1rem!important}.pr-sm-4{padding-right:1.5rem!important}.pr-sm-5{padding-right:3rem!important}
}
@media (min-width:768px){
  .ml-md-0{margin-left:0!important}.ml-md-1{margin-left:.25rem!important}.ml-md-2{margin-left:.5rem!important}.ml-md-3{margin-left:1rem!important}.ml-md-4{margin-left:1.5rem!important}.ml-md-5{margin-left:3rem!important}.ml-md-auto{margin-left:auto!important}
  .mr-md-0{margin-right:0!important}.mr-md-1{margin-right:.25rem!important}.mr-md-2{margin-right:.5rem!important}.mr-md-3{margin-right:1rem!important}.mr-md-4{margin-right:1.5rem!important}.mr-md-5{margin-right:3rem!important}.mr-md-auto{margin-right:auto!important}
  .pl-md-0{padding-left:0!important}.pl-md-1{padding-left:.25rem!important}.pl-md-2{padding-left:.5rem!important}.pl-md-3{padding-left:1rem!important}.pl-md-4{padding-left:1.5rem!important}.pl-md-5{padding-left:3rem!important}
  .pr-md-0{padding-right:0!important}.pr-md-1{padding-right:.25rem!important}.pr-md-2{padding-right:.5rem!important}.pr-md-3{padding-right:1rem!important}.pr-md-4{padding-right:1.5rem!important}.pr-md-5{padding-right:3rem!important}
}
@media (min-width:992px){
  .ml-lg-0{margin-left:0!important}.ml-lg-1{margin-left:.25rem!important}.ml-lg-2{margin-left:.5rem!important}.ml-lg-3{margin-left:1rem!important}.ml-lg-4{margin-left:1.5rem!important}.ml-lg-5{margin-left:3rem!important}.ml-lg-auto{margin-left:auto!important}
  .mr-lg-0{margin-right:0!important}.mr-lg-1{margin-right:.25rem!important}.mr-lg-2{margin-right:.5rem!important}.mr-lg-3{margin-right:1rem!important}.mr-lg-4{margin-right:1.5rem!important}.mr-lg-5{margin-right:3rem!important}.mr-lg-auto{margin-right:auto!important}
  .pl-lg-0{padding-left:0!important}.pl-lg-1{padding-left:.25rem!important}.pl-lg-2{padding-left:.5rem!important}.pl-lg-3{padding-left:1rem!important}.pl-lg-4{padding-left:1.5rem!important}.pl-lg-5{padding-left:3rem!important}
  .pr-lg-0{padding-right:0!important}.pr-lg-1{padding-right:.25rem!important}.pr-lg-2{padding-right:.5rem!important}.pr-lg-3{padding-right:1rem!important}.pr-lg-4{padding-right:1.5rem!important}.pr-lg-5{padding-right:3rem!important}
}
@media (min-width:1200px){
  .ml-xl-0{margin-left:0!important}.ml-xl-1{margin-left:.25rem!important}.ml-xl-2{margin-left:.5rem!important}.ml-xl-3{margin-left:1rem!important}.ml-xl-4{margin-left:1.5rem!important}.ml-xl-5{margin-left:3rem!important}.ml-xl-auto{margin-left:auto!important}
  .mr-xl-0{margin-right:0!important}.mr-xl-1{margin-right:.25rem!important}.mr-xl-2{margin-right:.5rem!important}.mr-xl-3{margin-right:1rem!important}.mr-xl-4{margin-right:1.5rem!important}.mr-xl-5{margin-right:3rem!important}.mr-xl-auto{margin-right:auto!important}
  .pl-xl-0{padding-left:0!important}.pl-xl-1{padding-left:.25rem!important}.pl-xl-2{padding-left:.5rem!important}.pl-xl-3{padding-left:1rem!important}.pl-xl-4{padding-left:1.5rem!important}.pl-xl-5{padding-left:3rem!important}
  .pr-xl-0{padding-right:0!important}.pr-xl-1{padding-right:.25rem!important}.pr-xl-2{padding-right:.5rem!important}.pr-xl-3{padding-right:1rem!important}.pr-xl-4{padding-right:1.5rem!important}.pr-xl-5{padding-right:3rem!important}
}

/* ---- text alignment: text-left/right -> text-start/end ---- */
.text-left{text-align:left!important}.text-right{text-align:right!important}
@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}}
@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}}
@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}}
@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}}

/* ---- floats: float-left/right -> float-start/end, plus legacy pull-* ---- */
.float-left,.pull-left{float:left!important}.float-right,.pull-right{float:right!important}
@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}}
@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}}
@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}}
@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}}

/* ---- screen-reader: sr-only -> visually-hidden ---- */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* ---- forms: form-group / form-row dropped in BS5 ---- */
.form-group{margin-bottom:1rem}
.form-row{display:flex;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}
.form-row>.col,.form-row>[class*="col-"]{padding-right:5px;padding-left:5px}

/* ---- input-group-prepend / -append dropped in BS5 (children now direct) ---- */
.input-group-prepend,.input-group-append{display:flex}
.input-group-prepend{margin-right:-1px}
.input-group-append{margin-left:-1px}

/* ---- custom-control family -> form-check family ---- */
.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.5rem}
.custom-control-inline{display:inline-flex;margin-right:1rem}
.custom-control-input{position:absolute;left:0;top:.25rem;z-index:1;width:1rem;height:1rem}
.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}
.custom-checkbox .custom-control-input,.custom-radio .custom-control-input{cursor:pointer}

/* ---- legacy Bootstrap 3 col-xs-* grid: intentionally NOT defined ----
 * Bootstrap 4 had no col-xs-* so these were no-ops in the original site.
 * Defining them here floated the header logo (hiding Logout) and, being
 * unscoped, overrode col-lg-* widths (stacking the separation form). */

/* ---- grid col-* used directly on form controls ----
 * BS4 col-N set max-width, which capped "col-4 form-control" selects.
 * BS5 col-N sets only width, and .form-control{width:100%} wins. */
.form-control.col-1,.form-select.col-1{width:8.333333%}.form-control.col-2,.form-select.col-2{width:16.666667%}.form-control.col-3,.form-select.col-3{width:25%}.form-control.col-4,.form-select.col-4{width:33.333333%}.form-control.col-5,.form-select.col-5{width:41.666667%}.form-control.col-6,.form-select.col-6{width:50%}.form-control.col-7,.form-select.col-7{width:58.333333%}.form-control.col-8,.form-select.col-8{width:66.666667%}.form-control.col-9,.form-select.col-9{width:75%}.form-control.col-10,.form-select.col-10{width:83.333333%}.form-control.col-11,.form-select.col-11{width:91.666667%}

/* ---- select.form-control: BS5 sets appearance:none (arrows moved to .form-select) ---- */
select.form-control:not([multiple]):not([size]){padding-right:2.25rem;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px}

/* ---- links: BS5 reboot underlines all links; BS4 underlined on hover only ---- */
a{text-decoration:none}
a:hover{text-decoration:underline}

/* ---- tables: BS5 paints cells with --bs-table-bg (white); BS4 tables were transparent ---- */
.table{--bs-table-bg:transparent}

/* ---- .close dismiss button (BS5 uses .btn-close with a background image) ---- */
.close{float:right;font-size:1.5rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5;background-color:transparent;border:0;padding:0;cursor:pointer}
.close:hover{color:#000;text-decoration:none;opacity:.75}
button.close{-webkit-appearance:none;-moz-appearance:none;appearance:none}
