/* Expenses Ledger: a compact ledger workspace (Operate mode). One page head, tabs attached to it, a summary band, then dense, scannable tables.
   Spacing is a 4px scale: 4 / 8 / 12 / 16 / 24. Brand tokens only (css/tokens.css); no decoration that does not carry information. */

/* ---------------------------------------------------------------- page shell */
/* The top bar already names the page, so the legacy header strip (an empty white bar once its title is hidden) is not drawn here. */
body.has-topbar[data-nav="expenses"] .admin-header { display: none; }

/* .ex-page is also .admin-content, which grows to fill the viewport: a grid would stretch its rows into big gaps. A top-aligned flex column cannot. */
.ex-page { display: flex; flex-direction: column; align-content: flex-start; gap: 12px; width: 100%; max-width: 1440px; padding-top: 16px; padding-bottom: 32px; caret-color: var(--c-primary); }
.ex-page .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ex-page ::selection, .ex-dialog ::selection { background: #cde6ec; color: var(--c-text); }
.ex-page input[type="checkbox"] { accent-color: var(--c-primary); }
/* The save / error message floats over the page instead of pushing the whole ledger down for several seconds. */
.ex-page > #adminAlert { position: fixed; top: calc(var(--adm-topbar-h, 56px) + 12px); right: 24px; z-index: 200; width: min(420px, calc(100vw - 32px)); margin: 0; box-shadow: var(--e-2); }

/* ---------------------------------------------------------------- page head: title, subtitle, primary action, then the tabs, all in one band */
.ex-head { border-bottom: 1px solid var(--c-border); }
.ex-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.ex-heading h1 { margin: 0; color: var(--c-text); font-family: var(--font-sans); font-size: 1.5rem; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; }
.ex-heading p { margin: 2px 0 0; color: var(--c-text-muted); font-size: .8125rem; }
.ex-heading .dsp-btn { flex: none; min-height: 36px; white-space: nowrap; }
.ex-tabs { display: flex; gap: 4px; margin-bottom: -1px; overflow-x: auto; scrollbar-width: none; }
.ex-tabs::-webkit-scrollbar { display: none; }
.ex-tabs button { appearance: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--c-text-secondary); font: inherit; font-size: .8125rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.ex-tabs button i { display: none; }
.ex-tabs button:hover { color: var(--c-text); }
.ex-tabs button[aria-selected="true"] { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.ex-tabs button:focus-visible, .ex-action:focus-visible, .ex-filter:focus-visible, .ex-report-period:focus-visible, .ex-dialog button:focus-visible, .ex-receipt-dialog button:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

.ex-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ex-section[hidden], .ex-state[hidden], .ex-loading[hidden] { display: none !important; }

/* ---------------------------------------------------------------- summary band (overview): this month leads, the rest supports */
.ex-summary { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); box-shadow: var(--e-1); overflow: hidden; }
.ex-stat { display: grid; align-content: center; gap: 2px; min-width: 0; padding: 14px 20px; border-left: 1px solid var(--c-border); }
.ex-stat:first-child { border-left: 0; background: #f4fafc; }
.ex-stat-label { color: var(--c-text-muted); font-size: .75rem; font-weight: 600; }
.ex-stat-value { overflow: hidden; color: var(--c-text); font-size: 1.25rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.ex-stat:first-child .ex-stat-value { font-size: 1.75rem; letter-spacing: -.03em; }
.ex-stat-sub { color: var(--c-text-muted); font-size: .75rem; }

/* ---------------------------------------------------------------- panels */
.ex-panel { container: ex / inline-size; min-width: 0; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); box-shadow: var(--e-1); overflow: hidden; }
.ex-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 16px; border-bottom: 1px solid var(--c-border); }
.ex-panel-head h2, .ex-panel-head h3 { margin: 0; color: var(--c-text); font-size: .9375rem; font-weight: 650; letter-spacing: -.01em; }
.ex-panel-head p { margin: 1px 0 0; color: var(--c-text-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.ex-panel-head .dsp-btn { flex: none; min-height: 32px; }
.ex-panel-body { padding: 12px 16px 16px; }
.ex-overview-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 12px; align-items: start; }

/* recent expenses */
.ex-quick { margin: 0; padding: 0; list-style: none; }
.ex-quick li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #eef1f4; }
.ex-quick li:last-child { border-bottom: 0; }
.ex-quick li:hover { background: #f9fbfc; }
.ex-quick-title { overflow: hidden; color: var(--c-text); font-size: .8125rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ex-quick-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; color: var(--c-text-muted); font-size: .75rem; }
.ex-quick-amount { color: var(--c-text); font-size: .8125rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* spending by category */
.ex-category-list { display: grid; gap: 12px; }
.ex-category { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; }
.ex-category-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; color: var(--c-text-secondary); font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.ex-category-amount { color: var(--c-text); font-size: .8125rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.ex-category-share { min-width: 34px; color: var(--c-text-muted); font-size: .75rem; text-align: right; font-variant-numeric: tabular-nums; }
.ex-category-track { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 4px; background: #e9eef1; }
.ex-category-track span { display: block; height: 100%; border-radius: inherit; background: var(--dot, var(--c-primary)); }

/* the small colored mark that identifies a category everywhere (table, lists, report) */
.ex-cat { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ex-cat i, .ex-category-name i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--c-primary)); }

/* ---------------------------------------------------------------- transactions: filters */
.ex-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--c-border); }
.ex-filter { height: 36px; min-width: 0; max-width: 100%; padding: 0 10px; border: 1px solid var(--c-border-strong); border-radius: 8px; background: #fff; color: var(--c-text); font: inherit; font-size: .8125rem; }
.ex-filter::placeholder { color: var(--c-text-muted); }
.ex-filter:hover { border-color: #aab6c2; }
.ex-filter:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--focus-ring); }
.ex-search { position: relative; flex: 1 1 220px; max-width: 340px; min-width: 160px; }
.ex-search i { position: absolute; top: 50%; left: 11px; color: var(--c-text-muted); font-size: .75rem; pointer-events: none; transform: translateY(-50%); }
.ex-search .ex-filter { width: 100%; padding-left: 32px; }
select.ex-filter { flex: 0 0 auto; min-width: 140px; padding-right: 28px; }
.ex-filter[type="date"] { flex: 0 0 auto; width: 140px; }
.ex-toolbar .dsp-btn { flex: none; min-height: 36px; margin-left: auto; }

/* ---------------------------------------------------------------- transactions: table */
.ex-table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--c-border-strong) transparent; }
.ex-table { width: 100%; min-width: 0; border-collapse: collapse; font-size: .8125rem; }
.ex-table th { padding: 9px 12px; border-bottom: 1px solid var(--c-border); background: #f8fafb; color: var(--c-text-muted); font-size: .75rem; font-weight: 600; text-align: left; white-space: nowrap; }
.ex-table td { padding: 10px 12px; border-bottom: 1px solid #eef1f4; color: var(--c-text-secondary); vertical-align: middle; }
.ex-table th:first-child, .ex-table td:first-child { padding-left: 16px; }
.ex-table th:last-child, .ex-table td:last-child { padding-right: 12px; }
.ex-table tbody tr:last-child td { border-bottom: 0; }
.ex-table tbody tr:hover td { background: #f9fbfc; }
.ex-table .ex-c-amt { text-align: right; }
.ex-c-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ex-c-desc { min-width: 200px; }
.ex-c-act { width: 1%; }
.ex-description { display: block; color: var(--c-text); font-weight: 600; }
.ex-sub { display: -webkit-box; margin-top: 2px; overflow: hidden; color: var(--c-text-muted); font-size: .75rem; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.ex-amount { color: var(--c-text); text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.ex-action { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--c-text-muted); font-size: .8125rem; cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.ex-action:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.ex-action.delete:hover { background: var(--c-danger-bg); color: var(--c-danger); }
.ex-receipt-button { color: var(--c-primary); }
.ex-paging { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--c-border); color: var(--c-text-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.ex-paging div { display: flex; gap: 8px; }

/* ---------------------------------------------------------------- states */
.ex-empty { display: grid; justify-items: center; gap: 4px; padding: 32px 16px; color: var(--c-text-muted); text-align: center; }
.ex-empty i { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); font-size: .875rem; }
.ex-empty strong { color: var(--c-text); font-size: .875rem; font-weight: 650; }
.ex-empty span { max-width: 44ch; font-size: .8125rem; }
.ex-state { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; font-size: .8125rem; }
.ex-error { justify-content: flex-start; border: 1px solid #f3c9c4; background: var(--c-danger-bg); color: var(--c-danger); }
.ex-error .dsp-btn { min-height: 30px; margin-left: auto; }
.ex-loading { display: grid; gap: 12px; }
.ex-skel { border-radius: 12px; background: linear-gradient(90deg, #eceff2 25%, #f5f7f9 50%, #eceff2 75%); background-size: 200% 100%; animation: ex-shimmer 1.4s ease-in-out infinite; }
.ex-skel--band { height: 74px; }
.ex-skel--panel { height: 280px; }
@keyframes ex-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- reports */
.ex-report-panel { display: grid; gap: 0; }
.ex-report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--c-border); }
.ex-report-head > div { display: grid; gap: 1px; }
.ex-report-head h2 { margin: 0; font-size: .9375rem; font-weight: 650; }
.ex-report-total { color: var(--c-text); font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ex-report-head small { color: var(--c-text-muted); font-size: .75rem; }
.ex-report-head .dsp-btn { flex: none; min-height: 32px; }
.ex-report-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--c-border); }
.ex-report-controls label { display: flex; align-items: center; gap: 8px; color: var(--c-text-muted); font-size: .75rem; font-weight: 600; }
.ex-report-controls .ex-filter { width: 140px; }
.ex-report-periods { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--c-border); border-radius: 8px; background: #f4f6f8; }
.ex-report-period { min-height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--c-text-secondary); font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.ex-report-period:hover { color: var(--c-text); }
.ex-report-period.active { background: #fff; color: var(--c-primary); box-shadow: var(--e-1); }
.ex-report-chart { display: flex; align-items: stretch; gap: 4px; height: 168px; margin: 16px 16px 0; padding-top: 4px; overflow-x: auto; border-bottom: 1px solid var(--c-border); }
.ex-report-bar { flex: 1 0 28px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.ex-report-bar span { width: min(28px, 76%); min-height: 3px; border-radius: 4px 4px 0 0; background: var(--c-primary); }
.ex-report-bar small { max-width: 100%; overflow: hidden; color: var(--c-text-muted); font-size: .6875rem; text-overflow: ellipsis; white-space: nowrap; }
.ex-report-results { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); gap: 16px 24px; align-items: start; padding: 16px; }
.ex-report-results h3 { margin: 0 0 8px; color: var(--c-text); font-size: .8125rem; font-weight: 650; }
.ex-report-table { grid-row: span 2; min-width: 0; }
.ex-report-breakdown { min-width: 0; }
.ex-report-results .ex-table-wrap { border: 1px solid var(--c-border); border-radius: 8px; }
.ex-report-results .ex-table { min-width: 0; }
.ex-report-results .ex-table th:first-child, .ex-report-results .ex-table td:first-child { padding-left: 12px; }
.ex-report-breakdown .ex-category-list { gap: 12px; }

/* ---------------------------------------------------------------- add / edit dialog */
.ex-dialog { margin: auto; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface); color: var(--c-text); box-shadow: var(--e-3); overflow: auto; }
.ex-dialog::backdrop { background: rgba(4, 24, 34, .54); }
.ex-dialog form { padding: 20px 24px 16px; }
.ex-dialog-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ex-dialog-head h2 { margin: 0; font-family: var(--font-sans); font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; }
.ex-dialog-head p { margin: 2px 0 0; color: var(--c-text-muted); font-size: .8125rem; }
.ex-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--c-border); border-radius: 50%; background: #fff; color: var(--c-text-secondary); cursor: pointer; }
.ex-close:hover { background: var(--c-bg); color: var(--c-text); }
.ex-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.ex-field { display: grid; gap: 4px; min-width: 0; color: var(--c-text-secondary); font-size: .75rem; font-weight: 600; }
.ex-field input:not([type="file"]):not([type="checkbox"]), .ex-field select, .ex-field textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--c-border-strong); border-radius: 8px; background: #fff; color: var(--c-text); font: inherit; font-size: .875rem; font-weight: 400; }
.ex-field textarea { resize: vertical; }
.ex-field input:focus, .ex-field select:focus, .ex-field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: var(--focus-ring); }
.ex-wide { grid-column: 1 / -1; }
.ex-money-input { display: flex; align-items: center; min-height: 40px; border: 1px solid var(--c-border-strong); border-radius: 8px; background: #fff; }
.ex-money-input:focus-within { border-color: var(--c-primary); box-shadow: var(--focus-ring); }
.ex-money-input span { padding-left: 12px; color: var(--c-text-muted); font-weight: 500; }
.ex-field .ex-money-input input:not([type="file"]):not([type="checkbox"]) { min-height: 38px; padding: 8px 12px 8px 8px; border: 0; border-radius: 8px; outline: 0; box-shadow: none; }
.ex-file { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px dashed var(--c-border-strong); border-radius: 8px; background: #fbfcfd; color: var(--c-primary); cursor: pointer; }
.ex-file:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.ex-file span { overflow: hidden; color: var(--c-text-secondary); font-size: .8125rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.ex-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ex-hint { color: var(--c-text-muted); font-size: .75rem; font-weight: 400; }
.ex-field small[data-error] { color: var(--c-danger); font-size: .75rem; font-weight: 500; }
.ex-field small[data-error]:empty { display: none; }
.ex-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--c-border); }
.ex-current-receipt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 12px; border: 1px solid var(--c-border); border-radius: 8px; background: #f8fafb; }
.ex-current-receipt[hidden] { display: none; }
.ex-link-button { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: var(--c-primary); font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; }
.ex-link-button:hover { text-decoration: underline; text-underline-offset: 2px; }
.ex-remove-receipt { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text-muted); font-size: .75rem; font-weight: 500; cursor: pointer; }

/* ---------------------------------------------------------------- receipt preview dialog */
.ex-receipt-dialog { margin: auto; width: min(820px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface); color: var(--c-text); box-shadow: var(--e-3); }
.ex-receipt-dialog::backdrop { background: rgba(4, 24, 34, .56); }
.ex-receipt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--c-border); }
.ex-receipt-head h2 { min-width: 0; margin: 0; overflow: hidden; font-size: .9375rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ex-receipt-preview { display: grid; place-items: center; min-height: 160px; max-height: min(70vh, 720px); padding: 16px; overflow: auto; background: #f4f6f7; }
.ex-receipt-preview img { display: block; max-width: 100%; max-height: 64vh; object-fit: contain; }
.ex-pdf-note { margin: 0; color: var(--c-text-secondary); font-size: .8125rem; text-align: center; }
.ex-receipt-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--c-border); }
.ex-receipt-footer .dsp-btn { min-height: 36px; }
.ex-receipt-footer [hidden] { display: none !important; }

