/* FEBRY.OPS V475 — unified inline category navigation for existing PUBLIC index headers.
   Workspaces are deliberately excluded (they retain their internal navigation). */
.fo-v474-row{
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
  justify-content:space-between!important;gap:clamp(6px,.75vw,12px)!important;
  min-width:0!important;min-height:60px!important;
  max-width:100%!important;box-sizing:border-box!important;
}
.fo-v474-row>.fo-v474-inline.fo-v459-shell{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  flex:1 1 auto!important;width:auto!important;max-width:none!important;min-width:0!important;
  height:auto!important;min-height:0!important;margin:0 0 0 auto!important;
  padding:0!important;background:transparent!important;border:0!important;
  isolation:auto!important;position:relative!important;z-index:120!important;
}
.fo-v474-row>.fo-v474-inline .fo-v459-groups{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
  gap:2px!important;position:static!important;
  flex:0 1 auto!important;width:auto!important;max-width:none!important;min-width:0!important;
  margin:0!important;padding:0!important;background:transparent!important;border:0!important;
  box-shadow:none!important;overflow:visible!important;
}
.fo-v474-row>.fo-v474-inline .fo-v459-category{width:auto!important;flex:0 0 auto!important}
.fo-v474-row>.fo-v474-inline .fo-v459-category>summary{font-size:clamp(10px,.7vw,12px)!important;padding:8px 6px!important;min-height:36px!important;gap:5px!important}
.fo-v474-row>.fo-v474-inline .fo-v459-chevron{width:13px;height:13px}
.fo-v474-row>.fo-v474-inline .fo-v459-dropdown{
  position:absolute!important;top:calc(100% + 5px)!important;left:0;
  width:max-content!important;min-width:218px!important;max-width:min(300px,calc(100vw - 24px))!important;
  max-height:65dvh!important;overflow-y:auto!important;display:grid;
  background:#0d140f!important;border:1px solid #37503A!important;padding:6px!important;
  border-radius:11px!important;box-shadow:0 18px 45px rgba(0,0,0,.35)!important;z-index:200!important;
}
.fo-v474-row>.fo-v474-inline .fo-v459-category:nth-last-child(-n+2) .fo-v459-dropdown{left:auto!important;right:0!important}
.fo-v474-row>.fo-v474-inline .fo-v459-category:not([open])>.fo-v459-dropdown{display:none!important}
.fo-v474-row>.fo-v474-inline .fo-v459-mobile-trigger{display:none!important}
.fo-v474-row>.fo-v474-inline .fo-v469-topup{min-height:34px!important;margin-left:7px!important;padding:7px 12px!important}
.fo-v474-row>.fa-account,.fo-v474-row>.fo-public-actions,.fo-v474-row>.febry-services-actions,
.fo-v474-row>.fo-hide-v457-mount,.fo-v474-row>.top-actions,.fo-v474-row>.special-nav-actions,
.fo-v474-row>.brand-side,.fo-v474-row>.fo-public-brand,.fo-v474-row>.fa-brand,
.fo-v474-row>.logo,.fo-v474-row>.mobile-brand{flex:0 0 auto!important;margin-top:0!important;margin-bottom:0!important}
.fo-v474-row>.fo-hide-v457-mount{margin-left:0!important}
/* Route-local legacy strips never create an extra row; keep their functional non-link controls. */
.fo-v474-row>.navlinks,.fo-v474-row>.links{flex:0 0 auto!important;max-width:100%!important}
.fo-v474-row>.navlinks .fo-v459-old-link,.fo-v474-row>.links .fo-v459-old-link{display:none!important}
/* Preserve short-header width without allowing long nav strings to push account offscreen. */
.fo-v474-row .fo-v459-link{font-size:12px!important}
.fo-v474-row .fo-hide-v457{min-width:0}
@media(max-width:1290px){
 .fo-v474-row>.fo-v474-inline.fo-v459-shell{flex:0 0 auto!important;min-width:0!important;margin-left:auto!important}
 .fo-v474-row>.fo-v474-inline .fo-v459-mobile-trigger{
   display:flex!important;align-items:center!important;justify-content:space-between!important;
   min-height:35px!important;min-width:101px!important;gap:8px!important;
   padding:7px 10px!important;background:#142017!important;border:1px solid #37503A!important;
   border-radius:9px!important;color:#F5F9F3!important;font-size:11px!important;font-weight:750!important;
 }
 .fo-v474-row>.fo-v474-inline .fo-v459-groups{
   display:none!important;position:absolute!important;top:calc(100% + 7px)!important;
   left:auto!important;right:0!important;width:min(290px,calc(100vw - 22px))!important;
   max-width:calc(100vw - 22px)!important;max-height:min(72dvh,620px)!important;
   overflow-y:auto!important;background:#090D0B!important;border:1px solid #37503A!important;
   border-radius:11px!important;padding:7px!important;box-shadow:0 16px 36px rgba(0,0,0,.45)!important;
 }
 .fo-v474-row>.fo-v474-inline.fo-v459-menu-open .fo-v459-groups{display:grid!important;gap:3px!important}
 .fo-v474-row>.fo-v474-inline .fo-v459-category{width:100%!important}
 .fo-v474-row>.fo-v474-inline .fo-v459-category>summary{min-height:40px!important;font-size:12px!important;padding:9px 11px!important}
 .fo-v474-row>.fo-v474-inline .fo-v459-dropdown{
   position:static!important;width:100%!important;max-width:100%!important;min-width:0!important;
   max-height:none!important;box-shadow:none!important;margin:0 0 5px!important;
 }
 .fo-v474-row>.fo-v474-inline .fo-v469-topup{display:flex!important;width:100%!important;margin:5px 0 2px!important;min-height:40px!important}
}
@media(max-width:680px){
 .fo-v474-row{min-height:52px!important;gap:6px!important;padding-left:9px!important;padding-right:9px!important}
 .fo-v474-row>.fo-v474-inline .fo-v459-mobile-trigger{min-width:42px!important;padding:6px 7px!important;gap:4px!important}
 .fo-v474-row>.fo-v474-inline .fo-v459-mobile-trigger span{font-size:0!important}
 .fo-v474-row>.fo-v474-inline .fo-v459-mobile-trigger span:after{content:'Menu';font-size:10px!important}
 .fo-v474-row>.fo-hide-v457-mount .fo-hide-v457-label{font-size:0!important}
 .fo-v474-row>.fo-hide-v457-mount .fo-hide-v457-label:after{content:'HIDE';font-size:10px!important}
 .fo-v474-row>.fo-hide-v457-mount .fo-hide-v457{padding:4px 5px!important;gap:4px!important}
 .fo-v474-row>.fo-hide-v457-mount .fo-hide-v457-state{font-size:9px!important;min-width:14px!important}
 .fo-v474-row>.fa-brand,.fo-v474-row>.fo-public-brand{min-width:0!important}
}
/* Accessible focus and light theme match legacy design tokens. */
html[data-fo-theme="light"] .fo-v474-row>.fo-v474-inline .fo-v459-mobile-trigger,
html[data-theme="light"] .fo-v474-row>.fo-v474-inline .fo-v459-mobile-trigger{background:#FFFAF0!important;color:#562F00!important;border-color:#D7CDBE!important}
html[data-fo-theme="light"] .fo-v474-row>.fo-v474-inline .fo-v459-groups,
html[data-theme="light"] .fo-v474-row>.fo-v474-inline .fo-v459-groups{color:#562F00!important}
@media(prefers-reduced-motion:reduce){.fo-v474-row>.fo-v474-inline .fo-v459-chevron{transition:none!important}}

/* Stable ordering regardless of the differing legacy header DOMs. */
.fo-v474-row > :is(.fa-brand,.mobile-brand,.fo-public-brand,.brand-side,.logo){order:0!important}
.fo-v474-row > .fo-v474-inline.fo-v459-shell{order:1!important}
.fo-v474-row > .fo-hide-v457-mount{order:2!important;margin-left:0!important}
.fo-v474-row > :is(.fa-account,.fo-public-actions,.febry-services-actions,.top-actions,.special-nav-actions,.navlinks,.links,.home-btn){order:3!important}
.fo-v474-row > #menu{order:4!important}
@media(max-width:680px){
 .fo-v474-row > .febry-services-actions .febry-services-cta{font-size:0!important;padding:7px 9px!important;min-height:34px!important}
 .fo-v474-row > .febry-services-actions .febry-services-cta:after{content:'Proyek ↗';font-size:10px!important}
}

/* Theme fallback from legacy pages now docks into the real header without losing its click handler. */
.fo-v474-row > #foThemeSwitch{order:3!important;position:static!important;inset:auto!important;flex:0 0 auto!important;margin:0!important}

.fo-v474-row>.fo-v474-docked-font{order:3!important;flex:0 0 auto!important;margin:0!important}

/* V475: dedicated account-profile page uses the same single-row public header. */
.fo-v475-global-header{display:flex;align-items:center;gap:10px;min-height:64px;padding:0 clamp(11px,2vw,28px);background:#090D0B;border-bottom:1px solid #27392b;position:relative;z-index:50;color:#F5F9F3}
.fo-v475-global-header .fo-v475-brand{display:flex;align-items:center;gap:8px;min-width:0;flex:0 0 auto;color:#F5F9F3;text-decoration:none;font-weight:800;font-size:11px}
.fo-v475-global-header .fo-v475-brand img{display:block;width:120px;height:auto;max-height:42px;object-fit:contain}
.fo-v475-global-header .fa-account{flex:0 0 auto}
@media(max-width:1000px){.fo-v475-global-header .fo-v475-brand span{display:none}}
@media(max-width:540px){.fo-v475-global-header{min-height:54px;padding:0 9px;gap:5px}.fo-v475-global-header .fo-v475-brand img{width:86px}}
@media(max-width:450px){
 /* Registration remains available in Akun & Legal, keep header single-row at 320px. */
 .fo-v475-global-header .fa-guest .fa-register,.ck-global-header .fa-guest .fa-register{display:none}
}
