.finance-quick { border-color: #b9d3c8; background: #fbfefd; }
.finance-quick .form-section-head { gap: 12px; flex-wrap: wrap; }
.finance-quick h3 span { color: #64766e; font-size: 13px; font-weight: 500; }
.finance-quick-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 8px; }
.finance-quick-tools > input { flex: 1 1 220px; }
.finance-quick-tools > label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.finance-quick-tools input[type="date"] { width: 155px; }
.finance-quick-scroll { max-height: 520px; overflow: auto; border: 1px solid #dce5df; border-radius: 8px; }
.finance-quick-table { width: 100%; table-layout: fixed; margin: 0; }
.finance-quick-table th { position: sticky; top: 0; z-index: 1; background: #edf5f0; white-space: nowrap; }
.finance-quick-table th:nth-child(1) { width: 35%; }
.finance-quick-table th:nth-child(2) { width: 13%; }
.finance-quick-table th:nth-child(3) { width: 24%; }
.finance-quick-table th:nth-child(4) { width: 18%; }
.finance-quick-table th:nth-child(5) { width: 10%; }
.finance-quick-table td { vertical-align: middle; padding: 12px 10px; overflow-wrap: anywhere; }
.finance-quick-table input { width: 100%; min-width: 0; box-sizing: border-box; }
.finance-quick-table .sub { display: block; margin-top: 4px; font-size: 12px; color: #687b70; }
.finance-quick-error { color: #b33a32; font-size: 12px; margin: 5px 0 0; }
.finance-quick-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; margin-top: 12px; }
.finance-quick-foot p { margin: 0; }
.finance-quick-wide-modal { width: min(1150px, 96vw); max-width: 1150px; }
.finance-quick-wide-modal .finance-quick { margin: 0; }
.finance-quick-wide-modal .finance-quick-scroll { max-height: 55vh; }
.finance-quick-table td:last-child .btn { display: block; width: 100%; margin: 3px 0; }
#financeForm .editor-row.invoice:not(.invoice-row) > b { white-space: nowrap; }
@media (max-width: 700px) {
  #financeForm .editor-row.invoice:not(.invoice-row) { display: none; }
  #financeForm .invoice-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid #e1e7e3; }
  .finance-quick .form-section-head .btn { width: 100%; }
  .finance-quick-scroll { max-height: none; overflow: visible; border: 0; }
  .finance-quick-wide-modal .finance-quick-scroll { max-height: none; }
  .finance-quick-table, .finance-quick-table tbody { display: block; }
  .finance-quick-table thead { display: none; }
  .finance-quick-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 1px solid #dce5df; background: #fff; border-radius: 8px; padding: 12px; margin: 10px 0; }
  .finance-quick-table td { display: block; padding: 0; border: 0; }
  .finance-quick-table td::before { content: attr(data-label); display: block; color: #63766c; font-size: 12px; margin-bottom: 5px; }
  .finance-quick-table td:first-child, .finance-quick-table td:last-child, .finance-quick-table td.empty { grid-column: 1 / -1; }
  .finance-quick-table td.right { text-align: left; }
  .finance-quick-table td:nth-child(3) { grid-column: 1 / -1; }
  .finance-quick-tools { align-items: stretch; }
  .finance-quick-tools > input { flex-basis: 100%; }
  .finance-quick-table input[type="date"] { min-height: 38px; }
}
