/* Limitless Capital UI R3. Loaded after the legacy admin/portal styles. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700;750;800&display=swap');

body.lc-release-r3 {
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Inter', 'Segoe UI', Arial, sans-serif;
  --lc-ink: #101d44;
  --lc-muted: #65748e;
  --lc-line: #dfe7f2;
  --lc-navy: #062f5c;
  --lc-blue: #096bf5;
  font-family: var(--font-body);
}
/* The document is the ONLY page scroller in the borrower portal. */
html.portal-document {
  height: auto !important; max-height: none !important; min-height: 100%;
  overflow-x: clip !important; overflow-y: auto !important;
  overscroll-behavior: auto !important; scroll-padding-top: 80px;
}
body.portal-body.lc-release-r3 {
  position: static !important; width: 100%; max-width: 100%;
  height: auto !important; max-height: none !important; min-height: 100vh;
  overflow: visible !important; overscroll-behavior: auto !important;
  touch-action: auto; background: #f5f8fd; color: var(--lc-ink);
  --bg-primary: #f5f8fd; --bg-card: #fff; --bg-modal: #fff;
  --bg-input: #f8faff; --bg-secondary: #edf2f9; --border: #dfe7f2;
  --text-primary: #101d44; --text-secondary: #536580; --text-muted: #65748e;
  --accent-blue: #096bf5; --accent-green: #0aaf77;
}
.portal-body.lc-release-r3 .portal-app,
.portal-body.lc-release-r3 .auth-wrapper,
.portal-body.lc-release-r3 .portal-main {
  position: relative; height: auto !important; max-height: none !important;
  overflow: visible !important; min-width: 0;
}
.portal-body.lc-release-r3 .portal-app { min-height: 100vh; }
.portal-body.lc-release-r3 .portal-main {
  flex: 1 0 auto; width: 100%; max-width: 1660px; margin: 0 auto;
  padding: 25px 3.75vw 60px;
}
.portal-body.lc-release-r3 .portal-section { min-width: 0; overflow: visible; }
.portal-body.lc-release-r3 .portal-header {
  position: sticky; top: 0; z-index: 100; height: 57px; flex-shrink: 0;
  padding: 0 30px; background: #fff; border-bottom: 1px solid #dfe7f2;
  box-shadow: none; backdrop-filter: none;
}
.portal-body.lc-release-r3 .portal-header-logo-img { max-height: 35px !important; }
.portal-body.lc-release-r3 .portal-brand { font-size: 16px; font-weight: 750; color: #0e2346; }
.portal-body.lc-release-r3 .portal-brand-sub { font-size: 10px; }
.portal-body.lc-release-r3 .portal-avatar { background: #0b3765; }
.portal-body.lc-release-r3 .portal-user-pill { background: #f2f6fd; border-color: #dfe7f2; }
.portal-body.lc-release-r3 .portal-nav {
  background: #062f5c; padding: 0 2.5vw; min-height: 47px;
  justify-content: flex-start; gap: 1px; box-shadow: 0 4px 9px #1f4e8420;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: thin;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.portal-body.lc-release-r3 .portal-nav .pnav-item {
  padding: 11px 13px; border-radius: 7px; min-height: 43px;
  font-size: 12px; color: #dae7f8; font-weight: 500;
}
.portal-body.lc-release-r3 .portal-nav .pnav-item.active {
  background: #254b73; color: #fff; box-shadow: inset 0 -3px #f2ce55;
}
.portal-body.lc-release-r3 .section-hero { margin-bottom: 16px; gap: 12px; }
.portal-body.lc-release-r3 .section-hero h2 { font-family: var(--font-body); font-size: 28px; font-weight: 800; letter-spacing: -.7px; }
.portal-body.lc-release-r3 .section-hero p { margin-top: 4px; font-size: 12px; }
.portal-body.lc-release-r3 .btn-primary {
  background: #096bf5; border: 1px solid #096bf5; border-radius: 7px;
  color: #fff; box-shadow: 0 4px 10px #096bf51c; font-weight: 650;
}
.portal-body.lc-release-r3 .btn-ghost { border-color: #d8e4f4; color: #085bcf; background: #f8fbff; }
.portal-body.lc-release-r3 .portal-loan-kpis { gap: 13px; margin-bottom: 13px; }
.portal-body.lc-release-r3 .portal-loan-kpi {
  min-height: 91px; gap: 15px; padding: 15px 20px;
  border: 1px solid #dce8f3; border-radius: 11px; box-shadow: none;
}
.portal-body.lc-release-r3 .portal-loan-kpi > i { width: 47px; height: 47px; flex-shrink: 0; border-radius: 12px; }
.portal-body.lc-release-r3 .portal-loan-kpi span { font-size: 11px; color: #4f6280; }
.portal-body.lc-release-r3 .portal-loan-kpi strong { font-size: 22px; font-weight: 750; color: #0b1d44; }
.portal-body.lc-release-r3 .portal-loan-kpi small { font-size: 10px; margin-top: 3px; }
.portal-body.lc-release-r3 .portal-loan-kpi.blue { background: linear-gradient(110deg,#eef5ff,#e7f0ff); }
.portal-body.lc-release-r3 .portal-loan-kpi.green { background: linear-gradient(110deg,#effbf7,#e6f6ef); }
.portal-body.lc-release-r3 .portal-loan-kpi.amber { background: linear-gradient(110deg,#fffaf0,#fff4e4); }
.portal-body.lc-release-r3 .portal-loan-kpi.purple { background: linear-gradient(110deg,#f7f1ff,#efe9fd); }
.portal-body.lc-release-r3 .portal-loan-filters {
  grid-template-columns: minmax(230px,1.7fr) repeat(4,minmax(130px,.7fr)) 38px;
  gap: 10px; padding: 10px; border-radius: 11px; background: #fff;
  border: 1px solid var(--lc-line); box-shadow: none;
}
.portal-body.lc-release-r3 .portal-loan-filters > * { min-width: 0; }
.portal-body.lc-release-r3 .portal-loan-filters select,
.portal-body.lc-release-r3 .portal-loan-filters input { min-width: 0; height: 38px; font-size: 11px; background: #fff; }
.portal-body.lc-release-r3 .portal-next-loan-payment {
  min-height: 74px; margin: 12px 0 17px; padding: 14px 19px;
  background: linear-gradient(100deg,#ecf4ff,#f7fbff); border-color: #dce7f6;
  box-shadow: none; border-radius: 11px;
}
.portal-body.lc-release-r3 .portal-next-loan-payment .next-payment-icon { width: 44px; height: 44px; background: #dceaff; color: #1673ed; border-radius: 11px; }
.portal-body.lc-release-r3 .portal-next-loan-payment strong { font-size: 14px; }
.portal-body.lc-release-r3 .loans-list { display: block; overflow: visible; border-color: var(--lc-line); border-radius: 11px; box-shadow: 0 4px 12px #193d6b09; }
.portal-loan-list-heading { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e3eaf4; }
.portal-loan-list-heading h3 { font-size: 15px; font-weight: 750; color: #0e2148; }
.portal-loan-list-heading span { color: #76839b; font-size: 11px; }
.portal-horizontal-scroll,
.portal-body.lc-release-r3 .portal-table-wrap {
  display: block; width: 100%; min-width: 0; max-width: 100%;
  overflow-x: auto !important; overflow-y: auto !important;
  touch-action: pan-x pan-y; overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.portal-loans-table { width: 100%; min-width: 1060px; border-collapse: collapse; text-align: left; background: #fff; }
.portal-loans-table th { background: #f3f7fd; padding: 10px 13px; font-size: 10px; color: #5d7191; font-weight: 600; white-space: nowrap; border-bottom: 1px solid #e4ebf4; }
.portal-loans-table td { padding: 13px; border-bottom: 1px solid #e9eef5; color: #273c5e; font-size: 11px; white-space: nowrap; }
.portal-loans-table td strong { color: #102248; font-weight: 700; }
.portal-loans-table td:first-child { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.portal-loans-table .loan-list-icon { width: 30px; height: 30px; font-size: 13px; border-radius: 7px; }
.portal-loans-table .loan-progress-bar { height: 5px; width: 105px; margin: 4px 0; background: #dce4ef; }
.portal-loans-table .loan-progress-fill { background: #0cae77; }
.portal-loans-table small { display: block; color: #74839b; font-size: 10px; }
.portal-loans-table .loan-row-actions { flex-wrap: nowrap; justify-content: flex-start; }
.portal-loans-table .loan-row-actions button { font-size: 10px; white-space: nowrap; }
.portal-loans-table .badge { border-radius: 6px; font-size: 10px; text-transform: capitalize; }
.portal-body.lc-release-r3 .badge-completed,
.portal-body.lc-release-r3 .badge-active { background: #e0f8eb; color: #0b9b63; }

/* All portal overlays scroll internally; their shells never clip the footer. */
.portal-body.lc-release-r3 .modal-overlay {
  padding: 16px; max-height: none; height: 100vh; height: 100dvh;
  overflow-y: auto !important; overflow-x: hidden; overscroll-behavior-y: contain;
}
.portal-body.lc-release-r3 .modal-overlay > .modal,
.portal-body.lc-release-r3 .modal-overlay > .modal-box {
  min-height: 0; max-height: calc(100dvh - 32px) !important;
  flex: 0 1 auto; display: flex; flex-direction: column; overflow: hidden;
}
.portal-body.lc-release-r3 .modal-overlay .modal-body { min-height: 0; flex: 1 1 auto; overflow: auto !important; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.portal-body.lc-release-r3 .modal-header,
.portal-body.lc-release-r3 .modal-footer { flex: 0 0 auto; }
.portal-body.lc-release-r3 #modal-loan-detail .modal { width: min(1020px,100%); max-width: 1020px; }
.portal-body.lc-release-r3 #modal-loan-detail .modal-header { padding: 18px 22px; min-height: 60px; }
.portal-body.lc-release-r3 #modal-loan-detail .modal-header h3 { font-size: 21px; }
.portal-body.lc-release-r3 #modal-loan-detail .modal-body { max-height: none !important; padding: 22px; }
.portal-detail-hero { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.portal-detail-hero h3 { font-size: 19px; margin: 0 0 4px; }
.portal-detail-hero p { color: var(--lc-muted); font-size: 12px; }
.portal-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.portal-detail-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 19px; }
.portal-detail-kpis article { padding: 15px 12px; display: flex; align-items: center; gap: 10px; background: #f0f7ff; border: 1px solid #dfebf7; border-radius: 10px; }
.portal-detail-kpis article:nth-child(2) { background: #edf9f5; }.portal-detail-kpis article:nth-child(3) { background: #fff7e8; }.portal-detail-kpis article:nth-child(4) { background: #f4edff; }
.portal-detail-kpis article > i { font-size: 23px; color: #096bf5; }.portal-detail-kpis article:nth-child(2)>i {color:#0a9a70}.portal-detail-kpis article:nth-child(3)>i {color:#e29913}.portal-detail-kpis article:nth-child(4)>i {color:#8a3deb}
.portal-detail-kpis small,.portal-detail-kpis strong { display: block; }.portal-detail-kpis small { color: var(--lc-muted); font-size: 9px; }.portal-detail-kpis strong { font-size: 13px; margin-top: 5px; }
.portal-detail-tabs { display: flex; gap: 10px; border-bottom: 1px solid #dfe7f2; margin-bottom: 18px; overflow: auto; }
.portal-detail-tabs button { white-space: nowrap; padding: 11px 14px; font-size: 11px; color: #677994; border-bottom: 2px solid transparent; }
.portal-detail-tabs button.active { color: #096bf5; border-color: #096bf5; font-weight: 700; }
.portal-detail-panel[hidden] { display: none !important; }
.portal-detail-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.portal-detail-overview .detail-section { margin: 0; padding: 16px; border: 1px solid #dfe7f2; border-radius: 10px; background: #fff; }
.portal-detail-overview .detail-grid { display: block; }
.portal-detail-overview .detail-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf1f7; }
.portal-detail-overview .detail-item span { font-size: 11px; }.portal-detail-overview .detail-item strong { font-size: 11px; text-align: right; }
.portal-detail-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }.portal-detail-quick button { padding: 9px; font-size: 10px; }
.portal-body.lc-release-r3 #portal-topup-overlay .modal-box { max-width: 500px !important; border-radius: 12px; }
.portal-body.lc-release-r3 .topup-steps { margin: 6px 0 25px; gap: 0; }
.portal-body.lc-release-r3 .topup-step { flex-direction: column; align-items: center; font-size: 10px; gap: 7px; }
.portal-body.lc-release-r3 .topup-step:not(:last-child):after { left: calc(50% + 12px); width: calc(100% - 24px); top: 12px; right: auto; }
.portal-body.lc-release-r3 .topup-step:before { width: 25px; height: 25px; font-size: 11px; }
.portal-body.lc-release-r3 .topup-review-row { padding: 8px 0; font-size: 11px; }
.portal-body.lc-release-r3 .topup-review-row span { min-width: 0; }.portal-body.lc-release-r3 .topup-review-row strong { overflow-wrap: anywhere; }

/* Screenshot layout: borrower directory. */
.admin-body.lc-release-r3 #mod-borrowers,
.admin-body.lc-release-r3 #mod-repayments,
.admin-body.lc-release-r3 #modal-officer-detail,
.admin-body.lc-release-r3 #modal-loan-detail { --text-primary:#101d44; --text-secondary:#536580; --text-muted:#6b7c96; --bg-card:#fff; --bg-modal:#fff; --bg-secondary:#f3f7fc; --border:#dfe7f2; --border-color:#dfe7f2; --accent-blue:#096bf5; color:#101d44; font-family:var(--font-body); }
.admin-body.lc-release-r3 .module-content { background: #f3f7fd; }
.admin-body.lc-release-r3 #mod-borrowers .module-title-band { align-items: center; padding: 0 0 17px; }
.admin-body.lc-release-r3 #mod-borrowers .module-title-band h2 { font-size: 25px; letter-spacing: -.8px; font-weight: 800; }
.admin-body.lc-release-r3 #mod-borrowers .module-title-band h2>i { color:#0c2962; font-size: 31px; margin-right: 4px; }
.admin-body.lc-release-r3 #mod-borrowers .directory-kpi { border-radius: 12px; min-height: 94px; box-shadow: 0 3px 9px #163f6f12; padding: 15px 17px; }
.admin-body.lc-release-r3 #mod-borrowers .directory-kpi:after { border-radius: 0; width: 45%; height: 26px; right: 0; bottom: 0; opacity: .15; clip-path: polygon(0 85%,12% 55%,25% 65%,38% 15%,50% 25%,65% 5%,80% 35%,100% 0,100% 100%,0 100%); }
.admin-body.lc-release-r3 #mod-borrowers .directory-kpi.blue { background:linear-gradient(115deg,#f0f7ff,#e0edff) }.admin-body.lc-release-r3 #mod-borrowers .directory-kpi.green { background:linear-gradient(115deg,#f2fff7,#dff7e7) }.admin-body.lc-release-r3 #mod-borrowers .directory-kpi.amber { background:linear-gradient(115deg,#fffbef,#fff0d5) }.admin-body.lc-release-r3 #mod-borrowers .directory-kpi.red { background:linear-gradient(115deg,#fff5f6,#ffe3e9) }
.admin-body.lc-release-r3 #mod-borrowers .directory-kpi>i { width: 51px; height: 51px; font-size: 24px; }.admin-body.lc-release-r3 #mod-borrowers .directory-kpi span { font-size: 12px; color: #23385b; }.admin-body.lc-release-r3 #mod-borrowers .directory-kpi strong { font-weight: 800; font-size: 29px; }
.admin-body.lc-release-r3 #mod-borrowers .profile-completeness-card { grid-template-columns: 1fr 120px minmax(220px,1fr) 170px; gap: 20px; min-height: 134px; padding: 19px 23px; background:linear-gradient(125deg,#fff 58%,#eaf2ff); }
.admin-body.lc-release-r3 #mod-borrowers .profile-copy { order:0; align-self:start; margin-top:4px; }.admin-body.lc-release-r3 #mod-borrowers .profile-copy p { display:none; }.admin-body.lc-release-r3 #mod-borrowers .profile-copy h3 { font-size:18px; }.admin-body.lc-release-r3 #mod-borrowers .profile-ring { order:1; width:100px; height:100px; }.admin-body.lc-release-r3 #mod-borrowers .profile-breakdown { order:2; font-size:12px; }.admin-body.lc-release-r3 #mod-borrowers .profile-completeness-card>button { order:3; background:#e9efff; border:1px solid #d3ddf7; color:#1249a2; box-shadow:0 3px 7px #17397815; }
.admin-body.lc-release-r3 #mod-borrowers .borrower-quick-actions { display:flex; gap:9px; flex-wrap:wrap; margin:15px 0; }.admin-body.lc-release-r3 #mod-borrowers .quick-action { flex:1 1 auto; min-height:43px; font-size:11px; padding:8px 13px; border-radius:9px; }.admin-body.lc-release-r3 #mod-borrowers .quick-action-title { flex-grow:1.3; font-size:13px; }.admin-body.lc-release-r3 #mod-borrowers .quick-action.purple { background:#f4edff; }.admin-body.lc-release-r3 #mod-borrowers .quick-action.green { background:#ebfaec; }.admin-body.lc-release-r3 #mod-borrowers .quick-action.primary { background:#edf4ff; }.admin-body.lc-release-r3 #mod-borrowers .quick-action.primary:nth-child(2) { background:#0875fc; color:#fff; }
.admin-body.lc-release-r3 #mod-borrowers .borrower-directory-layout { grid-template-columns:minmax(0,1fr) 260px; gap:14px; }
.admin-body.lc-release-r3 .borrower-filter-strip { display:flex; gap:7px; flex-wrap:wrap; padding:10px 11px; }.admin-body.lc-release-r3 .borrower-filter-strip .search-bar { flex:1 1 200px; }.admin-body.lc-release-r3 .borrower-filter-strip select { flex:1 1 100px; max-width:145px; font-size:10px; padding:0 8px; }.admin-body.lc-release-r3 .borrower-filter-strip button { font-size:10px; }
.admin-body.lc-release-r3 #mod-borrowers .data-table { min-width: 950px; }.admin-body.lc-release-r3 #mod-borrowers .data-table th { font-size:9px; text-transform:none; padding:10px 7px; }.admin-body.lc-release-r3 #mod-borrowers .data-table td { font-size:10px; padding:9px 7px; }.admin-body.lc-release-r3 #mod-borrowers .action-btns { flex-wrap:nowrap; gap:3px; }.admin-body.lc-release-r3 #mod-borrowers .action-btn { width:25px; height:25px; font-size:10px; }
.borrower-row-more { position:relative; }.borrower-row-more summary { cursor:pointer; list-style:none; width:25px; height:25px; display:grid; place-items:center; border-radius:7px; background:#edf2f9; color:#284a78; }.borrower-row-more[open] { position:static; }.borrower-row-menu { position:absolute; right:10px; z-index:15; min-width:205px; padding:7px; border-radius:9px; border:1px solid #dbe5f2; background:#fff; box-shadow:0 9px 25px #19385f26; }.borrower-row-menu button { display:block; width:100%; text-align:left; font-size:11px; padding:8px; color:#263e5e; }.borrower-row-menu button:hover { background:#f1f6fd; }.admin-body.lc-release-r3 .borrower-table-scroll { overflow:auto; max-width:100%; min-width:0; }
.admin-body.lc-release-r3 #mod-borrowers .borrower-insights h3 { font-size:13px; }.admin-body.lc-release-r3 #mod-borrowers .borrower-insight-row { padding:10px 0; font-size:11px; }

/* Screenshot layout: repayments, with a compact proof queue to the right. */
.admin-body.lc-release-r3 #mod-repayments .module-title-band h2 { font-size:26px; font-weight:800; }
.admin-body.lc-release-r3 #mod-repayments .module-title-band h2>i { display:none; }
.admin-body.lc-release-r3 #mod-repayments .repayment-filter-panel { grid-template-columns:minmax(210px,1.4fr) repeat(4,minmax(110px,1fr)); }
.admin-body.lc-release-r3 #mod-repayments .repayment-dashboard-grid { grid-template-columns:minmax(0,1fr) 290px; gap:14px; }
.admin-body.lc-release-r3 #mod-repayments .repayment-list-card .data-table { min-width:850px !important; }.admin-body.lc-release-r3 #mod-repayments .data-table th { text-transform:uppercase; font-size:8px; }.admin-body.lc-release-r3 #mod-repayments .data-table td { font-size:10px; }.admin-body.lc-release-r3 #mod-repayments .data-table th:nth-child(10),.admin-body.lc-release-r3 #mod-repayments .data-table td:nth-child(10) { display:none; }
.repayment-proof-row { display:grid; grid-template-columns:66px minmax(0,1fr); gap:10px; padding:13px 1px; border-bottom:1px solid #e5ebf4; }.repayment-proof-row:last-child{border-bottom:0}.repayment-proof-thumb { border-radius:6px; height:100px; width:66px; overflow:hidden; background:#edf2f9; }.repayment-proof-thumb img { width:100%; height:100%; object-fit:cover; }.repayment-proof-info strong,.repayment-proof-info small { display:block; }.repayment-proof-info strong{font-size:11px;margin-bottom:3px}.repayment-proof-info small{font-size:9px;color:#6e809d;line-height:1.6;overflow-wrap:anywhere}.repayment-proof-info b{font-size:13px;display:block;margin:5px 0}.repayment-proof-info .badge{font-size:8px;padding:2px 5px}.repayment-proof-actions{display:flex;gap:5px;margin-top:8px}.repayment-proof-actions button{flex:1;font-size:9px;padding:5px 7px;border-radius:5px}.repayment-proof-actions .verify{background:#05ad71;color:#fff}.repayment-proof-actions .reject{background:#fff0f0;border:1px solid #ffdedf;color:#dc3340}
.admin-body.lc-release-r3 #mod-repayments .mini-stat { min-height:99px; }.admin-body.lc-release-r3 #mod-repayments .mini-label { font-size:10px; font-weight:650; }.admin-body.lc-release-r3 #mod-repayments .mini-val { font-size:22px; }.admin-body.lc-release-r3 #mod-repayments .repayment-quick-actions { gap:12px; padding:14px; }.admin-body.lc-release-r3 #mod-repayments .repayment-quick-actions strong { font-size:11px; }.admin-body.lc-release-r3 #mod-repayments .repayment-quick-actions small { font-size:10px; }

/* Screenshot layout: officer details and the detailed loan ledger. */
.admin-body.lc-release-r3 #modal-officer-detail .modal { max-width:1380px; width:calc(100vw - 32px); border-radius:19px; }.admin-body.lc-release-r3 #modal-officer-detail .modal-header { min-height:90px; background:linear-gradient(115deg,#073b70,#032c56 70%,#184c7a); }.admin-body.lc-release-r3 #modal-officer-detail .modal-header h3 { display:flex; align-items:center; gap:18px; font-size:25px; }.admin-body.lc-release-r3 #modal-officer-detail .modal-header h3>i { font-size:35px; }.officer-header-copy{display:grid;gap:3px}.officer-header-copy small{font-size:12px;font-weight:400;color:#d4e1f0}.admin-body.lc-release-r3 #modal-officer-detail .modal-body{background:#fbfdff;padding:20px 24px}.admin-body.lc-release-r3 #modal-officer-detail .directory-kpi{box-shadow:none;min-height:92px;border-radius:12px}.admin-body.lc-release-r3 #modal-officer-detail .header-actions .search-bar{flex:1;max-width:480px}.admin-body.lc-release-r3 #modal-officer-detail .data-table td{padding:15px 12px;font-size:12px}.officer-table-scroll{overflow:auto;width:100%}.officer-table-scroll table{min-width:760px}.officer-period{display:inline-flex;align-items:center;gap:9px;margin-bottom:18px;padding:8px 13px;border-radius:8px;background:#edf3fb;color:#203b60;font-size:12px}
.admin-body.lc-release-r3 #modal-loan-detail .modal { max-width:1480px; width:calc(100vw - 24px); }.admin-body.lc-release-r3 #modal-loan-detail .loan-detail-grid{grid-template-columns:minmax(320px,.72fr) minmax(0,1.28fr);gap:22px}.admin-body.lc-release-r3 #modal-loan-detail .detail-section{padding:17px}.admin-body.lc-release-r3 #modal-loan-detail .detail-section h4{font-size:17px;color:#c97b14}.admin-body.lc-release-r3 #modal-loan-detail .detail-row{padding:8px 0;font-size:12px;border-bottom:1px solid #dfe7f2}.admin-body.lc-release-r3 #modal-loan-detail .detail-row span:first-child{color:#4f6380}.admin-body.lc-release-r3 #modal-loan-detail .detail-row span:last-child{color:#132b4f;font-weight:650}.admin-body.lc-release-r3 #modal-loan-detail .loan-detail-tabs{background:#fff;border:1px solid #dfe7f2;border-radius:12px;padding:5px 8px;box-shadow:0 4px 10px #1a416f10}.admin-body.lc-release-r3 #modal-loan-detail .loan-detail-tabs button{font-size:12px !important;min-height:47px}.admin-body.lc-release-r3 #modal-loan-detail .penalty-ledger{min-width:720px}.admin-body.lc-release-r3 #modal-loan-detail .loan-penalty-metrics{gap:12px}.admin-body.lc-release-r3 #modal-loan-detail .loan-penalty-metrics>div{background:#fffbf5}.admin-body.lc-release-r3 #modal-loan-detail .loan-penalty-metrics strong{font-size:18px}.admin-body.lc-release-r3 #modal-loan-detail .loan-settled-banner{background:linear-gradient(100deg,#e4fae8,#f2fff4);min-height:95px}.admin-body.lc-release-r3 #modal-loan-detail .loan-freeze-card{background:#eaf4ff;border-color:#d7e8fa}

@media(min-width:701px) { .portal-body.lc-release-r3 .pnav-item span{display:block;} }
@media(max-width:1250px) {
  .admin-body.lc-release-r3 #mod-borrowers .borrower-directory-layout { grid-template-columns:minmax(0,1fr) 225px; }
  .admin-body.lc-release-r3 #mod-repayments .repayment-dashboard-grid{grid-template-columns:minmax(0,1fr) 260px;grid-template-areas:'list proofs';}
  .admin-body.lc-release-r3 #mod-repayments .repayment-filter-panel{grid-template-columns:repeat(3,minmax(0,1fr));}
  .portal-body.lc-release-r3 .portal-loan-filters{grid-template-columns:minmax(200px,1.5fr) repeat(2,minmax(135px,1fr));}
  .admin-body.lc-release-r3 #mod-borrowers .profile-completeness-card{grid-template-columns:1fr 100px 1fr;}.admin-body.lc-release-r3 #mod-borrowers .profile-breakdown{grid-column:auto}.admin-body.lc-release-r3 #mod-borrowers .profile-completeness-card>button{grid-column:1/-1;justify-self:end;}
}
@media(max-width:980px) {
  .admin-body.lc-release-r3 #mod-borrowers .borrower-directory-layout{grid-template-columns:1fr}.admin-body.lc-release-r3 #mod-borrowers .borrower-insights{grid-template-columns:1fr 1fr}.admin-body.lc-release-r3 #mod-repayments .repayment-dashboard-grid{grid-template-columns:1fr;grid-template-areas:'list' 'proofs';}.admin-body.lc-release-r3 #modal-loan-detail .loan-detail-grid{grid-template-columns:1fr}.portal-body.lc-release-r3 .portal-main{padding:22px 20px 60px}
}
@media(max-width:700px) {
  html.portal-document{scroll-padding-top:68px}
  .portal-body.lc-release-r3 .portal-header{height:60px;padding:0 10px;gap:8px}
  .portal-body.lc-release-r3 .portal-header-right{gap:5px}.portal-body.lc-release-r3 .portal-brand{font-size:13px}.portal-body.lc-release-r3 #portal-username{max-width:66px;overflow:hidden;text-overflow:ellipsis}.portal-body.lc-release-r3 .portal-user-pill{padding-right:7px}
  .portal-body.lc-release-r3 .portal-hamburger{display:flex;padding:5px}
  .portal-body.lc-release-r3 .portal-nav{position:fixed;top:0;left:0;bottom:0;width:min(285px,85vw);height:100dvh;padding:10px 12px 35px;flex-direction:column;align-items:stretch;overflow-y:auto;overflow-x:hidden;justify-content:flex-start;z-index:150;transform:translateX(-110%);}
  .portal-body.lc-release-r3 .portal-nav.mobile-open{transform:translateX(0)}
  .portal-body.lc-release-r3 .portal-nav .pnav-item{width:100%;min-height:44px;flex-shrink:0}.portal-body.lc-release-r3 .portal-nav-header{min-height:55px;flex-shrink:0}.portal-body.lc-release-r3 .portal-nav-header .portal-brand,.portal-body.lc-release-r3 .portal-nav-header .portal-brand-sub{color:#fff}.portal-body.lc-release-r3 .portal-nav-close{color:#fff}.portal-body.lc-release-r3 .pnav-section-label{min-height:27px;flex-shrink:0}.portal-body.lc-release-r3 .portal-main{padding:19px 12px calc(40px + env(safe-area-inset-bottom));}
  .portal-body.lc-release-r3 .section-hero h2{font-size:24px}.portal-body.lc-release-r3 .section-hero .btn-primary{min-height:39px;padding:9px 12px;font-size:11px}
  .portal-body.lc-release-r3 .portal-loan-kpis{grid-template-columns:1fr 1fr;gap:9px}.portal-body.lc-release-r3 .portal-loan-kpi{min-height:88px;padding:12px;gap:9px}.portal-body.lc-release-r3 .portal-loan-kpi>i{width:33px;height:38px;font-size:17px}.portal-body.lc-release-r3 .portal-loan-kpi strong{font-size:16px}.portal-body.lc-release-r3 .portal-loan-kpi span{font-size:10px}.portal-body.lc-release-r3 .portal-loan-kpi small{font-size:9px}
  .portal-body.lc-release-r3 .portal-loan-filters{grid-template-columns:1fr 1fr}.portal-body.lc-release-r3 .portal-filter-search{grid-column:1/-1}.portal-body.lc-release-r3 .portal-next-loan-payment{padding:13px;gap:10px}.portal-body.lc-release-r3 .portal-next-loan-payment strong{font-size:12px}
  .portal-body.lc-release-r3 .modal-overlay{padding:8px;height:100dvh}.portal-body.lc-release-r3 .modal-overlay>.modal,.portal-body.lc-release-r3 .modal-overlay>.modal-box{max-height:calc(100dvh - 16px) !important;width:100% !important;max-width:100% !important;margin:0 !important;}
  .portal-body.lc-release-r3 .modal-overlay .modal-body{padding:15px !important}.portal-body.lc-release-r3 .modal-overlay .modal-footer{padding:11px 13px calc(11px + env(safe-area-inset-bottom))}.portal-body.lc-release-r3 .modal-header h3{font-size:16px !important}.portal-detail-hero{align-items:flex-start;flex-direction:column}.portal-detail-kpis{grid-template-columns:1fr 1fr}.portal-detail-overview{grid-template-columns:1fr}.portal-detail-tabs{gap:0}.portal-detail-tabs button{padding:10px;font-size:10px}.portal-detail-hero h3{font-size:17px}
  .portal-body.lc-release-r3 .portal-table-wrap>table{display:table;min-width:660px;width:max-content;max-width:none}.portal-body.lc-release-r3 .schedule-table th,.portal-body.lc-release-r3 .schedule-table td{display:table-cell !important}
  .admin-body.lc-release-r3 #mod-borrowers .profile-completeness-card{grid-template-columns:1fr 100px;gap:12px;padding:18px}.admin-body.lc-release-r3 #mod-borrowers .profile-copy{text-align:left}.admin-body.lc-release-r3 #mod-borrowers .profile-breakdown{grid-column:1/-1}.admin-body.lc-release-r3 #mod-borrowers .profile-completeness-card>button{justify-self:stretch}.admin-body.lc-release-r3 #mod-borrowers .borrower-quick-actions{display:grid;grid-template-columns:1fr 1fr}.admin-body.lc-release-r3 #mod-borrowers .borrower-insights{grid-template-columns:1fr}.admin-body.lc-release-r3 #mod-repayments .repayment-filter-panel{grid-template-columns:1fr 1fr}.admin-body.lc-release-r3 #mod-repayments .repayment-filter-panel>label:first-child{grid-column:1/-1}.admin-body.lc-release-r3 .repayment-date-pair{grid-template-columns:1fr 1fr}.admin-body.lc-release-r3 #modal-officer-detail .modal-header h3{font-size:17px}.admin-body.lc-release-r3 #modal-officer-detail .modal-header h3>i{font-size:26px}.admin-body.lc-release-r3 #modal-officer-detail .modal-body{padding:14px}.admin-body.lc-release-r3 #modal-officer-detail .directory-kpi{padding:12px;gap:8px}.admin-body.lc-release-r3 #modal-officer-detail .directory-kpi strong{font-size:18px}
  .portal-body.lc-release-r3 #whatsapp-float-btn{bottom:24px !important;right:12px !important;z-index:90 !important}.portal-body.lc-release-r3 #whatsapp-float-btn>div{width:44px !important;height:44px !important;}
}
@media(prefers-reduced-motion:reduce){.lc-release-r3 *{scroll-behavior:auto !important;animation:none !important;transition:none !important}}
.borrower-row-more[open] .borrower-row-menu { position:static; box-shadow:none; }
.portal-body.lc-release-r3 #modal-doc-viewer { overscroll-behavior:contain; }
.portal-filter-field { position:relative; display:block; margin:0; min-width:0; }
.portal-filter-field > span { position:absolute; top:-6px; left:10px; z-index:1; padding:0 4px; font-size:9px; font-weight:600; line-height:12px; background:#fff; color:#617590; }
.admin-body.lc-release-r3 #mod-borrowers .module-title-band .search-bar input { width:100%; flex:1; min-width:0; border:0; background:transparent; box-shadow:none; }
.admin-body.lc-release-r3 #mod-repayments .module-title-band .search-bar input,
.admin-body.lc-release-r3 #modal-officer-detail .search-bar input { width:100%; flex:1; min-width:0; border:0; background:transparent; box-shadow:none; }
.admin-body.lc-release-r3 #mod-repayments .data-table td,
.admin-body.lc-release-r3 #mod-repayments .data-table th { white-space:nowrap; }
@media(max-width:480px){.portal-body.lc-release-r3 #portal-username{display:none}.portal-body.lc-release-r3 .portal-header-left{min-width:0;gap:7px}.portal-body.lc-release-r3 .portal-header-left>div:last-child{min-width:0}.portal-body.lc-release-r3 .portal-brand{font-size:12px}.portal-body.lc-release-r3 .portal-header-right{gap:3px}.portal-body.lc-release-r3 .portal-user-pill{padding-right:5px;gap:3px}.portal-body.lc-release-r3 .portal-header .icon-btn{width:30px;height:30px}}
