/* One calm navigation row and a predictable starting point for every screen. */
:root{--se-page-header-height:64px;--se-page-start-space:32px;--se-navigation-height:54px}
.se-page-navigation{position:relative;z-index:18;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:var(--se-navigation-height);padding:8px clamp(18px,3vw,40px);border-bottom:1px solid #e0e7f1;background:#fff;color:#536b8d}
.se-navigation-controls,.se-page-navigation-controls{display:flex;align-items:center;gap:7px;flex-shrink:0}
.se-page-navigation button,.se-page-navigation a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid #dce5f1;border-radius:8px;background:#fff;color:#36577f;font:inherit;font-size:13px;font-weight:550;line-height:1.4;text-decoration:none;white-space:nowrap;cursor:pointer}
.se-page-navigation button:hover:not(:disabled),.se-page-navigation a:hover{background:#f2f6fc;border-color:#becfe7;text-decoration:none}
.se-page-navigation button:disabled{color:#a6b1c0;background:#fafbfd;border-color:#e9edf4;cursor:default}
.se-page-navigation button:focus-visible,.se-page-navigation a:focus-visible{outline:3px solid #9bb5e8;outline-offset:3px}
.se-page-navigation svg{height:16px;width:16px;flex-shrink:0;stroke-width:1.8}
.se-navigation-location,.se-page-navigation-location{font-size:13px;line-height:1.5;font-weight:500;color:#70829d;text-align:right;overflow-wrap:anywhere}
.se-navigation-location[aria-live],.se-page-navigation-location[aria-live]{min-height:1.5em}
.se-page-navigation[hidden]{display:none!important}

/* A page change must not animate the first line downwards. */
body[data-portal-view] .page,body[data-portal-view] .entry-main{animation:none}
body[data-portal-view] .simple-shell .topbar,body[data-portal-view] .e-topbar{height:var(--se-page-header-height);min-height:var(--se-page-header-height)}
body[data-portal-view] .entry-header,body[data-portal-view] .aip-header,body[data-portal-view] .fi-header,body[data-portal-view] .f-header,body[data-portal-view] .rp-header{min-height:var(--se-page-header-height);padding-block:12px;box-sizing:border-box}
body[data-portal-view] .entry-header .brand{margin-bottom:0}
body[data-portal-view] .simple-shell .page,body[data-portal-view] .e-page,body[data-portal-view] .entry-main{padding-top:var(--se-page-start-space)}
body[data-portal-view] .fi-intro,body[data-portal-view] .f-intro,body[data-portal-view] .rp-intro{padding-top:var(--se-page-start-space)}
body[data-portal-view] .simple-start,body[data-portal-view] .e-start-panel{padding-top:0;padding-inline:0;background:none;border:0;border-radius:0}
body[data-portal-view] .simple-start h1,body[data-portal-view] .e-start-panel h1{margin-top:0}
body[data-portal-view] .simple-shell .case-heading h1{margin-top:0}
body[data-portal-view] .simple-shell .case-heading .eyebrow{margin-bottom:12px}
body[data-portal-view] .creditor-entry-back{display:none}
body[data-portal-view] .aip-progress{margin-bottom:6px}
body[data-portal-view] .breadcrumbs{min-height:16px;margin-bottom:12px}
body[data-portal-view] .simple-shell .page>.breadcrumbs{margin-top:-4px}

/* Keep the sidebar in the same grid as its content; the navigation row stays
   above both columns instead of being covered by a fixed sidebar. */
@media(min-width:761px){
  body[data-portal-view] .sidebar{position:sticky;inset:auto;top:var(--demo-session-bar-height,0px);align-self:start;height:calc(100dvh - var(--demo-session-bar-height,0px));max-height:calc(100dvh - var(--demo-session-bar-height,0px));overflow-y:auto}
}

/* Offer steps have different content heights. Anchor the dialog at the top
   instead of letting the browser recenter it after every Back/Continue. */
#modal[data-offer-intake-active]{position:fixed;inset:clamp(16px,5vh,48px) 0 auto;margin:0 auto;max-height:calc(100dvh - clamp(32px,10vh,96px));overflow-y:auto;overscroll-behavior:contain;scroll-behavior:auto}
#modal[data-offer-intake-active] .modal-header{padding-top:26px;padding-bottom:20px;align-items:flex-start}
#modal[data-offer-intake-active] .modal-header h2{margin:0;line-height:1.25}
#modal[data-offer-intake-active] .offer-intake-progress{margin-block:0 20px}

/* Saved workflows share the same header and first-line spacing. */
.cp-header,.esign-header{min-height:var(--se-page-header-height);padding-top:12px;padding-bottom:12px}
.cp-main,.esign-main{padding-top:calc(var(--se-page-start-space) + 48px)}
.cp-main>.cp-back{display:none}
.fc-main,.fc-main.fc-main-thread{padding-top:64px}
.cp-page-heading h1:focus,.esign-main h1:focus,body[data-portal-view] main h1:focus{outline:none}

@media(max-width:760px){
  :root{--se-page-start-space:24px;--se-page-header-height:60px}
  .se-page-navigation{gap:8px;padding:8px 16px;flex-wrap:wrap}
  .se-navigation-controls,.se-page-navigation-controls{gap:5px}
  .se-page-navigation button,.se-page-navigation a{min-height:40px;padding:8px 10px;font-size:12px}
  .se-navigation-location,.se-page-navigation-location{font-size:11px}
  body[data-portal-view] .simple-shell .sidebar,body[data-portal-view] .e-sidebar{position:relative;top:auto}
  body[data-portal-view] .simple-shell .topbar,body[data-portal-view] .e-topbar{min-height:52px;height:auto;padding-block:10px}
  body[data-portal-view] .simple-start,body[data-portal-view] .e-start-panel{padding-top:0;padding-inline:0}
  .fc-main,.fc-main.fc-main-thread{padding-top:40px}
  #modal[data-offer-intake-active]{inset:16px 0 auto;max-height:calc(100dvh - 32px)}
  #modal[data-offer-intake-active] .modal-header{padding:23px 20px 18px}
}
@media(max-width:430px){
  .se-page-navigation{padding-inline:12px}
  .se-navigation-location,.se-page-navigation-location{flex-basis:100%;text-align:left;padding-left:2px}
}
@media print{.se-page-navigation{display:none!important}}
