/* Handee Mandee v88 — consistent Dayforce-inspired layout, original branding retained.
   Intentionally loaded after styles.css to prevent older portal rules competing. */
body.portal-layout-v88{
  --portal-navy:#0b2b3f;
  --portal-orange:#dc8526;
  --portal-cream:#fbf6ed;
  font-family:Manrope,Arial,sans-serif;
}
/* Crisp single-row portal top navigation: menu | logo | centered section | portal identity */
body.portal-layout-v88 .lux-header.portal-app-header{
  display:grid!important;
  grid-template-columns:48px 148px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:16px!important;
  height:94px!important;
  min-height:94px!important;
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  padding:0 24px!important;
  background:linear-gradient(180deg,#f5e9d6,#edddc2)!important;
  border:0!important;
  box-shadow:0 2px 14px rgba(12,37,50,.1)!important;
  isolation:isolate;
  z-index:10000!important;
}
body.portal-layout-v88 .lux-header.portal-app-header::before,
body.portal-layout-v88 .lux-header.portal-app-header::after{
  content:none!important;
  display:none!important;
}
body.portal-layout-v88 .lux-header.portal-app-header .lux-mobile-tagline,
body.portal-layout-v88 .lux-header.portal-app-header .lux-nav,
body.portal-layout-v88 .lux-header.portal-app-header .lux-header-actions{
  display:none!important;
}
body.portal-layout-v88 .lux-header.portal-app-header .portal-menu-trigger{
  position:relative!important;
  top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  grid-column:1!important;
  margin:0!important;
  width:45px!important;
  height:45px!important;
  justify-self:center!important;
  align-self:center!important;
  border:1px solid rgba(11,43,63,.13)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.76)!important;
  color:#0b2b3f!important;
  box-shadow:none!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  cursor:pointer!important;
  z-index:3!important;
  transition:background .15s ease,box-shadow .15s ease!important;
}
body.portal-layout-v88 .lux-header.portal-app-header .portal-menu-trigger:hover,
body.portal-layout-v88 .lux-header.portal-app-header .portal-menu-trigger:focus-visible{
  background:#fff!important;
  box-shadow:0 0 0 3px rgba(24,103,151,.12)!important;
  outline:none;
}
body.portal-layout-v88 .lux-header.portal-app-header .portal-menu-trigger .material-symbols-rounded{
  font-size:25px!important;
  font-variation-settings:'FILL' 0,'wght' 350,'GRAD' 0,'opsz' 24!important;
}
body.portal-layout-v88 .lux-header.portal-app-header .lux-logo-link{
  grid-column:2!important;
  display:flex!important;
  width:145px!important;
  max-width:100%!important;
  min-width:0!important;
  height:88px!important;
  flex:none!important;
  align-self:center!important;
  justify-content:center!important;
  align-items:center!important;
  margin:0!important;
  padding:0!important;
  position:relative!important;
  user-select:none;
}
body.portal-layout-v88 .lux-header.portal-app-header .lux-logo-link::before,
body.portal-layout-v88 .lux-header.portal-app-header .lux-logo-link::after{display:none!important}
body.portal-layout-v88 .lux-header.portal-app-header .lux-logo{
  position:static!important;
  width:125px!important;
  height:86px!important;
  max-width:100%!important;
  object-fit:contain!important;
  filter:drop-shadow(0 2px 2px rgba(29,46,56,.2))!important;
}
body.portal-layout-v88.admin-page .admin-logo-static{
  pointer-events:none!important;
  cursor:default!important;
}
body.portal-layout-v88 .lux-header.portal-app-header .portal-shell-header{
  grid-column:3!important;
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  padding:0 23px!important;
  margin:0!important;
  width:100%!important;
  height:68px!important;
  min-height:68px!important;
  background:linear-gradient(180deg,#10344b 0%,#082438 100%)!important;
  box-shadow:0 3px 0 var(--portal-orange)!important;
  border-radius:12px!important;
  color:#fff!important;
  z-index:2!important;
}
body.portal-layout-v88 .lux-header.portal-app-header .portal-current-section{
  position:absolute!important;
  top:50%!important;
  left:50%!important;
  transform:translate(-50%,-50%)!important;
  width:max-content!important;
  max-width:65%!important;
  margin:0!important;
  font:600 clamp(17px,1.45vw,23px)/1.2 Manrope,Arial,sans-serif!important;
  letter-spacing:-.025em!important;
  text-align:center!important;
  color:#fff!important;
  text-shadow:none!important;
}
body.portal-layout-v88 .lux-header.portal-app-header .portal-role{
  position:relative!important;
  margin-left:auto!important;
  padding:0!important;
  z-index:3!important;
  font:500 12px/1.25 Manrope,Arial,sans-serif!important;
  letter-spacing:0!important;
  color:#d9e4ec!important;
}
/* Search directly beneath header, aligned to right without extra white blocks */
body.portal-layout-v88.admin-page .admin-main{
  padding:0 20px 32px!important;
  max-width:none!important;
  margin:0 auto!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  min-height:calc(100vh - 95px)!important;
  overflow:visible!important;
}
body.portal-layout-v88.admin-page #adminDashboard.business-admin-shell{
  position:static!important;
  display:block;
  padding:0!important;
  margin:0 auto!important;
  max-width:1480px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.portal-layout-v88.admin-page #adminDashboard[hidden],
body.portal-layout-v88 .business-tab-panel:not(.active){display:none!important}
body.portal-layout-v88.admin-page .admin-top-tools{
  display:flex!important;
  position:relative!important;
  top:auto!important;left:auto!important;right:auto!important;
  justify-content:flex-end!important;
  width:100%!important;
  max-width:none!important;
  margin:7px 0 18px auto!important;
  padding:0!important;
}
body.portal-layout-v88.admin-page .admin-top-search{
  width:min(560px,100%)!important;
  display:block!important;
  margin:0!important;
  position:relative!important;
}
body.portal-layout-v88.admin-page .admin-top-search::before{
  content:'';width:21px;height:21px;background-size:21px 21px;background-repeat:no-repeat;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2364788b' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  color:#64788b;pointer-events:none;
}
body.portal-layout-v88.admin-page .admin-top-search input{
  width:100%!important;
  height:49px!important;
  padding:0 16px 0 45px!important;
  background:#fff!important;
  border:1px solid #cfd9df!important;
  border-radius:13px!important;
  box-shadow:0 2px 10px rgba(16,39,54,.09)!important;
  font:400 14px Manrope,Arial,sans-serif!important;
  color:#122f42!important;
}
body.portal-layout-v88.admin-page .admin-top-search input:focus{
  outline:2px solid rgba(34,126,172,.2)!important;
  border-color:#2b789e!important;
}
body.portal-layout-v88.admin-page .admin-top-search .visually-hidden{
  position:absolute!important;width:1px!important;height:1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
}
/* Content area stays below tools and shows no oversized duplicate panels */
body.portal-layout-v88.admin-page [data-admin-panel="requests"]{
  margin:0!important;padding:0!important;
  background:transparent!important;box-shadow:none!important;border:0!important;
}
body.portal-layout-v88.admin-page [data-admin-panel="requests"] .business-panel-heading,
body.portal-layout-v88.admin-page [data-admin-panel="requests"] .admin-filter-row{display:none!important}
body.portal-layout-v88.admin-page #adminRequestList{
  margin:0!important;
  max-width:1480px!important;
  padding:0!important;
}
body.portal-layout-v88.admin-page #adminRequestList .admin-empty{
  background:#fff!important;
  border:1px solid rgba(18,51,72,.1)!important;
  border-radius:16px!important;
  padding:32px!important;
  color:#4b6174!important;
  box-shadow:0 5px 18px rgba(25,52,67,.06)!important;
  text-align:left!important;
}
body.portal-layout-v88.admin-page #adminRequestList .admin-empty h3{
  font:600 18px Manrope,Arial,sans-serif!important;margin:0!important;
}
body.portal-layout-v88.admin-page .business-tab-panel.active:not([data-admin-panel="requests"]){
  margin-top:14px!important;
  background:#fff!important;
  border:1px solid rgba(14,50,76,.1)!important;
  border-radius:17px!important;
  padding:clamp(16px,2.5vw,29px)!important;
  box-shadow:0 5px 24px rgba(8,34,52,.06)!important;
}
body.portal-layout-v88 .business-panel-heading h3{
  font:600 20px/1.3 Manrope,Arial,sans-serif!important;
  letter-spacing:-.02em!important;
}
body.portal-layout-v88 .business-panel-heading p{
  font-size:13px!important;line-height:1.55!important;
}
/* Full-height left drawer (no dropdown), fast .06 sec transition as requested */
body.portal-layout-v88 .portal-drawer{
  position:fixed!important;left:0!important;right:auto!important;
  top:0!important;bottom:0!important;
  width:min(318px,88vw)!important;
  height:100dvh!important;max-height:none!important;
  overflow-y:auto!important;
  padding:21px 15px 25px!important;
  background:#fbf6ee!important;color:#18384c!important;
  border-radius:0 15px 15px 0!important;
  box-shadow:14px 0 34px rgba(0,24,41,.22)!important;
  transform:translateX(-102%)!important;
  opacity:1!important;visibility:hidden!important;pointer-events:none!important;
  transition:transform .06s ease-out,visibility 0s linear .06s!important;
  z-index:10050!important;
}
body.portal-layout-v88 .portal-drawer.drawer-open{
  transform:translateX(0)!important;
  visibility:visible!important;pointer-events:auto!important;
  transition:transform .06s ease-out,visibility 0s!important;
}
body.portal-layout-v88 .portal-drawer-tabs{display:flex!important;flex-direction:column!important}
body.portal-layout-v88 .portal-drawer .drawer-tab{
  font:500 13px/1.45 Manrope,Arial,sans-serif!important;
  letter-spacing:0!important;
  padding:12px 13px!important;
  min-height:46px!important;
  border-radius:10px!important;
}
body.portal-layout-v88 .portal-drawer .drawer-tab:hover{
  background:#e5eff6!important;
}
body.portal-layout-v88 .portal-drawer .drawer-tab.active{
  background:#dce9f2!important;color:#0b4772!important;
}
body.portal-layout-v88 .portal-drawer-actions{
  border-top:1px solid #decfbe!important;margin-top:19px!important;padding-top:13px!important;
}
body.portal-layout-v88 .portal-drawer-actions #adminSignOutButton,
body.portal-layout-v88 .portal-drawer-actions #employeeSignOutButton{
  background:transparent!important;color:#8a342a!important;border:0!important;
}
/* Client menu with matching side panel behavior */
body.portal-layout-v88.client-page .client-quick-menu{
  position:fixed!important;left:0!important;top:0!important;bottom:0!important;
  display:flex!important;flex-direction:column!important;
  width:min(310px,85vw)!important;height:100dvh!important;max-height:none!important;
  padding:30px 15px!important;border-radius:0 14px 14px 0!important;
  background:#fbf6ee!important;box-shadow:12px 0 32px rgba(0,24,41,.22)!important;
  z-index:10050!important;overflow-y:auto!important;
  visibility:hidden!important;pointer-events:none!important;
  opacity:1!important;transform:translateX(-102%)!important;
  transition:transform .06s ease-out,visibility 0s linear .06s!important;
}
body.portal-layout-v88.client-page .client-quick-menu.dropdown-open{
  display:flex!important;visibility:visible!important;pointer-events:auto!important;
  transform:translateX(0)!important;
  transition:transform .06s ease-out,visibility 0s!important;
}
body.portal-layout-v88.client-page .client-quick-menu a,
body.portal-layout-v88.client-page .client-quick-menu button{
  border-radius:9px!important;
  padding:14px 13px!important;
  font:500 13px Manrope,Arial,sans-serif!important;
  text-decoration:none!important;
}
body.portal-layout-v88.client-page .client-main,
body.portal-layout-v88.employee-page .employee-main{
  max-width:1480px!important;
  margin:0 auto!important;
  padding:20px 18px 36px!important;
  background:transparent!important;
  border:0!important;box-shadow:none!important;
  overflow:visible!important;
}
body.portal-layout-v88.employee-page .admin-title-card{display:none!important}
body.portal-layout-v88.employee-page .employee-main #employeeDashboard.business-admin-shell,
body.portal-layout-v88.client-page .client-main #clientDashboard.business-admin-shell{
  background:transparent!important;border:0!important;box-shadow:none!important;
}
body.portal-layout-v88 .business-admin-shell[hidden]{display:none!important}
/* Mobile: preserve logo/menu separation and keep title/role readable */
@media(max-width:820px){
  body.portal-layout-v88 .lux-header.portal-app-header{
    grid-template-columns:42px 106px minmax(0,1fr)!important;
    gap:8px!important;padding:0 10px!important;height:83px!important;min-height:83px!important;
  }
  body.portal-layout-v88 .lux-header.portal-app-header .portal-menu-trigger{width:39px!important;height:39px!important;border-radius:9px!important}
  body.portal-layout-v88 .lux-header.portal-app-header .lux-logo-link{width:105px!important;height:76px!important}
  body.portal-layout-v88 .lux-header.portal-app-header .lux-logo{width:104px!important;height:73px!important}
  body.portal-layout-v88 .lux-header.portal-app-header .portal-shell-header{
    height:60px!important;min-height:60px!important;padding:0 9px!important;border-radius:9px!important;
  }
  body.portal-layout-v88 .lux-header.portal-app-header .portal-current-section{
    font-size:clamp(13px,2.6vw,18px)!important;max-width:62%!important;
  }
  body.portal-layout-v88 .lux-header.portal-app-header .portal-role{font-size:10px!important}
  body.portal-layout-v88.admin-page .admin-main{padding:0 10px 25px!important}
  body.portal-layout-v88.admin-page .admin-top-tools{margin:6px 0 13px!important}
  body.portal-layout-v88.admin-page .admin-top-search{width:100%!important}
}
@media(max-width:440px){
  body.portal-layout-v88 .lux-header.portal-app-header{
    grid-template-columns:36px 78px minmax(0,1fr)!important;
    gap:6px!important;padding:0 6px!important;height:74px!important;min-height:74px!important;
  }
  body.portal-layout-v88 .lux-header.portal-app-header .portal-menu-trigger{width:35px!important;height:37px!important}
  body.portal-layout-v88 .lux-header.portal-app-header .lux-logo-link{width:78px!important;height:68px!important}
  body.portal-layout-v88 .lux-header.portal-app-header .lux-logo{width:78px!important;height:65px!important}
  body.portal-layout-v88 .lux-header.portal-app-header .portal-shell-header{height:51px!important;min-height:51px!important;padding:0 6px!important}
  body.portal-layout-v88 .lux-header.portal-app-header .portal-current-section{font-size:12px!important;max-width:66%!important;line-height:1.15!important}
  body.portal-layout-v88 .lux-header.portal-app-header .portal-role{font-size:8px!important;max-width:29%!important;text-align:right!important;white-space:normal!important}
  body.portal-layout-v88.admin-page .admin-top-search input{height:43px!important;font-size:13px!important}
}
@media(prefers-reduced-motion:reduce){
  body.portal-layout-v88 .portal-drawer,body.portal-layout-v88 .client-quick-menu{transition:none!important}
}

