/* PTP_FINANCE_ACCOUNTS_UI_V1 */
.ptp-finance-help {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
}

.ptp-finance-manage-button {
  margin-left: auto;
}

.ptp-finance-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .58);
}

.ptp-finance-backdrop.hidden {
  display: none !important;
}

.ptp-finance-modal {
  width: min(820px, calc(100vw - 28px));
  max-height: 90vh;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(15, 23, 42, .3);
}

.ptp-finance-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.ptp-finance-modal-head h2 {
  margin: 0;
  color: #172033;
  font-size: 19px;
}

.ptp-finance-modal-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
}

.ptp-finance-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: #f1f5f9;
  color: #475569;
  font-size: 22px;
  cursor: pointer;
}

.ptp-finance-modal-body {
  max-height: calc(90vh - 82px);
  overflow: auto;
  padding: 18px 20px 22px;
}

.ptp-finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ptp-finance-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.ptp-finance-grid input,
.ptp-finance-grid select,
.ptp-finance-grid textarea {
  width: 100%;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  padding: 9px 10px;
  background: #fff;
  color: #172033;
  font-size: 12px;
}

.ptp-finance-span-2 {
  grid-column: 1 / -1;
}

.ptp-finance-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 0;
}

.ptp-finance-account-list {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.ptp-finance-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2f7;
}

.ptp-finance-account-row strong,
.ptp-finance-account-row small {
  display: block;
}

.ptp-finance-account-row small {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.ptp-finance-row-actions {
  display: flex;
  gap: 7px;
}

.ptp-finance-row-actions button {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.ptp-finance-refund-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 11px;
  background: #fff7ed;
}

.ptp-finance-refund-fields.hidden {
  display: none !important;
}

.ptp-finance-empty {
  padding: 18px;
  color: #64748b;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 680px) {
  .ptp-finance-grid,
  .ptp-finance-refund-fields {
    grid-template-columns: 1fr;
  }

  .ptp-finance-span-2 {
    grid-column: auto;
  }

  .ptp-finance-account-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* PTP_FINANCE_FINAL_FIXES_V1 */
#ptpSupplierPaymentModal .ptp-supplier-modal {
  width: min(780px, calc(100vw - 28px)) !important;
  max-height: 92vh;
  overflow: hidden;
}

#ptpSupplierPaymentModal .ptp-supplier-modal-body {
  max-height: calc(92vh - 145px);
  overflow-y: auto;
}

#ptpSupplierPaymentModal .ptp-supplier-grid {
  align-items: start;
}

#ptpSupplierPaymentModal #ptpSupplierPaidFromAccount,
#ptpSupplierPaymentModal #ptpSupplierTransactionStatus {
  border-color: #93c5fd;
  background: #eff6ff;
}