/* Pre-printed cheque printing (#/cheques, public/cheque-print.js) */
.chq-tabs { flex-wrap: wrap; margin: 0.5rem 0 1.25rem; border-radius: 22px; }
.chq-tabs a { padding: 0 14px; }
.chq-list { display: grid; gap: 1rem; }
.chq-card { margin: 0; min-width: 0; }
.chq-card legend { font-weight: 700; font-size: 1.1rem; padding: 0 0.35rem; }
.chq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.75rem 1rem; align-items: start; }
.chq-grid-2 { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); margin-top: 0.75rem; }
.chq-grid .field + .field { margin-top: 0; }
.chq-words { margin: 0.35rem 0 0; font-size: 0.92rem; color: var(--muted); overflow-wrap: anywhere; }
.chq-words:empty { display: none; }
.chq-textarea { width: 100%; font: inherit; padding: 10px 14px; border: 1.5px solid #9d94ad; border-radius: 10px; background: #fff; color: var(--ink); resize: vertical; min-height: 4.5rem; }
.chq-textarea:focus-visible { border-color: var(--brand); }
.chq-num { max-width: 9rem; }
.chq-card-foot { display: flex; justify-content: flex-end; margin-top: 0.5rem; }
.chq-add { margin: 1rem 0; }
.chq-total { margin: 0; font-weight: 650; }
.chq-opts h2, .chq-result h2, .chq-add-payee h2 { margin-top: 0; }
.chq-opts, .chq-result { margin-top: 1rem; }
.chq-check { margin-top: 0.9rem; }
.chq-check label { font-weight: 600; display: inline-flex; gap: 0.5rem; align-items: flex-start; }
.chq-check input[type="checkbox"] { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.2rem; accent-color: var(--brand); }
.chq-filter { margin-bottom: 1rem; }
.chq-filter .actions { margin: 1rem 0 0; }
.chq-summary { font-weight: 650; }
.chq-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chq-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.chq-actions .delete-box { flex-basis: 100%; }
.chq-void-row td { color: var(--muted); }
.chq-void-row td:nth-child(4) { text-decoration: line-through; }
.chq-reason { display: block; }
.chq-dl { margin-top: 1.25rem; }
.chq-payees { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.75rem; }
.chq-payee { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; align-items: flex-start; }
.chq-payee h3 { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.chq-payee-text { min-width: 0; flex: 1 1 14rem; }
.chq-payee-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chq-addr { white-space: pre-line; margin: 0.25rem 0 0; }
.chq-edit { flex: 1 1 100%; }
.chq-fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.chq-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.5rem 1rem; }
.chq-choice { align-items: flex-start; }
.chq-choice input { margin-top: 0.25rem; flex: none; }
.chq-choice-hint { display: block; font-weight: 400; }
.chq-steps { margin: 0 0 0.5rem; padding-left: 1.3rem; }
.chq-steps li + li { margin-top: 0.3rem; }
.chq-off { margin-top: 1rem; }
.chq-pair { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.chq-pair .field + .field { margin-top: 0; }
.chq-sub { font-weight: 500; font-size: 0.95rem; }
.chq-adv { margin-top: 1rem; }
.chq-adv summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.chq-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0 1rem; }
@media (max-width: 560px) {
  .chq-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .chq-tabs a { justify-content: center; text-align: center; padding: 0 8px; }
}
.chq-fieldset legend { font: inherit; font-weight: 650; font-size: 1rem; margin-bottom: 0.4rem; }
/* Line up from a photo */
.chq-photo { margin-bottom: 1rem; }
.chq-photo-head { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.chq-photo-head h2 { margin: 0; }
.chq-photo input[type="file"] { max-width: 100%; font: inherit; }
.chq-figure { margin: 1rem 0; }
.chq-stage { position: relative; container-type: inline-size; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; touch-action: none; }
.chq-stage-img { display: block; width: 100%; height: auto; }
.chq-box { position: absolute; box-sizing: border-box; border: 1.5px solid #1d6fd1; background: rgba(29, 111, 209, 0.12); color: #0b3d80; cursor: grab; line-height: 1; white-space: nowrap; overflow: hidden; touch-action: none; }
.chq-box:active { cursor: grabbing; }
.chq-box-default { border-color: #6b6b75; border-style: dashed; background: rgba(107, 107, 117, 0.12); color: #3d3d45; }
.chq-box-text { display: block; font-family: Arial, Helvetica, sans-serif; }
.chq-box-address .chq-box-text { white-space: pre-line; line-height: 1.13; }
.chq-box-date .chq-box-text { display: flex; }
.chq-box-date .chq-box-text span { flex: 0 0 12.5%; text-align: center; }
.chq-controls { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.75rem 1rem; margin: 1rem 0; }
.chq-ctl { border: 1px solid var(--line); border-radius: var(--radius-lg, 12px); padding: 0.75rem; background: var(--surface, #fff); }
.chq-ctl legend { font-weight: 650; padding: 0 0.3rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.chq-ctl-row { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: flex-end; }
.chq-ctl-row .field + .field { margin-top: 0; }
.chq-ctl-row .chq-num { max-width: 6.5rem; }
.chq-nudges { display: flex; gap: 0.3rem; }
.chq-nudge { min-width: 44px; min-height: 44px; padding: 0; justify-content: center; }
.chq-swatch { display: inline-block; width: 0.9rem; height: 0.9rem; border: 1.5px solid #1d6fd1; background: rgba(29, 111, 209, 0.12); border-radius: 2px; }
.chq-lu-layout { max-width: 26rem; }