body.portal-layout-v88 .portal-hamburger{display:block!important;width:24px!important;height:24px!important;color:inherit!important}
body.portal-layout-v88 .portal-drawer-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px;padding:5px 6px 16px;border-bottom:1px solid #dfd2c2;color:#123449;font:650 17px/1.3 Manrope,Arial,sans-serif}
body.portal-layout-v88 .portal-drawer-heading button{border:0;background:transparent;color:#415d70;cursor:pointer;border-radius:8px;padding:6px;display:grid;place-items:center}
body.portal-layout-v88 .portal-drawer-heading button:hover{background:#e8f0f5}
body.portal-layout-v88.client-page .client-quick-menu .portal-drawer-heading button{padding:6px!important}

body.portal-layout-v88 .portal-drawer .drawer-tab .portal-nav-icon{display:block!important;flex:0 0 21px!important;width:21px!important;height:21px!important;stroke:currentColor!important;opacity:.85!important}

body.portal-layout-v88 .portal-drawer .drawer-tab:not(.active){color:#233e52!important;opacity:1!important}
body.portal-layout-v88 .portal-drawer .portal-reset-button[hidden],
body.portal-layout-v88 .portal-drawer [hidden],
body.portal-layout-v88 .client-quick-menu [hidden]{display:none!important}

/* v90 employee account onboarding */
.employee-login-hint{font:500 13px/1.6 Manrope,Arial,sans-serif;color:#64758a;margin:8px 0 16px}
.employee-activation-receipt{margin:18px 0;padding:18px;border:1px solid #c4d5e4;border-radius:14px;background:#f3f8fd;color:#17364b;font:500 14px/1.55 Manrope,Arial,sans-serif}
.employee-receipt-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.employee-receipt-line code{padding:12px 15px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;font:700 18px ui-monospace,monospace;letter-spacing:1.1px;user-select:all}
.employee-activation-receipt button{min-height:38px}
#employeeSSN:disabled{background:#f3f5f7;color:#7e8b9b;cursor:not-allowed}
#ssnSecurityNotice{display:block;color:#64758a;font:500 12px/1.5 Manrope,Arial,sans-serif;margin-top:6px}

/* v93 employee roster controls */
body.portal-layout-v88 .employee-list-toolbar{display:flex;align-items:center;justify-content:flex-end;margin:12px 0;font:500 13px Manrope,Arial,sans-serif;color:#18394e}
body.portal-layout-v88 .employee-archived-toggle{display:inline-flex;align-items:center;gap:9px;cursor:pointer}
body.portal-layout-v88 .employee-archived-toggle input{accent-color:#0b608e;width:17px;height:17px}
body.portal-layout-v88 .employee-record-actions{display:flex;flex-wrap:wrap;gap:9px}
body.portal-layout-v88 .employee-record-actions .admin-secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;font:600 13px Manrope,Arial,sans-serif;min-height:38px;padding:8px 12px}
body.portal-layout-v88 .employee-record-actions .admin-secondary-button .material-symbols-rounded{font-size:18px}
body.portal-layout-v88 .employee-record-actions .emp-delete{color:#a02b2b;border:1px solid #e8c9c9;background:#fff8f8}
body.portal-layout-v88 .employee-record-actions .emp-delete:hover{background:#feeaea}
body.portal-layout-v88 #employeeNumber.employee-readonly-number{background:#f2f5f7;color:#536879;cursor:not-allowed}
body.portal-layout-v88 #employeeNumberEditNote{display:block;color:#617587;font-size:11px;margin-top:4px}
body.portal-layout-v88 #employeeNumberEditNote[hidden]{display:none!important}
@media(max-width:600px){body.portal-layout-v88 .employee-record-actions{display:grid;grid-template-columns:1fr 1fr}body.portal-layout-v88 .employee-record-actions .admin-secondary-button{width:auto;min-width:0}}


/* v97: same Client Portal on phone and computer, compact sign-in controls. */
body.portal-layout-v88.client-page .client-password-control{position:relative;display:flex;align-items:center;width:100%;}
body.portal-layout-v88.client-page .client-password-control input{width:100%;padding-right:96px!important;}
body.portal-layout-v88.client-page .client-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;gap:5px;min-width:77px;height:40px;border:0;border-radius:9px;background:transparent;color:#076cc1;font:600 13px Manrope,Arial,sans-serif;cursor:pointer;}
body.portal-layout-v88.client-page .client-password-toggle:hover{background:#edf6fc}
body.portal-layout-v88.client-page .client-password-toggle .material-symbols-rounded{font-size:18px}
body.portal-layout-v88.client-page .client-account-help{font:400 12px/1.55 Manrope,Arial,sans-serif;color:#61758a;margin:15px 0 0}
body.portal-layout-v88.client-page #clientLoginMessage:empty{display:none!important}
body.portal-layout-v88.client-page #clientLoginMessage{white-space:normal;line-height:1.55;word-break:normal}
@media(max-width:600px){
 body.portal-layout-v88.client-page .client-main{padding:18px 10px 28px!important}
 body.portal-layout-v88.client-page #clientLoginCard{width:100%!important;max-width:100%!important;padding:25px clamp(17px,5vw,27px)!important;margin:0 auto!important;border-radius:20px!important}
 body.portal-layout-v88.client-page #clientLoginCard .admin-login-heading h2{font-size:clamp(28px,7vw,37px)!important;line-height:1.1!important}
 body.portal-layout-v88.client-page #clientLoginCard input{font-size:16px!important}
 body.portal-layout-v88.client-page #clientLoginCard .client-account-help{font-size:12px!important}
 body.portal-layout-v88.client-page #clientDashboard .business-record-head{flex-wrap:wrap!important}
 body.portal-layout-v88.client-page #clientDashboard .business-record-actions{display:flex;flex-wrap:wrap;gap:8px}
}

/* v97 mobile project cards must not force a desktop-width grid on phones. */
body.portal-layout-v88.client-page #clientDashboard,
body.portal-layout-v88.client-page #clientSavedProjectsSection,
body.portal-layout-v88.client-page #clientWorkOrders,
body.portal-layout-v88.client-page #clientSavedProjectsList{
  min-width:0!important;width:100%!important;max-width:100%!important;
  box-sizing:border-box!important;
}
body.portal-layout-v88.client-page #clientDashboard.business-admin-shell{
  grid-template-columns:minmax(0,1fr)!important;
}
body.portal-layout-v88.client-page #clientDashboard > *{
  min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
body.portal-layout-v88.client-page .client-alert[hidden]{display:none!important}
@media(max-width:600px){
 body.portal-layout-v88.client-page #clientSavedProjectsList .draggable-project{
   display:grid!important;grid-template-columns:26px minmax(0,1fr)!important;
   grid-template-rows:auto auto!important;gap:8px!important;
   padding:13px!important;max-width:100%!important;min-width:0!important;
 }
 body.portal-layout-v88.client-page .draggable-project .project-drag-grip{
   grid-column:1!important;grid-row:1!important;min-width:0!important;
   justify-content:center!important;padding:3px 0!important;
 }
 body.portal-layout-v88.client-page .draggable-project .project-row-content{
   grid-column:2!important;grid-row:1!important;min-width:0!important;overflow-wrap:anywhere!important;
 }
 body.portal-layout-v88.client-page .draggable-project .project-inline-actions{
   grid-column:2!important;grid-row:2!important;width:100%!important;
   display:flex!important;justify-content:flex-start!important;gap:18px!important;
   margin:0!important;min-width:0!important;flex-wrap:wrap!important;
 }
 body.portal-layout-v88.client-page .draggable-project .project-text-action{
   flex-shrink:0!important;min-width:0!important;padding:6px 0!important;
 }
 body.portal-layout-v88.client-page .client-main .business-record-card{
   min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
 }
}

body.portal-layout-v88.client-page .project-ui-icon{width:17px;height:17px;flex:0 0 auto;display:inline-block;vertical-align:middle}
body.portal-layout-v88.client-page .project-drag-grip .project-ui-icon{width:20px;height:20px}
