:root {
    color-scheme: light;
    --ink: #20242a;
    --ink-soft: #454c56;
    --muted: #737b86;
    --canvas: #f3f4f6;
    --surface: #fff;
    --surface-soft: #f8f9fa;
    --line: #e1e4e8;
    --line-dark: #cbd0d6;
    --charcoal: #202226;
    --accent: #f59e0b;
    --accent-dark: #9a5a00;
    --accent-soft: #fff5dc;
    --success: #137a55;
    --success-soft: #eaf8f1;
    --danger: #b7353f;
    --danger-soft: #fff0f1;
    --info: #315f9f;
    --info-soft: #edf4ff;
    --shadow: 0 12px 32px rgba(24, 30, 38, .07);
    --radius: 14px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font-family: Tahoma, "Segoe UI", sans-serif; font-size: 14px; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
[hidden] { display: none !important; }
a { color: inherit; }
button, a, input, select, textarea, summary { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { box-shadow: 0 0 0 3px rgba(245, 158, 11, .3); }
.skip-link { position: fixed; top: 8px; right: 8px; z-index: 200; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; color: #111; background: #fff; font-weight: 800; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.page-loading { position: fixed; inset: 0; z-index: 150; display: grid; place-content: center; justify-items: center; gap: 9px; color: #fff; background: var(--charcoal); }
.page-loading small { color: #aeb5bf; }
.loading-mark { width: 34px; height: 34px; border: 3px solid #555b64; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.page-loading[hidden] .loading-mark, .inline-loading[hidden] .loading-mark { animation: none; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.appbar { position: sticky; top: 0; z-index: 40; min-height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 9px clamp(18px, 3vw, 44px); color: #fff; background: rgba(32, 34, 38, .98); border-bottom: 3px solid var(--accent); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.appbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: #201704; background: linear-gradient(145deg, #ffc75a, var(--accent)); font-size: 21px; font-weight: 900; }
.appbar-brand strong, .appbar-brand small { display: block; }
.appbar-brand strong { font-size: 16px; }
.appbar-brand small { margin-top: 3px; color: #aeb5bd; font-size: 11px; }
.appbar-status { display: flex; align-items: center; gap: 8px; color: #c8cdd3; font-size: 12px; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; display: inline-block; border-radius: 50%; background: #36c68a; box-shadow: 0 0 0 4px rgba(54,198,138,.12); }
.appbar-status.is-working .status-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,.16); animation: pulse 1s ease infinite alternate; }
@keyframes pulse { to { opacity: .4; } }
.appbar-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.back-link { min-height: 42px; display: inline-flex; align-items: center; padding: 0 10px; color: #cbd0d6; text-decoration: none; font-size: 12px; }
.back-link:hover { color: #fff; }

.page-shell { width: min(1540px, calc(100% - 32px)); margin: 24px auto 64px; }
.workspace-tabs { display: inline-flex; gap: 5px; margin: 0 4px 14px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #e9ebee; }
.workspace-tab { min-width: 210px; min-height: 54px; padding: 8px 15px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; text-align: right; }
.workspace-tab span, .workspace-tab small { display: block; }
.workspace-tab span { font-weight: 900; }
.workspace-tab small { margin-top: 3px; font-size: 10px; }
.workspace-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 3px 12px rgba(24,30,38,.09); }
.workspace-tab.is-active span { color: var(--accent-dark); }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 12px 4px 22px; }
.page-intro-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.eyebrow { margin: 0 0 5px; color: var(--accent-dark); font-size: 11px; font-weight: 900; letter-spacing: .03em; }
.page-intro h1 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 35px); line-height: 1.35; }
.page-intro p:last-child { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.85; }

.workflow-strip { display: flex; align-items: center; gap: 12px; padding: 13px 20px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 7px 18px rgba(25,31,39,.04); }
.workflow-step { min-width: 180px; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.workflow-step > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #747c85; background: #eceef1; font-weight: 900; }
.workflow-step strong, .workflow-step small { display: block; }
.workflow-step strong { color: var(--ink-soft); }
.workflow-step small { margin-top: 3px; font-size: 11px; }
.workflow-step.is-active > span { color: #211703; background: var(--accent); }
.workflow-strip > i { height: 1px; flex: 1; background: var(--line); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.metric { position: relative; overflow: hidden; min-height: 104px; padding: 17px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 7px 18px rgba(25,31,39,.04); }
.metric::after { content: ""; position: absolute; width: 72px; height: 72px; left: -24px; bottom: -30px; border-radius: 50%; background: #f0f1f3; }
.metric span, .metric small { display: block; color: var(--muted); }
.metric strong { display: block; margin: 3px 0 2px; font-size: 30px; line-height: 1.25; }
.metric small { font-size: 11px; }
.metric-attention { border-top: 3px solid var(--danger); }
.metric-ready { border-top: 3px solid var(--success); }

.bank-progress-panel { margin-bottom: 15px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 7px 18px rgba(25,31,39,.04); }
.bank-progress-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 13px; }
.bank-progress-heading h2 { margin: 0; font-size: 18px; }
.bank-progress-heading > p { max-width: 720px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.75; }
.bank-progress-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.bank-progress-card { min-width: 0; padding: 13px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 11px; background: var(--surface-soft); }
.bank-progress-card.current { border-top-color: var(--success); background: #f7fcf9; }
.bank-progress-card.no_match { border-top-color: var(--danger); }
.bank-progress-card.no_data { border-top-color: var(--line-dark); }
.bank-progress-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 34px; }
.bank-progress-title > div { min-width: 0; display: flex; align-items: center; gap: 7px; }
.bank-progress-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.bank-progress-title em { flex: 0 0 auto; padding: 4px 6px; border-radius: 999px; color: var(--accent-dark); background: var(--accent-soft); font-size: 8px; font-style: normal; font-weight: 900; }
.bank-progress-card.current .bank-progress-title em { color: var(--success); background: var(--success-soft); }
.bank-progress-card.no_match .bank-progress-title em { color: var(--danger); background: var(--danger-soft); }
.progress-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.bank-progress-card.current .progress-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(19,122,85,.12); }
.bank-progress-card.no_match .progress-dot { background: var(--danger); box-shadow: 0 0 0 3px rgba(183,53,63,.12); }
.bank-progress-card.no_data .progress-dot { background: var(--line-dark); box-shadow: none; }
.bank-progress-match { min-height: 63px; padding: 9px 10px; margin: 8px 0; border-radius: 8px; background: #fff; }
.bank-progress-match span, .bank-progress-match strong, .bank-progress-match small { display: block; }
.bank-progress-match span { color: var(--muted); font-size: 8px; }
.bank-progress-match strong { margin: 4px 0 3px; font-size: 12px; }
.bank-progress-match small { color: var(--ink-soft); font-size: 8px; line-height: 1.55; }
.bank-progress-card dl { display: grid; gap: 5px; margin: 0; }
.bank-progress-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bank-progress-card dt, .bank-progress-card dd { margin: 0; font-size: 8px; }
.bank-progress-card dt { color: var(--muted); }
.bank-progress-card dd { direction: ltr; text-align: right; font-weight: 800; }
.bank-progress-card .has-difference dd { color: var(--danger); }
.bank-progress-card .is-zero dd { color: var(--success); }
.bank-progress-card > p { min-height: 29px; margin: 9px 0 0; padding-top: 7px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 8px; line-height: 1.65; }
.bank-progress-empty { grid-column: 1/-1; padding: 18px; border: 1px dashed var(--line-dark); border-radius: 9px; color: var(--muted); text-align: center; font-size: 10px; }

.reconciliation-workspace { animation: workspace-in .18s ease-out; }
@keyframes workspace-in { from { opacity: .35; transform: translateY(5px); } }
.reconciliation-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 12px 4px 20px; }
.reconciliation-intro h1 { margin: 0 0 8px; font-size: clamp(25px,3vw,35px); }
.reconciliation-intro p:last-child { max-width: 800px; margin: 0; color: var(--muted); line-height: 1.8; }
.reconciliation-intro-actions { flex: 0 0 auto; display: flex; align-items: stretch; gap: 8px; }
.reconciliation-intro-actions > .primary-button { min-width: 185px; }
.formula-chip { flex: 0 0 auto; min-width: 235px; padding: 12px 15px; border: 1px solid #f4d99e; border-radius: 11px; background: var(--accent-soft); }
.formula-chip span, .formula-chip strong { display: block; }
.formula-chip span { margin-bottom: 5px; color: var(--accent-dark); font-size: 10px; }
.formula-chip strong { font-size: 12px; }
.reconciliation-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 13px; }
.reconciliation-metrics article { min-height: 100px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 7px 18px rgba(25,31,39,.04); }
.reconciliation-metrics span, .reconciliation-metrics small { display: block; color: var(--muted); }
.reconciliation-metrics strong { display: block; margin: 6px 0 3px; font-size: clamp(18px,2vw,26px); direction: ltr; text-align: right; }
.reconciliation-metrics small { font-size: 10px; }
.calculation-note { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px 15px; border: 1px solid #cfe1d7; border-radius: 12px; background: #f3fbf7; }
.calculation-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--success); font-size: 19px; font-weight: 900; }
.calculation-note p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.calculation-details { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; padding: 11px; border: 1px dashed var(--line-dark); border-radius: 11px; background: #fff; }
.calculation-details div { padding: 9px 11px; border-radius: 8px; background: var(--surface-soft); }
.calculation-details strong, .calculation-details span { display: block; }
.calculation-details strong { margin-bottom: 4px; font-size: 11px; }
.calculation-details span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.reconciliation-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.reconciliation-toolbar { display: grid; grid-template-columns: minmax(250px,1fr) auto auto; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.reconciliation-toolbar .search-field > span { background: var(--surface-soft); }
.reconciliation-toolbar .search-field input { width: 100%; height: 45px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 9px; background: #fff; }
.reconciliation-filters { display: flex; align-items: center; gap: 3px; overflow-x: auto; }
.rec-filter { min-height: 40px; flex: 0 0 auto; padding: 0 11px; border: 1px solid transparent; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; }
.rec-filter:hover { color: var(--ink); background: #fff; }
.rec-filter.is-active { color: var(--accent-dark); border-color: #f1d18d; background: var(--accent-soft); }
.unassigned-alert { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; border-bottom: 1px solid #f4d4d7; background: var(--danger-soft); }
.unassigned-alert strong, .unassigned-alert p { margin: 0; }
.unassigned-alert p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.unassigned-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; padding: 11px 18px; border-bottom: 1px solid var(--line); background: #fffafa; }
.unassigned-item { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid #f0dadd; border-radius: 8px; background: #fff; }
.unassigned-item strong, .unassigned-item small { display: block; }
.unassigned-item strong { font-size: 11px; }
.unassigned-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.unassigned-item b { flex: 0 0 auto; color: var(--danger); font-size: 10px; direction: ltr; }
.unassigned-item > div:last-child { flex: 0 0 auto; text-align: left; }
.unassigned-item button { min-height: 28px; display: block; margin: 5px 0 0 auto; padding: 0 8px; border: 1px solid #e2bfc3; border-radius: 6px; color: var(--danger); background: #fff; font-size: 9px; font-weight: 800; }
.reconciliation-head, .reconciliation-row { display: grid; grid-template-columns: minmax(230px,1.35fr) minmax(155px,.9fr) minmax(155px,.9fr) minmax(180px,1fr) minmax(165px,.95fr) 118px; align-items: center; gap: 10px; }
.reconciliation-head { min-height: 41px; padding: 0 18px; color: var(--muted); background: #f4f5f6; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; }
.reconciliation-row { width: 100%; min-height: 88px; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: #fff; text-align: right; }
.reconciliation-row:hover { background: #fffdf8; }
.reconciliation-row:last-child { border-bottom: 0; }
.rec-person { min-width: 0; }
.rec-person strong, .rec-person small { display: block; }
.rec-person strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.rec-person small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.rec-pair { min-width: 0; }
.rec-pair span { display: flex; justify-content: space-between; gap: 6px; margin: 3px 0; color: var(--muted); font-size: 9px; }
.rec-pair b { color: var(--ink-soft); direction: ltr; font-size: 10px; }
.rec-pair .is-zero { color: #aeb4bc; }
.rec-final strong, .rec-final small { display: block; direction: ltr; text-align: right; }
.rec-final strong { font-size: 13px; }
.rec-final small { margin-top: 5px; color: var(--muted); font-size: 9px; direction: rtl; }
.rec-final.is-receivable strong { color: var(--success); }
.rec-final.is-payable strong { color: var(--danger); }
.rec-status { display: inline-flex; min-height: 28px; align-items: center; justify-content: center; padding: 0 8px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.rec-status.needs_action { color: #8c5200; background: var(--accent-soft); }
.rec-status.receivable { color: var(--success); background: var(--success-soft); }
.rec-status.payable { color: var(--danger); background: var(--danger-soft); }
.rec-status.settled { color: var(--muted); background: #eceff2; }
.inline-loading { min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); }
.inline-loading .loading-mark { border-color: #d7dbe0; border-top-color: var(--accent); }
.reconciliation-modal { padding: 22px; }
.reconciliation-detail-card { width: min(1180px,100%); max-height: min(900px,calc(100vh - 44px)); overflow: auto; }
.rec-detail-hero { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
.rec-detail-hero article { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.rec-detail-hero span, .rec-detail-hero strong, .rec-detail-hero small { display: block; }
.rec-detail-hero span { color: var(--muted); font-size: 9px; }
.rec-detail-hero strong { margin: 5px 0 2px; font-size: 14px; direction: ltr; text-align: right; }
.rec-detail-hero small { color: var(--muted); font-size: 9px; }
.rec-detail-section { margin-top: 15px; }
.rec-detail-section h3 { margin: 0 0 7px; font-size: 13px; }
.detail-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.detail-table th, .detail-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; font-size: 10px; }
.detail-table th { color: var(--muted); background: #f5f6f7; font-size: 9px; }
.detail-table td.amount { direction: ltr; text-align: right; font-weight: 800; }
.detail-table tr.is-excluded { color: var(--muted); background: #f7f8f9; }
.excluded-label { display: inline-block; margin-right: 4px; padding: 2px 5px; border-radius: 5px; color: var(--muted); background: #e4e7ea; font-size: 8px; }
.detail-empty { padding: 16px; border: 1px dashed var(--line-dark); border-radius: 9px; color: var(--muted); text-align: center; font-size: 10px; }
.mapping-modal { text-align: right; }
.mapping-person-results { max-height: 310px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 9px; }
.mapping-person-results > button { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; text-align: right; }
.mapping-person-results > button:last-child { border-bottom: 0; }
.mapping-person-results > button:hover { background: var(--accent-soft); }
.mapping-person-results strong, .mapping-person-results span { display: block; }
.mapping-person-results strong { font-size: 11px; }
.mapping-person-results span { color: var(--muted); font-size: 9px; direction: ltr; text-align: left; }
.statement-modal { width: min(720px, calc(100% - 28px)); }
.statement-person-results:empty { display: none; }
.statement-person-results { grid-column: 1/-1; max-height: 220px; margin-top: -7px; }
#statement-person-selected.is-selected { color: var(--success); font-weight: 800; }
.file-drop { padding: 12px; border: 1px dashed var(--line-dark); border-radius: 10px; background: var(--surface-soft); }
.file-drop > span { position: static; display: block; margin-bottom: 8px; background: transparent; }
.file-drop input[type="file"] { width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.statement-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 9px; }
.statement-summary article { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.statement-summary span, .statement-summary strong { display: block; }
.statement-summary span { color: var(--muted); font-size: 9px; }
.statement-summary strong { margin-top: 5px; font-size: 16px; direction: ltr; text-align: right; }
.statement-summary .is-success { border-color: #bcdacb; background: var(--success-soft); }
.statement-summary .is-success strong { color: var(--success); }
.statement-summary .is-warning { border-color: #f0d7a5; background: var(--accent-soft); }
.statement-totals { display: flex; gap: 8px; margin-bottom: 12px; }
.statement-totals span { padding: 7px 10px; border-radius: 8px; color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.statement-totals b { margin-right: 5px; color: var(--ink); direction: ltr; }
.statement-table { min-width: 930px; }
.statement-table tr.statement-unmatched { background: #fff9eb; }
.statement-table tr.statement-matched { color: var(--muted); }
.statement-status { display: inline-flex; min-height: 25px; align-items: center; padding: 0 7px; border-radius: 999px; font-size: 8px; font-weight: 900; white-space: nowrap; }
.statement-status.matched { color: var(--success); background: var(--success-soft); }
.statement-status.unmatched { color: #8c5200; background: var(--accent-soft); }
.statement-table-wrap { overflow-x: auto; }

.work-layout { display: grid; grid-template-columns: minmax(0, 1fr) 326px; align-items: start; gap: 15px; direction: ltr; }
.queue-card, .action-rail { direction: rtl; }
.queue-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px 13px; }
.queue-heading h2 { margin: 0; font-size: 21px; }
.queue-count { min-width: 84px; display: flex; align-items: baseline; gap: 6px; color: var(--muted); }
.queue-count strong { color: var(--ink); font-size: 19px; }
.queue-count span { font-size: 11px; }
.status-tabs { display: flex; gap: 2px; padding: 0 18px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.status-tab { min-height: 43px; flex: 0 0 auto; padding: 0 13px; border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.status-tab:hover { color: var(--ink); }
.status-tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); }
.queue-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) 210px 165px; gap: 10px; padding: 15px 18px; background: var(--surface-soft); border-bottom: 1px solid var(--line); }
.search-field, .select-field { position: relative; display: block; }
.search-field > span, .select-field > span { position: absolute; right: 12px; top: -7px; z-index: 1; padding: 0 4px; color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.search-field input, .select-field select { width: 100%; height: 45px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 9px; color: var(--ink); background: #fff; }

.batch-section { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-row strong { font-size: 12px; }
.section-row small { color: var(--muted); font-size: 10px; }
.batch-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 8px; }
.batch-card { min-height: 75px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; padding: 10px 12px; text-align: right; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.batch-card:hover { border-color: #d8a13e; background: #fffcf5; }
.batch-card.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.batch-card strong, .batch-card span { display: block; }
.batch-card strong { font-size: 12px; }
.batch-card span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.batch-card b { grid-row: 1 / span 2; grid-column: 2; color: var(--success); font-size: 13px; }
.batch-empty { padding: 12px; color: var(--muted); border: 1px dashed var(--line-dark); border-radius: 9px; text-align: center; font-size: 11px; }

.transaction-head, .transaction-row { display: grid; grid-template-columns: 42px minmax(205px, 1.45fr) 105px 130px minmax(190px, 1fr) 118px 92px; align-items: center; gap: 10px; }
.transaction-head { min-height: 41px; padding: 0 18px; color: var(--muted); background: #f1f2f4; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; }
.transaction-row { position: relative; min-height: 96px; padding: 13px 18px; border-bottom: 1px solid #eceef0; transition: background .12s ease; }
.transaction-row:last-child { border-bottom: 0; }
.transaction-row:hover { background: #fcfcfd; }
.transaction-row.is-selected { background: #fffaf0; box-shadow: inset -3px 0 var(--accent); }
.transaction-row.is-posted { background: #f7fbf9; }
.transaction-row.is-posted .row-check input { opacity: 1; accent-color: var(--success); }
.transaction-row.is-duplicate { opacity: .72; }
.row-check { width: 44px; height: 44px; display: grid; place-items: center; }
.row-check input { width: 19px; height: 19px; accent-color: var(--accent-dark); }
.transaction-main strong, .transaction-main span, .transaction-main small, .cell-stack strong, .cell-stack span, .cell-stack small { display: block; }
.transaction-main strong { margin-bottom: 5px; font-size: 13px; line-height: 1.55; }
.transaction-main span { color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.transaction-main small, .cell-stack small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.direction-pill { display: inline-flex !important; align-items: center; width: max-content; margin-top: 5px; padding: 3px 7px; border-radius: 999px; font-size: 9px !important; font-weight: 800; }
.direction-pill.incoming { color: var(--success); background: var(--success-soft); }
.direction-pill.outgoing { color: var(--danger); background: var(--danger-soft); }
.date-cell, .amount-cell { font-variant-numeric: tabular-nums; }
.date-cell strong, .amount-cell strong { white-space: nowrap; font-size: 12px; }
.amount-cell strong { font-size: 13px; }
.account-cell strong { color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.confidence { display: inline-flex; width: max-content; margin-top: 5px; padding: 3px 7px; border-radius: 999px; font-size: 9px !important; font-weight: 800; }
.confidence.high { color: var(--success); background: var(--success-soft); }
.confidence.medium { color: var(--accent-dark); background: var(--accent-soft); }
.confidence.low { color: var(--danger); background: var(--danger-soft); }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 27px; padding: 4px 8px; border-radius: 999px; white-space: nowrap; font-size: 9px; font-weight: 900; }
.status-pill.pending { color: #8b5700; background: #fff4d6; }
.status-pill.needs_review { color: var(--danger); background: var(--danger-soft); }
.status-pill.approved { color: var(--success); background: var(--success-soft); }
.status-pill.posted { color: var(--info); background: var(--info-soft); }
.status-pill.rejected { color: #68717c; background: #edf0f2; }
.row-action { min-height: 39px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 8px; color: var(--ink-soft); background: #fff; font-size: 10px; font-weight: 800; }
.row-action:hover { color: var(--accent-dark); border-color: #d89b2d; }
.doc-number { color: var(--info); font-size: 10px; font-weight: 800; }
.row-actions { display: grid; gap: 5px; }
.candidate-detail-button, .match-detail-button { border: 0; font-family: inherit; cursor: pointer; }
.candidate-detail-button { padding: 0; color: #8b5700; background: transparent; font-size: 9px; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.match-detail-button { min-height: 34px; padding: 5px 8px; border: 1px solid #b9dbc9; border-radius: 8px; background: var(--success-soft); color: var(--success); line-height: 1.55; }
.empty-state { padding: 60px 20px; text-align: center; }
.empty-mark { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--muted); background: #eceef1; font-size: 20px; font-weight: 900; }
.empty-state h3 { margin: 0 0 6px; }
.empty-state p { margin: 0 0 17px; color: var(--muted); }

.action-rail { position: sticky; top: 84px; display: grid; gap: 12px; }
.selection-card, .automation-card, .prepayment-queue-card, .source-details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 22px rgba(25,31,39,.05); }
.selection-card { overflow: hidden; }
.selection-empty { padding: 26px 22px; text-align: center; }
.selection-mark { width: 52px; height: 45px; position: relative; display: block; margin: 0 auto 14px; border: 2px solid #d2d6db; border-radius: 8px; }
.selection-mark::before, .selection-mark::after { content: ""; position: absolute; right: 10px; left: 10px; height: 2px; background: #d2d6db; }
.selection-mark::before { top: 14px; }.selection-mark::after { top: 25px; }
.selection-empty h2 { margin: 0 0 8px; font-size: 17px; }
.selection-empty p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.selection-summary { padding: 19px; }
.selection-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.selection-title h2 { margin: 0; font-size: 16px; }
.text-button { min-height: 38px; padding: 0 7px; border: 0; color: var(--danger); background: transparent; font-size: 10px; }
.selection-summary dl { margin: 12px 0; }
.selection-summary dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 31px; }
.selection-summary dt { color: var(--muted); font-size: 10px; }
.selection-summary dd { margin: 0; text-align: left; font-size: 11px; font-weight: 800; }
.balance-box { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; padding: 12px; border: 1px solid #cde7da; border-radius: 10px; background: var(--success-soft); }
.balance-box span { color: #497361; font-size: 10px; }
.balance-box strong { font-size: 11px; }
.balance-box small { grid-column: 1/-1; display: flex; align-items: center; gap: 6px; color: var(--success); font-size: 9px; }
.balance-box i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.post-button { width: 100%; min-height: 47px; margin-top: 13px; border: 0; border-radius: 9px; color: #fff; background: var(--success); font-weight: 900; }
.post-button:hover:not(:disabled) { background: #0f6848; }
.automation-card { padding: 16px 18px; border-right: 3px solid var(--success); }
.automation-title { display: flex; align-items: center; gap: 9px; }
.automation-title strong { font-size: 12px; }
.automation-card p { margin: 10px 0 6px; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.automation-card > small { color: var(--muted); font-size: 9px; }
.prepayment-queue-card { overflow: hidden; }
.prepayment-queue-title { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.prepayment-queue-title span, .prepayment-queue-title strong { display: block; }
.prepayment-queue-title span { color: var(--muted); font-size: 9px; }
.prepayment-queue-title strong { margin-top: 3px; font-size: 11px; }
.prepayment-queue-title .text-button { min-height: 30px; }
.prepayment-queue-list { max-height: 360px; overflow-y: auto; padding: 7px; }
.prepayment-queue-item { padding: 10px; margin-bottom: 6px; border: 1px solid #efd9aa; border-radius: 9px; background: #fffaf0; }
.prepayment-queue-item:last-child { margin-bottom: 0; }
.prepayment-queue-item > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.prepayment-queue-item strong, .prepayment-queue-item small { display: block; }
.prepayment-queue-item strong { font-size: 10px; }
.prepayment-queue-item small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.prepayment-queue-status { display: inline-flex; min-height: 23px; align-items: center; margin-top: 7px; padding: 0 7px; border-radius: 999px; color: #8c5200; background: var(--accent-soft); font-size: 8px; font-weight: 900; }
.prepayment-queue-item.ready { border-color: #b9dbc9; background: var(--success-soft); }
.prepayment-queue-item.ready .prepayment-queue-status { color: var(--success); background: #fff; }
.prepayment-queue-item.partial { border-color: #edc4c8; background: var(--danger-soft); }
.prepayment-queue-item.partial .prepayment-queue-status { color: var(--danger); background: #fff; }
.prepayment-queue-item dl { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin: 8px 0 0; }
.prepayment-queue-item dl div { padding: 6px; border-radius: 6px; background: rgba(255,255,255,.76); }
.prepayment-queue-item dt, .prepayment-queue-item dd { margin: 0; }
.prepayment-queue-item dt { color: var(--muted); font-size: 8px; }
.prepayment-queue-item dd { margin-top: 3px; direction: ltr; text-align: right; font-size: 8px; font-weight: 800; }
.queue-mini-empty { padding: 18px 8px; color: var(--muted); text-align: center; font-size: 9px; }
.source-details { overflow: hidden; }
.source-details summary { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 17px; cursor: pointer; font-size: 11px; font-weight: 800; }
.source-details summary::marker { color: var(--accent); }
.source-details summary b { min-width: 25px; padding: 4px 6px; border-radius: 999px; text-align: center; color: var(--accent-dark); background: var(--accent-soft); }
.source-note { padding: 10px 16px; color: var(--muted); background: var(--surface-soft); border-block: 1px solid var(--line); font-size: 9px; line-height: 1.7; }
.source-list { max-height: 355px; overflow-y: auto; padding: 8px; }
.source-item { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px; border-bottom: 1px solid #eef0f2; }
.source-item:last-child { border-bottom: 0; }
.source-item strong, .source-item small { display: block; }
.source-item strong { font-size: 10px; }.source-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.source-item span { flex: 0 0 auto; color: var(--accent-dark); font-size: 9px; font-weight: 800; }

.primary-button, .secondary-button, .quiet-button, .danger-button { min-height: 44px; border-radius: 9px; padding: 0 15px; font-weight: 800; }
.primary-button { border: 0; color: #221704; background: linear-gradient(145deg, #ffc654, var(--accent)); }
.primary-button:hover:not(:disabled) { filter: brightness(.97); }
.secondary-button { border: 1px solid var(--line-dark); color: var(--ink-soft); background: #fff; }
.secondary-button:hover:not(:disabled) { border-color: #d2972d; }
.quiet-button { border: 1px solid #545961; color: #fff; background: #30333a; font-size: 11px; }
.quiet-button:hover:not(:disabled) { border-color: var(--accent); }
.danger-button { border: 1px solid #efc7ca; color: var(--danger); background: var(--danger-soft); }
.icon-button { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--muted); background: transparent; font-size: 26px; }

.modal { width: min(760px, calc(100% - 28px)); max-height: calc(100vh - 30px); padding: 0; overflow: visible; border: 0; border-radius: 16px; background: transparent; }
.modal::backdrop { background: rgba(20,22,25,.66); backdrop-filter: blur(2px); }
.modal-card { max-height: calc(100vh - 30px); overflow-y: auto; padding: 24px; border-radius: 16px; background: #fff; box-shadow: 0 26px 70px rgba(0,0,0,.24); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.modal-header h2 { margin: 0 0 6px; font-size: 21px; }
.modal-header p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.matched-documents-modal { width: min(880px, calc(100% - 28px)); }
.matched-documents-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 12px; }
.matched-documents-summary > div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.matched-documents-summary span, .matched-documents-summary strong { display: block; }
.matched-documents-summary span { color: var(--muted); font-size: 9px; }
.matched-documents-summary strong { margin-top: 4px; font-size: 12px; }
.matched-documents-summary .is-exact { border-color: #b9dbc9; background: var(--success-soft); color: var(--success); }
.matched-documents-summary .has-difference { border-color: #efd9aa; background: #fffaf0; color: #8b5700; }
.matched-documents-note { margin: 0 0 13px; padding: 10px 12px; border-radius: 9px; background: var(--info-soft); color: var(--ink-soft); font-size: 10px; line-height: 1.8; }
.matched-documents-head, .matched-document-row { display: grid; grid-template-columns: minmax(0,1fr) 170px; gap: 12px; align-items: center; }
.matched-documents-head { padding: 8px 12px; color: var(--muted); background: #f1f3f5; font-size: 9px; font-weight: 800; }
.matched-documents-head span:last-child { text-align: end; }
.matched-documents-list { max-height: 440px; overflow-y: auto; border: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.matched-document-row { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.matched-document-row:last-child { border-bottom: 0; }
.matched-document-row > div:last-child { text-align: end; }
.matched-document-row strong, .matched-document-row span, .matched-document-row small { display: block; }
.matched-document-row strong { font-size: 11px; }
.matched-document-row span, .matched-document-row small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.matched-documents-actions .post-button, .manual-match-button { width: auto; min-width: 190px; margin-top: 0; }
.quick-sync-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; margin-bottom: 17px; border: 1px solid #dbe5f2; border-radius: 10px; background: var(--info-soft); }
.quick-sync-box strong, .quick-sync-box span { display: block; }
.quick-sync-box strong { font-size: 11px; }.quick-sync-box span { margin-top: 3px; color: #5c6c82; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; }
.field > span { display: block; margin-bottom: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line-dark); border-radius: 9px; color: var(--ink); background: #fff; }
.field select { min-height: 45px; }
.field input { min-height: 45px; }.field textarea { resize: vertical; line-height: 1.8; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.description-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: -5px; }
.description-suggestions:empty { display: none; }
.description-suggestion { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 10px; border: 1px solid #d4dfed; border-radius: 8px; color: var(--ink-soft); background: #f8fbff; text-align: right; font-size: 9px; }
.description-suggestion:hover { border-color: #a9bfd9; background: var(--info-soft); }
.description-suggestion.is-selected { border-color: var(--info); box-shadow: inset 0 0 0 1px var(--info); background: var(--info-soft); }
.description-suggestion strong { color: var(--ink); font-size: 9px; }
.description-suggestion span { color: var(--muted); white-space: nowrap; }
.description-suggestions.is-loading, .description-suggestions.is-empty { display: block; color: var(--muted); font-size: 9px; }
.full-field { grid-column: 1/-1; }
.privacy-note, .warning-note { display: flex; gap: 11px; padding: 11px 13px; margin-top: 14px; border-radius: 9px; font-size: 10px; line-height: 1.7; }
.privacy-note { color: #446655; background: var(--success-soft); }.privacy-note strong { flex: 0 0 auto; }
.warning-note { color: #7d5a18; background: var(--accent-soft); }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.split-actions { justify-content: space-between; }.split-actions > div { display: flex; gap: 8px; }
.transaction-summary { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.summary-item span, .summary-item strong { display: block; }.summary-item span { color: var(--muted); font-size: 9px; }.summary-item strong { margin-top: 4px; font-size: 11px; line-height: 1.6; }
.suggestion-banner { padding: 12px 13px; margin-bottom: 12px; border: 1px solid #ead5a4; border-radius: 10px; background: var(--accent-soft); }
.suggestion-banner strong, .suggestion-banner span { display: block; }.suggestion-banner strong { font-size: 11px; }.suggestion-banner span { margin-top: 4px; color: #79612f; font-size: 9px; line-height: 1.7; }
.detection-message-card { margin-bottom: 12px; overflow: hidden; border: 1px solid #cfdbea; border-radius: 10px; background: #f7faff; }
.detection-message-card > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #dce5f0; }
.detection-message-card strong, .detection-message-card span { display: block; }.detection-message-card strong { font-size: 11px; }.detection-message-card span { color: var(--muted); font-size: 9px; }
.detection-message-card pre { max-height: 220px; margin: 0; overflow: auto; padding: 12px; direction: rtl; text-align: right; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-soft); background: #fff; font: inherit; font-size: 10px; line-height: 1.9; }
.journal-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; }
.journal-row { padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; }
.journal-row span, .journal-row strong, .journal-row small { display: block; }.journal-row span { color: var(--muted); font-size: 9px; }.journal-row strong { margin: 5px 0; font-size: 11px; }.journal-row small { color: var(--ink-soft); font-size: 9px; }
.journal-row.debit { border-right: 3px solid var(--info); }.journal-row.credit { border-right: 3px solid var(--success); }
.account-results { max-height: 190px; overflow-y: auto; margin-top: 5px; border: 1px solid var(--line); border-radius: 8px; }
.account-results:empty { display: none; }
.account-option { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; text-align: right; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: #fff; }
.account-option:last-child { border-bottom: 0; }.account-option:hover { background: var(--accent-soft); }.account-option strong { font-size: 10px; }.account-option span { color: var(--muted); font-size: 9px; }
.confirm-modal { width: min(500px, calc(100% - 28px)); text-align: center; }
.confirm-mark { width: 50px; height: 50px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: #fff; background: var(--success); font-size: 24px; }
.confirm-modal h2 { margin: 0 0 8px; }.confirm-modal > .modal-card > p { margin: 0; color: var(--muted); line-height: 1.8; }
.confirm-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 15px; }
.confirm-details > div { padding: 10px 7px; border-radius: 8px; background: var(--surface-soft); }.confirm-details span, .confirm-details strong { display: block; }.confirm-details span { color: var(--muted); font-size: 9px; }.confirm-details strong { margin-top: 4px; font-size: 10px; }
.confirm-modal .post-button { width: auto; min-width: 170px; margin: 0; }
.toast { position: fixed; z-index: 250; left: 22px; bottom: 22px; max-width: min(410px, calc(100% - 44px)); transform: translateY(150%); padding: 13px 17px; border-radius: 10px; color: #fff; background: var(--charcoal); box-shadow: 0 15px 40px rgba(0,0,0,.23); opacity: 0; pointer-events: none; transition: .22s ease; font-size: 11px; line-height: 1.7; }
.toast.show { transform: none; opacity: 1; }.toast.success { background: #116a4b; }.toast.error { background: #9f2f37; }
.selection-action-bar { position: fixed; z-index: 90; right: 50%; bottom: max(18px, env(safe-area-inset-bottom)); width: min(620px, calc(100% - 32px)); min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 12px 10px 16px; transform: translateX(50%); border: 1px solid #484d54; border-radius: 14px; color: #fff; background: rgba(32,34,38,.98); box-shadow: 0 18px 50px rgba(0,0,0,.28); backdrop-filter: blur(14px); }
.selection-action-bar > div:first-child { min-width: 0; }
.selection-action-bar strong, .selection-action-bar span { display: block; }
.selection-action-bar strong { font-size: 13px; }
.selection-action-bar span { margin-top: 3px; overflow: hidden; color: #c5cad0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.selection-action-buttons { display: flex; align-items: center; gap: 8px; }
.selection-action-buttons button { min-height: 46px; padding: 0 16px; border-radius: 10px; font-weight: 900; white-space: nowrap; }
.selection-action-clear { border: 1px solid #70767e; color: #fff; background: transparent; }
.selection-action-clear:hover { border-color: #a9afb6; background: rgba(255,255,255,.08); }
.selection-action-post { min-width: 126px; border: 0; color: #fff; background: var(--success); }
.selection-action-post:hover { filter: brightness(1.08); }
body:has(.selection-action-bar:not([hidden])) { padding-bottom: 104px; }
body:has(.selection-action-bar:not([hidden])) .toast { bottom: 110px; }

/* Sales-to-accounting transaction handoff */
.sales-workspace { display: grid; gap: 16px; }
.sales-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 14px 4px 2px; }
.sales-intro h1 { margin: 0 0 8px; font-size: clamp(25px,3vw,35px); line-height: 1.35; }
.sales-intro > div:first-child > p:last-child { max-width: 800px; margin: 0; color: var(--muted); line-height: 1.9; }
.sales-trust-note { min-width: 270px; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #b9dfce; border-radius: 13px; background: var(--success-soft); }
.sales-trust-note svg, .handoff-guidance svg { width: 25px; flex: 0 0 auto; fill: none; stroke: var(--success); stroke-width: 1.8; }
.sales-trust-note strong, .sales-trust-note small { display: block; }
.sales-trust-note strong { color: var(--success); font-size: 11px; }
.sales-trust-note small { margin-top: 4px; color: var(--ink-soft); font-size: 9px; }
.sales-workflow { display: flex; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sales-workflow article { flex: 1; display: flex; align-items: center; gap: 10px; }
.sales-workflow article > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #201704; background: var(--accent); font-weight: 900; }
.sales-workflow strong, .sales-workflow small { display: block; }
.sales-workflow strong { font-size: 11px; }.sales-workflow small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.sales-workflow i { width: 38px; height: 1px; margin-inline: 8px; background: var(--line-dark); }
.sales-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.sales-metrics article { min-height: 103px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 7px 20px rgba(24,30,38,.04); }
.sales-metrics span, .sales-metrics strong, .sales-metrics small { display: block; }.sales-metrics span { color: var(--muted); font-size: 10px; }.sales-metrics strong { margin: 6px 0 2px; font-size: 27px; }.sales-metrics small { color: var(--muted); font-size: 9px; }
.sales-metrics .is-attention { border-top: 3px solid var(--accent); }.sales-metrics .is-attention strong { color: var(--accent-dark); }.sales-metrics .is-complete { border-top: 3px solid var(--success); }.sales-metrics .is-complete strong { color: var(--success); }
.sales-queue-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sales-queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px 10px; }.sales-queue-heading h2 { margin: 0; font-size: 18px; }
.sales-toolbar { display: grid; grid-template-columns: minmax(250px,1fr) 220px; gap: 10px; padding: 10px 20px 17px; }
.sales-transaction-head, .sales-transaction-row { display: grid; grid-template-columns: minmax(220px,1.15fr) 115px 155px minmax(250px,1.4fr) 130px; gap: 12px; align-items: center; padding: 10px 20px; }
.sales-transaction-head { color: var(--muted); background: var(--surface-soft); border-block: 1px solid var(--line); font-size: 9px; font-weight: 800; }
.sales-transaction-row { min-height: 112px; border-bottom: 1px solid var(--line); }.sales-transaction-row:last-child { border-bottom: 0; }.sales-transaction-row.is-missing { box-shadow: inset -3px 0 var(--accent); }.sales-transaction-row.is-complete { box-shadow: inset -3px 0 var(--success); }
.sales-transaction-main strong, .sales-transaction-main small, .sales-transaction-cell span, .sales-transaction-cell strong, .sales-transaction-cell small, .sales-purpose span, .sales-purpose strong, .sales-purpose small { display: block; }
.sales-transaction-main strong { margin: 7px 0 5px; font-size: 12px; }.sales-transaction-main small, .sales-transaction-cell span, .sales-transaction-cell small, .sales-purpose span, .sales-purpose small { color: var(--muted); font-size: 9px; line-height: 1.7; }.sales-transaction-cell strong, .sales-purpose strong { margin: 5px 0; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.sales-state, .handoff-state, .handoff-mini-badge { width: max-content; display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; font-size: 8px; font-weight: 900; }.sales-state.is-missing, .handoff-state.is-missing, .handoff-mini-badge.is-missing { color: var(--accent-dark); background: var(--accent-soft); }.sales-state.is-complete, .handoff-state.is-complete, .handoff-mini-badge.is-complete { color: var(--success); background: var(--success-soft); }
.handoff-mini-badge { margin-top: 7px; }
.sales-handoff-action { min-height: 44px; padding: 0 13px; border: 1px solid var(--accent-dark); border-radius: 9px; color: #211704; background: var(--accent); font-size: 10px; font-weight: 900; }.sales-handoff-action.is-edit { color: var(--success); background: var(--success-soft); border-color: #acd8c3; }
.sales-handoff-modal { width: min(720px,calc(100% - 28px)); }.handoff-form-grid .field > span b { color: var(--danger); }.handoff-form-grid textarea { resize: vertical; }
.handoff-guidance { display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 13px; border: 1px solid #cfe2d9; border-radius: 10px; color: var(--ink-soft); background: var(--success-soft); font-size: 10px; line-height: 1.7; }
.form-error { padding: 10px 12px; margin-top: 9px; border: 1px solid #e6b8bd; border-radius: 9px; color: var(--danger); background: var(--danger-soft); font-size: 10px; line-height: 1.7; }
.handoff-history-box { margin-top: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }.handoff-history-box summary { min-height: 44px; display: flex; align-items: center; padding: 9px 12px; color: var(--ink-soft); font-size: 10px; font-weight: 900; cursor: pointer; }
.handoff-revision { padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }.handoff-revision > div { display: flex; justify-content: space-between; gap: 10px; }.handoff-revision > div span { color: var(--muted); font-size: 9px; }.handoff-revision dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; }.handoff-revision dl div { padding: 8px; border-radius: 7px; background: var(--surface-soft); }.handoff-revision dt { color: var(--muted); font-size: 8px; }.handoff-revision dd { margin: 4px 0 0; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.review-sales-handoff { padding: 13px; margin-bottom: 12px; border: 1px solid #b9dfce; border-radius: 10px; background: var(--success-soft); }.review-handoff-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }.review-handoff-heading strong, .review-handoff-heading span { display: block; }.review-handoff-heading strong { font-size: 11px; }.review-handoff-heading > div span { margin-top: 4px; color: var(--muted); font-size: 8px; }
.review-handoff-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }.review-handoff-details div { padding: 9px; border-radius: 8px; background: var(--surface); }.review-handoff-details dt { color: var(--muted); font-size: 8px; }.review-handoff-details dd { margin: 5px 0 0; font-size: 10px; font-weight: 800; line-height: 1.7; overflow-wrap: anywhere; }.handoff-empty strong, .handoff-empty span { display: block; }.handoff-empty span { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.review-handoff-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #cfe2d9; }.review-handoff-actions .text-button { min-height: 40px; }

/* Dense all-source progress and daily groups */
.bank-progress-overview { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.bank-progress-overview span { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-soft); font-size: 9px; }
.bank-progress-overview b { color: var(--ink); font-size: 10px; font-variant-numeric: tabular-nums; }
.bank-progress-overview .is-attention { color: var(--danger); border-color: #e6b8bd; background: var(--danger-soft); }
.bank-progress-overview .is-current { color: var(--success); border-color: #b9dfce; background: var(--success-soft); }
.bank-progress-card { display: flex; flex-direction: column; }
.bank-progress-title b { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.55; }
.bank-progress-card dl { margin: 8px 0 0; }
.bank-progress-card dd { font-variant-numeric: tabular-nums; }
.bank-progress-detail { margin-top: 9px; border-top: 1px dashed var(--line); }
.bank-progress-detail summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-soft); font-size: 9px; font-weight: 900; cursor: pointer; list-style: none; }
.bank-progress-detail summary::-webkit-details-marker { display: none; }
.bank-progress-detail summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
.bank-progress-detail[open] summary svg { transform: rotate(180deg); }
.bank-progress-detail-body { padding-bottom: 2px; }
.bank-progress-detail .bank-progress-match { min-height: 0; margin: 0 0 8px; }
.bank-progress-detail p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.7; }
.batch-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.batch-card { min-width: 0; min-height: 68px; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.batch-card.needs-attention > b { color: var(--ink-soft); }
.batch-card.has-ready { border-color: #b9dfce; }

@media (max-width: 760px) {
    .bank-progress-list, .batch-list { display: grid; grid-template-columns: 1fr; overflow: visible; padding-bottom: 0; }
    .bank-progress-card, .batch-card { min-width: 0; }
    .bank-progress-overview { display: grid; grid-template-columns: 1fr 1fr; }
    .bank-progress-overview span { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .bank-progress-detail summary svg, .batch-card { transition: none; }
}

@media (max-width: 1180px) {
    .bank-progress-list { grid-template-columns: 1fr 1fr; }
    .work-layout { grid-template-columns: minmax(0,1fr) 290px; }
    .transaction-head, .transaction-row { grid-template-columns: 38px minmax(190px,1.3fr) 92px 118px minmax(150px,1fr) 105px 76px; gap: 7px; padding-inline: 12px; }
    .queue-toolbar { grid-template-columns: minmax(210px,1fr) 185px 150px; }
    .reconciliation-head, .reconciliation-row { grid-template-columns: minmax(210px,1.2fr) 145px 145px 165px 155px 105px; gap: 7px; padding-inline: 12px; }
    .reconciliation-toolbar { grid-template-columns: minmax(220px,1fr) auto; }.reconciliation-toolbar > .secondary-button { grid-column: 2; }
}
@media (max-width: 980px) {
    .appbar { grid-template-columns: 1fr auto; }.appbar-status { display: none; }
    .work-layout { grid-template-columns: 1fr; }.action-rail { position: static; grid-template-columns: 1fr 1fr; }.source-details { grid-column: 1/-1; }
    .transaction-head { display: none; }
    .transaction-row { grid-template-columns: 42px minmax(180px, 1.3fr) 105px 130px minmax(170px, 1fr) 110px; }
    .transaction-row > :last-child, .status-cell, .row-action, .doc-number, .row-actions { grid-column: 6; }
    .reconciliation-metrics { grid-template-columns: 1fr 1fr; }
    .calculation-details { grid-template-columns: 1fr 1fr; }
    .reconciliation-head { display: none; }
    .reconciliation-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; background: #f4f5f6; }
    .reconciliation-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-height: 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }
    .rec-person { grid-column: 1/-1; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
    .rec-final { grid-column: 1; }.rec-status { grid-column: 2; align-self: end; }
    .unassigned-list { grid-template-columns: 1fr 1fr; }
    .sales-transaction-head { display: none; }
    .sales-transaction-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; background: var(--surface-soft); }
    .sales-transaction-row { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
    .sales-transaction-main, .sales-purpose { grid-column: 1/-1; }.sales-purpose { padding-top: 9px; border-top: 1px dashed var(--line); }.sales-handoff-action { grid-column: 1/-1; }
}
@media (max-width: 760px) {
    body { font-size: 15px; padding-bottom: 82px; }
    .appbar { position: relative; min-height: 62px; padding: 8px 14px; gap: 8px; }.brand-mark { width: 38px; height: 38px; }.appbar-brand small, .back-link { display: none; }.quiet-button { padding-inline: 11px; }
    .page-shell { width: min(100% - 20px, 680px); margin-top: 14px; }
    .page-intro { align-items: stretch; flex-direction: column; padding: 8px 2px 16px; }.page-intro h1 { font-size: 24px; }.page-intro p:last-child { font-size: 12px; }.page-intro-actions { width: 100%; }.page-intro-actions .secondary-button { width: 100%; }.page-intro .primary-button { display: none; }
    .workflow-strip { overflow-x: auto; padding: 10px 12px; }.workflow-step { min-width: 150px; }.workflow-strip > i { min-width: 26px; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }.metric { min-height: 92px; padding: 13px 14px; }.metric strong { font-size: 25px; }
    .bank-progress-panel { padding: 13px; }.bank-progress-heading { align-items: flex-start; flex-direction: column; gap: 5px; }.bank-progress-list { display: flex; overflow-x: auto; padding-bottom: 4px; }.bank-progress-card { min-width: 265px; }
    .queue-heading { padding: 16px 14px 10px; }.status-tabs { padding-inline: 8px; }
    .queue-toolbar { grid-template-columns: 1fr 1fr; padding: 12px; }.search-field { grid-column: 1/-1; }
    .batch-section { padding: 12px; }.section-row { display: block; }.section-row small { display: block; margin-top: 4px; line-height: 1.6; }.batch-list { display: flex; overflow-x: auto; padding-bottom: 4px; }.batch-card { min-width: 225px; }
    .transaction-row { grid-template-columns: 40px minmax(0,1fr) auto; align-items: start; gap: 8px; min-height: 0; padding: 14px 10px; }
    .row-check { grid-row: 1/span 3; grid-column: 1; }.transaction-main { grid-column: 2; }.date-cell { grid-column: 3; text-align: left; }.amount-cell { grid-column: 2; }.account-cell { grid-column: 2/4; padding-top: 8px; border-top: 1px dashed var(--line); }.status-cell { grid-column: 3; grid-row: 2; }.row-action, .doc-number, .row-actions { grid-column: 3; grid-row: 3; align-self: end; }
    .action-rail { grid-template-columns: 1fr; }.selection-card { display: none; }.source-details { grid-column: auto; }.automation-card { order: 2; }.prepayment-queue-card { order: 3; }.source-details { order: 4; }
    .selection-action-bar { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); left: 10px; width: auto; min-height: 64px; gap: 12px; padding: 9px 10px; transform: none; }.selection-action-bar strong { font-size: 12px; }.selection-action-bar span { font-size: 10px; }.selection-action-buttons button { min-height: 44px; padding-inline: 12px; }.selection-action-post { min-width: 104px; }
    .modal { width: 100%; max-height: calc(100vh - 12px); margin: auto 0 0; border-radius: 18px 18px 0 0; }.modal-card { max-height: calc(100vh - 12px); padding: 18px 14px; border-radius: 18px 18px 0 0; }.modal-header h2 { font-size: 19px; }.quick-sync-box { align-items: stretch; flex-direction: column; }.form-grid { grid-template-columns: 1fr; }.full-field { grid-column: auto; }.transaction-summary { grid-template-columns: 1fr 1fr; }.journal-preview { grid-template-columns: 1fr; }.split-actions { align-items: stretch; flex-direction: column-reverse; }.split-actions > div { display: grid; grid-template-columns: 1fr 1fr; }.split-actions .danger-button { width: 100%; }.modal-actions { position: sticky; bottom: -18px; margin-inline: -14px; padding: 12px 14px; background: #fff; }.confirm-details { grid-template-columns: 1fr 1fr; }
    .toast { right: 12px; left: 12px; bottom: 85px; max-width: none; }
    .workspace-tabs { width: 100%; margin-inline: 0; }.workspace-tab { min-width: 0; flex: 1; padding-inline: 9px; }.workspace-tab small { display: none; }
    .reconciliation-intro { align-items: stretch; flex-direction: column; gap: 12px; }.reconciliation-intro h1 { font-size: 24px; }.reconciliation-intro p:last-child { font-size: 12px; }.reconciliation-intro-actions { flex-direction: column; }.reconciliation-intro-actions > .primary-button { min-height: 46px; }.formula-chip { min-width: 0; }
    .reconciliation-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }.reconciliation-metrics article { min-height: 88px; padding: 12px; }.reconciliation-metrics strong { font-size: 17px; }
    .calculation-note { grid-template-columns: 34px 1fr; }.calculation-note .text-button { grid-column: 2; justify-self: start; min-height: 28px; }.calculation-details { grid-template-columns: 1fr; }
    .reconciliation-toolbar { grid-template-columns: 1fr; padding: 12px; }.reconciliation-toolbar > .secondary-button { grid-column: auto; }.reconciliation-filters { margin-inline: -4px; padding-bottom: 3px; }
    .reconciliation-list { grid-template-columns: 1fr; padding: 8px; }.reconciliation-row { grid-template-columns: 1fr 1fr; }
    .unassigned-alert { align-items: flex-start; flex-direction: column; gap: 4px; }.unassigned-list { grid-template-columns: 1fr; padding: 9px; }
    .rec-detail-hero { grid-template-columns: 1fr 1fr; }.reconciliation-modal { padding: 0; }.reconciliation-detail-card { max-height: calc(100vh - 12px); }.detail-table { min-width: 720px; }.rec-detail-section { overflow-x: auto; }.statement-summary { grid-template-columns: 1fr 1fr; }.statement-totals { flex-direction: column; }
    .sales-intro { align-items: stretch; flex-direction: column; gap: 12px; }.sales-intro h1 { font-size: 24px; }.sales-trust-note { min-width: 0; }
    .sales-workflow { overflow-x: auto; }.sales-workflow article { min-width: 190px; }.sales-workflow i { min-width: 24px; }
    .sales-metrics { grid-template-columns: 1fr 1fr; }.sales-toolbar { grid-template-columns: 1fr; padding-inline: 12px; }.sales-queue-heading { padding-inline: 14px; }.sales-transaction-list { grid-template-columns: 1fr; padding: 8px; }
    .review-handoff-details, .handoff-revision dl { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .metric-grid { grid-template-columns: 1fr; }.metric { min-height: 78px; }.metric strong { display: inline-block; margin-left: 6px; }
    .queue-toolbar { grid-template-columns: 1fr; }.search-field, .select-field { grid-column: auto; }
    .transaction-row { grid-template-columns: 38px minmax(0,1fr); }.date-cell, .status-cell, .account-cell, .row-action, .doc-number, .row-actions, .amount-cell { grid-column: 2; grid-row: auto; text-align: right; }.row-action, .doc-number, .row-actions { justify-self: start; }
    .matched-documents-summary { grid-template-columns: 1fr; }
    .matched-documents-head, .matched-document-row { grid-template-columns: minmax(0,1fr) 125px; }
    .transaction-summary, .confirm-details { grid-template-columns: 1fr; }
    .reconciliation-metrics { grid-template-columns: 1fr; }.reconciliation-metrics article { min-height: 72px; }.reconciliation-metrics strong { display: inline-block; margin-left: 6px; }
    .reconciliation-row { grid-template-columns: 1fr; }.rec-person, .rec-final, .rec-status { grid-column: 1; }.rec-status { justify-self: start; }
    .rec-detail-hero { grid-template-columns: 1fr; }
    .sales-metrics { grid-template-columns: 1fr; }.sales-metrics article { min-height: 80px; }.sales-transaction-row { grid-template-columns: 1fr; }.sales-transaction-main, .sales-purpose, .sales-handoff-action { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Keep dense data vertical and fully visible on narrow screens. */
@media (max-width: 760px) {
    .bank-progress-list, .batch-list { display: grid; grid-template-columns: 1fr; overflow: visible; padding-bottom: 0; }
    .bank-progress-card, .batch-card { min-width: 0; }
    .bank-progress-overview { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
    .bank-progress-overview { grid-template-columns: 1fr; }
}

/* Review queue rows: keep related financial data and actions together. */
.transaction-head, .transaction-row {
    grid-template-columns: 44px minmax(250px, 1.35fr) minmax(210px, .85fr) minmax(230px, 1.05fr) minmax(120px, .55fr);
    gap: 18px;
}
.transaction-financial { min-width: 0; display: grid; grid-template-columns: minmax(82px, .72fr) minmax(120px, 1.28fr); align-items: center; gap: 12px; }
.transaction-financial .date-cell, .transaction-financial .amount-cell { min-width: 0; grid-column: auto; grid-row: auto; }
.transaction-financial .amount-cell { padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.transaction-financial .cell-stack > span { color: var(--muted); font-size: 9px; line-height: 1.5; }
.transaction-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.transaction-badges .direction-pill, .transaction-badges .handoff-mini-badge { margin-top: 0; }
.transaction-outcome { min-width: 0; display: grid; align-content: center; gap: 9px; }
.transaction-outcome .status-cell { min-width: 0; display: flex; justify-content: center; }
.transaction-outcome .row-actions { width: 100%; }
.transaction-outcome .row-action, .transaction-outcome .match-detail-button { width: 100%; }
.transaction-outcome .doc-number { text-align: center; line-height: 1.65; }

@media (max-width: 1180px) {
    .transaction-head { display: none; }
    .transaction-row {
        grid-template-columns: 44px minmax(0, 1fr) minmax(220px, .72fr) minmax(124px, .42fr);
        grid-template-areas: "check main financial outcome" "check account account outcome";
        align-items: start;
        gap: 12px 16px;
        padding: 16px;
    }
    .transaction-row .row-check { grid-column: auto; grid-row: auto; grid-area: check; }
    .transaction-row .transaction-main { grid-column: auto; grid-row: auto; grid-area: main; }
    .transaction-row .transaction-financial { grid-column: auto; grid-row: auto; grid-area: financial; }
    .transaction-row .account-cell { grid-column: auto; grid-row: auto; grid-area: account; padding-top: 11px; border-top: 1px dashed var(--line); }
    .transaction-row .transaction-outcome { grid-column: auto; grid-row: auto; grid-area: outcome; align-self: stretch; padding-inline-start: 13px; border-inline-start: 1px dashed var(--line); }
    .transaction-outcome .status-cell, .transaction-outcome > :last-child { grid-column: auto; grid-row: auto; }
    .transaction-outcome > :last-child { min-width: 124px; }
}

@media (max-width: 760px) {
    .transaction-row {
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-areas: "check main" "check financial" "check account" "check outcome";
        gap: 12px 10px;
        padding: 14px 12px;
    }
    .transaction-row .row-check { grid-area: check; }
    .transaction-financial { width: 100%; }
    .transaction-row .transaction-outcome { width: 100%; display: flex; align-items: center; justify-content: space-between; padding-top: 11px; padding-inline-start: 0; border-top: 1px dashed var(--line); border-inline-start: 0; }
}

@media (max-width: 420px) {
    .transaction-row .transaction-outcome { display: grid; grid-template-columns: 1fr; align-items: stretch; }
    .transaction-outcome .status-cell { justify-content: flex-start; }
    .transaction-outcome > :last-child { min-width: 0; }
}

@media (max-width: 340px) {
    .transaction-financial { grid-template-columns: 1fr; gap: 9px; }
    .transaction-financial .amount-cell { padding-block-start: 9px; padding-inline-start: 0; border-block-start: 1px dashed var(--line); border-inline-start: 0; }
}
