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;
}

.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;
}
/* Daily Sales month grid: keep inputs usable inside the wide table */
.sales-grid .money { min-width: 6.5rem; }
.sales-grid .count { min-width: 4.2rem; }
.sales-grid .notes { min-width: 9rem; }
.sales-grid thead th { background-color: var(--bs-body-bg); }

/* Summary grid: keep the metric labels visible while scrolling months */
.summary-grid .sticky-col { position: sticky; left: 0; background-color: var(--bs-body-bg); }

/* Store logo: fits the navbar brand area, scales down on small screens */
.site-logo { max-height: 40px; width: auto; max-width: 220px; object-fit: contain; }
@media (max-width: 575.98px) { .site-logo { max-height: 32px; max-width: 150px; } }
/* Larger logo on the sign-in / setup pages */
.site-logo-large { max-height: 90px; width: auto; max-width: 260px; object-fit: contain; }

/* Expense list: note typed straight into the row — looks like plain text
   until you hover or click it, so the table stays easy to read. */
.notes-cell { min-width: 11rem; }
.note-input { border-color: transparent; background-color: transparent; }
.note-input:hover { border-color: var(--bs-border-color); }
.note-input:focus { border-color: var(--bs-primary); background-color: var(--bs-body-bg); }
.note-input.is-valid, .note-input.is-invalid { background-position: right 0.4rem center; }

/* Reconciliation tick (empty / matched / not matching) */
.match-toggle { line-height: 1; }
.match-toggle:hover .match-icon { opacity: 0.7; }
.match-icon { vertical-align: middle; }

/* Receipt viewer: icon in the expense list and the window it opens */
.receipt-open { color: var(--bs-primary); }
.receipt-open:hover .receipt-icon { opacity: 0.7; }
.receipt-icon { vertical-align: middle; }
.receipt-count { font-size: 0.65rem; vertical-align: super; }
.receipt-view { display: block; border: 0; }
img.receipt-view { max-width: 100%; max-height: 78vh; margin: 0 auto; }
iframe.receipt-view { width: 100%; height: 78vh; background-color: #fff; }
