/* Only the shared phone/APK surface; desktop tables and controls remain untouched. */
@media (max-width: 680px) {
  #tab-ledger-balances, #tab-accounting-vouchers { min-width:0; width:100%; }
  #tab-ledger-balances .ledger-balance-body,
  #tab-accounting-vouchers .accounting-voucher-page { width:100%; max-width:100%; padding:14px; gap:16px; background:#f6f8fc; box-sizing:border-box; }
  #tab-ledger-balances .payment-home-heading-row,
  #tab-accounting-vouchers .accounting-voucher-heading { padding:4px 0; border:0; box-shadow:none; background:none; }
  #tab-ledger-balances .payment-home-heading-row h1,
  #tab-accounting-vouchers .accounting-voucher-heading h2 { font-size:24px; line-height:1.2; letter-spacing:-.5px; }
  #tab-ledger-balances .payment-home-heading-row .eyebrow,
  #tab-ledger-balances .payment-home-heading-row > div > p:not(.eyebrow),
  #tab-ledger-balances .payment-home-heading-actions [data-ledger-balance-view],
  #tab-accounting-vouchers .accounting-voucher-heading .eyebrow,
  #tab-accounting-vouchers .accounting-voucher-heading p:not(.eyebrow),
  #tab-accounting-vouchers .accounting-voucher-heading-actions,
  #tab-accounting-vouchers .accounting-voucher-card-head p { display:none; }
  #tab-accounting-vouchers .accounting-voucher-title-block { grid-template-columns:44px minmax(0,1fr); gap:12px; }
  #tab-accounting-vouchers .accounting-voucher-title-icon { width:44px; height:44px; border-radius:14px; }
  #tab-ledger-balances .payment-home-stat-grid,
  #tab-accounting-vouchers .accounting-voucher-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #tab-ledger-balances .payment-home-stat-card { grid-template-columns:1fr; padding:14px; gap:4px; min-height:0; border-radius:16px; border:1px solid #e0e6ef; background:white; }
  #tab-ledger-balances .payment-home-heading-actions { align-self:flex-start; }
  #tab-ledger-balances .payment-home-heading-actions button { width:auto; min-height:44px; padding:8px 14px; font-size:13px; }
  #tab-ledger-balances .payment-home-stat-icon,
  #tab-ledger-balances .payment-home-stat-card span:not(.payment-home-stat-icon) { display:none; }
  #tab-ledger-balances .payment-home-stat-card strong { font-size:21px; }
  #tab-ledger-balances .payment-home-stat-card small { font-size:12px; }
  #tab-accounting-vouchers .accounting-voucher-stat { padding:12px; min-height:0; }
  #tab-accounting-vouchers .accounting-voucher-stat strong { font-size:19px; }
  #tab-accounting-vouchers .accounting-voucher-stat-icon { display:none; }
  #tab-accounting-vouchers .accounting-voucher-page-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  #tab-accounting-vouchers .accounting-voucher-page-tab { padding:12px 8px; gap:8px; border-radius:12px; min-width:0; }
  #tab-accounting-vouchers .accounting-voucher-page-tab i,
  #tab-accounting-vouchers .accounting-voucher-page-tab small { display:none; }
  #tab-accounting-vouchers .accounting-voucher-page-tab span { font-size:14px; text-align:center; }
  #tab-accounting-vouchers .accounting-voucher-page-switch { background:#f6f8fc; padding:6px 0; scroll-margin-top:80px; }
  #tab-ledger-balances .payment-home-table-card,
  #tab-accounting-vouchers .accounting-voucher-form-card,
  #tab-accounting-vouchers .accounting-voucher-register-card { padding:14px; border:1px solid #e0e6ef; border-radius:18px; box-shadow:0 3px 12px #203e6e06; min-width:0; width:100%; box-sizing:border-box; }
  #tab-ledger-balances .payment-home-section-head { flex-direction:column; align-items:stretch; gap:12px; }
  #tab-ledger-balances .payment-home-section-head h2 { font-size:20px; }
  #tab-ledger-balances .ledger-balance-summary-card .payment-home-section-head p { display:none; }
  #tab-ledger-balances .accounting-voucher-filters,
  #tab-accounting-vouchers .accounting-voucher-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; width:100%; min-width:0; }
  #ledgerBalanceSearch, #accountingVoucherSearch,
  #tab-ledger-balances .accounting-voucher-filters > .search-control,
  #tab-accounting-vouchers .accounting-voucher-filters > .search-control,
  #tab-ledger-balances .accounting-voucher-filters > .input-affordance,
  #tab-accounting-vouchers .accounting-voucher-filters > .input-affordance,
  #tab-ledger-balances .ledger-statement-search-field { grid-column:1/-1; }
  #tab-ledger-balances input, #tab-ledger-balances select,
  #tab-accounting-vouchers input, #tab-accounting-vouchers select,
  #tab-accounting-vouchers textarea { font-size:16px; min-width:0; max-width:100%; width:100%; min-height:48px; border-radius:12px; box-sizing:border-box; }
  #tab-ledger-balances button, #tab-accounting-vouchers button { min-height:44px; white-space:normal; }
  #tab-accounting-vouchers .accounting-voucher-form-grid { gap:18px; }
  #tab-accounting-vouchers .accounting-voucher-form-grid label { gap:7px; font-size:13px; }
  #tab-accounting-vouchers .accounting-voucher-form-grid label small { font-weight:400; font-size:12px; }
  #tab-accounting-vouchers #accountingVoucherAmount { font-size:24px; font-weight:700; color:#0c725c; min-height:60px; background:#f0faf6; }
  #tab-accounting-vouchers .accounting-voucher-allocation-summary { border-radius:12px; padding:12px; }
  #tab-accounting-vouchers .accounting-voucher-form > .action-row { display:grid; grid-template-columns:minmax(0,1fr) 90px; gap:10px; margin-top:20px; }
  #tab-accounting-vouchers .accounting-voucher-form > .action-row button { border-radius:12px; padding:12px 8px; }
  .accounting-mobile-disclosure { grid-column:1/-1; min-width:0; width:100%; box-sizing:border-box; border:1px solid #dce5f1; border-radius:14px; background:#f5f8ff; }
  .accounting-mobile-disclosure > summary { padding:14px; cursor:pointer; color:#254e91; font-size:13px; font-weight:700; min-height:48px; box-sizing:border-box; }
  .accounting-mobile-disclosure-content { padding:0 12px 12px; min-width:0; }
  .accounting-mobile-report .accounting-mobile-disclosure-content,
  .accounting-mobile-statement-filters .accounting-mobile-disclosure-content { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .accounting-mobile-report select,
  .accounting-mobile-statement-filters label:nth-child(3),
  .accounting-mobile-statement-filters button { grid-column:1/-1; }
  #tab-accounting-vouchers .accounting-voucher-register-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  #tab-ledger-balances:has(#ledgerStatementPanel:not([hidden])) .payment-home-heading-row { display:none; }
  #ledgerStatementPanel { scroll-margin-top:80px; }
  #ledgerStatementPanel .accounting-voucher-heading-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  #ledgerStatementPanel [data-ledger-balance-view="summary"] { grid-column:1/-1; grid-row:1; }
  #ledgerStatementMeta { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
  #tab-ledger-balances .data-table, #tab-accounting-vouchers .data-table { overflow:visible; border:0; background:none; box-shadow:none; min-width:0; }
  #tab-ledger-balances .data-table table, #tab-accounting-vouchers .data-table table { display:block; width:100%; min-width:0; table-layout:auto; }
  #tab-ledger-balances .data-table thead, #tab-accounting-vouchers .data-table thead { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  #ledgerBalanceTableBody, #ledgerStatementTableBody, #accountingVoucherTableBody { display:grid; gap:12px; width:100%; }
  #ledgerBalanceTableBody > tr, #ledgerStatementTableBody > tr, #accountingVoucherTableBody > tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; background:white; border:1px solid #dce5ef; border-radius:16px; padding:14px; box-shadow:0 3px 8px #203e6e05; }
  #ledgerBalanceTableBody > tr > td, #ledgerStatementTableBody > tr > td, #accountingVoucherTableBody > tr > td { display:block; width:auto; min-width:0; border:0; padding:0; text-align:left; white-space:normal; overflow-wrap:anywhere; font-size:14px; line-height:1.45; background:transparent; }
  #ledgerBalanceTableBody td::before, #ledgerStatementTableBody td::before, #accountingVoucherTableBody td::before { content:attr(data-accounting-label); display:block; color:#64748b; font-size:11px; line-height:1.4; margin-bottom:4px; font-weight:500; }
  #ledgerBalanceTableBody td:first-child, #ledgerBalanceTableBody td:nth-child(2), #ledgerBalanceTableBody td:nth-child(6), #ledgerBalanceTableBody td:last-child { grid-column:1/-1; }
  #ledgerBalanceTableBody td:nth-child(6) { grid-row:3; border-radius:12px; background:#edf4ff; color:#1454bf; padding:10px 12px; font-size:20px; }
  #ledgerBalanceTableBody td:nth-child(2) { color:#64748b; font-size:12px; margin-top:-8px; }
  #ledgerBalanceTableBody td:first-child::before, #ledgerBalanceTableBody td:nth-child(2)::before, #ledgerBalanceTableBody td:last-child::before { display:none; }
  #ledgerBalanceTableBody .ledger-balance-ledger-name { font-size:16px; }
  #ledgerBalanceTableBody .ledger-balance-row-meta { font-size:12px; }
  #ledgerBalanceTableBody [data-ledger-balance-action] { width:100%; color:#1559c1; background:#f3f7ff; border-radius:10px; }
  #ledgerStatementTableBody td:nth-child(3), #ledgerStatementTableBody td:last-child { grid-column:1/-1; }
  #ledgerStatementTableBody td:nth-child(2) { grid-row:1; grid-column:1; }
  #ledgerStatementTableBody td:first-child { grid-row:1; grid-column:2; text-align:right; }
  #ledgerStatementTableBody td:last-child { border-top:1px solid #e5ebf2; padding-top:10px; color:#174984; }
  #ledgerStatementTableBody .ledger-statement-brought-forward { background:#f0f5fc; }
  #accountingVoucherTableBody td:first-child { font-weight:700; font-size:14px; }
  #accountingVoucherTableBody td:nth-child(3) { grid-row:1; grid-column:2; text-align:right; }
  #accountingVoucherTableBody td:nth-child(4) { grid-row:2; grid-column:1/-1; font-size:16px; font-weight:600; }
  #accountingVoucherTableBody td:nth-child(6), #accountingVoucherTableBody td:last-child { grid-column:1/-1; }
  #accountingVoucherTableBody td:nth-child(6) { order:1; border-top:1px solid #e5ebf2; padding-top:10px; }
  #accountingVoucherTableBody td:last-child { order:2; }
  #accountingVoucherTableBody td:nth-child(7) { font-size:20px; font-weight:700; color:#107657; }
  #accountingVoucherTableBody td:nth-child(3)::before, #accountingVoucherTableBody td:last-child::before { display:none; }
  #accountingVoucherTableBody td small { display:block; font-size:12px; font-weight:400; }
  #accountingVoucherTableBody tr:has(.accounting-voucher-type-pill.payment) td:nth-child(7) { color:#b34421; }
  #accountingVoucherTableBody .accounting-voucher-action-menu { display:block; margin-left:auto; width:max-content; }
  #accountingVoucherTableBody .accounting-voucher-action-menu > summary { min-width:44px; min-height:44px; }
  #accountingVoucherTableBody .accounting-voucher-action-menu[open] { position:relative; z-index:5; }
  #accountingVoucherTableBody .accounting-voucher-cancelled-row { background:#f8fafc; }
  #ledgerBalanceTableBody .accounting-mobile-empty, #ledgerStatementTableBody .accounting-mobile-empty, #accountingVoucherTableBody .accounting-mobile-empty { display:block; }
  #ledgerBalanceTableBody .accounting-mobile-empty td::before, #ledgerStatementTableBody .accounting-mobile-empty td::before, #accountingVoucherTableBody .accounting-mobile-empty td::before { display:none; }
  #tab-ledger-balances .helper-text, #accountingVoucherResultsMeta { font-size:12px; line-height:1.5; }
}
