/* Year end forms (1099-NEC, 1099-MISC, T4A) on the 1099 tab of /payroll.html. public/js/acct/tax-forms.js */
.tf-wrap { margin-top: 22px; }
.tf-head { flex-wrap: wrap; }
.tf-actions, .tf-exports { display: flex; gap: 8px; flex-wrap: wrap; }
.tf-exports { margin: 14px 0; }
.tf-seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; max-width: 100%; }
.tf-seg-btn { border: 0; background: var(--surface); color: var(--text-2); padding: 8px 14px; font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tf-seg-btn + .tf-seg-btn { border-left: 1px solid var(--border-strong); }
.tf-seg-btn:hover { background: var(--surface-2); }
.tf-seg-btn.on { background: var(--accent); color: var(--on-accent); }
.tf-seg-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.tf-pad { padding: 12px 0; }
.tf-issues { border: 1px solid var(--border); border-radius: var(--radius); margin: 12px 0; max-height: 320px; overflow: auto; }
.tf-issue { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.tf-issue:last-child { border-bottom: 0; }
.tf-issue-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tf-ok { display: flex; align-items: center; gap: 8px; color: var(--success); margin: 12px 0; }
.tf-card .btn.sm { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
.tf-card .btn.ghost { border-color: transparent; background: transparent; }
.tf-card .btn.ghost:hover { background: var(--surface-2); }
.tf-row-actions { white-space: nowrap; text-align: right; }
.tf-table { border: 1px solid var(--border); border-radius: var(--radius); }
.tf-note { margin: 12px 0 0; }
.tf-sub { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tf-sub:first-child { margin-top: 0; }
.tf-grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 12px; }
.tf-adj-list { display: grid; gap: 6px; margin-bottom: 10px; }
.tf-adj { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 8px; padding: 6px 10px; background: var(--surface-2); border-radius: var(--radius); }
.tf-map-table select { width: 100%; min-width: 0; }
.tf-map .inv-table-wrap { max-height: 50vh; overflow: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .tf-seg { display: flex; width: 100%; }
  .tf-seg-btn { flex: 1 1 0; padding: 8px 6px; font-size: 13px; }
  .tf-exports .btn, .tf-actions .btn { flex: 1 1 auto; }
  .tf-head .ab-sec-aside { flex: 1 1 100%; }
  .tf-grid3 { grid-template-columns: 1fr 1fr; }
  .tf-grid3 > :first-child { grid-column: 1 / -1; }
  .tf-row-actions { text-align: left; white-space: normal; }
  .tf-row-actions .btn span:not(.i) { display: inline; }
  .tf-issue { flex-wrap: wrap; }
  .tf-adj { grid-template-columns: 1fr auto; }
  table.inv-table.tf-map-table tr { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  table.inv-table.tf-map-table td:first-child { grid-column: 1 / -1; }
  table.inv-table.tf-map-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
}
