/* Track B accounting page (generic). */
.acct-page { display: grid; gap: 0.75rem; }
.acct-head h2 { margin: 0; }
.acct-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.acct-tab { border: 1px solid var(--border, #d0d5dd); background: var(--surface, #fff); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; font: inherit; }
.acct-tab.active { background: var(--primary, #1f4e79); color: #fff; border-color: transparent; }
.acct-msg:empty { display: none; }
.acct-msg { margin: 0; padding: 0.45rem 0.7rem; border-radius: 6px; background: #eef4fb; }
.acct-msg-ok { background: #e7f6ec; }
.acct-msg-bad { background: #fdecec; }
.acct-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.acct-table th, .acct-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border, #e4e7ec); text-align: left; vertical-align: top; }
.acct-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-top: 0.6rem; }
.acct-form input, .acct-form select, .acct-tabs + * select { font: inherit; padding: 0.25rem 0.4rem; }
.acct-inline { display: inline-flex; gap: 0.25rem; align-items: center; font-size: 0.85rem; }
.acct-note { flex-basis: 100%; margin: 0.2rem 0 0; font-size: 0.8rem; }
.acct-masked { color: var(--muted, #667085); font-style: italic; }
.acct-warn { background: #fff4e5; border-left: 4px solid #f79009; padding: 0.4rem 0.6rem; }
.acct-void td { text-decoration: line-through; color: var(--muted, #667085); }
.acct-void td:last-child { text-decoration: none; }
.acct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.5rem; margin: 0.5rem 0; }
.acct-stats > div { border: 1px solid var(--border, #e4e7ec); border-radius: 8px; padding: 0.45rem 0.6rem; display: grid; }
.acct-stats span { font-size: 0.78rem; color: var(--muted, #667085); }
.acct-stats strong { font-size: 1.15rem; }
.acct-group h4 { margin: 0.8rem 0 0.3rem; }
.acct-leadcost { margin-top: 0.8rem; }
@media (max-width: 720px) {
  .acct-table { display: block; overflow-x: auto; white-space: nowrap; }
  .acct-form > * { flex: 1 1 100%; }
}
