/* [TFH-501:TFH_PAYMENT_ENTRY:CSS-START] */
.tfh-payment-screen,
.tfh-payment-index-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 49;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 0%,rgba(47,127,196,.13),transparent 29%),
    linear-gradient(135deg,#eaf1f7,#f8fafc 48%,#e7eef5);
}

.tfh-payment-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.tfh-payment-form {
  width: min(1260px,100%);
  min-height: 100%;
  margin: auto;
  position: relative;
  display: grid;
  align-content: start;
  gap: 13px;
}

.tfh-payment-card {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 16px;
  border: 1px solid rgba(17,49,84,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 10px 30px rgba(18,52,92,.08);
}

.tfh-payment-date-card { border-top: 4px solid var(--tfh-blue-500); }
.tfh-payment-payee-card { border-top: 4px solid var(--tfh-gold-500); }
.tfh-payment-method-card { border-top: 4px solid #6f879b; }
.tfh-payment-remarks-card { border-top: 4px solid #385f80; }

.tfh-payment-date-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.tfh-payment-date-field {
  width: min(230px,100%);
}

.tfh-payment-date-field input {
  min-height: 44px;
}

.tfh-payment-voucher-reference {
  min-width: 170px;
  display: grid;
  gap: 3px;
  text-align: right;
}

.tfh-payment-voucher-reference span {
  color: var(--tfh-ink-600);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tfh-payment-voucher-reference strong {
  color: #173c63;
  font-size: 1.08rem;
}

.tfh-payment-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.tfh-payment-section-head span {
  color: var(--tfh-blue-600);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tfh-payment-section-head h2 {
  margin: 4px 0 0;
}

.tfh-payment-payee-layout {
  display: grid;
  grid-template-columns: auto minmax(350px,1fr);
  gap: 18px;
  align-items: end;
}

.tfh-payment-type-buttons,
.tfh-payment-medium-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.tfh-payment-type-button,
.tfh-payment-medium-button {
  min-width: 104px;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(18,52,92,.18);
  border-radius: 11px;
  color: #233c57;
  background: linear-gradient(145deg,#fff,#edf2f6);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 6px 15px rgba(18,52,92,.08);
  cursor: pointer;
}

.tfh-payment-type-button span,
.tfh-payment-medium-button span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg,#6f879b,#334d63);
  font-size: .61rem;
  font-weight: 900;
}

.tfh-payment-type-button strong,
.tfh-payment-medium-button strong {
  font-size: .84rem;
}

.tfh-payment-type-button.is-active,
.tfh-payment-medium-button.is-active {
  border-color: rgba(185,135,50,.7);
  color: #5d420b;
  background: linear-gradient(145deg,#fffdf8,#f8e8bf);
  box-shadow:
    inset 0 1px 0 #fff,
    0 8px 18px rgba(185,135,50,.18);
}

.tfh-payment-type-button.is-active span,
.tfh-payment-medium-button.is-active span {
  background: linear-gradient(145deg,#c39743,#8a5f18);
}

.tfh-payment-type-button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.tfh-payment-account-field {
  min-width: 0;
}

.tfh-payment-account-field input,
.tfh-payment-cb-field input,
.tfh-payment-method-layout input {
  min-height: 44px;
}

.tfh-payment-amount-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.tfh-payment-amount-field {
  width: min(330px,100%);
}

.tfh-payment-amount-field input {
  min-height: 58px;
  padding: 7px 14px;
  color: #12345c;
  font-size: 1.55rem;
  font-weight: 850;
  text-align: right;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(#fff,#f4f8fb);
}

.tfh-payment-method-layout {
  display: grid;
  grid-template-columns: auto minmax(320px,1fr) minmax(155px,.45fr) minmax(160px,.48fr);
  gap: 12px;
  align-items: end;
}

.tfh-payment-account-and-void {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
}

.tfh-payment-void-button,
.tfh-payment-cancel-button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(180,35,24,.28);
  border-radius: 10px;
  color: #9b251b;
  background: linear-gradient(#fff,#fcebea);
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.tfh-payment-void-button.is-active {
  color: #fff;
  border-color: #8d1912;
  background: linear-gradient(145deg,#ca3c2e,#7d140e);
}

.tfh-payment-cancel-button.is-restore {
  color: #fff;
  border-color: #116b45;
  background: linear-gradient(145deg,#269866,#116b45);
}

.tfh-payment-void-notice {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(180,35,24,.22);
  border-radius: 12px;
  color: #8d2017;
  background: #fff0ee;
}

.tfh-payment-remarks-card textarea {
  min-height: 165px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.55;
  padding: 13px 14px;
}

.tfh-payment-cancel-cross {
  position: fixed;
  z-index: 11000;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) rotate(-10deg);
  color: rgba(180,35,24,.19);
  font-family: Arial,sans-serif;
  font-size: min(62vw,720px);
  font-weight: 300;
  line-height: .7;
  pointer-events: none;
}

.tfh-payment-floating-clairvoyance {
  position: relative;
  z-index: 50;
}

.tfh-payment-floating-clairvoyance .tfh-suggestion-list {
  position: absolute;
  z-index: 10000;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 310px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(18,52,92,.2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(8,27,49,.24);
}

.tfh-payment-rich-suggestion-item {
  min-height: 50px;
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  text-align: left;
}

.tfh-payment-rich-suggestion-item strong {
  color: #173c63;
  font-size: .87rem;
}

.tfh-payment-rich-suggestion-item span {
  color: #68798b;
  font-size: .72rem;
  line-height: 1.35;
  white-space: normal;
}

.tfh-payment-claims-card { border-top: 4px solid #7a8fa2; }
.tfh-payment-claims-head { margin-bottom: 9px; }
.tfh-payment-claims-head-summary { display: grid; justify-items: end; gap: 3px; }
.tfh-payment-claims-head-summary small { color: var(--tfh-ink-600); font-weight: 800; }
.tfh-payment-claims-head-summary strong { color: #173c63; font-size: .9rem; }
.tfh-payment-claims-head-summary b { font-variant-numeric: tabular-nums; }
.tfh-payment-claims-note { margin-bottom: 10px; padding: 8px 10px; border: 1px solid rgba(18,52,92,.11); border-radius: 9px; color: #5d6d7e; background: #f5f8fb; font-size: .78rem; }
.tfh-payment-claims-grid-scroll { max-height: 260px; overflow: auto; border: 1px solid rgba(17,49,84,.14); border-radius: 11px; }
.tfh-payment-claims-table { width: 100%; border-collapse: collapse; min-width: 780px; font-size: .82rem; }
.tfh-payment-claims-table th { position: sticky; top: 0; z-index: 2; padding: 9px 10px; color: #fff; text-align: left; background: linear-gradient(#6f879b,#334d63); }
.tfh-payment-claims-table th:nth-child(5), .tfh-payment-claims-table td:nth-child(5) { text-align: right; }
.tfh-payment-claims-table th:last-child, .tfh-payment-claims-table td:last-child { width: 68px; text-align: center; }
.tfh-payment-claims-table td { padding: 8px 10px; border-bottom: 1px solid rgba(17,49,84,.09); vertical-align: middle; }
.tfh-payment-claims-table tbody tr:nth-child(even) { background: rgba(234,241,247,.45); }
.tfh-payment-claims-table tbody tr.is-selected { background: #fff5d9; }
.tfh-payment-claims-table .is-financial { font-weight: 800; font-variant-numeric: tabular-nums; }
.tfh-payment-claim-check-cell input { width: 18px; height: 18px; cursor: pointer; accent-color: #315b7d; }
.tfh-payment-claims-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; color: var(--tfh-ink-600); }
.tfh-payment-claims-footer span { font-size: .78rem; font-weight: 800; }
.tfh-payment-claims-footer strong { color: #173c63; font-size: .95rem; }
.tfh-payment-claims-footer b { font-size: 1.08rem; font-variant-numeric: tabular-nums; }


@media (max-width: 1180px) {
  .tfh-payment-payee-layout,
  .tfh-payment-method-layout {
    grid-template-columns: 1fr;
  }

  .tfh-payment-amount-row {
    justify-content: stretch;
  }

  .tfh-payment-amount-field {
    width: 100%;
  }

}

@media (max-width: 720px) {
  .tfh-payment-date-row,
  .tfh-payment-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .tfh-payment-type-buttons,
  .tfh-payment-medium-buttons {
    display: grid;
    grid-template-columns: repeat(3,1fr);
  }

  .tfh-payment-account-and-void {
    grid-template-columns: 1fr;
  }

}


/* [TFH-501:TFH_PAYMENT_ENTRY:UI-REVISION-CSS-START] */
.tfh-payment-date-card {
  z-index: 30;
}

.tfh-payment-payee-card {
  z-index: 25;
}

.tfh-payment-method-card {
  z-index: 20;
}

.tfh-payment-remarks-card {
  z-index: 10;
}

.tfh-payment-card:focus-within {
  z-index: 5000;
}

.tfh-payment-date-row {
  display: grid;
  grid-template-columns: minmax(190px,230px) auto minmax(150px,1fr);
  align-items: end;
  gap: 22px;
}

.tfh-payment-date-row .tfh-payment-type-buttons {
  align-self: end;
  justify-content: flex-start;
  padding-bottom: 1px;
}

.tfh-payment-payee-compact-row {
  display: grid;
  grid-template-columns: minmax(360px,680px) minmax(220px,310px);
  gap: 24px;
  align-items: end;
}

.tfh-payment-payee-compact-row .tfh-payment-account-field {
  width: 100%;
  max-width: 680px;
}

.tfh-payment-payee-compact-row .tfh-payment-amount-field {
  width: 100%;
  margin-left: 0;
}

.tfh-payment-payee-compact-row .tfh-payment-amount-field input {
  min-height: 48px;
  font-size: 1.25rem;
}

.tfh-payment-floating-clairvoyance,
.tfh-payment-floating-clairvoyance:focus-within {
  z-index: 10020;
}

.tfh-payment-floating-clairvoyance .tfh-suggestion-list {
  z-index: 10050;
  isolation: isolate;
}

.tfh-payment-payee-card:has(.tfh-suggestion-list:not(.is-hidden)),
.tfh-payment-method-card:has(.tfh-suggestion-list:not(.is-hidden)) {
  z-index: 10000;
}

@media (max-width: 1180px) {
  .tfh-payment-date-row {
    grid-template-columns: minmax(190px,230px) 1fr;
  }

  .tfh-payment-date-row .tfh-payment-voucher-reference {
    grid-column: 2;
    grid-row: 1;
  }

  .tfh-payment-date-row .tfh-payment-type-buttons {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tfh-payment-payee-compact-row {
    grid-template-columns: minmax(0,1fr) minmax(220px,300px);
  }
}

@media (max-width: 720px) {
  .tfh-payment-date-row,
  .tfh-payment-payee-compact-row {
    grid-template-columns: 1fr;
  }

  .tfh-payment-date-row .tfh-payment-voucher-reference,
  .tfh-payment-date-row .tfh-payment-type-buttons {
    grid-column: 1;
    grid-row: auto;
  }

  .tfh-payment-date-row .tfh-payment-type-buttons {
    display: grid;
    grid-template-columns: repeat(3,1fr);
  }
}
/* [TFH-501:TFH_PAYMENT_ENTRY:UI-REVISION-CSS-END] */

/* [TFH-501:TFH_PAYMENT_ENTRY:CSS-END] */
