/* Transaction controls retain the application's compact mobile layout. */
.tx-template-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.tx-template-chip { border: 1px solid #e7e5e0; background: #f7f5f1; border-radius: 18px; padding: 7px 13px; color: #5b4a3c; font-weight: 650; }
.tx-template-strip .text-button { margin-left: auto; font-size: 12px; }
.tx-amount-field input { font-size: 32px; font-weight: 750; letter-spacing: -.5px; min-height: 68px; padding: 10px 14px; }
.tx-field-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tx-field-label .text-button { font-size: 12px; padding: 0; }
.tx-extra-options { margin-top: 22px; padding-top: 17px; border-top: 1px solid #ebeae7; }
.tx-extra-options summary { font-size: 13px; font-weight: 650; color: #6f6a60; cursor: pointer; margin-bottom: 17px; }
.tx-extra-options .form-field { margin-bottom: 14px; }
.tx-check { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; margin: 17px 0; color: #5b4a3c; }
.tx-check input { width: 19px; height: 19px; accent-color: #9f8a5b; flex: 0 0 19px; }
.tx-split-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(75px, .7fr) 30px; align-items: end; gap: 8px; margin-bottom: 10px; }
.tx-split-row .form-field { min-width: 0; margin: 0; }
.tx-split-row input { width: 100%; min-width: 0; }
.tx-remove { display: grid; place-items: center; width: 30px; min-height: 45px; border: 0; padding: 0; border-radius: 14px; font-size: 22px; color: #a3666b; background: #c6535d; }
.tx-small-button { min-height: 36px; font-size: 12px; padding: 7px 13px; }
.tx-template-save { margin-top: 20px; padding-top: 18px; border-top: 1px solid #ebeae7; display: flex; gap: 12px; align-items: end; }
.tx-template-save .form-field { flex: 1; min-width: 0; margin: 0; }
.tx-template-save > button { flex-shrink: 0; font-size: 12px; }
.tx-draft-banner { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; background: #f6f3ef; color: #695646; padding: 11px 14px; border-radius: 13px; font-size: 12px; margin-bottom: 18px; }
.tx-draft-banner button { padding: 0; font-size: 12px; }
.tx-inline-category { display: flex; align-items: center; gap: 7px; }
.tx-inline-category input { flex: 1; min-width: 0; }
.tx-inline-category button { flex: 0 0 auto; font-size: 12px; }
.tx-manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tx-manager-grid .table-panel { min-width: 0; }
.tx-manager-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 0; border-bottom: 1px solid #f1efed; }
.tx-manager-row:last-child { border-bottom: 0; }
.tx-manager-row strong { font-size: 14px; overflow-wrap: anywhere; }
.tx-manager-row p { margin: 6px 0 0; font-size: 12px; }
.tx-row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; flex-shrink: 0; }
.tx-row-actions button { font-size: 12px; }
.tx-category-manager { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; align-items: end; margin: 20px 0; }
.tx-category-manager input, .tx-category-manager select { min-width: 0; width: 100%; }
.tx-category-manager > button { font-size: 12px; }
.tx-manager-grid h3, .tx-detail-extra h3 { font-size: 14px; margin: 19px 0 10px; }
.tx-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tx-tag-list span, .tx-editable-tag { border: 0; padding: 6px 10px; background: #f4f3f0; color: #716c61; border-radius: 14px; font-size: 12px; font-weight: 600; }
.tx-editable-tag { cursor: pointer; }
.tx-reimbursement-list { margin-top: 24px; }
.tx-reimbursement-list .section-head { margin-top: 0; flex-wrap: wrap; }
.tx-reimbursement-list .section-head > strong { font-size: 13px; }
.tx-pending-copy { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.tx-pending-copy span { color: var(--muted); font-size: 12px; }
.tx-reimbursement-list .tx-manager-row > .secondary-button { font-size: 12px; flex: 0 0 auto; }
.tx-detail-extra { border-top: 1px solid #edebe8; margin-top: 24px; padding-top: 22px; }
.tx-split-detail > div { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; gap: 15px; border-bottom: 1px solid #f1f1f0; font-size: 13px; }
.tx-reimbursement-status { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 20px; }
.tx-reimbursement-status p { font-size: 12px; line-height: 1.6; }
.tx-reimbursement-status button { flex-shrink: 0; font-size: 12px; }
.tx-entry-form .form-error { font-size: 13px; padding: 12px 0 0; }
.tx-entry-form .form-error[hidden] { display: none; }
.tx-entry-form .form-field[hidden], #txExpenseOptions[hidden], #txSplitPanel[hidden] { display: none; }
@media (max-width: 900px) { .tx-manager-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .tx-amount-field input { font-size: 30px; min-height: 68px; }
  .tx-entry-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tx-entry-form .form-field { min-width: 0; }
  .tx-entry-form .form-field input, .tx-entry-form .form-field select { width: 100%; min-width: 0; }
  .tx-entry-form .form-actions { margin-bottom: 5px; }
  .tx-entry-form .form-actions .secondary-button { font-size: 12px; }
  .tx-template-strip { margin-bottom: 16px; gap: 6px; }
  .tx-template-chip { padding: 6px 11px; font-size: 12px; }
  .tx-template-strip .text-button { width: 100%; text-align: left; }
  .tx-extra-options summary { font-size: 13px; }
  .tx-template-save { flex-wrap: wrap; }
  .tx-category-manager { grid-template-columns: 1fr 1fr; }
  .tx-category-manager > button { grid-column: 1 / -1; }
  .tx-manager-row { gap: 10px; flex-wrap: wrap; }
  .tx-row-actions { margin-left: auto; }
  .tx-reimbursement-status { flex-wrap: wrap; }
  .tx-reimbursement-status button { width: 100%; }
  .tx-reimbursement-list .tx-manager-row { flex-wrap: nowrap; }
  .tx-reimbursement-list .section-head h2 { font-size: 19px; }
}

.tx-stock-panel { padding: 17px; border: 1px solid #e9e7e2; border-radius: 18px; background: #f7f6f3; gap: 14px; }
.tx-stock-panel[hidden], .tx-stock-new[hidden] { display: none !important; }
.tx-stock-heading { display: flex; flex-direction: column; gap: 6px; }
.tx-stock-heading > strong { color: #5a4a3c; font-size: 15px; }
.tx-stock-heading > span, .tx-stock-panel .muted { font-size: 12px; line-height: 1.6; margin: 0; color: #74706a; }
.tx-stock-new { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 14px 0; border-block: 1px solid #e9e7e2; }
.tx-stock-panel input, .tx-stock-panel select { width: 100%; min-width: 0; }
@media (max-width: 380px) { .tx-stock-new { grid-template-columns: minmax(0,1fr); } }

/* 手机端流水列表更紧凑：减少卡片内边距与行距，信息分组不变 */
@media (max-width: 700px) {
  .data-row.transaction-row { padding: 12px 13px; margin-bottom: 8px; gap: 4px 10px; border-radius: 14px; }
  .transaction-row .data-title { font-size: 14px; }
  .transaction-row .data-amount { font-size: 14px; }
  .transaction-row .data-date { font-size: 10.5px; }
  .transaction-row .data-account { font-size: 10.5px; }
  .transaction-row .data-actions button { min-height: 32px; padding: 6px 10px; font-size: 11px; }
  .ui-polished .feature-summary-strip { padding: 12px 14px; margin: 10px 0 14px; gap: 6px 14px; font-size: 12px; }
}
