/* EMI card/list dual view + payment records - 2026-10-07 */
.emi-view-toggle .btn{min-width:98px;font-weight:700;border-radius:9px!important;}
.emi-view-toggle{box-shadow:0 4px 12px rgba(49,119,95,.07);border-radius:10px;overflow:hidden;}
.emi-card-view .col-xl-6{min-width:0;}
.emi-loan-card{border:1px solid #e4f3f1;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(36,78,63,.055);height:100%;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease;}
.emi-loan-card:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(36,78,63,.085);}
.emi-loan-card .body{padding:17px 17px 14px;}
.emi-loan-card-head{display:flex;align-items:flex-start;gap:11px;margin-bottom:14px;}
.emi-loan-card-icon{width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:#f8f6f5;color:#70d0c6;display:flex;align-items:center;justify-content:center;font-size:21px;}
.emi-loan-card-title{font-size:14px;font-weight:850;color:#22403d;line-height:1.25;}
.emi-loan-card-sub{font-size:10.8px;color:#7e9883;margin-top:2px;}
.emi-card-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 12px;}
.emi-card-metric{text-align:center;padding:2px 9px;border-right:1px solid #e9f4f3;min-width:0;}
.emi-card-metric:last-child{border-right:0}.emi-card-metric strong{display:block;font-size:15px;font-weight:850;color:#193734;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.emi-card-metric small{display:block;font-size:9.8px;color:#829c87;margin-top:3px}.emi-card-metric.paid strong{color:#339146}.emi-card-metric.outstanding strong{color:#e38367}
.emi-card-progress-track{height:7px;border-radius:999px;background:#eaf5f4;overflow:hidden}.emi-card-progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#71d0c6,#73d0c7)}.emi-card-progress-label{display:flex;justify-content:space-between;font-size:9.7px;color:#7c9882;margin-top:5px}
.emi-card-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.emi-card-info{background:#f7fcfa;border-radius:10px;padding:9px 10px;min-width:0}.emi-card-info span{display:block;font-size:9.5px;color:#809996}.emi-card-info strong{display:block;font-size:11px;color:#294946;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.emi-card-actions{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:7px;margin-top:13px}.emi-card-actions .btn{font-size:10.5px;font-weight:700;border-radius:9px;}
.emi-payment-record-card{border:1px solid #e4f3f1!important;border-radius:15px!important;overflow:hidden;box-shadow:0 5px 18px rgba(36,78,63,.05)!important;}
.emi-payment-record-card .card-header{background:#fff;border-bottom:1px solid #edf6f5;padding:15px 18px}.emi-payment-record-card .card-body{padding:0}.emi-payment-record-tools{padding:12px 14px;border-bottom:1px solid #edf6f5;background:#fbfcff}.emi-payment-record-tools input{max-width:310px}.emi-payment-record-card table{font-size:11px}.emi-payment-record-card thead th{font-size:9.5px;text-transform:uppercase;letter-spacing:.02em;color:#69836e;white-space:nowrap}.emi-payment-record-card tbody td{vertical-align:middle}.emi-payment-actions{display:flex;justify-content:flex-end;gap:5px;white-space:nowrap}
@media(max-width:767px){.emi-card-metrics{grid-template-columns:1fr}.emi-card-metric{border-right:0;border-bottom:1px solid #e9f4f3;padding:7px 4px}.emi-card-metric:last-child{border-bottom:0}.emi-card-actions{grid-template-columns:1fr 1fr}.emi-card-actions .dropdown{grid-column:auto}.emi-card-info-grid{grid-template-columns:1fr}.emi-view-toggle .btn{min-width:auto}}
