/* Shared section menus: styles stay inside the header and do not affect data tables. */
html body .fi-section-nav{display:flex;align-items:center;gap:6px;position:relative;z-index:40;max-width:1400px;margin:0 auto;padding:0 24px 14px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;isolation:isolate;overflow:visible}
html body .fi-section-group{position:relative;flex:0 1 auto;min-width:0;transition:opacity .2s ease}
html body .fi-section-nav.has-open>.fi-section-group:not(.is-open){opacity:.55}
html body .fi-section-trigger{display:flex;align-items:center;justify-content:center;gap:9px;width:auto;min-height:40px;padding:9px 14px;margin:0;border:0;border-radius:10px;background:transparent;box-shadow:none;color:#fff;font:600 14px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap;text-transform:none}
html body .fi-section-trigger:hover,html body .fi-section-group.is-open>.fi-section-trigger{background:#ffffff20}
html body .fi-section-trigger svg{flex:none;transition:transform .2s}
html body .fi-section-group.is-open>.fi-section-trigger svg{transform:rotate(180deg)}
html body .fi-section-dropdown{position:absolute;left:0;top:100%;z-index:50;min-width:245px;max-width:min(340px,calc(100vw - 32px));max-height:min(65vh,620px);overflow-y:auto;overscroll-behavior:contain;padding:7px;background:#fff;border:1px solid #e7eef3;border-radius:14px;box-shadow:0 12px 35px #0e344e25;animation:fi-section-enter .16s ease-out}
html body .fi-section-dropdown[hidden]{display:none!important}
html body .fi-section-dropdown>a{display:block;padding:10px 12px;margin:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:#0E344E!important;font:500 14px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;text-decoration:none!important;white-space:normal;text-align:left;transition:color .16s,background-color .16s}
html body .fi-section-dropdown.has-active>a:not(.is-active){color:#A5B6C2!important}
html body .fi-section-dropdown>a.is-active{color:#0E344E!important;background:#f2f7fa}
html body .fi-section-trigger:focus-visible,html body .fi-section-dropdown>a:focus-visible{outline:2px solid #76ceff;outline-offset:2px}
@keyframes fi-section-enter{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
/* The utility menu remains available through the hamburger; sections stay visible. */
html body .fi-shell-header>.fi-shell-navigation{display:none}
html body .fi-shell-header.is-menu-open>.fi-shell-navigation{display:flex}
html body .fi-shell-menu-button{display:flex;align-items:center;justify-content:center;padding:0}
html body .fi-shell-header .fi-shell-top{box-sizing:border-box;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
html body .fi-shell-header .fi-shell-account button{width:auto;margin:0;line-height:1.3}
html body .fi-shell-header .fi-shell-profile{margin:0;line-height:1.3}
html body .fi-shell-header .fi-shell-logo{margin-right:auto}
html body .fi-shell-header .fi-shell-logo img{width:160px;height:auto;aspect-ratio:425/120;object-fit:contain}
#feis-home .home-header>.fi-section-nav{max-width:1180px}
@media(max-width:720px){
 html body .fi-section-nav{padding:0 12px 10px;gap:2px;justify-content:space-between}
 html body .fi-section-group{position:static;flex:1}
 html body .fi-section-trigger{width:100%;padding:9px 5px;font-size:12px;gap:4px;min-height:42px}
 html body .fi-section-dropdown{left:12px;right:12px;top:calc(100% - 6px);min-width:0;max-width:none;max-height:60vh}
 html body .fi-section-dropdown>a{padding:12px;font-size:14px;min-height:42px;box-sizing:border-box}
 html body .fi-shell-header .fi-shell-top{gap:12px;padding:16px;flex-wrap:wrap}
 html body .fi-shell-header .fi-shell-account{margin-left:auto}
}
@media(prefers-reduced-motion:reduce){html body .fi-section-nav *{animation:none!important;transition:none!important}}

/* Compact single-row desktop header, shared by home, CRM and the site shell. */
html body .fi-section-home{display:block;flex:none;padding:9px 12px;color:white;text-decoration:none!important;font:600 14px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;transition:opacity .2s}
html body .fi-section-nav.has-open>.fi-section-home{opacity:.55}
html body .fi-section-trigger svg{display:none}
html body .fi-section-trigger:hover,html body .fi-section-group.is-open>.fi-section-trigger{background:transparent}
html body .fi-section-dropdown{min-width:190px;width:190px;max-width:240px;border:0;border-radius:12px;padding:7px 4px;box-shadow:0 6px 20px #0e344e24}
html body .fi-section-dropdown>a{font-size:12px;line-height:1.35;padding:7px 11px}
html body .fi-shell-greeting{position:absolute;left:0;bottom:calc(100% + 4px);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:white;font-weight:400}
html body .fi-shell-header .fi-shell-profile{position:relative;padding:9px 12px;border:1px solid #ffffff55;border-radius:10px;white-space:nowrap;font-size:12px}
@media(min-width:1101px){
 #feis-home .home-header-inner,#feis-home .home-header-inner:has(.home-header-greeting),html body .fi-shell-header .fi-shell-top{display:flex;flex-wrap:nowrap;gap:18px;max-width:1180px;min-height:84px;padding:17px 24px;box-sizing:border-box}
 #feis-home .home-menu-toggle,html body .fi-shell-menu-button{display:none}
 #feis-home .home-header-inner>.fi-section-nav,html body .fi-shell-top>.fi-section-nav{flex:1;min-width:0;max-width:none;margin:0;padding:0 0 0 6px;justify-content:flex-start;gap:4px}
 html body .fi-shell-header .fi-shell-logo{margin-right:0;flex:none}
 #feis-home .home-header-actions{flex:none;margin-left:auto}
 #feis-home .home-brand img{width:158px}
 #feis-home .home-header-greeting{font-size:10px!important}
 #feis-home .home-header-account{font-size:12px;padding:9px 12px}
 #feis-home .home-header-account svg{width:21px;height:21px}
 html body .fi-section-trigger,html body .fi-section-home{font-size:13px;padding:10px 12px}
 html body .fi-shell-header .fi-shell-account{flex:none;gap:12px;padding-top:10px}
}
@media(max-width:1100px){
 #feis-home .home-header-inner,#feis-home .home-header-inner:has(.home-header-greeting),html body .fi-shell-header .fi-shell-top{flex-wrap:wrap}
 #feis-home .home-header-inner>.fi-section-nav,html body .fi-shell-top>.fi-section-nav{order:5;flex:1 0 100%;margin:0;padding:0;max-width:none;justify-content:space-between}
 html body .fi-section-group{position:static}
 html body .fi-section-dropdown{left:0;right:0;top:100%;width:auto;min-width:0;max-width:none}
 #feis-home .home-header-inner:has(.home-header-greeting){gap:12px}
 html body .fi-section-home{font-size:12px;padding:9px 5px}
}
@media(max-width:720px){
 html body .fi-section-nav{gap:0}
 html body .fi-section-trigger,html body .fi-section-home{font-size:11px;padding:9px 4px}
 html body .fi-section-dropdown>a{font-size:14px;padding:11px 12px}
}

html body .fi-section-nav{min-width:0;box-sizing:border-box}
#feis-home .fi-section-trigger{font:600 13px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif}
@media(max-width:720px){#feis-home .fi-section-trigger{font-size:11px}}

#feis-home .home-brand img{height:45px;object-fit:contain}
@media(max-width:720px){#feis-home .home-brand img{height:35px}}

html body .fi-section-group{display:flex;align-items:center}
html body a.fi-section-trigger{color:white;text-decoration:none!important}
html body .fi-section-toggle{display:none;align-items:center;justify-content:center;flex:none;width:20px;min-width:20px;height:36px;padding:0;margin:0;border:0;background:transparent;box-shadow:none;color:white;cursor:pointer}
html body .fi-section-toggle svg{display:block}
html body .fi-section-toggle:focus-visible{outline:2px solid #76ceff;outline-offset:1px;border-radius:5px}
@media(hover:none),(pointer:coarse){
 html body .fi-section-toggle{display:inline-flex}
 html body .fi-section-trigger{padding-right:2px}
}
@media(max-width:720px){
 html body .fi-section-group{flex:0 1 auto}
 html body .fi-section-trigger{width:auto;font-size:10px;padding:9px 1px}
 #feis-home a.fi-section-trigger{font-size:10px}
 html body .fi-section-home{font-size:10px;padding:9px 1px}
 html body .fi-section-toggle{width:17px;min-width:17px}
}

/* Phones retain the original compact header and hamburger navigation. */
@media(max-width:720px){
 html body .fi-section-nav,#feis-home .home-header-inner>.fi-section-nav,html body .fi-shell-top>.fi-section-nav{display:none!important}
}

/* One mobile header row: reserve controls, let the logo shrink into the remaining space. */
@media(max-width:720px){
 html body .fi-shell-header .fi-shell-top,#feis-home .home-header-inner,#feis-home .home-header-inner:has(.home-header-greeting){display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-height:78px;padding:22px 12px 14px;box-sizing:border-box}
 html body .fi-shell-header .fi-shell-menu-button,#feis-home .home-menu-toggle{flex:0 0 36px;width:36px;height:38px;min-width:36px;margin:0;padding:0}
 html body .fi-shell-header .fi-shell-logo,#feis-home .home-brand{flex:1 1 110px;min-width:50px;max-width:130px;margin:0}
 html body .fi-shell-header .fi-shell-logo img,#feis-home .home-brand img{display:block;width:100%;height:32px;max-height:37px;aspect-ratio:425/120;object-fit:contain}
 html body .fi-shell-header .fi-shell-account,#feis-home .home-header-actions,#feis-home .home-header-actions:has(.home-header-greeting){position:relative;display:flex;flex-wrap:nowrap;align-items:center;flex:0 0 auto;width:auto;gap:6px;margin:0 0 0 auto;padding:0;min-width:0}
 html body .fi-shell-header .fi-shell-languages,#feis-home .home-languages{display:flex;flex:none;gap:0;margin:0}
 html body .fi-shell-header .fi-shell-languages a,#feis-home .home-languages a{padding:6px;font-size:10px;line-height:1.3}
 html body .fi-shell-header .fi-shell-profile,#feis-home .home-header-account,#feis-home .home-header-greeting + .home-header-account{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:36px;min-width:34px;margin:0;padding:6px;box-sizing:border-box}
 html body .fi-shell-header .fi-shell-profile>span,#feis-home .home-header-account>span,#feis-home .home-header-greeting + .home-header-account>span{display:none}
 html body .fi-shell-header .fi-shell-profile svg,#feis-home .home-header-account svg{width:21px;height:21px;flex:none}
 html body .fi-shell-header .fi-shell-account .fi-shell-logout,#feis-home .home-header-logout{flex:0 0 30px;width:30px;min-width:30px;height:34px;padding:0;margin:0}
 html body .fi-shell-header .fi-shell-greeting,#feis-home .home-header-greeting{position:absolute;left:auto;right:0;bottom:calc(100% + 4px);display:block;width:auto;max-width:135px;margin:0;font-size:9px!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
}

/* Greeting spans the header independently of the compact control group. */
@media(max-width:720px){
 html body .fi-shell-header .fi-shell-top,#feis-home .home-header-inner,#feis-home .home-header-inner:has(.home-header-greeting){position:relative;padding-top:40px}
 html body .fi-shell-header .fi-shell-account,#feis-home .home-header-actions,#feis-home .home-header-actions:has(.home-header-greeting),html body .fi-shell-header .fi-shell-profile{position:static}
 html body .fi-shell-header .fi-shell-greeting,#feis-home .home-header-greeting{position:absolute;top:10px;bottom:auto;left:12px;right:12px;width:auto;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;text-align:right;line-height:1.3;font-size:10px!important}
 html body .fi-shell-header .fi-shell-top:has(.fi-shell-greeting),#feis-home .home-header-inner:has(.home-header-greeting){padding-top:calc(var(--fi-greeting-height,13px) + 16px)}
}

/* Mobile greeting follows the controls, with room only for its actual text height. */
@media(max-width:720px){
 html body .fi-shell-header .fi-shell-top,#feis-home .home-header-inner,#feis-home .home-header-inner:has(.home-header-greeting){padding-top:14px}
 html body .fi-shell-header .fi-shell-top:has(.fi-shell-greeting),#feis-home .home-header-inner:has(.home-header-greeting){padding-top:14px;padding-bottom:calc(var(--fi-greeting-height,13px) + 16px)}
 html body .fi-shell-header .fi-shell-greeting,#feis-home .home-header-greeting{top:auto;bottom:8px}
}

@media(max-width:720px){
 html body .fi-shell-header .fi-shell-greeting,#feis-home .home-header-greeting{display:none!important}
 html body .fi-shell-header .fi-shell-top,html body .fi-shell-header .fi-shell-top:has(.fi-shell-greeting),#feis-home .home-header-inner,#feis-home .home-header-inner:has(.home-header-greeting){padding-top:14px;padding-bottom:14px}
}

/* Account controls share the same outer height, including their borders. */
html body #feis-home .home-header-account,
html body #feis-home .home-header-greeting + .home-header-account,
html body #feis-home .home-header-logout,
html body #feis-home .home-languages a,
html body .fi-shell-header .fi-shell-profile,
html body .fi-shell-header .fi-shell-account .fi-shell-logout,
html body .fi-shell-header .fi-shell-languages a{
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:34px;min-height:34px;padding-top:0;padding-bottom:0
}

/* Compact mobile header: identical control height and only a small vertical inset. */
@media(max-width:720px){
 html body .fi-shell-header .fi-shell-top,
 html body .fi-shell-header .fi-shell-top:has(.fi-shell-greeting),
 html body #feis-home .home-header-inner,
 html body #feis-home .home-header-inner:has(.home-header-greeting){min-height:78px;padding-top:14px;padding-bottom:14px;align-items:center}
 html body .fi-shell-header .fi-shell-menu-button,
 html body #feis-home .home-menu-toggle{display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:34px;min-height:34px;padding:0}
}

/* Keep the drawn strokes equally thick despite differing SVG viewport sizes. */
html body .fi-shell-header button svg,
html body .fi-shell-header .fi-shell-profile svg,
html body #feis-home .home-header button svg,
html body #feis-home .home-header-account svg{stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round}
html body .fi-shell-header button svg :is(path,circle,rect,line,polyline,ellipse),
html body .fi-shell-header .fi-shell-profile svg :is(path,circle,rect,line,polyline,ellipse),
html body #feis-home .home-header button svg :is(path,circle,rect,line,polyline,ellipse),
html body #feis-home .home-header-account svg :is(path,circle,rect,line,polyline,ellipse){vector-effect:non-scaling-stroke;stroke-width:1.6px}

/* Uniform square header controls; navigation section titles remain text links. */
html body .fi-shell-header .fi-shell-menu-button,
html body .fi-shell-header .fi-shell-languages a,
html body .fi-shell-header .fi-shell-profile,
html body .fi-shell-header .fi-shell-account .fi-shell-logout,
html body #feis-home .home-menu-toggle,
html body #feis-home .home-languages a,
html body #feis-home .home-header-account,
html body #feis-home .home-header-greeting + .home-header-account,
html body #feis-home .home-header-logout{
 box-sizing:border-box;flex:0 0 34px;width:34px;min-width:34px;max-width:34px;height:34px;min-height:34px;max-height:34px;padding:0;align-items:center;justify-content:center
}
html body .fi-shell-header .fi-shell-profile>span,
html body #feis-home .home-header-account>span,
html body #feis-home .home-header-greeting + .home-header-account>span{display:none}
html body .fi-shell-header .fi-shell-profile svg,
html body #feis-home .home-header-account svg{flex:none}

/* Desktop personal-page action keeps its full label and natural width. */
@media(min-width:721px){
 html body .fi-shell-header .fi-shell-profile,
 html body #feis-home .home-header-account,
 html body #feis-home .home-header-greeting + .home-header-account{
  flex:0 0 auto;width:auto;min-width:0;max-width:none;padding:0 12px;gap:8px
 }
 html body .fi-shell-header .fi-shell-profile>span,
 html body #feis-home .home-header-account>span,
 html body #feis-home .home-header-greeting + .home-header-account>span{display:inline}
}
