/* 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;
  }
  /* The max-width:1540px rule above pins the nav to grid-row:2 -- the actions
     row in this layout -- and a phone matches that breakpoint too, so the
     Employee Clock and close buttons landed on top of the tabs. The named area
     is the placement that belongs to this breakpoint. */
  body #bpw .bpw-nav{
    grid-area:nav!important;
    grid-row:auto!important;
    grid-column:1 / -1!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-brand{max-width:100%!important;overflow:hidden!important}
  body #bpw .bpw-brand-title,
  body #bpw .bpw-hotel-name{
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!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;}}

/* Keep settings actions inside their card instead of clipping them at phone
   widths. These groups also wrap when a translated label needs more room. */
#bpw .bpw-holiday-head { flex-wrap:wrap; }
#bpw .bpw-holiday-head > * { min-width:0; }
#bpw .bpw-holiday-tools { display:flex;align-items:end;gap:8px;flex-wrap:wrap;max-width:100%; }

@media(max-width:640px) {
  /* Anchor the visibility menu to the toolbar, not its narrow summary label. */
  #bpwMain .bpw-schedule-toolbar { position:relative; }
  #bpwMain .bpw-schedule-toolbar .bpw-employee-visibility { position:static; }
  #bpwMain .bpw-schedule-toolbar .bpw-employee-visibility-panel {
    left:0;right:0;min-width:0;max-width:100%;box-sizing:border-box;
  }
  #bpwMain .bpw-employee-visibility-panel label { white-space:normal;overflow-wrap:anywhere; }
  #bpwMain .bpw-employee-visibility-panel input { flex:0 0 auto; }
}
@media(max-width:560px) {
  body #bpw .bpw-h {
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand brand" "profile actions" "nav nav"!important;
    row-gap:6px!important;
  }
  body #bpw .bpw-brand { height:auto!important;max-width:100%!important; }
  body #bpw .bpw-hotel-name { height:auto!important;white-space:normal!important;overflow-wrap:anywhere!important; }
  body #bpw .bpw-profile-chip { justify-self:start!important;max-width:100%!important; }
  body #bpw .bpw-profile-copy { max-width:100%!important; }
  body #bpw .bpw-actions { justify-content:flex-end!important; }
  /* A long email must not make the pinned identity column cover Open record
     after the user scrolls across Employee Drive's table. */
  #bpw .bpw-drive-tbl th:nth-child(2),
  #bpw .bpw-drive-tbl td:nth-child(2) {
    width:130px;max-width:130px;min-width:0;white-space:normal!important;overflow-wrap:anywhere;
  }
}

/* Schedule keeps its compact desktop workspace; other Workforce views retain
   their existing header. Named navigation areas still handle narrow screens. */
@media(min-width:761px){
  body #bpw:has([data-schedule-grid]) .bpw-h{height:60px!important;min-height:60px!important;}
  body #bpw:has([data-schedule-grid]) .bpw-brand,
  body #bpw:has([data-schedule-grid]) .bpw-actions{height:54px!important;}
  body #bpw:has([data-schedule-grid]) .bpw-brand-title{font-size:17px!important;line-height:21px!important;}
  body #bpw:has([data-schedule-grid]) .bpw-hotel-name{margin-top:2px!important;font-size:11px!important;line-height:14px!important;height:14px!important;min-height:14px!important;}
  body #bpw:has([data-schedule-grid]) .bpw-nav,
  body #bpw:has([data-schedule-grid]) .bpw-nav button{height:60px!important;}
}
@media(min-width:761px) and (max-width:1540px){
  body #bpw:has([data-schedule-grid]) .bpw-h{height:90px!important;min-height:90px!important;grid-template-rows:54px 36px!important;}
  body #bpw:has([data-schedule-grid]) .bpw-nav,
  body #bpw:has([data-schedule-grid]) .bpw-nav button{height:36px!important;min-height:36px!important;font-size:13px!important;}
}

/* The phone schedule uses the existing grid, focused on one selected day.
   Secondary controls stay available without occupying the whole first screen. */
