/* Finance > Payments > Available Credits > Apply Credits. Reuses the
   payment-details info grid/table recipe (.plx-fin-pd-*), deposit-edit's
   input/subtext helpers (.plx-fin-dd-*) and payment-edit's subtext
   (.plx-fin-pe-subtext); only the summary strip and colour accents are new. */
.plx-fin-ac-danger {
  color: var(--color-danger);
}

.plx-fin-pd-table tbody td.plx-fin-ac-balance {
  color: var(--text-primary);
}

.plx-fin-ac-summary {
  background: var(--bg-surface-muted);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-4);
  padding: var(--space-3) 0;
}

.plx-fin-ac-summary-item {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}

/* Inset dividers between the three figures, same technique as the table's. */
.plx-fin-ac-summary-item:not(:last-child)::before {
  background: var(--border-medium);
  bottom: var(--space-1);
  content: '';
  position: absolute;
  right: 0;
  top: var(--space-1);
  width: 1px;
}

.plx-fin-ac-summary-label {
  color: var(--pm-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.plx-fin-ac-summary-value {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.plx-fin-ac-blue {
  color: var(--color-info);
}

.plx-fin-ac-green {
  color: var(--color-success);
}

.plx-fin-ac-remarks {
  height: auto;
  min-height: 72px;
  padding: var(--space-2) var(--space-3);
  resize: vertical;
  width: 100%;
}

@media (max-width: 575.98px) {
  .plx-fin-ac-summary {
    grid-template-columns: 1fr;
    row-gap: var(--space-3);
  }

  .plx-fin-ac-summary-item:not(:last-child)::before {
    display: none;
  }
}
