/* Shared table language for the PRO economic workspace; BASIC is outside this shell. */
#costs .econ4-shell {
  --econ-table-ink: #263b32;
  --econ-table-muted: #68746f;
  --econ-table-green: #248044;
  --econ-table-red: #c83b32;
  --econ-table-amber: #e6a23c;
  --econ-table-line: #e1e7e1;
}
#costs .econ4-shell :is(.econ4-table, .payroll-table, .econ-payable-table, .econ-receivable-table) {
  width: 100%; border-collapse: collapse; font-family: inherit; font-size: .85rem; line-height: 1.45;
}
#costs .econ4-shell :is(.econ4-table, .payroll-table, .econ-payable-table, .econ-receivable-table) th {
  padding: 10px 12px; background: #f7f9f6; border-bottom: 1px solid var(--econ-table-line);
  color: var(--econ-table-muted); font-family: inherit; font-size: .72rem; font-weight: 700;
  line-height: 1.4; letter-spacing: .03em; text-transform: uppercase; vertical-align: middle;
}
#costs .econ4-shell :is(.econ4-table, .payroll-table, .econ-payable-table, .econ-receivable-table) td {
  padding: 12px; border-bottom: 1px solid var(--econ-table-line); font-family: inherit;
  font-size: .85rem; line-height: 1.45; color: var(--econ-table-ink); vertical-align: middle;
}
#costs .econ4-shell :is(.econ4-table, .payroll-table, .econ-payable-table, .econ-receivable-table) tbody tr { background: #fff; }
#costs .econ4-shell :is(.econ4-table, .payroll-table, .econ-payable-table, .econ-receivable-table) tbody tr:is([tabindex], [data-account-detail]):hover { background: #f5f8f4; }
#costs .econ4-shell :is(.econ4-table-wrap, .payroll-scroll, .econ-payable-table-wrap, .econ-receivable-table-wrap) {
  border: 1px solid var(--econ-table-line); border-radius: 10px; overflow: auto;
}
#costs .econ4-shell .econ-table-party,
#costs .econ4-shell .econ-account-group .econ-table-party {
  color: var(--econ-table-ink); font-size: inherit; font-weight: 700; letter-spacing: normal;
}
#costs .econ4-shell :is(.econ-payable-origin, .econ-receivable-origin, .econ-table-category) { font-weight: 400; color: var(--econ-table-ink); }
#costs .econ4-shell :is(.econ-payable-table, .econ-receivable-table) tr[data-account-detail] td:first-child strong { font-weight: 500; }
#costs .econ4-shell .econ-account-group td { padding: 10px 12px !important; background: #f2f6ee !important; }
#costs .econ4-shell .econ-account-group td > div > span { font-size: .8rem; }
#costs .econ4-shell :is(.econ-table-number, .workforce-money) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
#costs .econ4-shell :is(.econ-table-money, .econ4-amount),
#costs .econ4-shell .payroll-table :is(td.net, td.deduction, td.workforce-money) {
  text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums;
  font-size: .85rem; font-weight: 600; color: var(--econ-table-ink);
}
#costs .econ4-shell .econ-table-money strong { font-weight: inherit; }
#costs .econ4-shell :is(.econ-table-total, tfoot .econ-table-money) { font-weight: 700; }
#costs .econ4-shell .econ-table-salary { color: var(--econ-table-ink); }
#costs .econ4-shell .econ-payroll-paid-table td.net,
#costs .econ4-shell .payroll-table td.deduction,
#costs .econ4-shell .operating-expense-table td.econ4-amount { color: var(--econ-table-red); }
/* Statements retain their financial meaning, including totals and opening rows. */
#costs .econ4-shell :is(.bank-statement, .cash-statement) td:nth-child(n+4) { font-size: .85rem; font-weight: 600; }
#costs .econ4-shell :is(.bank-statement .bank-credit, .cash-statement .cash-in, .econ4-amount.income) { color: var(--econ-table-green); }
#costs .econ4-shell :is(.bank-statement .bank-debit, .cash-statement .cash-out, .econ4-amount.expense) { color: var(--econ-table-red); }
#costs .econ4-shell :is(.bank-opening-row, .cash-opening) td { background: #ededed !important; font-weight: 700; }
#costs .econ4-shell :is(.bank-opening-row, .cash-opening) strong { font-weight: inherit; }
#costs .econ4-shell .cash-statement tfoot :is(td.cash-in, td.cash-out) { text-align: right; font-weight: 700; }
#costs .econ4-shell .econ-credit-overdue-amount { color: var(--econ-table-red) !important; }
#costs .econ4-shell .econ-credit-pending-amount { color: #94600b !important; }
/* State chips share dimensions and tones, whether they are labels or clickable payments. */
#costs .econ4-shell :is(.econ-table-status, .payroll-status) {
  display: inline-flex; align-items: center; box-sizing: border-box; min-height: 26px; max-width: 400px;
  padding: 4px 9px; border: 1px solid transparent; border-radius: 999px;
  font-family: inherit; font-size: .75rem; line-height: 1.35; font-weight: 700;
  text-transform: none; letter-spacing: normal; text-align: left; white-space: normal;
}
#costs .econ4-shell :is(.econ-status-paid, .payroll-status:not(.void)) {
  background: var(--econ-table-green) !important; color: #fff !important; border-color: var(--econ-table-green) !important;
}
#costs .econ4-shell .econ-status-pending {
  background: var(--econ-table-amber) !important; color: #42300e !important; border-color: var(--econ-table-amber) !important;
}
#costs .econ4-shell .econ-status-overdue {
  background: var(--econ-table-red) !important; color: #fff !important; border-color: var(--econ-table-red) !important;
}
#costs .econ4-shell :is(.econ-status-neutral, .payroll-status.void, .bank-currency) {
  background: #eef1ee !important; color: #526159 !important; border-color: #dfe5df !important;
}
#costs .econ4-shell button.econ-table-status { cursor: pointer; }
#costs .econ4-shell button.econ-table-status:hover { filter: brightness(.96); }
#costs .econ4-shell button.econ-table-status:focus-visible { outline: 2px solid #173f32; outline-offset: 3px; }
#costs .econ4-shell tr:is(.econ-commerce-row, [data-account-detail], [data-cash-row]):focus:not(:focus-visible) { outline: none; }
/* Individual numeric columns keep their alignment without depending on footer colspans. */
#costs .econ4-shell .econ-livestock-table :is(th, td):is(:nth-child(5), :nth-child(6)),
#costs .econ4-shell .econ-supplies-table :is(th, td):is(:nth-child(5), :nth-child(6)),
#costs .econ4-shell .econ-sales-table :is(th, td):is(:nth-child(4), :nth-child(5), :nth-child(6)) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#costs .econ4-shell .econ-payroll-paid-table :is(th, td):is(:nth-child(4), :nth-child(5), :nth-child(6), :nth-child(7)) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#costs .econ4-shell .econ4-table td small { font-size: .75rem; color: var(--econ-table-muted); }