/* ---------------------------------------------------------------- responsive (structural: columns drop, then rows become cards) */
@media (max-width: 900px) {
  .ex-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .ex-report-results { grid-template-columns: minmax(0, 1fr); }
  .ex-report-table { grid-row: auto; }
}
@media (max-width: 680px) {
  .ex-page { gap: 8px; padding-top: 8px; }
  .ex-page > #adminAlert { right: 16px; }
  .ex-heading h1 { font-size: 1.25rem; }
  .ex-summary { grid-template-columns: 1fr 1fr; }
  .ex-stat { padding: 12px 14px; }
  .ex-stat:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--c-border); }
  .ex-stat:nth-child(2) { border-left: 0; }
  .ex-stat:first-child .ex-stat-value { font-size: 1.5rem; }
  .ex-toolbar { display: grid; grid-template-columns: 1fr 1fr; padding: 12px; }
  .ex-search { grid-column: 1 / -1; max-width: none; }
  select.ex-filter, .ex-filter[type="date"] { width: 100%; min-width: 0; }
  .ex-toolbar .dsp-btn { grid-column: 1 / -1; margin-left: 0; }
  .ex-panel-head, .ex-report-head, .ex-report-controls { padding-inline: 12px; }
  .ex-report-controls { flex-wrap: nowrap; overflow-x: auto; }
  .ex-report-periods { flex: none; }
  .ex-report-controls label { flex: none; }
  .ex-report-chart { margin-inline: 12px; }
  .ex-report-results { padding: 12px; }
  .ex-report-total { font-size: 1.25rem; }

  .ex-paging { padding-inline: 12px; }
  .ex-form-grid { grid-template-columns: 1fr; }
  .ex-wide { grid-column: 1; }
  .ex-dialog form { padding: 16px; }
  .ex-receipt-preview { min-height: 120px; padding: 8px; }
  .ex-receipt-preview img { max-height: 62vh; }
  .ex-current-receipt { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .ex-heading { align-items: flex-start; }
  .ex-heading p { display: none; }
}
/* The ledger adapts to the space its panel really has (the sidebar may or may not take 250px): first "Recorded by" goes, then each row becomes a card. */
@container ex (max-width: 900px) {
  .ex-transactions-table .ex-c-by { display: none; }
}
@container ex (max-width: 640px) {
  .ex-transactions-table .ex-table-wrap { overflow: visible; }
  .ex-transactions-table .ex-table, .ex-transactions-table .ex-table tbody { display: block; width: 100%; min-width: 0; }
  .ex-transactions-table .ex-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .ex-transactions-table .ex-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid #eef1f4; }
  .ex-transactions-table .ex-table tbody tr:last-child { border-bottom: 0; }
  .ex-transactions-table .ex-table td, .ex-transactions-table .ex-table td:first-child, .ex-transactions-table .ex-table td:last-child { display: block; padding: 0; border: 0; }
  .ex-transactions-table .ex-table tbody tr:hover td { background: transparent; }
  .ex-transactions-table .ex-table tbody tr:hover { background: #f9fbfc; }
  .ex-transactions-table .ex-table td.ex-c-by { display: none; }
  .ex-transactions-table .ex-table td.ex-c-desc { order: 1; flex: 1 1 calc(100% - 132px); min-width: 0; }
  .ex-transactions-table .ex-table td.ex-c-amt { order: 2; flex: 0 0 auto; }
  .ex-transactions-table .ex-table td.ex-c-date { order: 3; font-size: .75rem; }
  .ex-transactions-table .ex-table td.ex-c-cat { order: 4; font-size: .75rem; }
  .ex-transactions-table .ex-table td.ex-c-method { order: 5; font-size: .75rem; }
  .ex-transactions-table .ex-table td.ex-c-act { order: 6; width: auto; margin-left: auto; }
}
@media (max-width: 680px) { .ex-action { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .ex-skel { animation: none; }
  .ex-tabs button, .ex-action { transition: none; }
}
