/* Site styles on top of Bootstrap. */

/* A .table-stack table becomes one card per row below the md breakpoint, so  */
/* a phone sees every column instead of a table scrolled out of view. Each    */
/* cell names its column through data-label.                                  */
@media (max-width: 767.98px) {
  .table-stack thead { display: none; }
  .table-stack tr {
    display: block;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: .5rem .75rem;
    margin-bottom: .75rem;
  }
  .table-stack > :not(caption) > * > * {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .25rem 0;
    border: 0;
    box-shadow: none;
    text-align: end;
  }
  .table-stack td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-align: start;
  }
  .table-stack td.table-stack-actions {
    justify-content: flex-start;
    padding-top: .5rem;
  }
  .table-stack td:empty { display: none; }
}

/* Small buttons are too small to hit with a finger. */
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* The reveal button sits where Bootstrap draws the invalid icon; move the */
/* icon left of the button.                                                */
.has-reveal .form-control.is-invalid {
  padding-right: 6rem !important;
  background-position: right 4.25rem center;
}
