
/* v0.8.8 — Investor center/dashboard redesign */
#investorsPage{padding-bottom:18px}
.iv88-page{display:grid;gap:12px}
.iv88-page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:2px 2px 0}
.iv88-page-head small,.iv88-dashboard-head small{display:block;color:#789085;font-size:9px;font-weight:900;letter-spacing:.08em}
.iv88-page-head h1{margin:3px 0 2px;font-size:24px;line-height:1;color:#102c24}
.iv88-page-head p{margin:0;color:#748b82;font-size:11px}
.iv88-history-btn{min-width:82px}

.iv88-dashboard{border:1px solid #d7e3de;border-radius:18px;background:#fff;padding:12px;display:grid;gap:10px;box-shadow:0 8px 24px rgba(38,73,60,.05)}
.iv88-dashboard-head{display:flex;justify-content:space-between;align-items:end;gap:10px}
.iv88-dashboard-head h2{margin:2px 0 0;font-size:18px;color:#102c24}
.iv88-live-dot{font-size:9px;color:#13a36a;font-weight:800}
.iv88-dashboard-loading,.iv88-loading{border:1px dashed #d7e3de;border-radius:12px;padding:16px;text-align:center;color:#789085;font-size:10px;background:#f8fbf9}
.iv88-count-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.iv88-count-card{border:1px solid #e0e9e5;border-radius:12px;padding:9px;background:#f9fcfa;min-width:0}
.iv88-count-card span{display:block;color:#6f867d;font-size:9px}.iv88-count-card b{display:block;margin:3px 0;font-size:19px;color:#123329}.iv88-count-card small{color:#8a9e96;font-size:8px}.iv88-count-card.is-alert{border-color:#f0d0d6;background:#fff7f8}.iv88-count-card.is-alert b{color:#bd4960}

.iv88-currency-dashboard{display:grid;gap:8px}
.iv88-currency-card{border:1px solid #dce7e2;border-radius:14px;padding:10px;background:#fbfdfc}
.iv88-currency-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.iv88-currency-title b{font-size:15px;color:#10352a}.iv88-currency-title span{font-size:9px;color:#789085}
.iv88-currency-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.iv88-currency-kpis>div{border:1px solid #e3ece8;border-radius:10px;padding:7px;background:#fff;min-width:0}.iv88-currency-kpis span{display:block;color:#758c83;font-size:8px}.iv88-currency-kpis b{display:block;margin-top:3px;color:#16372e;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iv88-currency-kpis .is-warn{background:#fff9ed;border-color:#efdfb8}.iv88-currency-kpis .is-warn b{color:#9e711c}.iv88-currency-kpis .is-danger{background:#fff5f7;border-color:#efd3d9}.iv88-currency-kpis .is-danger b{color:#bd4960}

.iv88-dashboard-bottom{display:grid;grid-template-columns:1fr 1fr;gap:8px}.iv88-rank-card{border:1px solid #dce7e2;border-radius:14px;padding:9px;background:#fbfdfc}.iv88-rank-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.iv88-rank-head b{font-size:11px;color:#17372e}.iv88-rank-head span{display:flex;min-width:22px;height:22px;align-items:center;justify-content:center;border-radius:999px;background:#edf4f1;color:#5b746a;font-size:9px;font-weight:800}.iv88-rank-list{display:grid;gap:3px}.iv88-rank-row{width:100%;display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:6px;align-items:center;padding:6px;border:0;border-radius:9px;background:transparent;text-align:left;color:#17372e}.iv88-rank-row:hover{background:#f0f6f3}.iv88-rank-row i{display:flex;width:20px;height:20px;align-items:center;justify-content:center;border-radius:7px;background:#edf4f1;color:#637b71;font-size:8px;font-style:normal;font-weight:800}.iv88-rank-row span{min-width:0}.iv88-rank-row span b{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iv88-rank-row span small{display:block;color:#82968e;font-size:7.5px}.iv88-rank-row strong{font-size:9px;white-space:nowrap;color:#12382d}

.iv88-investor-tools{display:flex;align-items:center;gap:8px}.iv88-search{display:flex;align-items:center;gap:6px;flex:1;border:1px solid #d5e2dc;border-radius:11px;background:#fff;padding:0 9px;height:36px}.iv88-search span{color:#80968d}.iv88-search input{width:100%;border:0!important;outline:0!important;background:transparent!important;padding:0!important;color:#17372e!important;font-size:10px!important}.iv88-investor-count{font-size:9px;color:#789085;white-space:nowrap}
.iv88-investor-list{display:grid;gap:9px}.iv88-investor-card{border:1px solid #d7e3de;border-radius:16px;background:#fff;padding:11px;display:grid;gap:9px}.iv88-investor-head{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:8px;align-items:center}.iv88-investor-avatar{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#edf5f2;color:#235948;font-size:15px;font-weight:900}.iv88-investor-name{min-width:0}.iv88-investor-name>div{display:flex;align-items:center;gap:5px;min-width:0}.iv88-investor-name h3{margin:0;font-size:15px;color:#102f26;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iv88-investor-name p{margin:2px 0 0;color:#748980;font-size:8.5px}.iv88-active-chip,.iv88-off-chip{display:inline-flex;align-items:center;min-height:17px;padding:0 5px;border-radius:999px;font-size:6.5px;font-weight:900}.iv88-active-chip{background:#eaf8f1;color:#168052}.iv88-off-chip{background:#f2f3f3;color:#7e8c87}.iv88-loan-count{display:grid;justify-items:center;min-width:38px;border-radius:10px;background:#f1f6f4;padding:5px;font-size:13px;font-weight:900;color:#21483b}.iv88-loan-count small{font-size:6px;font-weight:700;color:#7b9087}
.iv88-summary-host{min-width:0}.iv88-card-currencies{display:grid;gap:6px}.iv88-card-currency{border:1px solid #e0e9e5;border-radius:11px;padding:8px;background:#fbfdfc}.iv88-card-currency-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.iv88-card-currency-head b{font-size:10px;color:#21483b}.iv88-card-currency-head span{font-size:7px;color:#82958e}.iv88-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px}.iv88-mini-grid>div{display:flex;justify-content:space-between;gap:5px;border-bottom:1px solid #edf2f0;padding:4px 0}.iv88-mini-grid span{font-size:7.5px;color:#788e85}.iv88-mini-grid b{font-size:8.5px;color:#17372e;white-space:nowrap}.iv88-overdue-line{margin-top:5px;padding:5px 7px;border-radius:8px;background:#fff4f6;color:#ad4056;font-size:8px}.iv88-overdue-line b{float:right}.iv88-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.iv88-card-actions button{min-height:34px}.iv88-investor-card .iv31-investor-edit{margin-top:0}.iv88-investor-card .iv31-investor-edit summary{font-size:8px;color:#789085}
.iv88-empty{padding:12px;text-align:center;color:#82968e;font-size:9px}.iv88-empty.small{padding:8px}

html[data-theme="dark"] .iv88-dashboard,html[data-theme="dark"] .iv88-investor-card,html[data-theme="dark"] .iv88-search{background:#0d1a27;border-color:#25394b}html[data-theme="dark"] .iv88-currency-card,html[data-theme="dark"] .iv88-rank-card,html[data-theme="dark"] .iv88-card-currency,html[data-theme="dark"] .iv88-count-card{background:#101f2d;border-color:#26394a}html[data-theme="dark"] .iv88-page-head h1,html[data-theme="dark"] .iv88-dashboard-head h2,html[data-theme="dark"] .iv88-count-card b,html[data-theme="dark"] .iv88-currency-title b,html[data-theme="dark"] .iv88-rank-head b,html[data-theme="dark"] .iv88-investor-name h3{color:#f3f8f6}html[data-theme="dark"] .iv88-currency-kpis>div{background:#0d1b28;border-color:#283b4b}html[data-theme="dark"] .iv88-currency-kpis b,html[data-theme="dark"] .iv88-mini-grid b,html[data-theme="dark"] .iv88-rank-row,html[data-theme="dark"] .iv88-rank-row strong{color:#eaf3ef}

@media(max-width:430px){.iv88-count-grid{grid-template-columns:1fr 1fr}.iv88-currency-kpis{grid-template-columns:1fr 1fr}.iv88-dashboard-bottom{grid-template-columns:1fr}.iv88-page-head h1{font-size:21px}.iv88-dashboard{padding:10px}.iv88-investor-card{padding:9px}.iv88-investor-tools{align-items:stretch;flex-direction:column}.iv88-investor-count{padding-left:2px}}
