.statement-module, .statement-module * { box-sizing: border-box; }
.statement-module { color: var(--expense-text, var(--text, #20251a)); min-width: 0; }
.statement-module h4 { margin: 0 0 10px; font-size: 15px; line-height: 1.4; }
.statement-module p { line-height: 1.6; }
.statement-heading p { margin: 0 0 12px; font-size: 15px; }
.statement-help { padding: 13px 16px; background: var(--expense-soft); border-inline-start: 3px solid var(--expense-accent); border-radius: 0 9px 9px 0; font-size: 13px; }
.statement-muted { color: var(--expense-muted) !important; font-size: 12px; }
.statement-subtabs, .statement-actions, .statement-detail-heading, .statement-pagination, .statement-pagination > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.statement-subtabs { margin: 16px 0; }
.statement-button { appearance: none; min-height: 40px; padding: 9px 13px; border: 1px solid var(--expense-line); border-radius: 9px; background: var(--expense-bg); color: var(--expense-text) !important; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; text-align: center; line-height: 1.4; }
.statement-button:hover { background: var(--expense-soft); }
.statement-button.is-selected { border-color: var(--expense-text); box-shadow: inset 0 0 0 1px var(--expense-text); }
.statement-button.statement-primary { background: var(--expense-accent); border-color: transparent; color: #172006 !important; }
.statement-module button:disabled { cursor: default; opacity: .55; }
.statement-module button:focus-visible, .statement-module input:focus-visible, .statement-module select:focus-visible, .statement-module textarea:focus-visible, .statement-module summary:focus-visible { outline: 2px solid var(--expense-text); outline-offset: 3px; }
.statement-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.statement-toolbar .statement-field { flex: 1 1 170px; }
.statement-scope { flex: 2 1 240px; font-size: 13px; }
.statement-scope small { overflow-wrap: anywhere; margin-top: 4px; }
.statement-scope .statement-button { margin-top: 7px; }
.statement-currencies { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; margin: 20px 0; }
.statement-currency { border: 1px solid var(--expense-line); border-radius: 12px; padding: 16px; }
.statement-currency dl { margin: 0; }
.statement-bulk { margin: 14px 0; padding: 14px; background: var(--expense-soft); border-radius: 10px; }
.statement-bulk p { margin: 0 0 10px; }
.statement-conflict-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; grid-column: 1 / -1; padding: 12px; border: 1px solid var(--expense-line); border-radius: 9px; font-size: 12px; }
.statement-currency dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--expense-line); font-size: 12px; }
.statement-currency dt { color: var(--expense-muted); }
.statement-currency dd { font-size: 14px; font-weight: 700; margin: 0; white-space: nowrap; }
.statement-currency p { margin-bottom: 0; }
.statement-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--expense-line); border-radius: 11px; }
.statement-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.statement-table th { padding: 11px; background: var(--expense-soft); color: var(--expense-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .035em; white-space: nowrap; }
.statement-table td { padding: 12px 11px; vertical-align: top; border-top: 1px solid var(--expense-line); min-width: 110px; overflow-wrap: anywhere; }
.statement-table td:nth-child(2) { min-width: 200px; max-width: 330px; }
.statement-table td:nth-child(4) { min-width: 160px; }
.statement-table small { margin-top: 5px; font-size: 11px; }
.statement-money { font-variant-numeric: tabular-nums; }
.statement-money > strong { white-space: nowrap; }
.statement-row-actions .statement-button { display: block; width: 100%; margin-bottom: 7px; min-width: 120px; }
.statement-badge { display: inline-block; border: 1px solid var(--expense-line); border-radius: 6px; padding: 3px 6px; font-size: 10px; line-height: 1.5; background: var(--expense-soft); margin: 1px 3px 3px 0; }
.statement-confirmed, .statement-feeIncluded { background: color-mix(in srgb, var(--expense-accent) 18%, var(--expense-bg)); }
.statement-pending, .statement-unknown, .statement-sourceChanged { border-color: color-mix(in srgb, #da941d 70%, var(--expense-line)); }
.statement-pagination { justify-content: space-between; margin: 15px 0 3px; font-size: 12px; color: var(--expense-muted); }
.statement-step { padding: 18px; border: 1px solid var(--expense-line); border-radius: 12px; margin: 15px 0; }
.statement-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.statement-field { display: flex; flex-direction: column; min-width: 0; gap: 7px; font-size: 12px; font-weight: 600; }
.statement-field > span { line-height: 1.4; }
.statement-wide { grid-column: 1 / -1; }
.statement-module textarea { min-width: 0; width: 100%; resize: vertical; min-height: 64px; padding: 9px 11px; border: 1px solid var(--expense-line); border-radius: 8px; background: var(--expense-bg); color: var(--expense-text); font: inherit; font-size: 12px; }
.statement-module .statement-field select, .statement-module .statement-field input:not([type="file"]) { min-height: 40px; }
.statement-module input[type="file"] { width: 100%; }
.statement-file-name { margin: 0 !important; font-weight: 700; overflow-wrap: anywhere; }
.statement-actions { margin-top: 15px; }
.statement-advanced { border-top: 1px solid var(--expense-line); margin-top: 18px; padding-top: 12px; }
.statement-module summary { cursor: pointer; padding: 8px 0; font-size: 13px; font-weight: 600; }
.statement-advanced .statement-form-grid { margin-top: 12px; }
.statement-samples { margin: 12px 0; }
.statement-samples .statement-table td { max-width: 300px; }
.statement-preview { border-color: color-mix(in srgb, var(--expense-text) 40%, var(--expense-line)); }
.statement-preview-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.statement-preview-counts > span { padding: 11px; background: var(--expense-soft); border-radius: 8px; color: var(--expense-muted); font-size: 11px; }
.statement-preview-counts strong { display: block; font-size: 22px; margin-top: 5px; }
.statement-errors, [data-statement-notice].is-error, .statement-error { background: color-mix(in srgb, #d84646 10%, var(--expense-bg)); border: 1px solid color-mix(in srgb, #d84646 55%, var(--expense-line)); border-radius: 9px; padding: 12px; font-size: 12px; }
[data-statement-notice] { margin: 13px 0; padding: 10px 12px; background: var(--expense-soft); border-radius: 9px; font-size: 13px; }
.statement-detail { border: 1px solid var(--expense-text); border-radius: 12px; padding: 18px; margin: 15px 0; scroll-margin-top: 90px; }
.statement-detail-heading { justify-content: space-between; }
.statement-check { display: flex; align-items: start; gap: 10px; font-size: 13px; line-height: 1.5; }
.statement-check input { flex: 0 0 auto; width: 17px; height: 17px; }
.statement-raw { margin: 10px 0; font-size: 12px; }
.statement-raw > div { display: grid; grid-template-columns: minmax(90px, .5fr) minmax(0, 1fr); gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--expense-line); }
.statement-raw dt { color: var(--expense-muted); }
.statement-raw dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.statement-files { display: grid; gap: 12px; margin-top: 16px; }
.statement-files article { display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--expense-line); border-radius: 11px; padding: 16px; }
.statement-files article > div { min-width: 0; }
.statement-files h4 { overflow-wrap: anywhere; }
.statement-files p { font-size: 12px; margin: 5px 0 0; }
.statement-empty { padding: 24px 14px; text-align: center; color: var(--expense-muted); }
.statement-recognition { margin: 14px 0; padding: 15px; border: 1px solid var(--expense-line); border-inline-start: 3px solid var(--expense-accent); border-radius: 10px; background: var(--expense-soft); overflow-wrap: anywhere; }
.statement-recognition p { margin: 6px 0; }
.statement-file-review, .statement-months { margin: 18px 0; padding: 16px; border: 1px solid var(--expense-line); border-radius: 12px; }
.statement-file-scope { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.statement-file-scope p { flex-basis: 100%; margin: 0; }
.statement-review-counts { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.statement-month { border-top: 1px solid var(--expense-line); padding-top: 14px; margin-top: 16px; }
.statement-month .statement-currencies { margin: 10px 0; }
.statement-expense-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0; }
.statement-expense-totals article { display: grid; gap: 7px; padding: 14px; background: var(--expense-soft); border-radius: 9px; }
.statement-expense-totals strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.statement-expense-totals small { color: var(--expense-muted); }
.statement-expense-preview { border-color: var(--expense-text); }
@media (max-width: 700px) {
  .statement-conflict-grid { grid-template-columns: minmax(0, 1fr); }
  .statement-form-grid { grid-template-columns: minmax(0, 1fr); }
  .statement-wide { grid-column: auto; }
  .statement-step, .statement-detail { padding: 13px; }
  .statement-preview-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statement-subtabs .statement-button { flex: 1 1 130px; }
  .statement-button { min-height: 44px; }
  .statement-files article { align-items: stretch; flex-direction: column; gap: 10px; }
  .statement-raw > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .statement-table-wrap { border: 0; overflow-x: auto; }
  .statement-table:not(.statement-samples table) { min-width: 780px; }
  .statement-currency dl > div { gap: 10px; }
}