#bpwMain .bpw-phone-today,
#bpwMain .bpw-phone-days,
#bpwMain .bpw-phone-tools-toggle,
#bpwMain .bpw-phone-payroll-toggle { display:none!important; }
#bpwMain .bpw-phone-tools { display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0;flex:1 1 auto; }
#bpwMain .bpw-phone-tools>div { display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0; }
@media(max-width:600px), (max-width:900px) and (max-height:500px) {
  body #bpw:has(#bpwMain) .bpw-h {
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand actions" "nav nav"!important;
    gap:4px 8px!important;padding:6px 10px!important;min-height:0!important;height:auto!important;grid-template-rows:auto auto!important;
    background:#fff!important;color:#24473b!important;border-bottom:1px solid #dce6df!important;box-shadow:none!important;
  }
  body #bpw .bpw-brand { height:auto!important;min-height:44px!important;max-width:100%!important; }
  body #bpw:has(#bpwMain) .bpw-brand-title { font-size:16px!important;line-height:20px!important;font-weight:400!important;color:#24473b!important; }
  body #bpw .bpw-hotel-name { font-size:11px!important;line-height:15px!important;margin:2px 0 0!important;height:auto!important;white-space:normal!important;color:#6e8077!important; }
  body #bpw .bpw-profile-chip { display:none!important; }
  body #bpw .bpw-actions { height:auto!important;padding:0!important;gap:4px!important; }
  body #bpw .bpw-actions button { min-width:44px!important;min-height:44px!important;padding:7px!important;font-weight:400!important;color:#24473b!important;background:#fff!important;border-color:#dce6df!important;border-radius:7px!important; }
  body #bpw:has(#bpwMain) .bpw-actions #kiosk { width:56px!important;max-width:56px!important;white-space:nowrap!important;font-size:0!important; }
  body #bpw:has(#bpwMain) .bpw-actions #kiosk::after { content:"Clock";font-size:13px; }
  body #bpw .bpw-nav { height:44px!important;padding:0!important;gap:2px!important; }
  body #bpw .bpw-nav button { height:44px!important;min-height:44px!important;font-weight:400!important;font-size:13px!important;color:#53695e!important;background:transparent!important;border:0!important;border-bottom:2px solid transparent!important;box-shadow:none!important; }
  body #bpw:has(#bpwMain) .bpw-nav button:not(.on) { color:#53695e!important;background:transparent!important;border-bottom-color:transparent!important; }
  body #bpw:has(#bpwMain) .bpw-nav button.on { color:#1d503e!important;background:#edf4ef!important;border-bottom-color:#32715a!important; }
  body #bpw .bpw-main { padding:10px!important; }
  body #bpw :is(h2,h3,b,strong),body #bpw .bpw-b { font-weight:400!important; }
  body #bpw #bpwMain .bpw-schedule-toolbar { padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;gap:6px!important; }
  body #bpw #bpwMain .bpw-schedule-toolbar .bpw-schedule-nav { display:grid!important;width:100%!important;grid-template-columns:44px minmax(0,1fr) 44px!important;gap:5px!important; }
  body #bpw #bpwMain .bpw-schedule-nav #schToday { display:none!important; }
  body #bpw #bpwMain .bpw-schedule-nav #schPrev { grid-column:1;grid-row:1; }
  body #bpw #bpwMain .bpw-schedule-nav .bpw-date-pill { grid-column:2;grid-row:1;min-width:0!important;justify-content:center!important;gap:2px!important;padding:0 1px!important;box-sizing:border-box; }
  body #bpw #bpwMain .bpw-schedule-nav #schNext { grid-column:3;grid-row:1; }
  body #bpw #bpwMain .bpw-schedule-nav .bpw-date-icon { display:none!important; }
  body #bpw #bpwMain .bpw-schedule-nav .bpw-date-pill input { width:132px!important;min-width:130px!important;max-width:132px!important;flex:0 0 132px; }
  body #bpw #bpwMain .bpw-schedule-nav .bpw-date-pill select { width:60px!important;min-width:60px!important;max-width:60px!important;flex:0 0 60px;padding:2px!important; }
  body #bpw #bpwMain .bpw-schedule-toolbar :is(.bpw-b,input,select,summary) { font-weight:400!important;font-size:13px!important;min-height:44px!important;border-radius:7px!important;color:#315448!important;box-shadow:none!important; }
  body #bpw #bpwMain .bpw-schedule-toolbar input,
  body #bpw #bpwMain .bpw-schedule-toolbar select { font-size:16px!important; }
  body #bpw #bpwMain .bpw-schedule-toolbar .bpw-b.primary { color:#fff!important;background:#245b46!important;border-color:#245b46!important; }
  body #bpw #bpwMain .bpw-schedule-actions { display:grid!important;grid-template-columns:62px minmax(0,1fr) minmax(0,1.15fr)!important;gap:6px!important; }
  body #bpw #bpwMain .bpw-schedule-actions:not(:has(#schAdd)) { grid-template-columns:62px minmax(0,1fr)!important; }
  body #bpw #bpwMain .bpw-schedule-actions .bpw-b { width:100%!important;min-width:0!important; }
  body #bpw #bpwMain .bpw-phone-today,
  body #bpw #bpwMain .bpw-phone-tools-toggle,
  body #bpw #bpwMain .bpw-phone-payroll-toggle { display:inline-flex!important;align-items:center;justify-content:center; }
  body #bpw #bpwMain .bpw-phone-tools { display:none!important; }
  body #bpw #bpwMain .bpw-phone-tools.is-open { display:flex!important;flex-wrap:wrap!important;width:100%;padding:8px!important;border:1px solid #dce6df;border-radius:8px;background:#fff;box-sizing:border-box; }
  body #bpw #bpwMain .bpw-phone-tools>div { width:100%;max-width:100%; }
  body #bpw #bpwMain .bpw-phone-tools .bpw-schedule-filters { align-items:stretch!important; }
  body #bpw #bpwMain .bpw-phone-tools .bpw-schedule-filters>label { white-space:normal!important; }
  body #bpw #bpwMain .bpw-phone-tools .bpw-employee-visibility-panel { position:static!important;width:100%!important;max-height:45dvh;overflow:auto;box-shadow:none; }
  body #bpw #bpwMain .bpw-phone-payroll { display:none!important; }
  body #bpw #bpwMain.bpw-phone-tools-open .bpw-phone-payroll { display:block!important; }
  body #bpw #bpwMain .bpw-phone-payroll:not(.is-open)>:not(.bpw-ph) { display:none!important; }
  body #bpw #bpwMain .bpw-phone-payroll .bpw-ph { padding:6px 10px!important; }
  body #bpw #bpwMain .bpw-phone-payroll .bpw-ph .bpw-muted,
  body #bpw #bpwMain .bpw-phone-payroll .bpw-ph>.bpw-payroll-assumption { display:none!important; }
  body #bpw #bpwMain .bpw-phone-payroll-toggle { min-height:44px!important; }
  body #bpw #bpwMain .wf-schedule-heading { flex-direction:row!important;align-items:center!important;padding:10px!important; }
  body #bpw #bpwMain [data-schedule-view-help] { display:none!important; }
  body #bpw #bpwMain .wf-schedule-range { font-size:10px!important;white-space:normal!important;text-align:right;max-width:140px; }
  body #bpw #bpwMain .wf-schedule-view { margin:0;padding:6px 10px; }
  body #bpw #bpwMain .wf-schedule-view .bpw-muted { font-size:10px!important; }
  body #bpw #bpwMain .bpw-phone-days { display:flex!important;gap:3px;overflow-x:auto;padding:4px 7px 8px;overscroll-behavior-x:contain;scrollbar-width:thin; }
  body #bpw #bpwMain .bpw-phone-days button { display:grid;align-content:center;gap:2px;flex:1 0 44px;min-width:44px;min-height:48px;border:1px solid transparent;border-radius:7px;padding:4px 2px;font-size:12px;font-weight:400!important;color:#476357;background:#f4f7f4; }
  body #bpw #bpwMain .bpw-phone-days button[aria-pressed="true"] { background:#245b46!important;color:#fff!important;border-color:#245b46!important; }
  body #bpw #bpwMain .bpw-phone-days button:focus-visible { outline:2px solid #34785e;outline-offset:-2px; }
  body #bpw #bpwMain .bpw-panel table[data-schedule-grid],
  body #bpw #bpwMain .bpw-panel table[data-schedule-grid][data-schedule-weeks="2"] { display:block!important;min-width:0!important;width:100%!important; }
  body #bpw #bpwMain .bpw-panel>div:has(>table[data-schedule-grid]) { max-height:none!important;overflow:visible!important;border-radius:0!important; }
  body #bpw #bpwMain [data-schedule-grid] thead,
  body #bpw #bpwMain [data-schedule-grid] tbody { display:block; }
  body #bpw #bpwMain [data-schedule-grid] tr { display:grid;grid-template-columns:38% 62%;height:auto!important; }
  body #bpw #bpwMain [data-schedule-grid] .bpw-week-band { display:none!important; }
  body #bpw #bpwMain [data-schedule-grid] [data-phone-day-active="false"] { display:none!important; }
  body #bpw #bpwMain .bpw-panel table[data-schedule-grid] :is(th,td),
  body #bpw #bpwMain .bpw-panel table[data-schedule-grid] :is(th,td):first-child { min-width:0!important;width:auto!important;max-width:100%!important;height:auto!important;position:static!important;box-sizing:border-box;padding:6px!important;white-space:normal!important;border-left-width:1px!important; }
  body #bpw #bpwMain [data-schedule-grid] .bpw-department-row { display:block; }
  body #bpw #bpwMain [data-schedule-grid] .bpw-department-row th { display:block;width:100%!important;font-size:11px!important;padding:6px 8px!important;border-top-width:2px!important; }
  body #bpw #bpwMain [data-schedule-grid] tr>td[colspan] { grid-column:1/-1; }
  body #bpw #bpwMain .bpw-employee-cell { gap:0!important; }
  body #bpw #bpwMain .bpw-sched-avatar,
  body #bpw #bpwMain .bpw-employee-visibility-button { display:none!important; }
  body #bpw #bpwMain .bpw-employee-timecard { min-height:44px!important;font-size:12px!important;line-height:1.4!important;font-weight:400!important; }
  body #bpw #bpwMain [data-schedule-cell] [data-shift] { padding:6px!important;font-size:13px!important;line-height:1.4!important;border-radius:6px!important; }
  body #bpw #bpwMain [data-schedule-cell] [data-shift] .bpw-shift-del { display:none!important; }
  body #bpw #bpwMain [data-shift-open] { min-height:44px!important;line-height:1.4!important; }
  body #bpw #bpwMain [data-shift-open]>b { white-space:normal!important; }
  body #bpw #bpwMain [data-shift] small,
  body #bpw #bpwMain .bpw-shift-actual-inline { font-size:11px!important;line-height:1.4!important; }
  body #bpw #bpwMain [data-add-shift] { min-height:44px!important;font-size:12px!important; }
  body .bpw-schedule-modal { padding:0!important; }
  body .bpw-schedule-modal .bpw-dlg { width:100%!important;max-width:100%!important;max-height:100dvh!important;min-height:100dvh;border-radius:0!important;padding:16px!important;box-sizing:border-box;background:#fff!important; }
  body .bpw-schedule-modal :is(h3,label,button) { font-weight:400!important; }
  body:has(#bpw) .bpw-schedule-modal .bpw-dlg>h3 { margin:0 0 16px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#294c3d!important;font-size:18px!important;line-height:1.4!important;font-weight:400!important; }
  body:has(#bpw) .bpw-schedule-modal .bpw-b.primary { background:#245b46!important;border-color:#245b46!important;color:#fff!important;box-shadow:none!important; }
  body .bpw-schedule-modal .bpw-form { grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important; }
  body .bpw-schedule-modal .bpw-full { grid-column:1/-1!important; }
  body .bpw-schedule-modal :is(input,select,textarea) { font-size:16px!important;min-height:44px!important;background:#fff!important;color:#294c3d!important; }
  body:has(#bpw) .bpw-schedule-modal .bpw-dlg-actions { position:static!important;bottom:auto!important;flex-shrink:0;background:#fff;padding:12px 0 calc(12px + env(safe-area-inset-bottom));border-top:1px solid #dce6df; }
  body .bpw-schedule-modal .bpw-dlg-actions button { min-height:44px!important; }
  body .bpw-schedule-modal .bpw-feature-records>div { flex-direction:column;align-items:flex-start;gap:8px;font-size:14px; }
  body .bpw-schedule-modal #sn { min-height:110px!important;resize:vertical; }
}
@media(min-width:601px) and (max-width:900px) and (max-height:500px) {
  body #bpw .bpw-h { padding:4px 10px!important;gap:2px 8px!important;grid-template-areas:"brand actions" "nav nav"!important;grid-template-columns:minmax(0,1fr) auto!important;min-height:0!important; }
  body #bpw .bpw-profile-chip { display:none!important; }
  body #bpw .bpw-brand,body #bpw .bpw-actions { height:44px!important; }
  body #bpw .bpw-brand-title { font-size:16px!important;line-height:20px!important; }
  body #bpw .bpw-nav,body #bpw .bpw-nav button { height:44px!important;min-height:44px!important; }
}
