/* Keep the Workforce navigation in one predictable layout at desktop widths,
   then place it on its own controlled row instead of letting labels overlap. */
body #bpw .bpw-h{
  display:grid!important;
  grid-template-columns:minmax(210px,260px) minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  min-height:70px!important;
  height:auto!important;
  padding:10px 20px!important;
}
body #bpw .bpw-brand{
  min-width:0!important;
  white-space:nowrap!important;
}
body #bpw .bpw-nav{
  display:flex!important;
  min-width:0!important;
  height:auto!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  flex:initial!important;
  flex-wrap:wrap!important;
  overflow:visible!important;
}
body #bpw .bpw-nav button{
  width:auto!important;
  min-width:0!important;
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  margin:0!important;
  height:42px!important;
  padding:0 12px!important;
  font-size:14px!important;
  line-height:1!important;
}
body #bpw .bpw-actions{
  display:flex!important;
  align-items:center!important;
  margin-left:0!important;
  min-width:max-content!important;
  white-space:nowrap!important;
}
body #bpw .bpw-actions button{
  min-height:42px!important;
}

@media (max-width:1420px){
  body #bpw .bpw-h{
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
  }
  body #bpw .bpw-nav{
    grid-column:1 / -1!important;
    grid-row:2!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:1px 0 3px!important;
    scrollbar-width:thin;
  }
}

@media (max-width:640px){
  body #bpw .bpw-h{
    gap:8px!important;
    padding:10px 12px!important;
  }
  body #bpw .bpw-brand{
    font-size:18px!important;
  }
  body #bpw .bpw-actions{
    gap:5px!important;
  }
  body #bpw .bpw-actions button{
    padding:8px 9px!important;
    font-size:11px!important;
  }
  body #bpw .bpw-nav button{
    height:40px!important;
    padding:0 11px!important;
    font-size:13px!important;
  }
}

/* Workforce layout refinement: reserve explicit rows for the profile chip,
   keep the navigation readable, and give People cards/dialogs stable geometry. */
body #bpw .bpw-h{
  display:grid!important;
  grid-template-columns:minmax(210px,260px) minmax(0,1fr) auto auto!important;
  grid-template-areas:"brand nav profile actions"!important;
  align-items:center!important;
  column-gap:14px!important;
  row-gap:0!important;
  min-height:74px!important;
  height:auto!important;
  padding:10px 20px!important;
}
body #bpw .bpw-brand{
  grid-area:brand!important;
  min-width:0!important;
  white-space:nowrap!important;
}
body #bpw .bpw-nav{
  grid-area:nav!important;
  display:flex!important;
  min-width:0!important;
  height:auto!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:2px!important;
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin!important;
}
body #bpw .bpw-nav button{
  width:auto!important;
  min-width:0!important;
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  margin:0!important;
  height:44px!important;
  padding:0 13px!important;
  line-height:1.1!important;
}
body #bpw .bpw-profile-chip{
  grid-area:profile!important;
  display:flex!important;
  align-items:center!important;
  justify-self:end!important;
  min-width:0!important;
  max-width:260px!important;
  gap:9px!important;
  overflow:visible!important;
}
body #bpw .bpw-profile-chip .bpw-avatar{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
}
body #bpw .bpw-profile-copy{
  display:grid!important;
  min-width:0!important;
  max-width:210px!important;
  line-height:1.15!important;
}
body #bpw .bpw-profile-copy strong,
body #bpw .bpw-profile-copy small{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body #bpw .bpw-profile-copy strong{
  font-size:14px!important;
  font-weight:800!important;
}
body #bpw .bpw-profile-copy small{
  margin-top:3px!important;
  color:rgba(255,255,255,.78)!important;
  font-size:11px!important;
  font-weight:650!important;
}
body #bpw .bpw-actions{
  grid-area:actions!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
  margin-left:0!important;
  min-width:max-content!important;
  white-space:nowrap!important;
}
body #bpw .bpw-actions button{
  min-height:42px!important;
}

/* People cards: one consistent rhythm, no repeated role line, and buttons
   stay aligned at the bottom even when names or metadata wrap. */
body #bpw .bpw-people{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  padding:16px!important;
  align-items:stretch!important;
}
body #bpw .bpw-person{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:220px!important;
}
body #bpw .bpw-pmain{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  min-width:0!important;
  padding:16px!important;
}
body #bpw .bpw-person-head{
  min-width:0!important;
  align-items:center!important;
  gap:12px!important;
}
body #bpw .bpw-person-heading{
  min-width:0!important;
  flex:1 1 auto!important;
}
body #bpw .bpw-person h3{
  margin:0!important;
  line-height:1.25!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
