/* ==========================================================================
   overrides.css — cross-cutting UI consistency fixes
   Loaded LAST in layout.html and raw_layout.html so it wins the cascade.
   ========================================================================== */

/* --- Button corner radius -------------------------------------------------
   The tree carries three Bootstrap 4 builds (cdnjs 4.0.0-beta.2, local
   4.0.0, theme_1550485735770.css) whose base `.btn` radius disagrees
   (.2rem / .25rem / .3rem), plus size variants add their own. This makes
   every button share one radius: the --b-radius-md design token (5px),
   with a hard 5px fallback for raw_layout.html (which doesn't load
   tokens.css).

   Plain selectors, NO !important: same specificity as Bootstrap's own
   `.btn` / `.btn-group-sm > .btn` rules but loaded later, so we win those
   — while Bootstrap's higher-specificity `.btn-group > .btn:not(...)` and
   `.input-group ... .btn` interior-corner rules still apply, so grouped
   buttons keep their squared seams. */
.btn,
.btn-xs,
.btn-sm, .btn-group-sm > .btn,
.btn-lg, .btn-group-lg > .btn {
  border-radius: var(--b-radius-md, 5px);
}

/* ── Toasts ───────────────────────────────────────────────────────────────
   layout.html loads Bootstrap 4.0.0-beta.2, which predates toasts entirely --
   they arrived in 4.2, and that file contains no .toast rule at all. The only
   copy of those rules in the repo lives in static/css/styles.css, which no
   layout loads. BootstrapVue supplies just the .b-toaster positioning and
   transitions and assumes the base box comes from Bootstrap, so every
   $bvToast toast rendered with no padding, border or radius: the text sat
   flush against the edge of the box.

   Verbatim from the repo's own Bootstrap copy (styles.css), not reinvented.
   Delete this block if the CDN Bootstrap is ever moved past 4.2. */
.toast {
  flex-basis: 350px;
  max-width: 350px;
  font-size: 0.875rem;
  background-color: rgba(255, 255, 255, 0.85);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  opacity: 0;
  border-radius: 0.25rem;
}
.toast:not(:last-child) {
  margin-bottom: 0.75rem;
}
.toast.showing {
  opacity: 1;
}
.toast.show {
  display: block;
  opacity: 1;
}
.toast.hide {
  display: none;
}

.toast-header {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  color: #6c757d;
  background-color: rgba(255, 255, 255, 0.85);
  background-clip: padding-box;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.toast-body {
  padding: 0.75rem;
}
