/* V083-UI: consistent institutional navigation and title bar across screens. */
#shell[hidden]{display:none!important}
.portal-subpage-shell{min-width:0;min-height:100vh;grid-template-columns:265px minmax(0,1fr)}
.portal-subpage-shell[hidden],.portal-subpage-shell [hidden]{display:none!important}
.portal-subpage-shell .sidebar{height:100vh;min-height:100vh;position:sticky;top:0;right:0;overflow-y:auto}
.portal-subpage-shell .sidebar .brand{min-height:80px}
.portal-subpage-shell .sidebar .brand img{max-width:145px;max-height:70px;object-fit:contain}
.portal-subpage-shell .sidebar .department-group>.nav-items>a,.portal-subpage-shell .sidebar .nav-group>.nav-items>a{display:block;padding:9px 12px;color:#edf5f0;border-radius:7px;text-decoration:none}
.portal-subpage-shell .sidebar .nav-items>a:hover,.portal-subpage-shell .sidebar .nav-items>a.on{background:#1b6458;color:#fff;border-inline-start:3px solid var(--portal-gold)}
.portal-subpage-shell>.content{min-width:0;overflow:visible}
.portal-subpage-header{min-height:80px;background:var(--portal-surface,#fff);position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 22px;border-bottom:1px solid var(--portal-border)}
.portal-subpage-title{font-size:clamp(16px,1.75vw,24px);margin:0;color:var(--portal-primary);max-width:100%}
.portal-subpage-header .header-actions{gap:8px;display:flex;align-items:center;flex-wrap:wrap}
.portal-home-button,.portal-back-button{background:color-mix(in srgb,var(--portal-primary) 8%,white);color:var(--portal-primary);border:1px solid var(--portal-border);display:inline-flex;justify-content:center;align-items:center;padding:8px 12px;border-radius:8px;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}
.portal-home-button:hover,.portal-back-button:hover{border-color:var(--portal-gold);background:color-mix(in srgb,var(--portal-gold) 12%,white)}
.portal-subpage-identity{font-size:12px;color:var(--portal-primary);max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-subpage-body{width:100%;min-width:0;max-width:100%;padding:0 8px 18px}
.portal-subpage-body>main,.portal-subpage-body>.finance-layout,.portal-subpage-body>section,.portal-subpage-body>.tw{max-width:100%;min-width:0}
.portal-subpage-body :is(table,.portal-table-scroll){max-width:100%}
html[data-auth-state="pending"] .institution-masthead{visibility:hidden}
html[data-theme="dark"] .portal-subpage-header{background:#192D27!important;border-color:#415a50}
html[data-theme="dark"] .portal-subpage-title,html[data-theme="dark"] .portal-subpage-identity{color:#E9F2EE}
html[data-theme="dark"] .portal-home-button,html[data-theme="dark"] .portal-back-button{background:#21372F;color:#E9F2EE;border-color:#415a50}
@media(max-width:1024px){.portal-subpage-shell{grid-template-columns:minmax(184px,24vw) minmax(0,1fr)}}
@media(max-width:920px){.portal-subpage-shell:not([hidden]){display:block!important}.portal-subpage-shell .sidebar{position:fixed!important;top:0;right:0;height:100dvh;max-height:100dvh;transform:translateX(105%);z-index:100;min-width:0;width:min(86vw,340px)}html.nav-open .portal-subpage-shell .sidebar{transform:translateX(0)}.portal-subpage-header{padding:64px 13px 12px;position:relative}.portal-subpage-identity{max-width:180px}.portal-subpage-body{padding:0 3px 12px}}
@media(max-width:768px){.portal-subpage-header .header-actions{overflow-x:auto;max-width:100%;white-space:nowrap;flex-wrap:wrap}.portal-subpage-body>main{padding:12px}}
@media print{.portal-subpage-shell{display:block!important}.portal-subpage-shell .sidebar,.portal-subpage-header,.portal-subpage-identity,.portal-home-button,.portal-back-button{display:none!important}.portal-subpage-body{padding:0!important}.portal-subpage-shell>.content{display:block!important}.portal-subpage-shell[hidden]{display:none!important}}