body #bpw .bpw-person p{
  margin:4px 0 0!important;
  line-height:1.25!important;
  overflow-wrap:anywhere!important;
}
body #bpw .bpw-person-meta{
  min-width:0!important;
  margin-top:12px!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
body #bpw .bpw-pbuttons{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:7px!important;
  margin-top:auto!important;
  padding-top:16px!important;
}
body #bpw .bpw-pfoot{
  min-height:38px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
}

/* Profile dialogs stay usable while the iPad/phone keyboard changes the
   visual viewport. Keep the title and actions visible while the form scrolls. */
body #bpw .bpw-modal{
  align-items:flex-start!important;
  padding:12px!important;
}
body #bpw .bpw-dlg{
  display:flex!important;
  flex-direction:column!important;
  width:min(860px,calc(100vw - 24px))!important;
  max-height:calc(100dvh - 24px)!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
}
body #bpw .bpw-dlg>h3{
  position:sticky!important;
  top:0!important;
  z-index:5!important;
  flex:0 0 auto!important;
}
body #bpw .bpw-dlg>p{
  flex:0 0 auto!important;
  line-height:1.4!important;
}
body #bpw .bpw-dlg .bpw-form{
  min-width:0!important;
}
body #bpw .bpw-dlg .bpw-dlg-actions{
  grid-column:1/-1!important;
  position:sticky!important;
  bottom:0!important;
  z-index:6!important;
  flex:0 0 auto!important;
  background:#fff!important;
  box-shadow:0 -6px 14px rgba(17,40,65,.08)!important;
}
@media(max-width:1420px){
  body #bpw .bpw-h{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-areas:"brand profile actions" "nav nav nav"!important;
    align-items:center!important;
    row-gap:4px!important;
  }
  body #bpw .bpw-nav{
    padding:1px 0 3px!important;
  }
}
@media(max-width:900px){
  body #bpw .bpw-people{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  body #bpw .bpw-h{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand profile" "actions actions" "nav nav"!important;
    padding:10px 12px!important;
  }
  body #bpw .bpw-profile-chip{
    max-width:190px!important;
  }
  body #bpw .bpw-profile-chip .bpw-avatar{
    width:38px!important;
    height:38px!important;
    flex-basis:38px!important;
  }
  body #bpw .bpw-profile-copy{
    max-width:145px!important;
  }
  body #bpw .bpw-actions{
    justify-content:flex-start!important;
    padding-top:2px!important;
  }
  body #bpw .bpw-nav button{
    height:42px!important;
    padding:0 11px!important;
  }
  body #bpw .bpw-people{
    grid-template-columns:1fr!important;
    padding:12px!important;
  }
  body #bpw .bpw-dlg{
    width:100%!important;
    max-height:calc(100dvh - 14px)!important;
  }
  body #bpw .bpw-dlg .bpw-form{
    grid-template-columns:1fr!important;
  }
  body #bpw .bpw-dlg .bpw-full,
  body #bpw .bpw-dlg .bpw-dlg-actions{
    grid-column:auto!important;
  }
}
@media(max-width:420px){
  body #bpw .bpw-profile-chip{
    max-width:150px!important;
  }
  body #bpw .bpw-profile-copy{
    max-width:105px!important;
  }
}


/* People cards are the profile target: remove action space and make the
   complete card keyboard/touch friendly. */
body #bpw .bpw-person{
  min-height:154px!important;
  cursor:pointer!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}
body #bpw .bpw-person:hover,
body #bpw .bpw-person:focus-visible{
  transform:translateY(-2px)!important;
  border-color:#176b87!important;
  box-shadow:0 8px 20px rgba(16,42,67,.16)!important;
  outline:none!important;
}
body #bpw .bpw-pmain{
  padding:14px!important;
}
body #bpw .bpw-person-meta{
  margin-top:8px!important;
}
body #bpw .bpw-pfoot{
  min-height:32px!important;
  padding:7px 10px!important;
}
body #bpw .bpw-dlg-actions{
  flex-wrap:wrap!important;
}
body #bpw .bpw-dlg-actions [data-profile-toggle-active]{
  margin-right:auto!important;
}
@media(max-width:560px){
  body #bpw .bpw-person{
    min-height:146px!important;
  }
  body #bpw .bpw-dlg-actions [data-profile-toggle-active]{
    margin-right:0!important;
  }
}

/* Final Workforce header sizing: keep wide desktop navigation and actions in
   one stable row, then reserve a separate navigation row before clipping. */
