html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--bs-body-bg), 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* MVC renders empty validation placeholders with an inline style="display:none", which the
   Content-Security-Policy blocks (no inline styles); hide them from the stylesheet instead. */
.validation-summary-valid,
.field-validation-valid {
  display: none;
}

.auth-card {
  max-width: 28rem;
}

.qr-code {
  image-rendering: pixelated;
  width: 200px;
  height: 200px;
}

.color-dot {
  vertical-align: baseline;
}

.amount {
  font-variant-numeric: tabular-nums;
}

.category-chip {
  white-space: nowrap;
}

.category-chip .bi {
  margin: 0 0.15rem;
}

.icon-choices .btn {
  min-width: 2.5rem;
}

/* The empty part of a progress bar: an SVG fill that follows the theme (clair / sombre). */
.progress-track {
  fill: var(--bs-secondary-bg);
}

/* Chart.js fills its parent: the height is set here, not inline (Content-Security-Policy). */
.chart-box {
  position: relative;
  height: 260px;
}

.chart-box-small {
  height: 180px;
}
