/* ==========================================================================
   Sistema de pago · estilos propios (usa los tokens de estilos.css)
   ========================================================================== */
.nowrap { white-space: nowrap; }

/* Vencido por antigüedad: una sola barra, tonos de menos a más grave */
.aging { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--track); gap: 2px; }
.aging span { display: block; min-width: 4px; }
.ag0 { background: var(--r-reservada); }
.ag1 { background: var(--r-arras); }
.ag2 { background: var(--warn); }
.ag3 { background: var(--danger); }
.aging-t { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.aging-t th { text-align: left; font-weight: 500; color: var(--text-2); font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.aging-t td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.aging-t tr:last-child td { border-bottom: 0; }
.aging-t .r { text-align: right; padding-left: 12px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }

/* Conciliación: movimiento del banco → pago sugerido */
.conc-list { display: grid; gap: 10px; }
.conc { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); box-shadow: var(--shadow-sm); }
.conc-mov, .conc-sug { padding: 14px 16px; min-width: 0; }
.conc-mov { background: var(--thead); border-radius: 12px 0 0 12px; }
.conc-arrow { display: grid; place-items: center; color: var(--text-2); font-size: 16px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.conc-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.conc-top .strong { font-size: 16px; }
.conc-txt { margin: 4px 0 2px; font-weight: 500; overflow-wrap: anywhere; }
.conc .actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Pasos de la reclamación: −3, 0, +7, +15, +30 */
.dun { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.dun li { position: relative; min-width: 30px; height: 24px; padding: 0 4px; display: grid; place-items: center; border-radius: 6px; font-size: 13px; font-variant-numeric: tabular-nums; border: 1px solid var(--line-strong); color: var(--text-2); background: var(--bg); }
.dun li.done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dun li.next { border: 1.5px solid var(--accent); color: var(--text); font-weight: 600; }
.dun li.omit { background: var(--subtle); color: var(--text-2); text-decoration: line-through; }


/* Enlace de pago */
.linkbox { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--thead); }
.linkbox .code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.checkout-amount { display: inline-block; margin: 6px 0 2px; font-size: 28px; line-height: 36px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* Recibos en la ficha de la operación */
.reclist { display: grid; margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; }
.recrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.recrow:last-child { border-bottom: 0; }
.recrow .num { font-weight: 500; }
section .card-link + .card-link { margin-top: 6px; }

@media (max-width: 760px) {
  .conc { grid-template-columns: minmax(0, 1fr); }
  .conc-mov { border-radius: 12px 12px 0 0; }
  .conc-arrow { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 26px; transform: rotate(90deg); border: 0; }
  .recrow { grid-template-columns: minmax(0, 1fr) auto; }
}
