/* Responsive layout: intrinsic widths, safe touch targets and financial tables. */
html{scrollbar-gutter:stable}
.login-page-body{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;padding:clamp(16px,2.5vh,28px) clamp(16px,3vw,48px) 0}
.login-page-body .login-layout{width:100%;max-width:1440px;flex:1;min-height:0;margin:0 auto;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}
.login-layout>*{min-width:0}.login-story{min-height:0;height:auto}.story-inner{padding:clamp(28px,4.5vh,66px) clamp(28px,4vw,66px) clamp(24px,3vh,38px)}
.login-story h1{font-size:clamp(36px,min(4vw,7vh),67px);letter-spacing:-.045em}.story-art{min-height:130px}.art-card{max-width:calc(100% - 10px)}
.login-form-panel{padding:clamp(28px,4vh,48px) clamp(24px,3vw,48px)}.form-wrap{max-width:380px}.form-wrap h2{font-size:clamp(28px,2.5vw,36px)}
.login-footer{width:100%;max-width:1440px;flex:none;gap:20px;padding:18px 4px;flex-wrap:wrap}.privacy-note p,.help-details{font-size:11px}
.app-wrapper,.portal-main,.portal-header,.surface,.overview-grid>*,.summary-grid>*,.saving-list>*{min-width:0}
.summary-grid{grid-template-columns:minmax(0,1.15fr) repeat(2,minmax(0,1fr))}.overview-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
.portal-main{width:calc(100% - 240px);max-width:none}.header-member{min-width:0}.header-member>div{min-width:0}.header-member strong{overflow-wrap:anywhere}
.big-amount{font-size:clamp(25px,2.3vw,36px)}.card-bottom{flex-wrap:wrap}.activity-row{min-width:0}.activity-description strong{overflow-wrap:anywhere}.activity-amount{flex:none}
.table-scroll{max-width:100%;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}.table-scroll:focus-visible{outline:2px solid #b49b5b;outline-offset:3px}
.table-toolbar{flex-wrap:wrap}.search-box{min-width:180px}.portal-sidebar{overflow-y:auto;overscroll-behavior:contain;height:100vh;height:100dvh}.portal-sidebar nav{flex-shrink:0}.sidebar-bottom{flex-shrink:0}
.data-strip{flex-wrap:wrap}.data-strip form{flex-wrap:wrap}.surface-heading{flex-wrap:wrap}.menu-scrim{display:none}
@media screen and (min-width:1024px){.portal-sidebar{transform:none!important}.portal-header,.portal-main{margin-left:240px}.mobile-menu{display:none}}
@media screen and (max-width:1023px){
 .portal-sidebar{transform:translateX(-100%);width:min(280px,85vw);transition:transform .2s ease}.menu-open .portal-sidebar{transform:translateX(0)}
 .portal-header,.portal-main{margin-left:0;width:100%}.portal-header{padding:0 24px;height:70px}.portal-main{padding:28px 24px 0}
 .mobile-menu{display:grid;place-items:center;flex:none;width:44px;height:44px;margin-right:12px;border:0;background:none;font-size:23px;color:#3c5e43}
 .header-breadcrumb{margin-right:auto}.menu-open{overflow:hidden}.menu-open .menu-scrim{display:block;position:fixed;inset:0;z-index:1030;border:0;background:#08262c88;backdrop-filter:blur(2px)}
 .portal-nav a{min-height:48px}.logout-button{min-height:48px}.sidebar-message{padding-top:20px}.sidebar-brand{height:86px}.sidebar-label{margin-top:12px}
 .summary-grid{gap:14px}.balance-card{padding:22px 18px}.big-amount{font-size:clamp(23px,3.5vw,32px)}
 .overview-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.heading-actions{flex-direction:row;flex-wrap:wrap}.page-heading{flex-wrap:wrap}
}
@media screen and (min-width:761px) and (max-height:760px){
 .login-page-body{padding-top:16px}.welcome-mark{display:none}.form-intro{margin-bottom:20px}.access-form label{margin-top:17px}.access-submit{margin-top:22px}
 .help-details{margin-top:18px}.privacy-note{padding-top:14px}.story-inner{padding-top:32px;padding-bottom:26px}.story-footer{margin-top:20px;padding-top:18px}.story-art{min-height:100px}.art-card{top:26px}
 .login-footer{padding-top:14px;padding-bottom:14px}.login-story h1{margin-bottom:20px}.form-wrap h2{font-size:30px}
}
@media screen and (max-width:760px){
 .login-page-body{padding:12px 12px 0}.login-page-body .login-layout{display:flex;flex-direction:column;flex:none;min-height:0;border-radius:10px}
 .login-story{height:auto;min-height:0}.story-inner{padding:26px clamp(22px,6vw,40px)}.login-story .eyebrow{font-size:9px;margin:0}
 .login-story h1{font-size:clamp(28px,6vw,39px);line-height:1.16;margin:14px 0;letter-spacing:-1.2px}.login-story h1 em{font-size:inherit;letter-spacing:-1px}
 .login-story h1 br{display:none}.story-description{font-size:12px;margin:0;max-width:430px}.story-description br{display:none}.story-art,.story-footer,.story-number{display:none}
 .login-form-panel{padding:30px clamp(22px,6vw,40px)}.form-wrap{max-width:440px}.welcome-mark{display:none}.form-wrap h2{font-size:clamp(27px,6vw,34px);letter-spacing:-1px}.form-wrap h2 br{display:none}
 .form-wrap .eyebrow{font-size:9px}.form-intro{font-size:13px;margin-bottom:24px}.access-form label{font-size:12px}.input-shell input{font-size:16px}.input-shell{min-height:54px}
 .password-toggle{min-width:44px;min-height:44px;margin-right:-10px}.access-submit{min-height:52px;font-size:13px}.help-details summary{min-height:44px;align-items:center;padding-bottom:0}.help-details p{font-size:12px}
 .privacy-note p{font-size:11px}.login-footer{padding:18px 10px;font-size:10px;line-height:1.7}.login-footer>span{display:block}.login-footer>span:last-child{display:none}
 .portal-main{padding:24px 16px 0}.portal-header{padding:0 12px}.header-breadcrumb{font-size:10px}.header-breadcrumb span{padding:0 7px}.header-member{gap:7px}.header-member strong{max-width:130px;font-size:11px}.header-member small{font-size:9px}
 .page-heading{display:block}.page-heading h1{font-size:clamp(25px,5vw,30px);max-width:none;overflow-wrap:anywhere}.page-heading p:not(.eyebrow){font-size:12px}
 .heading-actions{display:flex;flex-direction:row;gap:8px;margin-top:18px}.heading-actions .primary-button,.heading-actions .secondary-button{min-height:44px;white-space:normal;font-size:11px;padding:10px 13px}
 .data-strip{font-size:11px;gap:12px;padding:14px}.data-strip>span{align-items:flex-start;line-height:1.6}.data-strip form{width:100%;gap:8px}.data-strip label{font-size:10px}.data-strip input{font-size:16px;min-height:44px;min-width:0;max-width:160px}.data-strip button{min-height:44px;font-size:11px;margin-left:auto}
 .summary-grid{grid-template-columns:minmax(0,1fr);gap:14px}.balance-card,.balance-card:not(.featured){display:block;padding:22px}.balance-card:not(.featured) .balance-label{display:flex;font-size:12px}.balance-card:not(.featured) .balance-label span{display:block}
 .big-amount,.balance-card:not(.featured) .big-amount{font-size:clamp(29px,8vw,36px);text-align:left;margin:22px 0;white-space:normal;overflow-wrap:anywhere}.card-bottom{font-size:10px}.card-bottom strong{font-size:12px}
 .overview-grid{display:block}.overview-aside{display:block}.surface{padding:20px 16px}.surface-heading h2,.pending-preview h2{font-size:19px}.text-link{font-size:11px;min-height:44px;display:inline-flex;align-items:center}
 .activity-row{gap:10px}.activity-description strong,.activity-amount strong{font-size:12px}.activity-description small,.activity-amount small{font-size:10px}.activity-icon{width:32px;height:32px}.activity-amount{max-width:42%}
 .saving-list{grid-template-columns:minmax(0,1fr)}.saving-list>div{flex-wrap:wrap;font-size:12px}.pending-preview>p:not(.eyebrow),.member-note p{font-size:12px}.pending-preview .secondary-button{min-height:46px;font-size:12px}
 .table-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.search-box{grid-column:1/-1;min-width:0;min-height:48px}.search-box input{font-size:16px;min-width:0}.table-toolbar select{width:100%;min-width:0;max-width:none;height:46px;font-size:13px;padding:0 8px}
 .table-caption{font-size:12px}.table-footer{font-size:11px;gap:12px;flex-wrap:wrap}.table-footer button{min-height:44px}.loan-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}.loan-facts strong{font-size:clamp(17px,4vw,21px);overflow-wrap:anywhere}.loan-facts small{font-size:11px}.schedule summary{font-size:12px;min-height:44px;align-items:center}
 .portal-footer{font-size:10px;display:block}.portal-footer span{display:block;overflow-wrap:anywhere}.error-card{width:100%;padding:28px 22px}.error-card h1{font-size:29px}.error-card .primary-button{min-height:44px}
 /* Each financial row remains complete and readable without sideways scrolling. */
 .table-scroll:has(.stack-table){overflow:visible}.schedule .table-scroll:has(.stack-table){max-height:none}
 .stack-table,.stack-table tbody{display:block;width:100%;white-space:normal}
 .stack-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .stack-table tbody tr{display:block;border:1px solid #e0e7da;border-radius:8px;margin:0 0 14px;overflow:hidden;background:#fff}
 .stack-table tbody td,.stack-table tbody td:first-child{display:block;position:relative;min-height:44px;padding:12px 12px 12px 45%;font-size:12px;text-align:left;border-bottom:1px solid #eff2e9;white-space:normal;overflow-wrap:anywhere}
 .stack-table tbody td:last-child{border-bottom:0}.stack-table tbody td::before{content:attr(data-label);position:absolute;left:12px;top:12px;width:37%;color:#697c61;font-size:11px;font-weight:500;line-height:1.5;text-align:left}
 .stack-table tbody td strong{font-size:12px;line-height:1.5}.stack-table tbody td small{font-size:11px;line-height:1.5}.stack-table .numeric{font-variant-numeric:tabular-nums;text-align:right}
 .stack-table tfoot{display:block;border-radius:8px}.stack-table tfoot tr{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px;flex-wrap:wrap}.stack-table tfoot th,.stack-table tfoot td{padding:0;border:0;background:none;font-size:12px}
}
@media screen and (max-width:359px){.header-breadcrumb{display:none}.header-member{margin-left:auto}.activity-icon{display:none}.loan-facts{grid-template-columns:minmax(0,1fr)}.heading-actions>*{flex:1}.data-strip form{justify-content:flex-start}.data-strip label{flex-basis:100%}.table-toolbar{grid-template-columns:minmax(0,1fr)}.stack-table tbody td,.stack-table tbody td:first-child{padding-left:43%}.stack-table tbody td::before{width:34%}}
@media screen and (max-height:480px) and (min-width:761px){.sidebar-message{display:none}.sidebar-brand{height:65px}.sidebar-label{margin-bottom:8px}.portal-nav a{padding-top:10px;padding-bottom:10px;min-height:44px}.sidebar-bottom{padding:8px 4px 12px}}
@media(prefers-reduced-motion:reduce){.portal-sidebar{transition:none}}

.portal-sidebar .sidebar-brand{display:flex;flex-direction:column;align-items:center;gap:7px;background:#fffef9;margin:24px 18px 26px;padding:16px 12px 12px;border-radius:10px;width:auto;height:auto;min-height:0;color:#245d48}.sidebar-brand .official-logo{display:block;width:100%;max-width:220px;height:auto;object-fit:contain}.sidebar-brand>small{font-size:10px;letter-spacing:1.3px;color:#567064}

/* Periodo de la planilla legible en escritorio y movil. */
.pending-preview > p.pending-period{font-size:14px;line-height:1.6;color:#4b6553;overflow-wrap:anywhere}
.pending-preview > p.pending-period strong{font-weight:600}
.pending-preview > p.pending-period small{font-size:12px}

/* Logo dentro del panel grafico; el acceso conserva la altura del viewport. */
.login-page-body{height:100vh;height:100svh;min-height:0}
.login-page-body .login-layout{flex:1;min-height:0}
.login-story .story-inner{padding-top:clamp(20px,3vh,40px)}
.story-brand-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;margin-bottom:12px}
.story-brand-row .eyebrow{margin:0;max-width:190px}
.story-brand-mark{flex:none;width:clamp(150px,15vw,220px);max-width:55%;padding:8px 10px;background:#fffef9;border-radius:9px}
.login-brand-logo{display:block;width:100%;height:auto;object-fit:contain}
.login-story h1{font-size:clamp(32px,min(4vw,6.4vh),64px)}
.story-art{min-height:0}
.login-form-panel{min-height:0;overflow-y:auto;align-items:safe center}
@media screen and (min-width:761px) and (max-height:760px){
 .story-inner{padding-right:28px;padding-left:28px;padding-bottom:20px}
 .story-brand-row{gap:12px;margin-bottom:6px}.story-brand-row .eyebrow{font-size:8px;letter-spacing:1.4px}
 .story-brand-mark{width:170px;padding:6px 8px}
 .login-story h1{margin:12px 0 18px}.story-description{font-size:12px;margin-bottom:12px}
 .story-art{min-height:60px}.art-card{top:12px;padding:14px 18px}
 .story-footer{margin-top:14px;padding-top:14px;gap:16px}.anniversary{font-size:38px}.story-footer p{font-size:10px}
}
@media screen and (max-width:760px){
 .login-page-body{padding:10px 10px 0}
 .login-page-body .login-layout{flex:1}
 .login-story{flex:none}.login-story .story-inner{padding:18px 22px}
 .story-brand-row{margin-bottom:8px;gap:12px}.story-brand-row .eyebrow{max-width:130px;font-size:8px;letter-spacing:1.1px}
 .story-brand-mark{width:160px;padding:6px 8px}
 .login-story h1{font-size:clamp(24px,5.8vw,34px);margin:10px 0 8px;line-height:1.14}
 .story-description{font-size:11px;line-height:1.5}
 .login-form-panel{flex:1;padding:22px;align-items:safe center}
 .form-wrap h2{font-size:27px;margin-bottom:10px}.form-intro{margin-bottom:18px}
 .access-form label{margin-top:16px}.access-submit{margin-top:20px}
 .help-details{margin-top:16px}.privacy-note{padding-top:14px}
 .login-footer{padding:12px 4px;font-size:9px}
}
@media screen and (max-width:760px) and (max-height:700px){
 .login-story .story-inner{padding:12px 18px}.story-brand-row{margin-bottom:0}
 .story-brand-mark{width:135px}.login-story h1,.login-story .story-description{display:none}
 .login-form-panel{padding:16px 20px}.form-wrap h2{font-size:25px;line-height:1.15}
 .form-wrap .eyebrow{margin-bottom:8px}.form-intro{display:none}
 .access-form label{margin:12px 0 7px;font-size:11px}.input-shell{height:46px;min-height:46px}
 .access-submit{height:46px;min-height:46px;margin-top:16px}
 .help-details{margin-top:10px}.help-details summary{min-height:40px}
 .privacy-note{padding-top:10px;margin-top:8px}.privacy-note p{font-size:10px;line-height:1.5}
 .login-footer{padding:9px 4px;font-size:8px}
}
@media screen and (min-width:761px) and (max-height:520px){
 .story-art,.story-footer,.story-description{display:none}.login-story h1{font-size:clamp(28px,7vh,38px)}
 .story-brand-mark{width:140px}.story-brand-row .eyebrow{font-size:7px}
 .login-form-panel{padding:14px 20px}.form-wrap .eyebrow{font-size:8px;margin-bottom:6px}
 .form-wrap h2{font-size:23px;line-height:1.15;margin-bottom:14px}.form-intro{display:none}
 .access-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px}
 .access-form label{font-size:10px;margin:0}.access-form label[for=account]{grid-column:1;grid-row:1}.access-form label[for=password]{grid-column:2;grid-row:1}
 .access-form>.input-shell{grid-row:2;height:44px;min-height:44px;padding:0 9px;gap:7px}
 .access-form>.input-shell:nth-of-type(1){grid-column:1}.access-form>.input-shell:nth-of-type(2){grid-column:2}
 .input-shell>svg{width:16px;flex:none}.input-shell input{font-size:16px}.password-toggle{padding:2px}
 .access-submit{grid-column:1/-1;height:44px;margin-top:4px}
 .help-details{margin-top:8px}.help-details summary{padding-bottom:6px;min-height:30px;font-size:10px}
 .privacy-note{padding-top:8px;margin-top:4px}.privacy-note p{font-size:9px;line-height:1.4}
}
