/* Borrower dashboard: reference layout, scoped to the portal. No page scroll lock. */
.portal-body .lc-icon{width:1em;height:1em;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.12em}
.portal-body .lc-icon-library{position:absolute;pointer-events:none}
.portal-body [data-portal-target][hidden],.portal-body .lc-nav-badge[hidden]{display:none!important}
.portal-body.lc-release-r3 .portal-header{padding-inline:2.9vw}
.portal-body.lc-release-r3 .portal-header .portal-brand{font-size:13px}
.portal-body.lc-release-r3 .portal-header .portal-brand-sub{font-size:10px}
.portal-body.lc-release-r3 .portal-header-logo-img{max-height:32px!important}
.portal-body.lc-release-r3 .portal-header .icon-btn{background:#f5f8fd;color:#32577c;border:1px solid #ecf1f8}
.portal-body .portal-header .lc-icon{font-size:15px}
.portal-body .portal-header .portal-hamburger .lc-icon{font-size:21px;color:#163f68}
.portal-body.lc-dashboard-active #whatsapp-float-btn{display:none!important}
.portal-body #modal-doc-viewer:not(.active){display:none}
.portal-body #modal-doc-viewer{animation:none}
.portal-body .portal-user-pill .portal-user-caret{transform:rotate(90deg);font-size:10px}
.portal-body .portal-tools-dropdown{right:0}
.portal-body .user-dropdown button{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;border:0;border-radius:7px;background:none;color:var(--text-primary);font:inherit;text-align:left;cursor:pointer}
.portal-body .user-dropdown button:hover,.portal-body .user-dropdown button:focus-visible{background:var(--bg-secondary)}
.portal-body .lc-nav-badge{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;background:#df3546;color:#fff;font-size:9px;font-weight:750;border-radius:20px}
@media(min-width:701px){
  .portal-body.lc-release-r3 .portal-header{height:43px;gap:10px}
  .portal-body.lc-release-r3 .portal-header .icon-btn{width:29px;height:29px}
  .portal-body.lc-release-r3 .portal-header .portal-avatar{width:25px;height:25px;font-size:10px}
  .portal-body.lc-release-r3 .portal-header .portal-user-pill{padding:2px 9px 2px 3px}
  .portal-body.lc-release-r3 #portal-username{font-size:11px}
  .portal-body.lc-release-r3 .portal-nav{padding-inline:3.9vw;min-height:39px;gap:2px;background:linear-gradient(90deg,#073971,#052e63 65%,#0a3e78)}
  .portal-body.lc-release-r3 .portal-nav .pnav-item{min-height:37px;padding:7px clamp(8px,1.01vw,16px);font-size:clamp(10px,.78vw,12px);border-radius:4px;color:#eaf2fd}
  .portal-body.lc-release-r3 .portal-nav .pnav-item .lc-icon{font-size:14px}
  .portal-body.lc-release-r3 .portal-nav .pnav-item span:not([hidden]){display:inline}
  .portal-body.lc-release-r3 .portal-nav .pnav-item.pnav-secondary{display:none}
  .portal-body.lc-release-r3 .portal-main{padding:17px 4.5vw 45px}
}
.portal-body .lc-dashboard{
  --ld-ink:#101c43;--ld-muted:#566783;--ld-card:#fff;--ld-border:#e2eaf3;--ld-link:#0757aa;
  --ld-head:#edf5fd;--ld-track:#dfe8f4;--ld-line:#edf1f7;--ld-blue:#0a65d1;
  --ld-paid:#08734f;color:var(--ld-ink)
}
.portal-body .lc-dashboard button{font-family:inherit;cursor:pointer}
.portal-body .lc-dashboard :is(button,[tabindex]):focus-visible,.portal-body .lc-dashboard-dialog button:focus-visible{outline:2px solid #1479ec;outline-offset:2px}
.portal-body.lc-release-r3 .lc-dashboard-hero{align-items:flex-start;margin:0 0 13px;padding:0 0 0 12px}
.portal-body.lc-release-r3 .lc-dashboard-hero h2{font-size:clamp(22px,1.8vw,28px);color:var(--ld-ink);margin-top:3px}
.portal-body.lc-release-r3 .lc-dashboard-hero p{color:var(--ld-muted);font-size:12px;margin:5px 0 0}
.portal-body.lc-release-r3 .lc-dashboard-hero .btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:41px;padding:8px 17px;border-radius:11px;font-size:12px;background:linear-gradient(110deg,#0879f2,#075be0);white-space:nowrap}
.portal-body .lc-dashboard-hero .lc-icon{font-size:16px}
.portal-body .lc-dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:13px}
.portal-body .lc-blue{--ld-tint:#eef6ff;--ld-tail:#f5faff;--ld-edge:#e0edf8;--ld-icon-bg:#dcedff;--ld-accent:#0761c9}
.portal-body .lc-mint{--ld-tint:#edfaf5;--ld-tail:#f3fcf8;--ld-edge:#dfeee8;--ld-icon-bg:#d5f2e6;--ld-accent:#09875b}
.portal-body .lc-lilac{--ld-tint:#f5f0fd;--ld-tail:#faf7ff;--ld-edge:#ebe3f6;--ld-icon-bg:#ebdbff;--ld-accent:#7b30cf}
.portal-body .lc-amber{--ld-tint:#fff7e9;--ld-tail:#fffbf3;--ld-edge:#f3ead7;--ld-icon-bg:#ffebcc;--ld-accent:#a76407}
.portal-body .lc-stat,.portal-body .lc-quick{
  min-width:0;text-align:left;color:var(--ld-ink);background:linear-gradient(110deg,var(--ld-tint),var(--ld-tail));
  border:1px solid var(--ld-edge);border-radius:10px;display:flex;align-items:center
}
.portal-body .lc-stat{box-shadow:0 3px 12px #1736570b}
.portal-body .lc-stat{min-height:86px;padding:13px 16px;gap:15px}
.portal-body .lc-stat>span:nth-child(2),.portal-body .lc-quick>span:nth-child(2){min-width:0;flex:1}
.portal-body .lc-stat-icon,.portal-body .lc-quick-icon{display:grid;place-items:center;flex:none;border-radius:10px;background:var(--ld-icon-bg);color:var(--ld-accent)}
.portal-body .lc-stat-icon{width:49px;height:49px;font-size:27px}
.portal-body .lc-stat strong,.portal-body .lc-stat small,.portal-body .lc-quick strong,.portal-body .lc-quick small{display:block;overflow-wrap:anywhere}
.portal-body .lc-stat strong{font-size:19px;line-height:1.2;margin:2px 0 4px;font-weight:800;font-variant-numeric:tabular-nums}
.portal-body .lc-stat small{color:var(--ld-muted);font-size:10.5px;line-height:1.35}
.portal-body .lc-stat small:first-child{font-weight:650}
.portal-body #stat-risk{color:var(--ld-accent)}
.portal-body #stat-risk[data-risk="high"],.portal-body #stat-risk[data-risk="defaulted"],.portal-body #stat-risk[data-risk="blacklisted"]{color:#ab2741}
.portal-body .lc-chevron{margin-left:auto;color:#6a7f99;font-size:14px}
.portal-body .lc-stat:hover,.portal-body .lc-quick:hover{border-color:var(--ld-accent);box-shadow:0 2px 7px #10284e0b}
.portal-body .lc-dashboard-grid{display:grid;grid-template-columns:minmax(0,2.45fr) minmax(340px,1fr);gap:12px;align-items:start}
.portal-body .lc-dashboard-column{display:grid;gap:9px;min-width:0}
.portal-body .lc-dash-card{min-width:0;background:var(--ld-card);border:1px solid var(--ld-border);border-radius:11px;box-shadow:0 3px 12px #1736570b}
.portal-body .lc-account-strip{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(0,1fr);gap:2px}
.portal-body .lc-account-card{position:relative;padding:7px;min-height:111px}
.portal-body .lc-account-status{height:100%;min-height:93px;display:flex;align-items:center;gap:16px;padding:13px clamp(12px,1.25vw,20px);padding-right:clamp(56px,9vw,143px);background:linear-gradient(110deg,#f4fbfc,#eef6ff);border-radius:8px}
.portal-body .lc-account-icon{width:45px;height:45px;flex:none;display:grid;place-items:center;border-radius:50%;background:#0e9b69;color:#fff;font-size:28px;box-shadow:0 2px 5px #118c6120}
.portal-body .lc-account-status strong{display:block;color:var(--ld-paid);font-size:15px;font-weight:800}
.portal-body .lc-account-status p{margin:4px 0 0;color:var(--ld-muted);font-size:11px;line-height:1.42}
.portal-body .lc-account-status[data-state="due"] .lc-account-icon{background:#086ad7}
.portal-body .lc-account-status[data-state="due"] strong{color:var(--ld-link)}
.portal-body .lc-account-status[data-state="error"] .lc-account-icon{background:#ad5f08}
.portal-body .lc-account-status[data-state="error"] strong{color:#8e4a06}
.portal-body .lc-checklist-art{pointer-events:none;position:absolute;right:clamp(8px,2vw,33px);bottom:12px;width:clamp(54px,8vw,118px);height:auto}
.portal-body .lc-progress-card{min-height:111px;display:flex;align-items:center;justify-content:center;gap:clamp(13px,1.8vw,28px);padding:7px 12px}
.portal-body .lc-progress-ring{position:relative;flex:none;width:clamp(77px,7.2vw,111px);aspect-ratio:1}
.portal-body .lc-progress-ring>svg{width:100%;height:100%;fill:none;stroke-width:9}
.portal-body .lc-ring-track{stroke:var(--ld-track)}
.portal-body .lc-ring-value{stroke:#0aa373;stroke-linecap:round}
.portal-body .lc-progress-ring>div{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.portal-body .lc-progress-ring strong{font-size:clamp(18px,1.55vw,26px);line-height:1;font-weight:800}
.portal-body .lc-progress-ring small{font-size:10px;color:var(--ld-muted);margin-top:3px}
.portal-body .lc-progress-details{border-left:1px solid var(--ld-border);padding-left:clamp(10px,1.4vw,22px);min-width:0}
.portal-body .lc-progress-details h3{font-size:13px;margin:0 0 7px;color:var(--ld-ink)}
.portal-body .lc-progress-details>div{display:flex;gap:9px;align-items:flex-start;margin-top:6px}
.portal-body .lc-progress-details>div>span{min-width:0}
.portal-body .lc-progress-details .lc-icon{font-size:18px;color:#7188a8;margin-top:1px}
.portal-body .lc-progress-details .lc-paid-icon,.portal-body #dashboard-paid{color:var(--ld-paid)}
.portal-body .lc-progress-details strong{font-size:12px;display:block;overflow-wrap:anywhere}
.portal-body .lc-progress-details small{font-size:10px;display:block;color:var(--ld-muted);margin-top:2px}
.portal-body .lc-card-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 8px;min-height:45px;padding:8px 12px}
.portal-body .lc-card-heading h3,.portal-body .lc-support-card h3{display:flex;align-items:center;gap:8px;color:var(--ld-ink);font-size:13px;font-weight:800;margin:0;line-height:1.3}
.portal-body .lc-heading-icon{display:inline-grid;place-items:center;width:26px;height:26px;flex:none;background:var(--ld-head);color:var(--ld-blue);border-radius:7px;font-size:17px}
.portal-body .lc-dash-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid transparent;border-radius:7px;background:var(--ld-head);color:var(--ld-link);font-size:10.5px;font-weight:700;min-height:26px;padding:5px 8px;text-align:center}
.portal-body .lc-dash-link:hover{border-color:#90bcef}
.portal-body .lc-dashboard-table{max-width:100%;margin:0 12px 10px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.portal-body .lc-dashboard-table table{width:100%;min-width:655px;border-collapse:separate;border-spacing:0;font-size:11px}
.portal-body .lc-dashboard-table th{background:var(--ld-head);color:var(--ld-muted);font-size:10px;text-align:left;padding:7px 9px;white-space:nowrap}
.portal-body .lc-dashboard-table th:first-child{border-radius:6px 0 0 0}
.portal-body .lc-dashboard-table th:last-child{border-radius:0 6px 0 0}
.portal-body .lc-dashboard-table td{padding:5px 9px;height:30px;white-space:nowrap;border-bottom:1px solid var(--ld-line);color:var(--ld-ink)}
.portal-body .lc-dashboard-table td .lc-icon{color:var(--ld-link);margin-right:3px}
.portal-body .lc-dashboard-table td .lc-dash-link .lc-icon{margin:0}
.portal-body .lc-dashboard-table tr:last-child td{border-bottom:none}
.portal-body .lc-dashboard-table tbody tr:nth-child(even){background:var(--ld-tail,#fbfcff)}
.portal-body .lc-payment-pill{display:inline-flex;align-items:center;gap:5px;background:#e5f8ee;color:#0c7350;border-radius:20px;font-size:10px;font-weight:750;padding:3px 7px}
.portal-body .lc-dashboard-table td .lc-payment-pill .lc-icon{margin:0;color:inherit}
.portal-body .lc-dash-empty{padding:17px 9px;margin:0;text-align:center;color:var(--ld-muted);font-size:12px}
.portal-body .lc-actions-card,.portal-body .lc-tracker-card{padding-bottom:9px}
.portal-body .lc-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 11px}
.portal-body .lc-quick{padding:6px 7px;gap:6px;min-height:51px}
.portal-body .lc-quick-icon{width:27px;height:28px;border-radius:8px;font-size:17px}
.portal-body .lc-quick strong{font-size:11px;line-height:1.3}
.portal-body .lc-quick small{font-size:9px;line-height:1.3;color:var(--ld-muted);margin-top:2px}
.portal-body .lc-quick .lc-chevron{font-size:9px}
.portal-body .lc-tracker-steps{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0;margin:3px 9px 7px;gap:0}
.portal-body .lc-tracker-steps li{position:relative;text-align:center;display:flex;flex-direction:column;align-items:center;font-size:9px;line-height:1.35;color:var(--ld-muted);min-width:0}
.portal-body .lc-tracker-steps li:not(:last-child)::after{content:"";position:absolute;top:8px;left:50%;width:100%;height:1px;background:#c9d8eb}
.portal-body .lc-tracker-dot{position:relative;z-index:1;width:17px;height:17px;display:grid;place-items:center;border:2px solid var(--ld-card);border-radius:50%;background:#a6b7cc;color:#fff;margin-bottom:3px}
.portal-body .lc-tracker-steps .done .lc-tracker-dot{background:#125aa5}
.portal-body .lc-tracker-steps .current .lc-tracker-dot{background:var(--ld-card);border:4px solid #0a70dd}
.portal-body .lc-tracker-steps .current{color:var(--ld-link)}
.portal-body .lc-tracker-steps time{font-size:8.5px;margin-top:2px}
.portal-body .lc-app-record{display:flex;align-items:center;gap:8px;width:calc(100% - 20px);margin:0 10px;text-align:left;padding:7px 8px;background:var(--ld-head);border:1px solid var(--ld-border);border-radius:8px;color:var(--ld-ink)}
.portal-body .lc-app-record>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}
.portal-body .lc-app-record strong,.portal-body .lc-app-record small{display:block;font-size:10.5px}
.portal-body .lc-app-record small{color:var(--ld-muted);font-size:9px;margin-top:2px}
.portal-body .lc-app-stage{flex:none;display:inline-flex;align-items:center;padding:4px 6px;border-radius:6px;font-size:9px;font-weight:750;background:#fff1d9;color:#885200;text-align:center}
.portal-body .lc-app-stage[data-stage="disbursed"],.portal-body .lc-app-stage[data-stage="approved"]{background:#e3f6ec;color:#106949}
.portal-body .lc-app-stage[data-stage="rejected"],.portal-body .lc-app-stage[data-stage="cancelled"]{background:#ffe9ed;color:#a72b41}
.portal-body .lc-support-card{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:8px 10px;min-height:49px}
.portal-body .lc-support-card>div{flex:1;min-width:106px}
.portal-body .lc-support-card small{display:block;color:var(--ld-muted);font-size:9px;margin-top:3px}
.portal-body .lc-support-card .lc-heading-icon{border-radius:50%}
.portal-body .lc-dashboard-dialog{--ld-ink:#101c43;--ld-muted:#566783;--ld-head:#edf5fd;--ld-link:#0757aa;--ld-blue:#0a65d1;--ld-border:#e2eaf3;width:min(570px,calc(100% - 22px));max-height:calc(100dvh - 30px);padding:0;border:1px solid #d8e4f0;border-radius:14px;background:#fff;color:#101c43;box-shadow:0 14px 65px #061f4b46}
.portal-body .lc-dashboard-dialog::backdrop{background:#07234172}
.portal-body .lc-dashboard-dialog header{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#fff;border-bottom:1px solid #e0eaf5;z-index:1}
.portal-body .lc-dashboard-dialog h3{font-size:16px;margin:0}
.portal-body .lc-dialog-close{display:grid;place-items:center;width:35px;height:35px;border:0;border-radius:8px;background:#edf4ff;color:#10345b;font-size:23px;cursor:pointer}
.portal-body .lc-dialog-body{padding:14px 16px}
.portal-body .lc-dialog-body dl{margin:0}
.portal-body .lc-dialog-body dl>div{display:grid;grid-template-columns:1fr 1.4fr;gap:10px;padding:10px 0;border-bottom:1px solid #edf1f6;font-size:13px}
.portal-body .lc-dialog-body dd{margin:0;font-weight:650;overflow-wrap:anywhere}
.portal-body .lc-dialog-body p{font-size:13px;line-height:1.55}
.portal-body .lc-dialog-body .lc-app-record{width:100%;margin:0 0 7px}
.portal-body .lc-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:14px}
html[data-theme="dark"] .portal-body .lc-dashboard{
  --ld-ink:#e6efff;--ld-muted:#b2c1d9;--ld-card:#172941;--ld-border:#304763;--ld-link:#a8d3ff;
  --ld-head:#203955;--ld-track:#35506b;--ld-line:#2c425d;--ld-blue:#8ac5ff;--ld-paid:#74dfb7
}
html[data-theme="dark"] .portal-body .portal-app{background:#0f2034}
html[data-theme="dark"] .portal-body.lc-release-r3 .portal-header{background:#172941;border-color:#304763}
html[data-theme="dark"] .portal-body.lc-release-r3 .portal-header .portal-brand,
html[data-theme="dark"] .portal-body.lc-release-r3 #portal-username{color:#e6efff}
html[data-theme="dark"] .portal-body.lc-release-r3 .portal-header .portal-user-pill,
html[data-theme="dark"] .portal-body.lc-release-r3 .portal-header .icon-btn{background:#203955;color:#e6efff;border-color:#304763}
html[data-theme="dark"] .portal-body .lc-account-status{background:linear-gradient(110deg,#183544,#1c334f)}
html[data-theme="dark"] .portal-body .lc-account-status[data-state="error"] strong{color:#ffd696}
html[data-theme="dark"] .portal-body #stat-risk[data-risk]{color:#ffd696}
html[data-theme="dark"] .portal-body .lc-dashboard-table tbody tr:nth-child(even){background:#192e49}
html[data-theme="dark"] .portal-body .lc-dashboard :is(.lc-blue,.lc-mint,.lc-lilac,.lc-amber){--ld-tint:#1c3049;--ld-tail:#203651;--ld-edge:#304763}
@media(max-width:1120px){
  .portal-body .lc-dashboard-grid{grid-template-columns:minmax(0,1.65fr) minmax(305px,1fr)}
  .portal-body .lc-account-status{padding-right:13px;gap:10px}
  .portal-body .lc-checklist-art{display:none}
  .portal-body .lc-stat{padding:11px 10px;gap:8px}
  .portal-body .lc-stat-icon{width:39px;height:39px;font-size:22px}
}
@media(max-width:900px){
  .portal-body .lc-dashboard-grid{grid-template-columns:minmax(0,1fr)}
  .portal-body .lc-dashboard-grid>aside{grid-template-columns:repeat(2,minmax(0,1fr))}
  .portal-body .lc-support-card{grid-column:1/-1}
  .portal-body .lc-checklist-art{display:block}
  .portal-body .lc-account-status{padding-right:clamp(72px,11vw,120px)}
}
@media(max-width:700px){
  .portal-body.lc-release-r3 .lc-dashboard-hero{padding:0;align-items:center}
  .portal-body .lc-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .portal-body .lc-stat{min-height:79px;padding:10px 8px}
  .portal-body .lc-stat strong{font-size:16px}
  .portal-body .lc-stat small{font-size:9.5px}
  .portal-body .lc-stat .lc-chevron{font-size:11px}
  .portal-body .lc-dashboard-grid>aside{grid-template-columns:minmax(0,1fr)}
  .portal-body .lc-dash-link,.portal-body .lc-dashboard-table td .lc-dash-link{min-height:32px}
}
@media(max-width:530px){
  .portal-body .lc-account-strip{grid-template-columns:minmax(0,1fr);gap:8px}
  .portal-body .lc-progress-card{justify-content:flex-start;padding-left:16px}
  .portal-body .lc-stat-icon{width:33px;height:34px;font-size:19px}
  .portal-body .lc-dashboard-table{margin-inline:7px}
  .portal-body .lc-quick{min-height:55px}
}
@media(max-width:360px){
  .portal-body .lc-stat strong{font-size:14px}
  .portal-body .lc-stat .lc-chevron{display:none}
  .portal-body .lc-dashboard-hero .btn-primary{white-space:normal}
}
@media(prefers-reduced-motion:reduce){
  .portal-body .portal-section.active{animation:none}
}