body #bpw .bpw-h{
  display:grid!important;
  box-sizing:border-box!important;
  grid-template-columns:minmax(190px,220px) minmax(0,1fr) auto auto!important;
  grid-template-areas:"brand nav profile actions"!important;
  column-gap:10px!important;
  row-gap:0!important;
  min-height:76px!important;
  height:76px!important;
  padding:0 20px!important;
  overflow:hidden!important;
}
body #bpw .bpw-brand{
  grid-area:brand!important;min-width:0!important;max-width:220px!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  font-size:19px!important;
}
body #bpw .bpw-nav{
  grid-area:nav!important;display:flex!important;align-items:stretch!important;
  justify-content:flex-start!important;gap:0!important;min-width:0!important;height:76px!important;
  flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:none!important;
}
body #bpw .bpw-nav::-webkit-scrollbar{display:none!important}
body #bpw .bpw-nav button{
  width:auto!important;min-width:0!important;flex:0 0 auto!important;height:76px!important;
  margin:0!important;padding:0 9px!important;border:0!important;border-radius:0!important;
  font-size:14px!important;line-height:1!important;white-space:nowrap!important;
}
body #bpw .bpw-profile-chip{
  grid-area:profile!important;min-width:0!important;max-width:220px!important;overflow:hidden!important;
}
body #bpw .bpw-profile-copy{min-width:0!important;max-width:145px!important}
body #bpw .bpw-profile-copy strong,
body #bpw .bpw-profile-copy small{
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
body #bpw .bpw-actions{
  grid-area:actions!important;display:flex!important;align-items:center!important;
  justify-content:flex-end!important;gap:6px!important;min-width:max-content!important;
  margin-left:0!important;white-space:nowrap!important;
}
body #bpw .bpw-actions button{min-height:42px!important;height:42px!important}

@media(max-width:1540px){
  body #bpw .bpw-h{
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-areas:"brand profile actions" "nav nav nav"!important;
    height:auto!important;min-height:118px!important;row-gap:0!important;padding:0 16px!important;
  }
  body #bpw .bpw-nav{
    grid-column:1 / -1!important;grid-row:2!important;width:100%!important;
    height:42px!important;padding:0!important;
  }
  body #bpw .bpw-nav button{height:42px!important;padding:0 10px!important}
}
@media(max-width:760px){
  body #bpw .bpw-h{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand profile" "actions actions" "nav nav"!important;
    min-height:160px!important;padding:10px 12px!important;row-gap:4px!important;
  }
  body #bpw .bpw-profile-chip{max-width:170px!important}
  body #bpw .bpw-profile-copy{max-width:105px!important}
  body #bpw .bpw-actions{justify-content:flex-start!important}
  body #bpw .bpw-nav{height:42px!important}
  body #bpw .bpw-nav button{height:42px!important;padding:0 9px!important;font-size:13px!important}
}


/* Four employee cards on wide People views; retain comfortable responsive breakpoints. */
body #bpw .bpw-people{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:1450px){body #bpw .bpw-people{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){body #bpw .bpw-people{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){body #bpw .bpw-people{grid-template-columns:1fr!important}}

/* BrightPath compact desktop header final */
@media(min-width:1541px){
  body #bpw .bpw-h{
    grid-template-columns:minmax(175px,220px) minmax(0,1fr) minmax(135px,175px) auto!important;
    column-gap:8px!important;
    padding:0 16px!important;
  }
  body #bpw .bpw-nav{
    justify-content:flex-start!important;
    gap:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
  }
  body #bpw .bpw-nav::-webkit-scrollbar{display:none!important}
  body #bpw .bpw-nav button{
    padding-left:7px!important;
    padding-right:7px!important;
    font-size:13px!important;
  }
  body #bpw .bpw-profile-chip{max-width:175px!important}
  body #bpw .bpw-profile-copy{max-width:105px!important}
}

/* Workforce brand lock: make the property name fully readable on desktop. */
body #bpw .bpw-h{overflow:visible!important;}
body #bpw .bpw-brand{display:flex!important;flex-direction:column!important;justify-content:center!important;overflow:visible!important;text-overflow:clip!important;white-space:normal!important;}
body #bpw .bpw-brand-title{display:block!important;white-space:nowrap!important;line-height:24px!important;}
body #bpw .bpw-hotel-name{display:block!important;max-width:100%!important;margin-top:4px!important;line-height:16px!important;height:16px!important;min-height:16px!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;}
@media(min-width:1541px){body #bpw .bpw-h{grid-template-columns:minmax(310px,360px) minmax(0,1fr) minmax(135px,175px) auto!important;}body #bpw .bpw-brand{max-width:360px!important;}}
