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 white, 0 0 0 0.25rem #258cfb;
}

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

body {
  margin-bottom: 60px;
  padding-top: 70px; /* offset for the fixed-top navbar */
}

.body-content {
  padding-left: 15px;
  padding-right: 15px;
}

.username {
  color: #adb5bd;
}

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

/* Sticky header for long data tables: stays in view just below the fixed navbar */
.table-sticky thead th {
  position: sticky;
  top: 56px; /* fixed-top navbar height */
  z-index: 2;
  background-color: var(--bs-body-bg);
  /* box-shadow keeps a visible divider; border-collapse drops real borders when scrolled */
  box-shadow: inset 0 1px 0 var(--bs-border-color), inset 0 -1px 0 var(--bs-border-color);
}

/* Receipt icon link: subtle by default, brand color on hover/focus */
.receipt-link {
  color: var(--bs-secondary-color);
  display: inline-flex;
  transition: color 0.12s ease-out;
}

.receipt-link:hover, .receipt-link:focus-visible {
  color: var(--bs-primary);
}

@media (prefers-reduced-motion: reduce) {
  .receipt-link { transition: none; }
}