/*
 * bs3-bridge.css — Bootstrap 3 -> 5.3.x upgrade (see upgrade-to-bootstrap-5.3.8.md, Phase 1).
 *
 * Loaded AFTER bootstrap5.css on flipped families only. Re-implements the BS3 classes the
 * codemod deliberately does NOT rewrite (panels, wells, labels-as-pills, form-group,
 * help-block, control-label, input-group-btn, thumbnails, jumbotrons) so a family is
 * functional immediately after the mechanical class/attribute transforms, before the
 * structural per-area passes (panel -> card, form-group -> mb-3, etc.) land.
 *
 * Values are the stock Bootstrap 3.4.1 defaults (assets/externals/tsbootstrap-jquery/
 * vendor/bootstrap/dist/css/bootstrap.css) — what's actually rendering today — not the
 * Angle theme's per-instance color skins, which the structural pass replaces properly.
 *
 * Do NOT add grid/pull/hidden classes here — those are codemodded exhaustively (rename or
 * dual mode), never bridged. This file shrinks as each area's structural pass removes its
 * last consumer of a rule below; delete rules once `git grep` finds no more matches. Goal
 * is full deletion by the end of Phase 6 (keep only the .label-*/.btn-default aliases if
 * server/DB-generated markup still emits them — see WebDbMigrations seed data).
 */

/* ---- btn-default -> btn-secondary -------------------------------------------------- */
/* The codemod renames btn-default to btn-secondary at the markup level, so there is no
   .btn-default class left to style — BS5's own .btn-secondary (dark gray fill) is what
   needs restyling. Uses BS5's per-component CSS variable hooks (the supported way to
   reskin a variant) rather than fighting .btn-secondary's specificity. */
.btn-secondary {
  --bs-btn-color: #333;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #ccc;
  --bs-btn-hover-color: #333;
  --bs-btn-hover-bg: #e6e6e6;
  --bs-btn-hover-border-color: #adadad;
  --bs-btn-focus-shadow-rgb: 204, 204, 204;
  --bs-btn-active-color: #333;
  --bs-btn-active-bg: #e6e6e6;
  --bs-btn-active-border-color: #8c8c8c;
  --bs-btn-disabled-color: #333;
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: #ccc;
}

/* ---- panels ------------------------------------------------------------------------- */
.panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.panel-body { padding: 15px; }
.panel-heading {
  padding: 10px 15px;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel-heading > .dropdown .dropdown-toggle { color: inherit; }
.panel-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 16px;
  color: inherit;
}
.panel-title > a,
.panel-title > small,
.panel-title > .small { color: inherit; }
.panel-footer {
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
}
.panel-group .panel { border-radius: 4px; }
.panel-group .panel + .panel { margin-top: 5px; }

.panel-default { border-color: #ddd; }
.panel-default > .panel-heading { color: #333; background-color: #f5f5f5; border-color: #ddd; }
.panel-default > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #ddd; }

.panel-primary { border-color: #337ab7; }
.panel-primary > .panel-heading { color: #fff; background-color: #337ab7; border-color: #337ab7; }

.panel-success { border-color: #d6e9c6; }
.panel-success > .panel-heading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }

.panel-info { border-color: #bce8f1; }
.panel-info > .panel-heading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; }

.panel-warning { border-color: #faebcc; }
.panel-warning > .panel-heading { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; }

.panel-danger { border-color: #ebccd1; }
.panel-danger > .panel-heading { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }

/* ---- well ----------------------------------------------------------------------------- */
.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
.well-lg { padding: 24px; border-radius: 6px; }
.well-sm { padding: 9px; border-radius: 3px; }

/* ---- thumbnail -------------------------------------------------------------------- */
.thumbnail {
  display: block;
  padding: 4px;
  margin-bottom: 20px;
  line-height: 1.42857143;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.thumbnail > img,
.thumbnail a > img { margin-right: auto; margin-left: auto; }
.thumbnail .caption { padding: 9px; color: #333; }

/* ---- jumbotron ---------------------------------------------------------------------- */
.jumbotron {
  padding: 30px 15px;
  margin-bottom: 30px;
  color: inherit;
  background-color: #eee;
}
.jumbotron h1,
.jumbotron .h1 { color: inherit; }
.jumbotron p { margin-bottom: 15px; font-size: 21px; font-weight: 200; }
@media (min-width: 768px) {
  .jumbotron { padding: 48px 0; }
}

/* ---- label -> badge pill (residual, non-codemodded instances only) ----------------- */
/* The codemod converts the "label label-X" idiom to "badge text-bg-X" wherever it finds
   both tokens together. This covers the survivors: dynamically-built class strings the
   codemod's static scan can't see (C# string concatenation, unusual token order). */
.label {
  display: inline;
  padding: 0.2em 0.6em 0.3em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25em;
}
.label-default { background-color: #777; }
.label-primary { background-color: #337ab7; }
.label-success { background-color: #5cb85c; }
.label-info { background-color: #5bc0de; }
.label-warning { background-color: #f0ad4e; }
.label-danger { background-color: #d9534f; }

/* ---- close (residual, non-idiom uses only) ----------------------------------------- */
/* The codemod fully rewrites the <button class="close" data-dismiss="modal|alert"> idiom
   to BS5's .btn-close element. This covers .close used outside that idiom (~30% per the
   codemod's own flag count) until the structural pass looks at each one by hand. */
.close {
  float: right;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.2;
}
.close:hover,
.close:focus { color: #000; text-decoration: none; cursor: pointer; opacity: 0.5; }

/* ---- forms: form-group / control-label / help-block -------------------------------- */
.form-group { margin-bottom: 1rem; } /* BS5 spacing scale; structural pass -> mb-3 utility directly */
.control-label { padding-top: 0.375rem; margin-bottom: 0; } /* matches BS5's own .col-form-label */
.help-block { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; }

/* ---- input-group-btn ---------------------------------------------------------------- */
/* BS5's .input-group is a flex row by default; BS3's .input-group-btn (a <span> wrapper
   around one or more <button>s) just needs to join that flex flow. */
.input-group-btn { display: flex; }
