/* Eliminar cobro definitivamente (Shared/EliminarCobroModal.razor) y su log en
   /comprobantes/eliminados. Hoja global, prefijo ec-. */

.ec-modal .modal-content { border: 0; border-radius: 14px; }
.ec-modal .modal-header { border-bottom: 1px solid #e5e7eb; }
.ec-modal .modal-title { font-weight: 700; font-size: 1.1rem; color: #1f2328; }
.ec-modal .modal-footer { border-top: 1px solid #e5e7eb; }
.ec-modal .modal-footer .btn { min-height: 44px; border-radius: 10px; padding-left: 1rem; padding-right: 1rem; }
.ec-modal .form-control { min-height: 44px; border-radius: 10px; }

.ec-cargando { display: flex; align-items: center; gap: .6rem; padding: 1.5rem .25rem; color: #6b7280; }

.ec-resumen {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
    padding: .9rem 1rem; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafbfc;
}
.ec-resumen-datos { min-width: 0; }
.ec-resumen-datos strong { display: block; font-variant-numeric: tabular-nums; color: #1f2328; }
.ec-resumen-datos span { display: block; color: #374151; }
.ec-resumen-datos small { display: block; color: #6b7280; margin-top: .15rem; }
.ec-resumen-importe { text-align: right; font-weight: 700; font-size: 1.2rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ec-resumen-importe .ec-chip { display: table; margin: .35rem 0 0 auto; }

.ec-chip { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.ec-chip-verde { background: #ecfdf3; color: #15803d; }
.ec-chip-gris { background: #f1f5f9; color: #475569; }
.ec-chip-naranja { background: #fff7ed; color: #c2410c; }

.ec-cambios { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .9rem 0; }
.ec-cambio { padding: .75rem .9rem; border: 1px solid #e5e7eb; border-radius: 12px; }
.ec-cambio-etiqueta { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.ec-cambio-valores { display: block; margin-top: .2rem; font-variant-numeric: tabular-nums; color: #374151; }
.ec-cambio-valores strong { color: #1f2328; font-size: 1.05rem; }
.ec-cambio-valores .bi { color: #9ca3af; margin: 0 .2rem; }
.ec-cambio small { display: block; color: #6b7280; }

.ec-alerta { display: flex; gap: .65rem; padding: .75rem .9rem; border-radius: 12px; font-size: .92rem; margin-bottom: .9rem; }
.ec-alerta > .bi { font-size: 1.1rem; line-height: 1.3; }
.ec-alerta ul { margin: 0; padding-left: 1rem; }
.ec-alerta ul li + li { margin-top: .25rem; }
.ec-alerta-aviso { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.ec-alerta-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.ec-titulo-seccion { margin: 1rem 0 .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; font-weight: 700; }

.ec-seccion { border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: .6rem; overflow: hidden; }
.ec-seccion-cab { padding: .55rem .9rem; background: #f8fafc; border-bottom: 1px solid #eef0f3; font-weight: 600; font-size: .9rem; color: #1f2328; }
.ec-seccion-cab .bi { color: #23548f; margin-right: .35rem; }
.ec-fila { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .55rem .9rem; font-size: .92rem; }
.ec-fila + .ec-fila { border-top: 1px solid #f0f1f3; }
.ec-fila > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ec-fila small { display: block; color: #6b7280; font-size: .8rem; }
.ec-importe { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ec-importe .ec-chip { display: table; margin: .25rem 0 0 auto; }
.ec-nota { padding: .45rem .9rem .6rem; font-size: .82rem; color: #6b7280; }
.ec-tenue { color: #6b7280; }

.ec-campos { margin-top: .4rem; }
.ec-campos .form-label { font-weight: 600; font-size: .9rem; }

/* Detalle del cobro (Shared/DetalleCobroModal.razor) */
.ec-alerta-ok { background: #ecfdf3; border: 1px solid #bbf7d0; color: #166534; }
.ec-link { border: 0; background: none; padding: 0; color: #23548f; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.ec-link:hover { text-decoration: underline; }
.ec-confirmar-acciones { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.ec-confirmar-acciones .btn { min-height: 34px; border-radius: 10px; }
.ec-modal .ec-pie-acciones { justify-content: space-between; gap: .5rem; }
.ec-pie-izq, .ec-pie-der { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.ec-pie-der .btn-outline-secondary .bi { font-size: 1.05rem; }

/* Log de cobros eliminados */
.ec-log-cobro strong { font-variant-numeric: tabular-nums; }

@media (max-width: 575.98px) {
    .ec-cambios { grid-template-columns: 1fr; }
    .ec-resumen { flex-direction: column; }
    .ec-resumen-importe { text-align: left; }
    .ec-resumen-importe .ec-chip { margin: .35rem 0 0; }
    .ec-fila { flex-direction: column; gap: .2rem; }
    .ec-importe { text-align: left; white-space: normal; }
    .ec-importe .ec-chip { margin: .25rem 0 0; }
    .ec-modal .modal-footer .btn { flex: 1 1 auto; }
    .ec-pie-izq, .ec-pie-der { width: 100%; }
}
