.accounting-workspace { max-width: 1500px; margin-inline: auto; }
.accounting-workspace .crm-button { white-space: nowrap; }
.accounting-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; font-size: 13px; }
.accounting-nav a { color: var(--ui-muted); text-decoration: none; font-weight: 600; }
.accounting-nav a:hover { color: var(--ui-accent); }
.accounting-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.accounting-metric p { margin: 0 0 12px; font-size: 12px; color: var(--ui-muted); }
.accounting-metric strong { display: block; font-size: clamp(20px,2vw,30px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.accounting-negative { color: var(--ui-danger-ink); }
.accounting-section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.accounting-table-wrap { overflow-x: auto; margin-top: 18px; }
.accounting-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.accounting-table th { color: var(--ui-muted); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--ui-subtle); }
.accounting-table td,.accounting-table th { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--ui-line); white-space: nowrap; }
.accounting-table td:first-child { font-weight: 500; }
.accounting-table .accounting-number { text-align: right; font-variant-numeric: tabular-nums; }
.accounting-table a { color: var(--ui-accent); text-decoration: none; }
.accounting-tag,.accounting-alert-tag { display: inline-block; background: var(--ui-subtle); border-radius: 20px; padding: 4px 9px; font-size: 11px; font-weight: 500; }
.accounting-alert-tag { background: #fff0d8; color: #946022; }
.accounting-muted { display: block; color: var(--ui-muted); font-size: 11px; margin-top: 4px; font-weight: 400; }
.accounting-empty { text-align: center !important; color: var(--ui-muted); padding: 40px !important; white-space: normal !important; }
.accounting-inline-form,.accounting-inline-summary { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.accounting-inline-summary { align-items: center; justify-content: space-between; font-size: 13px; }
.accounting-inline-summary strong { display: block; font-size: 18px; margin-top: 8px; }
.accounting-workspace label { font-size: 12px; font-weight: 500; }
.accounting-workspace input:not([type=checkbox]):not([type=submit]),.accounting-workspace select { display: block; box-sizing: border-box; min-width: 0; max-width: 100%; width: 100%; margin-top: 6px; padding: 9px 11px; border: 1px solid var(--ui-input-line); border-radius: 7px; background: var(--ui-panel); font: inherit; }
.accounting-workspace .crm-form-grid { margin-top: 20px; }
.accounting-workspace h2 { font-size: 17px; letter-spacing: -.02em; }
.accounting-disclosure { border-top: 1px solid var(--ui-line); margin-top: 22px; padding-top: 16px; }
.accounting-disclosure summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.accounting-funding { padding: 18px 22px; border: 1px solid #e9d5aa; border-left: 3px solid #ba8940; background: #fff9ee; border-radius: 10px; color: #735124; font-size: 13px; }
.accounting-funding p { margin: 7px 0; }
.accounting-invoice-totals { max-width: 300px; margin: 24px 0 0 auto; }
.accounting-invoice-totals p { display: flex; justify-content: space-between; }
@media (max-width: 1100px) { .accounting-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 650px) { .accounting-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .accounting-workspace .crm-form-grid { grid-template-columns: 1fr; } .accounting-inline-form { align-items: stretch; } .accounting-metric strong { font-size: 22px; } }

html[data-theme="dark"] .accounting-funding { background: #322b20; border-color: #79623e; color: #efd5a6; }
html[data-theme="dark"] .accounting-alert-tag { background: #493b25; color: #efd5a6; }
