.cash-flow-panel .flow-intro { margin-top: -5px; font-size: 13px; }
.flow-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 8px; }
.flow-summary article { background: white; border: 1px solid #e6e8ef; border-radius: 10px; padding: 12px 15px; min-width: 0; }
.flow-summary span { font-size: 12px; color: #9299a8; }
.flow-summary strong { display: block; font-size: 21px; margin-top: 4px; overflow-wrap: anywhere; }
.flow-toolbar, .flow-filters { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 8px; }
#flow-count { font-weight: 400; color: #9199a8; font-size: 13px; }
.flow-filters { justify-content: flex-start; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
.flow-filters label { margin: 0; }
.flow-filters select { width: auto; min-width: 110px; }
.check-label { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; color: #778194; }
.check-label input { width: 18px; min-height: 18px; margin: 0; }
.cash-flow-list { border: 1px solid #e7e9f0; border-radius: 10px; background: white; overflow: hidden; }
.flow-table, .history-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: 12px; }
.flow-table th, .history-table th { padding: 9px 14px; background: #fcfcfe; color: #858e9e; font-size: 11px; font-weight: 500; }
.flow-table td, .history-table td { border-top: 1px solid #eff0f5; padding: 8px 14px; vertical-align: middle; overflow-wrap: anywhere; }
.flow-date-col { width: 145px; } .flow-amount-col { width: 225px; } .flow-action-col { width: 160px; }
.flow-row strong { font-size: 13px; font-weight: 600; display: block; line-height: 1.4; }
.flow-row small, .history-table small { display: block; margin-top: 2px; font-size: 11px; color: #8d96a5; line-height: 1.4; }
.flow-row .flow-note-cell { color: #6e798b; line-height: 1.5; }
.flow-amount, .amount-heading { text-align: right; }
.flow-table .action-heading, .flow-action-cell { text-align: center; }
.flow-row .flow-mobile-note, .flow-manage { display: none; }
.flow-row.voided { background: #fafafa; color: #9299a8; }
.flow-row.voided .flow-amount strong { text-decoration: line-through; }
.flow-row-actions { display: flex; justify-content: center; gap: 0; }
.flow-row-actions button { color: #7162bd; background: transparent; padding: 6px 5px; font-size: 12px; min-width: 40px; min-height: 34px; }
.flow-row-actions .void-action { color: #a37b72; }
.flow-actions-buttons { display: grid; gap: 8px; }
.flow-actions-buttons button { text-align: left; background: #f4f2fc; color: #7162bd; }
.flow-actions-buttons .void-action { color: #a37b72; }
#flow-message:empty { display: none; }
.flow-dialog { width: min(580px, calc(100% - 28px)); max-height: calc(100dvh - 32px); border: 1px solid #e7e9f0; border-radius: 17px; padding: 24px; color: #233044; overflow: auto; }
.flow-dialog::backdrop { background: #18263d60; backdrop-filter: blur(3px); }
.dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flow-dialog form { margin-top: 20px; }
.flow-dialog .form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flow-dialog .form-pair > div { min-width: 0; }
.flow-dialog label { font-size: 12px; }
.flow-dialog select, .flow-dialog textarea, .flow-filters select { display: block; font: inherit; color: #33435a; min-height: 46px; border: 1px solid #cad0df; border-radius: 9px; padding: 10px 12px; background: #fcfcfe; }
.flow-dialog select, .flow-dialog textarea { width: 100%; margin-bottom: 16px; }
.flow-dialog input { min-width: 0; }
.flow-dialog textarea { resize: vertical; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 12px; }
.history-table { margin-top: 12px; }
.history-table th:first-child { width: 44%; }
.history-table strong { font-size: 12px; font-weight: 600; line-height: 1.5; }
@media (max-width: 700px) {
  #dashboard > .intro { flex-wrap: wrap; }
  #dashboard .actions { gap: 3px; }
  #dashboard .actions button { padding: 9px 10px; }
  .flow-summary { grid-template-columns: 1fr; gap: 0; border: 1px solid #e6e8ef; border-radius: 10px; background: white; }
  .flow-summary article { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; gap: 8px; border: 0; border-bottom: 1px solid #eff0f5; border-radius: 0; background: transparent; }
  .flow-summary article:last-child { border-bottom: 0; }
  .flow-summary strong { margin: 0; font-size: 18px; }
  .flow-date-col { width: 93px; } .flow-amount-col { width: auto; } .flow-action-col { width: 60px; }
  .flow-note-col, .flow-note-cell { display: none; }
  .flow-table th { padding: 8px 6px; font-size: 10px; }
  .flow-table td { padding: 5px 6px; }
  .flow-row strong { font-size: 12px; } .flow-row small { font-size: 10px; }
  .flow-row .flow-mobile-note { display: block; }
  .flow-row-actions { display: none; }
  .flow-manage { display: inline-block; min-height: 46px; min-width: 46px; padding: 6px; font-size: 11px; color: #7162bd; background: transparent; }
  .history-table th, .history-table td { padding: 8px 5px; }
  .flow-dialog { padding: 18px; }
  .flow-dialog .form-pair { grid-template-columns: 1fr; gap: 0; }
}
