/* CPD Firearms Records - small additions on top of Bootstrap 5 */

body { background-color: #f6f7f9; }
main { min-height: 70vh; }

/* Large, touch-friendly targets */
.btn-lg, .form-control-lg, .form-select-lg { min-height: 3rem; }
.list-group-item-action { min-height: 3.5rem; }
.category-button { min-height: 4.5rem; }
.result-button { min-width: 8.5rem; font-size: 1.25rem; }
.form-check-input { width: 1.4em; height: 1.4em; }
.form-check-label { padding-left: .35rem; padding-top: .15rem; }

/* Signature pad */
.signature-wrapper {
  background: #fff;
  border: 2px dashed #6c757d;
  border-radius: .5rem;
  padding: .5rem;
}
.signature-wrapper.has-ink { border-style: solid; border-color: #0d6efd; }
.signature-canvas {
  display: block;
  width: 100%;
  height: 220px;
  touch-action: none;          /* stop the page scrolling while signing */
  -webkit-user-select: none;
  user-select: none;
  cursor: crosshair;
  background:
    linear-gradient(to top, transparent 0, transparent 54px, #adb5bd 54px, #adb5bd 55px, transparent 55px);
}
@media (max-width: 576px) { .signature-canvas { height: 180px; } }

.signature-thumb { max-height: 40px; max-width: 160px; background: #fff; }
.signature-full { max-width: 100%; max-height: 140px; border: 1px solid #dee2e6; background: #fff; padding: .25rem; }

.records-table td, .records-table th { white-space: normal; }
.notes-text { max-width: 60ch; }
.record-dl dt { font-weight: 600; }
